google-apis-spanner_v1 0.3.0 → 0.8.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: e78ad941475c64b6bc0ab3f7446eea631189be763717866bd3be6bcf21d9b50c
4
- data.tar.gz: 4e34aa25826908b168e6a14edb32427fc16fdbdab56cf0ebaf38f83e48b9072c
3
+ metadata.gz: fa93acb8b2af0cdff02da833137a8d7739b76929c6ef4f919098293f4e650e76
4
+ data.tar.gz: f4737f3d9865e65c979b018db62a6fb4023db787206a41ae53871a1f74e7db63
5
5
  SHA512:
6
- metadata.gz: c2cf6552a7562b09415ac97f188f825d7853e3e879102c5efee977eb832b50dfeb408dc71240dd29340dfa551906ddf7782737ae3054645883f79668bdb75d57
7
- data.tar.gz: 4804cc6f59cb512c0215f31bc0c1b9a12c1e87960923e169f278e74379253352f5b7d1a9affefb1fb0c70c940941bcb9df2fa93718cf87878484ecf081a0516c
6
+ metadata.gz: ff893b3cabf1ef613c3a9019c41e9138e5dd0920d704cfb4846daa4f11d99885febcd342a47abfd7c332e1ccc27e13048ed9d077b9066d519524417aca9a3e64
7
+ data.tar.gz: 5535e70257368597d5800580e63d024e817e8dae48e16c9be20119f2fbb4e4a48acba642433301fc59d6a095d8fb203a9ccd519f314b203bea483f7a96175515
data/CHANGELOG.md CHANGED
@@ -1,5 +1,26 @@
1
1
  # Release history for google-apis-spanner_v1
2
2
 
3
+ ### v0.8.0 (2021-04-01)
4
+
5
+ * Regenerated from discovery document revision 20210325
6
+
7
+ ### v0.7.0 (2021-03-26)
8
+
9
+ * Regenerated from discovery document revision 20210318
10
+
11
+ ### v0.6.0 (2021-03-13)
12
+
13
+ * Regenerated from discovery document revision 20210309
14
+ * Regenerated using generator version 0.2.0
15
+
16
+ ### v0.5.0 (2021-03-04)
17
+
18
+ * Unspecified changes
19
+
20
+ ### v0.4.0 (2021-02-24)
21
+
22
+ * Regenerated from discovery document revision 20210217
23
+
3
24
  ### v0.3.0 (2021-02-13)
4
25
 
5
26
  * Regenerated from discovery document revision 20210206
@@ -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
@@ -40,6 +40,11 @@ module Google
40
40
  # @return [String]
41
41
  attr_accessor :database
42
42
 
43
+ # Encryption information for a Cloud Spanner database or backup.
44
+ # Corresponds to the JSON property `encryptionInfo`
45
+ # @return [Google::Apis::SpannerV1::EncryptionInfo]
46
+ attr_accessor :encryption_info
47
+
43
48
  # Required for the CreateBackup operation. The expiration time of the backup,
44
49
  # with microseconds granularity that must be at least 6 hours and at most 366
45
50
  # days from the time the CreateBackup request is processed. Once the `
@@ -95,6 +100,7 @@ module Google
95
100
  def update!(**args)
96
101
  @create_time = args[:create_time] if args.key?(:create_time)
97
102
  @database = args[:database] if args.key?(:database)
103
+ @encryption_info = args[:encryption_info] if args.key?(:encryption_info)
98
104
  @expire_time = args[:expire_time] if args.key?(:expire_time)
99
105
  @name = args[:name] if args.key?(:name)
100
106
  @referencing_databases = args[:referencing_databases] if args.key?(:referencing_databases)
@@ -358,6 +364,11 @@ module Google
358
364
  # @return [Google::Apis::SpannerV1::TransactionOptions]
359
365
  attr_accessor :options
360
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
+
361
372
  def initialize(**args)
362
373
  update!(**args)
363
374
  end
@@ -365,6 +376,7 @@ module Google
365
376
  # Update properties of this object
366
377
  def update!(**args)
367
378
  @options = args[:options] if args.key?(:options)
379
+ @request_options = args[:request_options] if args.key?(:request_options)
368
380
  end
369
381
  end
370
382
 
@@ -488,6 +500,11 @@ module Google
488
500
  # @return [Array<Google::Apis::SpannerV1::Mutation>]
489
501
  attr_accessor :mutations
490
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
+
491
508
  # If `true`, then statistics related to the transaction will be included in the
492
509
  # CommitResponse. Default value is `false`.
493
510
  # Corresponds to the JSON property `returnCommitStats`
@@ -671,6 +688,7 @@ module Google
671
688
  # Update properties of this object
672
689
  def update!(**args)
673
690
  @mutations = args[:mutations] if args.key?(:mutations)
691
+ @request_options = args[:request_options] if args.key?(:request_options)
674
692
  @return_commit_stats = args[:return_commit_stats] if args.key?(:return_commit_stats)
675
693
  @single_use_transaction = args[:single_use_transaction] if args.key?(:single_use_transaction)
676
694
  @transaction_id = args[:transaction_id] if args.key?(:transaction_id)
@@ -805,6 +823,11 @@ module Google
805
823
  # @return [String]
806
824
  attr_accessor :create_statement
807
825
 
826
+ # Encryption configuration for a Cloud Spanner database.
827
+ # Corresponds to the JSON property `encryptionConfig`
828
+ # @return [Google::Apis::SpannerV1::EncryptionConfig]
829
+ attr_accessor :encryption_config
830
+
808
831
  # Optional. A list of DDL statements to run inside the newly created database.
809
832
  # Statements can create tables, indexes, etc. These statements execute
810
833
  # atomically with the creation of the database: if there is an error in any
@@ -820,6 +843,7 @@ module Google
820
843
  # Update properties of this object
821
844
  def update!(**args)
822
845
  @create_statement = args[:create_statement] if args.key?(:create_statement)
846
+ @encryption_config = args[:encryption_config] if args.key?(:encryption_config)
823
847
  @extra_statements = args[:extra_statements] if args.key?(:extra_statements)
824
848
  end
825
849
  end
@@ -926,6 +950,21 @@ module Google
926
950
  # @return [String]
927
951
  attr_accessor :earliest_version_time
928
952
 
953
+ # Encryption configuration for a Cloud Spanner database.
954
+ # Corresponds to the JSON property `encryptionConfig`
955
+ # @return [Google::Apis::SpannerV1::EncryptionConfig]
956
+ attr_accessor :encryption_config
957
+
958
+ # Output only. For databases that are using customer managed encryption, this
959
+ # field contains the encryption information for the database, such as encryption
960
+ # state and the Cloud KMS key versions that are in use. For databases that are
961
+ # using Google default or other types of encryption, this field is empty. This
962
+ # field is propagated lazily from the backend. There might be a delay from when
963
+ # a key version is being used and when it appears in this field.
964
+ # Corresponds to the JSON property `encryptionInfo`
965
+ # @return [Array<Google::Apis::SpannerV1::EncryptionInfo>]
966
+ attr_accessor :encryption_info
967
+
929
968
  # Required. The name of the database. Values are of the form `projects//
930
969
  # instances//databases/`, where `` is as specified in the `CREATE DATABASE`
931
970
  # statement. This name can be passed to other API methods to identify the
@@ -959,6 +998,8 @@ module Google
959
998
  def update!(**args)
960
999
  @create_time = args[:create_time] if args.key?(:create_time)
961
1000
  @earliest_version_time = args[:earliest_version_time] if args.key?(:earliest_version_time)
1001
+ @encryption_config = args[:encryption_config] if args.key?(:encryption_config)
1002
+ @encryption_info = args[:encryption_info] if args.key?(:encryption_info)
962
1003
  @name = args[:name] if args.key?(:name)
963
1004
  @restore_info = args[:restore_info] if args.key?(:restore_info)
964
1005
  @state = args[:state] if args.key?(:state)
@@ -1012,10 +1053,72 @@ module Google
1012
1053
  end
1013
1054
  end
1014
1055
 
1056
+ # Encryption configuration for a Cloud Spanner database.
1057
+ class EncryptionConfig
1058
+ include Google::Apis::Core::Hashable
1059
+
1060
+ # The Cloud KMS key to be used for encrypting and decrypting the database.
1061
+ # Values are of the form `projects//locations//keyRings//cryptoKeys/`.
1062
+ # Corresponds to the JSON property `kmsKeyName`
1063
+ # @return [String]
1064
+ attr_accessor :kms_key_name
1065
+
1066
+ def initialize(**args)
1067
+ update!(**args)
1068
+ end
1069
+
1070
+ # Update properties of this object
1071
+ def update!(**args)
1072
+ @kms_key_name = args[:kms_key_name] if args.key?(:kms_key_name)
1073
+ end
1074
+ end
1075
+
1076
+ # Encryption information for a Cloud Spanner database or backup.
1077
+ class EncryptionInfo
1078
+ include Google::Apis::Core::Hashable
1079
+
1080
+ # The `Status` type defines a logical error model that is suitable for different
1081
+ # programming environments, including REST APIs and RPC APIs. It is used by [
1082
+ # gRPC](https://github.com/grpc). Each `Status` message contains three pieces of
1083
+ # data: error code, error message, and error details. You can find out more
1084
+ # about this error model and how to work with it in the [API Design Guide](https:
1085
+ # //cloud.google.com/apis/design/errors).
1086
+ # Corresponds to the JSON property `encryptionStatus`
1087
+ # @return [Google::Apis::SpannerV1::Status]
1088
+ attr_accessor :encryption_status
1089
+
1090
+ # Output only. The type of encryption.
1091
+ # Corresponds to the JSON property `encryptionType`
1092
+ # @return [String]
1093
+ attr_accessor :encryption_type
1094
+
1095
+ # Output only. A Cloud KMS key version that is being used to protect the
1096
+ # database or backup.
1097
+ # Corresponds to the JSON property `kmsKeyVersion`
1098
+ # @return [String]
1099
+ attr_accessor :kms_key_version
1100
+
1101
+ def initialize(**args)
1102
+ update!(**args)
1103
+ end
1104
+
1105
+ # Update properties of this object
1106
+ def update!(**args)
1107
+ @encryption_status = args[:encryption_status] if args.key?(:encryption_status)
1108
+ @encryption_type = args[:encryption_type] if args.key?(:encryption_type)
1109
+ @kms_key_version = args[:kms_key_version] if args.key?(:kms_key_version)
1110
+ end
1111
+ end
1112
+
1015
1113
  # The request for ExecuteBatchDml.
1016
1114
  class ExecuteBatchDmlRequest
1017
1115
  include Google::Apis::Core::Hashable
1018
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
+
1019
1122
  # Required. A per-transaction sequence number used to identify this request.
1020
1123
  # This field makes each request idempotent such that if the request is received
1021
1124
  # multiple times, at most one will succeed. The sequence number must be
@@ -1048,6 +1151,7 @@ module Google
1048
1151
 
1049
1152
  # Update properties of this object
1050
1153
  def update!(**args)
1154
+ @request_options = args[:request_options] if args.key?(:request_options)
1051
1155
  @seqno = args[:seqno] if args.key?(:seqno)
1052
1156
  @statements = args[:statements] if args.key?(:statements)
1053
1157
  @transaction = args[:transaction] if args.key?(:transaction)
@@ -1146,6 +1250,11 @@ module Google
1146
1250
  # @return [Google::Apis::SpannerV1::QueryOptions]
1147
1251
  attr_accessor :query_options
1148
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
+
1149
1258
  # If this request is resuming a previously interrupted SQL statement execution, `
1150
1259
  # resume_token` should be copied from the last PartialResultSet yielded before
1151
1260
  # the interruption. Doing this enables the new SQL statement execution to resume
@@ -1189,6 +1298,7 @@ module Google
1189
1298
  @partition_token = args[:partition_token] if args.key?(:partition_token)
1190
1299
  @query_mode = args[:query_mode] if args.key?(:query_mode)
1191
1300
  @query_options = args[:query_options] if args.key?(:query_options)
1301
+ @request_options = args[:request_options] if args.key?(:request_options)
1192
1302
  @resume_token = args[:resume_token] if args.key?(:resume_token)
1193
1303
  @seqno = args[:seqno] if args.key?(:seqno)
1194
1304
  @sql = args[:sql] if args.key?(:sql)
@@ -2407,18 +2517,34 @@ module Google
2407
2517
  class QueryOptions
2408
2518
  include Google::Apis::Core::Hashable
2409
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
+
2410
2536
  # An option to control the selection of optimizer version. This parameter allows
2411
- # individual queries to pick different query optimizer versions. Specifying "
2412
- # latest" as a value instructs Cloud Spanner to use the latest supported query
2413
- # optimizer version. If not specified, Cloud Spanner uses optimizer version set
2414
- # at the database level options. Any other positive integer (from the list of
2415
- # 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
2416
2542
  # query execution. The list of supported optimizer versions can be queried from
2417
2543
  # SPANNER_SYS.SUPPORTED_OPTIMIZER_VERSIONS. Executing a SQL statement with an
2418
- # invalid optimizer version will fail with a syntax error (`INVALID_ARGUMENT`)
2419
- # status. See https://cloud.google.com/spanner/docs/query-optimizer/manage-query-
2420
- # optimizer for more information on managing the query optimizer. The `
2421
- # 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.
2422
2548
  # Corresponds to the JSON property `optimizerVersion`
2423
2549
  # @return [String]
2424
2550
  attr_accessor :optimizer_version
@@ -2429,6 +2555,7 @@ module Google
2429
2555
 
2430
2556
  # Update properties of this object
2431
2557
  def update!(**args)
2558
+ @optimizer_statistics_package = args[:optimizer_statistics_package] if args.key?(:optimizer_statistics_package)
2432
2559
  @optimizer_version = args[:optimizer_version] if args.key?(:optimizer_version)
2433
2560
  end
2434
2561
  end
@@ -2571,6 +2698,11 @@ module Google
2571
2698
  # @return [String]
2572
2699
  attr_accessor :partition_token
2573
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
+
2574
2706
  # If this request is resuming a previously interrupted read, `resume_token`
2575
2707
  # should be copied from the last PartialResultSet yielded before the
2576
2708
  # interruption. Doing this enables the new read to resume where the last read
@@ -2603,6 +2735,7 @@ module Google
2603
2735
  @key_set = args[:key_set] if args.key?(:key_set)
2604
2736
  @limit = args[:limit] if args.key?(:limit)
2605
2737
  @partition_token = args[:partition_token] if args.key?(:partition_token)
2738
+ @request_options = args[:request_options] if args.key?(:request_options)
2606
2739
  @resume_token = args[:resume_token] if args.key?(:resume_token)
2607
2740
  @table = args[:table] if args.key?(:table)
2608
2741
  @transaction = args[:transaction] if args.key?(:transaction)
@@ -2657,6 +2790,74 @@ module Google
2657
2790
  end
2658
2791
  end
2659
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). `request_tag` must be
2806
+ # a valid identifier of the form: `a-zA-Z` between 2 and 64 characters in length
2807
+ # Corresponds to the JSON property `requestTag`
2808
+ # @return [String]
2809
+ attr_accessor :request_tag
2810
+
2811
+ # A tag used for statistics collection about this transaction. Both request_tag
2812
+ # and transaction_tag can be specified for a read or query that belongs to a
2813
+ # transaction. The value of transaction_tag should be the same for all requests
2814
+ # belonging to the same transaction. If this request doesn’t belong to any
2815
+ # transaction, transaction_tag will be ignored. `transaction_tag` must be a
2816
+ # valid identifier of the format: `a-zA-Z`0,49``
2817
+ # Corresponds to the JSON property `transactionTag`
2818
+ # @return [String]
2819
+ attr_accessor :transaction_tag
2820
+
2821
+ def initialize(**args)
2822
+ update!(**args)
2823
+ end
2824
+
2825
+ # Update properties of this object
2826
+ def update!(**args)
2827
+ @priority = args[:priority] if args.key?(:priority)
2828
+ @request_tag = args[:request_tag] if args.key?(:request_tag)
2829
+ @transaction_tag = args[:transaction_tag] if args.key?(:transaction_tag)
2830
+ end
2831
+ end
2832
+
2833
+ # Encryption configuration for the restored database.
2834
+ class RestoreDatabaseEncryptionConfig
2835
+ include Google::Apis::Core::Hashable
2836
+
2837
+ # Required. The encryption type of the restored database.
2838
+ # Corresponds to the JSON property `encryptionType`
2839
+ # @return [String]
2840
+ attr_accessor :encryption_type
2841
+
2842
+ # Optional. The Cloud KMS key that will be used to encrypt/decrypt the restored
2843
+ # database. This field should be set only when encryption_type is `
2844
+ # CUSTOMER_MANAGED_ENCRYPTION`. Values are of the form `projects//locations//
2845
+ # keyRings//cryptoKeys/`.
2846
+ # Corresponds to the JSON property `kmsKeyName`
2847
+ # @return [String]
2848
+ attr_accessor :kms_key_name
2849
+
2850
+ def initialize(**args)
2851
+ update!(**args)
2852
+ end
2853
+
2854
+ # Update properties of this object
2855
+ def update!(**args)
2856
+ @encryption_type = args[:encryption_type] if args.key?(:encryption_type)
2857
+ @kms_key_name = args[:kms_key_name] if args.key?(:kms_key_name)
2858
+ end
2859
+ end
2860
+
2660
2861
  # Metadata type for the long-running operation returned by RestoreDatabase.
2661
2862
  class RestoreDatabaseMetadata
2662
2863
  include Google::Apis::Core::Hashable
@@ -2739,6 +2940,11 @@ module Google
2739
2940
  # @return [String]
2740
2941
  attr_accessor :database_id
2741
2942
 
2943
+ # Encryption configuration for the restored database.
2944
+ # Corresponds to the JSON property `encryptionConfig`
2945
+ # @return [Google::Apis::SpannerV1::RestoreDatabaseEncryptionConfig]
2946
+ attr_accessor :encryption_config
2947
+
2742
2948
  def initialize(**args)
2743
2949
  update!(**args)
2744
2950
  end
@@ -2747,6 +2953,7 @@ module Google
2747
2953
  def update!(**args)
2748
2954
  @backup = args[:backup] if args.key?(:backup)
2749
2955
  @database_id = args[:database_id] if args.key?(:database_id)
2956
+ @encryption_config = args[:encryption_config] if args.key?(:encryption_config)
2750
2957
  end
2751
2958
  end
2752
2959
 
@@ -3771,6 +3978,16 @@ module Google
3771
3978
  # @return [String]
3772
3979
  attr_accessor :database
3773
3980
 
3981
+ # The progress of the UpdateDatabaseDdl operations. Currently, only index
3982
+ # creation statements will have a continuously updating progress. For non-index
3983
+ # creation statements, `progress[i]` will have start time and end time populated
3984
+ # with commit timestamp of operation, as well as a progress of 100% once the
3985
+ # operation has completed. `progress[i]` is the operation progress for `
3986
+ # statements[i]`.
3987
+ # Corresponds to the JSON property `progress`
3988
+ # @return [Array<Google::Apis::SpannerV1::OperationProgress>]
3989
+ attr_accessor :progress
3990
+
3774
3991
  # For an update this list contains all the statements. For an individual
3775
3992
  # statement, this list contains only that statement.
3776
3993
  # Corresponds to the JSON property `statements`
@@ -3793,6 +4010,7 @@ module Google
3793
4010
  def update!(**args)
3794
4011
  @commit_timestamps = args[:commit_timestamps] if args.key?(:commit_timestamps)
3795
4012
  @database = args[:database] if args.key?(:database)
4013
+ @progress = args[:progress] if args.key?(:progress)
3796
4014
  @statements = args[:statements] if args.key?(:statements)
3797
4015
  @throttled = args[:throttled] if args.key?(:throttled)
3798
4016
  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.3.0"
19
+ GEM_VERSION = "0.8.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 = "20210206"
25
+ REVISION = "20210325"
26
26
  end
27
27
  end
28
28
  end
@@ -136,6 +136,18 @@ module Google
136
136
  include Google::Apis::Core::JsonObjectSupport
137
137
  end
138
138
 
139
+ class EncryptionConfig
140
+ class Representation < Google::Apis::Core::JsonRepresentation; end
141
+
142
+ include Google::Apis::Core::JsonObjectSupport
143
+ end
144
+
145
+ class EncryptionInfo
146
+ class Representation < Google::Apis::Core::JsonRepresentation; end
147
+
148
+ include Google::Apis::Core::JsonObjectSupport
149
+ end
150
+
139
151
  class ExecuteBatchDmlRequest
140
152
  class Representation < Google::Apis::Core::JsonRepresentation; end
141
153
 
@@ -370,6 +382,18 @@ module Google
370
382
  include Google::Apis::Core::JsonObjectSupport
371
383
  end
372
384
 
385
+ class RequestOptions
386
+ class Representation < Google::Apis::Core::JsonRepresentation; end
387
+
388
+ include Google::Apis::Core::JsonObjectSupport
389
+ end
390
+
391
+ class RestoreDatabaseEncryptionConfig
392
+ class Representation < Google::Apis::Core::JsonRepresentation; end
393
+
394
+ include Google::Apis::Core::JsonObjectSupport
395
+ end
396
+
373
397
  class RestoreDatabaseMetadata
374
398
  class Representation < Google::Apis::Core::JsonRepresentation; end
375
399
 
@@ -519,6 +543,8 @@ module Google
519
543
  class Representation < Google::Apis::Core::JsonRepresentation
520
544
  property :create_time, as: 'createTime'
521
545
  property :database, as: 'database'
546
+ property :encryption_info, as: 'encryptionInfo', class: Google::Apis::SpannerV1::EncryptionInfo, decorator: Google::Apis::SpannerV1::EncryptionInfo::Representation
547
+
522
548
  property :expire_time, as: 'expireTime'
523
549
  property :name, as: 'name'
524
550
  collection :referencing_databases, as: 'referencingDatabases'
@@ -560,6 +586,8 @@ module Google
560
586
  class Representation < Google::Apis::Core::JsonRepresentation
561
587
  property :options, as: 'options', class: Google::Apis::SpannerV1::TransactionOptions, decorator: Google::Apis::SpannerV1::TransactionOptions::Representation
562
588
 
589
+ property :request_options, as: 'requestOptions', class: Google::Apis::SpannerV1::RequestOptions, decorator: Google::Apis::SpannerV1::RequestOptions::Representation
590
+
563
591
  end
564
592
  end
565
593
 
@@ -587,6 +615,8 @@ module Google
587
615
  class Representation < Google::Apis::Core::JsonRepresentation
588
616
  collection :mutations, as: 'mutations', class: Google::Apis::SpannerV1::Mutation, decorator: Google::Apis::SpannerV1::Mutation::Representation
589
617
 
618
+ property :request_options, as: 'requestOptions', class: Google::Apis::SpannerV1::RequestOptions, decorator: Google::Apis::SpannerV1::RequestOptions::Representation
619
+
590
620
  property :return_commit_stats, as: 'returnCommitStats'
591
621
  property :single_use_transaction, as: 'singleUseTransaction', class: Google::Apis::SpannerV1::TransactionOptions, decorator: Google::Apis::SpannerV1::TransactionOptions::Representation
592
622
 
@@ -632,6 +662,8 @@ module Google
632
662
  # @private
633
663
  class Representation < Google::Apis::Core::JsonRepresentation
634
664
  property :create_statement, as: 'createStatement'
665
+ property :encryption_config, as: 'encryptionConfig', class: Google::Apis::SpannerV1::EncryptionConfig, decorator: Google::Apis::SpannerV1::EncryptionConfig::Representation
666
+
635
667
  collection :extra_statements, as: 'extraStatements'
636
668
  end
637
669
  end
@@ -669,6 +701,10 @@ module Google
669
701
  class Representation < Google::Apis::Core::JsonRepresentation
670
702
  property :create_time, as: 'createTime'
671
703
  property :earliest_version_time, as: 'earliestVersionTime'
704
+ property :encryption_config, as: 'encryptionConfig', class: Google::Apis::SpannerV1::EncryptionConfig, decorator: Google::Apis::SpannerV1::EncryptionConfig::Representation
705
+
706
+ collection :encryption_info, as: 'encryptionInfo', class: Google::Apis::SpannerV1::EncryptionInfo, decorator: Google::Apis::SpannerV1::EncryptionInfo::Representation
707
+
672
708
  property :name, as: 'name'
673
709
  property :restore_info, as: 'restoreInfo', class: Google::Apis::SpannerV1::RestoreInfo, decorator: Google::Apis::SpannerV1::RestoreInfo::Representation
674
710
 
@@ -692,9 +728,28 @@ module Google
692
728
  end
693
729
  end
694
730
 
731
+ class EncryptionConfig
732
+ # @private
733
+ class Representation < Google::Apis::Core::JsonRepresentation
734
+ property :kms_key_name, as: 'kmsKeyName'
735
+ end
736
+ end
737
+
738
+ class EncryptionInfo
739
+ # @private
740
+ class Representation < Google::Apis::Core::JsonRepresentation
741
+ property :encryption_status, as: 'encryptionStatus', class: Google::Apis::SpannerV1::Status, decorator: Google::Apis::SpannerV1::Status::Representation
742
+
743
+ property :encryption_type, as: 'encryptionType'
744
+ property :kms_key_version, as: 'kmsKeyVersion'
745
+ end
746
+ end
747
+
695
748
  class ExecuteBatchDmlRequest
696
749
  # @private
697
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
+
698
753
  property :seqno, :numeric_string => true, as: 'seqno'
699
754
  collection :statements, as: 'statements', class: Google::Apis::SpannerV1::Statement, decorator: Google::Apis::SpannerV1::Statement::Representation
700
755
 
@@ -723,6 +778,8 @@ module Google
723
778
  property :query_mode, as: 'queryMode'
724
779
  property :query_options, as: 'queryOptions', class: Google::Apis::SpannerV1::QueryOptions, decorator: Google::Apis::SpannerV1::QueryOptions::Representation
725
780
 
781
+ property :request_options, as: 'requestOptions', class: Google::Apis::SpannerV1::RequestOptions, decorator: Google::Apis::SpannerV1::RequestOptions::Representation
782
+
726
783
  property :resume_token, :base64 => true, as: 'resumeToken'
727
784
  property :seqno, :numeric_string => true, as: 'seqno'
728
785
  property :sql, as: 'sql'
@@ -1039,6 +1096,7 @@ module Google
1039
1096
  class QueryOptions
1040
1097
  # @private
1041
1098
  class Representation < Google::Apis::Core::JsonRepresentation
1099
+ property :optimizer_statistics_package, as: 'optimizerStatisticsPackage'
1042
1100
  property :optimizer_version, as: 'optimizerVersion'
1043
1101
  end
1044
1102
  end
@@ -1072,6 +1130,8 @@ module Google
1072
1130
 
1073
1131
  property :limit, :numeric_string => true, as: 'limit'
1074
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
+
1075
1135
  property :resume_token, :base64 => true, as: 'resumeToken'
1076
1136
  property :table, as: 'table'
1077
1137
  property :transaction, as: 'transaction', class: Google::Apis::SpannerV1::TransactionSelector, decorator: Google::Apis::SpannerV1::TransactionSelector::Representation
@@ -1094,6 +1154,23 @@ module Google
1094
1154
  end
1095
1155
  end
1096
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
+
1166
+ class RestoreDatabaseEncryptionConfig
1167
+ # @private
1168
+ class Representation < Google::Apis::Core::JsonRepresentation
1169
+ property :encryption_type, as: 'encryptionType'
1170
+ property :kms_key_name, as: 'kmsKeyName'
1171
+ end
1172
+ end
1173
+
1097
1174
  class RestoreDatabaseMetadata
1098
1175
  # @private
1099
1176
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -1113,6 +1190,8 @@ module Google
1113
1190
  class Representation < Google::Apis::Core::JsonRepresentation
1114
1191
  property :backup, as: 'backup'
1115
1192
  property :database_id, as: 'databaseId'
1193
+ property :encryption_config, as: 'encryptionConfig', class: Google::Apis::SpannerV1::RestoreDatabaseEncryptionConfig, decorator: Google::Apis::SpannerV1::RestoreDatabaseEncryptionConfig::Representation
1194
+
1116
1195
  end
1117
1196
  end
1118
1197
 
@@ -1282,6 +1361,8 @@ module Google
1282
1361
  class Representation < Google::Apis::Core::JsonRepresentation
1283
1362
  collection :commit_timestamps, as: 'commitTimestamps'
1284
1363
  property :database, as: 'database'
1364
+ collection :progress, as: 'progress', class: Google::Apis::SpannerV1::OperationProgress, decorator: Google::Apis::SpannerV1::OperationProgress::Representation
1365
+
1285
1366
  collection :statements, as: 'statements'
1286
1367
  property :throttled, as: 'throttled'
1287
1368
  end
@@ -549,6 +549,12 @@ module Google
549
549
  # @param [String] backup_id
550
550
  # Required. The id of the backup to be created. The `backup_id` appended to `
551
551
  # parent` forms the full backup name of the form `projects//instances//backups/`.
552
+ # @param [String] encryption_config_encryption_type
553
+ # Required. The encryption type of the backup.
554
+ # @param [String] encryption_config_kms_key_name
555
+ # Optional. The Cloud KMS key that will be used to protect the backup. This
556
+ # field should be set only when encryption_type is `CUSTOMER_MANAGED_ENCRYPTION`.
557
+ # Values are of the form `projects//locations//keyRings//cryptoKeys/`.
552
558
  # @param [String] fields
553
559
  # Selector specifying which fields to include in a partial response.
554
560
  # @param [String] quota_user
@@ -566,7 +572,7 @@ module Google
566
572
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
567
573
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
568
574
  # @raise [Google::Apis::AuthorizationError] Authorization is required
569
- def create_project_instance_backup(parent, backup_object = nil, backup_id: nil, fields: nil, quota_user: nil, options: nil, &block)
575
+ def create_project_instance_backup(parent, backup_object = nil, backup_id: nil, encryption_config_encryption_type: nil, encryption_config_kms_key_name: nil, fields: nil, quota_user: nil, options: nil, &block)
570
576
  command = make_simple_command(:post, 'v1/{+parent}/backups', options)
571
577
  command.request_representation = Google::Apis::SpannerV1::Backup::Representation
572
578
  command.request_object = backup_object
@@ -574,6 +580,8 @@ module Google
574
580
  command.response_class = Google::Apis::SpannerV1::Operation
575
581
  command.params['parent'] = parent unless parent.nil?
576
582
  command.query['backupId'] = backup_id unless backup_id.nil?
583
+ command.query['encryptionConfig.encryptionType'] = encryption_config_encryption_type unless encryption_config_encryption_type.nil?
584
+ command.query['encryptionConfig.kmsKeyName'] = encryption_config_kms_key_name unless encryption_config_kms_key_name.nil?
577
585
  command.query['fields'] = fields unless fields.nil?
578
586
  command.query['quotaUser'] = quota_user unless quota_user.nil?
579
587
  execute_or_queue_command(command, &block)
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.3.0
4
+ version: 0.8.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-02-15 00:00:00.000000000 Z
11
+ date: 2021-04-05 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.3.0
55
+ documentation_uri: https://googleapis.dev/ruby/google-apis-spanner_v1/v0.8.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.6
72
+ rubygems_version: 3.2.13
73
73
  signing_key:
74
74
  specification_version: 4
75
75
  summary: Simple REST client for Cloud Spanner API V1