Class: Google::Apis::ComputeV1::AllocationResourceStatusHealthInfo

Inherits:
Object
  • Object
show all
Includes:
Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
Defined in:
lib/google/apis/compute_v1/classes.rb,
lib/google/apis/compute_v1/representations.rb,
lib/google/apis/compute_v1/representations.rb

Overview

Health information for the reservation.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ AllocationResourceStatusHealthInfo

Returns a new instance of AllocationResourceStatusHealthInfo.



1566
1567
1568
# File 'lib/google/apis/compute_v1/classes.rb', line 1566

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#degraded_block_countFixnum

The number of reservation blocks that are degraded. Corresponds to the JSON property degradedBlockCount

Returns:

  • (Fixnum)


1554
1555
1556
# File 'lib/google/apis/compute_v1/classes.rb', line 1554

def degraded_block_count
  @degraded_block_count
end

#health_statusString

The health status of the reservation. Corresponds to the JSON property healthStatus

Returns:

  • (String)


1559
1560
1561
# File 'lib/google/apis/compute_v1/classes.rb', line 1559

def health_status
  @health_status
end

#healthy_block_countFixnum

The number of reservation blocks that are healthy. Corresponds to the JSON property healthyBlockCount

Returns:

  • (Fixnum)


1564
1565
1566
# File 'lib/google/apis/compute_v1/classes.rb', line 1564

def healthy_block_count
  @healthy_block_count
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1571
1572
1573
1574
1575
# File 'lib/google/apis/compute_v1/classes.rb', line 1571

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