Class: Google::Apis::SecretmanagerV1::Replication
- Inherits:
-
Object
- Object
- Google::Apis::SecretmanagerV1::Replication
- 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
A policy that defines the replication and encryption configuration of data.
Instance Attribute Summary collapse
-
#automatic ⇒ Google::Apis::SecretmanagerV1::Automatic
A replication policy that replicates the Secret payload without any restrictions.
-
#user_managed ⇒ Google::Apis::SecretmanagerV1::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
.
Instance Method Summary collapse
-
#initialize(**args) ⇒ Replication
constructor
A new instance of Replication.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ Replication
Returns a new instance of Replication.
705 706 707 |
# File 'generated/google/apis/secretmanager_v1/classes.rb', line 705 def initialize(**args) update!(**args) end |
Instance Attribute Details
#automatic ⇒ Google::Apis::SecretmanagerV1::Automatic
A replication policy that replicates the Secret payload without any
restrictions.
Corresponds to the JSON property automatic
697 698 699 |
# File 'generated/google/apis/secretmanager_v1/classes.rb', line 697 def automatic @automatic end |
#user_managed ⇒ Google::Apis::SecretmanagerV1::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
703 704 705 |
# File 'generated/google/apis/secretmanager_v1/classes.rb', line 703 def user_managed @user_managed end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
710 711 712 713 |
# File 'generated/google/apis/secretmanager_v1/classes.rb', line 710 def update!(**args) @automatic = args[:automatic] if args.key?(:automatic) @user_managed = args[:user_managed] if args.key?(:user_managed) end |