Skip to content

Commit 20b70e1

Browse files
1 parent 36221c6 commit 20b70e1

20 files changed

+1356
-12
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-rev20240812-2.0.0</version>
25+
<version>v1-rev20240822-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-rev20240812-2.0.0'
38+
implementation 'com.google.apis:google-api-services-redis:v1-rev20240822-2.0.0'
3939
}
4040
```
4141

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

Lines changed: 146 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1588,6 +1588,152 @@ public Patch set(String parameterName, Object value) {
15881588
return (Patch) super.set(parameterName, value);
15891589
}
15901590
}
1591+
/**
1592+
* Reschedules upcoming maintenance event.
1593+
*
1594+
* Create a request for the method "clusters.rescheduleClusterMaintenance".
1595+
*
1596+
* This request holds the parameters needed by the redis server. After setting any optional
1597+
* parameters, call the {@link RescheduleClusterMaintenance#execute()} method to invoke the remote
1598+
* operation.
1599+
*
1600+
* @param name Required. Redis Cluster instance resource name using the form:
1601+
* `projects/{project_id}/locations/{location_id}/clusters/{cluster_id}` where `location_id`
1602+
* refers to a GCP region.
1603+
* @param content the {@link com.google.api.services.redis.v1.model.RescheduleClusterMaintenanceRequest}
1604+
* @return the request
1605+
*/
1606+
public RescheduleClusterMaintenance rescheduleClusterMaintenance(java.lang.String name, com.google.api.services.redis.v1.model.RescheduleClusterMaintenanceRequest content) throws java.io.IOException {
1607+
RescheduleClusterMaintenance result = new RescheduleClusterMaintenance(name, content);
1608+
initialize(result);
1609+
return result;
1610+
}
1611+
1612+
public class RescheduleClusterMaintenance extends CloudRedisRequest<com.google.api.services.redis.v1.model.Operation> {
1613+
1614+
private static final String REST_PATH = "v1/{+name}:rescheduleClusterMaintenance";
1615+
1616+
private final java.util.regex.Pattern NAME_PATTERN =
1617+
java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/clusters/[^/]+$");
1618+
1619+
/**
1620+
* Reschedules upcoming maintenance event.
1621+
*
1622+
* Create a request for the method "clusters.rescheduleClusterMaintenance".
1623+
*
1624+
* This request holds the parameters needed by the the redis server. After setting any optional
1625+
* parameters, call the {@link RescheduleClusterMaintenance#execute()} method to invoke the remote
1626+
* operation. <p> {@link RescheduleClusterMaintenance#initialize(com.google.api.client.googleapis.
1627+
* services.AbstractGoogleClientRequest)} must be called to initialize this instance immediately
1628+
* after invoking the constructor. </p>
1629+
*
1630+
* @param name Required. Redis Cluster instance resource name using the form:
1631+
* `projects/{project_id}/locations/{location_id}/clusters/{cluster_id}` where `location_id`
1632+
* refers to a GCP region.
1633+
* @param content the {@link com.google.api.services.redis.v1.model.RescheduleClusterMaintenanceRequest}
1634+
* @since 1.13
1635+
*/
1636+
protected RescheduleClusterMaintenance(java.lang.String name, com.google.api.services.redis.v1.model.RescheduleClusterMaintenanceRequest content) {
1637+
super(CloudRedis.this, "POST", REST_PATH, content, com.google.api.services.redis.v1.model.Operation.class);
1638+
this.name = com.google.api.client.util.Preconditions.checkNotNull(name, "Required parameter name must be specified.");
1639+
if (!getSuppressPatternChecks()) {
1640+
com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(),
1641+
"Parameter name must conform to the pattern " +
1642+
"^projects/[^/]+/locations/[^/]+/clusters/[^/]+$");
1643+
}
1644+
}
1645+
1646+
@Override
1647+
public RescheduleClusterMaintenance set$Xgafv(java.lang.String $Xgafv) {
1648+
return (RescheduleClusterMaintenance) super.set$Xgafv($Xgafv);
1649+
}
1650+
1651+
@Override
1652+
public RescheduleClusterMaintenance setAccessToken(java.lang.String accessToken) {
1653+
return (RescheduleClusterMaintenance) super.setAccessToken(accessToken);
1654+
}
1655+
1656+
@Override
1657+
public RescheduleClusterMaintenance setAlt(java.lang.String alt) {
1658+
return (RescheduleClusterMaintenance) super.setAlt(alt);
1659+
}
1660+
1661+
@Override
1662+
public RescheduleClusterMaintenance setCallback(java.lang.String callback) {
1663+
return (RescheduleClusterMaintenance) super.setCallback(callback);
1664+
}
1665+
1666+
@Override
1667+
public RescheduleClusterMaintenance setFields(java.lang.String fields) {
1668+
return (RescheduleClusterMaintenance) super.setFields(fields);
1669+
}
1670+
1671+
@Override
1672+
public RescheduleClusterMaintenance setKey(java.lang.String key) {
1673+
return (RescheduleClusterMaintenance) super.setKey(key);
1674+
}
1675+
1676+
@Override
1677+
public RescheduleClusterMaintenance setOauthToken(java.lang.String oauthToken) {
1678+
return (RescheduleClusterMaintenance) super.setOauthToken(oauthToken);
1679+
}
1680+
1681+
@Override
1682+
public RescheduleClusterMaintenance setPrettyPrint(java.lang.Boolean prettyPrint) {
1683+
return (RescheduleClusterMaintenance) super.setPrettyPrint(prettyPrint);
1684+
}
1685+
1686+
@Override
1687+
public RescheduleClusterMaintenance setQuotaUser(java.lang.String quotaUser) {
1688+
return (RescheduleClusterMaintenance) super.setQuotaUser(quotaUser);
1689+
}
1690+
1691+
@Override
1692+
public RescheduleClusterMaintenance setUploadType(java.lang.String uploadType) {
1693+
return (RescheduleClusterMaintenance) super.setUploadType(uploadType);
1694+
}
1695+
1696+
@Override
1697+
public RescheduleClusterMaintenance setUploadProtocol(java.lang.String uploadProtocol) {
1698+
return (RescheduleClusterMaintenance) super.setUploadProtocol(uploadProtocol);
1699+
}
1700+
1701+
/**
1702+
* Required. Redis Cluster instance resource name using the form:
1703+
* `projects/{project_id}/locations/{location_id}/clusters/{cluster_id}` where
1704+
* `location_id` refers to a GCP region.
1705+
*/
1706+
@com.google.api.client.util.Key
1707+
private java.lang.String name;
1708+
1709+
/** Required. Redis Cluster instance resource name using the form:
1710+
`projects/{project_id}/locations/{location_id}/clusters/{cluster_id}` where `location_id` refers to
1711+
a GCP region.
1712+
*/
1713+
public java.lang.String getName() {
1714+
return name;
1715+
}
1716+
1717+
/**
1718+
* Required. Redis Cluster instance resource name using the form:
1719+
* `projects/{project_id}/locations/{location_id}/clusters/{cluster_id}` where
1720+
* `location_id` refers to a GCP region.
1721+
*/
1722+
public RescheduleClusterMaintenance setName(java.lang.String name) {
1723+
if (!getSuppressPatternChecks()) {
1724+
com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(),
1725+
"Parameter name must conform to the pattern " +
1726+
"^projects/[^/]+/locations/[^/]+/clusters/[^/]+$");
1727+
}
1728+
this.name = name;
1729+
return this;
1730+
}
1731+
1732+
@Override
1733+
public RescheduleClusterMaintenance set(String parameterName, Object value) {
1734+
return (RescheduleClusterMaintenance) super.set(parameterName, value);
1735+
}
1736+
}
15911737

15921738
}
15931739
/**

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

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,14 @@
3030
@SuppressWarnings("javadoc")
3131
public final class AvailabilityConfiguration extends com.google.api.client.json.GenericJson {
3232

33+
/**
34+
* Checks for existence of (multi-cluster) routing configuration that allows automatic failover to
35+
* a different zone/region in case of an outage. Applicable to Bigtable resources.
36+
* The value may be {@code null}.
37+
*/
38+
@com.google.api.client.util.Key
39+
private java.lang.Boolean automaticFailoverRoutingConfigured;
40+
3341
/**
3442
* Availability type. Potential values: * `ZONAL`: The instance serves data from only one zone.
3543
* Outages in that zone affect data accessibility. * `REGIONAL`: The instance can serve data from
@@ -59,6 +67,25 @@ public final class AvailabilityConfiguration extends com.google.api.client.json.
5967
@com.google.api.client.util.Key
6068
private java.lang.Boolean promotableReplicaConfigured;
6169

70+
/**
71+
* Checks for existence of (multi-cluster) routing configuration that allows automatic failover to
72+
* a different zone/region in case of an outage. Applicable to Bigtable resources.
73+
* @return value or {@code null} for none
74+
*/
75+
public java.lang.Boolean getAutomaticFailoverRoutingConfigured() {
76+
return automaticFailoverRoutingConfigured;
77+
}
78+
79+
/**
80+
* Checks for existence of (multi-cluster) routing configuration that allows automatic failover to
81+
* a different zone/region in case of an outage. Applicable to Bigtable resources.
82+
* @param automaticFailoverRoutingConfigured automaticFailoverRoutingConfigured or {@code null} for none
83+
*/
84+
public AvailabilityConfiguration setAutomaticFailoverRoutingConfigured(java.lang.Boolean automaticFailoverRoutingConfigured) {
85+
this.automaticFailoverRoutingConfigured = automaticFailoverRoutingConfigured;
86+
return this;
87+
}
88+
6289
/**
6390
* Availability type. Potential values: * `ZONAL`: The instance serves data from only one zone.
6491
* Outages in that zone affect data accessibility. * `REGIONAL`: The instance can serve data from

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

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,20 @@ public final class Cluster extends com.google.api.client.json.GenericJson {
6767
@com.google.api.client.util.Key
6868
private java.util.List<DiscoveryEndpoint> discoveryEndpoints;
6969

70+
/**
71+
* Optional. ClusterMaintenancePolicy determines when to allow or deny updates.
72+
* The value may be {@code null}.
73+
*/
74+
@com.google.api.client.util.Key
75+
private ClusterMaintenancePolicy maintenancePolicy;
76+
77+
/**
78+
* Output only. ClusterMaintenanceSchedule Output only Published maintenance schedule.
79+
* The value may be {@code null}.
80+
*/
81+
@com.google.api.client.util.Key
82+
private ClusterMaintenanceSchedule maintenanceSchedule;
83+
7084
/**
7185
* Required. Identifier. Unique name of the resource in this scope including project and location
7286
* using the form: `projects/{project_id}/locations/{location_id}/clusters/{cluster_id}`
@@ -268,6 +282,40 @@ public Cluster setDiscoveryEndpoints(java.util.List<DiscoveryEndpoint> discovery
268282
return this;
269283
}
270284

285+
/**
286+
* Optional. ClusterMaintenancePolicy determines when to allow or deny updates.
287+
* @return value or {@code null} for none
288+
*/
289+
public ClusterMaintenancePolicy getMaintenancePolicy() {
290+
return maintenancePolicy;
291+
}
292+
293+
/**
294+
* Optional. ClusterMaintenancePolicy determines when to allow or deny updates.
295+
* @param maintenancePolicy maintenancePolicy or {@code null} for none
296+
*/
297+
public Cluster setMaintenancePolicy(ClusterMaintenancePolicy maintenancePolicy) {
298+
this.maintenancePolicy = maintenancePolicy;
299+
return this;
300+
}
301+
302+
/**
303+
* Output only. ClusterMaintenanceSchedule Output only Published maintenance schedule.
304+
* @return value or {@code null} for none
305+
*/
306+
public ClusterMaintenanceSchedule getMaintenanceSchedule() {
307+
return maintenanceSchedule;
308+
}
309+
310+
/**
311+
* Output only. ClusterMaintenanceSchedule Output only Published maintenance schedule.
312+
* @param maintenanceSchedule maintenanceSchedule or {@code null} for none
313+
*/
314+
public Cluster setMaintenanceSchedule(ClusterMaintenanceSchedule maintenanceSchedule) {
315+
this.maintenanceSchedule = maintenanceSchedule;
316+
return this;
317+
}
318+
271319
/**
272320
* Required. Identifier. Unique name of the resource in this scope including project and location
273321
* using the form: `projects/{project_id}/locations/{location_id}/clusters/{cluster_id}`
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,124 @@
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+
* Maintenance policy per cluster.
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 ClusterMaintenancePolicy extends com.google.api.client.json.GenericJson {
32+
33+
/**
34+
* Output only. The time when the policy was created i.e. Maintenance Window or Deny Period was
35+
* assigned.
36+
* The value may be {@code null}.
37+
*/
38+
@com.google.api.client.util.Key
39+
private String createTime;
40+
41+
/**
42+
* Output only. The time when the policy was updated i.e. Maintenance Window or Deny Period was
43+
* updated.
44+
* The value may be {@code null}.
45+
*/
46+
@com.google.api.client.util.Key
47+
private String updateTime;
48+
49+
/**
50+
* Optional. Maintenance window that is applied to resources covered by this policy. Minimum 1.
51+
* For the current version, the maximum number of weekly_maintenance_window is expected to be one.
52+
* The value may be {@code null}.
53+
*/
54+
@com.google.api.client.util.Key
55+
private java.util.List<ClusterWeeklyMaintenanceWindow> weeklyMaintenanceWindow;
56+
57+
/**
58+
* Output only. The time when the policy was created i.e. Maintenance Window or Deny Period was
59+
* assigned.
60+
* @return value or {@code null} for none
61+
*/
62+
public String getCreateTime() {
63+
return createTime;
64+
}
65+
66+
/**
67+
* Output only. The time when the policy was created i.e. Maintenance Window or Deny Period was
68+
* assigned.
69+
* @param createTime createTime or {@code null} for none
70+
*/
71+
public ClusterMaintenancePolicy setCreateTime(String createTime) {
72+
this.createTime = createTime;
73+
return this;
74+
}
75+
76+
/**
77+
* Output only. The time when the policy was updated i.e. Maintenance Window or Deny Period was
78+
* updated.
79+
* @return value or {@code null} for none
80+
*/
81+
public String getUpdateTime() {
82+
return updateTime;
83+
}
84+
85+
/**
86+
* Output only. The time when the policy was updated i.e. Maintenance Window or Deny Period was
87+
* updated.
88+
* @param updateTime updateTime or {@code null} for none
89+
*/
90+
public ClusterMaintenancePolicy setUpdateTime(String updateTime) {
91+
this.updateTime = updateTime;
92+
return this;
93+
}
94+
95+
/**
96+
* Optional. Maintenance window that is applied to resources covered by this policy. Minimum 1.
97+
* For the current version, the maximum number of weekly_maintenance_window is expected to be one.
98+
* @return value or {@code null} for none
99+
*/
100+
public java.util.List<ClusterWeeklyMaintenanceWindow> getWeeklyMaintenanceWindow() {
101+
return weeklyMaintenanceWindow;
102+
}
103+
104+
/**
105+
* Optional. Maintenance window that is applied to resources covered by this policy. Minimum 1.
106+
* For the current version, the maximum number of weekly_maintenance_window is expected to be one.
107+
* @param weeklyMaintenanceWindow weeklyMaintenanceWindow or {@code null} for none
108+
*/
109+
public ClusterMaintenancePolicy setWeeklyMaintenanceWindow(java.util.List<ClusterWeeklyMaintenanceWindow> weeklyMaintenanceWindow) {
110+
this.weeklyMaintenanceWindow = weeklyMaintenanceWindow;
111+
return this;
112+
}
113+
114+
@Override
115+
public ClusterMaintenancePolicy set(String fieldName, Object value) {
116+
return (ClusterMaintenancePolicy) super.set(fieldName, value);
117+
}
118+
119+
@Override
120+
public ClusterMaintenancePolicy clone() {
121+
return (ClusterMaintenancePolicy) super.clone();
122+
}
123+
124+
}

0 commit comments

Comments
 (0)