Class: Google::Apis::SecretmanagerV1::ReplicaStatus

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

Describes the status of a user-managed replica for the SecretVersion.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ ReplicaStatus

Returns a new instance of ReplicaStatus.



738
739
740
# File 'lib/google/apis/secretmanager_v1/classes.rb', line 738

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

Instance Attribute Details

#customer_managed_encryptionGoogle::Apis::SecretmanagerV1::CustomerManagedEncryptionStatus

Describes the status of customer-managed encryption. Corresponds to the JSON property customerManagedEncryption



730
731
732
# File 'lib/google/apis/secretmanager_v1/classes.rb', line 730

def customer_managed_encryption
  @customer_managed_encryption
end

#locationString

Output only. The canonical ID of the replica location. For example: "us-east1" . Corresponds to the JSON property location

Returns:

  • (String)


736
737
738
# File 'lib/google/apis/secretmanager_v1/classes.rb', line 736

def location
  @location
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



743
744
745
746
# File 'lib/google/apis/secretmanager_v1/classes.rb', line 743

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