Skip to content

Commit 905bd0d

Browse files
feat: Automated regeneration of spanner v1 client (googleapis#21414)
Auto-created at 2025-01-19 10:02:32 +0000 using the toys pull request generator.
1 parent ee7578e commit 905bd0d

File tree

6 files changed

+61
-19
lines changed

6 files changed

+61
-19
lines changed

api_names_out.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -322861,6 +322861,7 @@
322861322861
"/spanner:v1/ExcludeReplicas/replicaSelections": replica_selections
322862322862
"/spanner:v1/ExcludeReplicas/replicaSelections/replica_selection": replica_selection
322863322863
"/spanner:v1/ExecuteBatchDmlRequest": execute_batch_dml_request
322864+
"/spanner:v1/ExecuteBatchDmlRequest/lastStatements": last_statements
322864322865
"/spanner:v1/ExecuteBatchDmlRequest/requestOptions": request_options
322865322866
"/spanner:v1/ExecuteBatchDmlRequest/seqno": seqno
322866322867
"/spanner:v1/ExecuteBatchDmlRequest/statements": statements
@@ -322874,6 +322875,7 @@
322874322875
"/spanner:v1/ExecuteSqlRequest": execute_sql_request
322875322876
"/spanner:v1/ExecuteSqlRequest/dataBoostEnabled": data_boost_enabled
322876322877
"/spanner:v1/ExecuteSqlRequest/directedReadOptions": directed_read_options
322878+
"/spanner:v1/ExecuteSqlRequest/lastStatement": last_statement
322877322879
"/spanner:v1/ExecuteSqlRequest/paramTypes": param_types
322878322880
"/spanner:v1/ExecuteSqlRequest/paramTypes/param_type": param_type
322879322881
"/spanner:v1/ExecuteSqlRequest/params": params

generated/google-apis-spanner_v1/CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# Release history for google-apis-spanner_v1
22

3+
### v0.39.0 (2025-01-19)
4+
5+
* Regenerated from discovery document revision 20241220
6+
37
### v0.38.0 (2025-01-12)
48

59
* Regenerated from discovery document revision 20241218

generated/google-apis-spanner_v1/lib/google/apis/spanner_v1/classes.rb

Lines changed: 46 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1974,14 +1974,16 @@ class CrontabSpec
19741974

19751975
# Required. Textual representation of the crontab. User can customize the backup
19761976
# frequency and the backup version time using the cron expression. The version
1977-
# time must be in UTC timzeone. The backup will contain an externally consistent
1978-
# copy of the database at the version time. Allowed frequencies are 12 hour, 1
1979-
# day, 1 week and 1 month. Examples of valid cron specifications: * `0 2/12 * * *
1980-
# ` : every 12 hours at (2, 14) hours past midnight in UTC. * `0 2,14 * * * ` :
1981-
# every 12 hours at (2,14) hours past midnight in UTC. * `0 2 * * * ` : once a
1982-
# day at 2 past midnight in UTC. * `0 2 * * 0 ` : once a week every Sunday at 2
1983-
# past midnight in UTC. * `0 2 8 * * ` : once a month on 8th day at 2 past
1984-
# midnight in UTC.
1977+
# time must be in UTC timezone. The backup will contain an externally consistent
1978+
# copy of the database at the version time. Full backups must be scheduled a
1979+
# minimum of 12 hours apart and incremental backups must be scheduled a minimum
1980+
# of 4 hours apart. Examples of valid cron specifications: * `0 2/12 * * *` :
1981+
# every 12 hours at (2, 14) hours past midnight in UTC. * `0 2,14 * * *` : every
1982+
# 12 hours at (2,14) hours past midnight in UTC. * `0 */4 * * *` : (incremental
1983+
# backups only) every 4 hours at (0, 4, 8, 12, 16, 20) hours past midnight in
1984+
# UTC. * `0 2 * * *` : once a day at 2 past midnight in UTC. * `0 2 * * 0` :
1985+
# once a week every Sunday at 2 past midnight in UTC. * `0 2 8 * *` : once a
1986+
# month on 8th day at 2 past midnight in UTC.
19851987
# Corresponds to the JSON property `text`
19861988
# @return [String]
19871989
attr_accessor :text
@@ -2443,6 +2445,18 @@ def update!(**args)
24432445
class ExecuteBatchDmlRequest
24442446
include Google::Apis::Core::Hashable
24452447

2448+
# Optional. If set to true, this request marks the end of the transaction. The
2449+
# transaction should be committed or aborted after these statements execute, and
2450+
# attempts to execute any other requests against this transaction (including
2451+
# reads and queries) will be rejected. Setting this option may cause some error
2452+
# reporting to be deferred until commit time (e.g. validation of unique
2453+
# constraints). Given this, successful execution of statements should not be
2454+
# assumed until a subsequent Commit call completes successfully.
2455+
# Corresponds to the JSON property `lastStatements`
2456+
# @return [Boolean]
2457+
attr_accessor :last_statements
2458+
alias_method :last_statements?, :last_statements
2459+
24462460
# Common request options for various APIs.
24472461
# Corresponds to the JSON property `requestOptions`
24482462
# @return [Google::Apis::SpannerV1::RequestOptions]
@@ -2480,6 +2494,7 @@ def initialize(**args)
24802494

24812495
# Update properties of this object
24822496
def update!(**args)
2497+
@last_statements = args[:last_statements] if args.key?(:last_statements)
24832498
@request_options = args[:request_options] if args.key?(:request_options)
24842499
@seqno = args[:seqno] if args.key?(:seqno)
24852500
@statements = args[:statements] if args.key?(:statements)
@@ -2564,6 +2579,19 @@ class ExecuteSqlRequest
25642579
# @return [Google::Apis::SpannerV1::DirectedReadOptions]
25652580
attr_accessor :directed_read_options
25662581

2582+
# Optional. If set to true, this statement marks the end of the transaction. The
2583+
# transaction should be committed or aborted after this statement executes, and
2584+
# attempts to execute any other requests against this transaction (including
2585+
# reads and queries) will be rejected. For DML statements, setting this option
2586+
# may cause some error reporting to be deferred until commit time (e.g.
2587+
# validation of unique constraints). Given this, successful execution of a DML
2588+
# statement should not be assumed until a subsequent Commit call completes
2589+
# successfully.
2590+
# Corresponds to the JSON property `lastStatement`
2591+
# @return [Boolean]
2592+
attr_accessor :last_statement
2593+
alias_method :last_statement?, :last_statement
2594+
25672595
# It is not always possible for Cloud Spanner to infer the right SQL type from a
25682596
# JSON value. For example, values of type `BYTES` and values of type `STRING`
25692597
# both appear in params as JSON strings. In these cases, `param_types` can be
@@ -2650,6 +2678,7 @@ def initialize(**args)
26502678
def update!(**args)
26512679
@data_boost_enabled = args[:data_boost_enabled] if args.key?(:data_boost_enabled)
26522680
@directed_read_options = args[:directed_read_options] if args.key?(:directed_read_options)
2681+
@last_statement = args[:last_statement] if args.key?(:last_statement)
26532682
@param_types = args[:param_types] if args.key?(:param_types)
26542683
@params = args[:params] if args.key?(:params)
26552684
@partition_token = args[:partition_token] if args.key?(:partition_token)
@@ -3013,12 +3042,14 @@ class Instance
30133042
# @return [String]
30143043
attr_accessor :create_time
30153044

3016-
# Optional. Controls the default backup behavior for new databases within the
3017-
# instance. Note that `AUTOMATIC` is not permitted for free instances, as
3018-
# backups and backup schedules are not allowed for free instances. In the `
3019-
# GetInstance` or `ListInstances` response, if the value of
3020-
# default_backup_schedule_type is unset or NONE, no default backup schedule will
3021-
# be created for new databases within the instance.
3045+
# Optional. Controls the default backup schedule behavior for new databases
3046+
# within the instance. By default, a backup schedule is created automatically
3047+
# when a new database is created in a new instance. Note that the `AUTOMATIC`
3048+
# value isn't permitted for free instances, as backups and backup schedules aren'
3049+
# t supported for free instances. In the `GetInstance` or `ListInstances`
3050+
# response, if the value of `default_backup_schedule_type` isn't set, or set to `
3051+
# NONE`, Spanner doesn't create a default backup schedule for new databases in
3052+
# the instance.
30223053
# Corresponds to the JSON property `defaultBackupScheduleType`
30233054
# @return [String]
30243055
attr_accessor :default_backup_schedule_type
@@ -7025,7 +7056,7 @@ class UpdateDatabaseDdlRequest
70257056
attr_accessor :operation_id
70267057

70277058
# Optional. Proto descriptors used by CREATE/ALTER PROTO BUNDLE statements.
7028-
# Contains a protobuf-serialized [google.protobufFileDescriptorSet](https://
7059+
# Contains a protobuf-serialized [google.protobuf.FileDescriptorSet](https://
70297060
# github.com/protocolbuffers/protobuf/blob/main/src/google/protobuf/descriptor.
70307061
# proto). To generate it, [install](https://grpc.io/docs/protoc-installation/)
70317062
# and run `protoc` with --include_imports and --descriptor_set_out. For example,

generated/google-apis-spanner_v1/lib/google/apis/spanner_v1/gem_version.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,13 +16,13 @@ module Google
1616
module Apis
1717
module SpannerV1
1818
# Version of the google-apis-spanner_v1 gem
19-
GEM_VERSION = "0.38.0"
19+
GEM_VERSION = "0.39.0"
2020

2121
# Version of the code generator used to generate this client
2222
GENERATOR_VERSION = "0.16.0"
2323

2424
# Revision of the discovery document this client was generated from
25-
REVISION = "20241218"
25+
REVISION = "20241220"
2626
end
2727
end
2828
end

generated/google-apis-spanner_v1/lib/google/apis/spanner_v1/representations.rb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1469,6 +1469,7 @@ class Representation < Google::Apis::Core::JsonRepresentation
14691469
class ExecuteBatchDmlRequest
14701470
# @private
14711471
class Representation < Google::Apis::Core::JsonRepresentation
1472+
property :last_statements, as: 'lastStatements'
14721473
property :request_options, as: 'requestOptions', class: Google::Apis::SpannerV1::RequestOptions, decorator: Google::Apis::SpannerV1::RequestOptions::Representation
14731474

14741475
property :seqno, :numeric_string => true, as: 'seqno'
@@ -1497,6 +1498,7 @@ class Representation < Google::Apis::Core::JsonRepresentation
14971498
property :data_boost_enabled, as: 'dataBoostEnabled'
14981499
property :directed_read_options, as: 'directedReadOptions', class: Google::Apis::SpannerV1::DirectedReadOptions, decorator: Google::Apis::SpannerV1::DirectedReadOptions::Representation
14991500

1501+
property :last_statement, as: 'lastStatement'
15001502
hash :param_types, as: 'paramTypes', class: Google::Apis::SpannerV1::Type, decorator: Google::Apis::SpannerV1::Type::Representation
15011503

15021504
hash :params, as: 'params'

generated/google-apis-spanner_v1/lib/google/apis/spanner_v1/service.rb

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3055,7 +3055,9 @@ def execute_session_batch_dml(session, execute_batch_dml_request_object = nil, f
30553055
# Operations inside read-write transactions might return `ABORTED`. If this
30563056
# occurs, the application should restart the transaction from the beginning. See
30573057
# Transaction for more details. Larger result sets can be fetched in streaming
3058-
# fashion by calling ExecuteStreamingSql instead.
3058+
# fashion by calling ExecuteStreamingSql instead. The query string can be SQL or
3059+
# [Graph Query Language (GQL)](https://cloud.google.com/spanner/docs/reference/
3060+
# standard-sql/graph-intro).
30593061
# @param [String] session
30603062
# Required. The session in which the SQL query should be performed.
30613063
# @param [Google::Apis::SpannerV1::ExecuteSqlRequest] execute_sql_request_object
@@ -3091,7 +3093,8 @@ def execute_session_sql(session, execute_sql_request_object = nil, fields: nil,
30913093
# Like ExecuteSql, except returns the result set as a stream. Unlike ExecuteSql,
30923094
# there is no limit on the size of the returned result set. However, no
30933095
# individual row in the result set can exceed 100 MiB, and no column value can
3094-
# exceed 10 MiB.
3096+
# exceed 10 MiB. The query string can be SQL or [Graph Query Language (GQL)](
3097+
# https://cloud.google.com/spanner/docs/reference/standard-sql/graph-intro).
30953098
# @param [String] session
30963099
# Required. The session in which the SQL query should be performed.
30973100
# @param [Google::Apis::SpannerV1::ExecuteSqlRequest] execute_sql_request_object

0 commit comments

Comments
 (0)