From 4f245078bcf95ad01fd827a25490f8dd57182134 Mon Sep 17 00:00:00 2001 From: Yoshi Automation Bot Date: Sun, 14 Dec 2025 11:16:54 +0000 Subject: [PATCH] feat: Automated regeneration of spanner v1 client --- api_names_out.yaml | 2 ++ generated/google-apis-spanner_v1/CHANGELOG.md | 4 +++ .../lib/google/apis/spanner_v1/classes.rb | 27 ++++++++++++++++--- .../lib/google/apis/spanner_v1/gem_version.rb | 4 +-- .../google/apis/spanner_v1/representations.rb | 14 ++++++++++ 5 files changed, 45 insertions(+), 6 deletions(-) diff --git a/api_names_out.yaml b/api_names_out.yaml index 8e625a4f606..d08c8b0f618 100644 --- a/api_names_out.yaml +++ b/api_names_out.yaml @@ -366418,6 +366418,7 @@ "/spanner:v1/ChildLink/childIndex": child_index "/spanner:v1/ChildLink/type": type "/spanner:v1/ChildLink/variable": variable +"/spanner:v1/ClientContext": client_context "/spanner:v1/CloudAuditOptions": cloud_audit_options "/spanner:v1/CloudAuditOptions/authorizationLoggingOptions": authorization_logging_options "/spanner:v1/CloudAuditOptions/logName": log_name @@ -367030,6 +367031,7 @@ "/spanner:v1/ReplicaSelection/location": location "/spanner:v1/ReplicaSelection/type": type "/spanner:v1/RequestOptions": request_options +"/spanner:v1/RequestOptions/clientContext": client_context "/spanner:v1/RequestOptions/priority": priority "/spanner:v1/RequestOptions/requestTag": request_tag "/spanner:v1/RequestOptions/transactionTag": transaction_tag diff --git a/generated/google-apis-spanner_v1/CHANGELOG.md b/generated/google-apis-spanner_v1/CHANGELOG.md index c047d383e79..13c12c355fb 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.47.0 (2025-12-14) + +* Regenerated from discovery document revision 20251121 + ### v0.46.0 (2025-11-16) * Regenerated from discovery document revision 20251031 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 6d3397ed3a0..14339952a63 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 @@ -1103,6 +1103,19 @@ 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 @@ -5949,6 +5962,11 @@ 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] @@ -5985,6 +6003,7 @@ 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) @@ -6409,10 +6428,10 @@ class Session attr_accessor :labels # Optional. If `true`, specifies a multiplexed session. Use a multiplexed - # session for multiple, concurrent read-only operations. Don't use them for read- - # write transactions, partitioned reads, or partitioned queries. Use `sessions. - # create` to create multiplexed sessions. Don't use BatchCreateSessions to - # create a multiplexed session. You can't delete or list multiplexed sessions. + # session for multiple, concurrent operations including any combination of read- + # only and read-write transactions. Use `sessions.create` to create multiplexed + # sessions. Don't use BatchCreateSessions to create a multiplexed session. You + # can't delete or list multiplexed sessions. # Corresponds to the JSON property `multiplexed` # @return [Boolean] attr_accessor :multiplexed 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 6804d6174d0..a322e2563e0 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.46.0" + GEM_VERSION = "0.47.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 = "20251031" + REVISION = "20251121" 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 2dbae6b9385..03f70127e9c 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 @@ -172,6 +172,12 @@ class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport end + class ClientContext + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class ColumnMetadata class Representation < Google::Apis::Core::JsonRepresentation; end @@ -1342,6 +1348,12 @@ 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 @@ -2548,6 +2560,8 @@ 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'