Skip to content

Commit 1634d65

Browse files
1 parent e3c4b60 commit 1634d65

File tree

9 files changed

+489
-18
lines changed

9 files changed

+489
-18
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-rev20240930-2.0.0</version>
25+
<version>v1-rev20241010-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-rev20240930-2.0.0'
38+
implementation 'com.google.apis:google-api-services-spanner:v1-rev20241010-2.0.0'
3939
}
4040
```
4141

Original file line numberDiff line numberDiff line change
@@ -0,0 +1,96 @@
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+
* AsymmetricAutoscalingOption specifies the scaling of replicas identified by the given selection.
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 AsymmetricAutoscalingOption extends com.google.api.client.json.GenericJson {
31+
32+
/**
33+
* Optional. Overrides applied to the top-level autoscaling configuration for the selected
34+
* replicas.
35+
* The value may be {@code null}.
36+
*/
37+
@com.google.api.client.util.Key
38+
private AutoscalingConfigOverrides overrides;
39+
40+
/**
41+
* Required. Selects the replicas to which this AsymmetricAutoscalingOption applies. Only read-
42+
* only replicas are supported.
43+
* The value may be {@code null}.
44+
*/
45+
@com.google.api.client.util.Key
46+
private InstanceReplicaSelection replicaSelection;
47+
48+
/**
49+
* Optional. Overrides applied to the top-level autoscaling configuration for the selected
50+
* replicas.
51+
* @return value or {@code null} for none
52+
*/
53+
public AutoscalingConfigOverrides getOverrides() {
54+
return overrides;
55+
}
56+
57+
/**
58+
* Optional. Overrides applied to the top-level autoscaling configuration for the selected
59+
* replicas.
60+
* @param overrides overrides or {@code null} for none
61+
*/
62+
public AsymmetricAutoscalingOption setOverrides(AutoscalingConfigOverrides overrides) {
63+
this.overrides = overrides;
64+
return this;
65+
}
66+
67+
/**
68+
* Required. Selects the replicas to which this AsymmetricAutoscalingOption applies. Only read-
69+
* only replicas are supported.
70+
* @return value or {@code null} for none
71+
*/
72+
public InstanceReplicaSelection getReplicaSelection() {
73+
return replicaSelection;
74+
}
75+
76+
/**
77+
* Required. Selects the replicas to which this AsymmetricAutoscalingOption applies. Only read-
78+
* only replicas are supported.
79+
* @param replicaSelection replicaSelection or {@code null} for none
80+
*/
81+
public AsymmetricAutoscalingOption setReplicaSelection(InstanceReplicaSelection replicaSelection) {
82+
this.replicaSelection = replicaSelection;
83+
return this;
84+
}
85+
86+
@Override
87+
public AsymmetricAutoscalingOption set(String fieldName, Object value) {
88+
return (AsymmetricAutoscalingOption) super.set(fieldName, value);
89+
}
90+
91+
@Override
92+
public AsymmetricAutoscalingOption clone() {
93+
return (AsymmetricAutoscalingOption) super.clone();
94+
}
95+
96+
}

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

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,24 @@
2929
@SuppressWarnings("javadoc")
3030
public final class AutoscalingConfig extends com.google.api.client.json.GenericJson {
3131

32+
/**
33+
* Optional. Optional asymmetric autoscaling options. Replicas matching the replica selection
34+
* criteria will be autoscaled independently from other replicas. The autoscaler will scale the
35+
* replicas based on the utilization of replicas identified by the replica selection. Replica
36+
* selections should not overlap with each other. Other replicas (those do not match any replica
37+
* selection) will be autoscaled together and will have the same compute capacity allocated to
38+
* them.
39+
* The value may be {@code null}.
40+
*/
41+
@com.google.api.client.util.Key
42+
private java.util.List<AsymmetricAutoscalingOption> asymmetricAutoscalingOptions;
43+
44+
static {
45+
// hack to force ProGuard to consider AsymmetricAutoscalingOption used, since otherwise it would be stripped out
46+
// see https://github.com/google/google-api-java-client/issues/543
47+
com.google.api.client.util.Data.nullOf(AsymmetricAutoscalingOption.class);
48+
}
49+
3250
/**
3351
* Required. Autoscaling limits for an instance.
3452
* The value may be {@code null}.
@@ -43,6 +61,33 @@ public final class AutoscalingConfig extends com.google.api.client.json.GenericJ
4361
@com.google.api.client.util.Key
4462
private AutoscalingTargets autoscalingTargets;
4563

64+
/**
65+
* Optional. Optional asymmetric autoscaling options. Replicas matching the replica selection
66+
* criteria will be autoscaled independently from other replicas. The autoscaler will scale the
67+
* replicas based on the utilization of replicas identified by the replica selection. Replica
68+
* selections should not overlap with each other. Other replicas (those do not match any replica
69+
* selection) will be autoscaled together and will have the same compute capacity allocated to
70+
* them.
71+
* @return value or {@code null} for none
72+
*/
73+
public java.util.List<AsymmetricAutoscalingOption> getAsymmetricAutoscalingOptions() {
74+
return asymmetricAutoscalingOptions;
75+
}
76+
77+
/**
78+
* Optional. Optional asymmetric autoscaling options. Replicas matching the replica selection
79+
* criteria will be autoscaled independently from other replicas. The autoscaler will scale the
80+
* replicas based on the utilization of replicas identified by the replica selection. Replica
81+
* selections should not overlap with each other. Other replicas (those do not match any replica
82+
* selection) will be autoscaled together and will have the same compute capacity allocated to
83+
* them.
84+
* @param asymmetricAutoscalingOptions asymmetricAutoscalingOptions or {@code null} for none
85+
*/
86+
public AutoscalingConfig setAsymmetricAutoscalingOptions(java.util.List<AsymmetricAutoscalingOption> asymmetricAutoscalingOptions) {
87+
this.asymmetricAutoscalingOptions = asymmetricAutoscalingOptions;
88+
return this;
89+
}
90+
4691
/**
4792
* Required. Autoscaling limits for an instance.
4893
* @return value or {@code null} for none
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,98 @@
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+
* Overrides the top-level autoscaling configuration for the replicas identified by
21+
* `replica_selection`. All fields in this message are optional. Any unspecified fields will use the
22+
* corresponding values from the top-level autoscaling configuration.
23+
*
24+
* <p> This is the Java data model class that specifies how to parse/serialize into the JSON that is
25+
* transmitted over HTTP when working with the Cloud Spanner API. For a detailed explanation see:
26+
* <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>
27+
* </p>
28+
*
29+
* @author Google, Inc.
30+
*/
31+
@SuppressWarnings("javadoc")
32+
public final class AutoscalingConfigOverrides extends com.google.api.client.json.GenericJson {
33+
34+
/**
35+
* Optional. If specified, overrides the min/max limit in the top-level autoscaling configuration
36+
* for the selected replicas.
37+
* The value may be {@code null}.
38+
*/
39+
@com.google.api.client.util.Key
40+
private AutoscalingLimits autoscalingLimits;
41+
42+
/**
43+
* Optional. If specified, overrides the autoscaling target high_priority_cpu_utilization_percent
44+
* in the top-level autoscaling configuration for the selected replicas.
45+
* The value may be {@code null}.
46+
*/
47+
@com.google.api.client.util.Key
48+
private java.lang.Integer autoscalingTargetHighPriorityCpuUtilizationPercent;
49+
50+
/**
51+
* Optional. If specified, overrides the min/max limit in the top-level autoscaling configuration
52+
* for the selected replicas.
53+
* @return value or {@code null} for none
54+
*/
55+
public AutoscalingLimits getAutoscalingLimits() {
56+
return autoscalingLimits;
57+
}
58+
59+
/**
60+
* Optional. If specified, overrides the min/max limit in the top-level autoscaling configuration
61+
* for the selected replicas.
62+
* @param autoscalingLimits autoscalingLimits or {@code null} for none
63+
*/
64+
public AutoscalingConfigOverrides setAutoscalingLimits(AutoscalingLimits autoscalingLimits) {
65+
this.autoscalingLimits = autoscalingLimits;
66+
return this;
67+
}
68+
69+
/**
70+
* Optional. If specified, overrides the autoscaling target high_priority_cpu_utilization_percent
71+
* in the top-level autoscaling configuration for the selected replicas.
72+
* @return value or {@code null} for none
73+
*/
74+
public java.lang.Integer getAutoscalingTargetHighPriorityCpuUtilizationPercent() {
75+
return autoscalingTargetHighPriorityCpuUtilizationPercent;
76+
}
77+
78+
/**
79+
* Optional. If specified, overrides the autoscaling target high_priority_cpu_utilization_percent
80+
* in the top-level autoscaling configuration for the selected replicas.
81+
* @param autoscalingTargetHighPriorityCpuUtilizationPercent autoscalingTargetHighPriorityCpuUtilizationPercent or {@code null} for none
82+
*/
83+
public AutoscalingConfigOverrides setAutoscalingTargetHighPriorityCpuUtilizationPercent(java.lang.Integer autoscalingTargetHighPriorityCpuUtilizationPercent) {
84+
this.autoscalingTargetHighPriorityCpuUtilizationPercent = autoscalingTargetHighPriorityCpuUtilizationPercent;
85+
return this;
86+
}
87+
88+
@Override
89+
public AutoscalingConfigOverrides set(String fieldName, Object value) {
90+
return (AutoscalingConfigOverrides) super.set(fieldName, value);
91+
}
92+
93+
@Override
94+
public AutoscalingConfigOverrides clone() {
95+
return (AutoscalingConfigOverrides) super.clone();
96+
}
97+
98+
}

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

Lines changed: 54 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -123,8 +123,10 @@ public final class Instance extends com.google.api.client.json.GenericJson {
123123
* specify the target number of nodes allocated to the instance. If autoscaling is enabled,
124124
* `node_count` is treated as an `OUTPUT_ONLY` field and reflects the current number of nodes
125125
* allocated to the instance. This might be zero in API responses for instances that are not yet
126-
* in the `READY` state. For more information, see [Compute capacity, nodes, and processing
127-
* units](https://cloud.google.com/spanner/docs/compute-capacity).
126+
* in the `READY` state. If the instance has varying node count across replicas (achieved by
127+
* setting asymmetric_autoscaling_options in autoscaling config), the node_count here is the
128+
* maximum node count across all replicas. For more information, see [Compute capacity, nodes, and
129+
* processing units](https://cloud.google.com/spanner/docs/compute-capacity).
128130
* The value may be {@code null}.
129131
*/
130132
@com.google.api.client.util.Key
@@ -136,14 +138,25 @@ public final class Instance extends com.google.api.client.json.GenericJson {
136138
* `processing_units` field to specify the target number of processing units allocated to the
137139
* instance. If autoscaling is enabled, `processing_units` is treated as an `OUTPUT_ONLY` field
138140
* and reflects the current number of processing units allocated to the instance. This might be
139-
* zero in API responses for instances that are not yet in the `READY` state. For more
140-
* information, see [Compute capacity, nodes and processing
141+
* zero in API responses for instances that are not yet in the `READY` state. If the instance has
142+
* varying processing units per replica (achieved by setting asymmetric_autoscaling_options in
143+
* autoscaling config), the processing_units here is the maximum processing units across all
144+
* replicas. For more information, see [Compute capacity, nodes and processing
141145
* units](https://cloud.google.com/spanner/docs/compute-capacity).
142146
* The value may be {@code null}.
143147
*/
144148
@com.google.api.client.util.Key
145149
private java.lang.Integer processingUnits;
146150

151+
/**
152+
* Output only. Lists the compute capacity per ReplicaSelection. A replica selection identifies a
153+
* set of replicas with common properties. Replicas identified by a ReplicaSelection are scaled
154+
* with the same compute capacity.
155+
* The value may be {@code null}.
156+
*/
157+
@com.google.api.client.util.Key
158+
private java.util.List<ReplicaComputeCapacity> replicaComputeCapacity;
159+
147160
/**
148161
* Output only. The current instance state. For CreateInstance, the state must be either omitted
149162
* or set to `CREATING`. For UpdateInstance, the state must be either omitted or set to `READY`.
@@ -371,8 +384,10 @@ public Instance setName(java.lang.String name) {
371384
* specify the target number of nodes allocated to the instance. If autoscaling is enabled,
372385
* `node_count` is treated as an `OUTPUT_ONLY` field and reflects the current number of nodes
373386
* allocated to the instance. This might be zero in API responses for instances that are not yet
374-
* in the `READY` state. For more information, see [Compute capacity, nodes, and processing
375-
* units](https://cloud.google.com/spanner/docs/compute-capacity).
387+
* in the `READY` state. If the instance has varying node count across replicas (achieved by
388+
* setting asymmetric_autoscaling_options in autoscaling config), the node_count here is the
389+
* maximum node count across all replicas. For more information, see [Compute capacity, nodes, and
390+
* processing units](https://cloud.google.com/spanner/docs/compute-capacity).
376391
* @return value or {@code null} for none
377392
*/
378393
public java.lang.Integer getNodeCount() {
@@ -385,8 +400,10 @@ public java.lang.Integer getNodeCount() {
385400
* specify the target number of nodes allocated to the instance. If autoscaling is enabled,
386401
* `node_count` is treated as an `OUTPUT_ONLY` field and reflects the current number of nodes
387402
* allocated to the instance. This might be zero in API responses for instances that are not yet
388-
* in the `READY` state. For more information, see [Compute capacity, nodes, and processing
389-
* units](https://cloud.google.com/spanner/docs/compute-capacity).
403+
* in the `READY` state. If the instance has varying node count across replicas (achieved by
404+
* setting asymmetric_autoscaling_options in autoscaling config), the node_count here is the
405+
* maximum node count across all replicas. For more information, see [Compute capacity, nodes, and
406+
* processing units](https://cloud.google.com/spanner/docs/compute-capacity).
390407
* @param nodeCount nodeCount or {@code null} for none
391408
*/
392409
public Instance setNodeCount(java.lang.Integer nodeCount) {
@@ -400,8 +417,10 @@ public Instance setNodeCount(java.lang.Integer nodeCount) {
400417
* `processing_units` field to specify the target number of processing units allocated to the
401418
* instance. If autoscaling is enabled, `processing_units` is treated as an `OUTPUT_ONLY` field
402419
* and reflects the current number of processing units allocated to the instance. This might be
403-
* zero in API responses for instances that are not yet in the `READY` state. For more
404-
* information, see [Compute capacity, nodes and processing
420+
* zero in API responses for instances that are not yet in the `READY` state. If the instance has
421+
* varying processing units per replica (achieved by setting asymmetric_autoscaling_options in
422+
* autoscaling config), the processing_units here is the maximum processing units across all
423+
* replicas. For more information, see [Compute capacity, nodes and processing
405424
* units](https://cloud.google.com/spanner/docs/compute-capacity).
406425
* @return value or {@code null} for none
407426
*/
@@ -415,8 +434,10 @@ public java.lang.Integer getProcessingUnits() {
415434
* `processing_units` field to specify the target number of processing units allocated to the
416435
* instance. If autoscaling is enabled, `processing_units` is treated as an `OUTPUT_ONLY` field
417436
* and reflects the current number of processing units allocated to the instance. This might be
418-
* zero in API responses for instances that are not yet in the `READY` state. For more
419-
* information, see [Compute capacity, nodes and processing
437+
* zero in API responses for instances that are not yet in the `READY` state. If the instance has
438+
* varying processing units per replica (achieved by setting asymmetric_autoscaling_options in
439+
* autoscaling config), the processing_units here is the maximum processing units across all
440+
* replicas. For more information, see [Compute capacity, nodes and processing
420441
* units](https://cloud.google.com/spanner/docs/compute-capacity).
421442
* @param processingUnits processingUnits or {@code null} for none
422443
*/
@@ -425,6 +446,27 @@ public Instance setProcessingUnits(java.lang.Integer processingUnits) {
425446
return this;
426447
}
427448

449+
/**
450+
* Output only. Lists the compute capacity per ReplicaSelection. A replica selection identifies a
451+
* set of replicas with common properties. Replicas identified by a ReplicaSelection are scaled
452+
* with the same compute capacity.
453+
* @return value or {@code null} for none
454+
*/
455+
public java.util.List<ReplicaComputeCapacity> getReplicaComputeCapacity() {
456+
return replicaComputeCapacity;
457+
}
458+
459+
/**
460+
* Output only. Lists the compute capacity per ReplicaSelection. A replica selection identifies a
461+
* set of replicas with common properties. Replicas identified by a ReplicaSelection are scaled
462+
* with the same compute capacity.
463+
* @param replicaComputeCapacity replicaComputeCapacity or {@code null} for none
464+
*/
465+
public Instance setReplicaComputeCapacity(java.util.List<ReplicaComputeCapacity> replicaComputeCapacity) {
466+
this.replicaComputeCapacity = replicaComputeCapacity;
467+
return this;
468+
}
469+
428470
/**
429471
* Output only. The current instance state. For CreateInstance, the state must be either omitted
430472
* or set to `CREATING`. For UpdateInstance, the state must be either omitted or set to `READY`.

0 commit comments

Comments
 (0)