@google-cloud/spanner 6.1.3 → 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.
@@ -96,6 +96,10 @@
96
96
  "syntax": {
97
97
  "type": "string",
98
98
  "id": 12
99
+ },
100
+ "edition": {
101
+ "type": "string",
102
+ "id": 13
99
103
  }
100
104
  }
101
105
  },
@@ -923,6 +927,19 @@
923
927
  "end": {
924
928
  "type": "int32",
925
929
  "id": 4
930
+ },
931
+ "semantic": {
932
+ "type": "Semantic",
933
+ "id": 5
934
+ }
935
+ },
936
+ "nested": {
937
+ "Semantic": {
938
+ "values": {
939
+ "NONE": 0,
940
+ "SET": 1,
941
+ "ALIAS": 2
942
+ }
926
943
  }
927
944
  }
928
945
  }
@@ -1938,7 +1955,7 @@
1938
1955
  "options": {
1939
1956
  "(google.api.http).post": "/v1/{resource=projects/*/instances/*/databases/*}:testIamPermissions",
1940
1957
  "(google.api.http).body": "*",
1941
- "(google.api.http).additional_bindings.post": "/v1/{resource=projects/*/instances/*/backups/*}:testIamPermissions",
1958
+ "(google.api.http).additional_bindings.post": "/v1/{resource=projects/*/instances/*/databases/*/databaseRoles/*}:testIamPermissions",
1942
1959
  "(google.api.http).additional_bindings.body": "*",
1943
1960
  "(google.api.method_signature)": "resource,permissions"
1944
1961
  },
@@ -1947,10 +1964,16 @@
1947
1964
  "(google.api.http)": {
1948
1965
  "post": "/v1/{resource=projects/*/instances/*/databases/*}:testIamPermissions",
1949
1966
  "body": "*",
1950
- "additional_bindings": {
1951
- "post": "/v1/{resource=projects/*/instances/*/backups/*}:testIamPermissions",
1952
- "body": "*"
1953
- }
1967
+ "additional_bindings": [
1968
+ {
1969
+ "post": "/v1/{resource=projects/*/instances/*/backups/*}:testIamPermissions",
1970
+ "body": "*"
1971
+ },
1972
+ {
1973
+ "post": "/v1/{resource=projects/*/instances/*/databases/*/databaseRoles/*}:testIamPermissions",
1974
+ "body": "*"
1975
+ }
1976
+ ]
1954
1977
  }
1955
1978
  },
1956
1979
  {
@@ -2151,6 +2174,24 @@
2151
2174
  "(google.api.method_signature)": "parent"
2152
2175
  }
2153
2176
  ]
2177
+ },
2178
+ "ListDatabaseRoles": {
2179
+ "requestType": "ListDatabaseRolesRequest",
2180
+ "responseType": "ListDatabaseRolesResponse",
2181
+ "options": {
2182
+ "(google.api.http).get": "/v1/{parent=projects/*/instances/*/databases/*}/databaseRoles",
2183
+ "(google.api.method_signature)": "parent"
2184
+ },
2185
+ "parsedOptions": [
2186
+ {
2187
+ "(google.api.http)": {
2188
+ "get": "/v1/{parent=projects/*/instances/*/databases/*}/databaseRoles"
2189
+ }
2190
+ },
2191
+ {
2192
+ "(google.api.method_signature)": "parent"
2193
+ }
2194
+ ]
2154
2195
  }
2155
2196
  }
2156
2197
  },
@@ -2613,6 +2654,54 @@
2613
2654
  "TYPE_UNSPECIFIED": 0,
2614
2655
  "BACKUP": 1
2615
2656
  }
2657
+ },
2658
+ "DatabaseRole": {
2659
+ "options": {
2660
+ "(google.api.resource).type": "spanner.googleapis.com/DatabaseRole",
2661
+ "(google.api.resource).pattern": "projects/{project}/instances/{instance}/databases/{database}/databaseRoles/{role}"
2662
+ },
2663
+ "fields": {
2664
+ "name": {
2665
+ "type": "string",
2666
+ "id": 1,
2667
+ "options": {
2668
+ "(google.api.field_behavior)": "REQUIRED"
2669
+ }
2670
+ }
2671
+ }
2672
+ },
2673
+ "ListDatabaseRolesRequest": {
2674
+ "fields": {
2675
+ "parent": {
2676
+ "type": "string",
2677
+ "id": 1,
2678
+ "options": {
2679
+ "(google.api.field_behavior)": "REQUIRED",
2680
+ "(google.api.resource_reference).type": "spanner.googleapis.com/Database"
2681
+ }
2682
+ },
2683
+ "pageSize": {
2684
+ "type": "int32",
2685
+ "id": 2
2686
+ },
2687
+ "pageToken": {
2688
+ "type": "string",
2689
+ "id": 3
2690
+ }
2691
+ }
2692
+ },
2693
+ "ListDatabaseRolesResponse": {
2694
+ "fields": {
2695
+ "databaseRoles": {
2696
+ "rule": "repeated",
2697
+ "type": "DatabaseRole",
2698
+ "id": 1
2699
+ },
2700
+ "nextPageToken": {
2701
+ "type": "string",
2702
+ "id": 2
2703
+ }
2704
+ }
2616
2705
  }
2617
2706
  }
2618
2707
  }
@@ -2631,6 +2720,22 @@
2631
2720
  "ruby_package": "Google::Cloud::Spanner::Admin::Instance::V1"
2632
2721
  },
2633
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
+ },
2634
2739
  "InstanceAdmin": {
2635
2740
  "options": {
2636
2741
  "(google.api.default_host)": "spanner.googleapis.com",
@@ -2673,6 +2778,98 @@
2673
2778
  }
2674
2779
  ]
2675
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
+ },
2676
2873
  "ListInstances": {
2677
2874
  "requestType": "ListInstancesRequest",
2678
2875
  "responseType": "ListInstancesResponse",
@@ -2885,15 +3082,76 @@
2885
3082
  "type": "string",
2886
3083
  "id": 2
2887
3084
  },
3085
+ "configType": {
3086
+ "type": "Type",
3087
+ "id": 5,
3088
+ "options": {
3089
+ "(google.api.field_behavior)": "OUTPUT_ONLY"
3090
+ }
3091
+ },
2888
3092
  "replicas": {
2889
3093
  "rule": "repeated",
2890
3094
  "type": "ReplicaInfo",
2891
3095
  "id": 3
2892
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
+ },
2893
3121
  "leaderOptions": {
2894
3122
  "rule": "repeated",
2895
3123
  "type": "string",
2896
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
+ }
2897
3155
  }
2898
3156
  }
2899
3157
  },
@@ -3020,6 +3278,115 @@
3020
3278
  }
3021
3279
  }
3022
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
+ },
3023
3390
  "GetInstanceRequest": {
3024
3391
  "fields": {
3025
3392
  "name": {
@@ -3168,6 +3535,38 @@
3168
3535
  "id": 4
3169
3536
  }
3170
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
+ }
3171
3570
  }
3172
3571
  }
3173
3572
  }
@@ -3675,7 +4074,8 @@
3675
4074
  "TypeAnnotationCode": {
3676
4075
  "values": {
3677
4076
  "TYPE_ANNOTATION_CODE_UNSPECIFIED": 0,
3678
- "PG_NUMERIC": 2
4077
+ "PG_NUMERIC": 2,
4078
+ "PG_JSONB": 3
3679
4079
  }
3680
4080
  },
3681
4081
  "Spanner": {