Skip to content

Commit d046f6e

Browse files
feat(spanner): update the api
#### spanner:v1 The following keys were added: - schemas.AutoscalingConfig (Total Keys: 4) - schemas.AutoscalingLimits (Total Keys: 10) - schemas.AutoscalingTargets (Total Keys: 6) - schemas.Instance.properties.autoscalingConfig.$ref (Total Keys: 1)
1 parent 8eda3cb commit d046f6e

File tree

2 files changed

+111
-0
lines changed

2 files changed

+111
-0
lines changed

docs/dyn/spanner_v1.projects.instances.html

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -151,6 +151,18 @@ <h3>Method Details</h3>
151151

152152
{ # The request for CreateInstance.
153153
&quot;instance&quot;: { # An isolated set of Cloud Spanner resources on which databases can be hosted. # Required. The instance to create. The name may be omitted, but if specified must be `/instances/`.
154+
&quot;autoscalingConfig&quot;: { # Autoscaling config for an instance. # Optional. The autoscaling configuration. Autoscaling is enabled if this field is set. When autoscaling is enabled, node_count and processing_units are treated as OUTPUT_ONLY fields and reflect the current compute capacity allocated to the instance.
155+
&quot;autoscalingLimits&quot;: { # The autoscaling limits for the instance. Users can define the minimum and maximum compute capacity allocated to the instance, and the autoscaler will only scale within that range. Users can either use nodes or processing units to specify the limits, but should use the same unit to set both the min_limit and max_limit. # Required. Autoscaling limits for an instance.
156+
&quot;maxNodes&quot;: 42, # Maximum number of nodes allocated to the instance. If set, this number should be greater than or equal to min_nodes.
157+
&quot;maxProcessingUnits&quot;: 42, # Maximum number of processing units allocated to the instance. If set, this number should be multiples of 1000 and be greater than or equal to min_processing_units.
158+
&quot;minNodes&quot;: 42, # Minimum number of nodes allocated to the instance. If set, this number should be greater than or equal to 1.
159+
&quot;minProcessingUnits&quot;: 42, # Minimum number of processing units allocated to the instance. If set, this number should be multiples of 1000.
160+
},
161+
&quot;autoscalingTargets&quot;: { # The autoscaling targets for an instance. # Required. The autoscaling targets for an instance.
162+
&quot;highPriorityCpuUtilizationPercent&quot;: 42, # Required. The target high priority cpu utilization percentage that the autoscaler should be trying to achieve for the instance. This number is on a scale from 0 (no utilization) to 100 (full utilization). The valid range is [10, 90] inclusive.
163+
&quot;storageUtilizationPercent&quot;: 42, # Required. The target storage utilization percentage that the autoscaler should be trying to achieve for the instance. This number is on a scale from 0 (no utilization) to 100 (full utilization). The valid range is [10, 100] inclusive.
164+
},
165+
},
154166
&quot;config&quot;: &quot;A String&quot;, # Required. The name of the instance&#x27;s configuration. Values are of the form `projects//instanceConfigs/`. See also InstanceConfig and ListInstanceConfigs.
155167
&quot;createTime&quot;: &quot;A String&quot;, # Output only. The time at which the instance was created.
156168
&quot;displayName&quot;: &quot;A String&quot;, # Required. The descriptive name for this instance as it appears in UIs. Must be unique per project and between 4 and 30 characters in length.
@@ -238,6 +250,18 @@ <h3>Method Details</h3>
238250
An object of the form:
239251

240252
{ # An isolated set of Cloud Spanner resources on which databases can be hosted.
253+
&quot;autoscalingConfig&quot;: { # Autoscaling config for an instance. # Optional. The autoscaling configuration. Autoscaling is enabled if this field is set. When autoscaling is enabled, node_count and processing_units are treated as OUTPUT_ONLY fields and reflect the current compute capacity allocated to the instance.
254+
&quot;autoscalingLimits&quot;: { # The autoscaling limits for the instance. Users can define the minimum and maximum compute capacity allocated to the instance, and the autoscaler will only scale within that range. Users can either use nodes or processing units to specify the limits, but should use the same unit to set both the min_limit and max_limit. # Required. Autoscaling limits for an instance.
255+
&quot;maxNodes&quot;: 42, # Maximum number of nodes allocated to the instance. If set, this number should be greater than or equal to min_nodes.
256+
&quot;maxProcessingUnits&quot;: 42, # Maximum number of processing units allocated to the instance. If set, this number should be multiples of 1000 and be greater than or equal to min_processing_units.
257+
&quot;minNodes&quot;: 42, # Minimum number of nodes allocated to the instance. If set, this number should be greater than or equal to 1.
258+
&quot;minProcessingUnits&quot;: 42, # Minimum number of processing units allocated to the instance. If set, this number should be multiples of 1000.
259+
},
260+
&quot;autoscalingTargets&quot;: { # The autoscaling targets for an instance. # Required. The autoscaling targets for an instance.
261+
&quot;highPriorityCpuUtilizationPercent&quot;: 42, # Required. The target high priority cpu utilization percentage that the autoscaler should be trying to achieve for the instance. This number is on a scale from 0 (no utilization) to 100 (full utilization). The valid range is [10, 90] inclusive.
262+
&quot;storageUtilizationPercent&quot;: 42, # Required. The target storage utilization percentage that the autoscaler should be trying to achieve for the instance. This number is on a scale from 0 (no utilization) to 100 (full utilization). The valid range is [10, 100] inclusive.
263+
},
264+
},
241265
&quot;config&quot;: &quot;A String&quot;, # Required. The name of the instance&#x27;s configuration. Values are of the form `projects//instanceConfigs/`. See also InstanceConfig and ListInstanceConfigs.
242266
&quot;createTime&quot;: &quot;A String&quot;, # Output only. The time at which the instance was created.
243267
&quot;displayName&quot;: &quot;A String&quot;, # Required. The descriptive name for this instance as it appears in UIs. Must be unique per project and between 4 and 30 characters in length.
@@ -325,6 +349,18 @@ <h3>Method Details</h3>
325349
{ # The response for ListInstances.
326350
&quot;instances&quot;: [ # The list of requested instances.
327351
{ # An isolated set of Cloud Spanner resources on which databases can be hosted.
352+
&quot;autoscalingConfig&quot;: { # Autoscaling config for an instance. # Optional. The autoscaling configuration. Autoscaling is enabled if this field is set. When autoscaling is enabled, node_count and processing_units are treated as OUTPUT_ONLY fields and reflect the current compute capacity allocated to the instance.
353+
&quot;autoscalingLimits&quot;: { # The autoscaling limits for the instance. Users can define the minimum and maximum compute capacity allocated to the instance, and the autoscaler will only scale within that range. Users can either use nodes or processing units to specify the limits, but should use the same unit to set both the min_limit and max_limit. # Required. Autoscaling limits for an instance.
354+
&quot;maxNodes&quot;: 42, # Maximum number of nodes allocated to the instance. If set, this number should be greater than or equal to min_nodes.
355+
&quot;maxProcessingUnits&quot;: 42, # Maximum number of processing units allocated to the instance. If set, this number should be multiples of 1000 and be greater than or equal to min_processing_units.
356+
&quot;minNodes&quot;: 42, # Minimum number of nodes allocated to the instance. If set, this number should be greater than or equal to 1.
357+
&quot;minProcessingUnits&quot;: 42, # Minimum number of processing units allocated to the instance. If set, this number should be multiples of 1000.
358+
},
359+
&quot;autoscalingTargets&quot;: { # The autoscaling targets for an instance. # Required. The autoscaling targets for an instance.
360+
&quot;highPriorityCpuUtilizationPercent&quot;: 42, # Required. The target high priority cpu utilization percentage that the autoscaler should be trying to achieve for the instance. This number is on a scale from 0 (no utilization) to 100 (full utilization). The valid range is [10, 90] inclusive.
361+
&quot;storageUtilizationPercent&quot;: 42, # Required. The target storage utilization percentage that the autoscaler should be trying to achieve for the instance. This number is on a scale from 0 (no utilization) to 100 (full utilization). The valid range is [10, 100] inclusive.
362+
},
363+
},
328364
&quot;config&quot;: &quot;A String&quot;, # Required. The name of the instance&#x27;s configuration. Values are of the form `projects//instanceConfigs/`. See also InstanceConfig and ListInstanceConfigs.
329365
&quot;createTime&quot;: &quot;A String&quot;, # Output only. The time at which the instance was created.
330366
&quot;displayName&quot;: &quot;A String&quot;, # Required. The descriptive name for this instance as it appears in UIs. Must be unique per project and between 4 and 30 characters in length.
@@ -380,6 +416,18 @@ <h3>Method Details</h3>
380416
{ # The request for UpdateInstance.
381417
&quot;fieldMask&quot;: &quot;A String&quot;, # Required. A mask specifying which fields in Instance should be updated. The field mask must always be specified; this prevents any future fields in Instance from being erased accidentally by clients that do not know about them.
382418
&quot;instance&quot;: { # An isolated set of Cloud Spanner resources on which databases can be hosted. # Required. The instance to update, which must always include the instance name. Otherwise, only fields mentioned in field_mask need be included.
419+
&quot;autoscalingConfig&quot;: { # Autoscaling config for an instance. # Optional. The autoscaling configuration. Autoscaling is enabled if this field is set. When autoscaling is enabled, node_count and processing_units are treated as OUTPUT_ONLY fields and reflect the current compute capacity allocated to the instance.
420+
&quot;autoscalingLimits&quot;: { # The autoscaling limits for the instance. Users can define the minimum and maximum compute capacity allocated to the instance, and the autoscaler will only scale within that range. Users can either use nodes or processing units to specify the limits, but should use the same unit to set both the min_limit and max_limit. # Required. Autoscaling limits for an instance.
421+
&quot;maxNodes&quot;: 42, # Maximum number of nodes allocated to the instance. If set, this number should be greater than or equal to min_nodes.
422+
&quot;maxProcessingUnits&quot;: 42, # Maximum number of processing units allocated to the instance. If set, this number should be multiples of 1000 and be greater than or equal to min_processing_units.
423+
&quot;minNodes&quot;: 42, # Minimum number of nodes allocated to the instance. If set, this number should be greater than or equal to 1.
424+
&quot;minProcessingUnits&quot;: 42, # Minimum number of processing units allocated to the instance. If set, this number should be multiples of 1000.
425+
},
426+
&quot;autoscalingTargets&quot;: { # The autoscaling targets for an instance. # Required. The autoscaling targets for an instance.
427+
&quot;highPriorityCpuUtilizationPercent&quot;: 42, # Required. The target high priority cpu utilization percentage that the autoscaler should be trying to achieve for the instance. This number is on a scale from 0 (no utilization) to 100 (full utilization). The valid range is [10, 90] inclusive.
428+
&quot;storageUtilizationPercent&quot;: 42, # Required. The target storage utilization percentage that the autoscaler should be trying to achieve for the instance. This number is on a scale from 0 (no utilization) to 100 (full utilization). The valid range is [10, 100] inclusive.
429+
},
430+
},
383431
&quot;config&quot;: &quot;A String&quot;, # Required. The name of the instance&#x27;s configuration. Values are of the form `projects//instanceConfigs/`. See also InstanceConfig and ListInstanceConfigs.
384432
&quot;createTime&quot;: &quot;A String&quot;, # Output only. The time at which the instance was created.
385433
&quot;displayName&quot;: &quot;A String&quot;, # Required. The descriptive name for this instance as it appears in UIs. Must be unique per project and between 4 and 30 characters in length.

googleapiclient/discovery_cache/documents/spanner.v1.json

Lines changed: 63 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2604,6 +2604,65 @@
26042604
"revision": "20231017",
26052605
"rootUrl": "https://spanner.googleapis.com/",
26062606
"schemas": {
2607+
"AutoscalingConfig": {
2608+
"description": "Autoscaling config for an instance.",
2609+
"id": "AutoscalingConfig",
2610+
"properties": {
2611+
"autoscalingLimits": {
2612+
"$ref": "AutoscalingLimits",
2613+
"description": "Required. Autoscaling limits for an instance."
2614+
},
2615+
"autoscalingTargets": {
2616+
"$ref": "AutoscalingTargets",
2617+
"description": "Required. The autoscaling targets for an instance."
2618+
}
2619+
},
2620+
"type": "object"
2621+
},
2622+
"AutoscalingLimits": {
2623+
"description": "The autoscaling limits for the instance. Users can define the minimum and maximum compute capacity allocated to the instance, and the autoscaler will only scale within that range. Users can either use nodes or processing units to specify the limits, but should use the same unit to set both the min_limit and max_limit.",
2624+
"id": "AutoscalingLimits",
2625+
"properties": {
2626+
"maxNodes": {
2627+
"description": "Maximum number of nodes allocated to the instance. If set, this number should be greater than or equal to min_nodes.",
2628+
"format": "int32",
2629+
"type": "integer"
2630+
},
2631+
"maxProcessingUnits": {
2632+
"description": "Maximum number of processing units allocated to the instance. If set, this number should be multiples of 1000 and be greater than or equal to min_processing_units.",
2633+
"format": "int32",
2634+
"type": "integer"
2635+
},
2636+
"minNodes": {
2637+
"description": "Minimum number of nodes allocated to the instance. If set, this number should be greater than or equal to 1.",
2638+
"format": "int32",
2639+
"type": "integer"
2640+
},
2641+
"minProcessingUnits": {
2642+
"description": "Minimum number of processing units allocated to the instance. If set, this number should be multiples of 1000.",
2643+
"format": "int32",
2644+
"type": "integer"
2645+
}
2646+
},
2647+
"type": "object"
2648+
},
2649+
"AutoscalingTargets": {
2650+
"description": "The autoscaling targets for an instance.",
2651+
"id": "AutoscalingTargets",
2652+
"properties": {
2653+
"highPriorityCpuUtilizationPercent": {
2654+
"description": "Required. The target high priority cpu utilization percentage that the autoscaler should be trying to achieve for the instance. This number is on a scale from 0 (no utilization) to 100 (full utilization). The valid range is [10, 90] inclusive.",
2655+
"format": "int32",
2656+
"type": "integer"
2657+
},
2658+
"storageUtilizationPercent": {
2659+
"description": "Required. The target storage utilization percentage that the autoscaler should be trying to achieve for the instance. This number is on a scale from 0 (no utilization) to 100 (full utilization). The valid range is [10, 100] inclusive.",
2660+
"format": "int32",
2661+
"type": "integer"
2662+
}
2663+
},
2664+
"type": "object"
2665+
},
26072666
"Backup": {
26082667
"description": "A backup of a Cloud Spanner database.",
26092668
"id": "Backup",
@@ -3717,6 +3776,10 @@
37173776
"description": "An isolated set of Cloud Spanner resources on which databases can be hosted.",
37183777
"id": "Instance",
37193778
"properties": {
3779+
"autoscalingConfig": {
3780+
"$ref": "AutoscalingConfig",
3781+
"description": "Optional. The autoscaling configuration. Autoscaling is enabled if this field is set. When autoscaling is enabled, node_count and processing_units are treated as OUTPUT_ONLY fields and reflect the current compute capacity allocated to the instance."
3782+
},
37203783
"config": {
37213784
"description": "Required. The name of the instance's configuration. Values are of the form `projects//instanceConfigs/`. See also InstanceConfig and ListInstanceConfigs.",
37223785
"type": "string"

0 commit comments

Comments
 (0)