Class: Google::Apis::ComputeV1::TargetPoolInstanceHealth

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ TargetPoolInstanceHealth

Returns a new instance of TargetPoolInstanceHealth.



37489
37490
37491
# File 'lib/google/apis/compute_v1/classes.rb', line 37489

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

Instance Attribute Details

#health_statusArray<Google::Apis::ComputeV1::HealthStatus>

Corresponds to the JSON property healthStatus



37481
37482
37483
# File 'lib/google/apis/compute_v1/classes.rb', line 37481

def health_status
  @health_status
end

#kindString

[Output Only] Type of resource. Always compute#targetPoolInstanceHealth when checking the health of an instance. Corresponds to the JSON property kind

Returns:

  • (String)


37487
37488
37489
# File 'lib/google/apis/compute_v1/classes.rb', line 37487

def kind
  @kind
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



37494
37495
37496
37497
# File 'lib/google/apis/compute_v1/classes.rb', line 37494

def update!(**args)
  @health_status = args[:health_status] if args.key?(:health_status)
  @kind = args[:kind] if args.key?(:kind)
end