Class: Google::Apis::SecretmanagerV1beta2::Replica

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



874
875
876
# File 'lib/google/apis/secretmanager_v1beta2/classes.rb', line 874

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

Instance Attribute Details

#customer_managed_encryptionGoogle::Apis::SecretmanagerV1beta2::CustomerManagedEncryption

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



867
868
869
# File 'lib/google/apis/secretmanager_v1beta2/classes.rb', line 867

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)


872
873
874
# File 'lib/google/apis/secretmanager_v1beta2/classes.rb', line 872

def location
  @location
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



879
880
881
882
# File 'lib/google/apis/secretmanager_v1beta2/classes.rb', line 879

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