Class: Google::Apis::CloudkmsV1::AutokeyConfig
- Inherits:
-
Object
- Object
- Google::Apis::CloudkmsV1::AutokeyConfig
- 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
Cloud KMS Autokey configuration for a folder.
Instance Attribute Summary collapse
-
#key_project ⇒ String
Optional.
-
#name ⇒ String
Identifier.
Instance Method Summary collapse
-
#initialize(**args) ⇒ AutokeyConfig
constructor
A new instance of AutokeyConfig.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ AutokeyConfig
Returns a new instance of AutokeyConfig.
343 344 345 |
# File 'lib/google/apis/cloudkms_v1/classes.rb', line 343 def initialize(**args) update!(**args) end |
Instance Attribute Details
#key_project ⇒ String
Optional. Name of the key project, e.g. projects/PROJECT_IDor `projects/`
PROJECT_NUMBER, where Cloud KMS Autokey will provision new CryptoKeys. On
UpdateAutokeyConfig, the caller will require cloudkms.cryptoKeys.setIamPolicy
permission on this key project. Once configured, for Cloud KMS Autokey to
function properly, this key project must have the Cloud KMS API activated and
the Cloud KMS Service Agent for this key project must be granted the cloudkms.
admin role (or pertinent permissions).
Corresponds to the JSON property keyProject
335 336 337 |
# File 'lib/google/apis/cloudkms_v1/classes.rb', line 335 def key_project @key_project end |
#name ⇒ String
Identifier. Name of the AutokeyConfig resource, e.g. folders/FOLDER_NUMBER/
autokeyConfig.
Corresponds to the JSON property name
341 342 343 |
# File 'lib/google/apis/cloudkms_v1/classes.rb', line 341 def name @name end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
348 349 350 351 |
# File 'lib/google/apis/cloudkms_v1/classes.rb', line 348 def update!(**args) @key_project = args[:key_project] if args.key?(:key_project) @name = args[:name] if args.key?(:name) end |