google-apis-spanner_v1 0.43.0 → 0.45.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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 9ff3c467cf3caa328b6c200a443e0fa97c76cf2980db9feedacb805456d0a2a9
4
- data.tar.gz: 3ee51aa254b443e266973b0a7cfcc274ece131c985f3d94e464271ee694cfbf5
3
+ metadata.gz: 4e2b58ef928288fd71c819ed53b9067d1c538c97fbaf01523e48861bcb35024e
4
+ data.tar.gz: f4044cd1f853073767879aa5077872339d679792410d1ba9dd4526471a4d9acb
5
5
  SHA512:
6
- metadata.gz: 4ba927505875f4f6488e4d11c353dc1837de8cf4824a6d43d85ccc96fd446e81b50561ca6ab353cbb85a74dd96220ca27c9fbcd3f2439a59cfef80e9972fd390
7
- data.tar.gz: f0f369669d52f7856da3cdcbf00c5223a8ca2fa8461125cbfa4e0101f72241dfd4e72ec2f6d0d508dcc7e954f3249a8c7e5a38cfda13aa3688c0a7c0f33f8661
6
+ metadata.gz: 135b702bbc2e72e271723cf08bca7f311e413791dcc2fe9c8eb980e762d6421ba82ae26e84f891e0b5368626b4ccf7c1755a076702473eb9380d0d21431d57b1
7
+ data.tar.gz: 95c2c508c32ffa88286a3b32aa703c8c8513d83594b3cecaccecbdc139577b3957dad50246f406ba5632d33168df415a8645efdcbba7ecd7cad585d25066f4c6
data/CHANGELOG.md CHANGED
@@ -1,5 +1,13 @@
1
1
  # Release history for google-apis-spanner_v1
2
2
 
3
+ ### v0.45.0 (2025-10-05)
4
+
5
+ * Regenerated from discovery document revision 20250920
6
+
7
+ ### v0.44.0 (2025-07-20)
8
+
9
+ * Regenerated from discovery document revision 20250708
10
+
3
11
  ### v0.43.0 (2025-07-06)
4
12
 
5
13
  * Regenerated from discovery document revision 20250625
@@ -58,6 +58,14 @@ module Google
58
58
  class AdaptMessageResponse
59
59
  include Google::Apis::Core::Hashable
60
60
 
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
+
61
69
  # Optional. Uninterpreted bytes from the underlying wire protocol.
62
70
  # Corresponds to the JSON property `payload`
63
71
  # NOTE: Values are automatically base64 encoded/decoded in the client library.
@@ -75,6 +83,7 @@ module Google
75
83
 
76
84
  # Update properties of this object
77
85
  def update!(**args)
86
+ @last = args[:last] if args.key?(:last)
78
87
  @payload = args[:payload] if args.key?(:payload)
79
88
  @state_updates = args[:state_updates] if args.key?(:state_updates)
80
89
  end
@@ -408,9 +417,9 @@ module Google
408
417
  # @return [String]
409
418
  attr_accessor :incremental_backup_chain_id
410
419
 
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`.
414
423
  # Corresponds to the JSON property `instancePartitions`
415
424
  # @return [Array<Google::Apis::SpannerV1::BackupInstancePartition>]
416
425
  attr_accessor :instance_partitions
@@ -712,16 +721,9 @@ module Google
712
721
  class BatchWriteRequest
713
722
  include Google::Apis::Core::Hashable
714
723
 
715
- # Optional. When `exclude_txn_from_change_streams` is set to `true`: *
716
- # Modifications from all transactions in this batch write operation are not be
717
- # recorded in change streams with DDL option `allow_txn_exclusion=true` that are
718
- # tracking columns modified by these transactions. * Modifications from all
719
- # transactions in this batch write operation are recorded in change streams with
720
- # DDL option `allow_txn_exclusion=false or not set` that are tracking columns
721
- # modified by these transactions. When `exclude_txn_from_change_streams` is set
722
- # to `false` or not set, Modifications from all transactions in this batch write
723
- # operation are recorded in all change streams that are tracking columns
724
- # modified by these transactions.
724
+ # Optional. If you don't set the `exclude_txn_from_change_streams` option or if
725
+ # it's set to `false`, then any change streams monitoring columns modified by
726
+ # transactions will capture the updates made within that transaction.
725
727
  # Corresponds to the JSON property `excludeTxnFromChangeStreams`
726
728
  # @return [Boolean]
727
729
  attr_accessor :exclude_txn_from_change_streams
@@ -1227,6 +1229,13 @@ module Google
1227
1229
  # @return [Google::Apis::SpannerV1::MultiplexedSessionPrecommitToken]
1228
1230
  attr_accessor :precommit_token
1229
1231
 
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
+
1230
1239
  def initialize(**args)
1231
1240
  update!(**args)
1232
1241
  end
@@ -1236,6 +1245,7 @@ module Google
1236
1245
  @commit_stats = args[:commit_stats] if args.key?(:commit_stats)
1237
1246
  @commit_timestamp = args[:commit_timestamp] if args.key?(:commit_timestamp)
1238
1247
  @precommit_token = args[:precommit_token] if args.key?(:precommit_token)
1248
+ @snapshot_timestamp = args[:snapshot_timestamp] if args.key?(:snapshot_timestamp)
1239
1249
  end
1240
1250
  end
1241
1251
 
@@ -1313,9 +1323,15 @@ module Google
1313
1323
  # @return [String]
1314
1324
  attr_accessor :encryption_type
1315
1325
 
1316
- # Optional. The Cloud KMS key that will be used to protect the backup. This
1317
- # field should be set only when encryption_type is `CUSTOMER_MANAGED_ENCRYPTION`.
1318
- # 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/`.
1319
1335
  # Corresponds to the JSON property `kmsKeyName`
1320
1336
  # @return [String]
1321
1337
  attr_accessor :kms_key_name
@@ -1449,9 +1465,15 @@ module Google
1449
1465
  # @return [String]
1450
1466
  attr_accessor :encryption_type
1451
1467
 
1452
- # Optional. The Cloud KMS key that will be used to protect the backup. This
1453
- # field should be set only when encryption_type is `CUSTOMER_MANAGED_ENCRYPTION`.
1454
- # 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/`.
1455
1477
  # Corresponds to the JSON property `kmsKeyName`
1456
1478
  # @return [String]
1457
1479
  attr_accessor :kms_key_name
@@ -2122,8 +2144,8 @@ module Google
2122
2144
  include Google::Apis::Core::Hashable
2123
2145
 
2124
2146
  # Required. The unique identifier of the database resource in the Instance. For
2125
- # example if the database uri is projects/foo/instances/bar/databases/baz, the
2126
- # id to supply here is baz.
2147
+ # example, if the database uri is `projects/foo/instances/bar/databases/baz`,
2148
+ # then the id to supply here is baz.
2127
2149
  # Corresponds to the JSON property `databaseId`
2128
2150
  # @return [String]
2129
2151
  attr_accessor :database_id
@@ -2171,23 +2193,23 @@ module Google
2171
2193
  class DdlStatementActionInfo
2172
2194
  include Google::Apis::Core::Hashable
2173
2195
 
2174
- # The action for the DDL statement, e.g. CREATE, ALTER, DROP, GRANT, etc. This
2175
- # 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.
2176
2198
  # Corresponds to the JSON property `action`
2177
2199
  # @return [String]
2178
2200
  attr_accessor :action
2179
2201
 
2180
- # The entity name(s) being operated on the DDL statement. E.g. 1. For statement "
2181
- # CREATE TABLE t1(...)", `entity_names` = ["t1"]. 2. For statement "GRANT ROLE
2182
- # r1, r2 ...", `entity_names` = ["r1", "r2"]. 3. For statement "ANALYZE", `
2183
- # 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` = [].
2184
2206
  # Corresponds to the JSON property `entityNames`
2185
2207
  # @return [Array<String>]
2186
2208
  attr_accessor :entity_names
2187
2209
 
2188
- # The entity type for the DDL statement, e.g. TABLE, INDEX, VIEW, etc. This
2189
- # field can be empty string for some DDL statement, e.g. for statement "ANALYZE",
2190
- # `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` = "".
2191
2213
  # Corresponds to the JSON property `entityType`
2192
2214
  # @return [String]
2193
2215
  attr_accessor :entity_type
@@ -3373,12 +3395,12 @@ module Google
3373
3395
  include Google::Apis::Core::Hashable
3374
3396
 
3375
3397
  # Optional. This field is maintained for backwards compatibility. For new
3376
- # callers, we recommend using `kms_key_names` to specify the KMS key. `
3377
- # kms_key_name` should only be used if the location of the KMS key matches the
3378
- # database instance’s configuration (location) exactly. E.g. The KMS location is
3379
- # in us-central1 or nam3 and the database instance is also in us-central1 or
3380
- # nam3. The Cloud KMS key to be used for encrypting and decrypting the database.
3381
- # 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/`.
3382
3404
  # Corresponds to the JSON property `kmsKeyName`
3383
3405
  # @return [String]
3384
3406
  attr_accessor :kms_key_name
@@ -3552,7 +3574,7 @@ module Google
3552
3574
  class InstanceReplicaSelection
3553
3575
  include Google::Apis::Core::Hashable
3554
3576
 
3555
- # 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").
3556
3578
  # Corresponds to the JSON property `location`
3557
3579
  # @return [String]
3558
3580
  attr_accessor :location
@@ -5963,8 +5985,13 @@ module Google
5963
5985
  # @return [String]
5964
5986
  attr_accessor :encryption_type
5965
5987
 
5966
- # Optional. The Cloud KMS key that will be used to encrypt/decrypt the restored
5967
- # 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 `
5968
5995
  # CUSTOMER_MANAGED_ENCRYPTION`. Values are of the form `projects//locations//
5969
5996
  # keyRings//cryptoKeys/`.
5970
5997
  # Corresponds to the JSON property `kmsKeyName`
@@ -6474,11 +6501,11 @@ module Google
6474
6501
  class SingleRegionQuorum
6475
6502
  include Google::Apis::Core::Hashable
6476
6503
 
6477
- # Required. The location of the serving region, e.g. "us-central1". The location
6478
- # must be one of the regions within the dual-region instance configuration of
6479
- # your database. The list of valid locations is available using the
6480
- # GetInstanceConfig API. This should only be used if you plan to change quorum
6481
- # 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.
6482
6509
  # Corresponds to the JSON property `servingLocation`
6483
6510
  # @return [String]
6484
6511
  attr_accessor :serving_location
@@ -6891,9 +6918,9 @@ module Google
6891
6918
  # @return [Array<String>]
6892
6919
  attr_accessor :statements
6893
6920
 
6894
- # Output only. When true, indicates that the operation is throttled e.g. due to
6895
- # resource constraints. When resources become available the operation will
6896
- # 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.
6897
6924
  # Corresponds to the JSON property `throttled`
6898
6925
  # @return [Boolean]
6899
6926
  attr_accessor :throttled
@@ -6918,13 +6945,13 @@ module Google
6918
6945
  # all at once, to the database schema at some point (or points) in the future.
6919
6946
  # The server checks that the statements are executable (syntactically valid,
6920
6947
  # name tables that exist, etc.) before enqueueing them, but they may still fail
6921
- # upon later execution (e.g., if a statement from another batch of statements is
6922
- # applied first and it conflicts in some way, or if there is some data-related
6923
- # problem like a `NULL` value in a column to which `NOT NULL` would be added).
6924
- # If a statement fails, all subsequent statements in the batch are automatically
6925
- # cancelled. Each batch of statements is assigned a name which can be used with
6926
- # the Operations API to monitor progress. See the operation_id field for more
6927
- # 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.
6928
6955
  class UpdateDatabaseDdlRequest
6929
6956
  include Google::Apis::Core::Hashable
6930
6957
 
@@ -16,13 +16,13 @@ module Google
16
16
  module Apis
17
17
  module SpannerV1
18
18
  # Version of the google-apis-spanner_v1 gem
19
- GEM_VERSION = "0.43.0"
19
+ GEM_VERSION = "0.45.0"
20
20
 
21
21
  # Version of the code generator used to generate this client
22
22
  GENERATOR_VERSION = "0.18.0"
23
23
 
24
24
  # Revision of the discovery document this client was generated from
25
- REVISION = "20250625"
25
+ REVISION = "20250920"
26
26
  end
27
27
  end
28
28
  end
@@ -1090,6 +1090,7 @@ module Google
1090
1090
  class AdaptMessageResponse
1091
1091
  # @private
1092
1092
  class Representation < Google::Apis::Core::JsonRepresentation
1093
+ property :last, as: 'last'
1093
1094
  property :payload, :base64 => true, as: 'payload'
1094
1095
  hash :state_updates, as: 'stateUpdates'
1095
1096
  end
@@ -1377,6 +1378,7 @@ module Google
1377
1378
  property :commit_timestamp, as: 'commitTimestamp'
1378
1379
  property :precommit_token, as: 'precommitToken', class: Google::Apis::SpannerV1::MultiplexedSessionPrecommitToken, decorator: Google::Apis::SpannerV1::MultiplexedSessionPrecommitToken::Representation
1379
1380
 
1381
+ property :snapshot_timestamp, as: 'snapshotTimestamp'
1380
1382
  end
1381
1383
  end
1382
1384
 
@@ -1169,11 +1169,10 @@ module Google
1169
1169
  # delete the backup. There can be only one pending backup creation per database.
1170
1170
  # Backup creation of different databases can run concurrently.
1171
1171
  # @param [String] parent
1172
- # Required. The name of the instance in which the backup will be created. This
1173
- # must be the same instance that contains the database the backup will be
1174
- # created from. The backup will be stored in the location(s) specified in the
1175
- # instance configuration of this instance. Values are of the form `projects//
1176
- # instances/`.
1172
+ # Required. The name of the instance in which the backup is created. This must
1173
+ # be the same instance that contains the database the backup is created from.
1174
+ # The backup will be stored in the locations specified in the instance
1175
+ # configuration of this instance. Values are of the form `projects//instances/`.
1177
1176
  # @param [Google::Apis::SpannerV1::Backup] backup_object
1178
1177
  # @param [String] backup_id
1179
1178
  # Required. The id of the backup to be created. The `backup_id` appended to `
@@ -1181,9 +1180,15 @@ module Google
1181
1180
  # @param [String] encryption_config_encryption_type
1182
1181
  # Required. The encryption type of the backup.
1183
1182
  # @param [String] encryption_config_kms_key_name
1184
- # Optional. The Cloud KMS key that will be used to protect the backup. This
1185
- # field should be set only when encryption_type is `CUSTOMER_MANAGED_ENCRYPTION`.
1186
- # Values are of the form `projects//locations//keyRings//cryptoKeys/`.
1183
+ # Optional. This field is maintained for backwards compatibility. For new
1184
+ # callers, we recommend using `kms_key_names` to specify the KMS key. Only use `
1185
+ # kms_key_name` if the location of the KMS key matches the database instance's
1186
+ # configuration (location) exactly. For example, if the KMS location is in `us-
1187
+ # central1` or `nam3`, then the database instance must also be in `us-central1`
1188
+ # or `nam3`. The Cloud KMS key that is used to encrypt and decrypt the restored
1189
+ # database. Set this field only when encryption_type is `
1190
+ # CUSTOMER_MANAGED_ENCRYPTION`. Values are of the form `projects//locations//
1191
+ # keyRings//cryptoKeys/`.
1187
1192
  # @param [Array<String>, String] encryption_config_kms_key_names
1188
1193
  # Optional. Specifies the KMS configuration for the one or more keys used to
1189
1194
  # protect the backup. Values are of the form `projects//locations//keyRings//
@@ -1406,11 +1411,11 @@ module Google
1406
1411
  # the form `projects//instances/`.
1407
1412
  # @param [Google::Apis::SpannerV1::Backup] backup_object
1408
1413
  # @param [String] update_mask
1409
- # Required. A mask specifying which fields (e.g. `expire_time`) in the Backup
1410
- # resource should be updated. This mask is relative to the Backup resource, not
1411
- # to the request message. The field mask must always be specified; this prevents
1412
- # any future fields from being erased accidentally by clients that do not know
1413
- # about them.
1414
+ # Required. A mask specifying which fields (for example, `expire_time`) in the
1415
+ # backup resource should be updated. This mask is relative to the backup
1416
+ # resource, not to the request message. The field mask must always be specified;
1417
+ # this prevents any future fields from being erased accidentally by clients that
1418
+ # do not know about them.
1414
1419
  # @param [String] fields
1415
1420
  # Selector specifying which fields to include in a partial response.
1416
1421
  # @param [String] quota_user
@@ -2252,7 +2257,7 @@ module Google
2252
2257
  # Updates the schema of a Cloud Spanner database by creating/altering/dropping
2253
2258
  # tables, columns, indexes, etc. The returned long-running operation will have a
2254
2259
  # name of the format `/operations/` and can be used to track execution of the
2255
- # schema change(s). The metadata field type is UpdateDatabaseDdlMetadata. The
2260
+ # schema changes. The metadata field type is UpdateDatabaseDdlMetadata. The
2256
2261
  # operation has no response.
2257
2262
  # @param [String] database
2258
2263
  # Required. The database to update.
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-apis-spanner_v1
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.43.0
4
+ version: 0.45.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Google LLC
@@ -57,7 +57,7 @@ licenses:
57
57
  metadata:
58
58
  bug_tracker_uri: https://github.com/googleapis/google-api-ruby-client/issues
59
59
  changelog_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-spanner_v1/CHANGELOG.md
60
- documentation_uri: https://googleapis.dev/ruby/google-apis-spanner_v1/v0.43.0
60
+ documentation_uri: https://googleapis.dev/ruby/google-apis-spanner_v1/v0.45.0
61
61
  source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-spanner_v1
62
62
  rdoc_options: []
63
63
  require_paths: