From b4f3b68e6fdc132248be4425a3504c9bf937bda0 Mon Sep 17 00:00:00 2001
From: yoshi-code-bot <70984784+yoshi-code-bot@users.noreply.github.com>
Date: Sun, 26 Jul 2026 18:08:43 -0700
Subject: [PATCH] chore: regenerate redis client
---
.../v1/2.0.0/README.md | 4 +-
.../api/services/redis/v1/CloudRedis.java | 360 ++++++++++++++++++
.../services/redis/v1/model/AclPolicy.java | 72 ++++
.../redis/v1/model/AclPolicyInfo.java | 145 +++++++
.../redis/v1/model/AclPolicyRevision.java | 166 ++++++++
.../v1/model/AclPolicyRevisionStatus.java | 142 +++++++
.../api/services/redis/v1/model/Cluster.java | 24 ++
.../v1/model/ClusterAclPolicyAttachment.java | 101 +++++
.../model/ListAclPolicyRevisionsResponse.java | 121 ++++++
.../v1/2.0.0/pom.xml | 4 +-
.../google-api-services-redis/v1/README.md | 4 +-
.../v1beta1/2.0.0/README.md | 4 +-
.../services/redis/v1beta1/CloudRedis.java | 360 ++++++++++++++++++
.../redis/v1beta1/model/AclPolicy.java | 72 ++++
.../redis/v1beta1/model/AclPolicyInfo.java | 145 +++++++
.../v1beta1/model/AclPolicyRevision.java | 166 ++++++++
.../model/AclPolicyRevisionStatus.java | 142 +++++++
.../services/redis/v1beta1/model/Cluster.java | 24 ++
.../model/ClusterAclPolicyAttachment.java | 101 +++++
.../model/ListAclPolicyRevisionsResponse.java | 121 ++++++
.../v1beta1/2.0.0/pom.xml | 4 +-
.../v1beta1/README.md | 4 +-
22 files changed, 2274 insertions(+), 12 deletions(-)
create mode 100644 clients/google-api-services-redis/v1/2.0.0/com/google/api/services/redis/v1/model/AclPolicyInfo.java
create mode 100644 clients/google-api-services-redis/v1/2.0.0/com/google/api/services/redis/v1/model/AclPolicyRevision.java
create mode 100644 clients/google-api-services-redis/v1/2.0.0/com/google/api/services/redis/v1/model/AclPolicyRevisionStatus.java
create mode 100644 clients/google-api-services-redis/v1/2.0.0/com/google/api/services/redis/v1/model/ClusterAclPolicyAttachment.java
create mode 100644 clients/google-api-services-redis/v1/2.0.0/com/google/api/services/redis/v1/model/ListAclPolicyRevisionsResponse.java
create mode 100644 clients/google-api-services-redis/v1beta1/2.0.0/com/google/api/services/redis/v1beta1/model/AclPolicyInfo.java
create mode 100644 clients/google-api-services-redis/v1beta1/2.0.0/com/google/api/services/redis/v1beta1/model/AclPolicyRevision.java
create mode 100644 clients/google-api-services-redis/v1beta1/2.0.0/com/google/api/services/redis/v1beta1/model/AclPolicyRevisionStatus.java
create mode 100644 clients/google-api-services-redis/v1beta1/2.0.0/com/google/api/services/redis/v1beta1/model/ClusterAclPolicyAttachment.java
create mode 100644 clients/google-api-services-redis/v1beta1/2.0.0/com/google/api/services/redis/v1beta1/model/ListAclPolicyRevisionsResponse.java
diff --git a/clients/google-api-services-redis/v1/2.0.0/README.md b/clients/google-api-services-redis/v1/2.0.0/README.md
index 99dc245a918..433b54caa54 100644
--- a/clients/google-api-services-redis/v1/2.0.0/README.md
+++ b/clients/google-api-services-redis/v1/2.0.0/README.md
@@ -22,7 +22,7 @@ Add the following lines to your `pom.xml` file:
The typical use is:
+ *
+ * {@code CloudRedis redis = new CloudRedis(...);}
+ * {@code CloudRedis.Revisions.List request = redis.revisions().list(parameters ...)}
+ *
+ *
+ * @return the resource collection
+ */
+ public Revisions revisions() {
+ return new Revisions();
+ }
+
+ /**
+ * The "revisions" collection of methods.
+ */
+ public class Revisions {
+
+ /**
+ * Gets details of a specific ACL policy revision.
+ *
+ * Create a request for the method "revisions.get".
+ *
+ * This request holds the parameters needed by the redis server. After setting any optional
+ * parameters, call the {@link Get#execute()} method to invoke the remote operation.
+ *
+ * @param name Required. Redis ACL policy revision resource name using the form:
+ * `projects/{project_id}/locations/{location_id}/aclPolicies/{acl_policy_id}/revisions/{revi
+ * sion_id}` where `location_id` refers to a GCP region.
+ * @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 CloudRedisRequest{@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. Redis ACL policy revision resource name using the form: + * `projects/{project_id}/locations/{location_id}/aclPolicies/{acl_policy_id}/revisions/{revi + * sion_id}` where `location_id` refers to a GCP region. + * @since 1.13 + */ + protected Get(java.lang.String name) { + super(CloudRedis.this, "GET", REST_PATH, null, com.google.api.services.redis.v1.model.AclPolicyRevision.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/[^/]+/aclPolicies/[^/]+/revisions/[^/]+$"); + } + } + + @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. Redis ACL policy revision resource name using the form: `projects/{project_ + * id}/locations/{location_id}/aclPolicies/{acl_policy_id}/revisions/{revision_id}` + * where `location_id` refers to a GCP region. + */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** Required. Redis ACL policy revision resource name using the form: + `projects/{project_id}/locations/{location_id}/aclPolicies/{acl_policy_id}/revisions/{revision_id}` + where `location_id` refers to a GCP region. + */ + public java.lang.String getName() { + return name; + } + + /** + * Required. Redis ACL policy revision resource name using the form: `projects/{project_ + * id}/locations/{location_id}/aclPolicies/{acl_policy_id}/revisions/{revision_id}` + * where `location_id` refers to a GCP region. + */ + 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/[^/]+/aclPolicies/[^/]+/revisions/[^/]+$"); + } + this.name = name; + return this; + } + + @Override + public Get set(String parameterName, Object value) { + return (Get) super.set(parameterName, value); + } + } + /** + * Lists all ACL policy revisions in a given ACL policy. + * + * Create a request for the method "revisions.list". + * + * This request holds the parameters needed by the redis server. After setting any optional + * parameters, call the {@link List#execute()} method to invoke the remote operation. + * + * @param parent Required. The name of the ACL policy to list revisions for. Format: + * "projects/{project_id}/locations/{location_id}/aclPolicies/{acl_policy_id}" + * @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 CloudRedisRequest{@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. The name of the ACL policy to list revisions for. Format: + * "projects/{project_id}/locations/{location_id}/aclPolicies/{acl_policy_id}" + * @since 1.13 + */ + protected List(java.lang.String parent) { + super(CloudRedis.this, "GET", REST_PATH, null, com.google.api.services.redis.v1.model.ListAclPolicyRevisionsResponse.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/[^/]+/aclPolicies/[^/]+$"); + } + } + + @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. The name of the ACL policy to list revisions for. Format: + * "projects/{project_id}/locations/{location_id}/aclPolicies/{acl_policy_id}" + */ + @com.google.api.client.util.Key + private java.lang.String parent; + + /** Required. The name of the ACL policy to list revisions for. Format: + "projects/{project_id}/locations/{location_id}/aclPolicies/{acl_policy_id}" + */ + public java.lang.String getParent() { + return parent; + } + + /** + * Required. The name of the ACL policy to list revisions for. Format: + * "projects/{project_id}/locations/{location_id}/aclPolicies/{acl_policy_id}" + */ + 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/[^/]+/aclPolicies/[^/]+$"); + } + this.parent = parent; + return this; + } + + /** Optional. The maximum number of items to return. */ + @com.google.api.client.util.Key + private java.lang.Integer pageSize; + + /** Optional. The maximum number of items to return. + */ + public java.lang.Integer getPageSize() { + return pageSize; + } + + /** Optional. The maximum number of items to return. */ + public List setPageSize(java.lang.Integer pageSize) { + this.pageSize = pageSize; + return this; + } + + /** + * Optional. The `next_page_token` value returned from a previous + * `ListAclPolicyRevisions` request, if any. + */ + @com.google.api.client.util.Key + private java.lang.String pageToken; + + /** Optional. The `next_page_token` value returned from a previous `ListAclPolicyRevisions` request, if + any. + */ + public java.lang.String getPageToken() { + return pageToken; + } + + /** + * Optional. The `next_page_token` value returned from a previous + * `ListAclPolicyRevisions` request, if any. + */ + 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 BackupCollections collection. diff --git a/clients/google-api-services-redis/v1/2.0.0/com/google/api/services/redis/v1/model/AclPolicy.java b/clients/google-api-services-redis/v1/2.0.0/com/google/api/services/redis/v1/model/AclPolicy.java index c012e2237f5..3bbb0f7ce30 100644 --- a/clients/google-api-services-redis/v1/2.0.0/com/google/api/services/redis/v1/model/AclPolicy.java +++ b/clients/google-api-services-redis/v1/2.0.0/com/google/api/services/redis/v1/model/AclPolicy.java @@ -30,6 +30,20 @@ @SuppressWarnings("javadoc") public final class AclPolicy extends com.google.api.client.json.GenericJson { + /** + * Output only. The ACL policy attachment status for each attached cluster. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.ListThis is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Google Cloud Memorystore for Redis 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 AclPolicyInfo extends com.google.api.client.json.GenericJson { + + /** + * Output only. A list of status for various revisions of this ACL policy on the cluster. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.ListThis is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Google Cloud Memorystore for Redis 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 AclPolicyRevision extends com.google.api.client.json.GenericJson { + + /** + * Output only. A list of clusters that are attached to this ACL policy revision. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.ListThis is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Google Cloud Memorystore for Redis 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 AclPolicyRevisionStatus extends com.google.api.client.json.GenericJson { + + /** + * Output only. The resource name of the ACL policy revision this status refers to. Format: + * "projects/{project}/locations/{location}/aclPolicies/{acl_policy}/revisions/{revision}" + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String aclPolicyRevision; + + /** + * Output only. The revision number of the ACL policy revision this status refers to. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key @com.google.api.client.json.JsonString + private java.lang.Long aclPolicyRevisionNumber; + + /** + * Output only. Human-readable error message providing more details for FAILED states. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String errorMessage; + + /** + * Output only. AclPolicyRevision state. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String state; + + /** + * Output only. The resource name of the ACL policy revision this status refers to. Format: + * "projects/{project}/locations/{location}/aclPolicies/{acl_policy}/revisions/{revision}" + * @return value or {@code null} for none + */ + public java.lang.String getAclPolicyRevision() { + return aclPolicyRevision; + } + + /** + * Output only. The resource name of the ACL policy revision this status refers to. Format: + * "projects/{project}/locations/{location}/aclPolicies/{acl_policy}/revisions/{revision}" + * @param aclPolicyRevision aclPolicyRevision or {@code null} for none + */ + public AclPolicyRevisionStatus setAclPolicyRevision(java.lang.String aclPolicyRevision) { + this.aclPolicyRevision = aclPolicyRevision; + return this; + } + + /** + * Output only. The revision number of the ACL policy revision this status refers to. + * @return value or {@code null} for none + */ + public java.lang.Long getAclPolicyRevisionNumber() { + return aclPolicyRevisionNumber; + } + + /** + * Output only. The revision number of the ACL policy revision this status refers to. + * @param aclPolicyRevisionNumber aclPolicyRevisionNumber or {@code null} for none + */ + public AclPolicyRevisionStatus setAclPolicyRevisionNumber(java.lang.Long aclPolicyRevisionNumber) { + this.aclPolicyRevisionNumber = aclPolicyRevisionNumber; + return this; + } + + /** + * Output only. Human-readable error message providing more details for FAILED states. + * @return value or {@code null} for none + */ + public java.lang.String getErrorMessage() { + return errorMessage; + } + + /** + * Output only. Human-readable error message providing more details for FAILED states. + * @param errorMessage errorMessage or {@code null} for none + */ + public AclPolicyRevisionStatus setErrorMessage(java.lang.String errorMessage) { + this.errorMessage = errorMessage; + return this; + } + + /** + * Output only. AclPolicyRevision state. + * @return value or {@code null} for none + */ + public java.lang.String getState() { + return state; + } + + /** + * Output only. AclPolicyRevision state. + * @param state state or {@code null} for none + */ + public AclPolicyRevisionStatus setState(java.lang.String state) { + this.state = state; + return this; + } + + @Override + public AclPolicyRevisionStatus set(String fieldName, Object value) { + return (AclPolicyRevisionStatus) super.set(fieldName, value); + } + + @Override + public AclPolicyRevisionStatus clone() { + return (AclPolicyRevisionStatus) super.clone(); + } + +} diff --git a/clients/google-api-services-redis/v1/2.0.0/com/google/api/services/redis/v1/model/Cluster.java b/clients/google-api-services-redis/v1/2.0.0/com/google/api/services/redis/v1/model/Cluster.java index 4fe37662e93..0a2fa602d08 100644 --- a/clients/google-api-services-redis/v1/2.0.0/com/google/api/services/redis/v1/model/Cluster.java +++ b/clients/google-api-services-redis/v1/2.0.0/com/google/api/services/redis/v1/model/Cluster.java @@ -45,6 +45,13 @@ public final class Cluster extends com.google.api.client.json.GenericJson { @com.google.api.client.util.Key private java.lang.Boolean aclPolicyInSync; + /** + * Output only. Details of the applied ACL policy. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private AclPolicyInfo aclPolicyInfo; + /** * Optional. Immutable. Deprecated, do not use. * The value may be {@code null}. @@ -403,6 +410,23 @@ public Cluster setAclPolicyInSync(java.lang.Boolean aclPolicyInSync) { return this; } + /** + * Output only. Details of the applied ACL policy. + * @return value or {@code null} for none + */ + public AclPolicyInfo getAclPolicyInfo() { + return aclPolicyInfo; + } + + /** + * Output only. Details of the applied ACL policy. + * @param aclPolicyInfo aclPolicyInfo or {@code null} for none + */ + public Cluster setAclPolicyInfo(AclPolicyInfo aclPolicyInfo) { + this.aclPolicyInfo = aclPolicyInfo; + return this; + } + /** * Optional. Immutable. Deprecated, do not use. * @return value or {@code null} for none diff --git a/clients/google-api-services-redis/v1/2.0.0/com/google/api/services/redis/v1/model/ClusterAclPolicyAttachment.java b/clients/google-api-services-redis/v1/2.0.0/com/google/api/services/redis/v1/model/ClusterAclPolicyAttachment.java new file mode 100644 index 00000000000..4707db80929 --- /dev/null +++ b/clients/google-api-services-redis/v1/2.0.0/com/google/api/services/redis/v1/model/ClusterAclPolicyAttachment.java @@ -0,0 +1,101 @@ +/* + * 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.redis.v1.model; + +/** + * ClusterAclPolicyAttachment stores the ACL policy status for an attached cluster for the revisions + * successfully applied, under application or failed. + * + *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 Google Cloud Memorystore for Redis 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 ClusterAclPolicyAttachment extends com.google.api.client.json.GenericJson { + + /** + * Output only. A list of status for various revisions of this ACL policy on the cluster. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.ListThis is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Google Cloud Memorystore for Redis 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 ListAclPolicyRevisionsResponse extends com.google.api.client.json.GenericJson { + + /** + * A list of ACL policy revisions. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.ListThe typical use is:
+ *
+ * {@code CloudRedis redis = new CloudRedis(...);}
+ * {@code CloudRedis.Revisions.List request = redis.revisions().list(parameters ...)}
+ *
+ *
+ * @return the resource collection
+ */
+ public Revisions revisions() {
+ return new Revisions();
+ }
+
+ /**
+ * The "revisions" collection of methods.
+ */
+ public class Revisions {
+
+ /**
+ * Gets details of a specific ACL policy revision.
+ *
+ * Create a request for the method "revisions.get".
+ *
+ * This request holds the parameters needed by the redis server. After setting any optional
+ * parameters, call the {@link Get#execute()} method to invoke the remote operation.
+ *
+ * @param name Required. Redis ACL policy revision resource name using the form:
+ * `projects/{project_id}/locations/{location_id}/aclPolicies/{acl_policy_id}/revisions/{revi
+ * sion_id}` where `location_id` refers to a GCP region.
+ * @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 CloudRedisRequest{@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. Redis ACL policy revision resource name using the form: + * `projects/{project_id}/locations/{location_id}/aclPolicies/{acl_policy_id}/revisions/{revi + * sion_id}` where `location_id` refers to a GCP region. + * @since 1.13 + */ + protected Get(java.lang.String name) { + super(CloudRedis.this, "GET", REST_PATH, null, com.google.api.services.redis.v1beta1.model.AclPolicyRevision.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/[^/]+/aclPolicies/[^/]+/revisions/[^/]+$"); + } + } + + @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. Redis ACL policy revision resource name using the form: `projects/{project_ + * id}/locations/{location_id}/aclPolicies/{acl_policy_id}/revisions/{revision_id}` + * where `location_id` refers to a GCP region. + */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** Required. Redis ACL policy revision resource name using the form: + `projects/{project_id}/locations/{location_id}/aclPolicies/{acl_policy_id}/revisions/{revision_id}` + where `location_id` refers to a GCP region. + */ + public java.lang.String getName() { + return name; + } + + /** + * Required. Redis ACL policy revision resource name using the form: `projects/{project_ + * id}/locations/{location_id}/aclPolicies/{acl_policy_id}/revisions/{revision_id}` + * where `location_id` refers to a GCP region. + */ + 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/[^/]+/aclPolicies/[^/]+/revisions/[^/]+$"); + } + this.name = name; + return this; + } + + @Override + public Get set(String parameterName, Object value) { + return (Get) super.set(parameterName, value); + } + } + /** + * Lists all ACL policy revisions in a given ACL policy. + * + * Create a request for the method "revisions.list". + * + * This request holds the parameters needed by the redis server. After setting any optional + * parameters, call the {@link List#execute()} method to invoke the remote operation. + * + * @param parent Required. The name of the ACL policy to list revisions for. Format: + * "projects/{project_id}/locations/{location_id}/aclPolicies/{acl_policy_id}" + * @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 CloudRedisRequest{@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. The name of the ACL policy to list revisions for. Format: + * "projects/{project_id}/locations/{location_id}/aclPolicies/{acl_policy_id}" + * @since 1.13 + */ + protected List(java.lang.String parent) { + super(CloudRedis.this, "GET", REST_PATH, null, com.google.api.services.redis.v1beta1.model.ListAclPolicyRevisionsResponse.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/[^/]+/aclPolicies/[^/]+$"); + } + } + + @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. The name of the ACL policy to list revisions for. Format: + * "projects/{project_id}/locations/{location_id}/aclPolicies/{acl_policy_id}" + */ + @com.google.api.client.util.Key + private java.lang.String parent; + + /** Required. The name of the ACL policy to list revisions for. Format: + "projects/{project_id}/locations/{location_id}/aclPolicies/{acl_policy_id}" + */ + public java.lang.String getParent() { + return parent; + } + + /** + * Required. The name of the ACL policy to list revisions for. Format: + * "projects/{project_id}/locations/{location_id}/aclPolicies/{acl_policy_id}" + */ + 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/[^/]+/aclPolicies/[^/]+$"); + } + this.parent = parent; + return this; + } + + /** Optional. The maximum number of items to return. */ + @com.google.api.client.util.Key + private java.lang.Integer pageSize; + + /** Optional. The maximum number of items to return. + */ + public java.lang.Integer getPageSize() { + return pageSize; + } + + /** Optional. The maximum number of items to return. */ + public List setPageSize(java.lang.Integer pageSize) { + this.pageSize = pageSize; + return this; + } + + /** + * Optional. The `next_page_token` value returned from a previous + * `ListAclPolicyRevisions` request, if any. + */ + @com.google.api.client.util.Key + private java.lang.String pageToken; + + /** Optional. The `next_page_token` value returned from a previous `ListAclPolicyRevisions` request, if + any. + */ + public java.lang.String getPageToken() { + return pageToken; + } + + /** + * Optional. The `next_page_token` value returned from a previous + * `ListAclPolicyRevisions` request, if any. + */ + 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 BackupCollections collection. diff --git a/clients/google-api-services-redis/v1beta1/2.0.0/com/google/api/services/redis/v1beta1/model/AclPolicy.java b/clients/google-api-services-redis/v1beta1/2.0.0/com/google/api/services/redis/v1beta1/model/AclPolicy.java index 25d026b8973..5e46a86901d 100644 --- a/clients/google-api-services-redis/v1beta1/2.0.0/com/google/api/services/redis/v1beta1/model/AclPolicy.java +++ b/clients/google-api-services-redis/v1beta1/2.0.0/com/google/api/services/redis/v1beta1/model/AclPolicy.java @@ -30,6 +30,20 @@ @SuppressWarnings("javadoc") public final class AclPolicy extends com.google.api.client.json.GenericJson { + /** + * Output only. The ACL policy attachment status for each attached cluster. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.ListThis is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Google Cloud Memorystore for Redis 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 AclPolicyInfo extends com.google.api.client.json.GenericJson { + + /** + * Output only. A list of status for various revisions of this ACL policy on the cluster. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.ListThis is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Google Cloud Memorystore for Redis 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 AclPolicyRevision extends com.google.api.client.json.GenericJson { + + /** + * Output only. A list of clusters that are attached to this ACL policy revision. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.ListThis is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Google Cloud Memorystore for Redis 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 AclPolicyRevisionStatus extends com.google.api.client.json.GenericJson { + + /** + * Output only. The resource name of the ACL policy revision this status refers to. Format: + * "projects/{project}/locations/{location}/aclPolicies/{acl_policy}/revisions/{revision}" + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String aclPolicyRevision; + + /** + * Output only. The revision number of the ACL policy revision this status refers to. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key @com.google.api.client.json.JsonString + private java.lang.Long aclPolicyRevisionNumber; + + /** + * Output only. Human-readable error message providing more details for FAILED states. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String errorMessage; + + /** + * Output only. AclPolicyRevision state. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String state; + + /** + * Output only. The resource name of the ACL policy revision this status refers to. Format: + * "projects/{project}/locations/{location}/aclPolicies/{acl_policy}/revisions/{revision}" + * @return value or {@code null} for none + */ + public java.lang.String getAclPolicyRevision() { + return aclPolicyRevision; + } + + /** + * Output only. The resource name of the ACL policy revision this status refers to. Format: + * "projects/{project}/locations/{location}/aclPolicies/{acl_policy}/revisions/{revision}" + * @param aclPolicyRevision aclPolicyRevision or {@code null} for none + */ + public AclPolicyRevisionStatus setAclPolicyRevision(java.lang.String aclPolicyRevision) { + this.aclPolicyRevision = aclPolicyRevision; + return this; + } + + /** + * Output only. The revision number of the ACL policy revision this status refers to. + * @return value or {@code null} for none + */ + public java.lang.Long getAclPolicyRevisionNumber() { + return aclPolicyRevisionNumber; + } + + /** + * Output only. The revision number of the ACL policy revision this status refers to. + * @param aclPolicyRevisionNumber aclPolicyRevisionNumber or {@code null} for none + */ + public AclPolicyRevisionStatus setAclPolicyRevisionNumber(java.lang.Long aclPolicyRevisionNumber) { + this.aclPolicyRevisionNumber = aclPolicyRevisionNumber; + return this; + } + + /** + * Output only. Human-readable error message providing more details for FAILED states. + * @return value or {@code null} for none + */ + public java.lang.String getErrorMessage() { + return errorMessage; + } + + /** + * Output only. Human-readable error message providing more details for FAILED states. + * @param errorMessage errorMessage or {@code null} for none + */ + public AclPolicyRevisionStatus setErrorMessage(java.lang.String errorMessage) { + this.errorMessage = errorMessage; + return this; + } + + /** + * Output only. AclPolicyRevision state. + * @return value or {@code null} for none + */ + public java.lang.String getState() { + return state; + } + + /** + * Output only. AclPolicyRevision state. + * @param state state or {@code null} for none + */ + public AclPolicyRevisionStatus setState(java.lang.String state) { + this.state = state; + return this; + } + + @Override + public AclPolicyRevisionStatus set(String fieldName, Object value) { + return (AclPolicyRevisionStatus) super.set(fieldName, value); + } + + @Override + public AclPolicyRevisionStatus clone() { + return (AclPolicyRevisionStatus) super.clone(); + } + +} diff --git a/clients/google-api-services-redis/v1beta1/2.0.0/com/google/api/services/redis/v1beta1/model/Cluster.java b/clients/google-api-services-redis/v1beta1/2.0.0/com/google/api/services/redis/v1beta1/model/Cluster.java index f479ec6dd32..9a010675c76 100644 --- a/clients/google-api-services-redis/v1beta1/2.0.0/com/google/api/services/redis/v1beta1/model/Cluster.java +++ b/clients/google-api-services-redis/v1beta1/2.0.0/com/google/api/services/redis/v1beta1/model/Cluster.java @@ -45,6 +45,13 @@ public final class Cluster extends com.google.api.client.json.GenericJson { @com.google.api.client.util.Key private java.lang.Boolean aclPolicyInSync; + /** + * Output only. Details of the applied ACL policy. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private AclPolicyInfo aclPolicyInfo; + /** * Optional. Immutable. Deprecated, do not use. * The value may be {@code null}. @@ -403,6 +410,23 @@ public Cluster setAclPolicyInSync(java.lang.Boolean aclPolicyInSync) { return this; } + /** + * Output only. Details of the applied ACL policy. + * @return value or {@code null} for none + */ + public AclPolicyInfo getAclPolicyInfo() { + return aclPolicyInfo; + } + + /** + * Output only. Details of the applied ACL policy. + * @param aclPolicyInfo aclPolicyInfo or {@code null} for none + */ + public Cluster setAclPolicyInfo(AclPolicyInfo aclPolicyInfo) { + this.aclPolicyInfo = aclPolicyInfo; + return this; + } + /** * Optional. Immutable. Deprecated, do not use. * @return value or {@code null} for none diff --git a/clients/google-api-services-redis/v1beta1/2.0.0/com/google/api/services/redis/v1beta1/model/ClusterAclPolicyAttachment.java b/clients/google-api-services-redis/v1beta1/2.0.0/com/google/api/services/redis/v1beta1/model/ClusterAclPolicyAttachment.java new file mode 100644 index 00000000000..b5ab59b18dd --- /dev/null +++ b/clients/google-api-services-redis/v1beta1/2.0.0/com/google/api/services/redis/v1beta1/model/ClusterAclPolicyAttachment.java @@ -0,0 +1,101 @@ +/* + * 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.redis.v1beta1.model; + +/** + * ClusterAclPolicyAttachment stores the ACL policy status for an attached cluster for the revisions + * successfully applied, under application or failed. + * + *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 Google Cloud Memorystore for Redis 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 ClusterAclPolicyAttachment extends com.google.api.client.json.GenericJson { + + /** + * Output only. A list of status for various revisions of this ACL policy on the cluster. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.ListThis is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Google Cloud Memorystore for Redis 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 ListAclPolicyRevisionsResponse extends com.google.api.client.json.GenericJson { + + /** + * A list of ACL policy revisions. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List