Class: Google::Apis::ComputeAlpha::HaControllerStatusZoneStatus

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

Overview

Contains the status of a specific zone.

Instance Attribute Summary collapse

Instance Method Summary collapse

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_primaryBoolean Also known as: is_primary?

[Output Only] Indicates if the zone is primary at this moment. Corresponds to the JSON property isPrimary

Returns:

  • (Boolean)


16871
16872
16873
# File 'lib/google/apis/compute_alpha/classes.rb', line 16871

def is_primary
  @is_primary
end

#is_zone_readyBoolean Also known as: is_zone_ready?

[Output Only] Indicates if the zone is ready for initiating a failover. Corresponds to the JSON property isZoneReady

Returns:

  • (Boolean)


16877
16878
16879
# File 'lib/google/apis/compute_alpha/classes.rb', line 16877

def is_zone_ready
  @is_zone_ready
end

#last_errorGoogle::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