@maxim_mazurok/gapi.client.spanner-v1 0.0.20240228 → 0.0.20240312

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 +322 -1
  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: 20240228
12
+ // Revision: 20240312
13
13
 
14
14
  /// <reference types="gapi.client" />
15
15
 
@@ -93,6 +93,8 @@ declare namespace gapi.client {
93
93
  session?: Session[];
94
94
  }
95
95
  interface BatchWriteRequest {
96
+ /** Optional. When `exclude_txn_from_change_streams` is set to `true`: * Mutations from all transactions in this batch write operation will not be recorded in change streams with DDL option `allow_txn_exclusion=true` that are tracking columns modified by these transactions. * Mutations from all transactions in this batch write operation will be recorded in change streams with DDL option `allow_txn_exclusion=false or not set` that are tracking columns modified by these transactions. When `exclude_txn_from_change_streams` is set to `false` or not set, mutations from all transactions in this batch write operation will be recorded in all change streams that are tracking columns modified by these transactions. */
97
+ excludeTxnFromChangeStreams?: boolean;
96
98
  /** Required. The groups of mutations to be applied. */
97
99
  mutationGroups?: MutationGroup[];
98
100
  /** Common options for this request. */
@@ -242,6 +244,22 @@ declare namespace gapi.client {
242
244
  /** The time at which the CreateInstance request was received. */
243
245
  startTime?: string;
244
246
  }
247
+ interface CreateInstancePartitionMetadata {
248
+ /** The time at which this operation was cancelled. If set, this operation is in the process of undoing itself (which is guaranteed to succeed) and cannot be cancelled again. */
249
+ cancelTime?: string;
250
+ /** The time at which this operation failed or was completed successfully. */
251
+ endTime?: string;
252
+ /** The instance partition being created. */
253
+ instancePartition?: InstancePartition;
254
+ /** The time at which the CreateInstancePartition request was received. */
255
+ startTime?: string;
256
+ }
257
+ interface CreateInstancePartitionRequest {
258
+ /** Required. The instance partition to create. The instance_partition.name may be omitted, but if specified must be `/instancePartitions/`. */
259
+ instancePartition?: InstancePartition;
260
+ /** Required. The ID of the instance partition to create. Valid identifiers are of the form `a-z*[a-z0-9]` and must be between 2 and 64 characters in length. */
261
+ instancePartitionId?: string;
262
+ }
245
263
  interface CreateInstanceRequest {
246
264
  /** Required. The instance to create. The name may be omitted, but if specified must be `/instances/`. */
247
265
  instance?: Instance;
@@ -501,6 +519,30 @@ declare namespace gapi.client {
501
519
  /** Time the request was received. */
502
520
  startTime?: string;
503
521
  }
522
+ interface InstancePartition {
523
+ /** Required. The name of the instance partition's configuration. Values are of the form `projects//instanceConfigs/`. See also InstanceConfig and ListInstanceConfigs. */
524
+ config?: string;
525
+ /** Output only. The time at which the instance partition was created. */
526
+ createTime?: string;
527
+ /** Required. The descriptive name for this instance partition as it appears in UIs. Must be unique per project and between 4 and 30 characters in length. */
528
+ displayName?: string;
529
+ /** Used for optimistic concurrency control as a way to help prevent simultaneous updates of a instance partition from overwriting each other. It is strongly suggested that systems make use of the etag in the read-modify-write cycle to perform instance partition updates in order to avoid race conditions: An etag is returned in the response which contains instance partitions, and systems are expected to put that etag in the request to update instance partitions to ensure that their change will be applied to the same version of the instance partition. If no etag is provided in the call to update instance partition, then the existing instance partition is overwritten blindly. */
530
+ etag?: string;
531
+ /** Required. A unique identifier for the instance partition. Values are of the form `projects//instances//instancePartitions/a-z*[a-z0-9]`. The final segment of the name must be between 2 and 64 characters in length. An instance partition's name cannot be changed after the instance partition is created. */
532
+ name?: string;
533
+ /** The number of nodes allocated to this instance partition. Users can set the node_count field to specify the target number of nodes allocated to the instance partition. This may be zero in API responses for instance partitions that are not yet in state `READY`. */
534
+ nodeCount?: number;
535
+ /** The number of processing units allocated to this instance partition. Users can set the processing_units field to specify the target number of processing units allocated to the instance partition. This may be zero in API responses for instance partitions that are not yet in state `READY`. */
536
+ processingUnits?: number;
537
+ /** Output only. The names of the backups that reference this instance partition. Referencing backups should share the parent instance. The existence of any referencing backup prevents the instance partition from being deleted. */
538
+ referencingBackups?: string[];
539
+ /** Output only. The names of the databases that reference this instance partition. Referencing databases should share the parent instance. The existence of any referencing database prevents the instance partition from being deleted. */
540
+ referencingDatabases?: string[];
541
+ /** Output only. The current instance partition state. */
542
+ state?: string;
543
+ /** Output only. The time at which the instance partition was most recently updated. */
544
+ updateTime?: string;
545
+ }
504
546
  interface KeyRange {
505
547
  /** If the end is closed, then the range includes all rows whose first `len(end_closed)` key columns exactly match `end_closed`. */
506
548
  endClosed?: any[];
@@ -587,6 +629,22 @@ declare namespace gapi.client {
587
629
  /** `next_page_token` can be sent in a subsequent ListInstanceConfigs call to fetch more of the matching instance configurations. */
588
630
  nextPageToken?: string;
589
631
  }
632
+ interface ListInstancePartitionOperationsResponse {
633
+ /** `next_page_token` can be sent in a subsequent ListInstancePartitionOperations call to fetch more of the matching metadata. */
634
+ nextPageToken?: string;
635
+ /** The list of matching instance partition long-running operations. Each operation's name will be prefixed by the instance partition's name. The operation's metadata field type `metadata.type_url` describes the type of the metadata. */
636
+ operations?: Operation[];
637
+ /** The list of unreachable instance partitions. It includes the names of instance partitions whose operation metadata could not be retrieved within instance_partition_deadline. */
638
+ unreachableInstancePartitions?: string[];
639
+ }
640
+ interface ListInstancePartitionsResponse {
641
+ /** The list of requested instancePartitions. */
642
+ instancePartitions?: InstancePartition[];
643
+ /** `next_page_token` can be sent in a subsequent ListInstancePartitions call to fetch more of the matching instance partitions. */
644
+ nextPageToken?: string;
645
+ /** The list of unreachable instance partitions. It includes the names of instance partitions whose metadata could not be retrieved within instance_partition_deadline. */
646
+ unreachable?: string[];
647
+ }
590
648
  interface ListInstancesResponse {
591
649
  /** The list of requested instances. */
592
650
  instances?: Instance[];
@@ -961,6 +1019,8 @@ declare namespace gapi.client {
961
1019
  creatorRole?: string;
962
1020
  /** The labels for the session. * Label keys must be between 1 and 63 characters long and must conform to the following regular expression: `[a-z]([-a-z0-9]*[a-z0-9])?`. * Label values must be between 0 and 63 characters long and must conform to the regular expression `([a-z]([-a-z0-9]*[a-z0-9])?)?`. * No more than 64 labels can be associated with a given session. See https://goo.gl/xmQnxf for more information on and examples of labels. */
963
1021
  labels?: {[P in string]: string};
1022
+ /** Optional. If true, specifies a multiplexed session. A multiplexed session may be used for multiple, concurrent read-only operations but can not be used for read-write transactions, partitioned reads, or partitioned queries. Multiplexed sessions can be created via CreateSession but not via BatchCreateSessions. Multiplexed sessions may not be deleted nor listed. */
1023
+ multiplexed?: boolean;
964
1024
  /** Output only. The name of the session. This is always system-assigned. */
965
1025
  name?: string;
966
1026
  }
@@ -1009,6 +1069,8 @@ declare namespace gapi.client {
1009
1069
  readTimestamp?: string;
1010
1070
  }
1011
1071
  interface TransactionOptions {
1072
+ /** When `exclude_txn_from_change_streams` is set to `true`: * Mutations from this transaction will not be recorded in change streams with DDL option `allow_txn_exclusion=true` that are tracking columns modified by these transactions. * Mutations from this transaction will be recorded in change streams with DDL option `allow_txn_exclusion=false or not set` that are tracking columns modified by these transactions. When `exclude_txn_from_change_streams` is set to `false` or not set, mutations from this transaction will be recorded in all change streams that are tracking columns modified by these transactions. `exclude_txn_from_change_streams` may only be specified for read-write or partitioned-dml transactions, otherwise the API will return an `INVALID_ARGUMENT` error. */
1073
+ excludeTxnFromChangeStreams?: boolean;
1012
1074
  /** Partitioned DML transaction. Authorization to begin a Partitioned DML transaction requires `spanner.databases.beginPartitionedDmlTransaction` permission on the `session` resource. */
1013
1075
  partitionedDml?: any;
1014
1076
  /** Transaction will not write. Authorization to begin a read-only transaction requires `spanner.databases.beginReadOnlyTransaction` permission on the `session` resource. */
@@ -1100,6 +1162,22 @@ declare namespace gapi.client {
1100
1162
  /** The time at which UpdateInstance request was received. */
1101
1163
  startTime?: string;
1102
1164
  }
1165
+ interface UpdateInstancePartitionMetadata {
1166
+ /** The time at which this operation was cancelled. If set, this operation is in the process of undoing itself (which is guaranteed to succeed) and cannot be cancelled again. */
1167
+ cancelTime?: string;
1168
+ /** The time at which this operation failed or was completed successfully. */
1169
+ endTime?: string;
1170
+ /** The desired end state of the update. */
1171
+ instancePartition?: InstancePartition;
1172
+ /** The time at which UpdateInstancePartition request was received. */
1173
+ startTime?: string;
1174
+ }
1175
+ interface UpdateInstancePartitionRequest {
1176
+ /** Required. A mask specifying which fields in InstancePartition should be updated. The field mask must always be specified; this prevents any future fields in InstancePartition from being erased accidentally by clients that do not know about them. */
1177
+ fieldMask?: string;
1178
+ /** Required. The instance partition to update, which must always include the instance partition name. Otherwise, only fields mentioned in field_mask need be included. */
1179
+ instancePartition?: InstancePartition;
1180
+ }
1103
1181
  interface UpdateInstanceRequest {
1104
1182
  /** 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. */
1105
1183
  fieldMask?: string;
@@ -3669,6 +3747,43 @@ declare namespace gapi.client {
3669
3747
  operations: OperationsResource;
3670
3748
  sessions: SessionsResource;
3671
3749
  }
3750
+ interface InstancePartitionOperationsResource {
3751
+ /** Lists instance partition long-running operations in the given instance. An instance partition operation has a name of the form `projects//instances//instancePartitions//operations/`. The long-running operation metadata field type `metadata.type_url` describes the type of the metadata. Operations returned include those that have completed/failed/canceled within the last 7 days, and pending operations. Operations returned are ordered by `operation.metadata.value.start_time` in descending order starting from the most recently started operation. Authorization requires `spanner.instancePartitionOperations.list` permission on the resource parent. */
3752
+ list(request?: {
3753
+ /** V1 error format. */
3754
+ '$.xgafv'?: string;
3755
+ /** OAuth access token. */
3756
+ access_token?: string;
3757
+ /** Data format for response. */
3758
+ alt?: string;
3759
+ /** JSONP */
3760
+ callback?: string;
3761
+ /** Selector specifying which fields to include in a partial response. */
3762
+ fields?: string;
3763
+ /** Optional. An expression that filters the list of returned operations. A filter expression consists of a field name, a comparison operator, and a value for filtering. The value must be a string, a number, or a boolean. The comparison operator must be one of: `<`, `>`, `<=`, `>=`, `!=`, `=`, or `:`. Colon `:` is the contains operator. Filter rules are not case sensitive. The following fields in the Operation are eligible for filtering: * `name` - The name of the long-running operation * `done` - False if the operation is in progress, else true. * `metadata.@‍type` - the type of metadata. For example, the type string for CreateInstancePartitionMetadata is `type.googleapis.com/google.spanner.admin.instance.v1.CreateInstancePartitionMetadata`. * `metadata.` - any field in metadata.value. `metadata.@‍type` must be specified first, if filtering on metadata fields. * `error` - Error associated with the long-running operation. * `response.@‍type` - the type of response. * `response.` - any field in response.value. You can combine multiple expressions by enclosing each expression in parentheses. By default, expressions are combined with AND logic. However, you can specify AND, OR, and NOT logic explicitly. Here are a few examples: * `done:true` - The operation is complete. * `(metadata.@‍type=` \ `type.googleapis.com/google.spanner.admin.instance.v1.CreateInstancePartitionMetadata) AND` \ `(metadata.instance_partition.name:custom-instance-partition) AND` \ `(metadata.start_time < \"2021-03-28T14:50:00Z\") AND` \ `(error:*)` - Return operations where: * The operation's metadata type is CreateInstancePartitionMetadata. * The instance partition name contains "custom-instance-partition". * The operation started before 2021-03-28T14:50:00Z. * The operation resulted in an error. */
3764
+ filter?: string;
3765
+ /** Optional. Deadline used while retrieving metadata for instance partition operations. Instance partitions whose operation metadata cannot be retrieved within this deadline will be added to unreachable in ListInstancePartitionOperationsResponse. */
3766
+ instancePartitionDeadline?: string;
3767
+ /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
3768
+ key?: string;
3769
+ /** OAuth 2.0 token for the current user. */
3770
+ oauth_token?: string;
3771
+ /** Optional. Number of operations to be returned in the response. If 0 or less, defaults to the server's maximum allowed page size. */
3772
+ pageSize?: number;
3773
+ /** Optional. If non-empty, `page_token` should contain a next_page_token from a previous ListInstancePartitionOperationsResponse to the same `parent` and with the same `filter`. */
3774
+ pageToken?: string;
3775
+ /** Required. The parent instance of the instance partition operations. Values are of the form `projects//instances/`. */
3776
+ parent: string;
3777
+ /** Returns response with indentations and line breaks. */
3778
+ prettyPrint?: boolean;
3779
+ /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
3780
+ quotaUser?: string;
3781
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
3782
+ upload_protocol?: string;
3783
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
3784
+ uploadType?: string;
3785
+ }): Request<ListInstancePartitionOperationsResponse>;
3786
+ }
3672
3787
  interface OperationsResource {
3673
3788
  /** Starts asynchronous cancellation on a long-running operation. The server makes a best effort to cancel the operation, but success is not guaranteed. If the server doesn't support this method, it returns `google.rpc.Code.UNIMPLEMENTED`. Clients can use Operations.GetOperation or other methods to check whether the cancellation succeeded or whether the operation completed despite cancellation. On successful cancellation, the operation is not deleted; instead, it becomes an operation with an Operation.error value with a google.rpc.Status.code of 1, corresponding to `Code.CANCELLED`. */
3674
3789
  cancel(request?: {
@@ -3786,6 +3901,211 @@ declare namespace gapi.client {
3786
3901
  }): Request<ListOperationsResponse>;
3787
3902
  }
3788
3903
  interface InstancePartitionsResource {
3904
+ /** Creates an instance partition and begins preparing it to be used. The returned long-running operation can be used to track the progress of preparing the new instance partition. The instance partition name is assigned by the caller. If the named instance partition already exists, `CreateInstancePartition` returns `ALREADY_EXISTS`. Immediately upon completion of this request: * The instance partition is readable via the API, with all requested attributes but no allocated resources. Its state is `CREATING`. Until completion of the returned operation: * Cancelling the operation renders the instance partition immediately unreadable via the API. * The instance partition can be deleted. * All other attempts to modify the instance partition are rejected. Upon completion of the returned operation: * Billing for all successfully-allocated resources begins (some types may have lower than the requested levels). * Databases can start using this instance partition. * The instance partition's allocated resource levels are readable via the API. * The instance partition's state becomes `READY`. The returned long-running operation will have a name of the format `/operations/` and can be used to track creation of the instance partition. The metadata field type is CreateInstancePartitionMetadata. The response field type is InstancePartition, if successful. */
3905
+ create(request: {
3906
+ /** V1 error format. */
3907
+ '$.xgafv'?: string;
3908
+ /** OAuth access token. */
3909
+ access_token?: string;
3910
+ /** Data format for response. */
3911
+ alt?: string;
3912
+ /** JSONP */
3913
+ callback?: string;
3914
+ /** Selector specifying which fields to include in a partial response. */
3915
+ fields?: string;
3916
+ /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
3917
+ key?: string;
3918
+ /** OAuth 2.0 token for the current user. */
3919
+ oauth_token?: string;
3920
+ /** Required. The name of the instance in which to create the instance partition. Values are of the form `projects//instances/`. */
3921
+ parent: string;
3922
+ /** Returns response with indentations and line breaks. */
3923
+ prettyPrint?: boolean;
3924
+ /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
3925
+ quotaUser?: string;
3926
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
3927
+ upload_protocol?: string;
3928
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
3929
+ uploadType?: string;
3930
+ /** Request body */
3931
+ resource: CreateInstancePartitionRequest;
3932
+ }): Request<Operation>;
3933
+ create(
3934
+ request: {
3935
+ /** V1 error format. */
3936
+ '$.xgafv'?: string;
3937
+ /** OAuth access token. */
3938
+ access_token?: string;
3939
+ /** Data format for response. */
3940
+ alt?: string;
3941
+ /** JSONP */
3942
+ callback?: string;
3943
+ /** Selector specifying which fields to include in a partial response. */
3944
+ fields?: string;
3945
+ /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
3946
+ key?: string;
3947
+ /** OAuth 2.0 token for the current user. */
3948
+ oauth_token?: string;
3949
+ /** Required. The name of the instance in which to create the instance partition. Values are of the form `projects//instances/`. */
3950
+ parent: string;
3951
+ /** Returns response with indentations and line breaks. */
3952
+ prettyPrint?: boolean;
3953
+ /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
3954
+ quotaUser?: string;
3955
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
3956
+ upload_protocol?: string;
3957
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
3958
+ uploadType?: string;
3959
+ },
3960
+ body: CreateInstancePartitionRequest
3961
+ ): Request<Operation>;
3962
+ /** Deletes an existing instance partition. Requires that the instance partition is not used by any database or backup and is not the default instance partition of an instance. Authorization requires `spanner.instancePartitions.delete` permission on the resource name. */
3963
+ delete(request?: {
3964
+ /** V1 error format. */
3965
+ '$.xgafv'?: string;
3966
+ /** OAuth access token. */
3967
+ access_token?: string;
3968
+ /** Data format for response. */
3969
+ alt?: string;
3970
+ /** JSONP */
3971
+ callback?: string;
3972
+ /** Optional. If not empty, the API only deletes the instance partition when the etag provided matches the current status of the requested instance partition. Otherwise, deletes the instance partition without checking the current status of the requested instance partition. */
3973
+ etag?: string;
3974
+ /** Selector specifying which fields to include in a partial response. */
3975
+ fields?: string;
3976
+ /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
3977
+ key?: string;
3978
+ /** Required. The name of the instance partition to be deleted. Values are of the form `projects/{project}/instances/{instance}/instancePartitions/{instance_partition}` */
3979
+ name: string;
3980
+ /** OAuth 2.0 token for the current user. */
3981
+ oauth_token?: string;
3982
+ /** Returns response with indentations and line breaks. */
3983
+ prettyPrint?: boolean;
3984
+ /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
3985
+ quotaUser?: string;
3986
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
3987
+ upload_protocol?: string;
3988
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
3989
+ uploadType?: string;
3990
+ }): Request<{}>;
3991
+ /** Gets information about a particular instance partition. */
3992
+ get(request?: {
3993
+ /** V1 error format. */
3994
+ '$.xgafv'?: string;
3995
+ /** OAuth access token. */
3996
+ access_token?: string;
3997
+ /** Data format for response. */
3998
+ alt?: string;
3999
+ /** JSONP */
4000
+ callback?: string;
4001
+ /** Selector specifying which fields to include in a partial response. */
4002
+ fields?: string;
4003
+ /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
4004
+ key?: string;
4005
+ /** Required. The name of the requested instance partition. Values are of the form `projects/{project}/instances/{instance}/instancePartitions/{instance_partition}`. */
4006
+ name: string;
4007
+ /** OAuth 2.0 token for the current user. */
4008
+ oauth_token?: string;
4009
+ /** Returns response with indentations and line breaks. */
4010
+ prettyPrint?: boolean;
4011
+ /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
4012
+ quotaUser?: string;
4013
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
4014
+ upload_protocol?: string;
4015
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
4016
+ uploadType?: string;
4017
+ }): Request<InstancePartition>;
4018
+ /** Lists all instance partitions for the given instance. */
4019
+ list(request?: {
4020
+ /** V1 error format. */
4021
+ '$.xgafv'?: string;
4022
+ /** OAuth access token. */
4023
+ access_token?: string;
4024
+ /** Data format for response. */
4025
+ alt?: string;
4026
+ /** JSONP */
4027
+ callback?: string;
4028
+ /** Selector specifying which fields to include in a partial response. */
4029
+ fields?: string;
4030
+ /** Optional. Deadline used while retrieving metadata for instance partitions. Instance partitions whose metadata cannot be retrieved within this deadline will be added to unreachable in ListInstancePartitionsResponse. */
4031
+ instancePartitionDeadline?: string;
4032
+ /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
4033
+ key?: string;
4034
+ /** OAuth 2.0 token for the current user. */
4035
+ oauth_token?: string;
4036
+ /** Number of instance partitions to be returned in the response. If 0 or less, defaults to the server's maximum allowed page size. */
4037
+ pageSize?: number;
4038
+ /** If non-empty, `page_token` should contain a next_page_token from a previous ListInstancePartitionsResponse. */
4039
+ pageToken?: string;
4040
+ /** Required. The instance whose instance partitions should be listed. Values are of the form `projects//instances/`. */
4041
+ parent: string;
4042
+ /** Returns response with indentations and line breaks. */
4043
+ prettyPrint?: boolean;
4044
+ /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
4045
+ quotaUser?: string;
4046
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
4047
+ upload_protocol?: string;
4048
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
4049
+ uploadType?: string;
4050
+ }): Request<ListInstancePartitionsResponse>;
4051
+ /** Updates an instance partition, and begins allocating or releasing resources as requested. The returned long-running operation can be used to track the progress of updating the instance partition. If the named instance partition does not exist, returns `NOT_FOUND`. Immediately upon completion of this request: * For resource types for which a decrease in the instance partition's allocation has been requested, billing is based on the newly-requested level. Until completion of the returned operation: * Cancelling the operation sets its metadata's cancel_time, and begins restoring resources to their pre-request values. The operation is guaranteed to succeed at undoing all resource changes, after which point it terminates with a `CANCELLED` status. * All other attempts to modify the instance partition are rejected. * Reading the instance partition via the API continues to give the pre-request resource levels. Upon completion of the returned operation: * Billing begins for all successfully-allocated resources (some types may have lower than the requested levels). * All newly-reserved resources are available for serving the instance partition's tables. * The instance partition's new resource levels are readable via the API. The returned long-running operation will have a name of the format `/operations/` and can be used to track the instance partition modification. The metadata field type is UpdateInstancePartitionMetadata. The response field type is InstancePartition, if successful. Authorization requires `spanner.instancePartitions.update` permission on the resource name. */
4052
+ patch(request: {
4053
+ /** V1 error format. */
4054
+ '$.xgafv'?: string;
4055
+ /** OAuth access token. */
4056
+ access_token?: string;
4057
+ /** Data format for response. */
4058
+ alt?: string;
4059
+ /** JSONP */
4060
+ callback?: string;
4061
+ /** Selector specifying which fields to include in a partial response. */
4062
+ fields?: string;
4063
+ /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
4064
+ key?: string;
4065
+ /** Required. A unique identifier for the instance partition. Values are of the form `projects//instances//instancePartitions/a-z*[a-z0-9]`. The final segment of the name must be between 2 and 64 characters in length. An instance partition's name cannot be changed after the instance partition is created. */
4066
+ name: string;
4067
+ /** OAuth 2.0 token for the current user. */
4068
+ oauth_token?: string;
4069
+ /** Returns response with indentations and line breaks. */
4070
+ prettyPrint?: boolean;
4071
+ /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
4072
+ quotaUser?: string;
4073
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
4074
+ upload_protocol?: string;
4075
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
4076
+ uploadType?: string;
4077
+ /** Request body */
4078
+ resource: UpdateInstancePartitionRequest;
4079
+ }): Request<Operation>;
4080
+ patch(
4081
+ request: {
4082
+ /** V1 error format. */
4083
+ '$.xgafv'?: string;
4084
+ /** OAuth access token. */
4085
+ access_token?: string;
4086
+ /** Data format for response. */
4087
+ alt?: string;
4088
+ /** JSONP */
4089
+ callback?: string;
4090
+ /** Selector specifying which fields to include in a partial response. */
4091
+ fields?: string;
4092
+ /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
4093
+ key?: string;
4094
+ /** Required. A unique identifier for the instance partition. Values are of the form `projects//instances//instancePartitions/a-z*[a-z0-9]`. The final segment of the name must be between 2 and 64 characters in length. An instance partition's name cannot be changed after the instance partition is created. */
4095
+ name: string;
4096
+ /** OAuth 2.0 token for the current user. */
4097
+ oauth_token?: string;
4098
+ /** Returns response with indentations and line breaks. */
4099
+ prettyPrint?: boolean;
4100
+ /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
4101
+ quotaUser?: string;
4102
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
4103
+ upload_protocol?: string;
4104
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
4105
+ uploadType?: string;
4106
+ },
4107
+ body: UpdateInstancePartitionRequest
4108
+ ): Request<Operation>;
3789
4109
  operations: OperationsResource;
3790
4110
  }
3791
4111
  interface OperationsResource {
@@ -4206,6 +4526,7 @@ declare namespace gapi.client {
4206
4526
  backups: BackupsResource;
4207
4527
  databaseOperations: DatabaseOperationsResource;
4208
4528
  databases: DatabasesResource;
4529
+ instancePartitionOperations: InstancePartitionOperationsResource;
4209
4530
  instancePartitions: InstancePartitionsResource;
4210
4531
  operations: OperationsResource;
4211
4532
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@maxim_mazurok/gapi.client.spanner-v1",
3
- "version": "0.0.20240228",
3
+ "version": "0.0.20240312",
4
4
  "description": "TypeScript typings for Cloud Spanner API v1",
5
5
  "repository": {
6
6
  "type": "git",