@@ -58,6 +58,14 @@ def update!(**args)
5858 class AdaptMessageResponse
5959 include Google ::Apis ::Core ::Hashable
6060
61+ # Optional. Indicates whether this is the last AdaptMessageResponse in the
62+ # stream. This field may be optionally set by the server. Clients should not
63+ # rely on this field being set in all cases.
64+ # Corresponds to the JSON property `last`
65+ # @return [Boolean]
66+ attr_accessor :last
67+ alias_method :last? , :last
68+
6169 # Optional. Uninterpreted bytes from the underlying wire protocol.
6270 # Corresponds to the JSON property `payload`
6371 # NOTE: Values are automatically base64 encoded/decoded in the client library.
@@ -75,6 +83,7 @@ def initialize(**args)
7583
7684 # Update properties of this object
7785 def update! ( **args )
86+ @last = args [ :last ] if args . key? ( :last )
7887 @payload = args [ :payload ] if args . key? ( :payload )
7988 @state_updates = args [ :state_updates ] if args . key? ( :state_updates )
8089 end
@@ -408,9 +417,9 @@ class Backup
408417 # @return [String]
409418 attr_accessor :incremental_backup_chain_id
410419
411- # Output only. The instance partition(s) storing the backup. This is the same as
412- # the list of the instance partition(s) that the database had footprint in at
413- # the backup's `version_time`.
420+ # Output only. The instance partition storing the backup. This is the same as
421+ # the list of the instance partitions that the database recorded at the backup's
422+ # `version_time`.
414423 # Corresponds to the JSON property `instancePartitions`
415424 # @return [Array<Google::Apis::SpannerV1::BackupInstancePartition>]
416425 attr_accessor :instance_partitions
@@ -1220,6 +1229,13 @@ class CommitResponse
12201229 # @return [Google::Apis::SpannerV1::MultiplexedSessionPrecommitToken]
12211230 attr_accessor :precommit_token
12221231
1232+ # If `TransactionOptions.isolation_level` is set to `IsolationLevel.
1233+ # REPEATABLE_READ`, then the snapshot timestamp is the timestamp at which all
1234+ # reads in the transaction ran. This timestamp is never returned.
1235+ # Corresponds to the JSON property `snapshotTimestamp`
1236+ # @return [String]
1237+ attr_accessor :snapshot_timestamp
1238+
12231239 def initialize ( **args )
12241240 update! ( **args )
12251241 end
@@ -1229,6 +1245,7 @@ def update!(**args)
12291245 @commit_stats = args [ :commit_stats ] if args . key? ( :commit_stats )
12301246 @commit_timestamp = args [ :commit_timestamp ] if args . key? ( :commit_timestamp )
12311247 @precommit_token = args [ :precommit_token ] if args . key? ( :precommit_token )
1248+ @snapshot_timestamp = args [ :snapshot_timestamp ] if args . key? ( :snapshot_timestamp )
12321249 end
12331250 end
12341251
@@ -1306,9 +1323,15 @@ class CopyBackupEncryptionConfig
13061323 # @return [String]
13071324 attr_accessor :encryption_type
13081325
1309- # Optional. The Cloud KMS key that will be used to protect the backup. This
1310- # field should be set only when encryption_type is `CUSTOMER_MANAGED_ENCRYPTION`.
1311- # Values are of the form `projects//locations//keyRings//cryptoKeys/`.
1326+ # Optional. This field is maintained for backwards compatibility. For new
1327+ # callers, we recommend using `kms_key_names` to specify the KMS key. Only use `
1328+ # kms_key_name` if the location of the KMS key matches the database instance's
1329+ # configuration (location) exactly. For example, if the KMS location is in `us-
1330+ # central1` or `nam3`, then the database instance must also be in `us-central1`
1331+ # or `nam3`. The Cloud KMS key that is used to encrypt and decrypt the restored
1332+ # database. Set this field only when encryption_type is `
1333+ # CUSTOMER_MANAGED_ENCRYPTION`. Values are of the form `projects//locations//
1334+ # keyRings//cryptoKeys/`.
13121335 # Corresponds to the JSON property `kmsKeyName`
13131336 # @return [String]
13141337 attr_accessor :kms_key_name
@@ -1442,9 +1465,15 @@ class CreateBackupEncryptionConfig
14421465 # @return [String]
14431466 attr_accessor :encryption_type
14441467
1445- # Optional. The Cloud KMS key that will be used to protect the backup. This
1446- # field should be set only when encryption_type is `CUSTOMER_MANAGED_ENCRYPTION`.
1447- # Values are of the form `projects//locations//keyRings//cryptoKeys/`.
1468+ # Optional. This field is maintained for backwards compatibility. For new
1469+ # callers, we recommend using `kms_key_names` to specify the KMS key. Only use `
1470+ # kms_key_name` if the location of the KMS key matches the database instance's
1471+ # configuration (location) exactly. For example, if the KMS location is in `us-
1472+ # central1` or `nam3`, then the database instance must also be in `us-central1`
1473+ # or `nam3`. The Cloud KMS key that is used to encrypt and decrypt the restored
1474+ # database. Set this field only when encryption_type is `
1475+ # CUSTOMER_MANAGED_ENCRYPTION`. Values are of the form `projects//locations//
1476+ # keyRings//cryptoKeys/`.
14481477 # Corresponds to the JSON property `kmsKeyName`
14491478 # @return [String]
14501479 attr_accessor :kms_key_name
@@ -2164,23 +2193,23 @@ def update!(**args)
21642193 class DdlStatementActionInfo
21652194 include Google ::Apis ::Core ::Hashable
21662195
2167- # The action for the DDL statement, e.g. CREATE, ALTER, DROP, GRANT, etc. This
2168- # field is a non-empty string.
2196+ # The action for the DDL statement, for example, CREATE, ALTER, DROP, GRANT, etc.
2197+ # This field is a non-empty string.
21692198 # Corresponds to the JSON property `action`
21702199 # @return [String]
21712200 attr_accessor :action
21722201
2173- # The entity name(s) being operated on the DDL statement. E.g. 1. For statement "
2174- # CREATE TABLE t1(...)", `entity_names` = ["t1"]. 2. For statement "GRANT ROLE
2175- # r1, r2 ...", `entity_names` = ["r1", "r2"]. 3. For statement "ANALYZE", `
2176- # entity_names` = [].
2202+ # The entity names being operated on the DDL statement. For example, 1. For
2203+ # statement " CREATE TABLE t1(...)", `entity_names` = ["t1"]. 2. For statement "
2204+ # GRANT ROLE r1, r2 ...", `entity_names` = ["r1", "r2"]. 3. For statement "
2205+ # ANALYZE", ` entity_names` = [].
21772206 # Corresponds to the JSON property `entityNames`
21782207 # @return [Array<String>]
21792208 attr_accessor :entity_names
21802209
2181- # The entity type for the DDL statement, e.g. TABLE, INDEX, VIEW, etc. This
2182- # field can be empty string for some DDL statement, e.g. for statement "ANALYZE",
2183- # `entity_type` = "".
2210+ # The entity type for the DDL statement, for example, TABLE, INDEX, VIEW, etc.
2211+ # This field can be empty string for some DDL statement, for example, for
2212+ # statement "ANALYZE", `entity_type` = "".
21842213 # Corresponds to the JSON property `entityType`
21852214 # @return [String]
21862215 attr_accessor :entity_type
@@ -3366,12 +3395,12 @@ class InstanceEncryptionConfig
33663395 include Google ::Apis ::Core ::Hashable
33673396
33683397 # Optional. This field is maintained for backwards compatibility. For new
3369- # callers, we recommend using `kms_key_names` to specify the KMS key. `
3370- # kms_key_name` should only be used if the location of the KMS key matches the
3371- # database instance’s configuration (location) exactly. E.g. The KMS location is
3372- # in us- central1 or nam3 and the database instance is also in us-central1 or
3373- # nam3. The Cloud KMS key to be used for encrypting and decrypting the database.
3374- # Values are of the form `projects//locations//keyRings//cryptoKeys/`.
3398+ # callers, we recommend using `kms_key_names` to specify the KMS key. Only use `
3399+ # kms_key_name` if the location of the KMS key matches the database instance's
3400+ # configuration (location) exactly. For example, if the KMS location is in `us-
3401+ # central1` or ` nam3`, then the database instance must also be in ` us-central1`
3402+ # or ` nam3` . The Cloud KMS key that is used to encrypt and decrypt the restored
3403+ # database. Values are of the form `projects//locations//keyRings//cryptoKeys/`.
33753404 # Corresponds to the JSON property `kmsKeyName`
33763405 # @return [String]
33773406 attr_accessor :kms_key_name
@@ -3545,7 +3574,7 @@ def update!(**args)
35453574 class InstanceReplicaSelection
35463575 include Google ::Apis ::Core ::Hashable
35473576
3548- # Required. Name of the location of the replicas (e.g. , "us-central1").
3577+ # Required. Name of the location of the replicas (for example , "us-central1").
35493578 # Corresponds to the JSON property `location`
35503579 # @return [String]
35513580 attr_accessor :location
@@ -5956,8 +5985,13 @@ class RestoreDatabaseEncryptionConfig
59565985 # @return [String]
59575986 attr_accessor :encryption_type
59585987
5959- # Optional. The Cloud KMS key that will be used to encrypt/decrypt the restored
5960- # database. This field should be set only when encryption_type is `
5988+ # Optional. This field is maintained for backwards compatibility. For new
5989+ # callers, we recommend using `kms_key_names` to specify the KMS key. Only use `
5990+ # kms_key_name` if the location of the KMS key matches the database instance's
5991+ # configuration (location) exactly. For example, if the KMS location is in `us-
5992+ # central1` or `nam3`, then the database instance must also be in `us-central1`
5993+ # or `nam3`. The Cloud KMS key that is used to encrypt and decrypt the restored
5994+ # database. Set this field only when encryption_type is `
59615995 # CUSTOMER_MANAGED_ENCRYPTION`. Values are of the form `projects//locations//
59625996 # keyRings//cryptoKeys/`.
59635997 # Corresponds to the JSON property `kmsKeyName`
@@ -6467,11 +6501,11 @@ def update!(**args)
64676501 class SingleRegionQuorum
64686502 include Google ::Apis ::Core ::Hashable
64696503
6470- # Required. The location of the serving region, e.g. "us-central1". The location
6471- # must be one of the regions within the dual-region instance configuration of
6472- # your database. The list of valid locations is available using the
6473- # GetInstanceConfig API. This should only be used if you plan to change quorum
6474- # to the single-region quorum type.
6504+ # Required. The location of the serving region, for example, "us-central1". The
6505+ # location must be one of the regions within the dual-region instance
6506+ # configuration of your database. The list of valid locations is available using
6507+ # the GetInstanceConfig API. This should only be used if you plan to change
6508+ # quorum to the single-region quorum type.
64756509 # Corresponds to the JSON property `servingLocation`
64766510 # @return [String]
64776511 attr_accessor :serving_location
@@ -6884,9 +6918,9 @@ class UpdateDatabaseDdlMetadata
68846918 # @return [Array<String>]
68856919 attr_accessor :statements
68866920
6887- # Output only. When true, indicates that the operation is throttled e.g. due to
6888- # resource constraints. When resources become available the operation will
6889- # resume and this field will be false again.
6921+ # Output only. When true, indicates that the operation is throttled, for example,
6922+ # due to resource constraints. When resources become available the operation
6923+ # will resume and this field will be false again.
68906924 # Corresponds to the JSON property `throttled`
68916925 # @return [Boolean]
68926926 attr_accessor :throttled
@@ -6911,13 +6945,13 @@ def update!(**args)
69116945 # all at once, to the database schema at some point (or points) in the future.
69126946 # The server checks that the statements are executable (syntactically valid,
69136947 # name tables that exist, etc.) before enqueueing them, but they may still fail
6914- # upon later execution (e.g. , if a statement from another batch of statements is
6915- # applied first and it conflicts in some way, or if there is some data-related
6916- # problem like a `NULL` value in a column to which `NOT NULL` would be added).
6917- # If a statement fails, all subsequent statements in the batch are automatically
6918- # cancelled. Each batch of statements is assigned a name which can be used with
6919- # the Operations API to monitor progress. See the operation_id field for more
6920- # details.
6948+ # upon later execution (for example , if a statement from another batch of
6949+ # statements is applied first and it conflicts in some way, or if there is some
6950+ # data-related problem like a `NULL` value in a column to which `NOT NULL` would
6951+ # be added). If a statement fails, all subsequent statements in the batch are
6952+ # automatically cancelled. Each batch of statements is assigned a name which can
6953+ # be used with the Operations API to monitor progress. See the operation_id
6954+ # field for more details.
69216955 class UpdateDatabaseDdlRequest
69226956 include Google ::Apis ::Core ::Hashable
69236957
0 commit comments