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.



3040
3041
3042
# File 'lib/google/apis/vmwareengine_v1/classes.rb', line 3040

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)


3030
3031
3032
# File 'lib/google/apis/vmwareengine_v1/classes.rb', line 3030

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)


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