Class: Google::Apis::VmwareengineV1::StretchedClusterConfig

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ StretchedClusterConfig

Returns a new instance of StretchedClusterConfig.



2922
2923
2924
# File 'lib/google/apis/vmwareengine_v1/classes.rb', line 2922

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

Instance Attribute Details

#preferred_locationString

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

Returns:

  • (String)


2912
2913
2914
# File 'lib/google/apis/vmwareengine_v1/classes.rb', line 2912

def preferred_location
  @preferred_location
end

#secondary_locationString

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

Returns:

  • (String)


2920
2921
2922
# File 'lib/google/apis/vmwareengine_v1/classes.rb', line 2920

def secondary_location
  @secondary_location
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2927
2928
2929
2930
# File 'lib/google/apis/vmwareengine_v1/classes.rb', line 2927

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