google-apis-spanner_v1 0.44.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: f94ddd3a38c1bce164cdadedebce2083cccc4038af71a6e91cc46a003bf055bf
4
- data.tar.gz: 5de1e4480e4ec081ec3549afbd6b7aec520e0f2bc493ab854047929b4713774d
3
+ metadata.gz: 4e2b58ef928288fd71c819ed53b9067d1c538c97fbaf01523e48861bcb35024e
4
+ data.tar.gz: f4044cd1f853073767879aa5077872339d679792410d1ba9dd4526471a4d9acb
5
5
  SHA512:
6
- metadata.gz: 6ea3cd6e82d86e8e37a4b6dfe61501a88660c2ec7411c765f965a08f0e2a98c3da429f706780424512d52abb14aac169ba9720aaf161c983245b345ffab33e55
7
- data.tar.gz: 4886d04f2ebdaf62229a891269f094c9916a3f62a6fe60edabc1518177357bf6fe09e6d4e317397ce441cb28dbd022c7ab1678f3b0d88e6c3f40a8d70209084f
6
+ metadata.gz: 135b702bbc2e72e271723cf08bca7f311e413791dcc2fe9c8eb980e762d6421ba82ae26e84f891e0b5368626b4ccf7c1755a076702473eb9380d0d21431d57b1
7
+ data.tar.gz: 95c2c508c32ffa88286a3b32aa703c8c8513d83594b3cecaccecbdc139577b3957dad50246f406ba5632d33168df415a8645efdcbba7ecd7cad585d25066f4c6
data/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
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
+
3
7
  ### v0.44.0 (2025-07-20)
4
8
 
5
9
  * Regenerated from discovery document revision 20250708
@@ -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
@@ -1220,6 +1229,13 @@ module Google
1220
1229
  # @return [Google::Apis::SpannerV1::MultiplexedSessionPrecommitToken]
1221
1230
  attr_accessor :precommit_token
1222
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
+
1223
1239
  def initialize(**args)
1224
1240
  update!(**args)
1225
1241
  end
@@ -1229,6 +1245,7 @@ module Google
1229
1245
  @commit_stats = args[:commit_stats] if args.key?(:commit_stats)
1230
1246
  @commit_timestamp = args[:commit_timestamp] if args.key?(:commit_timestamp)
1231
1247
  @precommit_token = args[:precommit_token] if args.key?(:precommit_token)
1248
+ @snapshot_timestamp = args[:snapshot_timestamp] if args.key?(:snapshot_timestamp)
1232
1249
  end
1233
1250
  end
1234
1251
 
@@ -1306,9 +1323,15 @@ module Google
1306
1323
  # @return [String]
1307
1324
  attr_accessor :encryption_type
1308
1325
 
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/`.
1312
1335
  # Corresponds to the JSON property `kmsKeyName`
1313
1336
  # @return [String]
1314
1337
  attr_accessor :kms_key_name
@@ -1442,9 +1465,15 @@ module Google
1442
1465
  # @return [String]
1443
1466
  attr_accessor :encryption_type
1444
1467
 
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/`.
1448
1477
  # Corresponds to the JSON property `kmsKeyName`
1449
1478
  # @return [String]
1450
1479
  attr_accessor :kms_key_name
@@ -2164,23 +2193,23 @@ module Google
2164
2193
  class DdlStatementActionInfo
2165
2194
  include Google::Apis::Core::Hashable
2166
2195
 
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.
2169
2198
  # Corresponds to the JSON property `action`
2170
2199
  # @return [String]
2171
2200
  attr_accessor :action
2172
2201
 
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` = [].
2177
2206
  # Corresponds to the JSON property `entityNames`
2178
2207
  # @return [Array<String>]
2179
2208
  attr_accessor :entity_names
2180
2209
 
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` = "".
2184
2213
  # Corresponds to the JSON property `entityType`
2185
2214
  # @return [String]
2186
2215
  attr_accessor :entity_type
@@ -3366,12 +3395,12 @@ module Google
3366
3395
  include Google::Apis::Core::Hashable
3367
3396
 
3368
3397
  # 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/`.
3375
3404
  # Corresponds to the JSON property `kmsKeyName`
3376
3405
  # @return [String]
3377
3406
  attr_accessor :kms_key_name
@@ -3545,7 +3574,7 @@ module Google
3545
3574
  class InstanceReplicaSelection
3546
3575
  include Google::Apis::Core::Hashable
3547
3576
 
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").
3549
3578
  # Corresponds to the JSON property `location`
3550
3579
  # @return [String]
3551
3580
  attr_accessor :location
@@ -5956,8 +5985,13 @@ module Google
5956
5985
  # @return [String]
5957
5986
  attr_accessor :encryption_type
5958
5987
 
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 `
5961
5995
  # CUSTOMER_MANAGED_ENCRYPTION`. Values are of the form `projects//locations//
5962
5996
  # keyRings//cryptoKeys/`.
5963
5997
  # Corresponds to the JSON property `kmsKeyName`
@@ -6467,11 +6501,11 @@ module Google
6467
6501
  class SingleRegionQuorum
6468
6502
  include Google::Apis::Core::Hashable
6469
6503
 
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.
6475
6509
  # Corresponds to the JSON property `servingLocation`
6476
6510
  # @return [String]
6477
6511
  attr_accessor :serving_location
@@ -6884,9 +6918,9 @@ module Google
6884
6918
  # @return [Array<String>]
6885
6919
  attr_accessor :statements
6886
6920
 
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.
6890
6924
  # Corresponds to the JSON property `throttled`
6891
6925
  # @return [Boolean]
6892
6926
  attr_accessor :throttled
@@ -6911,13 +6945,13 @@ module Google
6911
6945
  # all at once, to the database schema at some point (or points) in the future.
6912
6946
  # The server checks that the statements are executable (syntactically valid,
6913
6947
  # 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.
6921
6955
  class UpdateDatabaseDdlRequest
6922
6956
  include Google::Apis::Core::Hashable
6923
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.44.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 = "20250708"
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.44.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.44.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: