From 61f9261b4d14b39f92a6b3f93c32d03c81b997af Mon Sep 17 00:00:00 2001 From: Yoshi Automation Bot Date: Sun, 21 Dec 2025 09:46:15 +0000 Subject: [PATCH] feat: Automated regeneration of spanner v1 client --- api_names_out.yaml | 17 ++ generated/google-apis-spanner_v1/CHANGELOG.md | 4 + .../lib/google/apis/spanner_v1.rb | 2 +- .../lib/google/apis/spanner_v1/classes.rb | 151 +++++++++++++++--- .../lib/google/apis/spanner_v1/gem_version.rb | 4 +- .../google/apis/spanner_v1/representations.rb | 63 ++++++-- .../lib/google/apis/spanner_v1/service.rb | 66 ++++---- 7 files changed, 240 insertions(+), 67 deletions(-) diff --git a/api_names_out.yaml b/api_names_out.yaml index a0423db1883..7b30e6e775a 100644 --- a/api_names_out.yaml +++ b/api_names_out.yaml @@ -367808,6 +367808,11 @@ "/sourcerepo:v1/sourcerepo.projects.repos.testIamPermissions/resource": resource "/sourcerepo:v1/sourcerepo.projects.updateConfig": update_project_config "/sourcerepo:v1/sourcerepo.projects.updateConfig/name": name +"/spanner:v1/Ack": ack +"/spanner:v1/Ack/ignoreNotFound": ignore_not_found +"/spanner:v1/Ack/key": key +"/spanner:v1/Ack/key/key": key +"/spanner:v1/Ack/queue": queue "/spanner:v1/AdaptMessageRequest": adapt_message_request "/spanner:v1/AdaptMessageRequest/attachments": attachments "/spanner:v1/AdaptMessageRequest/attachments/attachment": attachment @@ -367967,6 +367972,10 @@ "/spanner:v1/CommitResponse/snapshotTimestamp": snapshot_timestamp "/spanner:v1/CommitStats": commit_stats "/spanner:v1/CommitStats/mutationCount": mutation_count +"/spanner:v1/CompactDatabaseMetadata": compact_database_metadata +"/spanner:v1/CompactDatabaseMetadata/cancelTime": cancel_time +"/spanner:v1/CompactDatabaseMetadata/database": database +"/spanner:v1/CompactDatabaseMetadata/progress": progress "/spanner:v1/Condition": condition "/spanner:v1/Condition/iam": iam "/spanner:v1/Condition/op": op @@ -368398,10 +368407,12 @@ "/spanner:v1/MultiplexedSessionPrecommitToken/precommitToken": precommit_token "/spanner:v1/MultiplexedSessionPrecommitToken/seqNum": seq_num "/spanner:v1/Mutation": mutation +"/spanner:v1/Mutation/ack": ack "/spanner:v1/Mutation/delete": delete "/spanner:v1/Mutation/insert": insert "/spanner:v1/Mutation/insertOrUpdate": insert_or_update "/spanner:v1/Mutation/replace": replace +"/spanner:v1/Mutation/send": send_prop "/spanner:v1/Mutation/update": update "/spanner:v1/MutationGroup": mutation_group "/spanner:v1/MutationGroup/mutations": mutations @@ -368621,6 +368632,12 @@ "/spanner:v1/ScanData/data": data "/spanner:v1/ScanData/endTime": end_time "/spanner:v1/ScanData/startTime": start_time +"/spanner:v1/Send": send_prop +"/spanner:v1/Send/deliverTime": deliver_time +"/spanner:v1/Send/key": key +"/spanner:v1/Send/key/key": key +"/spanner:v1/Send/payload": payload +"/spanner:v1/Send/queue": queue "/spanner:v1/Session": session "/spanner:v1/Session/approximateLastUseTime": approximate_last_use_time "/spanner:v1/Session/createTime": create_time diff --git a/generated/google-apis-spanner_v1/CHANGELOG.md b/generated/google-apis-spanner_v1/CHANGELOG.md index 13c12c355fb..01623d66f93 100644 --- a/generated/google-apis-spanner_v1/CHANGELOG.md +++ b/generated/google-apis-spanner_v1/CHANGELOG.md @@ -1,5 +1,9 @@ # Release history for google-apis-spanner_v1 +### v0.48.0 (2025-12-21) + +* Regenerated from discovery document revision 20251205 + ### v0.47.0 (2025-12-14) * Regenerated from discovery document revision 20251121 diff --git a/generated/google-apis-spanner_v1/lib/google/apis/spanner_v1.rb b/generated/google-apis-spanner_v1/lib/google/apis/spanner_v1.rb index 1173e97c668..1d803323a0e 100644 --- a/generated/google-apis-spanner_v1/lib/google/apis/spanner_v1.rb +++ b/generated/google-apis-spanner_v1/lib/google/apis/spanner_v1.rb @@ -36,7 +36,7 @@ module SpannerV1 # Administer your Spanner databases AUTH_SPANNER_ADMIN = 'https://www.googleapis.com/auth/spanner.admin' - # View and manage the contents of your Spanner databases + # See, edit, configure, and delete your Google Cloud Spanner data and see the email address for your Google Account AUTH_SPANNER_DATA = 'https://www.googleapis.com/auth/spanner.data' end end diff --git a/generated/google-apis-spanner_v1/lib/google/apis/spanner_v1/classes.rb b/generated/google-apis-spanner_v1/lib/google/apis/spanner_v1/classes.rb index 14339952a63..7cba3134239 100644 --- a/generated/google-apis-spanner_v1/lib/google/apis/spanner_v1/classes.rb +++ b/generated/google-apis-spanner_v1/lib/google/apis/spanner_v1/classes.rb @@ -22,6 +22,41 @@ module Google module Apis module SpannerV1 + # Arguments to ack operations. + class Ack + include Google::Apis::Core::Hashable + + # By default, an attempt to ack a message that does not exist will fail with a ` + # NOT_FOUND` error. With `ignore_not_found` set to true, the ack will succeed + # even if the message does not exist. This is useful for unconditionally acking + # a message, even if it is missing or has already been acked. + # Corresponds to the JSON property `ignoreNotFound` + # @return [Boolean] + attr_accessor :ignore_not_found + alias_method :ignore_not_found?, :ignore_not_found + + # Required. The primary key of the message to be acked. + # Corresponds to the JSON property `key` + # @return [Array] + attr_accessor :key + + # Required. The queue where the message to be acked is stored. + # Corresponds to the JSON property `queue` + # @return [String] + attr_accessor :queue + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @ignore_not_found = args[:ignore_not_found] if args.key?(:ignore_not_found) + @key = args[:key] if args.key?(:key) + @queue = args[:queue] if args.key?(:queue) + end + end + # Message sent by the client to the adapter. class AdaptMessageRequest include Google::Apis::Core::Hashable @@ -1103,19 +1138,6 @@ def update!(**args) end end - # Container for various pieces of client-owned context attached to a request. - class ClientContext - include Google::Apis::Core::Hashable - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - end - end - # Metadata for a column. class ColumnMetadata include Google::Apis::Core::Hashable @@ -1289,6 +1311,46 @@ def update!(**args) end end + # Metadata type for the long-running operation returned by `CALL compact_all()`, + # which can be executed using ExecuteSql or ExecuteStreamingSql APIs. + class CompactDatabaseMetadata + include Google::Apis::Core::Hashable + + # Output only. The time at which cancellation of this operation was received. + # Operations.CancelOperation starts asynchronous cancellation on a long-running + # operation. The server makes a best effort to cancel the operation, but success + # is not guaranteed. Clients can use Operations.GetOperation or other methods to + # check whether the cancellation succeeded or whether the operation completed + # despite cancellation. On successful cancellation, the operation is not deleted; + # instead, it becomes an operation with an Operation.error value with a google. + # rpc.Status.code of 1, corresponding to `Code.CANCELLED`. + # Corresponds to the JSON property `cancelTime` + # @return [String] + attr_accessor :cancel_time + + # Output only. The database being compacted. + # Corresponds to the JSON property `database` + # @return [String] + attr_accessor :database + + # Encapsulates progress related information for a Cloud Spanner long running + # operation. + # Corresponds to the JSON property `progress` + # @return [Google::Apis::SpannerV1::OperationProgress] + attr_accessor :progress + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @cancel_time = args[:cancel_time] if args.key?(:cancel_time) + @database = args[:database] if args.key?(:database) + @progress = args[:progress] if args.key?(:progress) + end + end + # A message representing context for a KeyRangeInfo, including a label, value, # unit, and severity. class ContextValue @@ -4179,8 +4241,9 @@ class ListOperationsResponse attr_accessor :operations # Unordered list. Unreachable resources. Populated when the request sets ` - # ListOperationsRequest.return_partial_success` and reads across collections e.g. - # when attempting to list all resources across all supported locations. + # ListOperationsRequest.return_partial_success` and reads across collections. + # For example, when attempting to list all resources across all supported + # locations. # Corresponds to the JSON property `unreachable` # @return [Array] attr_accessor :unreachable @@ -4597,6 +4660,11 @@ def update!(**args) class Mutation include Google::Apis::Core::Hashable + # Arguments to ack operations. + # Corresponds to the JSON property `ack` + # @return [Google::Apis::SpannerV1::Ack] + attr_accessor :ack + # Arguments to delete operations. # Corresponds to the JSON property `delete` # @return [Google::Apis::SpannerV1::Delete] @@ -4617,6 +4685,11 @@ class Mutation # @return [Google::Apis::SpannerV1::Write] attr_accessor :replace + # Arguments to send operations. + # Corresponds to the JSON property `send` + # @return [Google::Apis::SpannerV1::SendProp] + attr_accessor :send_prop + # Arguments to insert, update, insert_or_update, and replace operations. # Corresponds to the JSON property `update` # @return [Google::Apis::SpannerV1::Write] @@ -4628,10 +4701,12 @@ def initialize(**args) # Update properties of this object def update!(**args) + @ack = args[:ack] if args.key?(:ack) @delete = args[:delete] if args.key?(:delete) @insert = args[:insert] if args.key?(:insert) @insert_or_update = args[:insert_or_update] if args.key?(:insert_or_update) @replace = args[:replace] if args.key?(:replace) + @send_prop = args[:send_prop] if args.key?(:send_prop) @update = args[:update] if args.key?(:update) end end @@ -5962,11 +6037,6 @@ def update!(**args) class RequestOptions include Google::Apis::Core::Hashable - # Container for various pieces of client-owned context attached to a request. - # Corresponds to the JSON property `clientContext` - # @return [Google::Apis::SpannerV1::ClientContext] - attr_accessor :client_context - # Priority for the request. # Corresponds to the JSON property `priority` # @return [String] @@ -6003,7 +6073,6 @@ def initialize(**args) # Update properties of this object def update!(**args) - @client_context = args[:client_context] if args.key?(:client_context) @priority = args[:priority] if args.key?(:priority) @request_tag = args[:request_tag] if args.key?(:request_tag) @transaction_tag = args[:transaction_tag] if args.key?(:transaction_tag) @@ -6397,6 +6466,46 @@ def update!(**args) end end + # Arguments to send operations. + class SendProp + include Google::Apis::Core::Hashable + + # The time at which Spanner will begin attempting to deliver the message. If ` + # deliver_time` is not set, Spanner will deliver the message immediately. If ` + # deliver_time` is in the past, Spanner will replace it with a value closer to + # the current time. + # Corresponds to the JSON property `deliverTime` + # @return [String] + attr_accessor :deliver_time + + # Required. The primary key of the message to be sent. + # Corresponds to the JSON property `key` + # @return [Array] + attr_accessor :key + + # The payload of the message. + # Corresponds to the JSON property `payload` + # @return [Object] + attr_accessor :payload + + # Required. The queue to which the message will be sent. + # Corresponds to the JSON property `queue` + # @return [String] + attr_accessor :queue + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @deliver_time = args[:deliver_time] if args.key?(:deliver_time) + @key = args[:key] if args.key?(:key) + @payload = args[:payload] if args.key?(:payload) + @queue = args[:queue] if args.key?(:queue) + end + end + # A session in the Cloud Spanner API. class Session include Google::Apis::Core::Hashable diff --git a/generated/google-apis-spanner_v1/lib/google/apis/spanner_v1/gem_version.rb b/generated/google-apis-spanner_v1/lib/google/apis/spanner_v1/gem_version.rb index a322e2563e0..1a339a9d777 100644 --- a/generated/google-apis-spanner_v1/lib/google/apis/spanner_v1/gem_version.rb +++ b/generated/google-apis-spanner_v1/lib/google/apis/spanner_v1/gem_version.rb @@ -16,13 +16,13 @@ module Google module Apis module SpannerV1 # Version of the google-apis-spanner_v1 gem - GEM_VERSION = "0.47.0" + GEM_VERSION = "0.48.0" # Version of the code generator used to generate this client GENERATOR_VERSION = "0.18.0" # Revision of the discovery document this client was generated from - REVISION = "20251121" + REVISION = "20251205" end end end diff --git a/generated/google-apis-spanner_v1/lib/google/apis/spanner_v1/representations.rb b/generated/google-apis-spanner_v1/lib/google/apis/spanner_v1/representations.rb index 03f70127e9c..7900fd438d8 100644 --- a/generated/google-apis-spanner_v1/lib/google/apis/spanner_v1/representations.rb +++ b/generated/google-apis-spanner_v1/lib/google/apis/spanner_v1/representations.rb @@ -22,6 +22,12 @@ module Google module Apis module SpannerV1 + class Ack + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class AdaptMessageRequest class Representation < Google::Apis::Core::JsonRepresentation; end @@ -172,31 +178,31 @@ class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport end - class ClientContext + class ColumnMetadata class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport end - class ColumnMetadata + class CommitRequest class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport end - class CommitRequest + class CommitResponse class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport end - class CommitResponse + class CommitStats class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport end - class CommitStats + class CompactDatabaseMetadata class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport @@ -928,6 +934,12 @@ class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport end + class SendProp + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class Session class Representation < Google::Apis::Core::JsonRepresentation; end @@ -1084,6 +1096,15 @@ class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport end + class Ack + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :ignore_not_found, as: 'ignoreNotFound' + collection :key, as: 'key' + property :queue, as: 'queue' + end + end + class AdaptMessageRequest # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -1348,12 +1369,6 @@ class Representation < Google::Apis::Core::JsonRepresentation end end - class ClientContext - # @private - class Representation < Google::Apis::Core::JsonRepresentation - end - end - class ColumnMetadata # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -1401,6 +1416,16 @@ class Representation < Google::Apis::Core::JsonRepresentation end end + class CompactDatabaseMetadata + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :cancel_time, as: 'cancelTime' + property :database, as: 'database' + property :progress, as: 'progress', class: Google::Apis::SpannerV1::OperationProgress, decorator: Google::Apis::SpannerV1::OperationProgress::Representation + + end + end + class ContextValue # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -2246,6 +2271,8 @@ class Representation < Google::Apis::Core::JsonRepresentation class Mutation # @private class Representation < Google::Apis::Core::JsonRepresentation + property :ack, as: 'ack', class: Google::Apis::SpannerV1::Ack, decorator: Google::Apis::SpannerV1::Ack::Representation + property :delete, as: 'delete', class: Google::Apis::SpannerV1::Delete, decorator: Google::Apis::SpannerV1::Delete::Representation property :insert, as: 'insert', class: Google::Apis::SpannerV1::Write, decorator: Google::Apis::SpannerV1::Write::Representation @@ -2254,6 +2281,8 @@ class Representation < Google::Apis::Core::JsonRepresentation property :replace, as: 'replace', class: Google::Apis::SpannerV1::Write, decorator: Google::Apis::SpannerV1::Write::Representation + property :send_prop, as: 'send', class: Google::Apis::SpannerV1::SendProp, decorator: Google::Apis::SpannerV1::SendProp::Representation + property :update, as: 'update', class: Google::Apis::SpannerV1::Write, decorator: Google::Apis::SpannerV1::Write::Representation end @@ -2560,8 +2589,6 @@ class Representation < Google::Apis::Core::JsonRepresentation class RequestOptions # @private class Representation < Google::Apis::Core::JsonRepresentation - property :client_context, as: 'clientContext', class: Google::Apis::SpannerV1::ClientContext, decorator: Google::Apis::SpannerV1::ClientContext::Representation - property :priority, as: 'priority' property :request_tag, as: 'requestTag' property :transaction_tag, as: 'transactionTag' @@ -2679,6 +2706,16 @@ class Representation < Google::Apis::Core::JsonRepresentation end end + class SendProp + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :deliver_time, as: 'deliverTime' + collection :key, as: 'key' + property :payload, as: 'payload' + property :queue, as: 'queue' + end + end + class Session # @private class Representation < Google::Apis::Core::JsonRepresentation diff --git a/generated/google-apis-spanner_v1/lib/google/apis/spanner_v1/service.rb b/generated/google-apis-spanner_v1/lib/google/apis/spanner_v1/service.rb index b58777782c9..4c9e5401fae 100644 --- a/generated/google-apis-spanner_v1/lib/google/apis/spanner_v1/service.rb +++ b/generated/google-apis-spanner_v1/lib/google/apis/spanner_v1/service.rb @@ -460,11 +460,12 @@ def get_project_instance_config_operation(name, fields: nil, quota_user: nil, op # The standard list page token. # @param [Boolean] return_partial_success # When set to `true`, operations that are reachable are returned as normal, and - # those that are unreachable are returned in the [ListOperationsResponse. - # unreachable] field. This can only be `true` when reading across collections e. - # g. when `parent` is set to `"projects/example/locations/-"`. This field is not - # by default supported and will result in an `UNIMPLEMENTED` error if set unless - # explicitly documented otherwise in service or product specific documentation. + # those that are unreachable are returned in the ListOperationsResponse. + # unreachable field. This can only be `true` when reading across collections. + # For example, when `parent` is set to `"projects/example/locations/-"`. This + # field is not supported by default and will result in an `UNIMPLEMENTED` error + # if set unless explicitly documented otherwise in service or product specific + # documentation. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -609,11 +610,12 @@ def get_project_instance_config_ssd_cach_operation(name, fields: nil, quota_user # The standard list page token. # @param [Boolean] return_partial_success # When set to `true`, operations that are reachable are returned as normal, and - # those that are unreachable are returned in the [ListOperationsResponse. - # unreachable] field. This can only be `true` when reading across collections e. - # g. when `parent` is set to `"projects/example/locations/-"`. This field is not - # by default supported and will result in an `UNIMPLEMENTED` error if set unless - # explicitly documented otherwise in service or product specific documentation. + # those that are unreachable are returned in the ListOperationsResponse. + # unreachable field. This can only be `true` when reading across collections. + # For example, when `parent` is set to `"projects/example/locations/-"`. This + # field is not supported by default and will result in an `UNIMPLEMENTED` error + # if set unless explicitly documented otherwise in service or product specific + # documentation. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -1657,11 +1659,12 @@ def get_project_instance_backup_operation(name, fields: nil, quota_user: nil, op # The standard list page token. # @param [Boolean] return_partial_success # When set to `true`, operations that are reachable are returned as normal, and - # those that are unreachable are returned in the [ListOperationsResponse. - # unreachable] field. This can only be `true` when reading across collections e. - # g. when `parent` is set to `"projects/example/locations/-"`. This field is not - # by default supported and will result in an `UNIMPLEMENTED` error if set unless - # explicitly documented otherwise in service or product specific documentation. + # those that are unreachable are returned in the ListOperationsResponse. + # unreachable field. This can only be `true` when reading across collections. + # For example, when `parent` is set to `"projects/example/locations/-"`. This + # field is not supported by default and will result in an `UNIMPLEMENTED` error + # if set unless explicitly documented otherwise in service or product specific + # documentation. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -2814,11 +2817,12 @@ def get_project_instance_database_operation(name, fields: nil, quota_user: nil, # The standard list page token. # @param [Boolean] return_partial_success # When set to `true`, operations that are reachable are returned as normal, and - # those that are unreachable are returned in the [ListOperationsResponse. - # unreachable] field. This can only be `true` when reading across collections e. - # g. when `parent` is set to `"projects/example/locations/-"`. This field is not - # by default supported and will result in an `UNIMPLEMENTED` error if set unless - # explicitly documented otherwise in service or product specific documentation. + # those that are unreachable are returned in the ListOperationsResponse. + # unreachable field. This can only be `true` when reading across collections. + # For example, when `parent` is set to `"projects/example/locations/-"`. This + # field is not supported by default and will result in an `UNIMPLEMENTED` error + # if set unless explicitly documented otherwise in service or product specific + # documentation. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -3960,11 +3964,12 @@ def get_project_instance_instance_partition_operation(name, fields: nil, quota_u # The standard list page token. # @param [Boolean] return_partial_success # When set to `true`, operations that are reachable are returned as normal, and - # those that are unreachable are returned in the [ListOperationsResponse. - # unreachable] field. This can only be `true` when reading across collections e. - # g. when `parent` is set to `"projects/example/locations/-"`. This field is not - # by default supported and will result in an `UNIMPLEMENTED` error if set unless - # explicitly documented otherwise in service or product specific documentation. + # those that are unreachable are returned in the ListOperationsResponse. + # unreachable field. This can only be `true` when reading across collections. + # For example, when `parent` is set to `"projects/example/locations/-"`. This + # field is not supported by default and will result in an `UNIMPLEMENTED` error + # if set unless explicitly documented otherwise in service or product specific + # documentation. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -4109,11 +4114,12 @@ def get_project_instance_operation(name, fields: nil, quota_user: nil, options: # The standard list page token. # @param [Boolean] return_partial_success # When set to `true`, operations that are reachable are returned as normal, and - # those that are unreachable are returned in the [ListOperationsResponse. - # unreachable] field. This can only be `true` when reading across collections e. - # g. when `parent` is set to `"projects/example/locations/-"`. This field is not - # by default supported and will result in an `UNIMPLEMENTED` error if set unless - # explicitly documented otherwise in service or product specific documentation. + # those that are unreachable are returned in the ListOperationsResponse. + # unreachable field. This can only be `true` when reading across collections. + # For example, when `parent` is set to `"projects/example/locations/-"`. This + # field is not supported by default and will result in an `UNIMPLEMENTED` error + # if set unless explicitly documented otherwise in service or product specific + # documentation. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user