Class: Google::Apis::AlloydbV1beta::SecondaryConfig
- Inherits:
-
Object
- Object
- Google::Apis::AlloydbV1beta::SecondaryConfig
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/alloydb_v1beta/classes.rb,
lib/google/apis/alloydb_v1beta/representations.rb,
lib/google/apis/alloydb_v1beta/representations.rb
Overview
Configuration information for the secondary cluster. This should be set if and only if the cluster is of type SECONDARY.
Instance Attribute Summary collapse
-
#primary_cluster_name ⇒ String
The name of the primary cluster name with the format: * projects/
project/ locations/region/clusters/cluster_idCorresponds to the JSON propertyprimaryClusterName.
Instance Method Summary collapse
-
#initialize(**args) ⇒ SecondaryConfig
constructor
A new instance of SecondaryConfig.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ SecondaryConfig
Returns a new instance of SecondaryConfig.
2556 2557 2558 |
# File 'lib/google/apis/alloydb_v1beta/classes.rb', line 2556 def initialize(**args) update!(**args) end |
Instance Attribute Details
#primary_cluster_name ⇒ String
The name of the primary cluster name with the format: * projects/project/
locations/region/clusters/cluster_id
Corresponds to the JSON property primaryClusterName
2554 2555 2556 |
# File 'lib/google/apis/alloydb_v1beta/classes.rb', line 2554 def primary_cluster_name @primary_cluster_name end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
2561 2562 2563 |
# File 'lib/google/apis/alloydb_v1beta/classes.rb', line 2561 def update!(**args) @primary_cluster_name = args[:primary_cluster_name] if args.key?(:primary_cluster_name) end |