diff --git a/clients/google-api-services-ftp/v1/2.0.0/README.md b/clients/google-api-services-ftp/v1/2.0.0/README.md new file mode 100644 index 00000000000..9cdf7ce56a0 --- /dev/null +++ b/clients/google-api-services-ftp/v1/2.0.0/README.md @@ -0,0 +1,44 @@ +# Cloud FTP API Client Library for Java + + + +This page contains information about getting started with the Cloud FTP API +using the Google API Client Library for Java. In addition, you may be interested +in the following documentation: + +* Browse the [Javadoc reference for the Cloud FTP API][javadoc] +* Read the [Developer's Guide for the Google API Client Library for Java][google-api-client]. +* Interact with this API in your browser using the [APIs Explorer for the Cloud FTP API][api-explorer] + +## Installation + +### Maven + +Add the following lines to your `pom.xml` file: + +```xml + + + + com.google.apis + google-api-services-ftp + v1-rev20260722-2.0.0 + + + +``` + +### Gradle + +```gradle +repositories { + mavenCentral() +} +dependencies { + implementation 'com.google.apis:google-api-services-ftp:v1-rev20260722-2.0.0' +} +``` + +[javadoc]: https://googleapis.dev/java/google-api-services-ftp/latest/index.html +[google-api-client]: https://github.com/googleapis/google-api-java-client/ +[api-explorer]: https://developers.google.com/apis-explorer/#p/ftp/v1/ diff --git a/clients/google-api-services-ftp/v1/2.0.0/com/google/api/services/ftp/v1/CloudFTP.java b/clients/google-api-services-ftp/v1/2.0.0/com/google/api/services/ftp/v1/CloudFTP.java new file mode 100644 index 00000000000..6436830372b --- /dev/null +++ b/clients/google-api-services-ftp/v1/2.0.0/com/google/api/services/ftp/v1/CloudFTP.java @@ -0,0 +1,3452 @@ +/* + * 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.ftp.v1; + +/** + * Service definition for CloudFTP (v1). + * + *

+ * + *

+ * + *

+ * For more information about this service, see the + * API Documentation + *

+ * + *

+ * This service uses {@link CloudFTPRequestInitializer} to initialize global parameters via its + * {@link Builder}. + *

+ * + * @since 1.3 + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public class CloudFTP 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 Cloud FTP 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://ftp.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://ftp.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: + * + * @param jsonFactory JSON factory, which may be: + * + * @param httpRequestInitializer HTTP request initializer or {@code null} for none + * @since 1.7 + */ + public CloudFTP(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 + */ + CloudFTP(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 CloudFTP ftp = new CloudFTP(...);}
+   *   {@code CloudFTP.Projects.List request = ftp.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 CloudFTP ftp = new CloudFTP(...);}
+     *   {@code CloudFTP.Locations.List request = ftp.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 ftp 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 CloudFTPRequest { + + 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 ftp 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(CloudFTP.this, "GET", REST_PATH, null, com.google.api.services.ftp.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); + } + } + /** + * Lists information about the supported locations for this service. This method lists locations + * based on the resource scope provided in the ListLocationsRequest.name field: * **Global + * locations**: If `name` is empty, the method lists the public locations available to all projects. + * * **Project-specific locations**: If `name` follows the format `projects/{project}`, the method + * lists locations visible to that specific project. This includes public, private, or other + * project-specific locations enabled for the project. For gRPC and client library implementations, + * the resource name is passed as the `name` field. For direct service calls, the resource name is + * incorporated into the request path based on the specific service implementation and version. + * + * Create a request for the method "locations.list". + * + * This request holds the parameters needed by the ftp 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 CloudFTPRequest { + + 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. This method lists locations + * based on the resource scope provided in the ListLocationsRequest.name field: * **Global + * locations**: If `name` is empty, the method lists the public locations available to all + * projects. * **Project-specific locations**: If `name` follows the format `projects/{project}`, + * the method lists locations visible to that specific project. This includes public, private, or + * other project-specific locations enabled for the project. For gRPC and client library + * implementations, the resource name is passed as the `name` field. For direct service calls, the + * resource name is incorporated into the request path based on the specific service + * implementation and version. + * + * Create a request for the method "locations.list". + * + * This request holds the parameters needed by the the ftp 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(CloudFTP.this, "GET", REST_PATH, null, com.google.api.services.ftp.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; + } + + /** + * Optional. Do not use this field unless explicitly documented otherwise. This is primarily + * for internal usage. + */ + @com.google.api.client.util.Key + private java.util.List extraLocationTypes; + + /** Optional. Do not use this field unless explicitly documented otherwise. This is primarily for + internal usage. + */ + public java.util.List getExtraLocationTypes() { + return extraLocationTypes; + } + + /** + * Optional. Do not use this field unless explicitly documented otherwise. This is primarily + * for internal usage. + */ + public List setExtraLocationTypes(java.util.List extraLocationTypes) { + this.extraLocationTypes = extraLocationTypes; + 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); + } + } + + /** + * An accessor for creating requests from the Operations collection. + * + *

The typical use is:

+ *
+       *   {@code CloudFTP ftp = new CloudFTP(...);}
+       *   {@code CloudFTP.Operations.List request = ftp.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 ftp 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.ftp.v1.model.CancelOperationRequest} + * @return the request + */ + public Cancel cancel(java.lang.String name, com.google.api.services.ftp.v1.model.CancelOperationRequest content) throws java.io.IOException { + Cancel result = new Cancel(name, content); + initialize(result); + return result; + } + + public class Cancel extends CloudFTPRequest { + + 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 ftp 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.ftp.v1.model.CancelOperationRequest} + * @since 1.13 + */ + protected Cancel(java.lang.String name, com.google.api.services.ftp.v1.model.CancelOperationRequest content) { + super(CloudFTP.this, "POST", REST_PATH, content, com.google.api.services.ftp.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 ftp 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 CloudFTPRequest { + + 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 ftp 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(CloudFTP.this, "DELETE", REST_PATH, null, com.google.api.services.ftp.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 ftp 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 CloudFTPRequest { + + 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 ftp 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(CloudFTP.this, "GET", REST_PATH, null, com.google.api.services.ftp.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 ftp 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 CloudFTPRequest { + + 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 ftp 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(CloudFTP.this, "GET", REST_PATH, null, com.google.api.services.ftp.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; + } + + /** + * When set to `true`, operations that are reachable are returned as normal, and those + * that are unreachable are returned in the ListOperationsResponse.unreachable field. This + * can only be `true` when reading across collections. For example, when `parent` is set + * to `"projects/example/locations/-"`. This field is not supported by default and will + * result in an `UNIMPLEMENTED` error if set unless explicitly documented otherwise in + * service or product specific documentation. + */ + @com.google.api.client.util.Key + private java.lang.Boolean returnPartialSuccess; + + /** When set to `true`, operations that are reachable are returned as normal, and those that are + unreachable are returned in the ListOperationsResponse.unreachable field. This can only be `true` + when reading across collections. For example, when `parent` is set to + `"projects/example/locations/-"`. This field is not supported by default and will result in an + `UNIMPLEMENTED` error if set unless explicitly documented otherwise in service or product specific + documentation. + */ + public java.lang.Boolean getReturnPartialSuccess() { + return returnPartialSuccess; + } + + /** + * When set to `true`, operations that are reachable are returned as normal, and those + * that are unreachable are returned in the ListOperationsResponse.unreachable field. This + * can only be `true` when reading across collections. For example, when `parent` is set + * to `"projects/example/locations/-"`. This field is not supported by default and will + * result in an `UNIMPLEMENTED` error if set unless explicitly documented otherwise in + * service or product specific documentation. + */ + public List setReturnPartialSuccess(java.lang.Boolean returnPartialSuccess) { + this.returnPartialSuccess = returnPartialSuccess; + return this; + } + + @Override + public List set(String parameterName, Object value) { + return (List) super.set(parameterName, value); + } + } + + } + /** + * An accessor for creating requests from the Servers collection. + * + *

The typical use is:

+ *
+       *   {@code CloudFTP ftp = new CloudFTP(...);}
+       *   {@code CloudFTP.Servers.List request = ftp.servers().list(parameters ...)}
+       * 
+ * + * @return the resource collection + */ + public Servers servers() { + return new Servers(); + } + + /** + * The "servers" collection of methods. + */ + public class Servers { + + /** + * Creates a new Server in a given project and location. + * + * Create a request for the method "servers.create". + * + * This request holds the parameters needed by the ftp 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.ftp.v1.model.Server} + * @return the request + */ + public Create create(java.lang.String parent, com.google.api.services.ftp.v1.model.Server content) throws java.io.IOException { + Create result = new Create(parent, content); + initialize(result); + return result; + } + + public class Create extends CloudFTPRequest { + + private static final String REST_PATH = "v1/{+parent}/servers"; + + private final java.util.regex.Pattern PARENT_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+$"); + + /** + * Creates a new Server in a given project and location. + * + * Create a request for the method "servers.create". + * + * This request holds the parameters needed by the the ftp 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.ftp.v1.model.Server} + * @since 1.13 + */ + protected Create(java.lang.String parent, com.google.api.services.ftp.v1.model.Server content) { + super(CloudFTP.this, "POST", REST_PATH, content, com.google.api.services.ftp.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. Id of the requesting object If auto-generating Id server-side, remove this + * field and server_id from the method_signature of Create RPC + */ + @com.google.api.client.util.Key + private java.lang.String serverId; + + /** Required. Id of the requesting object If auto-generating Id server-side, remove this field and + server_id from the method_signature of Create RPC + */ + public java.lang.String getServerId() { + return serverId; + } + + /** + * Required. Id of the requesting object If auto-generating Id server-side, remove this + * field and server_id from the method_signature of Create RPC + */ + public Create setServerId(java.lang.String serverId) { + this.serverId = serverId; + return this; + } + + @Override + public Create set(String parameterName, Object value) { + return (Create) super.set(parameterName, value); + } + } + /** + * Deletes a single Server. + * + * Create a request for the method "servers.delete". + * + * This request holds the parameters needed by the ftp 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 CloudFTPRequest { + + private static final String REST_PATH = "v1/{+name}"; + + private final java.util.regex.Pattern NAME_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/servers/[^/]+$"); + + /** + * Deletes a single Server. + * + * Create a request for the method "servers.delete". + * + * This request holds the parameters needed by the the ftp 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(CloudFTP.this, "DELETE", REST_PATH, null, com.google.api.services.ftp.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/[^/]+/servers/[^/]+$"); + } + } + + @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/[^/]+/servers/[^/]+$"); + } + this.name = name; + return this; + } + + @Override + public Delete set(String parameterName, Object value) { + return (Delete) super.set(parameterName, value); + } + } + /** + * Gets details of a single Server. + * + * Create a request for the method "servers.get". + * + * This request holds the parameters needed by the ftp 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 CloudFTPRequest { + + private static final String REST_PATH = "v1/{+name}"; + + private final java.util.regex.Pattern NAME_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/servers/[^/]+$"); + + /** + * Gets details of a single Server. + * + * Create a request for the method "servers.get". + * + * This request holds the parameters needed by the the ftp 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(CloudFTP.this, "GET", REST_PATH, null, com.google.api.services.ftp.v1.model.Server.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/[^/]+/servers/[^/]+$"); + } + } + + @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/[^/]+/servers/[^/]+$"); + } + this.name = name; + return this; + } + + /** Optional. The view of the Server resource to return. */ + @com.google.api.client.util.Key + private java.lang.String view; + + /** Optional. The view of the Server resource to return. + */ + public java.lang.String getView() { + return view; + } + + /** Optional. The view of the Server resource to return. */ + 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 Servers in a given project and location. + * + * Create a request for the method "servers.list". + * + * This request holds the parameters needed by the ftp server. After setting any optional + * parameters, call the {@link List#execute()} method to invoke the remote operation. + * + * @param parent Required. Parent value for ListServersRequest + * @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 CloudFTPRequest { + + private static final String REST_PATH = "v1/{+parent}/servers"; + + private final java.util.regex.Pattern PARENT_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+$"); + + /** + * Lists Servers in a given project and location. + * + * Create a request for the method "servers.list". + * + * This request holds the parameters needed by the the ftp 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 ListServersRequest + * @since 1.13 + */ + protected List(java.lang.String parent) { + super(CloudFTP.this, "GET", REST_PATH, null, com.google.api.services.ftp.v1.model.ListServersResponse.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 ListServersRequest */ + @com.google.api.client.util.Key + private java.lang.String parent; + + /** Required. Parent value for ListServersRequest + */ + public java.lang.String getParent() { + return parent; + } + + /** Required. Parent value for ListServersRequest */ + 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. Filtering results */ + @com.google.api.client.util.Key + private java.lang.String filter; + + /** Optional. Filtering results + */ + public java.lang.String getFilter() { + return filter; + } + + /** Optional. Filtering results */ + public List setFilter(java.lang.String filter) { + this.filter = filter; + return this; + } + + /** Optional. Hint for how to order the results */ + @com.google.api.client.util.Key + private java.lang.String orderBy; + + /** Optional. Hint for how to order the results + */ + public java.lang.String getOrderBy() { + return orderBy; + } + + /** Optional. Hint for how to order the results */ + public List setOrderBy(java.lang.String orderBy) { + this.orderBy = orderBy; + return this; + } + + /** + * Optional. 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; + + /** Optional. 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; + } + + /** + * Optional. 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; + } + + /** Optional. A token identifying a page of results the server should return. */ + @com.google.api.client.util.Key + private java.lang.String pageToken; + + /** Optional. A token identifying a page of results the server should return. + */ + public java.lang.String getPageToken() { + return pageToken; + } + + /** Optional. 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 view of the Server resource to return. */ + @com.google.api.client.util.Key + private java.lang.String view; + + /** Optional. The view of the Server resource to return. + */ + public java.lang.String getView() { + return view; + } + + /** Optional. The view of the Server resource to return. */ + 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 a single Server. + * + * Create a request for the method "servers.patch". + * + * This request holds the parameters needed by the ftp server. After setting any optional + * parameters, call the {@link Patch#execute()} method to invoke the remote operation. + * + * @param name Identifier. name of resource + * @param content the {@link com.google.api.services.ftp.v1.model.Server} + * @return the request + */ + public Patch patch(java.lang.String name, com.google.api.services.ftp.v1.model.Server content) throws java.io.IOException { + Patch result = new Patch(name, content); + initialize(result); + return result; + } + + public class Patch extends CloudFTPRequest { + + private static final String REST_PATH = "v1/{+name}"; + + private final java.util.regex.Pattern NAME_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/servers/[^/]+$"); + + /** + * Updates the parameters of a single Server. + * + * Create a request for the method "servers.patch". + * + * This request holds the parameters needed by the the ftp 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 Identifier. name of resource + * @param content the {@link com.google.api.services.ftp.v1.model.Server} + * @since 1.13 + */ + protected Patch(java.lang.String name, com.google.api.services.ftp.v1.model.Server content) { + super(CloudFTP.this, "PATCH", REST_PATH, content, com.google.api.services.ftp.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/[^/]+/servers/[^/]+$"); + } + } + + @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); + } + + /** Identifier. name of resource */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** Identifier. name of resource + */ + public java.lang.String getName() { + return name; + } + + /** Identifier. name of resource */ + 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/[^/]+/servers/[^/]+$"); + } + 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; + } + + /** + * Optional. Field mask is used to specify the fields to be overwritten in the Server + * resource by the update. The fields 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. If + * the user does not provide a mask then all fields present in the request will be + * overwritten. + */ + @com.google.api.client.util.Key + private String updateMask; + + /** Optional. Field mask is used to specify the fields to be overwritten in the Server resource by the + update. The fields 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. If the user does not provide a mask then all + fields present in the request will be overwritten. + */ + public String getUpdateMask() { + return updateMask; + } + + /** + * Optional. Field mask is used to specify the fields to be overwritten in the Server + * resource by the update. The fields 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. If + * the user does not provide a mask then all fields present in the request will be + * overwritten. + */ + public Patch setUpdateMask(String updateMask) { + this.updateMask = updateMask; + return this; + } + + @Override + public Patch set(String parameterName, Object value) { + return (Patch) super.set(parameterName, value); + } + } + /** + * Starts a stopping/stopped Server. + * + * Create a request for the method "servers.start". + * + * This request holds the parameters needed by the ftp server. After setting any optional + * parameters, call the {@link Start#execute()} method to invoke the remote operation. + * + * @param name Required. Name of the resource Format: `projects/{project}/locations/{location}/servers/{server}` + * @param content the {@link com.google.api.services.ftp.v1.model.StartServerRequest} + * @return the request + */ + public Start start(java.lang.String name, com.google.api.services.ftp.v1.model.StartServerRequest content) throws java.io.IOException { + Start result = new Start(name, content); + initialize(result); + return result; + } + + public class Start extends CloudFTPRequest { + + private static final String REST_PATH = "v1/{+name}:start"; + + private final java.util.regex.Pattern NAME_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/servers/[^/]+$"); + + /** + * Starts a stopping/stopped Server. + * + * Create a request for the method "servers.start". + * + * This request holds the parameters needed by the the ftp server. After setting any optional + * parameters, call the {@link Start#execute()} method to invoke the remote operation.

{@link + * Start#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 Format: `projects/{project}/locations/{location}/servers/{server}` + * @param content the {@link com.google.api.services.ftp.v1.model.StartServerRequest} + * @since 1.13 + */ + protected Start(java.lang.String name, com.google.api.services.ftp.v1.model.StartServerRequest content) { + super(CloudFTP.this, "POST", REST_PATH, content, com.google.api.services.ftp.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/[^/]+/servers/[^/]+$"); + } + } + + @Override + public Start set$Xgafv(java.lang.String $Xgafv) { + return (Start) super.set$Xgafv($Xgafv); + } + + @Override + public Start setAccessToken(java.lang.String accessToken) { + return (Start) super.setAccessToken(accessToken); + } + + @Override + public Start setAlt(java.lang.String alt) { + return (Start) super.setAlt(alt); + } + + @Override + public Start setCallback(java.lang.String callback) { + return (Start) super.setCallback(callback); + } + + @Override + public Start setFields(java.lang.String fields) { + return (Start) super.setFields(fields); + } + + @Override + public Start setKey(java.lang.String key) { + return (Start) super.setKey(key); + } + + @Override + public Start setOauthToken(java.lang.String oauthToken) { + return (Start) super.setOauthToken(oauthToken); + } + + @Override + public Start setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Start) super.setPrettyPrint(prettyPrint); + } + + @Override + public Start setQuotaUser(java.lang.String quotaUser) { + return (Start) super.setQuotaUser(quotaUser); + } + + @Override + public Start setUploadType(java.lang.String uploadType) { + return (Start) super.setUploadType(uploadType); + } + + @Override + public Start setUploadProtocol(java.lang.String uploadProtocol) { + return (Start) super.setUploadProtocol(uploadProtocol); + } + + /** + * Required. Name of the resource Format: + * `projects/{project}/locations/{location}/servers/{server}` + */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** Required. Name of the resource Format: `projects/{project}/locations/{location}/servers/{server}` + */ + public java.lang.String getName() { + return name; + } + + /** + * Required. Name of the resource Format: + * `projects/{project}/locations/{location}/servers/{server}` + */ + public Start 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/[^/]+/servers/[^/]+$"); + } + this.name = name; + return this; + } + + @Override + public Start set(String parameterName, Object value) { + return (Start) super.set(parameterName, value); + } + } + /** + * Stops an active Server. + * + * Create a request for the method "servers.stop". + * + * This request holds the parameters needed by the ftp server. After setting any optional + * parameters, call the {@link Stop#execute()} method to invoke the remote operation. + * + * @param name Required. Name of the resource. Format: `projects/{project}/locations/{location}/servers/{server}` + * @param content the {@link com.google.api.services.ftp.v1.model.StopServerRequest} + * @return the request + */ + public Stop stop(java.lang.String name, com.google.api.services.ftp.v1.model.StopServerRequest content) throws java.io.IOException { + Stop result = new Stop(name, content); + initialize(result); + return result; + } + + public class Stop extends CloudFTPRequest { + + private static final String REST_PATH = "v1/{+name}:stop"; + + private final java.util.regex.Pattern NAME_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/servers/[^/]+$"); + + /** + * Stops an active Server. + * + * Create a request for the method "servers.stop". + * + * This request holds the parameters needed by the the ftp server. After setting any optional + * parameters, call the {@link Stop#execute()} method to invoke the remote operation.

{@link + * Stop#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. Format: `projects/{project}/locations/{location}/servers/{server}` + * @param content the {@link com.google.api.services.ftp.v1.model.StopServerRequest} + * @since 1.13 + */ + protected Stop(java.lang.String name, com.google.api.services.ftp.v1.model.StopServerRequest content) { + super(CloudFTP.this, "POST", REST_PATH, content, com.google.api.services.ftp.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/[^/]+/servers/[^/]+$"); + } + } + + @Override + public Stop set$Xgafv(java.lang.String $Xgafv) { + return (Stop) super.set$Xgafv($Xgafv); + } + + @Override + public Stop setAccessToken(java.lang.String accessToken) { + return (Stop) super.setAccessToken(accessToken); + } + + @Override + public Stop setAlt(java.lang.String alt) { + return (Stop) super.setAlt(alt); + } + + @Override + public Stop setCallback(java.lang.String callback) { + return (Stop) super.setCallback(callback); + } + + @Override + public Stop setFields(java.lang.String fields) { + return (Stop) super.setFields(fields); + } + + @Override + public Stop setKey(java.lang.String key) { + return (Stop) super.setKey(key); + } + + @Override + public Stop setOauthToken(java.lang.String oauthToken) { + return (Stop) super.setOauthToken(oauthToken); + } + + @Override + public Stop setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Stop) super.setPrettyPrint(prettyPrint); + } + + @Override + public Stop setQuotaUser(java.lang.String quotaUser) { + return (Stop) super.setQuotaUser(quotaUser); + } + + @Override + public Stop setUploadType(java.lang.String uploadType) { + return (Stop) super.setUploadType(uploadType); + } + + @Override + public Stop setUploadProtocol(java.lang.String uploadProtocol) { + return (Stop) super.setUploadProtocol(uploadProtocol); + } + + /** + * Required. Name of the resource. Format: + * `projects/{project}/locations/{location}/servers/{server}` + */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** Required. Name of the resource. Format: `projects/{project}/locations/{location}/servers/{server}` + */ + public java.lang.String getName() { + return name; + } + + /** + * Required. Name of the resource. Format: + * `projects/{project}/locations/{location}/servers/{server}` + */ + public Stop 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/[^/]+/servers/[^/]+$"); + } + this.name = name; + return this; + } + + @Override + public Stop set(String parameterName, Object value) { + return (Stop) super.set(parameterName, value); + } + } + + /** + * An accessor for creating requests from the Users collection. + * + *

The typical use is:

+ *
+         *   {@code CloudFTP ftp = new CloudFTP(...);}
+         *   {@code CloudFTP.Users.List request = ftp.users().list(parameters ...)}
+         * 
+ * + * @return the resource collection + */ + public Users users() { + return new Users(); + } + + /** + * The "users" collection of methods. + */ + public class Users { + + /** + * Creates a new User in a given project and location and Server. + * + * Create a request for the method "users.create". + * + * This request holds the parameters needed by the ftp 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.ftp.v1.model.User} + * @return the request + */ + public Create create(java.lang.String parent, com.google.api.services.ftp.v1.model.User content) throws java.io.IOException { + Create result = new Create(parent, content); + initialize(result); + return result; + } + + public class Create extends CloudFTPRequest { + + private static final String REST_PATH = "v1/{+parent}/users"; + + private final java.util.regex.Pattern PARENT_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/servers/[^/]+$"); + + /** + * Creates a new User in a given project and location and Server. + * + * Create a request for the method "users.create". + * + * This request holds the parameters needed by the the ftp 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.ftp.v1.model.User} + * @since 1.13 + */ + protected Create(java.lang.String parent, com.google.api.services.ftp.v1.model.User content) { + super(CloudFTP.this, "POST", REST_PATH, content, com.google.api.services.ftp.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/[^/]+/servers/[^/]+$"); + } + } + + @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/[^/]+/servers/[^/]+$"); + } + 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. Id of the requesting object If auto-generating Id server-side, remove this + * field and server_id from the method_signature of Create RPC + */ + @com.google.api.client.util.Key + private java.lang.String userId; + + /** Required. Id of the requesting object If auto-generating Id server-side, remove this field and + server_id from the method_signature of Create RPC + */ + public java.lang.String getUserId() { + return userId; + } + + /** + * Required. Id of the requesting object If auto-generating Id server-side, remove this + * field and server_id from the method_signature of Create RPC + */ + public Create setUserId(java.lang.String userId) { + this.userId = userId; + return this; + } + + @Override + public Create set(String parameterName, Object value) { + return (Create) super.set(parameterName, value); + } + } + /** + * Deletes a single User. + * + * Create a request for the method "users.delete". + * + * This request holds the parameters needed by the ftp 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 CloudFTPRequest { + + private static final String REST_PATH = "v1/{+name}"; + + private final java.util.regex.Pattern NAME_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/servers/[^/]+/users/[^/]+$"); + + /** + * Deletes a single User. + * + * Create a request for the method "users.delete". + * + * This request holds the parameters needed by the the ftp 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(CloudFTP.this, "DELETE", REST_PATH, null, com.google.api.services.ftp.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/[^/]+/servers/[^/]+/users/[^/]+$"); + } + } + + @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/[^/]+/servers/[^/]+/users/[^/]+$"); + } + this.name = name; + return this; + } + + /** Optional. If set to true, the request will force the deletion of the User. */ + @com.google.api.client.util.Key + private java.lang.Boolean force; + + /** Optional. If set to true, the request will force the deletion of the User. + */ + public java.lang.Boolean getForce() { + return force; + } + + /** Optional. If set to true, the request will force the deletion of the User. */ + public Delete setForce(java.lang.Boolean force) { + this.force = force; + return this; + } + + @Override + public Delete set(String parameterName, Object value) { + return (Delete) super.set(parameterName, value); + } + } + /** + * Gets details of a single User. + * + * Create a request for the method "users.get". + * + * This request holds the parameters needed by the ftp 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 CloudFTPRequest { + + private static final String REST_PATH = "v1/{+name}"; + + private final java.util.regex.Pattern NAME_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/servers/[^/]+/users/[^/]+$"); + + /** + * Gets details of a single User. + * + * Create a request for the method "users.get". + * + * This request holds the parameters needed by the the ftp 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(CloudFTP.this, "GET", REST_PATH, null, com.google.api.services.ftp.v1.model.User.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/[^/]+/servers/[^/]+/users/[^/]+$"); + } + } + + @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/[^/]+/servers/[^/]+/users/[^/]+$"); + } + this.name = name; + return this; + } + + /** Optional. The view of the User resource to return. */ + @com.google.api.client.util.Key + private java.lang.String view; + + /** Optional. The view of the User resource to return. + */ + public java.lang.String getView() { + return view; + } + + /** Optional. The view of the User resource to return. */ + 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 Users in a given project and location. + * + * Create a request for the method "users.list". + * + * This request holds the parameters needed by the ftp server. After setting any optional + * parameters, call the {@link List#execute()} method to invoke the remote operation. + * + * @param parent Required. Parent value for ListUsersRequest + * @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 CloudFTPRequest { + + private static final String REST_PATH = "v1/{+parent}/users"; + + private final java.util.regex.Pattern PARENT_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/servers/[^/]+$"); + + /** + * Lists Users in a given project and location. + * + * Create a request for the method "users.list". + * + * This request holds the parameters needed by the the ftp 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 ListUsersRequest + * @since 1.13 + */ + protected List(java.lang.String parent) { + super(CloudFTP.this, "GET", REST_PATH, null, com.google.api.services.ftp.v1.model.ListUsersResponse.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/[^/]+/servers/[^/]+$"); + } + } + + @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 ListUsersRequest */ + @com.google.api.client.util.Key + private java.lang.String parent; + + /** Required. Parent value for ListUsersRequest + */ + public java.lang.String getParent() { + return parent; + } + + /** Required. Parent value for ListUsersRequest */ + 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/[^/]+/servers/[^/]+$"); + } + this.parent = parent; + return this; + } + + /** Optional. Filtering results */ + @com.google.api.client.util.Key + private java.lang.String filter; + + /** Optional. Filtering results + */ + public java.lang.String getFilter() { + return filter; + } + + /** Optional. Filtering results */ + public List setFilter(java.lang.String filter) { + this.filter = filter; + return this; + } + + /** Optional. Hint for how to order the results */ + @com.google.api.client.util.Key + private java.lang.String orderBy; + + /** Optional. Hint for how to order the results + */ + public java.lang.String getOrderBy() { + return orderBy; + } + + /** Optional. Hint for how to order the results */ + public List setOrderBy(java.lang.String orderBy) { + this.orderBy = orderBy; + return this; + } + + /** + * Optional. Requested page size. User may return fewer items than requested. The + * maximum value is 1000; The default value is 50 if the field is omitted (or set to 0). + */ + @com.google.api.client.util.Key + private java.lang.Integer pageSize; + + /** Optional. Requested page size. User may return fewer items than requested. The maximum value is + 1000; The default value is 50 if the field is omitted (or set to 0). + */ + public java.lang.Integer getPageSize() { + return pageSize; + } + + /** + * Optional. Requested page size. User may return fewer items than requested. The + * maximum value is 1000; The default value is 50 if the field is omitted (or set to 0). + */ + public List setPageSize(java.lang.Integer pageSize) { + this.pageSize = pageSize; + return this; + } + + /** Optional. A token identifying a page of results the user should return. */ + @com.google.api.client.util.Key + private java.lang.String pageToken; + + /** Optional. A token identifying a page of results the user should return. + */ + public java.lang.String getPageToken() { + return pageToken; + } + + /** Optional. A token identifying a page of results the user should return. */ + public List setPageToken(java.lang.String pageToken) { + this.pageToken = pageToken; + return this; + } + + /** Optional. The view of the User resource to return. */ + @com.google.api.client.util.Key + private java.lang.String view; + + /** Optional. The view of the User resource to return. + */ + public java.lang.String getView() { + return view; + } + + /** Optional. The view of the User resource to return. */ + 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 a single User. + * + * Create a request for the method "users.patch". + * + * This request holds the parameters needed by the ftp server. After setting any optional + * parameters, call the {@link Patch#execute()} method to invoke the remote operation. + * + * @param name Identifier. User-friendly name via which User will be identified. + * projects/{project}/locations/{location}/servers/{server}/users/{user} + * @param content the {@link com.google.api.services.ftp.v1.model.User} + * @return the request + */ + public Patch patch(java.lang.String name, com.google.api.services.ftp.v1.model.User content) throws java.io.IOException { + Patch result = new Patch(name, content); + initialize(result); + return result; + } + + public class Patch extends CloudFTPRequest { + + private static final String REST_PATH = "v1/{+name}"; + + private final java.util.regex.Pattern NAME_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/servers/[^/]+/users/[^/]+$"); + + /** + * Updates the parameters of a single User. + * + * Create a request for the method "users.patch". + * + * This request holds the parameters needed by the the ftp 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 Identifier. User-friendly name via which User will be identified. + * projects/{project}/locations/{location}/servers/{server}/users/{user} + * @param content the {@link com.google.api.services.ftp.v1.model.User} + * @since 1.13 + */ + protected Patch(java.lang.String name, com.google.api.services.ftp.v1.model.User content) { + super(CloudFTP.this, "PATCH", REST_PATH, content, com.google.api.services.ftp.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/[^/]+/servers/[^/]+/users/[^/]+$"); + } + } + + @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); + } + + /** + * Identifier. User-friendly name via which User will be identified. + * projects/{project}/locations/{location}/servers/{server}/users/{user} + */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** Identifier. User-friendly name via which User will be identified. + projects/{project}/locations/{location}/servers/{server}/users/{user} + */ + public java.lang.String getName() { + return name; + } + + /** + * Identifier. User-friendly name via which User will be identified. + * projects/{project}/locations/{location}/servers/{server}/users/{user} + */ + 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/[^/]+/servers/[^/]+/users/[^/]+$"); + } + this.name = name; + return this; + } + + /** + * Optional. Field mask is used to specify the fields to be overwritten in the User + * resource by the update. The fields 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. If + * the user does not provide a mask then all fields present in the request will be + * overwritten. + */ + @com.google.api.client.util.Key + private String updateMask; + + /** Optional. Field mask is used to specify the fields to be overwritten in the User resource by the + update. The fields 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. If the user does not provide a mask then all + fields present in the request will be overwritten. + */ + public String getUpdateMask() { + return updateMask; + } + + /** + * Optional. Field mask is used to specify the fields to be overwritten in the User + * resource by the update. The fields 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. If + * the user does not provide a mask then all fields present in the request will be + * overwritten. + */ + public Patch setUpdateMask(String updateMask) { + this.updateMask = updateMask; + return this; + } + + @Override + public Patch set(String parameterName, Object value) { + return (Patch) super.set(parameterName, value); + } + } + + } + } + } + } + + /** + * Builder for {@link CloudFTP}. + * + *

+ * 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: {@code com.google.api.client.http.javanet.NetHttpTransport}
  • + *
+ * @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 CloudFTP}. */ + @Override + public CloudFTP build() { + return new CloudFTP(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 CloudFTPRequestInitializer}. + * + * @since 1.12 + */ + public Builder setCloudFTPRequestInitializer( + CloudFTPRequestInitializer cloudftpRequestInitializer) { + return (Builder) super.setGoogleClientRequestInitializer(cloudftpRequestInitializer); + } + + @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); + } + } +} diff --git a/clients/google-api-services-ftp/v1/2.0.0/com/google/api/services/ftp/v1/CloudFTPRequest.java b/clients/google-api-services-ftp/v1/2.0.0/com/google/api/services/ftp/v1/CloudFTPRequest.java new file mode 100644 index 00000000000..3795bf3e279 --- /dev/null +++ b/clients/google-api-services-ftp/v1/2.0.0/com/google/api/services/ftp/v1/CloudFTPRequest.java @@ -0,0 +1,267 @@ +/* + * 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.ftp.v1; + +/** + * CloudFTP request. + * + * @since 1.3 + */ +@SuppressWarnings("javadoc") +public abstract class CloudFTPRequest extends com.google.api.client.googleapis.services.json.AbstractGoogleJsonClientRequest { + + /** + * @param client Google client + * @param method HTTP Method + * @param uriTemplate URI template for the path relative to the base URL. If it starts with a "/" + * the base path from the base URL will be stripped out. The URI template can also be a + * full URL. URI template expansion is done using + * {@link com.google.api.client.http.UriTemplate#expand(String, String, Object, boolean)} + * @param content A POJO that can be serialized into JSON or {@code null} for none + * @param responseClass response class to parse into + */ + public CloudFTPRequest( + CloudFTP client, String method, String uriTemplate, Object content, Class responseClass) { + super( + client, + method, + uriTemplate, + content, + responseClass); + } + + /** V1 error format. */ + @com.google.api.client.util.Key("$.xgafv") + private java.lang.String $Xgafv; + + /** + * V1 error format. + */ + public java.lang.String get$Xgafv() { + return $Xgafv; + } + + /** V1 error format. */ + public CloudFTPRequest set$Xgafv(java.lang.String $Xgafv) { + this.$Xgafv = $Xgafv; + return this; + } + + /** OAuth access token. */ + @com.google.api.client.util.Key("access_token") + private java.lang.String accessToken; + + /** + * OAuth access token. + */ + public java.lang.String getAccessToken() { + return accessToken; + } + + /** OAuth access token. */ + public CloudFTPRequest setAccessToken(java.lang.String accessToken) { + this.accessToken = accessToken; + return this; + } + + /** Data format for response. */ + @com.google.api.client.util.Key + private java.lang.String alt; + + /** + * Data format for response. [default: json] + */ + public java.lang.String getAlt() { + return alt; + } + + /** Data format for response. */ + public CloudFTPRequest setAlt(java.lang.String alt) { + this.alt = alt; + return this; + } + + /** JSONP */ + @com.google.api.client.util.Key + private java.lang.String callback; + + /** + * JSONP + */ + public java.lang.String getCallback() { + return callback; + } + + /** JSONP */ + public CloudFTPRequest setCallback(java.lang.String callback) { + this.callback = callback; + return this; + } + + /** Selector specifying which fields to include in a partial response. */ + @com.google.api.client.util.Key + private java.lang.String fields; + + /** + * Selector specifying which fields to include in a partial response. + */ + public java.lang.String getFields() { + return fields; + } + + /** Selector specifying which fields to include in a partial response. */ + public CloudFTPRequest setFields(java.lang.String fields) { + this.fields = fields; + return this; + } + + /** + * API key. Your API key identifies your project and provides you with API access, quota, and + * reports. Required unless you provide an OAuth 2.0 token. + */ + @com.google.api.client.util.Key + private java.lang.String key; + + /** + * API key. Your API key identifies your project and provides you with API access, quota, and + * reports. Required unless you provide an OAuth 2.0 token. + */ + public java.lang.String getKey() { + return key; + } + + /** + * API key. Your API key identifies your project and provides you with API access, quota, and + * reports. Required unless you provide an OAuth 2.0 token. + */ + public CloudFTPRequest setKey(java.lang.String key) { + this.key = key; + return this; + } + + /** OAuth 2.0 token for the current user. */ + @com.google.api.client.util.Key("oauth_token") + private java.lang.String oauthToken; + + /** + * OAuth 2.0 token for the current user. + */ + public java.lang.String getOauthToken() { + return oauthToken; + } + + /** OAuth 2.0 token for the current user. */ + public CloudFTPRequest setOauthToken(java.lang.String oauthToken) { + this.oauthToken = oauthToken; + return this; + } + + /** Returns response with indentations and line breaks. */ + @com.google.api.client.util.Key + private java.lang.Boolean prettyPrint; + + /** + * Returns response with indentations and line breaks. [default: true] + */ + public java.lang.Boolean getPrettyPrint() { + return prettyPrint; + } + + /** Returns response with indentations and line breaks. */ + public CloudFTPRequest setPrettyPrint(java.lang.Boolean prettyPrint) { + this.prettyPrint = prettyPrint; + return this; + } + + /** + * Available to use for quota purposes for server-side applications. Can be any arbitrary string + * assigned to a user, but should not exceed 40 characters. + */ + @com.google.api.client.util.Key + private java.lang.String quotaUser; + + /** + * Available to use for quota purposes for server-side applications. Can be any arbitrary string + * assigned to a user, but should not exceed 40 characters. + */ + public java.lang.String getQuotaUser() { + return quotaUser; + } + + /** + * Available to use for quota purposes for server-side applications. Can be any arbitrary string + * assigned to a user, but should not exceed 40 characters. + */ + public CloudFTPRequest setQuotaUser(java.lang.String quotaUser) { + this.quotaUser = quotaUser; + return this; + } + + /** Legacy upload protocol for media (e.g. "media", "multipart"). */ + @com.google.api.client.util.Key + private java.lang.String uploadType; + + /** + * Legacy upload protocol for media (e.g. "media", "multipart"). + */ + public java.lang.String getUploadType() { + return uploadType; + } + + /** Legacy upload protocol for media (e.g. "media", "multipart"). */ + public CloudFTPRequest setUploadType(java.lang.String uploadType) { + this.uploadType = uploadType; + return this; + } + + /** Upload protocol for media (e.g. "raw", "multipart"). */ + @com.google.api.client.util.Key("upload_protocol") + private java.lang.String uploadProtocol; + + /** + * Upload protocol for media (e.g. "raw", "multipart"). + */ + public java.lang.String getUploadProtocol() { + return uploadProtocol; + } + + /** Upload protocol for media (e.g. "raw", "multipart"). */ + public CloudFTPRequest setUploadProtocol(java.lang.String uploadProtocol) { + this.uploadProtocol = uploadProtocol; + return this; + } + + @Override + public final CloudFTP getAbstractGoogleClient() { + return (CloudFTP) super.getAbstractGoogleClient(); + } + + @Override + public CloudFTPRequest setDisableGZipContent(boolean disableGZipContent) { + return (CloudFTPRequest) super.setDisableGZipContent(disableGZipContent); + } + + @Override + public CloudFTPRequest setRequestHeaders(com.google.api.client.http.HttpHeaders headers) { + return (CloudFTPRequest) super.setRequestHeaders(headers); + } + + @Override + public CloudFTPRequest set(String parameterName, Object value) { + return (CloudFTPRequest) super.set(parameterName, value); + } +} diff --git a/clients/google-api-services-ftp/v1/2.0.0/com/google/api/services/ftp/v1/CloudFTPRequestInitializer.java b/clients/google-api-services-ftp/v1/2.0.0/com/google/api/services/ftp/v1/CloudFTPRequestInitializer.java new file mode 100644 index 00000000000..e20aad27fef --- /dev/null +++ b/clients/google-api-services-ftp/v1/2.0.0/com/google/api/services/ftp/v1/CloudFTPRequestInitializer.java @@ -0,0 +1,119 @@ +/* + * 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.ftp.v1; + +/** + * CloudFTP request initializer for setting properties like key and userIp. + * + *

+ * The simplest usage is to use it to set the key parameter: + *

+ * + *
+  public static final GoogleClientRequestInitializer KEY_INITIALIZER =
+      new CloudFTPRequestInitializer(KEY);
+ * 
+ * + *

+ * There is also a constructor to set both the key and userIp parameters: + *

+ * + *
+  public static final GoogleClientRequestInitializer INITIALIZER =
+      new CloudFTPRequestInitializer(KEY, USER_IP);
+ * 
+ * + *

+ * If you want to implement custom logic, extend it like this: + *

+ * + *
+  public static class MyRequestInitializer extends CloudFTPRequestInitializer {
+
+    {@literal @}Override
+    public void initializeCloudFTPRequest(CloudFTPRequest{@literal <}?{@literal >} request)
+        throws IOException {
+      // custom logic
+    }
+  }
+ * 
+ * + *

+ * Finally, to set the key and userIp parameters and insert custom logic, extend it like this: + *

+ * + *
+  public static class MyRequestInitializer2 extends CloudFTPRequestInitializer {
+
+    public MyKeyRequestInitializer() {
+      super(KEY, USER_IP);
+    }
+
+    {@literal @}Override
+    public void initializeCloudFTPRequest(CloudFTPRequest{@literal <}?{@literal >} request)
+        throws IOException {
+      // custom logic
+    }
+  }
+ * 
+ * + *

+ * Subclasses should be thread-safe. + *

+ * + * @since 1.12 + */ +public class CloudFTPRequestInitializer extends com.google.api.client.googleapis.services.json.CommonGoogleJsonClientRequestInitializer { + + public CloudFTPRequestInitializer() { + super(); + } + + /** + * @param key API key or {@code null} to leave it unchanged + */ + public CloudFTPRequestInitializer(String key) { + super(key); + } + + /** + * @param key API key or {@code null} to leave it unchanged + * @param userIp user IP or {@code null} to leave it unchanged + */ + public CloudFTPRequestInitializer(String key, String userIp) { + super(key, userIp); + } + + @Override + public final void initializeJsonRequest(com.google.api.client.googleapis.services.json.AbstractGoogleJsonClientRequest request) throws java.io.IOException { + super.initializeJsonRequest(request); + initializeCloudFTPRequest((CloudFTPRequest) request); + } + + /** + * Initializes CloudFTP request. + * + *

+ * Default implementation does nothing. Called from + * {@link #initializeJsonRequest(com.google.api.client.googleapis.services.json.AbstractGoogleJsonClientRequest)}. + *

+ * + * @throws java.io.IOException I/O exception + */ + protected void initializeCloudFTPRequest(CloudFTPRequest request) throws java.io.IOException { + } +} diff --git a/clients/google-api-services-ftp/v1/2.0.0/com/google/api/services/ftp/v1/CloudFTPScopes.java b/clients/google-api-services-ftp/v1/2.0.0/com/google/api/services/ftp/v1/CloudFTPScopes.java new file mode 100644 index 00000000000..dff7f81f6f4 --- /dev/null +++ b/clients/google-api-services-ftp/v1/2.0.0/com/google/api/services/ftp/v1/CloudFTPScopes.java @@ -0,0 +1,42 @@ +/* + * 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.ftp.v1; + +/** + * Available OAuth 2.0 scopes for use with the Cloud FTP API. + * + * @since 1.4 + */ +public class CloudFTPScopes { + + /** See, edit, configure, and delete your Google Cloud data and see the email address for your Google Account.. */ + public static final String CLOUD_PLATFORM = "https://www.googleapis.com/auth/cloud-platform"; + + /** + * Returns an unmodifiable set that contains all scopes declared by this class. + * + * @since 1.16 + */ + public static java.util.Set all() { + java.util.Set set = new java.util.HashSet(); + set.add(CLOUD_PLATFORM); + return java.util.Collections.unmodifiableSet(set); + } + + private CloudFTPScopes() { + } +} diff --git a/clients/google-api-services-ftp/v1/2.0.0/com/google/api/services/ftp/v1/model/AllowedConsumer.java b/clients/google-api-services-ftp/v1/2.0.0/com/google/api/services/ftp/v1/model/AllowedConsumer.java new file mode 100644 index 00000000000..9091a47f6d3 --- /dev/null +++ b/clients/google-api-services-ftp/v1/2.0.0/com/google/api/services/ftp/v1/model/AllowedConsumer.java @@ -0,0 +1,90 @@ +/* + * 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.ftp.v1.model; + +/** + * A consumer project or network that is permitted to connect to the server via PSC. + * + *

This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Cloud FTP API. For a detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class AllowedConsumer extends com.google.api.client.json.GenericJson { + + /** + * Required. The connection limit for the consumer. Value must be greater than 0. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key @com.google.api.client.json.JsonString + private java.lang.Long connectionLimit; + + /** + * The project ID or number of the consumer project. Must be in the format: `projects/{project}`. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String project; + + /** + * Required. The connection limit for the consumer. Value must be greater than 0. + * @return value or {@code null} for none + */ + public java.lang.Long getConnectionLimit() { + return connectionLimit; + } + + /** + * Required. The connection limit for the consumer. Value must be greater than 0. + * @param connectionLimit connectionLimit or {@code null} for none + */ + public AllowedConsumer setConnectionLimit(java.lang.Long connectionLimit) { + this.connectionLimit = connectionLimit; + return this; + } + + /** + * The project ID or number of the consumer project. Must be in the format: `projects/{project}`. + * @return value or {@code null} for none + */ + public java.lang.String getProject() { + return project; + } + + /** + * The project ID or number of the consumer project. Must be in the format: `projects/{project}`. + * @param project project or {@code null} for none + */ + public AllowedConsumer setProject(java.lang.String project) { + this.project = project; + return this; + } + + @Override + public AllowedConsumer set(String fieldName, Object value) { + return (AllowedConsumer) super.set(fieldName, value); + } + + @Override + public AllowedConsumer clone() { + return (AllowedConsumer) super.clone(); + } + +} diff --git a/clients/google-api-services-ftp/v1/2.0.0/com/google/api/services/ftp/v1/model/CancelOperationRequest.java b/clients/google-api-services-ftp/v1/2.0.0/com/google/api/services/ftp/v1/model/CancelOperationRequest.java new file mode 100644 index 00000000000..50f5b9f9f53 --- /dev/null +++ b/clients/google-api-services-ftp/v1/2.0.0/com/google/api/services/ftp/v1/model/CancelOperationRequest.java @@ -0,0 +1,42 @@ +/* + * 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.ftp.v1.model; + +/** + * The request message for Operations.CancelOperation. + * + *

This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Cloud FTP API. For a detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class CancelOperationRequest extends com.google.api.client.json.GenericJson { + + @Override + public CancelOperationRequest set(String fieldName, Object value) { + return (CancelOperationRequest) super.set(fieldName, value); + } + + @Override + public CancelOperationRequest clone() { + return (CancelOperationRequest) super.clone(); + } + +} diff --git a/clients/google-api-services-ftp/v1/2.0.0/com/google/api/services/ftp/v1/model/DeniedConsumer.java b/clients/google-api-services-ftp/v1/2.0.0/com/google/api/services/ftp/v1/model/DeniedConsumer.java new file mode 100644 index 00000000000..fc32788bfd8 --- /dev/null +++ b/clients/google-api-services-ftp/v1/2.0.0/com/google/api/services/ftp/v1/model/DeniedConsumer.java @@ -0,0 +1,66 @@ +/* + * 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.ftp.v1.model; + +/** + * A consumer project or network that is denied to connect to the server via PSC. + * + *

This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Cloud FTP API. For a detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class DeniedConsumer extends com.google.api.client.json.GenericJson { + + /** + * The project ID or number of the consumer project. Must be in the format: `projects/{project}`. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String project; + + /** + * The project ID or number of the consumer project. Must be in the format: `projects/{project}`. + * @return value or {@code null} for none + */ + public java.lang.String getProject() { + return project; + } + + /** + * The project ID or number of the consumer project. Must be in the format: `projects/{project}`. + * @param project project or {@code null} for none + */ + public DeniedConsumer setProject(java.lang.String project) { + this.project = project; + return this; + } + + @Override + public DeniedConsumer set(String fieldName, Object value) { + return (DeniedConsumer) super.set(fieldName, value); + } + + @Override + public DeniedConsumer clone() { + return (DeniedConsumer) super.clone(); + } + +} diff --git a/clients/google-api-services-ftp/v1/2.0.0/com/google/api/services/ftp/v1/model/Empty.java b/clients/google-api-services-ftp/v1/2.0.0/com/google/api/services/ftp/v1/model/Empty.java new file mode 100644 index 00000000000..42cd4bfc297 --- /dev/null +++ b/clients/google-api-services-ftp/v1/2.0.0/com/google/api/services/ftp/v1/model/Empty.java @@ -0,0 +1,44 @@ +/* + * 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.ftp.v1.model; + +/** + * A generic empty message that you can re-use to avoid defining duplicated empty messages in your + * APIs. A typical example is to use it as the request or the response type of an API method. For + * instance: service Foo { rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); } + * + *

This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Cloud FTP API. For a detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class Empty extends com.google.api.client.json.GenericJson { + + @Override + public Empty set(String fieldName, Object value) { + return (Empty) super.set(fieldName, value); + } + + @Override + public Empty clone() { + return (Empty) super.clone(); + } + +} diff --git a/clients/google-api-services-ftp/v1/2.0.0/com/google/api/services/ftp/v1/model/ExternalServerConfig.java b/clients/google-api-services-ftp/v1/2.0.0/com/google/api/services/ftp/v1/model/ExternalServerConfig.java new file mode 100644 index 00000000000..2818252d0bd --- /dev/null +++ b/clients/google-api-services-ftp/v1/2.0.0/com/google/api/services/ftp/v1/model/ExternalServerConfig.java @@ -0,0 +1,108 @@ +/* + * 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.ftp.v1.model; + +/** + * Configuration for external server. + * + *

This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Cloud FTP API. For a detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class ExternalServerConfig extends com.google.api.client.json.GenericJson { + + /** + * Optional. List of CIDR blocks that are allowed to access the Server. A CIDR range consists of + * an IP Address and a prefix length to construct the subnet mask. By default, the prefix length + * is 32 (i.e. matches a single IP address). For now, only IPV4 addresses are supported. Examples: + * "203.0.113.0/24" - matches with the IP addresses in the range 203.0.113.0 - 203.0.113.255. + * "0.0.0.0/0" - matches against any IP address. This field must contain at least one entry if the + * access type is EXTERNAL. The number of allowed CIDR blocks cannot exceed 500. Example: + * 192.168.0.0/16 + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List allowedCidrBlocks; + + /** + * Output only. IP address of the LB via which clients will connect. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String ipAddress; + + /** + * Optional. List of CIDR blocks that are allowed to access the Server. A CIDR range consists of + * an IP Address and a prefix length to construct the subnet mask. By default, the prefix length + * is 32 (i.e. matches a single IP address). For now, only IPV4 addresses are supported. Examples: + * "203.0.113.0/24" - matches with the IP addresses in the range 203.0.113.0 - 203.0.113.255. + * "0.0.0.0/0" - matches against any IP address. This field must contain at least one entry if the + * access type is EXTERNAL. The number of allowed CIDR blocks cannot exceed 500. Example: + * 192.168.0.0/16 + * @return value or {@code null} for none + */ + public java.util.List getAllowedCidrBlocks() { + return allowedCidrBlocks; + } + + /** + * Optional. List of CIDR blocks that are allowed to access the Server. A CIDR range consists of + * an IP Address and a prefix length to construct the subnet mask. By default, the prefix length + * is 32 (i.e. matches a single IP address). For now, only IPV4 addresses are supported. Examples: + * "203.0.113.0/24" - matches with the IP addresses in the range 203.0.113.0 - 203.0.113.255. + * "0.0.0.0/0" - matches against any IP address. This field must contain at least one entry if the + * access type is EXTERNAL. The number of allowed CIDR blocks cannot exceed 500. Example: + * 192.168.0.0/16 + * @param allowedCidrBlocks allowedCidrBlocks or {@code null} for none + */ + public ExternalServerConfig setAllowedCidrBlocks(java.util.List allowedCidrBlocks) { + this.allowedCidrBlocks = allowedCidrBlocks; + return this; + } + + /** + * Output only. IP address of the LB via which clients will connect. + * @return value or {@code null} for none + */ + public java.lang.String getIpAddress() { + return ipAddress; + } + + /** + * Output only. IP address of the LB via which clients will connect. + * @param ipAddress ipAddress or {@code null} for none + */ + public ExternalServerConfig setIpAddress(java.lang.String ipAddress) { + this.ipAddress = ipAddress; + return this; + } + + @Override + public ExternalServerConfig set(String fieldName, Object value) { + return (ExternalServerConfig) super.set(fieldName, value); + } + + @Override + public ExternalServerConfig clone() { + return (ExternalServerConfig) super.clone(); + } + +} diff --git a/clients/google-api-services-ftp/v1/2.0.0/com/google/api/services/ftp/v1/model/InternalServerConfig.java b/clients/google-api-services-ftp/v1/2.0.0/com/google/api/services/ftp/v1/model/InternalServerConfig.java new file mode 100644 index 00000000000..c6fea6ecb41 --- /dev/null +++ b/clients/google-api-services-ftp/v1/2.0.0/com/google/api/services/ftp/v1/model/InternalServerConfig.java @@ -0,0 +1,162 @@ +/* + * 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.ftp.v1.model; + +/** + * Configuration for private server accessible via PSC. + * + *

This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Cloud FTP API. For a detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class InternalServerConfig extends com.google.api.client.json.GenericJson { + + /** + * Required. A list of projects that are permitted to connect. At least one project is required in + * the allow list. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List consumerAcceptList; + + static { + // hack to force ProGuard to consider AllowedConsumer used, since otherwise it would be stripped out + // see https://github.com/google/google-api-java-client/issues/543 + com.google.api.client.util.Data.nullOf(AllowedConsumer.class); + } + + /** + * Optional. A list of projects that are denied connection. Format: "projects/sample_project_id" + * or "projects/1234567890" Projects in this list will be denied access, even if they are included + * in the `allow_list`. If this list is empty, no projects are explicitly rejected. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List consumerRejectList; + + static { + // hack to force ProGuard to consider DeniedConsumer used, since otherwise it would be stripped out + // see https://github.com/google/google-api-java-client/issues/543 + com.google.api.client.util.Data.nullOf(DeniedConsumer.class); + } + + /** + * Output only. Details of endpoints created by the customer. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List pscEndpoints; + + /** + * Output only. The resource name of the service attachment. Format: + * `projects/{project}/regions/{region}/serviceAttachments/{service_attachment}` + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String serviceAttachment; + + /** + * Required. A list of projects that are permitted to connect. At least one project is required in + * the allow list. + * @return value or {@code null} for none + */ + public java.util.List getConsumerAcceptList() { + return consumerAcceptList; + } + + /** + * Required. A list of projects that are permitted to connect. At least one project is required in + * the allow list. + * @param consumerAcceptList consumerAcceptList or {@code null} for none + */ + public InternalServerConfig setConsumerAcceptList(java.util.List consumerAcceptList) { + this.consumerAcceptList = consumerAcceptList; + return this; + } + + /** + * Optional. A list of projects that are denied connection. Format: "projects/sample_project_id" + * or "projects/1234567890" Projects in this list will be denied access, even if they are included + * in the `allow_list`. If this list is empty, no projects are explicitly rejected. + * @return value or {@code null} for none + */ + public java.util.List getConsumerRejectList() { + return consumerRejectList; + } + + /** + * Optional. A list of projects that are denied connection. Format: "projects/sample_project_id" + * or "projects/1234567890" Projects in this list will be denied access, even if they are included + * in the `allow_list`. If this list is empty, no projects are explicitly rejected. + * @param consumerRejectList consumerRejectList or {@code null} for none + */ + public InternalServerConfig setConsumerRejectList(java.util.List consumerRejectList) { + this.consumerRejectList = consumerRejectList; + return this; + } + + /** + * Output only. Details of endpoints created by the customer. + * @return value or {@code null} for none + */ + public java.util.List getPscEndpoints() { + return pscEndpoints; + } + + /** + * Output only. Details of endpoints created by the customer. + * @param pscEndpoints pscEndpoints or {@code null} for none + */ + public InternalServerConfig setPscEndpoints(java.util.List pscEndpoints) { + this.pscEndpoints = pscEndpoints; + return this; + } + + /** + * Output only. The resource name of the service attachment. Format: + * `projects/{project}/regions/{region}/serviceAttachments/{service_attachment}` + * @return value or {@code null} for none + */ + public java.lang.String getServiceAttachment() { + return serviceAttachment; + } + + /** + * Output only. The resource name of the service attachment. Format: + * `projects/{project}/regions/{region}/serviceAttachments/{service_attachment}` + * @param serviceAttachment serviceAttachment or {@code null} for none + */ + public InternalServerConfig setServiceAttachment(java.lang.String serviceAttachment) { + this.serviceAttachment = serviceAttachment; + return this; + } + + @Override + public InternalServerConfig set(String fieldName, Object value) { + return (InternalServerConfig) super.set(fieldName, value); + } + + @Override + public InternalServerConfig clone() { + return (InternalServerConfig) super.clone(); + } + +} diff --git a/clients/google-api-services-ftp/v1/2.0.0/com/google/api/services/ftp/v1/model/ListLocationsResponse.java b/clients/google-api-services-ftp/v1/2.0.0/com/google/api/services/ftp/v1/model/ListLocationsResponse.java new file mode 100644 index 00000000000..ffcc94f303d --- /dev/null +++ b/clients/google-api-services-ftp/v1/2.0.0/com/google/api/services/ftp/v1/model/ListLocationsResponse.java @@ -0,0 +1,90 @@ +/* + * 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.ftp.v1.model; + +/** + * The response message for Locations.ListLocations. + * + *

This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Cloud FTP API. For a detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class ListLocationsResponse extends com.google.api.client.json.GenericJson { + + /** + * A list of locations that matches the specified filter in the request. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List locations; + + /** + * The standard List next-page token. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String nextPageToken; + + /** + * A list of locations that matches the specified filter in the request. + * @return value or {@code null} for none + */ + public java.util.List getLocations() { + return locations; + } + + /** + * A list of locations that matches the specified filter in the request. + * @param locations locations or {@code null} for none + */ + public ListLocationsResponse setLocations(java.util.List locations) { + this.locations = locations; + return this; + } + + /** + * The standard List next-page token. + * @return value or {@code null} for none + */ + public java.lang.String getNextPageToken() { + return nextPageToken; + } + + /** + * The standard List next-page token. + * @param nextPageToken nextPageToken or {@code null} for none + */ + public ListLocationsResponse setNextPageToken(java.lang.String nextPageToken) { + this.nextPageToken = nextPageToken; + return this; + } + + @Override + public ListLocationsResponse set(String fieldName, Object value) { + return (ListLocationsResponse) super.set(fieldName, value); + } + + @Override + public ListLocationsResponse clone() { + return (ListLocationsResponse) super.clone(); + } + +} diff --git a/clients/google-api-services-ftp/v1/2.0.0/com/google/api/services/ftp/v1/model/ListOperationsResponse.java b/clients/google-api-services-ftp/v1/2.0.0/com/google/api/services/ftp/v1/model/ListOperationsResponse.java new file mode 100644 index 00000000000..2da7a1f0f4c --- /dev/null +++ b/clients/google-api-services-ftp/v1/2.0.0/com/google/api/services/ftp/v1/model/ListOperationsResponse.java @@ -0,0 +1,120 @@ +/* + * 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.ftp.v1.model; + +/** + * The response message for Operations.ListOperations. + * + *

This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Cloud FTP API. For a detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class ListOperationsResponse extends com.google.api.client.json.GenericJson { + + /** + * The standard List next-page token. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String nextPageToken; + + /** + * A list of operations that matches the specified filter in the request. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List operations; + + /** + * Unordered list. Unreachable resources. Populated when the request sets + * `ListOperationsRequest.return_partial_success` and reads across collections. For example, when + * attempting to list all resources across all supported locations. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List unreachable; + + /** + * The standard List next-page token. + * @return value or {@code null} for none + */ + public java.lang.String getNextPageToken() { + return nextPageToken; + } + + /** + * The standard List next-page token. + * @param nextPageToken nextPageToken or {@code null} for none + */ + public ListOperationsResponse setNextPageToken(java.lang.String nextPageToken) { + this.nextPageToken = nextPageToken; + return this; + } + + /** + * A list of operations that matches the specified filter in the request. + * @return value or {@code null} for none + */ + public java.util.List getOperations() { + return operations; + } + + /** + * A list of operations that matches the specified filter in the request. + * @param operations operations or {@code null} for none + */ + public ListOperationsResponse setOperations(java.util.List operations) { + this.operations = operations; + return this; + } + + /** + * Unordered list. Unreachable resources. Populated when the request sets + * `ListOperationsRequest.return_partial_success` and reads across collections. For example, when + * attempting to list all resources across all supported locations. + * @return value or {@code null} for none + */ + public java.util.List getUnreachable() { + return unreachable; + } + + /** + * Unordered list. Unreachable resources. Populated when the request sets + * `ListOperationsRequest.return_partial_success` and reads across collections. For example, when + * attempting to list all resources across all supported locations. + * @param unreachable unreachable or {@code null} for none + */ + public ListOperationsResponse setUnreachable(java.util.List unreachable) { + this.unreachable = unreachable; + return this; + } + + @Override + public ListOperationsResponse set(String fieldName, Object value) { + return (ListOperationsResponse) super.set(fieldName, value); + } + + @Override + public ListOperationsResponse clone() { + return (ListOperationsResponse) super.clone(); + } + +} diff --git a/clients/google-api-services-ftp/v1/2.0.0/com/google/api/services/ftp/v1/model/ListServersResponse.java b/clients/google-api-services-ftp/v1/2.0.0/com/google/api/services/ftp/v1/model/ListServersResponse.java new file mode 100644 index 00000000000..351798d8937 --- /dev/null +++ b/clients/google-api-services-ftp/v1/2.0.0/com/google/api/services/ftp/v1/model/ListServersResponse.java @@ -0,0 +1,114 @@ +/* + * 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.ftp.v1.model; + +/** + * Message for response to listing Servers + * + *

This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Cloud FTP API. For a detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class ListServersResponse extends com.google.api.client.json.GenericJson { + + /** + * A token identifying a page of results the server should return. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String nextPageToken; + + /** + * The list of Server + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List servers; + + /** + * Unordered list. Locations that could not be reached. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List unreachable; + + /** + * A token identifying a page of results the server should return. + * @return value or {@code null} for none + */ + public java.lang.String getNextPageToken() { + return nextPageToken; + } + + /** + * A token identifying a page of results the server should return. + * @param nextPageToken nextPageToken or {@code null} for none + */ + public ListServersResponse setNextPageToken(java.lang.String nextPageToken) { + this.nextPageToken = nextPageToken; + return this; + } + + /** + * The list of Server + * @return value or {@code null} for none + */ + public java.util.List getServers() { + return servers; + } + + /** + * The list of Server + * @param servers servers or {@code null} for none + */ + public ListServersResponse setServers(java.util.List servers) { + this.servers = servers; + return this; + } + + /** + * Unordered list. Locations that could not be reached. + * @return value or {@code null} for none + */ + public java.util.List getUnreachable() { + return unreachable; + } + + /** + * Unordered list. Locations that could not be reached. + * @param unreachable unreachable or {@code null} for none + */ + public ListServersResponse setUnreachable(java.util.List unreachable) { + this.unreachable = unreachable; + return this; + } + + @Override + public ListServersResponse set(String fieldName, Object value) { + return (ListServersResponse) super.set(fieldName, value); + } + + @Override + public ListServersResponse clone() { + return (ListServersResponse) super.clone(); + } + +} diff --git a/clients/google-api-services-ftp/v1/2.0.0/com/google/api/services/ftp/v1/model/ListUsersResponse.java b/clients/google-api-services-ftp/v1/2.0.0/com/google/api/services/ftp/v1/model/ListUsersResponse.java new file mode 100644 index 00000000000..3658d952a56 --- /dev/null +++ b/clients/google-api-services-ftp/v1/2.0.0/com/google/api/services/ftp/v1/model/ListUsersResponse.java @@ -0,0 +1,114 @@ +/* + * 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.ftp.v1.model; + +/** + * Message for response to listing Users + * + *

This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Cloud FTP API. For a detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class ListUsersResponse extends com.google.api.client.json.GenericJson { + + /** + * A token identifying a page of results the user should return. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String nextPageToken; + + /** + * Unordered list. Locations that could not be reached. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List unreachable; + + /** + * The list of User + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List users; + + /** + * A token identifying a page of results the user should return. + * @return value or {@code null} for none + */ + public java.lang.String getNextPageToken() { + return nextPageToken; + } + + /** + * A token identifying a page of results the user should return. + * @param nextPageToken nextPageToken or {@code null} for none + */ + public ListUsersResponse setNextPageToken(java.lang.String nextPageToken) { + this.nextPageToken = nextPageToken; + return this; + } + + /** + * Unordered list. Locations that could not be reached. + * @return value or {@code null} for none + */ + public java.util.List getUnreachable() { + return unreachable; + } + + /** + * Unordered list. Locations that could not be reached. + * @param unreachable unreachable or {@code null} for none + */ + public ListUsersResponse setUnreachable(java.util.List unreachable) { + this.unreachable = unreachable; + return this; + } + + /** + * The list of User + * @return value or {@code null} for none + */ + public java.util.List getUsers() { + return users; + } + + /** + * The list of User + * @param users users or {@code null} for none + */ + public ListUsersResponse setUsers(java.util.List users) { + this.users = users; + return this; + } + + @Override + public ListUsersResponse set(String fieldName, Object value) { + return (ListUsersResponse) super.set(fieldName, value); + } + + @Override + public ListUsersResponse clone() { + return (ListUsersResponse) super.clone(); + } + +} diff --git a/clients/google-api-services-ftp/v1/2.0.0/com/google/api/services/ftp/v1/model/Location.java b/clients/google-api-services-ftp/v1/2.0.0/com/google/api/services/ftp/v1/model/Location.java new file mode 100644 index 00000000000..0a3f9cca633 --- /dev/null +++ b/clients/google-api-services-ftp/v1/2.0.0/com/google/api/services/ftp/v1/model/Location.java @@ -0,0 +1,168 @@ +/* + * 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.ftp.v1.model; + +/** + * A resource that represents a Google Cloud location. + * + *

This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Cloud FTP API. For a detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class Location extends com.google.api.client.json.GenericJson { + + /** + * The friendly name for this location, typically a nearby city name. For example, "Tokyo". + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String displayName; + + /** + * Cross-service attributes for the location. For example {"cloud.googleapis.com/region": "us- + * east1"} + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.Map labels; + + /** + * The canonical id for this location. For example: `"us-east1"`. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String locationId; + + /** + * Service-specific metadata. For example the available capacity at the given location. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.Map metadata; + + /** + * Resource name for the location, which may vary between implementations. For example: + * `"projects/example-project/locations/us-east1"` + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** + * The friendly name for this location, typically a nearby city name. For example, "Tokyo". + * @return value or {@code null} for none + */ + public java.lang.String getDisplayName() { + return displayName; + } + + /** + * The friendly name for this location, typically a nearby city name. For example, "Tokyo". + * @param displayName displayName or {@code null} for none + */ + public Location setDisplayName(java.lang.String displayName) { + this.displayName = displayName; + return this; + } + + /** + * Cross-service attributes for the location. For example {"cloud.googleapis.com/region": "us- + * east1"} + * @return value or {@code null} for none + */ + public java.util.Map getLabels() { + return labels; + } + + /** + * Cross-service attributes for the location. For example {"cloud.googleapis.com/region": "us- + * east1"} + * @param labels labels or {@code null} for none + */ + public Location setLabels(java.util.Map labels) { + this.labels = labels; + return this; + } + + /** + * The canonical id for this location. For example: `"us-east1"`. + * @return value or {@code null} for none + */ + public java.lang.String getLocationId() { + return locationId; + } + + /** + * The canonical id for this location. For example: `"us-east1"`. + * @param locationId locationId or {@code null} for none + */ + public Location setLocationId(java.lang.String locationId) { + this.locationId = locationId; + return this; + } + + /** + * Service-specific metadata. For example the available capacity at the given location. + * @return value or {@code null} for none + */ + public java.util.Map getMetadata() { + return metadata; + } + + /** + * Service-specific metadata. For example the available capacity at the given location. + * @param metadata metadata or {@code null} for none + */ + public Location setMetadata(java.util.Map metadata) { + this.metadata = metadata; + return this; + } + + /** + * Resource name for the location, which may vary between implementations. For example: + * `"projects/example-project/locations/us-east1"` + * @return value or {@code null} for none + */ + public java.lang.String getName() { + return name; + } + + /** + * Resource name for the location, which may vary between implementations. For example: + * `"projects/example-project/locations/us-east1"` + * @param name name or {@code null} for none + */ + public Location setName(java.lang.String name) { + this.name = name; + return this; + } + + @Override + public Location set(String fieldName, Object value) { + return (Location) super.set(fieldName, value); + } + + @Override + public Location clone() { + return (Location) super.clone(); + } + +} diff --git a/clients/google-api-services-ftp/v1/2.0.0/com/google/api/services/ftp/v1/model/Operation.java b/clients/google-api-services-ftp/v1/2.0.0/com/google/api/services/ftp/v1/model/Operation.java new file mode 100644 index 00000000000..8b485c77d27 --- /dev/null +++ b/clients/google-api-services-ftp/v1/2.0.0/com/google/api/services/ftp/v1/model/Operation.java @@ -0,0 +1,195 @@ +/* + * 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.ftp.v1.model; + +/** + * This resource represents a long-running operation that is the result of a network API call. + * + *

This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Cloud FTP API. For a detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class Operation extends com.google.api.client.json.GenericJson { + + /** + * If the value is `false`, it means the operation is still in progress. If `true`, the operation + * is completed, and either `error` or `response` is available. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Boolean done; + + /** + * The error result of the operation in case of failure or cancellation. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private Status error; + + /** + * Service-specific metadata associated with the operation. It typically contains progress + * information and common metadata such as create time. Some services might not provide such + * metadata. Any method that returns a long-running operation should document the metadata type, + * if any. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.Map metadata; + + /** + * The server-assigned name, which is only unique within the same service that originally returns + * it. If you use the default HTTP mapping, the `name` should be a resource name ending with + * `operations/{unique_id}`. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** + * The normal, successful response of the operation. If the original method returns no data on + * success, such as `Delete`, the response is `google.protobuf.Empty`. If the original method is + * standard `Get`/`Create`/`Update`, the response should be the resource. For other methods, the + * response should have the type `XxxResponse`, where `Xxx` is the original method name. For + * example, if the original method name is `TakeSnapshot()`, the inferred response type is + * `TakeSnapshotResponse`. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.Map response; + + /** + * If the value is `false`, it means the operation is still in progress. If `true`, the operation + * is completed, and either `error` or `response` is available. + * @return value or {@code null} for none + */ + public java.lang.Boolean getDone() { + return done; + } + + /** + * If the value is `false`, it means the operation is still in progress. If `true`, the operation + * is completed, and either `error` or `response` is available. + * @param done done or {@code null} for none + */ + public Operation setDone(java.lang.Boolean done) { + this.done = done; + return this; + } + + /** + * The error result of the operation in case of failure or cancellation. + * @return value or {@code null} for none + */ + public Status getError() { + return error; + } + + /** + * The error result of the operation in case of failure or cancellation. + * @param error error or {@code null} for none + */ + public Operation setError(Status error) { + this.error = error; + return this; + } + + /** + * Service-specific metadata associated with the operation. It typically contains progress + * information and common metadata such as create time. Some services might not provide such + * metadata. Any method that returns a long-running operation should document the metadata type, + * if any. + * @return value or {@code null} for none + */ + public java.util.Map getMetadata() { + return metadata; + } + + /** + * Service-specific metadata associated with the operation. It typically contains progress + * information and common metadata such as create time. Some services might not provide such + * metadata. Any method that returns a long-running operation should document the metadata type, + * if any. + * @param metadata metadata or {@code null} for none + */ + public Operation setMetadata(java.util.Map metadata) { + this.metadata = metadata; + return this; + } + + /** + * The server-assigned name, which is only unique within the same service that originally returns + * it. If you use the default HTTP mapping, the `name` should be a resource name ending with + * `operations/{unique_id}`. + * @return value or {@code null} for none + */ + public java.lang.String getName() { + return name; + } + + /** + * The server-assigned name, which is only unique within the same service that originally returns + * it. If you use the default HTTP mapping, the `name` should be a resource name ending with + * `operations/{unique_id}`. + * @param name name or {@code null} for none + */ + public Operation setName(java.lang.String name) { + this.name = name; + return this; + } + + /** + * The normal, successful response of the operation. If the original method returns no data on + * success, such as `Delete`, the response is `google.protobuf.Empty`. If the original method is + * standard `Get`/`Create`/`Update`, the response should be the resource. For other methods, the + * response should have the type `XxxResponse`, where `Xxx` is the original method name. For + * example, if the original method name is `TakeSnapshot()`, the inferred response type is + * `TakeSnapshotResponse`. + * @return value or {@code null} for none + */ + public java.util.Map getResponse() { + return response; + } + + /** + * The normal, successful response of the operation. If the original method returns no data on + * success, such as `Delete`, the response is `google.protobuf.Empty`. If the original method is + * standard `Get`/`Create`/`Update`, the response should be the resource. For other methods, the + * response should have the type `XxxResponse`, where `Xxx` is the original method name. For + * example, if the original method name is `TakeSnapshot()`, the inferred response type is + * `TakeSnapshotResponse`. + * @param response response or {@code null} for none + */ + public Operation setResponse(java.util.Map response) { + this.response = response; + return this; + } + + @Override + public Operation set(String fieldName, Object value) { + return (Operation) super.set(fieldName, value); + } + + @Override + public Operation clone() { + return (Operation) super.clone(); + } + +} diff --git a/clients/google-api-services-ftp/v1/2.0.0/com/google/api/services/ftp/v1/model/OperationMetadata.java b/clients/google-api-services-ftp/v1/2.0.0/com/google/api/services/ftp/v1/model/OperationMetadata.java new file mode 100644 index 00000000000..ead2af87d29 --- /dev/null +++ b/clients/google-api-services-ftp/v1/2.0.0/com/google/api/services/ftp/v1/model/OperationMetadata.java @@ -0,0 +1,216 @@ +/* + * 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.ftp.v1.model; + +/** + * Represents the metadata of the long-running operation. + * + *

This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Cloud FTP API. For a detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class OperationMetadata extends com.google.api.client.json.GenericJson { + + /** + * Output only. API version used to start the operation. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String apiVersion; + + /** + * Output only. The time the operation was created. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private String createTime; + + /** + * Output only. The time the operation finished running. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private String endTime; + + /** + * Output only. Identifies whether the user has requested cancellation of the operation. + * Operations that have been cancelled successfully have google.longrunning.Operation.error value + * with a google.rpc.Status.code of `1`, corresponding to `Code.CANCELLED`. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Boolean requestedCancellation; + + /** + * Output only. Human-readable status of the operation, if any. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String statusMessage; + + /** + * Output only. Server-defined resource path for the target of the operation. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String target; + + /** + * Output only. Name of the verb executed by the operation. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String verb; + + /** + * Output only. API version used to start the operation. + * @return value or {@code null} for none + */ + public java.lang.String getApiVersion() { + return apiVersion; + } + + /** + * Output only. API version used to start the operation. + * @param apiVersion apiVersion or {@code null} for none + */ + public OperationMetadata setApiVersion(java.lang.String apiVersion) { + this.apiVersion = apiVersion; + return this; + } + + /** + * Output only. The time the operation was created. + * @return value or {@code null} for none + */ + public String getCreateTime() { + return createTime; + } + + /** + * Output only. The time the operation was created. + * @param createTime createTime or {@code null} for none + */ + public OperationMetadata setCreateTime(String createTime) { + this.createTime = createTime; + return this; + } + + /** + * Output only. The time the operation finished running. + * @return value or {@code null} for none + */ + public String getEndTime() { + return endTime; + } + + /** + * Output only. The time the operation finished running. + * @param endTime endTime or {@code null} for none + */ + public OperationMetadata setEndTime(String endTime) { + this.endTime = endTime; + return this; + } + + /** + * Output only. Identifies whether the user has requested cancellation of the operation. + * Operations that have been cancelled successfully have google.longrunning.Operation.error value + * with a google.rpc.Status.code of `1`, corresponding to `Code.CANCELLED`. + * @return value or {@code null} for none + */ + public java.lang.Boolean getRequestedCancellation() { + return requestedCancellation; + } + + /** + * Output only. Identifies whether the user has requested cancellation of the operation. + * Operations that have been cancelled successfully have google.longrunning.Operation.error value + * with a google.rpc.Status.code of `1`, corresponding to `Code.CANCELLED`. + * @param requestedCancellation requestedCancellation or {@code null} for none + */ + public OperationMetadata setRequestedCancellation(java.lang.Boolean requestedCancellation) { + this.requestedCancellation = requestedCancellation; + return this; + } + + /** + * Output only. Human-readable status of the operation, if any. + * @return value or {@code null} for none + */ + public java.lang.String getStatusMessage() { + return statusMessage; + } + + /** + * Output only. Human-readable status of the operation, if any. + * @param statusMessage statusMessage or {@code null} for none + */ + public OperationMetadata setStatusMessage(java.lang.String statusMessage) { + this.statusMessage = statusMessage; + return this; + } + + /** + * Output only. Server-defined resource path for the target of the operation. + * @return value or {@code null} for none + */ + public java.lang.String getTarget() { + return target; + } + + /** + * Output only. Server-defined resource path for the target of the operation. + * @param target target or {@code null} for none + */ + public OperationMetadata setTarget(java.lang.String target) { + this.target = target; + return this; + } + + /** + * Output only. Name of the verb executed by the operation. + * @return value or {@code null} for none + */ + public java.lang.String getVerb() { + return verb; + } + + /** + * Output only. Name of the verb executed by the operation. + * @param verb verb or {@code null} for none + */ + public OperationMetadata setVerb(java.lang.String verb) { + this.verb = verb; + return this; + } + + @Override + public OperationMetadata set(String fieldName, Object value) { + return (OperationMetadata) super.set(fieldName, value); + } + + @Override + public OperationMetadata clone() { + return (OperationMetadata) super.clone(); + } + +} diff --git a/clients/google-api-services-ftp/v1/2.0.0/com/google/api/services/ftp/v1/model/PscEndpoint.java b/clients/google-api-services-ftp/v1/2.0.0/com/google/api/services/ftp/v1/model/PscEndpoint.java new file mode 100644 index 00000000000..029f46ed5d7 --- /dev/null +++ b/clients/google-api-services-ftp/v1/2.0.0/com/google/api/services/ftp/v1/model/PscEndpoint.java @@ -0,0 +1,120 @@ +/* + * 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.ftp.v1.model; + +/** + * Details of PSC endpoint created by customer. + * + *

This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Cloud FTP API. For a detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class PscEndpoint extends com.google.api.client.json.GenericJson { + + /** + * Output only. This is a Resource name for Private Service Connect endpoint. Format: + * `projects/{project}/regions/{region}/forwardingRules/{forwarding_rule}` + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String endpoint; + + /** + * Output only. The consumer network. Format: + * `projects/{project}/locations/{location}/networks/{network}` + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String network; + + /** + * Output only. The status of the connected endpoint. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String status; + + /** + * Output only. This is a Resource name for Private Service Connect endpoint. Format: + * `projects/{project}/regions/{region}/forwardingRules/{forwarding_rule}` + * @return value or {@code null} for none + */ + public java.lang.String getEndpoint() { + return endpoint; + } + + /** + * Output only. This is a Resource name for Private Service Connect endpoint. Format: + * `projects/{project}/regions/{region}/forwardingRules/{forwarding_rule}` + * @param endpoint endpoint or {@code null} for none + */ + public PscEndpoint setEndpoint(java.lang.String endpoint) { + this.endpoint = endpoint; + return this; + } + + /** + * Output only. The consumer network. Format: + * `projects/{project}/locations/{location}/networks/{network}` + * @return value or {@code null} for none + */ + public java.lang.String getNetwork() { + return network; + } + + /** + * Output only. The consumer network. Format: + * `projects/{project}/locations/{location}/networks/{network}` + * @param network network or {@code null} for none + */ + public PscEndpoint setNetwork(java.lang.String network) { + this.network = network; + return this; + } + + /** + * Output only. The status of the connected endpoint. + * @return value or {@code null} for none + */ + public java.lang.String getStatus() { + return status; + } + + /** + * Output only. The status of the connected endpoint. + * @param status status or {@code null} for none + */ + public PscEndpoint setStatus(java.lang.String status) { + this.status = status; + return this; + } + + @Override + public PscEndpoint set(String fieldName, Object value) { + return (PscEndpoint) super.set(fieldName, value); + } + + @Override + public PscEndpoint clone() { + return (PscEndpoint) super.clone(); + } + +} diff --git a/clients/google-api-services-ftp/v1/2.0.0/com/google/api/services/ftp/v1/model/Server.java b/clients/google-api-services-ftp/v1/2.0.0/com/google/api/services/ftp/v1/model/Server.java new file mode 100644 index 00000000000..339806568fa --- /dev/null +++ b/clients/google-api-services-ftp/v1/2.0.0/com/google/api/services/ftp/v1/model/Server.java @@ -0,0 +1,306 @@ +/* + * 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.ftp.v1.model; + +/** + * Message describing Server object + * + *

This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Cloud FTP API. For a detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class Server extends com.google.api.client.json.GenericJson { + + /** + * Required. The access type of the Server. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String accessType; + + /** + * Output only. [Output only] Create time stamp + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private String createTime; + + /** + * Optional. Display name of the Server + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String displayName; + + /** + * Configuration for external access. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private ExternalServerConfig externalConfig; + + /** + * Output only. Credentials of the FTP Server. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private ServerCredential googleManagedServerCredential; + + /** + * Configuration for internal access. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private InternalServerConfig internalConfig; + + /** + * Optional. Labels as key value pairs + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.Map labels; + + /** + * Identifier. name of resource + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** + * Output only. Service agent used to access the customer bucket. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String serviceAgent; + + /** + * Output only. The state of the server. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String state; + + /** + * Output only. [Output only] Update time stamp + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private String updateTime; + + /** + * Required. The access type of the Server. + * @return value or {@code null} for none + */ + public java.lang.String getAccessType() { + return accessType; + } + + /** + * Required. The access type of the Server. + * @param accessType accessType or {@code null} for none + */ + public Server setAccessType(java.lang.String accessType) { + this.accessType = accessType; + return this; + } + + /** + * Output only. [Output only] Create time stamp + * @return value or {@code null} for none + */ + public String getCreateTime() { + return createTime; + } + + /** + * Output only. [Output only] Create time stamp + * @param createTime createTime or {@code null} for none + */ + public Server setCreateTime(String createTime) { + this.createTime = createTime; + return this; + } + + /** + * Optional. Display name of the Server + * @return value or {@code null} for none + */ + public java.lang.String getDisplayName() { + return displayName; + } + + /** + * Optional. Display name of the Server + * @param displayName displayName or {@code null} for none + */ + public Server setDisplayName(java.lang.String displayName) { + this.displayName = displayName; + return this; + } + + /** + * Configuration for external access. + * @return value or {@code null} for none + */ + public ExternalServerConfig getExternalConfig() { + return externalConfig; + } + + /** + * Configuration for external access. + * @param externalConfig externalConfig or {@code null} for none + */ + public Server setExternalConfig(ExternalServerConfig externalConfig) { + this.externalConfig = externalConfig; + return this; + } + + /** + * Output only. Credentials of the FTP Server. + * @return value or {@code null} for none + */ + public ServerCredential getGoogleManagedServerCredential() { + return googleManagedServerCredential; + } + + /** + * Output only. Credentials of the FTP Server. + * @param googleManagedServerCredential googleManagedServerCredential or {@code null} for none + */ + public Server setGoogleManagedServerCredential(ServerCredential googleManagedServerCredential) { + this.googleManagedServerCredential = googleManagedServerCredential; + return this; + } + + /** + * Configuration for internal access. + * @return value or {@code null} for none + */ + public InternalServerConfig getInternalConfig() { + return internalConfig; + } + + /** + * Configuration for internal access. + * @param internalConfig internalConfig or {@code null} for none + */ + public Server setInternalConfig(InternalServerConfig internalConfig) { + this.internalConfig = internalConfig; + return this; + } + + /** + * Optional. Labels as key value pairs + * @return value or {@code null} for none + */ + public java.util.Map getLabels() { + return labels; + } + + /** + * Optional. Labels as key value pairs + * @param labels labels or {@code null} for none + */ + public Server setLabels(java.util.Map labels) { + this.labels = labels; + return this; + } + + /** + * Identifier. name of resource + * @return value or {@code null} for none + */ + public java.lang.String getName() { + return name; + } + + /** + * Identifier. name of resource + * @param name name or {@code null} for none + */ + public Server setName(java.lang.String name) { + this.name = name; + return this; + } + + /** + * Output only. Service agent used to access the customer bucket. + * @return value or {@code null} for none + */ + public java.lang.String getServiceAgent() { + return serviceAgent; + } + + /** + * Output only. Service agent used to access the customer bucket. + * @param serviceAgent serviceAgent or {@code null} for none + */ + public Server setServiceAgent(java.lang.String serviceAgent) { + this.serviceAgent = serviceAgent; + return this; + } + + /** + * Output only. The state of the server. + * @return value or {@code null} for none + */ + public java.lang.String getState() { + return state; + } + + /** + * Output only. The state of the server. + * @param state state or {@code null} for none + */ + public Server setState(java.lang.String state) { + this.state = state; + return this; + } + + /** + * Output only. [Output only] Update time stamp + * @return value or {@code null} for none + */ + public String getUpdateTime() { + return updateTime; + } + + /** + * Output only. [Output only] Update time stamp + * @param updateTime updateTime or {@code null} for none + */ + public Server setUpdateTime(String updateTime) { + this.updateTime = updateTime; + return this; + } + + @Override + public Server set(String fieldName, Object value) { + return (Server) super.set(fieldName, value); + } + + @Override + public Server clone() { + return (Server) super.clone(); + } + +} diff --git a/clients/google-api-services-ftp/v1/2.0.0/com/google/api/services/ftp/v1/model/ServerCredential.java b/clients/google-api-services-ftp/v1/2.0.0/com/google/api/services/ftp/v1/model/ServerCredential.java new file mode 100644 index 00000000000..a702f0c4f34 --- /dev/null +++ b/clients/google-api-services-ftp/v1/2.0.0/com/google/api/services/ftp/v1/model/ServerCredential.java @@ -0,0 +1,96 @@ +/* + * 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.ftp.v1.model; + +/** + * Represents credentials of an FTP Server. + * + *

This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Cloud FTP API. For a detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class ServerCredential extends com.google.api.client.json.GenericJson { + + /** + * Output only. Asymmetric algorithm used by the public key. Possible values (can be expanded in + * future): - ssh-ed25519 + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String asymmetricAlgorithm; + + /** + * Output only. The fingerprint is a hash of the public key, and is displayed when clients access + * the server for the first time to verify the server's identity. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String fingerprint; + + /** + * Output only. Asymmetric algorithm used by the public key. Possible values (can be expanded in + * future): - ssh-ed25519 + * @return value or {@code null} for none + */ + public java.lang.String getAsymmetricAlgorithm() { + return asymmetricAlgorithm; + } + + /** + * Output only. Asymmetric algorithm used by the public key. Possible values (can be expanded in + * future): - ssh-ed25519 + * @param asymmetricAlgorithm asymmetricAlgorithm or {@code null} for none + */ + public ServerCredential setAsymmetricAlgorithm(java.lang.String asymmetricAlgorithm) { + this.asymmetricAlgorithm = asymmetricAlgorithm; + return this; + } + + /** + * Output only. The fingerprint is a hash of the public key, and is displayed when clients access + * the server for the first time to verify the server's identity. + * @return value or {@code null} for none + */ + public java.lang.String getFingerprint() { + return fingerprint; + } + + /** + * Output only. The fingerprint is a hash of the public key, and is displayed when clients access + * the server for the first time to verify the server's identity. + * @param fingerprint fingerprint or {@code null} for none + */ + public ServerCredential setFingerprint(java.lang.String fingerprint) { + this.fingerprint = fingerprint; + return this; + } + + @Override + public ServerCredential set(String fieldName, Object value) { + return (ServerCredential) super.set(fieldName, value); + } + + @Override + public ServerCredential clone() { + return (ServerCredential) super.clone(); + } + +} diff --git a/clients/google-api-services-ftp/v1/2.0.0/com/google/api/services/ftp/v1/model/StartServerRequest.java b/clients/google-api-services-ftp/v1/2.0.0/com/google/api/services/ftp/v1/model/StartServerRequest.java new file mode 100644 index 00000000000..4cefaf24d30 --- /dev/null +++ b/clients/google-api-services-ftp/v1/2.0.0/com/google/api/services/ftp/v1/model/StartServerRequest.java @@ -0,0 +1,42 @@ +/* + * 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.ftp.v1.model; + +/** + * Request message for starting a Server. + * + *

This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Cloud FTP API. For a detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class StartServerRequest extends com.google.api.client.json.GenericJson { + + @Override + public StartServerRequest set(String fieldName, Object value) { + return (StartServerRequest) super.set(fieldName, value); + } + + @Override + public StartServerRequest clone() { + return (StartServerRequest) super.clone(); + } + +} diff --git a/clients/google-api-services-ftp/v1/2.0.0/com/google/api/services/ftp/v1/model/Status.java b/clients/google-api-services-ftp/v1/2.0.0/com/google/api/services/ftp/v1/model/Status.java new file mode 100644 index 00000000000..677e9c1597b --- /dev/null +++ b/clients/google-api-services-ftp/v1/2.0.0/com/google/api/services/ftp/v1/model/Status.java @@ -0,0 +1,127 @@ +/* + * 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.ftp.v1.model; + +/** + * The `Status` type defines a logical error model that is suitable for different programming + * environments, including REST APIs and RPC APIs. It is used by [gRPC](https://github.com/grpc). + * Each `Status` message contains three pieces of data: error code, error message, and error + * details. You can find out more about this error model and how to work with it in the [API Design + * Guide](https://cloud.google.com/apis/design/errors). + * + *

This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Cloud FTP API. For a detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class Status extends com.google.api.client.json.GenericJson { + + /** + * The status code, which should be an enum value of google.rpc.Code. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Integer code; + + /** + * A list of messages that carry the error details. There is a common set of message types for + * APIs to use. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List> details; + + /** + * A developer-facing error message, which should be in English. Any user-facing error message + * should be localized and sent in the google.rpc.Status.details field, or localized by the + * client. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String message; + + /** + * The status code, which should be an enum value of google.rpc.Code. + * @return value or {@code null} for none + */ + public java.lang.Integer getCode() { + return code; + } + + /** + * The status code, which should be an enum value of google.rpc.Code. + * @param code code or {@code null} for none + */ + public Status setCode(java.lang.Integer code) { + this.code = code; + return this; + } + + /** + * A list of messages that carry the error details. There is a common set of message types for + * APIs to use. + * @return value or {@code null} for none + */ + public java.util.List> getDetails() { + return details; + } + + /** + * A list of messages that carry the error details. There is a common set of message types for + * APIs to use. + * @param details details or {@code null} for none + */ + public Status setDetails(java.util.List> details) { + this.details = details; + return this; + } + + /** + * A developer-facing error message, which should be in English. Any user-facing error message + * should be localized and sent in the google.rpc.Status.details field, or localized by the + * client. + * @return value or {@code null} for none + */ + public java.lang.String getMessage() { + return message; + } + + /** + * A developer-facing error message, which should be in English. Any user-facing error message + * should be localized and sent in the google.rpc.Status.details field, or localized by the + * client. + * @param message message or {@code null} for none + */ + public Status setMessage(java.lang.String message) { + this.message = message; + return this; + } + + @Override + public Status set(String fieldName, Object value) { + return (Status) super.set(fieldName, value); + } + + @Override + public Status clone() { + return (Status) super.clone(); + } + +} diff --git a/clients/google-api-services-ftp/v1/2.0.0/com/google/api/services/ftp/v1/model/StopServerRequest.java b/clients/google-api-services-ftp/v1/2.0.0/com/google/api/services/ftp/v1/model/StopServerRequest.java new file mode 100644 index 00000000000..1bf0a879c68 --- /dev/null +++ b/clients/google-api-services-ftp/v1/2.0.0/com/google/api/services/ftp/v1/model/StopServerRequest.java @@ -0,0 +1,42 @@ +/* + * 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.ftp.v1.model; + +/** + * Request message for stopping a Server. + * + *

This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Cloud FTP API. For a detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class StopServerRequest extends com.google.api.client.json.GenericJson { + + @Override + public StopServerRequest set(String fieldName, Object value) { + return (StopServerRequest) super.set(fieldName, value); + } + + @Override + public StopServerRequest clone() { + return (StopServerRequest) super.clone(); + } + +} diff --git a/clients/google-api-services-ftp/v1/2.0.0/com/google/api/services/ftp/v1/model/StorageDirectoryMapping.java b/clients/google-api-services-ftp/v1/2.0.0/com/google/api/services/ftp/v1/model/StorageDirectoryMapping.java new file mode 100644 index 00000000000..e781f8915f3 --- /dev/null +++ b/clients/google-api-services-ftp/v1/2.0.0/com/google/api/services/ftp/v1/model/StorageDirectoryMapping.java @@ -0,0 +1,145 @@ +/* + * 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.ftp.v1.model; + +/** + * Mapping of backing Cloud Storage path to the directory where the user lands in the SFTP server. + * If directory is not specified, it'll default to '/'. Eg 1 - (bucket_name: bucket, bucket_prefix: + * path1/path2, directory: /abc/def/username) The user will land at /abcd/def/username, and the view + * there will match that of /bucket/path1/path2. The user will not be aware of Cloud Storage prefix + * '/bucket/path1' and there will be no such directory in the view. Eg 2 - (bucket_name: bucket, + * bucket_prefix: path1/path2, directory: '') The user will land at '/', and the view there will + * match that of /bucket/path1/path2. The user will not be aware of Cloud Storage prefix + * '/bucket/path1/path2' and there will be no such directory in the view. + * + *

This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Cloud FTP API. For a detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class StorageDirectoryMapping extends com.google.api.client.json.GenericJson { + + /** + * Required. Name of the bucket. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String bucket; + + /** + * Optional. Prefix inside the bucket. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String bucketPrefix; + + /** + * Required. Directory where the user lands in the SFTP server. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String directory; + + /** + * Required. Permission to the bucket. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String permission; + + /** + * Required. Name of the bucket. + * @return value or {@code null} for none + */ + public java.lang.String getBucket() { + return bucket; + } + + /** + * Required. Name of the bucket. + * @param bucket bucket or {@code null} for none + */ + public StorageDirectoryMapping setBucket(java.lang.String bucket) { + this.bucket = bucket; + return this; + } + + /** + * Optional. Prefix inside the bucket. + * @return value or {@code null} for none + */ + public java.lang.String getBucketPrefix() { + return bucketPrefix; + } + + /** + * Optional. Prefix inside the bucket. + * @param bucketPrefix bucketPrefix or {@code null} for none + */ + public StorageDirectoryMapping setBucketPrefix(java.lang.String bucketPrefix) { + this.bucketPrefix = bucketPrefix; + return this; + } + + /** + * Required. Directory where the user lands in the SFTP server. + * @return value or {@code null} for none + */ + public java.lang.String getDirectory() { + return directory; + } + + /** + * Required. Directory where the user lands in the SFTP server. + * @param directory directory or {@code null} for none + */ + public StorageDirectoryMapping setDirectory(java.lang.String directory) { + this.directory = directory; + return this; + } + + /** + * Required. Permission to the bucket. + * @return value or {@code null} for none + */ + public java.lang.String getPermission() { + return permission; + } + + /** + * Required. Permission to the bucket. + * @param permission permission or {@code null} for none + */ + public StorageDirectoryMapping setPermission(java.lang.String permission) { + this.permission = permission; + return this; + } + + @Override + public StorageDirectoryMapping set(String fieldName, Object value) { + return (StorageDirectoryMapping) super.set(fieldName, value); + } + + @Override + public StorageDirectoryMapping clone() { + return (StorageDirectoryMapping) super.clone(); + } + +} diff --git a/clients/google-api-services-ftp/v1/2.0.0/com/google/api/services/ftp/v1/model/User.java b/clients/google-api-services-ftp/v1/2.0.0/com/google/api/services/ftp/v1/model/User.java new file mode 100644 index 00000000000..160b6292b66 --- /dev/null +++ b/clients/google-api-services-ftp/v1/2.0.0/com/google/api/services/ftp/v1/model/User.java @@ -0,0 +1,270 @@ +/* + * 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.ftp.v1.model; + +/** + * Message describing User object + * + *

This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Cloud FTP API. For a detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class User extends com.google.api.client.json.GenericJson { + + /** + * Output only. [Output only] Create time stamp + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private String createTime; + + /** + * Required. Service account in customer project attached to this SFTP User. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String customerServiceAccount; + + /** + * Optional. Labels as key value pairs + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.Map labels; + + /** + * Identifier. User-friendly name via which User will be identified. + * projects/{project}/locations/{location}/servers/{server}/users/{user} + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** + * Output only. Tracks user creation. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String state; + + /** + * Required. Mapping of Cloud Storage buckets to directories where the user will land in the SFTP + * server. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List storageDirectoryMappings; + + static { + // hack to force ProGuard to consider StorageDirectoryMapping used, since otherwise it would be stripped out + // see https://github.com/google/google-api-java-client/issues/543 + com.google.api.client.util.Data.nullOf(StorageDirectoryMapping.class); + } + + /** + * Output only. [Output only] Update time stamp + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private String updateTime; + + /** + * Required. User credential for the user. The maximum number of user credentials is 10. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List userCredentials; + + /** + * Output only. [Output only] The username of the user. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String username; + + /** + * Output only. [Output only] Create time stamp + * @return value or {@code null} for none + */ + public String getCreateTime() { + return createTime; + } + + /** + * Output only. [Output only] Create time stamp + * @param createTime createTime or {@code null} for none + */ + public User setCreateTime(String createTime) { + this.createTime = createTime; + return this; + } + + /** + * Required. Service account in customer project attached to this SFTP User. + * @return value or {@code null} for none + */ + public java.lang.String getCustomerServiceAccount() { + return customerServiceAccount; + } + + /** + * Required. Service account in customer project attached to this SFTP User. + * @param customerServiceAccount customerServiceAccount or {@code null} for none + */ + public User setCustomerServiceAccount(java.lang.String customerServiceAccount) { + this.customerServiceAccount = customerServiceAccount; + return this; + } + + /** + * Optional. Labels as key value pairs + * @return value or {@code null} for none + */ + public java.util.Map getLabels() { + return labels; + } + + /** + * Optional. Labels as key value pairs + * @param labels labels or {@code null} for none + */ + public User setLabels(java.util.Map labels) { + this.labels = labels; + return this; + } + + /** + * Identifier. User-friendly name via which User will be identified. + * projects/{project}/locations/{location}/servers/{server}/users/{user} + * @return value or {@code null} for none + */ + public java.lang.String getName() { + return name; + } + + /** + * Identifier. User-friendly name via which User will be identified. + * projects/{project}/locations/{location}/servers/{server}/users/{user} + * @param name name or {@code null} for none + */ + public User setName(java.lang.String name) { + this.name = name; + return this; + } + + /** + * Output only. Tracks user creation. + * @return value or {@code null} for none + */ + public java.lang.String getState() { + return state; + } + + /** + * Output only. Tracks user creation. + * @param state state or {@code null} for none + */ + public User setState(java.lang.String state) { + this.state = state; + return this; + } + + /** + * Required. Mapping of Cloud Storage buckets to directories where the user will land in the SFTP + * server. + * @return value or {@code null} for none + */ + public java.util.List getStorageDirectoryMappings() { + return storageDirectoryMappings; + } + + /** + * Required. Mapping of Cloud Storage buckets to directories where the user will land in the SFTP + * server. + * @param storageDirectoryMappings storageDirectoryMappings or {@code null} for none + */ + public User setStorageDirectoryMappings(java.util.List storageDirectoryMappings) { + this.storageDirectoryMappings = storageDirectoryMappings; + return this; + } + + /** + * Output only. [Output only] Update time stamp + * @return value or {@code null} for none + */ + public String getUpdateTime() { + return updateTime; + } + + /** + * Output only. [Output only] Update time stamp + * @param updateTime updateTime or {@code null} for none + */ + public User setUpdateTime(String updateTime) { + this.updateTime = updateTime; + return this; + } + + /** + * Required. User credential for the user. The maximum number of user credentials is 10. + * @return value or {@code null} for none + */ + public java.util.List getUserCredentials() { + return userCredentials; + } + + /** + * Required. User credential for the user. The maximum number of user credentials is 10. + * @param userCredentials userCredentials or {@code null} for none + */ + public User setUserCredentials(java.util.List userCredentials) { + this.userCredentials = userCredentials; + return this; + } + + /** + * Output only. [Output only] The username of the user. + * @return value or {@code null} for none + */ + public java.lang.String getUsername() { + return username; + } + + /** + * Output only. [Output only] The username of the user. + * @param username username or {@code null} for none + */ + public User setUsername(java.lang.String username) { + this.username = username; + return this; + } + + @Override + public User set(String fieldName, Object value) { + return (User) super.set(fieldName, value); + } + + @Override + public User clone() { + return (User) super.clone(); + } + +} diff --git a/clients/google-api-services-ftp/v1/2.0.0/com/google/api/services/ftp/v1/model/UserCredential.java b/clients/google-api-services-ftp/v1/2.0.0/com/google/api/services/ftp/v1/model/UserCredential.java new file mode 100644 index 00000000000..023c505e52a --- /dev/null +++ b/clients/google-api-services-ftp/v1/2.0.0/com/google/api/services/ftp/v1/model/UserCredential.java @@ -0,0 +1,117 @@ +/* + * 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.ftp.v1.model; + +/** + * Message describing UserCredential object + * + *

This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Cloud FTP API. For a detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class UserCredential extends com.google.api.client.json.GenericJson { + + /** + * Required. Name of the user credential. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String credentialName; + + /** + * Required. Type of credential. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String credentialType; + + /** + * Optional. SSH public key body in OpenSSH format. Example: "ssh-rsa + * AAAAB3NzaC1yc2EAAAADAQABAAABAQ..." + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String sshPublicKeyBody; + + /** + * Required. Name of the user credential. + * @return value or {@code null} for none + */ + public java.lang.String getCredentialName() { + return credentialName; + } + + /** + * Required. Name of the user credential. + * @param credentialName credentialName or {@code null} for none + */ + public UserCredential setCredentialName(java.lang.String credentialName) { + this.credentialName = credentialName; + return this; + } + + /** + * Required. Type of credential. + * @return value or {@code null} for none + */ + public java.lang.String getCredentialType() { + return credentialType; + } + + /** + * Required. Type of credential. + * @param credentialType credentialType or {@code null} for none + */ + public UserCredential setCredentialType(java.lang.String credentialType) { + this.credentialType = credentialType; + return this; + } + + /** + * Optional. SSH public key body in OpenSSH format. Example: "ssh-rsa + * AAAAB3NzaC1yc2EAAAADAQABAAABAQ..." + * @return value or {@code null} for none + */ + public java.lang.String getSshPublicKeyBody() { + return sshPublicKeyBody; + } + + /** + * Optional. SSH public key body in OpenSSH format. Example: "ssh-rsa + * AAAAB3NzaC1yc2EAAAADAQABAAABAQ..." + * @param sshPublicKeyBody sshPublicKeyBody or {@code null} for none + */ + public UserCredential setSshPublicKeyBody(java.lang.String sshPublicKeyBody) { + this.sshPublicKeyBody = sshPublicKeyBody; + return this; + } + + @Override + public UserCredential set(String fieldName, Object value) { + return (UserCredential) super.set(fieldName, value); + } + + @Override + public UserCredential clone() { + return (UserCredential) super.clone(); + } + +} diff --git a/clients/google-api-services-ftp/v1/2.0.0/pom.xml b/clients/google-api-services-ftp/v1/2.0.0/pom.xml new file mode 100644 index 00000000000..1d43cc37bc4 --- /dev/null +++ b/clients/google-api-services-ftp/v1/2.0.0/pom.xml @@ -0,0 +1,219 @@ + + 4.0.0 + + org.sonatype.oss + oss-parent + 7 + + + com.google.apis + google-api-services-ftp + v1-rev20260722-2.0.0 + Cloud FTP API v1-rev20260722-2.0.0 + jar + + 2011 + + + + GoogleAPIs + GoogleAPIs + googleapis@googlegroups.com + Google + https://www.google.com + + + + + Google + http://www.google.com/ + + + + + The Apache Software License, Version 2.0 + http://www.apache.org/licenses/LICENSE-2.0.txt + repo + + + + + + ossrh + https://google.oss.sonatype.org/content/repositories/snapshots + + + + + + + maven-compiler-plugin + 3.9.0 + + 1.7 + 1.7 + + + + org.apache.maven.plugins + maven-source-plugin + 2.4 + + + org.apache.maven.plugins + maven-jar-plugin + 3.1.2 + + + + com.google.api.services.ftp + + + + + + org.apache.maven.plugins + maven-javadoc-plugin + 3.1.0 + + + attach-javadocs + + jar + + + + + none + Cloud FTP API ${project.version} + Cloud FTP API ${project.version} + + http://docs.oracle.com/javase/7/docs/api + https://googleapis.dev/java/google-http-client/${httpClientLibrary}/ + https://googleapis.dev/java/google-oauth-client/${oauthClientLibrary}/ + https://googleapis.dev/java/google-api-client/2.7.2/ + + + + + org.codehaus.mojo + clirr-maven-plugin + 2.8 + + clirr-ignored-differences.xml + true + + + + + check + + + + + + . + + + ./resources + + + + + + + com.google.api-client + google-api-client + 2.7.2 + + + + + UTF-8 + + + + + + release-sonatype + + + + !artifact-registry-url + + + + + + org.sonatype.plugins + nexus-staging-maven-plugin + 1.6.13 + true + + sonatype-nexus-staging + https://google.oss.sonatype.org/ + false + + + + + + + + release-gcp-artifact-registry + + artifactregistry://please-define-artifact-registry-url-property + + + + gcp-artifact-registry-repository + ${artifact-registry-url} + + + gcp-artifact-registry-repository + ${artifact-registry-url} + + + + + release-sign-artifacts + + + performRelease + true + + + + + + org.apache.maven.plugins + maven-gpg-plugin + 3.2.7 + + + sign-artifacts + verify + + sign + + + + --pinentry-mode + loopback + + + + + + + + + + \ No newline at end of file diff --git a/clients/google-api-services-ftp/v1/README.md b/clients/google-api-services-ftp/v1/README.md new file mode 100644 index 00000000000..9cdf7ce56a0 --- /dev/null +++ b/clients/google-api-services-ftp/v1/README.md @@ -0,0 +1,44 @@ +# Cloud FTP API Client Library for Java + + + +This page contains information about getting started with the Cloud FTP API +using the Google API Client Library for Java. In addition, you may be interested +in the following documentation: + +* Browse the [Javadoc reference for the Cloud FTP API][javadoc] +* Read the [Developer's Guide for the Google API Client Library for Java][google-api-client]. +* Interact with this API in your browser using the [APIs Explorer for the Cloud FTP API][api-explorer] + +## Installation + +### Maven + +Add the following lines to your `pom.xml` file: + +```xml + + + + com.google.apis + google-api-services-ftp + v1-rev20260722-2.0.0 + + + +``` + +### Gradle + +```gradle +repositories { + mavenCentral() +} +dependencies { + implementation 'com.google.apis:google-api-services-ftp:v1-rev20260722-2.0.0' +} +``` + +[javadoc]: https://googleapis.dev/java/google-api-services-ftp/latest/index.html +[google-api-client]: https://github.com/googleapis/google-api-java-client/ +[api-explorer]: https://developers.google.com/apis-explorer/#p/ftp/v1/ diff --git a/clients/google-api-services-ftp/v1alpha/2.0.0/README.md b/clients/google-api-services-ftp/v1alpha/2.0.0/README.md new file mode 100644 index 00000000000..b90cf425aa7 --- /dev/null +++ b/clients/google-api-services-ftp/v1alpha/2.0.0/README.md @@ -0,0 +1,44 @@ +# Cloud FTP API Client Library for Java + + + +This page contains information about getting started with the Cloud FTP API +using the Google API Client Library for Java. In addition, you may be interested +in the following documentation: + +* Browse the [Javadoc reference for the Cloud FTP API][javadoc] +* Read the [Developer's Guide for the Google API Client Library for Java][google-api-client]. +* Interact with this API in your browser using the [APIs Explorer for the Cloud FTP API][api-explorer] + +## Installation + +### Maven + +Add the following lines to your `pom.xml` file: + +```xml + + + + com.google.apis + google-api-services-ftp + v1alpha-rev20260722-2.0.0 + + + +``` + +### Gradle + +```gradle +repositories { + mavenCentral() +} +dependencies { + implementation 'com.google.apis:google-api-services-ftp:v1alpha-rev20260722-2.0.0' +} +``` + +[javadoc]: https://googleapis.dev/java/google-api-services-ftp/latest/index.html +[google-api-client]: https://github.com/googleapis/google-api-java-client/ +[api-explorer]: https://developers.google.com/apis-explorer/#p/ftp/v1/ diff --git a/clients/google-api-services-ftp/v1alpha/2.0.0/com/google/api/services/ftp/v1alpha/CloudFTP.java b/clients/google-api-services-ftp/v1alpha/2.0.0/com/google/api/services/ftp/v1alpha/CloudFTP.java new file mode 100644 index 00000000000..21bd33f4ffc --- /dev/null +++ b/clients/google-api-services-ftp/v1alpha/2.0.0/com/google/api/services/ftp/v1alpha/CloudFTP.java @@ -0,0 +1,3452 @@ +/* + * 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.ftp.v1alpha; + +/** + * Service definition for CloudFTP (v1alpha). + * + *

+ * + *

+ * + *

+ * For more information about this service, see the + * API Documentation + *

+ * + *

+ * This service uses {@link CloudFTPRequestInitializer} to initialize global parameters via its + * {@link Builder}. + *

+ * + * @since 1.3 + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public class CloudFTP 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 Cloud FTP 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://ftp.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://ftp.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: {@code com.google.api.client.http.javanet.NetHttpTransport}
  • + * + *
+ * @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 CloudFTP(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 + */ + CloudFTP(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 CloudFTP ftp = new CloudFTP(...);}
+   *   {@code CloudFTP.Projects.List request = ftp.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 CloudFTP ftp = new CloudFTP(...);}
+     *   {@code CloudFTP.Locations.List request = ftp.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 ftp 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 CloudFTPRequest { + + private static final String REST_PATH = "v1alpha/{+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 ftp 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(CloudFTP.this, "GET", REST_PATH, null, com.google.api.services.ftp.v1alpha.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); + } + } + /** + * Lists information about the supported locations for this service. This method lists locations + * based on the resource scope provided in the ListLocationsRequest.name field: * **Global + * locations**: If `name` is empty, the method lists the public locations available to all projects. + * * **Project-specific locations**: If `name` follows the format `projects/{project}`, the method + * lists locations visible to that specific project. This includes public, private, or other + * project-specific locations enabled for the project. For gRPC and client library implementations, + * the resource name is passed as the `name` field. For direct service calls, the resource name is + * incorporated into the request path based on the specific service implementation and version. + * + * Create a request for the method "locations.list". + * + * This request holds the parameters needed by the ftp 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 CloudFTPRequest { + + private static final String REST_PATH = "v1alpha/{+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. This method lists locations + * based on the resource scope provided in the ListLocationsRequest.name field: * **Global + * locations**: If `name` is empty, the method lists the public locations available to all + * projects. * **Project-specific locations**: If `name` follows the format `projects/{project}`, + * the method lists locations visible to that specific project. This includes public, private, or + * other project-specific locations enabled for the project. For gRPC and client library + * implementations, the resource name is passed as the `name` field. For direct service calls, the + * resource name is incorporated into the request path based on the specific service + * implementation and version. + * + * Create a request for the method "locations.list". + * + * This request holds the parameters needed by the the ftp 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(CloudFTP.this, "GET", REST_PATH, null, com.google.api.services.ftp.v1alpha.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; + } + + /** + * Optional. Do not use this field unless explicitly documented otherwise. This is primarily + * for internal usage. + */ + @com.google.api.client.util.Key + private java.util.List extraLocationTypes; + + /** Optional. Do not use this field unless explicitly documented otherwise. This is primarily for + internal usage. + */ + public java.util.List getExtraLocationTypes() { + return extraLocationTypes; + } + + /** + * Optional. Do not use this field unless explicitly documented otherwise. This is primarily + * for internal usage. + */ + public List setExtraLocationTypes(java.util.List extraLocationTypes) { + this.extraLocationTypes = extraLocationTypes; + 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); + } + } + + /** + * An accessor for creating requests from the Operations collection. + * + *

The typical use is:

+ *
+       *   {@code CloudFTP ftp = new CloudFTP(...);}
+       *   {@code CloudFTP.Operations.List request = ftp.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 ftp 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.ftp.v1alpha.model.CancelOperationRequest} + * @return the request + */ + public Cancel cancel(java.lang.String name, com.google.api.services.ftp.v1alpha.model.CancelOperationRequest content) throws java.io.IOException { + Cancel result = new Cancel(name, content); + initialize(result); + return result; + } + + public class Cancel extends CloudFTPRequest { + + private static final String REST_PATH = "v1alpha/{+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 ftp 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.ftp.v1alpha.model.CancelOperationRequest} + * @since 1.13 + */ + protected Cancel(java.lang.String name, com.google.api.services.ftp.v1alpha.model.CancelOperationRequest content) { + super(CloudFTP.this, "POST", REST_PATH, content, com.google.api.services.ftp.v1alpha.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 ftp 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 CloudFTPRequest { + + private static final String REST_PATH = "v1alpha/{+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 ftp 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(CloudFTP.this, "DELETE", REST_PATH, null, com.google.api.services.ftp.v1alpha.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 ftp 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 CloudFTPRequest { + + private static final String REST_PATH = "v1alpha/{+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 ftp 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(CloudFTP.this, "GET", REST_PATH, null, com.google.api.services.ftp.v1alpha.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 ftp 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 CloudFTPRequest { + + private static final String REST_PATH = "v1alpha/{+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 ftp 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(CloudFTP.this, "GET", REST_PATH, null, com.google.api.services.ftp.v1alpha.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; + } + + /** + * When set to `true`, operations that are reachable are returned as normal, and those + * that are unreachable are returned in the ListOperationsResponse.unreachable field. This + * can only be `true` when reading across collections. For example, when `parent` is set + * to `"projects/example/locations/-"`. This field is not supported by default and will + * result in an `UNIMPLEMENTED` error if set unless explicitly documented otherwise in + * service or product specific documentation. + */ + @com.google.api.client.util.Key + private java.lang.Boolean returnPartialSuccess; + + /** When set to `true`, operations that are reachable are returned as normal, and those that are + unreachable are returned in the ListOperationsResponse.unreachable field. This can only be `true` + when reading across collections. For example, when `parent` is set to + `"projects/example/locations/-"`. This field is not supported by default and will result in an + `UNIMPLEMENTED` error if set unless explicitly documented otherwise in service or product specific + documentation. + */ + public java.lang.Boolean getReturnPartialSuccess() { + return returnPartialSuccess; + } + + /** + * When set to `true`, operations that are reachable are returned as normal, and those + * that are unreachable are returned in the ListOperationsResponse.unreachable field. This + * can only be `true` when reading across collections. For example, when `parent` is set + * to `"projects/example/locations/-"`. This field is not supported by default and will + * result in an `UNIMPLEMENTED` error if set unless explicitly documented otherwise in + * service or product specific documentation. + */ + public List setReturnPartialSuccess(java.lang.Boolean returnPartialSuccess) { + this.returnPartialSuccess = returnPartialSuccess; + return this; + } + + @Override + public List set(String parameterName, Object value) { + return (List) super.set(parameterName, value); + } + } + + } + /** + * An accessor for creating requests from the Servers collection. + * + *

The typical use is:

+ *
+       *   {@code CloudFTP ftp = new CloudFTP(...);}
+       *   {@code CloudFTP.Servers.List request = ftp.servers().list(parameters ...)}
+       * 
+ * + * @return the resource collection + */ + public Servers servers() { + return new Servers(); + } + + /** + * The "servers" collection of methods. + */ + public class Servers { + + /** + * Creates a new Server in a given project and location. + * + * Create a request for the method "servers.create". + * + * This request holds the parameters needed by the ftp 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.ftp.v1alpha.model.Server} + * @return the request + */ + public Create create(java.lang.String parent, com.google.api.services.ftp.v1alpha.model.Server content) throws java.io.IOException { + Create result = new Create(parent, content); + initialize(result); + return result; + } + + public class Create extends CloudFTPRequest { + + private static final String REST_PATH = "v1alpha/{+parent}/servers"; + + private final java.util.regex.Pattern PARENT_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+$"); + + /** + * Creates a new Server in a given project and location. + * + * Create a request for the method "servers.create". + * + * This request holds the parameters needed by the the ftp 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.ftp.v1alpha.model.Server} + * @since 1.13 + */ + protected Create(java.lang.String parent, com.google.api.services.ftp.v1alpha.model.Server content) { + super(CloudFTP.this, "POST", REST_PATH, content, com.google.api.services.ftp.v1alpha.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. Id of the requesting object If auto-generating Id server-side, remove this + * field and server_id from the method_signature of Create RPC + */ + @com.google.api.client.util.Key + private java.lang.String serverId; + + /** Required. Id of the requesting object If auto-generating Id server-side, remove this field and + server_id from the method_signature of Create RPC + */ + public java.lang.String getServerId() { + return serverId; + } + + /** + * Required. Id of the requesting object If auto-generating Id server-side, remove this + * field and server_id from the method_signature of Create RPC + */ + public Create setServerId(java.lang.String serverId) { + this.serverId = serverId; + return this; + } + + @Override + public Create set(String parameterName, Object value) { + return (Create) super.set(parameterName, value); + } + } + /** + * Deletes a single Server. + * + * Create a request for the method "servers.delete". + * + * This request holds the parameters needed by the ftp 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 CloudFTPRequest { + + private static final String REST_PATH = "v1alpha/{+name}"; + + private final java.util.regex.Pattern NAME_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/servers/[^/]+$"); + + /** + * Deletes a single Server. + * + * Create a request for the method "servers.delete". + * + * This request holds the parameters needed by the the ftp 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(CloudFTP.this, "DELETE", REST_PATH, null, com.google.api.services.ftp.v1alpha.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/[^/]+/servers/[^/]+$"); + } + } + + @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/[^/]+/servers/[^/]+$"); + } + this.name = name; + return this; + } + + @Override + public Delete set(String parameterName, Object value) { + return (Delete) super.set(parameterName, value); + } + } + /** + * Gets details of a single Server. + * + * Create a request for the method "servers.get". + * + * This request holds the parameters needed by the ftp 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 CloudFTPRequest { + + private static final String REST_PATH = "v1alpha/{+name}"; + + private final java.util.regex.Pattern NAME_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/servers/[^/]+$"); + + /** + * Gets details of a single Server. + * + * Create a request for the method "servers.get". + * + * This request holds the parameters needed by the the ftp 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(CloudFTP.this, "GET", REST_PATH, null, com.google.api.services.ftp.v1alpha.model.Server.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/[^/]+/servers/[^/]+$"); + } + } + + @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/[^/]+/servers/[^/]+$"); + } + this.name = name; + return this; + } + + /** Optional. The view of the Server resource to return. */ + @com.google.api.client.util.Key + private java.lang.String view; + + /** Optional. The view of the Server resource to return. + */ + public java.lang.String getView() { + return view; + } + + /** Optional. The view of the Server resource to return. */ + 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 Servers in a given project and location. + * + * Create a request for the method "servers.list". + * + * This request holds the parameters needed by the ftp server. After setting any optional + * parameters, call the {@link List#execute()} method to invoke the remote operation. + * + * @param parent Required. Parent value for ListServersRequest + * @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 CloudFTPRequest { + + private static final String REST_PATH = "v1alpha/{+parent}/servers"; + + private final java.util.regex.Pattern PARENT_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+$"); + + /** + * Lists Servers in a given project and location. + * + * Create a request for the method "servers.list". + * + * This request holds the parameters needed by the the ftp 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 ListServersRequest + * @since 1.13 + */ + protected List(java.lang.String parent) { + super(CloudFTP.this, "GET", REST_PATH, null, com.google.api.services.ftp.v1alpha.model.ListServersResponse.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 ListServersRequest */ + @com.google.api.client.util.Key + private java.lang.String parent; + + /** Required. Parent value for ListServersRequest + */ + public java.lang.String getParent() { + return parent; + } + + /** Required. Parent value for ListServersRequest */ + 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. Filtering results */ + @com.google.api.client.util.Key + private java.lang.String filter; + + /** Optional. Filtering results + */ + public java.lang.String getFilter() { + return filter; + } + + /** Optional. Filtering results */ + public List setFilter(java.lang.String filter) { + this.filter = filter; + return this; + } + + /** Optional. Hint for how to order the results */ + @com.google.api.client.util.Key + private java.lang.String orderBy; + + /** Optional. Hint for how to order the results + */ + public java.lang.String getOrderBy() { + return orderBy; + } + + /** Optional. Hint for how to order the results */ + public List setOrderBy(java.lang.String orderBy) { + this.orderBy = orderBy; + return this; + } + + /** + * Optional. 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; + + /** Optional. 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; + } + + /** + * Optional. 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; + } + + /** Optional. A token identifying a page of results the server should return. */ + @com.google.api.client.util.Key + private java.lang.String pageToken; + + /** Optional. A token identifying a page of results the server should return. + */ + public java.lang.String getPageToken() { + return pageToken; + } + + /** Optional. 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 view of the Server resource to return. */ + @com.google.api.client.util.Key + private java.lang.String view; + + /** Optional. The view of the Server resource to return. + */ + public java.lang.String getView() { + return view; + } + + /** Optional. The view of the Server resource to return. */ + 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 a single Server. + * + * Create a request for the method "servers.patch". + * + * This request holds the parameters needed by the ftp server. After setting any optional + * parameters, call the {@link Patch#execute()} method to invoke the remote operation. + * + * @param name Identifier. name of resource + * @param content the {@link com.google.api.services.ftp.v1alpha.model.Server} + * @return the request + */ + public Patch patch(java.lang.String name, com.google.api.services.ftp.v1alpha.model.Server content) throws java.io.IOException { + Patch result = new Patch(name, content); + initialize(result); + return result; + } + + public class Patch extends CloudFTPRequest { + + private static final String REST_PATH = "v1alpha/{+name}"; + + private final java.util.regex.Pattern NAME_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/servers/[^/]+$"); + + /** + * Updates the parameters of a single Server. + * + * Create a request for the method "servers.patch". + * + * This request holds the parameters needed by the the ftp 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 Identifier. name of resource + * @param content the {@link com.google.api.services.ftp.v1alpha.model.Server} + * @since 1.13 + */ + protected Patch(java.lang.String name, com.google.api.services.ftp.v1alpha.model.Server content) { + super(CloudFTP.this, "PATCH", REST_PATH, content, com.google.api.services.ftp.v1alpha.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/[^/]+/servers/[^/]+$"); + } + } + + @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); + } + + /** Identifier. name of resource */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** Identifier. name of resource + */ + public java.lang.String getName() { + return name; + } + + /** Identifier. name of resource */ + 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/[^/]+/servers/[^/]+$"); + } + 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; + } + + /** + * Optional. Field mask is used to specify the fields to be overwritten in the Server + * resource by the update. The fields 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. If + * the user does not provide a mask then all fields present in the request will be + * overwritten. + */ + @com.google.api.client.util.Key + private String updateMask; + + /** Optional. Field mask is used to specify the fields to be overwritten in the Server resource by the + update. The fields 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. If the user does not provide a mask then all + fields present in the request will be overwritten. + */ + public String getUpdateMask() { + return updateMask; + } + + /** + * Optional. Field mask is used to specify the fields to be overwritten in the Server + * resource by the update. The fields 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. If + * the user does not provide a mask then all fields present in the request will be + * overwritten. + */ + public Patch setUpdateMask(String updateMask) { + this.updateMask = updateMask; + return this; + } + + @Override + public Patch set(String parameterName, Object value) { + return (Patch) super.set(parameterName, value); + } + } + /** + * Starts a stopping/stopped Server. + * + * Create a request for the method "servers.start". + * + * This request holds the parameters needed by the ftp server. After setting any optional + * parameters, call the {@link Start#execute()} method to invoke the remote operation. + * + * @param name Required. Name of the resource Format: `projects/{project}/locations/{location}/servers/{server}` + * @param content the {@link com.google.api.services.ftp.v1alpha.model.StartServerRequest} + * @return the request + */ + public Start start(java.lang.String name, com.google.api.services.ftp.v1alpha.model.StartServerRequest content) throws java.io.IOException { + Start result = new Start(name, content); + initialize(result); + return result; + } + + public class Start extends CloudFTPRequest { + + private static final String REST_PATH = "v1alpha/{+name}:start"; + + private final java.util.regex.Pattern NAME_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/servers/[^/]+$"); + + /** + * Starts a stopping/stopped Server. + * + * Create a request for the method "servers.start". + * + * This request holds the parameters needed by the the ftp server. After setting any optional + * parameters, call the {@link Start#execute()} method to invoke the remote operation.

{@link + * Start#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 Format: `projects/{project}/locations/{location}/servers/{server}` + * @param content the {@link com.google.api.services.ftp.v1alpha.model.StartServerRequest} + * @since 1.13 + */ + protected Start(java.lang.String name, com.google.api.services.ftp.v1alpha.model.StartServerRequest content) { + super(CloudFTP.this, "POST", REST_PATH, content, com.google.api.services.ftp.v1alpha.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/[^/]+/servers/[^/]+$"); + } + } + + @Override + public Start set$Xgafv(java.lang.String $Xgafv) { + return (Start) super.set$Xgafv($Xgafv); + } + + @Override + public Start setAccessToken(java.lang.String accessToken) { + return (Start) super.setAccessToken(accessToken); + } + + @Override + public Start setAlt(java.lang.String alt) { + return (Start) super.setAlt(alt); + } + + @Override + public Start setCallback(java.lang.String callback) { + return (Start) super.setCallback(callback); + } + + @Override + public Start setFields(java.lang.String fields) { + return (Start) super.setFields(fields); + } + + @Override + public Start setKey(java.lang.String key) { + return (Start) super.setKey(key); + } + + @Override + public Start setOauthToken(java.lang.String oauthToken) { + return (Start) super.setOauthToken(oauthToken); + } + + @Override + public Start setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Start) super.setPrettyPrint(prettyPrint); + } + + @Override + public Start setQuotaUser(java.lang.String quotaUser) { + return (Start) super.setQuotaUser(quotaUser); + } + + @Override + public Start setUploadType(java.lang.String uploadType) { + return (Start) super.setUploadType(uploadType); + } + + @Override + public Start setUploadProtocol(java.lang.String uploadProtocol) { + return (Start) super.setUploadProtocol(uploadProtocol); + } + + /** + * Required. Name of the resource Format: + * `projects/{project}/locations/{location}/servers/{server}` + */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** Required. Name of the resource Format: `projects/{project}/locations/{location}/servers/{server}` + */ + public java.lang.String getName() { + return name; + } + + /** + * Required. Name of the resource Format: + * `projects/{project}/locations/{location}/servers/{server}` + */ + public Start 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/[^/]+/servers/[^/]+$"); + } + this.name = name; + return this; + } + + @Override + public Start set(String parameterName, Object value) { + return (Start) super.set(parameterName, value); + } + } + /** + * Stops an active Server. + * + * Create a request for the method "servers.stop". + * + * This request holds the parameters needed by the ftp server. After setting any optional + * parameters, call the {@link Stop#execute()} method to invoke the remote operation. + * + * @param name Required. Name of the resource. Format: `projects/{project}/locations/{location}/servers/{server}` + * @param content the {@link com.google.api.services.ftp.v1alpha.model.StopServerRequest} + * @return the request + */ + public Stop stop(java.lang.String name, com.google.api.services.ftp.v1alpha.model.StopServerRequest content) throws java.io.IOException { + Stop result = new Stop(name, content); + initialize(result); + return result; + } + + public class Stop extends CloudFTPRequest { + + private static final String REST_PATH = "v1alpha/{+name}:stop"; + + private final java.util.regex.Pattern NAME_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/servers/[^/]+$"); + + /** + * Stops an active Server. + * + * Create a request for the method "servers.stop". + * + * This request holds the parameters needed by the the ftp server. After setting any optional + * parameters, call the {@link Stop#execute()} method to invoke the remote operation.

{@link + * Stop#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. Format: `projects/{project}/locations/{location}/servers/{server}` + * @param content the {@link com.google.api.services.ftp.v1alpha.model.StopServerRequest} + * @since 1.13 + */ + protected Stop(java.lang.String name, com.google.api.services.ftp.v1alpha.model.StopServerRequest content) { + super(CloudFTP.this, "POST", REST_PATH, content, com.google.api.services.ftp.v1alpha.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/[^/]+/servers/[^/]+$"); + } + } + + @Override + public Stop set$Xgafv(java.lang.String $Xgafv) { + return (Stop) super.set$Xgafv($Xgafv); + } + + @Override + public Stop setAccessToken(java.lang.String accessToken) { + return (Stop) super.setAccessToken(accessToken); + } + + @Override + public Stop setAlt(java.lang.String alt) { + return (Stop) super.setAlt(alt); + } + + @Override + public Stop setCallback(java.lang.String callback) { + return (Stop) super.setCallback(callback); + } + + @Override + public Stop setFields(java.lang.String fields) { + return (Stop) super.setFields(fields); + } + + @Override + public Stop setKey(java.lang.String key) { + return (Stop) super.setKey(key); + } + + @Override + public Stop setOauthToken(java.lang.String oauthToken) { + return (Stop) super.setOauthToken(oauthToken); + } + + @Override + public Stop setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Stop) super.setPrettyPrint(prettyPrint); + } + + @Override + public Stop setQuotaUser(java.lang.String quotaUser) { + return (Stop) super.setQuotaUser(quotaUser); + } + + @Override + public Stop setUploadType(java.lang.String uploadType) { + return (Stop) super.setUploadType(uploadType); + } + + @Override + public Stop setUploadProtocol(java.lang.String uploadProtocol) { + return (Stop) super.setUploadProtocol(uploadProtocol); + } + + /** + * Required. Name of the resource. Format: + * `projects/{project}/locations/{location}/servers/{server}` + */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** Required. Name of the resource. Format: `projects/{project}/locations/{location}/servers/{server}` + */ + public java.lang.String getName() { + return name; + } + + /** + * Required. Name of the resource. Format: + * `projects/{project}/locations/{location}/servers/{server}` + */ + public Stop 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/[^/]+/servers/[^/]+$"); + } + this.name = name; + return this; + } + + @Override + public Stop set(String parameterName, Object value) { + return (Stop) super.set(parameterName, value); + } + } + + /** + * An accessor for creating requests from the Users collection. + * + *

The typical use is:

+ *
+         *   {@code CloudFTP ftp = new CloudFTP(...);}
+         *   {@code CloudFTP.Users.List request = ftp.users().list(parameters ...)}
+         * 
+ * + * @return the resource collection + */ + public Users users() { + return new Users(); + } + + /** + * The "users" collection of methods. + */ + public class Users { + + /** + * Creates a new User in a given project and location and Server. + * + * Create a request for the method "users.create". + * + * This request holds the parameters needed by the ftp 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.ftp.v1alpha.model.User} + * @return the request + */ + public Create create(java.lang.String parent, com.google.api.services.ftp.v1alpha.model.User content) throws java.io.IOException { + Create result = new Create(parent, content); + initialize(result); + return result; + } + + public class Create extends CloudFTPRequest { + + private static final String REST_PATH = "v1alpha/{+parent}/users"; + + private final java.util.regex.Pattern PARENT_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/servers/[^/]+$"); + + /** + * Creates a new User in a given project and location and Server. + * + * Create a request for the method "users.create". + * + * This request holds the parameters needed by the the ftp 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.ftp.v1alpha.model.User} + * @since 1.13 + */ + protected Create(java.lang.String parent, com.google.api.services.ftp.v1alpha.model.User content) { + super(CloudFTP.this, "POST", REST_PATH, content, com.google.api.services.ftp.v1alpha.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/[^/]+/servers/[^/]+$"); + } + } + + @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/[^/]+/servers/[^/]+$"); + } + 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. Id of the requesting object If auto-generating Id server-side, remove this + * field and server_id from the method_signature of Create RPC + */ + @com.google.api.client.util.Key + private java.lang.String userId; + + /** Required. Id of the requesting object If auto-generating Id server-side, remove this field and + server_id from the method_signature of Create RPC + */ + public java.lang.String getUserId() { + return userId; + } + + /** + * Required. Id of the requesting object If auto-generating Id server-side, remove this + * field and server_id from the method_signature of Create RPC + */ + public Create setUserId(java.lang.String userId) { + this.userId = userId; + return this; + } + + @Override + public Create set(String parameterName, Object value) { + return (Create) super.set(parameterName, value); + } + } + /** + * Deletes a single User. + * + * Create a request for the method "users.delete". + * + * This request holds the parameters needed by the ftp 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 CloudFTPRequest { + + private static final String REST_PATH = "v1alpha/{+name}"; + + private final java.util.regex.Pattern NAME_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/servers/[^/]+/users/[^/]+$"); + + /** + * Deletes a single User. + * + * Create a request for the method "users.delete". + * + * This request holds the parameters needed by the the ftp 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(CloudFTP.this, "DELETE", REST_PATH, null, com.google.api.services.ftp.v1alpha.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/[^/]+/servers/[^/]+/users/[^/]+$"); + } + } + + @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/[^/]+/servers/[^/]+/users/[^/]+$"); + } + this.name = name; + return this; + } + + /** Optional. If set to true, the request will force the deletion of the User. */ + @com.google.api.client.util.Key + private java.lang.Boolean force; + + /** Optional. If set to true, the request will force the deletion of the User. + */ + public java.lang.Boolean getForce() { + return force; + } + + /** Optional. If set to true, the request will force the deletion of the User. */ + public Delete setForce(java.lang.Boolean force) { + this.force = force; + return this; + } + + @Override + public Delete set(String parameterName, Object value) { + return (Delete) super.set(parameterName, value); + } + } + /** + * Gets details of a single User. + * + * Create a request for the method "users.get". + * + * This request holds the parameters needed by the ftp 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 CloudFTPRequest { + + private static final String REST_PATH = "v1alpha/{+name}"; + + private final java.util.regex.Pattern NAME_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/servers/[^/]+/users/[^/]+$"); + + /** + * Gets details of a single User. + * + * Create a request for the method "users.get". + * + * This request holds the parameters needed by the the ftp 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(CloudFTP.this, "GET", REST_PATH, null, com.google.api.services.ftp.v1alpha.model.User.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/[^/]+/servers/[^/]+/users/[^/]+$"); + } + } + + @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/[^/]+/servers/[^/]+/users/[^/]+$"); + } + this.name = name; + return this; + } + + /** Optional. The view of the User resource to return. */ + @com.google.api.client.util.Key + private java.lang.String view; + + /** Optional. The view of the User resource to return. + */ + public java.lang.String getView() { + return view; + } + + /** Optional. The view of the User resource to return. */ + 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 Users in a given project and location. + * + * Create a request for the method "users.list". + * + * This request holds the parameters needed by the ftp server. After setting any optional + * parameters, call the {@link List#execute()} method to invoke the remote operation. + * + * @param parent Required. Parent value for ListUsersRequest + * @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 CloudFTPRequest { + + private static final String REST_PATH = "v1alpha/{+parent}/users"; + + private final java.util.regex.Pattern PARENT_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/servers/[^/]+$"); + + /** + * Lists Users in a given project and location. + * + * Create a request for the method "users.list". + * + * This request holds the parameters needed by the the ftp 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 ListUsersRequest + * @since 1.13 + */ + protected List(java.lang.String parent) { + super(CloudFTP.this, "GET", REST_PATH, null, com.google.api.services.ftp.v1alpha.model.ListUsersResponse.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/[^/]+/servers/[^/]+$"); + } + } + + @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 ListUsersRequest */ + @com.google.api.client.util.Key + private java.lang.String parent; + + /** Required. Parent value for ListUsersRequest + */ + public java.lang.String getParent() { + return parent; + } + + /** Required. Parent value for ListUsersRequest */ + 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/[^/]+/servers/[^/]+$"); + } + this.parent = parent; + return this; + } + + /** Optional. Filtering results */ + @com.google.api.client.util.Key + private java.lang.String filter; + + /** Optional. Filtering results + */ + public java.lang.String getFilter() { + return filter; + } + + /** Optional. Filtering results */ + public List setFilter(java.lang.String filter) { + this.filter = filter; + return this; + } + + /** Optional. Hint for how to order the results */ + @com.google.api.client.util.Key + private java.lang.String orderBy; + + /** Optional. Hint for how to order the results + */ + public java.lang.String getOrderBy() { + return orderBy; + } + + /** Optional. Hint for how to order the results */ + public List setOrderBy(java.lang.String orderBy) { + this.orderBy = orderBy; + return this; + } + + /** + * Optional. Requested page size. User may return fewer items than requested. The + * maximum value is 1000; The default value is 50 if the field is omitted (or set to 0). + */ + @com.google.api.client.util.Key + private java.lang.Integer pageSize; + + /** Optional. Requested page size. User may return fewer items than requested. The maximum value is + 1000; The default value is 50 if the field is omitted (or set to 0). + */ + public java.lang.Integer getPageSize() { + return pageSize; + } + + /** + * Optional. Requested page size. User may return fewer items than requested. The + * maximum value is 1000; The default value is 50 if the field is omitted (or set to 0). + */ + public List setPageSize(java.lang.Integer pageSize) { + this.pageSize = pageSize; + return this; + } + + /** Optional. A token identifying a page of results the user should return. */ + @com.google.api.client.util.Key + private java.lang.String pageToken; + + /** Optional. A token identifying a page of results the user should return. + */ + public java.lang.String getPageToken() { + return pageToken; + } + + /** Optional. A token identifying a page of results the user should return. */ + public List setPageToken(java.lang.String pageToken) { + this.pageToken = pageToken; + return this; + } + + /** Optional. The view of the User resource to return. */ + @com.google.api.client.util.Key + private java.lang.String view; + + /** Optional. The view of the User resource to return. + */ + public java.lang.String getView() { + return view; + } + + /** Optional. The view of the User resource to return. */ + 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 a single User. + * + * Create a request for the method "users.patch". + * + * This request holds the parameters needed by the ftp server. After setting any optional + * parameters, call the {@link Patch#execute()} method to invoke the remote operation. + * + * @param name Identifier. User-friendly name via which User will be identified. + * projects/{project}/locations/{location}/servers/{server}/users/{user} + * @param content the {@link com.google.api.services.ftp.v1alpha.model.User} + * @return the request + */ + public Patch patch(java.lang.String name, com.google.api.services.ftp.v1alpha.model.User content) throws java.io.IOException { + Patch result = new Patch(name, content); + initialize(result); + return result; + } + + public class Patch extends CloudFTPRequest { + + private static final String REST_PATH = "v1alpha/{+name}"; + + private final java.util.regex.Pattern NAME_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/servers/[^/]+/users/[^/]+$"); + + /** + * Updates the parameters of a single User. + * + * Create a request for the method "users.patch". + * + * This request holds the parameters needed by the the ftp 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 Identifier. User-friendly name via which User will be identified. + * projects/{project}/locations/{location}/servers/{server}/users/{user} + * @param content the {@link com.google.api.services.ftp.v1alpha.model.User} + * @since 1.13 + */ + protected Patch(java.lang.String name, com.google.api.services.ftp.v1alpha.model.User content) { + super(CloudFTP.this, "PATCH", REST_PATH, content, com.google.api.services.ftp.v1alpha.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/[^/]+/servers/[^/]+/users/[^/]+$"); + } + } + + @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); + } + + /** + * Identifier. User-friendly name via which User will be identified. + * projects/{project}/locations/{location}/servers/{server}/users/{user} + */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** Identifier. User-friendly name via which User will be identified. + projects/{project}/locations/{location}/servers/{server}/users/{user} + */ + public java.lang.String getName() { + return name; + } + + /** + * Identifier. User-friendly name via which User will be identified. + * projects/{project}/locations/{location}/servers/{server}/users/{user} + */ + 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/[^/]+/servers/[^/]+/users/[^/]+$"); + } + this.name = name; + return this; + } + + /** + * Optional. Field mask is used to specify the fields to be overwritten in the User + * resource by the update. The fields 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. If + * the user does not provide a mask then all fields present in the request will be + * overwritten. + */ + @com.google.api.client.util.Key + private String updateMask; + + /** Optional. Field mask is used to specify the fields to be overwritten in the User resource by the + update. The fields 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. If the user does not provide a mask then all + fields present in the request will be overwritten. + */ + public String getUpdateMask() { + return updateMask; + } + + /** + * Optional. Field mask is used to specify the fields to be overwritten in the User + * resource by the update. The fields 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. If + * the user does not provide a mask then all fields present in the request will be + * overwritten. + */ + public Patch setUpdateMask(String updateMask) { + this.updateMask = updateMask; + return this; + } + + @Override + public Patch set(String parameterName, Object value) { + return (Patch) super.set(parameterName, value); + } + } + + } + } + } + } + + /** + * Builder for {@link CloudFTP}. + * + *

+ * 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: {@code com.google.api.client.http.javanet.NetHttpTransport}
  • + *
+ * @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 CloudFTP}. */ + @Override + public CloudFTP build() { + return new CloudFTP(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 CloudFTPRequestInitializer}. + * + * @since 1.12 + */ + public Builder setCloudFTPRequestInitializer( + CloudFTPRequestInitializer cloudftpRequestInitializer) { + return (Builder) super.setGoogleClientRequestInitializer(cloudftpRequestInitializer); + } + + @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); + } + } +} diff --git a/clients/google-api-services-ftp/v1alpha/2.0.0/com/google/api/services/ftp/v1alpha/CloudFTPRequest.java b/clients/google-api-services-ftp/v1alpha/2.0.0/com/google/api/services/ftp/v1alpha/CloudFTPRequest.java new file mode 100644 index 00000000000..d5bb72f58d6 --- /dev/null +++ b/clients/google-api-services-ftp/v1alpha/2.0.0/com/google/api/services/ftp/v1alpha/CloudFTPRequest.java @@ -0,0 +1,267 @@ +/* + * 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.ftp.v1alpha; + +/** + * CloudFTP request. + * + * @since 1.3 + */ +@SuppressWarnings("javadoc") +public abstract class CloudFTPRequest extends com.google.api.client.googleapis.services.json.AbstractGoogleJsonClientRequest { + + /** + * @param client Google client + * @param method HTTP Method + * @param uriTemplate URI template for the path relative to the base URL. If it starts with a "/" + * the base path from the base URL will be stripped out. The URI template can also be a + * full URL. URI template expansion is done using + * {@link com.google.api.client.http.UriTemplate#expand(String, String, Object, boolean)} + * @param content A POJO that can be serialized into JSON or {@code null} for none + * @param responseClass response class to parse into + */ + public CloudFTPRequest( + CloudFTP client, String method, String uriTemplate, Object content, Class responseClass) { + super( + client, + method, + uriTemplate, + content, + responseClass); + } + + /** V1 error format. */ + @com.google.api.client.util.Key("$.xgafv") + private java.lang.String $Xgafv; + + /** + * V1 error format. + */ + public java.lang.String get$Xgafv() { + return $Xgafv; + } + + /** V1 error format. */ + public CloudFTPRequest set$Xgafv(java.lang.String $Xgafv) { + this.$Xgafv = $Xgafv; + return this; + } + + /** OAuth access token. */ + @com.google.api.client.util.Key("access_token") + private java.lang.String accessToken; + + /** + * OAuth access token. + */ + public java.lang.String getAccessToken() { + return accessToken; + } + + /** OAuth access token. */ + public CloudFTPRequest setAccessToken(java.lang.String accessToken) { + this.accessToken = accessToken; + return this; + } + + /** Data format for response. */ + @com.google.api.client.util.Key + private java.lang.String alt; + + /** + * Data format for response. [default: json] + */ + public java.lang.String getAlt() { + return alt; + } + + /** Data format for response. */ + public CloudFTPRequest setAlt(java.lang.String alt) { + this.alt = alt; + return this; + } + + /** JSONP */ + @com.google.api.client.util.Key + private java.lang.String callback; + + /** + * JSONP + */ + public java.lang.String getCallback() { + return callback; + } + + /** JSONP */ + public CloudFTPRequest setCallback(java.lang.String callback) { + this.callback = callback; + return this; + } + + /** Selector specifying which fields to include in a partial response. */ + @com.google.api.client.util.Key + private java.lang.String fields; + + /** + * Selector specifying which fields to include in a partial response. + */ + public java.lang.String getFields() { + return fields; + } + + /** Selector specifying which fields to include in a partial response. */ + public CloudFTPRequest setFields(java.lang.String fields) { + this.fields = fields; + return this; + } + + /** + * API key. Your API key identifies your project and provides you with API access, quota, and + * reports. Required unless you provide an OAuth 2.0 token. + */ + @com.google.api.client.util.Key + private java.lang.String key; + + /** + * API key. Your API key identifies your project and provides you with API access, quota, and + * reports. Required unless you provide an OAuth 2.0 token. + */ + public java.lang.String getKey() { + return key; + } + + /** + * API key. Your API key identifies your project and provides you with API access, quota, and + * reports. Required unless you provide an OAuth 2.0 token. + */ + public CloudFTPRequest setKey(java.lang.String key) { + this.key = key; + return this; + } + + /** OAuth 2.0 token for the current user. */ + @com.google.api.client.util.Key("oauth_token") + private java.lang.String oauthToken; + + /** + * OAuth 2.0 token for the current user. + */ + public java.lang.String getOauthToken() { + return oauthToken; + } + + /** OAuth 2.0 token for the current user. */ + public CloudFTPRequest setOauthToken(java.lang.String oauthToken) { + this.oauthToken = oauthToken; + return this; + } + + /** Returns response with indentations and line breaks. */ + @com.google.api.client.util.Key + private java.lang.Boolean prettyPrint; + + /** + * Returns response with indentations and line breaks. [default: true] + */ + public java.lang.Boolean getPrettyPrint() { + return prettyPrint; + } + + /** Returns response with indentations and line breaks. */ + public CloudFTPRequest setPrettyPrint(java.lang.Boolean prettyPrint) { + this.prettyPrint = prettyPrint; + return this; + } + + /** + * Available to use for quota purposes for server-side applications. Can be any arbitrary string + * assigned to a user, but should not exceed 40 characters. + */ + @com.google.api.client.util.Key + private java.lang.String quotaUser; + + /** + * Available to use for quota purposes for server-side applications. Can be any arbitrary string + * assigned to a user, but should not exceed 40 characters. + */ + public java.lang.String getQuotaUser() { + return quotaUser; + } + + /** + * Available to use for quota purposes for server-side applications. Can be any arbitrary string + * assigned to a user, but should not exceed 40 characters. + */ + public CloudFTPRequest setQuotaUser(java.lang.String quotaUser) { + this.quotaUser = quotaUser; + return this; + } + + /** Legacy upload protocol for media (e.g. "media", "multipart"). */ + @com.google.api.client.util.Key + private java.lang.String uploadType; + + /** + * Legacy upload protocol for media (e.g. "media", "multipart"). + */ + public java.lang.String getUploadType() { + return uploadType; + } + + /** Legacy upload protocol for media (e.g. "media", "multipart"). */ + public CloudFTPRequest setUploadType(java.lang.String uploadType) { + this.uploadType = uploadType; + return this; + } + + /** Upload protocol for media (e.g. "raw", "multipart"). */ + @com.google.api.client.util.Key("upload_protocol") + private java.lang.String uploadProtocol; + + /** + * Upload protocol for media (e.g. "raw", "multipart"). + */ + public java.lang.String getUploadProtocol() { + return uploadProtocol; + } + + /** Upload protocol for media (e.g. "raw", "multipart"). */ + public CloudFTPRequest setUploadProtocol(java.lang.String uploadProtocol) { + this.uploadProtocol = uploadProtocol; + return this; + } + + @Override + public final CloudFTP getAbstractGoogleClient() { + return (CloudFTP) super.getAbstractGoogleClient(); + } + + @Override + public CloudFTPRequest setDisableGZipContent(boolean disableGZipContent) { + return (CloudFTPRequest) super.setDisableGZipContent(disableGZipContent); + } + + @Override + public CloudFTPRequest setRequestHeaders(com.google.api.client.http.HttpHeaders headers) { + return (CloudFTPRequest) super.setRequestHeaders(headers); + } + + @Override + public CloudFTPRequest set(String parameterName, Object value) { + return (CloudFTPRequest) super.set(parameterName, value); + } +} diff --git a/clients/google-api-services-ftp/v1alpha/2.0.0/com/google/api/services/ftp/v1alpha/CloudFTPRequestInitializer.java b/clients/google-api-services-ftp/v1alpha/2.0.0/com/google/api/services/ftp/v1alpha/CloudFTPRequestInitializer.java new file mode 100644 index 00000000000..7c7938f7411 --- /dev/null +++ b/clients/google-api-services-ftp/v1alpha/2.0.0/com/google/api/services/ftp/v1alpha/CloudFTPRequestInitializer.java @@ -0,0 +1,119 @@ +/* + * 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.ftp.v1alpha; + +/** + * CloudFTP request initializer for setting properties like key and userIp. + * + *

+ * The simplest usage is to use it to set the key parameter: + *

+ * + *
+  public static final GoogleClientRequestInitializer KEY_INITIALIZER =
+      new CloudFTPRequestInitializer(KEY);
+ * 
+ * + *

+ * There is also a constructor to set both the key and userIp parameters: + *

+ * + *
+  public static final GoogleClientRequestInitializer INITIALIZER =
+      new CloudFTPRequestInitializer(KEY, USER_IP);
+ * 
+ * + *

+ * If you want to implement custom logic, extend it like this: + *

+ * + *
+  public static class MyRequestInitializer extends CloudFTPRequestInitializer {
+
+    {@literal @}Override
+    public void initializeCloudFTPRequest(CloudFTPRequest{@literal <}?{@literal >} request)
+        throws IOException {
+      // custom logic
+    }
+  }
+ * 
+ * + *

+ * Finally, to set the key and userIp parameters and insert custom logic, extend it like this: + *

+ * + *
+  public static class MyRequestInitializer2 extends CloudFTPRequestInitializer {
+
+    public MyKeyRequestInitializer() {
+      super(KEY, USER_IP);
+    }
+
+    {@literal @}Override
+    public void initializeCloudFTPRequest(CloudFTPRequest{@literal <}?{@literal >} request)
+        throws IOException {
+      // custom logic
+    }
+  }
+ * 
+ * + *

+ * Subclasses should be thread-safe. + *

+ * + * @since 1.12 + */ +public class CloudFTPRequestInitializer extends com.google.api.client.googleapis.services.json.CommonGoogleJsonClientRequestInitializer { + + public CloudFTPRequestInitializer() { + super(); + } + + /** + * @param key API key or {@code null} to leave it unchanged + */ + public CloudFTPRequestInitializer(String key) { + super(key); + } + + /** + * @param key API key or {@code null} to leave it unchanged + * @param userIp user IP or {@code null} to leave it unchanged + */ + public CloudFTPRequestInitializer(String key, String userIp) { + super(key, userIp); + } + + @Override + public final void initializeJsonRequest(com.google.api.client.googleapis.services.json.AbstractGoogleJsonClientRequest request) throws java.io.IOException { + super.initializeJsonRequest(request); + initializeCloudFTPRequest((CloudFTPRequest) request); + } + + /** + * Initializes CloudFTP request. + * + *

+ * Default implementation does nothing. Called from + * {@link #initializeJsonRequest(com.google.api.client.googleapis.services.json.AbstractGoogleJsonClientRequest)}. + *

+ * + * @throws java.io.IOException I/O exception + */ + protected void initializeCloudFTPRequest(CloudFTPRequest request) throws java.io.IOException { + } +} diff --git a/clients/google-api-services-ftp/v1alpha/2.0.0/com/google/api/services/ftp/v1alpha/CloudFTPScopes.java b/clients/google-api-services-ftp/v1alpha/2.0.0/com/google/api/services/ftp/v1alpha/CloudFTPScopes.java new file mode 100644 index 00000000000..de673512350 --- /dev/null +++ b/clients/google-api-services-ftp/v1alpha/2.0.0/com/google/api/services/ftp/v1alpha/CloudFTPScopes.java @@ -0,0 +1,42 @@ +/* + * 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.ftp.v1alpha; + +/** + * Available OAuth 2.0 scopes for use with the Cloud FTP API. + * + * @since 1.4 + */ +public class CloudFTPScopes { + + /** See, edit, configure, and delete your Google Cloud data and see the email address for your Google Account.. */ + public static final String CLOUD_PLATFORM = "https://www.googleapis.com/auth/cloud-platform"; + + /** + * Returns an unmodifiable set that contains all scopes declared by this class. + * + * @since 1.16 + */ + public static java.util.Set all() { + java.util.Set set = new java.util.HashSet(); + set.add(CLOUD_PLATFORM); + return java.util.Collections.unmodifiableSet(set); + } + + private CloudFTPScopes() { + } +} diff --git a/clients/google-api-services-ftp/v1alpha/2.0.0/com/google/api/services/ftp/v1alpha/model/AllowedConsumer.java b/clients/google-api-services-ftp/v1alpha/2.0.0/com/google/api/services/ftp/v1alpha/model/AllowedConsumer.java new file mode 100644 index 00000000000..c709f753ed2 --- /dev/null +++ b/clients/google-api-services-ftp/v1alpha/2.0.0/com/google/api/services/ftp/v1alpha/model/AllowedConsumer.java @@ -0,0 +1,90 @@ +/* + * 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.ftp.v1alpha.model; + +/** + * A consumer project or network that is permitted to connect to the server via PSC. + * + *

This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Cloud FTP API. For a detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class AllowedConsumer extends com.google.api.client.json.GenericJson { + + /** + * Required. The connection limit for the consumer. Value must be greater than 0. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key @com.google.api.client.json.JsonString + private java.lang.Long connectionLimit; + + /** + * The project ID or number of the consumer project. Must be in the format: `projects/{project}`. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String project; + + /** + * Required. The connection limit for the consumer. Value must be greater than 0. + * @return value or {@code null} for none + */ + public java.lang.Long getConnectionLimit() { + return connectionLimit; + } + + /** + * Required. The connection limit for the consumer. Value must be greater than 0. + * @param connectionLimit connectionLimit or {@code null} for none + */ + public AllowedConsumer setConnectionLimit(java.lang.Long connectionLimit) { + this.connectionLimit = connectionLimit; + return this; + } + + /** + * The project ID or number of the consumer project. Must be in the format: `projects/{project}`. + * @return value or {@code null} for none + */ + public java.lang.String getProject() { + return project; + } + + /** + * The project ID or number of the consumer project. Must be in the format: `projects/{project}`. + * @param project project or {@code null} for none + */ + public AllowedConsumer setProject(java.lang.String project) { + this.project = project; + return this; + } + + @Override + public AllowedConsumer set(String fieldName, Object value) { + return (AllowedConsumer) super.set(fieldName, value); + } + + @Override + public AllowedConsumer clone() { + return (AllowedConsumer) super.clone(); + } + +} diff --git a/clients/google-api-services-ftp/v1alpha/2.0.0/com/google/api/services/ftp/v1alpha/model/CancelOperationRequest.java b/clients/google-api-services-ftp/v1alpha/2.0.0/com/google/api/services/ftp/v1alpha/model/CancelOperationRequest.java new file mode 100644 index 00000000000..58f26037642 --- /dev/null +++ b/clients/google-api-services-ftp/v1alpha/2.0.0/com/google/api/services/ftp/v1alpha/model/CancelOperationRequest.java @@ -0,0 +1,42 @@ +/* + * 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.ftp.v1alpha.model; + +/** + * The request message for Operations.CancelOperation. + * + *

This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Cloud FTP API. For a detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class CancelOperationRequest extends com.google.api.client.json.GenericJson { + + @Override + public CancelOperationRequest set(String fieldName, Object value) { + return (CancelOperationRequest) super.set(fieldName, value); + } + + @Override + public CancelOperationRequest clone() { + return (CancelOperationRequest) super.clone(); + } + +} diff --git a/clients/google-api-services-ftp/v1alpha/2.0.0/com/google/api/services/ftp/v1alpha/model/DeniedConsumer.java b/clients/google-api-services-ftp/v1alpha/2.0.0/com/google/api/services/ftp/v1alpha/model/DeniedConsumer.java new file mode 100644 index 00000000000..81c7729ca91 --- /dev/null +++ b/clients/google-api-services-ftp/v1alpha/2.0.0/com/google/api/services/ftp/v1alpha/model/DeniedConsumer.java @@ -0,0 +1,66 @@ +/* + * 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.ftp.v1alpha.model; + +/** + * A consumer project or network that is denied to connect to the server via PSC. + * + *

This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Cloud FTP API. For a detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class DeniedConsumer extends com.google.api.client.json.GenericJson { + + /** + * The project ID or number of the consumer project. Must be in the format: `projects/{project}`. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String project; + + /** + * The project ID or number of the consumer project. Must be in the format: `projects/{project}`. + * @return value or {@code null} for none + */ + public java.lang.String getProject() { + return project; + } + + /** + * The project ID or number of the consumer project. Must be in the format: `projects/{project}`. + * @param project project or {@code null} for none + */ + public DeniedConsumer setProject(java.lang.String project) { + this.project = project; + return this; + } + + @Override + public DeniedConsumer set(String fieldName, Object value) { + return (DeniedConsumer) super.set(fieldName, value); + } + + @Override + public DeniedConsumer clone() { + return (DeniedConsumer) super.clone(); + } + +} diff --git a/clients/google-api-services-ftp/v1alpha/2.0.0/com/google/api/services/ftp/v1alpha/model/Empty.java b/clients/google-api-services-ftp/v1alpha/2.0.0/com/google/api/services/ftp/v1alpha/model/Empty.java new file mode 100644 index 00000000000..79c129139eb --- /dev/null +++ b/clients/google-api-services-ftp/v1alpha/2.0.0/com/google/api/services/ftp/v1alpha/model/Empty.java @@ -0,0 +1,44 @@ +/* + * 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.ftp.v1alpha.model; + +/** + * A generic empty message that you can re-use to avoid defining duplicated empty messages in your + * APIs. A typical example is to use it as the request or the response type of an API method. For + * instance: service Foo { rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); } + * + *

This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Cloud FTP API. For a detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class Empty extends com.google.api.client.json.GenericJson { + + @Override + public Empty set(String fieldName, Object value) { + return (Empty) super.set(fieldName, value); + } + + @Override + public Empty clone() { + return (Empty) super.clone(); + } + +} diff --git a/clients/google-api-services-ftp/v1alpha/2.0.0/com/google/api/services/ftp/v1alpha/model/ExternalServerConfig.java b/clients/google-api-services-ftp/v1alpha/2.0.0/com/google/api/services/ftp/v1alpha/model/ExternalServerConfig.java new file mode 100644 index 00000000000..d0b672e7b6b --- /dev/null +++ b/clients/google-api-services-ftp/v1alpha/2.0.0/com/google/api/services/ftp/v1alpha/model/ExternalServerConfig.java @@ -0,0 +1,108 @@ +/* + * 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.ftp.v1alpha.model; + +/** + * Configuration for external server. + * + *

This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Cloud FTP API. For a detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class ExternalServerConfig extends com.google.api.client.json.GenericJson { + + /** + * Optional. List of CIDR blocks that are allowed to access the Server. A CIDR range consists of + * an IP Address and a prefix length to construct the subnet mask. By default, the prefix length + * is 32 (i.e. matches a single IP address). For now, only IPV4 addresses are supported. Examples: + * "203.0.113.0/24" - matches with the IP addresses in the range 203.0.113.0 - 203.0.113.255. + * "0.0.0.0/0" - matches against any IP address. This field must contain at least one entry if the + * access type is EXTERNAL. The number of allowed CIDR blocks cannot exceed 500. Example: + * 192.168.0.0/16 + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List allowedCidrBlocks; + + /** + * Output only. IP address of the LB via which clients will connect. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String ipAddress; + + /** + * Optional. List of CIDR blocks that are allowed to access the Server. A CIDR range consists of + * an IP Address and a prefix length to construct the subnet mask. By default, the prefix length + * is 32 (i.e. matches a single IP address). For now, only IPV4 addresses are supported. Examples: + * "203.0.113.0/24" - matches with the IP addresses in the range 203.0.113.0 - 203.0.113.255. + * "0.0.0.0/0" - matches against any IP address. This field must contain at least one entry if the + * access type is EXTERNAL. The number of allowed CIDR blocks cannot exceed 500. Example: + * 192.168.0.0/16 + * @return value or {@code null} for none + */ + public java.util.List getAllowedCidrBlocks() { + return allowedCidrBlocks; + } + + /** + * Optional. List of CIDR blocks that are allowed to access the Server. A CIDR range consists of + * an IP Address and a prefix length to construct the subnet mask. By default, the prefix length + * is 32 (i.e. matches a single IP address). For now, only IPV4 addresses are supported. Examples: + * "203.0.113.0/24" - matches with the IP addresses in the range 203.0.113.0 - 203.0.113.255. + * "0.0.0.0/0" - matches against any IP address. This field must contain at least one entry if the + * access type is EXTERNAL. The number of allowed CIDR blocks cannot exceed 500. Example: + * 192.168.0.0/16 + * @param allowedCidrBlocks allowedCidrBlocks or {@code null} for none + */ + public ExternalServerConfig setAllowedCidrBlocks(java.util.List allowedCidrBlocks) { + this.allowedCidrBlocks = allowedCidrBlocks; + return this; + } + + /** + * Output only. IP address of the LB via which clients will connect. + * @return value or {@code null} for none + */ + public java.lang.String getIpAddress() { + return ipAddress; + } + + /** + * Output only. IP address of the LB via which clients will connect. + * @param ipAddress ipAddress or {@code null} for none + */ + public ExternalServerConfig setIpAddress(java.lang.String ipAddress) { + this.ipAddress = ipAddress; + return this; + } + + @Override + public ExternalServerConfig set(String fieldName, Object value) { + return (ExternalServerConfig) super.set(fieldName, value); + } + + @Override + public ExternalServerConfig clone() { + return (ExternalServerConfig) super.clone(); + } + +} diff --git a/clients/google-api-services-ftp/v1alpha/2.0.0/com/google/api/services/ftp/v1alpha/model/InternalServerConfig.java b/clients/google-api-services-ftp/v1alpha/2.0.0/com/google/api/services/ftp/v1alpha/model/InternalServerConfig.java new file mode 100644 index 00000000000..ef16961b72d --- /dev/null +++ b/clients/google-api-services-ftp/v1alpha/2.0.0/com/google/api/services/ftp/v1alpha/model/InternalServerConfig.java @@ -0,0 +1,162 @@ +/* + * 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.ftp.v1alpha.model; + +/** + * Configuration for private server accessible via PSC. + * + *

This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Cloud FTP API. For a detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class InternalServerConfig extends com.google.api.client.json.GenericJson { + + /** + * Required. A list of projects that are permitted to connect. At least one project is required in + * the allow list. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List consumerAcceptList; + + static { + // hack to force ProGuard to consider AllowedConsumer used, since otherwise it would be stripped out + // see https://github.com/google/google-api-java-client/issues/543 + com.google.api.client.util.Data.nullOf(AllowedConsumer.class); + } + + /** + * Optional. A list of projects that are denied connection. Format: "projects/sample_project_id" + * or "projects/1234567890" Projects in this list will be denied access, even if they are included + * in the `allow_list`. If this list is empty, no projects are explicitly rejected. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List consumerRejectList; + + static { + // hack to force ProGuard to consider DeniedConsumer used, since otherwise it would be stripped out + // see https://github.com/google/google-api-java-client/issues/543 + com.google.api.client.util.Data.nullOf(DeniedConsumer.class); + } + + /** + * Output only. Details of endpoints created by the customer. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List pscEndpoints; + + /** + * Output only. The resource name of the service attachment. Format: + * `projects/{project}/regions/{region}/serviceAttachments/{service_attachment}` + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String serviceAttachment; + + /** + * Required. A list of projects that are permitted to connect. At least one project is required in + * the allow list. + * @return value or {@code null} for none + */ + public java.util.List getConsumerAcceptList() { + return consumerAcceptList; + } + + /** + * Required. A list of projects that are permitted to connect. At least one project is required in + * the allow list. + * @param consumerAcceptList consumerAcceptList or {@code null} for none + */ + public InternalServerConfig setConsumerAcceptList(java.util.List consumerAcceptList) { + this.consumerAcceptList = consumerAcceptList; + return this; + } + + /** + * Optional. A list of projects that are denied connection. Format: "projects/sample_project_id" + * or "projects/1234567890" Projects in this list will be denied access, even if they are included + * in the `allow_list`. If this list is empty, no projects are explicitly rejected. + * @return value or {@code null} for none + */ + public java.util.List getConsumerRejectList() { + return consumerRejectList; + } + + /** + * Optional. A list of projects that are denied connection. Format: "projects/sample_project_id" + * or "projects/1234567890" Projects in this list will be denied access, even if they are included + * in the `allow_list`. If this list is empty, no projects are explicitly rejected. + * @param consumerRejectList consumerRejectList or {@code null} for none + */ + public InternalServerConfig setConsumerRejectList(java.util.List consumerRejectList) { + this.consumerRejectList = consumerRejectList; + return this; + } + + /** + * Output only. Details of endpoints created by the customer. + * @return value or {@code null} for none + */ + public java.util.List getPscEndpoints() { + return pscEndpoints; + } + + /** + * Output only. Details of endpoints created by the customer. + * @param pscEndpoints pscEndpoints or {@code null} for none + */ + public InternalServerConfig setPscEndpoints(java.util.List pscEndpoints) { + this.pscEndpoints = pscEndpoints; + return this; + } + + /** + * Output only. The resource name of the service attachment. Format: + * `projects/{project}/regions/{region}/serviceAttachments/{service_attachment}` + * @return value or {@code null} for none + */ + public java.lang.String getServiceAttachment() { + return serviceAttachment; + } + + /** + * Output only. The resource name of the service attachment. Format: + * `projects/{project}/regions/{region}/serviceAttachments/{service_attachment}` + * @param serviceAttachment serviceAttachment or {@code null} for none + */ + public InternalServerConfig setServiceAttachment(java.lang.String serviceAttachment) { + this.serviceAttachment = serviceAttachment; + return this; + } + + @Override + public InternalServerConfig set(String fieldName, Object value) { + return (InternalServerConfig) super.set(fieldName, value); + } + + @Override + public InternalServerConfig clone() { + return (InternalServerConfig) super.clone(); + } + +} diff --git a/clients/google-api-services-ftp/v1alpha/2.0.0/com/google/api/services/ftp/v1alpha/model/ListLocationsResponse.java b/clients/google-api-services-ftp/v1alpha/2.0.0/com/google/api/services/ftp/v1alpha/model/ListLocationsResponse.java new file mode 100644 index 00000000000..10cc6baa50b --- /dev/null +++ b/clients/google-api-services-ftp/v1alpha/2.0.0/com/google/api/services/ftp/v1alpha/model/ListLocationsResponse.java @@ -0,0 +1,90 @@ +/* + * 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.ftp.v1alpha.model; + +/** + * The response message for Locations.ListLocations. + * + *

This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Cloud FTP API. For a detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class ListLocationsResponse extends com.google.api.client.json.GenericJson { + + /** + * A list of locations that matches the specified filter in the request. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List locations; + + /** + * The standard List next-page token. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String nextPageToken; + + /** + * A list of locations that matches the specified filter in the request. + * @return value or {@code null} for none + */ + public java.util.List getLocations() { + return locations; + } + + /** + * A list of locations that matches the specified filter in the request. + * @param locations locations or {@code null} for none + */ + public ListLocationsResponse setLocations(java.util.List locations) { + this.locations = locations; + return this; + } + + /** + * The standard List next-page token. + * @return value or {@code null} for none + */ + public java.lang.String getNextPageToken() { + return nextPageToken; + } + + /** + * The standard List next-page token. + * @param nextPageToken nextPageToken or {@code null} for none + */ + public ListLocationsResponse setNextPageToken(java.lang.String nextPageToken) { + this.nextPageToken = nextPageToken; + return this; + } + + @Override + public ListLocationsResponse set(String fieldName, Object value) { + return (ListLocationsResponse) super.set(fieldName, value); + } + + @Override + public ListLocationsResponse clone() { + return (ListLocationsResponse) super.clone(); + } + +} diff --git a/clients/google-api-services-ftp/v1alpha/2.0.0/com/google/api/services/ftp/v1alpha/model/ListOperationsResponse.java b/clients/google-api-services-ftp/v1alpha/2.0.0/com/google/api/services/ftp/v1alpha/model/ListOperationsResponse.java new file mode 100644 index 00000000000..99fac2f54b3 --- /dev/null +++ b/clients/google-api-services-ftp/v1alpha/2.0.0/com/google/api/services/ftp/v1alpha/model/ListOperationsResponse.java @@ -0,0 +1,120 @@ +/* + * 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.ftp.v1alpha.model; + +/** + * The response message for Operations.ListOperations. + * + *

This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Cloud FTP API. For a detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class ListOperationsResponse extends com.google.api.client.json.GenericJson { + + /** + * The standard List next-page token. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String nextPageToken; + + /** + * A list of operations that matches the specified filter in the request. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List operations; + + /** + * Unordered list. Unreachable resources. Populated when the request sets + * `ListOperationsRequest.return_partial_success` and reads across collections. For example, when + * attempting to list all resources across all supported locations. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List unreachable; + + /** + * The standard List next-page token. + * @return value or {@code null} for none + */ + public java.lang.String getNextPageToken() { + return nextPageToken; + } + + /** + * The standard List next-page token. + * @param nextPageToken nextPageToken or {@code null} for none + */ + public ListOperationsResponse setNextPageToken(java.lang.String nextPageToken) { + this.nextPageToken = nextPageToken; + return this; + } + + /** + * A list of operations that matches the specified filter in the request. + * @return value or {@code null} for none + */ + public java.util.List getOperations() { + return operations; + } + + /** + * A list of operations that matches the specified filter in the request. + * @param operations operations or {@code null} for none + */ + public ListOperationsResponse setOperations(java.util.List operations) { + this.operations = operations; + return this; + } + + /** + * Unordered list. Unreachable resources. Populated when the request sets + * `ListOperationsRequest.return_partial_success` and reads across collections. For example, when + * attempting to list all resources across all supported locations. + * @return value or {@code null} for none + */ + public java.util.List getUnreachable() { + return unreachable; + } + + /** + * Unordered list. Unreachable resources. Populated when the request sets + * `ListOperationsRequest.return_partial_success` and reads across collections. For example, when + * attempting to list all resources across all supported locations. + * @param unreachable unreachable or {@code null} for none + */ + public ListOperationsResponse setUnreachable(java.util.List unreachable) { + this.unreachable = unreachable; + return this; + } + + @Override + public ListOperationsResponse set(String fieldName, Object value) { + return (ListOperationsResponse) super.set(fieldName, value); + } + + @Override + public ListOperationsResponse clone() { + return (ListOperationsResponse) super.clone(); + } + +} diff --git a/clients/google-api-services-ftp/v1alpha/2.0.0/com/google/api/services/ftp/v1alpha/model/ListServersResponse.java b/clients/google-api-services-ftp/v1alpha/2.0.0/com/google/api/services/ftp/v1alpha/model/ListServersResponse.java new file mode 100644 index 00000000000..12005cd872a --- /dev/null +++ b/clients/google-api-services-ftp/v1alpha/2.0.0/com/google/api/services/ftp/v1alpha/model/ListServersResponse.java @@ -0,0 +1,114 @@ +/* + * 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.ftp.v1alpha.model; + +/** + * Message for response to listing Servers + * + *

This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Cloud FTP API. For a detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class ListServersResponse extends com.google.api.client.json.GenericJson { + + /** + * A token identifying a page of results the server should return. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String nextPageToken; + + /** + * The list of Server + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List servers; + + /** + * Unordered list. Locations that could not be reached. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List unreachable; + + /** + * A token identifying a page of results the server should return. + * @return value or {@code null} for none + */ + public java.lang.String getNextPageToken() { + return nextPageToken; + } + + /** + * A token identifying a page of results the server should return. + * @param nextPageToken nextPageToken or {@code null} for none + */ + public ListServersResponse setNextPageToken(java.lang.String nextPageToken) { + this.nextPageToken = nextPageToken; + return this; + } + + /** + * The list of Server + * @return value or {@code null} for none + */ + public java.util.List getServers() { + return servers; + } + + /** + * The list of Server + * @param servers servers or {@code null} for none + */ + public ListServersResponse setServers(java.util.List servers) { + this.servers = servers; + return this; + } + + /** + * Unordered list. Locations that could not be reached. + * @return value or {@code null} for none + */ + public java.util.List getUnreachable() { + return unreachable; + } + + /** + * Unordered list. Locations that could not be reached. + * @param unreachable unreachable or {@code null} for none + */ + public ListServersResponse setUnreachable(java.util.List unreachable) { + this.unreachable = unreachable; + return this; + } + + @Override + public ListServersResponse set(String fieldName, Object value) { + return (ListServersResponse) super.set(fieldName, value); + } + + @Override + public ListServersResponse clone() { + return (ListServersResponse) super.clone(); + } + +} diff --git a/clients/google-api-services-ftp/v1alpha/2.0.0/com/google/api/services/ftp/v1alpha/model/ListUsersResponse.java b/clients/google-api-services-ftp/v1alpha/2.0.0/com/google/api/services/ftp/v1alpha/model/ListUsersResponse.java new file mode 100644 index 00000000000..ff46d534087 --- /dev/null +++ b/clients/google-api-services-ftp/v1alpha/2.0.0/com/google/api/services/ftp/v1alpha/model/ListUsersResponse.java @@ -0,0 +1,114 @@ +/* + * 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.ftp.v1alpha.model; + +/** + * Message for response to listing Users + * + *

This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Cloud FTP API. For a detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class ListUsersResponse extends com.google.api.client.json.GenericJson { + + /** + * A token identifying a page of results the user should return. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String nextPageToken; + + /** + * Unordered list. Locations that could not be reached. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List unreachable; + + /** + * The list of User + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List users; + + /** + * A token identifying a page of results the user should return. + * @return value or {@code null} for none + */ + public java.lang.String getNextPageToken() { + return nextPageToken; + } + + /** + * A token identifying a page of results the user should return. + * @param nextPageToken nextPageToken or {@code null} for none + */ + public ListUsersResponse setNextPageToken(java.lang.String nextPageToken) { + this.nextPageToken = nextPageToken; + return this; + } + + /** + * Unordered list. Locations that could not be reached. + * @return value or {@code null} for none + */ + public java.util.List getUnreachable() { + return unreachable; + } + + /** + * Unordered list. Locations that could not be reached. + * @param unreachable unreachable or {@code null} for none + */ + public ListUsersResponse setUnreachable(java.util.List unreachable) { + this.unreachable = unreachable; + return this; + } + + /** + * The list of User + * @return value or {@code null} for none + */ + public java.util.List getUsers() { + return users; + } + + /** + * The list of User + * @param users users or {@code null} for none + */ + public ListUsersResponse setUsers(java.util.List users) { + this.users = users; + return this; + } + + @Override + public ListUsersResponse set(String fieldName, Object value) { + return (ListUsersResponse) super.set(fieldName, value); + } + + @Override + public ListUsersResponse clone() { + return (ListUsersResponse) super.clone(); + } + +} diff --git a/clients/google-api-services-ftp/v1alpha/2.0.0/com/google/api/services/ftp/v1alpha/model/Location.java b/clients/google-api-services-ftp/v1alpha/2.0.0/com/google/api/services/ftp/v1alpha/model/Location.java new file mode 100644 index 00000000000..cebb3a1035b --- /dev/null +++ b/clients/google-api-services-ftp/v1alpha/2.0.0/com/google/api/services/ftp/v1alpha/model/Location.java @@ -0,0 +1,168 @@ +/* + * 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.ftp.v1alpha.model; + +/** + * A resource that represents a Google Cloud location. + * + *

This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Cloud FTP API. For a detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class Location extends com.google.api.client.json.GenericJson { + + /** + * The friendly name for this location, typically a nearby city name. For example, "Tokyo". + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String displayName; + + /** + * Cross-service attributes for the location. For example {"cloud.googleapis.com/region": "us- + * east1"} + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.Map labels; + + /** + * The canonical id for this location. For example: `"us-east1"`. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String locationId; + + /** + * Service-specific metadata. For example the available capacity at the given location. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.Map metadata; + + /** + * Resource name for the location, which may vary between implementations. For example: + * `"projects/example-project/locations/us-east1"` + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** + * The friendly name for this location, typically a nearby city name. For example, "Tokyo". + * @return value or {@code null} for none + */ + public java.lang.String getDisplayName() { + return displayName; + } + + /** + * The friendly name for this location, typically a nearby city name. For example, "Tokyo". + * @param displayName displayName or {@code null} for none + */ + public Location setDisplayName(java.lang.String displayName) { + this.displayName = displayName; + return this; + } + + /** + * Cross-service attributes for the location. For example {"cloud.googleapis.com/region": "us- + * east1"} + * @return value or {@code null} for none + */ + public java.util.Map getLabels() { + return labels; + } + + /** + * Cross-service attributes for the location. For example {"cloud.googleapis.com/region": "us- + * east1"} + * @param labels labels or {@code null} for none + */ + public Location setLabels(java.util.Map labels) { + this.labels = labels; + return this; + } + + /** + * The canonical id for this location. For example: `"us-east1"`. + * @return value or {@code null} for none + */ + public java.lang.String getLocationId() { + return locationId; + } + + /** + * The canonical id for this location. For example: `"us-east1"`. + * @param locationId locationId or {@code null} for none + */ + public Location setLocationId(java.lang.String locationId) { + this.locationId = locationId; + return this; + } + + /** + * Service-specific metadata. For example the available capacity at the given location. + * @return value or {@code null} for none + */ + public java.util.Map getMetadata() { + return metadata; + } + + /** + * Service-specific metadata. For example the available capacity at the given location. + * @param metadata metadata or {@code null} for none + */ + public Location setMetadata(java.util.Map metadata) { + this.metadata = metadata; + return this; + } + + /** + * Resource name for the location, which may vary between implementations. For example: + * `"projects/example-project/locations/us-east1"` + * @return value or {@code null} for none + */ + public java.lang.String getName() { + return name; + } + + /** + * Resource name for the location, which may vary between implementations. For example: + * `"projects/example-project/locations/us-east1"` + * @param name name or {@code null} for none + */ + public Location setName(java.lang.String name) { + this.name = name; + return this; + } + + @Override + public Location set(String fieldName, Object value) { + return (Location) super.set(fieldName, value); + } + + @Override + public Location clone() { + return (Location) super.clone(); + } + +} diff --git a/clients/google-api-services-ftp/v1alpha/2.0.0/com/google/api/services/ftp/v1alpha/model/Operation.java b/clients/google-api-services-ftp/v1alpha/2.0.0/com/google/api/services/ftp/v1alpha/model/Operation.java new file mode 100644 index 00000000000..cb797341341 --- /dev/null +++ b/clients/google-api-services-ftp/v1alpha/2.0.0/com/google/api/services/ftp/v1alpha/model/Operation.java @@ -0,0 +1,195 @@ +/* + * 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.ftp.v1alpha.model; + +/** + * This resource represents a long-running operation that is the result of a network API call. + * + *

This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Cloud FTP API. For a detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class Operation extends com.google.api.client.json.GenericJson { + + /** + * If the value is `false`, it means the operation is still in progress. If `true`, the operation + * is completed, and either `error` or `response` is available. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Boolean done; + + /** + * The error result of the operation in case of failure or cancellation. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private Status error; + + /** + * Service-specific metadata associated with the operation. It typically contains progress + * information and common metadata such as create time. Some services might not provide such + * metadata. Any method that returns a long-running operation should document the metadata type, + * if any. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.Map metadata; + + /** + * The server-assigned name, which is only unique within the same service that originally returns + * it. If you use the default HTTP mapping, the `name` should be a resource name ending with + * `operations/{unique_id}`. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** + * The normal, successful response of the operation. If the original method returns no data on + * success, such as `Delete`, the response is `google.protobuf.Empty`. If the original method is + * standard `Get`/`Create`/`Update`, the response should be the resource. For other methods, the + * response should have the type `XxxResponse`, where `Xxx` is the original method name. For + * example, if the original method name is `TakeSnapshot()`, the inferred response type is + * `TakeSnapshotResponse`. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.Map response; + + /** + * If the value is `false`, it means the operation is still in progress. If `true`, the operation + * is completed, and either `error` or `response` is available. + * @return value or {@code null} for none + */ + public java.lang.Boolean getDone() { + return done; + } + + /** + * If the value is `false`, it means the operation is still in progress. If `true`, the operation + * is completed, and either `error` or `response` is available. + * @param done done or {@code null} for none + */ + public Operation setDone(java.lang.Boolean done) { + this.done = done; + return this; + } + + /** + * The error result of the operation in case of failure or cancellation. + * @return value or {@code null} for none + */ + public Status getError() { + return error; + } + + /** + * The error result of the operation in case of failure or cancellation. + * @param error error or {@code null} for none + */ + public Operation setError(Status error) { + this.error = error; + return this; + } + + /** + * Service-specific metadata associated with the operation. It typically contains progress + * information and common metadata such as create time. Some services might not provide such + * metadata. Any method that returns a long-running operation should document the metadata type, + * if any. + * @return value or {@code null} for none + */ + public java.util.Map getMetadata() { + return metadata; + } + + /** + * Service-specific metadata associated with the operation. It typically contains progress + * information and common metadata such as create time. Some services might not provide such + * metadata. Any method that returns a long-running operation should document the metadata type, + * if any. + * @param metadata metadata or {@code null} for none + */ + public Operation setMetadata(java.util.Map metadata) { + this.metadata = metadata; + return this; + } + + /** + * The server-assigned name, which is only unique within the same service that originally returns + * it. If you use the default HTTP mapping, the `name` should be a resource name ending with + * `operations/{unique_id}`. + * @return value or {@code null} for none + */ + public java.lang.String getName() { + return name; + } + + /** + * The server-assigned name, which is only unique within the same service that originally returns + * it. If you use the default HTTP mapping, the `name` should be a resource name ending with + * `operations/{unique_id}`. + * @param name name or {@code null} for none + */ + public Operation setName(java.lang.String name) { + this.name = name; + return this; + } + + /** + * The normal, successful response of the operation. If the original method returns no data on + * success, such as `Delete`, the response is `google.protobuf.Empty`. If the original method is + * standard `Get`/`Create`/`Update`, the response should be the resource. For other methods, the + * response should have the type `XxxResponse`, where `Xxx` is the original method name. For + * example, if the original method name is `TakeSnapshot()`, the inferred response type is + * `TakeSnapshotResponse`. + * @return value or {@code null} for none + */ + public java.util.Map getResponse() { + return response; + } + + /** + * The normal, successful response of the operation. If the original method returns no data on + * success, such as `Delete`, the response is `google.protobuf.Empty`. If the original method is + * standard `Get`/`Create`/`Update`, the response should be the resource. For other methods, the + * response should have the type `XxxResponse`, where `Xxx` is the original method name. For + * example, if the original method name is `TakeSnapshot()`, the inferred response type is + * `TakeSnapshotResponse`. + * @param response response or {@code null} for none + */ + public Operation setResponse(java.util.Map response) { + this.response = response; + return this; + } + + @Override + public Operation set(String fieldName, Object value) { + return (Operation) super.set(fieldName, value); + } + + @Override + public Operation clone() { + return (Operation) super.clone(); + } + +} diff --git a/clients/google-api-services-ftp/v1alpha/2.0.0/com/google/api/services/ftp/v1alpha/model/OperationMetadata.java b/clients/google-api-services-ftp/v1alpha/2.0.0/com/google/api/services/ftp/v1alpha/model/OperationMetadata.java new file mode 100644 index 00000000000..7d2ee073964 --- /dev/null +++ b/clients/google-api-services-ftp/v1alpha/2.0.0/com/google/api/services/ftp/v1alpha/model/OperationMetadata.java @@ -0,0 +1,216 @@ +/* + * 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.ftp.v1alpha.model; + +/** + * Represents the metadata of the long-running operation. + * + *

This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Cloud FTP API. For a detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class OperationMetadata extends com.google.api.client.json.GenericJson { + + /** + * Output only. API version used to start the operation. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String apiVersion; + + /** + * Output only. The time the operation was created. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private String createTime; + + /** + * Output only. The time the operation finished running. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private String endTime; + + /** + * Output only. Identifies whether the user has requested cancellation of the operation. + * Operations that have been cancelled successfully have google.longrunning.Operation.error value + * with a google.rpc.Status.code of `1`, corresponding to `Code.CANCELLED`. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Boolean requestedCancellation; + + /** + * Output only. Human-readable status of the operation, if any. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String statusMessage; + + /** + * Output only. Server-defined resource path for the target of the operation. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String target; + + /** + * Output only. Name of the verb executed by the operation. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String verb; + + /** + * Output only. API version used to start the operation. + * @return value or {@code null} for none + */ + public java.lang.String getApiVersion() { + return apiVersion; + } + + /** + * Output only. API version used to start the operation. + * @param apiVersion apiVersion or {@code null} for none + */ + public OperationMetadata setApiVersion(java.lang.String apiVersion) { + this.apiVersion = apiVersion; + return this; + } + + /** + * Output only. The time the operation was created. + * @return value or {@code null} for none + */ + public String getCreateTime() { + return createTime; + } + + /** + * Output only. The time the operation was created. + * @param createTime createTime or {@code null} for none + */ + public OperationMetadata setCreateTime(String createTime) { + this.createTime = createTime; + return this; + } + + /** + * Output only. The time the operation finished running. + * @return value or {@code null} for none + */ + public String getEndTime() { + return endTime; + } + + /** + * Output only. The time the operation finished running. + * @param endTime endTime or {@code null} for none + */ + public OperationMetadata setEndTime(String endTime) { + this.endTime = endTime; + return this; + } + + /** + * Output only. Identifies whether the user has requested cancellation of the operation. + * Operations that have been cancelled successfully have google.longrunning.Operation.error value + * with a google.rpc.Status.code of `1`, corresponding to `Code.CANCELLED`. + * @return value or {@code null} for none + */ + public java.lang.Boolean getRequestedCancellation() { + return requestedCancellation; + } + + /** + * Output only. Identifies whether the user has requested cancellation of the operation. + * Operations that have been cancelled successfully have google.longrunning.Operation.error value + * with a google.rpc.Status.code of `1`, corresponding to `Code.CANCELLED`. + * @param requestedCancellation requestedCancellation or {@code null} for none + */ + public OperationMetadata setRequestedCancellation(java.lang.Boolean requestedCancellation) { + this.requestedCancellation = requestedCancellation; + return this; + } + + /** + * Output only. Human-readable status of the operation, if any. + * @return value or {@code null} for none + */ + public java.lang.String getStatusMessage() { + return statusMessage; + } + + /** + * Output only. Human-readable status of the operation, if any. + * @param statusMessage statusMessage or {@code null} for none + */ + public OperationMetadata setStatusMessage(java.lang.String statusMessage) { + this.statusMessage = statusMessage; + return this; + } + + /** + * Output only. Server-defined resource path for the target of the operation. + * @return value or {@code null} for none + */ + public java.lang.String getTarget() { + return target; + } + + /** + * Output only. Server-defined resource path for the target of the operation. + * @param target target or {@code null} for none + */ + public OperationMetadata setTarget(java.lang.String target) { + this.target = target; + return this; + } + + /** + * Output only. Name of the verb executed by the operation. + * @return value or {@code null} for none + */ + public java.lang.String getVerb() { + return verb; + } + + /** + * Output only. Name of the verb executed by the operation. + * @param verb verb or {@code null} for none + */ + public OperationMetadata setVerb(java.lang.String verb) { + this.verb = verb; + return this; + } + + @Override + public OperationMetadata set(String fieldName, Object value) { + return (OperationMetadata) super.set(fieldName, value); + } + + @Override + public OperationMetadata clone() { + return (OperationMetadata) super.clone(); + } + +} diff --git a/clients/google-api-services-ftp/v1alpha/2.0.0/com/google/api/services/ftp/v1alpha/model/PscEndpoint.java b/clients/google-api-services-ftp/v1alpha/2.0.0/com/google/api/services/ftp/v1alpha/model/PscEndpoint.java new file mode 100644 index 00000000000..53ee3f02081 --- /dev/null +++ b/clients/google-api-services-ftp/v1alpha/2.0.0/com/google/api/services/ftp/v1alpha/model/PscEndpoint.java @@ -0,0 +1,120 @@ +/* + * 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.ftp.v1alpha.model; + +/** + * Details of PSC endpoint created by customer. + * + *

This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Cloud FTP API. For a detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class PscEndpoint extends com.google.api.client.json.GenericJson { + + /** + * Output only. This is a Resource name for Private Service Connect endpoint. Format: + * `projects/{project}/regions/{region}/forwardingRules/{forwarding_rule}` + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String endpoint; + + /** + * Output only. The consumer network. Format: + * `projects/{project}/locations/{location}/networks/{network}` + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String network; + + /** + * Output only. The status of the connected endpoint. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String status; + + /** + * Output only. This is a Resource name for Private Service Connect endpoint. Format: + * `projects/{project}/regions/{region}/forwardingRules/{forwarding_rule}` + * @return value or {@code null} for none + */ + public java.lang.String getEndpoint() { + return endpoint; + } + + /** + * Output only. This is a Resource name for Private Service Connect endpoint. Format: + * `projects/{project}/regions/{region}/forwardingRules/{forwarding_rule}` + * @param endpoint endpoint or {@code null} for none + */ + public PscEndpoint setEndpoint(java.lang.String endpoint) { + this.endpoint = endpoint; + return this; + } + + /** + * Output only. The consumer network. Format: + * `projects/{project}/locations/{location}/networks/{network}` + * @return value or {@code null} for none + */ + public java.lang.String getNetwork() { + return network; + } + + /** + * Output only. The consumer network. Format: + * `projects/{project}/locations/{location}/networks/{network}` + * @param network network or {@code null} for none + */ + public PscEndpoint setNetwork(java.lang.String network) { + this.network = network; + return this; + } + + /** + * Output only. The status of the connected endpoint. + * @return value or {@code null} for none + */ + public java.lang.String getStatus() { + return status; + } + + /** + * Output only. The status of the connected endpoint. + * @param status status or {@code null} for none + */ + public PscEndpoint setStatus(java.lang.String status) { + this.status = status; + return this; + } + + @Override + public PscEndpoint set(String fieldName, Object value) { + return (PscEndpoint) super.set(fieldName, value); + } + + @Override + public PscEndpoint clone() { + return (PscEndpoint) super.clone(); + } + +} diff --git a/clients/google-api-services-ftp/v1alpha/2.0.0/com/google/api/services/ftp/v1alpha/model/Server.java b/clients/google-api-services-ftp/v1alpha/2.0.0/com/google/api/services/ftp/v1alpha/model/Server.java new file mode 100644 index 00000000000..01239be6cdd --- /dev/null +++ b/clients/google-api-services-ftp/v1alpha/2.0.0/com/google/api/services/ftp/v1alpha/model/Server.java @@ -0,0 +1,306 @@ +/* + * 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.ftp.v1alpha.model; + +/** + * Message describing Server object + * + *

This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Cloud FTP API. For a detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class Server extends com.google.api.client.json.GenericJson { + + /** + * Required. The access type of the Server. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String accessType; + + /** + * Output only. [Output only] Create time stamp + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private String createTime; + + /** + * Optional. Display name of the Server + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String displayName; + + /** + * Configuration for external access. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private ExternalServerConfig externalConfig; + + /** + * Output only. Credentials of the FTP Server. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private ServerCredential googleManagedServerCredential; + + /** + * Configuration for internal access. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private InternalServerConfig internalConfig; + + /** + * Optional. Labels as key value pairs + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.Map labels; + + /** + * Identifier. name of resource + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** + * Output only. Service agent used to access the customer bucket. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String serviceAgent; + + /** + * Output only. The state of the server. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String state; + + /** + * Output only. [Output only] Update time stamp + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private String updateTime; + + /** + * Required. The access type of the Server. + * @return value or {@code null} for none + */ + public java.lang.String getAccessType() { + return accessType; + } + + /** + * Required. The access type of the Server. + * @param accessType accessType or {@code null} for none + */ + public Server setAccessType(java.lang.String accessType) { + this.accessType = accessType; + return this; + } + + /** + * Output only. [Output only] Create time stamp + * @return value or {@code null} for none + */ + public String getCreateTime() { + return createTime; + } + + /** + * Output only. [Output only] Create time stamp + * @param createTime createTime or {@code null} for none + */ + public Server setCreateTime(String createTime) { + this.createTime = createTime; + return this; + } + + /** + * Optional. Display name of the Server + * @return value or {@code null} for none + */ + public java.lang.String getDisplayName() { + return displayName; + } + + /** + * Optional. Display name of the Server + * @param displayName displayName or {@code null} for none + */ + public Server setDisplayName(java.lang.String displayName) { + this.displayName = displayName; + return this; + } + + /** + * Configuration for external access. + * @return value or {@code null} for none + */ + public ExternalServerConfig getExternalConfig() { + return externalConfig; + } + + /** + * Configuration for external access. + * @param externalConfig externalConfig or {@code null} for none + */ + public Server setExternalConfig(ExternalServerConfig externalConfig) { + this.externalConfig = externalConfig; + return this; + } + + /** + * Output only. Credentials of the FTP Server. + * @return value or {@code null} for none + */ + public ServerCredential getGoogleManagedServerCredential() { + return googleManagedServerCredential; + } + + /** + * Output only. Credentials of the FTP Server. + * @param googleManagedServerCredential googleManagedServerCredential or {@code null} for none + */ + public Server setGoogleManagedServerCredential(ServerCredential googleManagedServerCredential) { + this.googleManagedServerCredential = googleManagedServerCredential; + return this; + } + + /** + * Configuration for internal access. + * @return value or {@code null} for none + */ + public InternalServerConfig getInternalConfig() { + return internalConfig; + } + + /** + * Configuration for internal access. + * @param internalConfig internalConfig or {@code null} for none + */ + public Server setInternalConfig(InternalServerConfig internalConfig) { + this.internalConfig = internalConfig; + return this; + } + + /** + * Optional. Labels as key value pairs + * @return value or {@code null} for none + */ + public java.util.Map getLabels() { + return labels; + } + + /** + * Optional. Labels as key value pairs + * @param labels labels or {@code null} for none + */ + public Server setLabels(java.util.Map labels) { + this.labels = labels; + return this; + } + + /** + * Identifier. name of resource + * @return value or {@code null} for none + */ + public java.lang.String getName() { + return name; + } + + /** + * Identifier. name of resource + * @param name name or {@code null} for none + */ + public Server setName(java.lang.String name) { + this.name = name; + return this; + } + + /** + * Output only. Service agent used to access the customer bucket. + * @return value or {@code null} for none + */ + public java.lang.String getServiceAgent() { + return serviceAgent; + } + + /** + * Output only. Service agent used to access the customer bucket. + * @param serviceAgent serviceAgent or {@code null} for none + */ + public Server setServiceAgent(java.lang.String serviceAgent) { + this.serviceAgent = serviceAgent; + return this; + } + + /** + * Output only. The state of the server. + * @return value or {@code null} for none + */ + public java.lang.String getState() { + return state; + } + + /** + * Output only. The state of the server. + * @param state state or {@code null} for none + */ + public Server setState(java.lang.String state) { + this.state = state; + return this; + } + + /** + * Output only. [Output only] Update time stamp + * @return value or {@code null} for none + */ + public String getUpdateTime() { + return updateTime; + } + + /** + * Output only. [Output only] Update time stamp + * @param updateTime updateTime or {@code null} for none + */ + public Server setUpdateTime(String updateTime) { + this.updateTime = updateTime; + return this; + } + + @Override + public Server set(String fieldName, Object value) { + return (Server) super.set(fieldName, value); + } + + @Override + public Server clone() { + return (Server) super.clone(); + } + +} diff --git a/clients/google-api-services-ftp/v1alpha/2.0.0/com/google/api/services/ftp/v1alpha/model/ServerCredential.java b/clients/google-api-services-ftp/v1alpha/2.0.0/com/google/api/services/ftp/v1alpha/model/ServerCredential.java new file mode 100644 index 00000000000..5a4bb6404a0 --- /dev/null +++ b/clients/google-api-services-ftp/v1alpha/2.0.0/com/google/api/services/ftp/v1alpha/model/ServerCredential.java @@ -0,0 +1,96 @@ +/* + * 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.ftp.v1alpha.model; + +/** + * Represents credentials of an FTP Server. + * + *

This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Cloud FTP API. For a detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class ServerCredential extends com.google.api.client.json.GenericJson { + + /** + * Output only. Asymmetric algorithm used by the public key. Possible values (can be expanded in + * future): - ssh-ed25519 + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String asymmetricAlgorithm; + + /** + * Output only. The fingerprint is a hash of the public key, and is displayed when clients access + * the server for the first time to verify the server's identity. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String fingerprint; + + /** + * Output only. Asymmetric algorithm used by the public key. Possible values (can be expanded in + * future): - ssh-ed25519 + * @return value or {@code null} for none + */ + public java.lang.String getAsymmetricAlgorithm() { + return asymmetricAlgorithm; + } + + /** + * Output only. Asymmetric algorithm used by the public key. Possible values (can be expanded in + * future): - ssh-ed25519 + * @param asymmetricAlgorithm asymmetricAlgorithm or {@code null} for none + */ + public ServerCredential setAsymmetricAlgorithm(java.lang.String asymmetricAlgorithm) { + this.asymmetricAlgorithm = asymmetricAlgorithm; + return this; + } + + /** + * Output only. The fingerprint is a hash of the public key, and is displayed when clients access + * the server for the first time to verify the server's identity. + * @return value or {@code null} for none + */ + public java.lang.String getFingerprint() { + return fingerprint; + } + + /** + * Output only. The fingerprint is a hash of the public key, and is displayed when clients access + * the server for the first time to verify the server's identity. + * @param fingerprint fingerprint or {@code null} for none + */ + public ServerCredential setFingerprint(java.lang.String fingerprint) { + this.fingerprint = fingerprint; + return this; + } + + @Override + public ServerCredential set(String fieldName, Object value) { + return (ServerCredential) super.set(fieldName, value); + } + + @Override + public ServerCredential clone() { + return (ServerCredential) super.clone(); + } + +} diff --git a/clients/google-api-services-ftp/v1alpha/2.0.0/com/google/api/services/ftp/v1alpha/model/StartServerRequest.java b/clients/google-api-services-ftp/v1alpha/2.0.0/com/google/api/services/ftp/v1alpha/model/StartServerRequest.java new file mode 100644 index 00000000000..b2aa18254dd --- /dev/null +++ b/clients/google-api-services-ftp/v1alpha/2.0.0/com/google/api/services/ftp/v1alpha/model/StartServerRequest.java @@ -0,0 +1,42 @@ +/* + * 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.ftp.v1alpha.model; + +/** + * Request message for starting a Server. + * + *

This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Cloud FTP API. For a detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class StartServerRequest extends com.google.api.client.json.GenericJson { + + @Override + public StartServerRequest set(String fieldName, Object value) { + return (StartServerRequest) super.set(fieldName, value); + } + + @Override + public StartServerRequest clone() { + return (StartServerRequest) super.clone(); + } + +} diff --git a/clients/google-api-services-ftp/v1alpha/2.0.0/com/google/api/services/ftp/v1alpha/model/Status.java b/clients/google-api-services-ftp/v1alpha/2.0.0/com/google/api/services/ftp/v1alpha/model/Status.java new file mode 100644 index 00000000000..ce902c42909 --- /dev/null +++ b/clients/google-api-services-ftp/v1alpha/2.0.0/com/google/api/services/ftp/v1alpha/model/Status.java @@ -0,0 +1,127 @@ +/* + * 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.ftp.v1alpha.model; + +/** + * The `Status` type defines a logical error model that is suitable for different programming + * environments, including REST APIs and RPC APIs. It is used by [gRPC](https://github.com/grpc). + * Each `Status` message contains three pieces of data: error code, error message, and error + * details. You can find out more about this error model and how to work with it in the [API Design + * Guide](https://cloud.google.com/apis/design/errors). + * + *

This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Cloud FTP API. For a detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class Status extends com.google.api.client.json.GenericJson { + + /** + * The status code, which should be an enum value of google.rpc.Code. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Integer code; + + /** + * A list of messages that carry the error details. There is a common set of message types for + * APIs to use. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List> details; + + /** + * A developer-facing error message, which should be in English. Any user-facing error message + * should be localized and sent in the google.rpc.Status.details field, or localized by the + * client. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String message; + + /** + * The status code, which should be an enum value of google.rpc.Code. + * @return value or {@code null} for none + */ + public java.lang.Integer getCode() { + return code; + } + + /** + * The status code, which should be an enum value of google.rpc.Code. + * @param code code or {@code null} for none + */ + public Status setCode(java.lang.Integer code) { + this.code = code; + return this; + } + + /** + * A list of messages that carry the error details. There is a common set of message types for + * APIs to use. + * @return value or {@code null} for none + */ + public java.util.List> getDetails() { + return details; + } + + /** + * A list of messages that carry the error details. There is a common set of message types for + * APIs to use. + * @param details details or {@code null} for none + */ + public Status setDetails(java.util.List> details) { + this.details = details; + return this; + } + + /** + * A developer-facing error message, which should be in English. Any user-facing error message + * should be localized and sent in the google.rpc.Status.details field, or localized by the + * client. + * @return value or {@code null} for none + */ + public java.lang.String getMessage() { + return message; + } + + /** + * A developer-facing error message, which should be in English. Any user-facing error message + * should be localized and sent in the google.rpc.Status.details field, or localized by the + * client. + * @param message message or {@code null} for none + */ + public Status setMessage(java.lang.String message) { + this.message = message; + return this; + } + + @Override + public Status set(String fieldName, Object value) { + return (Status) super.set(fieldName, value); + } + + @Override + public Status clone() { + return (Status) super.clone(); + } + +} diff --git a/clients/google-api-services-ftp/v1alpha/2.0.0/com/google/api/services/ftp/v1alpha/model/StopServerRequest.java b/clients/google-api-services-ftp/v1alpha/2.0.0/com/google/api/services/ftp/v1alpha/model/StopServerRequest.java new file mode 100644 index 00000000000..cf7227c8253 --- /dev/null +++ b/clients/google-api-services-ftp/v1alpha/2.0.0/com/google/api/services/ftp/v1alpha/model/StopServerRequest.java @@ -0,0 +1,42 @@ +/* + * 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.ftp.v1alpha.model; + +/** + * Request message for stopping a Server. + * + *

This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Cloud FTP API. For a detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class StopServerRequest extends com.google.api.client.json.GenericJson { + + @Override + public StopServerRequest set(String fieldName, Object value) { + return (StopServerRequest) super.set(fieldName, value); + } + + @Override + public StopServerRequest clone() { + return (StopServerRequest) super.clone(); + } + +} diff --git a/clients/google-api-services-ftp/v1alpha/2.0.0/com/google/api/services/ftp/v1alpha/model/StorageDirectoryMapping.java b/clients/google-api-services-ftp/v1alpha/2.0.0/com/google/api/services/ftp/v1alpha/model/StorageDirectoryMapping.java new file mode 100644 index 00000000000..22fbdc5bd7d --- /dev/null +++ b/clients/google-api-services-ftp/v1alpha/2.0.0/com/google/api/services/ftp/v1alpha/model/StorageDirectoryMapping.java @@ -0,0 +1,145 @@ +/* + * 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.ftp.v1alpha.model; + +/** + * Mapping of backing Cloud Storage path to the directory where the user lands in the SFTP server. + * If directory is not specified, it'll default to '/'. Eg 1 - (bucket_name: bucket, bucket_prefix: + * path1/path2, directory: /abc/def/username) The user will land at /abcd/def/username, and the view + * there will match that of /bucket/path1/path2. The user will not be aware of Cloud Storage prefix + * '/bucket/path1' and there will be no such directory in the view. Eg 2 - (bucket_name: bucket, + * bucket_prefix: path1/path2, directory: '') The user will land at '/', and the view there will + * match that of /bucket/path1/path2. The user will not be aware of Cloud Storage prefix + * '/bucket/path1/path2' and there will be no such directory in the view. + * + *

This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Cloud FTP API. For a detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class StorageDirectoryMapping extends com.google.api.client.json.GenericJson { + + /** + * Required. Name of the bucket. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String bucket; + + /** + * Optional. Prefix inside the bucket. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String bucketPrefix; + + /** + * Required. Directory where the user lands in the SFTP server. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String directory; + + /** + * Required. Permission to the bucket. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String permission; + + /** + * Required. Name of the bucket. + * @return value or {@code null} for none + */ + public java.lang.String getBucket() { + return bucket; + } + + /** + * Required. Name of the bucket. + * @param bucket bucket or {@code null} for none + */ + public StorageDirectoryMapping setBucket(java.lang.String bucket) { + this.bucket = bucket; + return this; + } + + /** + * Optional. Prefix inside the bucket. + * @return value or {@code null} for none + */ + public java.lang.String getBucketPrefix() { + return bucketPrefix; + } + + /** + * Optional. Prefix inside the bucket. + * @param bucketPrefix bucketPrefix or {@code null} for none + */ + public StorageDirectoryMapping setBucketPrefix(java.lang.String bucketPrefix) { + this.bucketPrefix = bucketPrefix; + return this; + } + + /** + * Required. Directory where the user lands in the SFTP server. + * @return value or {@code null} for none + */ + public java.lang.String getDirectory() { + return directory; + } + + /** + * Required. Directory where the user lands in the SFTP server. + * @param directory directory or {@code null} for none + */ + public StorageDirectoryMapping setDirectory(java.lang.String directory) { + this.directory = directory; + return this; + } + + /** + * Required. Permission to the bucket. + * @return value or {@code null} for none + */ + public java.lang.String getPermission() { + return permission; + } + + /** + * Required. Permission to the bucket. + * @param permission permission or {@code null} for none + */ + public StorageDirectoryMapping setPermission(java.lang.String permission) { + this.permission = permission; + return this; + } + + @Override + public StorageDirectoryMapping set(String fieldName, Object value) { + return (StorageDirectoryMapping) super.set(fieldName, value); + } + + @Override + public StorageDirectoryMapping clone() { + return (StorageDirectoryMapping) super.clone(); + } + +} diff --git a/clients/google-api-services-ftp/v1alpha/2.0.0/com/google/api/services/ftp/v1alpha/model/User.java b/clients/google-api-services-ftp/v1alpha/2.0.0/com/google/api/services/ftp/v1alpha/model/User.java new file mode 100644 index 00000000000..ec7a997b10f --- /dev/null +++ b/clients/google-api-services-ftp/v1alpha/2.0.0/com/google/api/services/ftp/v1alpha/model/User.java @@ -0,0 +1,270 @@ +/* + * 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.ftp.v1alpha.model; + +/** + * Message describing User object + * + *

This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Cloud FTP API. For a detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class User extends com.google.api.client.json.GenericJson { + + /** + * Output only. [Output only] Create time stamp + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private String createTime; + + /** + * Required. Service account in customer project attached to this SFTP User. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String customerServiceAccount; + + /** + * Optional. Labels as key value pairs + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.Map labels; + + /** + * Identifier. User-friendly name via which User will be identified. + * projects/{project}/locations/{location}/servers/{server}/users/{user} + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** + * Output only. Tracks user creation. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String state; + + /** + * Required. Mapping of Cloud Storage buckets to directories where the user will land in the SFTP + * server. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List storageDirectoryMappings; + + static { + // hack to force ProGuard to consider StorageDirectoryMapping used, since otherwise it would be stripped out + // see https://github.com/google/google-api-java-client/issues/543 + com.google.api.client.util.Data.nullOf(StorageDirectoryMapping.class); + } + + /** + * Output only. [Output only] Update time stamp + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private String updateTime; + + /** + * Required. User credential for the user. The maximum number of user credentials is 10. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List userCredentials; + + /** + * Output only. [Output only] The username of the user. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String username; + + /** + * Output only. [Output only] Create time stamp + * @return value or {@code null} for none + */ + public String getCreateTime() { + return createTime; + } + + /** + * Output only. [Output only] Create time stamp + * @param createTime createTime or {@code null} for none + */ + public User setCreateTime(String createTime) { + this.createTime = createTime; + return this; + } + + /** + * Required. Service account in customer project attached to this SFTP User. + * @return value or {@code null} for none + */ + public java.lang.String getCustomerServiceAccount() { + return customerServiceAccount; + } + + /** + * Required. Service account in customer project attached to this SFTP User. + * @param customerServiceAccount customerServiceAccount or {@code null} for none + */ + public User setCustomerServiceAccount(java.lang.String customerServiceAccount) { + this.customerServiceAccount = customerServiceAccount; + return this; + } + + /** + * Optional. Labels as key value pairs + * @return value or {@code null} for none + */ + public java.util.Map getLabels() { + return labels; + } + + /** + * Optional. Labels as key value pairs + * @param labels labels or {@code null} for none + */ + public User setLabels(java.util.Map labels) { + this.labels = labels; + return this; + } + + /** + * Identifier. User-friendly name via which User will be identified. + * projects/{project}/locations/{location}/servers/{server}/users/{user} + * @return value or {@code null} for none + */ + public java.lang.String getName() { + return name; + } + + /** + * Identifier. User-friendly name via which User will be identified. + * projects/{project}/locations/{location}/servers/{server}/users/{user} + * @param name name or {@code null} for none + */ + public User setName(java.lang.String name) { + this.name = name; + return this; + } + + /** + * Output only. Tracks user creation. + * @return value or {@code null} for none + */ + public java.lang.String getState() { + return state; + } + + /** + * Output only. Tracks user creation. + * @param state state or {@code null} for none + */ + public User setState(java.lang.String state) { + this.state = state; + return this; + } + + /** + * Required. Mapping of Cloud Storage buckets to directories where the user will land in the SFTP + * server. + * @return value or {@code null} for none + */ + public java.util.List getStorageDirectoryMappings() { + return storageDirectoryMappings; + } + + /** + * Required. Mapping of Cloud Storage buckets to directories where the user will land in the SFTP + * server. + * @param storageDirectoryMappings storageDirectoryMappings or {@code null} for none + */ + public User setStorageDirectoryMappings(java.util.List storageDirectoryMappings) { + this.storageDirectoryMappings = storageDirectoryMappings; + return this; + } + + /** + * Output only. [Output only] Update time stamp + * @return value or {@code null} for none + */ + public String getUpdateTime() { + return updateTime; + } + + /** + * Output only. [Output only] Update time stamp + * @param updateTime updateTime or {@code null} for none + */ + public User setUpdateTime(String updateTime) { + this.updateTime = updateTime; + return this; + } + + /** + * Required. User credential for the user. The maximum number of user credentials is 10. + * @return value or {@code null} for none + */ + public java.util.List getUserCredentials() { + return userCredentials; + } + + /** + * Required. User credential for the user. The maximum number of user credentials is 10. + * @param userCredentials userCredentials or {@code null} for none + */ + public User setUserCredentials(java.util.List userCredentials) { + this.userCredentials = userCredentials; + return this; + } + + /** + * Output only. [Output only] The username of the user. + * @return value or {@code null} for none + */ + public java.lang.String getUsername() { + return username; + } + + /** + * Output only. [Output only] The username of the user. + * @param username username or {@code null} for none + */ + public User setUsername(java.lang.String username) { + this.username = username; + return this; + } + + @Override + public User set(String fieldName, Object value) { + return (User) super.set(fieldName, value); + } + + @Override + public User clone() { + return (User) super.clone(); + } + +} diff --git a/clients/google-api-services-ftp/v1alpha/2.0.0/com/google/api/services/ftp/v1alpha/model/UserCredential.java b/clients/google-api-services-ftp/v1alpha/2.0.0/com/google/api/services/ftp/v1alpha/model/UserCredential.java new file mode 100644 index 00000000000..6dd3b35f2b9 --- /dev/null +++ b/clients/google-api-services-ftp/v1alpha/2.0.0/com/google/api/services/ftp/v1alpha/model/UserCredential.java @@ -0,0 +1,117 @@ +/* + * 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.ftp.v1alpha.model; + +/** + * Message describing UserCredential object + * + *

This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Cloud FTP API. For a detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class UserCredential extends com.google.api.client.json.GenericJson { + + /** + * Required. Name of the user credential. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String credentialName; + + /** + * Required. Type of credential. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String credentialType; + + /** + * Optional. SSH public key body in OpenSSH format. Example: "ssh-rsa + * AAAAB3NzaC1yc2EAAAADAQABAAABAQ..." + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String sshPublicKeyBody; + + /** + * Required. Name of the user credential. + * @return value or {@code null} for none + */ + public java.lang.String getCredentialName() { + return credentialName; + } + + /** + * Required. Name of the user credential. + * @param credentialName credentialName or {@code null} for none + */ + public UserCredential setCredentialName(java.lang.String credentialName) { + this.credentialName = credentialName; + return this; + } + + /** + * Required. Type of credential. + * @return value or {@code null} for none + */ + public java.lang.String getCredentialType() { + return credentialType; + } + + /** + * Required. Type of credential. + * @param credentialType credentialType or {@code null} for none + */ + public UserCredential setCredentialType(java.lang.String credentialType) { + this.credentialType = credentialType; + return this; + } + + /** + * Optional. SSH public key body in OpenSSH format. Example: "ssh-rsa + * AAAAB3NzaC1yc2EAAAADAQABAAABAQ..." + * @return value or {@code null} for none + */ + public java.lang.String getSshPublicKeyBody() { + return sshPublicKeyBody; + } + + /** + * Optional. SSH public key body in OpenSSH format. Example: "ssh-rsa + * AAAAB3NzaC1yc2EAAAADAQABAAABAQ..." + * @param sshPublicKeyBody sshPublicKeyBody or {@code null} for none + */ + public UserCredential setSshPublicKeyBody(java.lang.String sshPublicKeyBody) { + this.sshPublicKeyBody = sshPublicKeyBody; + return this; + } + + @Override + public UserCredential set(String fieldName, Object value) { + return (UserCredential) super.set(fieldName, value); + } + + @Override + public UserCredential clone() { + return (UserCredential) super.clone(); + } + +} diff --git a/clients/google-api-services-ftp/v1alpha/2.0.0/pom.xml b/clients/google-api-services-ftp/v1alpha/2.0.0/pom.xml new file mode 100644 index 00000000000..e1534e081b9 --- /dev/null +++ b/clients/google-api-services-ftp/v1alpha/2.0.0/pom.xml @@ -0,0 +1,219 @@ + + 4.0.0 + + org.sonatype.oss + oss-parent + 7 + + + com.google.apis + google-api-services-ftp + v1alpha-rev20260722-2.0.0 + Cloud FTP API v1alpha-rev20260722-2.0.0 + jar + + 2011 + + + + GoogleAPIs + GoogleAPIs + googleapis@googlegroups.com + Google + https://www.google.com + + + + + Google + http://www.google.com/ + + + + + The Apache Software License, Version 2.0 + http://www.apache.org/licenses/LICENSE-2.0.txt + repo + + + + + + ossrh + https://google.oss.sonatype.org/content/repositories/snapshots + + + + + + + maven-compiler-plugin + 3.9.0 + + 1.7 + 1.7 + + + + org.apache.maven.plugins + maven-source-plugin + 2.4 + + + org.apache.maven.plugins + maven-jar-plugin + 3.1.2 + + + + com.google.api.services.ftp + + + + + + org.apache.maven.plugins + maven-javadoc-plugin + 3.1.0 + + + attach-javadocs + + jar + + + + + none + Cloud FTP API ${project.version} + Cloud FTP API ${project.version} + + http://docs.oracle.com/javase/7/docs/api + https://googleapis.dev/java/google-http-client/${httpClientLibrary}/ + https://googleapis.dev/java/google-oauth-client/${oauthClientLibrary}/ + https://googleapis.dev/java/google-api-client/2.7.2/ + + + + + org.codehaus.mojo + clirr-maven-plugin + 2.8 + + clirr-ignored-differences.xml + true + + + + + check + + + + + + . + + + ./resources + + + + + + + com.google.api-client + google-api-client + 2.7.2 + + + + + UTF-8 + + + + + + release-sonatype + + + + !artifact-registry-url + + + + + + org.sonatype.plugins + nexus-staging-maven-plugin + 1.6.13 + true + + sonatype-nexus-staging + https://google.oss.sonatype.org/ + false + + + + + + + + release-gcp-artifact-registry + + artifactregistry://please-define-artifact-registry-url-property + + + + gcp-artifact-registry-repository + ${artifact-registry-url} + + + gcp-artifact-registry-repository + ${artifact-registry-url} + + + + + release-sign-artifacts + + + performRelease + true + + + + + + org.apache.maven.plugins + maven-gpg-plugin + 3.2.7 + + + sign-artifacts + verify + + sign + + + + --pinentry-mode + loopback + + + + + + + + + + \ No newline at end of file diff --git a/clients/google-api-services-ftp/v1alpha/README.md b/clients/google-api-services-ftp/v1alpha/README.md new file mode 100644 index 00000000000..b90cf425aa7 --- /dev/null +++ b/clients/google-api-services-ftp/v1alpha/README.md @@ -0,0 +1,44 @@ +# Cloud FTP API Client Library for Java + + + +This page contains information about getting started with the Cloud FTP API +using the Google API Client Library for Java. In addition, you may be interested +in the following documentation: + +* Browse the [Javadoc reference for the Cloud FTP API][javadoc] +* Read the [Developer's Guide for the Google API Client Library for Java][google-api-client]. +* Interact with this API in your browser using the [APIs Explorer for the Cloud FTP API][api-explorer] + +## Installation + +### Maven + +Add the following lines to your `pom.xml` file: + +```xml + + + + com.google.apis + google-api-services-ftp + v1alpha-rev20260722-2.0.0 + + + +``` + +### Gradle + +```gradle +repositories { + mavenCentral() +} +dependencies { + implementation 'com.google.apis:google-api-services-ftp:v1alpha-rev20260722-2.0.0' +} +``` + +[javadoc]: https://googleapis.dev/java/google-api-services-ftp/latest/index.html +[google-api-client]: https://github.com/googleapis/google-api-java-client/ +[api-explorer]: https://developers.google.com/apis-explorer/#p/ftp/v1/