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
@@ -70,6 +70,30 @@ module Google
|
|
70
70
|
include Google::Apis::Core::JsonObjectSupport
|
71
71
|
end
|
72
72
|
|
73
|
+
class GoogleCloudOrgpolicyV1BooleanPolicy
|
74
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
75
|
+
|
76
|
+
include Google::Apis::Core::JsonObjectSupport
|
77
|
+
end
|
78
|
+
|
79
|
+
class GoogleCloudOrgpolicyV1ListPolicy
|
80
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
81
|
+
|
82
|
+
include Google::Apis::Core::JsonObjectSupport
|
83
|
+
end
|
84
|
+
|
85
|
+
class GoogleCloudOrgpolicyV1Policy
|
86
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
87
|
+
|
88
|
+
include Google::Apis::Core::JsonObjectSupport
|
89
|
+
end
|
90
|
+
|
91
|
+
class GoogleCloudOrgpolicyV1RestoreDefault
|
92
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
93
|
+
|
94
|
+
include Google::Apis::Core::JsonObjectSupport
|
95
|
+
end
|
96
|
+
|
73
97
|
class Operation
|
74
98
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
75
99
|
|
@@ -119,6 +143,8 @@ module Google
|
|
119
143
|
property :iam_policy, as: 'iamPolicy', class: Google::Apis::CloudassetV1::Policy, decorator: Google::Apis::CloudassetV1::Policy::Representation
|
120
144
|
|
121
145
|
property :name, as: 'name'
|
146
|
+
collection :org_policy, as: 'orgPolicy', class: Google::Apis::CloudassetV1::GoogleCloudOrgpolicyV1Policy, decorator: Google::Apis::CloudassetV1::GoogleCloudOrgpolicyV1Policy::Representation
|
147
|
+
|
122
148
|
property :resource, as: 'resource', class: Google::Apis::CloudassetV1::Resource, decorator: Google::Apis::CloudassetV1::Resource::Representation
|
123
149
|
|
124
150
|
end
|
@@ -188,6 +214,46 @@ module Google
|
|
188
214
|
end
|
189
215
|
end
|
190
216
|
|
217
|
+
class GoogleCloudOrgpolicyV1BooleanPolicy
|
218
|
+
# @private
|
219
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
220
|
+
property :enforced, as: 'enforced'
|
221
|
+
end
|
222
|
+
end
|
223
|
+
|
224
|
+
class GoogleCloudOrgpolicyV1ListPolicy
|
225
|
+
# @private
|
226
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
227
|
+
property :all_values, as: 'allValues'
|
228
|
+
collection :allowed_values, as: 'allowedValues'
|
229
|
+
collection :denied_values, as: 'deniedValues'
|
230
|
+
property :inherit_from_parent, as: 'inheritFromParent'
|
231
|
+
property :suggested_value, as: 'suggestedValue'
|
232
|
+
end
|
233
|
+
end
|
234
|
+
|
235
|
+
class GoogleCloudOrgpolicyV1Policy
|
236
|
+
# @private
|
237
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
238
|
+
property :boolean_policy, as: 'booleanPolicy', class: Google::Apis::CloudassetV1::GoogleCloudOrgpolicyV1BooleanPolicy, decorator: Google::Apis::CloudassetV1::GoogleCloudOrgpolicyV1BooleanPolicy::Representation
|
239
|
+
|
240
|
+
property :constraint, as: 'constraint'
|
241
|
+
property :etag, :base64 => true, as: 'etag'
|
242
|
+
property :list_policy, as: 'listPolicy', class: Google::Apis::CloudassetV1::GoogleCloudOrgpolicyV1ListPolicy, decorator: Google::Apis::CloudassetV1::GoogleCloudOrgpolicyV1ListPolicy::Representation
|
243
|
+
|
244
|
+
property :restore_default, as: 'restoreDefault', class: Google::Apis::CloudassetV1::GoogleCloudOrgpolicyV1RestoreDefault, decorator: Google::Apis::CloudassetV1::GoogleCloudOrgpolicyV1RestoreDefault::Representation
|
245
|
+
|
246
|
+
property :update_time, as: 'updateTime'
|
247
|
+
property :version, as: 'version'
|
248
|
+
end
|
249
|
+
end
|
250
|
+
|
251
|
+
class GoogleCloudOrgpolicyV1RestoreDefault
|
252
|
+
# @private
|
253
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
254
|
+
end
|
255
|
+
end
|
256
|
+
|
191
257
|
class Operation
|
192
258
|
# @private
|
193
259
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -25,7 +25,7 @@ module Google
|
|
25
25
|
# @see https://cloud.google.com/cloud-build/docs/
|
26
26
|
module CloudbuildV1
|
27
27
|
VERSION = 'V1'
|
28
|
-
REVISION = '
|
28
|
+
REVISION = '20190622'
|
29
29
|
|
30
30
|
# View and manage your data across Google Cloud Platform services
|
31
31
|
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
@@ -743,20 +743,6 @@ module Google
|
|
743
743
|
end
|
744
744
|
end
|
745
745
|
|
746
|
-
# A CheckSuiteFilter is a filter that indicates that we should build on all
|
747
|
-
# check suite events.
|
748
|
-
class CheckSuiteFilter
|
749
|
-
include Google::Apis::Core::Hashable
|
750
|
-
|
751
|
-
def initialize(**args)
|
752
|
-
update!(**args)
|
753
|
-
end
|
754
|
-
|
755
|
-
# Update properties of this object
|
756
|
-
def update!(**args)
|
757
|
-
end
|
758
|
-
end
|
759
|
-
|
760
746
|
# A generic empty message that you can re-use to avoid defining duplicated
|
761
747
|
# empty messages in your APIs. A typical example is to use it as the request
|
762
748
|
# or the response type of an API method. For instance:
|
@@ -802,13 +788,7 @@ module Google
|
|
802
788
|
class GitHubEventsConfig
|
803
789
|
include Google::Apis::Core::Hashable
|
804
790
|
|
805
|
-
#
|
806
|
-
# check suite events.
|
807
|
-
# Corresponds to the JSON property `checkSuite`
|
808
|
-
# @return [Google::Apis::CloudbuildV1::CheckSuiteFilter]
|
809
|
-
attr_accessor :check_suite
|
810
|
-
|
811
|
-
# The installationID that emmits the GitHub event.
|
791
|
+
# The installationID that emits the GitHub event.
|
812
792
|
# Corresponds to the JSON property `installationId`
|
813
793
|
# @return [Fixnum]
|
814
794
|
attr_accessor :installation_id
|
@@ -840,7 +820,6 @@ module Google
|
|
840
820
|
|
841
821
|
# Update properties of this object
|
842
822
|
def update!(**args)
|
843
|
-
@check_suite = args[:check_suite] if args.key?(:check_suite)
|
844
823
|
@installation_id = args[:installation_id] if args.key?(:installation_id)
|
845
824
|
@name = args[:name] if args.key?(:name)
|
846
825
|
@owner = args[:owner] if args.key?(:owner)
|
@@ -88,12 +88,6 @@ module Google
|
|
88
88
|
include Google::Apis::Core::JsonObjectSupport
|
89
89
|
end
|
90
90
|
|
91
|
-
class CheckSuiteFilter
|
92
|
-
class Representation < Google::Apis::Core::JsonRepresentation; end
|
93
|
-
|
94
|
-
include Google::Apis::Core::JsonObjectSupport
|
95
|
-
end
|
96
|
-
|
97
91
|
class Empty
|
98
92
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
99
93
|
|
@@ -369,12 +363,6 @@ module Google
|
|
369
363
|
end
|
370
364
|
end
|
371
365
|
|
372
|
-
class CheckSuiteFilter
|
373
|
-
# @private
|
374
|
-
class Representation < Google::Apis::Core::JsonRepresentation
|
375
|
-
end
|
376
|
-
end
|
377
|
-
|
378
366
|
class Empty
|
379
367
|
# @private
|
380
368
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -392,8 +380,6 @@ module Google
|
|
392
380
|
class GitHubEventsConfig
|
393
381
|
# @private
|
394
382
|
class Representation < Google::Apis::Core::JsonRepresentation
|
395
|
-
property :check_suite, as: 'checkSuite', class: Google::Apis::CloudbuildV1::CheckSuiteFilter, decorator: Google::Apis::CloudbuildV1::CheckSuiteFilter::Representation
|
396
|
-
|
397
383
|
property :installation_id, :numeric_string => true, as: 'installationId'
|
398
384
|
property :name, as: 'name'
|
399
385
|
property :owner, as: 'owner'
|
@@ -26,7 +26,7 @@ module Google
|
|
26
26
|
# @see https://cloud.google.com/kms/
|
27
27
|
module CloudkmsV1
|
28
28
|
VERSION = 'V1'
|
29
|
-
REVISION = '
|
29
|
+
REVISION = '20190626'
|
30
30
|
|
31
31
|
# View and manage your data across Google Cloud Platform services
|
32
32
|
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
@@ -322,7 +322,8 @@ module Google
|
|
322
322
|
attr_accessor :purpose
|
323
323
|
|
324
324
|
# next_rotation_time will be advanced by this period when the service
|
325
|
-
# automatically rotates a key. Must be at least
|
325
|
+
# automatically rotates a key. Must be at least 24 hours and at most
|
326
|
+
# 876,000 hours.
|
326
327
|
# If rotation_period is set, next_rotation_time must also be set.
|
327
328
|
# Keys with purpose
|
328
329
|
# ENCRYPT_DECRYPT support
|
@@ -405,6 +406,26 @@ module Google
|
|
405
406
|
# @return [String]
|
406
407
|
attr_accessor :generate_time
|
407
408
|
|
409
|
+
# Output only. The root cause of an import failure. Only present if
|
410
|
+
# state is
|
411
|
+
# IMPORT_FAILED.
|
412
|
+
# Corresponds to the JSON property `importFailureReason`
|
413
|
+
# @return [String]
|
414
|
+
attr_accessor :import_failure_reason
|
415
|
+
|
416
|
+
# Output only. The name of the ImportJob used to import this
|
417
|
+
# CryptoKeyVersion. Only present if the underlying key material was
|
418
|
+
# imported.
|
419
|
+
# Corresponds to the JSON property `importJob`
|
420
|
+
# @return [String]
|
421
|
+
attr_accessor :import_job
|
422
|
+
|
423
|
+
# Output only. The time at which this CryptoKeyVersion's key material
|
424
|
+
# was imported.
|
425
|
+
# Corresponds to the JSON property `importTime`
|
426
|
+
# @return [String]
|
427
|
+
attr_accessor :import_time
|
428
|
+
|
408
429
|
# Output only. The resource name for this CryptoKeyVersion in the format
|
409
430
|
# `projects/*/locations/*/keyRings/*/cryptoKeys/*/cryptoKeyVersions/*`.
|
410
431
|
# Corresponds to the JSON property `name`
|
@@ -434,6 +455,9 @@ module Google
|
|
434
455
|
@destroy_event_time = args[:destroy_event_time] if args.key?(:destroy_event_time)
|
435
456
|
@destroy_time = args[:destroy_time] if args.key?(:destroy_time)
|
436
457
|
@generate_time = args[:generate_time] if args.key?(:generate_time)
|
458
|
+
@import_failure_reason = args[:import_failure_reason] if args.key?(:import_failure_reason)
|
459
|
+
@import_job = args[:import_job] if args.key?(:import_job)
|
460
|
+
@import_time = args[:import_time] if args.key?(:import_time)
|
437
461
|
@name = args[:name] if args.key?(:name)
|
438
462
|
@protection_level = args[:protection_level] if args.key?(:protection_level)
|
439
463
|
@state = args[:state] if args.key?(:state)
|
@@ -682,6 +706,164 @@ module Google
|
|
682
706
|
end
|
683
707
|
end
|
684
708
|
|
709
|
+
# Request message for KeyManagementService.ImportCryptoKeyVersion.
|
710
|
+
class ImportCryptoKeyVersionRequest
|
711
|
+
include Google::Apis::Core::Hashable
|
712
|
+
|
713
|
+
# Required. The algorithm of
|
714
|
+
# the key being imported. This does not need to match the
|
715
|
+
# version_template of the CryptoKey this
|
716
|
+
# version imports into.
|
717
|
+
# Corresponds to the JSON property `algorithm`
|
718
|
+
# @return [String]
|
719
|
+
attr_accessor :algorithm
|
720
|
+
|
721
|
+
# Required. The name of the ImportJob that was used to
|
722
|
+
# wrap this key material.
|
723
|
+
# Corresponds to the JSON property `importJob`
|
724
|
+
# @return [String]
|
725
|
+
attr_accessor :import_job
|
726
|
+
|
727
|
+
# Wrapped key material produced with
|
728
|
+
# RSA_OAEP_3072_SHA1_AES_256
|
729
|
+
# or
|
730
|
+
# RSA_OAEP_4096_SHA1_AES_256.
|
731
|
+
# This field contains the concatenation of two wrapped keys:
|
732
|
+
# <ol>
|
733
|
+
# <li>An ephemeral AES-256 wrapping key wrapped with the
|
734
|
+
# public_key using RSAES-OAEP with SHA-1,
|
735
|
+
# MGF1 with SHA-1, and an empty label.
|
736
|
+
# </li>
|
737
|
+
# <li>The key to be imported, wrapped with the ephemeral AES-256 key
|
738
|
+
# using AES-KWP (RFC 5649).
|
739
|
+
# </li>
|
740
|
+
# </ol>
|
741
|
+
# This format is the same as the format produced by PKCS#11 mechanism
|
742
|
+
# CKM_RSA_AES_KEY_WRAP.
|
743
|
+
# Corresponds to the JSON property `rsaAesWrappedKey`
|
744
|
+
# NOTE: Values are automatically base64 encoded/decoded in the client library.
|
745
|
+
# @return [String]
|
746
|
+
attr_accessor :rsa_aes_wrapped_key
|
747
|
+
|
748
|
+
def initialize(**args)
|
749
|
+
update!(**args)
|
750
|
+
end
|
751
|
+
|
752
|
+
# Update properties of this object
|
753
|
+
def update!(**args)
|
754
|
+
@algorithm = args[:algorithm] if args.key?(:algorithm)
|
755
|
+
@import_job = args[:import_job] if args.key?(:import_job)
|
756
|
+
@rsa_aes_wrapped_key = args[:rsa_aes_wrapped_key] if args.key?(:rsa_aes_wrapped_key)
|
757
|
+
end
|
758
|
+
end
|
759
|
+
|
760
|
+
# An ImportJob can be used to create CryptoKeys and
|
761
|
+
# CryptoKeyVersions using pre-existing key material,
|
762
|
+
# generated outside of Cloud KMS.
|
763
|
+
# When an ImportJob is created, Cloud KMS will generate a "wrapping key",
|
764
|
+
# which is a public/private key pair. You use the wrapping key to encrypt (also
|
765
|
+
# known as wrap) the pre-existing key material to protect it during the import
|
766
|
+
# process. The nature of the wrapping key depends on the choice of
|
767
|
+
# import_method. When the wrapping key generation
|
768
|
+
# is complete, the state will be set to
|
769
|
+
# ACTIVE and the public_key
|
770
|
+
# can be fetched. The fetched public key can then be used to wrap your
|
771
|
+
# pre-existing key material.
|
772
|
+
# Once the key material is wrapped, it can be imported into a new
|
773
|
+
# CryptoKeyVersion in an existing CryptoKey by calling
|
774
|
+
# ImportCryptoKeyVersion.
|
775
|
+
# Multiple CryptoKeyVersions can be imported with a single
|
776
|
+
# ImportJob. Cloud KMS uses the private key portion of the wrapping key to
|
777
|
+
# unwrap the key material. Only Cloud KMS has access to the private key.
|
778
|
+
# An ImportJob expires 3 days after it is created. Once expired, Cloud KMS
|
779
|
+
# will no longer be able to import or unwrap any key material that was wrapped
|
780
|
+
# with the ImportJob's public key.
|
781
|
+
# For more information, see
|
782
|
+
# [Importing a key](https://cloud.google.com/kms/docs/importing-a-key).
|
783
|
+
class ImportJob
|
784
|
+
include Google::Apis::Core::Hashable
|
785
|
+
|
786
|
+
# Contains an HSM-generated attestation about a key operation. For more
|
787
|
+
# information, see [Verifying attestations]
|
788
|
+
# (https://cloud.google.com/kms/docs/attest-key).
|
789
|
+
# Corresponds to the JSON property `attestation`
|
790
|
+
# @return [Google::Apis::CloudkmsV1::KeyOperationAttestation]
|
791
|
+
attr_accessor :attestation
|
792
|
+
|
793
|
+
# Output only. The time at which this ImportJob was created.
|
794
|
+
# Corresponds to the JSON property `createTime`
|
795
|
+
# @return [String]
|
796
|
+
attr_accessor :create_time
|
797
|
+
|
798
|
+
# Output only. The time this ImportJob expired. Only present if
|
799
|
+
# state is EXPIRED.
|
800
|
+
# Corresponds to the JSON property `expireEventTime`
|
801
|
+
# @return [String]
|
802
|
+
attr_accessor :expire_event_time
|
803
|
+
|
804
|
+
# Output only. The time at which this ImportJob is scheduled for
|
805
|
+
# expiration and can no longer be used to import key material.
|
806
|
+
# Corresponds to the JSON property `expireTime`
|
807
|
+
# @return [String]
|
808
|
+
attr_accessor :expire_time
|
809
|
+
|
810
|
+
# Output only. The time this ImportJob's key material was generated.
|
811
|
+
# Corresponds to the JSON property `generateTime`
|
812
|
+
# @return [String]
|
813
|
+
attr_accessor :generate_time
|
814
|
+
|
815
|
+
# Required and immutable. The wrapping method to be used for incoming
|
816
|
+
# key material.
|
817
|
+
# Corresponds to the JSON property `importMethod`
|
818
|
+
# @return [String]
|
819
|
+
attr_accessor :import_method
|
820
|
+
|
821
|
+
# Output only. The resource name for this ImportJob in the format
|
822
|
+
# `projects/*/locations/*/keyRings/*/importJobs/*`.
|
823
|
+
# Corresponds to the JSON property `name`
|
824
|
+
# @return [String]
|
825
|
+
attr_accessor :name
|
826
|
+
|
827
|
+
# Required and immutable. The protection level of the ImportJob. This
|
828
|
+
# must match the
|
829
|
+
# protection_level of the
|
830
|
+
# version_template on the CryptoKey you
|
831
|
+
# attempt to import into.
|
832
|
+
# Corresponds to the JSON property `protectionLevel`
|
833
|
+
# @return [String]
|
834
|
+
attr_accessor :protection_level
|
835
|
+
|
836
|
+
# The public key component of the wrapping key. For details of the type of
|
837
|
+
# key this public key corresponds to, see the ImportMethod.
|
838
|
+
# Corresponds to the JSON property `publicKey`
|
839
|
+
# @return [Google::Apis::CloudkmsV1::WrappingPublicKey]
|
840
|
+
attr_accessor :public_key
|
841
|
+
|
842
|
+
# Output only. The current state of the ImportJob, indicating if it can
|
843
|
+
# be used.
|
844
|
+
# Corresponds to the JSON property `state`
|
845
|
+
# @return [String]
|
846
|
+
attr_accessor :state
|
847
|
+
|
848
|
+
def initialize(**args)
|
849
|
+
update!(**args)
|
850
|
+
end
|
851
|
+
|
852
|
+
# Update properties of this object
|
853
|
+
def update!(**args)
|
854
|
+
@attestation = args[:attestation] if args.key?(:attestation)
|
855
|
+
@create_time = args[:create_time] if args.key?(:create_time)
|
856
|
+
@expire_event_time = args[:expire_event_time] if args.key?(:expire_event_time)
|
857
|
+
@expire_time = args[:expire_time] if args.key?(:expire_time)
|
858
|
+
@generate_time = args[:generate_time] if args.key?(:generate_time)
|
859
|
+
@import_method = args[:import_method] if args.key?(:import_method)
|
860
|
+
@name = args[:name] if args.key?(:name)
|
861
|
+
@protection_level = args[:protection_level] if args.key?(:protection_level)
|
862
|
+
@public_key = args[:public_key] if args.key?(:public_key)
|
863
|
+
@state = args[:state] if args.key?(:state)
|
864
|
+
end
|
865
|
+
end
|
866
|
+
|
685
867
|
# Contains an HSM-generated attestation about a key operation. For more
|
686
868
|
# information, see [Verifying attestations]
|
687
869
|
# (https://cloud.google.com/kms/docs/attest-key).
|
@@ -803,6 +985,38 @@ module Google
|
|
803
985
|
end
|
804
986
|
end
|
805
987
|
|
988
|
+
# Response message for KeyManagementService.ListImportJobs.
|
989
|
+
class ListImportJobsResponse
|
990
|
+
include Google::Apis::Core::Hashable
|
991
|
+
|
992
|
+
# The list of ImportJobs.
|
993
|
+
# Corresponds to the JSON property `importJobs`
|
994
|
+
# @return [Array<Google::Apis::CloudkmsV1::ImportJob>]
|
995
|
+
attr_accessor :import_jobs
|
996
|
+
|
997
|
+
# A token to retrieve next page of results. Pass this value in
|
998
|
+
# ListImportJobsRequest.page_token to retrieve the next page of results.
|
999
|
+
# Corresponds to the JSON property `nextPageToken`
|
1000
|
+
# @return [String]
|
1001
|
+
attr_accessor :next_page_token
|
1002
|
+
|
1003
|
+
# The total number of ImportJobs that matched the query.
|
1004
|
+
# Corresponds to the JSON property `totalSize`
|
1005
|
+
# @return [Fixnum]
|
1006
|
+
attr_accessor :total_size
|
1007
|
+
|
1008
|
+
def initialize(**args)
|
1009
|
+
update!(**args)
|
1010
|
+
end
|
1011
|
+
|
1012
|
+
# Update properties of this object
|
1013
|
+
def update!(**args)
|
1014
|
+
@import_jobs = args[:import_jobs] if args.key?(:import_jobs)
|
1015
|
+
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
|
1016
|
+
@total_size = args[:total_size] if args.key?(:total_size)
|
1017
|
+
end
|
1018
|
+
end
|
1019
|
+
|
806
1020
|
# Response message for KeyManagementService.ListKeyRings.
|
807
1021
|
class ListKeyRingsResponse
|
808
1022
|
include Google::Apis::Core::Hashable
|
@@ -1181,6 +1395,30 @@ module Google
|
|
1181
1395
|
@crypto_key_version_id = args[:crypto_key_version_id] if args.key?(:crypto_key_version_id)
|
1182
1396
|
end
|
1183
1397
|
end
|
1398
|
+
|
1399
|
+
# The public key component of the wrapping key. For details of the type of
|
1400
|
+
# key this public key corresponds to, see the ImportMethod.
|
1401
|
+
class WrappingPublicKey
|
1402
|
+
include Google::Apis::Core::Hashable
|
1403
|
+
|
1404
|
+
# The public key, encoded in PEM format. For more information, see the [RFC
|
1405
|
+
# 7468](https://tools.ietf.org/html/rfc7468) sections for [General
|
1406
|
+
# Considerations](https://tools.ietf.org/html/rfc7468#section-2) and
|
1407
|
+
# [Textual Encoding of Subject Public Key Info]
|
1408
|
+
# (https://tools.ietf.org/html/rfc7468#section-13).
|
1409
|
+
# Corresponds to the JSON property `pem`
|
1410
|
+
# @return [String]
|
1411
|
+
attr_accessor :pem
|
1412
|
+
|
1413
|
+
def initialize(**args)
|
1414
|
+
update!(**args)
|
1415
|
+
end
|
1416
|
+
|
1417
|
+
# Update properties of this object
|
1418
|
+
def update!(**args)
|
1419
|
+
@pem = args[:pem] if args.key?(:pem)
|
1420
|
+
end
|
1421
|
+
end
|
1184
1422
|
end
|
1185
1423
|
end
|
1186
1424
|
end
|