Class: Google::Apis::CloudkmsV1::KeyAccessJustificationsPolicy
- Inherits:
-
Object
- Object
- Google::Apis::CloudkmsV1::KeyAccessJustificationsPolicy
- Includes:
- Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
- Defined in:
- lib/google/apis/cloudkms_v1/classes.rb,
lib/google/apis/cloudkms_v1/representations.rb,
lib/google/apis/cloudkms_v1/representations.rb
Overview
A KeyAccessJustificationsPolicy specifies zero or more allowed AccessReason values for encrypt, decrypt, and sign operations on a CryptoKey.
Instance Attribute Summary collapse
-
#allowed_access_reasons ⇒ Array<String>
The list of allowed reasons for access to a CryptoKey.
Instance Method Summary collapse
-
#initialize(**args) ⇒ KeyAccessJustificationsPolicy
constructor
A new instance of KeyAccessJustificationsPolicy.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ KeyAccessJustificationsPolicy
Returns a new instance of KeyAccessJustificationsPolicy.
1555 1556 1557 |
# File 'lib/google/apis/cloudkms_v1/classes.rb', line 1555 def initialize(**args) update!(**args) end |
Instance Attribute Details
#allowed_access_reasons ⇒ Array<String>
The list of allowed reasons for access to a CryptoKey. Zero allowed access
reasons means all encrypt, decrypt, and sign operations for the CryptoKey
associated with this policy will fail.
Corresponds to the JSON property allowedAccessReasons
1553 1554 1555 |
# File 'lib/google/apis/cloudkms_v1/classes.rb', line 1553 def allowed_access_reasons @allowed_access_reasons end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1560 1561 1562 |
# File 'lib/google/apis/cloudkms_v1/classes.rb', line 1560 def update!(**args) @allowed_access_reasons = args[:allowed_access_reasons] if args.key?(:allowed_access_reasons) end |