google-apis-spanner_v1 0.46.0 → 0.48.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: 998106fc7b59053485fbe747c99d7a207897e378f0e425f22f25ca32eab20822
4
- data.tar.gz: 908165719b7a513cef3cd747a9e35ee7086e5674e2ece49fb09a5ca6e3870688
3
+ metadata.gz: 6bbda2ff9f73d1f56321ad14b4ce5276525742526c2c468ed627c47ed0b330dc
4
+ data.tar.gz: 4a7c2f06770dae3cce327925a0f5cff0db3e50dc26613298516d9272667f1719
5
5
  SHA512:
6
- metadata.gz: 7dfa2f26271b259fc80a8955dbc5d7bf952f0660215f2fcda80c2bac7ba16305e469d4c80db1f5ba59d61da4a348b77b0ebb3683f6b057929f4b8376a6607ea9
7
- data.tar.gz: 5048dd9bd25d8773fc67614fe9c1384d7ce2232a97f4490e738e7cba82e98b4459be8d68fc18d266fc0ea11f1b68910a8f00f61dd8270b39f76f5a76818ecc91
6
+ metadata.gz: 84d1fe72e97259f8ca2519b37073a7b626f3d4364f4e3039271cd3a8f4ccdef6893ed7cb2d51aae58518ee4c29f7747055be18d07095c0f593f1c503228c0376
7
+ data.tar.gz: 61ad1941dc5637f5c2ce957168bd9f7ddd4fab7968a9ae7b502f8a660980c42adf3cf66638f63f599fea8bbba7240ef4ae6861d6e7e20f6aedbbae0f85e27444
data/CHANGELOG.md CHANGED
@@ -1,5 +1,13 @@
1
1
  # Release history for google-apis-spanner_v1
2
2
 
3
+ ### v0.48.0 (2025-12-21)
4
+
5
+ * Regenerated from discovery document revision 20251205
6
+
7
+ ### v0.47.0 (2025-12-14)
8
+
9
+ * Regenerated from discovery document revision 20251121
10
+
3
11
  ### v0.46.0 (2025-11-16)
4
12
 
5
13
  * Regenerated from discovery document revision 20251031
@@ -22,6 +22,41 @@ module Google
22
22
  module Apis
23
23
  module SpannerV1
24
24
 
25
+ # Arguments to ack operations.
26
+ class Ack
27
+ include Google::Apis::Core::Hashable
28
+
29
+ # By default, an attempt to ack a message that does not exist will fail with a `
30
+ # NOT_FOUND` error. With `ignore_not_found` set to true, the ack will succeed
31
+ # even if the message does not exist. This is useful for unconditionally acking
32
+ # a message, even if it is missing or has already been acked.
33
+ # Corresponds to the JSON property `ignoreNotFound`
34
+ # @return [Boolean]
35
+ attr_accessor :ignore_not_found
36
+ alias_method :ignore_not_found?, :ignore_not_found
37
+
38
+ # Required. The primary key of the message to be acked.
39
+ # Corresponds to the JSON property `key`
40
+ # @return [Array<Object>]
41
+ attr_accessor :key
42
+
43
+ # Required. The queue where the message to be acked is stored.
44
+ # Corresponds to the JSON property `queue`
45
+ # @return [String]
46
+ attr_accessor :queue
47
+
48
+ def initialize(**args)
49
+ update!(**args)
50
+ end
51
+
52
+ # Update properties of this object
53
+ def update!(**args)
54
+ @ignore_not_found = args[:ignore_not_found] if args.key?(:ignore_not_found)
55
+ @key = args[:key] if args.key?(:key)
56
+ @queue = args[:queue] if args.key?(:queue)
57
+ end
58
+ end
59
+
25
60
  # Message sent by the client to the adapter.
26
61
  class AdaptMessageRequest
27
62
  include Google::Apis::Core::Hashable
@@ -1276,6 +1311,46 @@ module Google
1276
1311
  end
1277
1312
  end
1278
1313
 
1314
+ # Metadata type for the long-running operation returned by `CALL compact_all()`,
1315
+ # which can be executed using ExecuteSql or ExecuteStreamingSql APIs.
1316
+ class CompactDatabaseMetadata
1317
+ include Google::Apis::Core::Hashable
1318
+
1319
+ # Output only. The time at which cancellation of this operation was received.
1320
+ # Operations.CancelOperation starts asynchronous cancellation on a long-running
1321
+ # operation. The server makes a best effort to cancel the operation, but success
1322
+ # is not guaranteed. Clients can use Operations.GetOperation or other methods to
1323
+ # check whether the cancellation succeeded or whether the operation completed
1324
+ # despite cancellation. On successful cancellation, the operation is not deleted;
1325
+ # instead, it becomes an operation with an Operation.error value with a google.
1326
+ # rpc.Status.code of 1, corresponding to `Code.CANCELLED`.
1327
+ # Corresponds to the JSON property `cancelTime`
1328
+ # @return [String]
1329
+ attr_accessor :cancel_time
1330
+
1331
+ # Output only. The database being compacted.
1332
+ # Corresponds to the JSON property `database`
1333
+ # @return [String]
1334
+ attr_accessor :database
1335
+
1336
+ # Encapsulates progress related information for a Cloud Spanner long running
1337
+ # operation.
1338
+ # Corresponds to the JSON property `progress`
1339
+ # @return [Google::Apis::SpannerV1::OperationProgress]
1340
+ attr_accessor :progress
1341
+
1342
+ def initialize(**args)
1343
+ update!(**args)
1344
+ end
1345
+
1346
+ # Update properties of this object
1347
+ def update!(**args)
1348
+ @cancel_time = args[:cancel_time] if args.key?(:cancel_time)
1349
+ @database = args[:database] if args.key?(:database)
1350
+ @progress = args[:progress] if args.key?(:progress)
1351
+ end
1352
+ end
1353
+
1279
1354
  # A message representing context for a KeyRangeInfo, including a label, value,
1280
1355
  # unit, and severity.
1281
1356
  class ContextValue
@@ -4166,8 +4241,9 @@ module Google
4166
4241
  attr_accessor :operations
4167
4242
 
4168
4243
  # Unordered list. Unreachable resources. Populated when the request sets `
4169
- # ListOperationsRequest.return_partial_success` and reads across collections e.g.
4170
- # when attempting to list all resources across all supported locations.
4244
+ # ListOperationsRequest.return_partial_success` and reads across collections.
4245
+ # For example, when attempting to list all resources across all supported
4246
+ # locations.
4171
4247
  # Corresponds to the JSON property `unreachable`
4172
4248
  # @return [Array<String>]
4173
4249
  attr_accessor :unreachable
@@ -4584,6 +4660,11 @@ module Google
4584
4660
  class Mutation
4585
4661
  include Google::Apis::Core::Hashable
4586
4662
 
4663
+ # Arguments to ack operations.
4664
+ # Corresponds to the JSON property `ack`
4665
+ # @return [Google::Apis::SpannerV1::Ack]
4666
+ attr_accessor :ack
4667
+
4587
4668
  # Arguments to delete operations.
4588
4669
  # Corresponds to the JSON property `delete`
4589
4670
  # @return [Google::Apis::SpannerV1::Delete]
@@ -4604,6 +4685,11 @@ module Google
4604
4685
  # @return [Google::Apis::SpannerV1::Write]
4605
4686
  attr_accessor :replace
4606
4687
 
4688
+ # Arguments to send operations.
4689
+ # Corresponds to the JSON property `send`
4690
+ # @return [Google::Apis::SpannerV1::SendProp]
4691
+ attr_accessor :send_prop
4692
+
4607
4693
  # Arguments to insert, update, insert_or_update, and replace operations.
4608
4694
  # Corresponds to the JSON property `update`
4609
4695
  # @return [Google::Apis::SpannerV1::Write]
@@ -4615,10 +4701,12 @@ module Google
4615
4701
 
4616
4702
  # Update properties of this object
4617
4703
  def update!(**args)
4704
+ @ack = args[:ack] if args.key?(:ack)
4618
4705
  @delete = args[:delete] if args.key?(:delete)
4619
4706
  @insert = args[:insert] if args.key?(:insert)
4620
4707
  @insert_or_update = args[:insert_or_update] if args.key?(:insert_or_update)
4621
4708
  @replace = args[:replace] if args.key?(:replace)
4709
+ @send_prop = args[:send_prop] if args.key?(:send_prop)
4622
4710
  @update = args[:update] if args.key?(:update)
4623
4711
  end
4624
4712
  end
@@ -6378,6 +6466,46 @@ module Google
6378
6466
  end
6379
6467
  end
6380
6468
 
6469
+ # Arguments to send operations.
6470
+ class SendProp
6471
+ include Google::Apis::Core::Hashable
6472
+
6473
+ # The time at which Spanner will begin attempting to deliver the message. If `
6474
+ # deliver_time` is not set, Spanner will deliver the message immediately. If `
6475
+ # deliver_time` is in the past, Spanner will replace it with a value closer to
6476
+ # the current time.
6477
+ # Corresponds to the JSON property `deliverTime`
6478
+ # @return [String]
6479
+ attr_accessor :deliver_time
6480
+
6481
+ # Required. The primary key of the message to be sent.
6482
+ # Corresponds to the JSON property `key`
6483
+ # @return [Array<Object>]
6484
+ attr_accessor :key
6485
+
6486
+ # The payload of the message.
6487
+ # Corresponds to the JSON property `payload`
6488
+ # @return [Object]
6489
+ attr_accessor :payload
6490
+
6491
+ # Required. The queue to which the message will be sent.
6492
+ # Corresponds to the JSON property `queue`
6493
+ # @return [String]
6494
+ attr_accessor :queue
6495
+
6496
+ def initialize(**args)
6497
+ update!(**args)
6498
+ end
6499
+
6500
+ # Update properties of this object
6501
+ def update!(**args)
6502
+ @deliver_time = args[:deliver_time] if args.key?(:deliver_time)
6503
+ @key = args[:key] if args.key?(:key)
6504
+ @payload = args[:payload] if args.key?(:payload)
6505
+ @queue = args[:queue] if args.key?(:queue)
6506
+ end
6507
+ end
6508
+
6381
6509
  # A session in the Cloud Spanner API.
6382
6510
  class Session
6383
6511
  include Google::Apis::Core::Hashable
@@ -6409,10 +6537,10 @@ module Google
6409
6537
  attr_accessor :labels
6410
6538
 
6411
6539
  # Optional. If `true`, specifies a multiplexed session. Use a multiplexed
6412
- # session for multiple, concurrent read-only operations. Don't use them for read-
6413
- # write transactions, partitioned reads, or partitioned queries. Use `sessions.
6414
- # create` to create multiplexed sessions. Don't use BatchCreateSessions to
6415
- # create a multiplexed session. You can't delete or list multiplexed sessions.
6540
+ # session for multiple, concurrent operations including any combination of read-
6541
+ # only and read-write transactions. Use `sessions.create` to create multiplexed
6542
+ # sessions. Don't use BatchCreateSessions to create a multiplexed session. You
6543
+ # can't delete or list multiplexed sessions.
6416
6544
  # Corresponds to the JSON property `multiplexed`
6417
6545
  # @return [Boolean]
6418
6546
  attr_accessor :multiplexed
@@ -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.46.0"
19
+ GEM_VERSION = "0.48.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 = "20251031"
25
+ REVISION = "20251205"
26
26
  end
27
27
  end
28
28
  end
@@ -22,6 +22,12 @@ module Google
22
22
  module Apis
23
23
  module SpannerV1
24
24
 
25
+ class Ack
26
+ class Representation < Google::Apis::Core::JsonRepresentation; end
27
+
28
+ include Google::Apis::Core::JsonObjectSupport
29
+ end
30
+
25
31
  class AdaptMessageRequest
26
32
  class Representation < Google::Apis::Core::JsonRepresentation; end
27
33
 
@@ -196,6 +202,12 @@ module Google
196
202
  include Google::Apis::Core::JsonObjectSupport
197
203
  end
198
204
 
205
+ class CompactDatabaseMetadata
206
+ class Representation < Google::Apis::Core::JsonRepresentation; end
207
+
208
+ include Google::Apis::Core::JsonObjectSupport
209
+ end
210
+
199
211
  class ContextValue
200
212
  class Representation < Google::Apis::Core::JsonRepresentation; end
201
213
 
@@ -922,6 +934,12 @@ module Google
922
934
  include Google::Apis::Core::JsonObjectSupport
923
935
  end
924
936
 
937
+ class SendProp
938
+ class Representation < Google::Apis::Core::JsonRepresentation; end
939
+
940
+ include Google::Apis::Core::JsonObjectSupport
941
+ end
942
+
925
943
  class Session
926
944
  class Representation < Google::Apis::Core::JsonRepresentation; end
927
945
 
@@ -1078,6 +1096,15 @@ module Google
1078
1096
  include Google::Apis::Core::JsonObjectSupport
1079
1097
  end
1080
1098
 
1099
+ class Ack
1100
+ # @private
1101
+ class Representation < Google::Apis::Core::JsonRepresentation
1102
+ property :ignore_not_found, as: 'ignoreNotFound'
1103
+ collection :key, as: 'key'
1104
+ property :queue, as: 'queue'
1105
+ end
1106
+ end
1107
+
1081
1108
  class AdaptMessageRequest
1082
1109
  # @private
1083
1110
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -1389,6 +1416,16 @@ module Google
1389
1416
  end
1390
1417
  end
1391
1418
 
1419
+ class CompactDatabaseMetadata
1420
+ # @private
1421
+ class Representation < Google::Apis::Core::JsonRepresentation
1422
+ property :cancel_time, as: 'cancelTime'
1423
+ property :database, as: 'database'
1424
+ property :progress, as: 'progress', class: Google::Apis::SpannerV1::OperationProgress, decorator: Google::Apis::SpannerV1::OperationProgress::Representation
1425
+
1426
+ end
1427
+ end
1428
+
1392
1429
  class ContextValue
1393
1430
  # @private
1394
1431
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -2234,6 +2271,8 @@ module Google
2234
2271
  class Mutation
2235
2272
  # @private
2236
2273
  class Representation < Google::Apis::Core::JsonRepresentation
2274
+ property :ack, as: 'ack', class: Google::Apis::SpannerV1::Ack, decorator: Google::Apis::SpannerV1::Ack::Representation
2275
+
2237
2276
  property :delete, as: 'delete', class: Google::Apis::SpannerV1::Delete, decorator: Google::Apis::SpannerV1::Delete::Representation
2238
2277
 
2239
2278
  property :insert, as: 'insert', class: Google::Apis::SpannerV1::Write, decorator: Google::Apis::SpannerV1::Write::Representation
@@ -2242,6 +2281,8 @@ module Google
2242
2281
 
2243
2282
  property :replace, as: 'replace', class: Google::Apis::SpannerV1::Write, decorator: Google::Apis::SpannerV1::Write::Representation
2244
2283
 
2284
+ property :send_prop, as: 'send', class: Google::Apis::SpannerV1::SendProp, decorator: Google::Apis::SpannerV1::SendProp::Representation
2285
+
2245
2286
  property :update, as: 'update', class: Google::Apis::SpannerV1::Write, decorator: Google::Apis::SpannerV1::Write::Representation
2246
2287
 
2247
2288
  end
@@ -2665,6 +2706,16 @@ module Google
2665
2706
  end
2666
2707
  end
2667
2708
 
2709
+ class SendProp
2710
+ # @private
2711
+ class Representation < Google::Apis::Core::JsonRepresentation
2712
+ property :deliver_time, as: 'deliverTime'
2713
+ collection :key, as: 'key'
2714
+ property :payload, as: 'payload'
2715
+ property :queue, as: 'queue'
2716
+ end
2717
+ end
2718
+
2668
2719
  class Session
2669
2720
  # @private
2670
2721
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -460,11 +460,12 @@ module Google
460
460
  # The standard list page token.
461
461
  # @param [Boolean] return_partial_success
462
462
  # When set to `true`, operations that are reachable are returned as normal, and
463
- # those that are unreachable are returned in the [ListOperationsResponse.
464
- # unreachable] field. This can only be `true` when reading across collections e.
465
- # g. when `parent` is set to `"projects/example/locations/-"`. This field is not
466
- # by default supported and will result in an `UNIMPLEMENTED` error if set unless
467
- # explicitly documented otherwise in service or product specific documentation.
463
+ # those that are unreachable are returned in the ListOperationsResponse.
464
+ # unreachable field. This can only be `true` when reading across collections.
465
+ # For example, when `parent` is set to `"projects/example/locations/-"`. This
466
+ # field is not supported by default and will result in an `UNIMPLEMENTED` error
467
+ # if set unless explicitly documented otherwise in service or product specific
468
+ # documentation.
468
469
  # @param [String] fields
469
470
  # Selector specifying which fields to include in a partial response.
470
471
  # @param [String] quota_user
@@ -609,11 +610,12 @@ module Google
609
610
  # The standard list page token.
610
611
  # @param [Boolean] return_partial_success
611
612
  # When set to `true`, operations that are reachable are returned as normal, and
612
- # those that are unreachable are returned in the [ListOperationsResponse.
613
- # unreachable] field. This can only be `true` when reading across collections e.
614
- # g. when `parent` is set to `"projects/example/locations/-"`. This field is not
615
- # by default supported and will result in an `UNIMPLEMENTED` error if set unless
616
- # explicitly documented otherwise in service or product specific documentation.
613
+ # those that are unreachable are returned in the ListOperationsResponse.
614
+ # unreachable field. This can only be `true` when reading across collections.
615
+ # For example, when `parent` is set to `"projects/example/locations/-"`. This
616
+ # field is not supported by default and will result in an `UNIMPLEMENTED` error
617
+ # if set unless explicitly documented otherwise in service or product specific
618
+ # documentation.
617
619
  # @param [String] fields
618
620
  # Selector specifying which fields to include in a partial response.
619
621
  # @param [String] quota_user
@@ -1657,11 +1659,12 @@ module Google
1657
1659
  # The standard list page token.
1658
1660
  # @param [Boolean] return_partial_success
1659
1661
  # When set to `true`, operations that are reachable are returned as normal, and
1660
- # those that are unreachable are returned in the [ListOperationsResponse.
1661
- # unreachable] field. This can only be `true` when reading across collections e.
1662
- # g. when `parent` is set to `"projects/example/locations/-"`. This field is not
1663
- # by default supported and will result in an `UNIMPLEMENTED` error if set unless
1664
- # explicitly documented otherwise in service or product specific documentation.
1662
+ # those that are unreachable are returned in the ListOperationsResponse.
1663
+ # unreachable field. This can only be `true` when reading across collections.
1664
+ # For example, when `parent` is set to `"projects/example/locations/-"`. This
1665
+ # field is not supported by default and will result in an `UNIMPLEMENTED` error
1666
+ # if set unless explicitly documented otherwise in service or product specific
1667
+ # documentation.
1665
1668
  # @param [String] fields
1666
1669
  # Selector specifying which fields to include in a partial response.
1667
1670
  # @param [String] quota_user
@@ -2814,11 +2817,12 @@ module Google
2814
2817
  # The standard list page token.
2815
2818
  # @param [Boolean] return_partial_success
2816
2819
  # When set to `true`, operations that are reachable are returned as normal, and
2817
- # those that are unreachable are returned in the [ListOperationsResponse.
2818
- # unreachable] field. This can only be `true` when reading across collections e.
2819
- # g. when `parent` is set to `"projects/example/locations/-"`. This field is not
2820
- # by default supported and will result in an `UNIMPLEMENTED` error if set unless
2821
- # explicitly documented otherwise in service or product specific documentation.
2820
+ # those that are unreachable are returned in the ListOperationsResponse.
2821
+ # unreachable field. This can only be `true` when reading across collections.
2822
+ # For example, when `parent` is set to `"projects/example/locations/-"`. This
2823
+ # field is not supported by default and will result in an `UNIMPLEMENTED` error
2824
+ # if set unless explicitly documented otherwise in service or product specific
2825
+ # documentation.
2822
2826
  # @param [String] fields
2823
2827
  # Selector specifying which fields to include in a partial response.
2824
2828
  # @param [String] quota_user
@@ -3960,11 +3964,12 @@ module Google
3960
3964
  # The standard list page token.
3961
3965
  # @param [Boolean] return_partial_success
3962
3966
  # When set to `true`, operations that are reachable are returned as normal, and
3963
- # those that are unreachable are returned in the [ListOperationsResponse.
3964
- # unreachable] field. This can only be `true` when reading across collections e.
3965
- # g. when `parent` is set to `"projects/example/locations/-"`. This field is not
3966
- # by default supported and will result in an `UNIMPLEMENTED` error if set unless
3967
- # explicitly documented otherwise in service or product specific documentation.
3967
+ # those that are unreachable are returned in the ListOperationsResponse.
3968
+ # unreachable field. This can only be `true` when reading across collections.
3969
+ # For example, when `parent` is set to `"projects/example/locations/-"`. This
3970
+ # field is not supported by default and will result in an `UNIMPLEMENTED` error
3971
+ # if set unless explicitly documented otherwise in service or product specific
3972
+ # documentation.
3968
3973
  # @param [String] fields
3969
3974
  # Selector specifying which fields to include in a partial response.
3970
3975
  # @param [String] quota_user
@@ -4109,11 +4114,12 @@ module Google
4109
4114
  # The standard list page token.
4110
4115
  # @param [Boolean] return_partial_success
4111
4116
  # When set to `true`, operations that are reachable are returned as normal, and
4112
- # those that are unreachable are returned in the [ListOperationsResponse.
4113
- # unreachable] field. This can only be `true` when reading across collections e.
4114
- # g. when `parent` is set to `"projects/example/locations/-"`. This field is not
4115
- # by default supported and will result in an `UNIMPLEMENTED` error if set unless
4116
- # explicitly documented otherwise in service or product specific documentation.
4117
+ # those that are unreachable are returned in the ListOperationsResponse.
4118
+ # unreachable field. This can only be `true` when reading across collections.
4119
+ # For example, when `parent` is set to `"projects/example/locations/-"`. This
4120
+ # field is not supported by default and will result in an `UNIMPLEMENTED` error
4121
+ # if set unless explicitly documented otherwise in service or product specific
4122
+ # documentation.
4117
4123
  # @param [String] fields
4118
4124
  # Selector specifying which fields to include in a partial response.
4119
4125
  # @param [String] quota_user
@@ -36,7 +36,7 @@ module Google
36
36
  # Administer your Spanner databases
37
37
  AUTH_SPANNER_ADMIN = 'https://www.googleapis.com/auth/spanner.admin'
38
38
 
39
- # View and manage the contents of your Spanner databases
39
+ # See, edit, configure, and delete your Google Cloud Spanner data and see the email address for your Google Account
40
40
  AUTH_SPANNER_DATA = 'https://www.googleapis.com/auth/spanner.data'
41
41
  end
42
42
  end
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.46.0
4
+ version: 0.48.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.46.0
60
+ documentation_uri: https://googleapis.dev/ruby/google-apis-spanner_v1/v0.48.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: