Class: Google::Apis::SecretmanagerV1beta2::Replication

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

A policy that defines the replication and encryption configuration of data.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ Replication

Returns a new instance of Replication.



765
766
767
# File 'lib/google/apis/secretmanager_v1beta2/classes.rb', line 765

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

Instance Attribute Details

#automaticGoogle::Apis::SecretmanagerV1beta2::Automatic

A replication policy that replicates the Secret payload without any restrictions. Corresponds to the JSON property automatic



757
758
759
# File 'lib/google/apis/secretmanager_v1beta2/classes.rb', line 757

def automatic
  @automatic
end

#user_managedGoogle::Apis::SecretmanagerV1beta2::UserManaged

A replication policy that replicates the Secret payload into the locations specified in Secret.replication.user_managed.replicas Corresponds to the JSON property userManaged



763
764
765
# File 'lib/google/apis/secretmanager_v1beta2/classes.rb', line 763

def user_managed
  @user_managed
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



770
771
772
773
# File 'lib/google/apis/secretmanager_v1beta2/classes.rb', line 770

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