Class: Google::Apis::CloudkmsV1beta1::CryptoKeyVersion
- Inherits:
-
Object
- Object
- Google::Apis::CloudkmsV1beta1::CryptoKeyVersion
- Defined in:
- generated/google/apis/cloudkms_v1beta1/classes.rb,
generated/google/apis/cloudkms_v1beta1/representations.rb,
generated/google/apis/cloudkms_v1beta1/representations.rb
Overview
A CryptoKeyVersion represents an individual cryptographic key, and the associated key material. It can be used for cryptographic operations either directly, or via its parent CryptoKey, in which case the server will choose the appropriate version for the operation.
Instance Attribute Summary collapse
-
#create_time ⇒ String
Output only.
-
#destroy_event_time ⇒ String
Output only.
-
#destroy_time ⇒ String
Output only.
-
#name ⇒ String
Output only.
-
#state ⇒ String
The current state of the CryptoKeyVersion.
Instance Method Summary collapse
-
#initialize(**args) ⇒ CryptoKeyVersion
constructor
A new instance of CryptoKeyVersion.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Google::Apis::Core::JsonObjectSupport
Methods included from Google::Apis::Core::Hashable
Constructor Details
#initialize(**args) ⇒ CryptoKeyVersion
Returns a new instance of CryptoKeyVersion
1024 1025 1026 |
# File 'generated/google/apis/cloudkms_v1beta1/classes.rb', line 1024 def initialize(**args) update!(**args) end |
Instance Attribute Details
#create_time ⇒ String
Output only. The time at which this CryptoKeyVersion was created.
Corresponds to the JSON property createTime
1022 1023 1024 |
# File 'generated/google/apis/cloudkms_v1beta1/classes.rb', line 1022 def create_time @create_time end |
#destroy_event_time ⇒ String
Output only. The time this CryptoKeyVersion's key material was
destroyed. Only present if state is
DESTROYED.
Corresponds to the JSON property destroyEventTime
1010 1011 1012 |
# File 'generated/google/apis/cloudkms_v1beta1/classes.rb', line 1010 def destroy_event_time @destroy_event_time end |
#destroy_time ⇒ String
Output only. The time this CryptoKeyVersion's key material is scheduled
for destruction. Only present if state is
DESTROY_SCHEDULED.
Corresponds to the JSON property destroyTime
1017 1018 1019 |
# File 'generated/google/apis/cloudkms_v1beta1/classes.rb', line 1017 def destroy_time @destroy_time end |
#name ⇒ String
Output only. The resource name for this CryptoKeyVersion in the format
projects/*/locations/*/keyRings/*/cryptoKeys/*/cryptoKeyVersions/*
.
Corresponds to the JSON property name
1003 1004 1005 |
# File 'generated/google/apis/cloudkms_v1beta1/classes.rb', line 1003 def name @name end |
#state ⇒ String
The current state of the CryptoKeyVersion.
Corresponds to the JSON property state
997 998 999 |
# File 'generated/google/apis/cloudkms_v1beta1/classes.rb', line 997 def state @state end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1029 1030 1031 1032 1033 1034 1035 |
# File 'generated/google/apis/cloudkms_v1beta1/classes.rb', line 1029 def update!(**args) @state = args[:state] if args.key?(:state) @name = args[:name] if args.key?(:name) @destroy_event_time = args[:destroy_event_time] if args.key?(:destroy_event_time) @destroy_time = args[:destroy_time] if args.key?(:destroy_time) @create_time = args[:create_time] if args.key?(:create_time) end |