@google-cloud/spanner 6.1.4 → 6.2.0
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/CHANGELOG.md +15 -0
- package/build/protos/google/spanner/admin/instance/v1/common.proto +42 -0
- package/build/protos/google/spanner/admin/instance/v1/spanner_instance_admin.proto +494 -41
- package/build/protos/google/spanner/v1/type.proto +8 -0
- package/build/protos/protos.d.ts +1091 -69
- package/build/protos/protos.js +3648 -1112
- package/build/protos/protos.json +312 -1
- package/build/src/v1/database_admin_client.d.ts +11 -4
- package/build/src/v1/database_admin_client.js +111 -74
- package/build/src/v1/gapic_metadata.json +44 -0
- package/build/src/v1/instance_admin_client.d.ts +514 -22
- package/build/src/v1/instance_admin_client.js +378 -44
- package/build/src/v1/instance_admin_client_config.json +16 -0
- package/build/src/v1/instance_admin_proto_list.json +1 -0
- package/build/src/v1/spanner_client.d.ts +10 -3
- package/build/src/v1/spanner_client.js +68 -43
- package/package.json +7 -7
package/build/protos/protos.json
CHANGED
|
@@ -2720,6 +2720,22 @@
|
|
|
2720
2720
|
"ruby_package": "Google::Cloud::Spanner::Admin::Instance::V1"
|
|
2721
2721
|
},
|
|
2722
2722
|
"nested": {
|
|
2723
|
+
"OperationProgress": {
|
|
2724
|
+
"fields": {
|
|
2725
|
+
"progressPercent": {
|
|
2726
|
+
"type": "int32",
|
|
2727
|
+
"id": 1
|
|
2728
|
+
},
|
|
2729
|
+
"startTime": {
|
|
2730
|
+
"type": "google.protobuf.Timestamp",
|
|
2731
|
+
"id": 2
|
|
2732
|
+
},
|
|
2733
|
+
"endTime": {
|
|
2734
|
+
"type": "google.protobuf.Timestamp",
|
|
2735
|
+
"id": 3
|
|
2736
|
+
}
|
|
2737
|
+
}
|
|
2738
|
+
},
|
|
2723
2739
|
"InstanceAdmin": {
|
|
2724
2740
|
"options": {
|
|
2725
2741
|
"(google.api.default_host)": "spanner.googleapis.com",
|
|
@@ -2762,6 +2778,98 @@
|
|
|
2762
2778
|
}
|
|
2763
2779
|
]
|
|
2764
2780
|
},
|
|
2781
|
+
"CreateInstanceConfig": {
|
|
2782
|
+
"requestType": "CreateInstanceConfigRequest",
|
|
2783
|
+
"responseType": "google.longrunning.Operation",
|
|
2784
|
+
"options": {
|
|
2785
|
+
"(google.api.http).post": "/v1/{parent=projects/*}/instanceConfigs",
|
|
2786
|
+
"(google.api.http).body": "*",
|
|
2787
|
+
"(google.api.method_signature)": "parent,instance_config,instance_config_id",
|
|
2788
|
+
"(google.longrunning.operation_info).response_type": "google.spanner.admin.instance.v1.InstanceConfig",
|
|
2789
|
+
"(google.longrunning.operation_info).metadata_type": "google.spanner.admin.instance.v1.CreateInstanceConfigMetadata"
|
|
2790
|
+
},
|
|
2791
|
+
"parsedOptions": [
|
|
2792
|
+
{
|
|
2793
|
+
"(google.api.http)": {
|
|
2794
|
+
"post": "/v1/{parent=projects/*}/instanceConfigs",
|
|
2795
|
+
"body": "*"
|
|
2796
|
+
}
|
|
2797
|
+
},
|
|
2798
|
+
{
|
|
2799
|
+
"(google.api.method_signature)": "parent,instance_config,instance_config_id"
|
|
2800
|
+
},
|
|
2801
|
+
{
|
|
2802
|
+
"(google.longrunning.operation_info)": {
|
|
2803
|
+
"response_type": "google.spanner.admin.instance.v1.InstanceConfig",
|
|
2804
|
+
"metadata_type": "google.spanner.admin.instance.v1.CreateInstanceConfigMetadata"
|
|
2805
|
+
}
|
|
2806
|
+
}
|
|
2807
|
+
]
|
|
2808
|
+
},
|
|
2809
|
+
"UpdateInstanceConfig": {
|
|
2810
|
+
"requestType": "UpdateInstanceConfigRequest",
|
|
2811
|
+
"responseType": "google.longrunning.Operation",
|
|
2812
|
+
"options": {
|
|
2813
|
+
"(google.api.http).patch": "/v1/{instance_config.name=projects/*/instanceConfigs/*}",
|
|
2814
|
+
"(google.api.http).body": "*",
|
|
2815
|
+
"(google.api.method_signature)": "instance_config,update_mask",
|
|
2816
|
+
"(google.longrunning.operation_info).response_type": "google.spanner.admin.instance.v1.InstanceConfig",
|
|
2817
|
+
"(google.longrunning.operation_info).metadata_type": "google.spanner.admin.instance.v1.UpdateInstanceConfigMetadata"
|
|
2818
|
+
},
|
|
2819
|
+
"parsedOptions": [
|
|
2820
|
+
{
|
|
2821
|
+
"(google.api.http)": {
|
|
2822
|
+
"patch": "/v1/{instance_config.name=projects/*/instanceConfigs/*}",
|
|
2823
|
+
"body": "*"
|
|
2824
|
+
}
|
|
2825
|
+
},
|
|
2826
|
+
{
|
|
2827
|
+
"(google.api.method_signature)": "instance_config,update_mask"
|
|
2828
|
+
},
|
|
2829
|
+
{
|
|
2830
|
+
"(google.longrunning.operation_info)": {
|
|
2831
|
+
"response_type": "google.spanner.admin.instance.v1.InstanceConfig",
|
|
2832
|
+
"metadata_type": "google.spanner.admin.instance.v1.UpdateInstanceConfigMetadata"
|
|
2833
|
+
}
|
|
2834
|
+
}
|
|
2835
|
+
]
|
|
2836
|
+
},
|
|
2837
|
+
"DeleteInstanceConfig": {
|
|
2838
|
+
"requestType": "DeleteInstanceConfigRequest",
|
|
2839
|
+
"responseType": "google.protobuf.Empty",
|
|
2840
|
+
"options": {
|
|
2841
|
+
"(google.api.http).delete": "/v1/{name=projects/*/instanceConfigs/*}",
|
|
2842
|
+
"(google.api.method_signature)": "name"
|
|
2843
|
+
},
|
|
2844
|
+
"parsedOptions": [
|
|
2845
|
+
{
|
|
2846
|
+
"(google.api.http)": {
|
|
2847
|
+
"delete": "/v1/{name=projects/*/instanceConfigs/*}"
|
|
2848
|
+
}
|
|
2849
|
+
},
|
|
2850
|
+
{
|
|
2851
|
+
"(google.api.method_signature)": "name"
|
|
2852
|
+
}
|
|
2853
|
+
]
|
|
2854
|
+
},
|
|
2855
|
+
"ListInstanceConfigOperations": {
|
|
2856
|
+
"requestType": "ListInstanceConfigOperationsRequest",
|
|
2857
|
+
"responseType": "ListInstanceConfigOperationsResponse",
|
|
2858
|
+
"options": {
|
|
2859
|
+
"(google.api.http).get": "/v1/{parent=projects/*}/instanceConfigOperations",
|
|
2860
|
+
"(google.api.method_signature)": "parent"
|
|
2861
|
+
},
|
|
2862
|
+
"parsedOptions": [
|
|
2863
|
+
{
|
|
2864
|
+
"(google.api.http)": {
|
|
2865
|
+
"get": "/v1/{parent=projects/*}/instanceConfigOperations"
|
|
2866
|
+
}
|
|
2867
|
+
},
|
|
2868
|
+
{
|
|
2869
|
+
"(google.api.method_signature)": "parent"
|
|
2870
|
+
}
|
|
2871
|
+
]
|
|
2872
|
+
},
|
|
2765
2873
|
"ListInstances": {
|
|
2766
2874
|
"requestType": "ListInstancesRequest",
|
|
2767
2875
|
"responseType": "ListInstancesResponse",
|
|
@@ -2974,15 +3082,76 @@
|
|
|
2974
3082
|
"type": "string",
|
|
2975
3083
|
"id": 2
|
|
2976
3084
|
},
|
|
3085
|
+
"configType": {
|
|
3086
|
+
"type": "Type",
|
|
3087
|
+
"id": 5,
|
|
3088
|
+
"options": {
|
|
3089
|
+
"(google.api.field_behavior)": "OUTPUT_ONLY"
|
|
3090
|
+
}
|
|
3091
|
+
},
|
|
2977
3092
|
"replicas": {
|
|
2978
3093
|
"rule": "repeated",
|
|
2979
3094
|
"type": "ReplicaInfo",
|
|
2980
3095
|
"id": 3
|
|
2981
3096
|
},
|
|
3097
|
+
"optionalReplicas": {
|
|
3098
|
+
"rule": "repeated",
|
|
3099
|
+
"type": "ReplicaInfo",
|
|
3100
|
+
"id": 6,
|
|
3101
|
+
"options": {
|
|
3102
|
+
"(google.api.field_behavior)": "OUTPUT_ONLY"
|
|
3103
|
+
}
|
|
3104
|
+
},
|
|
3105
|
+
"baseConfig": {
|
|
3106
|
+
"type": "string",
|
|
3107
|
+
"id": 7,
|
|
3108
|
+
"options": {
|
|
3109
|
+
"(google.api.resource_reference).type": "spanner.googleapis.com/InstanceConfig"
|
|
3110
|
+
}
|
|
3111
|
+
},
|
|
3112
|
+
"labels": {
|
|
3113
|
+
"keyType": "string",
|
|
3114
|
+
"type": "string",
|
|
3115
|
+
"id": 8
|
|
3116
|
+
},
|
|
3117
|
+
"etag": {
|
|
3118
|
+
"type": "string",
|
|
3119
|
+
"id": 9
|
|
3120
|
+
},
|
|
2982
3121
|
"leaderOptions": {
|
|
2983
3122
|
"rule": "repeated",
|
|
2984
3123
|
"type": "string",
|
|
2985
3124
|
"id": 4
|
|
3125
|
+
},
|
|
3126
|
+
"reconciling": {
|
|
3127
|
+
"type": "bool",
|
|
3128
|
+
"id": 10,
|
|
3129
|
+
"options": {
|
|
3130
|
+
"(google.api.field_behavior)": "OUTPUT_ONLY"
|
|
3131
|
+
}
|
|
3132
|
+
},
|
|
3133
|
+
"state": {
|
|
3134
|
+
"type": "State",
|
|
3135
|
+
"id": 11,
|
|
3136
|
+
"options": {
|
|
3137
|
+
"(google.api.field_behavior)": "OUTPUT_ONLY"
|
|
3138
|
+
}
|
|
3139
|
+
}
|
|
3140
|
+
},
|
|
3141
|
+
"nested": {
|
|
3142
|
+
"Type": {
|
|
3143
|
+
"values": {
|
|
3144
|
+
"TYPE_UNSPECIFIED": 0,
|
|
3145
|
+
"GOOGLE_MANAGED": 1,
|
|
3146
|
+
"USER_MANAGED": 2
|
|
3147
|
+
}
|
|
3148
|
+
},
|
|
3149
|
+
"State": {
|
|
3150
|
+
"values": {
|
|
3151
|
+
"STATE_UNSPECIFIED": 0,
|
|
3152
|
+
"CREATING": 1,
|
|
3153
|
+
"READY": 2
|
|
3154
|
+
}
|
|
2986
3155
|
}
|
|
2987
3156
|
}
|
|
2988
3157
|
},
|
|
@@ -3109,6 +3278,115 @@
|
|
|
3109
3278
|
}
|
|
3110
3279
|
}
|
|
3111
3280
|
},
|
|
3281
|
+
"CreateInstanceConfigRequest": {
|
|
3282
|
+
"fields": {
|
|
3283
|
+
"parent": {
|
|
3284
|
+
"type": "string",
|
|
3285
|
+
"id": 1,
|
|
3286
|
+
"options": {
|
|
3287
|
+
"(google.api.field_behavior)": "REQUIRED",
|
|
3288
|
+
"(google.api.resource_reference).type": "cloudresourcemanager.googleapis.com/Project"
|
|
3289
|
+
}
|
|
3290
|
+
},
|
|
3291
|
+
"instanceConfigId": {
|
|
3292
|
+
"type": "string",
|
|
3293
|
+
"id": 2,
|
|
3294
|
+
"options": {
|
|
3295
|
+
"(google.api.field_behavior)": "REQUIRED"
|
|
3296
|
+
}
|
|
3297
|
+
},
|
|
3298
|
+
"instanceConfig": {
|
|
3299
|
+
"type": "InstanceConfig",
|
|
3300
|
+
"id": 3,
|
|
3301
|
+
"options": {
|
|
3302
|
+
"(google.api.field_behavior)": "REQUIRED"
|
|
3303
|
+
}
|
|
3304
|
+
},
|
|
3305
|
+
"validateOnly": {
|
|
3306
|
+
"type": "bool",
|
|
3307
|
+
"id": 4
|
|
3308
|
+
}
|
|
3309
|
+
}
|
|
3310
|
+
},
|
|
3311
|
+
"UpdateInstanceConfigRequest": {
|
|
3312
|
+
"fields": {
|
|
3313
|
+
"instanceConfig": {
|
|
3314
|
+
"type": "InstanceConfig",
|
|
3315
|
+
"id": 1,
|
|
3316
|
+
"options": {
|
|
3317
|
+
"(google.api.field_behavior)": "REQUIRED"
|
|
3318
|
+
}
|
|
3319
|
+
},
|
|
3320
|
+
"updateMask": {
|
|
3321
|
+
"type": "google.protobuf.FieldMask",
|
|
3322
|
+
"id": 2,
|
|
3323
|
+
"options": {
|
|
3324
|
+
"(google.api.field_behavior)": "REQUIRED"
|
|
3325
|
+
}
|
|
3326
|
+
},
|
|
3327
|
+
"validateOnly": {
|
|
3328
|
+
"type": "bool",
|
|
3329
|
+
"id": 3
|
|
3330
|
+
}
|
|
3331
|
+
}
|
|
3332
|
+
},
|
|
3333
|
+
"DeleteInstanceConfigRequest": {
|
|
3334
|
+
"fields": {
|
|
3335
|
+
"name": {
|
|
3336
|
+
"type": "string",
|
|
3337
|
+
"id": 1,
|
|
3338
|
+
"options": {
|
|
3339
|
+
"(google.api.field_behavior)": "REQUIRED",
|
|
3340
|
+
"(google.api.resource_reference).type": "spanner.googleapis.com/InstanceConfig"
|
|
3341
|
+
}
|
|
3342
|
+
},
|
|
3343
|
+
"etag": {
|
|
3344
|
+
"type": "string",
|
|
3345
|
+
"id": 2
|
|
3346
|
+
},
|
|
3347
|
+
"validateOnly": {
|
|
3348
|
+
"type": "bool",
|
|
3349
|
+
"id": 3
|
|
3350
|
+
}
|
|
3351
|
+
}
|
|
3352
|
+
},
|
|
3353
|
+
"ListInstanceConfigOperationsRequest": {
|
|
3354
|
+
"fields": {
|
|
3355
|
+
"parent": {
|
|
3356
|
+
"type": "string",
|
|
3357
|
+
"id": 1,
|
|
3358
|
+
"options": {
|
|
3359
|
+
"(google.api.field_behavior)": "REQUIRED",
|
|
3360
|
+
"(google.api.resource_reference).type": "cloudresourcemanager.googleapis.com/Project"
|
|
3361
|
+
}
|
|
3362
|
+
},
|
|
3363
|
+
"filter": {
|
|
3364
|
+
"type": "string",
|
|
3365
|
+
"id": 2
|
|
3366
|
+
},
|
|
3367
|
+
"pageSize": {
|
|
3368
|
+
"type": "int32",
|
|
3369
|
+
"id": 3
|
|
3370
|
+
},
|
|
3371
|
+
"pageToken": {
|
|
3372
|
+
"type": "string",
|
|
3373
|
+
"id": 4
|
|
3374
|
+
}
|
|
3375
|
+
}
|
|
3376
|
+
},
|
|
3377
|
+
"ListInstanceConfigOperationsResponse": {
|
|
3378
|
+
"fields": {
|
|
3379
|
+
"operations": {
|
|
3380
|
+
"rule": "repeated",
|
|
3381
|
+
"type": "google.longrunning.Operation",
|
|
3382
|
+
"id": 1
|
|
3383
|
+
},
|
|
3384
|
+
"nextPageToken": {
|
|
3385
|
+
"type": "string",
|
|
3386
|
+
"id": 2
|
|
3387
|
+
}
|
|
3388
|
+
}
|
|
3389
|
+
},
|
|
3112
3390
|
"GetInstanceRequest": {
|
|
3113
3391
|
"fields": {
|
|
3114
3392
|
"name": {
|
|
@@ -3257,6 +3535,38 @@
|
|
|
3257
3535
|
"id": 4
|
|
3258
3536
|
}
|
|
3259
3537
|
}
|
|
3538
|
+
},
|
|
3539
|
+
"CreateInstanceConfigMetadata": {
|
|
3540
|
+
"fields": {
|
|
3541
|
+
"instanceConfig": {
|
|
3542
|
+
"type": "InstanceConfig",
|
|
3543
|
+
"id": 1
|
|
3544
|
+
},
|
|
3545
|
+
"progress": {
|
|
3546
|
+
"type": "OperationProgress",
|
|
3547
|
+
"id": 2
|
|
3548
|
+
},
|
|
3549
|
+
"cancelTime": {
|
|
3550
|
+
"type": "google.protobuf.Timestamp",
|
|
3551
|
+
"id": 3
|
|
3552
|
+
}
|
|
3553
|
+
}
|
|
3554
|
+
},
|
|
3555
|
+
"UpdateInstanceConfigMetadata": {
|
|
3556
|
+
"fields": {
|
|
3557
|
+
"instanceConfig": {
|
|
3558
|
+
"type": "InstanceConfig",
|
|
3559
|
+
"id": 1
|
|
3560
|
+
},
|
|
3561
|
+
"progress": {
|
|
3562
|
+
"type": "OperationProgress",
|
|
3563
|
+
"id": 2
|
|
3564
|
+
},
|
|
3565
|
+
"cancelTime": {
|
|
3566
|
+
"type": "google.protobuf.Timestamp",
|
|
3567
|
+
"id": 3
|
|
3568
|
+
}
|
|
3569
|
+
}
|
|
3260
3570
|
}
|
|
3261
3571
|
}
|
|
3262
3572
|
}
|
|
@@ -3764,7 +4074,8 @@
|
|
|
3764
4074
|
"TypeAnnotationCode": {
|
|
3765
4075
|
"values": {
|
|
3766
4076
|
"TYPE_ANNOTATION_CODE_UNSPECIFIED": 0,
|
|
3767
|
-
"PG_NUMERIC": 2
|
|
4077
|
+
"PG_NUMERIC": 2,
|
|
4078
|
+
"PG_JSONB": 3
|
|
3768
4079
|
}
|
|
3769
4080
|
},
|
|
3770
4081
|
"Spanner": {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/// <reference types="node" />
|
|
2
|
-
import * as gax from 'google-gax';
|
|
3
|
-
import { Callback, CallOptions, Descriptors, ClientOptions, LROperation, PaginationCallback } from 'google-gax';
|
|
2
|
+
import type * as gax from 'google-gax';
|
|
3
|
+
import type { Callback, CallOptions, Descriptors, ClientOptions, LROperation, PaginationCallback } from 'google-gax';
|
|
4
4
|
import { Transform } from 'stream';
|
|
5
5
|
import * as protos from '../../protos/protos';
|
|
6
6
|
/**
|
|
@@ -67,8 +67,15 @@ export declare class DatabaseAdminClient {
|
|
|
67
67
|
* Pass "rest" to use HTTP/1.1 REST API instead of gRPC.
|
|
68
68
|
* For more information, please check the
|
|
69
69
|
* {@link https://github.com/googleapis/gax-nodejs/blob/main/client-libraries.md#http11-rest-api-mode documentation}.
|
|
70
|
-
|
|
71
|
-
|
|
70
|
+
* @param {gax} [gaxInstance]: loaded instance of `google-gax`. Useful if you
|
|
71
|
+
* need to avoid loading the default gRPC version and want to use the fallback
|
|
72
|
+
* HTTP implementation. Load only fallback version and pass it to the constructor:
|
|
73
|
+
* ```
|
|
74
|
+
* const gax = require('google-gax/build/src/fallback'); // avoids loading google-gax with gRPC
|
|
75
|
+
* const client = new DatabaseAdminClient({fallback: 'rest'}, gax);
|
|
76
|
+
* ```
|
|
77
|
+
*/
|
|
78
|
+
constructor(opts?: ClientOptions, gaxInstance?: typeof gax | typeof gax.fallback);
|
|
72
79
|
/**
|
|
73
80
|
* Initialize the client.
|
|
74
81
|
* Performs asynchronous operations (such as authentication) and prepares the client.
|