Class: Google::Apis::ComputeV1::HealthStatus

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) ⇒ HealthStatus

Returns a new instance of HealthStatus.



10101
10102
10103
# File 'lib/google/apis/compute_v1/classes.rb', line 10101

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

Instance Attribute Details

#annotationsHash<String,String>

Metadata defined as annotations for network endpoint. Corresponds to the JSON property annotations

Returns:

  • (Hash<String,String>)


10056
10057
10058
# File 'lib/google/apis/compute_v1/classes.rb', line 10056

def annotations
  @annotations
end

#forwarding_ruleString

URL of the forwarding rule associated with the health status of the instance. Corresponds to the JSON property forwardingRule

Returns:

  • (String)


10061
10062
10063
# File 'lib/google/apis/compute_v1/classes.rb', line 10061

def forwarding_rule
  @forwarding_rule
end

#forwarding_rule_ipString

A forwarding rule IP address assigned to this instance. Corresponds to the JSON property forwardingRuleIp

Returns:

  • (String)


10066
10067
10068
# File 'lib/google/apis/compute_v1/classes.rb', line 10066

def forwarding_rule_ip
  @forwarding_rule_ip
end

#health_stateString

Health state of the instance. Corresponds to the JSON property healthState

Returns:

  • (String)


10071
10072
10073
# File 'lib/google/apis/compute_v1/classes.rb', line 10071

def health_state
  @health_state
end

#instanceString

URL of the instance resource. Corresponds to the JSON property instance

Returns:

  • (String)


10076
10077
10078
# File 'lib/google/apis/compute_v1/classes.rb', line 10076

def instance
  @instance
end

#ip_addressString

For target pool based Network Load Balancing, it indicates the forwarding rule' s IP address assigned to this instance. For other types of load balancing, the field indicates VM internal ip. Corresponds to the JSON property ipAddress

Returns:

  • (String)


10083
10084
10085
# File 'lib/google/apis/compute_v1/classes.rb', line 10083

def ip_address
  @ip_address
end

#portFixnum

The named port of the instance group, not necessarily the port that is health- checked. Corresponds to the JSON property port

Returns:

  • (Fixnum)


10089
10090
10091
# File 'lib/google/apis/compute_v1/classes.rb', line 10089

def port
  @port
end

#weightString

Corresponds to the JSON property weight

Returns:

  • (String)


10094
10095
10096
# File 'lib/google/apis/compute_v1/classes.rb', line 10094

def weight
  @weight
end

#weight_errorString

Corresponds to the JSON property weightError

Returns:

  • (String)


10099
10100
10101
# File 'lib/google/apis/compute_v1/classes.rb', line 10099

def weight_error
  @weight_error
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



10106
10107
10108
10109
10110
10111
10112
10113
10114
10115
10116
# File 'lib/google/apis/compute_v1/classes.rb', line 10106

def update!(**args)
  @annotations = args[:annotations] if args.key?(:annotations)
  @forwarding_rule = args[:forwarding_rule] if args.key?(:forwarding_rule)
  @forwarding_rule_ip = args[:forwarding_rule_ip] if args.key?(:forwarding_rule_ip)
  @health_state = args[:health_state] if args.key?(:health_state)
  @instance = args[:instance] if args.key?(:instance)
  @ip_address = args[:ip_address] if args.key?(:ip_address)
  @port = args[:port] if args.key?(:port)
  @weight = args[:weight] if args.key?(:weight)
  @weight_error = args[:weight_error] if args.key?(:weight_error)
end