Class: Google::Apis::CloudkmsV1::KeyAccessJustificationsPolicy

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

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_reasonsArray<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

Returns:

  • (Array<String>)


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