@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.
@@ -26,6 +26,7 @@ import "google/longrunning/operations.proto";
26
26
  import "google/protobuf/empty.proto";
27
27
  import "google/protobuf/field_mask.proto";
28
28
  import "google/protobuf/timestamp.proto";
29
+ import "google/spanner/admin/instance/v1/common.proto";
29
30
 
30
31
  option csharp_namespace = "Google.Cloud.Spanner.Admin.Instance.V1";
31
32
  option go_package = "google.golang.org/genproto/googleapis/spanner/admin/instance/v1;instance";
@@ -63,7 +64,8 @@ service InstanceAdmin {
63
64
  "https://www.googleapis.com/auth/spanner.admin";
64
65
 
65
66
  // Lists the supported instance configurations for a given project.
66
- rpc ListInstanceConfigs(ListInstanceConfigsRequest) returns (ListInstanceConfigsResponse) {
67
+ rpc ListInstanceConfigs(ListInstanceConfigsRequest)
68
+ returns (ListInstanceConfigsResponse) {
67
69
  option (google.api.http) = {
68
70
  get: "/v1/{parent=projects/*}/instanceConfigs"
69
71
  };
@@ -78,6 +80,153 @@ service InstanceAdmin {
78
80
  option (google.api.method_signature) = "name";
79
81
  }
80
82
 
83
+ // Creates an instance config and begins preparing it to be used. The
84
+ // returned [long-running operation][google.longrunning.Operation]
85
+ // can be used to track the progress of preparing the new
86
+ // instance config. The instance config name is assigned by the caller. If the
87
+ // named instance config already exists, `CreateInstanceConfig` returns
88
+ // `ALREADY_EXISTS`.
89
+ //
90
+ // Immediately after the request returns:
91
+ //
92
+ // * The instance config is readable via the API, with all requested
93
+ // attributes. The instance config's
94
+ // [reconciling][google.spanner.admin.instance.v1.InstanceConfig.reconciling]
95
+ // field is set to true. Its state is `CREATING`.
96
+ //
97
+ // While the operation is pending:
98
+ //
99
+ // * Cancelling the operation renders the instance config immediately
100
+ // unreadable via the API.
101
+ // * Except for deleting the creating resource, all other attempts to modify
102
+ // the instance config are rejected.
103
+ //
104
+ // Upon completion of the returned operation:
105
+ //
106
+ // * Instances can be created using the instance configuration.
107
+ // * The instance config's
108
+ // [reconciling][google.spanner.admin.instance.v1.InstanceConfig.reconciling]
109
+ // field becomes false. Its state becomes `READY`.
110
+ //
111
+ // The returned [long-running operation][google.longrunning.Operation] will
112
+ // have a name of the format
113
+ // `<instance_config_name>/operations/<operation_id>` and can be used to track
114
+ // creation of the instance config. The
115
+ // [metadata][google.longrunning.Operation.metadata] field type is
116
+ // [CreateInstanceConfigMetadata][google.spanner.admin.instance.v1.CreateInstanceConfigMetadata].
117
+ // The [response][google.longrunning.Operation.response] field type is
118
+ // [InstanceConfig][google.spanner.admin.instance.v1.InstanceConfig], if
119
+ // successful.
120
+ //
121
+ // Authorization requires `spanner.instanceConfigs.create` permission on
122
+ // the resource
123
+ // [parent][google.spanner.admin.instance.v1.CreateInstanceConfigRequest.parent].
124
+ rpc CreateInstanceConfig(CreateInstanceConfigRequest)
125
+ returns (google.longrunning.Operation) {
126
+ option (google.api.http) = {
127
+ post: "/v1/{parent=projects/*}/instanceConfigs"
128
+ body: "*"
129
+ };
130
+ option (google.api.method_signature) =
131
+ "parent,instance_config,instance_config_id";
132
+ option (google.longrunning.operation_info) = {
133
+ response_type: "google.spanner.admin.instance.v1.InstanceConfig"
134
+ metadata_type: "google.spanner.admin.instance.v1.CreateInstanceConfigMetadata"
135
+ };
136
+ }
137
+
138
+ // Updates an instance config. The returned
139
+ // [long-running operation][google.longrunning.Operation] can be used to track
140
+ // the progress of updating the instance. If the named instance config does
141
+ // not exist, returns `NOT_FOUND`.
142
+ //
143
+ // Only user managed configurations can be updated.
144
+ //
145
+ // Immediately after the request returns:
146
+ //
147
+ // * The instance config's
148
+ // [reconciling][google.spanner.admin.instance.v1.InstanceConfig.reconciling]
149
+ // field is set to true.
150
+ //
151
+ // While the operation is pending:
152
+ //
153
+ // * Cancelling the operation sets its metadata's
154
+ // [cancel_time][google.spanner.admin.instance.v1.UpdateInstanceConfigMetadata.cancel_time].
155
+ // The operation is guaranteed to succeed at undoing all changes, after
156
+ // which point it terminates with a `CANCELLED` status.
157
+ // * All other attempts to modify the instance config are rejected.
158
+ // * Reading the instance config via the API continues to give the
159
+ // pre-request values.
160
+ //
161
+ // Upon completion of the returned operation:
162
+ //
163
+ // * Creating instances using the instance configuration uses the new
164
+ // values.
165
+ // * The instance config's new values are readable via the API.
166
+ // * The instance config's
167
+ // [reconciling][google.spanner.admin.instance.v1.InstanceConfig.reconciling]
168
+ // field becomes false.
169
+ //
170
+ // The returned [long-running operation][google.longrunning.Operation] will
171
+ // have a name of the format
172
+ // `<instance_config_name>/operations/<operation_id>` and can be used to track
173
+ // the instance config modification. The
174
+ // [metadata][google.longrunning.Operation.metadata] field type is
175
+ // [UpdateInstanceConfigMetadata][google.spanner.admin.instance.v1.UpdateInstanceConfigMetadata].
176
+ // The [response][google.longrunning.Operation.response] field type is
177
+ // [InstanceConfig][google.spanner.admin.instance.v1.InstanceConfig], if
178
+ // successful.
179
+ //
180
+ // Authorization requires `spanner.instanceConfigs.update` permission on
181
+ // the resource [name][google.spanner.admin.instance.v1.InstanceConfig.name].
182
+ rpc UpdateInstanceConfig(UpdateInstanceConfigRequest)
183
+ returns (google.longrunning.Operation) {
184
+ option (google.api.http) = {
185
+ patch: "/v1/{instance_config.name=projects/*/instanceConfigs/*}"
186
+ body: "*"
187
+ };
188
+ option (google.api.method_signature) = "instance_config,update_mask";
189
+ option (google.longrunning.operation_info) = {
190
+ response_type: "google.spanner.admin.instance.v1.InstanceConfig"
191
+ metadata_type: "google.spanner.admin.instance.v1.UpdateInstanceConfigMetadata"
192
+ };
193
+ }
194
+
195
+ // Deletes the instance config. Deletion is only allowed when no
196
+ // instances are using the configuration. If any instances are using
197
+ // the config, returns `FAILED_PRECONDITION`.
198
+ //
199
+ // Only user managed configurations can be deleted.
200
+ //
201
+ // Authorization requires `spanner.instanceConfigs.delete` permission on
202
+ // the resource [name][google.spanner.admin.instance.v1.InstanceConfig.name].
203
+ rpc DeleteInstanceConfig(DeleteInstanceConfigRequest)
204
+ returns (google.protobuf.Empty) {
205
+ option (google.api.http) = {
206
+ delete: "/v1/{name=projects/*/instanceConfigs/*}"
207
+ };
208
+ option (google.api.method_signature) = "name";
209
+ }
210
+
211
+ // Lists the user-managed instance config [long-running
212
+ // operations][google.longrunning.Operation] in the given project. An instance
213
+ // config operation has a name of the form
214
+ // `projects/<project>/instanceConfigs/<instance_config>/operations/<operation>`.
215
+ // The long-running operation
216
+ // [metadata][google.longrunning.Operation.metadata] field type
217
+ // `metadata.type_url` describes the type of the metadata. Operations returned
218
+ // include those that have completed/failed/canceled within the last 7 days,
219
+ // and pending operations. Operations returned are ordered by
220
+ // `operation.metadata.value.start_time` in descending order starting
221
+ // from the most recently started operation.
222
+ rpc ListInstanceConfigOperations(ListInstanceConfigOperationsRequest)
223
+ returns (ListInstanceConfigOperationsResponse) {
224
+ option (google.api.http) = {
225
+ get: "/v1/{parent=projects/*}/instanceConfigOperations"
226
+ };
227
+ option (google.api.method_signature) = "parent";
228
+ }
229
+
81
230
  // Lists all instances in the given project.
82
231
  rpc ListInstances(ListInstancesRequest) returns (ListInstancesResponse) {
83
232
  option (google.api.http) = {
@@ -128,7 +277,8 @@ service InstanceAdmin {
128
277
  // [CreateInstanceMetadata][google.spanner.admin.instance.v1.CreateInstanceMetadata].
129
278
  // The [response][google.longrunning.Operation.response] field type is
130
279
  // [Instance][google.spanner.admin.instance.v1.Instance], if successful.
131
- rpc CreateInstance(CreateInstanceRequest) returns (google.longrunning.Operation) {
280
+ rpc CreateInstance(CreateInstanceRequest)
281
+ returns (google.longrunning.Operation) {
132
282
  option (google.api.http) = {
133
283
  post: "/v1/{parent=projects/*}/instances"
134
284
  body: "*"
@@ -154,9 +304,9 @@ service InstanceAdmin {
154
304
  // Until completion of the returned operation:
155
305
  //
156
306
  // * Cancelling the operation sets its metadata's
157
- // [cancel_time][google.spanner.admin.instance.v1.UpdateInstanceMetadata.cancel_time], and begins
158
- // restoring resources to their pre-request values. The operation
159
- // is guaranteed to succeed at undoing all resource changes,
307
+ // [cancel_time][google.spanner.admin.instance.v1.UpdateInstanceMetadata.cancel_time],
308
+ // and begins restoring resources to their pre-request values. The
309
+ // operation is guaranteed to succeed at undoing all resource changes,
160
310
  // after which point it terminates with a `CANCELLED` status.
161
311
  // * All other attempts to modify the instance are rejected.
162
312
  // * Reading the instance via the API continues to give the pre-request
@@ -180,7 +330,8 @@ service InstanceAdmin {
180
330
  //
181
331
  // Authorization requires `spanner.instances.update` permission on
182
332
  // the resource [name][google.spanner.admin.instance.v1.Instance.name].
183
- rpc UpdateInstance(UpdateInstanceRequest) returns (google.longrunning.Operation) {
333
+ rpc UpdateInstance(UpdateInstanceRequest)
334
+ returns (google.longrunning.Operation) {
184
335
  option (google.api.http) = {
185
336
  patch: "/v1/{instance.name=projects/*/instances/*}"
186
337
  body: "*"
@@ -215,7 +366,8 @@ service InstanceAdmin {
215
366
  //
216
367
  // Authorization requires `spanner.instances.setIamPolicy` on
217
368
  // [resource][google.iam.v1.SetIamPolicyRequest.resource].
218
- rpc SetIamPolicy(google.iam.v1.SetIamPolicyRequest) returns (google.iam.v1.Policy) {
369
+ rpc SetIamPolicy(google.iam.v1.SetIamPolicyRequest)
370
+ returns (google.iam.v1.Policy) {
219
371
  option (google.api.http) = {
220
372
  post: "/v1/{resource=projects/*/instances/*}:setIamPolicy"
221
373
  body: "*"
@@ -228,7 +380,8 @@ service InstanceAdmin {
228
380
  //
229
381
  // Authorization requires `spanner.instances.getIamPolicy` on
230
382
  // [resource][google.iam.v1.GetIamPolicyRequest.resource].
231
- rpc GetIamPolicy(google.iam.v1.GetIamPolicyRequest) returns (google.iam.v1.Policy) {
383
+ rpc GetIamPolicy(google.iam.v1.GetIamPolicyRequest)
384
+ returns (google.iam.v1.Policy) {
232
385
  option (google.api.http) = {
233
386
  post: "/v1/{resource=projects/*/instances/*}:getIamPolicy"
234
387
  body: "*"
@@ -242,7 +395,8 @@ service InstanceAdmin {
242
395
  // result in a NOT_FOUND error if the user has `spanner.instances.list`
243
396
  // permission on the containing Google Cloud Project. Otherwise returns an
244
397
  // empty set of permissions.
245
- rpc TestIamPermissions(google.iam.v1.TestIamPermissionsRequest) returns (google.iam.v1.TestIamPermissionsResponse) {
398
+ rpc TestIamPermissions(google.iam.v1.TestIamPermissionsRequest)
399
+ returns (google.iam.v1.TestIamPermissionsResponse) {
246
400
  option (google.api.http) = {
247
401
  post: "/v1/{resource=projects/*/instances/*}:testIamPermissions"
248
402
  body: "*"
@@ -307,6 +461,31 @@ message InstanceConfig {
307
461
  pattern: "projects/{project}/instanceConfigs/{instance_config}"
308
462
  };
309
463
 
464
+ // The type of this configuration.
465
+ enum Type {
466
+ // Unspecified.
467
+ TYPE_UNSPECIFIED = 0;
468
+
469
+ // Google managed configuration.
470
+ GOOGLE_MANAGED = 1;
471
+
472
+ // User managed configuration.
473
+ USER_MANAGED = 2;
474
+ }
475
+
476
+ // Indicates the current state of the instance config.
477
+ enum State {
478
+ // Not specified.
479
+ STATE_UNSPECIFIED = 0;
480
+
481
+ // The instance config is still being created.
482
+ CREATING = 1;
483
+
484
+ // The instance config is fully created and ready to be used to create
485
+ // instances.
486
+ READY = 2;
487
+ }
488
+
310
489
  // A unique identifier for the instance configuration. Values
311
490
  // are of the form
312
491
  // `projects/<project>/instanceConfigs/[a-z][-a-z0-9]*`.
@@ -315,13 +494,72 @@ message InstanceConfig {
315
494
  // The name of this instance configuration as it appears in UIs.
316
495
  string display_name = 2;
317
496
 
497
+ // Output only. Whether this instance config is a Google or User Managed
498
+ // Configuration.
499
+ Type config_type = 5 [(google.api.field_behavior) = OUTPUT_ONLY];
500
+
318
501
  // The geographic placement of nodes in this instance configuration and their
319
502
  // replication properties.
320
503
  repeated ReplicaInfo replicas = 3;
321
504
 
505
+ // Output only. The available optional replicas to choose from for user
506
+ // managed configurations. Populated for Google managed configurations.
507
+ repeated ReplicaInfo optional_replicas = 6
508
+ [(google.api.field_behavior) = OUTPUT_ONLY];
509
+
510
+ // Base configuration name, e.g. projects/<project_name>/instanceConfigs/nam3,
511
+ // based on which this configuration is created. Only set for user managed
512
+ // configurations. `base_config` must refer to a configuration of type
513
+ // GOOGLE_MANAGED in the same project as this configuration.
514
+ string base_config = 7 [(google.api.resource_reference) = {
515
+ type: "spanner.googleapis.com/InstanceConfig"
516
+ }];
517
+
518
+ // Cloud Labels are a flexible and lightweight mechanism for organizing cloud
519
+ // resources into groups that reflect a customer's organizational needs and
520
+ // deployment strategies. Cloud Labels can be used to filter collections of
521
+ // resources. They can be used to control how resource metrics are aggregated.
522
+ // And they can be used as arguments to policy management rules (e.g. route,
523
+ // firewall, load balancing, etc.).
524
+ //
525
+ // * Label keys must be between 1 and 63 characters long and must conform to
526
+ // the following regular expression: `[a-z][a-z0-9_-]{0,62}`.
527
+ // * Label values must be between 0 and 63 characters long and must conform
528
+ // to the regular expression `[a-z0-9_-]{0,63}`.
529
+ // * No more than 64 labels can be associated with a given resource.
530
+ //
531
+ // See https://goo.gl/xmQnxf for more information on and examples of labels.
532
+ //
533
+ // If you plan to use labels in your own code, please note that additional
534
+ // characters may be allowed in the future. Therefore, you are advised to use
535
+ // an internal label representation, such as JSON, which doesn't rely upon
536
+ // specific characters being disallowed. For example, representing labels
537
+ // as the string: name + "_" + value would prove problematic if we were to
538
+ // allow "_" in a future release.
539
+ map<string, string> labels = 8;
540
+
541
+ // etag is used for optimistic concurrency control as a way
542
+ // to help prevent simultaneous updates of a instance config from overwriting
543
+ // each other. It is strongly suggested that systems make use of the etag in
544
+ // the read-modify-write cycle to perform instance config updates in order to
545
+ // avoid race conditions: An etag is returned in the response which contains
546
+ // instance configs, and systems are expected to put that etag in the request
547
+ // to update instance config to ensure that their change will be applied to
548
+ // the same version of the instance config.
549
+ // If no etag is provided in the call to update instance config, then the
550
+ // existing instance config is overwritten blindly.
551
+ string etag = 9;
552
+
322
553
  // Allowed values of the "default_leader" schema option for databases in
323
554
  // instances that use this instance configuration.
324
555
  repeated string leader_options = 4;
556
+
557
+ // Output only. If true, the instance config is being created or updated. If
558
+ // false, there are no ongoing operations for the instance config.
559
+ bool reconciling = 10 [(google.api.field_behavior) = OUTPUT_ONLY];
560
+
561
+ // Output only. The current instance config state.
562
+ State state = 11 [(google.api.field_behavior) = OUTPUT_ONLY];
325
563
  }
326
564
 
327
565
  // An isolated set of Cloud Spanner resources on which databases can be hosted.
@@ -387,10 +625,10 @@ message Instance {
387
625
  int32 processing_units = 9;
388
626
 
389
627
  // Output only. The current instance state. For
390
- // [CreateInstance][google.spanner.admin.instance.v1.InstanceAdmin.CreateInstance], the state must be
391
- // either omitted or set to `CREATING`. For
392
- // [UpdateInstance][google.spanner.admin.instance.v1.InstanceAdmin.UpdateInstance], the state must be
393
- // either omitted or set to `READY`.
628
+ // [CreateInstance][google.spanner.admin.instance.v1.InstanceAdmin.CreateInstance],
629
+ // the state must be either omitted or set to `CREATING`. For
630
+ // [UpdateInstance][google.spanner.admin.instance.v1.InstanceAdmin.UpdateInstance],
631
+ // the state must be either omitted or set to `READY`.
394
632
  State state = 6 [(google.api.field_behavior) = OUTPUT_ONLY];
395
633
 
396
634
  // Cloud Labels are a flexible and lightweight mechanism for organizing cloud
@@ -420,13 +658,16 @@ message Instance {
420
658
  repeated string endpoint_uris = 8;
421
659
 
422
660
  // Output only. The time at which the instance was created.
423
- google.protobuf.Timestamp create_time = 11 [(google.api.field_behavior) = OUTPUT_ONLY];
661
+ google.protobuf.Timestamp create_time = 11
662
+ [(google.api.field_behavior) = OUTPUT_ONLY];
424
663
 
425
664
  // Output only. The time at which the instance was most recently updated.
426
- google.protobuf.Timestamp update_time = 12 [(google.api.field_behavior) = OUTPUT_ONLY];
665
+ google.protobuf.Timestamp update_time = 12
666
+ [(google.api.field_behavior) = OUTPUT_ONLY];
427
667
  }
428
668
 
429
- // The request for [ListInstanceConfigs][google.spanner.admin.instance.v1.InstanceAdmin.ListInstanceConfigs].
669
+ // The request for
670
+ // [ListInstanceConfigs][google.spanner.admin.instance.v1.InstanceAdmin.ListInstanceConfigs].
430
671
  message ListInstanceConfigsRequest {
431
672
  // Required. The name of the project for which a list of supported instance
432
673
  // configurations is requested. Values are of the form
@@ -444,18 +685,20 @@ message ListInstanceConfigsRequest {
444
685
 
445
686
  // If non-empty, `page_token` should contain a
446
687
  // [next_page_token][google.spanner.admin.instance.v1.ListInstanceConfigsResponse.next_page_token]
447
- // from a previous [ListInstanceConfigsResponse][google.spanner.admin.instance.v1.ListInstanceConfigsResponse].
688
+ // from a previous
689
+ // [ListInstanceConfigsResponse][google.spanner.admin.instance.v1.ListInstanceConfigsResponse].
448
690
  string page_token = 3;
449
691
  }
450
692
 
451
- // The response for [ListInstanceConfigs][google.spanner.admin.instance.v1.InstanceAdmin.ListInstanceConfigs].
693
+ // The response for
694
+ // [ListInstanceConfigs][google.spanner.admin.instance.v1.InstanceAdmin.ListInstanceConfigs].
452
695
  message ListInstanceConfigsResponse {
453
696
  // The list of requested instance configurations.
454
697
  repeated InstanceConfig instance_configs = 1;
455
698
 
456
699
  // `next_page_token` can be sent in a subsequent
457
- // [ListInstanceConfigs][google.spanner.admin.instance.v1.InstanceAdmin.ListInstanceConfigs] call to
458
- // fetch more of the matching instance configurations.
700
+ // [ListInstanceConfigs][google.spanner.admin.instance.v1.InstanceAdmin.ListInstanceConfigs]
701
+ // call to fetch more of the matching instance configurations.
459
702
  string next_page_token = 2;
460
703
  }
461
704
 
@@ -472,7 +715,175 @@ message GetInstanceConfigRequest {
472
715
  ];
473
716
  }
474
717
 
475
- // The request for [GetInstance][google.spanner.admin.instance.v1.InstanceAdmin.GetInstance].
718
+ // The request for
719
+ // [CreateInstanceConfigRequest][InstanceAdmin.CreateInstanceConfigRequest].
720
+ message CreateInstanceConfigRequest {
721
+ // Required. The name of the project in which to create the instance config.
722
+ // Values are of the form `projects/<project>`.
723
+ string parent = 1 [
724
+ (google.api.field_behavior) = REQUIRED,
725
+ (google.api.resource_reference) = {
726
+ type: "cloudresourcemanager.googleapis.com/Project"
727
+ }
728
+ ];
729
+
730
+ // Required. The ID of the instance config to create. Valid identifiers are
731
+ // of the form `custom-[-a-z0-9]*[a-z0-9]` and must be between 2 and 64
732
+ // characters in length. The `custom-` prefix is required to avoid name
733
+ // conflicts with Google managed configurations.
734
+ string instance_config_id = 2 [(google.api.field_behavior) = REQUIRED];
735
+
736
+ // Required. The InstanceConfig proto of the configuration to create.
737
+ // instance_config.name must be
738
+ // `<parent>/instanceConfigs/<instance_config_id>`.
739
+ // instance_config.base_config must be a Google managed configuration name,
740
+ // e.g. <parent>/instanceConfigs/us-east1, <parent>/instanceConfigs/nam3.
741
+ InstanceConfig instance_config = 3 [(google.api.field_behavior) = REQUIRED];
742
+
743
+ // An option to validate, but not actually execute, a request,
744
+ // and provide the same response.
745
+ bool validate_only = 4;
746
+ }
747
+
748
+ // The request for
749
+ // [UpdateInstanceConfigRequest][InstanceAdmin.UpdateInstanceConfigRequest].
750
+ message UpdateInstanceConfigRequest {
751
+ // Required. The user instance config to update, which must always include the
752
+ // instance config name. Otherwise, only fields mentioned in
753
+ // [update_mask][google.spanner.admin.instance.v1.UpdateInstanceConfigRequest.update_mask]
754
+ // need be included. To prevent conflicts of concurrent updates,
755
+ // [etag][google.spanner.admin.instance.v1.InstanceConfig.reconciling] can
756
+ // be used.
757
+ InstanceConfig instance_config = 1 [(google.api.field_behavior) = REQUIRED];
758
+
759
+ // Required. A mask specifying which fields in
760
+ // [InstanceConfig][google.spanner.admin.instance.v1.InstanceConfig] should be
761
+ // updated. The field mask must always be specified; this prevents any future
762
+ // fields in [InstanceConfig][google.spanner.admin.instance.v1.InstanceConfig]
763
+ // from being erased accidentally by clients that do not know about them. Only
764
+ // display_name and labels can be updated.
765
+ google.protobuf.FieldMask update_mask = 2
766
+ [(google.api.field_behavior) = REQUIRED];
767
+
768
+ // An option to validate, but not actually execute, a request,
769
+ // and provide the same response.
770
+ bool validate_only = 3;
771
+ }
772
+
773
+ // The request for
774
+ // [DeleteInstanceConfigRequest][InstanceAdmin.DeleteInstanceConfigRequest].
775
+ message DeleteInstanceConfigRequest {
776
+ // Required. The name of the instance configuration to be deleted.
777
+ // Values are of the form
778
+ // `projects/<project>/instanceConfigs/<instance_config>`
779
+ string name = 1 [
780
+ (google.api.field_behavior) = REQUIRED,
781
+ (google.api.resource_reference) = {
782
+ type: "spanner.googleapis.com/InstanceConfig"
783
+ }
784
+ ];
785
+
786
+ // Used for optimistic concurrency control as a way to help prevent
787
+ // simultaneous deletes of an instance config from overwriting each
788
+ // other. If not empty, the API
789
+ // only deletes the instance config when the etag provided matches the current
790
+ // status of the requested instance config. Otherwise, deletes the instance
791
+ // config without checking the current status of the requested instance
792
+ // config.
793
+ string etag = 2;
794
+
795
+ // An option to validate, but not actually execute, a request,
796
+ // and provide the same response.
797
+ bool validate_only = 3;
798
+ }
799
+
800
+ // The request for
801
+ // [ListInstanceConfigOperations][google.spanner.admin.instance.v1.InstanceAdmin.ListInstanceConfigOperations].
802
+ message ListInstanceConfigOperationsRequest {
803
+ // Required. The project of the instance config operations.
804
+ // Values are of the form `projects/<project>`.
805
+ string parent = 1 [
806
+ (google.api.field_behavior) = REQUIRED,
807
+ (google.api.resource_reference) = {
808
+ type: "cloudresourcemanager.googleapis.com/Project"
809
+ }
810
+ ];
811
+
812
+ // An expression that filters the list of returned operations.
813
+ //
814
+ // A filter expression consists of a field name, a
815
+ // comparison operator, and a value for filtering.
816
+ // The value must be a string, a number, or a boolean. The comparison operator
817
+ // must be one of: `<`, `>`, `<=`, `>=`, `!=`, `=`, or `:`.
818
+ // Colon `:` is the contains operator. Filter rules are not case sensitive.
819
+ //
820
+ // The following fields in the [Operation][google.longrunning.Operation]
821
+ // are eligible for filtering:
822
+ //
823
+ // * `name` - The name of the long-running operation
824
+ // * `done` - False if the operation is in progress, else true.
825
+ // * `metadata.@type` - the type of metadata. For example, the type string
826
+ // for
827
+ // [CreateInstanceConfigMetadata][google.spanner.admin.instance.v1.CreateInstanceConfigMetadata]
828
+ // is
829
+ // `type.googleapis.com/google.spanner.admin.instance.v1.CreateInstanceConfigMetadata`.
830
+ // * `metadata.<field_name>` - any field in metadata.value.
831
+ // `metadata.@type` must be specified first, if filtering on metadata
832
+ // fields.
833
+ // * `error` - Error associated with the long-running operation.
834
+ // * `response.@type` - the type of response.
835
+ // * `response.<field_name>` - any field in response.value.
836
+ //
837
+ // You can combine multiple expressions by enclosing each expression in
838
+ // parentheses. By default, expressions are combined with AND logic. However,
839
+ // you can specify AND, OR, and NOT logic explicitly.
840
+ //
841
+ // Here are a few examples:
842
+ //
843
+ // * `done:true` - The operation is complete.
844
+ // * `(metadata.@type=` \
845
+ // `type.googleapis.com/google.spanner.admin.instance.v1.CreateInstanceConfigMetadata)
846
+ // AND` \
847
+ // `(metadata.instance_config.name:custom-config) AND` \
848
+ // `(metadata.progress.start_time < \"2021-03-28T14:50:00Z\") AND` \
849
+ // `(error:*)` - Return operations where:
850
+ // * The operation's metadata type is
851
+ // [CreateInstanceConfigMetadata][google.spanner.admin.instance.v1.CreateInstanceConfigMetadata].
852
+ // * The instance config name contains "custom-config".
853
+ // * The operation started before 2021-03-28T14:50:00Z.
854
+ // * The operation resulted in an error.
855
+ string filter = 2;
856
+
857
+ // Number of operations to be returned in the response. If 0 or
858
+ // less, defaults to the server's maximum allowed page size.
859
+ int32 page_size = 3;
860
+
861
+ // If non-empty, `page_token` should contain a
862
+ // [next_page_token][google.spanner.admin.instance.v1.ListInstanceConfigOperationsResponse.next_page_token]
863
+ // from a previous
864
+ // [ListInstanceConfigOperationsResponse][google.spanner.admin.instance.v1.ListInstanceConfigOperationsResponse]
865
+ // to the same `parent` and with the same `filter`.
866
+ string page_token = 4;
867
+ }
868
+
869
+ // The response for
870
+ // [ListInstanceConfigOperations][google.spanner.admin.instance.v1.InstanceAdmin.ListInstanceConfigOperations].
871
+ message ListInstanceConfigOperationsResponse {
872
+ // The list of matching instance config [long-running
873
+ // operations][google.longrunning.Operation]. Each operation's name will be
874
+ // prefixed by the instance config's name. The operation's
875
+ // [metadata][google.longrunning.Operation.metadata] field type
876
+ // `metadata.type_url` describes the type of the metadata.
877
+ repeated google.longrunning.Operation operations = 1;
878
+
879
+ // `next_page_token` can be sent in a subsequent
880
+ // [ListInstanceConfigOperations][google.spanner.admin.instance.v1.InstanceAdmin.ListInstanceConfigOperations]
881
+ // call to fetch more of the matching metadata.
882
+ string next_page_token = 2;
883
+ }
884
+
885
+ // The request for
886
+ // [GetInstance][google.spanner.admin.instance.v1.InstanceAdmin.GetInstance].
476
887
  message GetInstanceRequest {
477
888
  // Required. The name of the requested instance. Values are of the form
478
889
  // `projects/<project>/instances/<instance>`.
@@ -483,13 +894,15 @@ message GetInstanceRequest {
483
894
  }
484
895
  ];
485
896
 
486
- // If field_mask is present, specifies the subset of [Instance][google.spanner.admin.instance.v1.Instance] fields that
487
- // should be returned.
488
- // If absent, all [Instance][google.spanner.admin.instance.v1.Instance] fields are returned.
897
+ // If field_mask is present, specifies the subset of
898
+ // [Instance][google.spanner.admin.instance.v1.Instance] fields that should be
899
+ // returned. If absent, all
900
+ // [Instance][google.spanner.admin.instance.v1.Instance] fields are returned.
489
901
  google.protobuf.FieldMask field_mask = 2;
490
902
  }
491
903
 
492
- // The request for [CreateInstance][google.spanner.admin.instance.v1.InstanceAdmin.CreateInstance].
904
+ // The request for
905
+ // [CreateInstance][google.spanner.admin.instance.v1.InstanceAdmin.CreateInstance].
493
906
  message CreateInstanceRequest {
494
907
  // Required. The name of the project in which to create the instance. Values
495
908
  // are of the form `projects/<project>`.
@@ -510,7 +923,8 @@ message CreateInstanceRequest {
510
923
  Instance instance = 3 [(google.api.field_behavior) = REQUIRED];
511
924
  }
512
925
 
513
- // The request for [ListInstances][google.spanner.admin.instance.v1.InstanceAdmin.ListInstances].
926
+ // The request for
927
+ // [ListInstances][google.spanner.admin.instance.v1.InstanceAdmin.ListInstances].
514
928
  message ListInstancesRequest {
515
929
  // Required. The name of the project for which a list of instances is
516
930
  // requested. Values are of the form `projects/<project>`.
@@ -526,8 +940,9 @@ message ListInstancesRequest {
526
940
  int32 page_size = 2;
527
941
 
528
942
  // If non-empty, `page_token` should contain a
529
- // [next_page_token][google.spanner.admin.instance.v1.ListInstancesResponse.next_page_token] from a
530
- // previous [ListInstancesResponse][google.spanner.admin.instance.v1.ListInstancesResponse].
943
+ // [next_page_token][google.spanner.admin.instance.v1.ListInstancesResponse.next_page_token]
944
+ // from a previous
945
+ // [ListInstancesResponse][google.spanner.admin.instance.v1.ListInstancesResponse].
531
946
  string page_token = 3;
532
947
 
533
948
  // An expression for filtering the results of the request. Filter rules are
@@ -552,31 +967,38 @@ message ListInstancesRequest {
552
967
  string filter = 4;
553
968
  }
554
969
 
555
- // The response for [ListInstances][google.spanner.admin.instance.v1.InstanceAdmin.ListInstances].
970
+ // The response for
971
+ // [ListInstances][google.spanner.admin.instance.v1.InstanceAdmin.ListInstances].
556
972
  message ListInstancesResponse {
557
973
  // The list of requested instances.
558
974
  repeated Instance instances = 1;
559
975
 
560
976
  // `next_page_token` can be sent in a subsequent
561
- // [ListInstances][google.spanner.admin.instance.v1.InstanceAdmin.ListInstances] call to fetch more
562
- // of the matching instances.
977
+ // [ListInstances][google.spanner.admin.instance.v1.InstanceAdmin.ListInstances]
978
+ // call to fetch more of the matching instances.
563
979
  string next_page_token = 2;
564
980
  }
565
981
 
566
- // The request for [UpdateInstance][google.spanner.admin.instance.v1.InstanceAdmin.UpdateInstance].
982
+ // The request for
983
+ // [UpdateInstance][google.spanner.admin.instance.v1.InstanceAdmin.UpdateInstance].
567
984
  message UpdateInstanceRequest {
568
985
  // Required. The instance to update, which must always include the instance
569
- // name. Otherwise, only fields mentioned in [field_mask][google.spanner.admin.instance.v1.UpdateInstanceRequest.field_mask] need be included.
986
+ // name. Otherwise, only fields mentioned in
987
+ // [field_mask][google.spanner.admin.instance.v1.UpdateInstanceRequest.field_mask]
988
+ // need be included.
570
989
  Instance instance = 1 [(google.api.field_behavior) = REQUIRED];
571
990
 
572
- // Required. A mask specifying which fields in [Instance][google.spanner.admin.instance.v1.Instance] should be updated.
991
+ // Required. A mask specifying which fields in
992
+ // [Instance][google.spanner.admin.instance.v1.Instance] should be updated.
573
993
  // The field mask must always be specified; this prevents any future fields in
574
- // [Instance][google.spanner.admin.instance.v1.Instance] from being erased accidentally by clients that do not know
575
- // about them.
576
- google.protobuf.FieldMask field_mask = 2 [(google.api.field_behavior) = REQUIRED];
994
+ // [Instance][google.spanner.admin.instance.v1.Instance] from being erased
995
+ // accidentally by clients that do not know about them.
996
+ google.protobuf.FieldMask field_mask = 2
997
+ [(google.api.field_behavior) = REQUIRED];
577
998
  }
578
999
 
579
- // The request for [DeleteInstance][google.spanner.admin.instance.v1.InstanceAdmin.DeleteInstance].
1000
+ // The request for
1001
+ // [DeleteInstance][google.spanner.admin.instance.v1.InstanceAdmin.DeleteInstance].
580
1002
  message DeleteInstanceRequest {
581
1003
  // Required. The name of the instance to be deleted. Values are of the form
582
1004
  // `projects/<project>/instances/<instance>`
@@ -595,8 +1017,8 @@ message CreateInstanceMetadata {
595
1017
  Instance instance = 1;
596
1018
 
597
1019
  // The time at which the
598
- // [CreateInstance][google.spanner.admin.instance.v1.InstanceAdmin.CreateInstance] request was
599
- // received.
1020
+ // [CreateInstance][google.spanner.admin.instance.v1.InstanceAdmin.CreateInstance]
1021
+ // request was received.
600
1022
  google.protobuf.Timestamp start_time = 2;
601
1023
 
602
1024
  // The time at which this operation was cancelled. If set, this operation is
@@ -614,7 +1036,8 @@ message UpdateInstanceMetadata {
614
1036
  // The desired end state of the update.
615
1037
  Instance instance = 1;
616
1038
 
617
- // The time at which [UpdateInstance][google.spanner.admin.instance.v1.InstanceAdmin.UpdateInstance]
1039
+ // The time at which
1040
+ // [UpdateInstance][google.spanner.admin.instance.v1.InstanceAdmin.UpdateInstance]
618
1041
  // request was received.
619
1042
  google.protobuf.Timestamp start_time = 2;
620
1043
 
@@ -626,3 +1049,33 @@ message UpdateInstanceMetadata {
626
1049
  // The time at which this operation failed or was completed successfully.
627
1050
  google.protobuf.Timestamp end_time = 4;
628
1051
  }
1052
+
1053
+ // Metadata type for the operation returned by
1054
+ // [CreateInstanceConfig][google.spanner.admin.instance.v1.InstanceAdmin.CreateInstanceConfig].
1055
+ message CreateInstanceConfigMetadata {
1056
+ // The target instance config end state.
1057
+ InstanceConfig instance_config = 1;
1058
+
1059
+ // The progress of the
1060
+ // [CreateInstanceConfig][google.spanner.admin.instance.v1.InstanceAdmin.CreateInstanceConfig]
1061
+ // operation.
1062
+ OperationProgress progress = 2;
1063
+
1064
+ // The time at which this operation was cancelled.
1065
+ google.protobuf.Timestamp cancel_time = 3;
1066
+ }
1067
+
1068
+ // Metadata type for the operation returned by
1069
+ // [UpdateInstanceConfig][google.spanner.admin.instance.v1.InstanceAdmin.UpdateInstanceConfig].
1070
+ message UpdateInstanceConfigMetadata {
1071
+ // The desired instance config after updating.
1072
+ InstanceConfig instance_config = 1;
1073
+
1074
+ // The progress of the
1075
+ // [UpdateInstanceConfig][google.spanner.admin.instance.v1.InstanceAdmin.UpdateInstanceConfig]
1076
+ // operation.
1077
+ OperationProgress progress = 2;
1078
+
1079
+ // The time at which this operation was cancelled.
1080
+ google.protobuf.Timestamp cancel_time = 3;
1081
+ }