@maxim_mazurok/gapi.client.spanner-v1 0.0.20241220 → 0.0.20250117
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.
- package/index.d.ts +80 -1
- 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:
|
|
12
|
+
// Revision: 20250117
|
|
13
13
|
|
|
14
14
|
/// <reference types="gapi.client" />
|
|
15
15
|
|
|
@@ -24,6 +24,13 @@ declare namespace gapi.client {
|
|
|
24
24
|
function load(name: 'spanner', version: 'v1', callback: () => any): void;
|
|
25
25
|
|
|
26
26
|
namespace spanner {
|
|
27
|
+
interface AddSplitPointsRequest {
|
|
28
|
+
/** Optional. A user-supplied tag associated with the split points. For example, "intital_data_load", "special_event_1". Defaults to "CloudAddSplitPointsAPI" if not specified. The length of the tag must not exceed 50 characters,else will be trimmed. Only valid UTF8 characters are allowed. */
|
|
29
|
+
initiator?: string;
|
|
30
|
+
/** Required. The split points to add. */
|
|
31
|
+
splitPoints?: SplitPoints[];
|
|
32
|
+
}
|
|
33
|
+
interface AddSplitPointsResponse {}
|
|
27
34
|
interface AsymmetricAutoscalingOption {
|
|
28
35
|
/** Optional. Overrides applied to the top-level autoscaling configuration for the selected replicas. */
|
|
29
36
|
overrides?: AutoscalingConfigOverrides;
|
|
@@ -654,6 +661,10 @@ declare namespace gapi.client {
|
|
|
654
661
|
/** Required. Name of the location of the replicas (e.g., "us-central1"). */
|
|
655
662
|
location?: string;
|
|
656
663
|
}
|
|
664
|
+
interface Key {
|
|
665
|
+
/** Required. The column values making up the split key. */
|
|
666
|
+
keyParts?: any[];
|
|
667
|
+
}
|
|
657
668
|
interface KeyRange {
|
|
658
669
|
/** If the end is closed, then the range includes all rows whose first `len(end_closed)` key columns exactly match `end_closed`. */
|
|
659
670
|
endClosed?: any[];
|
|
@@ -1201,6 +1212,16 @@ declare namespace gapi.client {
|
|
|
1201
1212
|
/** Required. The location of the serving region, e.g. "us-central1". The location must be one of the regions within the dual-region instance configuration of your database. The list of valid locations is available using the GetInstanceConfig API. This should only be used if you plan to change quorum to the single-region quorum type. */
|
|
1202
1213
|
servingLocation?: string;
|
|
1203
1214
|
}
|
|
1215
|
+
interface SplitPoints {
|
|
1216
|
+
/** Optional. The expiration timestamp of the split points. A timestamp in the past means immediate expiration. The maximum value can be 30 days in the future. Defaults to 10 days in the future if not specified. */
|
|
1217
|
+
expireTime?: string;
|
|
1218
|
+
/** The index to split. If specified, the `table` field must refer to the index's base table. */
|
|
1219
|
+
index?: string;
|
|
1220
|
+
/** Required. The list of split keys, i.e., the split boundaries. */
|
|
1221
|
+
keys?: Key[];
|
|
1222
|
+
/** The table to split. */
|
|
1223
|
+
table?: string;
|
|
1224
|
+
}
|
|
1204
1225
|
interface Statement {
|
|
1205
1226
|
/** Parameter names and values that bind to placeholders in the DML string. A parameter placeholder consists of the `@` character followed by the parameter name (for example, `@firstName`). Parameter names can contain letters, numbers, and underscores. Parameters can appear anywhere that a literal value is expected. The same parameter name can be used more than once, for example: `"WHERE id > @msg_id AND id < @msg_id + 100"` It is an error to execute a SQL statement with unbound parameters. */
|
|
1206
1227
|
params?: {[P in string]: any};
|
|
@@ -3746,6 +3767,64 @@ declare namespace gapi.client {
|
|
|
3746
3767
|
): Request<PartialResultSet>;
|
|
3747
3768
|
}
|
|
3748
3769
|
interface DatabasesResource {
|
|
3770
|
+
/** Adds split points to specified tables, indexes of a database. */
|
|
3771
|
+
addSplitPoints(request: {
|
|
3772
|
+
/** V1 error format. */
|
|
3773
|
+
'$.xgafv'?: string;
|
|
3774
|
+
/** OAuth access token. */
|
|
3775
|
+
access_token?: string;
|
|
3776
|
+
/** Data format for response. */
|
|
3777
|
+
alt?: string;
|
|
3778
|
+
/** JSONP */
|
|
3779
|
+
callback?: string;
|
|
3780
|
+
/** Required. The database on whose tables/indexes split points are to be added. Values are of the form `projects//instances//databases/`. */
|
|
3781
|
+
database: string;
|
|
3782
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
3783
|
+
fields?: string;
|
|
3784
|
+
/** 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. */
|
|
3785
|
+
key?: string;
|
|
3786
|
+
/** OAuth 2.0 token for the current user. */
|
|
3787
|
+
oauth_token?: string;
|
|
3788
|
+
/** Returns response with indentations and line breaks. */
|
|
3789
|
+
prettyPrint?: boolean;
|
|
3790
|
+
/** 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. */
|
|
3791
|
+
quotaUser?: string;
|
|
3792
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
3793
|
+
upload_protocol?: string;
|
|
3794
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
3795
|
+
uploadType?: string;
|
|
3796
|
+
/** Request body */
|
|
3797
|
+
resource: AddSplitPointsRequest;
|
|
3798
|
+
}): Request<{}>;
|
|
3799
|
+
addSplitPoints(
|
|
3800
|
+
request: {
|
|
3801
|
+
/** V1 error format. */
|
|
3802
|
+
'$.xgafv'?: string;
|
|
3803
|
+
/** OAuth access token. */
|
|
3804
|
+
access_token?: string;
|
|
3805
|
+
/** Data format for response. */
|
|
3806
|
+
alt?: string;
|
|
3807
|
+
/** JSONP */
|
|
3808
|
+
callback?: string;
|
|
3809
|
+
/** Required. The database on whose tables/indexes split points are to be added. Values are of the form `projects//instances//databases/`. */
|
|
3810
|
+
database: string;
|
|
3811
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
3812
|
+
fields?: string;
|
|
3813
|
+
/** 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. */
|
|
3814
|
+
key?: string;
|
|
3815
|
+
/** OAuth 2.0 token for the current user. */
|
|
3816
|
+
oauth_token?: string;
|
|
3817
|
+
/** Returns response with indentations and line breaks. */
|
|
3818
|
+
prettyPrint?: boolean;
|
|
3819
|
+
/** 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. */
|
|
3820
|
+
quotaUser?: string;
|
|
3821
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
3822
|
+
upload_protocol?: string;
|
|
3823
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
3824
|
+
uploadType?: string;
|
|
3825
|
+
},
|
|
3826
|
+
body: AddSplitPointsRequest
|
|
3827
|
+
): Request<{}>;
|
|
3749
3828
|
/** `ChangeQuorum` is strictly restricted to databases that use dual-region instance configurations. Initiates a background operation to change the quorum of a database from dual-region mode to single-region mode or vice versa. The returned long-running operation has a name of the format `projects//instances//databases//operations/` and can be used to track execution of the `ChangeQuorum`. The metadata field type is ChangeQuorumMetadata. Authorization requires `spanner.databases.changequorum` permission on the resource database. */
|
|
3750
3829
|
changequorum(request: {
|
|
3751
3830
|
/** V1 error format. */
|