Class: Google::Apis::ComputeAlpha::HaControllersFailoverRequest

Inherits:
Object
  • Object
show all
Includes:
Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
Defined in:
lib/google/apis/compute_alpha/classes.rb,
lib/google/apis/compute_alpha/representations.rb,
lib/google/apis/compute_alpha/representations.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ HaControllersFailoverRequest

Returns a new instance of HaControllersFailoverRequest.



20354
20355
20356
# File 'lib/google/apis/compute_alpha/classes.rb', line 20354

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

Instance Attribute Details

#failover_to_zoneString

Name of the destination zone for the failover. Corresponds to the JSON property failoverToZone

Returns:

  • (String)


20346
20347
20348
# File 'lib/google/apis/compute_alpha/classes.rb', line 20346

def failover_to_zone
  @failover_to_zone
end

#primary_zoneString

Name of the destination zone for the failover. Deprecated: use failover_to_zone instead. Corresponds to the JSON property primaryZone

Returns:

  • (String)


20352
20353
20354
# File 'lib/google/apis/compute_alpha/classes.rb', line 20352

def primary_zone
  @primary_zone
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



20359
20360
20361
20362
# File 'lib/google/apis/compute_alpha/classes.rb', line 20359

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