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

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



678
679
680
# File 'generated/google/apis/secretmanager_v1/classes.rb', line 678

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



670
671
672
# File 'generated/google/apis/secretmanager_v1/classes.rb', line 670

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)


676
677
678
# File 'generated/google/apis/secretmanager_v1/classes.rb', line 676

def location
  @location
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



683
684
685
686
# File 'generated/google/apis/secretmanager_v1/classes.rb', line 683

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