google-apis-spanner_v1 0.6.0 → 0.7.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: f99ff9f6821502c873da0a908d418d033a1f6d9baff866c14287c1b6e5d4a1fb
4
- data.tar.gz: ee944ff1114fdedcddf45fd62a9e5713e46118bfa87356193ca619f0b4ab54da
3
+ metadata.gz: 968ad8bc1d63f27fa28ed1ca706bda5a5f416d19850ab1fe57dc43b5f4456b66
4
+ data.tar.gz: 5cce24c7792a710d4ba6ee22b4e0761aae41b5c1a8b223e371d0f4eea012a722
5
5
  SHA512:
6
- metadata.gz: 3b00aa6d4ba8ed6403127765bb9f86126791f6a9ff3b3f20f65986d6304a295f4d50478d60639f459cc817920673a6db06a970c99f30302f86b1f18157edbbea
7
- data.tar.gz: f2afbdbc190d30b4824c01f09ac50d841638e2b0fc6d9b61f505bc128fa1fd986091b753c92f256e9677da2e8dd12406ed50942ea63f96e9d0b46857dab61c88
6
+ metadata.gz: 3b86bb700283b586fbacd97cd1441fed2e100d13d567f33e7209dcf9b4cacad76b245bc7420c12dba4111c72f95535e8982cf4268d0ccf5dad50fbb145f602b5
7
+ data.tar.gz: 25d611a12f3ababdd4e000a273c4339f85c54d904de5413bebbf2a50ed93d3c29f4e245f0c3b162aaaef876380d483f8bc40464bf6da5a6e751fc7968e0a24d0
data/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # Release history for google-apis-spanner_v1
2
2
 
3
+ ### v0.7.0 (2021-03-26)
4
+
5
+ * Regenerated from discovery document revision 20210318
6
+
3
7
  ### v0.6.0 (2021-03-13)
4
8
 
5
9
  * Regenerated from discovery document revision 20210309
@@ -364,6 +364,11 @@ module Google
364
364
  # @return [Google::Apis::SpannerV1::TransactionOptions]
365
365
  attr_accessor :options
366
366
 
367
+ # Common request options for various APIs.
368
+ # Corresponds to the JSON property `requestOptions`
369
+ # @return [Google::Apis::SpannerV1::RequestOptions]
370
+ attr_accessor :request_options
371
+
367
372
  def initialize(**args)
368
373
  update!(**args)
369
374
  end
@@ -371,6 +376,7 @@ module Google
371
376
  # Update properties of this object
372
377
  def update!(**args)
373
378
  @options = args[:options] if args.key?(:options)
379
+ @request_options = args[:request_options] if args.key?(:request_options)
374
380
  end
375
381
  end
376
382
 
@@ -494,6 +500,11 @@ module Google
494
500
  # @return [Array<Google::Apis::SpannerV1::Mutation>]
495
501
  attr_accessor :mutations
496
502
 
503
+ # Common request options for various APIs.
504
+ # Corresponds to the JSON property `requestOptions`
505
+ # @return [Google::Apis::SpannerV1::RequestOptions]
506
+ attr_accessor :request_options
507
+
497
508
  # If `true`, then statistics related to the transaction will be included in the
498
509
  # CommitResponse. Default value is `false`.
499
510
  # Corresponds to the JSON property `returnCommitStats`
@@ -677,6 +688,7 @@ module Google
677
688
  # Update properties of this object
678
689
  def update!(**args)
679
690
  @mutations = args[:mutations] if args.key?(:mutations)
691
+ @request_options = args[:request_options] if args.key?(:request_options)
680
692
  @return_commit_stats = args[:return_commit_stats] if args.key?(:return_commit_stats)
681
693
  @single_use_transaction = args[:single_use_transaction] if args.key?(:single_use_transaction)
682
694
  @transaction_id = args[:transaction_id] if args.key?(:transaction_id)
@@ -1102,6 +1114,11 @@ module Google
1102
1114
  class ExecuteBatchDmlRequest
1103
1115
  include Google::Apis::Core::Hashable
1104
1116
 
1117
+ # Common request options for various APIs.
1118
+ # Corresponds to the JSON property `requestOptions`
1119
+ # @return [Google::Apis::SpannerV1::RequestOptions]
1120
+ attr_accessor :request_options
1121
+
1105
1122
  # Required. A per-transaction sequence number used to identify this request.
1106
1123
  # This field makes each request idempotent such that if the request is received
1107
1124
  # multiple times, at most one will succeed. The sequence number must be
@@ -1134,6 +1151,7 @@ module Google
1134
1151
 
1135
1152
  # Update properties of this object
1136
1153
  def update!(**args)
1154
+ @request_options = args[:request_options] if args.key?(:request_options)
1137
1155
  @seqno = args[:seqno] if args.key?(:seqno)
1138
1156
  @statements = args[:statements] if args.key?(:statements)
1139
1157
  @transaction = args[:transaction] if args.key?(:transaction)
@@ -1232,6 +1250,11 @@ module Google
1232
1250
  # @return [Google::Apis::SpannerV1::QueryOptions]
1233
1251
  attr_accessor :query_options
1234
1252
 
1253
+ # Common request options for various APIs.
1254
+ # Corresponds to the JSON property `requestOptions`
1255
+ # @return [Google::Apis::SpannerV1::RequestOptions]
1256
+ attr_accessor :request_options
1257
+
1235
1258
  # If this request is resuming a previously interrupted SQL statement execution, `
1236
1259
  # resume_token` should be copied from the last PartialResultSet yielded before
1237
1260
  # the interruption. Doing this enables the new SQL statement execution to resume
@@ -1275,6 +1298,7 @@ module Google
1275
1298
  @partition_token = args[:partition_token] if args.key?(:partition_token)
1276
1299
  @query_mode = args[:query_mode] if args.key?(:query_mode)
1277
1300
  @query_options = args[:query_options] if args.key?(:query_options)
1301
+ @request_options = args[:request_options] if args.key?(:request_options)
1278
1302
  @resume_token = args[:resume_token] if args.key?(:resume_token)
1279
1303
  @seqno = args[:seqno] if args.key?(:seqno)
1280
1304
  @sql = args[:sql] if args.key?(:sql)
@@ -2493,17 +2517,18 @@ module Google
2493
2517
  class QueryOptions
2494
2518
  include Google::Apis::Core::Hashable
2495
2519
 
2496
- # Query optimizer statistics package to use. This parameter allows individual
2497
- # queries to use a different query optimizer statistics. Specifying `latest` as
2498
- # a value instructs Cloud Spanner to use the latest generated statistics package.
2499
- # If not specified, Cloud Spanner uses statistics package set at the database
2500
- # level options, or latest if the database option is not set. The statistics
2501
- # package requested by the query has to be exempt from garbage collection. This
2502
- # can be achieved with the following DDL statement: ``` ALTER STATISTICS SET
2503
- # OPTIONS (allow_gc=false) ``` The list of available statistics packages can be
2504
- # queried from `SPANNER_SYS.OPTIMIZER_STATISTICS_PACKAGES`. Executing a SQL
2505
- # statement with an invalid optimizer statistics package or with statistics
2506
- # package that allows garbage collection fails with an `INVALID_ARGUMENT` error.
2520
+ # An option to control the selection of optimizer statistics package. This
2521
+ # parameter allows individual queries to use a different query optimizer
2522
+ # statistics package. Specifying `latest` as a value instructs Cloud Spanner to
2523
+ # use the latest generated statistics package. If not specified, Cloud Spanner
2524
+ # uses the statistics package set at the database level options, or the latest
2525
+ # package if the database option is not set. The statistics package requested by
2526
+ # the query has to be exempt from garbage collection. This can be achieved with
2527
+ # the following DDL statement: ``` ALTER STATISTICS SET OPTIONS (allow_gc=false)
2528
+ # ``` The list of available statistics packages can be queried from `
2529
+ # INFORMATION_SCHEMA.SPANNER_STATISTICS`. Executing a SQL statement with an
2530
+ # invalid optimizer statistics package or with a statistics package that allows
2531
+ # garbage collection fails with an `INVALID_ARGUMENT` error.
2507
2532
  # Corresponds to the JSON property `optimizerStatisticsPackage`
2508
2533
  # @return [String]
2509
2534
  attr_accessor :optimizer_statistics_package
@@ -2673,6 +2698,11 @@ module Google
2673
2698
  # @return [String]
2674
2699
  attr_accessor :partition_token
2675
2700
 
2701
+ # Common request options for various APIs.
2702
+ # Corresponds to the JSON property `requestOptions`
2703
+ # @return [Google::Apis::SpannerV1::RequestOptions]
2704
+ attr_accessor :request_options
2705
+
2676
2706
  # If this request is resuming a previously interrupted read, `resume_token`
2677
2707
  # should be copied from the last PartialResultSet yielded before the
2678
2708
  # interruption. Doing this enables the new read to resume where the last read
@@ -2705,6 +2735,7 @@ module Google
2705
2735
  @key_set = args[:key_set] if args.key?(:key_set)
2706
2736
  @limit = args[:limit] if args.key?(:limit)
2707
2737
  @partition_token = args[:partition_token] if args.key?(:partition_token)
2738
+ @request_options = args[:request_options] if args.key?(:request_options)
2708
2739
  @resume_token = args[:resume_token] if args.key?(:resume_token)
2709
2740
  @table = args[:table] if args.key?(:table)
2710
2741
  @transaction = args[:transaction] if args.key?(:transaction)
@@ -2759,6 +2790,25 @@ module Google
2759
2790
  end
2760
2791
  end
2761
2792
 
2793
+ # Common request options for various APIs.
2794
+ class RequestOptions
2795
+ include Google::Apis::Core::Hashable
2796
+
2797
+ # Priority for the request.
2798
+ # Corresponds to the JSON property `priority`
2799
+ # @return [String]
2800
+ attr_accessor :priority
2801
+
2802
+ def initialize(**args)
2803
+ update!(**args)
2804
+ end
2805
+
2806
+ # Update properties of this object
2807
+ def update!(**args)
2808
+ @priority = args[:priority] if args.key?(:priority)
2809
+ end
2810
+ end
2811
+
2762
2812
  # Encryption configuration for the restored database.
2763
2813
  class RestoreDatabaseEncryptionConfig
2764
2814
  include Google::Apis::Core::Hashable
@@ -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.6.0"
19
+ GEM_VERSION = "0.7.0"
20
20
 
21
21
  # Version of the code generator used to generate this client
22
22
  GENERATOR_VERSION = "0.2.0"
23
23
 
24
24
  # Revision of the discovery document this client was generated from
25
- REVISION = "20210309"
25
+ REVISION = "20210318"
26
26
  end
27
27
  end
28
28
  end
@@ -382,6 +382,12 @@ module Google
382
382
  include Google::Apis::Core::JsonObjectSupport
383
383
  end
384
384
 
385
+ class RequestOptions
386
+ class Representation < Google::Apis::Core::JsonRepresentation; end
387
+
388
+ include Google::Apis::Core::JsonObjectSupport
389
+ end
390
+
385
391
  class RestoreDatabaseEncryptionConfig
386
392
  class Representation < Google::Apis::Core::JsonRepresentation; end
387
393
 
@@ -580,6 +586,8 @@ module Google
580
586
  class Representation < Google::Apis::Core::JsonRepresentation
581
587
  property :options, as: 'options', class: Google::Apis::SpannerV1::TransactionOptions, decorator: Google::Apis::SpannerV1::TransactionOptions::Representation
582
588
 
589
+ property :request_options, as: 'requestOptions', class: Google::Apis::SpannerV1::RequestOptions, decorator: Google::Apis::SpannerV1::RequestOptions::Representation
590
+
583
591
  end
584
592
  end
585
593
 
@@ -607,6 +615,8 @@ module Google
607
615
  class Representation < Google::Apis::Core::JsonRepresentation
608
616
  collection :mutations, as: 'mutations', class: Google::Apis::SpannerV1::Mutation, decorator: Google::Apis::SpannerV1::Mutation::Representation
609
617
 
618
+ property :request_options, as: 'requestOptions', class: Google::Apis::SpannerV1::RequestOptions, decorator: Google::Apis::SpannerV1::RequestOptions::Representation
619
+
610
620
  property :return_commit_stats, as: 'returnCommitStats'
611
621
  property :single_use_transaction, as: 'singleUseTransaction', class: Google::Apis::SpannerV1::TransactionOptions, decorator: Google::Apis::SpannerV1::TransactionOptions::Representation
612
622
 
@@ -738,6 +748,8 @@ module Google
738
748
  class ExecuteBatchDmlRequest
739
749
  # @private
740
750
  class Representation < Google::Apis::Core::JsonRepresentation
751
+ property :request_options, as: 'requestOptions', class: Google::Apis::SpannerV1::RequestOptions, decorator: Google::Apis::SpannerV1::RequestOptions::Representation
752
+
741
753
  property :seqno, :numeric_string => true, as: 'seqno'
742
754
  collection :statements, as: 'statements', class: Google::Apis::SpannerV1::Statement, decorator: Google::Apis::SpannerV1::Statement::Representation
743
755
 
@@ -766,6 +778,8 @@ module Google
766
778
  property :query_mode, as: 'queryMode'
767
779
  property :query_options, as: 'queryOptions', class: Google::Apis::SpannerV1::QueryOptions, decorator: Google::Apis::SpannerV1::QueryOptions::Representation
768
780
 
781
+ property :request_options, as: 'requestOptions', class: Google::Apis::SpannerV1::RequestOptions, decorator: Google::Apis::SpannerV1::RequestOptions::Representation
782
+
769
783
  property :resume_token, :base64 => true, as: 'resumeToken'
770
784
  property :seqno, :numeric_string => true, as: 'seqno'
771
785
  property :sql, as: 'sql'
@@ -1116,6 +1130,8 @@ module Google
1116
1130
 
1117
1131
  property :limit, :numeric_string => true, as: 'limit'
1118
1132
  property :partition_token, :base64 => true, as: 'partitionToken'
1133
+ property :request_options, as: 'requestOptions', class: Google::Apis::SpannerV1::RequestOptions, decorator: Google::Apis::SpannerV1::RequestOptions::Representation
1134
+
1119
1135
  property :resume_token, :base64 => true, as: 'resumeToken'
1120
1136
  property :table, as: 'table'
1121
1137
  property :transaction, as: 'transaction', class: Google::Apis::SpannerV1::TransactionSelector, decorator: Google::Apis::SpannerV1::TransactionSelector::Representation
@@ -1138,6 +1154,13 @@ module Google
1138
1154
  end
1139
1155
  end
1140
1156
 
1157
+ class RequestOptions
1158
+ # @private
1159
+ class Representation < Google::Apis::Core::JsonRepresentation
1160
+ property :priority, as: 'priority'
1161
+ end
1162
+ end
1163
+
1141
1164
  class RestoreDatabaseEncryptionConfig
1142
1165
  # @private
1143
1166
  class Representation < Google::Apis::Core::JsonRepresentation
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-apis-spanner_v1
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.0
4
+ version: 0.7.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Google LLC
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-03-15 00:00:00.000000000 Z
11
+ date: 2021-03-29 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: google-apis-core
@@ -52,7 +52,7 @@ licenses:
52
52
  metadata:
53
53
  bug_tracker_uri: https://github.com/googleapis/google-api-ruby-client/issues
54
54
  changelog_uri: https://github.com/googleapis/google-api-ruby-client/tree/master/generated/google-apis-spanner_v1/CHANGELOG.md
55
- documentation_uri: https://googleapis.dev/ruby/google-apis-spanner_v1/v0.6.0
55
+ documentation_uri: https://googleapis.dev/ruby/google-apis-spanner_v1/v0.7.0
56
56
  source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/master/generated/google-apis-spanner_v1
57
57
  post_install_message:
58
58
  rdoc_options: []