google-apis-spanner_v1 0.4.0 → 0.9.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: e42a960ecd4f9e727c6f53a253641190fcad7d2b676a0c9ae81b8c017494a6c9
4
- data.tar.gz: fe81793f3082340b0f8dd1eaeeae2db7d3ca62518cc242fbfd1e6d1f82ef226c
3
+ metadata.gz: f1243dcf90ea82fda1dae00b5a98f84e653b2610e887b6633aac5b573249cc70
4
+ data.tar.gz: f0db958321c5009cac506b1ee4fb9e798020ce6de390e8283ec354c27812781e
5
5
  SHA512:
6
- metadata.gz: 89ec5bf262127144401a77814546aed9462541f7a83e5a6d3a4927931f549973f08875b332b3c9b90006b5864e35b0f2b0c0a9d30790fff3c380f5b15a21af49
7
- data.tar.gz: a4b4601d4cb60cb577883b664a5f5d0921e03023d85d5c99a5c563410166188008acf863c0fd72b02e9840f05b98c6a90fec40ff32513f6ce18cd1333ba1dfeb
6
+ metadata.gz: '01860fbbfdb61ed4fb3da58328c6ab11769097d7ca2d52dbc5234eecb147fef348920a724138f6918d65c8e7bdbffd717fde36ee51e39a14d836f1324ede17aa'
7
+ data.tar.gz: bf892f11e0fa5beac035efccbb672c87d0a18d6de49c0fe0a0dbd1890a1c4a4ed0f9bb4c74ba52adb07d2e4227c09b49fb4847413ff8e4f3ba55f3d507d563d6
data/CHANGELOG.md CHANGED
@@ -1,5 +1,26 @@
1
1
  # Release history for google-apis-spanner_v1
2
2
 
3
+ ### v0.9.0 (2021-04-17)
4
+
5
+ * Regenerated from discovery document revision 20210405
6
+
7
+ ### v0.8.0 (2021-04-01)
8
+
9
+ * Regenerated from discovery document revision 20210325
10
+
11
+ ### v0.7.0 (2021-03-26)
12
+
13
+ * Regenerated from discovery document revision 20210318
14
+
15
+ ### v0.6.0 (2021-03-13)
16
+
17
+ * Regenerated from discovery document revision 20210309
18
+ * Regenerated using generator version 0.2.0
19
+
20
+ ### v0.5.0 (2021-03-04)
21
+
22
+ * Unspecified changes
23
+
3
24
  ### v0.4.0 (2021-02-24)
4
25
 
5
26
  * Regenerated from discovery document revision 20210217
@@ -30,7 +30,7 @@ module Google
30
30
  # This is NOT the gem version.
31
31
  VERSION = 'V1'
32
32
 
33
- # View and manage your data across Google Cloud Platform services
33
+ # See, edit, configure, and delete your Google Cloud Platform data
34
34
  AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
35
35
 
36
36
  # Administer your Spanner databases
@@ -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,18 +2517,34 @@ module Google
2493
2517
  class QueryOptions
2494
2518
  include Google::Apis::Core::Hashable
2495
2519
 
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.
2532
+ # Corresponds to the JSON property `optimizerStatisticsPackage`
2533
+ # @return [String]
2534
+ attr_accessor :optimizer_statistics_package
2535
+
2496
2536
  # An option to control the selection of optimizer version. This parameter allows
2497
- # individual queries to pick different query optimizer versions. Specifying "
2498
- # latest" as a value instructs Cloud Spanner to use the latest supported query
2499
- # optimizer version. If not specified, Cloud Spanner uses optimizer version set
2500
- # at the database level options. Any other positive integer (from the list of
2501
- # supported optimizer versions) overrides the default optimizer version for
2537
+ # individual queries to pick different query optimizer versions. Specifying `
2538
+ # latest` as a value instructs Cloud Spanner to use the latest supported query
2539
+ # optimizer version. If not specified, Cloud Spanner uses the optimizer version
2540
+ # set at the database level options. Any other positive integer (from the list
2541
+ # of supported optimizer versions) overrides the default optimizer version for
2502
2542
  # query execution. The list of supported optimizer versions can be queried from
2503
2543
  # SPANNER_SYS.SUPPORTED_OPTIMIZER_VERSIONS. Executing a SQL statement with an
2504
- # invalid optimizer version will fail with a syntax error (`INVALID_ARGUMENT`)
2505
- # status. See https://cloud.google.com/spanner/docs/query-optimizer/manage-query-
2506
- # optimizer for more information on managing the query optimizer. The `
2507
- # optimizer_version` statement hint has precedence over this setting.
2544
+ # invalid optimizer version fails with an `INVALID_ARGUMENT` error. See https://
2545
+ # cloud.google.com/spanner/docs/query-optimizer/manage-query-optimizer for more
2546
+ # information on managing the query optimizer. The `optimizer_version` statement
2547
+ # hint has precedence over this setting.
2508
2548
  # Corresponds to the JSON property `optimizerVersion`
2509
2549
  # @return [String]
2510
2550
  attr_accessor :optimizer_version
@@ -2515,6 +2555,7 @@ module Google
2515
2555
 
2516
2556
  # Update properties of this object
2517
2557
  def update!(**args)
2558
+ @optimizer_statistics_package = args[:optimizer_statistics_package] if args.key?(:optimizer_statistics_package)
2518
2559
  @optimizer_version = args[:optimizer_version] if args.key?(:optimizer_version)
2519
2560
  end
2520
2561
  end
@@ -2657,6 +2698,11 @@ module Google
2657
2698
  # @return [String]
2658
2699
  attr_accessor :partition_token
2659
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
+
2660
2706
  # If this request is resuming a previously interrupted read, `resume_token`
2661
2707
  # should be copied from the last PartialResultSet yielded before the
2662
2708
  # interruption. Doing this enables the new read to resume where the last read
@@ -2689,6 +2735,7 @@ module Google
2689
2735
  @key_set = args[:key_set] if args.key?(:key_set)
2690
2736
  @limit = args[:limit] if args.key?(:limit)
2691
2737
  @partition_token = args[:partition_token] if args.key?(:partition_token)
2738
+ @request_options = args[:request_options] if args.key?(:request_options)
2692
2739
  @resume_token = args[:resume_token] if args.key?(:resume_token)
2693
2740
  @table = args[:table] if args.key?(:table)
2694
2741
  @transaction = args[:transaction] if args.key?(:transaction)
@@ -2743,6 +2790,50 @@ module Google
2743
2790
  end
2744
2791
  end
2745
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
+ # A per-request tag which can be applied to queries or reads, used for
2803
+ # statistics collection. Both request_tag and transaction_tag can be specified
2804
+ # for a read or query that belongs to a transaction. This field is ignored for
2805
+ # requests where it's not applicable (e.g. CommitRequest). Legal characters for `
2806
+ # request_tag` values are all printable characters (ASCII 32 - 126) and the
2807
+ # length of a request_tag is limited to 50 characters. Values that exceed this
2808
+ # limit are truncated.
2809
+ # Corresponds to the JSON property `requestTag`
2810
+ # @return [String]
2811
+ attr_accessor :request_tag
2812
+
2813
+ # A tag used for statistics collection about this transaction. Both request_tag
2814
+ # and transaction_tag can be specified for a read or query that belongs to a
2815
+ # transaction. The value of transaction_tag should be the same for all requests
2816
+ # belonging to the same transaction. If this request doesn’t belong to any
2817
+ # transaction, transaction_tag will be ignored. Legal characters for `
2818
+ # transaction_tag` values are all printable characters (ASCII 32 - 126) and the
2819
+ # length of a transaction_tag is limited to 50 characters. Values that exceed
2820
+ # this limit are truncated.
2821
+ # Corresponds to the JSON property `transactionTag`
2822
+ # @return [String]
2823
+ attr_accessor :transaction_tag
2824
+
2825
+ def initialize(**args)
2826
+ update!(**args)
2827
+ end
2828
+
2829
+ # Update properties of this object
2830
+ def update!(**args)
2831
+ @priority = args[:priority] if args.key?(:priority)
2832
+ @request_tag = args[:request_tag] if args.key?(:request_tag)
2833
+ @transaction_tag = args[:transaction_tag] if args.key?(:transaction_tag)
2834
+ end
2835
+ end
2836
+
2746
2837
  # Encryption configuration for the restored database.
2747
2838
  class RestoreDatabaseEncryptionConfig
2748
2839
  include Google::Apis::Core::Hashable
@@ -3891,6 +3982,16 @@ module Google
3891
3982
  # @return [String]
3892
3983
  attr_accessor :database
3893
3984
 
3985
+ # The progress of the UpdateDatabaseDdl operations. Currently, only index
3986
+ # creation statements will have a continuously updating progress. For non-index
3987
+ # creation statements, `progress[i]` will have start time and end time populated
3988
+ # with commit timestamp of operation, as well as a progress of 100% once the
3989
+ # operation has completed. `progress[i]` is the operation progress for `
3990
+ # statements[i]`.
3991
+ # Corresponds to the JSON property `progress`
3992
+ # @return [Array<Google::Apis::SpannerV1::OperationProgress>]
3993
+ attr_accessor :progress
3994
+
3894
3995
  # For an update this list contains all the statements. For an individual
3895
3996
  # statement, this list contains only that statement.
3896
3997
  # Corresponds to the JSON property `statements`
@@ -3913,6 +4014,7 @@ module Google
3913
4014
  def update!(**args)
3914
4015
  @commit_timestamps = args[:commit_timestamps] if args.key?(:commit_timestamps)
3915
4016
  @database = args[:database] if args.key?(:database)
4017
+ @progress = args[:progress] if args.key?(:progress)
3916
4018
  @statements = args[:statements] if args.key?(:statements)
3917
4019
  @throttled = args[:throttled] if args.key?(:throttled)
3918
4020
  end
@@ -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.4.0"
19
+ GEM_VERSION = "0.9.0"
20
20
 
21
21
  # Version of the code generator used to generate this client
22
- GENERATOR_VERSION = "0.1.2"
22
+ GENERATOR_VERSION = "0.2.0"
23
23
 
24
24
  # Revision of the discovery document this client was generated from
25
- REVISION = "20210217"
25
+ REVISION = "20210405"
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'
@@ -1082,6 +1096,7 @@ module Google
1082
1096
  class QueryOptions
1083
1097
  # @private
1084
1098
  class Representation < Google::Apis::Core::JsonRepresentation
1099
+ property :optimizer_statistics_package, as: 'optimizerStatisticsPackage'
1085
1100
  property :optimizer_version, as: 'optimizerVersion'
1086
1101
  end
1087
1102
  end
@@ -1115,6 +1130,8 @@ module Google
1115
1130
 
1116
1131
  property :limit, :numeric_string => true, as: 'limit'
1117
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
+
1118
1135
  property :resume_token, :base64 => true, as: 'resumeToken'
1119
1136
  property :table, as: 'table'
1120
1137
  property :transaction, as: 'transaction', class: Google::Apis::SpannerV1::TransactionSelector, decorator: Google::Apis::SpannerV1::TransactionSelector::Representation
@@ -1137,6 +1154,15 @@ module Google
1137
1154
  end
1138
1155
  end
1139
1156
 
1157
+ class RequestOptions
1158
+ # @private
1159
+ class Representation < Google::Apis::Core::JsonRepresentation
1160
+ property :priority, as: 'priority'
1161
+ property :request_tag, as: 'requestTag'
1162
+ property :transaction_tag, as: 'transactionTag'
1163
+ end
1164
+ end
1165
+
1140
1166
  class RestoreDatabaseEncryptionConfig
1141
1167
  # @private
1142
1168
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -1335,6 +1361,8 @@ module Google
1335
1361
  class Representation < Google::Apis::Core::JsonRepresentation
1336
1362
  collection :commit_timestamps, as: 'commitTimestamps'
1337
1363
  property :database, as: 'database'
1364
+ collection :progress, as: 'progress', class: Google::Apis::SpannerV1::OperationProgress, decorator: Google::Apis::SpannerV1::OperationProgress::Representation
1365
+
1338
1366
  collection :statements, as: 'statements'
1339
1367
  property :throttled, as: 'throttled'
1340
1368
  end
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.4.0
4
+ version: 0.9.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-01 00:00:00.000000000 Z
11
+ date: 2021-05-18 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.4.0
55
+ documentation_uri: https://googleapis.dev/ruby/google-apis-spanner_v1/v0.9.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: []
@@ -62,14 +62,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
62
62
  requirements:
63
63
  - - ">="
64
64
  - !ruby/object:Gem::Version
65
- version: '2.4'
65
+ version: '2.5'
66
66
  required_rubygems_version: !ruby/object:Gem::Requirement
67
67
  requirements:
68
68
  - - ">="
69
69
  - !ruby/object:Gem::Version
70
70
  version: '0'
71
71
  requirements: []
72
- rubygems_version: 3.2.11
72
+ rubygems_version: 3.2.17
73
73
  signing_key:
74
74
  specification_version: 4
75
75
  summary: Simple REST client for Cloud Spanner API V1