Class: Google::Apis::ComputeAlpha::ReservationBlockHealthInfo
- Inherits:
-
Object
- Object
- Google::Apis::ComputeAlpha::ReservationBlockHealthInfo
- 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
Health information for the reservation block.
Instance Attribute Summary collapse
-
#degraded_sub_block_count ⇒ Fixnum
The number of subBlocks that are degraded.
-
#health_status ⇒ String
The health status of the reservation block.
-
#healthy_sub_block_count ⇒ Fixnum
The number of subBlocks that are healthy.
Instance Method Summary collapse
-
#initialize(**args) ⇒ ReservationBlockHealthInfo
constructor
A new instance of ReservationBlockHealthInfo.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ ReservationBlockHealthInfo
Returns a new instance of ReservationBlockHealthInfo.
57450 57451 57452 |
# File 'lib/google/apis/compute_alpha/classes.rb', line 57450 def initialize(**args) update!(**args) end |
Instance Attribute Details
#degraded_sub_block_count ⇒ Fixnum
The number of subBlocks that are degraded.
Corresponds to the JSON property degradedSubBlockCount
57438 57439 57440 |
# File 'lib/google/apis/compute_alpha/classes.rb', line 57438 def degraded_sub_block_count @degraded_sub_block_count end |
#health_status ⇒ String
The health status of the reservation block.
Corresponds to the JSON property healthStatus
57443 57444 57445 |
# File 'lib/google/apis/compute_alpha/classes.rb', line 57443 def health_status @health_status end |
#healthy_sub_block_count ⇒ Fixnum
The number of subBlocks that are healthy.
Corresponds to the JSON property healthySubBlockCount
57448 57449 57450 |
# File 'lib/google/apis/compute_alpha/classes.rb', line 57448 def healthy_sub_block_count @healthy_sub_block_count end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
57455 57456 57457 57458 57459 |
# File 'lib/google/apis/compute_alpha/classes.rb', line 57455 def update!(**args) @degraded_sub_block_count = args[:degraded_sub_block_count] if args.key?(:degraded_sub_block_count) @health_status = args[:health_status] if args.key?(:health_status) @healthy_sub_block_count = args[:healthy_sub_block_count] if args.key?(:healthy_sub_block_count) end |