@maxim_mazurok/gapi.client.spanner-v1 0.0.20240918 → 0.0.20241010

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/index.d.ts +31 -3
  2. package/package.json +1 -1
package/index.d.ts CHANGED
@@ -9,7 +9,7 @@
9
9
  // This file was generated by https://github.com/Maxim-Mazurok/google-api-typings-generator. Please do not edit it manually.
10
10
  // In case of any problems please post issue to https://github.com/Maxim-Mazurok/google-api-typings-generator
11
11
  // Generated from: https://spanner.googleapis.com/$discovery/rest?version=v1
12
- // Revision: 20240918
12
+ // Revision: 20241010
13
13
 
14
14
  /// <reference types="gapi.client" />
15
15
 
@@ -24,12 +24,26 @@ declare namespace gapi.client {
24
24
  function load(name: 'spanner', version: 'v1', callback: () => any): void;
25
25
 
26
26
  namespace spanner {
27
+ interface AsymmetricAutoscalingOption {
28
+ /** Optional. Overrides applied to the top-level autoscaling configuration for the selected replicas. */
29
+ overrides?: AutoscalingConfigOverrides;
30
+ /** Required. Selects the replicas to which this AsymmetricAutoscalingOption applies. Only read-only replicas are supported. */
31
+ replicaSelection?: InstanceReplicaSelection;
32
+ }
27
33
  interface AutoscalingConfig {
34
+ /** Optional. Optional asymmetric autoscaling options. Replicas matching the replica selection criteria will be autoscaled independently from other replicas. The autoscaler will scale the replicas based on the utilization of replicas identified by the replica selection. Replica selections should not overlap with each other. Other replicas (those do not match any replica selection) will be autoscaled together and will have the same compute capacity allocated to them. */
35
+ asymmetricAutoscalingOptions?: AsymmetricAutoscalingOption[];
28
36
  /** Required. Autoscaling limits for an instance. */
29
37
  autoscalingLimits?: AutoscalingLimits;
30
38
  /** Required. The autoscaling targets for an instance. */
31
39
  autoscalingTargets?: AutoscalingTargets;
32
40
  }
41
+ interface AutoscalingConfigOverrides {
42
+ /** Optional. If specified, overrides the min/max limit in the top-level autoscaling configuration for the selected replicas. */
43
+ autoscalingLimits?: AutoscalingLimits;
44
+ /** Optional. If specified, overrides the autoscaling target high_priority_cpu_utilization_percent in the top-level autoscaling configuration for the selected replicas. */
45
+ autoscalingTargetHighPriorityCpuUtilizationPercent?: number;
46
+ }
33
47
  interface AutoscalingLimits {
34
48
  /** Maximum number of nodes allocated to the instance. If set, this number should be greater than or equal to min_nodes. */
35
49
  maxNodes?: number;
@@ -549,10 +563,12 @@ declare namespace gapi.client {
549
563
  labels?: {[P in string]: string};
550
564
  /** Required. A unique identifier for the instance, which cannot be changed after the instance is created. Values are of the form `projects//instances/a-z*[a-z0-9]`. The final segment of the name must be between 2 and 64 characters in length. */
551
565
  name?: string;
552
- /** The number of nodes allocated to this instance. At most, one of either `node_count` or `processing_units` should be present in the message. Users can set the `node_count` field to specify the target number of nodes allocated to the instance. If autoscaling is enabled, `node_count` is treated as an `OUTPUT_ONLY` field and reflects the current number of nodes allocated to the instance. This might be zero in API responses for instances that are not yet in the `READY` state. For more information, see [Compute capacity, nodes, and processing units](https://cloud.google.com/spanner/docs/compute-capacity). */
566
+ /** The number of nodes allocated to this instance. At most, one of either `node_count` or `processing_units` should be present in the message. Users can set the `node_count` field to specify the target number of nodes allocated to the instance. If autoscaling is enabled, `node_count` is treated as an `OUTPUT_ONLY` field and reflects the current number of nodes allocated to the instance. This might be zero in API responses for instances that are not yet in the `READY` state. If the instance has varying node count across replicas (achieved by setting asymmetric_autoscaling_options in autoscaling config), the node_count here is the maximum node count across all replicas. For more information, see [Compute capacity, nodes, and processing units](https://cloud.google.com/spanner/docs/compute-capacity). */
553
567
  nodeCount?: number;
554
- /** The number of processing units allocated to this instance. At most, one of either `processing_units` or `node_count` should be present in the message. Users can set the `processing_units` field to specify the target number of processing units allocated to the instance. If autoscaling is enabled, `processing_units` is treated as an `OUTPUT_ONLY` field and reflects the current number of processing units allocated to the instance. This might be zero in API responses for instances that are not yet in the `READY` state. For more information, see [Compute capacity, nodes and processing units](https://cloud.google.com/spanner/docs/compute-capacity). */
568
+ /** The number of processing units allocated to this instance. At most, one of either `processing_units` or `node_count` should be present in the message. Users can set the `processing_units` field to specify the target number of processing units allocated to the instance. If autoscaling is enabled, `processing_units` is treated as an `OUTPUT_ONLY` field and reflects the current number of processing units allocated to the instance. This might be zero in API responses for instances that are not yet in the `READY` state. If the instance has varying processing units per replica (achieved by setting asymmetric_autoscaling_options in autoscaling config), the processing_units here is the maximum processing units across all replicas. For more information, see [Compute capacity, nodes and processing units](https://cloud.google.com/spanner/docs/compute-capacity). */
555
569
  processingUnits?: number;
570
+ /** Output only. Lists the compute capacity per ReplicaSelection. A replica selection identifies a set of replicas with common properties. Replicas identified by a ReplicaSelection are scaled with the same compute capacity. */
571
+ replicaComputeCapacity?: ReplicaComputeCapacity[];
556
572
  /** Output only. The current instance state. For CreateInstance, the state must be either omitted or set to `CREATING`. For UpdateInstance, the state must be either omitted or set to `READY`. */
557
573
  state?: string;
558
574
  /** Output only. The time at which the instance was most recently updated. */
@@ -620,6 +636,10 @@ declare namespace gapi.client {
620
636
  /** Output only. The time at which the instance partition was most recently updated. */
621
637
  updateTime?: string;
622
638
  }
639
+ interface InstanceReplicaSelection {
640
+ /** Required. Name of the location of the replicas (e.g., "us-central1"). */
641
+ location?: string;
642
+ }
623
643
  interface KeyRange {
624
644
  /** If the end is closed, then the range includes all rows whose first `len(end_closed)` key columns exactly match `end_closed`. */
625
645
  endClosed?: any[];
@@ -1017,6 +1037,14 @@ declare namespace gapi.client {
1017
1037
  /** Read lock mode for the transaction. */
1018
1038
  readLockMode?: string;
1019
1039
  }
1040
+ interface ReplicaComputeCapacity {
1041
+ /** The number of nodes allocated to each replica. This may be zero in API responses for instances that are not yet in state `READY`. */
1042
+ nodeCount?: number;
1043
+ /** The number of processing units allocated to each replica. This may be zero in API responses for instances that are not yet in state `READY`. */
1044
+ processingUnits?: number;
1045
+ /** Required. Identifies replicas by specified properties. All replicas in the selection have the same amount of compute capacity. */
1046
+ replicaSelection?: InstanceReplicaSelection;
1047
+ }
1020
1048
  interface ReplicaInfo {
1021
1049
  /** If true, this location is designated as the default leader location where leader replicas are placed. See the [region types documentation](https://cloud.google.com/spanner/docs/instances#region_types) for more details. */
1022
1050
  defaultLeaderLocation?: boolean;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@maxim_mazurok/gapi.client.spanner-v1",
3
- "version": "0.0.20240918",
3
+ "version": "0.0.20241010",
4
4
  "description": "TypeScript typings for Cloud Spanner API v1",
5
5
  "repository": {
6
6
  "type": "git",