google-api-client 0.9.26 → 0.9.28

Sign up to get free protection for your applications and to get access to all the features.
Files changed (123) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +7 -0
  3. data/README.md +1 -1
  4. data/api_names.yaml +36326 -36213
  5. data/generated/google/apis/adexchangebuyer2_v2beta1.rb +1 -1
  6. data/generated/google/apis/adexchangebuyer2_v2beta1/classes.rb +155 -155
  7. data/generated/google/apis/adexchangebuyer2_v2beta1/representations.rb +32 -32
  8. data/generated/google/apis/adexchangebuyer2_v2beta1/service.rb +104 -104
  9. data/generated/google/apis/adsense_v1_4.rb +1 -1
  10. data/generated/google/apis/adsensehost_v4_1.rb +1 -1
  11. data/generated/google/apis/androidenterprise_v1.rb +1 -1
  12. data/generated/google/apis/appstate_v1.rb +1 -1
  13. data/generated/google/apis/calendar_v3.rb +1 -1
  14. data/generated/google/apis/cloudbuild_v1.rb +1 -1
  15. data/generated/google/apis/cloudbuild_v1/classes.rb +260 -248
  16. data/generated/google/apis/cloudbuild_v1/representations.rb +47 -45
  17. data/generated/google/apis/cloudbuild_v1/service.rb +167 -167
  18. data/generated/google/apis/clouddebugger_v2.rb +3 -3
  19. data/generated/google/apis/clouddebugger_v2/classes.rb +569 -569
  20. data/generated/google/apis/clouddebugger_v2/representations.rb +146 -146
  21. data/generated/google/apis/clouddebugger_v2/service.rb +145 -145
  22. data/generated/google/apis/cloudkms_v1beta1.rb +4 -3
  23. data/generated/google/apis/cloudkms_v1beta1/classes.rb +428 -428
  24. data/generated/google/apis/cloudkms_v1beta1/representations.rb +115 -115
  25. data/generated/google/apis/cloudkms_v1beta1/service.rb +161 -160
  26. data/generated/google/apis/cloudmonitoring_v2beta2.rb +1 -1
  27. data/generated/google/apis/cloudresourcemanager_v1.rb +1 -1
  28. data/generated/google/apis/cloudresourcemanager_v1/classes.rb +583 -583
  29. data/generated/google/apis/cloudresourcemanager_v1/representations.rb +100 -100
  30. data/generated/google/apis/cloudresourcemanager_v1/service.rb +116 -116
  31. data/generated/google/apis/cloudresourcemanager_v1beta1.rb +1 -1
  32. data/generated/google/apis/cloudresourcemanager_v1beta1/classes.rb +195 -195
  33. data/generated/google/apis/cloudresourcemanager_v1beta1/representations.rb +58 -58
  34. data/generated/google/apis/cloudresourcemanager_v1beta1/service.rb +316 -316
  35. data/generated/google/apis/content_v2.rb +1 -1
  36. data/generated/google/apis/content_v2/classes.rb +12 -0
  37. data/generated/google/apis/content_v2/representations.rb +2 -0
  38. data/generated/google/apis/dataflow_v1b3.rb +1 -1
  39. data/generated/google/apis/dataflow_v1b3/classes.rb +2833 -2694
  40. data/generated/google/apis/dataflow_v1b3/representations.rb +666 -666
  41. data/generated/google/apis/dataflow_v1b3/service.rb +351 -349
  42. data/generated/google/apis/datastore_v1.rb +1 -1
  43. data/generated/google/apis/deploymentmanager_v2.rb +1 -1
  44. data/generated/google/apis/deploymentmanager_v2/classes.rb +21 -12
  45. data/generated/google/apis/deploymentmanager_v2/representations.rb +1 -0
  46. data/generated/google/apis/deploymentmanager_v2/service.rb +5 -5
  47. data/generated/google/apis/dns_v1.rb +1 -1
  48. data/generated/google/apis/dns_v2beta1.rb +1 -1
  49. data/generated/google/apis/doubleclicksearch_v2.rb +1 -1
  50. data/generated/google/apis/doubleclicksearch_v2/classes.rb +6 -4
  51. data/generated/google/apis/drive_v2.rb +1 -1
  52. data/generated/google/apis/drive_v2/classes.rb +26 -0
  53. data/generated/google/apis/drive_v2/representations.rb +14 -0
  54. data/generated/google/apis/drive_v2/service.rb +38 -2
  55. data/generated/google/apis/drive_v3.rb +1 -1
  56. data/generated/google/apis/games_configuration_v1configuration.rb +1 -1
  57. data/generated/google/apis/games_management_v1management.rb +1 -1
  58. data/generated/google/apis/games_v1.rb +1 -1
  59. data/generated/google/apis/genomics_v1.rb +4 -4
  60. data/generated/google/apis/genomics_v1/classes.rb +2317 -2317
  61. data/generated/google/apis/genomics_v1/representations.rb +476 -476
  62. data/generated/google/apis/genomics_v1/service.rb +1038 -1038
  63. data/generated/google/apis/gmail_v1.rb +1 -1
  64. data/generated/google/apis/gmail_v1/classes.rb +82 -1
  65. data/generated/google/apis/gmail_v1/representations.rb +33 -0
  66. data/generated/google/apis/gmail_v1/service.rb +215 -5
  67. data/generated/google/apis/iam_v1.rb +1 -1
  68. data/generated/google/apis/iam_v1/classes.rb +446 -343
  69. data/generated/google/apis/iam_v1/representations.rb +112 -85
  70. data/generated/google/apis/iam_v1/service.rb +248 -192
  71. data/generated/google/apis/kgsearch_v1/classes.rb +6 -6
  72. data/generated/google/apis/kgsearch_v1/representations.rb +1 -1
  73. data/generated/google/apis/kgsearch_v1/service.rb +15 -15
  74. data/generated/google/apis/language_v1beta1.rb +1 -1
  75. data/generated/google/apis/language_v1beta1/classes.rb +396 -396
  76. data/generated/google/apis/language_v1beta1/representations.rb +97 -97
  77. data/generated/google/apis/language_v1beta1/service.rb +42 -42
  78. data/generated/google/apis/logging_v2beta1.rb +1 -1
  79. data/generated/google/apis/logging_v2beta1/classes.rb +855 -855
  80. data/generated/google/apis/logging_v2beta1/representations.rb +155 -155
  81. data/generated/google/apis/logging_v2beta1/service.rb +214 -214
  82. data/generated/google/apis/monitoring_v3.rb +4 -4
  83. data/generated/google/apis/monitoring_v3/classes.rb +551 -551
  84. data/generated/google/apis/monitoring_v3/representations.rb +123 -123
  85. data/generated/google/apis/monitoring_v3/service.rb +80 -80
  86. data/generated/google/apis/plus_domains_v1.rb +1 -1
  87. data/generated/google/apis/plus_v1.rb +1 -1
  88. data/generated/google/apis/pubsub_v1.rb +3 -3
  89. data/generated/google/apis/pubsub_v1/classes.rb +391 -391
  90. data/generated/google/apis/pubsub_v1/representations.rb +83 -83
  91. data/generated/google/apis/pubsub_v1/service.rb +257 -257
  92. data/generated/google/apis/sheets_v4.rb +1 -1
  93. data/generated/google/apis/sheets_v4/classes.rb +4334 -4334
  94. data/generated/google/apis/sheets_v4/representations.rb +861 -861
  95. data/generated/google/apis/sheets_v4/service.rb +191 -191
  96. data/generated/google/apis/slides_v1.rb +7 -7
  97. data/generated/google/apis/slides_v1/classes.rb +2726 -2555
  98. data/generated/google/apis/slides_v1/representations.rb +678 -607
  99. data/generated/google/apis/slides_v1/service.rb +16 -16
  100. data/generated/google/apis/speech_v1beta1.rb +1 -1
  101. data/generated/google/apis/speech_v1beta1/classes.rb +57 -59
  102. data/generated/google/apis/speech_v1beta1/representations.rb +9 -9
  103. data/generated/google/apis/speech_v1beta1/service.rb +63 -63
  104. data/generated/google/apis/storage_v1.rb +1 -1
  105. data/generated/google/apis/storage_v1/classes.rb +4 -3
  106. data/generated/google/apis/vision_v1/classes.rb +925 -925
  107. data/generated/google/apis/vision_v1/representations.rb +134 -134
  108. data/generated/google/apis/vision_v1/service.rb +4 -4
  109. data/generated/google/apis/youtube_analytics_v1.rb +1 -1
  110. data/generated/google/apis/youtube_partner_v1.rb +1 -1
  111. data/generated/google/apis/youtube_v3.rb +1 -1
  112. data/generated/google/apis/youtube_v3/classes.rb +234 -1
  113. data/generated/google/apis/youtube_v3/representations.rb +83 -0
  114. data/generated/google/apis/youtube_v3/service.rb +55 -0
  115. data/generated/google/apis/youtubereporting_v1.rb +1 -1
  116. data/generated/google/apis/youtubereporting_v1/classes.rb +105 -105
  117. data/generated/google/apis/youtubereporting_v1/representations.rb +31 -31
  118. data/generated/google/apis/youtubereporting_v1/service.rb +78 -78
  119. data/lib/google/apis/core/api_command.rb +11 -5
  120. data/lib/google/apis/core/base_service.rb +7 -5
  121. data/lib/google/apis/errors.rb +4 -0
  122. data/lib/google/apis/version.rb +1 -1
  123. metadata +28 -28
@@ -22,54 +22,6 @@ module Google
22
22
  module Apis
23
23
  module CloudkmsV1beta1
24
24
 
25
- class CloudAuditOptions
26
- class Representation < Google::Apis::Core::JsonRepresentation; end
27
-
28
- include Google::Apis::Core::JsonObjectSupport
29
- end
30
-
31
- class Binding
32
- class Representation < Google::Apis::Core::JsonRepresentation; end
33
-
34
- include Google::Apis::Core::JsonObjectSupport
35
- end
36
-
37
- class EncryptRequest
38
- class Representation < Google::Apis::Core::JsonRepresentation; end
39
-
40
- include Google::Apis::Core::JsonObjectSupport
41
- end
42
-
43
- class ListCryptoKeyVersionsResponse
44
- class Representation < Google::Apis::Core::JsonRepresentation; end
45
-
46
- include Google::Apis::Core::JsonObjectSupport
47
- end
48
-
49
- class TestIamPermissionsResponse
50
- class Representation < Google::Apis::Core::JsonRepresentation; end
51
-
52
- include Google::Apis::Core::JsonObjectSupport
53
- end
54
-
55
- class DestroyCryptoKeyVersionRequest
56
- class Representation < Google::Apis::Core::JsonRepresentation; end
57
-
58
- include Google::Apis::Core::JsonObjectSupport
59
- end
60
-
61
- class CryptoKey
62
- class Representation < Google::Apis::Core::JsonRepresentation; end
63
-
64
- include Google::Apis::Core::JsonObjectSupport
65
- end
66
-
67
- class Rule
68
- class Representation < Google::Apis::Core::JsonRepresentation; end
69
-
70
- include Google::Apis::Core::JsonObjectSupport
71
- end
72
-
73
25
  class LogConfig
74
26
  class Representation < Google::Apis::Core::JsonRepresentation; end
75
27
 
@@ -130,25 +82,25 @@ module Google
130
82
  include Google::Apis::Core::JsonObjectSupport
131
83
  end
132
84
 
133
- class Policy
85
+ class ListLocationsResponse
134
86
  class Representation < Google::Apis::Core::JsonRepresentation; end
135
87
 
136
88
  include Google::Apis::Core::JsonObjectSupport
137
89
  end
138
90
 
139
- class EncryptResponse
91
+ class Policy
140
92
  class Representation < Google::Apis::Core::JsonRepresentation; end
141
93
 
142
94
  include Google::Apis::Core::JsonObjectSupport
143
95
  end
144
96
 
145
- class KeyRing
97
+ class EncryptResponse
146
98
  class Representation < Google::Apis::Core::JsonRepresentation; end
147
99
 
148
100
  include Google::Apis::Core::JsonObjectSupport
149
101
  end
150
102
 
151
- class ListLocationsResponse
103
+ class KeyRing
152
104
  class Representation < Google::Apis::Core::JsonRepresentation; end
153
105
 
154
106
  include Google::Apis::Core::JsonObjectSupport
@@ -191,76 +143,51 @@ module Google
191
143
  end
192
144
 
193
145
  class CloudAuditOptions
194
- # @private
195
- class Representation < Google::Apis::Core::JsonRepresentation
196
- end
146
+ class Representation < Google::Apis::Core::JsonRepresentation; end
147
+
148
+ include Google::Apis::Core::JsonObjectSupport
197
149
  end
198
150
 
199
151
  class Binding
200
- # @private
201
- class Representation < Google::Apis::Core::JsonRepresentation
202
- collection :members, as: 'members'
203
- property :role, as: 'role'
204
- end
152
+ class Representation < Google::Apis::Core::JsonRepresentation; end
153
+
154
+ include Google::Apis::Core::JsonObjectSupport
205
155
  end
206
156
 
207
157
  class EncryptRequest
208
- # @private
209
- class Representation < Google::Apis::Core::JsonRepresentation
210
- property :plaintext, :base64 => true, as: 'plaintext'
211
- property :additional_authenticated_data, :base64 => true, as: 'additionalAuthenticatedData'
212
- end
158
+ class Representation < Google::Apis::Core::JsonRepresentation; end
159
+
160
+ include Google::Apis::Core::JsonObjectSupport
213
161
  end
214
162
 
215
163
  class ListCryptoKeyVersionsResponse
216
- # @private
217
- class Representation < Google::Apis::Core::JsonRepresentation
218
- collection :crypto_key_versions, as: 'cryptoKeyVersions', class: Google::Apis::CloudkmsV1beta1::CryptoKeyVersion, decorator: Google::Apis::CloudkmsV1beta1::CryptoKeyVersion::Representation
164
+ class Representation < Google::Apis::Core::JsonRepresentation; end
219
165
 
220
- property :next_page_token, as: 'nextPageToken'
221
- property :total_size, as: 'totalSize'
222
- end
166
+ include Google::Apis::Core::JsonObjectSupport
223
167
  end
224
168
 
225
169
  class TestIamPermissionsResponse
226
- # @private
227
- class Representation < Google::Apis::Core::JsonRepresentation
228
- collection :permissions, as: 'permissions'
229
- end
230
- end
170
+ class Representation < Google::Apis::Core::JsonRepresentation; end
231
171
 
232
- class DestroyCryptoKeyVersionRequest
233
- # @private
234
- class Representation < Google::Apis::Core::JsonRepresentation
235
- end
172
+ include Google::Apis::Core::JsonObjectSupport
236
173
  end
237
174
 
238
- class CryptoKey
239
- # @private
240
- class Representation < Google::Apis::Core::JsonRepresentation
241
- property :name, as: 'name'
242
- property :purpose, as: 'purpose'
243
- property :next_rotation_time, as: 'nextRotationTime'
244
- property :create_time, as: 'createTime'
245
- property :rotation_period, as: 'rotationPeriod'
246
- property :primary, as: 'primary', class: Google::Apis::CloudkmsV1beta1::CryptoKeyVersion, decorator: Google::Apis::CloudkmsV1beta1::CryptoKeyVersion::Representation
175
+ class DestroyCryptoKeyVersionRequest
176
+ class Representation < Google::Apis::Core::JsonRepresentation; end
247
177
 
248
- end
178
+ include Google::Apis::Core::JsonObjectSupport
249
179
  end
250
180
 
251
181
  class Rule
252
- # @private
253
- class Representation < Google::Apis::Core::JsonRepresentation
254
- collection :log_config, as: 'logConfig', class: Google::Apis::CloudkmsV1beta1::LogConfig, decorator: Google::Apis::CloudkmsV1beta1::LogConfig::Representation
182
+ class Representation < Google::Apis::Core::JsonRepresentation; end
255
183
 
256
- collection :in, as: 'in'
257
- collection :permissions, as: 'permissions'
258
- property :action, as: 'action'
259
- collection :not_in, as: 'notIn'
260
- property :description, as: 'description'
261
- collection :conditions, as: 'conditions', class: Google::Apis::CloudkmsV1beta1::Condition, decorator: Google::Apis::CloudkmsV1beta1::Condition::Representation
184
+ include Google::Apis::Core::JsonObjectSupport
185
+ end
262
186
 
263
- end
187
+ class CryptoKey
188
+ class Representation < Google::Apis::Core::JsonRepresentation; end
189
+
190
+ include Google::Apis::Core::JsonObjectSupport
264
191
  end
265
192
 
266
193
  class LogConfig
@@ -295,10 +222,10 @@ module Google
295
222
  class Location
296
223
  # @private
297
224
  class Representation < Google::Apis::Core::JsonRepresentation
298
- hash :labels, as: 'labels'
299
- property :name, as: 'name'
300
225
  property :location_id, as: 'locationId'
301
226
  hash :metadata, as: 'metadata'
227
+ hash :labels, as: 'labels'
228
+ property :name, as: 'name'
302
229
  end
303
230
  end
304
231
 
@@ -315,12 +242,12 @@ module Google
315
242
  class Condition
316
243
  # @private
317
244
  class Representation < Google::Apis::Core::JsonRepresentation
318
- property :svc, as: 'svc'
319
- property :sys, as: 'sys'
320
245
  property :value, as: 'value'
246
+ property :sys, as: 'sys'
321
247
  collection :values, as: 'values'
322
248
  property :iam, as: 'iam'
323
249
  property :op, as: 'op'
250
+ property :svc, as: 'svc'
324
251
  end
325
252
  end
326
253
 
@@ -354,6 +281,15 @@ module Google
354
281
  end
355
282
  end
356
283
 
284
+ class ListLocationsResponse
285
+ # @private
286
+ class Representation < Google::Apis::Core::JsonRepresentation
287
+ property :next_page_token, as: 'nextPageToken'
288
+ collection :locations, as: 'locations', class: Google::Apis::CloudkmsV1beta1::Location, decorator: Google::Apis::CloudkmsV1beta1::Location::Representation
289
+
290
+ end
291
+ end
292
+
357
293
  class Policy
358
294
  # @private
359
295
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -385,15 +321,6 @@ module Google
385
321
  end
386
322
  end
387
323
 
388
- class ListLocationsResponse
389
- # @private
390
- class Representation < Google::Apis::Core::JsonRepresentation
391
- property :next_page_token, as: 'nextPageToken'
392
- collection :locations, as: 'locations', class: Google::Apis::CloudkmsV1beta1::Location, decorator: Google::Apis::CloudkmsV1beta1::Location::Representation
393
-
394
- end
395
- end
396
-
397
324
  class UpdateCryptoKeyPrimaryVersionRequest
398
325
  # @private
399
326
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -416,10 +343,10 @@ module Google
416
343
  class ListKeyRingsResponse
417
344
  # @private
418
345
  class Representation < Google::Apis::Core::JsonRepresentation
419
- property :next_page_token, as: 'nextPageToken'
420
- property :total_size, as: 'totalSize'
421
346
  collection :key_rings, as: 'keyRings', class: Google::Apis::CloudkmsV1beta1::KeyRing, decorator: Google::Apis::CloudkmsV1beta1::KeyRing::Representation
422
347
 
348
+ property :next_page_token, as: 'nextPageToken'
349
+ property :total_size, as: 'totalSize'
423
350
  end
424
351
  end
425
352
 
@@ -443,6 +370,79 @@ module Google
443
370
  property :destroy_time, as: 'destroyTime'
444
371
  end
445
372
  end
373
+
374
+ class CloudAuditOptions
375
+ # @private
376
+ class Representation < Google::Apis::Core::JsonRepresentation
377
+ end
378
+ end
379
+
380
+ class Binding
381
+ # @private
382
+ class Representation < Google::Apis::Core::JsonRepresentation
383
+ collection :members, as: 'members'
384
+ property :role, as: 'role'
385
+ end
386
+ end
387
+
388
+ class EncryptRequest
389
+ # @private
390
+ class Representation < Google::Apis::Core::JsonRepresentation
391
+ property :plaintext, :base64 => true, as: 'plaintext'
392
+ property :additional_authenticated_data, :base64 => true, as: 'additionalAuthenticatedData'
393
+ end
394
+ end
395
+
396
+ class ListCryptoKeyVersionsResponse
397
+ # @private
398
+ class Representation < Google::Apis::Core::JsonRepresentation
399
+ collection :crypto_key_versions, as: 'cryptoKeyVersions', class: Google::Apis::CloudkmsV1beta1::CryptoKeyVersion, decorator: Google::Apis::CloudkmsV1beta1::CryptoKeyVersion::Representation
400
+
401
+ property :next_page_token, as: 'nextPageToken'
402
+ property :total_size, as: 'totalSize'
403
+ end
404
+ end
405
+
406
+ class TestIamPermissionsResponse
407
+ # @private
408
+ class Representation < Google::Apis::Core::JsonRepresentation
409
+ collection :permissions, as: 'permissions'
410
+ end
411
+ end
412
+
413
+ class DestroyCryptoKeyVersionRequest
414
+ # @private
415
+ class Representation < Google::Apis::Core::JsonRepresentation
416
+ end
417
+ end
418
+
419
+ class Rule
420
+ # @private
421
+ class Representation < Google::Apis::Core::JsonRepresentation
422
+ collection :not_in, as: 'notIn'
423
+ property :description, as: 'description'
424
+ collection :conditions, as: 'conditions', class: Google::Apis::CloudkmsV1beta1::Condition, decorator: Google::Apis::CloudkmsV1beta1::Condition::Representation
425
+
426
+ collection :log_config, as: 'logConfig', class: Google::Apis::CloudkmsV1beta1::LogConfig, decorator: Google::Apis::CloudkmsV1beta1::LogConfig::Representation
427
+
428
+ collection :in, as: 'in'
429
+ collection :permissions, as: 'permissions'
430
+ property :action, as: 'action'
431
+ end
432
+ end
433
+
434
+ class CryptoKey
435
+ # @private
436
+ class Representation < Google::Apis::Core::JsonRepresentation
437
+ property :create_time, as: 'createTime'
438
+ property :rotation_period, as: 'rotationPeriod'
439
+ property :primary, as: 'primary', class: Google::Apis::CloudkmsV1beta1::CryptoKeyVersion, decorator: Google::Apis::CloudkmsV1beta1::CryptoKeyVersion::Representation
440
+
441
+ property :name, as: 'name'
442
+ property :purpose, as: 'purpose'
443
+ property :next_rotation_time, as: 'nextRotationTime'
444
+ end
445
+ end
446
446
  end
447
447
  end
448
448
  end
@@ -20,9 +20,10 @@ require 'google/apis/errors'
20
20
  module Google
21
21
  module Apis
22
22
  module CloudkmsV1beta1
23
- # Google Cloud KMS API
23
+ # Google Cloud Key Management Service (KMS) API
24
24
  #
25
- #
25
+ # Manages encryption for your cloud services the same way you do on-premise. You
26
+ # can generate, use, rotate, and destroy AES256 encryption keys.
26
27
  #
27
28
  # @example
28
29
  # require 'google/apis/cloudkms_v1beta1'
@@ -119,14 +120,14 @@ module Google
119
120
  # @param [String] parent
120
121
  # Required. The resource name of the location associated with the
121
122
  # KeyRings, in the format `projects/*/locations/*`.
122
- # @param [String] page_token
123
- # Optional pagination token, returned earlier via
124
- # ListKeyRingsResponse.next_page_token.
125
123
  # @param [Fixnum] page_size
126
124
  # Optional limit on the number of KeyRings to include in the
127
125
  # response. Further KeyRings can subsequently be obtained by
128
126
  # including the ListKeyRingsResponse.next_page_token in a subsequent
129
127
  # request. If unspecified, the server will pick an appropriate default.
128
+ # @param [String] page_token
129
+ # Optional pagination token, returned earlier via
130
+ # ListKeyRingsResponse.next_page_token.
130
131
  # @param [String] fields
131
132
  # Selector specifying which fields to include in a partial response.
132
133
  # @param [String] quota_user
@@ -144,13 +145,13 @@ module Google
144
145
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
145
146
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
146
147
  # @raise [Google::Apis::AuthorizationError] Authorization is required
147
- def list_project_location_key_rings(parent, page_token: nil, page_size: nil, fields: nil, quota_user: nil, options: nil, &block)
148
+ def list_project_location_key_rings(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
148
149
  command = make_simple_command(:get, 'v1beta1/{+parent}/keyRings', options)
149
150
  command.response_representation = Google::Apis::CloudkmsV1beta1::ListKeyRingsResponse::Representation
150
151
  command.response_class = Google::Apis::CloudkmsV1beta1::ListKeyRingsResponse
151
152
  command.params['parent'] = parent unless parent.nil?
152
- command.query['pageToken'] = page_token unless page_token.nil?
153
153
  command.query['pageSize'] = page_size unless page_size.nil?
154
+ command.query['pageToken'] = page_token unless page_token.nil?
154
155
  command.query['fields'] = fields unless fields.nil?
155
156
  command.query['quotaUser'] = quota_user unless quota_user.nil?
156
157
  execute_or_queue_command(command, &block)
@@ -331,40 +332,6 @@ module Google
331
332
  execute_or_queue_command(command, &block)
332
333
  end
333
334
 
334
- # Gets the access control policy for a resource.
335
- # Returns an empty policy if the resource exists and does not have a policy
336
- # set.
337
- # @param [String] resource
338
- # REQUIRED: The resource for which the policy is being requested.
339
- # `resource` is usually specified as a path. For example, a Project
340
- # resource is specified as `projects/`project``.
341
- # @param [String] fields
342
- # Selector specifying which fields to include in a partial response.
343
- # @param [String] quota_user
344
- # Available to use for quota purposes for server-side applications. Can be any
345
- # arbitrary string assigned to a user, but should not exceed 40 characters.
346
- # @param [Google::Apis::RequestOptions] options
347
- # Request-specific options
348
- #
349
- # @yield [result, err] Result & error if block supplied
350
- # @yieldparam result [Google::Apis::CloudkmsV1beta1::Policy] parsed result object
351
- # @yieldparam err [StandardError] error object if request failed
352
- #
353
- # @return [Google::Apis::CloudkmsV1beta1::Policy]
354
- #
355
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
356
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
357
- # @raise [Google::Apis::AuthorizationError] Authorization is required
358
- def get_project_location_key_ring_crypto_key_iam_policy(resource, fields: nil, quota_user: nil, options: nil, &block)
359
- command = make_simple_command(:get, 'v1beta1/{+resource}:getIamPolicy', options)
360
- command.response_representation = Google::Apis::CloudkmsV1beta1::Policy::Representation
361
- command.response_class = Google::Apis::CloudkmsV1beta1::Policy
362
- command.params['resource'] = resource unless resource.nil?
363
- command.query['fields'] = fields unless fields.nil?
364
- command.query['quotaUser'] = quota_user unless quota_user.nil?
365
- execute_or_queue_command(command, &block)
366
- end
367
-
368
335
  # Returns metadata for a given CryptoKey, as well as its
369
336
  # primary CryptoKeyVersion.
370
337
  # @param [String] name
@@ -581,45 +548,6 @@ module Google
581
548
  execute_or_queue_command(command, &block)
582
549
  end
583
550
 
584
- # Create a new CryptoKey within a KeyRing.
585
- # CryptoKey.purpose is required.
586
- # @param [String] parent
587
- # Required. The name of the KeyRing associated with the
588
- # CryptoKeys.
589
- # @param [Google::Apis::CloudkmsV1beta1::CryptoKey] crypto_key_object
590
- # @param [String] crypto_key_id
591
- # Required. It must be unique within a KeyRing and match the regular
592
- # expression `[a-zA-Z0-9_-]`1,63``
593
- # @param [String] fields
594
- # Selector specifying which fields to include in a partial response.
595
- # @param [String] quota_user
596
- # Available to use for quota purposes for server-side applications. Can be any
597
- # arbitrary string assigned to a user, but should not exceed 40 characters.
598
- # @param [Google::Apis::RequestOptions] options
599
- # Request-specific options
600
- #
601
- # @yield [result, err] Result & error if block supplied
602
- # @yieldparam result [Google::Apis::CloudkmsV1beta1::CryptoKey] parsed result object
603
- # @yieldparam err [StandardError] error object if request failed
604
- #
605
- # @return [Google::Apis::CloudkmsV1beta1::CryptoKey]
606
- #
607
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
608
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
609
- # @raise [Google::Apis::AuthorizationError] Authorization is required
610
- def create_project_location_key_ring_crypto_key(parent, crypto_key_object = nil, crypto_key_id: nil, fields: nil, quota_user: nil, options: nil, &block)
611
- command = make_simple_command(:post, 'v1beta1/{+parent}/cryptoKeys', options)
612
- command.request_representation = Google::Apis::CloudkmsV1beta1::CryptoKey::Representation
613
- command.request_object = crypto_key_object
614
- command.response_representation = Google::Apis::CloudkmsV1beta1::CryptoKey::Representation
615
- command.response_class = Google::Apis::CloudkmsV1beta1::CryptoKey
616
- command.params['parent'] = parent unless parent.nil?
617
- command.query['cryptoKeyId'] = crypto_key_id unless crypto_key_id.nil?
618
- command.query['fields'] = fields unless fields.nil?
619
- command.query['quotaUser'] = quota_user unless quota_user.nil?
620
- execute_or_queue_command(command, &block)
621
- end
622
-
623
551
  # Sets the access control policy on the specified resource. Replaces any
624
552
  # existing policy.
625
553
  # @param [String] resource
@@ -656,10 +584,15 @@ module Google
656
584
  execute_or_queue_command(command, &block)
657
585
  end
658
586
 
659
- # Update the version of a CryptoKey that will be used in Encrypt
660
- # @param [String] name
661
- # The resource name of the CryptoKey to update.
662
- # @param [Google::Apis::CloudkmsV1beta1::UpdateCryptoKeyPrimaryVersionRequest] update_crypto_key_primary_version_request_object
587
+ # Create a new CryptoKey within a KeyRing.
588
+ # CryptoKey.purpose is required.
589
+ # @param [String] parent
590
+ # Required. The name of the KeyRing associated with the
591
+ # CryptoKeys.
592
+ # @param [Google::Apis::CloudkmsV1beta1::CryptoKey] crypto_key_object
593
+ # @param [String] crypto_key_id
594
+ # Required. It must be unique within a KeyRing and match the regular
595
+ # expression `[a-zA-Z0-9_-]`1,63``
663
596
  # @param [String] fields
664
597
  # Selector specifying which fields to include in a partial response.
665
598
  # @param [String] quota_user
@@ -677,31 +610,23 @@ module Google
677
610
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
678
611
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
679
612
  # @raise [Google::Apis::AuthorizationError] Authorization is required
680
- def update_project_location_key_ring_crypto_key_primary_version(name, update_crypto_key_primary_version_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
681
- command = make_simple_command(:post, 'v1beta1/{+name}:updatePrimaryVersion', options)
682
- command.request_representation = Google::Apis::CloudkmsV1beta1::UpdateCryptoKeyPrimaryVersionRequest::Representation
683
- command.request_object = update_crypto_key_primary_version_request_object
613
+ def create_project_location_key_ring_crypto_key(parent, crypto_key_object = nil, crypto_key_id: nil, fields: nil, quota_user: nil, options: nil, &block)
614
+ command = make_simple_command(:post, 'v1beta1/{+parent}/cryptoKeys', options)
615
+ command.request_representation = Google::Apis::CloudkmsV1beta1::CryptoKey::Representation
616
+ command.request_object = crypto_key_object
684
617
  command.response_representation = Google::Apis::CloudkmsV1beta1::CryptoKey::Representation
685
618
  command.response_class = Google::Apis::CloudkmsV1beta1::CryptoKey
686
- command.params['name'] = name unless name.nil?
619
+ command.params['parent'] = parent unless parent.nil?
620
+ command.query['cryptoKeyId'] = crypto_key_id unless crypto_key_id.nil?
687
621
  command.query['fields'] = fields unless fields.nil?
688
622
  command.query['quotaUser'] = quota_user unless quota_user.nil?
689
623
  execute_or_queue_command(command, &block)
690
624
  end
691
625
 
692
- # Lists CryptoKeyVersions.
693
- # @param [String] parent
694
- # Required. The resource name of the CryptoKey to list, in the format
695
- # `projects/*/locations/*/keyRings/*/cryptoKeys/*`.
696
- # @param [String] page_token
697
- # Optional pagination token, returned earlier via
698
- # ListCryptoKeyVersionsResponse.next_page_token.
699
- # @param [Fixnum] page_size
700
- # Optional limit on the number of CryptoKeyVersions to
701
- # include in the response. Further CryptoKeyVersions can
702
- # subsequently be obtained by including the
703
- # ListCryptoKeyVersionsResponse.next_page_token in a subsequent request.
704
- # If unspecified, the server will pick an appropriate default.
626
+ # Update the version of a CryptoKey that will be used in Encrypt
627
+ # @param [String] name
628
+ # The resource name of the CryptoKey to update.
629
+ # @param [Google::Apis::CloudkmsV1beta1::UpdateCryptoKeyPrimaryVersionRequest] update_crypto_key_primary_version_request_object
705
630
  # @param [String] fields
706
631
  # Selector specifying which fields to include in a partial response.
707
632
  # @param [String] quota_user
@@ -711,34 +636,33 @@ module Google
711
636
  # Request-specific options
712
637
  #
713
638
  # @yield [result, err] Result & error if block supplied
714
- # @yieldparam result [Google::Apis::CloudkmsV1beta1::ListCryptoKeyVersionsResponse] parsed result object
639
+ # @yieldparam result [Google::Apis::CloudkmsV1beta1::CryptoKey] parsed result object
715
640
  # @yieldparam err [StandardError] error object if request failed
716
641
  #
717
- # @return [Google::Apis::CloudkmsV1beta1::ListCryptoKeyVersionsResponse]
642
+ # @return [Google::Apis::CloudkmsV1beta1::CryptoKey]
718
643
  #
719
644
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
720
645
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
721
646
  # @raise [Google::Apis::AuthorizationError] Authorization is required
722
- def list_project_location_key_ring_crypto_key_crypto_key_versions(parent, page_token: nil, page_size: nil, fields: nil, quota_user: nil, options: nil, &block)
723
- command = make_simple_command(:get, 'v1beta1/{+parent}/cryptoKeyVersions', options)
724
- command.response_representation = Google::Apis::CloudkmsV1beta1::ListCryptoKeyVersionsResponse::Representation
725
- command.response_class = Google::Apis::CloudkmsV1beta1::ListCryptoKeyVersionsResponse
726
- command.params['parent'] = parent unless parent.nil?
727
- command.query['pageToken'] = page_token unless page_token.nil?
728
- command.query['pageSize'] = page_size unless page_size.nil?
647
+ def update_project_location_key_ring_crypto_key_primary_version(name, update_crypto_key_primary_version_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
648
+ command = make_simple_command(:post, 'v1beta1/{+name}:updatePrimaryVersion', options)
649
+ command.request_representation = Google::Apis::CloudkmsV1beta1::UpdateCryptoKeyPrimaryVersionRequest::Representation
650
+ command.request_object = update_crypto_key_primary_version_request_object
651
+ command.response_representation = Google::Apis::CloudkmsV1beta1::CryptoKey::Representation
652
+ command.response_class = Google::Apis::CloudkmsV1beta1::CryptoKey
653
+ command.params['name'] = name unless name.nil?
729
654
  command.query['fields'] = fields unless fields.nil?
730
655
  command.query['quotaUser'] = quota_user unless quota_user.nil?
731
656
  execute_or_queue_command(command, &block)
732
657
  end
733
658
 
734
- # Create a new CryptoKeyVersion in a CryptoKey.
735
- # The server will assign the next sequential id. If unset,
736
- # state will be set to
737
- # ENABLED.
738
- # @param [String] parent
739
- # Required. The name of the CryptoKey associated with
740
- # the CryptoKeyVersions.
741
- # @param [Google::Apis::CloudkmsV1beta1::CryptoKeyVersion] crypto_key_version_object
659
+ # Gets the access control policy for a resource.
660
+ # Returns an empty policy if the resource exists and does not have a policy
661
+ # set.
662
+ # @param [String] resource
663
+ # REQUIRED: The resource for which the policy is being requested.
664
+ # `resource` is usually specified as a path. For example, a Project
665
+ # resource is specified as `projects/`project``.
742
666
  # @param [String] fields
743
667
  # Selector specifying which fields to include in a partial response.
744
668
  # @param [String] quota_user
@@ -748,39 +672,33 @@ module Google
748
672
  # Request-specific options
749
673
  #
750
674
  # @yield [result, err] Result & error if block supplied
751
- # @yieldparam result [Google::Apis::CloudkmsV1beta1::CryptoKeyVersion] parsed result object
675
+ # @yieldparam result [Google::Apis::CloudkmsV1beta1::Policy] parsed result object
752
676
  # @yieldparam err [StandardError] error object if request failed
753
677
  #
754
- # @return [Google::Apis::CloudkmsV1beta1::CryptoKeyVersion]
678
+ # @return [Google::Apis::CloudkmsV1beta1::Policy]
755
679
  #
756
680
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
757
681
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
758
682
  # @raise [Google::Apis::AuthorizationError] Authorization is required
759
- def create_project_location_key_ring_crypto_key_crypto_key_version(parent, crypto_key_version_object = nil, fields: nil, quota_user: nil, options: nil, &block)
760
- command = make_simple_command(:post, 'v1beta1/{+parent}/cryptoKeyVersions', options)
761
- command.request_representation = Google::Apis::CloudkmsV1beta1::CryptoKeyVersion::Representation
762
- command.request_object = crypto_key_version_object
763
- command.response_representation = Google::Apis::CloudkmsV1beta1::CryptoKeyVersion::Representation
764
- command.response_class = Google::Apis::CloudkmsV1beta1::CryptoKeyVersion
765
- command.params['parent'] = parent unless parent.nil?
683
+ def get_project_location_key_ring_crypto_key_iam_policy(resource, fields: nil, quota_user: nil, options: nil, &block)
684
+ command = make_simple_command(:get, 'v1beta1/{+resource}:getIamPolicy', options)
685
+ command.response_representation = Google::Apis::CloudkmsV1beta1::Policy::Representation
686
+ command.response_class = Google::Apis::CloudkmsV1beta1::Policy
687
+ command.params['resource'] = resource unless resource.nil?
766
688
  command.query['fields'] = fields unless fields.nil?
767
689
  command.query['quotaUser'] = quota_user unless quota_user.nil?
768
690
  execute_or_queue_command(command, &block)
769
691
  end
770
692
 
771
- # Schedule a CryptoKeyVersion for destruction.
772
- # Upon calling this method, CryptoKeyVersion.state will be set to
773
- # DESTROY_SCHEDULED
774
- # and destroy_time will be set to a time 24
775
- # hours in the future, at which point the state
776
- # will be changed to
777
- # DESTROYED, and the key
778
- # material will be irrevocably destroyed.
779
- # Before the destroy_time is reached,
780
- # RestoreCryptoKeyVersion may be called to reverse the process.
693
+ # Restore a CryptoKeyVersion in the
694
+ # DESTROY_SCHEDULED,
695
+ # state.
696
+ # Upon restoration of the CryptoKeyVersion, state
697
+ # will be set to DISABLED,
698
+ # and destroy_time will be cleared.
781
699
  # @param [String] name
782
- # The resource name of the CryptoKeyVersion to destroy.
783
- # @param [Google::Apis::CloudkmsV1beta1::DestroyCryptoKeyVersionRequest] destroy_crypto_key_version_request_object
700
+ # The resource name of the CryptoKeyVersion to restore.
701
+ # @param [Google::Apis::CloudkmsV1beta1::RestoreCryptoKeyVersionRequest] restore_crypto_key_version_request_object
784
702
  # @param [String] fields
785
703
  # Selector specifying which fields to include in a partial response.
786
704
  # @param [String] quota_user
@@ -798,10 +716,10 @@ module Google
798
716
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
799
717
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
800
718
  # @raise [Google::Apis::AuthorizationError] Authorization is required
801
- def destroy_crypto_key_version(name, destroy_crypto_key_version_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
802
- command = make_simple_command(:post, 'v1beta1/{+name}:destroy', options)
803
- command.request_representation = Google::Apis::CloudkmsV1beta1::DestroyCryptoKeyVersionRequest::Representation
804
- command.request_object = destroy_crypto_key_version_request_object
719
+ def restore_crypto_key_version(name, restore_crypto_key_version_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
720
+ command = make_simple_command(:post, 'v1beta1/{+name}:restore', options)
721
+ command.request_representation = Google::Apis::CloudkmsV1beta1::RestoreCryptoKeyVersionRequest::Representation
722
+ command.request_object = restore_crypto_key_version_request_object
805
723
  command.response_representation = Google::Apis::CloudkmsV1beta1::CryptoKeyVersion::Representation
806
724
  command.response_class = Google::Apis::CloudkmsV1beta1::CryptoKeyVersion
807
725
  command.params['name'] = name unless name.nil?
@@ -810,15 +728,9 @@ module Google
810
728
  execute_or_queue_command(command, &block)
811
729
  end
812
730
 
813
- # Restore a CryptoKeyVersion in the
814
- # DESTROY_SCHEDULED,
815
- # state.
816
- # Upon restoration of the CryptoKeyVersion, state
817
- # will be set to DISABLED,
818
- # and destroy_time will be cleared.
731
+ # Returns metadata for a given CryptoKeyVersion.
819
732
  # @param [String] name
820
- # The resource name of the CryptoKeyVersion to restore.
821
- # @param [Google::Apis::CloudkmsV1beta1::RestoreCryptoKeyVersionRequest] restore_crypto_key_version_request_object
733
+ # The name of the CryptoKeyVersion to get.
822
734
  # @param [String] fields
823
735
  # Selector specifying which fields to include in a partial response.
824
736
  # @param [String] quota_user
@@ -836,10 +748,8 @@ module Google
836
748
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
837
749
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
838
750
  # @raise [Google::Apis::AuthorizationError] Authorization is required
839
- def restore_crypto_key_version(name, restore_crypto_key_version_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
840
- command = make_simple_command(:post, 'v1beta1/{+name}:restore', options)
841
- command.request_representation = Google::Apis::CloudkmsV1beta1::RestoreCryptoKeyVersionRequest::Representation
842
- command.request_object = restore_crypto_key_version_request_object
751
+ def get_project_location_key_ring_crypto_key_crypto_key_version(name, fields: nil, quota_user: nil, options: nil, &block)
752
+ command = make_simple_command(:get, 'v1beta1/{+name}', options)
843
753
  command.response_representation = Google::Apis::CloudkmsV1beta1::CryptoKeyVersion::Representation
844
754
  command.response_class = Google::Apis::CloudkmsV1beta1::CryptoKeyVersion
845
755
  command.params['name'] = name unless name.nil?
@@ -890,9 +800,61 @@ module Google
890
800
  execute_or_queue_command(command, &block)
891
801
  end
892
802
 
893
- # Returns metadata for a given CryptoKeyVersion.
803
+ # Lists CryptoKeyVersions.
804
+ # @param [String] parent
805
+ # Required. The resource name of the CryptoKey to list, in the format
806
+ # `projects/*/locations/*/keyRings/*/cryptoKeys/*`.
807
+ # @param [Fixnum] page_size
808
+ # Optional limit on the number of CryptoKeyVersions to
809
+ # include in the response. Further CryptoKeyVersions can
810
+ # subsequently be obtained by including the
811
+ # ListCryptoKeyVersionsResponse.next_page_token in a subsequent request.
812
+ # If unspecified, the server will pick an appropriate default.
813
+ # @param [String] page_token
814
+ # Optional pagination token, returned earlier via
815
+ # ListCryptoKeyVersionsResponse.next_page_token.
816
+ # @param [String] fields
817
+ # Selector specifying which fields to include in a partial response.
818
+ # @param [String] quota_user
819
+ # Available to use for quota purposes for server-side applications. Can be any
820
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
821
+ # @param [Google::Apis::RequestOptions] options
822
+ # Request-specific options
823
+ #
824
+ # @yield [result, err] Result & error if block supplied
825
+ # @yieldparam result [Google::Apis::CloudkmsV1beta1::ListCryptoKeyVersionsResponse] parsed result object
826
+ # @yieldparam err [StandardError] error object if request failed
827
+ #
828
+ # @return [Google::Apis::CloudkmsV1beta1::ListCryptoKeyVersionsResponse]
829
+ #
830
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
831
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
832
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
833
+ def list_project_location_key_ring_crypto_key_crypto_key_versions(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
834
+ command = make_simple_command(:get, 'v1beta1/{+parent}/cryptoKeyVersions', options)
835
+ command.response_representation = Google::Apis::CloudkmsV1beta1::ListCryptoKeyVersionsResponse::Representation
836
+ command.response_class = Google::Apis::CloudkmsV1beta1::ListCryptoKeyVersionsResponse
837
+ command.params['parent'] = parent unless parent.nil?
838
+ command.query['pageSize'] = page_size unless page_size.nil?
839
+ command.query['pageToken'] = page_token unless page_token.nil?
840
+ command.query['fields'] = fields unless fields.nil?
841
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
842
+ execute_or_queue_command(command, &block)
843
+ end
844
+
845
+ # Schedule a CryptoKeyVersion for destruction.
846
+ # Upon calling this method, CryptoKeyVersion.state will be set to
847
+ # DESTROY_SCHEDULED
848
+ # and destroy_time will be set to a time 24
849
+ # hours in the future, at which point the state
850
+ # will be changed to
851
+ # DESTROYED, and the key
852
+ # material will be irrevocably destroyed.
853
+ # Before the destroy_time is reached,
854
+ # RestoreCryptoKeyVersion may be called to reverse the process.
894
855
  # @param [String] name
895
- # The name of the CryptoKeyVersion to get.
856
+ # The resource name of the CryptoKeyVersion to destroy.
857
+ # @param [Google::Apis::CloudkmsV1beta1::DestroyCryptoKeyVersionRequest] destroy_crypto_key_version_request_object
896
858
  # @param [String] fields
897
859
  # Selector specifying which fields to include in a partial response.
898
860
  # @param [String] quota_user
@@ -910,8 +872,10 @@ module Google
910
872
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
911
873
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
912
874
  # @raise [Google::Apis::AuthorizationError] Authorization is required
913
- def get_project_location_key_ring_crypto_key_crypto_key_version(name, fields: nil, quota_user: nil, options: nil, &block)
914
- command = make_simple_command(:get, 'v1beta1/{+name}', options)
875
+ def destroy_crypto_key_version(name, destroy_crypto_key_version_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
876
+ command = make_simple_command(:post, 'v1beta1/{+name}:destroy', options)
877
+ command.request_representation = Google::Apis::CloudkmsV1beta1::DestroyCryptoKeyVersionRequest::Representation
878
+ command.request_object = destroy_crypto_key_version_request_object
915
879
  command.response_representation = Google::Apis::CloudkmsV1beta1::CryptoKeyVersion::Representation
916
880
  command.response_class = Google::Apis::CloudkmsV1beta1::CryptoKeyVersion
917
881
  command.params['name'] = name unless name.nil?
@@ -919,6 +883,43 @@ module Google
919
883
  command.query['quotaUser'] = quota_user unless quota_user.nil?
920
884
  execute_or_queue_command(command, &block)
921
885
  end
886
+
887
+ # Create a new CryptoKeyVersion in a CryptoKey.
888
+ # The server will assign the next sequential id. If unset,
889
+ # state will be set to
890
+ # ENABLED.
891
+ # @param [String] parent
892
+ # Required. The name of the CryptoKey associated with
893
+ # the CryptoKeyVersions.
894
+ # @param [Google::Apis::CloudkmsV1beta1::CryptoKeyVersion] crypto_key_version_object
895
+ # @param [String] fields
896
+ # Selector specifying which fields to include in a partial response.
897
+ # @param [String] quota_user
898
+ # Available to use for quota purposes for server-side applications. Can be any
899
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
900
+ # @param [Google::Apis::RequestOptions] options
901
+ # Request-specific options
902
+ #
903
+ # @yield [result, err] Result & error if block supplied
904
+ # @yieldparam result [Google::Apis::CloudkmsV1beta1::CryptoKeyVersion] parsed result object
905
+ # @yieldparam err [StandardError] error object if request failed
906
+ #
907
+ # @return [Google::Apis::CloudkmsV1beta1::CryptoKeyVersion]
908
+ #
909
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
910
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
911
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
912
+ def create_project_location_key_ring_crypto_key_crypto_key_version(parent, crypto_key_version_object = nil, fields: nil, quota_user: nil, options: nil, &block)
913
+ command = make_simple_command(:post, 'v1beta1/{+parent}/cryptoKeyVersions', options)
914
+ command.request_representation = Google::Apis::CloudkmsV1beta1::CryptoKeyVersion::Representation
915
+ command.request_object = crypto_key_version_object
916
+ command.response_representation = Google::Apis::CloudkmsV1beta1::CryptoKeyVersion::Representation
917
+ command.response_class = Google::Apis::CloudkmsV1beta1::CryptoKeyVersion
918
+ command.params['parent'] = parent unless parent.nil?
919
+ command.query['fields'] = fields unless fields.nil?
920
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
921
+ execute_or_queue_command(command, &block)
922
+ end
922
923
 
923
924
  protected
924
925