Class: Google::Apis::ComputeAlpha::HaControllersFailoverRequest
- Inherits:
-
Object
- Object
- Google::Apis::ComputeAlpha::HaControllersFailoverRequest
- 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
-
#failover_to_zone ⇒ String
Name of the destination zone for the failover.
-
#primary_zone ⇒ String
Name of the destination zone for the failover.
Instance Method Summary collapse
-
#initialize(**args) ⇒ HaControllersFailoverRequest
constructor
A new instance of HaControllersFailoverRequest.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ HaControllersFailoverRequest
Returns a new instance of HaControllersFailoverRequest.
19997 19998 19999 |
# File 'lib/google/apis/compute_alpha/classes.rb', line 19997 def initialize(**args) update!(**args) end |
Instance Attribute Details
#failover_to_zone ⇒ String
Name of the destination zone for the failover.
Corresponds to the JSON property failoverToZone
19989 19990 19991 |
# File 'lib/google/apis/compute_alpha/classes.rb', line 19989 def failover_to_zone @failover_to_zone end |
#primary_zone ⇒ String
Name of the destination zone for the failover.
Deprecated: use failover_to_zone instead.
Corresponds to the JSON property primaryZone
19995 19996 19997 |
# File 'lib/google/apis/compute_alpha/classes.rb', line 19995 def primary_zone @primary_zone end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
20002 20003 20004 20005 |
# File 'lib/google/apis/compute_alpha/classes.rb', line 20002 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 |