Class: Google::Apis::ComputeAlpha::AllocationResourceStatusHealthInfo
- Inherits:
-
Object
- Object
- Google::Apis::ComputeAlpha::AllocationResourceStatusHealthInfo
- 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.
Instance Attribute Summary collapse
-
#degraded_block_count ⇒ Fixnum
The number of reservation blocks that are degraded.
-
#health_status ⇒ String
The health status of the reservation.
-
#healthy_block_count ⇒ Fixnum
The number of reservation blocks that are healthy.
Instance Method Summary collapse
-
#initialize(**args) ⇒ AllocationResourceStatusHealthInfo
constructor
A new instance of AllocationResourceStatusHealthInfo.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ AllocationResourceStatusHealthInfo
Returns a new instance of AllocationResourceStatusHealthInfo.
1477 1478 1479 |
# File 'lib/google/apis/compute_alpha/classes.rb', line 1477 def initialize(**args) update!(**args) end |
Instance Attribute Details
#degraded_block_count ⇒ Fixnum
The number of reservation blocks that are degraded.
Corresponds to the JSON property degradedBlockCount
1465 1466 1467 |
# File 'lib/google/apis/compute_alpha/classes.rb', line 1465 def degraded_block_count @degraded_block_count end |
#health_status ⇒ String
The health status of the reservation.
Corresponds to the JSON property healthStatus
1470 1471 1472 |
# File 'lib/google/apis/compute_alpha/classes.rb', line 1470 def health_status @health_status end |
#healthy_block_count ⇒ Fixnum
The number of reservation blocks that are healthy.
Corresponds to the JSON property healthyBlockCount
1475 1476 1477 |
# File 'lib/google/apis/compute_alpha/classes.rb', line 1475 def healthy_block_count @healthy_block_count end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1482 1483 1484 1485 1486 |
# File 'lib/google/apis/compute_alpha/classes.rb', line 1482 def update!(**args) @degraded_block_count = args[:degraded_block_count] if args.key?(:degraded_block_count) @health_status = args[:health_status] if args.key?(:health_status) @healthy_block_count = args[:healthy_block_count] if args.key?(:healthy_block_count) end |