Class: Google::Apis::ComputeV1::ReservationBlockHealthInfo

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 block.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ ReservationBlockHealthInfo

Returns a new instance of ReservationBlockHealthInfo.



42621
42622
42623
# File 'lib/google/apis/compute_v1/classes.rb', line 42621

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

Instance Attribute Details

#degraded_sub_block_countFixnum

The number of subBlocks that are degraded. Corresponds to the JSON property degradedSubBlockCount

Returns:

  • (Fixnum)


42609
42610
42611
# File 'lib/google/apis/compute_v1/classes.rb', line 42609

def degraded_sub_block_count
  @degraded_sub_block_count
end

#health_statusString

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

Returns:

  • (String)


42614
42615
42616
# File 'lib/google/apis/compute_v1/classes.rb', line 42614

def health_status
  @health_status
end

#healthy_sub_block_countFixnum

The number of subBlocks that are healthy. Corresponds to the JSON property healthySubBlockCount

Returns:

  • (Fixnum)


42619
42620
42621
# File 'lib/google/apis/compute_v1/classes.rb', line 42619

def healthy_sub_block_count
  @healthy_sub_block_count
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



42626
42627
42628
42629
42630
# File 'lib/google/apis/compute_v1/classes.rb', line 42626

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