Class: Google::Apis::SecretmanagerV1::Replica

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

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ Replica

Returns a new instance of Replica.



712
713
714
# File 'lib/google/apis/secretmanager_v1/classes.rb', line 712

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#customer_managed_encryptionGoogle::Apis::SecretmanagerV1::CustomerManagedEncryption

Configuration for encrypting secret payloads using customer-managed encryption keys (CMEK). Corresponds to the JSON property customerManagedEncryption



705
706
707
# File 'lib/google/apis/secretmanager_v1/classes.rb', line 705

def customer_managed_encryption
  @customer_managed_encryption
end

#locationString

The canonical IDs of the location to replicate data. For example: "us-east1". Corresponds to the JSON property location

Returns:

  • (String)


710
711
712
# File 'lib/google/apis/secretmanager_v1/classes.rb', line 710

def location
  @location
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



717
718
719
720
# File 'lib/google/apis/secretmanager_v1/classes.rb', line 717

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