Skip to content

Commit

Permalink
chore: regenerate memcache client (#18051)
Browse files Browse the repository at this point in the history
  • Loading branch information
yoshi-code-bot authored Sep 10, 2023
1 parent 1643206 commit d75cd72
Show file tree
Hide file tree
Showing 10 changed files with 528 additions and 8 deletions.
4 changes: 2 additions & 2 deletions clients/google-api-services-memcache/v1/2.0.0/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ Add the following lines to your `pom.xml` file:
<dependency>
<groupId>com.google.apis</groupId>
<artifactId>google-api-services-memcache</artifactId>
<version>v1-rev20230803-2.0.0</version>
<version>v1-rev20230907-2.0.0</version>
</dependency>
</dependencies>
</project>
Expand All @@ -35,7 +35,7 @@ repositories {
mavenCentral()
}
dependencies {
implementation 'com.google.apis:google-api-services-memcache:v1-rev20230803-2.0.0'
implementation 'com.google.apis:google-api-services-memcache:v1-rev20230907-2.0.0'
}
```

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1838,6 +1838,151 @@ public UpdateParameters set(String parameterName, Object value) {
return (UpdateParameters) super.set(parameterName, value);
}
}
/**
* Upgrades the Memcache instance to a newer memcached engine version specified in the request.
*
* Create a request for the method "instances.upgrade".
*
* This request holds the parameters needed by the memcache server. After setting any optional
* parameters, call the {@link Upgrade#execute()} method to invoke the remote operation.
*
* @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}
* @return the request
*/
public Upgrade upgrade(java.lang.String name, com.google.api.services.memcache.v1.model.GoogleCloudMemcacheV1UpgradeInstanceRequest content) throws java.io.IOException {
Upgrade result = new Upgrade(name, content);
initialize(result);
return result;
}

public class Upgrade extends CloudMemorystoreforMemcachedRequest<com.google.api.services.memcache.v1.model.Operation> {

private static final String REST_PATH = "v1/{+name}:upgrade";

private final java.util.regex.Pattern NAME_PATTERN =
java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/instances/[^/]+$");

/**
* Upgrades the Memcache instance to a newer memcached engine version specified in the request.
*
* Create a request for the method "instances.upgrade".
*
* This request holds the parameters needed by the the memcache server. After setting any
* optional parameters, call the {@link Upgrade#execute()} method to invoke the remote operation.
* <p> {@link
* Upgrade#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must
* be called to initialize this instance immediately after invoking the constructor. </p>
*
* @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);
}
}

}
/**
Expand Down
Original file line number Diff line number Diff line change
@@ -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.
*
* <p> 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:
* <a href="https://developers.google.com/api-client-library/java/google-http-java-client/json">https://developers.google.com/api-client-library/java/google-http-java-client/json</a>
* </p>
*
* @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();
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down Expand Up @@ -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.
Expand Down
4 changes: 2 additions & 2 deletions clients/google-api-services-memcache/v1/2.0.0/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@

<groupId>com.google.apis</groupId>
<artifactId>google-api-services-memcache</artifactId>
<version>v1-rev20230803-2.0.0</version>
<name>Cloud Memorystore for Memcached API v1-rev20230803-2.0.0</name>
<version>v1-rev20230907-2.0.0</version>
<name>Cloud Memorystore for Memcached API v1-rev20230907-2.0.0</name>
<packaging>jar</packaging>

<inceptionYear>2011</inceptionYear>
Expand Down
4 changes: 2 additions & 2 deletions clients/google-api-services-memcache/v1beta2/2.0.0/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ Add the following lines to your `pom.xml` file:
<dependency>
<groupId>com.google.apis</groupId>
<artifactId>google-api-services-memcache</artifactId>
<version>v1beta2-rev20230803-2.0.0</version>
<version>v1beta2-rev20230907-2.0.0</version>
</dependency>
</dependencies>
</project>
Expand All @@ -35,7 +35,7 @@ repositories {
mavenCentral()
}
dependencies {
implementation 'com.google.apis:google-api-services-memcache:v1beta2-rev20230803-2.0.0'
implementation 'com.google.apis:google-api-services-memcache:v1beta2-rev20230907-2.0.0'
}
```

Expand Down
Loading

0 comments on commit d75cd72

Please sign in to comment.