Class: Google::Apis::ComputeAlpha::HaControllerStatusZoneStatus
- Inherits:
-
Object
- Object
- Google::Apis::ComputeAlpha::HaControllerStatusZoneStatus
- 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
Overview
Contains the status of a specific zone.
Instance Attribute Summary collapse
-
#is_primary ⇒ Boolean
(also: #is_primary?)
[Output Only] Indicates if the zone is primary at this moment.
-
#is_zone_ready ⇒ Boolean
(also: #is_zone_ready?)
[Output Only] Indicates if the zone is ready for initiating a failover.
-
#last_error ⇒ Google::Apis::ComputeAlpha::HaControllerStatusZoneStatusLastError
Contains details of the last failed operation.
Instance Method Summary collapse
-
#initialize(**args) ⇒ HaControllerStatusZoneStatus
constructor
A new instance of HaControllerStatusZoneStatus.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ HaControllerStatusZoneStatus
Returns a new instance of HaControllerStatusZoneStatus.
16885 16886 16887 |
# File 'lib/google/apis/compute_alpha/classes.rb', line 16885 def initialize(**args) update!(**args) end |
Instance Attribute Details
#is_primary ⇒ Boolean Also known as: is_primary?
[Output Only] Indicates if the zone is primary at this moment.
Corresponds to the JSON property isPrimary
16871 16872 16873 |
# File 'lib/google/apis/compute_alpha/classes.rb', line 16871 def is_primary @is_primary end |
#is_zone_ready ⇒ Boolean Also known as: is_zone_ready?
[Output Only] Indicates if the zone is ready for initiating a failover.
Corresponds to the JSON property isZoneReady
16877 16878 16879 |
# File 'lib/google/apis/compute_alpha/classes.rb', line 16877 def is_zone_ready @is_zone_ready end |
#last_error ⇒ Google::Apis::ComputeAlpha::HaControllerStatusZoneStatusLastError
Contains details of the last failed operation.
Corresponds to the JSON property lastError
16883 16884 16885 |
# File 'lib/google/apis/compute_alpha/classes.rb', line 16883 def last_error @last_error end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
16890 16891 16892 16893 16894 |
# File 'lib/google/apis/compute_alpha/classes.rb', line 16890 def update!(**args) @is_primary = args[:is_primary] if args.key?(:is_primary) @is_zone_ready = args[:is_zone_ready] if args.key?(:is_zone_ready) @last_error = args[:last_error] if args.key?(:last_error) end |