Class: Google::Apis::SecretmanagerV1::Replica
- Inherits:
-
Object
- Object
- Google::Apis::SecretmanagerV1::Replica
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/secretmanager_v1/classes.rb,
lib/google/apis/secretmanager_v1/representations.rb,
lib/google/apis/secretmanager_v1/representations.rb
Overview
Represents a Replica for this Secret.
Instance Attribute Summary collapse
-
#customer_managed_encryption ⇒ Google::Apis::SecretmanagerV1::CustomerManagedEncryption
Configuration for encrypting secret payloads using customer-managed encryption keys (CMEK).
-
#location ⇒ String
The canonical IDs of the location to replicate data.
Instance Method Summary collapse
-
#initialize(**args) ⇒ Replica
constructor
A new instance of Replica.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ Replica
Returns a new instance of Replica.
682 683 684 |
# File 'lib/google/apis/secretmanager_v1/classes.rb', line 682 def initialize(**args) update!(**args) end |
Instance Attribute Details
#customer_managed_encryption ⇒ Google::Apis::SecretmanagerV1::CustomerManagedEncryption
Configuration for encrypting secret payloads using customer-managed encryption
keys (CMEK).
Corresponds to the JSON property customerManagedEncryption
675 676 677 |
# File 'lib/google/apis/secretmanager_v1/classes.rb', line 675 def customer_managed_encryption @customer_managed_encryption end |
#location ⇒ String
The canonical IDs of the location to replicate data. For example: "us-east1".
Corresponds to the JSON property location
680 681 682 |
# File 'lib/google/apis/secretmanager_v1/classes.rb', line 680 def location @location end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
687 688 689 690 |
# File 'lib/google/apis/secretmanager_v1/classes.rb', line 687 def update!(**args) @customer_managed_encryption = args[:customer_managed_encryption] if args.key?(:customer_managed_encryption) @location = args[:location] if args.key?(:location) end |