com.google.api.services.migrationcenter.v1.MigrationCenterAPI Maven / Gradle / Ivy
/*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except
* in compliance with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software distributed under the License
* is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express
* or implied. See the License for the specific language governing permissions and limitations under
* the License.
*/
/*
* This code was generated by https://github.com/googleapis/google-api-java-client-services/
* Modify at your own risk.
*/
package com.google.api.services.migrationcenter.v1;
/**
* Service definition for MigrationCenterAPI (v1).
*
*
* A unified platform that helps you accelerate your end-to-end cloud journey from your current on-premises or cloud environments to Google Cloud.
*
*
*
* For more information about this service, see the
* API Documentation
*
*
*
* This service uses {@link MigrationCenterAPIRequestInitializer} to initialize global parameters via its
* {@link Builder}.
*
*
* @since 1.3
* @author Google, Inc.
*/
@SuppressWarnings("javadoc")
public class MigrationCenterAPI extends com.google.api.client.googleapis.services.json.AbstractGoogleJsonClient {
// Note: Leave this static initializer at the top of the file.
static {
com.google.api.client.util.Preconditions.checkState(
(com.google.api.client.googleapis.GoogleUtils.MAJOR_VERSION == 1 &&
(com.google.api.client.googleapis.GoogleUtils.MINOR_VERSION >= 32 ||
(com.google.api.client.googleapis.GoogleUtils.MINOR_VERSION == 31 &&
com.google.api.client.googleapis.GoogleUtils.BUGFIX_VERSION >= 1))) ||
com.google.api.client.googleapis.GoogleUtils.MAJOR_VERSION >= 2,
"You are currently running with version %s of google-api-client. " +
"You need at least version 1.31.1 of google-api-client to run version " +
"2.0.0 of the Migration Center API library.", com.google.api.client.googleapis.GoogleUtils.VERSION);
}
/**
* The default encoded root URL of the service. This is determined when the library is generated
* and normally should not be changed.
*
* @since 1.7
*/
public static final String DEFAULT_ROOT_URL = "https://migrationcenter.googleapis.com/";
/**
* The default encoded mTLS root URL of the service. This is determined when the library is generated
* and normally should not be changed.
*
* @since 1.31
*/
public static final String DEFAULT_MTLS_ROOT_URL = "https://migrationcenter.mtls.googleapis.com/";
/**
* The default encoded service path of the service. This is determined when the library is
* generated and normally should not be changed.
*
* @since 1.7
*/
public static final String DEFAULT_SERVICE_PATH = "";
/**
* The default encoded batch path of the service. This is determined when the library is
* generated and normally should not be changed.
*
* @since 1.23
*/
public static final String DEFAULT_BATCH_PATH = "batch";
/**
* The default encoded base URL of the service. This is determined when the library is generated
* and normally should not be changed.
*/
public static final String DEFAULT_BASE_URL = DEFAULT_ROOT_URL + DEFAULT_SERVICE_PATH;
/**
* Constructor.
*
*
* Use {@link Builder} if you need to specify any of the optional parameters.
*
*
* @param transport HTTP transport, which should normally be:
*
* - Google App Engine:
* {@code com.google.api.client.extensions.appengine.http.UrlFetchTransport}
* - Android: {@code newCompatibleTransport} from
* {@code com.google.api.client.extensions.android.http.AndroidHttp}
* - Java: {@link com.google.api.client.googleapis.javanet.GoogleNetHttpTransport#newTrustedTransport()}
*
*
* @param jsonFactory JSON factory, which may be:
*
* - Jackson: {@code com.google.api.client.json.jackson2.JacksonFactory}
* - Google GSON: {@code com.google.api.client.json.gson.GsonFactory}
* - Android Honeycomb or higher:
* {@code com.google.api.client.extensions.android.json.AndroidJsonFactory}
*
* @param httpRequestInitializer HTTP request initializer or {@code null} for none
* @since 1.7
*/
public MigrationCenterAPI(com.google.api.client.http.HttpTransport transport, com.google.api.client.json.JsonFactory jsonFactory,
com.google.api.client.http.HttpRequestInitializer httpRequestInitializer) {
this(new Builder(transport, jsonFactory, httpRequestInitializer));
}
/**
* @param builder builder
*/
MigrationCenterAPI(Builder builder) {
super(builder);
}
@Override
protected void initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest> httpClientRequest) throws java.io.IOException {
super.initialize(httpClientRequest);
}
/**
* An accessor for creating requests from the Projects collection.
*
* The typical use is:
*
* {@code MigrationCenterAPI migrationcenter = new MigrationCenterAPI(...);}
* {@code MigrationCenterAPI.Projects.List request = migrationcenter.projects().list(parameters ...)}
*
*
* @return the resource collection
*/
public Projects projects() {
return new Projects();
}
/**
* The "projects" collection of methods.
*/
public class Projects {
/**
* An accessor for creating requests from the Locations collection.
*
* The typical use is:
*
* {@code MigrationCenterAPI migrationcenter = new MigrationCenterAPI(...);}
* {@code MigrationCenterAPI.Locations.List request = migrationcenter.locations().list(parameters ...)}
*
*
* @return the resource collection
*/
public Locations locations() {
return new Locations();
}
/**
* The "locations" collection of methods.
*/
public class Locations {
/**
* Gets information about a location.
*
* Create a request for the method "locations.get".
*
* This request holds the parameters needed by the migrationcenter server. After setting any
* optional parameters, call the {@link Get#execute()} method to invoke the remote operation.
*
* @param name Resource name for the location.
* @return the request
*/
public Get get(java.lang.String name) throws java.io.IOException {
Get result = new Get(name);
initialize(result);
return result;
}
public class Get extends MigrationCenterAPIRequest {
private static final String REST_PATH = "v1/{+name}";
private final java.util.regex.Pattern NAME_PATTERN =
java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+$");
/**
* Gets information about a location.
*
* Create a request for the method "locations.get".
*
* This request holds the parameters needed by the the migrationcenter server. After setting any
* optional parameters, call the {@link Get#execute()} method to invoke the remote operation.
* {@link Get#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)}
* must be called to initialize this instance immediately after invoking the constructor.
*
* @param name Resource name for the location.
* @since 1.13
*/
protected Get(java.lang.String name) {
super(MigrationCenterAPI.this, "GET", REST_PATH, null, com.google.api.services.migrationcenter.v1.model.Location.class);
this.name = com.google.api.client.util.Preconditions.checkNotNull(name, "Required parameter name must be specified.");
if (!getSuppressPatternChecks()) {
com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(),
"Parameter name must conform to the pattern " +
"^projects/[^/]+/locations/[^/]+$");
}
}
@Override
public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException {
return super.executeUsingHead();
}
@Override
public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException {
return super.buildHttpRequestUsingHead();
}
@Override
public Get set$Xgafv(java.lang.String $Xgafv) {
return (Get) super.set$Xgafv($Xgafv);
}
@Override
public Get setAccessToken(java.lang.String accessToken) {
return (Get) super.setAccessToken(accessToken);
}
@Override
public Get setAlt(java.lang.String alt) {
return (Get) super.setAlt(alt);
}
@Override
public Get setCallback(java.lang.String callback) {
return (Get) super.setCallback(callback);
}
@Override
public Get setFields(java.lang.String fields) {
return (Get) super.setFields(fields);
}
@Override
public Get setKey(java.lang.String key) {
return (Get) super.setKey(key);
}
@Override
public Get setOauthToken(java.lang.String oauthToken) {
return (Get) super.setOauthToken(oauthToken);
}
@Override
public Get setPrettyPrint(java.lang.Boolean prettyPrint) {
return (Get) super.setPrettyPrint(prettyPrint);
}
@Override
public Get setQuotaUser(java.lang.String quotaUser) {
return (Get) super.setQuotaUser(quotaUser);
}
@Override
public Get setUploadType(java.lang.String uploadType) {
return (Get) super.setUploadType(uploadType);
}
@Override
public Get setUploadProtocol(java.lang.String uploadProtocol) {
return (Get) super.setUploadProtocol(uploadProtocol);
}
/** Resource name for the location. */
@com.google.api.client.util.Key
private java.lang.String name;
/** Resource name for the location.
*/
public java.lang.String getName() {
return name;
}
/** Resource name for the location. */
public Get setName(java.lang.String name) {
if (!getSuppressPatternChecks()) {
com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(),
"Parameter name must conform to the pattern " +
"^projects/[^/]+/locations/[^/]+$");
}
this.name = name;
return this;
}
@Override
public Get set(String parameterName, Object value) {
return (Get) super.set(parameterName, value);
}
}
/**
* Gets the details of regional settings.
*
* Create a request for the method "locations.getSettings".
*
* This request holds the parameters needed by the migrationcenter server. After setting any
* optional parameters, call the {@link GetSettings#execute()} method to invoke the remote
* operation.
*
* @param name Required. Name of the resource.
* @return the request
*/
public GetSettings getSettings(java.lang.String name) throws java.io.IOException {
GetSettings result = new GetSettings(name);
initialize(result);
return result;
}
public class GetSettings extends MigrationCenterAPIRequest {
private static final String REST_PATH = "v1/{+name}";
private final java.util.regex.Pattern NAME_PATTERN =
java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/settings$");
/**
* Gets the details of regional settings.
*
* Create a request for the method "locations.getSettings".
*
* This request holds the parameters needed by the the migrationcenter server. After setting any
* optional parameters, call the {@link GetSettings#execute()} method to invoke the remote
* operation. {@link
* GetSettings#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)}
* must be called to initialize this instance immediately after invoking the constructor.
*
* @param name Required. Name of the resource.
* @since 1.13
*/
protected GetSettings(java.lang.String name) {
super(MigrationCenterAPI.this, "GET", REST_PATH, null, com.google.api.services.migrationcenter.v1.model.Settings.class);
this.name = com.google.api.client.util.Preconditions.checkNotNull(name, "Required parameter name must be specified.");
if (!getSuppressPatternChecks()) {
com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(),
"Parameter name must conform to the pattern " +
"^projects/[^/]+/locations/[^/]+/settings$");
}
}
@Override
public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException {
return super.executeUsingHead();
}
@Override
public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException {
return super.buildHttpRequestUsingHead();
}
@Override
public GetSettings set$Xgafv(java.lang.String $Xgafv) {
return (GetSettings) super.set$Xgafv($Xgafv);
}
@Override
public GetSettings setAccessToken(java.lang.String accessToken) {
return (GetSettings) super.setAccessToken(accessToken);
}
@Override
public GetSettings setAlt(java.lang.String alt) {
return (GetSettings) super.setAlt(alt);
}
@Override
public GetSettings setCallback(java.lang.String callback) {
return (GetSettings) super.setCallback(callback);
}
@Override
public GetSettings setFields(java.lang.String fields) {
return (GetSettings) super.setFields(fields);
}
@Override
public GetSettings setKey(java.lang.String key) {
return (GetSettings) super.setKey(key);
}
@Override
public GetSettings setOauthToken(java.lang.String oauthToken) {
return (GetSettings) super.setOauthToken(oauthToken);
}
@Override
public GetSettings setPrettyPrint(java.lang.Boolean prettyPrint) {
return (GetSettings) super.setPrettyPrint(prettyPrint);
}
@Override
public GetSettings setQuotaUser(java.lang.String quotaUser) {
return (GetSettings) super.setQuotaUser(quotaUser);
}
@Override
public GetSettings setUploadType(java.lang.String uploadType) {
return (GetSettings) super.setUploadType(uploadType);
}
@Override
public GetSettings setUploadProtocol(java.lang.String uploadProtocol) {
return (GetSettings) super.setUploadProtocol(uploadProtocol);
}
/** Required. Name of the resource. */
@com.google.api.client.util.Key
private java.lang.String name;
/** Required. Name of the resource.
*/
public java.lang.String getName() {
return name;
}
/** Required. Name of the resource. */
public GetSettings setName(java.lang.String name) {
if (!getSuppressPatternChecks()) {
com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(),
"Parameter name must conform to the pattern " +
"^projects/[^/]+/locations/[^/]+/settings$");
}
this.name = name;
return this;
}
@Override
public GetSettings set(String parameterName, Object value) {
return (GetSettings) super.set(parameterName, value);
}
}
/**
* Lists information about the supported locations for this service.
*
* Create a request for the method "locations.list".
*
* This request holds the parameters needed by the migrationcenter server. After setting any
* optional parameters, call the {@link List#execute()} method to invoke the remote operation.
*
* @param name The resource that owns the locations collection, if applicable.
* @return the request
*/
public List list(java.lang.String name) throws java.io.IOException {
List result = new List(name);
initialize(result);
return result;
}
public class List extends MigrationCenterAPIRequest {
private static final String REST_PATH = "v1/{+name}/locations";
private final java.util.regex.Pattern NAME_PATTERN =
java.util.regex.Pattern.compile("^projects/[^/]+$");
/**
* Lists information about the supported locations for this service.
*
* Create a request for the method "locations.list".
*
* This request holds the parameters needed by the the migrationcenter server. After setting any
* optional parameters, call the {@link List#execute()} method to invoke the remote operation.
* {@link List#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)}
* must be called to initialize this instance immediately after invoking the constructor.
*
* @param name The resource that owns the locations collection, if applicable.
* @since 1.13
*/
protected List(java.lang.String name) {
super(MigrationCenterAPI.this, "GET", REST_PATH, null, com.google.api.services.migrationcenter.v1.model.ListLocationsResponse.class);
this.name = com.google.api.client.util.Preconditions.checkNotNull(name, "Required parameter name must be specified.");
if (!getSuppressPatternChecks()) {
com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(),
"Parameter name must conform to the pattern " +
"^projects/[^/]+$");
}
}
@Override
public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException {
return super.executeUsingHead();
}
@Override
public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException {
return super.buildHttpRequestUsingHead();
}
@Override
public List set$Xgafv(java.lang.String $Xgafv) {
return (List) super.set$Xgafv($Xgafv);
}
@Override
public List setAccessToken(java.lang.String accessToken) {
return (List) super.setAccessToken(accessToken);
}
@Override
public List setAlt(java.lang.String alt) {
return (List) super.setAlt(alt);
}
@Override
public List setCallback(java.lang.String callback) {
return (List) super.setCallback(callback);
}
@Override
public List setFields(java.lang.String fields) {
return (List) super.setFields(fields);
}
@Override
public List setKey(java.lang.String key) {
return (List) super.setKey(key);
}
@Override
public List setOauthToken(java.lang.String oauthToken) {
return (List) super.setOauthToken(oauthToken);
}
@Override
public List setPrettyPrint(java.lang.Boolean prettyPrint) {
return (List) super.setPrettyPrint(prettyPrint);
}
@Override
public List setQuotaUser(java.lang.String quotaUser) {
return (List) super.setQuotaUser(quotaUser);
}
@Override
public List setUploadType(java.lang.String uploadType) {
return (List) super.setUploadType(uploadType);
}
@Override
public List setUploadProtocol(java.lang.String uploadProtocol) {
return (List) super.setUploadProtocol(uploadProtocol);
}
/** The resource that owns the locations collection, if applicable. */
@com.google.api.client.util.Key
private java.lang.String name;
/** The resource that owns the locations collection, if applicable.
*/
public java.lang.String getName() {
return name;
}
/** The resource that owns the locations collection, if applicable. */
public List setName(java.lang.String name) {
if (!getSuppressPatternChecks()) {
com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(),
"Parameter name must conform to the pattern " +
"^projects/[^/]+$");
}
this.name = name;
return this;
}
/**
* A filter to narrow down results to a preferred subset. The filtering language accepts
* strings like `"displayName=tokyo"`, and is documented in more detail in
* [AIP-160](https://google.aip.dev/160).
*/
@com.google.api.client.util.Key
private java.lang.String filter;
/** A filter to narrow down results to a preferred subset. The filtering language accepts strings like
`"displayName=tokyo"`, and is documented in more detail in [AIP-160](https://google.aip.dev/160).
*/
public java.lang.String getFilter() {
return filter;
}
/**
* A filter to narrow down results to a preferred subset. The filtering language accepts
* strings like `"displayName=tokyo"`, and is documented in more detail in
* [AIP-160](https://google.aip.dev/160).
*/
public List setFilter(java.lang.String filter) {
this.filter = filter;
return this;
}
/** The maximum number of results to return. If not set, the service selects a default. */
@com.google.api.client.util.Key
private java.lang.Integer pageSize;
/** The maximum number of results to return. If not set, the service selects a default.
*/
public java.lang.Integer getPageSize() {
return pageSize;
}
/** The maximum number of results to return. If not set, the service selects a default. */
public List setPageSize(java.lang.Integer pageSize) {
this.pageSize = pageSize;
return this;
}
/**
* A page token received from the `next_page_token` field in the response. Send that page
* token to receive the subsequent page.
*/
@com.google.api.client.util.Key
private java.lang.String pageToken;
/** A page token received from the `next_page_token` field in the response. Send that page token to
receive the subsequent page.
*/
public java.lang.String getPageToken() {
return pageToken;
}
/**
* A page token received from the `next_page_token` field in the response. Send that page
* token to receive the subsequent page.
*/
public List setPageToken(java.lang.String pageToken) {
this.pageToken = pageToken;
return this;
}
@Override
public List set(String parameterName, Object value) {
return (List) super.set(parameterName, value);
}
}
/**
* Updates the regional-level project settings.
*
* Create a request for the method "locations.updateSettings".
*
* This request holds the parameters needed by the migrationcenter server. After setting any
* optional parameters, call the {@link UpdateSettings#execute()} method to invoke the remote
* operation.
*
* @param name Output only. The name of the resource.
* @param content the {@link com.google.api.services.migrationcenter.v1.model.Settings}
* @return the request
*/
public UpdateSettings updateSettings(java.lang.String name, com.google.api.services.migrationcenter.v1.model.Settings content) throws java.io.IOException {
UpdateSettings result = new UpdateSettings(name, content);
initialize(result);
return result;
}
public class UpdateSettings extends MigrationCenterAPIRequest {
private static final String REST_PATH = "v1/{+name}";
private final java.util.regex.Pattern NAME_PATTERN =
java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/settings$");
/**
* Updates the regional-level project settings.
*
* Create a request for the method "locations.updateSettings".
*
* This request holds the parameters needed by the the migrationcenter server. After setting any
* optional parameters, call the {@link UpdateSettings#execute()} method to invoke the remote
* operation. {@link UpdateSettings#initialize(com.google.api.client.googleapis.services.Abstr
* actGoogleClientRequest)} must be called to initialize this instance immediately after invoking
* the constructor.
*
* @param name Output only. The name of the resource.
* @param content the {@link com.google.api.services.migrationcenter.v1.model.Settings}
* @since 1.13
*/
protected UpdateSettings(java.lang.String name, com.google.api.services.migrationcenter.v1.model.Settings content) {
super(MigrationCenterAPI.this, "PATCH", REST_PATH, content, com.google.api.services.migrationcenter.v1.model.Operation.class);
this.name = com.google.api.client.util.Preconditions.checkNotNull(name, "Required parameter name must be specified.");
if (!getSuppressPatternChecks()) {
com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(),
"Parameter name must conform to the pattern " +
"^projects/[^/]+/locations/[^/]+/settings$");
}
}
@Override
public UpdateSettings set$Xgafv(java.lang.String $Xgafv) {
return (UpdateSettings) super.set$Xgafv($Xgafv);
}
@Override
public UpdateSettings setAccessToken(java.lang.String accessToken) {
return (UpdateSettings) super.setAccessToken(accessToken);
}
@Override
public UpdateSettings setAlt(java.lang.String alt) {
return (UpdateSettings) super.setAlt(alt);
}
@Override
public UpdateSettings setCallback(java.lang.String callback) {
return (UpdateSettings) super.setCallback(callback);
}
@Override
public UpdateSettings setFields(java.lang.String fields) {
return (UpdateSettings) super.setFields(fields);
}
@Override
public UpdateSettings setKey(java.lang.String key) {
return (UpdateSettings) super.setKey(key);
}
@Override
public UpdateSettings setOauthToken(java.lang.String oauthToken) {
return (UpdateSettings) super.setOauthToken(oauthToken);
}
@Override
public UpdateSettings setPrettyPrint(java.lang.Boolean prettyPrint) {
return (UpdateSettings) super.setPrettyPrint(prettyPrint);
}
@Override
public UpdateSettings setQuotaUser(java.lang.String quotaUser) {
return (UpdateSettings) super.setQuotaUser(quotaUser);
}
@Override
public UpdateSettings setUploadType(java.lang.String uploadType) {
return (UpdateSettings) super.setUploadType(uploadType);
}
@Override
public UpdateSettings setUploadProtocol(java.lang.String uploadProtocol) {
return (UpdateSettings) super.setUploadProtocol(uploadProtocol);
}
/** Output only. The name of the resource. */
@com.google.api.client.util.Key
private java.lang.String name;
/** Output only. The name of the resource.
*/
public java.lang.String getName() {
return name;
}
/** Output only. The name of the resource. */
public UpdateSettings setName(java.lang.String name) {
if (!getSuppressPatternChecks()) {
com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(),
"Parameter name must conform to the pattern " +
"^projects/[^/]+/locations/[^/]+/settings$");
}
this.name = name;
return this;
}
/**
* Optional. An optional request ID to identify requests. Specify a unique request ID so
* that if you must retry your request, the server will know to ignore the request if it has
* already been completed. The server will guarantee that for at least 60 minutes since the
* first request. For example, consider a situation where you make an initial request and
* the request times out. If you make the request again with the same request ID, the server
* can check if original operation with the same request ID was received, and if so, will
* ignore the second request. This prevents clients from accidentally creating duplicate
* commitments. The request ID must be a valid UUID with the exception that zero UUID is not
* supported (00000000-0000-0000-0000-000000000000).
*/
@com.google.api.client.util.Key
private java.lang.String requestId;
/** Optional. An optional request ID to identify requests. Specify a unique request ID so that if you
must retry your request, the server will know to ignore the request if it has already been
completed. The server will guarantee that for at least 60 minutes since the first request. For
example, consider a situation where you make an initial request and the request times out. If you
make the request again with the same request ID, the server can check if original operation with
the same request ID was received, and if so, will ignore the second request. This prevents clients
from accidentally creating duplicate commitments. The request ID must be a valid UUID with the
exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).
*/
public java.lang.String getRequestId() {
return requestId;
}
/**
* Optional. An optional request ID to identify requests. Specify a unique request ID so
* that if you must retry your request, the server will know to ignore the request if it has
* already been completed. The server will guarantee that for at least 60 minutes since the
* first request. For example, consider a situation where you make an initial request and
* the request times out. If you make the request again with the same request ID, the server
* can check if original operation with the same request ID was received, and if so, will
* ignore the second request. This prevents clients from accidentally creating duplicate
* commitments. The request ID must be a valid UUID with the exception that zero UUID is not
* supported (00000000-0000-0000-0000-000000000000).
*/
public UpdateSettings setRequestId(java.lang.String requestId) {
this.requestId = requestId;
return this;
}
/**
* Required. Field mask is used to specify the fields to be overwritten in the `Settings`
* resource by the update. The values specified in the `update_mask` field are relative to
* the resource, not the full request. A field will be overwritten if it is in the mask. A
* single * value in the mask lets you to overwrite all fields.
*/
@com.google.api.client.util.Key
private String updateMask;
/** Required. Field mask is used to specify the fields to be overwritten in the `Settings` resource by
the update. The values specified in the `update_mask` field are relative to the resource, not the
full request. A field will be overwritten if it is in the mask. A single * value in the mask lets
you to overwrite all fields.
*/
public String getUpdateMask() {
return updateMask;
}
/**
* Required. Field mask is used to specify the fields to be overwritten in the `Settings`
* resource by the update. The values specified in the `update_mask` field are relative to
* the resource, not the full request. A field will be overwritten if it is in the mask. A
* single * value in the mask lets you to overwrite all fields.
*/
public UpdateSettings setUpdateMask(String updateMask) {
this.updateMask = updateMask;
return this;
}
@Override
public UpdateSettings set(String parameterName, Object value) {
return (UpdateSettings) super.set(parameterName, value);
}
}
/**
* An accessor for creating requests from the Assets collection.
*
* The typical use is:
*
* {@code MigrationCenterAPI migrationcenter = new MigrationCenterAPI(...);}
* {@code MigrationCenterAPI.Assets.List request = migrationcenter.assets().list(parameters ...)}
*
*
* @return the resource collection
*/
public Assets assets() {
return new Assets();
}
/**
* The "assets" collection of methods.
*/
public class Assets {
/**
* Aggregates the requested fields based on provided function.
*
* Create a request for the method "assets.aggregateValues".
*
* This request holds the parameters needed by the migrationcenter server. After setting any
* optional parameters, call the {@link AggregateValues#execute()} method to invoke the remote
* operation.
*
* @param parent Required. Parent value for `AggregateAssetsValuesRequest`.
* @param content the {@link com.google.api.services.migrationcenter.v1.model.AggregateAssetsValuesRequest}
* @return the request
*/
public AggregateValues aggregateValues(java.lang.String parent, com.google.api.services.migrationcenter.v1.model.AggregateAssetsValuesRequest content) throws java.io.IOException {
AggregateValues result = new AggregateValues(parent, content);
initialize(result);
return result;
}
public class AggregateValues extends MigrationCenterAPIRequest {
private static final String REST_PATH = "v1/{+parent}/assets:aggregateValues";
private final java.util.regex.Pattern PARENT_PATTERN =
java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+$");
/**
* Aggregates the requested fields based on provided function.
*
* Create a request for the method "assets.aggregateValues".
*
* This request holds the parameters needed by the the migrationcenter server. After setting any
* optional parameters, call the {@link AggregateValues#execute()} method to invoke the remote
* operation. {@link AggregateValues#initialize(com.google.api.client.googleapis.services.Abst
* ractGoogleClientRequest)} must be called to initialize this instance immediately after invoking
* the constructor.
*
* @param parent Required. Parent value for `AggregateAssetsValuesRequest`.
* @param content the {@link com.google.api.services.migrationcenter.v1.model.AggregateAssetsValuesRequest}
* @since 1.13
*/
protected AggregateValues(java.lang.String parent, com.google.api.services.migrationcenter.v1.model.AggregateAssetsValuesRequest content) {
super(MigrationCenterAPI.this, "POST", REST_PATH, content, com.google.api.services.migrationcenter.v1.model.AggregateAssetsValuesResponse.class);
this.parent = com.google.api.client.util.Preconditions.checkNotNull(parent, "Required parameter parent must be specified.");
if (!getSuppressPatternChecks()) {
com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(),
"Parameter parent must conform to the pattern " +
"^projects/[^/]+/locations/[^/]+$");
}
}
@Override
public AggregateValues set$Xgafv(java.lang.String $Xgafv) {
return (AggregateValues) super.set$Xgafv($Xgafv);
}
@Override
public AggregateValues setAccessToken(java.lang.String accessToken) {
return (AggregateValues) super.setAccessToken(accessToken);
}
@Override
public AggregateValues setAlt(java.lang.String alt) {
return (AggregateValues) super.setAlt(alt);
}
@Override
public AggregateValues setCallback(java.lang.String callback) {
return (AggregateValues) super.setCallback(callback);
}
@Override
public AggregateValues setFields(java.lang.String fields) {
return (AggregateValues) super.setFields(fields);
}
@Override
public AggregateValues setKey(java.lang.String key) {
return (AggregateValues) super.setKey(key);
}
@Override
public AggregateValues setOauthToken(java.lang.String oauthToken) {
return (AggregateValues) super.setOauthToken(oauthToken);
}
@Override
public AggregateValues setPrettyPrint(java.lang.Boolean prettyPrint) {
return (AggregateValues) super.setPrettyPrint(prettyPrint);
}
@Override
public AggregateValues setQuotaUser(java.lang.String quotaUser) {
return (AggregateValues) super.setQuotaUser(quotaUser);
}
@Override
public AggregateValues setUploadType(java.lang.String uploadType) {
return (AggregateValues) super.setUploadType(uploadType);
}
@Override
public AggregateValues setUploadProtocol(java.lang.String uploadProtocol) {
return (AggregateValues) super.setUploadProtocol(uploadProtocol);
}
/** Required. Parent value for `AggregateAssetsValuesRequest`. */
@com.google.api.client.util.Key
private java.lang.String parent;
/** Required. Parent value for `AggregateAssetsValuesRequest`.
*/
public java.lang.String getParent() {
return parent;
}
/** Required. Parent value for `AggregateAssetsValuesRequest`. */
public AggregateValues setParent(java.lang.String parent) {
if (!getSuppressPatternChecks()) {
com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(),
"Parameter parent must conform to the pattern " +
"^projects/[^/]+/locations/[^/]+$");
}
this.parent = parent;
return this;
}
@Override
public AggregateValues set(String parameterName, Object value) {
return (AggregateValues) super.set(parameterName, value);
}
}
/**
* Deletes list of Assets.
*
* Create a request for the method "assets.batchDelete".
*
* This request holds the parameters needed by the migrationcenter server. After setting any
* optional parameters, call the {@link BatchDelete#execute()} method to invoke the remote
* operation.
*
* @param parent Required. Parent value for batch asset delete.
* @param content the {@link com.google.api.services.migrationcenter.v1.model.BatchDeleteAssetsRequest}
* @return the request
*/
public BatchDelete batchDelete(java.lang.String parent, com.google.api.services.migrationcenter.v1.model.BatchDeleteAssetsRequest content) throws java.io.IOException {
BatchDelete result = new BatchDelete(parent, content);
initialize(result);
return result;
}
public class BatchDelete extends MigrationCenterAPIRequest {
private static final String REST_PATH = "v1/{+parent}/assets:batchDelete";
private final java.util.regex.Pattern PARENT_PATTERN =
java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+$");
/**
* Deletes list of Assets.
*
* Create a request for the method "assets.batchDelete".
*
* This request holds the parameters needed by the the migrationcenter server. After setting any
* optional parameters, call the {@link BatchDelete#execute()} method to invoke the remote
* operation. {@link
* BatchDelete#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)}
* must be called to initialize this instance immediately after invoking the constructor.
*
* @param parent Required. Parent value for batch asset delete.
* @param content the {@link com.google.api.services.migrationcenter.v1.model.BatchDeleteAssetsRequest}
* @since 1.13
*/
protected BatchDelete(java.lang.String parent, com.google.api.services.migrationcenter.v1.model.BatchDeleteAssetsRequest content) {
super(MigrationCenterAPI.this, "POST", REST_PATH, content, com.google.api.services.migrationcenter.v1.model.Empty.class);
this.parent = com.google.api.client.util.Preconditions.checkNotNull(parent, "Required parameter parent must be specified.");
if (!getSuppressPatternChecks()) {
com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(),
"Parameter parent must conform to the pattern " +
"^projects/[^/]+/locations/[^/]+$");
}
}
@Override
public BatchDelete set$Xgafv(java.lang.String $Xgafv) {
return (BatchDelete) super.set$Xgafv($Xgafv);
}
@Override
public BatchDelete setAccessToken(java.lang.String accessToken) {
return (BatchDelete) super.setAccessToken(accessToken);
}
@Override
public BatchDelete setAlt(java.lang.String alt) {
return (BatchDelete) super.setAlt(alt);
}
@Override
public BatchDelete setCallback(java.lang.String callback) {
return (BatchDelete) super.setCallback(callback);
}
@Override
public BatchDelete setFields(java.lang.String fields) {
return (BatchDelete) super.setFields(fields);
}
@Override
public BatchDelete setKey(java.lang.String key) {
return (BatchDelete) super.setKey(key);
}
@Override
public BatchDelete setOauthToken(java.lang.String oauthToken) {
return (BatchDelete) super.setOauthToken(oauthToken);
}
@Override
public BatchDelete setPrettyPrint(java.lang.Boolean prettyPrint) {
return (BatchDelete) super.setPrettyPrint(prettyPrint);
}
@Override
public BatchDelete setQuotaUser(java.lang.String quotaUser) {
return (BatchDelete) super.setQuotaUser(quotaUser);
}
@Override
public BatchDelete setUploadType(java.lang.String uploadType) {
return (BatchDelete) super.setUploadType(uploadType);
}
@Override
public BatchDelete setUploadProtocol(java.lang.String uploadProtocol) {
return (BatchDelete) super.setUploadProtocol(uploadProtocol);
}
/** Required. Parent value for batch asset delete. */
@com.google.api.client.util.Key
private java.lang.String parent;
/** Required. Parent value for batch asset delete.
*/
public java.lang.String getParent() {
return parent;
}
/** Required. Parent value for batch asset delete. */
public BatchDelete setParent(java.lang.String parent) {
if (!getSuppressPatternChecks()) {
com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(),
"Parameter parent must conform to the pattern " +
"^projects/[^/]+/locations/[^/]+$");
}
this.parent = parent;
return this;
}
@Override
public BatchDelete set(String parameterName, Object value) {
return (BatchDelete) super.set(parameterName, value);
}
}
/**
* Updates the parameters of a list of assets.
*
* Create a request for the method "assets.batchUpdate".
*
* This request holds the parameters needed by the migrationcenter server. After setting any
* optional parameters, call the {@link BatchUpdate#execute()} method to invoke the remote
* operation.
*
* @param parent Required. Parent value for batch asset update.
* @param content the {@link com.google.api.services.migrationcenter.v1.model.BatchUpdateAssetsRequest}
* @return the request
*/
public BatchUpdate batchUpdate(java.lang.String parent, com.google.api.services.migrationcenter.v1.model.BatchUpdateAssetsRequest content) throws java.io.IOException {
BatchUpdate result = new BatchUpdate(parent, content);
initialize(result);
return result;
}
public class BatchUpdate extends MigrationCenterAPIRequest {
private static final String REST_PATH = "v1/{+parent}/assets:batchUpdate";
private final java.util.regex.Pattern PARENT_PATTERN =
java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+$");
/**
* Updates the parameters of a list of assets.
*
* Create a request for the method "assets.batchUpdate".
*
* This request holds the parameters needed by the the migrationcenter server. After setting any
* optional parameters, call the {@link BatchUpdate#execute()} method to invoke the remote
* operation. {@link
* BatchUpdate#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)}
* must be called to initialize this instance immediately after invoking the constructor.
*
* @param parent Required. Parent value for batch asset update.
* @param content the {@link com.google.api.services.migrationcenter.v1.model.BatchUpdateAssetsRequest}
* @since 1.13
*/
protected BatchUpdate(java.lang.String parent, com.google.api.services.migrationcenter.v1.model.BatchUpdateAssetsRequest content) {
super(MigrationCenterAPI.this, "POST", REST_PATH, content, com.google.api.services.migrationcenter.v1.model.BatchUpdateAssetsResponse.class);
this.parent = com.google.api.client.util.Preconditions.checkNotNull(parent, "Required parameter parent must be specified.");
if (!getSuppressPatternChecks()) {
com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(),
"Parameter parent must conform to the pattern " +
"^projects/[^/]+/locations/[^/]+$");
}
}
@Override
public BatchUpdate set$Xgafv(java.lang.String $Xgafv) {
return (BatchUpdate) super.set$Xgafv($Xgafv);
}
@Override
public BatchUpdate setAccessToken(java.lang.String accessToken) {
return (BatchUpdate) super.setAccessToken(accessToken);
}
@Override
public BatchUpdate setAlt(java.lang.String alt) {
return (BatchUpdate) super.setAlt(alt);
}
@Override
public BatchUpdate setCallback(java.lang.String callback) {
return (BatchUpdate) super.setCallback(callback);
}
@Override
public BatchUpdate setFields(java.lang.String fields) {
return (BatchUpdate) super.setFields(fields);
}
@Override
public BatchUpdate setKey(java.lang.String key) {
return (BatchUpdate) super.setKey(key);
}
@Override
public BatchUpdate setOauthToken(java.lang.String oauthToken) {
return (BatchUpdate) super.setOauthToken(oauthToken);
}
@Override
public BatchUpdate setPrettyPrint(java.lang.Boolean prettyPrint) {
return (BatchUpdate) super.setPrettyPrint(prettyPrint);
}
@Override
public BatchUpdate setQuotaUser(java.lang.String quotaUser) {
return (BatchUpdate) super.setQuotaUser(quotaUser);
}
@Override
public BatchUpdate setUploadType(java.lang.String uploadType) {
return (BatchUpdate) super.setUploadType(uploadType);
}
@Override
public BatchUpdate setUploadProtocol(java.lang.String uploadProtocol) {
return (BatchUpdate) super.setUploadProtocol(uploadProtocol);
}
/** Required. Parent value for batch asset update. */
@com.google.api.client.util.Key
private java.lang.String parent;
/** Required. Parent value for batch asset update.
*/
public java.lang.String getParent() {
return parent;
}
/** Required. Parent value for batch asset update. */
public BatchUpdate setParent(java.lang.String parent) {
if (!getSuppressPatternChecks()) {
com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(),
"Parameter parent must conform to the pattern " +
"^projects/[^/]+/locations/[^/]+$");
}
this.parent = parent;
return this;
}
@Override
public BatchUpdate set(String parameterName, Object value) {
return (BatchUpdate) super.set(parameterName, value);
}
}
/**
* Deletes an asset.
*
* Create a request for the method "assets.delete".
*
* This request holds the parameters needed by the migrationcenter server. After setting any
* optional parameters, call the {@link Delete#execute()} method to invoke the remote operation.
*
* @param name Required. Name of the resource.
* @return the request
*/
public Delete delete(java.lang.String name) throws java.io.IOException {
Delete result = new Delete(name);
initialize(result);
return result;
}
public class Delete extends MigrationCenterAPIRequest {
private static final String REST_PATH = "v1/{+name}";
private final java.util.regex.Pattern NAME_PATTERN =
java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/assets/[^/]+$");
/**
* Deletes an asset.
*
* Create a request for the method "assets.delete".
*
* This request holds the parameters needed by the the migrationcenter server. After setting any
* optional parameters, call the {@link Delete#execute()} method to invoke the remote operation.
* {@link
* Delete#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must
* be called to initialize this instance immediately after invoking the constructor.
*
* @param name Required. Name of the resource.
* @since 1.13
*/
protected Delete(java.lang.String name) {
super(MigrationCenterAPI.this, "DELETE", REST_PATH, null, com.google.api.services.migrationcenter.v1.model.Empty.class);
this.name = com.google.api.client.util.Preconditions.checkNotNull(name, "Required parameter name must be specified.");
if (!getSuppressPatternChecks()) {
com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(),
"Parameter name must conform to the pattern " +
"^projects/[^/]+/locations/[^/]+/assets/[^/]+$");
}
}
@Override
public Delete set$Xgafv(java.lang.String $Xgafv) {
return (Delete) super.set$Xgafv($Xgafv);
}
@Override
public Delete setAccessToken(java.lang.String accessToken) {
return (Delete) super.setAccessToken(accessToken);
}
@Override
public Delete setAlt(java.lang.String alt) {
return (Delete) super.setAlt(alt);
}
@Override
public Delete setCallback(java.lang.String callback) {
return (Delete) super.setCallback(callback);
}
@Override
public Delete setFields(java.lang.String fields) {
return (Delete) super.setFields(fields);
}
@Override
public Delete setKey(java.lang.String key) {
return (Delete) super.setKey(key);
}
@Override
public Delete setOauthToken(java.lang.String oauthToken) {
return (Delete) super.setOauthToken(oauthToken);
}
@Override
public Delete setPrettyPrint(java.lang.Boolean prettyPrint) {
return (Delete) super.setPrettyPrint(prettyPrint);
}
@Override
public Delete setQuotaUser(java.lang.String quotaUser) {
return (Delete) super.setQuotaUser(quotaUser);
}
@Override
public Delete setUploadType(java.lang.String uploadType) {
return (Delete) super.setUploadType(uploadType);
}
@Override
public Delete setUploadProtocol(java.lang.String uploadProtocol) {
return (Delete) super.setUploadProtocol(uploadProtocol);
}
/** Required. Name of the resource. */
@com.google.api.client.util.Key
private java.lang.String name;
/** Required. Name of the resource.
*/
public java.lang.String getName() {
return name;
}
/** Required. Name of the resource. */
public Delete setName(java.lang.String name) {
if (!getSuppressPatternChecks()) {
com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(),
"Parameter name must conform to the pattern " +
"^projects/[^/]+/locations/[^/]+/assets/[^/]+$");
}
this.name = name;
return this;
}
/**
* Optional. An optional request ID to identify requests. Specify a unique request ID so
* that if you must retry your request, the server will know to ignore the request if it
* has already been completed. The server will guarantee that for at least 60 minutes
* after the first request. For example, consider a situation where you make an initial
* request and the request times out. If you make the request again with the same request
* ID, the server can check if original operation with the same request ID was received,
* and if so, will ignore the second request. This prevents clients from accidentally
* creating duplicate commitments. The request ID must be a valid UUID with the exception
* that zero UUID is not supported (00000000-0000-0000-0000-000000000000).
*/
@com.google.api.client.util.Key
private java.lang.String requestId;
/** Optional. An optional request ID to identify requests. Specify a unique request ID so that if you
must retry your request, the server will know to ignore the request if it has already been
completed. The server will guarantee that for at least 60 minutes after the first request. For
example, consider a situation where you make an initial request and the request times out. If you
make the request again with the same request ID, the server can check if original operation with
the same request ID was received, and if so, will ignore the second request. This prevents clients
from accidentally creating duplicate commitments. The request ID must be a valid UUID with the
exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).
*/
public java.lang.String getRequestId() {
return requestId;
}
/**
* Optional. An optional request ID to identify requests. Specify a unique request ID so
* that if you must retry your request, the server will know to ignore the request if it
* has already been completed. The server will guarantee that for at least 60 minutes
* after the first request. For example, consider a situation where you make an initial
* request and the request times out. If you make the request again with the same request
* ID, the server can check if original operation with the same request ID was received,
* and if so, will ignore the second request. This prevents clients from accidentally
* creating duplicate commitments. The request ID must be a valid UUID with the exception
* that zero UUID is not supported (00000000-0000-0000-0000-000000000000).
*/
public Delete setRequestId(java.lang.String requestId) {
this.requestId = requestId;
return this;
}
@Override
public Delete set(String parameterName, Object value) {
return (Delete) super.set(parameterName, value);
}
}
/**
* Gets the details of an asset.
*
* Create a request for the method "assets.get".
*
* This request holds the parameters needed by the migrationcenter server. After setting any
* optional parameters, call the {@link Get#execute()} method to invoke the remote operation.
*
* @param name Required. Name of the resource.
* @return the request
*/
public Get get(java.lang.String name) throws java.io.IOException {
Get result = new Get(name);
initialize(result);
return result;
}
public class Get extends MigrationCenterAPIRequest {
private static final String REST_PATH = "v1/{+name}";
private final java.util.regex.Pattern NAME_PATTERN =
java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/assets/[^/]+$");
/**
* Gets the details of an asset.
*
* Create a request for the method "assets.get".
*
* This request holds the parameters needed by the the migrationcenter server. After setting any
* optional parameters, call the {@link Get#execute()} method to invoke the remote operation.
* {@link Get#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)}
* must be called to initialize this instance immediately after invoking the constructor.
*
* @param name Required. Name of the resource.
* @since 1.13
*/
protected Get(java.lang.String name) {
super(MigrationCenterAPI.this, "GET", REST_PATH, null, com.google.api.services.migrationcenter.v1.model.Asset.class);
this.name = com.google.api.client.util.Preconditions.checkNotNull(name, "Required parameter name must be specified.");
if (!getSuppressPatternChecks()) {
com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(),
"Parameter name must conform to the pattern " +
"^projects/[^/]+/locations/[^/]+/assets/[^/]+$");
}
}
@Override
public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException {
return super.executeUsingHead();
}
@Override
public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException {
return super.buildHttpRequestUsingHead();
}
@Override
public Get set$Xgafv(java.lang.String $Xgafv) {
return (Get) super.set$Xgafv($Xgafv);
}
@Override
public Get setAccessToken(java.lang.String accessToken) {
return (Get) super.setAccessToken(accessToken);
}
@Override
public Get setAlt(java.lang.String alt) {
return (Get) super.setAlt(alt);
}
@Override
public Get setCallback(java.lang.String callback) {
return (Get) super.setCallback(callback);
}
@Override
public Get setFields(java.lang.String fields) {
return (Get) super.setFields(fields);
}
@Override
public Get setKey(java.lang.String key) {
return (Get) super.setKey(key);
}
@Override
public Get setOauthToken(java.lang.String oauthToken) {
return (Get) super.setOauthToken(oauthToken);
}
@Override
public Get setPrettyPrint(java.lang.Boolean prettyPrint) {
return (Get) super.setPrettyPrint(prettyPrint);
}
@Override
public Get setQuotaUser(java.lang.String quotaUser) {
return (Get) super.setQuotaUser(quotaUser);
}
@Override
public Get setUploadType(java.lang.String uploadType) {
return (Get) super.setUploadType(uploadType);
}
@Override
public Get setUploadProtocol(java.lang.String uploadProtocol) {
return (Get) super.setUploadProtocol(uploadProtocol);
}
/** Required. Name of the resource. */
@com.google.api.client.util.Key
private java.lang.String name;
/** Required. Name of the resource.
*/
public java.lang.String getName() {
return name;
}
/** Required. Name of the resource. */
public Get setName(java.lang.String name) {
if (!getSuppressPatternChecks()) {
com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(),
"Parameter name must conform to the pattern " +
"^projects/[^/]+/locations/[^/]+/assets/[^/]+$");
}
this.name = name;
return this;
}
/** View of the assets. Defaults to BASIC. */
@com.google.api.client.util.Key
private java.lang.String view;
/** View of the assets. Defaults to BASIC.
*/
public java.lang.String getView() {
return view;
}
/** View of the assets. Defaults to BASIC. */
public Get setView(java.lang.String view) {
this.view = view;
return this;
}
@Override
public Get set(String parameterName, Object value) {
return (Get) super.set(parameterName, value);
}
}
/**
* Lists all the assets in a given project and location.
*
* Create a request for the method "assets.list".
*
* This request holds the parameters needed by the migrationcenter server. After setting any
* optional parameters, call the {@link List#execute()} method to invoke the remote operation.
*
* @param parent Required. Parent value for `ListAssetsRequest`.
* @return the request
*/
public List list(java.lang.String parent) throws java.io.IOException {
List result = new List(parent);
initialize(result);
return result;
}
public class List extends MigrationCenterAPIRequest {
private static final String REST_PATH = "v1/{+parent}/assets";
private final java.util.regex.Pattern PARENT_PATTERN =
java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+$");
/**
* Lists all the assets in a given project and location.
*
* Create a request for the method "assets.list".
*
* This request holds the parameters needed by the the migrationcenter server. After setting any
* optional parameters, call the {@link List#execute()} method to invoke the remote operation.
* {@link List#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)}
* must be called to initialize this instance immediately after invoking the constructor.
*
* @param parent Required. Parent value for `ListAssetsRequest`.
* @since 1.13
*/
protected List(java.lang.String parent) {
super(MigrationCenterAPI.this, "GET", REST_PATH, null, com.google.api.services.migrationcenter.v1.model.ListAssetsResponse.class);
this.parent = com.google.api.client.util.Preconditions.checkNotNull(parent, "Required parameter parent must be specified.");
if (!getSuppressPatternChecks()) {
com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(),
"Parameter parent must conform to the pattern " +
"^projects/[^/]+/locations/[^/]+$");
}
}
@Override
public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException {
return super.executeUsingHead();
}
@Override
public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException {
return super.buildHttpRequestUsingHead();
}
@Override
public List set$Xgafv(java.lang.String $Xgafv) {
return (List) super.set$Xgafv($Xgafv);
}
@Override
public List setAccessToken(java.lang.String accessToken) {
return (List) super.setAccessToken(accessToken);
}
@Override
public List setAlt(java.lang.String alt) {
return (List) super.setAlt(alt);
}
@Override
public List setCallback(java.lang.String callback) {
return (List) super.setCallback(callback);
}
@Override
public List setFields(java.lang.String fields) {
return (List) super.setFields(fields);
}
@Override
public List setKey(java.lang.String key) {
return (List) super.setKey(key);
}
@Override
public List setOauthToken(java.lang.String oauthToken) {
return (List) super.setOauthToken(oauthToken);
}
@Override
public List setPrettyPrint(java.lang.Boolean prettyPrint) {
return (List) super.setPrettyPrint(prettyPrint);
}
@Override
public List setQuotaUser(java.lang.String quotaUser) {
return (List) super.setQuotaUser(quotaUser);
}
@Override
public List setUploadType(java.lang.String uploadType) {
return (List) super.setUploadType(uploadType);
}
@Override
public List setUploadProtocol(java.lang.String uploadProtocol) {
return (List) super.setUploadProtocol(uploadProtocol);
}
/** Required. Parent value for `ListAssetsRequest`. */
@com.google.api.client.util.Key
private java.lang.String parent;
/** Required. Parent value for `ListAssetsRequest`.
*/
public java.lang.String getParent() {
return parent;
}
/** Required. Parent value for `ListAssetsRequest`. */
public List setParent(java.lang.String parent) {
if (!getSuppressPatternChecks()) {
com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(),
"Parameter parent must conform to the pattern " +
"^projects/[^/]+/locations/[^/]+$");
}
this.parent = parent;
return this;
}
/** Filtering results. */
@com.google.api.client.util.Key
private java.lang.String filter;
/** Filtering results.
*/
public java.lang.String getFilter() {
return filter;
}
/** Filtering results. */
public List setFilter(java.lang.String filter) {
this.filter = filter;
return this;
}
/** Field to sort by. See https://google.aip.dev/132#ordering for more details. */
@com.google.api.client.util.Key
private java.lang.String orderBy;
/** Field to sort by. See https://google.aip.dev/132#ordering for more details.
*/
public java.lang.String getOrderBy() {
return orderBy;
}
/** Field to sort by. See https://google.aip.dev/132#ordering for more details. */
public List setOrderBy(java.lang.String orderBy) {
this.orderBy = orderBy;
return this;
}
/**
* Requested page size. Server may return fewer items than requested. If unspecified,
* server will pick an appropriate default.
*/
@com.google.api.client.util.Key
private java.lang.Integer pageSize;
/** Requested page size. Server may return fewer items than requested. If unspecified, server will pick
an appropriate default.
*/
public java.lang.Integer getPageSize() {
return pageSize;
}
/**
* Requested page size. Server may return fewer items than requested. If unspecified,
* server will pick an appropriate default.
*/
public List setPageSize(java.lang.Integer pageSize) {
this.pageSize = pageSize;
return this;
}
/** A token identifying a page of results the server should return. */
@com.google.api.client.util.Key
private java.lang.String pageToken;
/** A token identifying a page of results the server should return.
*/
public java.lang.String getPageToken() {
return pageToken;
}
/** A token identifying a page of results the server should return. */
public List setPageToken(java.lang.String pageToken) {
this.pageToken = pageToken;
return this;
}
/** View of the assets. Defaults to BASIC. */
@com.google.api.client.util.Key
private java.lang.String view;
/** View of the assets. Defaults to BASIC.
*/
public java.lang.String getView() {
return view;
}
/** View of the assets. Defaults to BASIC. */
public List setView(java.lang.String view) {
this.view = view;
return this;
}
@Override
public List set(String parameterName, Object value) {
return (List) super.set(parameterName, value);
}
}
/**
* Updates the parameters of an asset.
*
* Create a request for the method "assets.patch".
*
* This request holds the parameters needed by the migrationcenter server. After setting any
* optional parameters, call the {@link Patch#execute()} method to invoke the remote operation.
*
* @param name Output only. The full name of the asset.
* @param content the {@link com.google.api.services.migrationcenter.v1.model.Asset}
* @return the request
*/
public Patch patch(java.lang.String name, com.google.api.services.migrationcenter.v1.model.Asset content) throws java.io.IOException {
Patch result = new Patch(name, content);
initialize(result);
return result;
}
public class Patch extends MigrationCenterAPIRequest {
private static final String REST_PATH = "v1/{+name}";
private final java.util.regex.Pattern NAME_PATTERN =
java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/assets/[^/]+$");
/**
* Updates the parameters of an asset.
*
* Create a request for the method "assets.patch".
*
* This request holds the parameters needed by the the migrationcenter server. After setting any
* optional parameters, call the {@link Patch#execute()} method to invoke the remote operation.
* {@link
* Patch#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must
* be called to initialize this instance immediately after invoking the constructor.
*
* @param name Output only. The full name of the asset.
* @param content the {@link com.google.api.services.migrationcenter.v1.model.Asset}
* @since 1.13
*/
protected Patch(java.lang.String name, com.google.api.services.migrationcenter.v1.model.Asset content) {
super(MigrationCenterAPI.this, "PATCH", REST_PATH, content, com.google.api.services.migrationcenter.v1.model.Asset.class);
this.name = com.google.api.client.util.Preconditions.checkNotNull(name, "Required parameter name must be specified.");
if (!getSuppressPatternChecks()) {
com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(),
"Parameter name must conform to the pattern " +
"^projects/[^/]+/locations/[^/]+/assets/[^/]+$");
}
}
@Override
public Patch set$Xgafv(java.lang.String $Xgafv) {
return (Patch) super.set$Xgafv($Xgafv);
}
@Override
public Patch setAccessToken(java.lang.String accessToken) {
return (Patch) super.setAccessToken(accessToken);
}
@Override
public Patch setAlt(java.lang.String alt) {
return (Patch) super.setAlt(alt);
}
@Override
public Patch setCallback(java.lang.String callback) {
return (Patch) super.setCallback(callback);
}
@Override
public Patch setFields(java.lang.String fields) {
return (Patch) super.setFields(fields);
}
@Override
public Patch setKey(java.lang.String key) {
return (Patch) super.setKey(key);
}
@Override
public Patch setOauthToken(java.lang.String oauthToken) {
return (Patch) super.setOauthToken(oauthToken);
}
@Override
public Patch setPrettyPrint(java.lang.Boolean prettyPrint) {
return (Patch) super.setPrettyPrint(prettyPrint);
}
@Override
public Patch setQuotaUser(java.lang.String quotaUser) {
return (Patch) super.setQuotaUser(quotaUser);
}
@Override
public Patch setUploadType(java.lang.String uploadType) {
return (Patch) super.setUploadType(uploadType);
}
@Override
public Patch setUploadProtocol(java.lang.String uploadProtocol) {
return (Patch) super.setUploadProtocol(uploadProtocol);
}
/** Output only. The full name of the asset. */
@com.google.api.client.util.Key
private java.lang.String name;
/** Output only. The full name of the asset.
*/
public java.lang.String getName() {
return name;
}
/** Output only. The full name of the asset. */
public Patch setName(java.lang.String name) {
if (!getSuppressPatternChecks()) {
com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(),
"Parameter name must conform to the pattern " +
"^projects/[^/]+/locations/[^/]+/assets/[^/]+$");
}
this.name = name;
return this;
}
/**
* Optional. An optional request ID to identify requests. Specify a unique request ID so
* that if you must retry your request, the server will know to ignore the request if it
* has already been completed. The server will guarantee that for at least 60 minutes
* since the first request. For example, consider a situation where you make an initial
* request and the request times out. If you make the request again with the same request
* ID, the server can check if original operation with the same request ID was received,
* and if so, will ignore the second request. This prevents clients from accidentally
* creating duplicate commitments. The request ID must be a valid UUID with the exception
* that zero UUID is not supported (00000000-0000-0000-0000-000000000000).
*/
@com.google.api.client.util.Key
private java.lang.String requestId;
/** Optional. An optional request ID to identify requests. Specify a unique request ID so that if you
must retry your request, the server will know to ignore the request if it has already been
completed. The server will guarantee that for at least 60 minutes since the first request. For
example, consider a situation where you make an initial request and the request times out. If you
make the request again with the same request ID, the server can check if original operation with
the same request ID was received, and if so, will ignore the second request. This prevents clients
from accidentally creating duplicate commitments. The request ID must be a valid UUID with the
exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).
*/
public java.lang.String getRequestId() {
return requestId;
}
/**
* Optional. An optional request ID to identify requests. Specify a unique request ID so
* that if you must retry your request, the server will know to ignore the request if it
* has already been completed. The server will guarantee that for at least 60 minutes
* since the first request. For example, consider a situation where you make an initial
* request and the request times out. If you make the request again with the same request
* ID, the server can check if original operation with the same request ID was received,
* and if so, will ignore the second request. This prevents clients from accidentally
* creating duplicate commitments. The request ID must be a valid UUID with the exception
* that zero UUID is not supported (00000000-0000-0000-0000-000000000000).
*/
public Patch setRequestId(java.lang.String requestId) {
this.requestId = requestId;
return this;
}
/**
* Required. Field mask is used to specify the fields to be overwritten in the `Asset`
* resource by the update. The values specified in the `update_mask` field are relative to
* the resource, not the full request. A field will be overwritten if it is in the mask. A
* single * value in the mask lets you to overwrite all fields.
*/
@com.google.api.client.util.Key
private String updateMask;
/** Required. Field mask is used to specify the fields to be overwritten in the `Asset` resource by the
update. The values specified in the `update_mask` field are relative to the resource, not the full
request. A field will be overwritten if it is in the mask. A single * value in the mask lets you to
overwrite all fields.
*/
public String getUpdateMask() {
return updateMask;
}
/**
* Required. Field mask is used to specify the fields to be overwritten in the `Asset`
* resource by the update. The values specified in the `update_mask` field are relative to
* the resource, not the full request. A field will be overwritten if it is in the mask. A
* single * value in the mask lets you to overwrite all fields.
*/
public Patch setUpdateMask(String updateMask) {
this.updateMask = updateMask;
return this;
}
@Override
public Patch set(String parameterName, Object value) {
return (Patch) super.set(parameterName, value);
}
}
/**
* Reports a set of frames.
*
* Create a request for the method "assets.reportAssetFrames".
*
* This request holds the parameters needed by the migrationcenter server. After setting any
* optional parameters, call the {@link ReportAssetFrames#execute()} method to invoke the remote
* operation.
*
* @param parent Required. Parent of the resource.
* @param content the {@link com.google.api.services.migrationcenter.v1.model.Frames}
* @return the request
*/
public ReportAssetFrames reportAssetFrames(java.lang.String parent, com.google.api.services.migrationcenter.v1.model.Frames content) throws java.io.IOException {
ReportAssetFrames result = new ReportAssetFrames(parent, content);
initialize(result);
return result;
}
public class ReportAssetFrames extends MigrationCenterAPIRequest {
private static final String REST_PATH = "v1/{+parent}/assets:reportAssetFrames";
private final java.util.regex.Pattern PARENT_PATTERN =
java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+$");
/**
* Reports a set of frames.
*
* Create a request for the method "assets.reportAssetFrames".
*
* This request holds the parameters needed by the the migrationcenter server. After setting any
* optional parameters, call the {@link ReportAssetFrames#execute()} method to invoke the remote
* operation. {@link ReportAssetFrames#initialize(com.google.api.client.googleapis.services.Ab
* stractGoogleClientRequest)} must be called to initialize this instance immediately after
* invoking the constructor.
*
* @param parent Required. Parent of the resource.
* @param content the {@link com.google.api.services.migrationcenter.v1.model.Frames}
* @since 1.13
*/
protected ReportAssetFrames(java.lang.String parent, com.google.api.services.migrationcenter.v1.model.Frames content) {
super(MigrationCenterAPI.this, "POST", REST_PATH, content, com.google.api.services.migrationcenter.v1.model.ReportAssetFramesResponse.class);
this.parent = com.google.api.client.util.Preconditions.checkNotNull(parent, "Required parameter parent must be specified.");
if (!getSuppressPatternChecks()) {
com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(),
"Parameter parent must conform to the pattern " +
"^projects/[^/]+/locations/[^/]+$");
}
}
@Override
public ReportAssetFrames set$Xgafv(java.lang.String $Xgafv) {
return (ReportAssetFrames) super.set$Xgafv($Xgafv);
}
@Override
public ReportAssetFrames setAccessToken(java.lang.String accessToken) {
return (ReportAssetFrames) super.setAccessToken(accessToken);
}
@Override
public ReportAssetFrames setAlt(java.lang.String alt) {
return (ReportAssetFrames) super.setAlt(alt);
}
@Override
public ReportAssetFrames setCallback(java.lang.String callback) {
return (ReportAssetFrames) super.setCallback(callback);
}
@Override
public ReportAssetFrames setFields(java.lang.String fields) {
return (ReportAssetFrames) super.setFields(fields);
}
@Override
public ReportAssetFrames setKey(java.lang.String key) {
return (ReportAssetFrames) super.setKey(key);
}
@Override
public ReportAssetFrames setOauthToken(java.lang.String oauthToken) {
return (ReportAssetFrames) super.setOauthToken(oauthToken);
}
@Override
public ReportAssetFrames setPrettyPrint(java.lang.Boolean prettyPrint) {
return (ReportAssetFrames) super.setPrettyPrint(prettyPrint);
}
@Override
public ReportAssetFrames setQuotaUser(java.lang.String quotaUser) {
return (ReportAssetFrames) super.setQuotaUser(quotaUser);
}
@Override
public ReportAssetFrames setUploadType(java.lang.String uploadType) {
return (ReportAssetFrames) super.setUploadType(uploadType);
}
@Override
public ReportAssetFrames setUploadProtocol(java.lang.String uploadProtocol) {
return (ReportAssetFrames) super.setUploadProtocol(uploadProtocol);
}
/** Required. Parent of the resource. */
@com.google.api.client.util.Key
private java.lang.String parent;
/** Required. Parent of the resource.
*/
public java.lang.String getParent() {
return parent;
}
/** Required. Parent of the resource. */
public ReportAssetFrames setParent(java.lang.String parent) {
if (!getSuppressPatternChecks()) {
com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(),
"Parameter parent must conform to the pattern " +
"^projects/[^/]+/locations/[^/]+$");
}
this.parent = parent;
return this;
}
/** Required. Reference to a source. */
@com.google.api.client.util.Key
private java.lang.String source;
/** Required. Reference to a source.
*/
public java.lang.String getSource() {
return source;
}
/** Required. Reference to a source. */
public ReportAssetFrames setSource(java.lang.String source) {
this.source = source;
return this;
}
@Override
public ReportAssetFrames set(String parameterName, Object value) {
return (ReportAssetFrames) super.set(parameterName, value);
}
}
}
/**
* An accessor for creating requests from the DiscoveryClients collection.
*
* The typical use is:
*
* {@code MigrationCenterAPI migrationcenter = new MigrationCenterAPI(...);}
* {@code MigrationCenterAPI.DiscoveryClients.List request = migrationcenter.discoveryClients().list(parameters ...)}
*
*
* @return the resource collection
*/
public DiscoveryClients discoveryClients() {
return new DiscoveryClients();
}
/**
* The "discoveryClients" collection of methods.
*/
public class DiscoveryClients {
/**
* Creates a new discovery client.
*
* Create a request for the method "discoveryClients.create".
*
* This request holds the parameters needed by the migrationcenter server. After setting any
* optional parameters, call the {@link Create#execute()} method to invoke the remote operation.
*
* @param parent Required. Parent resource.
* @param content the {@link com.google.api.services.migrationcenter.v1.model.DiscoveryClient}
* @return the request
*/
public Create create(java.lang.String parent, com.google.api.services.migrationcenter.v1.model.DiscoveryClient content) throws java.io.IOException {
Create result = new Create(parent, content);
initialize(result);
return result;
}
public class Create extends MigrationCenterAPIRequest {
private static final String REST_PATH = "v1/{+parent}/discoveryClients";
private final java.util.regex.Pattern PARENT_PATTERN =
java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+$");
/**
* Creates a new discovery client.
*
* Create a request for the method "discoveryClients.create".
*
* This request holds the parameters needed by the the migrationcenter server. After setting any
* optional parameters, call the {@link Create#execute()} method to invoke the remote operation.
* {@link
* Create#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must
* be called to initialize this instance immediately after invoking the constructor.
*
* @param parent Required. Parent resource.
* @param content the {@link com.google.api.services.migrationcenter.v1.model.DiscoveryClient}
* @since 1.13
*/
protected Create(java.lang.String parent, com.google.api.services.migrationcenter.v1.model.DiscoveryClient content) {
super(MigrationCenterAPI.this, "POST", REST_PATH, content, com.google.api.services.migrationcenter.v1.model.Operation.class);
this.parent = com.google.api.client.util.Preconditions.checkNotNull(parent, "Required parameter parent must be specified.");
if (!getSuppressPatternChecks()) {
com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(),
"Parameter parent must conform to the pattern " +
"^projects/[^/]+/locations/[^/]+$");
}
}
@Override
public Create set$Xgafv(java.lang.String $Xgafv) {
return (Create) super.set$Xgafv($Xgafv);
}
@Override
public Create setAccessToken(java.lang.String accessToken) {
return (Create) super.setAccessToken(accessToken);
}
@Override
public Create setAlt(java.lang.String alt) {
return (Create) super.setAlt(alt);
}
@Override
public Create setCallback(java.lang.String callback) {
return (Create) super.setCallback(callback);
}
@Override
public Create setFields(java.lang.String fields) {
return (Create) super.setFields(fields);
}
@Override
public Create setKey(java.lang.String key) {
return (Create) super.setKey(key);
}
@Override
public Create setOauthToken(java.lang.String oauthToken) {
return (Create) super.setOauthToken(oauthToken);
}
@Override
public Create setPrettyPrint(java.lang.Boolean prettyPrint) {
return (Create) super.setPrettyPrint(prettyPrint);
}
@Override
public Create setQuotaUser(java.lang.String quotaUser) {
return (Create) super.setQuotaUser(quotaUser);
}
@Override
public Create setUploadType(java.lang.String uploadType) {
return (Create) super.setUploadType(uploadType);
}
@Override
public Create setUploadProtocol(java.lang.String uploadProtocol) {
return (Create) super.setUploadProtocol(uploadProtocol);
}
/** Required. Parent resource. */
@com.google.api.client.util.Key
private java.lang.String parent;
/** Required. Parent resource.
*/
public java.lang.String getParent() {
return parent;
}
/** Required. Parent resource. */
public Create setParent(java.lang.String parent) {
if (!getSuppressPatternChecks()) {
com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(),
"Parameter parent must conform to the pattern " +
"^projects/[^/]+/locations/[^/]+$");
}
this.parent = parent;
return this;
}
/**
* Required. User specified ID for the discovery client. It will become the last component
* of the discovery client name. The ID must be unique within the project, is restricted
* to lower-cased letters and has a maximum length of 63 characters. The ID must match the
* regular expression: `[a-z]([a-z0-9-]{0,61}[a-z0-9])?`.
*/
@com.google.api.client.util.Key
private java.lang.String discoveryClientId;
/** Required. User specified ID for the discovery client. It will become the last component of the
discovery client name. The ID must be unique within the project, is restricted to lower-cased
letters and has a maximum length of 63 characters. The ID must match the regular expression:
`[a-z]([a-z0-9-]{0,61}[a-z0-9])?`.
*/
public java.lang.String getDiscoveryClientId() {
return discoveryClientId;
}
/**
* Required. User specified ID for the discovery client. It will become the last component
* of the discovery client name. The ID must be unique within the project, is restricted
* to lower-cased letters and has a maximum length of 63 characters. The ID must match the
* regular expression: `[a-z]([a-z0-9-]{0,61}[a-z0-9])?`.
*/
public Create setDiscoveryClientId(java.lang.String discoveryClientId) {
this.discoveryClientId = discoveryClientId;
return this;
}
/**
* Optional. An optional request ID to identify requests. Specify a unique request ID so
* that if you must retry your request, the server will know to ignore the request if it
* has already been completed. The server will guarantee that for at least 60 minutes
* since the first request. For example, consider a situation where you make an initial
* request and the request times out. If you make the request again with the same request
* ID, the server can check if original operation with the same request ID was received,
* and if so, will ignore the second request. This prevents clients from accidentally
* creating duplicate commitments. The request ID must be a valid UUID with the exception
* that zero UUID is not supported (00000000-0000-0000-0000-000000000000).
*/
@com.google.api.client.util.Key
private java.lang.String requestId;
/** Optional. An optional request ID to identify requests. Specify a unique request ID so that if you
must retry your request, the server will know to ignore the request if it has already been
completed. The server will guarantee that for at least 60 minutes since the first request. For
example, consider a situation where you make an initial request and the request times out. If you
make the request again with the same request ID, the server can check if original operation with
the same request ID was received, and if so, will ignore the second request. This prevents clients
from accidentally creating duplicate commitments. The request ID must be a valid UUID with the
exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).
*/
public java.lang.String getRequestId() {
return requestId;
}
/**
* Optional. An optional request ID to identify requests. Specify a unique request ID so
* that if you must retry your request, the server will know to ignore the request if it
* has already been completed. The server will guarantee that for at least 60 minutes
* since the first request. For example, consider a situation where you make an initial
* request and the request times out. If you make the request again with the same request
* ID, the server can check if original operation with the same request ID was received,
* and if so, will ignore the second request. This prevents clients from accidentally
* creating duplicate commitments. The request ID must be a valid UUID with the exception
* that zero UUID is not supported (00000000-0000-0000-0000-000000000000).
*/
public Create setRequestId(java.lang.String requestId) {
this.requestId = requestId;
return this;
}
@Override
public Create set(String parameterName, Object value) {
return (Create) super.set(parameterName, value);
}
}
/**
* Deletes a discovery client.
*
* Create a request for the method "discoveryClients.delete".
*
* This request holds the parameters needed by the migrationcenter server. After setting any
* optional parameters, call the {@link Delete#execute()} method to invoke the remote operation.
*
* @param name Required. The discovery client name.
* @return the request
*/
public Delete delete(java.lang.String name) throws java.io.IOException {
Delete result = new Delete(name);
initialize(result);
return result;
}
public class Delete extends MigrationCenterAPIRequest {
private static final String REST_PATH = "v1/{+name}";
private final java.util.regex.Pattern NAME_PATTERN =
java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/discoveryClients/[^/]+$");
/**
* Deletes a discovery client.
*
* Create a request for the method "discoveryClients.delete".
*
* This request holds the parameters needed by the the migrationcenter server. After setting any
* optional parameters, call the {@link Delete#execute()} method to invoke the remote operation.
* {@link
* Delete#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must
* be called to initialize this instance immediately after invoking the constructor.
*
* @param name Required. The discovery client name.
* @since 1.13
*/
protected Delete(java.lang.String name) {
super(MigrationCenterAPI.this, "DELETE", REST_PATH, null, com.google.api.services.migrationcenter.v1.model.Operation.class);
this.name = com.google.api.client.util.Preconditions.checkNotNull(name, "Required parameter name must be specified.");
if (!getSuppressPatternChecks()) {
com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(),
"Parameter name must conform to the pattern " +
"^projects/[^/]+/locations/[^/]+/discoveryClients/[^/]+$");
}
}
@Override
public Delete set$Xgafv(java.lang.String $Xgafv) {
return (Delete) super.set$Xgafv($Xgafv);
}
@Override
public Delete setAccessToken(java.lang.String accessToken) {
return (Delete) super.setAccessToken(accessToken);
}
@Override
public Delete setAlt(java.lang.String alt) {
return (Delete) super.setAlt(alt);
}
@Override
public Delete setCallback(java.lang.String callback) {
return (Delete) super.setCallback(callback);
}
@Override
public Delete setFields(java.lang.String fields) {
return (Delete) super.setFields(fields);
}
@Override
public Delete setKey(java.lang.String key) {
return (Delete) super.setKey(key);
}
@Override
public Delete setOauthToken(java.lang.String oauthToken) {
return (Delete) super.setOauthToken(oauthToken);
}
@Override
public Delete setPrettyPrint(java.lang.Boolean prettyPrint) {
return (Delete) super.setPrettyPrint(prettyPrint);
}
@Override
public Delete setQuotaUser(java.lang.String quotaUser) {
return (Delete) super.setQuotaUser(quotaUser);
}
@Override
public Delete setUploadType(java.lang.String uploadType) {
return (Delete) super.setUploadType(uploadType);
}
@Override
public Delete setUploadProtocol(java.lang.String uploadProtocol) {
return (Delete) super.setUploadProtocol(uploadProtocol);
}
/** Required. The discovery client name. */
@com.google.api.client.util.Key
private java.lang.String name;
/** Required. The discovery client name.
*/
public java.lang.String getName() {
return name;
}
/** Required. The discovery client name. */
public Delete setName(java.lang.String name) {
if (!getSuppressPatternChecks()) {
com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(),
"Parameter name must conform to the pattern " +
"^projects/[^/]+/locations/[^/]+/discoveryClients/[^/]+$");
}
this.name = name;
return this;
}
/**
* Optional. An optional request ID to identify requests. Specify a unique request ID so
* that if you must retry your request, the server will know to ignore the request if it
* has already been completed. The server will guarantee that for at least 60 minutes
* after the first request. For example, consider a situation where you make an initial
* request and the request times out. If you make the request again with the same request
* ID, the server can check if original operation with the same request ID was received,
* and if so, will ignore the second request. This prevents clients from accidentally
* creating duplicate commitments. The request ID must be a valid UUID with the exception
* that zero UUID is not supported (00000000-0000-0000-0000-000000000000).
*/
@com.google.api.client.util.Key
private java.lang.String requestId;
/** Optional. An optional request ID to identify requests. Specify a unique request ID so that if you
must retry your request, the server will know to ignore the request if it has already been
completed. The server will guarantee that for at least 60 minutes after the first request. For
example, consider a situation where you make an initial request and the request times out. If you
make the request again with the same request ID, the server can check if original operation with
the same request ID was received, and if so, will ignore the second request. This prevents clients
from accidentally creating duplicate commitments. The request ID must be a valid UUID with the
exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).
*/
public java.lang.String getRequestId() {
return requestId;
}
/**
* Optional. An optional request ID to identify requests. Specify a unique request ID so
* that if you must retry your request, the server will know to ignore the request if it
* has already been completed. The server will guarantee that for at least 60 minutes
* after the first request. For example, consider a situation where you make an initial
* request and the request times out. If you make the request again with the same request
* ID, the server can check if original operation with the same request ID was received,
* and if so, will ignore the second request. This prevents clients from accidentally
* creating duplicate commitments. The request ID must be a valid UUID with the exception
* that zero UUID is not supported (00000000-0000-0000-0000-000000000000).
*/
public Delete setRequestId(java.lang.String requestId) {
this.requestId = requestId;
return this;
}
@Override
public Delete set(String parameterName, Object value) {
return (Delete) super.set(parameterName, value);
}
}
/**
* Gets the details of a discovery client.
*
* Create a request for the method "discoveryClients.get".
*
* This request holds the parameters needed by the migrationcenter server. After setting any
* optional parameters, call the {@link Get#execute()} method to invoke the remote operation.
*
* @param name Required. The discovery client name.
* @return the request
*/
public Get get(java.lang.String name) throws java.io.IOException {
Get result = new Get(name);
initialize(result);
return result;
}
public class Get extends MigrationCenterAPIRequest {
private static final String REST_PATH = "v1/{+name}";
private final java.util.regex.Pattern NAME_PATTERN =
java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/discoveryClients/[^/]+$");
/**
* Gets the details of a discovery client.
*
* Create a request for the method "discoveryClients.get".
*
* This request holds the parameters needed by the the migrationcenter server. After setting any
* optional parameters, call the {@link Get#execute()} method to invoke the remote operation.
* {@link Get#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)}
* must be called to initialize this instance immediately after invoking the constructor.
*
* @param name Required. The discovery client name.
* @since 1.13
*/
protected Get(java.lang.String name) {
super(MigrationCenterAPI.this, "GET", REST_PATH, null, com.google.api.services.migrationcenter.v1.model.DiscoveryClient.class);
this.name = com.google.api.client.util.Preconditions.checkNotNull(name, "Required parameter name must be specified.");
if (!getSuppressPatternChecks()) {
com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(),
"Parameter name must conform to the pattern " +
"^projects/[^/]+/locations/[^/]+/discoveryClients/[^/]+$");
}
}
@Override
public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException {
return super.executeUsingHead();
}
@Override
public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException {
return super.buildHttpRequestUsingHead();
}
@Override
public Get set$Xgafv(java.lang.String $Xgafv) {
return (Get) super.set$Xgafv($Xgafv);
}
@Override
public Get setAccessToken(java.lang.String accessToken) {
return (Get) super.setAccessToken(accessToken);
}
@Override
public Get setAlt(java.lang.String alt) {
return (Get) super.setAlt(alt);
}
@Override
public Get setCallback(java.lang.String callback) {
return (Get) super.setCallback(callback);
}
@Override
public Get setFields(java.lang.String fields) {
return (Get) super.setFields(fields);
}
@Override
public Get setKey(java.lang.String key) {
return (Get) super.setKey(key);
}
@Override
public Get setOauthToken(java.lang.String oauthToken) {
return (Get) super.setOauthToken(oauthToken);
}
@Override
public Get setPrettyPrint(java.lang.Boolean prettyPrint) {
return (Get) super.setPrettyPrint(prettyPrint);
}
@Override
public Get setQuotaUser(java.lang.String quotaUser) {
return (Get) super.setQuotaUser(quotaUser);
}
@Override
public Get setUploadType(java.lang.String uploadType) {
return (Get) super.setUploadType(uploadType);
}
@Override
public Get setUploadProtocol(java.lang.String uploadProtocol) {
return (Get) super.setUploadProtocol(uploadProtocol);
}
/** Required. The discovery client name. */
@com.google.api.client.util.Key
private java.lang.String name;
/** Required. The discovery client name.
*/
public java.lang.String getName() {
return name;
}
/** Required. The discovery client name. */
public Get setName(java.lang.String name) {
if (!getSuppressPatternChecks()) {
com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(),
"Parameter name must conform to the pattern " +
"^projects/[^/]+/locations/[^/]+/discoveryClients/[^/]+$");
}
this.name = name;
return this;
}
@Override
public Get set(String parameterName, Object value) {
return (Get) super.set(parameterName, value);
}
}
/**
* Lists all the discovery clients in a given project and location.
*
* Create a request for the method "discoveryClients.list".
*
* This request holds the parameters needed by the migrationcenter server. After setting any
* optional parameters, call the {@link List#execute()} method to invoke the remote operation.
*
* @param parent Required. Parent resource.
* @return the request
*/
public List list(java.lang.String parent) throws java.io.IOException {
List result = new List(parent);
initialize(result);
return result;
}
public class List extends MigrationCenterAPIRequest {
private static final String REST_PATH = "v1/{+parent}/discoveryClients";
private final java.util.regex.Pattern PARENT_PATTERN =
java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+$");
/**
* Lists all the discovery clients in a given project and location.
*
* Create a request for the method "discoveryClients.list".
*
* This request holds the parameters needed by the the migrationcenter server. After setting any
* optional parameters, call the {@link List#execute()} method to invoke the remote operation.
* {@link List#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)}
* must be called to initialize this instance immediately after invoking the constructor.
*
* @param parent Required. Parent resource.
* @since 1.13
*/
protected List(java.lang.String parent) {
super(MigrationCenterAPI.this, "GET", REST_PATH, null, com.google.api.services.migrationcenter.v1.model.ListDiscoveryClientsResponse.class);
this.parent = com.google.api.client.util.Preconditions.checkNotNull(parent, "Required parameter parent must be specified.");
if (!getSuppressPatternChecks()) {
com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(),
"Parameter parent must conform to the pattern " +
"^projects/[^/]+/locations/[^/]+$");
}
}
@Override
public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException {
return super.executeUsingHead();
}
@Override
public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException {
return super.buildHttpRequestUsingHead();
}
@Override
public List set$Xgafv(java.lang.String $Xgafv) {
return (List) super.set$Xgafv($Xgafv);
}
@Override
public List setAccessToken(java.lang.String accessToken) {
return (List) super.setAccessToken(accessToken);
}
@Override
public List setAlt(java.lang.String alt) {
return (List) super.setAlt(alt);
}
@Override
public List setCallback(java.lang.String callback) {
return (List) super.setCallback(callback);
}
@Override
public List setFields(java.lang.String fields) {
return (List) super.setFields(fields);
}
@Override
public List setKey(java.lang.String key) {
return (List) super.setKey(key);
}
@Override
public List setOauthToken(java.lang.String oauthToken) {
return (List) super.setOauthToken(oauthToken);
}
@Override
public List setPrettyPrint(java.lang.Boolean prettyPrint) {
return (List) super.setPrettyPrint(prettyPrint);
}
@Override
public List setQuotaUser(java.lang.String quotaUser) {
return (List) super.setQuotaUser(quotaUser);
}
@Override
public List setUploadType(java.lang.String uploadType) {
return (List) super.setUploadType(uploadType);
}
@Override
public List setUploadProtocol(java.lang.String uploadProtocol) {
return (List) super.setUploadProtocol(uploadProtocol);
}
/** Required. Parent resource. */
@com.google.api.client.util.Key
private java.lang.String parent;
/** Required. Parent resource.
*/
public java.lang.String getParent() {
return parent;
}
/** Required. Parent resource. */
public List setParent(java.lang.String parent) {
if (!getSuppressPatternChecks()) {
com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(),
"Parameter parent must conform to the pattern " +
"^projects/[^/]+/locations/[^/]+$");
}
this.parent = parent;
return this;
}
/** Optional. Filter expression to filter results by. */
@com.google.api.client.util.Key
private java.lang.String filter;
/** Optional. Filter expression to filter results by.
*/
public java.lang.String getFilter() {
return filter;
}
/** Optional. Filter expression to filter results by. */
public List setFilter(java.lang.String filter) {
this.filter = filter;
return this;
}
/** Optional. Field to sort by. */
@com.google.api.client.util.Key
private java.lang.String orderBy;
/** Optional. Field to sort by.
*/
public java.lang.String getOrderBy() {
return orderBy;
}
/** Optional. Field to sort by. */
public List setOrderBy(java.lang.String orderBy) {
this.orderBy = orderBy;
return this;
}
/**
* Optional. The maximum number of items to return. The server may return fewer items than
* requested. If unspecified, the server will pick an appropriate default value.
*/
@com.google.api.client.util.Key
private java.lang.Integer pageSize;
/** Optional. The maximum number of items to return. The server may return fewer items than requested.
If unspecified, the server will pick an appropriate default value.
*/
public java.lang.Integer getPageSize() {
return pageSize;
}
/**
* Optional. The maximum number of items to return. The server may return fewer items than
* requested. If unspecified, the server will pick an appropriate default value.
*/
public List setPageSize(java.lang.Integer pageSize) {
this.pageSize = pageSize;
return this;
}
/**
* Optional. A page token, received from a previous `ListDiscoveryClients` call. Provide
* this to retrieve the subsequent page. When paginating, all other parameters provided to
* `ListDiscoveryClients` must match the call that provided the page token.
*/
@com.google.api.client.util.Key
private java.lang.String pageToken;
/** Optional. A page token, received from a previous `ListDiscoveryClients` call. Provide this to
retrieve the subsequent page. When paginating, all other parameters provided to
`ListDiscoveryClients` must match the call that provided the page token.
*/
public java.lang.String getPageToken() {
return pageToken;
}
/**
* Optional. A page token, received from a previous `ListDiscoveryClients` call. Provide
* this to retrieve the subsequent page. When paginating, all other parameters provided to
* `ListDiscoveryClients` must match the call that provided the page token.
*/
public List setPageToken(java.lang.String pageToken) {
this.pageToken = pageToken;
return this;
}
@Override
public List set(String parameterName, Object value) {
return (List) super.set(parameterName, value);
}
}
/**
* Updates a discovery client.
*
* Create a request for the method "discoveryClients.patch".
*
* This request holds the parameters needed by the migrationcenter server. After setting any
* optional parameters, call the {@link Patch#execute()} method to invoke the remote operation.
*
* @param name Output only. Identifier. Full name of this discovery client.
* @param content the {@link com.google.api.services.migrationcenter.v1.model.DiscoveryClient}
* @return the request
*/
public Patch patch(java.lang.String name, com.google.api.services.migrationcenter.v1.model.DiscoveryClient content) throws java.io.IOException {
Patch result = new Patch(name, content);
initialize(result);
return result;
}
public class Patch extends MigrationCenterAPIRequest {
private static final String REST_PATH = "v1/{+name}";
private final java.util.regex.Pattern NAME_PATTERN =
java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/discoveryClients/[^/]+$");
/**
* Updates a discovery client.
*
* Create a request for the method "discoveryClients.patch".
*
* This request holds the parameters needed by the the migrationcenter server. After setting any
* optional parameters, call the {@link Patch#execute()} method to invoke the remote operation.
* {@link
* Patch#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must
* be called to initialize this instance immediately after invoking the constructor.
*
* @param name Output only. Identifier. Full name of this discovery client.
* @param content the {@link com.google.api.services.migrationcenter.v1.model.DiscoveryClient}
* @since 1.13
*/
protected Patch(java.lang.String name, com.google.api.services.migrationcenter.v1.model.DiscoveryClient content) {
super(MigrationCenterAPI.this, "PATCH", REST_PATH, content, com.google.api.services.migrationcenter.v1.model.Operation.class);
this.name = com.google.api.client.util.Preconditions.checkNotNull(name, "Required parameter name must be specified.");
if (!getSuppressPatternChecks()) {
com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(),
"Parameter name must conform to the pattern " +
"^projects/[^/]+/locations/[^/]+/discoveryClients/[^/]+$");
}
}
@Override
public Patch set$Xgafv(java.lang.String $Xgafv) {
return (Patch) super.set$Xgafv($Xgafv);
}
@Override
public Patch setAccessToken(java.lang.String accessToken) {
return (Patch) super.setAccessToken(accessToken);
}
@Override
public Patch setAlt(java.lang.String alt) {
return (Patch) super.setAlt(alt);
}
@Override
public Patch setCallback(java.lang.String callback) {
return (Patch) super.setCallback(callback);
}
@Override
public Patch setFields(java.lang.String fields) {
return (Patch) super.setFields(fields);
}
@Override
public Patch setKey(java.lang.String key) {
return (Patch) super.setKey(key);
}
@Override
public Patch setOauthToken(java.lang.String oauthToken) {
return (Patch) super.setOauthToken(oauthToken);
}
@Override
public Patch setPrettyPrint(java.lang.Boolean prettyPrint) {
return (Patch) super.setPrettyPrint(prettyPrint);
}
@Override
public Patch setQuotaUser(java.lang.String quotaUser) {
return (Patch) super.setQuotaUser(quotaUser);
}
@Override
public Patch setUploadType(java.lang.String uploadType) {
return (Patch) super.setUploadType(uploadType);
}
@Override
public Patch setUploadProtocol(java.lang.String uploadProtocol) {
return (Patch) super.setUploadProtocol(uploadProtocol);
}
/** Output only. Identifier. Full name of this discovery client. */
@com.google.api.client.util.Key
private java.lang.String name;
/** Output only. Identifier. Full name of this discovery client.
*/
public java.lang.String getName() {
return name;
}
/** Output only. Identifier. Full name of this discovery client. */
public Patch setName(java.lang.String name) {
if (!getSuppressPatternChecks()) {
com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(),
"Parameter name must conform to the pattern " +
"^projects/[^/]+/locations/[^/]+/discoveryClients/[^/]+$");
}
this.name = name;
return this;
}
/**
* Optional. An optional request ID to identify requests. Specify a unique request ID so
* that if you must retry your request, the server will know to ignore the request if it
* has already been completed. The server will guarantee that for at least 60 minutes
* since the first request. For example, consider a situation where you make an initial
* request and the request times out. If you make the request again with the same request
* ID, the server can check if original operation with the same request ID was received,
* and if so, will ignore the second request. This prevents clients from accidentally
* creating duplicate commitments. The request ID must be a valid UUID with the exception
* that zero UUID is not supported (00000000-0000-0000-0000-000000000000).
*/
@com.google.api.client.util.Key
private java.lang.String requestId;
/** Optional. An optional request ID to identify requests. Specify a unique request ID so that if you
must retry your request, the server will know to ignore the request if it has already been
completed. The server will guarantee that for at least 60 minutes since the first request. For
example, consider a situation where you make an initial request and the request times out. If you
make the request again with the same request ID, the server can check if original operation with
the same request ID was received, and if so, will ignore the second request. This prevents clients
from accidentally creating duplicate commitments. The request ID must be a valid UUID with the
exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).
*/
public java.lang.String getRequestId() {
return requestId;
}
/**
* Optional. An optional request ID to identify requests. Specify a unique request ID so
* that if you must retry your request, the server will know to ignore the request if it
* has already been completed. The server will guarantee that for at least 60 minutes
* since the first request. For example, consider a situation where you make an initial
* request and the request times out. If you make the request again with the same request
* ID, the server can check if original operation with the same request ID was received,
* and if so, will ignore the second request. This prevents clients from accidentally
* creating duplicate commitments. The request ID must be a valid UUID with the exception
* that zero UUID is not supported (00000000-0000-0000-0000-000000000000).
*/
public Patch setRequestId(java.lang.String requestId) {
this.requestId = requestId;
return this;
}
/**
* Required. Update mask is used to specify the fields to be overwritten in the
* `DiscoveryClient` resource by the update. The values specified in the `update_mask`
* field are relative to the resource, not the full request. A field will be overwritten
* if it is in the mask. A single * value in the mask lets you to overwrite all fields.
*/
@com.google.api.client.util.Key
private String updateMask;
/** Required. Update mask is used to specify the fields to be overwritten in the `DiscoveryClient`
resource by the update. The values specified in the `update_mask` field are relative to the
resource, not the full request. A field will be overwritten if it is in the mask. A single * value
in the mask lets you to overwrite all fields.
*/
public String getUpdateMask() {
return updateMask;
}
/**
* Required. Update mask is used to specify the fields to be overwritten in the
* `DiscoveryClient` resource by the update. The values specified in the `update_mask`
* field are relative to the resource, not the full request. A field will be overwritten
* if it is in the mask. A single * value in the mask lets you to overwrite all fields.
*/
public Patch setUpdateMask(String updateMask) {
this.updateMask = updateMask;
return this;
}
@Override
public Patch set(String parameterName, Object value) {
return (Patch) super.set(parameterName, value);
}
}
/**
* Sends a discovery client heartbeat. Healthy clients are expected to send heartbeats regularly
* (normally every few minutes).
*
* Create a request for the method "discoveryClients.sendHeartbeat".
*
* This request holds the parameters needed by the migrationcenter server. After setting any
* optional parameters, call the {@link SendHeartbeat#execute()} method to invoke the remote
* operation.
*
* @param name Required. The discovery client name.
* @param content the {@link com.google.api.services.migrationcenter.v1.model.SendDiscoveryClientHeartbeatRequest}
* @return the request
*/
public SendHeartbeat sendHeartbeat(java.lang.String name, com.google.api.services.migrationcenter.v1.model.SendDiscoveryClientHeartbeatRequest content) throws java.io.IOException {
SendHeartbeat result = new SendHeartbeat(name, content);
initialize(result);
return result;
}
public class SendHeartbeat extends MigrationCenterAPIRequest {
private static final String REST_PATH = "v1/{+name}:sendHeartbeat";
private final java.util.regex.Pattern NAME_PATTERN =
java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/discoveryClients/[^/]+$");
/**
* Sends a discovery client heartbeat. Healthy clients are expected to send heartbeats regularly
* (normally every few minutes).
*
* Create a request for the method "discoveryClients.sendHeartbeat".
*
* This request holds the parameters needed by the the migrationcenter server. After setting any
* optional parameters, call the {@link SendHeartbeat#execute()} method to invoke the remote
* operation. {@link SendHeartbeat#initialize(com.google.api.client.googleapis.services.Abstra
* ctGoogleClientRequest)} must be called to initialize this instance immediately after invoking
* the constructor.
*
* @param name Required. The discovery client name.
* @param content the {@link com.google.api.services.migrationcenter.v1.model.SendDiscoveryClientHeartbeatRequest}
* @since 1.13
*/
protected SendHeartbeat(java.lang.String name, com.google.api.services.migrationcenter.v1.model.SendDiscoveryClientHeartbeatRequest content) {
super(MigrationCenterAPI.this, "POST", REST_PATH, content, com.google.api.services.migrationcenter.v1.model.Operation.class);
this.name = com.google.api.client.util.Preconditions.checkNotNull(name, "Required parameter name must be specified.");
if (!getSuppressPatternChecks()) {
com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(),
"Parameter name must conform to the pattern " +
"^projects/[^/]+/locations/[^/]+/discoveryClients/[^/]+$");
}
}
@Override
public SendHeartbeat set$Xgafv(java.lang.String $Xgafv) {
return (SendHeartbeat) super.set$Xgafv($Xgafv);
}
@Override
public SendHeartbeat setAccessToken(java.lang.String accessToken) {
return (SendHeartbeat) super.setAccessToken(accessToken);
}
@Override
public SendHeartbeat setAlt(java.lang.String alt) {
return (SendHeartbeat) super.setAlt(alt);
}
@Override
public SendHeartbeat setCallback(java.lang.String callback) {
return (SendHeartbeat) super.setCallback(callback);
}
@Override
public SendHeartbeat setFields(java.lang.String fields) {
return (SendHeartbeat) super.setFields(fields);
}
@Override
public SendHeartbeat setKey(java.lang.String key) {
return (SendHeartbeat) super.setKey(key);
}
@Override
public SendHeartbeat setOauthToken(java.lang.String oauthToken) {
return (SendHeartbeat) super.setOauthToken(oauthToken);
}
@Override
public SendHeartbeat setPrettyPrint(java.lang.Boolean prettyPrint) {
return (SendHeartbeat) super.setPrettyPrint(prettyPrint);
}
@Override
public SendHeartbeat setQuotaUser(java.lang.String quotaUser) {
return (SendHeartbeat) super.setQuotaUser(quotaUser);
}
@Override
public SendHeartbeat setUploadType(java.lang.String uploadType) {
return (SendHeartbeat) super.setUploadType(uploadType);
}
@Override
public SendHeartbeat setUploadProtocol(java.lang.String uploadProtocol) {
return (SendHeartbeat) super.setUploadProtocol(uploadProtocol);
}
/** Required. The discovery client name. */
@com.google.api.client.util.Key
private java.lang.String name;
/** Required. The discovery client name.
*/
public java.lang.String getName() {
return name;
}
/** Required. The discovery client name. */
public SendHeartbeat setName(java.lang.String name) {
if (!getSuppressPatternChecks()) {
com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(),
"Parameter name must conform to the pattern " +
"^projects/[^/]+/locations/[^/]+/discoveryClients/[^/]+$");
}
this.name = name;
return this;
}
@Override
public SendHeartbeat set(String parameterName, Object value) {
return (SendHeartbeat) super.set(parameterName, value);
}
}
}
/**
* An accessor for creating requests from the Groups collection.
*
* The typical use is:
*
* {@code MigrationCenterAPI migrationcenter = new MigrationCenterAPI(...);}
* {@code MigrationCenterAPI.Groups.List request = migrationcenter.groups().list(parameters ...)}
*
*
* @return the resource collection
*/
public Groups groups() {
return new Groups();
}
/**
* The "groups" collection of methods.
*/
public class Groups {
/**
* Adds assets to a group.
*
* Create a request for the method "groups.addAssets".
*
* This request holds the parameters needed by the migrationcenter server. After setting any
* optional parameters, call the {@link AddAssets#execute()} method to invoke the remote operation.
*
* @param group Required. Group reference.
* @param content the {@link com.google.api.services.migrationcenter.v1.model.AddAssetsToGroupRequest}
* @return the request
*/
public AddAssets addAssets(java.lang.String group, com.google.api.services.migrationcenter.v1.model.AddAssetsToGroupRequest content) throws java.io.IOException {
AddAssets result = new AddAssets(group, content);
initialize(result);
return result;
}
public class AddAssets extends MigrationCenterAPIRequest {
private static final String REST_PATH = "v1/{+group}:addAssets";
private final java.util.regex.Pattern GROUP_PATTERN =
java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/groups/[^/]+$");
/**
* Adds assets to a group.
*
* Create a request for the method "groups.addAssets".
*
* This request holds the parameters needed by the the migrationcenter server. After setting any
* optional parameters, call the {@link AddAssets#execute()} method to invoke the remote
* operation. {@link
* AddAssets#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)}
* must be called to initialize this instance immediately after invoking the constructor.
*
* @param group Required. Group reference.
* @param content the {@link com.google.api.services.migrationcenter.v1.model.AddAssetsToGroupRequest}
* @since 1.13
*/
protected AddAssets(java.lang.String group, com.google.api.services.migrationcenter.v1.model.AddAssetsToGroupRequest content) {
super(MigrationCenterAPI.this, "POST", REST_PATH, content, com.google.api.services.migrationcenter.v1.model.Operation.class);
this.group = com.google.api.client.util.Preconditions.checkNotNull(group, "Required parameter group must be specified.");
if (!getSuppressPatternChecks()) {
com.google.api.client.util.Preconditions.checkArgument(GROUP_PATTERN.matcher(group).matches(),
"Parameter group must conform to the pattern " +
"^projects/[^/]+/locations/[^/]+/groups/[^/]+$");
}
}
@Override
public AddAssets set$Xgafv(java.lang.String $Xgafv) {
return (AddAssets) super.set$Xgafv($Xgafv);
}
@Override
public AddAssets setAccessToken(java.lang.String accessToken) {
return (AddAssets) super.setAccessToken(accessToken);
}
@Override
public AddAssets setAlt(java.lang.String alt) {
return (AddAssets) super.setAlt(alt);
}
@Override
public AddAssets setCallback(java.lang.String callback) {
return (AddAssets) super.setCallback(callback);
}
@Override
public AddAssets setFields(java.lang.String fields) {
return (AddAssets) super.setFields(fields);
}
@Override
public AddAssets setKey(java.lang.String key) {
return (AddAssets) super.setKey(key);
}
@Override
public AddAssets setOauthToken(java.lang.String oauthToken) {
return (AddAssets) super.setOauthToken(oauthToken);
}
@Override
public AddAssets setPrettyPrint(java.lang.Boolean prettyPrint) {
return (AddAssets) super.setPrettyPrint(prettyPrint);
}
@Override
public AddAssets setQuotaUser(java.lang.String quotaUser) {
return (AddAssets) super.setQuotaUser(quotaUser);
}
@Override
public AddAssets setUploadType(java.lang.String uploadType) {
return (AddAssets) super.setUploadType(uploadType);
}
@Override
public AddAssets setUploadProtocol(java.lang.String uploadProtocol) {
return (AddAssets) super.setUploadProtocol(uploadProtocol);
}
/** Required. Group reference. */
@com.google.api.client.util.Key
private java.lang.String group;
/** Required. Group reference.
*/
public java.lang.String getGroup() {
return group;
}
/** Required. Group reference. */
public AddAssets setGroup(java.lang.String group) {
if (!getSuppressPatternChecks()) {
com.google.api.client.util.Preconditions.checkArgument(GROUP_PATTERN.matcher(group).matches(),
"Parameter group must conform to the pattern " +
"^projects/[^/]+/locations/[^/]+/groups/[^/]+$");
}
this.group = group;
return this;
}
@Override
public AddAssets set(String parameterName, Object value) {
return (AddAssets) super.set(parameterName, value);
}
}
/**
* Creates a new group in a given project and location.
*
* Create a request for the method "groups.create".
*
* This request holds the parameters needed by the migrationcenter server. After setting any
* optional parameters, call the {@link Create#execute()} method to invoke the remote operation.
*
* @param parent Required. Value for parent.
* @param content the {@link com.google.api.services.migrationcenter.v1.model.Group}
* @return the request
*/
public Create create(java.lang.String parent, com.google.api.services.migrationcenter.v1.model.Group content) throws java.io.IOException {
Create result = new Create(parent, content);
initialize(result);
return result;
}
public class Create extends MigrationCenterAPIRequest {
private static final String REST_PATH = "v1/{+parent}/groups";
private final java.util.regex.Pattern PARENT_PATTERN =
java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+$");
/**
* Creates a new group in a given project and location.
*
* Create a request for the method "groups.create".
*
* This request holds the parameters needed by the the migrationcenter server. After setting any
* optional parameters, call the {@link Create#execute()} method to invoke the remote operation.
* {@link
* Create#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must
* be called to initialize this instance immediately after invoking the constructor.
*
* @param parent Required. Value for parent.
* @param content the {@link com.google.api.services.migrationcenter.v1.model.Group}
* @since 1.13
*/
protected Create(java.lang.String parent, com.google.api.services.migrationcenter.v1.model.Group content) {
super(MigrationCenterAPI.this, "POST", REST_PATH, content, com.google.api.services.migrationcenter.v1.model.Operation.class);
this.parent = com.google.api.client.util.Preconditions.checkNotNull(parent, "Required parameter parent must be specified.");
if (!getSuppressPatternChecks()) {
com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(),
"Parameter parent must conform to the pattern " +
"^projects/[^/]+/locations/[^/]+$");
}
}
@Override
public Create set$Xgafv(java.lang.String $Xgafv) {
return (Create) super.set$Xgafv($Xgafv);
}
@Override
public Create setAccessToken(java.lang.String accessToken) {
return (Create) super.setAccessToken(accessToken);
}
@Override
public Create setAlt(java.lang.String alt) {
return (Create) super.setAlt(alt);
}
@Override
public Create setCallback(java.lang.String callback) {
return (Create) super.setCallback(callback);
}
@Override
public Create setFields(java.lang.String fields) {
return (Create) super.setFields(fields);
}
@Override
public Create setKey(java.lang.String key) {
return (Create) super.setKey(key);
}
@Override
public Create setOauthToken(java.lang.String oauthToken) {
return (Create) super.setOauthToken(oauthToken);
}
@Override
public Create setPrettyPrint(java.lang.Boolean prettyPrint) {
return (Create) super.setPrettyPrint(prettyPrint);
}
@Override
public Create setQuotaUser(java.lang.String quotaUser) {
return (Create) super.setQuotaUser(quotaUser);
}
@Override
public Create setUploadType(java.lang.String uploadType) {
return (Create) super.setUploadType(uploadType);
}
@Override
public Create setUploadProtocol(java.lang.String uploadProtocol) {
return (Create) super.setUploadProtocol(uploadProtocol);
}
/** Required. Value for parent. */
@com.google.api.client.util.Key
private java.lang.String parent;
/** Required. Value for parent.
*/
public java.lang.String getParent() {
return parent;
}
/** Required. Value for parent. */
public Create setParent(java.lang.String parent) {
if (!getSuppressPatternChecks()) {
com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(),
"Parameter parent must conform to the pattern " +
"^projects/[^/]+/locations/[^/]+$");
}
this.parent = parent;
return this;
}
/**
* Required. User specified ID for the group. It will become the last component of the
* group name. The ID must be unique within the project, must conform with RFC-1034, is
* restricted to lower-cased letters, and has a maximum length of 63 characters. The ID
* must match the regular expression: `[a-z]([a-z0-9-]{0,61}[a-z0-9])?`.
*/
@com.google.api.client.util.Key
private java.lang.String groupId;
/** Required. User specified ID for the group. It will become the last component of the group name. The
ID must be unique within the project, must conform with RFC-1034, is restricted to lower-cased
letters, and has a maximum length of 63 characters. The ID must match the regular expression:
`[a-z]([a-z0-9-]{0,61}[a-z0-9])?`.
*/
public java.lang.String getGroupId() {
return groupId;
}
/**
* Required. User specified ID for the group. It will become the last component of the
* group name. The ID must be unique within the project, must conform with RFC-1034, is
* restricted to lower-cased letters, and has a maximum length of 63 characters. The ID
* must match the regular expression: `[a-z]([a-z0-9-]{0,61}[a-z0-9])?`.
*/
public Create setGroupId(java.lang.String groupId) {
this.groupId = groupId;
return this;
}
/**
* Optional. An optional request ID to identify requests. Specify a unique request ID so
* that if you must retry your request, the server will know to ignore the request if it
* has already been completed. The server will guarantee that for at least 60 minutes
* since the first request. For example, consider a situation where you make an initial
* request and the request times out. If you make the request again with the same request
* ID, the server can check if original operation with the same request ID was received,
* and if so, will ignore the second request. This prevents clients from accidentally
* creating duplicate commitments. The request ID must be a valid UUID with the exception
* that zero UUID is not supported (00000000-0000-0000-0000-000000000000).
*/
@com.google.api.client.util.Key
private java.lang.String requestId;
/** Optional. An optional request ID to identify requests. Specify a unique request ID so that if you
must retry your request, the server will know to ignore the request if it has already been
completed. The server will guarantee that for at least 60 minutes since the first request. For
example, consider a situation where you make an initial request and the request times out. If you
make the request again with the same request ID, the server can check if original operation with
the same request ID was received, and if so, will ignore the second request. This prevents clients
from accidentally creating duplicate commitments. The request ID must be a valid UUID with the
exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).
*/
public java.lang.String getRequestId() {
return requestId;
}
/**
* Optional. An optional request ID to identify requests. Specify a unique request ID so
* that if you must retry your request, the server will know to ignore the request if it
* has already been completed. The server will guarantee that for at least 60 minutes
* since the first request. For example, consider a situation where you make an initial
* request and the request times out. If you make the request again with the same request
* ID, the server can check if original operation with the same request ID was received,
* and if so, will ignore the second request. This prevents clients from accidentally
* creating duplicate commitments. The request ID must be a valid UUID with the exception
* that zero UUID is not supported (00000000-0000-0000-0000-000000000000).
*/
public Create setRequestId(java.lang.String requestId) {
this.requestId = requestId;
return this;
}
@Override
public Create set(String parameterName, Object value) {
return (Create) super.set(parameterName, value);
}
}
/**
* Deletes a group.
*
* Create a request for the method "groups.delete".
*
* This request holds the parameters needed by the migrationcenter server. After setting any
* optional parameters, call the {@link Delete#execute()} method to invoke the remote operation.
*
* @param name Required. Name of the group resource.
* @return the request
*/
public Delete delete(java.lang.String name) throws java.io.IOException {
Delete result = new Delete(name);
initialize(result);
return result;
}
public class Delete extends MigrationCenterAPIRequest {
private static final String REST_PATH = "v1/{+name}";
private final java.util.regex.Pattern NAME_PATTERN =
java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/groups/[^/]+$");
/**
* Deletes a group.
*
* Create a request for the method "groups.delete".
*
* This request holds the parameters needed by the the migrationcenter server. After setting any
* optional parameters, call the {@link Delete#execute()} method to invoke the remote operation.
* {@link
* Delete#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must
* be called to initialize this instance immediately after invoking the constructor.
*
* @param name Required. Name of the group resource.
* @since 1.13
*/
protected Delete(java.lang.String name) {
super(MigrationCenterAPI.this, "DELETE", REST_PATH, null, com.google.api.services.migrationcenter.v1.model.Operation.class);
this.name = com.google.api.client.util.Preconditions.checkNotNull(name, "Required parameter name must be specified.");
if (!getSuppressPatternChecks()) {
com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(),
"Parameter name must conform to the pattern " +
"^projects/[^/]+/locations/[^/]+/groups/[^/]+$");
}
}
@Override
public Delete set$Xgafv(java.lang.String $Xgafv) {
return (Delete) super.set$Xgafv($Xgafv);
}
@Override
public Delete setAccessToken(java.lang.String accessToken) {
return (Delete) super.setAccessToken(accessToken);
}
@Override
public Delete setAlt(java.lang.String alt) {
return (Delete) super.setAlt(alt);
}
@Override
public Delete setCallback(java.lang.String callback) {
return (Delete) super.setCallback(callback);
}
@Override
public Delete setFields(java.lang.String fields) {
return (Delete) super.setFields(fields);
}
@Override
public Delete setKey(java.lang.String key) {
return (Delete) super.setKey(key);
}
@Override
public Delete setOauthToken(java.lang.String oauthToken) {
return (Delete) super.setOauthToken(oauthToken);
}
@Override
public Delete setPrettyPrint(java.lang.Boolean prettyPrint) {
return (Delete) super.setPrettyPrint(prettyPrint);
}
@Override
public Delete setQuotaUser(java.lang.String quotaUser) {
return (Delete) super.setQuotaUser(quotaUser);
}
@Override
public Delete setUploadType(java.lang.String uploadType) {
return (Delete) super.setUploadType(uploadType);
}
@Override
public Delete setUploadProtocol(java.lang.String uploadProtocol) {
return (Delete) super.setUploadProtocol(uploadProtocol);
}
/** Required. Name of the group resource. */
@com.google.api.client.util.Key
private java.lang.String name;
/** Required. Name of the group resource.
*/
public java.lang.String getName() {
return name;
}
/** Required. Name of the group resource. */
public Delete setName(java.lang.String name) {
if (!getSuppressPatternChecks()) {
com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(),
"Parameter name must conform to the pattern " +
"^projects/[^/]+/locations/[^/]+/groups/[^/]+$");
}
this.name = name;
return this;
}
/**
* Optional. An optional request ID to identify requests. Specify a unique request ID so
* that if you must retry your request, the server will know to ignore the request if it
* has already been completed. The server will guarantee that for at least 60 minutes
* after the first request. For example, consider a situation where you make an initial
* request and the request times out. If you make the request again with the same request
* ID, the server can check if original operation with the same request ID was received,
* and if so, will ignore the second request. This prevents clients from accidentally
* creating duplicate commitments. The request ID must be a valid UUID with the exception
* that zero UUID is not supported (00000000-0000-0000-0000-000000000000).
*/
@com.google.api.client.util.Key
private java.lang.String requestId;
/** Optional. An optional request ID to identify requests. Specify a unique request ID so that if you
must retry your request, the server will know to ignore the request if it has already been
completed. The server will guarantee that for at least 60 minutes after the first request. For
example, consider a situation where you make an initial request and the request times out. If you
make the request again with the same request ID, the server can check if original operation with
the same request ID was received, and if so, will ignore the second request. This prevents clients
from accidentally creating duplicate commitments. The request ID must be a valid UUID with the
exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).
*/
public java.lang.String getRequestId() {
return requestId;
}
/**
* Optional. An optional request ID to identify requests. Specify a unique request ID so
* that if you must retry your request, the server will know to ignore the request if it
* has already been completed. The server will guarantee that for at least 60 minutes
* after the first request. For example, consider a situation where you make an initial
* request and the request times out. If you make the request again with the same request
* ID, the server can check if original operation with the same request ID was received,
* and if so, will ignore the second request. This prevents clients from accidentally
* creating duplicate commitments. The request ID must be a valid UUID with the exception
* that zero UUID is not supported (00000000-0000-0000-0000-000000000000).
*/
public Delete setRequestId(java.lang.String requestId) {
this.requestId = requestId;
return this;
}
@Override
public Delete set(String parameterName, Object value) {
return (Delete) super.set(parameterName, value);
}
}
/**
* Gets the details of a group.
*
* Create a request for the method "groups.get".
*
* This request holds the parameters needed by the migrationcenter server. After setting any
* optional parameters, call the {@link Get#execute()} method to invoke the remote operation.
*
* @param name Required. Name of the resource.
* @return the request
*/
public Get get(java.lang.String name) throws java.io.IOException {
Get result = new Get(name);
initialize(result);
return result;
}
public class Get extends MigrationCenterAPIRequest {
private static final String REST_PATH = "v1/{+name}";
private final java.util.regex.Pattern NAME_PATTERN =
java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/groups/[^/]+$");
/**
* Gets the details of a group.
*
* Create a request for the method "groups.get".
*
* This request holds the parameters needed by the the migrationcenter server. After setting any
* optional parameters, call the {@link Get#execute()} method to invoke the remote operation.
* {@link Get#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)}
* must be called to initialize this instance immediately after invoking the constructor.
*
* @param name Required. Name of the resource.
* @since 1.13
*/
protected Get(java.lang.String name) {
super(MigrationCenterAPI.this, "GET", REST_PATH, null, com.google.api.services.migrationcenter.v1.model.Group.class);
this.name = com.google.api.client.util.Preconditions.checkNotNull(name, "Required parameter name must be specified.");
if (!getSuppressPatternChecks()) {
com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(),
"Parameter name must conform to the pattern " +
"^projects/[^/]+/locations/[^/]+/groups/[^/]+$");
}
}
@Override
public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException {
return super.executeUsingHead();
}
@Override
public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException {
return super.buildHttpRequestUsingHead();
}
@Override
public Get set$Xgafv(java.lang.String $Xgafv) {
return (Get) super.set$Xgafv($Xgafv);
}
@Override
public Get setAccessToken(java.lang.String accessToken) {
return (Get) super.setAccessToken(accessToken);
}
@Override
public Get setAlt(java.lang.String alt) {
return (Get) super.setAlt(alt);
}
@Override
public Get setCallback(java.lang.String callback) {
return (Get) super.setCallback(callback);
}
@Override
public Get setFields(java.lang.String fields) {
return (Get) super.setFields(fields);
}
@Override
public Get setKey(java.lang.String key) {
return (Get) super.setKey(key);
}
@Override
public Get setOauthToken(java.lang.String oauthToken) {
return (Get) super.setOauthToken(oauthToken);
}
@Override
public Get setPrettyPrint(java.lang.Boolean prettyPrint) {
return (Get) super.setPrettyPrint(prettyPrint);
}
@Override
public Get setQuotaUser(java.lang.String quotaUser) {
return (Get) super.setQuotaUser(quotaUser);
}
@Override
public Get setUploadType(java.lang.String uploadType) {
return (Get) super.setUploadType(uploadType);
}
@Override
public Get setUploadProtocol(java.lang.String uploadProtocol) {
return (Get) super.setUploadProtocol(uploadProtocol);
}
/** Required. Name of the resource. */
@com.google.api.client.util.Key
private java.lang.String name;
/** Required. Name of the resource.
*/
public java.lang.String getName() {
return name;
}
/** Required. Name of the resource. */
public Get setName(java.lang.String name) {
if (!getSuppressPatternChecks()) {
com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(),
"Parameter name must conform to the pattern " +
"^projects/[^/]+/locations/[^/]+/groups/[^/]+$");
}
this.name = name;
return this;
}
@Override
public Get set(String parameterName, Object value) {
return (Get) super.set(parameterName, value);
}
}
/**
* Lists all groups in a given project and location.
*
* Create a request for the method "groups.list".
*
* This request holds the parameters needed by the migrationcenter server. After setting any
* optional parameters, call the {@link List#execute()} method to invoke the remote operation.
*
* @param parent Required. Parent value for `ListGroupsRequest`.
* @return the request
*/
public List list(java.lang.String parent) throws java.io.IOException {
List result = new List(parent);
initialize(result);
return result;
}
public class List extends MigrationCenterAPIRequest {
private static final String REST_PATH = "v1/{+parent}/groups";
private final java.util.regex.Pattern PARENT_PATTERN =
java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+$");
/**
* Lists all groups in a given project and location.
*
* Create a request for the method "groups.list".
*
* This request holds the parameters needed by the the migrationcenter server. After setting any
* optional parameters, call the {@link List#execute()} method to invoke the remote operation.
* {@link List#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)}
* must be called to initialize this instance immediately after invoking the constructor.
*
* @param parent Required. Parent value for `ListGroupsRequest`.
* @since 1.13
*/
protected List(java.lang.String parent) {
super(MigrationCenterAPI.this, "GET", REST_PATH, null, com.google.api.services.migrationcenter.v1.model.ListGroupsResponse.class);
this.parent = com.google.api.client.util.Preconditions.checkNotNull(parent, "Required parameter parent must be specified.");
if (!getSuppressPatternChecks()) {
com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(),
"Parameter parent must conform to the pattern " +
"^projects/[^/]+/locations/[^/]+$");
}
}
@Override
public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException {
return super.executeUsingHead();
}
@Override
public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException {
return super.buildHttpRequestUsingHead();
}
@Override
public List set$Xgafv(java.lang.String $Xgafv) {
return (List) super.set$Xgafv($Xgafv);
}
@Override
public List setAccessToken(java.lang.String accessToken) {
return (List) super.setAccessToken(accessToken);
}
@Override
public List setAlt(java.lang.String alt) {
return (List) super.setAlt(alt);
}
@Override
public List setCallback(java.lang.String callback) {
return (List) super.setCallback(callback);
}
@Override
public List setFields(java.lang.String fields) {
return (List) super.setFields(fields);
}
@Override
public List setKey(java.lang.String key) {
return (List) super.setKey(key);
}
@Override
public List setOauthToken(java.lang.String oauthToken) {
return (List) super.setOauthToken(oauthToken);
}
@Override
public List setPrettyPrint(java.lang.Boolean prettyPrint) {
return (List) super.setPrettyPrint(prettyPrint);
}
@Override
public List setQuotaUser(java.lang.String quotaUser) {
return (List) super.setQuotaUser(quotaUser);
}
@Override
public List setUploadType(java.lang.String uploadType) {
return (List) super.setUploadType(uploadType);
}
@Override
public List setUploadProtocol(java.lang.String uploadProtocol) {
return (List) super.setUploadProtocol(uploadProtocol);
}
/** Required. Parent value for `ListGroupsRequest`. */
@com.google.api.client.util.Key
private java.lang.String parent;
/** Required. Parent value for `ListGroupsRequest`.
*/
public java.lang.String getParent() {
return parent;
}
/** Required. Parent value for `ListGroupsRequest`. */
public List setParent(java.lang.String parent) {
if (!getSuppressPatternChecks()) {
com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(),
"Parameter parent must conform to the pattern " +
"^projects/[^/]+/locations/[^/]+$");
}
this.parent = parent;
return this;
}
/** Filtering results. */
@com.google.api.client.util.Key
private java.lang.String filter;
/** Filtering results.
*/
public java.lang.String getFilter() {
return filter;
}
/** Filtering results. */
public List setFilter(java.lang.String filter) {
this.filter = filter;
return this;
}
/** Field to sort by. See https://google.aip.dev/132#ordering for more details. */
@com.google.api.client.util.Key
private java.lang.String orderBy;
/** Field to sort by. See https://google.aip.dev/132#ordering for more details.
*/
public java.lang.String getOrderBy() {
return orderBy;
}
/** Field to sort by. See https://google.aip.dev/132#ordering for more details. */
public List setOrderBy(java.lang.String orderBy) {
this.orderBy = orderBy;
return this;
}
/**
* Requested page size. Server may return fewer items than requested. If unspecified,
* server will pick an appropriate default.
*/
@com.google.api.client.util.Key
private java.lang.Integer pageSize;
/** Requested page size. Server may return fewer items than requested. If unspecified, server will pick
an appropriate default.
*/
public java.lang.Integer getPageSize() {
return pageSize;
}
/**
* Requested page size. Server may return fewer items than requested. If unspecified,
* server will pick an appropriate default.
*/
public List setPageSize(java.lang.Integer pageSize) {
this.pageSize = pageSize;
return this;
}
/** A token identifying a page of results the server should return. */
@com.google.api.client.util.Key
private java.lang.String pageToken;
/** A token identifying a page of results the server should return.
*/
public java.lang.String getPageToken() {
return pageToken;
}
/** A token identifying a page of results the server should return. */
public List setPageToken(java.lang.String pageToken) {
this.pageToken = pageToken;
return this;
}
@Override
public List set(String parameterName, Object value) {
return (List) super.set(parameterName, value);
}
}
/**
* Updates the parameters of a group.
*
* Create a request for the method "groups.patch".
*
* This request holds the parameters needed by the migrationcenter server. After setting any
* optional parameters, call the {@link Patch#execute()} method to invoke the remote operation.
*
* @param name Output only. The name of the group.
* @param content the {@link com.google.api.services.migrationcenter.v1.model.Group}
* @return the request
*/
public Patch patch(java.lang.String name, com.google.api.services.migrationcenter.v1.model.Group content) throws java.io.IOException {
Patch result = new Patch(name, content);
initialize(result);
return result;
}
public class Patch extends MigrationCenterAPIRequest {
private static final String REST_PATH = "v1/{+name}";
private final java.util.regex.Pattern NAME_PATTERN =
java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/groups/[^/]+$");
/**
* Updates the parameters of a group.
*
* Create a request for the method "groups.patch".
*
* This request holds the parameters needed by the the migrationcenter server. After setting any
* optional parameters, call the {@link Patch#execute()} method to invoke the remote operation.
* {@link
* Patch#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must
* be called to initialize this instance immediately after invoking the constructor.
*
* @param name Output only. The name of the group.
* @param content the {@link com.google.api.services.migrationcenter.v1.model.Group}
* @since 1.13
*/
protected Patch(java.lang.String name, com.google.api.services.migrationcenter.v1.model.Group content) {
super(MigrationCenterAPI.this, "PATCH", REST_PATH, content, com.google.api.services.migrationcenter.v1.model.Operation.class);
this.name = com.google.api.client.util.Preconditions.checkNotNull(name, "Required parameter name must be specified.");
if (!getSuppressPatternChecks()) {
com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(),
"Parameter name must conform to the pattern " +
"^projects/[^/]+/locations/[^/]+/groups/[^/]+$");
}
}
@Override
public Patch set$Xgafv(java.lang.String $Xgafv) {
return (Patch) super.set$Xgafv($Xgafv);
}
@Override
public Patch setAccessToken(java.lang.String accessToken) {
return (Patch) super.setAccessToken(accessToken);
}
@Override
public Patch setAlt(java.lang.String alt) {
return (Patch) super.setAlt(alt);
}
@Override
public Patch setCallback(java.lang.String callback) {
return (Patch) super.setCallback(callback);
}
@Override
public Patch setFields(java.lang.String fields) {
return (Patch) super.setFields(fields);
}
@Override
public Patch setKey(java.lang.String key) {
return (Patch) super.setKey(key);
}
@Override
public Patch setOauthToken(java.lang.String oauthToken) {
return (Patch) super.setOauthToken(oauthToken);
}
@Override
public Patch setPrettyPrint(java.lang.Boolean prettyPrint) {
return (Patch) super.setPrettyPrint(prettyPrint);
}
@Override
public Patch setQuotaUser(java.lang.String quotaUser) {
return (Patch) super.setQuotaUser(quotaUser);
}
@Override
public Patch setUploadType(java.lang.String uploadType) {
return (Patch) super.setUploadType(uploadType);
}
@Override
public Patch setUploadProtocol(java.lang.String uploadProtocol) {
return (Patch) super.setUploadProtocol(uploadProtocol);
}
/** Output only. The name of the group. */
@com.google.api.client.util.Key
private java.lang.String name;
/** Output only. The name of the group.
*/
public java.lang.String getName() {
return name;
}
/** Output only. The name of the group. */
public Patch setName(java.lang.String name) {
if (!getSuppressPatternChecks()) {
com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(),
"Parameter name must conform to the pattern " +
"^projects/[^/]+/locations/[^/]+/groups/[^/]+$");
}
this.name = name;
return this;
}
/**
* Optional. An optional request ID to identify requests. Specify a unique request ID so
* that if you must retry your request, the server will know to ignore the request if it
* has already been completed. The server will guarantee that for at least 60 minutes
* since the first request. For example, consider a situation where you make an initial
* request and the request times out. If you make the request again with the same request
* ID, the server can check if original operation with the same request ID was received,
* and if so, will ignore the second request. This prevents clients from accidentally
* creating duplicate commitments. The request ID must be a valid UUID with the exception
* that zero UUID is not supported (00000000-0000-0000-0000-000000000000).
*/
@com.google.api.client.util.Key
private java.lang.String requestId;
/** Optional. An optional request ID to identify requests. Specify a unique request ID so that if you
must retry your request, the server will know to ignore the request if it has already been
completed. The server will guarantee that for at least 60 minutes since the first request. For
example, consider a situation where you make an initial request and the request times out. If you
make the request again with the same request ID, the server can check if original operation with
the same request ID was received, and if so, will ignore the second request. This prevents clients
from accidentally creating duplicate commitments. The request ID must be a valid UUID with the
exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).
*/
public java.lang.String getRequestId() {
return requestId;
}
/**
* Optional. An optional request ID to identify requests. Specify a unique request ID so
* that if you must retry your request, the server will know to ignore the request if it
* has already been completed. The server will guarantee that for at least 60 minutes
* since the first request. For example, consider a situation where you make an initial
* request and the request times out. If you make the request again with the same request
* ID, the server can check if original operation with the same request ID was received,
* and if so, will ignore the second request. This prevents clients from accidentally
* creating duplicate commitments. The request ID must be a valid UUID with the exception
* that zero UUID is not supported (00000000-0000-0000-0000-000000000000).
*/
public Patch setRequestId(java.lang.String requestId) {
this.requestId = requestId;
return this;
}
/**
* Required. Field mask is used to specify the fields to be overwritten in the `Group`
* resource by the update. The values specified in the `update_mask` are relative to the
* resource, not the full request. A field will be overwritten if it is in the mask. A
* single * value in the mask lets you to overwrite all fields.
*/
@com.google.api.client.util.Key
private String updateMask;
/** Required. Field mask is used to specify the fields to be overwritten in the `Group` resource by the
update. The values specified in the `update_mask` are relative to the resource, not the full
request. A field will be overwritten if it is in the mask. A single * value in the mask lets you to
overwrite all fields.
*/
public String getUpdateMask() {
return updateMask;
}
/**
* Required. Field mask is used to specify the fields to be overwritten in the `Group`
* resource by the update. The values specified in the `update_mask` are relative to the
* resource, not the full request. A field will be overwritten if it is in the mask. A
* single * value in the mask lets you to overwrite all fields.
*/
public Patch setUpdateMask(String updateMask) {
this.updateMask = updateMask;
return this;
}
@Override
public Patch set(String parameterName, Object value) {
return (Patch) super.set(parameterName, value);
}
}
/**
* Removes assets from a group.
*
* Create a request for the method "groups.removeAssets".
*
* This request holds the parameters needed by the migrationcenter server. After setting any
* optional parameters, call the {@link RemoveAssets#execute()} method to invoke the remote
* operation.
*
* @param group Required. Group reference.
* @param content the {@link com.google.api.services.migrationcenter.v1.model.RemoveAssetsFromGroupRequest}
* @return the request
*/
public RemoveAssets removeAssets(java.lang.String group, com.google.api.services.migrationcenter.v1.model.RemoveAssetsFromGroupRequest content) throws java.io.IOException {
RemoveAssets result = new RemoveAssets(group, content);
initialize(result);
return result;
}
public class RemoveAssets extends MigrationCenterAPIRequest {
private static final String REST_PATH = "v1/{+group}:removeAssets";
private final java.util.regex.Pattern GROUP_PATTERN =
java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/groups/[^/]+$");
/**
* Removes assets from a group.
*
* Create a request for the method "groups.removeAssets".
*
* This request holds the parameters needed by the the migrationcenter server. After setting any
* optional parameters, call the {@link RemoveAssets#execute()} method to invoke the remote
* operation. {@link
* RemoveAssets#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)}
* must be called to initialize this instance immediately after invoking the constructor.
*
* @param group Required. Group reference.
* @param content the {@link com.google.api.services.migrationcenter.v1.model.RemoveAssetsFromGroupRequest}
* @since 1.13
*/
protected RemoveAssets(java.lang.String group, com.google.api.services.migrationcenter.v1.model.RemoveAssetsFromGroupRequest content) {
super(MigrationCenterAPI.this, "POST", REST_PATH, content, com.google.api.services.migrationcenter.v1.model.Operation.class);
this.group = com.google.api.client.util.Preconditions.checkNotNull(group, "Required parameter group must be specified.");
if (!getSuppressPatternChecks()) {
com.google.api.client.util.Preconditions.checkArgument(GROUP_PATTERN.matcher(group).matches(),
"Parameter group must conform to the pattern " +
"^projects/[^/]+/locations/[^/]+/groups/[^/]+$");
}
}
@Override
public RemoveAssets set$Xgafv(java.lang.String $Xgafv) {
return (RemoveAssets) super.set$Xgafv($Xgafv);
}
@Override
public RemoveAssets setAccessToken(java.lang.String accessToken) {
return (RemoveAssets) super.setAccessToken(accessToken);
}
@Override
public RemoveAssets setAlt(java.lang.String alt) {
return (RemoveAssets) super.setAlt(alt);
}
@Override
public RemoveAssets setCallback(java.lang.String callback) {
return (RemoveAssets) super.setCallback(callback);
}
@Override
public RemoveAssets setFields(java.lang.String fields) {
return (RemoveAssets) super.setFields(fields);
}
@Override
public RemoveAssets setKey(java.lang.String key) {
return (RemoveAssets) super.setKey(key);
}
@Override
public RemoveAssets setOauthToken(java.lang.String oauthToken) {
return (RemoveAssets) super.setOauthToken(oauthToken);
}
@Override
public RemoveAssets setPrettyPrint(java.lang.Boolean prettyPrint) {
return (RemoveAssets) super.setPrettyPrint(prettyPrint);
}
@Override
public RemoveAssets setQuotaUser(java.lang.String quotaUser) {
return (RemoveAssets) super.setQuotaUser(quotaUser);
}
@Override
public RemoveAssets setUploadType(java.lang.String uploadType) {
return (RemoveAssets) super.setUploadType(uploadType);
}
@Override
public RemoveAssets setUploadProtocol(java.lang.String uploadProtocol) {
return (RemoveAssets) super.setUploadProtocol(uploadProtocol);
}
/** Required. Group reference. */
@com.google.api.client.util.Key
private java.lang.String group;
/** Required. Group reference.
*/
public java.lang.String getGroup() {
return group;
}
/** Required. Group reference. */
public RemoveAssets setGroup(java.lang.String group) {
if (!getSuppressPatternChecks()) {
com.google.api.client.util.Preconditions.checkArgument(GROUP_PATTERN.matcher(group).matches(),
"Parameter group must conform to the pattern " +
"^projects/[^/]+/locations/[^/]+/groups/[^/]+$");
}
this.group = group;
return this;
}
@Override
public RemoveAssets set(String parameterName, Object value) {
return (RemoveAssets) super.set(parameterName, value);
}
}
}
/**
* An accessor for creating requests from the ImportJobs collection.
*
* The typical use is:
*
* {@code MigrationCenterAPI migrationcenter = new MigrationCenterAPI(...);}
* {@code MigrationCenterAPI.ImportJobs.List request = migrationcenter.importJobs().list(parameters ...)}
*
*
* @return the resource collection
*/
public ImportJobs importJobs() {
return new ImportJobs();
}
/**
* The "importJobs" collection of methods.
*/
public class ImportJobs {
/**
* Creates an import job.
*
* Create a request for the method "importJobs.create".
*
* This request holds the parameters needed by the migrationcenter server. After setting any
* optional parameters, call the {@link Create#execute()} method to invoke the remote operation.
*
* @param parent Required. Value for parent.
* @param content the {@link com.google.api.services.migrationcenter.v1.model.ImportJob}
* @return the request
*/
public Create create(java.lang.String parent, com.google.api.services.migrationcenter.v1.model.ImportJob content) throws java.io.IOException {
Create result = new Create(parent, content);
initialize(result);
return result;
}
public class Create extends MigrationCenterAPIRequest {
private static final String REST_PATH = "v1/{+parent}/importJobs";
private final java.util.regex.Pattern PARENT_PATTERN =
java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+$");
/**
* Creates an import job.
*
* Create a request for the method "importJobs.create".
*
* This request holds the parameters needed by the the migrationcenter server. After setting any
* optional parameters, call the {@link Create#execute()} method to invoke the remote operation.
* {@link
* Create#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must
* be called to initialize this instance immediately after invoking the constructor.
*
* @param parent Required. Value for parent.
* @param content the {@link com.google.api.services.migrationcenter.v1.model.ImportJob}
* @since 1.13
*/
protected Create(java.lang.String parent, com.google.api.services.migrationcenter.v1.model.ImportJob content) {
super(MigrationCenterAPI.this, "POST", REST_PATH, content, com.google.api.services.migrationcenter.v1.model.Operation.class);
this.parent = com.google.api.client.util.Preconditions.checkNotNull(parent, "Required parameter parent must be specified.");
if (!getSuppressPatternChecks()) {
com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(),
"Parameter parent must conform to the pattern " +
"^projects/[^/]+/locations/[^/]+$");
}
}
@Override
public Create set$Xgafv(java.lang.String $Xgafv) {
return (Create) super.set$Xgafv($Xgafv);
}
@Override
public Create setAccessToken(java.lang.String accessToken) {
return (Create) super.setAccessToken(accessToken);
}
@Override
public Create setAlt(java.lang.String alt) {
return (Create) super.setAlt(alt);
}
@Override
public Create setCallback(java.lang.String callback) {
return (Create) super.setCallback(callback);
}
@Override
public Create setFields(java.lang.String fields) {
return (Create) super.setFields(fields);
}
@Override
public Create setKey(java.lang.String key) {
return (Create) super.setKey(key);
}
@Override
public Create setOauthToken(java.lang.String oauthToken) {
return (Create) super.setOauthToken(oauthToken);
}
@Override
public Create setPrettyPrint(java.lang.Boolean prettyPrint) {
return (Create) super.setPrettyPrint(prettyPrint);
}
@Override
public Create setQuotaUser(java.lang.String quotaUser) {
return (Create) super.setQuotaUser(quotaUser);
}
@Override
public Create setUploadType(java.lang.String uploadType) {
return (Create) super.setUploadType(uploadType);
}
@Override
public Create setUploadProtocol(java.lang.String uploadProtocol) {
return (Create) super.setUploadProtocol(uploadProtocol);
}
/** Required. Value for parent. */
@com.google.api.client.util.Key
private java.lang.String parent;
/** Required. Value for parent.
*/
public java.lang.String getParent() {
return parent;
}
/** Required. Value for parent. */
public Create setParent(java.lang.String parent) {
if (!getSuppressPatternChecks()) {
com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(),
"Parameter parent must conform to the pattern " +
"^projects/[^/]+/locations/[^/]+$");
}
this.parent = parent;
return this;
}
/** Required. ID of the import job. */
@com.google.api.client.util.Key
private java.lang.String importJobId;
/** Required. ID of the import job.
*/
public java.lang.String getImportJobId() {
return importJobId;
}
/** Required. ID of the import job. */
public Create setImportJobId(java.lang.String importJobId) {
this.importJobId = importJobId;
return this;
}
/**
* Optional. An optional request ID to identify requests. Specify a unique request ID so
* that if you must retry your request, the server will know to ignore the request if it
* has already been completed. The server will guarantee that for at least 60 minutes
* since the first request. For example, consider a situation where you make an initial
* request and the request times out. If you make the request again with the same request
* ID, the server can check if original operation with the same request ID was received,
* and if so, will ignore the second request. This prevents clients from accidentally
* creating duplicate commitments. The request ID must be a valid UUID with the exception
* that zero UUID is not supported (00000000-0000-0000-0000-000000000000).
*/
@com.google.api.client.util.Key
private java.lang.String requestId;
/** Optional. An optional request ID to identify requests. Specify a unique request ID so that if you
must retry your request, the server will know to ignore the request if it has already been
completed. The server will guarantee that for at least 60 minutes since the first request. For
example, consider a situation where you make an initial request and the request times out. If you
make the request again with the same request ID, the server can check if original operation with
the same request ID was received, and if so, will ignore the second request. This prevents clients
from accidentally creating duplicate commitments. The request ID must be a valid UUID with the
exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).
*/
public java.lang.String getRequestId() {
return requestId;
}
/**
* Optional. An optional request ID to identify requests. Specify a unique request ID so
* that if you must retry your request, the server will know to ignore the request if it
* has already been completed. The server will guarantee that for at least 60 minutes
* since the first request. For example, consider a situation where you make an initial
* request and the request times out. If you make the request again with the same request
* ID, the server can check if original operation with the same request ID was received,
* and if so, will ignore the second request. This prevents clients from accidentally
* creating duplicate commitments. The request ID must be a valid UUID with the exception
* that zero UUID is not supported (00000000-0000-0000-0000-000000000000).
*/
public Create setRequestId(java.lang.String requestId) {
this.requestId = requestId;
return this;
}
@Override
public Create set(String parameterName, Object value) {
return (Create) super.set(parameterName, value);
}
}
/**
* Deletes an import job.
*
* Create a request for the method "importJobs.delete".
*
* This request holds the parameters needed by the migrationcenter server. After setting any
* optional parameters, call the {@link Delete#execute()} method to invoke the remote operation.
*
* @param name Required. Name of the resource.
* @return the request
*/
public Delete delete(java.lang.String name) throws java.io.IOException {
Delete result = new Delete(name);
initialize(result);
return result;
}
public class Delete extends MigrationCenterAPIRequest {
private static final String REST_PATH = "v1/{+name}";
private final java.util.regex.Pattern NAME_PATTERN =
java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/importJobs/[^/]+$");
/**
* Deletes an import job.
*
* Create a request for the method "importJobs.delete".
*
* This request holds the parameters needed by the the migrationcenter server. After setting any
* optional parameters, call the {@link Delete#execute()} method to invoke the remote operation.
* {@link
* Delete#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must
* be called to initialize this instance immediately after invoking the constructor.
*
* @param name Required. Name of the resource.
* @since 1.13
*/
protected Delete(java.lang.String name) {
super(MigrationCenterAPI.this, "DELETE", REST_PATH, null, com.google.api.services.migrationcenter.v1.model.Operation.class);
this.name = com.google.api.client.util.Preconditions.checkNotNull(name, "Required parameter name must be specified.");
if (!getSuppressPatternChecks()) {
com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(),
"Parameter name must conform to the pattern " +
"^projects/[^/]+/locations/[^/]+/importJobs/[^/]+$");
}
}
@Override
public Delete set$Xgafv(java.lang.String $Xgafv) {
return (Delete) super.set$Xgafv($Xgafv);
}
@Override
public Delete setAccessToken(java.lang.String accessToken) {
return (Delete) super.setAccessToken(accessToken);
}
@Override
public Delete setAlt(java.lang.String alt) {
return (Delete) super.setAlt(alt);
}
@Override
public Delete setCallback(java.lang.String callback) {
return (Delete) super.setCallback(callback);
}
@Override
public Delete setFields(java.lang.String fields) {
return (Delete) super.setFields(fields);
}
@Override
public Delete setKey(java.lang.String key) {
return (Delete) super.setKey(key);
}
@Override
public Delete setOauthToken(java.lang.String oauthToken) {
return (Delete) super.setOauthToken(oauthToken);
}
@Override
public Delete setPrettyPrint(java.lang.Boolean prettyPrint) {
return (Delete) super.setPrettyPrint(prettyPrint);
}
@Override
public Delete setQuotaUser(java.lang.String quotaUser) {
return (Delete) super.setQuotaUser(quotaUser);
}
@Override
public Delete setUploadType(java.lang.String uploadType) {
return (Delete) super.setUploadType(uploadType);
}
@Override
public Delete setUploadProtocol(java.lang.String uploadProtocol) {
return (Delete) super.setUploadProtocol(uploadProtocol);
}
/** Required. Name of the resource. */
@com.google.api.client.util.Key
private java.lang.String name;
/** Required. Name of the resource.
*/
public java.lang.String getName() {
return name;
}
/** Required. Name of the resource. */
public Delete setName(java.lang.String name) {
if (!getSuppressPatternChecks()) {
com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(),
"Parameter name must conform to the pattern " +
"^projects/[^/]+/locations/[^/]+/importJobs/[^/]+$");
}
this.name = name;
return this;
}
/**
* Optional. If set to `true`, any `ImportDataFiles` of this job will also be deleted If
* set to `false`, the request only works if the job has no data files.
*/
@com.google.api.client.util.Key
private java.lang.Boolean force;
/** Optional. If set to `true`, any `ImportDataFiles` of this job will also be deleted If set to
`false`, the request only works if the job has no data files.
*/
public java.lang.Boolean getForce() {
return force;
}
/**
* Optional. If set to `true`, any `ImportDataFiles` of this job will also be deleted If
* set to `false`, the request only works if the job has no data files.
*/
public Delete setForce(java.lang.Boolean force) {
this.force = force;
return this;
}
/**
* Optional. An optional request ID to identify requests. Specify a unique request ID so
* that if you must retry your request, the server will know to ignore the request if it
* has already been completed. The server will guarantee that for at least 60 minutes
* after the first request. For example, consider a situation where you make an initial
* request and the request times out. If you make the request again with the same request
* ID, the server can check if original operation with the same request ID was received,
* and if so, will ignore the second request. This prevents clients from accidentally
* creating duplicate commitments. The request ID must be a valid UUID with the exception
* that zero UUID is not supported (00000000-0000-0000-0000-000000000000).
*/
@com.google.api.client.util.Key
private java.lang.String requestId;
/** Optional. An optional request ID to identify requests. Specify a unique request ID so that if you
must retry your request, the server will know to ignore the request if it has already been
completed. The server will guarantee that for at least 60 minutes after the first request. For
example, consider a situation where you make an initial request and the request times out. If you
make the request again with the same request ID, the server can check if original operation with
the same request ID was received, and if so, will ignore the second request. This prevents clients
from accidentally creating duplicate commitments. The request ID must be a valid UUID with the
exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).
*/
public java.lang.String getRequestId() {
return requestId;
}
/**
* Optional. An optional request ID to identify requests. Specify a unique request ID so
* that if you must retry your request, the server will know to ignore the request if it
* has already been completed. The server will guarantee that for at least 60 minutes
* after the first request. For example, consider a situation where you make an initial
* request and the request times out. If you make the request again with the same request
* ID, the server can check if original operation with the same request ID was received,
* and if so, will ignore the second request. This prevents clients from accidentally
* creating duplicate commitments. The request ID must be a valid UUID with the exception
* that zero UUID is not supported (00000000-0000-0000-0000-000000000000).
*/
public Delete setRequestId(java.lang.String requestId) {
this.requestId = requestId;
return this;
}
@Override
public Delete set(String parameterName, Object value) {
return (Delete) super.set(parameterName, value);
}
}
/**
* Gets the details of an import job.
*
* Create a request for the method "importJobs.get".
*
* This request holds the parameters needed by the migrationcenter server. After setting any
* optional parameters, call the {@link Get#execute()} method to invoke the remote operation.
*
* @param name Required. Name of the resource.
* @return the request
*/
public Get get(java.lang.String name) throws java.io.IOException {
Get result = new Get(name);
initialize(result);
return result;
}
public class Get extends MigrationCenterAPIRequest {
private static final String REST_PATH = "v1/{+name}";
private final java.util.regex.Pattern NAME_PATTERN =
java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/importJobs/[^/]+$");
/**
* Gets the details of an import job.
*
* Create a request for the method "importJobs.get".
*
* This request holds the parameters needed by the the migrationcenter server. After setting any
* optional parameters, call the {@link Get#execute()} method to invoke the remote operation.
* {@link Get#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)}
* must be called to initialize this instance immediately after invoking the constructor.
*
* @param name Required. Name of the resource.
* @since 1.13
*/
protected Get(java.lang.String name) {
super(MigrationCenterAPI.this, "GET", REST_PATH, null, com.google.api.services.migrationcenter.v1.model.ImportJob.class);
this.name = com.google.api.client.util.Preconditions.checkNotNull(name, "Required parameter name must be specified.");
if (!getSuppressPatternChecks()) {
com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(),
"Parameter name must conform to the pattern " +
"^projects/[^/]+/locations/[^/]+/importJobs/[^/]+$");
}
}
@Override
public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException {
return super.executeUsingHead();
}
@Override
public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException {
return super.buildHttpRequestUsingHead();
}
@Override
public Get set$Xgafv(java.lang.String $Xgafv) {
return (Get) super.set$Xgafv($Xgafv);
}
@Override
public Get setAccessToken(java.lang.String accessToken) {
return (Get) super.setAccessToken(accessToken);
}
@Override
public Get setAlt(java.lang.String alt) {
return (Get) super.setAlt(alt);
}
@Override
public Get setCallback(java.lang.String callback) {
return (Get) super.setCallback(callback);
}
@Override
public Get setFields(java.lang.String fields) {
return (Get) super.setFields(fields);
}
@Override
public Get setKey(java.lang.String key) {
return (Get) super.setKey(key);
}
@Override
public Get setOauthToken(java.lang.String oauthToken) {
return (Get) super.setOauthToken(oauthToken);
}
@Override
public Get setPrettyPrint(java.lang.Boolean prettyPrint) {
return (Get) super.setPrettyPrint(prettyPrint);
}
@Override
public Get setQuotaUser(java.lang.String quotaUser) {
return (Get) super.setQuotaUser(quotaUser);
}
@Override
public Get setUploadType(java.lang.String uploadType) {
return (Get) super.setUploadType(uploadType);
}
@Override
public Get setUploadProtocol(java.lang.String uploadProtocol) {
return (Get) super.setUploadProtocol(uploadProtocol);
}
/** Required. Name of the resource. */
@com.google.api.client.util.Key
private java.lang.String name;
/** Required. Name of the resource.
*/
public java.lang.String getName() {
return name;
}
/** Required. Name of the resource. */
public Get setName(java.lang.String name) {
if (!getSuppressPatternChecks()) {
com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(),
"Parameter name must conform to the pattern " +
"^projects/[^/]+/locations/[^/]+/importJobs/[^/]+$");
}
this.name = name;
return this;
}
/** Optional. The level of details of the import job. Default value is FULL. */
@com.google.api.client.util.Key
private java.lang.String view;
/** Optional. The level of details of the import job. Default value is FULL.
*/
public java.lang.String getView() {
return view;
}
/** Optional. The level of details of the import job. Default value is FULL. */
public Get setView(java.lang.String view) {
this.view = view;
return this;
}
@Override
public Get set(String parameterName, Object value) {
return (Get) super.set(parameterName, value);
}
}
/**
* Lists all import jobs.
*
* Create a request for the method "importJobs.list".
*
* This request holds the parameters needed by the migrationcenter server. After setting any
* optional parameters, call the {@link List#execute()} method to invoke the remote operation.
*
* @param parent Required. Parent value for `ListImportJobsRequest`.
* @return the request
*/
public List list(java.lang.String parent) throws java.io.IOException {
List result = new List(parent);
initialize(result);
return result;
}
public class List extends MigrationCenterAPIRequest {
private static final String REST_PATH = "v1/{+parent}/importJobs";
private final java.util.regex.Pattern PARENT_PATTERN =
java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+$");
/**
* Lists all import jobs.
*
* Create a request for the method "importJobs.list".
*
* This request holds the parameters needed by the the migrationcenter server. After setting any
* optional parameters, call the {@link List#execute()} method to invoke the remote operation.
* {@link List#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)}
* must be called to initialize this instance immediately after invoking the constructor.
*
* @param parent Required. Parent value for `ListImportJobsRequest`.
* @since 1.13
*/
protected List(java.lang.String parent) {
super(MigrationCenterAPI.this, "GET", REST_PATH, null, com.google.api.services.migrationcenter.v1.model.ListImportJobsResponse.class);
this.parent = com.google.api.client.util.Preconditions.checkNotNull(parent, "Required parameter parent must be specified.");
if (!getSuppressPatternChecks()) {
com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(),
"Parameter parent must conform to the pattern " +
"^projects/[^/]+/locations/[^/]+$");
}
}
@Override
public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException {
return super.executeUsingHead();
}
@Override
public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException {
return super.buildHttpRequestUsingHead();
}
@Override
public List set$Xgafv(java.lang.String $Xgafv) {
return (List) super.set$Xgafv($Xgafv);
}
@Override
public List setAccessToken(java.lang.String accessToken) {
return (List) super.setAccessToken(accessToken);
}
@Override
public List setAlt(java.lang.String alt) {
return (List) super.setAlt(alt);
}
@Override
public List setCallback(java.lang.String callback) {
return (List) super.setCallback(callback);
}
@Override
public List setFields(java.lang.String fields) {
return (List) super.setFields(fields);
}
@Override
public List setKey(java.lang.String key) {
return (List) super.setKey(key);
}
@Override
public List setOauthToken(java.lang.String oauthToken) {
return (List) super.setOauthToken(oauthToken);
}
@Override
public List setPrettyPrint(java.lang.Boolean prettyPrint) {
return (List) super.setPrettyPrint(prettyPrint);
}
@Override
public List setQuotaUser(java.lang.String quotaUser) {
return (List) super.setQuotaUser(quotaUser);
}
@Override
public List setUploadType(java.lang.String uploadType) {
return (List) super.setUploadType(uploadType);
}
@Override
public List setUploadProtocol(java.lang.String uploadProtocol) {
return (List) super.setUploadProtocol(uploadProtocol);
}
/** Required. Parent value for `ListImportJobsRequest`. */
@com.google.api.client.util.Key
private java.lang.String parent;
/** Required. Parent value for `ListImportJobsRequest`.
*/
public java.lang.String getParent() {
return parent;
}
/** Required. Parent value for `ListImportJobsRequest`. */
public List setParent(java.lang.String parent) {
if (!getSuppressPatternChecks()) {
com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(),
"Parameter parent must conform to the pattern " +
"^projects/[^/]+/locations/[^/]+$");
}
this.parent = parent;
return this;
}
/** Filtering results. */
@com.google.api.client.util.Key
private java.lang.String filter;
/** Filtering results.
*/
public java.lang.String getFilter() {
return filter;
}
/** Filtering results. */
public List setFilter(java.lang.String filter) {
this.filter = filter;
return this;
}
/** Field to sort by. See https://google.aip.dev/132#ordering for more details. */
@com.google.api.client.util.Key
private java.lang.String orderBy;
/** Field to sort by. See https://google.aip.dev/132#ordering for more details.
*/
public java.lang.String getOrderBy() {
return orderBy;
}
/** Field to sort by. See https://google.aip.dev/132#ordering for more details. */
public List setOrderBy(java.lang.String orderBy) {
this.orderBy = orderBy;
return this;
}
/**
* Requested page size. Server may return fewer items than requested. If unspecified,
* server will pick an appropriate default.
*/
@com.google.api.client.util.Key
private java.lang.Integer pageSize;
/** Requested page size. Server may return fewer items than requested. If unspecified, server will pick
an appropriate default.
*/
public java.lang.Integer getPageSize() {
return pageSize;
}
/**
* Requested page size. Server may return fewer items than requested. If unspecified,
* server will pick an appropriate default.
*/
public List setPageSize(java.lang.Integer pageSize) {
this.pageSize = pageSize;
return this;
}
/** A token identifying a page of results the server should return. */
@com.google.api.client.util.Key
private java.lang.String pageToken;
/** A token identifying a page of results the server should return.
*/
public java.lang.String getPageToken() {
return pageToken;
}
/** A token identifying a page of results the server should return. */
public List setPageToken(java.lang.String pageToken) {
this.pageToken = pageToken;
return this;
}
/** Optional. The level of details of each import job. Default value is BASIC. */
@com.google.api.client.util.Key
private java.lang.String view;
/** Optional. The level of details of each import job. Default value is BASIC.
*/
public java.lang.String getView() {
return view;
}
/** Optional. The level of details of each import job. Default value is BASIC. */
public List setView(java.lang.String view) {
this.view = view;
return this;
}
@Override
public List set(String parameterName, Object value) {
return (List) super.set(parameterName, value);
}
}
/**
* Updates an import job.
*
* Create a request for the method "importJobs.patch".
*
* This request holds the parameters needed by the migrationcenter server. After setting any
* optional parameters, call the {@link Patch#execute()} method to invoke the remote operation.
*
* @param name Output only. The full name of the import job.
* @param content the {@link com.google.api.services.migrationcenter.v1.model.ImportJob}
* @return the request
*/
public Patch patch(java.lang.String name, com.google.api.services.migrationcenter.v1.model.ImportJob content) throws java.io.IOException {
Patch result = new Patch(name, content);
initialize(result);
return result;
}
public class Patch extends MigrationCenterAPIRequest {
private static final String REST_PATH = "v1/{+name}";
private final java.util.regex.Pattern NAME_PATTERN =
java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/importJobs/[^/]+$");
/**
* Updates an import job.
*
* Create a request for the method "importJobs.patch".
*
* This request holds the parameters needed by the the migrationcenter server. After setting any
* optional parameters, call the {@link Patch#execute()} method to invoke the remote operation.
* {@link
* Patch#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must
* be called to initialize this instance immediately after invoking the constructor.
*
* @param name Output only. The full name of the import job.
* @param content the {@link com.google.api.services.migrationcenter.v1.model.ImportJob}
* @since 1.13
*/
protected Patch(java.lang.String name, com.google.api.services.migrationcenter.v1.model.ImportJob content) {
super(MigrationCenterAPI.this, "PATCH", REST_PATH, content, com.google.api.services.migrationcenter.v1.model.Operation.class);
this.name = com.google.api.client.util.Preconditions.checkNotNull(name, "Required parameter name must be specified.");
if (!getSuppressPatternChecks()) {
com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(),
"Parameter name must conform to the pattern " +
"^projects/[^/]+/locations/[^/]+/importJobs/[^/]+$");
}
}
@Override
public Patch set$Xgafv(java.lang.String $Xgafv) {
return (Patch) super.set$Xgafv($Xgafv);
}
@Override
public Patch setAccessToken(java.lang.String accessToken) {
return (Patch) super.setAccessToken(accessToken);
}
@Override
public Patch setAlt(java.lang.String alt) {
return (Patch) super.setAlt(alt);
}
@Override
public Patch setCallback(java.lang.String callback) {
return (Patch) super.setCallback(callback);
}
@Override
public Patch setFields(java.lang.String fields) {
return (Patch) super.setFields(fields);
}
@Override
public Patch setKey(java.lang.String key) {
return (Patch) super.setKey(key);
}
@Override
public Patch setOauthToken(java.lang.String oauthToken) {
return (Patch) super.setOauthToken(oauthToken);
}
@Override
public Patch setPrettyPrint(java.lang.Boolean prettyPrint) {
return (Patch) super.setPrettyPrint(prettyPrint);
}
@Override
public Patch setQuotaUser(java.lang.String quotaUser) {
return (Patch) super.setQuotaUser(quotaUser);
}
@Override
public Patch setUploadType(java.lang.String uploadType) {
return (Patch) super.setUploadType(uploadType);
}
@Override
public Patch setUploadProtocol(java.lang.String uploadProtocol) {
return (Patch) super.setUploadProtocol(uploadProtocol);
}
/** Output only. The full name of the import job. */
@com.google.api.client.util.Key
private java.lang.String name;
/** Output only. The full name of the import job.
*/
public java.lang.String getName() {
return name;
}
/** Output only. The full name of the import job. */
public Patch setName(java.lang.String name) {
if (!getSuppressPatternChecks()) {
com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(),
"Parameter name must conform to the pattern " +
"^projects/[^/]+/locations/[^/]+/importJobs/[^/]+$");
}
this.name = name;
return this;
}
/**
* Optional. An optional request ID to identify requests. Specify a unique request ID so
* that if you must retry your request, the server will know to ignore the request if it
* has already been completed. The server will guarantee that for at least 60 minutes
* since the first request. For example, consider a situation where you make an initial
* request and the request times out. If you make the request again with the same request
* ID, the server can check if original operation with the same request ID was received,
* and if so, will ignore the second request. This prevents clients from accidentally
* creating duplicate commitments. The request ID must be a valid UUID with the exception
* that zero UUID is not supported (00000000-0000-0000-0000-000000000000).
*/
@com.google.api.client.util.Key
private java.lang.String requestId;
/** Optional. An optional request ID to identify requests. Specify a unique request ID so that if you
must retry your request, the server will know to ignore the request if it has already been
completed. The server will guarantee that for at least 60 minutes since the first request. For
example, consider a situation where you make an initial request and the request times out. If you
make the request again with the same request ID, the server can check if original operation with
the same request ID was received, and if so, will ignore the second request. This prevents clients
from accidentally creating duplicate commitments. The request ID must be a valid UUID with the
exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).
*/
public java.lang.String getRequestId() {
return requestId;
}
/**
* Optional. An optional request ID to identify requests. Specify a unique request ID so
* that if you must retry your request, the server will know to ignore the request if it
* has already been completed. The server will guarantee that for at least 60 minutes
* since the first request. For example, consider a situation where you make an initial
* request and the request times out. If you make the request again with the same request
* ID, the server can check if original operation with the same request ID was received,
* and if so, will ignore the second request. This prevents clients from accidentally
* creating duplicate commitments. The request ID must be a valid UUID with the exception
* that zero UUID is not supported (00000000-0000-0000-0000-000000000000).
*/
public Patch setRequestId(java.lang.String requestId) {
this.requestId = requestId;
return this;
}
/**
* Required. Field mask is used to specify the fields to be overwritten in the `Asset`
* resource by the update. The values specified in the `update_mask` field are relative to
* the resource, not the full request. A field will be overwritten if it is in the mask. A
* single * value in the mask lets you to overwrite all fields.
*/
@com.google.api.client.util.Key
private String updateMask;
/** Required. Field mask is used to specify the fields to be overwritten in the `Asset` resource by the
update. The values specified in the `update_mask` field are relative to the resource, not the full
request. A field will be overwritten if it is in the mask. A single * value in the mask lets you to
overwrite all fields.
*/
public String getUpdateMask() {
return updateMask;
}
/**
* Required. Field mask is used to specify the fields to be overwritten in the `Asset`
* resource by the update. The values specified in the `update_mask` field are relative to
* the resource, not the full request. A field will be overwritten if it is in the mask. A
* single * value in the mask lets you to overwrite all fields.
*/
public Patch setUpdateMask(String updateMask) {
this.updateMask = updateMask;
return this;
}
@Override
public Patch set(String parameterName, Object value) {
return (Patch) super.set(parameterName, value);
}
}
/**
* Runs an import job.
*
* Create a request for the method "importJobs.run".
*
* This request holds the parameters needed by the migrationcenter server. After setting any
* optional parameters, call the {@link Run#execute()} method to invoke the remote operation.
*
* @param name Required. The name of the import job to run.
* @param content the {@link com.google.api.services.migrationcenter.v1.model.RunImportJobRequest}
* @return the request
*/
public Run run(java.lang.String name, com.google.api.services.migrationcenter.v1.model.RunImportJobRequest content) throws java.io.IOException {
Run result = new Run(name, content);
initialize(result);
return result;
}
public class Run extends MigrationCenterAPIRequest {
private static final String REST_PATH = "v1/{+name}:run";
private final java.util.regex.Pattern NAME_PATTERN =
java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/importJobs/[^/]+$");
/**
* Runs an import job.
*
* Create a request for the method "importJobs.run".
*
* This request holds the parameters needed by the the migrationcenter server. After setting any
* optional parameters, call the {@link Run#execute()} method to invoke the remote operation.
* {@link Run#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)}
* must be called to initialize this instance immediately after invoking the constructor.
*
* @param name Required. The name of the import job to run.
* @param content the {@link com.google.api.services.migrationcenter.v1.model.RunImportJobRequest}
* @since 1.13
*/
protected Run(java.lang.String name, com.google.api.services.migrationcenter.v1.model.RunImportJobRequest content) {
super(MigrationCenterAPI.this, "POST", REST_PATH, content, com.google.api.services.migrationcenter.v1.model.Operation.class);
this.name = com.google.api.client.util.Preconditions.checkNotNull(name, "Required parameter name must be specified.");
if (!getSuppressPatternChecks()) {
com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(),
"Parameter name must conform to the pattern " +
"^projects/[^/]+/locations/[^/]+/importJobs/[^/]+$");
}
}
@Override
public Run set$Xgafv(java.lang.String $Xgafv) {
return (Run) super.set$Xgafv($Xgafv);
}
@Override
public Run setAccessToken(java.lang.String accessToken) {
return (Run) super.setAccessToken(accessToken);
}
@Override
public Run setAlt(java.lang.String alt) {
return (Run) super.setAlt(alt);
}
@Override
public Run setCallback(java.lang.String callback) {
return (Run) super.setCallback(callback);
}
@Override
public Run setFields(java.lang.String fields) {
return (Run) super.setFields(fields);
}
@Override
public Run setKey(java.lang.String key) {
return (Run) super.setKey(key);
}
@Override
public Run setOauthToken(java.lang.String oauthToken) {
return (Run) super.setOauthToken(oauthToken);
}
@Override
public Run setPrettyPrint(java.lang.Boolean prettyPrint) {
return (Run) super.setPrettyPrint(prettyPrint);
}
@Override
public Run setQuotaUser(java.lang.String quotaUser) {
return (Run) super.setQuotaUser(quotaUser);
}
@Override
public Run setUploadType(java.lang.String uploadType) {
return (Run) super.setUploadType(uploadType);
}
@Override
public Run setUploadProtocol(java.lang.String uploadProtocol) {
return (Run) super.setUploadProtocol(uploadProtocol);
}
/** Required. The name of the import job to run. */
@com.google.api.client.util.Key
private java.lang.String name;
/** Required. The name of the import job to run.
*/
public java.lang.String getName() {
return name;
}
/** Required. The name of the import job to run. */
public Run setName(java.lang.String name) {
if (!getSuppressPatternChecks()) {
com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(),
"Parameter name must conform to the pattern " +
"^projects/[^/]+/locations/[^/]+/importJobs/[^/]+$");
}
this.name = name;
return this;
}
@Override
public Run set(String parameterName, Object value) {
return (Run) super.set(parameterName, value);
}
}
/**
* Validates an import job.
*
* Create a request for the method "importJobs.validate".
*
* This request holds the parameters needed by the migrationcenter server. After setting any
* optional parameters, call the {@link Validate#execute()} method to invoke the remote operation.
*
* @param name Required. The name of the import job to validate.
* @param content the {@link com.google.api.services.migrationcenter.v1.model.ValidateImportJobRequest}
* @return the request
*/
public Validate validate(java.lang.String name, com.google.api.services.migrationcenter.v1.model.ValidateImportJobRequest content) throws java.io.IOException {
Validate result = new Validate(name, content);
initialize(result);
return result;
}
public class Validate extends MigrationCenterAPIRequest {
private static final String REST_PATH = "v1/{+name}:validate";
private final java.util.regex.Pattern NAME_PATTERN =
java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/importJobs/[^/]+$");
/**
* Validates an import job.
*
* Create a request for the method "importJobs.validate".
*
* This request holds the parameters needed by the the migrationcenter server. After setting any
* optional parameters, call the {@link Validate#execute()} method to invoke the remote operation.
* {@link
* Validate#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)}
* must be called to initialize this instance immediately after invoking the constructor.
*
* @param name Required. The name of the import job to validate.
* @param content the {@link com.google.api.services.migrationcenter.v1.model.ValidateImportJobRequest}
* @since 1.13
*/
protected Validate(java.lang.String name, com.google.api.services.migrationcenter.v1.model.ValidateImportJobRequest content) {
super(MigrationCenterAPI.this, "POST", REST_PATH, content, com.google.api.services.migrationcenter.v1.model.Operation.class);
this.name = com.google.api.client.util.Preconditions.checkNotNull(name, "Required parameter name must be specified.");
if (!getSuppressPatternChecks()) {
com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(),
"Parameter name must conform to the pattern " +
"^projects/[^/]+/locations/[^/]+/importJobs/[^/]+$");
}
}
@Override
public Validate set$Xgafv(java.lang.String $Xgafv) {
return (Validate) super.set$Xgafv($Xgafv);
}
@Override
public Validate setAccessToken(java.lang.String accessToken) {
return (Validate) super.setAccessToken(accessToken);
}
@Override
public Validate setAlt(java.lang.String alt) {
return (Validate) super.setAlt(alt);
}
@Override
public Validate setCallback(java.lang.String callback) {
return (Validate) super.setCallback(callback);
}
@Override
public Validate setFields(java.lang.String fields) {
return (Validate) super.setFields(fields);
}
@Override
public Validate setKey(java.lang.String key) {
return (Validate) super.setKey(key);
}
@Override
public Validate setOauthToken(java.lang.String oauthToken) {
return (Validate) super.setOauthToken(oauthToken);
}
@Override
public Validate setPrettyPrint(java.lang.Boolean prettyPrint) {
return (Validate) super.setPrettyPrint(prettyPrint);
}
@Override
public Validate setQuotaUser(java.lang.String quotaUser) {
return (Validate) super.setQuotaUser(quotaUser);
}
@Override
public Validate setUploadType(java.lang.String uploadType) {
return (Validate) super.setUploadType(uploadType);
}
@Override
public Validate setUploadProtocol(java.lang.String uploadProtocol) {
return (Validate) super.setUploadProtocol(uploadProtocol);
}
/** Required. The name of the import job to validate. */
@com.google.api.client.util.Key
private java.lang.String name;
/** Required. The name of the import job to validate.
*/
public java.lang.String getName() {
return name;
}
/** Required. The name of the import job to validate. */
public Validate setName(java.lang.String name) {
if (!getSuppressPatternChecks()) {
com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(),
"Parameter name must conform to the pattern " +
"^projects/[^/]+/locations/[^/]+/importJobs/[^/]+$");
}
this.name = name;
return this;
}
@Override
public Validate set(String parameterName, Object value) {
return (Validate) super.set(parameterName, value);
}
}
/**
* An accessor for creating requests from the ImportDataFiles collection.
*
* The typical use is:
*
* {@code MigrationCenterAPI migrationcenter = new MigrationCenterAPI(...);}
* {@code MigrationCenterAPI.ImportDataFiles.List request = migrationcenter.importDataFiles().list(parameters ...)}
*
*
* @return the resource collection
*/
public ImportDataFiles importDataFiles() {
return new ImportDataFiles();
}
/**
* The "importDataFiles" collection of methods.
*/
public class ImportDataFiles {
/**
* Creates an import data file.
*
* Create a request for the method "importDataFiles.create".
*
* This request holds the parameters needed by the migrationcenter server. After setting any
* optional parameters, call the {@link Create#execute()} method to invoke the remote operation.
*
* @param parent Required. Name of the parent of the ImportDataFile.
* @param content the {@link com.google.api.services.migrationcenter.v1.model.ImportDataFile}
* @return the request
*/
public Create create(java.lang.String parent, com.google.api.services.migrationcenter.v1.model.ImportDataFile content) throws java.io.IOException {
Create result = new Create(parent, content);
initialize(result);
return result;
}
public class Create extends MigrationCenterAPIRequest {
private static final String REST_PATH = "v1/{+parent}/importDataFiles";
private final java.util.regex.Pattern PARENT_PATTERN =
java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/importJobs/[^/]+$");
/**
* Creates an import data file.
*
* Create a request for the method "importDataFiles.create".
*
* This request holds the parameters needed by the the migrationcenter server. After setting any
* optional parameters, call the {@link Create#execute()} method to invoke the remote operation.
* {@link
* Create#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must
* be called to initialize this instance immediately after invoking the constructor.
*
* @param parent Required. Name of the parent of the ImportDataFile.
* @param content the {@link com.google.api.services.migrationcenter.v1.model.ImportDataFile}
* @since 1.13
*/
protected Create(java.lang.String parent, com.google.api.services.migrationcenter.v1.model.ImportDataFile content) {
super(MigrationCenterAPI.this, "POST", REST_PATH, content, com.google.api.services.migrationcenter.v1.model.Operation.class);
this.parent = com.google.api.client.util.Preconditions.checkNotNull(parent, "Required parameter parent must be specified.");
if (!getSuppressPatternChecks()) {
com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(),
"Parameter parent must conform to the pattern " +
"^projects/[^/]+/locations/[^/]+/importJobs/[^/]+$");
}
}
@Override
public Create set$Xgafv(java.lang.String $Xgafv) {
return (Create) super.set$Xgafv($Xgafv);
}
@Override
public Create setAccessToken(java.lang.String accessToken) {
return (Create) super.setAccessToken(accessToken);
}
@Override
public Create setAlt(java.lang.String alt) {
return (Create) super.setAlt(alt);
}
@Override
public Create setCallback(java.lang.String callback) {
return (Create) super.setCallback(callback);
}
@Override
public Create setFields(java.lang.String fields) {
return (Create) super.setFields(fields);
}
@Override
public Create setKey(java.lang.String key) {
return (Create) super.setKey(key);
}
@Override
public Create setOauthToken(java.lang.String oauthToken) {
return (Create) super.setOauthToken(oauthToken);
}
@Override
public Create setPrettyPrint(java.lang.Boolean prettyPrint) {
return (Create) super.setPrettyPrint(prettyPrint);
}
@Override
public Create setQuotaUser(java.lang.String quotaUser) {
return (Create) super.setQuotaUser(quotaUser);
}
@Override
public Create setUploadType(java.lang.String uploadType) {
return (Create) super.setUploadType(uploadType);
}
@Override
public Create setUploadProtocol(java.lang.String uploadProtocol) {
return (Create) super.setUploadProtocol(uploadProtocol);
}
/** Required. Name of the parent of the ImportDataFile. */
@com.google.api.client.util.Key
private java.lang.String parent;
/** Required. Name of the parent of the ImportDataFile.
*/
public java.lang.String getParent() {
return parent;
}
/** Required. Name of the parent of the ImportDataFile. */
public Create setParent(java.lang.String parent) {
if (!getSuppressPatternChecks()) {
com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(),
"Parameter parent must conform to the pattern " +
"^projects/[^/]+/locations/[^/]+/importJobs/[^/]+$");
}
this.parent = parent;
return this;
}
/** Required. The ID of the new data file. */
@com.google.api.client.util.Key
private java.lang.String importDataFileId;
/** Required. The ID of the new data file.
*/
public java.lang.String getImportDataFileId() {
return importDataFileId;
}
/** Required. The ID of the new data file. */
public Create setImportDataFileId(java.lang.String importDataFileId) {
this.importDataFileId = importDataFileId;
return this;
}
/**
* Optional. An optional request ID to identify requests. Specify a unique request ID so
* that if you must retry your request, the server will know to ignore the request if it
* has already been completed. The server will guarantee that for at least 60 minutes
* since the first request. For example, consider a situation where you make an initial
* request and the request times out. If you make the request again with the same
* request ID, the server can check if original operation with the same request ID was
* received, and if so, will ignore the second request. This prevents clients from
* accidentally creating duplicate commitments. The request ID must be a valid UUID with
* the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).
*/
@com.google.api.client.util.Key
private java.lang.String requestId;
/** Optional. An optional request ID to identify requests. Specify a unique request ID so that if you
must retry your request, the server will know to ignore the request if it has already been
completed. The server will guarantee that for at least 60 minutes since the first request. For
example, consider a situation where you make an initial request and the request times out. If you
make the request again with the same request ID, the server can check if original operation with
the same request ID was received, and if so, will ignore the second request. This prevents clients
from accidentally creating duplicate commitments. The request ID must be a valid UUID with the
exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).
*/
public java.lang.String getRequestId() {
return requestId;
}
/**
* Optional. An optional request ID to identify requests. Specify a unique request ID so
* that if you must retry your request, the server will know to ignore the request if it
* has already been completed. The server will guarantee that for at least 60 minutes
* since the first request. For example, consider a situation where you make an initial
* request and the request times out. If you make the request again with the same
* request ID, the server can check if original operation with the same request ID was
* received, and if so, will ignore the second request. This prevents clients from
* accidentally creating duplicate commitments. The request ID must be a valid UUID with
* the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).
*/
public Create setRequestId(java.lang.String requestId) {
this.requestId = requestId;
return this;
}
@Override
public Create set(String parameterName, Object value) {
return (Create) super.set(parameterName, value);
}
}
/**
* Delete an import data file.
*
* Create a request for the method "importDataFiles.delete".
*
* This request holds the parameters needed by the migrationcenter server. After setting any
* optional parameters, call the {@link Delete#execute()} method to invoke the remote operation.
*
* @param name Required. Name of the ImportDataFile to delete.
* @return the request
*/
public Delete delete(java.lang.String name) throws java.io.IOException {
Delete result = new Delete(name);
initialize(result);
return result;
}
public class Delete extends MigrationCenterAPIRequest {
private static final String REST_PATH = "v1/{+name}";
private final java.util.regex.Pattern NAME_PATTERN =
java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/importJobs/[^/]+/importDataFiles/[^/]+$");
/**
* Delete an import data file.
*
* Create a request for the method "importDataFiles.delete".
*
* This request holds the parameters needed by the the migrationcenter server. After setting any
* optional parameters, call the {@link Delete#execute()} method to invoke the remote operation.
* {@link
* Delete#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must
* be called to initialize this instance immediately after invoking the constructor.
*
* @param name Required. Name of the ImportDataFile to delete.
* @since 1.13
*/
protected Delete(java.lang.String name) {
super(MigrationCenterAPI.this, "DELETE", REST_PATH, null, com.google.api.services.migrationcenter.v1.model.Operation.class);
this.name = com.google.api.client.util.Preconditions.checkNotNull(name, "Required parameter name must be specified.");
if (!getSuppressPatternChecks()) {
com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(),
"Parameter name must conform to the pattern " +
"^projects/[^/]+/locations/[^/]+/importJobs/[^/]+/importDataFiles/[^/]+$");
}
}
@Override
public Delete set$Xgafv(java.lang.String $Xgafv) {
return (Delete) super.set$Xgafv($Xgafv);
}
@Override
public Delete setAccessToken(java.lang.String accessToken) {
return (Delete) super.setAccessToken(accessToken);
}
@Override
public Delete setAlt(java.lang.String alt) {
return (Delete) super.setAlt(alt);
}
@Override
public Delete setCallback(java.lang.String callback) {
return (Delete) super.setCallback(callback);
}
@Override
public Delete setFields(java.lang.String fields) {
return (Delete) super.setFields(fields);
}
@Override
public Delete setKey(java.lang.String key) {
return (Delete) super.setKey(key);
}
@Override
public Delete setOauthToken(java.lang.String oauthToken) {
return (Delete) super.setOauthToken(oauthToken);
}
@Override
public Delete setPrettyPrint(java.lang.Boolean prettyPrint) {
return (Delete) super.setPrettyPrint(prettyPrint);
}
@Override
public Delete setQuotaUser(java.lang.String quotaUser) {
return (Delete) super.setQuotaUser(quotaUser);
}
@Override
public Delete setUploadType(java.lang.String uploadType) {
return (Delete) super.setUploadType(uploadType);
}
@Override
public Delete setUploadProtocol(java.lang.String uploadProtocol) {
return (Delete) super.setUploadProtocol(uploadProtocol);
}
/** Required. Name of the ImportDataFile to delete. */
@com.google.api.client.util.Key
private java.lang.String name;
/** Required. Name of the ImportDataFile to delete.
*/
public java.lang.String getName() {
return name;
}
/** Required. Name of the ImportDataFile to delete. */
public Delete setName(java.lang.String name) {
if (!getSuppressPatternChecks()) {
com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(),
"Parameter name must conform to the pattern " +
"^projects/[^/]+/locations/[^/]+/importJobs/[^/]+/importDataFiles/[^/]+$");
}
this.name = name;
return this;
}
/**
* Optional. An optional request ID to identify requests. Specify a unique request ID so
* that if you must retry your request, the server will know to ignore the request if it
* has already been completed. The server will guarantee that for at least 60 minutes
* after the first request. For example, consider a situation where you make an initial
* request and the request times out. If you make the request again with the same
* request ID, the server can check if original operation with the same request ID was
* received, and if so, will ignore the second request. This prevents clients from
* accidentally creating duplicate commitments. The request ID must be a valid UUID with
* the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).
*/
@com.google.api.client.util.Key
private java.lang.String requestId;
/** Optional. An optional request ID to identify requests. Specify a unique request ID so that if you
must retry your request, the server will know to ignore the request if it has already been
completed. The server will guarantee that for at least 60 minutes after the first request. For
example, consider a situation where you make an initial request and the request times out. If you
make the request again with the same request ID, the server can check if original operation with
the same request ID was received, and if so, will ignore the second request. This prevents clients
from accidentally creating duplicate commitments. The request ID must be a valid UUID with the
exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).
*/
public java.lang.String getRequestId() {
return requestId;
}
/**
* Optional. An optional request ID to identify requests. Specify a unique request ID so
* that if you must retry your request, the server will know to ignore the request if it
* has already been completed. The server will guarantee that for at least 60 minutes
* after the first request. For example, consider a situation where you make an initial
* request and the request times out. If you make the request again with the same
* request ID, the server can check if original operation with the same request ID was
* received, and if so, will ignore the second request. This prevents clients from
* accidentally creating duplicate commitments. The request ID must be a valid UUID with
* the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).
*/
public Delete setRequestId(java.lang.String requestId) {
this.requestId = requestId;
return this;
}
@Override
public Delete set(String parameterName, Object value) {
return (Delete) super.set(parameterName, value);
}
}
/**
* Gets an import data file.
*
* Create a request for the method "importDataFiles.get".
*
* This request holds the parameters needed by the migrationcenter server. After setting any
* optional parameters, call the {@link Get#execute()} method to invoke the remote operation.
*
* @param name Required. Name of the ImportDataFile.
* @return the request
*/
public Get get(java.lang.String name) throws java.io.IOException {
Get result = new Get(name);
initialize(result);
return result;
}
public class Get extends MigrationCenterAPIRequest {
private static final String REST_PATH = "v1/{+name}";
private final java.util.regex.Pattern NAME_PATTERN =
java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/importJobs/[^/]+/importDataFiles/[^/]+$");
/**
* Gets an import data file.
*
* Create a request for the method "importDataFiles.get".
*
* This request holds the parameters needed by the the migrationcenter server. After setting any
* optional parameters, call the {@link Get#execute()} method to invoke the remote operation.
* {@link Get#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)}
* must be called to initialize this instance immediately after invoking the constructor.
*
* @param name Required. Name of the ImportDataFile.
* @since 1.13
*/
protected Get(java.lang.String name) {
super(MigrationCenterAPI.this, "GET", REST_PATH, null, com.google.api.services.migrationcenter.v1.model.ImportDataFile.class);
this.name = com.google.api.client.util.Preconditions.checkNotNull(name, "Required parameter name must be specified.");
if (!getSuppressPatternChecks()) {
com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(),
"Parameter name must conform to the pattern " +
"^projects/[^/]+/locations/[^/]+/importJobs/[^/]+/importDataFiles/[^/]+$");
}
}
@Override
public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException {
return super.executeUsingHead();
}
@Override
public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException {
return super.buildHttpRequestUsingHead();
}
@Override
public Get set$Xgafv(java.lang.String $Xgafv) {
return (Get) super.set$Xgafv($Xgafv);
}
@Override
public Get setAccessToken(java.lang.String accessToken) {
return (Get) super.setAccessToken(accessToken);
}
@Override
public Get setAlt(java.lang.String alt) {
return (Get) super.setAlt(alt);
}
@Override
public Get setCallback(java.lang.String callback) {
return (Get) super.setCallback(callback);
}
@Override
public Get setFields(java.lang.String fields) {
return (Get) super.setFields(fields);
}
@Override
public Get setKey(java.lang.String key) {
return (Get) super.setKey(key);
}
@Override
public Get setOauthToken(java.lang.String oauthToken) {
return (Get) super.setOauthToken(oauthToken);
}
@Override
public Get setPrettyPrint(java.lang.Boolean prettyPrint) {
return (Get) super.setPrettyPrint(prettyPrint);
}
@Override
public Get setQuotaUser(java.lang.String quotaUser) {
return (Get) super.setQuotaUser(quotaUser);
}
@Override
public Get setUploadType(java.lang.String uploadType) {
return (Get) super.setUploadType(uploadType);
}
@Override
public Get setUploadProtocol(java.lang.String uploadProtocol) {
return (Get) super.setUploadProtocol(uploadProtocol);
}
/** Required. Name of the ImportDataFile. */
@com.google.api.client.util.Key
private java.lang.String name;
/** Required. Name of the ImportDataFile.
*/
public java.lang.String getName() {
return name;
}
/** Required. Name of the ImportDataFile. */
public Get setName(java.lang.String name) {
if (!getSuppressPatternChecks()) {
com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(),
"Parameter name must conform to the pattern " +
"^projects/[^/]+/locations/[^/]+/importJobs/[^/]+/importDataFiles/[^/]+$");
}
this.name = name;
return this;
}
@Override
public Get set(String parameterName, Object value) {
return (Get) super.set(parameterName, value);
}
}
/**
* List import data files.
*
* Create a request for the method "importDataFiles.list".
*
* This request holds the parameters needed by the migrationcenter server. After setting any
* optional parameters, call the {@link List#execute()} method to invoke the remote operation.
*
* @param parent Required. Name of the parent of the `ImportDataFiles` resource.
* @return the request
*/
public List list(java.lang.String parent) throws java.io.IOException {
List result = new List(parent);
initialize(result);
return result;
}
public class List extends MigrationCenterAPIRequest {
private static final String REST_PATH = "v1/{+parent}/importDataFiles";
private final java.util.regex.Pattern PARENT_PATTERN =
java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/importJobs/[^/]+$");
/**
* List import data files.
*
* Create a request for the method "importDataFiles.list".
*
* This request holds the parameters needed by the the migrationcenter server. After setting any
* optional parameters, call the {@link List#execute()} method to invoke the remote operation.
* {@link List#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)}
* must be called to initialize this instance immediately after invoking the constructor.
*
* @param parent Required. Name of the parent of the `ImportDataFiles` resource.
* @since 1.13
*/
protected List(java.lang.String parent) {
super(MigrationCenterAPI.this, "GET", REST_PATH, null, com.google.api.services.migrationcenter.v1.model.ListImportDataFilesResponse.class);
this.parent = com.google.api.client.util.Preconditions.checkNotNull(parent, "Required parameter parent must be specified.");
if (!getSuppressPatternChecks()) {
com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(),
"Parameter parent must conform to the pattern " +
"^projects/[^/]+/locations/[^/]+/importJobs/[^/]+$");
}
}
@Override
public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException {
return super.executeUsingHead();
}
@Override
public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException {
return super.buildHttpRequestUsingHead();
}
@Override
public List set$Xgafv(java.lang.String $Xgafv) {
return (List) super.set$Xgafv($Xgafv);
}
@Override
public List setAccessToken(java.lang.String accessToken) {
return (List) super.setAccessToken(accessToken);
}
@Override
public List setAlt(java.lang.String alt) {
return (List) super.setAlt(alt);
}
@Override
public List setCallback(java.lang.String callback) {
return (List) super.setCallback(callback);
}
@Override
public List setFields(java.lang.String fields) {
return (List) super.setFields(fields);
}
@Override
public List setKey(java.lang.String key) {
return (List) super.setKey(key);
}
@Override
public List setOauthToken(java.lang.String oauthToken) {
return (List) super.setOauthToken(oauthToken);
}
@Override
public List setPrettyPrint(java.lang.Boolean prettyPrint) {
return (List) super.setPrettyPrint(prettyPrint);
}
@Override
public List setQuotaUser(java.lang.String quotaUser) {
return (List) super.setQuotaUser(quotaUser);
}
@Override
public List setUploadType(java.lang.String uploadType) {
return (List) super.setUploadType(uploadType);
}
@Override
public List setUploadProtocol(java.lang.String uploadProtocol) {
return (List) super.setUploadProtocol(uploadProtocol);
}
/** Required. Name of the parent of the `ImportDataFiles` resource. */
@com.google.api.client.util.Key
private java.lang.String parent;
/** Required. Name of the parent of the `ImportDataFiles` resource.
*/
public java.lang.String getParent() {
return parent;
}
/** Required. Name of the parent of the `ImportDataFiles` resource. */
public List setParent(java.lang.String parent) {
if (!getSuppressPatternChecks()) {
com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(),
"Parameter parent must conform to the pattern " +
"^projects/[^/]+/locations/[^/]+/importJobs/[^/]+$");
}
this.parent = parent;
return this;
}
/** Filtering results. */
@com.google.api.client.util.Key
private java.lang.String filter;
/** Filtering results.
*/
public java.lang.String getFilter() {
return filter;
}
/** Filtering results. */
public List setFilter(java.lang.String filter) {
this.filter = filter;
return this;
}
/** Field to sort by. See https://google.aip.dev/132#ordering for more details. */
@com.google.api.client.util.Key
private java.lang.String orderBy;
/** Field to sort by. See https://google.aip.dev/132#ordering for more details.
*/
public java.lang.String getOrderBy() {
return orderBy;
}
/** Field to sort by. See https://google.aip.dev/132#ordering for more details. */
public List setOrderBy(java.lang.String orderBy) {
this.orderBy = orderBy;
return this;
}
/**
* The maximum number of data files to return. The service may return fewer than this
* value. If unspecified, at most 500 data files will be returned. The maximum value is
* 1000; values above 1000 will be coerced to 1000.
*/
@com.google.api.client.util.Key
private java.lang.Integer pageSize;
/** The maximum number of data files to return. The service may return fewer than this value. If
unspecified, at most 500 data files will be returned. The maximum value is 1000; values above 1000
will be coerced to 1000.
*/
public java.lang.Integer getPageSize() {
return pageSize;
}
/**
* The maximum number of data files to return. The service may return fewer than this
* value. If unspecified, at most 500 data files will be returned. The maximum value is
* 1000; values above 1000 will be coerced to 1000.
*/
public List setPageSize(java.lang.Integer pageSize) {
this.pageSize = pageSize;
return this;
}
/**
* A page token, received from a previous `ListImportDataFiles` call. Provide this to
* retrieve the subsequent page. When paginating, all other parameters provided to
* `ListImportDataFiles` must match the call that provided the page token.
*/
@com.google.api.client.util.Key
private java.lang.String pageToken;
/** A page token, received from a previous `ListImportDataFiles` call. Provide this to retrieve the
subsequent page. When paginating, all other parameters provided to `ListImportDataFiles` must match
the call that provided the page token.
*/
public java.lang.String getPageToken() {
return pageToken;
}
/**
* A page token, received from a previous `ListImportDataFiles` call. Provide this to
* retrieve the subsequent page. When paginating, all other parameters provided to
* `ListImportDataFiles` must match the call that provided the page token.
*/
public List setPageToken(java.lang.String pageToken) {
this.pageToken = pageToken;
return this;
}
@Override
public List set(String parameterName, Object value) {
return (List) super.set(parameterName, value);
}
}
}
}
/**
* An accessor for creating requests from the Operations collection.
*
* The typical use is:
*
* {@code MigrationCenterAPI migrationcenter = new MigrationCenterAPI(...);}
* {@code MigrationCenterAPI.Operations.List request = migrationcenter.operations().list(parameters ...)}
*
*
* @return the resource collection
*/
public Operations operations() {
return new Operations();
}
/**
* The "operations" collection of methods.
*/
public class Operations {
/**
* Starts asynchronous cancellation on a long-running operation. The server makes a best effort to
* cancel the operation, but success is not guaranteed. If the server doesn't support this method,
* it returns `google.rpc.Code.UNIMPLEMENTED`. Clients can use Operations.GetOperation or other
* methods to check whether the cancellation succeeded or whether the operation completed despite
* cancellation. On successful cancellation, the operation is not deleted; instead, it becomes an
* operation with an Operation.error value with a google.rpc.Status.code of 1, corresponding to
* `Code.CANCELLED`.
*
* Create a request for the method "operations.cancel".
*
* This request holds the parameters needed by the migrationcenter server. After setting any
* optional parameters, call the {@link Cancel#execute()} method to invoke the remote operation.
*
* @param name The name of the operation resource to be cancelled.
* @param content the {@link com.google.api.services.migrationcenter.v1.model.CancelOperationRequest}
* @return the request
*/
public Cancel cancel(java.lang.String name, com.google.api.services.migrationcenter.v1.model.CancelOperationRequest content) throws java.io.IOException {
Cancel result = new Cancel(name, content);
initialize(result);
return result;
}
public class Cancel extends MigrationCenterAPIRequest {
private static final String REST_PATH = "v1/{+name}:cancel";
private final java.util.regex.Pattern NAME_PATTERN =
java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/operations/[^/]+$");
/**
* Starts asynchronous cancellation on a long-running operation. The server makes a best effort to
* cancel the operation, but success is not guaranteed. If the server doesn't support this method,
* it returns `google.rpc.Code.UNIMPLEMENTED`. Clients can use Operations.GetOperation or other
* methods to check whether the cancellation succeeded or whether the operation completed despite
* cancellation. On successful cancellation, the operation is not deleted; instead, it becomes an
* operation with an Operation.error value with a google.rpc.Status.code of 1, corresponding to
* `Code.CANCELLED`.
*
* Create a request for the method "operations.cancel".
*
* This request holds the parameters needed by the the migrationcenter server. After setting any
* optional parameters, call the {@link Cancel#execute()} method to invoke the remote operation.
* {@link
* Cancel#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must
* be called to initialize this instance immediately after invoking the constructor.
*
* @param name The name of the operation resource to be cancelled.
* @param content the {@link com.google.api.services.migrationcenter.v1.model.CancelOperationRequest}
* @since 1.13
*/
protected Cancel(java.lang.String name, com.google.api.services.migrationcenter.v1.model.CancelOperationRequest content) {
super(MigrationCenterAPI.this, "POST", REST_PATH, content, com.google.api.services.migrationcenter.v1.model.Empty.class);
this.name = com.google.api.client.util.Preconditions.checkNotNull(name, "Required parameter name must be specified.");
if (!getSuppressPatternChecks()) {
com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(),
"Parameter name must conform to the pattern " +
"^projects/[^/]+/locations/[^/]+/operations/[^/]+$");
}
}
@Override
public Cancel set$Xgafv(java.lang.String $Xgafv) {
return (Cancel) super.set$Xgafv($Xgafv);
}
@Override
public Cancel setAccessToken(java.lang.String accessToken) {
return (Cancel) super.setAccessToken(accessToken);
}
@Override
public Cancel setAlt(java.lang.String alt) {
return (Cancel) super.setAlt(alt);
}
@Override
public Cancel setCallback(java.lang.String callback) {
return (Cancel) super.setCallback(callback);
}
@Override
public Cancel setFields(java.lang.String fields) {
return (Cancel) super.setFields(fields);
}
@Override
public Cancel setKey(java.lang.String key) {
return (Cancel) super.setKey(key);
}
@Override
public Cancel setOauthToken(java.lang.String oauthToken) {
return (Cancel) super.setOauthToken(oauthToken);
}
@Override
public Cancel setPrettyPrint(java.lang.Boolean prettyPrint) {
return (Cancel) super.setPrettyPrint(prettyPrint);
}
@Override
public Cancel setQuotaUser(java.lang.String quotaUser) {
return (Cancel) super.setQuotaUser(quotaUser);
}
@Override
public Cancel setUploadType(java.lang.String uploadType) {
return (Cancel) super.setUploadType(uploadType);
}
@Override
public Cancel setUploadProtocol(java.lang.String uploadProtocol) {
return (Cancel) super.setUploadProtocol(uploadProtocol);
}
/** The name of the operation resource to be cancelled. */
@com.google.api.client.util.Key
private java.lang.String name;
/** The name of the operation resource to be cancelled.
*/
public java.lang.String getName() {
return name;
}
/** The name of the operation resource to be cancelled. */
public Cancel setName(java.lang.String name) {
if (!getSuppressPatternChecks()) {
com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(),
"Parameter name must conform to the pattern " +
"^projects/[^/]+/locations/[^/]+/operations/[^/]+$");
}
this.name = name;
return this;
}
@Override
public Cancel set(String parameterName, Object value) {
return (Cancel) super.set(parameterName, value);
}
}
/**
* Deletes a long-running operation. This method indicates that the client is no longer interested
* in the operation result. It does not cancel the operation. If the server doesn't support this
* method, it returns `google.rpc.Code.UNIMPLEMENTED`.
*
* Create a request for the method "operations.delete".
*
* This request holds the parameters needed by the migrationcenter server. After setting any
* optional parameters, call the {@link Delete#execute()} method to invoke the remote operation.
*
* @param name The name of the operation resource to be deleted.
* @return the request
*/
public Delete delete(java.lang.String name) throws java.io.IOException {
Delete result = new Delete(name);
initialize(result);
return result;
}
public class Delete extends MigrationCenterAPIRequest {
private static final String REST_PATH = "v1/{+name}";
private final java.util.regex.Pattern NAME_PATTERN =
java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/operations/[^/]+$");
/**
* Deletes a long-running operation. This method indicates that the client is no longer interested
* in the operation result. It does not cancel the operation. If the server doesn't support this
* method, it returns `google.rpc.Code.UNIMPLEMENTED`.
*
* Create a request for the method "operations.delete".
*
* This request holds the parameters needed by the the migrationcenter server. After setting any
* optional parameters, call the {@link Delete#execute()} method to invoke the remote operation.
* {@link
* Delete#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must
* be called to initialize this instance immediately after invoking the constructor.
*
* @param name The name of the operation resource to be deleted.
* @since 1.13
*/
protected Delete(java.lang.String name) {
super(MigrationCenterAPI.this, "DELETE", REST_PATH, null, com.google.api.services.migrationcenter.v1.model.Empty.class);
this.name = com.google.api.client.util.Preconditions.checkNotNull(name, "Required parameter name must be specified.");
if (!getSuppressPatternChecks()) {
com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(),
"Parameter name must conform to the pattern " +
"^projects/[^/]+/locations/[^/]+/operations/[^/]+$");
}
}
@Override
public Delete set$Xgafv(java.lang.String $Xgafv) {
return (Delete) super.set$Xgafv($Xgafv);
}
@Override
public Delete setAccessToken(java.lang.String accessToken) {
return (Delete) super.setAccessToken(accessToken);
}
@Override
public Delete setAlt(java.lang.String alt) {
return (Delete) super.setAlt(alt);
}
@Override
public Delete setCallback(java.lang.String callback) {
return (Delete) super.setCallback(callback);
}
@Override
public Delete setFields(java.lang.String fields) {
return (Delete) super.setFields(fields);
}
@Override
public Delete setKey(java.lang.String key) {
return (Delete) super.setKey(key);
}
@Override
public Delete setOauthToken(java.lang.String oauthToken) {
return (Delete) super.setOauthToken(oauthToken);
}
@Override
public Delete setPrettyPrint(java.lang.Boolean prettyPrint) {
return (Delete) super.setPrettyPrint(prettyPrint);
}
@Override
public Delete setQuotaUser(java.lang.String quotaUser) {
return (Delete) super.setQuotaUser(quotaUser);
}
@Override
public Delete setUploadType(java.lang.String uploadType) {
return (Delete) super.setUploadType(uploadType);
}
@Override
public Delete setUploadProtocol(java.lang.String uploadProtocol) {
return (Delete) super.setUploadProtocol(uploadProtocol);
}
/** The name of the operation resource to be deleted. */
@com.google.api.client.util.Key
private java.lang.String name;
/** The name of the operation resource to be deleted.
*/
public java.lang.String getName() {
return name;
}
/** The name of the operation resource to be deleted. */
public Delete setName(java.lang.String name) {
if (!getSuppressPatternChecks()) {
com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(),
"Parameter name must conform to the pattern " +
"^projects/[^/]+/locations/[^/]+/operations/[^/]+$");
}
this.name = name;
return this;
}
@Override
public Delete set(String parameterName, Object value) {
return (Delete) super.set(parameterName, value);
}
}
/**
* Gets the latest state of a long-running operation. Clients can use this method to poll the
* operation result at intervals as recommended by the API service.
*
* Create a request for the method "operations.get".
*
* This request holds the parameters needed by the migrationcenter server. After setting any
* optional parameters, call the {@link Get#execute()} method to invoke the remote operation.
*
* @param name The name of the operation resource.
* @return the request
*/
public Get get(java.lang.String name) throws java.io.IOException {
Get result = new Get(name);
initialize(result);
return result;
}
public class Get extends MigrationCenterAPIRequest {
private static final String REST_PATH = "v1/{+name}";
private final java.util.regex.Pattern NAME_PATTERN =
java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/operations/[^/]+$");
/**
* Gets the latest state of a long-running operation. Clients can use this method to poll the
* operation result at intervals as recommended by the API service.
*
* Create a request for the method "operations.get".
*
* This request holds the parameters needed by the the migrationcenter server. After setting any
* optional parameters, call the {@link Get#execute()} method to invoke the remote operation.
* {@link Get#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)}
* must be called to initialize this instance immediately after invoking the constructor.
*
* @param name The name of the operation resource.
* @since 1.13
*/
protected Get(java.lang.String name) {
super(MigrationCenterAPI.this, "GET", REST_PATH, null, com.google.api.services.migrationcenter.v1.model.Operation.class);
this.name = com.google.api.client.util.Preconditions.checkNotNull(name, "Required parameter name must be specified.");
if (!getSuppressPatternChecks()) {
com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(),
"Parameter name must conform to the pattern " +
"^projects/[^/]+/locations/[^/]+/operations/[^/]+$");
}
}
@Override
public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException {
return super.executeUsingHead();
}
@Override
public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException {
return super.buildHttpRequestUsingHead();
}
@Override
public Get set$Xgafv(java.lang.String $Xgafv) {
return (Get) super.set$Xgafv($Xgafv);
}
@Override
public Get setAccessToken(java.lang.String accessToken) {
return (Get) super.setAccessToken(accessToken);
}
@Override
public Get setAlt(java.lang.String alt) {
return (Get) super.setAlt(alt);
}
@Override
public Get setCallback(java.lang.String callback) {
return (Get) super.setCallback(callback);
}
@Override
public Get setFields(java.lang.String fields) {
return (Get) super.setFields(fields);
}
@Override
public Get setKey(java.lang.String key) {
return (Get) super.setKey(key);
}
@Override
public Get setOauthToken(java.lang.String oauthToken) {
return (Get) super.setOauthToken(oauthToken);
}
@Override
public Get setPrettyPrint(java.lang.Boolean prettyPrint) {
return (Get) super.setPrettyPrint(prettyPrint);
}
@Override
public Get setQuotaUser(java.lang.String quotaUser) {
return (Get) super.setQuotaUser(quotaUser);
}
@Override
public Get setUploadType(java.lang.String uploadType) {
return (Get) super.setUploadType(uploadType);
}
@Override
public Get setUploadProtocol(java.lang.String uploadProtocol) {
return (Get) super.setUploadProtocol(uploadProtocol);
}
/** The name of the operation resource. */
@com.google.api.client.util.Key
private java.lang.String name;
/** The name of the operation resource.
*/
public java.lang.String getName() {
return name;
}
/** The name of the operation resource. */
public Get setName(java.lang.String name) {
if (!getSuppressPatternChecks()) {
com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(),
"Parameter name must conform to the pattern " +
"^projects/[^/]+/locations/[^/]+/operations/[^/]+$");
}
this.name = name;
return this;
}
@Override
public Get set(String parameterName, Object value) {
return (Get) super.set(parameterName, value);
}
}
/**
* Lists operations that match the specified filter in the request. If the server doesn't support
* this method, it returns `UNIMPLEMENTED`.
*
* Create a request for the method "operations.list".
*
* This request holds the parameters needed by the migrationcenter server. After setting any
* optional parameters, call the {@link List#execute()} method to invoke the remote operation.
*
* @param name The name of the operation's parent resource.
* @return the request
*/
public List list(java.lang.String name) throws java.io.IOException {
List result = new List(name);
initialize(result);
return result;
}
public class List extends MigrationCenterAPIRequest {
private static final String REST_PATH = "v1/{+name}/operations";
private final java.util.regex.Pattern NAME_PATTERN =
java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+$");
/**
* Lists operations that match the specified filter in the request. If the server doesn't support
* this method, it returns `UNIMPLEMENTED`.
*
* Create a request for the method "operations.list".
*
* This request holds the parameters needed by the the migrationcenter server. After setting any
* optional parameters, call the {@link List#execute()} method to invoke the remote operation.
* {@link List#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)}
* must be called to initialize this instance immediately after invoking the constructor.
*
* @param name The name of the operation's parent resource.
* @since 1.13
*/
protected List(java.lang.String name) {
super(MigrationCenterAPI.this, "GET", REST_PATH, null, com.google.api.services.migrationcenter.v1.model.ListOperationsResponse.class);
this.name = com.google.api.client.util.Preconditions.checkNotNull(name, "Required parameter name must be specified.");
if (!getSuppressPatternChecks()) {
com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(),
"Parameter name must conform to the pattern " +
"^projects/[^/]+/locations/[^/]+$");
}
}
@Override
public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException {
return super.executeUsingHead();
}
@Override
public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException {
return super.buildHttpRequestUsingHead();
}
@Override
public List set$Xgafv(java.lang.String $Xgafv) {
return (List) super.set$Xgafv($Xgafv);
}
@Override
public List setAccessToken(java.lang.String accessToken) {
return (List) super.setAccessToken(accessToken);
}
@Override
public List setAlt(java.lang.String alt) {
return (List) super.setAlt(alt);
}
@Override
public List setCallback(java.lang.String callback) {
return (List) super.setCallback(callback);
}
@Override
public List setFields(java.lang.String fields) {
return (List) super.setFields(fields);
}
@Override
public List setKey(java.lang.String key) {
return (List) super.setKey(key);
}
@Override
public List setOauthToken(java.lang.String oauthToken) {
return (List) super.setOauthToken(oauthToken);
}
@Override
public List setPrettyPrint(java.lang.Boolean prettyPrint) {
return (List) super.setPrettyPrint(prettyPrint);
}
@Override
public List setQuotaUser(java.lang.String quotaUser) {
return (List) super.setQuotaUser(quotaUser);
}
@Override
public List setUploadType(java.lang.String uploadType) {
return (List) super.setUploadType(uploadType);
}
@Override
public List setUploadProtocol(java.lang.String uploadProtocol) {
return (List) super.setUploadProtocol(uploadProtocol);
}
/** The name of the operation's parent resource. */
@com.google.api.client.util.Key
private java.lang.String name;
/** The name of the operation's parent resource.
*/
public java.lang.String getName() {
return name;
}
/** The name of the operation's parent resource. */
public List setName(java.lang.String name) {
if (!getSuppressPatternChecks()) {
com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(),
"Parameter name must conform to the pattern " +
"^projects/[^/]+/locations/[^/]+$");
}
this.name = name;
return this;
}
/** The standard list filter. */
@com.google.api.client.util.Key
private java.lang.String filter;
/** The standard list filter.
*/
public java.lang.String getFilter() {
return filter;
}
/** The standard list filter. */
public List setFilter(java.lang.String filter) {
this.filter = filter;
return this;
}
/** The standard list page size. */
@com.google.api.client.util.Key
private java.lang.Integer pageSize;
/** The standard list page size.
*/
public java.lang.Integer getPageSize() {
return pageSize;
}
/** The standard list page size. */
public List setPageSize(java.lang.Integer pageSize) {
this.pageSize = pageSize;
return this;
}
/** The standard list page token. */
@com.google.api.client.util.Key
private java.lang.String pageToken;
/** The standard list page token.
*/
public java.lang.String getPageToken() {
return pageToken;
}
/** The standard list page token. */
public List setPageToken(java.lang.String pageToken) {
this.pageToken = pageToken;
return this;
}
@Override
public List set(String parameterName, Object value) {
return (List) super.set(parameterName, value);
}
}
}
/**
* An accessor for creating requests from the PreferenceSets collection.
*
* The typical use is:
*
* {@code MigrationCenterAPI migrationcenter = new MigrationCenterAPI(...);}
* {@code MigrationCenterAPI.PreferenceSets.List request = migrationcenter.preferenceSets().list(parameters ...)}
*
*
* @return the resource collection
*/
public PreferenceSets preferenceSets() {
return new PreferenceSets();
}
/**
* The "preferenceSets" collection of methods.
*/
public class PreferenceSets {
/**
* Creates a new preference set in a given project and location.
*
* Create a request for the method "preferenceSets.create".
*
* This request holds the parameters needed by the migrationcenter server. After setting any
* optional parameters, call the {@link Create#execute()} method to invoke the remote operation.
*
* @param parent Required. Value for parent.
* @param content the {@link com.google.api.services.migrationcenter.v1.model.PreferenceSet}
* @return the request
*/
public Create create(java.lang.String parent, com.google.api.services.migrationcenter.v1.model.PreferenceSet content) throws java.io.IOException {
Create result = new Create(parent, content);
initialize(result);
return result;
}
public class Create extends MigrationCenterAPIRequest {
private static final String REST_PATH = "v1/{+parent}/preferenceSets";
private final java.util.regex.Pattern PARENT_PATTERN =
java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+$");
/**
* Creates a new preference set in a given project and location.
*
* Create a request for the method "preferenceSets.create".
*
* This request holds the parameters needed by the the migrationcenter server. After setting any
* optional parameters, call the {@link Create#execute()} method to invoke the remote operation.
* {@link
* Create#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must
* be called to initialize this instance immediately after invoking the constructor.
*
* @param parent Required. Value for parent.
* @param content the {@link com.google.api.services.migrationcenter.v1.model.PreferenceSet}
* @since 1.13
*/
protected Create(java.lang.String parent, com.google.api.services.migrationcenter.v1.model.PreferenceSet content) {
super(MigrationCenterAPI.this, "POST", REST_PATH, content, com.google.api.services.migrationcenter.v1.model.Operation.class);
this.parent = com.google.api.client.util.Preconditions.checkNotNull(parent, "Required parameter parent must be specified.");
if (!getSuppressPatternChecks()) {
com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(),
"Parameter parent must conform to the pattern " +
"^projects/[^/]+/locations/[^/]+$");
}
}
@Override
public Create set$Xgafv(java.lang.String $Xgafv) {
return (Create) super.set$Xgafv($Xgafv);
}
@Override
public Create setAccessToken(java.lang.String accessToken) {
return (Create) super.setAccessToken(accessToken);
}
@Override
public Create setAlt(java.lang.String alt) {
return (Create) super.setAlt(alt);
}
@Override
public Create setCallback(java.lang.String callback) {
return (Create) super.setCallback(callback);
}
@Override
public Create setFields(java.lang.String fields) {
return (Create) super.setFields(fields);
}
@Override
public Create setKey(java.lang.String key) {
return (Create) super.setKey(key);
}
@Override
public Create setOauthToken(java.lang.String oauthToken) {
return (Create) super.setOauthToken(oauthToken);
}
@Override
public Create setPrettyPrint(java.lang.Boolean prettyPrint) {
return (Create) super.setPrettyPrint(prettyPrint);
}
@Override
public Create setQuotaUser(java.lang.String quotaUser) {
return (Create) super.setQuotaUser(quotaUser);
}
@Override
public Create setUploadType(java.lang.String uploadType) {
return (Create) super.setUploadType(uploadType);
}
@Override
public Create setUploadProtocol(java.lang.String uploadProtocol) {
return (Create) super.setUploadProtocol(uploadProtocol);
}
/** Required. Value for parent. */
@com.google.api.client.util.Key
private java.lang.String parent;
/** Required. Value for parent.
*/
public java.lang.String getParent() {
return parent;
}
/** Required. Value for parent. */
public Create setParent(java.lang.String parent) {
if (!getSuppressPatternChecks()) {
com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(),
"Parameter parent must conform to the pattern " +
"^projects/[^/]+/locations/[^/]+$");
}
this.parent = parent;
return this;
}
/**
* Required. User specified ID for the preference set. It will become the last component
* of the preference set name. The ID must be unique within the project, must conform with
* RFC-1034, is restricted to lower-cased letters, and has a maximum length of 63
* characters. The ID must match the regular expression `[a-z]([a-z0-9-]{0,61}[a-z0-9])?`.
*/
@com.google.api.client.util.Key
private java.lang.String preferenceSetId;
/** Required. User specified ID for the preference set. It will become the last component of the
preference set name. The ID must be unique within the project, must conform with RFC-1034, is
restricted to lower-cased letters, and has a maximum length of 63 characters. The ID must match the
regular expression `[a-z]([a-z0-9-]{0,61}[a-z0-9])?`.
*/
public java.lang.String getPreferenceSetId() {
return preferenceSetId;
}
/**
* Required. User specified ID for the preference set. It will become the last component
* of the preference set name. The ID must be unique within the project, must conform with
* RFC-1034, is restricted to lower-cased letters, and has a maximum length of 63
* characters. The ID must match the regular expression `[a-z]([a-z0-9-]{0,61}[a-z0-9])?`.
*/
public Create setPreferenceSetId(java.lang.String preferenceSetId) {
this.preferenceSetId = preferenceSetId;
return this;
}
/**
* Optional. An optional request ID to identify requests. Specify a unique request ID so
* that if you must retry your request, the server will know to ignore the request if it
* has already been completed. The server will guarantee that for at least 60 minutes
* since the first request. For example, consider a situation where you make an initial
* request and the request times out. If you make the request again with the same request
* ID, the server can check if original operation with the same request ID was received,
* and if so, will ignore the second request. This prevents clients from accidentally
* creating duplicate commitments. The request ID must be a valid UUID with the exception
* that zero UUID is not supported (00000000-0000-0000-0000-000000000000).
*/
@com.google.api.client.util.Key
private java.lang.String requestId;
/** Optional. An optional request ID to identify requests. Specify a unique request ID so that if you
must retry your request, the server will know to ignore the request if it has already been
completed. The server will guarantee that for at least 60 minutes since the first request. For
example, consider a situation where you make an initial request and the request times out. If you
make the request again with the same request ID, the server can check if original operation with
the same request ID was received, and if so, will ignore the second request. This prevents clients
from accidentally creating duplicate commitments. The request ID must be a valid UUID with the
exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).
*/
public java.lang.String getRequestId() {
return requestId;
}
/**
* Optional. An optional request ID to identify requests. Specify a unique request ID so
* that if you must retry your request, the server will know to ignore the request if it
* has already been completed. The server will guarantee that for at least 60 minutes
* since the first request. For example, consider a situation where you make an initial
* request and the request times out. If you make the request again with the same request
* ID, the server can check if original operation with the same request ID was received,
* and if so, will ignore the second request. This prevents clients from accidentally
* creating duplicate commitments. The request ID must be a valid UUID with the exception
* that zero UUID is not supported (00000000-0000-0000-0000-000000000000).
*/
public Create setRequestId(java.lang.String requestId) {
this.requestId = requestId;
return this;
}
@Override
public Create set(String parameterName, Object value) {
return (Create) super.set(parameterName, value);
}
}
/**
* Deletes a preference set.
*
* Create a request for the method "preferenceSets.delete".
*
* This request holds the parameters needed by the migrationcenter server. After setting any
* optional parameters, call the {@link Delete#execute()} method to invoke the remote operation.
*
* @param name Required. Name of the group resource.
* @return the request
*/
public Delete delete(java.lang.String name) throws java.io.IOException {
Delete result = new Delete(name);
initialize(result);
return result;
}
public class Delete extends MigrationCenterAPIRequest {
private static final String REST_PATH = "v1/{+name}";
private final java.util.regex.Pattern NAME_PATTERN =
java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/preferenceSets/[^/]+$");
/**
* Deletes a preference set.
*
* Create a request for the method "preferenceSets.delete".
*
* This request holds the parameters needed by the the migrationcenter server. After setting any
* optional parameters, call the {@link Delete#execute()} method to invoke the remote operation.
* {@link
* Delete#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must
* be called to initialize this instance immediately after invoking the constructor.
*
* @param name Required. Name of the group resource.
* @since 1.13
*/
protected Delete(java.lang.String name) {
super(MigrationCenterAPI.this, "DELETE", REST_PATH, null, com.google.api.services.migrationcenter.v1.model.Operation.class);
this.name = com.google.api.client.util.Preconditions.checkNotNull(name, "Required parameter name must be specified.");
if (!getSuppressPatternChecks()) {
com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(),
"Parameter name must conform to the pattern " +
"^projects/[^/]+/locations/[^/]+/preferenceSets/[^/]+$");
}
}
@Override
public Delete set$Xgafv(java.lang.String $Xgafv) {
return (Delete) super.set$Xgafv($Xgafv);
}
@Override
public Delete setAccessToken(java.lang.String accessToken) {
return (Delete) super.setAccessToken(accessToken);
}
@Override
public Delete setAlt(java.lang.String alt) {
return (Delete) super.setAlt(alt);
}
@Override
public Delete setCallback(java.lang.String callback) {
return (Delete) super.setCallback(callback);
}
@Override
public Delete setFields(java.lang.String fields) {
return (Delete) super.setFields(fields);
}
@Override
public Delete setKey(java.lang.String key) {
return (Delete) super.setKey(key);
}
@Override
public Delete setOauthToken(java.lang.String oauthToken) {
return (Delete) super.setOauthToken(oauthToken);
}
@Override
public Delete setPrettyPrint(java.lang.Boolean prettyPrint) {
return (Delete) super.setPrettyPrint(prettyPrint);
}
@Override
public Delete setQuotaUser(java.lang.String quotaUser) {
return (Delete) super.setQuotaUser(quotaUser);
}
@Override
public Delete setUploadType(java.lang.String uploadType) {
return (Delete) super.setUploadType(uploadType);
}
@Override
public Delete setUploadProtocol(java.lang.String uploadProtocol) {
return (Delete) super.setUploadProtocol(uploadProtocol);
}
/** Required. Name of the group resource. */
@com.google.api.client.util.Key
private java.lang.String name;
/** Required. Name of the group resource.
*/
public java.lang.String getName() {
return name;
}
/** Required. Name of the group resource. */
public Delete setName(java.lang.String name) {
if (!getSuppressPatternChecks()) {
com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(),
"Parameter name must conform to the pattern " +
"^projects/[^/]+/locations/[^/]+/preferenceSets/[^/]+$");
}
this.name = name;
return this;
}
/**
* Optional. An optional request ID to identify requests. Specify a unique request ID so
* that if you must retry your request, the server will know to ignore the request if it
* has already been completed. The server will guarantee that for at least 60 minutes
* after the first request. For example, consider a situation where you make an initial
* request and the request times out. If you make the request again with the same request
* ID, the server can check if original operation with the same request ID was received,
* and if so, will ignore the second request. This prevents clients from accidentally
* creating duplicate commitments. The request ID must be a valid UUID with the exception
* that zero UUID is not supported (00000000-0000-0000-0000-000000000000).
*/
@com.google.api.client.util.Key
private java.lang.String requestId;
/** Optional. An optional request ID to identify requests. Specify a unique request ID so that if you
must retry your request, the server will know to ignore the request if it has already been
completed. The server will guarantee that for at least 60 minutes after the first request. For
example, consider a situation where you make an initial request and the request times out. If you
make the request again with the same request ID, the server can check if original operation with
the same request ID was received, and if so, will ignore the second request. This prevents clients
from accidentally creating duplicate commitments. The request ID must be a valid UUID with the
exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).
*/
public java.lang.String getRequestId() {
return requestId;
}
/**
* Optional. An optional request ID to identify requests. Specify a unique request ID so
* that if you must retry your request, the server will know to ignore the request if it
* has already been completed. The server will guarantee that for at least 60 minutes
* after the first request. For example, consider a situation where you make an initial
* request and the request times out. If you make the request again with the same request
* ID, the server can check if original operation with the same request ID was received,
* and if so, will ignore the second request. This prevents clients from accidentally
* creating duplicate commitments. The request ID must be a valid UUID with the exception
* that zero UUID is not supported (00000000-0000-0000-0000-000000000000).
*/
public Delete setRequestId(java.lang.String requestId) {
this.requestId = requestId;
return this;
}
@Override
public Delete set(String parameterName, Object value) {
return (Delete) super.set(parameterName, value);
}
}
/**
* Gets the details of a preference set.
*
* Create a request for the method "preferenceSets.get".
*
* This request holds the parameters needed by the migrationcenter server. After setting any
* optional parameters, call the {@link Get#execute()} method to invoke the remote operation.
*
* @param name Required. Name of the resource.
* @return the request
*/
public Get get(java.lang.String name) throws java.io.IOException {
Get result = new Get(name);
initialize(result);
return result;
}
public class Get extends MigrationCenterAPIRequest {
private static final String REST_PATH = "v1/{+name}";
private final java.util.regex.Pattern NAME_PATTERN =
java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/preferenceSets/[^/]+$");
/**
* Gets the details of a preference set.
*
* Create a request for the method "preferenceSets.get".
*
* This request holds the parameters needed by the the migrationcenter server. After setting any
* optional parameters, call the {@link Get#execute()} method to invoke the remote operation.
* {@link Get#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)}
* must be called to initialize this instance immediately after invoking the constructor.
*
* @param name Required. Name of the resource.
* @since 1.13
*/
protected Get(java.lang.String name) {
super(MigrationCenterAPI.this, "GET", REST_PATH, null, com.google.api.services.migrationcenter.v1.model.PreferenceSet.class);
this.name = com.google.api.client.util.Preconditions.checkNotNull(name, "Required parameter name must be specified.");
if (!getSuppressPatternChecks()) {
com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(),
"Parameter name must conform to the pattern " +
"^projects/[^/]+/locations/[^/]+/preferenceSets/[^/]+$");
}
}
@Override
public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException {
return super.executeUsingHead();
}
@Override
public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException {
return super.buildHttpRequestUsingHead();
}
@Override
public Get set$Xgafv(java.lang.String $Xgafv) {
return (Get) super.set$Xgafv($Xgafv);
}
@Override
public Get setAccessToken(java.lang.String accessToken) {
return (Get) super.setAccessToken(accessToken);
}
@Override
public Get setAlt(java.lang.String alt) {
return (Get) super.setAlt(alt);
}
@Override
public Get setCallback(java.lang.String callback) {
return (Get) super.setCallback(callback);
}
@Override
public Get setFields(java.lang.String fields) {
return (Get) super.setFields(fields);
}
@Override
public Get setKey(java.lang.String key) {
return (Get) super.setKey(key);
}
@Override
public Get setOauthToken(java.lang.String oauthToken) {
return (Get) super.setOauthToken(oauthToken);
}
@Override
public Get setPrettyPrint(java.lang.Boolean prettyPrint) {
return (Get) super.setPrettyPrint(prettyPrint);
}
@Override
public Get setQuotaUser(java.lang.String quotaUser) {
return (Get) super.setQuotaUser(quotaUser);
}
@Override
public Get setUploadType(java.lang.String uploadType) {
return (Get) super.setUploadType(uploadType);
}
@Override
public Get setUploadProtocol(java.lang.String uploadProtocol) {
return (Get) super.setUploadProtocol(uploadProtocol);
}
/** Required. Name of the resource. */
@com.google.api.client.util.Key
private java.lang.String name;
/** Required. Name of the resource.
*/
public java.lang.String getName() {
return name;
}
/** Required. Name of the resource. */
public Get setName(java.lang.String name) {
if (!getSuppressPatternChecks()) {
com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(),
"Parameter name must conform to the pattern " +
"^projects/[^/]+/locations/[^/]+/preferenceSets/[^/]+$");
}
this.name = name;
return this;
}
@Override
public Get set(String parameterName, Object value) {
return (Get) super.set(parameterName, value);
}
}
/**
* Lists all the preference sets in a given project and location.
*
* Create a request for the method "preferenceSets.list".
*
* This request holds the parameters needed by the migrationcenter server. After setting any
* optional parameters, call the {@link List#execute()} method to invoke the remote operation.
*
* @param parent Required. Parent value for `ListPreferenceSetsRequest`.
* @return the request
*/
public List list(java.lang.String parent) throws java.io.IOException {
List result = new List(parent);
initialize(result);
return result;
}
public class List extends MigrationCenterAPIRequest {
private static final String REST_PATH = "v1/{+parent}/preferenceSets";
private final java.util.regex.Pattern PARENT_PATTERN =
java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+$");
/**
* Lists all the preference sets in a given project and location.
*
* Create a request for the method "preferenceSets.list".
*
* This request holds the parameters needed by the the migrationcenter server. After setting any
* optional parameters, call the {@link List#execute()} method to invoke the remote operation.
* {@link List#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)}
* must be called to initialize this instance immediately after invoking the constructor.
*
* @param parent Required. Parent value for `ListPreferenceSetsRequest`.
* @since 1.13
*/
protected List(java.lang.String parent) {
super(MigrationCenterAPI.this, "GET", REST_PATH, null, com.google.api.services.migrationcenter.v1.model.ListPreferenceSetsResponse.class);
this.parent = com.google.api.client.util.Preconditions.checkNotNull(parent, "Required parameter parent must be specified.");
if (!getSuppressPatternChecks()) {
com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(),
"Parameter parent must conform to the pattern " +
"^projects/[^/]+/locations/[^/]+$");
}
}
@Override
public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException {
return super.executeUsingHead();
}
@Override
public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException {
return super.buildHttpRequestUsingHead();
}
@Override
public List set$Xgafv(java.lang.String $Xgafv) {
return (List) super.set$Xgafv($Xgafv);
}
@Override
public List setAccessToken(java.lang.String accessToken) {
return (List) super.setAccessToken(accessToken);
}
@Override
public List setAlt(java.lang.String alt) {
return (List) super.setAlt(alt);
}
@Override
public List setCallback(java.lang.String callback) {
return (List) super.setCallback(callback);
}
@Override
public List setFields(java.lang.String fields) {
return (List) super.setFields(fields);
}
@Override
public List setKey(java.lang.String key) {
return (List) super.setKey(key);
}
@Override
public List setOauthToken(java.lang.String oauthToken) {
return (List) super.setOauthToken(oauthToken);
}
@Override
public List setPrettyPrint(java.lang.Boolean prettyPrint) {
return (List) super.setPrettyPrint(prettyPrint);
}
@Override
public List setQuotaUser(java.lang.String quotaUser) {
return (List) super.setQuotaUser(quotaUser);
}
@Override
public List setUploadType(java.lang.String uploadType) {
return (List) super.setUploadType(uploadType);
}
@Override
public List setUploadProtocol(java.lang.String uploadProtocol) {
return (List) super.setUploadProtocol(uploadProtocol);
}
/** Required. Parent value for `ListPreferenceSetsRequest`. */
@com.google.api.client.util.Key
private java.lang.String parent;
/** Required. Parent value for `ListPreferenceSetsRequest`.
*/
public java.lang.String getParent() {
return parent;
}
/** Required. Parent value for `ListPreferenceSetsRequest`. */
public List setParent(java.lang.String parent) {
if (!getSuppressPatternChecks()) {
com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(),
"Parameter parent must conform to the pattern " +
"^projects/[^/]+/locations/[^/]+$");
}
this.parent = parent;
return this;
}
/** Field to sort by. See https://google.aip.dev/132#ordering for more details. */
@com.google.api.client.util.Key
private java.lang.String orderBy;
/** Field to sort by. See https://google.aip.dev/132#ordering for more details.
*/
public java.lang.String getOrderBy() {
return orderBy;
}
/** Field to sort by. See https://google.aip.dev/132#ordering for more details. */
public List setOrderBy(java.lang.String orderBy) {
this.orderBy = orderBy;
return this;
}
/**
* Requested page size. Server may return fewer items than requested. If unspecified, at
* most 500 preference sets will be returned. The maximum value is 1000; values above 1000
* will be coerced to 1000.
*/
@com.google.api.client.util.Key
private java.lang.Integer pageSize;
/** Requested page size. Server may return fewer items than requested. If unspecified, at most 500
preference sets will be returned. The maximum value is 1000; values above 1000 will be coerced to
1000.
*/
public java.lang.Integer getPageSize() {
return pageSize;
}
/**
* Requested page size. Server may return fewer items than requested. If unspecified, at
* most 500 preference sets will be returned. The maximum value is 1000; values above 1000
* will be coerced to 1000.
*/
public List setPageSize(java.lang.Integer pageSize) {
this.pageSize = pageSize;
return this;
}
/** A token identifying a page of results the server should return. */
@com.google.api.client.util.Key
private java.lang.String pageToken;
/** A token identifying a page of results the server should return.
*/
public java.lang.String getPageToken() {
return pageToken;
}
/** A token identifying a page of results the server should return. */
public List setPageToken(java.lang.String pageToken) {
this.pageToken = pageToken;
return this;
}
@Override
public List set(String parameterName, Object value) {
return (List) super.set(parameterName, value);
}
}
/**
* Updates the parameters of a preference set.
*
* Create a request for the method "preferenceSets.patch".
*
* This request holds the parameters needed by the migrationcenter server. After setting any
* optional parameters, call the {@link Patch#execute()} method to invoke the remote operation.
*
* @param name Output only. Name of the preference set.
* @param content the {@link com.google.api.services.migrationcenter.v1.model.PreferenceSet}
* @return the request
*/
public Patch patch(java.lang.String name, com.google.api.services.migrationcenter.v1.model.PreferenceSet content) throws java.io.IOException {
Patch result = new Patch(name, content);
initialize(result);
return result;
}
public class Patch extends MigrationCenterAPIRequest {
private static final String REST_PATH = "v1/{+name}";
private final java.util.regex.Pattern NAME_PATTERN =
java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/preferenceSets/[^/]+$");
/**
* Updates the parameters of a preference set.
*
* Create a request for the method "preferenceSets.patch".
*
* This request holds the parameters needed by the the migrationcenter server. After setting any
* optional parameters, call the {@link Patch#execute()} method to invoke the remote operation.
* {@link
* Patch#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must
* be called to initialize this instance immediately after invoking the constructor.
*
* @param name Output only. Name of the preference set.
* @param content the {@link com.google.api.services.migrationcenter.v1.model.PreferenceSet}
* @since 1.13
*/
protected Patch(java.lang.String name, com.google.api.services.migrationcenter.v1.model.PreferenceSet content) {
super(MigrationCenterAPI.this, "PATCH", REST_PATH, content, com.google.api.services.migrationcenter.v1.model.Operation.class);
this.name = com.google.api.client.util.Preconditions.checkNotNull(name, "Required parameter name must be specified.");
if (!getSuppressPatternChecks()) {
com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(),
"Parameter name must conform to the pattern " +
"^projects/[^/]+/locations/[^/]+/preferenceSets/[^/]+$");
}
}
@Override
public Patch set$Xgafv(java.lang.String $Xgafv) {
return (Patch) super.set$Xgafv($Xgafv);
}
@Override
public Patch setAccessToken(java.lang.String accessToken) {
return (Patch) super.setAccessToken(accessToken);
}
@Override
public Patch setAlt(java.lang.String alt) {
return (Patch) super.setAlt(alt);
}
@Override
public Patch setCallback(java.lang.String callback) {
return (Patch) super.setCallback(callback);
}
@Override
public Patch setFields(java.lang.String fields) {
return (Patch) super.setFields(fields);
}
@Override
public Patch setKey(java.lang.String key) {
return (Patch) super.setKey(key);
}
@Override
public Patch setOauthToken(java.lang.String oauthToken) {
return (Patch) super.setOauthToken(oauthToken);
}
@Override
public Patch setPrettyPrint(java.lang.Boolean prettyPrint) {
return (Patch) super.setPrettyPrint(prettyPrint);
}
@Override
public Patch setQuotaUser(java.lang.String quotaUser) {
return (Patch) super.setQuotaUser(quotaUser);
}
@Override
public Patch setUploadType(java.lang.String uploadType) {
return (Patch) super.setUploadType(uploadType);
}
@Override
public Patch setUploadProtocol(java.lang.String uploadProtocol) {
return (Patch) super.setUploadProtocol(uploadProtocol);
}
/** Output only. Name of the preference set. */
@com.google.api.client.util.Key
private java.lang.String name;
/** Output only. Name of the preference set.
*/
public java.lang.String getName() {
return name;
}
/** Output only. Name of the preference set. */
public Patch setName(java.lang.String name) {
if (!getSuppressPatternChecks()) {
com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(),
"Parameter name must conform to the pattern " +
"^projects/[^/]+/locations/[^/]+/preferenceSets/[^/]+$");
}
this.name = name;
return this;
}
/**
* Optional. An optional request ID to identify requests. Specify a unique request ID so
* that if you must retry your request, the server will know to ignore the request if it
* has already been completed. The server will guarantee that for at least 60 minutes
* since the first request. For example, consider a situation where you make an initial
* request and the request times out. If you make the request again with the same request
* ID, the server can check if original operation with the same request ID was received,
* and if so, will ignore the second request. This prevents clients from accidentally
* creating duplicate commitments. The request ID must be a valid UUID with the exception
* that zero UUID is not supported (00000000-0000-0000-0000-000000000000).
*/
@com.google.api.client.util.Key
private java.lang.String requestId;
/** Optional. An optional request ID to identify requests. Specify a unique request ID so that if you
must retry your request, the server will know to ignore the request if it has already been
completed. The server will guarantee that for at least 60 minutes since the first request. For
example, consider a situation where you make an initial request and the request times out. If you
make the request again with the same request ID, the server can check if original operation with
the same request ID was received, and if so, will ignore the second request. This prevents clients
from accidentally creating duplicate commitments. The request ID must be a valid UUID with the
exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).
*/
public java.lang.String getRequestId() {
return requestId;
}
/**
* Optional. An optional request ID to identify requests. Specify a unique request ID so
* that if you must retry your request, the server will know to ignore the request if it
* has already been completed. The server will guarantee that for at least 60 minutes
* since the first request. For example, consider a situation where you make an initial
* request and the request times out. If you make the request again with the same request
* ID, the server can check if original operation with the same request ID was received,
* and if so, will ignore the second request. This prevents clients from accidentally
* creating duplicate commitments. The request ID must be a valid UUID with the exception
* that zero UUID is not supported (00000000-0000-0000-0000-000000000000).
*/
public Patch setRequestId(java.lang.String requestId) {
this.requestId = requestId;
return this;
}
/**
* Required. Field mask is used to specify the fields to be overwritten in the
* `PreferenceSet` resource by the update. The values specified in the `update_mask` field
* are relative to the resource, not the full request. A field will be overwritten if it
* is in the mask. A single * value in the mask lets you to overwrite all fields.
*/
@com.google.api.client.util.Key
private String updateMask;
/** Required. Field mask is used to specify the fields to be overwritten in the `PreferenceSet`
resource by the update. The values specified in the `update_mask` field are relative to the
resource, not the full request. A field will be overwritten if it is in the mask. A single * value
in the mask lets you to overwrite all fields.
*/
public String getUpdateMask() {
return updateMask;
}
/**
* Required. Field mask is used to specify the fields to be overwritten in the
* `PreferenceSet` resource by the update. The values specified in the `update_mask` field
* are relative to the resource, not the full request. A field will be overwritten if it
* is in the mask. A single * value in the mask lets you to overwrite all fields.
*/
public Patch setUpdateMask(String updateMask) {
this.updateMask = updateMask;
return this;
}
@Override
public Patch set(String parameterName, Object value) {
return (Patch) super.set(parameterName, value);
}
}
}
/**
* An accessor for creating requests from the ReportConfigs collection.
*
* The typical use is:
*
* {@code MigrationCenterAPI migrationcenter = new MigrationCenterAPI(...);}
* {@code MigrationCenterAPI.ReportConfigs.List request = migrationcenter.reportConfigs().list(parameters ...)}
*
*
* @return the resource collection
*/
public ReportConfigs reportConfigs() {
return new ReportConfigs();
}
/**
* The "reportConfigs" collection of methods.
*/
public class ReportConfigs {
/**
* Creates a report configuration.
*
* Create a request for the method "reportConfigs.create".
*
* This request holds the parameters needed by the migrationcenter server. After setting any
* optional parameters, call the {@link Create#execute()} method to invoke the remote operation.
*
* @param parent Required. Value for parent.
* @param content the {@link com.google.api.services.migrationcenter.v1.model.ReportConfig}
* @return the request
*/
public Create create(java.lang.String parent, com.google.api.services.migrationcenter.v1.model.ReportConfig content) throws java.io.IOException {
Create result = new Create(parent, content);
initialize(result);
return result;
}
public class Create extends MigrationCenterAPIRequest {
private static final String REST_PATH = "v1/{+parent}/reportConfigs";
private final java.util.regex.Pattern PARENT_PATTERN =
java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+$");
/**
* Creates a report configuration.
*
* Create a request for the method "reportConfigs.create".
*
* This request holds the parameters needed by the the migrationcenter server. After setting any
* optional parameters, call the {@link Create#execute()} method to invoke the remote operation.
* {@link
* Create#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must
* be called to initialize this instance immediately after invoking the constructor.
*
* @param parent Required. Value for parent.
* @param content the {@link com.google.api.services.migrationcenter.v1.model.ReportConfig}
* @since 1.13
*/
protected Create(java.lang.String parent, com.google.api.services.migrationcenter.v1.model.ReportConfig content) {
super(MigrationCenterAPI.this, "POST", REST_PATH, content, com.google.api.services.migrationcenter.v1.model.Operation.class);
this.parent = com.google.api.client.util.Preconditions.checkNotNull(parent, "Required parameter parent must be specified.");
if (!getSuppressPatternChecks()) {
com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(),
"Parameter parent must conform to the pattern " +
"^projects/[^/]+/locations/[^/]+$");
}
}
@Override
public Create set$Xgafv(java.lang.String $Xgafv) {
return (Create) super.set$Xgafv($Xgafv);
}
@Override
public Create setAccessToken(java.lang.String accessToken) {
return (Create) super.setAccessToken(accessToken);
}
@Override
public Create setAlt(java.lang.String alt) {
return (Create) super.setAlt(alt);
}
@Override
public Create setCallback(java.lang.String callback) {
return (Create) super.setCallback(callback);
}
@Override
public Create setFields(java.lang.String fields) {
return (Create) super.setFields(fields);
}
@Override
public Create setKey(java.lang.String key) {
return (Create) super.setKey(key);
}
@Override
public Create setOauthToken(java.lang.String oauthToken) {
return (Create) super.setOauthToken(oauthToken);
}
@Override
public Create setPrettyPrint(java.lang.Boolean prettyPrint) {
return (Create) super.setPrettyPrint(prettyPrint);
}
@Override
public Create setQuotaUser(java.lang.String quotaUser) {
return (Create) super.setQuotaUser(quotaUser);
}
@Override
public Create setUploadType(java.lang.String uploadType) {
return (Create) super.setUploadType(uploadType);
}
@Override
public Create setUploadProtocol(java.lang.String uploadProtocol) {
return (Create) super.setUploadProtocol(uploadProtocol);
}
/** Required. Value for parent. */
@com.google.api.client.util.Key
private java.lang.String parent;
/** Required. Value for parent.
*/
public java.lang.String getParent() {
return parent;
}
/** Required. Value for parent. */
public Create setParent(java.lang.String parent) {
if (!getSuppressPatternChecks()) {
com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(),
"Parameter parent must conform to the pattern " +
"^projects/[^/]+/locations/[^/]+$");
}
this.parent = parent;
return this;
}
/**
* Required. User specified ID for the report config. It will become the last component of
* the report config name. The ID must be unique within the project, must conform with
* RFC-1034, is restricted to lower-cased letters, and has a maximum length of 63
* characters. The ID must match the regular expression: [a-z]([a-z0-9-]{0,61}[a-z0-9])?.
*/
@com.google.api.client.util.Key
private java.lang.String reportConfigId;
/** Required. User specified ID for the report config. It will become the last component of the report
config name. The ID must be unique within the project, must conform with RFC-1034, is restricted to
lower-cased letters, and has a maximum length of 63 characters. The ID must match the regular
expression: [a-z]([a-z0-9-]{0,61}[a-z0-9])?.
*/
public java.lang.String getReportConfigId() {
return reportConfigId;
}
/**
* Required. User specified ID for the report config. It will become the last component of
* the report config name. The ID must be unique within the project, must conform with
* RFC-1034, is restricted to lower-cased letters, and has a maximum length of 63
* characters. The ID must match the regular expression: [a-z]([a-z0-9-]{0,61}[a-z0-9])?.
*/
public Create setReportConfigId(java.lang.String reportConfigId) {
this.reportConfigId = reportConfigId;
return this;
}
/**
* Optional. An optional request ID to identify requests. Specify a unique request ID so
* that if you must retry your request, the server will know to ignore the request if it
* has already been completed. The server will guarantee that for at least 60 minutes
* since the first request. For example, consider a situation where you make an initial
* request and the request times out. If you make the request again with the same request
* ID, the server can check if original operation with the same request ID was received,
* and if so, will ignore the second request. This prevents clients from accidentally
* creating duplicate commitments. The request ID must be a valid UUID with the exception
* that zero UUID is not supported (00000000-0000-0000-0000-000000000000).
*/
@com.google.api.client.util.Key
private java.lang.String requestId;
/** Optional. An optional request ID to identify requests. Specify a unique request ID so that if you
must retry your request, the server will know to ignore the request if it has already been
completed. The server will guarantee that for at least 60 minutes since the first request. For
example, consider a situation where you make an initial request and the request times out. If you
make the request again with the same request ID, the server can check if original operation with
the same request ID was received, and if so, will ignore the second request. This prevents clients
from accidentally creating duplicate commitments. The request ID must be a valid UUID with the
exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).
*/
public java.lang.String getRequestId() {
return requestId;
}
/**
* Optional. An optional request ID to identify requests. Specify a unique request ID so
* that if you must retry your request, the server will know to ignore the request if it
* has already been completed. The server will guarantee that for at least 60 minutes
* since the first request. For example, consider a situation where you make an initial
* request and the request times out. If you make the request again with the same request
* ID, the server can check if original operation with the same request ID was received,
* and if so, will ignore the second request. This prevents clients from accidentally
* creating duplicate commitments. The request ID must be a valid UUID with the exception
* that zero UUID is not supported (00000000-0000-0000-0000-000000000000).
*/
public Create setRequestId(java.lang.String requestId) {
this.requestId = requestId;
return this;
}
@Override
public Create set(String parameterName, Object value) {
return (Create) super.set(parameterName, value);
}
}
/**
* Deletes a ReportConfig.
*
* Create a request for the method "reportConfigs.delete".
*
* This request holds the parameters needed by the migrationcenter server. After setting any
* optional parameters, call the {@link Delete#execute()} method to invoke the remote operation.
*
* @param name Required. Name of the resource.
* @return the request
*/
public Delete delete(java.lang.String name) throws java.io.IOException {
Delete result = new Delete(name);
initialize(result);
return result;
}
public class Delete extends MigrationCenterAPIRequest {
private static final String REST_PATH = "v1/{+name}";
private final java.util.regex.Pattern NAME_PATTERN =
java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/reportConfigs/[^/]+$");
/**
* Deletes a ReportConfig.
*
* Create a request for the method "reportConfigs.delete".
*
* This request holds the parameters needed by the the migrationcenter server. After setting any
* optional parameters, call the {@link Delete#execute()} method to invoke the remote operation.
* {@link
* Delete#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must
* be called to initialize this instance immediately after invoking the constructor.
*
* @param name Required. Name of the resource.
* @since 1.13
*/
protected Delete(java.lang.String name) {
super(MigrationCenterAPI.this, "DELETE", REST_PATH, null, com.google.api.services.migrationcenter.v1.model.Operation.class);
this.name = com.google.api.client.util.Preconditions.checkNotNull(name, "Required parameter name must be specified.");
if (!getSuppressPatternChecks()) {
com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(),
"Parameter name must conform to the pattern " +
"^projects/[^/]+/locations/[^/]+/reportConfigs/[^/]+$");
}
}
@Override
public Delete set$Xgafv(java.lang.String $Xgafv) {
return (Delete) super.set$Xgafv($Xgafv);
}
@Override
public Delete setAccessToken(java.lang.String accessToken) {
return (Delete) super.setAccessToken(accessToken);
}
@Override
public Delete setAlt(java.lang.String alt) {
return (Delete) super.setAlt(alt);
}
@Override
public Delete setCallback(java.lang.String callback) {
return (Delete) super.setCallback(callback);
}
@Override
public Delete setFields(java.lang.String fields) {
return (Delete) super.setFields(fields);
}
@Override
public Delete setKey(java.lang.String key) {
return (Delete) super.setKey(key);
}
@Override
public Delete setOauthToken(java.lang.String oauthToken) {
return (Delete) super.setOauthToken(oauthToken);
}
@Override
public Delete setPrettyPrint(java.lang.Boolean prettyPrint) {
return (Delete) super.setPrettyPrint(prettyPrint);
}
@Override
public Delete setQuotaUser(java.lang.String quotaUser) {
return (Delete) super.setQuotaUser(quotaUser);
}
@Override
public Delete setUploadType(java.lang.String uploadType) {
return (Delete) super.setUploadType(uploadType);
}
@Override
public Delete setUploadProtocol(java.lang.String uploadProtocol) {
return (Delete) super.setUploadProtocol(uploadProtocol);
}
/** Required. Name of the resource. */
@com.google.api.client.util.Key
private java.lang.String name;
/** Required. Name of the resource.
*/
public java.lang.String getName() {
return name;
}
/** Required. Name of the resource. */
public Delete setName(java.lang.String name) {
if (!getSuppressPatternChecks()) {
com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(),
"Parameter name must conform to the pattern " +
"^projects/[^/]+/locations/[^/]+/reportConfigs/[^/]+$");
}
this.name = name;
return this;
}
/**
* Optional. If set to `true`, any child `Reports` of this entity will also be deleted. If
* set to `false`, the request only works if the resource has no children.
*/
@com.google.api.client.util.Key
private java.lang.Boolean force;
/** Optional. If set to `true`, any child `Reports` of this entity will also be deleted. If set to
`false`, the request only works if the resource has no children.
*/
public java.lang.Boolean getForce() {
return force;
}
/**
* Optional. If set to `true`, any child `Reports` of this entity will also be deleted. If
* set to `false`, the request only works if the resource has no children.
*/
public Delete setForce(java.lang.Boolean force) {
this.force = force;
return this;
}
/**
* Optional. An optional request ID to identify requests. Specify a unique request ID so
* that if you must retry your request, the server will know to ignore the request if it
* has already been completed. The server will guarantee that for at least 60 minutes
* after the first request. For example, consider a situation where you make an initial
* request and the request times out. If you make the request again with the same request
* ID, the server can check if original operation with the same request ID was received,
* and if so, will ignore the second request. This prevents clients from accidentally
* creating duplicate commitments. The request ID must be a valid UUID with the exception
* that zero UUID is not supported (00000000-0000-0000-0000-000000000000).
*/
@com.google.api.client.util.Key
private java.lang.String requestId;
/** Optional. An optional request ID to identify requests. Specify a unique request ID so that if you
must retry your request, the server will know to ignore the request if it has already been
completed. The server will guarantee that for at least 60 minutes after the first request. For
example, consider a situation where you make an initial request and the request times out. If you
make the request again with the same request ID, the server can check if original operation with
the same request ID was received, and if so, will ignore the second request. This prevents clients
from accidentally creating duplicate commitments. The request ID must be a valid UUID with the
exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).
*/
public java.lang.String getRequestId() {
return requestId;
}
/**
* Optional. An optional request ID to identify requests. Specify a unique request ID so
* that if you must retry your request, the server will know to ignore the request if it
* has already been completed. The server will guarantee that for at least 60 minutes
* after the first request. For example, consider a situation where you make an initial
* request and the request times out. If you make the request again with the same request
* ID, the server can check if original operation with the same request ID was received,
* and if so, will ignore the second request. This prevents clients from accidentally
* creating duplicate commitments. The request ID must be a valid UUID with the exception
* that zero UUID is not supported (00000000-0000-0000-0000-000000000000).
*/
public Delete setRequestId(java.lang.String requestId) {
this.requestId = requestId;
return this;
}
@Override
public Delete set(String parameterName, Object value) {
return (Delete) super.set(parameterName, value);
}
}
/**
* Gets details of a single ReportConfig.
*
* Create a request for the method "reportConfigs.get".
*
* This request holds the parameters needed by the migrationcenter server. After setting any
* optional parameters, call the {@link Get#execute()} method to invoke the remote operation.
*
* @param name Required. Name of the resource.
* @return the request
*/
public Get get(java.lang.String name) throws java.io.IOException {
Get result = new Get(name);
initialize(result);
return result;
}
public class Get extends MigrationCenterAPIRequest {
private static final String REST_PATH = "v1/{+name}";
private final java.util.regex.Pattern NAME_PATTERN =
java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/reportConfigs/[^/]+$");
/**
* Gets details of a single ReportConfig.
*
* Create a request for the method "reportConfigs.get".
*
* This request holds the parameters needed by the the migrationcenter server. After setting any
* optional parameters, call the {@link Get#execute()} method to invoke the remote operation.
* {@link Get#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)}
* must be called to initialize this instance immediately after invoking the constructor.
*
* @param name Required. Name of the resource.
* @since 1.13
*/
protected Get(java.lang.String name) {
super(MigrationCenterAPI.this, "GET", REST_PATH, null, com.google.api.services.migrationcenter.v1.model.ReportConfig.class);
this.name = com.google.api.client.util.Preconditions.checkNotNull(name, "Required parameter name must be specified.");
if (!getSuppressPatternChecks()) {
com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(),
"Parameter name must conform to the pattern " +
"^projects/[^/]+/locations/[^/]+/reportConfigs/[^/]+$");
}
}
@Override
public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException {
return super.executeUsingHead();
}
@Override
public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException {
return super.buildHttpRequestUsingHead();
}
@Override
public Get set$Xgafv(java.lang.String $Xgafv) {
return (Get) super.set$Xgafv($Xgafv);
}
@Override
public Get setAccessToken(java.lang.String accessToken) {
return (Get) super.setAccessToken(accessToken);
}
@Override
public Get setAlt(java.lang.String alt) {
return (Get) super.setAlt(alt);
}
@Override
public Get setCallback(java.lang.String callback) {
return (Get) super.setCallback(callback);
}
@Override
public Get setFields(java.lang.String fields) {
return (Get) super.setFields(fields);
}
@Override
public Get setKey(java.lang.String key) {
return (Get) super.setKey(key);
}
@Override
public Get setOauthToken(java.lang.String oauthToken) {
return (Get) super.setOauthToken(oauthToken);
}
@Override
public Get setPrettyPrint(java.lang.Boolean prettyPrint) {
return (Get) super.setPrettyPrint(prettyPrint);
}
@Override
public Get setQuotaUser(java.lang.String quotaUser) {
return (Get) super.setQuotaUser(quotaUser);
}
@Override
public Get setUploadType(java.lang.String uploadType) {
return (Get) super.setUploadType(uploadType);
}
@Override
public Get setUploadProtocol(java.lang.String uploadProtocol) {
return (Get) super.setUploadProtocol(uploadProtocol);
}
/** Required. Name of the resource. */
@com.google.api.client.util.Key
private java.lang.String name;
/** Required. Name of the resource.
*/
public java.lang.String getName() {
return name;
}
/** Required. Name of the resource. */
public Get setName(java.lang.String name) {
if (!getSuppressPatternChecks()) {
com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(),
"Parameter name must conform to the pattern " +
"^projects/[^/]+/locations/[^/]+/reportConfigs/[^/]+$");
}
this.name = name;
return this;
}
@Override
public Get set(String parameterName, Object value) {
return (Get) super.set(parameterName, value);
}
}
/**
* Lists ReportConfigs in a given project and location.
*
* Create a request for the method "reportConfigs.list".
*
* This request holds the parameters needed by the migrationcenter server. After setting any
* optional parameters, call the {@link List#execute()} method to invoke the remote operation.
*
* @param parent Required. Parent value for `ListReportConfigsRequest`.
* @return the request
*/
public List list(java.lang.String parent) throws java.io.IOException {
List result = new List(parent);
initialize(result);
return result;
}
public class List extends MigrationCenterAPIRequest {
private static final String REST_PATH = "v1/{+parent}/reportConfigs";
private final java.util.regex.Pattern PARENT_PATTERN =
java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+$");
/**
* Lists ReportConfigs in a given project and location.
*
* Create a request for the method "reportConfigs.list".
*
* This request holds the parameters needed by the the migrationcenter server. After setting any
* optional parameters, call the {@link List#execute()} method to invoke the remote operation.
* {@link List#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)}
* must be called to initialize this instance immediately after invoking the constructor.
*
* @param parent Required. Parent value for `ListReportConfigsRequest`.
* @since 1.13
*/
protected List(java.lang.String parent) {
super(MigrationCenterAPI.this, "GET", REST_PATH, null, com.google.api.services.migrationcenter.v1.model.ListReportConfigsResponse.class);
this.parent = com.google.api.client.util.Preconditions.checkNotNull(parent, "Required parameter parent must be specified.");
if (!getSuppressPatternChecks()) {
com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(),
"Parameter parent must conform to the pattern " +
"^projects/[^/]+/locations/[^/]+$");
}
}
@Override
public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException {
return super.executeUsingHead();
}
@Override
public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException {
return super.buildHttpRequestUsingHead();
}
@Override
public List set$Xgafv(java.lang.String $Xgafv) {
return (List) super.set$Xgafv($Xgafv);
}
@Override
public List setAccessToken(java.lang.String accessToken) {
return (List) super.setAccessToken(accessToken);
}
@Override
public List setAlt(java.lang.String alt) {
return (List) super.setAlt(alt);
}
@Override
public List setCallback(java.lang.String callback) {
return (List) super.setCallback(callback);
}
@Override
public List setFields(java.lang.String fields) {
return (List) super.setFields(fields);
}
@Override
public List setKey(java.lang.String key) {
return (List) super.setKey(key);
}
@Override
public List setOauthToken(java.lang.String oauthToken) {
return (List) super.setOauthToken(oauthToken);
}
@Override
public List setPrettyPrint(java.lang.Boolean prettyPrint) {
return (List) super.setPrettyPrint(prettyPrint);
}
@Override
public List setQuotaUser(java.lang.String quotaUser) {
return (List) super.setQuotaUser(quotaUser);
}
@Override
public List setUploadType(java.lang.String uploadType) {
return (List) super.setUploadType(uploadType);
}
@Override
public List setUploadProtocol(java.lang.String uploadProtocol) {
return (List) super.setUploadProtocol(uploadProtocol);
}
/** Required. Parent value for `ListReportConfigsRequest`. */
@com.google.api.client.util.Key
private java.lang.String parent;
/** Required. Parent value for `ListReportConfigsRequest`.
*/
public java.lang.String getParent() {
return parent;
}
/** Required. Parent value for `ListReportConfigsRequest`. */
public List setParent(java.lang.String parent) {
if (!getSuppressPatternChecks()) {
com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(),
"Parameter parent must conform to the pattern " +
"^projects/[^/]+/locations/[^/]+$");
}
this.parent = parent;
return this;
}
/** Filtering results. */
@com.google.api.client.util.Key
private java.lang.String filter;
/** Filtering results.
*/
public java.lang.String getFilter() {
return filter;
}
/** Filtering results. */
public List setFilter(java.lang.String filter) {
this.filter = filter;
return this;
}
/** Field to sort by. See https://google.aip.dev/132#ordering for more details. */
@com.google.api.client.util.Key
private java.lang.String orderBy;
/** Field to sort by. See https://google.aip.dev/132#ordering for more details.
*/
public java.lang.String getOrderBy() {
return orderBy;
}
/** Field to sort by. See https://google.aip.dev/132#ordering for more details. */
public List setOrderBy(java.lang.String orderBy) {
this.orderBy = orderBy;
return this;
}
/**
* Requested page size. Server may return fewer items than requested. If unspecified,
* server will pick an appropriate default.
*/
@com.google.api.client.util.Key
private java.lang.Integer pageSize;
/** Requested page size. Server may return fewer items than requested. If unspecified, server will pick
an appropriate default.
*/
public java.lang.Integer getPageSize() {
return pageSize;
}
/**
* Requested page size. Server may return fewer items than requested. If unspecified,
* server will pick an appropriate default.
*/
public List setPageSize(java.lang.Integer pageSize) {
this.pageSize = pageSize;
return this;
}
/** A token identifying a page of results the server should return. */
@com.google.api.client.util.Key
private java.lang.String pageToken;
/** A token identifying a page of results the server should return.
*/
public java.lang.String getPageToken() {
return pageToken;
}
/** A token identifying a page of results the server should return. */
public List setPageToken(java.lang.String pageToken) {
this.pageToken = pageToken;
return this;
}
@Override
public List set(String parameterName, Object value) {
return (List) super.set(parameterName, value);
}
}
/**
* An accessor for creating requests from the Reports collection.
*
* The typical use is:
*
* {@code MigrationCenterAPI migrationcenter = new MigrationCenterAPI(...);}
* {@code MigrationCenterAPI.Reports.List request = migrationcenter.reports().list(parameters ...)}
*
*
* @return the resource collection
*/
public Reports reports() {
return new Reports();
}
/**
* The "reports" collection of methods.
*/
public class Reports {
/**
* Creates a report.
*
* Create a request for the method "reports.create".
*
* This request holds the parameters needed by the migrationcenter server. After setting any
* optional parameters, call the {@link Create#execute()} method to invoke the remote operation.
*
* @param parent Required. Value for parent.
* @param content the {@link com.google.api.services.migrationcenter.v1.model.Report}
* @return the request
*/
public Create create(java.lang.String parent, com.google.api.services.migrationcenter.v1.model.Report content) throws java.io.IOException {
Create result = new Create(parent, content);
initialize(result);
return result;
}
public class Create extends MigrationCenterAPIRequest {
private static final String REST_PATH = "v1/{+parent}/reports";
private final java.util.regex.Pattern PARENT_PATTERN =
java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/reportConfigs/[^/]+$");
/**
* Creates a report.
*
* Create a request for the method "reports.create".
*
* This request holds the parameters needed by the the migrationcenter server. After setting any
* optional parameters, call the {@link Create#execute()} method to invoke the remote operation.
* {@link
* Create#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must
* be called to initialize this instance immediately after invoking the constructor.
*
* @param parent Required. Value for parent.
* @param content the {@link com.google.api.services.migrationcenter.v1.model.Report}
* @since 1.13
*/
protected Create(java.lang.String parent, com.google.api.services.migrationcenter.v1.model.Report content) {
super(MigrationCenterAPI.this, "POST", REST_PATH, content, com.google.api.services.migrationcenter.v1.model.Operation.class);
this.parent = com.google.api.client.util.Preconditions.checkNotNull(parent, "Required parameter parent must be specified.");
if (!getSuppressPatternChecks()) {
com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(),
"Parameter parent must conform to the pattern " +
"^projects/[^/]+/locations/[^/]+/reportConfigs/[^/]+$");
}
}
@Override
public Create set$Xgafv(java.lang.String $Xgafv) {
return (Create) super.set$Xgafv($Xgafv);
}
@Override
public Create setAccessToken(java.lang.String accessToken) {
return (Create) super.setAccessToken(accessToken);
}
@Override
public Create setAlt(java.lang.String alt) {
return (Create) super.setAlt(alt);
}
@Override
public Create setCallback(java.lang.String callback) {
return (Create) super.setCallback(callback);
}
@Override
public Create setFields(java.lang.String fields) {
return (Create) super.setFields(fields);
}
@Override
public Create setKey(java.lang.String key) {
return (Create) super.setKey(key);
}
@Override
public Create setOauthToken(java.lang.String oauthToken) {
return (Create) super.setOauthToken(oauthToken);
}
@Override
public Create setPrettyPrint(java.lang.Boolean prettyPrint) {
return (Create) super.setPrettyPrint(prettyPrint);
}
@Override
public Create setQuotaUser(java.lang.String quotaUser) {
return (Create) super.setQuotaUser(quotaUser);
}
@Override
public Create setUploadType(java.lang.String uploadType) {
return (Create) super.setUploadType(uploadType);
}
@Override
public Create setUploadProtocol(java.lang.String uploadProtocol) {
return (Create) super.setUploadProtocol(uploadProtocol);
}
/** Required. Value for parent. */
@com.google.api.client.util.Key
private java.lang.String parent;
/** Required. Value for parent.
*/
public java.lang.String getParent() {
return parent;
}
/** Required. Value for parent. */
public Create setParent(java.lang.String parent) {
if (!getSuppressPatternChecks()) {
com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(),
"Parameter parent must conform to the pattern " +
"^projects/[^/]+/locations/[^/]+/reportConfigs/[^/]+$");
}
this.parent = parent;
return this;
}
/**
* Required. User specified id for the report. It will become the last component of the
* report name. The id must be unique within the project, must conform with RFC-1034, is
* restricted to lower-cased letters, and has a maximum length of 63 characters. The id
* must match the regular expression: [a-z]([a-z0-9-]{0,61}[a-z0-9])?.
*/
@com.google.api.client.util.Key
private java.lang.String reportId;
/** Required. User specified id for the report. It will become the last component of the report name.
The id must be unique within the project, must conform with RFC-1034, is restricted to lower-cased
letters, and has a maximum length of 63 characters. The id must match the regular expression:
[a-z]([a-z0-9-]{0,61}[a-z0-9])?.
*/
public java.lang.String getReportId() {
return reportId;
}
/**
* Required. User specified id for the report. It will become the last component of the
* report name. The id must be unique within the project, must conform with RFC-1034, is
* restricted to lower-cased letters, and has a maximum length of 63 characters. The id
* must match the regular expression: [a-z]([a-z0-9-]{0,61}[a-z0-9])?.
*/
public Create setReportId(java.lang.String reportId) {
this.reportId = reportId;
return this;
}
/**
* Optional. An optional request ID to identify requests. Specify a unique request ID so
* that if you must retry your request, the server will know to ignore the request if it
* has already been completed. The server will guarantee that for at least 60 minutes
* since the first request. For example, consider a situation where you make an initial
* request and the request times out. If you make the request again with the same
* request ID, the server can check if original operation with the same request ID was
* received, and if so, will ignore the second request. This prevents clients from
* accidentally creating duplicate commitments. The request ID must be a valid UUID with
* the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).
*/
@com.google.api.client.util.Key
private java.lang.String requestId;
/** Optional. An optional request ID to identify requests. Specify a unique request ID so that if you
must retry your request, the server will know to ignore the request if it has already been
completed. The server will guarantee that for at least 60 minutes since the first request. For
example, consider a situation where you make an initial request and the request times out. If you
make the request again with the same request ID, the server can check if original operation with
the same request ID was received, and if so, will ignore the second request. This prevents clients
from accidentally creating duplicate commitments. The request ID must be a valid UUID with the
exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).
*/
public java.lang.String getRequestId() {
return requestId;
}
/**
* Optional. An optional request ID to identify requests. Specify a unique request ID so
* that if you must retry your request, the server will know to ignore the request if it
* has already been completed. The server will guarantee that for at least 60 minutes
* since the first request. For example, consider a situation where you make an initial
* request and the request times out. If you make the request again with the same
* request ID, the server can check if original operation with the same request ID was
* received, and if so, will ignore the second request. This prevents clients from
* accidentally creating duplicate commitments. The request ID must be a valid UUID with
* the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).
*/
public Create setRequestId(java.lang.String requestId) {
this.requestId = requestId;
return this;
}
@Override
public Create set(String parameterName, Object value) {
return (Create) super.set(parameterName, value);
}
}
/**
* Deletes a Report.
*
* Create a request for the method "reports.delete".
*
* This request holds the parameters needed by the migrationcenter server. After setting any
* optional parameters, call the {@link Delete#execute()} method to invoke the remote operation.
*
* @param name Required. Name of the resource.
* @return the request
*/
public Delete delete(java.lang.String name) throws java.io.IOException {
Delete result = new Delete(name);
initialize(result);
return result;
}
public class Delete extends MigrationCenterAPIRequest {
private static final String REST_PATH = "v1/{+name}";
private final java.util.regex.Pattern NAME_PATTERN =
java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/reportConfigs/[^/]+/reports/[^/]+$");
/**
* Deletes a Report.
*
* Create a request for the method "reports.delete".
*
* This request holds the parameters needed by the the migrationcenter server. After setting any
* optional parameters, call the {@link Delete#execute()} method to invoke the remote operation.
* {@link
* Delete#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must
* be called to initialize this instance immediately after invoking the constructor.
*
* @param name Required. Name of the resource.
* @since 1.13
*/
protected Delete(java.lang.String name) {
super(MigrationCenterAPI.this, "DELETE", REST_PATH, null, com.google.api.services.migrationcenter.v1.model.Operation.class);
this.name = com.google.api.client.util.Preconditions.checkNotNull(name, "Required parameter name must be specified.");
if (!getSuppressPatternChecks()) {
com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(),
"Parameter name must conform to the pattern " +
"^projects/[^/]+/locations/[^/]+/reportConfigs/[^/]+/reports/[^/]+$");
}
}
@Override
public Delete set$Xgafv(java.lang.String $Xgafv) {
return (Delete) super.set$Xgafv($Xgafv);
}
@Override
public Delete setAccessToken(java.lang.String accessToken) {
return (Delete) super.setAccessToken(accessToken);
}
@Override
public Delete setAlt(java.lang.String alt) {
return (Delete) super.setAlt(alt);
}
@Override
public Delete setCallback(java.lang.String callback) {
return (Delete) super.setCallback(callback);
}
@Override
public Delete setFields(java.lang.String fields) {
return (Delete) super.setFields(fields);
}
@Override
public Delete setKey(java.lang.String key) {
return (Delete) super.setKey(key);
}
@Override
public Delete setOauthToken(java.lang.String oauthToken) {
return (Delete) super.setOauthToken(oauthToken);
}
@Override
public Delete setPrettyPrint(java.lang.Boolean prettyPrint) {
return (Delete) super.setPrettyPrint(prettyPrint);
}
@Override
public Delete setQuotaUser(java.lang.String quotaUser) {
return (Delete) super.setQuotaUser(quotaUser);
}
@Override
public Delete setUploadType(java.lang.String uploadType) {
return (Delete) super.setUploadType(uploadType);
}
@Override
public Delete setUploadProtocol(java.lang.String uploadProtocol) {
return (Delete) super.setUploadProtocol(uploadProtocol);
}
/** Required. Name of the resource. */
@com.google.api.client.util.Key
private java.lang.String name;
/** Required. Name of the resource.
*/
public java.lang.String getName() {
return name;
}
/** Required. Name of the resource. */
public Delete setName(java.lang.String name) {
if (!getSuppressPatternChecks()) {
com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(),
"Parameter name must conform to the pattern " +
"^projects/[^/]+/locations/[^/]+/reportConfigs/[^/]+/reports/[^/]+$");
}
this.name = name;
return this;
}
/**
* Optional. An optional request ID to identify requests. Specify a unique request ID so
* that if you must retry your request, the server will know to ignore the request if it
* has already been completed. The server will guarantee that for at least 60 minutes
* after the first request. For example, consider a situation where you make an initial
* request and the request times out. If you make the request again with the same
* request ID, the server can check if original operation with the same request ID was
* received, and if so, will ignore the second request. This prevents clients from
* accidentally creating duplicate commitments. The request ID must be a valid UUID with
* the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).
*/
@com.google.api.client.util.Key
private java.lang.String requestId;
/** Optional. An optional request ID to identify requests. Specify a unique request ID so that if you
must retry your request, the server will know to ignore the request if it has already been
completed. The server will guarantee that for at least 60 minutes after the first request. For
example, consider a situation where you make an initial request and the request times out. If you
make the request again with the same request ID, the server can check if original operation with
the same request ID was received, and if so, will ignore the second request. This prevents clients
from accidentally creating duplicate commitments. The request ID must be a valid UUID with the
exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).
*/
public java.lang.String getRequestId() {
return requestId;
}
/**
* Optional. An optional request ID to identify requests. Specify a unique request ID so
* that if you must retry your request, the server will know to ignore the request if it
* has already been completed. The server will guarantee that for at least 60 minutes
* after the first request. For example, consider a situation where you make an initial
* request and the request times out. If you make the request again with the same
* request ID, the server can check if original operation with the same request ID was
* received, and if so, will ignore the second request. This prevents clients from
* accidentally creating duplicate commitments. The request ID must be a valid UUID with
* the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).
*/
public Delete setRequestId(java.lang.String requestId) {
this.requestId = requestId;
return this;
}
@Override
public Delete set(String parameterName, Object value) {
return (Delete) super.set(parameterName, value);
}
}
/**
* Gets details of a single Report.
*
* Create a request for the method "reports.get".
*
* This request holds the parameters needed by the migrationcenter server. After setting any
* optional parameters, call the {@link Get#execute()} method to invoke the remote operation.
*
* @param name Required. Name of the resource.
* @return the request
*/
public Get get(java.lang.String name) throws java.io.IOException {
Get result = new Get(name);
initialize(result);
return result;
}
public class Get extends MigrationCenterAPIRequest {
private static final String REST_PATH = "v1/{+name}";
private final java.util.regex.Pattern NAME_PATTERN =
java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/reportConfigs/[^/]+/reports/[^/]+$");
/**
* Gets details of a single Report.
*
* Create a request for the method "reports.get".
*
* This request holds the parameters needed by the the migrationcenter server. After setting any
* optional parameters, call the {@link Get#execute()} method to invoke the remote operation.
* {@link Get#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)}
* must be called to initialize this instance immediately after invoking the constructor.
*
* @param name Required. Name of the resource.
* @since 1.13
*/
protected Get(java.lang.String name) {
super(MigrationCenterAPI.this, "GET", REST_PATH, null, com.google.api.services.migrationcenter.v1.model.Report.class);
this.name = com.google.api.client.util.Preconditions.checkNotNull(name, "Required parameter name must be specified.");
if (!getSuppressPatternChecks()) {
com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(),
"Parameter name must conform to the pattern " +
"^projects/[^/]+/locations/[^/]+/reportConfigs/[^/]+/reports/[^/]+$");
}
}
@Override
public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException {
return super.executeUsingHead();
}
@Override
public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException {
return super.buildHttpRequestUsingHead();
}
@Override
public Get set$Xgafv(java.lang.String $Xgafv) {
return (Get) super.set$Xgafv($Xgafv);
}
@Override
public Get setAccessToken(java.lang.String accessToken) {
return (Get) super.setAccessToken(accessToken);
}
@Override
public Get setAlt(java.lang.String alt) {
return (Get) super.setAlt(alt);
}
@Override
public Get setCallback(java.lang.String callback) {
return (Get) super.setCallback(callback);
}
@Override
public Get setFields(java.lang.String fields) {
return (Get) super.setFields(fields);
}
@Override
public Get setKey(java.lang.String key) {
return (Get) super.setKey(key);
}
@Override
public Get setOauthToken(java.lang.String oauthToken) {
return (Get) super.setOauthToken(oauthToken);
}
@Override
public Get setPrettyPrint(java.lang.Boolean prettyPrint) {
return (Get) super.setPrettyPrint(prettyPrint);
}
@Override
public Get setQuotaUser(java.lang.String quotaUser) {
return (Get) super.setQuotaUser(quotaUser);
}
@Override
public Get setUploadType(java.lang.String uploadType) {
return (Get) super.setUploadType(uploadType);
}
@Override
public Get setUploadProtocol(java.lang.String uploadProtocol) {
return (Get) super.setUploadProtocol(uploadProtocol);
}
/** Required. Name of the resource. */
@com.google.api.client.util.Key
private java.lang.String name;
/** Required. Name of the resource.
*/
public java.lang.String getName() {
return name;
}
/** Required. Name of the resource. */
public Get setName(java.lang.String name) {
if (!getSuppressPatternChecks()) {
com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(),
"Parameter name must conform to the pattern " +
"^projects/[^/]+/locations/[^/]+/reportConfigs/[^/]+/reports/[^/]+$");
}
this.name = name;
return this;
}
/** Determines what information to retrieve for the Report. */
@com.google.api.client.util.Key
private java.lang.String view;
/** Determines what information to retrieve for the Report.
*/
public java.lang.String getView() {
return view;
}
/** Determines what information to retrieve for the Report. */
public Get setView(java.lang.String view) {
this.view = view;
return this;
}
@Override
public Get set(String parameterName, Object value) {
return (Get) super.set(parameterName, value);
}
}
/**
* Lists Reports in a given ReportConfig.
*
* Create a request for the method "reports.list".
*
* This request holds the parameters needed by the migrationcenter server. After setting any
* optional parameters, call the {@link List#execute()} method to invoke the remote operation.
*
* @param parent Required. Parent value for `ListReportsRequest`.
* @return the request
*/
public List list(java.lang.String parent) throws java.io.IOException {
List result = new List(parent);
initialize(result);
return result;
}
public class List extends MigrationCenterAPIRequest {
private static final String REST_PATH = "v1/{+parent}/reports";
private final java.util.regex.Pattern PARENT_PATTERN =
java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/reportConfigs/[^/]+$");
/**
* Lists Reports in a given ReportConfig.
*
* Create a request for the method "reports.list".
*
* This request holds the parameters needed by the the migrationcenter server. After setting any
* optional parameters, call the {@link List#execute()} method to invoke the remote operation.
* {@link List#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)}
* must be called to initialize this instance immediately after invoking the constructor.
*
* @param parent Required. Parent value for `ListReportsRequest`.
* @since 1.13
*/
protected List(java.lang.String parent) {
super(MigrationCenterAPI.this, "GET", REST_PATH, null, com.google.api.services.migrationcenter.v1.model.ListReportsResponse.class);
this.parent = com.google.api.client.util.Preconditions.checkNotNull(parent, "Required parameter parent must be specified.");
if (!getSuppressPatternChecks()) {
com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(),
"Parameter parent must conform to the pattern " +
"^projects/[^/]+/locations/[^/]+/reportConfigs/[^/]+$");
}
}
@Override
public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException {
return super.executeUsingHead();
}
@Override
public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException {
return super.buildHttpRequestUsingHead();
}
@Override
public List set$Xgafv(java.lang.String $Xgafv) {
return (List) super.set$Xgafv($Xgafv);
}
@Override
public List setAccessToken(java.lang.String accessToken) {
return (List) super.setAccessToken(accessToken);
}
@Override
public List setAlt(java.lang.String alt) {
return (List) super.setAlt(alt);
}
@Override
public List setCallback(java.lang.String callback) {
return (List) super.setCallback(callback);
}
@Override
public List setFields(java.lang.String fields) {
return (List) super.setFields(fields);
}
@Override
public List setKey(java.lang.String key) {
return (List) super.setKey(key);
}
@Override
public List setOauthToken(java.lang.String oauthToken) {
return (List) super.setOauthToken(oauthToken);
}
@Override
public List setPrettyPrint(java.lang.Boolean prettyPrint) {
return (List) super.setPrettyPrint(prettyPrint);
}
@Override
public List setQuotaUser(java.lang.String quotaUser) {
return (List) super.setQuotaUser(quotaUser);
}
@Override
public List setUploadType(java.lang.String uploadType) {
return (List) super.setUploadType(uploadType);
}
@Override
public List setUploadProtocol(java.lang.String uploadProtocol) {
return (List) super.setUploadProtocol(uploadProtocol);
}
/** Required. Parent value for `ListReportsRequest`. */
@com.google.api.client.util.Key
private java.lang.String parent;
/** Required. Parent value for `ListReportsRequest`.
*/
public java.lang.String getParent() {
return parent;
}
/** Required. Parent value for `ListReportsRequest`. */
public List setParent(java.lang.String parent) {
if (!getSuppressPatternChecks()) {
com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(),
"Parameter parent must conform to the pattern " +
"^projects/[^/]+/locations/[^/]+/reportConfigs/[^/]+$");
}
this.parent = parent;
return this;
}
/** Filtering results. */
@com.google.api.client.util.Key
private java.lang.String filter;
/** Filtering results.
*/
public java.lang.String getFilter() {
return filter;
}
/** Filtering results. */
public List setFilter(java.lang.String filter) {
this.filter = filter;
return this;
}
/** Field to sort by. See https://google.aip.dev/132#ordering for more details. */
@com.google.api.client.util.Key
private java.lang.String orderBy;
/** Field to sort by. See https://google.aip.dev/132#ordering for more details.
*/
public java.lang.String getOrderBy() {
return orderBy;
}
/** Field to sort by. See https://google.aip.dev/132#ordering for more details. */
public List setOrderBy(java.lang.String orderBy) {
this.orderBy = orderBy;
return this;
}
/**
* Requested page size. The server may return fewer items than requested. If
* unspecified, the server will pick an appropriate default value.
*/
@com.google.api.client.util.Key
private java.lang.Integer pageSize;
/** Requested page size. The server may return fewer items than requested. If unspecified, the server
will pick an appropriate default value.
*/
public java.lang.Integer getPageSize() {
return pageSize;
}
/**
* Requested page size. The server may return fewer items than requested. If
* unspecified, the server will pick an appropriate default value.
*/
public List setPageSize(java.lang.Integer pageSize) {
this.pageSize = pageSize;
return this;
}
/** A token identifying a page of results that the server should return. */
@com.google.api.client.util.Key
private java.lang.String pageToken;
/** A token identifying a page of results that the server should return.
*/
public java.lang.String getPageToken() {
return pageToken;
}
/** A token identifying a page of results that the server should return. */
public List setPageToken(java.lang.String pageToken) {
this.pageToken = pageToken;
return this;
}
/** Determines what information to retrieve for each Report. */
@com.google.api.client.util.Key
private java.lang.String view;
/** Determines what information to retrieve for each Report.
*/
public java.lang.String getView() {
return view;
}
/** Determines what information to retrieve for each Report. */
public List setView(java.lang.String view) {
this.view = view;
return this;
}
@Override
public List set(String parameterName, Object value) {
return (List) super.set(parameterName, value);
}
}
}
}
/**
* An accessor for creating requests from the Sources collection.
*
* The typical use is:
*
* {@code MigrationCenterAPI migrationcenter = new MigrationCenterAPI(...);}
* {@code MigrationCenterAPI.Sources.List request = migrationcenter.sources().list(parameters ...)}
*
*
* @return the resource collection
*/
public Sources sources() {
return new Sources();
}
/**
* The "sources" collection of methods.
*/
public class Sources {
/**
* Creates a new source in a given project and location.
*
* Create a request for the method "sources.create".
*
* This request holds the parameters needed by the migrationcenter server. After setting any
* optional parameters, call the {@link Create#execute()} method to invoke the remote operation.
*
* @param parent Required. Value for parent.
* @param content the {@link com.google.api.services.migrationcenter.v1.model.Source}
* @return the request
*/
public Create create(java.lang.String parent, com.google.api.services.migrationcenter.v1.model.Source content) throws java.io.IOException {
Create result = new Create(parent, content);
initialize(result);
return result;
}
public class Create extends MigrationCenterAPIRequest {
private static final String REST_PATH = "v1/{+parent}/sources";
private final java.util.regex.Pattern PARENT_PATTERN =
java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+$");
/**
* Creates a new source in a given project and location.
*
* Create a request for the method "sources.create".
*
* This request holds the parameters needed by the the migrationcenter server. After setting any
* optional parameters, call the {@link Create#execute()} method to invoke the remote operation.
* {@link
* Create#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must
* be called to initialize this instance immediately after invoking the constructor.
*
* @param parent Required. Value for parent.
* @param content the {@link com.google.api.services.migrationcenter.v1.model.Source}
* @since 1.13
*/
protected Create(java.lang.String parent, com.google.api.services.migrationcenter.v1.model.Source content) {
super(MigrationCenterAPI.this, "POST", REST_PATH, content, com.google.api.services.migrationcenter.v1.model.Operation.class);
this.parent = com.google.api.client.util.Preconditions.checkNotNull(parent, "Required parameter parent must be specified.");
if (!getSuppressPatternChecks()) {
com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(),
"Parameter parent must conform to the pattern " +
"^projects/[^/]+/locations/[^/]+$");
}
}
@Override
public Create set$Xgafv(java.lang.String $Xgafv) {
return (Create) super.set$Xgafv($Xgafv);
}
@Override
public Create setAccessToken(java.lang.String accessToken) {
return (Create) super.setAccessToken(accessToken);
}
@Override
public Create setAlt(java.lang.String alt) {
return (Create) super.setAlt(alt);
}
@Override
public Create setCallback(java.lang.String callback) {
return (Create) super.setCallback(callback);
}
@Override
public Create setFields(java.lang.String fields) {
return (Create) super.setFields(fields);
}
@Override
public Create setKey(java.lang.String key) {
return (Create) super.setKey(key);
}
@Override
public Create setOauthToken(java.lang.String oauthToken) {
return (Create) super.setOauthToken(oauthToken);
}
@Override
public Create setPrettyPrint(java.lang.Boolean prettyPrint) {
return (Create) super.setPrettyPrint(prettyPrint);
}
@Override
public Create setQuotaUser(java.lang.String quotaUser) {
return (Create) super.setQuotaUser(quotaUser);
}
@Override
public Create setUploadType(java.lang.String uploadType) {
return (Create) super.setUploadType(uploadType);
}
@Override
public Create setUploadProtocol(java.lang.String uploadProtocol) {
return (Create) super.setUploadProtocol(uploadProtocol);
}
/** Required. Value for parent. */
@com.google.api.client.util.Key
private java.lang.String parent;
/** Required. Value for parent.
*/
public java.lang.String getParent() {
return parent;
}
/** Required. Value for parent. */
public Create setParent(java.lang.String parent) {
if (!getSuppressPatternChecks()) {
com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(),
"Parameter parent must conform to the pattern " +
"^projects/[^/]+/locations/[^/]+$");
}
this.parent = parent;
return this;
}
/**
* Optional. An optional request ID to identify requests. Specify a unique request ID so
* that if you must retry your request, the server will know to ignore the request if it
* has already been completed. The server will guarantee that for at least 60 minutes
* since the first request. For example, consider a situation where you make an initial
* request and the request times out. If you make the request again with the same request
* ID, the server can check if original operation with the same request ID was received,
* and if so, will ignore the second request. This prevents clients from accidentally
* creating duplicate commitments. The request ID must be a valid UUID with the exception
* that zero UUID is not supported (00000000-0000-0000-0000-000000000000).
*/
@com.google.api.client.util.Key
private java.lang.String requestId;
/** Optional. An optional request ID to identify requests. Specify a unique request ID so that if you
must retry your request, the server will know to ignore the request if it has already been
completed. The server will guarantee that for at least 60 minutes since the first request. For
example, consider a situation where you make an initial request and the request times out. If you
make the request again with the same request ID, the server can check if original operation with
the same request ID was received, and if so, will ignore the second request. This prevents clients
from accidentally creating duplicate commitments. The request ID must be a valid UUID with the
exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).
*/
public java.lang.String getRequestId() {
return requestId;
}
/**
* Optional. An optional request ID to identify requests. Specify a unique request ID so
* that if you must retry your request, the server will know to ignore the request if it
* has already been completed. The server will guarantee that for at least 60 minutes
* since the first request. For example, consider a situation where you make an initial
* request and the request times out. If you make the request again with the same request
* ID, the server can check if original operation with the same request ID was received,
* and if so, will ignore the second request. This prevents clients from accidentally
* creating duplicate commitments. The request ID must be a valid UUID with the exception
* that zero UUID is not supported (00000000-0000-0000-0000-000000000000).
*/
public Create setRequestId(java.lang.String requestId) {
this.requestId = requestId;
return this;
}
/**
* Required. User specified ID for the source. It will become the last component of the
* source name. The ID must be unique within the project, must conform with RFC-1034, is
* restricted to lower-cased letters, and has a maximum length of 63 characters. The ID
* must match the regular expression: `[a-z]([a-z0-9-]{0,61}[a-z0-9])?`.
*/
@com.google.api.client.util.Key
private java.lang.String sourceId;
/** Required. User specified ID for the source. It will become the last component of the source name.
The ID must be unique within the project, must conform with RFC-1034, is restricted to lower-cased
letters, and has a maximum length of 63 characters. The ID must match the regular expression:
`[a-z]([a-z0-9-]{0,61}[a-z0-9])?`.
*/
public java.lang.String getSourceId() {
return sourceId;
}
/**
* Required. User specified ID for the source. It will become the last component of the
* source name. The ID must be unique within the project, must conform with RFC-1034, is
* restricted to lower-cased letters, and has a maximum length of 63 characters. The ID
* must match the regular expression: `[a-z]([a-z0-9-]{0,61}[a-z0-9])?`.
*/
public Create setSourceId(java.lang.String sourceId) {
this.sourceId = sourceId;
return this;
}
@Override
public Create set(String parameterName, Object value) {
return (Create) super.set(parameterName, value);
}
}
/**
* Deletes a source.
*
* Create a request for the method "sources.delete".
*
* This request holds the parameters needed by the migrationcenter server. After setting any
* optional parameters, call the {@link Delete#execute()} method to invoke the remote operation.
*
* @param name Required. Name of the resource.
* @return the request
*/
public Delete delete(java.lang.String name) throws java.io.IOException {
Delete result = new Delete(name);
initialize(result);
return result;
}
public class Delete extends MigrationCenterAPIRequest {
private static final String REST_PATH = "v1/{+name}";
private final java.util.regex.Pattern NAME_PATTERN =
java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/sources/[^/]+$");
/**
* Deletes a source.
*
* Create a request for the method "sources.delete".
*
* This request holds the parameters needed by the the migrationcenter server. After setting any
* optional parameters, call the {@link Delete#execute()} method to invoke the remote operation.
* {@link
* Delete#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must
* be called to initialize this instance immediately after invoking the constructor.
*
* @param name Required. Name of the resource.
* @since 1.13
*/
protected Delete(java.lang.String name) {
super(MigrationCenterAPI.this, "DELETE", REST_PATH, null, com.google.api.services.migrationcenter.v1.model.Operation.class);
this.name = com.google.api.client.util.Preconditions.checkNotNull(name, "Required parameter name must be specified.");
if (!getSuppressPatternChecks()) {
com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(),
"Parameter name must conform to the pattern " +
"^projects/[^/]+/locations/[^/]+/sources/[^/]+$");
}
}
@Override
public Delete set$Xgafv(java.lang.String $Xgafv) {
return (Delete) super.set$Xgafv($Xgafv);
}
@Override
public Delete setAccessToken(java.lang.String accessToken) {
return (Delete) super.setAccessToken(accessToken);
}
@Override
public Delete setAlt(java.lang.String alt) {
return (Delete) super.setAlt(alt);
}
@Override
public Delete setCallback(java.lang.String callback) {
return (Delete) super.setCallback(callback);
}
@Override
public Delete setFields(java.lang.String fields) {
return (Delete) super.setFields(fields);
}
@Override
public Delete setKey(java.lang.String key) {
return (Delete) super.setKey(key);
}
@Override
public Delete setOauthToken(java.lang.String oauthToken) {
return (Delete) super.setOauthToken(oauthToken);
}
@Override
public Delete setPrettyPrint(java.lang.Boolean prettyPrint) {
return (Delete) super.setPrettyPrint(prettyPrint);
}
@Override
public Delete setQuotaUser(java.lang.String quotaUser) {
return (Delete) super.setQuotaUser(quotaUser);
}
@Override
public Delete setUploadType(java.lang.String uploadType) {
return (Delete) super.setUploadType(uploadType);
}
@Override
public Delete setUploadProtocol(java.lang.String uploadProtocol) {
return (Delete) super.setUploadProtocol(uploadProtocol);
}
/** Required. Name of the resource. */
@com.google.api.client.util.Key
private java.lang.String name;
/** Required. Name of the resource.
*/
public java.lang.String getName() {
return name;
}
/** Required. Name of the resource. */
public Delete setName(java.lang.String name) {
if (!getSuppressPatternChecks()) {
com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(),
"Parameter name must conform to the pattern " +
"^projects/[^/]+/locations/[^/]+/sources/[^/]+$");
}
this.name = name;
return this;
}
/**
* Optional. An optional request ID to identify requests. Specify a unique request ID so
* that if you must retry your request, the server will know to ignore the request if it
* has already been completed. The server will guarantee that for at least 60 minutes
* after the first request. For example, consider a situation where you make an initial
* request and the request times out. If you make the request again with the same request
* ID, the server can check if original operation with the same request ID was received,
* and if so, will ignore the second request. This prevents clients from accidentally
* creating duplicate commitments. The request ID must be a valid UUID with the exception
* that zero UUID is not supported (00000000-0000-0000-0000-000000000000).
*/
@com.google.api.client.util.Key
private java.lang.String requestId;
/** Optional. An optional request ID to identify requests. Specify a unique request ID so that if you
must retry your request, the server will know to ignore the request if it has already been
completed. The server will guarantee that for at least 60 minutes after the first request. For
example, consider a situation where you make an initial request and the request times out. If you
make the request again with the same request ID, the server can check if original operation with
the same request ID was received, and if so, will ignore the second request. This prevents clients
from accidentally creating duplicate commitments. The request ID must be a valid UUID with the
exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).
*/
public java.lang.String getRequestId() {
return requestId;
}
/**
* Optional. An optional request ID to identify requests. Specify a unique request ID so
* that if you must retry your request, the server will know to ignore the request if it
* has already been completed. The server will guarantee that for at least 60 minutes
* after the first request. For example, consider a situation where you make an initial
* request and the request times out. If you make the request again with the same request
* ID, the server can check if original operation with the same request ID was received,
* and if so, will ignore the second request. This prevents clients from accidentally
* creating duplicate commitments. The request ID must be a valid UUID with the exception
* that zero UUID is not supported (00000000-0000-0000-0000-000000000000).
*/
public Delete setRequestId(java.lang.String requestId) {
this.requestId = requestId;
return this;
}
@Override
public Delete set(String parameterName, Object value) {
return (Delete) super.set(parameterName, value);
}
}
/**
* Gets the details of a source.
*
* Create a request for the method "sources.get".
*
* This request holds the parameters needed by the migrationcenter server. After setting any
* optional parameters, call the {@link Get#execute()} method to invoke the remote operation.
*
* @param name Required. Name of the resource.
* @return the request
*/
public Get get(java.lang.String name) throws java.io.IOException {
Get result = new Get(name);
initialize(result);
return result;
}
public class Get extends MigrationCenterAPIRequest {
private static final String REST_PATH = "v1/{+name}";
private final java.util.regex.Pattern NAME_PATTERN =
java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/sources/[^/]+$");
/**
* Gets the details of a source.
*
* Create a request for the method "sources.get".
*
* This request holds the parameters needed by the the migrationcenter server. After setting any
* optional parameters, call the {@link Get#execute()} method to invoke the remote operation.
* {@link Get#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)}
* must be called to initialize this instance immediately after invoking the constructor.
*
* @param name Required. Name of the resource.
* @since 1.13
*/
protected Get(java.lang.String name) {
super(MigrationCenterAPI.this, "GET", REST_PATH, null, com.google.api.services.migrationcenter.v1.model.Source.class);
this.name = com.google.api.client.util.Preconditions.checkNotNull(name, "Required parameter name must be specified.");
if (!getSuppressPatternChecks()) {
com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(),
"Parameter name must conform to the pattern " +
"^projects/[^/]+/locations/[^/]+/sources/[^/]+$");
}
}
@Override
public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException {
return super.executeUsingHead();
}
@Override
public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException {
return super.buildHttpRequestUsingHead();
}
@Override
public Get set$Xgafv(java.lang.String $Xgafv) {
return (Get) super.set$Xgafv($Xgafv);
}
@Override
public Get setAccessToken(java.lang.String accessToken) {
return (Get) super.setAccessToken(accessToken);
}
@Override
public Get setAlt(java.lang.String alt) {
return (Get) super.setAlt(alt);
}
@Override
public Get setCallback(java.lang.String callback) {
return (Get) super.setCallback(callback);
}
@Override
public Get setFields(java.lang.String fields) {
return (Get) super.setFields(fields);
}
@Override
public Get setKey(java.lang.String key) {
return (Get) super.setKey(key);
}
@Override
public Get setOauthToken(java.lang.String oauthToken) {
return (Get) super.setOauthToken(oauthToken);
}
@Override
public Get setPrettyPrint(java.lang.Boolean prettyPrint) {
return (Get) super.setPrettyPrint(prettyPrint);
}
@Override
public Get setQuotaUser(java.lang.String quotaUser) {
return (Get) super.setQuotaUser(quotaUser);
}
@Override
public Get setUploadType(java.lang.String uploadType) {
return (Get) super.setUploadType(uploadType);
}
@Override
public Get setUploadProtocol(java.lang.String uploadProtocol) {
return (Get) super.setUploadProtocol(uploadProtocol);
}
/** Required. Name of the resource. */
@com.google.api.client.util.Key
private java.lang.String name;
/** Required. Name of the resource.
*/
public java.lang.String getName() {
return name;
}
/** Required. Name of the resource. */
public Get setName(java.lang.String name) {
if (!getSuppressPatternChecks()) {
com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(),
"Parameter name must conform to the pattern " +
"^projects/[^/]+/locations/[^/]+/sources/[^/]+$");
}
this.name = name;
return this;
}
@Override
public Get set(String parameterName, Object value) {
return (Get) super.set(parameterName, value);
}
}
/**
* Lists all the sources in a given project and location.
*
* Create a request for the method "sources.list".
*
* This request holds the parameters needed by the migrationcenter server. After setting any
* optional parameters, call the {@link List#execute()} method to invoke the remote operation.
*
* @param parent Required. Parent value for `ListSourcesRequest`.
* @return the request
*/
public List list(java.lang.String parent) throws java.io.IOException {
List result = new List(parent);
initialize(result);
return result;
}
public class List extends MigrationCenterAPIRequest {
private static final String REST_PATH = "v1/{+parent}/sources";
private final java.util.regex.Pattern PARENT_PATTERN =
java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+$");
/**
* Lists all the sources in a given project and location.
*
* Create a request for the method "sources.list".
*
* This request holds the parameters needed by the the migrationcenter server. After setting any
* optional parameters, call the {@link List#execute()} method to invoke the remote operation.
* {@link List#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)}
* must be called to initialize this instance immediately after invoking the constructor.
*
* @param parent Required. Parent value for `ListSourcesRequest`.
* @since 1.13
*/
protected List(java.lang.String parent) {
super(MigrationCenterAPI.this, "GET", REST_PATH, null, com.google.api.services.migrationcenter.v1.model.ListSourcesResponse.class);
this.parent = com.google.api.client.util.Preconditions.checkNotNull(parent, "Required parameter parent must be specified.");
if (!getSuppressPatternChecks()) {
com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(),
"Parameter parent must conform to the pattern " +
"^projects/[^/]+/locations/[^/]+$");
}
}
@Override
public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException {
return super.executeUsingHead();
}
@Override
public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException {
return super.buildHttpRequestUsingHead();
}
@Override
public List set$Xgafv(java.lang.String $Xgafv) {
return (List) super.set$Xgafv($Xgafv);
}
@Override
public List setAccessToken(java.lang.String accessToken) {
return (List) super.setAccessToken(accessToken);
}
@Override
public List setAlt(java.lang.String alt) {
return (List) super.setAlt(alt);
}
@Override
public List setCallback(java.lang.String callback) {
return (List) super.setCallback(callback);
}
@Override
public List setFields(java.lang.String fields) {
return (List) super.setFields(fields);
}
@Override
public List setKey(java.lang.String key) {
return (List) super.setKey(key);
}
@Override
public List setOauthToken(java.lang.String oauthToken) {
return (List) super.setOauthToken(oauthToken);
}
@Override
public List setPrettyPrint(java.lang.Boolean prettyPrint) {
return (List) super.setPrettyPrint(prettyPrint);
}
@Override
public List setQuotaUser(java.lang.String quotaUser) {
return (List) super.setQuotaUser(quotaUser);
}
@Override
public List setUploadType(java.lang.String uploadType) {
return (List) super.setUploadType(uploadType);
}
@Override
public List setUploadProtocol(java.lang.String uploadProtocol) {
return (List) super.setUploadProtocol(uploadProtocol);
}
/** Required. Parent value for `ListSourcesRequest`. */
@com.google.api.client.util.Key
private java.lang.String parent;
/** Required. Parent value for `ListSourcesRequest`.
*/
public java.lang.String getParent() {
return parent;
}
/** Required. Parent value for `ListSourcesRequest`. */
public List setParent(java.lang.String parent) {
if (!getSuppressPatternChecks()) {
com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(),
"Parameter parent must conform to the pattern " +
"^projects/[^/]+/locations/[^/]+$");
}
this.parent = parent;
return this;
}
/** Filtering results. */
@com.google.api.client.util.Key
private java.lang.String filter;
/** Filtering results.
*/
public java.lang.String getFilter() {
return filter;
}
/** Filtering results. */
public List setFilter(java.lang.String filter) {
this.filter = filter;
return this;
}
/** Field to sort by. See https://google.aip.dev/132#ordering for more details. */
@com.google.api.client.util.Key
private java.lang.String orderBy;
/** Field to sort by. See https://google.aip.dev/132#ordering for more details.
*/
public java.lang.String getOrderBy() {
return orderBy;
}
/** Field to sort by. See https://google.aip.dev/132#ordering for more details. */
public List setOrderBy(java.lang.String orderBy) {
this.orderBy = orderBy;
return this;
}
/**
* Requested page size. The server may return fewer items than requested. If unspecified,
* the server will pick an appropriate default value.
*/
@com.google.api.client.util.Key
private java.lang.Integer pageSize;
/** Requested page size. The server may return fewer items than requested. If unspecified, the server
will pick an appropriate default value.
*/
public java.lang.Integer getPageSize() {
return pageSize;
}
/**
* Requested page size. The server may return fewer items than requested. If unspecified,
* the server will pick an appropriate default value.
*/
public List setPageSize(java.lang.Integer pageSize) {
this.pageSize = pageSize;
return this;
}
/** A token identifying a page of results that the server should return. */
@com.google.api.client.util.Key
private java.lang.String pageToken;
/** A token identifying a page of results that the server should return.
*/
public java.lang.String getPageToken() {
return pageToken;
}
/** A token identifying a page of results that the server should return. */
public List setPageToken(java.lang.String pageToken) {
this.pageToken = pageToken;
return this;
}
@Override
public List set(String parameterName, Object value) {
return (List) super.set(parameterName, value);
}
}
/**
* Updates the parameters of a source.
*
* Create a request for the method "sources.patch".
*
* This request holds the parameters needed by the migrationcenter server. After setting any
* optional parameters, call the {@link Patch#execute()} method to invoke the remote operation.
*
* @param name Output only. The full name of the source.
* @param content the {@link com.google.api.services.migrationcenter.v1.model.Source}
* @return the request
*/
public Patch patch(java.lang.String name, com.google.api.services.migrationcenter.v1.model.Source content) throws java.io.IOException {
Patch result = new Patch(name, content);
initialize(result);
return result;
}
public class Patch extends MigrationCenterAPIRequest {
private static final String REST_PATH = "v1/{+name}";
private final java.util.regex.Pattern NAME_PATTERN =
java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/sources/[^/]+$");
/**
* Updates the parameters of a source.
*
* Create a request for the method "sources.patch".
*
* This request holds the parameters needed by the the migrationcenter server. After setting any
* optional parameters, call the {@link Patch#execute()} method to invoke the remote operation.
* {@link
* Patch#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must
* be called to initialize this instance immediately after invoking the constructor.
*
* @param name Output only. The full name of the source.
* @param content the {@link com.google.api.services.migrationcenter.v1.model.Source}
* @since 1.13
*/
protected Patch(java.lang.String name, com.google.api.services.migrationcenter.v1.model.Source content) {
super(MigrationCenterAPI.this, "PATCH", REST_PATH, content, com.google.api.services.migrationcenter.v1.model.Operation.class);
this.name = com.google.api.client.util.Preconditions.checkNotNull(name, "Required parameter name must be specified.");
if (!getSuppressPatternChecks()) {
com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(),
"Parameter name must conform to the pattern " +
"^projects/[^/]+/locations/[^/]+/sources/[^/]+$");
}
}
@Override
public Patch set$Xgafv(java.lang.String $Xgafv) {
return (Patch) super.set$Xgafv($Xgafv);
}
@Override
public Patch setAccessToken(java.lang.String accessToken) {
return (Patch) super.setAccessToken(accessToken);
}
@Override
public Patch setAlt(java.lang.String alt) {
return (Patch) super.setAlt(alt);
}
@Override
public Patch setCallback(java.lang.String callback) {
return (Patch) super.setCallback(callback);
}
@Override
public Patch setFields(java.lang.String fields) {
return (Patch) super.setFields(fields);
}
@Override
public Patch setKey(java.lang.String key) {
return (Patch) super.setKey(key);
}
@Override
public Patch setOauthToken(java.lang.String oauthToken) {
return (Patch) super.setOauthToken(oauthToken);
}
@Override
public Patch setPrettyPrint(java.lang.Boolean prettyPrint) {
return (Patch) super.setPrettyPrint(prettyPrint);
}
@Override
public Patch setQuotaUser(java.lang.String quotaUser) {
return (Patch) super.setQuotaUser(quotaUser);
}
@Override
public Patch setUploadType(java.lang.String uploadType) {
return (Patch) super.setUploadType(uploadType);
}
@Override
public Patch setUploadProtocol(java.lang.String uploadProtocol) {
return (Patch) super.setUploadProtocol(uploadProtocol);
}
/** Output only. The full name of the source. */
@com.google.api.client.util.Key
private java.lang.String name;
/** Output only. The full name of the source.
*/
public java.lang.String getName() {
return name;
}
/** Output only. The full name of the source. */
public Patch setName(java.lang.String name) {
if (!getSuppressPatternChecks()) {
com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(),
"Parameter name must conform to the pattern " +
"^projects/[^/]+/locations/[^/]+/sources/[^/]+$");
}
this.name = name;
return this;
}
/**
* Optional. An optional request ID to identify requests. Specify a unique request ID so
* that if you must retry your request, the server will know to ignore the request if it
* has already been completed. The server will guarantee that for at least 60 minutes
* since the first request. For example, consider a situation where you make an initial
* request and the request times out. If you make the request again with the same request
* ID, the server can check if original operation with the same request ID was received,
* and if so, will ignore the second request. This prevents clients from accidentally
* creating duplicate commitments. The request ID must be a valid UUID with the exception
* that zero UUID is not supported (00000000-0000-0000-0000-000000000000).
*/
@com.google.api.client.util.Key
private java.lang.String requestId;
/** Optional. An optional request ID to identify requests. Specify a unique request ID so that if you
must retry your request, the server will know to ignore the request if it has already been
completed. The server will guarantee that for at least 60 minutes since the first request. For
example, consider a situation where you make an initial request and the request times out. If you
make the request again with the same request ID, the server can check if original operation with
the same request ID was received, and if so, will ignore the second request. This prevents clients
from accidentally creating duplicate commitments. The request ID must be a valid UUID with the
exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).
*/
public java.lang.String getRequestId() {
return requestId;
}
/**
* Optional. An optional request ID to identify requests. Specify a unique request ID so
* that if you must retry your request, the server will know to ignore the request if it
* has already been completed. The server will guarantee that for at least 60 minutes
* since the first request. For example, consider a situation where you make an initial
* request and the request times out. If you make the request again with the same request
* ID, the server can check if original operation with the same request ID was received,
* and if so, will ignore the second request. This prevents clients from accidentally
* creating duplicate commitments. The request ID must be a valid UUID with the exception
* that zero UUID is not supported (00000000-0000-0000-0000-000000000000).
*/
public Patch setRequestId(java.lang.String requestId) {
this.requestId = requestId;
return this;
}
/**
* Required. Field mask is used to specify the fields to be overwritten in the `Source`
* resource by the update. The values specified in the `update_mask` field are relative to
* the resource, not the full request. A field will be overwritten if it is in the mask. A
* single * value in the mask lets you to overwrite all fields.
*/
@com.google.api.client.util.Key
private String updateMask;
/** Required. Field mask is used to specify the fields to be overwritten in the `Source` resource by
the update. The values specified in the `update_mask` field are relative to the resource, not the
full request. A field will be overwritten if it is in the mask. A single * value in the mask lets
you to overwrite all fields.
*/
public String getUpdateMask() {
return updateMask;
}
/**
* Required. Field mask is used to specify the fields to be overwritten in the `Source`
* resource by the update. The values specified in the `update_mask` field are relative to
* the resource, not the full request. A field will be overwritten if it is in the mask. A
* single * value in the mask lets you to overwrite all fields.
*/
public Patch setUpdateMask(String updateMask) {
this.updateMask = updateMask;
return this;
}
@Override
public Patch set(String parameterName, Object value) {
return (Patch) super.set(parameterName, value);
}
}
/**
* An accessor for creating requests from the ErrorFrames collection.
*
* The typical use is:
*
* {@code MigrationCenterAPI migrationcenter = new MigrationCenterAPI(...);}
* {@code MigrationCenterAPI.ErrorFrames.List request = migrationcenter.errorFrames().list(parameters ...)}
*
*
* @return the resource collection
*/
public ErrorFrames errorFrames() {
return new ErrorFrames();
}
/**
* The "errorFrames" collection of methods.
*/
public class ErrorFrames {
/**
* Gets the details of an error frame.
*
* Create a request for the method "errorFrames.get".
*
* This request holds the parameters needed by the migrationcenter server. After setting any
* optional parameters, call the {@link Get#execute()} method to invoke the remote operation.
*
* @param name Required. The name of the frame to retrieve. Format:
* projects/{project}/locations/{location}/sources/{source}/errorFrames/{error_frame}
* @return the request
*/
public Get get(java.lang.String name) throws java.io.IOException {
Get result = new Get(name);
initialize(result);
return result;
}
public class Get extends MigrationCenterAPIRequest {
private static final String REST_PATH = "v1/{+name}";
private final java.util.regex.Pattern NAME_PATTERN =
java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/sources/[^/]+/errorFrames/[^/]+$");
/**
* Gets the details of an error frame.
*
* Create a request for the method "errorFrames.get".
*
* This request holds the parameters needed by the the migrationcenter server. After setting any
* optional parameters, call the {@link Get#execute()} method to invoke the remote operation.
* {@link Get#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)}
* must be called to initialize this instance immediately after invoking the constructor.
*
* @param name Required. The name of the frame to retrieve. Format:
* projects/{project}/locations/{location}/sources/{source}/errorFrames/{error_frame}
* @since 1.13
*/
protected Get(java.lang.String name) {
super(MigrationCenterAPI.this, "GET", REST_PATH, null, com.google.api.services.migrationcenter.v1.model.ErrorFrame.class);
this.name = com.google.api.client.util.Preconditions.checkNotNull(name, "Required parameter name must be specified.");
if (!getSuppressPatternChecks()) {
com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(),
"Parameter name must conform to the pattern " +
"^projects/[^/]+/locations/[^/]+/sources/[^/]+/errorFrames/[^/]+$");
}
}
@Override
public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException {
return super.executeUsingHead();
}
@Override
public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException {
return super.buildHttpRequestUsingHead();
}
@Override
public Get set$Xgafv(java.lang.String $Xgafv) {
return (Get) super.set$Xgafv($Xgafv);
}
@Override
public Get setAccessToken(java.lang.String accessToken) {
return (Get) super.setAccessToken(accessToken);
}
@Override
public Get setAlt(java.lang.String alt) {
return (Get) super.setAlt(alt);
}
@Override
public Get setCallback(java.lang.String callback) {
return (Get) super.setCallback(callback);
}
@Override
public Get setFields(java.lang.String fields) {
return (Get) super.setFields(fields);
}
@Override
public Get setKey(java.lang.String key) {
return (Get) super.setKey(key);
}
@Override
public Get setOauthToken(java.lang.String oauthToken) {
return (Get) super.setOauthToken(oauthToken);
}
@Override
public Get setPrettyPrint(java.lang.Boolean prettyPrint) {
return (Get) super.setPrettyPrint(prettyPrint);
}
@Override
public Get setQuotaUser(java.lang.String quotaUser) {
return (Get) super.setQuotaUser(quotaUser);
}
@Override
public Get setUploadType(java.lang.String uploadType) {
return (Get) super.setUploadType(uploadType);
}
@Override
public Get setUploadProtocol(java.lang.String uploadProtocol) {
return (Get) super.setUploadProtocol(uploadProtocol);
}
/**
* Required. The name of the frame to retrieve. Format:
* projects/{project}/locations/{location}/sources/{source}/errorFrames/{error_frame}
*/
@com.google.api.client.util.Key
private java.lang.String name;
/** Required. The name of the frame to retrieve. Format:
projects/{project}/locations/{location}/sources/{source}/errorFrames/{error_frame}
*/
public java.lang.String getName() {
return name;
}
/**
* Required. The name of the frame to retrieve. Format:
* projects/{project}/locations/{location}/sources/{source}/errorFrames/{error_frame}
*/
public Get setName(java.lang.String name) {
if (!getSuppressPatternChecks()) {
com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(),
"Parameter name must conform to the pattern " +
"^projects/[^/]+/locations/[^/]+/sources/[^/]+/errorFrames/[^/]+$");
}
this.name = name;
return this;
}
/**
* Optional. An optional view mode to control the level of details for the frame. The
* default is a basic frame view.
*/
@com.google.api.client.util.Key
private java.lang.String view;
/** Optional. An optional view mode to control the level of details for the frame. The default is a
basic frame view.
*/
public java.lang.String getView() {
return view;
}
/**
* Optional. An optional view mode to control the level of details for the frame. The
* default is a basic frame view.
*/
public Get setView(java.lang.String view) {
this.view = view;
return this;
}
@Override
public Get set(String parameterName, Object value) {
return (Get) super.set(parameterName, value);
}
}
/**
* Lists all error frames in a given source and location.
*
* Create a request for the method "errorFrames.list".
*
* This request holds the parameters needed by the migrationcenter server. After setting any
* optional parameters, call the {@link List#execute()} method to invoke the remote operation.
*
* @param parent Required. Parent value (the source) for `ListErrorFramesRequest`.
* @return the request
*/
public List list(java.lang.String parent) throws java.io.IOException {
List result = new List(parent);
initialize(result);
return result;
}
public class List extends MigrationCenterAPIRequest {
private static final String REST_PATH = "v1/{+parent}/errorFrames";
private final java.util.regex.Pattern PARENT_PATTERN =
java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/sources/[^/]+$");
/**
* Lists all error frames in a given source and location.
*
* Create a request for the method "errorFrames.list".
*
* This request holds the parameters needed by the the migrationcenter server. After setting any
* optional parameters, call the {@link List#execute()} method to invoke the remote operation.
* {@link List#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)}
* must be called to initialize this instance immediately after invoking the constructor.
*
* @param parent Required. Parent value (the source) for `ListErrorFramesRequest`.
* @since 1.13
*/
protected List(java.lang.String parent) {
super(MigrationCenterAPI.this, "GET", REST_PATH, null, com.google.api.services.migrationcenter.v1.model.ListErrorFramesResponse.class);
this.parent = com.google.api.client.util.Preconditions.checkNotNull(parent, "Required parameter parent must be specified.");
if (!getSuppressPatternChecks()) {
com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(),
"Parameter parent must conform to the pattern " +
"^projects/[^/]+/locations/[^/]+/sources/[^/]+$");
}
}
@Override
public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException {
return super.executeUsingHead();
}
@Override
public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException {
return super.buildHttpRequestUsingHead();
}
@Override
public List set$Xgafv(java.lang.String $Xgafv) {
return (List) super.set$Xgafv($Xgafv);
}
@Override
public List setAccessToken(java.lang.String accessToken) {
return (List) super.setAccessToken(accessToken);
}
@Override
public List setAlt(java.lang.String alt) {
return (List) super.setAlt(alt);
}
@Override
public List setCallback(java.lang.String callback) {
return (List) super.setCallback(callback);
}
@Override
public List setFields(java.lang.String fields) {
return (List) super.setFields(fields);
}
@Override
public List setKey(java.lang.String key) {
return (List) super.setKey(key);
}
@Override
public List setOauthToken(java.lang.String oauthToken) {
return (List) super.setOauthToken(oauthToken);
}
@Override
public List setPrettyPrint(java.lang.Boolean prettyPrint) {
return (List) super.setPrettyPrint(prettyPrint);
}
@Override
public List setQuotaUser(java.lang.String quotaUser) {
return (List) super.setQuotaUser(quotaUser);
}
@Override
public List setUploadType(java.lang.String uploadType) {
return (List) super.setUploadType(uploadType);
}
@Override
public List setUploadProtocol(java.lang.String uploadProtocol) {
return (List) super.setUploadProtocol(uploadProtocol);
}
/** Required. Parent value (the source) for `ListErrorFramesRequest`. */
@com.google.api.client.util.Key
private java.lang.String parent;
/** Required. Parent value (the source) for `ListErrorFramesRequest`.
*/
public java.lang.String getParent() {
return parent;
}
/** Required. Parent value (the source) for `ListErrorFramesRequest`. */
public List setParent(java.lang.String parent) {
if (!getSuppressPatternChecks()) {
com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(),
"Parameter parent must conform to the pattern " +
"^projects/[^/]+/locations/[^/]+/sources/[^/]+$");
}
this.parent = parent;
return this;
}
/**
* Requested page size. Server may return fewer items than requested. If unspecified,
* server will pick an appropriate default.
*/
@com.google.api.client.util.Key
private java.lang.Integer pageSize;
/** Requested page size. Server may return fewer items than requested. If unspecified, server will pick
an appropriate default.
*/
public java.lang.Integer getPageSize() {
return pageSize;
}
/**
* Requested page size. Server may return fewer items than requested. If unspecified,
* server will pick an appropriate default.
*/
public List setPageSize(java.lang.Integer pageSize) {
this.pageSize = pageSize;
return this;
}
/** A token identifying a page of results the server should return. */
@com.google.api.client.util.Key
private java.lang.String pageToken;
/** A token identifying a page of results the server should return.
*/
public java.lang.String getPageToken() {
return pageToken;
}
/** A token identifying a page of results the server should return. */
public List setPageToken(java.lang.String pageToken) {
this.pageToken = pageToken;
return this;
}
/**
* Optional. An optional view mode to control the level of details of each error frame.
* The default is a BASIC frame view.
*/
@com.google.api.client.util.Key
private java.lang.String view;
/** Optional. An optional view mode to control the level of details of each error frame. The default is
a BASIC frame view.
*/
public java.lang.String getView() {
return view;
}
/**
* Optional. An optional view mode to control the level of details of each error frame.
* The default is a BASIC frame view.
*/
public List setView(java.lang.String view) {
this.view = view;
return this;
}
@Override
public List set(String parameterName, Object value) {
return (List) super.set(parameterName, value);
}
}
}
}
}
}
/**
* Builder for {@link MigrationCenterAPI}.
*
*
* Implementation is not thread-safe.
*
*
* @since 1.3.0
*/
public static final class Builder extends com.google.api.client.googleapis.services.json.AbstractGoogleJsonClient.Builder {
private static String chooseEndpoint(com.google.api.client.http.HttpTransport transport) {
// If the GOOGLE_API_USE_MTLS_ENDPOINT environment variable value is "always", use mTLS endpoint.
// If the env variable is "auto", use mTLS endpoint if and only if the transport is mTLS.
// Use the regular endpoint for all other cases.
String useMtlsEndpoint = System.getenv("GOOGLE_API_USE_MTLS_ENDPOINT");
useMtlsEndpoint = useMtlsEndpoint == null ? "auto" : useMtlsEndpoint;
if ("always".equals(useMtlsEndpoint) || ("auto".equals(useMtlsEndpoint) && transport != null && transport.isMtls())) {
return DEFAULT_MTLS_ROOT_URL;
}
return DEFAULT_ROOT_URL;
}
/**
* Returns an instance of a new builder.
*
* @param transport HTTP transport, which should normally be:
*
* - Google App Engine:
* {@code com.google.api.client.extensions.appengine.http.UrlFetchTransport}
* - Android: {@code newCompatibleTransport} from
* {@code com.google.api.client.extensions.android.http.AndroidHttp}
* - Java: {@link com.google.api.client.googleapis.javanet.GoogleNetHttpTransport#newTrustedTransport()}
*
*
* @param jsonFactory JSON factory, which may be:
*
* - Jackson: {@code com.google.api.client.json.jackson2.JacksonFactory}
* - Google GSON: {@code com.google.api.client.json.gson.GsonFactory}
* - Android Honeycomb or higher:
* {@code com.google.api.client.extensions.android.json.AndroidJsonFactory}
*
* @param httpRequestInitializer HTTP request initializer or {@code null} for none
* @since 1.7
*/
public Builder(com.google.api.client.http.HttpTransport transport, com.google.api.client.json.JsonFactory jsonFactory,
com.google.api.client.http.HttpRequestInitializer httpRequestInitializer) {
super(
transport,
jsonFactory,
Builder.chooseEndpoint(transport),
DEFAULT_SERVICE_PATH,
httpRequestInitializer,
false);
setBatchPath(DEFAULT_BATCH_PATH);
}
/** Builds a new instance of {@link MigrationCenterAPI}. */
@Override
public MigrationCenterAPI build() {
return new MigrationCenterAPI(this);
}
@Override
public Builder setRootUrl(String rootUrl) {
return (Builder) super.setRootUrl(rootUrl);
}
@Override
public Builder setServicePath(String servicePath) {
return (Builder) super.setServicePath(servicePath);
}
@Override
public Builder setBatchPath(String batchPath) {
return (Builder) super.setBatchPath(batchPath);
}
@Override
public Builder setHttpRequestInitializer(com.google.api.client.http.HttpRequestInitializer httpRequestInitializer) {
return (Builder) super.setHttpRequestInitializer(httpRequestInitializer);
}
@Override
public Builder setApplicationName(String applicationName) {
return (Builder) super.setApplicationName(applicationName);
}
@Override
public Builder setSuppressPatternChecks(boolean suppressPatternChecks) {
return (Builder) super.setSuppressPatternChecks(suppressPatternChecks);
}
@Override
public Builder setSuppressRequiredParameterChecks(boolean suppressRequiredParameterChecks) {
return (Builder) super.setSuppressRequiredParameterChecks(suppressRequiredParameterChecks);
}
@Override
public Builder setSuppressAllChecks(boolean suppressAllChecks) {
return (Builder) super.setSuppressAllChecks(suppressAllChecks);
}
/**
* Set the {@link MigrationCenterAPIRequestInitializer}.
*
* @since 1.12
*/
public Builder setMigrationCenterAPIRequestInitializer(
MigrationCenterAPIRequestInitializer migrationcenterapiRequestInitializer) {
return (Builder) super.setGoogleClientRequestInitializer(migrationcenterapiRequestInitializer);
}
@Override
public Builder setGoogleClientRequestInitializer(
com.google.api.client.googleapis.services.GoogleClientRequestInitializer googleClientRequestInitializer) {
return (Builder) super.setGoogleClientRequestInitializer(googleClientRequestInitializer);
}
@Override
public Builder setUniverseDomain(String universeDomain) {
return (Builder) super.setUniverseDomain(universeDomain);
}
}
}