Class: Google::Apis::KmsinventoryV1::GoogleCloudKmsV1KeyAccessJustificationsPolicy

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/kmsinventory_v1/classes.rb,
lib/google/apis/kmsinventory_v1/representations.rb,
lib/google/apis/kmsinventory_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) ⇒ GoogleCloudKmsV1KeyAccessJustificationsPolicy

Returns a new instance of GoogleCloudKmsV1KeyAccessJustificationsPolicy.



530
531
532
# File 'lib/google/apis/kmsinventory_v1/classes.rb', line 530

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


528
529
530
# File 'lib/google/apis/kmsinventory_v1/classes.rb', line 528

def allowed_access_reasons
  @allowed_access_reasons
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



535
536
537
# File 'lib/google/apis/kmsinventory_v1/classes.rb', line 535

def update!(**args)
  @allowed_access_reasons = args[:allowed_access_reasons] if args.key?(:allowed_access_reasons)
end