@@ -123,8 +123,10 @@ public final class Instance extends com.google.api.client.json.GenericJson {
123
123
* specify the target number of nodes allocated to the instance. If autoscaling is enabled,
124
124
* `node_count` is treated as an `OUTPUT_ONLY` field and reflects the current number of nodes
125
125
* 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).
128
130
* The value may be {@code null}.
129
131
*/
130
132
@ com .google .api .client .util .Key
@@ -136,14 +138,25 @@ public final class Instance extends com.google.api.client.json.GenericJson {
136
138
* `processing_units` field to specify the target number of processing units allocated to the
137
139
* instance. If autoscaling is enabled, `processing_units` is treated as an `OUTPUT_ONLY` field
138
140
* 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
141
145
* units](https://cloud.google.com/spanner/docs/compute-capacity).
142
146
* The value may be {@code null}.
143
147
*/
144
148
@ com .google .api .client .util .Key
145
149
private java .lang .Integer processingUnits ;
146
150
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
+
147
160
/**
148
161
* Output only. The current instance state. For CreateInstance, the state must be either omitted
149
162
* 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) {
371
384
* specify the target number of nodes allocated to the instance. If autoscaling is enabled,
372
385
* `node_count` is treated as an `OUTPUT_ONLY` field and reflects the current number of nodes
373
386
* 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).
376
391
* @return value or {@code null} for none
377
392
*/
378
393
public java .lang .Integer getNodeCount () {
@@ -385,8 +400,10 @@ public java.lang.Integer getNodeCount() {
385
400
* specify the target number of nodes allocated to the instance. If autoscaling is enabled,
386
401
* `node_count` is treated as an `OUTPUT_ONLY` field and reflects the current number of nodes
387
402
* 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).
390
407
* @param nodeCount nodeCount or {@code null} for none
391
408
*/
392
409
public Instance setNodeCount (java .lang .Integer nodeCount ) {
@@ -400,8 +417,10 @@ public Instance setNodeCount(java.lang.Integer nodeCount) {
400
417
* `processing_units` field to specify the target number of processing units allocated to the
401
418
* instance. If autoscaling is enabled, `processing_units` is treated as an `OUTPUT_ONLY` field
402
419
* 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
405
424
* units](https://cloud.google.com/spanner/docs/compute-capacity).
406
425
* @return value or {@code null} for none
407
426
*/
@@ -415,8 +434,10 @@ public java.lang.Integer getProcessingUnits() {
415
434
* `processing_units` field to specify the target number of processing units allocated to the
416
435
* instance. If autoscaling is enabled, `processing_units` is treated as an `OUTPUT_ONLY` field
417
436
* 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
420
441
* units](https://cloud.google.com/spanner/docs/compute-capacity).
421
442
* @param processingUnits processingUnits or {@code null} for none
422
443
*/
@@ -425,6 +446,27 @@ public Instance setProcessingUnits(java.lang.Integer processingUnits) {
425
446
return this ;
426
447
}
427
448
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
+
428
470
/**
429
471
* Output only. The current instance state. For CreateInstance, the state must be either omitted
430
472
* or set to `CREATING`. For UpdateInstance, the state must be either omitted or set to `READY`.
0 commit comments