Class: Google::Apis::VmwareengineV1::StretchedClusterConfig
- Inherits:
-
Object
- Object
- Google::Apis::VmwareengineV1::StretchedClusterConfig
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/vmwareengine_v1/classes.rb,
lib/google/apis/vmwareengine_v1/representations.rb,
lib/google/apis/vmwareengine_v1/representations.rb
Overview
Configuration of a stretched cluster.
Instance Attribute Summary collapse
-
#preferred_location ⇒ String
Required.
-
#secondary_location ⇒ String
Required.
Instance Method Summary collapse
-
#initialize(**args) ⇒ StretchedClusterConfig
constructor
A new instance of StretchedClusterConfig.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ StretchedClusterConfig
Returns a new instance of StretchedClusterConfig.
3040 3041 3042 |
# File 'lib/google/apis/vmwareengine_v1/classes.rb', line 3040 def initialize(**args) update!(**args) end |
Instance Attribute Details
#preferred_location ⇒ String
Required. Zone that will remain operational when connection between the two
zones is lost. Specify the resource name of a zone that belongs to the region
of the private cloud. For example: projects/
project/locations/europe-west3-
a
where project
can either be a project number or a project ID.
Corresponds to the JSON property preferredLocation
3030 3031 3032 |
# File 'lib/google/apis/vmwareengine_v1/classes.rb', line 3030 def preferred_location @preferred_location end |
#secondary_location ⇒ String
Required. Additional zone for a higher level of availability and load
balancing. Specify the resource name of a zone that belongs to the region of
the private cloud. For example: projects/
project/locations/europe-west3-b
where project
can either be a project number or a project ID.
Corresponds to the JSON property secondaryLocation
3038 3039 3040 |
# File 'lib/google/apis/vmwareengine_v1/classes.rb', line 3038 def secondary_location @secondary_location end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
3045 3046 3047 3048 |
# File 'lib/google/apis/vmwareengine_v1/classes.rb', line 3045 def update!(**args) @preferred_location = args[:preferred_location] if args.key?(:preferred_location) @secondary_location = args[:secondary_location] if args.key?(:secondary_location) end |