Skip to content

Commit 3fadfb3

Browse files
1 parent 485549a commit 3fadfb3

22 files changed

+946
-74
lines changed

clients/google-api-services-redis/v1/2.0.0/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ Add the following lines to your `pom.xml` file:
2222
<dependency>
2323
<groupId>com.google.apis</groupId>
2424
<artifactId>google-api-services-redis</artifactId>
25-
<version>v1-rev20240711-2.0.0</version>
25+
<version>v1-rev20240812-2.0.0</version>
2626
</dependency>
2727
</dependencies>
2828
</project>
@@ -35,7 +35,7 @@ repositories {
3535
mavenCentral()
3636
}
3737
dependencies {
38-
implementation 'com.google.apis:google-api-services-redis:v1-rev20240711-2.0.0'
38+
implementation 'com.google.apis:google-api-services-redis:v1-rev20240812-2.0.0'
3939
}
4040
```
4141

clients/google-api-services-redis/v1/2.0.0/com/google/api/services/redis/v1/model/Cluster.java

Lines changed: 27 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,13 @@ public final class Cluster extends com.google.api.client.json.GenericJson {
4545
@com.google.api.client.util.Key
4646
private String createTime;
4747

48+
/**
49+
* Optional. Cross cluster replication config.
50+
* The value may be {@code null}.
51+
*/
52+
@com.google.api.client.util.Key
53+
private CrossClusterReplicationConfig crossClusterReplicationConfig;
54+
4855
/**
4956
* Optional. The delete operation will fail when the value is set to true.
5057
* The value may be {@code null}.
@@ -121,7 +128,7 @@ public final class Cluster extends com.google.api.client.json.GenericJson {
121128
private java.lang.Integer replicaCount;
122129

123130
/**
124-
* Required. Number of shards for the Redis cluster.
131+
* Optional. Number of shards for the Redis cluster.
125132
* The value may be {@code null}.
126133
*/
127134
@com.google.api.client.util.Key
@@ -208,6 +215,23 @@ public Cluster setCreateTime(String createTime) {
208215
return this;
209216
}
210217

218+
/**
219+
* Optional. Cross cluster replication config.
220+
* @return value or {@code null} for none
221+
*/
222+
public CrossClusterReplicationConfig getCrossClusterReplicationConfig() {
223+
return crossClusterReplicationConfig;
224+
}
225+
226+
/**
227+
* Optional. Cross cluster replication config.
228+
* @param crossClusterReplicationConfig crossClusterReplicationConfig or {@code null} for none
229+
*/
230+
public Cluster setCrossClusterReplicationConfig(CrossClusterReplicationConfig crossClusterReplicationConfig) {
231+
this.crossClusterReplicationConfig = crossClusterReplicationConfig;
232+
return this;
233+
}
234+
211235
/**
212236
* Optional. The delete operation will fail when the value is set to true.
213237
* @return value or {@code null} for none
@@ -389,15 +413,15 @@ public Cluster setReplicaCount(java.lang.Integer replicaCount) {
389413
}
390414

391415
/**
392-
* Required. Number of shards for the Redis cluster.
416+
* Optional. Number of shards for the Redis cluster.
393417
* @return value or {@code null} for none
394418
*/
395419
public java.lang.Integer getShardCount() {
396420
return shardCount;
397421
}
398422

399423
/**
400-
* Required. Number of shards for the Redis cluster.
424+
* Optional. Number of shards for the Redis cluster.
401425
* @param shardCount shardCount or {@code null} for none
402426
*/
403427
public Cluster setShardCount(java.lang.Integer shardCount) {
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,187 @@
1+
/*
2+
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except
3+
* in compliance with the License. You may obtain a copy of the License at
4+
*
5+
* http://www.apache.org/licenses/LICENSE-2.0
6+
*
7+
* Unless required by applicable law or agreed to in writing, software distributed under the License
8+
* is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express
9+
* or implied. See the License for the specific language governing permissions and limitations under
10+
* the License.
11+
*/
12+
/*
13+
* This code was generated by https://github.com/googleapis/google-api-java-client-services/
14+
* Modify at your own risk.
15+
*/
16+
17+
package com.google.api.services.redis.v1.model;
18+
19+
/**
20+
* Cross cluster replication config.
21+
*
22+
* <p> This is the Java data model class that specifies how to parse/serialize into the JSON that is
23+
* transmitted over HTTP when working with the Google Cloud Memorystore for Redis API. For a
24+
* detailed explanation see:
25+
* <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>
26+
* </p>
27+
*
28+
* @author Google, Inc.
29+
*/
30+
@SuppressWarnings("javadoc")
31+
public final class CrossClusterReplicationConfig extends com.google.api.client.json.GenericJson {
32+
33+
/**
34+
* The role of the cluster in cross cluster replication.
35+
* The value may be {@code null}.
36+
*/
37+
@com.google.api.client.util.Key
38+
private java.lang.String clusterRole;
39+
40+
/**
41+
* Output only. An output only view of all the member clusters participating in the cross cluster
42+
* replication. This view will be provided by every member cluster irrespective of its cluster
43+
* role(primary or secondary). A primary cluster can provide information about all the secondary
44+
* clusters replicating from it. However, a secondary cluster only knows about the primary cluster
45+
* from which it is replicating. However, for scenarios, where the primary cluster is
46+
* unavailable(e.g. regional outage), a GetCluster request can be sent to any other member cluster
47+
* and this field will list all the member clusters participating in cross cluster replication.
48+
* The value may be {@code null}.
49+
*/
50+
@com.google.api.client.util.Key
51+
private Membership membership;
52+
53+
/**
54+
* Details of the primary cluster that is used as the replication source for this secondary
55+
* cluster. This field is only set for a secondary cluster.
56+
* The value may be {@code null}.
57+
*/
58+
@com.google.api.client.util.Key
59+
private RemoteCluster primaryCluster;
60+
61+
/**
62+
* List of secondary clusters that are replicating from this primary cluster. This field is only
63+
* set for a primary cluster.
64+
* The value may be {@code null}.
65+
*/
66+
@com.google.api.client.util.Key
67+
private java.util.List<RemoteCluster> secondaryClusters;
68+
69+
/**
70+
* Output only. The last time cross cluster replication config was updated.
71+
* The value may be {@code null}.
72+
*/
73+
@com.google.api.client.util.Key
74+
private String updateTime;
75+
76+
/**
77+
* The role of the cluster in cross cluster replication.
78+
* @return value or {@code null} for none
79+
*/
80+
public java.lang.String getClusterRole() {
81+
return clusterRole;
82+
}
83+
84+
/**
85+
* The role of the cluster in cross cluster replication.
86+
* @param clusterRole clusterRole or {@code null} for none
87+
*/
88+
public CrossClusterReplicationConfig setClusterRole(java.lang.String clusterRole) {
89+
this.clusterRole = clusterRole;
90+
return this;
91+
}
92+
93+
/**
94+
* Output only. An output only view of all the member clusters participating in the cross cluster
95+
* replication. This view will be provided by every member cluster irrespective of its cluster
96+
* role(primary or secondary). A primary cluster can provide information about all the secondary
97+
* clusters replicating from it. However, a secondary cluster only knows about the primary cluster
98+
* from which it is replicating. However, for scenarios, where the primary cluster is
99+
* unavailable(e.g. regional outage), a GetCluster request can be sent to any other member cluster
100+
* and this field will list all the member clusters participating in cross cluster replication.
101+
* @return value or {@code null} for none
102+
*/
103+
public Membership getMembership() {
104+
return membership;
105+
}
106+
107+
/**
108+
* Output only. An output only view of all the member clusters participating in the cross cluster
109+
* replication. This view will be provided by every member cluster irrespective of its cluster
110+
* role(primary or secondary). A primary cluster can provide information about all the secondary
111+
* clusters replicating from it. However, a secondary cluster only knows about the primary cluster
112+
* from which it is replicating. However, for scenarios, where the primary cluster is
113+
* unavailable(e.g. regional outage), a GetCluster request can be sent to any other member cluster
114+
* and this field will list all the member clusters participating in cross cluster replication.
115+
* @param membership membership or {@code null} for none
116+
*/
117+
public CrossClusterReplicationConfig setMembership(Membership membership) {
118+
this.membership = membership;
119+
return this;
120+
}
121+
122+
/**
123+
* Details of the primary cluster that is used as the replication source for this secondary
124+
* cluster. This field is only set for a secondary cluster.
125+
* @return value or {@code null} for none
126+
*/
127+
public RemoteCluster getPrimaryCluster() {
128+
return primaryCluster;
129+
}
130+
131+
/**
132+
* Details of the primary cluster that is used as the replication source for this secondary
133+
* cluster. This field is only set for a secondary cluster.
134+
* @param primaryCluster primaryCluster or {@code null} for none
135+
*/
136+
public CrossClusterReplicationConfig setPrimaryCluster(RemoteCluster primaryCluster) {
137+
this.primaryCluster = primaryCluster;
138+
return this;
139+
}
140+
141+
/**
142+
* List of secondary clusters that are replicating from this primary cluster. This field is only
143+
* set for a primary cluster.
144+
* @return value or {@code null} for none
145+
*/
146+
public java.util.List<RemoteCluster> getSecondaryClusters() {
147+
return secondaryClusters;
148+
}
149+
150+
/**
151+
* List of secondary clusters that are replicating from this primary cluster. This field is only
152+
* set for a primary cluster.
153+
* @param secondaryClusters secondaryClusters or {@code null} for none
154+
*/
155+
public CrossClusterReplicationConfig setSecondaryClusters(java.util.List<RemoteCluster> secondaryClusters) {
156+
this.secondaryClusters = secondaryClusters;
157+
return this;
158+
}
159+
160+
/**
161+
* Output only. The last time cross cluster replication config was updated.
162+
* @return value or {@code null} for none
163+
*/
164+
public String getUpdateTime() {
165+
return updateTime;
166+
}
167+
168+
/**
169+
* Output only. The last time cross cluster replication config was updated.
170+
* @param updateTime updateTime or {@code null} for none
171+
*/
172+
public CrossClusterReplicationConfig setUpdateTime(String updateTime) {
173+
this.updateTime = updateTime;
174+
return this;
175+
}
176+
177+
@Override
178+
public CrossClusterReplicationConfig set(String fieldName, Object value) {
179+
return (CrossClusterReplicationConfig) super.set(fieldName, value);
180+
}
181+
182+
@Override
183+
public CrossClusterReplicationConfig clone() {
184+
return (CrossClusterReplicationConfig) super.clone();
185+
}
186+
187+
}

clients/google-api-services-redis/v1/2.0.0/com/google/api/services/redis/v1/model/CustomMetadataData.java

Lines changed: 13 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
package com.google.api.services.redis.v1.model;
1818

1919
/**
20-
* Any custom metadata associated with the resource. i.e. A spanner instance can have multiple
20+
* Any custom metadata associated with the resource. e.g. A spanner instance can have multiple
2121
* databases with its own unique metadata. Information for these individual databases can be
2222
* captured in custom metadata data
2323
*
@@ -33,23 +33,29 @@
3333
public final class CustomMetadataData extends com.google.api.client.json.GenericJson {
3434

3535
/**
36+
* Metadata for individual internal resources in an instance. e.g. spanner instance can have
37+
* multiple databases with unique configuration.
3638
* The value may be {@code null}.
3739
*/
3840
@com.google.api.client.util.Key
39-
private java.util.List<DatabaseMetadata> databaseMetadata;
41+
private java.util.List<InternalResourceMetadata> internalResourceMetadata;
4042

4143
/**
44+
* Metadata for individual internal resources in an instance. e.g. spanner instance can have
45+
* multiple databases with unique configuration.
4246
* @return value or {@code null} for none
4347
*/
44-
public java.util.List<DatabaseMetadata> getDatabaseMetadata() {
45-
return databaseMetadata;
48+
public java.util.List<InternalResourceMetadata> getInternalResourceMetadata() {
49+
return internalResourceMetadata;
4650
}
4751

4852
/**
49-
* @param databaseMetadata databaseMetadata or {@code null} for none
53+
* Metadata for individual internal resources in an instance. e.g. spanner instance can have
54+
* multiple databases with unique configuration.
55+
* @param internalResourceMetadata internalResourceMetadata or {@code null} for none
5056
*/
51-
public CustomMetadataData setDatabaseMetadata(java.util.List<DatabaseMetadata> databaseMetadata) {
52-
this.databaseMetadata = databaseMetadata;
57+
public CustomMetadataData setInternalResourceMetadata(java.util.List<InternalResourceMetadata> internalResourceMetadata) {
58+
this.internalResourceMetadata = internalResourceMetadata;
5359
return this;
5460
}
5561

clients/google-api-services-redis/v1/2.0.0/com/google/api/services/redis/v1/model/DatabaseResourceHealthSignalData.java

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -123,6 +123,13 @@ public final class DatabaseResourceHealthSignalData extends com.google.api.clien
123123
@com.google.api.client.util.Key
124124
private java.lang.String signalId;
125125

126+
/**
127+
* The severity of the signal, such as if it's a HIGH or LOW severity.
128+
* The value may be {@code null}.
129+
*/
130+
@com.google.api.client.util.Key
131+
private java.lang.String signalSeverity;
132+
126133
/**
127134
* Required. Type of signal, for example, `AVAILABLE_IN_MULTIPLE_ZONES`, `LOGGING_MOST_ERRORS`,
128135
* etc.
@@ -344,6 +351,23 @@ public DatabaseResourceHealthSignalData setSignalId(java.lang.String signalId) {
344351
return this;
345352
}
346353

354+
/**
355+
* The severity of the signal, such as if it's a HIGH or LOW severity.
356+
* @return value or {@code null} for none
357+
*/
358+
public java.lang.String getSignalSeverity() {
359+
return signalSeverity;
360+
}
361+
362+
/**
363+
* The severity of the signal, such as if it's a HIGH or LOW severity.
364+
* @param signalSeverity signalSeverity or {@code null} for none
365+
*/
366+
public DatabaseResourceHealthSignalData setSignalSeverity(java.lang.String signalSeverity) {
367+
this.signalSeverity = signalSeverity;
368+
return this;
369+
}
370+
347371
/**
348372
* Required. Type of signal, for example, `AVAILABLE_IN_MULTIPLE_ZONES`, `LOGGING_MOST_ERRORS`,
349373
* etc.

clients/google-api-services-redis/v1/2.0.0/com/google/api/services/redis/v1/model/DatabaseResourceId.java

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,10 @@ public final class DatabaseResourceId extends com.google.api.client.json.Generic
4747
/**
4848
* Required. The type of resource this ID is identifying. Ex redis.googleapis.com/Instance,
4949
* redis.googleapis.com/Cluster, alloydb.googleapis.com/Cluster, alloydb.googleapis.com/Instance,
50-
* spanner.googleapis.com/Instance REQUIRED Please refer go/condor-common-datamodel
50+
* spanner.googleapis.com/Instance, spanner.googleapis.com/Database,
51+
* firestore.googleapis.com/Database, sqladmin.googleapis.com/Instance,
52+
* bigtableadmin.googleapis.com/Cluster, bigtableadmin.googleapis.com/Instance REQUIRED Please
53+
* refer go/condor-common-datamodel
5154
* The value may be {@code null}.
5255
*/
5356
@com.google.api.client.util.Key
@@ -98,7 +101,10 @@ public DatabaseResourceId setProviderDescription(java.lang.String providerDescri
98101
/**
99102
* Required. The type of resource this ID is identifying. Ex redis.googleapis.com/Instance,
100103
* redis.googleapis.com/Cluster, alloydb.googleapis.com/Cluster, alloydb.googleapis.com/Instance,
101-
* spanner.googleapis.com/Instance REQUIRED Please refer go/condor-common-datamodel
104+
* spanner.googleapis.com/Instance, spanner.googleapis.com/Database,
105+
* firestore.googleapis.com/Database, sqladmin.googleapis.com/Instance,
106+
* bigtableadmin.googleapis.com/Cluster, bigtableadmin.googleapis.com/Instance REQUIRED Please
107+
* refer go/condor-common-datamodel
102108
* @return value or {@code null} for none
103109
*/
104110
public java.lang.String getResourceType() {
@@ -108,7 +114,10 @@ public java.lang.String getResourceType() {
108114
/**
109115
* Required. The type of resource this ID is identifying. Ex redis.googleapis.com/Instance,
110116
* redis.googleapis.com/Cluster, alloydb.googleapis.com/Cluster, alloydb.googleapis.com/Instance,
111-
* spanner.googleapis.com/Instance REQUIRED Please refer go/condor-common-datamodel
117+
* spanner.googleapis.com/Instance, spanner.googleapis.com/Database,
118+
* firestore.googleapis.com/Database, sqladmin.googleapis.com/Instance,
119+
* bigtableadmin.googleapis.com/Cluster, bigtableadmin.googleapis.com/Instance REQUIRED Please
120+
* refer go/condor-common-datamodel
112121
* @param resourceType resourceType or {@code null} for none
113122
*/
114123
public DatabaseResourceId setResourceType(java.lang.String resourceType) {

0 commit comments

Comments
 (0)