google-api-client 0.9.28 → 0.10.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (138) hide show
  1. checksums.yaml +4 -4
  2. data/.travis.yml +7 -4
  3. data/CHANGELOG.md +10 -0
  4. data/api_names.yaml +36512 -36326
  5. data/generated/google/apis/adexchangebuyer2_v2beta1.rb +1 -1
  6. data/generated/google/apis/adexchangebuyer2_v2beta1/classes.rb +41 -41
  7. data/generated/google/apis/adexchangebuyer2_v2beta1/representations.rb +13 -13
  8. data/generated/google/apis/adexchangebuyer2_v2beta1/service.rb +110 -110
  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/analyticsreporting_v4.rb +3 -3
  12. data/generated/google/apis/analyticsreporting_v4/classes.rb +845 -845
  13. data/generated/google/apis/analyticsreporting_v4/representations.rb +184 -184
  14. data/generated/google/apis/androidenterprise_v1.rb +1 -1
  15. data/generated/google/apis/androidenterprise_v1/classes.rb +5 -5
  16. data/generated/google/apis/androidenterprise_v1/service.rb +3 -1
  17. data/generated/google/apis/appstate_v1.rb +1 -1
  18. data/generated/google/apis/calendar_v3.rb +1 -1
  19. data/generated/google/apis/classroom_v1.rb +22 -25
  20. data/generated/google/apis/classroom_v1/classes.rb +998 -907
  21. data/generated/google/apis/classroom_v1/representations.rb +240 -240
  22. data/generated/google/apis/classroom_v1/service.rb +1269 -1061
  23. data/generated/google/apis/cloudbuild_v1.rb +1 -1
  24. data/generated/google/apis/cloudbuild_v1/classes.rb +322 -322
  25. data/generated/google/apis/cloudbuild_v1/representations.rb +88 -88
  26. data/generated/google/apis/cloudbuild_v1/service.rb +57 -57
  27. data/generated/google/apis/clouddebugger_v2.rb +4 -4
  28. data/generated/google/apis/clouddebugger_v2/classes.rb +311 -311
  29. data/generated/google/apis/clouddebugger_v2/representations.rb +92 -92
  30. data/generated/google/apis/clouddebugger_v2/service.rb +41 -41
  31. data/generated/google/apis/cloudkms_v1beta1.rb +1 -1
  32. data/generated/google/apis/cloudkms_v1beta1/classes.rb +611 -611
  33. data/generated/google/apis/cloudkms_v1beta1/representations.rb +124 -124
  34. data/generated/google/apis/cloudkms_v1beta1/service.rb +254 -248
  35. data/generated/google/apis/cloudresourcemanager_v1.rb +1 -1
  36. data/generated/google/apis/cloudresourcemanager_v1/classes.rb +116 -116
  37. data/generated/google/apis/cloudresourcemanager_v1/representations.rb +28 -28
  38. data/generated/google/apis/cloudresourcemanager_v1/service.rb +257 -257
  39. data/generated/google/apis/cloudresourcemanager_v1beta1.rb +4 -4
  40. data/generated/google/apis/cloudresourcemanager_v1beta1/classes.rb +394 -394
  41. data/generated/google/apis/cloudresourcemanager_v1beta1/representations.rb +79 -79
  42. data/generated/google/apis/cloudresourcemanager_v1beta1/service.rb +269 -269
  43. data/generated/google/apis/cloudtrace_v1.rb +8 -8
  44. data/generated/google/apis/cloudtrace_v1/classes.rb +90 -84
  45. data/generated/google/apis/cloudtrace_v1/representations.rb +22 -22
  46. data/generated/google/apis/cloudtrace_v1/service.rb +40 -35
  47. data/generated/google/apis/compute_beta.rb +1 -1
  48. data/generated/google/apis/compute_beta/classes.rb +406 -31
  49. data/generated/google/apis/compute_beta/representations.rb +154 -0
  50. data/generated/google/apis/compute_beta/service.rb +262 -9
  51. data/generated/google/apis/compute_v1.rb +1 -1
  52. data/generated/google/apis/compute_v1/classes.rb +17 -20
  53. data/generated/google/apis/content_v2.rb +1 -1
  54. data/generated/google/apis/dataflow_v1b3.rb +1 -1
  55. data/generated/google/apis/dataflow_v1b3/classes.rb +3226 -2847
  56. data/generated/google/apis/dataflow_v1b3/representations.rb +825 -677
  57. data/generated/google/apis/dataflow_v1b3/service.rb +175 -175
  58. data/generated/google/apis/dataproc_v1.rb +2 -2
  59. data/generated/google/apis/dataproc_v1/classes.rb +1213 -1136
  60. data/generated/google/apis/dataproc_v1/representations.rb +262 -244
  61. data/generated/google/apis/dataproc_v1/service.rb +298 -243
  62. data/generated/google/apis/datastore_v1.rb +4 -4
  63. data/generated/google/apis/datastore_v1/classes.rb +728 -728
  64. data/generated/google/apis/datastore_v1/representations.rb +167 -167
  65. data/generated/google/apis/datastore_v1/service.rb +68 -68
  66. data/generated/google/apis/doubleclicksearch_v2.rb +1 -1
  67. data/generated/google/apis/drive_v2.rb +1 -1
  68. data/generated/google/apis/drive_v3.rb +1 -1
  69. data/generated/google/apis/games_configuration_v1configuration.rb +1 -1
  70. data/generated/google/apis/games_management_v1management.rb +1 -1
  71. data/generated/google/apis/games_v1.rb +1 -1
  72. data/generated/google/apis/genomics_v1.rb +7 -7
  73. data/generated/google/apis/genomics_v1/classes.rb +932 -932
  74. data/generated/google/apis/genomics_v1/representations.rb +205 -205
  75. data/generated/google/apis/genomics_v1/service.rb +1228 -1228
  76. data/generated/google/apis/gmail_v1.rb +1 -1
  77. data/generated/google/apis/iam_v1/classes.rb +440 -440
  78. data/generated/google/apis/iam_v1/representations.rb +94 -94
  79. data/generated/google/apis/iam_v1/service.rb +60 -60
  80. data/generated/google/apis/identitytoolkit_v3.rb +1 -1
  81. data/generated/google/apis/identitytoolkit_v3/classes.rb +21 -1
  82. data/generated/google/apis/identitytoolkit_v3/representations.rb +3 -0
  83. data/generated/google/apis/kgsearch_v1/classes.rb +6 -6
  84. data/generated/google/apis/kgsearch_v1/representations.rb +1 -1
  85. data/generated/google/apis/kgsearch_v1/service.rb +21 -21
  86. data/generated/google/apis/language_v1beta1.rb +1 -1
  87. data/generated/google/apis/language_v1beta1/classes.rb +232 -232
  88. data/generated/google/apis/language_v1beta1/representations.rb +75 -75
  89. data/generated/google/apis/logging_v2beta1.rb +1 -1
  90. data/generated/google/apis/logging_v2beta1/classes.rb +345 -337
  91. data/generated/google/apis/logging_v2beta1/representations.rb +55 -55
  92. data/generated/google/apis/logging_v2beta1/service.rb +331 -306
  93. data/generated/google/apis/monitoring_v3.rb +1 -1
  94. data/generated/google/apis/monitoring_v3/classes.rb +253 -253
  95. data/generated/google/apis/monitoring_v3/representations.rb +58 -58
  96. data/generated/google/apis/monitoring_v3/service.rb +135 -135
  97. data/generated/google/apis/people_v1.rb +15 -16
  98. data/generated/google/apis/people_v1/classes.rb +985 -855
  99. data/generated/google/apis/people_v1/representations.rb +227 -220
  100. data/generated/google/apis/people_v1/service.rb +58 -52
  101. data/generated/google/apis/plus_domains_v1.rb +1 -1
  102. data/generated/google/apis/plus_v1.rb +1 -1
  103. data/generated/google/apis/pubsub_v1.rb +1 -1
  104. data/generated/google/apis/pubsub_v1/classes.rb +257 -257
  105. data/generated/google/apis/pubsub_v1/representations.rb +83 -83
  106. data/generated/google/apis/pubsub_v1/service.rb +390 -390
  107. data/generated/google/apis/script_v1.rb +17 -17
  108. data/generated/google/apis/script_v1/classes.rb +149 -141
  109. data/generated/google/apis/script_v1/representations.rb +26 -27
  110. data/generated/google/apis/script_v1/service.rb +9 -8
  111. data/generated/google/apis/sheets_v4.rb +1 -1
  112. data/generated/google/apis/sheets_v4/classes.rb +4223 -4188
  113. data/generated/google/apis/sheets_v4/representations.rb +850 -834
  114. data/generated/google/apis/sheets_v4/service.rb +192 -192
  115. data/generated/google/apis/slides_v1.rb +1 -1
  116. data/generated/google/apis/slides_v1/classes.rb +927 -800
  117. data/generated/google/apis/slides_v1/representations.rb +253 -211
  118. data/generated/google/apis/speech_v1beta1.rb +1 -1
  119. data/generated/google/apis/speech_v1beta1/classes.rb +94 -107
  120. data/generated/google/apis/speech_v1beta1/representations.rb +24 -36
  121. data/generated/google/apis/speech_v1beta1/service.rb +51 -54
  122. data/generated/google/apis/storage_v1.rb +1 -1
  123. data/generated/google/apis/vision_v1.rb +1 -1
  124. data/generated/google/apis/vision_v1/classes.rb +888 -885
  125. data/generated/google/apis/vision_v1/representations.rb +139 -139
  126. data/generated/google/apis/youtube_analytics_v1.rb +1 -1
  127. data/generated/google/apis/youtube_analytics_v1/service.rb +5 -1
  128. data/generated/google/apis/youtube_partner_v1.rb +1 -1
  129. data/generated/google/apis/youtubereporting_v1.rb +1 -1
  130. data/generated/google/apis/youtubereporting_v1/classes.rb +80 -80
  131. data/generated/google/apis/youtubereporting_v1/representations.rb +23 -23
  132. data/generated/google/apis/youtubereporting_v1/service.rb +51 -51
  133. data/google-api-client.gemspec +2 -2
  134. data/lib/google/apis/core/api_command.rb +1 -1
  135. data/lib/google/apis/core/json_representation.rb +2 -2
  136. data/lib/google/apis/version.rb +1 -1
  137. data/samples/cli/lib/samples/you_tube.rb +4 -1
  138. metadata +36 -30
@@ -22,54 +22,6 @@ module Google
22
22
  module Apis
23
23
  module CloudkmsV1beta1
24
24
 
25
- class LogConfig
26
- class Representation < Google::Apis::Core::JsonRepresentation; end
27
-
28
- include Google::Apis::Core::JsonObjectSupport
29
- end
30
-
31
- class SetIamPolicyRequest
32
- class Representation < Google::Apis::Core::JsonRepresentation; end
33
-
34
- include Google::Apis::Core::JsonObjectSupport
35
- end
36
-
37
- class DecryptRequest
38
- class Representation < Google::Apis::Core::JsonRepresentation; end
39
-
40
- include Google::Apis::Core::JsonObjectSupport
41
- end
42
-
43
- class Location
44
- class Representation < Google::Apis::Core::JsonRepresentation; end
45
-
46
- include Google::Apis::Core::JsonObjectSupport
47
- end
48
-
49
- class ListCryptoKeysResponse
50
- class Representation < Google::Apis::Core::JsonRepresentation; end
51
-
52
- include Google::Apis::Core::JsonObjectSupport
53
- end
54
-
55
- class Condition
56
- class Representation < Google::Apis::Core::JsonRepresentation; end
57
-
58
- include Google::Apis::Core::JsonObjectSupport
59
- end
60
-
61
- class CounterOptions
62
- class Representation < Google::Apis::Core::JsonRepresentation; end
63
-
64
- include Google::Apis::Core::JsonObjectSupport
65
- end
66
-
67
- class AuditLogConfig
68
- class Representation < Google::Apis::Core::JsonRepresentation; end
69
-
70
- include Google::Apis::Core::JsonObjectSupport
71
- end
72
-
73
25
  class DecryptResponse
74
26
  class Representation < Google::Apis::Core::JsonRepresentation; end
75
27
 
@@ -82,37 +34,37 @@ module Google
82
34
  include Google::Apis::Core::JsonObjectSupport
83
35
  end
84
36
 
85
- class ListLocationsResponse
37
+ class Policy
86
38
  class Representation < Google::Apis::Core::JsonRepresentation; end
87
39
 
88
40
  include Google::Apis::Core::JsonObjectSupport
89
41
  end
90
42
 
91
- class Policy
43
+ class EncryptResponse
92
44
  class Representation < Google::Apis::Core::JsonRepresentation; end
93
45
 
94
46
  include Google::Apis::Core::JsonObjectSupport
95
47
  end
96
48
 
97
- class EncryptResponse
49
+ class KeyRing
98
50
  class Representation < Google::Apis::Core::JsonRepresentation; end
99
51
 
100
52
  include Google::Apis::Core::JsonObjectSupport
101
53
  end
102
54
 
103
- class KeyRing
55
+ class ListLocationsResponse
104
56
  class Representation < Google::Apis::Core::JsonRepresentation; end
105
57
 
106
58
  include Google::Apis::Core::JsonObjectSupport
107
59
  end
108
60
 
109
- class UpdateCryptoKeyPrimaryVersionRequest
61
+ class RestoreCryptoKeyVersionRequest
110
62
  class Representation < Google::Apis::Core::JsonRepresentation; end
111
63
 
112
64
  include Google::Apis::Core::JsonObjectSupport
113
65
  end
114
66
 
115
- class RestoreCryptoKeyVersionRequest
67
+ class UpdateCryptoKeyPrimaryVersionRequest
116
68
  class Representation < Google::Apis::Core::JsonRepresentation; end
117
69
 
118
70
  include Google::Apis::Core::JsonObjectSupport
@@ -191,80 +143,51 @@ module Google
191
143
  end
192
144
 
193
145
  class LogConfig
194
- # @private
195
- class Representation < Google::Apis::Core::JsonRepresentation
196
- property :data_access, as: 'dataAccess', class: Google::Apis::CloudkmsV1beta1::DataAccessOptions, decorator: Google::Apis::CloudkmsV1beta1::DataAccessOptions::Representation
197
-
198
- property :cloud_audit, as: 'cloudAudit', class: Google::Apis::CloudkmsV1beta1::CloudAuditOptions, decorator: Google::Apis::CloudkmsV1beta1::CloudAuditOptions::Representation
199
-
200
- property :counter, as: 'counter', class: Google::Apis::CloudkmsV1beta1::CounterOptions, decorator: Google::Apis::CloudkmsV1beta1::CounterOptions::Representation
146
+ class Representation < Google::Apis::Core::JsonRepresentation; end
201
147
 
202
- end
148
+ include Google::Apis::Core::JsonObjectSupport
203
149
  end
204
150
 
205
151
  class SetIamPolicyRequest
206
- # @private
207
- class Representation < Google::Apis::Core::JsonRepresentation
208
- property :update_mask, as: 'updateMask'
209
- property :policy, as: 'policy', class: Google::Apis::CloudkmsV1beta1::Policy, decorator: Google::Apis::CloudkmsV1beta1::Policy::Representation
152
+ class Representation < Google::Apis::Core::JsonRepresentation; end
210
153
 
211
- end
154
+ include Google::Apis::Core::JsonObjectSupport
212
155
  end
213
156
 
214
157
  class DecryptRequest
215
- # @private
216
- class Representation < Google::Apis::Core::JsonRepresentation
217
- property :ciphertext, :base64 => true, as: 'ciphertext'
218
- property :additional_authenticated_data, :base64 => true, as: 'additionalAuthenticatedData'
219
- end
158
+ class Representation < Google::Apis::Core::JsonRepresentation; end
159
+
160
+ include Google::Apis::Core::JsonObjectSupport
220
161
  end
221
162
 
222
163
  class Location
223
- # @private
224
- class Representation < Google::Apis::Core::JsonRepresentation
225
- property :location_id, as: 'locationId'
226
- hash :metadata, as: 'metadata'
227
- hash :labels, as: 'labels'
228
- property :name, as: 'name'
229
- end
164
+ class Representation < Google::Apis::Core::JsonRepresentation; end
165
+
166
+ include Google::Apis::Core::JsonObjectSupport
230
167
  end
231
168
 
232
169
  class ListCryptoKeysResponse
233
- # @private
234
- class Representation < Google::Apis::Core::JsonRepresentation
235
- property :next_page_token, as: 'nextPageToken'
236
- collection :crypto_keys, as: 'cryptoKeys', class: Google::Apis::CloudkmsV1beta1::CryptoKey, decorator: Google::Apis::CloudkmsV1beta1::CryptoKey::Representation
170
+ class Representation < Google::Apis::Core::JsonRepresentation; end
237
171
 
238
- property :total_size, as: 'totalSize'
239
- end
172
+ include Google::Apis::Core::JsonObjectSupport
240
173
  end
241
174
 
242
175
  class Condition
243
- # @private
244
- class Representation < Google::Apis::Core::JsonRepresentation
245
- property :value, as: 'value'
246
- property :sys, as: 'sys'
247
- collection :values, as: 'values'
248
- property :iam, as: 'iam'
249
- property :op, as: 'op'
250
- property :svc, as: 'svc'
251
- end
176
+ class Representation < Google::Apis::Core::JsonRepresentation; end
177
+
178
+ include Google::Apis::Core::JsonObjectSupport
252
179
  end
253
180
 
254
181
  class CounterOptions
255
- # @private
256
- class Representation < Google::Apis::Core::JsonRepresentation
257
- property :metric, as: 'metric'
258
- property :field, as: 'field'
259
- end
182
+ class Representation < Google::Apis::Core::JsonRepresentation; end
183
+
184
+ include Google::Apis::Core::JsonObjectSupport
260
185
  end
261
186
 
262
187
  class AuditLogConfig
263
- # @private
264
- class Representation < Google::Apis::Core::JsonRepresentation
265
- collection :exempted_members, as: 'exemptedMembers'
266
- property :log_type, as: 'logType'
267
- end
188
+ class Representation < Google::Apis::Core::JsonRepresentation; end
189
+
190
+ include Google::Apis::Core::JsonObjectSupport
268
191
  end
269
192
 
270
193
  class DecryptResponse
@@ -281,15 +204,6 @@ module Google
281
204
  end
282
205
  end
283
206
 
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
-
293
207
  class Policy
294
208
  # @private
295
209
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -308,23 +222,25 @@ module Google
308
222
  class EncryptResponse
309
223
  # @private
310
224
  class Representation < Google::Apis::Core::JsonRepresentation
311
- property :ciphertext, :base64 => true, as: 'ciphertext'
312
225
  property :name, as: 'name'
226
+ property :ciphertext, :base64 => true, as: 'ciphertext'
313
227
  end
314
228
  end
315
229
 
316
230
  class KeyRing
317
231
  # @private
318
232
  class Representation < Google::Apis::Core::JsonRepresentation
319
- property :create_time, as: 'createTime'
320
233
  property :name, as: 'name'
234
+ property :create_time, as: 'createTime'
321
235
  end
322
236
  end
323
237
 
324
- class UpdateCryptoKeyPrimaryVersionRequest
238
+ class ListLocationsResponse
325
239
  # @private
326
240
  class Representation < Google::Apis::Core::JsonRepresentation
327
- property :crypto_key_version_id, as: 'cryptoKeyVersionId'
241
+ collection :locations, as: 'locations', class: Google::Apis::CloudkmsV1beta1::Location, decorator: Google::Apis::CloudkmsV1beta1::Location::Representation
242
+
243
+ property :next_page_token, as: 'nextPageToken'
328
244
  end
329
245
  end
330
246
 
@@ -334,6 +250,13 @@ module Google
334
250
  end
335
251
  end
336
252
 
253
+ class UpdateCryptoKeyPrimaryVersionRequest
254
+ # @private
255
+ class Representation < Google::Apis::Core::JsonRepresentation
256
+ property :crypto_key_version_id, as: 'cryptoKeyVersionId'
257
+ end
258
+ end
259
+
337
260
  class DataAccessOptions
338
261
  # @private
339
262
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -343,31 +266,31 @@ module Google
343
266
  class ListKeyRingsResponse
344
267
  # @private
345
268
  class Representation < Google::Apis::Core::JsonRepresentation
346
- collection :key_rings, as: 'keyRings', class: Google::Apis::CloudkmsV1beta1::KeyRing, decorator: Google::Apis::CloudkmsV1beta1::KeyRing::Representation
347
-
348
269
  property :next_page_token, as: 'nextPageToken'
349
270
  property :total_size, as: 'totalSize'
271
+ collection :key_rings, as: 'keyRings', class: Google::Apis::CloudkmsV1beta1::KeyRing, decorator: Google::Apis::CloudkmsV1beta1::KeyRing::Representation
272
+
350
273
  end
351
274
  end
352
275
 
353
276
  class AuditConfig
354
277
  # @private
355
278
  class Representation < Google::Apis::Core::JsonRepresentation
356
- collection :audit_log_configs, as: 'auditLogConfigs', class: Google::Apis::CloudkmsV1beta1::AuditLogConfig, decorator: Google::Apis::CloudkmsV1beta1::AuditLogConfig::Representation
357
-
358
279
  collection :exempted_members, as: 'exemptedMembers'
359
280
  property :service, as: 'service'
281
+ collection :audit_log_configs, as: 'auditLogConfigs', class: Google::Apis::CloudkmsV1beta1::AuditLogConfig, decorator: Google::Apis::CloudkmsV1beta1::AuditLogConfig::Representation
282
+
360
283
  end
361
284
  end
362
285
 
363
286
  class CryptoKeyVersion
364
287
  # @private
365
288
  class Representation < Google::Apis::Core::JsonRepresentation
289
+ property :destroy_time, as: 'destroyTime'
366
290
  property :create_time, as: 'createTime'
367
291
  property :state, as: 'state'
368
292
  property :name, as: 'name'
369
293
  property :destroy_event_time, as: 'destroyEventTime'
370
- property :destroy_time, as: 'destroyTime'
371
294
  end
372
295
  end
373
296
 
@@ -434,13 +357,90 @@ module Google
434
357
  class CryptoKey
435
358
  # @private
436
359
  class Representation < Google::Apis::Core::JsonRepresentation
360
+ property :purpose, as: 'purpose'
361
+ property :next_rotation_time, as: 'nextRotationTime'
437
362
  property :create_time, as: 'createTime'
438
363
  property :rotation_period, as: 'rotationPeriod'
439
364
  property :primary, as: 'primary', class: Google::Apis::CloudkmsV1beta1::CryptoKeyVersion, decorator: Google::Apis::CloudkmsV1beta1::CryptoKeyVersion::Representation
440
365
 
441
366
  property :name, as: 'name'
442
- property :purpose, as: 'purpose'
443
- property :next_rotation_time, as: 'nextRotationTime'
367
+ end
368
+ end
369
+
370
+ class LogConfig
371
+ # @private
372
+ class Representation < Google::Apis::Core::JsonRepresentation
373
+ property :cloud_audit, as: 'cloudAudit', class: Google::Apis::CloudkmsV1beta1::CloudAuditOptions, decorator: Google::Apis::CloudkmsV1beta1::CloudAuditOptions::Representation
374
+
375
+ property :counter, as: 'counter', class: Google::Apis::CloudkmsV1beta1::CounterOptions, decorator: Google::Apis::CloudkmsV1beta1::CounterOptions::Representation
376
+
377
+ property :data_access, as: 'dataAccess', class: Google::Apis::CloudkmsV1beta1::DataAccessOptions, decorator: Google::Apis::CloudkmsV1beta1::DataAccessOptions::Representation
378
+
379
+ end
380
+ end
381
+
382
+ class SetIamPolicyRequest
383
+ # @private
384
+ class Representation < Google::Apis::Core::JsonRepresentation
385
+ property :policy, as: 'policy', class: Google::Apis::CloudkmsV1beta1::Policy, decorator: Google::Apis::CloudkmsV1beta1::Policy::Representation
386
+
387
+ property :update_mask, as: 'updateMask'
388
+ end
389
+ end
390
+
391
+ class DecryptRequest
392
+ # @private
393
+ class Representation < Google::Apis::Core::JsonRepresentation
394
+ property :ciphertext, :base64 => true, as: 'ciphertext'
395
+ property :additional_authenticated_data, :base64 => true, as: 'additionalAuthenticatedData'
396
+ end
397
+ end
398
+
399
+ class Location
400
+ # @private
401
+ class Representation < Google::Apis::Core::JsonRepresentation
402
+ hash :labels, as: 'labels'
403
+ property :name, as: 'name'
404
+ property :location_id, as: 'locationId'
405
+ hash :metadata, as: 'metadata'
406
+ end
407
+ end
408
+
409
+ class ListCryptoKeysResponse
410
+ # @private
411
+ class Representation < Google::Apis::Core::JsonRepresentation
412
+ property :next_page_token, as: 'nextPageToken'
413
+ collection :crypto_keys, as: 'cryptoKeys', class: Google::Apis::CloudkmsV1beta1::CryptoKey, decorator: Google::Apis::CloudkmsV1beta1::CryptoKey::Representation
414
+
415
+ property :total_size, as: 'totalSize'
416
+ end
417
+ end
418
+
419
+ class Condition
420
+ # @private
421
+ class Representation < Google::Apis::Core::JsonRepresentation
422
+ property :op, as: 'op'
423
+ property :svc, as: 'svc'
424
+ property :sys, as: 'sys'
425
+ property :value, as: 'value'
426
+ property :iam, as: 'iam'
427
+ collection :values, as: 'values'
428
+ end
429
+ end
430
+
431
+ class CounterOptions
432
+ # @private
433
+ class Representation < Google::Apis::Core::JsonRepresentation
434
+ property :metric, as: 'metric'
435
+ property :field, as: 'field'
436
+ end
437
+ end
438
+
439
+ class AuditLogConfig
440
+ # @private
441
+ class Representation < Google::Apis::Core::JsonRepresentation
442
+ collection :exempted_members, as: 'exemptedMembers'
443
+ property :log_type, as: 'logType'
444
444
  end
445
445
  end
446
446
  end
@@ -50,12 +50,12 @@ module Google
50
50
  # Lists information about the supported locations for this service.
51
51
  # @param [String] name
52
52
  # The resource that owns the locations collection, if applicable.
53
- # @param [String] filter
54
- # The standard list filter.
55
53
  # @param [String] page_token
56
54
  # The standard list page token.
57
55
  # @param [Fixnum] page_size
58
56
  # The standard list page size.
57
+ # @param [String] filter
58
+ # The standard list filter.
59
59
  # @param [String] fields
60
60
  # Selector specifying which fields to include in a partial response.
61
61
  # @param [String] quota_user
@@ -73,14 +73,14 @@ module Google
73
73
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
74
74
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
75
75
  # @raise [Google::Apis::AuthorizationError] Authorization is required
76
- def list_project_locations(name, filter: nil, page_token: nil, page_size: nil, fields: nil, quota_user: nil, options: nil, &block)
76
+ def list_project_locations(name, page_token: nil, page_size: nil, filter: nil, fields: nil, quota_user: nil, options: nil, &block)
77
77
  command = make_simple_command(:get, 'v1beta1/{+name}/locations', options)
78
78
  command.response_representation = Google::Apis::CloudkmsV1beta1::ListLocationsResponse::Representation
79
79
  command.response_class = Google::Apis::CloudkmsV1beta1::ListLocationsResponse
80
80
  command.params['name'] = name unless name.nil?
81
- command.query['filter'] = filter unless filter.nil?
82
81
  command.query['pageToken'] = page_token unless page_token.nil?
83
82
  command.query['pageSize'] = page_size unless page_size.nil?
83
+ command.query['filter'] = filter unless filter.nil?
84
84
  command.query['fields'] = fields unless fields.nil?
85
85
  command.query['quotaUser'] = quota_user unless quota_user.nil?
86
86
  execute_or_queue_command(command, &block)
@@ -116,121 +116,6 @@ module Google
116
116
  execute_or_queue_command(command, &block)
117
117
  end
118
118
 
119
- # Lists KeyRings.
120
- # @param [String] parent
121
- # Required. The resource name of the location associated with the
122
- # KeyRings, in the format `projects/*/locations/*`.
123
- # @param [Fixnum] page_size
124
- # Optional limit on the number of KeyRings to include in the
125
- # response. Further KeyRings can subsequently be obtained by
126
- # including the ListKeyRingsResponse.next_page_token in a subsequent
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.
131
- # @param [String] fields
132
- # Selector specifying which fields to include in a partial response.
133
- # @param [String] quota_user
134
- # Available to use for quota purposes for server-side applications. Can be any
135
- # arbitrary string assigned to a user, but should not exceed 40 characters.
136
- # @param [Google::Apis::RequestOptions] options
137
- # Request-specific options
138
- #
139
- # @yield [result, err] Result & error if block supplied
140
- # @yieldparam result [Google::Apis::CloudkmsV1beta1::ListKeyRingsResponse] parsed result object
141
- # @yieldparam err [StandardError] error object if request failed
142
- #
143
- # @return [Google::Apis::CloudkmsV1beta1::ListKeyRingsResponse]
144
- #
145
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
146
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
147
- # @raise [Google::Apis::AuthorizationError] Authorization is required
148
- def list_project_location_key_rings(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
149
- command = make_simple_command(:get, 'v1beta1/{+parent}/keyRings', options)
150
- command.response_representation = Google::Apis::CloudkmsV1beta1::ListKeyRingsResponse::Representation
151
- command.response_class = Google::Apis::CloudkmsV1beta1::ListKeyRingsResponse
152
- command.params['parent'] = parent unless parent.nil?
153
- command.query['pageSize'] = page_size unless page_size.nil?
154
- command.query['pageToken'] = page_token unless page_token.nil?
155
- command.query['fields'] = fields unless fields.nil?
156
- command.query['quotaUser'] = quota_user unless quota_user.nil?
157
- execute_or_queue_command(command, &block)
158
- end
159
-
160
- # Sets the access control policy on the specified resource. Replaces any
161
- # existing policy.
162
- # @param [String] resource
163
- # REQUIRED: The resource for which the policy is being specified.
164
- # `resource` is usually specified as a path. For example, a Project
165
- # resource is specified as `projects/`project``.
166
- # @param [Google::Apis::CloudkmsV1beta1::SetIamPolicyRequest] set_iam_policy_request_object
167
- # @param [String] fields
168
- # Selector specifying which fields to include in a partial response.
169
- # @param [String] quota_user
170
- # Available to use for quota purposes for server-side applications. Can be any
171
- # arbitrary string assigned to a user, but should not exceed 40 characters.
172
- # @param [Google::Apis::RequestOptions] options
173
- # Request-specific options
174
- #
175
- # @yield [result, err] Result & error if block supplied
176
- # @yieldparam result [Google::Apis::CloudkmsV1beta1::Policy] parsed result object
177
- # @yieldparam err [StandardError] error object if request failed
178
- #
179
- # @return [Google::Apis::CloudkmsV1beta1::Policy]
180
- #
181
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
182
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
183
- # @raise [Google::Apis::AuthorizationError] Authorization is required
184
- def set_key_ring_iam_policy(resource, set_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
185
- command = make_simple_command(:post, 'v1beta1/{+resource}:setIamPolicy', options)
186
- command.request_representation = Google::Apis::CloudkmsV1beta1::SetIamPolicyRequest::Representation
187
- command.request_object = set_iam_policy_request_object
188
- command.response_representation = Google::Apis::CloudkmsV1beta1::Policy::Representation
189
- command.response_class = Google::Apis::CloudkmsV1beta1::Policy
190
- command.params['resource'] = resource unless resource.nil?
191
- command.query['fields'] = fields unless fields.nil?
192
- command.query['quotaUser'] = quota_user unless quota_user.nil?
193
- execute_or_queue_command(command, &block)
194
- end
195
-
196
- # Create a new KeyRing in a given Project and Location.
197
- # @param [String] parent
198
- # Required. The resource name of the location associated with the
199
- # KeyRings, in the format `projects/*/locations/*`.
200
- # @param [Google::Apis::CloudkmsV1beta1::KeyRing] key_ring_object
201
- # @param [String] key_ring_id
202
- # Required. It must be unique within a location and match the regular
203
- # expression `[a-zA-Z0-9_-]`1,63``
204
- # @param [String] fields
205
- # Selector specifying which fields to include in a partial response.
206
- # @param [String] quota_user
207
- # Available to use for quota purposes for server-side applications. Can be any
208
- # arbitrary string assigned to a user, but should not exceed 40 characters.
209
- # @param [Google::Apis::RequestOptions] options
210
- # Request-specific options
211
- #
212
- # @yield [result, err] Result & error if block supplied
213
- # @yieldparam result [Google::Apis::CloudkmsV1beta1::KeyRing] parsed result object
214
- # @yieldparam err [StandardError] error object if request failed
215
- #
216
- # @return [Google::Apis::CloudkmsV1beta1::KeyRing]
217
- #
218
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
219
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
220
- # @raise [Google::Apis::AuthorizationError] Authorization is required
221
- def create_project_location_key_ring(parent, key_ring_object = nil, key_ring_id: nil, fields: nil, quota_user: nil, options: nil, &block)
222
- command = make_simple_command(:post, 'v1beta1/{+parent}/keyRings', options)
223
- command.request_representation = Google::Apis::CloudkmsV1beta1::KeyRing::Representation
224
- command.request_object = key_ring_object
225
- command.response_representation = Google::Apis::CloudkmsV1beta1::KeyRing::Representation
226
- command.response_class = Google::Apis::CloudkmsV1beta1::KeyRing
227
- command.params['parent'] = parent unless parent.nil?
228
- command.query['keyRingId'] = key_ring_id unless key_ring_id.nil?
229
- command.query['fields'] = fields unless fields.nil?
230
- command.query['quotaUser'] = quota_user unless quota_user.nil?
231
- execute_or_queue_command(command, &block)
232
- end
233
-
234
119
  # Gets the access control policy for a resource.
235
120
  # Returns an empty policy if the resource exists and does not have a policy
236
121
  # set.
@@ -298,6 +183,9 @@ module Google
298
183
  # Returns permissions that a caller has on the specified resource.
299
184
  # If the resource does not exist, this will return an empty set of
300
185
  # permissions, not a NOT_FOUND error.
186
+ # Note: This operation is designed to be used for building permission-aware
187
+ # UIs and command-line tools, not for authorization checking. This operation
188
+ # may "fail open" without warning.
301
189
  # @param [String] resource
302
190
  # REQUIRED: The resource for which the policy detail is being requested.
303
191
  # `resource` is usually specified as a path. For example, a Project
@@ -332,44 +220,18 @@ module Google
332
220
  execute_or_queue_command(command, &block)
333
221
  end
334
222
 
335
- # Returns metadata for a given CryptoKey, as well as its
336
- # primary CryptoKeyVersion.
337
- # @param [String] name
338
- # The name of the CryptoKey to get.
339
- # @param [String] fields
340
- # Selector specifying which fields to include in a partial response.
341
- # @param [String] quota_user
342
- # Available to use for quota purposes for server-side applications. Can be any
343
- # arbitrary string assigned to a user, but should not exceed 40 characters.
344
- # @param [Google::Apis::RequestOptions] options
345
- # Request-specific options
346
- #
347
- # @yield [result, err] Result & error if block supplied
348
- # @yieldparam result [Google::Apis::CloudkmsV1beta1::CryptoKey] parsed result object
349
- # @yieldparam err [StandardError] error object if request failed
350
- #
351
- # @return [Google::Apis::CloudkmsV1beta1::CryptoKey]
352
- #
353
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
354
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
355
- # @raise [Google::Apis::AuthorizationError] Authorization is required
356
- def get_project_location_key_ring_crypto_key(name, fields: nil, quota_user: nil, options: nil, &block)
357
- command = make_simple_command(:get, 'v1beta1/{+name}', options)
358
- command.response_representation = Google::Apis::CloudkmsV1beta1::CryptoKey::Representation
359
- command.response_class = Google::Apis::CloudkmsV1beta1::CryptoKey
360
- command.params['name'] = name unless name.nil?
361
- command.query['fields'] = fields unless fields.nil?
362
- command.query['quotaUser'] = quota_user unless quota_user.nil?
363
- execute_or_queue_command(command, &block)
364
- end
365
-
366
- # Update a CryptoKey.
367
- # @param [String] name
368
- # Output only. The resource name for this CryptoKey in the format
369
- # `projects/*/locations/*/keyRings/*/cryptoKeys/*`.
370
- # @param [Google::Apis::CloudkmsV1beta1::CryptoKey] crypto_key_object
371
- # @param [String] update_mask
372
- # Required list of fields to be updated in this request.
223
+ # Lists KeyRings.
224
+ # @param [String] parent
225
+ # Required. The resource name of the location associated with the
226
+ # KeyRings, in the format `projects/*/locations/*`.
227
+ # @param [String] page_token
228
+ # Optional pagination token, returned earlier via
229
+ # ListKeyRingsResponse.next_page_token.
230
+ # @param [Fixnum] page_size
231
+ # Optional limit on the number of KeyRings to include in the
232
+ # response. Further KeyRings can subsequently be obtained by
233
+ # including the ListKeyRingsResponse.next_page_token in a subsequent
234
+ # request. If unspecified, the server will pick an appropriate default.
373
235
  # @param [String] fields
374
236
  # Selector specifying which fields to include in a partial response.
375
237
  # @param [String] quota_user
@@ -379,35 +241,33 @@ module Google
379
241
  # Request-specific options
380
242
  #
381
243
  # @yield [result, err] Result & error if block supplied
382
- # @yieldparam result [Google::Apis::CloudkmsV1beta1::CryptoKey] parsed result object
244
+ # @yieldparam result [Google::Apis::CloudkmsV1beta1::ListKeyRingsResponse] parsed result object
383
245
  # @yieldparam err [StandardError] error object if request failed
384
246
  #
385
- # @return [Google::Apis::CloudkmsV1beta1::CryptoKey]
247
+ # @return [Google::Apis::CloudkmsV1beta1::ListKeyRingsResponse]
386
248
  #
387
249
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
388
250
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
389
251
  # @raise [Google::Apis::AuthorizationError] Authorization is required
390
- def patch_project_location_key_ring_crypto_key(name, crypto_key_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
391
- command = make_simple_command(:patch, 'v1beta1/{+name}', options)
392
- command.request_representation = Google::Apis::CloudkmsV1beta1::CryptoKey::Representation
393
- command.request_object = crypto_key_object
394
- command.response_representation = Google::Apis::CloudkmsV1beta1::CryptoKey::Representation
395
- command.response_class = Google::Apis::CloudkmsV1beta1::CryptoKey
396
- command.params['name'] = name unless name.nil?
397
- command.query['updateMask'] = update_mask unless update_mask.nil?
252
+ def list_project_location_key_rings(parent, page_token: nil, page_size: nil, fields: nil, quota_user: nil, options: nil, &block)
253
+ command = make_simple_command(:get, 'v1beta1/{+parent}/keyRings', options)
254
+ command.response_representation = Google::Apis::CloudkmsV1beta1::ListKeyRingsResponse::Representation
255
+ command.response_class = Google::Apis::CloudkmsV1beta1::ListKeyRingsResponse
256
+ command.params['parent'] = parent unless parent.nil?
257
+ command.query['pageToken'] = page_token unless page_token.nil?
258
+ command.query['pageSize'] = page_size unless page_size.nil?
398
259
  command.query['fields'] = fields unless fields.nil?
399
260
  command.query['quotaUser'] = quota_user unless quota_user.nil?
400
261
  execute_or_queue_command(command, &block)
401
262
  end
402
263
 
403
- # Returns permissions that a caller has on the specified resource.
404
- # If the resource does not exist, this will return an empty set of
405
- # permissions, not a NOT_FOUND error.
264
+ # Sets the access control policy on the specified resource. Replaces any
265
+ # existing policy.
406
266
  # @param [String] resource
407
- # REQUIRED: The resource for which the policy detail is being requested.
267
+ # REQUIRED: The resource for which the policy is being specified.
408
268
  # `resource` is usually specified as a path. For example, a Project
409
269
  # resource is specified as `projects/`project``.
410
- # @param [Google::Apis::CloudkmsV1beta1::TestIamPermissionsRequest] test_iam_permissions_request_object
270
+ # @param [Google::Apis::CloudkmsV1beta1::SetIamPolicyRequest] set_iam_policy_request_object
411
271
  # @param [String] fields
412
272
  # Selector specifying which fields to include in a partial response.
413
273
  # @param [String] quota_user
@@ -417,31 +277,34 @@ module Google
417
277
  # Request-specific options
418
278
  #
419
279
  # @yield [result, err] Result & error if block supplied
420
- # @yieldparam result [Google::Apis::CloudkmsV1beta1::TestIamPermissionsResponse] parsed result object
280
+ # @yieldparam result [Google::Apis::CloudkmsV1beta1::Policy] parsed result object
421
281
  # @yieldparam err [StandardError] error object if request failed
422
282
  #
423
- # @return [Google::Apis::CloudkmsV1beta1::TestIamPermissionsResponse]
283
+ # @return [Google::Apis::CloudkmsV1beta1::Policy]
424
284
  #
425
285
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
426
286
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
427
287
  # @raise [Google::Apis::AuthorizationError] Authorization is required
428
- def test_crypto_key_iam_permissions(resource, test_iam_permissions_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
429
- command = make_simple_command(:post, 'v1beta1/{+resource}:testIamPermissions', options)
430
- command.request_representation = Google::Apis::CloudkmsV1beta1::TestIamPermissionsRequest::Representation
431
- command.request_object = test_iam_permissions_request_object
432
- command.response_representation = Google::Apis::CloudkmsV1beta1::TestIamPermissionsResponse::Representation
433
- command.response_class = Google::Apis::CloudkmsV1beta1::TestIamPermissionsResponse
288
+ def set_key_ring_iam_policy(resource, set_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
289
+ command = make_simple_command(:post, 'v1beta1/{+resource}:setIamPolicy', options)
290
+ command.request_representation = Google::Apis::CloudkmsV1beta1::SetIamPolicyRequest::Representation
291
+ command.request_object = set_iam_policy_request_object
292
+ command.response_representation = Google::Apis::CloudkmsV1beta1::Policy::Representation
293
+ command.response_class = Google::Apis::CloudkmsV1beta1::Policy
434
294
  command.params['resource'] = resource unless resource.nil?
435
295
  command.query['fields'] = fields unless fields.nil?
436
296
  command.query['quotaUser'] = quota_user unless quota_user.nil?
437
297
  execute_or_queue_command(command, &block)
438
298
  end
439
299
 
440
- # Decrypt data that was protected by Encrypt.
441
- # @param [String] name
442
- # Required. The resource name of the CryptoKey to use for decryption.
443
- # The server will choose the appropriate version.
444
- # @param [Google::Apis::CloudkmsV1beta1::DecryptRequest] decrypt_request_object
300
+ # Create a new KeyRing in a given Project and Location.
301
+ # @param [String] parent
302
+ # Required. The resource name of the location associated with the
303
+ # KeyRings, in the format `projects/*/locations/*`.
304
+ # @param [Google::Apis::CloudkmsV1beta1::KeyRing] key_ring_object
305
+ # @param [String] key_ring_id
306
+ # Required. It must be unique within a location and match the regular
307
+ # expression `[a-zA-Z0-9_-]`1,63``
445
308
  # @param [String] fields
446
309
  # Selector specifying which fields to include in a partial response.
447
310
  # @param [String] quota_user
@@ -451,21 +314,22 @@ module Google
451
314
  # Request-specific options
452
315
  #
453
316
  # @yield [result, err] Result & error if block supplied
454
- # @yieldparam result [Google::Apis::CloudkmsV1beta1::DecryptResponse] parsed result object
317
+ # @yieldparam result [Google::Apis::CloudkmsV1beta1::KeyRing] parsed result object
455
318
  # @yieldparam err [StandardError] error object if request failed
456
319
  #
457
- # @return [Google::Apis::CloudkmsV1beta1::DecryptResponse]
320
+ # @return [Google::Apis::CloudkmsV1beta1::KeyRing]
458
321
  #
459
322
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
460
323
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
461
324
  # @raise [Google::Apis::AuthorizationError] Authorization is required
462
- def decrypt_crypto_key(name, decrypt_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
463
- command = make_simple_command(:post, 'v1beta1/{+name}:decrypt', options)
464
- command.request_representation = Google::Apis::CloudkmsV1beta1::DecryptRequest::Representation
465
- command.request_object = decrypt_request_object
466
- command.response_representation = Google::Apis::CloudkmsV1beta1::DecryptResponse::Representation
467
- command.response_class = Google::Apis::CloudkmsV1beta1::DecryptResponse
468
- command.params['name'] = name unless name.nil?
325
+ def create_project_location_key_ring(parent, key_ring_object = nil, key_ring_id: nil, fields: nil, quota_user: nil, options: nil, &block)
326
+ command = make_simple_command(:post, 'v1beta1/{+parent}/keyRings', options)
327
+ command.request_representation = Google::Apis::CloudkmsV1beta1::KeyRing::Representation
328
+ command.request_object = key_ring_object
329
+ command.response_representation = Google::Apis::CloudkmsV1beta1::KeyRing::Representation
330
+ command.response_class = Google::Apis::CloudkmsV1beta1::KeyRing
331
+ command.params['parent'] = parent unless parent.nil?
332
+ command.query['keyRingId'] = key_ring_id unless key_ring_id.nil?
469
333
  command.query['fields'] = fields unless fields.nil?
470
334
  command.query['quotaUser'] = quota_user unless quota_user.nil?
471
335
  execute_or_queue_command(command, &block)
@@ -548,6 +412,45 @@ module Google
548
412
  execute_or_queue_command(command, &block)
549
413
  end
550
414
 
415
+ # Create a new CryptoKey within a KeyRing.
416
+ # CryptoKey.purpose is required.
417
+ # @param [String] parent
418
+ # Required. The name of the KeyRing associated with the
419
+ # CryptoKeys.
420
+ # @param [Google::Apis::CloudkmsV1beta1::CryptoKey] crypto_key_object
421
+ # @param [String] crypto_key_id
422
+ # Required. It must be unique within a KeyRing and match the regular
423
+ # expression `[a-zA-Z0-9_-]`1,63``
424
+ # @param [String] fields
425
+ # Selector specifying which fields to include in a partial response.
426
+ # @param [String] quota_user
427
+ # Available to use for quota purposes for server-side applications. Can be any
428
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
429
+ # @param [Google::Apis::RequestOptions] options
430
+ # Request-specific options
431
+ #
432
+ # @yield [result, err] Result & error if block supplied
433
+ # @yieldparam result [Google::Apis::CloudkmsV1beta1::CryptoKey] parsed result object
434
+ # @yieldparam err [StandardError] error object if request failed
435
+ #
436
+ # @return [Google::Apis::CloudkmsV1beta1::CryptoKey]
437
+ #
438
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
439
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
440
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
441
+ 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)
442
+ command = make_simple_command(:post, 'v1beta1/{+parent}/cryptoKeys', options)
443
+ command.request_representation = Google::Apis::CloudkmsV1beta1::CryptoKey::Representation
444
+ command.request_object = crypto_key_object
445
+ command.response_representation = Google::Apis::CloudkmsV1beta1::CryptoKey::Representation
446
+ command.response_class = Google::Apis::CloudkmsV1beta1::CryptoKey
447
+ command.params['parent'] = parent unless parent.nil?
448
+ command.query['cryptoKeyId'] = crypto_key_id unless crypto_key_id.nil?
449
+ command.query['fields'] = fields unless fields.nil?
450
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
451
+ execute_or_queue_command(command, &block)
452
+ end
453
+
551
454
  # Sets the access control policy on the specified resource. Replaces any
552
455
  # existing policy.
553
456
  # @param [String] resource
@@ -584,15 +487,80 @@ module Google
584
487
  execute_or_queue_command(command, &block)
585
488
  end
586
489
 
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.
490
+ # Update the version of a CryptoKey that will be used in Encrypt
491
+ # @param [String] name
492
+ # The resource name of the CryptoKey to update.
493
+ # @param [Google::Apis::CloudkmsV1beta1::UpdateCryptoKeyPrimaryVersionRequest] update_crypto_key_primary_version_request_object
494
+ # @param [String] fields
495
+ # Selector specifying which fields to include in a partial response.
496
+ # @param [String] quota_user
497
+ # Available to use for quota purposes for server-side applications. Can be any
498
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
499
+ # @param [Google::Apis::RequestOptions] options
500
+ # Request-specific options
501
+ #
502
+ # @yield [result, err] Result & error if block supplied
503
+ # @yieldparam result [Google::Apis::CloudkmsV1beta1::CryptoKey] parsed result object
504
+ # @yieldparam err [StandardError] error object if request failed
505
+ #
506
+ # @return [Google::Apis::CloudkmsV1beta1::CryptoKey]
507
+ #
508
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
509
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
510
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
511
+ 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)
512
+ command = make_simple_command(:post, 'v1beta1/{+name}:updatePrimaryVersion', options)
513
+ command.request_representation = Google::Apis::CloudkmsV1beta1::UpdateCryptoKeyPrimaryVersionRequest::Representation
514
+ command.request_object = update_crypto_key_primary_version_request_object
515
+ command.response_representation = Google::Apis::CloudkmsV1beta1::CryptoKey::Representation
516
+ command.response_class = Google::Apis::CloudkmsV1beta1::CryptoKey
517
+ command.params['name'] = name unless name.nil?
518
+ command.query['fields'] = fields unless fields.nil?
519
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
520
+ execute_or_queue_command(command, &block)
521
+ end
522
+
523
+ # Gets the access control policy for a resource.
524
+ # Returns an empty policy if the resource exists and does not have a policy
525
+ # set.
526
+ # @param [String] resource
527
+ # REQUIRED: The resource for which the policy is being requested.
528
+ # `resource` is usually specified as a path. For example, a Project
529
+ # resource is specified as `projects/`project``.
530
+ # @param [String] fields
531
+ # Selector specifying which fields to include in a partial response.
532
+ # @param [String] quota_user
533
+ # Available to use for quota purposes for server-side applications. Can be any
534
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
535
+ # @param [Google::Apis::RequestOptions] options
536
+ # Request-specific options
537
+ #
538
+ # @yield [result, err] Result & error if block supplied
539
+ # @yieldparam result [Google::Apis::CloudkmsV1beta1::Policy] parsed result object
540
+ # @yieldparam err [StandardError] error object if request failed
541
+ #
542
+ # @return [Google::Apis::CloudkmsV1beta1::Policy]
543
+ #
544
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
545
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
546
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
547
+ def get_project_location_key_ring_crypto_key_iam_policy(resource, fields: nil, quota_user: nil, options: nil, &block)
548
+ command = make_simple_command(:get, 'v1beta1/{+resource}:getIamPolicy', options)
549
+ command.response_representation = Google::Apis::CloudkmsV1beta1::Policy::Representation
550
+ command.response_class = Google::Apis::CloudkmsV1beta1::Policy
551
+ command.params['resource'] = resource unless resource.nil?
552
+ command.query['fields'] = fields unless fields.nil?
553
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
554
+ execute_or_queue_command(command, &block)
555
+ end
556
+
557
+ # Update a CryptoKey.
558
+ # @param [String] name
559
+ # Output only. The resource name for this CryptoKey in the format
560
+ # `projects/*/locations/*/keyRings/*/cryptoKeys/*`.
592
561
  # @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``
562
+ # @param [String] update_mask
563
+ # Required list of fields to be updated in this request.
596
564
  # @param [String] fields
597
565
  # Selector specifying which fields to include in a partial response.
598
566
  # @param [String] quota_user
@@ -610,23 +578,23 @@ module Google
610
578
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
611
579
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
612
580
  # @raise [Google::Apis::AuthorizationError] Authorization is required
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)
581
+ def patch_project_location_key_ring_crypto_key(name, crypto_key_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
582
+ command = make_simple_command(:patch, 'v1beta1/{+name}', options)
615
583
  command.request_representation = Google::Apis::CloudkmsV1beta1::CryptoKey::Representation
616
584
  command.request_object = crypto_key_object
617
585
  command.response_representation = Google::Apis::CloudkmsV1beta1::CryptoKey::Representation
618
586
  command.response_class = Google::Apis::CloudkmsV1beta1::CryptoKey
619
- command.params['parent'] = parent unless parent.nil?
620
- command.query['cryptoKeyId'] = crypto_key_id unless crypto_key_id.nil?
587
+ command.params['name'] = name unless name.nil?
588
+ command.query['updateMask'] = update_mask unless update_mask.nil?
621
589
  command.query['fields'] = fields unless fields.nil?
622
590
  command.query['quotaUser'] = quota_user unless quota_user.nil?
623
591
  execute_or_queue_command(command, &block)
624
592
  end
625
593
 
626
- # Update the version of a CryptoKey that will be used in Encrypt
594
+ # Returns metadata for a given CryptoKey, as well as its
595
+ # primary CryptoKeyVersion.
627
596
  # @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
597
+ # The name of the CryptoKey to get.
630
598
  # @param [String] fields
631
599
  # Selector specifying which fields to include in a partial response.
632
600
  # @param [String] quota_user
@@ -644,10 +612,8 @@ module Google
644
612
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
645
613
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
646
614
  # @raise [Google::Apis::AuthorizationError] Authorization is required
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
615
+ def get_project_location_key_ring_crypto_key(name, fields: nil, quota_user: nil, options: nil, &block)
616
+ command = make_simple_command(:get, 'v1beta1/{+name}', options)
651
617
  command.response_representation = Google::Apis::CloudkmsV1beta1::CryptoKey::Representation
652
618
  command.response_class = Google::Apis::CloudkmsV1beta1::CryptoKey
653
619
  command.params['name'] = name unless name.nil?
@@ -656,13 +622,17 @@ module Google
656
622
  execute_or_queue_command(command, &block)
657
623
  end
658
624
 
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.
625
+ # Returns permissions that a caller has on the specified resource.
626
+ # If the resource does not exist, this will return an empty set of
627
+ # permissions, not a NOT_FOUND error.
628
+ # Note: This operation is designed to be used for building permission-aware
629
+ # UIs and command-line tools, not for authorization checking. This operation
630
+ # may "fail open" without warning.
662
631
  # @param [String] resource
663
- # REQUIRED: The resource for which the policy is being requested.
632
+ # REQUIRED: The resource for which the policy detail is being requested.
664
633
  # `resource` is usually specified as a path. For example, a Project
665
634
  # resource is specified as `projects/`project``.
635
+ # @param [Google::Apis::CloudkmsV1beta1::TestIamPermissionsRequest] test_iam_permissions_request_object
666
636
  # @param [String] fields
667
637
  # Selector specifying which fields to include in a partial response.
668
638
  # @param [String] quota_user
@@ -672,33 +642,31 @@ module Google
672
642
  # Request-specific options
673
643
  #
674
644
  # @yield [result, err] Result & error if block supplied
675
- # @yieldparam result [Google::Apis::CloudkmsV1beta1::Policy] parsed result object
645
+ # @yieldparam result [Google::Apis::CloudkmsV1beta1::TestIamPermissionsResponse] parsed result object
676
646
  # @yieldparam err [StandardError] error object if request failed
677
647
  #
678
- # @return [Google::Apis::CloudkmsV1beta1::Policy]
648
+ # @return [Google::Apis::CloudkmsV1beta1::TestIamPermissionsResponse]
679
649
  #
680
650
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
681
651
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
682
652
  # @raise [Google::Apis::AuthorizationError] Authorization is required
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
653
+ def test_crypto_key_iam_permissions(resource, test_iam_permissions_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
654
+ command = make_simple_command(:post, 'v1beta1/{+resource}:testIamPermissions', options)
655
+ command.request_representation = Google::Apis::CloudkmsV1beta1::TestIamPermissionsRequest::Representation
656
+ command.request_object = test_iam_permissions_request_object
657
+ command.response_representation = Google::Apis::CloudkmsV1beta1::TestIamPermissionsResponse::Representation
658
+ command.response_class = Google::Apis::CloudkmsV1beta1::TestIamPermissionsResponse
687
659
  command.params['resource'] = resource unless resource.nil?
688
660
  command.query['fields'] = fields unless fields.nil?
689
661
  command.query['quotaUser'] = quota_user unless quota_user.nil?
690
662
  execute_or_queue_command(command, &block)
691
663
  end
692
664
 
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.
665
+ # Decrypt data that was protected by Encrypt.
699
666
  # @param [String] name
700
- # The resource name of the CryptoKeyVersion to restore.
701
- # @param [Google::Apis::CloudkmsV1beta1::RestoreCryptoKeyVersionRequest] restore_crypto_key_version_request_object
667
+ # Required. The resource name of the CryptoKey to use for decryption.
668
+ # The server will choose the appropriate version.
669
+ # @param [Google::Apis::CloudkmsV1beta1::DecryptRequest] decrypt_request_object
702
670
  # @param [String] fields
703
671
  # Selector specifying which fields to include in a partial response.
704
672
  # @param [String] quota_user
@@ -708,29 +676,35 @@ module Google
708
676
  # Request-specific options
709
677
  #
710
678
  # @yield [result, err] Result & error if block supplied
711
- # @yieldparam result [Google::Apis::CloudkmsV1beta1::CryptoKeyVersion] parsed result object
679
+ # @yieldparam result [Google::Apis::CloudkmsV1beta1::DecryptResponse] parsed result object
712
680
  # @yieldparam err [StandardError] error object if request failed
713
681
  #
714
- # @return [Google::Apis::CloudkmsV1beta1::CryptoKeyVersion]
682
+ # @return [Google::Apis::CloudkmsV1beta1::DecryptResponse]
715
683
  #
716
684
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
717
685
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
718
686
  # @raise [Google::Apis::AuthorizationError] Authorization is required
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
723
- command.response_representation = Google::Apis::CloudkmsV1beta1::CryptoKeyVersion::Representation
724
- command.response_class = Google::Apis::CloudkmsV1beta1::CryptoKeyVersion
687
+ def decrypt_crypto_key(name, decrypt_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
688
+ command = make_simple_command(:post, 'v1beta1/{+name}:decrypt', options)
689
+ command.request_representation = Google::Apis::CloudkmsV1beta1::DecryptRequest::Representation
690
+ command.request_object = decrypt_request_object
691
+ command.response_representation = Google::Apis::CloudkmsV1beta1::DecryptResponse::Representation
692
+ command.response_class = Google::Apis::CloudkmsV1beta1::DecryptResponse
725
693
  command.params['name'] = name unless name.nil?
726
694
  command.query['fields'] = fields unless fields.nil?
727
695
  command.query['quotaUser'] = quota_user unless quota_user.nil?
728
696
  execute_or_queue_command(command, &block)
729
697
  end
730
698
 
731
- # Returns metadata for a given CryptoKeyVersion.
699
+ # Restore a CryptoKeyVersion in the
700
+ # DESTROY_SCHEDULED,
701
+ # state.
702
+ # Upon restoration of the CryptoKeyVersion, state
703
+ # will be set to DISABLED,
704
+ # and destroy_time will be cleared.
732
705
  # @param [String] name
733
- # The name of the CryptoKeyVersion to get.
706
+ # The resource name of the CryptoKeyVersion to restore.
707
+ # @param [Google::Apis::CloudkmsV1beta1::RestoreCryptoKeyVersionRequest] restore_crypto_key_version_request_object
734
708
  # @param [String] fields
735
709
  # Selector specifying which fields to include in a partial response.
736
710
  # @param [String] quota_user
@@ -748,8 +722,10 @@ module Google
748
722
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
749
723
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
750
724
  # @raise [Google::Apis::AuthorizationError] Authorization is required
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)
725
+ def restore_crypto_key_version(name, restore_crypto_key_version_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
726
+ command = make_simple_command(:post, 'v1beta1/{+name}:restore', options)
727
+ command.request_representation = Google::Apis::CloudkmsV1beta1::RestoreCryptoKeyVersionRequest::Representation
728
+ command.request_object = restore_crypto_key_version_request_object
753
729
  command.response_representation = Google::Apis::CloudkmsV1beta1::CryptoKeyVersion::Representation
754
730
  command.response_class = Google::Apis::CloudkmsV1beta1::CryptoKeyVersion
755
731
  command.params['name'] = name unless name.nil?
@@ -800,19 +776,49 @@ module Google
800
776
  execute_or_queue_command(command, &block)
801
777
  end
802
778
 
779
+ # Returns metadata for a given CryptoKeyVersion.
780
+ # @param [String] name
781
+ # The name of the CryptoKeyVersion to get.
782
+ # @param [String] fields
783
+ # Selector specifying which fields to include in a partial response.
784
+ # @param [String] quota_user
785
+ # Available to use for quota purposes for server-side applications. Can be any
786
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
787
+ # @param [Google::Apis::RequestOptions] options
788
+ # Request-specific options
789
+ #
790
+ # @yield [result, err] Result & error if block supplied
791
+ # @yieldparam result [Google::Apis::CloudkmsV1beta1::CryptoKeyVersion] parsed result object
792
+ # @yieldparam err [StandardError] error object if request failed
793
+ #
794
+ # @return [Google::Apis::CloudkmsV1beta1::CryptoKeyVersion]
795
+ #
796
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
797
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
798
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
799
+ def get_project_location_key_ring_crypto_key_crypto_key_version(name, fields: nil, quota_user: nil, options: nil, &block)
800
+ command = make_simple_command(:get, 'v1beta1/{+name}', options)
801
+ command.response_representation = Google::Apis::CloudkmsV1beta1::CryptoKeyVersion::Representation
802
+ command.response_class = Google::Apis::CloudkmsV1beta1::CryptoKeyVersion
803
+ command.params['name'] = name unless name.nil?
804
+ command.query['fields'] = fields unless fields.nil?
805
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
806
+ execute_or_queue_command(command, &block)
807
+ end
808
+
803
809
  # Lists CryptoKeyVersions.
804
810
  # @param [String] parent
805
811
  # Required. The resource name of the CryptoKey to list, in the format
806
812
  # `projects/*/locations/*/keyRings/*/cryptoKeys/*`.
813
+ # @param [String] page_token
814
+ # Optional pagination token, returned earlier via
815
+ # ListCryptoKeyVersionsResponse.next_page_token.
807
816
  # @param [Fixnum] page_size
808
817
  # Optional limit on the number of CryptoKeyVersions to
809
818
  # include in the response. Further CryptoKeyVersions can
810
819
  # subsequently be obtained by including the
811
820
  # ListCryptoKeyVersionsResponse.next_page_token in a subsequent request.
812
821
  # 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
822
  # @param [String] fields
817
823
  # Selector specifying which fields to include in a partial response.
818
824
  # @param [String] quota_user
@@ -830,13 +836,13 @@ module Google
830
836
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
831
837
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
832
838
  # @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)
839
+ 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)
834
840
  command = make_simple_command(:get, 'v1beta1/{+parent}/cryptoKeyVersions', options)
835
841
  command.response_representation = Google::Apis::CloudkmsV1beta1::ListCryptoKeyVersionsResponse::Representation
836
842
  command.response_class = Google::Apis::CloudkmsV1beta1::ListCryptoKeyVersionsResponse
837
843
  command.params['parent'] = parent unless parent.nil?
838
- command.query['pageSize'] = page_size unless page_size.nil?
839
844
  command.query['pageToken'] = page_token unless page_token.nil?
845
+ command.query['pageSize'] = page_size unless page_size.nil?
840
846
  command.query['fields'] = fields unless fields.nil?
841
847
  command.query['quotaUser'] = quota_user unless quota_user.nil?
842
848
  execute_or_queue_command(command, &block)