Skip to content

Commit 4ec0d2e

Browse files
chore: regenerate spanner client
1 parent 5ec85f7 commit 4ec0d2e

File tree

9 files changed

+351
-60
lines changed

9 files changed

+351
-60
lines changed

clients/google-api-services-spanner/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-spanner</artifactId>
25-
<version>v1-rev20251205-2.0.0</version>
25+
<version>v1-rev20260122-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-spanner:v1-rev20251205-2.0.0'
38+
implementation 'com.google.apis:google-api-services-spanner:v1-rev20260122-2.0.0'
3939
}
4040
```
4141

clients/google-api-services-spanner/v1/2.0.0/com/google/api/services/spanner/v1/model/AutoscalingConfigOverrides.java

Lines changed: 120 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,43 @@ public final class AutoscalingConfigOverrides extends com.google.api.client.json
4747
@com.google.api.client.util.Key
4848
private java.lang.Integer autoscalingTargetHighPriorityCpuUtilizationPercent;
4949

50+
/**
51+
* Optional. If specified, overrides the autoscaling target `total_cpu_utilization_percent` in the
52+
* top-level autoscaling configuration for the selected replicas.
53+
* The value may be {@code null}.
54+
*/
55+
@com.google.api.client.util.Key
56+
private java.lang.Integer autoscalingTargetTotalCpuUtilizationPercent;
57+
58+
/**
59+
* Optional. If true, disables high priority CPU autoscaling for the selected replicas and ignores
60+
* high_priority_cpu_utilization_percent in the top-level autoscaling configuration. When setting
61+
* this field to true, setting autoscaling_target_high_priority_cpu_utilization_percent field to a
62+
* non-zero value for the same replica is not supported. If false, the
63+
* autoscaling_target_high_priority_cpu_utilization_percent field in the replica will be used if
64+
* set to a non-zero value. Otherwise, the high_priority_cpu_utilization_percent field in the top-
65+
* level autoscaling configuration will be used. Setting both
66+
* disable_high_priority_cpu_autoscaling and disable_total_cpu_autoscaling to true for the same
67+
* replica is not supported.
68+
* The value may be {@code null}.
69+
*/
70+
@com.google.api.client.util.Key
71+
private java.lang.Boolean disableHighPriorityCpuAutoscaling;
72+
73+
/**
74+
* Optional. If true, disables total CPU autoscaling for the selected replicas and ignores
75+
* total_cpu_utilization_percent in the top-level autoscaling configuration. When setting this
76+
* field to true, setting autoscaling_target_total_cpu_utilization_percent field to a non-zero
77+
* value for the same replica is not supported. If false, the
78+
* autoscaling_target_total_cpu_utilization_percent field in the replica will be used if set to a
79+
* non-zero value. Otherwise, the total_cpu_utilization_percent field in the top-level autoscaling
80+
* configuration will be used. Setting both disable_high_priority_cpu_autoscaling and
81+
* disable_total_cpu_autoscaling to true for the same replica is not supported.
82+
* The value may be {@code null}.
83+
*/
84+
@com.google.api.client.util.Key
85+
private java.lang.Boolean disableTotalCpuAutoscaling;
86+
5087
/**
5188
* Optional. If specified, overrides the min/max limit in the top-level autoscaling configuration
5289
* for the selected replicas.
@@ -85,6 +122,89 @@ public AutoscalingConfigOverrides setAutoscalingTargetHighPriorityCpuUtilization
85122
return this;
86123
}
87124

125+
/**
126+
* Optional. If specified, overrides the autoscaling target `total_cpu_utilization_percent` in the
127+
* top-level autoscaling configuration for the selected replicas.
128+
* @return value or {@code null} for none
129+
*/
130+
public java.lang.Integer getAutoscalingTargetTotalCpuUtilizationPercent() {
131+
return autoscalingTargetTotalCpuUtilizationPercent;
132+
}
133+
134+
/**
135+
* Optional. If specified, overrides the autoscaling target `total_cpu_utilization_percent` in the
136+
* top-level autoscaling configuration for the selected replicas.
137+
* @param autoscalingTargetTotalCpuUtilizationPercent autoscalingTargetTotalCpuUtilizationPercent or {@code null} for none
138+
*/
139+
public AutoscalingConfigOverrides setAutoscalingTargetTotalCpuUtilizationPercent(java.lang.Integer autoscalingTargetTotalCpuUtilizationPercent) {
140+
this.autoscalingTargetTotalCpuUtilizationPercent = autoscalingTargetTotalCpuUtilizationPercent;
141+
return this;
142+
}
143+
144+
/**
145+
* Optional. If true, disables high priority CPU autoscaling for the selected replicas and ignores
146+
* high_priority_cpu_utilization_percent in the top-level autoscaling configuration. When setting
147+
* this field to true, setting autoscaling_target_high_priority_cpu_utilization_percent field to a
148+
* non-zero value for the same replica is not supported. If false, the
149+
* autoscaling_target_high_priority_cpu_utilization_percent field in the replica will be used if
150+
* set to a non-zero value. Otherwise, the high_priority_cpu_utilization_percent field in the top-
151+
* level autoscaling configuration will be used. Setting both
152+
* disable_high_priority_cpu_autoscaling and disable_total_cpu_autoscaling to true for the same
153+
* replica is not supported.
154+
* @return value or {@code null} for none
155+
*/
156+
public java.lang.Boolean getDisableHighPriorityCpuAutoscaling() {
157+
return disableHighPriorityCpuAutoscaling;
158+
}
159+
160+
/**
161+
* Optional. If true, disables high priority CPU autoscaling for the selected replicas and ignores
162+
* high_priority_cpu_utilization_percent in the top-level autoscaling configuration. When setting
163+
* this field to true, setting autoscaling_target_high_priority_cpu_utilization_percent field to a
164+
* non-zero value for the same replica is not supported. If false, the
165+
* autoscaling_target_high_priority_cpu_utilization_percent field in the replica will be used if
166+
* set to a non-zero value. Otherwise, the high_priority_cpu_utilization_percent field in the top-
167+
* level autoscaling configuration will be used. Setting both
168+
* disable_high_priority_cpu_autoscaling and disable_total_cpu_autoscaling to true for the same
169+
* replica is not supported.
170+
* @param disableHighPriorityCpuAutoscaling disableHighPriorityCpuAutoscaling or {@code null} for none
171+
*/
172+
public AutoscalingConfigOverrides setDisableHighPriorityCpuAutoscaling(java.lang.Boolean disableHighPriorityCpuAutoscaling) {
173+
this.disableHighPriorityCpuAutoscaling = disableHighPriorityCpuAutoscaling;
174+
return this;
175+
}
176+
177+
/**
178+
* Optional. If true, disables total CPU autoscaling for the selected replicas and ignores
179+
* total_cpu_utilization_percent in the top-level autoscaling configuration. When setting this
180+
* field to true, setting autoscaling_target_total_cpu_utilization_percent field to a non-zero
181+
* value for the same replica is not supported. If false, the
182+
* autoscaling_target_total_cpu_utilization_percent field in the replica will be used if set to a
183+
* non-zero value. Otherwise, the total_cpu_utilization_percent field in the top-level autoscaling
184+
* configuration will be used. Setting both disable_high_priority_cpu_autoscaling and
185+
* disable_total_cpu_autoscaling to true for the same replica is not supported.
186+
* @return value or {@code null} for none
187+
*/
188+
public java.lang.Boolean getDisableTotalCpuAutoscaling() {
189+
return disableTotalCpuAutoscaling;
190+
}
191+
192+
/**
193+
* Optional. If true, disables total CPU autoscaling for the selected replicas and ignores
194+
* total_cpu_utilization_percent in the top-level autoscaling configuration. When setting this
195+
* field to true, setting autoscaling_target_total_cpu_utilization_percent field to a non-zero
196+
* value for the same replica is not supported. If false, the
197+
* autoscaling_target_total_cpu_utilization_percent field in the replica will be used if set to a
198+
* non-zero value. Otherwise, the total_cpu_utilization_percent field in the top-level autoscaling
199+
* configuration will be used. Setting both disable_high_priority_cpu_autoscaling and
200+
* disable_total_cpu_autoscaling to true for the same replica is not supported.
201+
* @param disableTotalCpuAutoscaling disableTotalCpuAutoscaling or {@code null} for none
202+
*/
203+
public AutoscalingConfigOverrides setDisableTotalCpuAutoscaling(java.lang.Boolean disableTotalCpuAutoscaling) {
204+
this.disableTotalCpuAutoscaling = disableTotalCpuAutoscaling;
205+
return this;
206+
}
207+
88208
@Override
89209
public AutoscalingConfigOverrides set(String fieldName, Object value) {
90210
return (AutoscalingConfigOverrides) super.set(fieldName, value);

clients/google-api-services-spanner/v1/2.0.0/com/google/api/services/spanner/v1/model/AutoscalingTargets.java

Lines changed: 51 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -30,9 +30,10 @@
3030
public final class AutoscalingTargets extends com.google.api.client.json.GenericJson {
3131

3232
/**
33-
* Required. The target high priority cpu utilization percentage that the autoscaler should be
33+
* Optional. The target high priority cpu utilization percentage that the autoscaler should be
3434
* trying to achieve for the instance. This number is on a scale from 0 (no utilization) to 100
35-
* (full utilization). The valid range is [10, 90] inclusive.
35+
* (full utilization). The valid range is [10, 90] inclusive. If not specified or set to 0, the
36+
* autoscaler skips scaling based on high priority CPU utilization.
3637
* The value may be {@code null}.
3738
*/
3839
@com.google.api.client.util.Key
@@ -48,19 +49,34 @@ public final class AutoscalingTargets extends com.google.api.client.json.Generic
4849
private java.lang.Integer storageUtilizationPercent;
4950

5051
/**
51-
* Required. The target high priority cpu utilization percentage that the autoscaler should be
52+
* Optional. The target total CPU utilization percentage that the autoscaler should be trying to
53+
* achieve for the instance. This number is on a scale from 0 (no utilization) to 100 (full
54+
* utilization). The valid range is [10, 90] inclusive. If not specified or set to 0, the
55+
* autoscaler skips scaling based on total CPU utilization. If both
56+
* `high_priority_cpu_utilization_percent` and `total_cpu_utilization_percent` are specified, the
57+
* autoscaler provisions the larger of the two required compute capacities to satisfy both
58+
* targets.
59+
* The value may be {@code null}.
60+
*/
61+
@com.google.api.client.util.Key
62+
private java.lang.Integer totalCpuUtilizationPercent;
63+
64+
/**
65+
* Optional. The target high priority cpu utilization percentage that the autoscaler should be
5266
* trying to achieve for the instance. This number is on a scale from 0 (no utilization) to 100
53-
* (full utilization). The valid range is [10, 90] inclusive.
67+
* (full utilization). The valid range is [10, 90] inclusive. If not specified or set to 0, the
68+
* autoscaler skips scaling based on high priority CPU utilization.
5469
* @return value or {@code null} for none
5570
*/
5671
public java.lang.Integer getHighPriorityCpuUtilizationPercent() {
5772
return highPriorityCpuUtilizationPercent;
5873
}
5974

6075
/**
61-
* Required. The target high priority cpu utilization percentage that the autoscaler should be
76+
* Optional. The target high priority cpu utilization percentage that the autoscaler should be
6277
* trying to achieve for the instance. This number is on a scale from 0 (no utilization) to 100
63-
* (full utilization). The valid range is [10, 90] inclusive.
78+
* (full utilization). The valid range is [10, 90] inclusive. If not specified or set to 0, the
79+
* autoscaler skips scaling based on high priority CPU utilization.
6480
* @param highPriorityCpuUtilizationPercent highPriorityCpuUtilizationPercent or {@code null} for none
6581
*/
6682
public AutoscalingTargets setHighPriorityCpuUtilizationPercent(java.lang.Integer highPriorityCpuUtilizationPercent) {
@@ -89,6 +105,35 @@ public AutoscalingTargets setStorageUtilizationPercent(java.lang.Integer storage
89105
return this;
90106
}
91107

108+
/**
109+
* Optional. The target total CPU utilization percentage that the autoscaler should be trying to
110+
* achieve for the instance. This number is on a scale from 0 (no utilization) to 100 (full
111+
* utilization). The valid range is [10, 90] inclusive. If not specified or set to 0, the
112+
* autoscaler skips scaling based on total CPU utilization. If both
113+
* `high_priority_cpu_utilization_percent` and `total_cpu_utilization_percent` are specified, the
114+
* autoscaler provisions the larger of the two required compute capacities to satisfy both
115+
* targets.
116+
* @return value or {@code null} for none
117+
*/
118+
public java.lang.Integer getTotalCpuUtilizationPercent() {
119+
return totalCpuUtilizationPercent;
120+
}
121+
122+
/**
123+
* Optional. The target total CPU utilization percentage that the autoscaler should be trying to
124+
* achieve for the instance. This number is on a scale from 0 (no utilization) to 100 (full
125+
* utilization). The valid range is [10, 90] inclusive. If not specified or set to 0, the
126+
* autoscaler skips scaling based on total CPU utilization. If both
127+
* `high_priority_cpu_utilization_percent` and `total_cpu_utilization_percent` are specified, the
128+
* autoscaler provisions the larger of the two required compute capacities to satisfy both
129+
* targets.
130+
* @param totalCpuUtilizationPercent totalCpuUtilizationPercent or {@code null} for none
131+
*/
132+
public AutoscalingTargets setTotalCpuUtilizationPercent(java.lang.Integer totalCpuUtilizationPercent) {
133+
this.totalCpuUtilizationPercent = totalCpuUtilizationPercent;
134+
return this;
135+
}
136+
92137
@Override
93138
public AutoscalingTargets set(String fieldName, Object value) {
94139
return (AutoscalingTargets) super.set(fieldName, value);

clients/google-api-services-spanner/v1/2.0.0/com/google/api/services/spanner/v1/model/Backup.java

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -144,6 +144,14 @@ public final class Backup extends com.google.api.client.json.GenericJson {
144144
@com.google.api.client.util.Key
145145
private String maxExpireTime;
146146

147+
/**
148+
* Output only. The minimum edition required to successfully restore the backup. Populated only if
149+
* the edition is Enterprise or Enterprise Plus.
150+
* The value may be {@code null}.
151+
*/
152+
@com.google.api.client.util.Key
153+
private java.lang.String minimumRestorableEdition;
154+
147155
/**
148156
* Output only for the CreateBackup operation. Required for the UpdateBackup operation. A globally
149157
* unique identifier for the backup which cannot be changed. Values are of the form
@@ -479,6 +487,25 @@ public Backup setMaxExpireTime(String maxExpireTime) {
479487
return this;
480488
}
481489

490+
/**
491+
* Output only. The minimum edition required to successfully restore the backup. Populated only if
492+
* the edition is Enterprise or Enterprise Plus.
493+
* @return value or {@code null} for none
494+
*/
495+
public java.lang.String getMinimumRestorableEdition() {
496+
return minimumRestorableEdition;
497+
}
498+
499+
/**
500+
* Output only. The minimum edition required to successfully restore the backup. Populated only if
501+
* the edition is Enterprise or Enterprise Plus.
502+
* @param minimumRestorableEdition minimumRestorableEdition or {@code null} for none
503+
*/
504+
public Backup setMinimumRestorableEdition(java.lang.String minimumRestorableEdition) {
505+
this.minimumRestorableEdition = minimumRestorableEdition;
506+
return this;
507+
}
508+
482509
/**
483510
* Output only for the CreateBackup operation. Required for the UpdateBackup operation. A globally
484511
* unique identifier for the backup which cannot be changed. Values are of the form
Lines changed: 72 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,72 @@
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.spanner.v1.model;
18+
19+
/**
20+
* Container for various pieces of client-owned context attached to a request.
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 Cloud Spanner API. For a detailed explanation see:
24+
* <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>
25+
* </p>
26+
*
27+
* @author Google, Inc.
28+
*/
29+
@SuppressWarnings("javadoc")
30+
public final class ClientContext extends com.google.api.client.json.GenericJson {
31+
32+
/**
33+
* Optional. Map of parameter name to value for this request. These values will be returned by any
34+
* SECURE_CONTEXT() calls invoked by this request (e.g., by queries against Parameterized Secure
35+
* Views).
36+
* The value may be {@code null}.
37+
*/
38+
@com.google.api.client.util.Key
39+
private java.util.Map<String, java.lang.Object> secureContext;
40+
41+
/**
42+
* Optional. Map of parameter name to value for this request. These values will be returned by any
43+
* SECURE_CONTEXT() calls invoked by this request (e.g., by queries against Parameterized Secure
44+
* Views).
45+
* @return value or {@code null} for none
46+
*/
47+
public java.util.Map<String, java.lang.Object> getSecureContext() {
48+
return secureContext;
49+
}
50+
51+
/**
52+
* Optional. Map of parameter name to value for this request. These values will be returned by any
53+
* SECURE_CONTEXT() calls invoked by this request (e.g., by queries against Parameterized Secure
54+
* Views).
55+
* @param secureContext secureContext or {@code null} for none
56+
*/
57+
public ClientContext setSecureContext(java.util.Map<String, java.lang.Object> secureContext) {
58+
this.secureContext = secureContext;
59+
return this;
60+
}
61+
62+
@Override
63+
public ClientContext set(String fieldName, Object value) {
64+
return (ClientContext) super.set(fieldName, value);
65+
}
66+
67+
@Override
68+
public ClientContext clone() {
69+
return (ClientContext) super.clone();
70+
}
71+
72+
}

0 commit comments

Comments
 (0)