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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4e2b58ef928288fd71c819ed53b9067d1c538c97fbaf01523e48861bcb35024e
|
4
|
+
data.tar.gz: f4044cd1f853073767879aa5077872339d679792410d1ba9dd4526471a4d9acb
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 135b702bbc2e72e271723cf08bca7f311e413791dcc2fe9c8eb980e762d6421ba82ae26e84f891e0b5368626b4ccf7c1755a076702473eb9380d0d21431d57b1
|
7
|
+
data.tar.gz: 95c2c508c32ffa88286a3b32aa703c8c8513d83594b3cecaccecbdc139577b3957dad50246f406ba5632d33168df415a8645efdcbba7ecd7cad585d25066f4c6
|
data/CHANGELOG.md
CHANGED
@@ -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
|
412
|
-
# the list of the instance
|
413
|
-
#
|
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.
|
1310
|
-
#
|
1311
|
-
#
|
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.
|
1446
|
-
#
|
1447
|
-
#
|
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,
|
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
|
2174
|
-
# CREATE TABLE t1(...)", `entity_names` = ["t1"]. 2. For statement "
|
2175
|
-
# r1, r2 ...", `entity_names` = ["r1", "r2"]. 3. For statement "
|
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,
|
2182
|
-
# field can be empty string for some DDL statement,
|
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`
|
3371
|
-
#
|
3372
|
-
#
|
3373
|
-
# nam3
|
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 (
|
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.
|
5960
|
-
#
|
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,
|
6471
|
-
# must be one of the regions within the dual-region instance
|
6472
|
-
# your database. The list of valid locations is available using
|
6473
|
-
# GetInstanceConfig API. This should only be used if you plan to change
|
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
|
6888
|
-
# resource constraints. When resources become available the operation
|
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 (
|
6915
|
-
# applied first and it conflicts in some way, or if there is some
|
6916
|
-
# problem like a `NULL` value in a column to which `NOT NULL` would
|
6917
|
-
# If a statement fails, all subsequent statements in the batch are
|
6918
|
-
# cancelled. Each batch of statements is assigned a name which can
|
6919
|
-
# the Operations API to monitor progress. See the operation_id
|
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.
|
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 = "
|
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
|
1173
|
-
#
|
1174
|
-
#
|
1175
|
-
#
|
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.
|
1185
|
-
#
|
1186
|
-
#
|
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 (
|
1410
|
-
# resource should be updated. This mask is relative to the
|
1411
|
-
# to the request message. The field mask must always be specified;
|
1412
|
-
# any future fields from being erased accidentally by clients that
|
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
|
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.
|
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.
|
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:
|