{@link + * Upgrade#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must + * be called to initialize this instance immediately after invoking the constructor.
+ * + * @param name Required. Memcache instance resource name using the form: + * `projects/{project}/locations/{location}/instances/{instance}` where `location_id` refers + * to a GCP region. + * @param content the {@link com.google.api.services.memcache.v1.model.GoogleCloudMemcacheV1UpgradeInstanceRequest} + * @since 1.13 + */ + protected Upgrade(java.lang.String name, com.google.api.services.memcache.v1.model.GoogleCloudMemcacheV1UpgradeInstanceRequest content) { + super(CloudMemorystoreforMemcached.this, "POST", REST_PATH, content, com.google.api.services.memcache.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/[^/]+/instances/[^/]+$"); + } + } + + @Override + public Upgrade set$Xgafv(java.lang.String $Xgafv) { + return (Upgrade) super.set$Xgafv($Xgafv); + } + + @Override + public Upgrade setAccessToken(java.lang.String accessToken) { + return (Upgrade) super.setAccessToken(accessToken); + } + + @Override + public Upgrade setAlt(java.lang.String alt) { + return (Upgrade) super.setAlt(alt); + } + + @Override + public Upgrade setCallback(java.lang.String callback) { + return (Upgrade) super.setCallback(callback); + } + + @Override + public Upgrade setFields(java.lang.String fields) { + return (Upgrade) super.setFields(fields); + } + + @Override + public Upgrade setKey(java.lang.String key) { + return (Upgrade) super.setKey(key); + } + + @Override + public Upgrade setOauthToken(java.lang.String oauthToken) { + return (Upgrade) super.setOauthToken(oauthToken); + } + + @Override + public Upgrade setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Upgrade) super.setPrettyPrint(prettyPrint); + } + + @Override + public Upgrade setQuotaUser(java.lang.String quotaUser) { + return (Upgrade) super.setQuotaUser(quotaUser); + } + + @Override + public Upgrade setUploadType(java.lang.String uploadType) { + return (Upgrade) super.setUploadType(uploadType); + } + + @Override + public Upgrade setUploadProtocol(java.lang.String uploadProtocol) { + return (Upgrade) super.setUploadProtocol(uploadProtocol); + } + + /** + * Required. Memcache instance resource name using the form: + * `projects/{project}/locations/{location}/instances/{instance}` where `location_id` + * refers to a GCP region. + */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** Required. Memcache instance resource name using the form: + `projects/{project}/locations/{location}/instances/{instance}` where `location_id` refers to a GCP + region. + */ + public java.lang.String getName() { + return name; + } + + /** + * Required. Memcache instance resource name using the form: + * `projects/{project}/locations/{location}/instances/{instance}` where `location_id` + * refers to a GCP region. + */ + public Upgrade 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/[^/]+/instances/[^/]+$"); + } + this.name = name; + return this; + } + + @Override + public Upgrade set(String parameterName, Object value) { + return (Upgrade) super.set(parameterName, value); + } + } } /** diff --git a/clients/google-api-services-memcache/v1/2.0.0/com/google/api/services/memcache/v1/model/GoogleCloudMemcacheV1UpgradeInstanceRequest.java b/clients/google-api-services-memcache/v1/2.0.0/com/google/api/services/memcache/v1/model/GoogleCloudMemcacheV1UpgradeInstanceRequest.java new file mode 100644 index 00000000000..c62bd4f0d68 --- /dev/null +++ b/clients/google-api-services-memcache/v1/2.0.0/com/google/api/services/memcache/v1/model/GoogleCloudMemcacheV1UpgradeInstanceRequest.java @@ -0,0 +1,67 @@ +/* + * 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.memcache.v1.model; + +/** + * Request for UpgradeInstance. + * + *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 Memorystore for Memcached 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 GoogleCloudMemcacheV1UpgradeInstanceRequest extends com.google.api.client.json.GenericJson { + + /** + * Required. Specifies the target version of memcached engine to upgrade to. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String memcacheVersion; + + /** + * Required. Specifies the target version of memcached engine to upgrade to. + * @return value or {@code null} for none + */ + public java.lang.String getMemcacheVersion() { + return memcacheVersion; + } + + /** + * Required. Specifies the target version of memcached engine to upgrade to. + * @param memcacheVersion memcacheVersion or {@code null} for none + */ + public GoogleCloudMemcacheV1UpgradeInstanceRequest setMemcacheVersion(java.lang.String memcacheVersion) { + this.memcacheVersion = memcacheVersion; + return this; + } + + @Override + public GoogleCloudMemcacheV1UpgradeInstanceRequest set(String fieldName, Object value) { + return (GoogleCloudMemcacheV1UpgradeInstanceRequest) super.set(fieldName, value); + } + + @Override + public GoogleCloudMemcacheV1UpgradeInstanceRequest clone() { + return (GoogleCloudMemcacheV1UpgradeInstanceRequest) super.clone(); + } + +} diff --git a/clients/google-api-services-memcache/v1/2.0.0/com/google/api/services/memcache/v1/model/Node.java b/clients/google-api-services-memcache/v1/2.0.0/com/google/api/services/memcache/v1/model/Node.java index 4561da1bd9a..27fdaae368b 100644 --- a/clients/google-api-services-memcache/v1/2.0.0/com/google/api/services/memcache/v1/model/Node.java +++ b/clients/google-api-services-memcache/v1/2.0.0/com/google/api/services/memcache/v1/model/Node.java @@ -38,6 +38,20 @@ public final class Node extends com.google.api.client.json.GenericJson { @com.google.api.client.util.Key private java.lang.String host; + /** + * Output only. The full version of memcached server running on this node. e.g. - memcached-1.5.16 + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String memcacheFullVersion; + + /** + * Output only. Major version of memcached server running on this node, e.g. MEMCACHE_1_5 + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String memcacheVersion; + /** * Output only. Identifier of the Memcached node. The node id does not include project or location * like the Memcached instance name. @@ -93,6 +107,40 @@ public Node setHost(java.lang.String host) { return this; } + /** + * Output only. The full version of memcached server running on this node. e.g. - memcached-1.5.16 + * @return value or {@code null} for none + */ + public java.lang.String getMemcacheFullVersion() { + return memcacheFullVersion; + } + + /** + * Output only. The full version of memcached server running on this node. e.g. - memcached-1.5.16 + * @param memcacheFullVersion memcacheFullVersion or {@code null} for none + */ + public Node setMemcacheFullVersion(java.lang.String memcacheFullVersion) { + this.memcacheFullVersion = memcacheFullVersion; + return this; + } + + /** + * Output only. Major version of memcached server running on this node, e.g. MEMCACHE_1_5 + * @return value or {@code null} for none + */ + public java.lang.String getMemcacheVersion() { + return memcacheVersion; + } + + /** + * Output only. Major version of memcached server running on this node, e.g. MEMCACHE_1_5 + * @param memcacheVersion memcacheVersion or {@code null} for none + */ + public Node setMemcacheVersion(java.lang.String memcacheVersion) { + this.memcacheVersion = memcacheVersion; + return this; + } + /** * Output only. Identifier of the Memcached node. The node id does not include project or location * like the Memcached instance name. diff --git a/clients/google-api-services-memcache/v1/2.0.0/pom.xml b/clients/google-api-services-memcache/v1/2.0.0/pom.xml index 96eb866a995..df1090165cc 100644 --- a/clients/google-api-services-memcache/v1/2.0.0/pom.xml +++ b/clients/google-api-services-memcache/v1/2.0.0/pom.xml @@ -8,8 +8,8 @@{@link + * Upgrade#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must + * be called to initialize this instance immediately after invoking the constructor.
+ * + * @param name Required. Memcache instance resource name using the form: + * `projects/{project}/locations/{location}/instances/{instance}` where `location_id` refers + * to a GCP region. + * @param content the {@link com.google.api.services.memcache.v1beta2.model.GoogleCloudMemcacheV1beta2UpgradeInstanceRequest} + * @since 1.13 + */ + protected Upgrade(java.lang.String name, com.google.api.services.memcache.v1beta2.model.GoogleCloudMemcacheV1beta2UpgradeInstanceRequest content) { + super(CloudMemorystoreforMemcached.this, "POST", REST_PATH, content, com.google.api.services.memcache.v1beta2.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/[^/]+/instances/[^/]+$"); + } + } + + @Override + public Upgrade set$Xgafv(java.lang.String $Xgafv) { + return (Upgrade) super.set$Xgafv($Xgafv); + } + + @Override + public Upgrade setAccessToken(java.lang.String accessToken) { + return (Upgrade) super.setAccessToken(accessToken); + } + + @Override + public Upgrade setAlt(java.lang.String alt) { + return (Upgrade) super.setAlt(alt); + } + + @Override + public Upgrade setCallback(java.lang.String callback) { + return (Upgrade) super.setCallback(callback); + } + + @Override + public Upgrade setFields(java.lang.String fields) { + return (Upgrade) super.setFields(fields); + } + + @Override + public Upgrade setKey(java.lang.String key) { + return (Upgrade) super.setKey(key); + } + + @Override + public Upgrade setOauthToken(java.lang.String oauthToken) { + return (Upgrade) super.setOauthToken(oauthToken); + } + + @Override + public Upgrade setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Upgrade) super.setPrettyPrint(prettyPrint); + } + + @Override + public Upgrade setQuotaUser(java.lang.String quotaUser) { + return (Upgrade) super.setQuotaUser(quotaUser); + } + + @Override + public Upgrade setUploadType(java.lang.String uploadType) { + return (Upgrade) super.setUploadType(uploadType); + } + + @Override + public Upgrade setUploadProtocol(java.lang.String uploadProtocol) { + return (Upgrade) super.setUploadProtocol(uploadProtocol); + } + + /** + * Required. Memcache instance resource name using the form: + * `projects/{project}/locations/{location}/instances/{instance}` where `location_id` + * refers to a GCP region. + */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** Required. Memcache instance resource name using the form: + `projects/{project}/locations/{location}/instances/{instance}` where `location_id` refers to a GCP + region. + */ + public java.lang.String getName() { + return name; + } + + /** + * Required. Memcache instance resource name using the form: + * `projects/{project}/locations/{location}/instances/{instance}` where `location_id` + * refers to a GCP region. + */ + public Upgrade 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/[^/]+/instances/[^/]+$"); + } + this.name = name; + return this; + } + + @Override + public Upgrade set(String parameterName, Object value) { + return (Upgrade) super.set(parameterName, value); + } + } } /** diff --git a/clients/google-api-services-memcache/v1beta2/2.0.0/com/google/api/services/memcache/v1beta2/model/GoogleCloudMemcacheV1beta2UpgradeInstanceRequest.java b/clients/google-api-services-memcache/v1beta2/2.0.0/com/google/api/services/memcache/v1beta2/model/GoogleCloudMemcacheV1beta2UpgradeInstanceRequest.java new file mode 100644 index 00000000000..d217cdec527 --- /dev/null +++ b/clients/google-api-services-memcache/v1beta2/2.0.0/com/google/api/services/memcache/v1beta2/model/GoogleCloudMemcacheV1beta2UpgradeInstanceRequest.java @@ -0,0 +1,67 @@ +/* + * 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.memcache.v1beta2.model; + +/** + * Request for UpgradeInstance. + * + *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 Memorystore for Memcached 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 GoogleCloudMemcacheV1beta2UpgradeInstanceRequest extends com.google.api.client.json.GenericJson { + + /** + * Required. Specifies the target version of memcached engine to upgrade to. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String memcacheVersion; + + /** + * Required. Specifies the target version of memcached engine to upgrade to. + * @return value or {@code null} for none + */ + public java.lang.String getMemcacheVersion() { + return memcacheVersion; + } + + /** + * Required. Specifies the target version of memcached engine to upgrade to. + * @param memcacheVersion memcacheVersion or {@code null} for none + */ + public GoogleCloudMemcacheV1beta2UpgradeInstanceRequest setMemcacheVersion(java.lang.String memcacheVersion) { + this.memcacheVersion = memcacheVersion; + return this; + } + + @Override + public GoogleCloudMemcacheV1beta2UpgradeInstanceRequest set(String fieldName, Object value) { + return (GoogleCloudMemcacheV1beta2UpgradeInstanceRequest) super.set(fieldName, value); + } + + @Override + public GoogleCloudMemcacheV1beta2UpgradeInstanceRequest clone() { + return (GoogleCloudMemcacheV1beta2UpgradeInstanceRequest) super.clone(); + } + +} diff --git a/clients/google-api-services-memcache/v1beta2/2.0.0/com/google/api/services/memcache/v1beta2/model/Node.java b/clients/google-api-services-memcache/v1beta2/2.0.0/com/google/api/services/memcache/v1beta2/model/Node.java index fef4215198d..6226776ace3 100644 --- a/clients/google-api-services-memcache/v1beta2/2.0.0/com/google/api/services/memcache/v1beta2/model/Node.java +++ b/clients/google-api-services-memcache/v1beta2/2.0.0/com/google/api/services/memcache/v1beta2/model/Node.java @@ -38,6 +38,20 @@ public final class Node extends com.google.api.client.json.GenericJson { @com.google.api.client.util.Key private java.lang.String host; + /** + * Output only. The full version of memcached server running on this node. e.g. - memcached-1.5.16 + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String memcacheFullVersion; + + /** + * Output only. Major version of memcached server running on this node, e.g. MEMCACHE_1_5 + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String memcacheVersion; + /** * Output only. Identifier of the Memcached node. The node id does not include project or location * like the Memcached instance name. @@ -100,6 +114,40 @@ public Node setHost(java.lang.String host) { return this; } + /** + * Output only. The full version of memcached server running on this node. e.g. - memcached-1.5.16 + * @return value or {@code null} for none + */ + public java.lang.String getMemcacheFullVersion() { + return memcacheFullVersion; + } + + /** + * Output only. The full version of memcached server running on this node. e.g. - memcached-1.5.16 + * @param memcacheFullVersion memcacheFullVersion or {@code null} for none + */ + public Node setMemcacheFullVersion(java.lang.String memcacheFullVersion) { + this.memcacheFullVersion = memcacheFullVersion; + return this; + } + + /** + * Output only. Major version of memcached server running on this node, e.g. MEMCACHE_1_5 + * @return value or {@code null} for none + */ + public java.lang.String getMemcacheVersion() { + return memcacheVersion; + } + + /** + * Output only. Major version of memcached server running on this node, e.g. MEMCACHE_1_5 + * @param memcacheVersion memcacheVersion or {@code null} for none + */ + public Node setMemcacheVersion(java.lang.String memcacheVersion) { + this.memcacheVersion = memcacheVersion; + return this; + } + /** * Output only. Identifier of the Memcached node. The node id does not include project or location * like the Memcached instance name. diff --git a/clients/google-api-services-memcache/v1beta2/2.0.0/pom.xml b/clients/google-api-services-memcache/v1beta2/2.0.0/pom.xml index 642963d719a..b23af6775f0 100644 --- a/clients/google-api-services-memcache/v1beta2/2.0.0/pom.xml +++ b/clients/google-api-services-memcache/v1beta2/2.0.0/pom.xml @@ -8,8 +8,8 @@