google-api-client 0.30.3 → 0.30.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +43 -0
- data/generated/google/apis/admin_directory_v1/classes.rb +1 -1
- data/generated/google/apis/admin_reports_v1/classes.rb +1 -1
- data/generated/google/apis/bigquery_v2.rb +1 -1
- data/generated/google/apis/bigquery_v2/classes.rb +22 -7
- data/generated/google/apis/bigquery_v2/representations.rb +3 -0
- data/generated/google/apis/bigquery_v2/service.rb +4 -2
- data/generated/google/apis/calendar_v3.rb +1 -1
- data/generated/google/apis/calendar_v3/classes.rb +1 -1
- data/generated/google/apis/cloudasset_v1.rb +1 -1
- data/generated/google/apis/cloudasset_v1/classes.rb +345 -0
- data/generated/google/apis/cloudasset_v1/representations.rb +66 -0
- data/generated/google/apis/cloudbuild_v1.rb +1 -1
- data/generated/google/apis/cloudbuild_v1/classes.rb +1 -22
- data/generated/google/apis/cloudbuild_v1/representations.rb +0 -14
- data/generated/google/apis/cloudkms_v1.rb +1 -1
- data/generated/google/apis/cloudkms_v1/classes.rb +239 -1
- data/generated/google/apis/cloudkms_v1/representations.rb +71 -0
- data/generated/google/apis/cloudkms_v1/service.rb +215 -7
- data/generated/google/apis/cloudsearch_v1.rb +2 -2
- data/generated/google/apis/cloudsearch_v1/service.rb +1 -1
- data/generated/google/apis/compute_alpha.rb +1 -1
- data/generated/google/apis/compute_alpha/classes.rb +15 -13
- data/generated/google/apis/compute_alpha/service.rb +3 -2
- data/generated/google/apis/compute_beta.rb +1 -1
- data/generated/google/apis/compute_beta/classes.rb +15 -13
- data/generated/google/apis/compute_beta/service.rb +2 -1
- data/generated/google/apis/compute_v1.rb +1 -1
- data/generated/google/apis/compute_v1/classes.rb +15 -13
- data/generated/google/apis/compute_v1/service.rb +2 -1
- data/generated/google/apis/containeranalysis_v1alpha1.rb +1 -1
- data/generated/google/apis/dialogflow_v2.rb +1 -1
- data/generated/google/apis/dialogflow_v2/classes.rb +16 -0
- data/generated/google/apis/dialogflow_v2/representations.rb +1 -0
- data/generated/google/apis/dialogflow_v2beta1.rb +1 -1
- data/generated/google/apis/dialogflow_v2beta1/classes.rb +16 -0
- data/generated/google/apis/dialogflow_v2beta1/representations.rb +1 -0
- data/generated/google/apis/dialogflow_v2beta1/service.rb +2 -2
- data/generated/google/apis/dns_v1.rb +1 -1
- data/generated/google/apis/dns_v1/classes.rb +2 -2
- data/generated/google/apis/dns_v1/service.rb +1 -1
- data/generated/google/apis/dns_v1beta2.rb +1 -1
- data/generated/google/apis/dns_v1beta2/classes.rb +6 -7
- data/generated/google/apis/dns_v2beta1.rb +1 -1
- data/generated/google/apis/dns_v2beta1/classes.rb +2 -2
- data/generated/google/apis/doubleclickbidmanager_v1.rb +1 -1
- data/generated/google/apis/drive_v2.rb +1 -1
- data/generated/google/apis/drive_v2/classes.rb +1 -1
- data/generated/google/apis/drive_v2/service.rb +1 -1
- data/generated/google/apis/drive_v3.rb +1 -1
- data/generated/google/apis/drive_v3/classes.rb +1 -1
- data/generated/google/apis/drive_v3/service.rb +1 -1
- data/generated/google/apis/fcm_v1.rb +1 -1
- data/generated/google/apis/fcm_v1/classes.rb +3 -3
- data/generated/google/apis/firebase_v1beta1.rb +1 -1
- data/generated/google/apis/firebase_v1beta1/classes.rb +117 -24
- data/generated/google/apis/firebase_v1beta1/representations.rb +41 -0
- data/generated/google/apis/firebase_v1beta1/service.rb +139 -0
- data/generated/google/apis/genomics_v2alpha1.rb +1 -1
- data/generated/google/apis/genomics_v2alpha1/classes.rb +1 -0
- data/generated/google/apis/healthcare_v1alpha2.rb +1 -1
- data/generated/google/apis/healthcare_v1alpha2/classes.rb +28 -0
- data/generated/google/apis/healthcare_v1alpha2/representations.rb +15 -0
- data/generated/google/apis/healthcare_v1alpha2/service.rb +35 -5
- data/generated/google/apis/healthcare_v1beta1.rb +1 -1
- data/generated/google/apis/healthcare_v1beta1/service.rb +28 -4
- data/generated/google/apis/jobs_v3.rb +1 -1
- data/generated/google/apis/jobs_v3/classes.rb +10 -10
- data/generated/google/apis/jobs_v3p1beta1.rb +1 -1
- data/generated/google/apis/jobs_v3p1beta1/classes.rb +34 -98
- data/generated/google/apis/monitoring_v3.rb +1 -1
- data/generated/google/apis/monitoring_v3/classes.rb +30 -12
- data/generated/google/apis/pubsub_v1.rb +1 -1
- data/generated/google/apis/pubsub_v1/classes.rb +6 -10
- data/generated/google/apis/redis_v1.rb +1 -1
- data/generated/google/apis/redis_v1/classes.rb +8 -1
- data/generated/google/apis/redis_v1beta1.rb +1 -1
- data/generated/google/apis/redis_v1beta1/classes.rb +22 -2
- data/generated/google/apis/redis_v1beta1/representations.rb +13 -0
- data/generated/google/apis/redis_v1beta1/service.rb +36 -0
- data/generated/google/apis/run_v1alpha1.rb +1 -1
- data/generated/google/apis/run_v1alpha1/classes.rb +32 -4
- data/generated/google/apis/run_v1alpha1/representations.rb +3 -0
- data/generated/google/apis/sourcerepo_v1.rb +1 -1
- data/generated/google/apis/sourcerepo_v1/classes.rb +48 -75
- data/generated/google/apis/sourcerepo_v1/representations.rb +16 -0
- data/generated/google/apis/speech_v1.rb +1 -1
- data/generated/google/apis/speech_v1/service.rb +0 -32
- data/generated/google/apis/speech_v1p1beta1.rb +1 -1
- data/generated/google/apis/speech_v1p1beta1/service.rb +0 -32
- data/generated/google/apis/storage_v1.rb +1 -1
- data/generated/google/apis/storage_v1/classes.rb +41 -6
- data/generated/google/apis/storage_v1/representations.rb +17 -0
- data/generated/google/apis/storage_v1beta2.rb +1 -1
- data/generated/google/apis/storage_v1beta2/classes.rb +1 -1
- data/generated/google/apis/texttospeech_v1.rb +1 -1
- data/generated/google/apis/texttospeech_v1/classes.rb +3 -3
- data/generated/google/apis/texttospeech_v1beta1.rb +1 -1
- data/generated/google/apis/texttospeech_v1beta1/classes.rb +3 -3
- data/generated/google/apis/vault_v1.rb +1 -1
- data/generated/google/apis/vault_v1/classes.rb +8 -74
- data/generated/google/apis/videointelligence_v1beta2.rb +1 -1
- data/generated/google/apis/videointelligence_v1beta2/classes.rb +45 -35
- data/generated/google/apis/websecurityscanner_v1.rb +31 -0
- data/generated/google/apis/websecurityscanner_v1/classes.rb +26 -0
- data/generated/google/apis/websecurityscanner_v1/representations.rb +26 -0
- data/generated/google/apis/websecurityscanner_v1/service.rb +59 -0
- data/lib/google/apis/version.rb +1 -1
- metadata +6 -2
@@ -124,6 +124,18 @@ module Google
|
|
124
124
|
include Google::Apis::Core::JsonObjectSupport
|
125
125
|
end
|
126
126
|
|
127
|
+
class ImportCryptoKeyVersionRequest
|
128
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
129
|
+
|
130
|
+
include Google::Apis::Core::JsonObjectSupport
|
131
|
+
end
|
132
|
+
|
133
|
+
class ImportJob
|
134
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
135
|
+
|
136
|
+
include Google::Apis::Core::JsonObjectSupport
|
137
|
+
end
|
138
|
+
|
127
139
|
class KeyOperationAttestation
|
128
140
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
129
141
|
|
@@ -148,6 +160,12 @@ module Google
|
|
148
160
|
include Google::Apis::Core::JsonObjectSupport
|
149
161
|
end
|
150
162
|
|
163
|
+
class ListImportJobsResponse
|
164
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
165
|
+
|
166
|
+
include Google::Apis::Core::JsonObjectSupport
|
167
|
+
end
|
168
|
+
|
151
169
|
class ListKeyRingsResponse
|
152
170
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
153
171
|
|
@@ -214,6 +232,12 @@ module Google
|
|
214
232
|
include Google::Apis::Core::JsonObjectSupport
|
215
233
|
end
|
216
234
|
|
235
|
+
class WrappingPublicKey
|
236
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
237
|
+
|
238
|
+
include Google::Apis::Core::JsonObjectSupport
|
239
|
+
end
|
240
|
+
|
217
241
|
class AsymmetricDecryptRequest
|
218
242
|
# @private
|
219
243
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -296,6 +320,9 @@ module Google
|
|
296
320
|
property :destroy_event_time, as: 'destroyEventTime'
|
297
321
|
property :destroy_time, as: 'destroyTime'
|
298
322
|
property :generate_time, as: 'generateTime'
|
323
|
+
property :import_failure_reason, as: 'importFailureReason'
|
324
|
+
property :import_job, as: 'importJob'
|
325
|
+
property :import_time, as: 'importTime'
|
299
326
|
property :name, as: 'name'
|
300
327
|
property :protection_level, as: 'protectionLevel'
|
301
328
|
property :state, as: 'state'
|
@@ -366,6 +393,33 @@ module Google
|
|
366
393
|
end
|
367
394
|
end
|
368
395
|
|
396
|
+
class ImportCryptoKeyVersionRequest
|
397
|
+
# @private
|
398
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
399
|
+
property :algorithm, as: 'algorithm'
|
400
|
+
property :import_job, as: 'importJob'
|
401
|
+
property :rsa_aes_wrapped_key, :base64 => true, as: 'rsaAesWrappedKey'
|
402
|
+
end
|
403
|
+
end
|
404
|
+
|
405
|
+
class ImportJob
|
406
|
+
# @private
|
407
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
408
|
+
property :attestation, as: 'attestation', class: Google::Apis::CloudkmsV1::KeyOperationAttestation, decorator: Google::Apis::CloudkmsV1::KeyOperationAttestation::Representation
|
409
|
+
|
410
|
+
property :create_time, as: 'createTime'
|
411
|
+
property :expire_event_time, as: 'expireEventTime'
|
412
|
+
property :expire_time, as: 'expireTime'
|
413
|
+
property :generate_time, as: 'generateTime'
|
414
|
+
property :import_method, as: 'importMethod'
|
415
|
+
property :name, as: 'name'
|
416
|
+
property :protection_level, as: 'protectionLevel'
|
417
|
+
property :public_key, as: 'publicKey', class: Google::Apis::CloudkmsV1::WrappingPublicKey, decorator: Google::Apis::CloudkmsV1::WrappingPublicKey::Representation
|
418
|
+
|
419
|
+
property :state, as: 'state'
|
420
|
+
end
|
421
|
+
end
|
422
|
+
|
369
423
|
class KeyOperationAttestation
|
370
424
|
# @private
|
371
425
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -402,6 +456,16 @@ module Google
|
|
402
456
|
end
|
403
457
|
end
|
404
458
|
|
459
|
+
class ListImportJobsResponse
|
460
|
+
# @private
|
461
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
462
|
+
collection :import_jobs, as: 'importJobs', class: Google::Apis::CloudkmsV1::ImportJob, decorator: Google::Apis::CloudkmsV1::ImportJob::Representation
|
463
|
+
|
464
|
+
property :next_page_token, as: 'nextPageToken'
|
465
|
+
property :total_size, as: 'totalSize'
|
466
|
+
end
|
467
|
+
end
|
468
|
+
|
405
469
|
class ListKeyRingsResponse
|
406
470
|
# @private
|
407
471
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -494,6 +558,13 @@ module Google
|
|
494
558
|
property :crypto_key_version_id, as: 'cryptoKeyVersionId'
|
495
559
|
end
|
496
560
|
end
|
561
|
+
|
562
|
+
class WrappingPublicKey
|
563
|
+
# @private
|
564
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
565
|
+
property :pem, as: 'pem'
|
566
|
+
end
|
567
|
+
end
|
497
568
|
end
|
498
569
|
end
|
499
570
|
end
|
@@ -191,6 +191,11 @@ module Google
|
|
191
191
|
# @param [String] resource
|
192
192
|
# REQUIRED: The resource for which the policy is being requested.
|
193
193
|
# See the operation documentation for the appropriate value for this field.
|
194
|
+
# @param [Fixnum] options_requested_policy_version
|
195
|
+
# Optional. The policy format version to be returned.
|
196
|
+
# Acceptable values are 0 and 1.
|
197
|
+
# If the value is 0, or the field is omitted, policy format version 1 will be
|
198
|
+
# returned.
|
194
199
|
# @param [String] fields
|
195
200
|
# Selector specifying which fields to include in a partial response.
|
196
201
|
# @param [String] quota_user
|
@@ -208,11 +213,12 @@ module Google
|
|
208
213
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
209
214
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
210
215
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
211
|
-
def get_project_location_key_ring_iam_policy(resource, fields: nil, quota_user: nil, options: nil, &block)
|
216
|
+
def get_project_location_key_ring_iam_policy(resource, options_requested_policy_version: nil, fields: nil, quota_user: nil, options: nil, &block)
|
212
217
|
command = make_simple_command(:get, 'v1/{+resource}:getIamPolicy', options)
|
213
218
|
command.response_representation = Google::Apis::CloudkmsV1::Policy::Representation
|
214
219
|
command.response_class = Google::Apis::CloudkmsV1::Policy
|
215
220
|
command.params['resource'] = resource unless resource.nil?
|
221
|
+
command.query['options.requestedPolicyVersion'] = options_requested_policy_version unless options_requested_policy_version.nil?
|
216
222
|
command.query['fields'] = fields unless fields.nil?
|
217
223
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
218
224
|
execute_or_queue_command(command, &block)
|
@@ -222,6 +228,13 @@ module Google
|
|
222
228
|
# @param [String] parent
|
223
229
|
# Required. The resource name of the location associated with the
|
224
230
|
# KeyRings, in the format `projects/*/locations/*`.
|
231
|
+
# @param [String] filter
|
232
|
+
# Optional. Only include resources that match the filter in the response
|
233
|
+
# (https://cloud.google.com/kms/docs/sorting-and-filtering).
|
234
|
+
# @param [String] order_by
|
235
|
+
# Optional. Specify how the results should be sorted. If not specified, the
|
236
|
+
# results will be sorted in the default order
|
237
|
+
# (https://cloud.google.com/kms/docs/sorting-and-filtering).
|
225
238
|
# @param [Fixnum] page_size
|
226
239
|
# Optional limit on the number of KeyRings to include in the
|
227
240
|
# response. Further KeyRings can subsequently be obtained by
|
@@ -247,11 +260,13 @@ module Google
|
|
247
260
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
248
261
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
249
262
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
250
|
-
def list_project_location_key_rings(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
263
|
+
def list_project_location_key_rings(parent, filter: nil, order_by: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
251
264
|
command = make_simple_command(:get, 'v1/{+parent}/keyRings', options)
|
252
265
|
command.response_representation = Google::Apis::CloudkmsV1::ListKeyRingsResponse::Representation
|
253
266
|
command.response_class = Google::Apis::CloudkmsV1::ListKeyRingsResponse
|
254
267
|
command.params['parent'] = parent unless parent.nil?
|
268
|
+
command.query['filter'] = filter unless filter.nil?
|
269
|
+
command.query['orderBy'] = order_by unless order_by.nil?
|
255
270
|
command.query['pageSize'] = page_size unless page_size.nil?
|
256
271
|
command.query['pageToken'] = page_token unless page_token.nil?
|
257
272
|
command.query['fields'] = fields unless fields.nil?
|
@@ -344,6 +359,12 @@ module Google
|
|
344
359
|
# @param [String] crypto_key_id
|
345
360
|
# Required. It must be unique within a KeyRing and match the regular
|
346
361
|
# expression `[a-zA-Z0-9_-]`1,63``
|
362
|
+
# @param [Boolean] skip_initial_version_creation
|
363
|
+
# If set to true, the request will create a CryptoKey without any
|
364
|
+
# CryptoKeyVersions. You must manually call
|
365
|
+
# CreateCryptoKeyVersion or
|
366
|
+
# ImportCryptoKeyVersion
|
367
|
+
# before you can use this CryptoKey.
|
347
368
|
# @param [String] fields
|
348
369
|
# Selector specifying which fields to include in a partial response.
|
349
370
|
# @param [String] quota_user
|
@@ -361,7 +382,7 @@ module Google
|
|
361
382
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
362
383
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
363
384
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
364
|
-
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)
|
385
|
+
def create_project_location_key_ring_crypto_key(parent, crypto_key_object = nil, crypto_key_id: nil, skip_initial_version_creation: nil, fields: nil, quota_user: nil, options: nil, &block)
|
365
386
|
command = make_simple_command(:post, 'v1/{+parent}/cryptoKeys', options)
|
366
387
|
command.request_representation = Google::Apis::CloudkmsV1::CryptoKey::Representation
|
367
388
|
command.request_object = crypto_key_object
|
@@ -369,6 +390,7 @@ module Google
|
|
369
390
|
command.response_class = Google::Apis::CloudkmsV1::CryptoKey
|
370
391
|
command.params['parent'] = parent unless parent.nil?
|
371
392
|
command.query['cryptoKeyId'] = crypto_key_id unless crypto_key_id.nil?
|
393
|
+
command.query['skipInitialVersionCreation'] = skip_initial_version_creation unless skip_initial_version_creation.nil?
|
372
394
|
command.query['fields'] = fields unless fields.nil?
|
373
395
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
374
396
|
execute_or_queue_command(command, &block)
|
@@ -484,6 +506,11 @@ module Google
|
|
484
506
|
# @param [String] resource
|
485
507
|
# REQUIRED: The resource for which the policy is being requested.
|
486
508
|
# See the operation documentation for the appropriate value for this field.
|
509
|
+
# @param [Fixnum] options_requested_policy_version
|
510
|
+
# Optional. The policy format version to be returned.
|
511
|
+
# Acceptable values are 0 and 1.
|
512
|
+
# If the value is 0, or the field is omitted, policy format version 1 will be
|
513
|
+
# returned.
|
487
514
|
# @param [String] fields
|
488
515
|
# Selector specifying which fields to include in a partial response.
|
489
516
|
# @param [String] quota_user
|
@@ -501,11 +528,12 @@ module Google
|
|
501
528
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
502
529
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
503
530
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
504
|
-
def get_project_location_key_ring_crypto_key_iam_policy(resource, fields: nil, quota_user: nil, options: nil, &block)
|
531
|
+
def get_project_location_key_ring_crypto_key_iam_policy(resource, options_requested_policy_version: nil, fields: nil, quota_user: nil, options: nil, &block)
|
505
532
|
command = make_simple_command(:get, 'v1/{+resource}:getIamPolicy', options)
|
506
533
|
command.response_representation = Google::Apis::CloudkmsV1::Policy::Representation
|
507
534
|
command.response_class = Google::Apis::CloudkmsV1::Policy
|
508
535
|
command.params['resource'] = resource unless resource.nil?
|
536
|
+
command.query['options.requestedPolicyVersion'] = options_requested_policy_version unless options_requested_policy_version.nil?
|
509
537
|
command.query['fields'] = fields unless fields.nil?
|
510
538
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
511
539
|
execute_or_queue_command(command, &block)
|
@@ -515,6 +543,13 @@ module Google
|
|
515
543
|
# @param [String] parent
|
516
544
|
# Required. The resource name of the KeyRing to list, in the format
|
517
545
|
# `projects/*/locations/*/keyRings/*`.
|
546
|
+
# @param [String] filter
|
547
|
+
# Optional. Only include resources that match the filter in the response
|
548
|
+
# (https://cloud.google.com/kms/docs/sorting-and-filtering).
|
549
|
+
# @param [String] order_by
|
550
|
+
# Optional. Specify how the results should be sorted. If not specified, the
|
551
|
+
# results will be sorted in the default order
|
552
|
+
# (https://cloud.google.com/kms/docs/sorting-and-filtering).
|
518
553
|
# @param [Fixnum] page_size
|
519
554
|
# Optional limit on the number of CryptoKeys to include in the
|
520
555
|
# response. Further CryptoKeys can subsequently be obtained by
|
@@ -542,11 +577,13 @@ module Google
|
|
542
577
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
543
578
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
544
579
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
545
|
-
def list_project_location_key_ring_crypto_keys(parent, page_size: nil, page_token: nil, version_view: nil, fields: nil, quota_user: nil, options: nil, &block)
|
580
|
+
def list_project_location_key_ring_crypto_keys(parent, filter: nil, order_by: nil, page_size: nil, page_token: nil, version_view: nil, fields: nil, quota_user: nil, options: nil, &block)
|
546
581
|
command = make_simple_command(:get, 'v1/{+parent}/cryptoKeys', options)
|
547
582
|
command.response_representation = Google::Apis::CloudkmsV1::ListCryptoKeysResponse::Representation
|
548
583
|
command.response_class = Google::Apis::CloudkmsV1::ListCryptoKeysResponse
|
549
584
|
command.params['parent'] = parent unless parent.nil?
|
585
|
+
command.query['filter'] = filter unless filter.nil?
|
586
|
+
command.query['orderBy'] = order_by unless order_by.nil?
|
550
587
|
command.query['pageSize'] = page_size unless page_size.nil?
|
551
588
|
command.query['pageToken'] = page_token unless page_token.nil?
|
552
589
|
command.query['versionView'] = version_view unless version_view.nil?
|
@@ -914,10 +951,54 @@ module Google
|
|
914
951
|
execute_or_queue_command(command, &block)
|
915
952
|
end
|
916
953
|
|
954
|
+
# Imports a new CryptoKeyVersion into an existing CryptoKey using the
|
955
|
+
# wrapped key material provided in the request.
|
956
|
+
# The version ID will be assigned the next sequential id within the
|
957
|
+
# CryptoKey.
|
958
|
+
# @param [String] parent
|
959
|
+
# Required. The name of the CryptoKey to
|
960
|
+
# be imported into.
|
961
|
+
# @param [Google::Apis::CloudkmsV1::ImportCryptoKeyVersionRequest] import_crypto_key_version_request_object
|
962
|
+
# @param [String] fields
|
963
|
+
# Selector specifying which fields to include in a partial response.
|
964
|
+
# @param [String] quota_user
|
965
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
966
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
967
|
+
# @param [Google::Apis::RequestOptions] options
|
968
|
+
# Request-specific options
|
969
|
+
#
|
970
|
+
# @yield [result, err] Result & error if block supplied
|
971
|
+
# @yieldparam result [Google::Apis::CloudkmsV1::CryptoKeyVersion] parsed result object
|
972
|
+
# @yieldparam err [StandardError] error object if request failed
|
973
|
+
#
|
974
|
+
# @return [Google::Apis::CloudkmsV1::CryptoKeyVersion]
|
975
|
+
#
|
976
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
977
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
978
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
979
|
+
def import_crypto_key_version(parent, import_crypto_key_version_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
980
|
+
command = make_simple_command(:post, 'v1/{+parent}/cryptoKeyVersions:import', options)
|
981
|
+
command.request_representation = Google::Apis::CloudkmsV1::ImportCryptoKeyVersionRequest::Representation
|
982
|
+
command.request_object = import_crypto_key_version_request_object
|
983
|
+
command.response_representation = Google::Apis::CloudkmsV1::CryptoKeyVersion::Representation
|
984
|
+
command.response_class = Google::Apis::CloudkmsV1::CryptoKeyVersion
|
985
|
+
command.params['parent'] = parent unless parent.nil?
|
986
|
+
command.query['fields'] = fields unless fields.nil?
|
987
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
988
|
+
execute_or_queue_command(command, &block)
|
989
|
+
end
|
990
|
+
|
917
991
|
# Lists CryptoKeyVersions.
|
918
992
|
# @param [String] parent
|
919
993
|
# Required. The resource name of the CryptoKey to list, in the format
|
920
994
|
# `projects/*/locations/*/keyRings/*/cryptoKeys/*`.
|
995
|
+
# @param [String] filter
|
996
|
+
# Optional. Only include resources that match the filter in the response
|
997
|
+
# (https://cloud.google.com/kms/docs/sorting-and-filtering).
|
998
|
+
# @param [String] order_by
|
999
|
+
# Optional. Specify how the results should be sorted. If not specified, the
|
1000
|
+
# results will be sorted in the default order
|
1001
|
+
# (https://cloud.google.com/kms/docs/sorting-and-filtering).
|
921
1002
|
# @param [Fixnum] page_size
|
922
1003
|
# Optional limit on the number of CryptoKeyVersions to
|
923
1004
|
# include in the response. Further CryptoKeyVersions can
|
@@ -946,11 +1027,13 @@ module Google
|
|
946
1027
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
947
1028
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
948
1029
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
949
|
-
def list_project_location_key_ring_crypto_key_crypto_key_versions(parent, page_size: nil, page_token: nil, view: nil, fields: nil, quota_user: nil, options: nil, &block)
|
1030
|
+
def list_project_location_key_ring_crypto_key_crypto_key_versions(parent, filter: nil, order_by: nil, page_size: nil, page_token: nil, view: nil, fields: nil, quota_user: nil, options: nil, &block)
|
950
1031
|
command = make_simple_command(:get, 'v1/{+parent}/cryptoKeyVersions', options)
|
951
1032
|
command.response_representation = Google::Apis::CloudkmsV1::ListCryptoKeyVersionsResponse::Representation
|
952
1033
|
command.response_class = Google::Apis::CloudkmsV1::ListCryptoKeyVersionsResponse
|
953
1034
|
command.params['parent'] = parent unless parent.nil?
|
1035
|
+
command.query['filter'] = filter unless filter.nil?
|
1036
|
+
command.query['orderBy'] = order_by unless order_by.nil?
|
954
1037
|
command.query['pageSize'] = page_size unless page_size.nil?
|
955
1038
|
command.query['pageToken'] = page_token unless page_token.nil?
|
956
1039
|
command.query['view'] = view unless view.nil?
|
@@ -1039,12 +1122,86 @@ module Google
|
|
1039
1122
|
execute_or_queue_command(command, &block)
|
1040
1123
|
end
|
1041
1124
|
|
1125
|
+
# Create a new ImportJob within a KeyRing.
|
1126
|
+
# ImportJob.import_method is required.
|
1127
|
+
# @param [String] parent
|
1128
|
+
# Required. The name of the KeyRing associated with the
|
1129
|
+
# ImportJobs.
|
1130
|
+
# @param [Google::Apis::CloudkmsV1::ImportJob] import_job_object
|
1131
|
+
# @param [String] import_job_id
|
1132
|
+
# Required. It must be unique within a KeyRing and match the regular
|
1133
|
+
# expression `[a-zA-Z0-9_-]`1,63``
|
1134
|
+
# @param [String] fields
|
1135
|
+
# Selector specifying which fields to include in a partial response.
|
1136
|
+
# @param [String] quota_user
|
1137
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
1138
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
1139
|
+
# @param [Google::Apis::RequestOptions] options
|
1140
|
+
# Request-specific options
|
1141
|
+
#
|
1142
|
+
# @yield [result, err] Result & error if block supplied
|
1143
|
+
# @yieldparam result [Google::Apis::CloudkmsV1::ImportJob] parsed result object
|
1144
|
+
# @yieldparam err [StandardError] error object if request failed
|
1145
|
+
#
|
1146
|
+
# @return [Google::Apis::CloudkmsV1::ImportJob]
|
1147
|
+
#
|
1148
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1149
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1150
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1151
|
+
def create_project_location_key_ring_import_job(parent, import_job_object = nil, import_job_id: nil, fields: nil, quota_user: nil, options: nil, &block)
|
1152
|
+
command = make_simple_command(:post, 'v1/{+parent}/importJobs', options)
|
1153
|
+
command.request_representation = Google::Apis::CloudkmsV1::ImportJob::Representation
|
1154
|
+
command.request_object = import_job_object
|
1155
|
+
command.response_representation = Google::Apis::CloudkmsV1::ImportJob::Representation
|
1156
|
+
command.response_class = Google::Apis::CloudkmsV1::ImportJob
|
1157
|
+
command.params['parent'] = parent unless parent.nil?
|
1158
|
+
command.query['importJobId'] = import_job_id unless import_job_id.nil?
|
1159
|
+
command.query['fields'] = fields unless fields.nil?
|
1160
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1161
|
+
execute_or_queue_command(command, &block)
|
1162
|
+
end
|
1163
|
+
|
1164
|
+
# Returns metadata for a given ImportJob.
|
1165
|
+
# @param [String] name
|
1166
|
+
# The name of the ImportJob to get.
|
1167
|
+
# @param [String] fields
|
1168
|
+
# Selector specifying which fields to include in a partial response.
|
1169
|
+
# @param [String] quota_user
|
1170
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
1171
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
1172
|
+
# @param [Google::Apis::RequestOptions] options
|
1173
|
+
# Request-specific options
|
1174
|
+
#
|
1175
|
+
# @yield [result, err] Result & error if block supplied
|
1176
|
+
# @yieldparam result [Google::Apis::CloudkmsV1::ImportJob] parsed result object
|
1177
|
+
# @yieldparam err [StandardError] error object if request failed
|
1178
|
+
#
|
1179
|
+
# @return [Google::Apis::CloudkmsV1::ImportJob]
|
1180
|
+
#
|
1181
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1182
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1183
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1184
|
+
def get_project_location_key_ring_import_job(name, fields: nil, quota_user: nil, options: nil, &block)
|
1185
|
+
command = make_simple_command(:get, 'v1/{+name}', options)
|
1186
|
+
command.response_representation = Google::Apis::CloudkmsV1::ImportJob::Representation
|
1187
|
+
command.response_class = Google::Apis::CloudkmsV1::ImportJob
|
1188
|
+
command.params['name'] = name unless name.nil?
|
1189
|
+
command.query['fields'] = fields unless fields.nil?
|
1190
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1191
|
+
execute_or_queue_command(command, &block)
|
1192
|
+
end
|
1193
|
+
|
1042
1194
|
# Gets the access control policy for a resource.
|
1043
1195
|
# Returns an empty policy if the resource exists and does not have a policy
|
1044
1196
|
# set.
|
1045
1197
|
# @param [String] resource
|
1046
1198
|
# REQUIRED: The resource for which the policy is being requested.
|
1047
1199
|
# See the operation documentation for the appropriate value for this field.
|
1200
|
+
# @param [Fixnum] options_requested_policy_version
|
1201
|
+
# Optional. The policy format version to be returned.
|
1202
|
+
# Acceptable values are 0 and 1.
|
1203
|
+
# If the value is 0, or the field is omitted, policy format version 1 will be
|
1204
|
+
# returned.
|
1048
1205
|
# @param [String] fields
|
1049
1206
|
# Selector specifying which fields to include in a partial response.
|
1050
1207
|
# @param [String] quota_user
|
@@ -1062,11 +1219,62 @@ module Google
|
|
1062
1219
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1063
1220
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1064
1221
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1065
|
-
def get_project_location_key_ring_import_job_iam_policy(resource, fields: nil, quota_user: nil, options: nil, &block)
|
1222
|
+
def get_project_location_key_ring_import_job_iam_policy(resource, options_requested_policy_version: nil, fields: nil, quota_user: nil, options: nil, &block)
|
1066
1223
|
command = make_simple_command(:get, 'v1/{+resource}:getIamPolicy', options)
|
1067
1224
|
command.response_representation = Google::Apis::CloudkmsV1::Policy::Representation
|
1068
1225
|
command.response_class = Google::Apis::CloudkmsV1::Policy
|
1069
1226
|
command.params['resource'] = resource unless resource.nil?
|
1227
|
+
command.query['options.requestedPolicyVersion'] = options_requested_policy_version unless options_requested_policy_version.nil?
|
1228
|
+
command.query['fields'] = fields unless fields.nil?
|
1229
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1230
|
+
execute_or_queue_command(command, &block)
|
1231
|
+
end
|
1232
|
+
|
1233
|
+
# Lists ImportJobs.
|
1234
|
+
# @param [String] parent
|
1235
|
+
# Required. The resource name of the KeyRing to list, in the format
|
1236
|
+
# `projects/*/locations/*/keyRings/*`.
|
1237
|
+
# @param [String] filter
|
1238
|
+
# Optional. Only include resources that match the filter in the response
|
1239
|
+
# (https://cloud.google.com/kms/docs/sorting-and-filtering).
|
1240
|
+
# @param [String] order_by
|
1241
|
+
# Optional. Specify how the results should be sorted. If not specified, the
|
1242
|
+
# results will be sorted in the default order
|
1243
|
+
# (https://cloud.google.com/kms/docs/sorting-and-filtering).
|
1244
|
+
# @param [Fixnum] page_size
|
1245
|
+
# Optional limit on the number of ImportJobs to include in the
|
1246
|
+
# response. Further ImportJobs can subsequently be obtained by
|
1247
|
+
# including the ListImportJobsResponse.next_page_token in a subsequent
|
1248
|
+
# request. If unspecified, the server will pick an appropriate default.
|
1249
|
+
# @param [String] page_token
|
1250
|
+
# Optional pagination token, returned earlier via
|
1251
|
+
# ListImportJobsResponse.next_page_token.
|
1252
|
+
# @param [String] fields
|
1253
|
+
# Selector specifying which fields to include in a partial response.
|
1254
|
+
# @param [String] quota_user
|
1255
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
1256
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
1257
|
+
# @param [Google::Apis::RequestOptions] options
|
1258
|
+
# Request-specific options
|
1259
|
+
#
|
1260
|
+
# @yield [result, err] Result & error if block supplied
|
1261
|
+
# @yieldparam result [Google::Apis::CloudkmsV1::ListImportJobsResponse] parsed result object
|
1262
|
+
# @yieldparam err [StandardError] error object if request failed
|
1263
|
+
#
|
1264
|
+
# @return [Google::Apis::CloudkmsV1::ListImportJobsResponse]
|
1265
|
+
#
|
1266
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1267
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1268
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1269
|
+
def list_project_location_key_ring_import_jobs(parent, filter: nil, order_by: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
1270
|
+
command = make_simple_command(:get, 'v1/{+parent}/importJobs', options)
|
1271
|
+
command.response_representation = Google::Apis::CloudkmsV1::ListImportJobsResponse::Representation
|
1272
|
+
command.response_class = Google::Apis::CloudkmsV1::ListImportJobsResponse
|
1273
|
+
command.params['parent'] = parent unless parent.nil?
|
1274
|
+
command.query['filter'] = filter unless filter.nil?
|
1275
|
+
command.query['orderBy'] = order_by unless order_by.nil?
|
1276
|
+
command.query['pageSize'] = page_size unless page_size.nil?
|
1277
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
1070
1278
|
command.query['fields'] = fields unless fields.nil?
|
1071
1279
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1072
1280
|
execute_or_queue_command(command, &block)
|