1- // Copyright 2021 Google LLC
1+ // Copyright 2022 Google LLC
22//
33// Licensed under the Apache License, Version 2.0 (the "License");
44// you may not use this file except in compliance with the License.
@@ -179,7 +179,7 @@ service InstanceAdmin {
179179 // [Instance][google.spanner.admin.instance.v1.Instance], if successful.
180180 //
181181 // Authorization requires `spanner.instances.update` permission on
182- // resource [name][google.spanner.admin.instance.v1.Instance.name].
182+ // the resource [name][google.spanner.admin.instance.v1.Instance.name].
183183 rpc UpdateInstance (UpdateInstanceRequest ) returns (google.longrunning.Operation ) {
184184 option (google.api.http ) = {
185185 patch : "/v1/{instance.name=projects/*/instances/*}"
@@ -309,7 +309,7 @@ message InstanceConfig {
309309
310310 // A unique identifier for the instance configuration. Values
311311 // are of the form
312- // `projects/<project>/instanceConfigs/[a-z][-a-z0-9]*`
312+ // `projects/<project>/instanceConfigs/[a-z][-a-z0-9]*`.
313313 string name = 1 ;
314314
315315 // The name of this instance configuration as it appears in UIs.
@@ -319,7 +319,7 @@ message InstanceConfig {
319319 // replication properties.
320320 repeated ReplicaInfo replicas = 3 ;
321321
322- // Allowed values of the “ default_leader” schema option for databases in
322+ // Allowed values of the " default_leader" schema option for databases in
323323 // instances that use this instance configuration.
324324 repeated string leader_options = 4 ;
325325}
@@ -367,17 +367,23 @@ message Instance {
367367 // Must be unique per project and between 4 and 30 characters in length.
368368 string display_name = 3 [(google.api.field_behavior ) = REQUIRED ];
369369
370- // Required. The number of nodes allocated to this instance. This may be zero
371- // in API responses for instances that are not yet in state `READY`.
370+ // The number of nodes allocated to this instance. At most one of either
371+ // node_count or processing_units should be present in the message. This
372+ // may be zero in API responses for instances that are not yet in state
373+ // `READY`.
372374 //
373375 // See [the
374- // documentation](https://cloud.google.com/spanner/docs/instances#node_count )
375- // for more information about nodes.
376+ // documentation](https://cloud.google.com/spanner/docs/compute-capacity )
377+ // for more information about nodes and processing units .
376378 int32 node_count = 5 ;
377379
378380 // The number of processing units allocated to this instance. At most one of
379381 // processing_units or node_count should be present in the message. This may
380382 // be zero in API responses for instances that are not yet in state `READY`.
383+ //
384+ // See [the
385+ // documentation](https://cloud.google.com/spanner/docs/compute-capacity)
386+ // for more information about nodes and processing units.
381387 int32 processing_units = 9 ;
382388
383389 // Output only. The current instance state. For
@@ -395,9 +401,9 @@ message Instance {
395401 // firewall, load balancing, etc.).
396402 //
397403 // * Label keys must be between 1 and 63 characters long and must conform to
398- // the following regular expression: `[a-z]([- a-z0-9]*[a-z0-9])? `.
404+ // the following regular expression: `[a-z][ a-z0-9_-]{0,62} `.
399405 // * Label values must be between 0 and 63 characters long and must conform
400- // to the regular expression `( [a-z]([-a- z0-9]*[a-z0-9])?)? `.
406+ // to the regular expression `[a-z0-9_-]{0,63} `.
401407 // * No more than 64 labels can be associated with a given resource.
402408 //
403409 // See https://goo.gl/xmQnxf for more information on and examples of labels.
@@ -412,6 +418,12 @@ message Instance {
412418
413419 // Deprecated. This field is not populated.
414420 repeated string endpoint_uris = 8 ;
421+
422+ // Output only. The time at which the instance was created.
423+ google.protobuf.Timestamp create_time = 11 [(google.api.field_behavior ) = OUTPUT_ONLY ];
424+
425+ // 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 ];
415427}
416428
417429// The request for [ListInstanceConfigs][google.spanner.admin.instance.v1.InstanceAdmin.ListInstanceConfigs].
0 commit comments