Class: Google::Apis::ComputeAlpha::CompositeHealthCheck
- Inherits:
-
Object
- Object
- Google::Apis::ComputeAlpha::CompositeHealthCheck
- 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
Represents a composite health check. A composite health check resource specifies the health source resources and the health destination resource to which the aggregated health result from the health source resources is delivered.
Instance Attribute Summary collapse
-
#creation_timestamp ⇒ String
[Output Only] Creation timestamp in RFC3339 text format.
-
#description ⇒ String
An optional description of this resource.
-
#fingerprint ⇒ String
Fingerprint of this resource.
-
#health_destination ⇒ String
URL to the destination resource.
-
#health_sources ⇒ Array<String>
URLs to the HealthSource resources whose results are AND'ed.
-
#id ⇒ Fixnum
[Output Only] A unique identifier for this resource type.
-
#kind ⇒ String
[Output Only] Type of the resource.
-
#name ⇒ String
Name of the resource.
-
#region ⇒ String
[Output Only] URL of the region where the composite health check resides.
-
#self_link ⇒ String
[Output Only] Server-defined URL for the resource.
-
#self_link_with_id ⇒ String
[Output Only] Server-defined URL with id for the resource.
Instance Method Summary collapse
-
#initialize(**args) ⇒ CompositeHealthCheck
constructor
A new instance of CompositeHealthCheck.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ CompositeHealthCheck
Returns a new instance of CompositeHealthCheck.
8313 8314 8315 |
# File 'lib/google/apis/compute_alpha/classes.rb', line 8313 def initialize(**args) update!(**args) end |
Instance Attribute Details
#creation_timestamp ⇒ String
[Output Only] Creation timestamp in RFC3339 text format.
Corresponds to the JSON property creationTimestamp
8238 8239 8240 |
# File 'lib/google/apis/compute_alpha/classes.rb', line 8238 def @creation_timestamp end |
#description ⇒ String
An optional description of this resource. Provide this property when you
create the resource.
Corresponds to the JSON property description
8244 8245 8246 |
# File 'lib/google/apis/compute_alpha/classes.rb', line 8244 def description @description end |
#fingerprint ⇒ String
Fingerprint of this resource. A hash of the contents stored in this object.
This field is used in optimistic locking. This field will be ignored when
inserting a CompositeHealthCheck. An up-to-date fingerprint must be provided
in order to patch the CompositeHealthCheck; Otherwise, the request will fail
with error 412 conditionNotMet. To see the latest fingerprint, make a get()
request to retrieve the CompositeHealthCheck.
Corresponds to the JSON property fingerprint
NOTE: Values are automatically base64 encoded/decoded in the client library.
8255 8256 8257 |
# File 'lib/google/apis/compute_alpha/classes.rb', line 8255 def fingerprint @fingerprint end |
#health_destination ⇒ String
URL to the destination resource. Must be set. Must be a ForwardingRule. The
ForwardingRule must have load balancing scheme INTERNAL or INTERNAL_MANAGED
and must be regional and in the same region as the CompositeHealthCheck (cross-
region deployment for INTERNAL_MANAGED is not supported). Can be mutated.
Corresponds to the JSON property healthDestination
8263 8264 8265 |
# File 'lib/google/apis/compute_alpha/classes.rb', line 8263 def health_destination @health_destination end |
#health_sources ⇒ Array<String>
URLs to the HealthSource resources whose results are AND'ed. I.e. he
aggregated result is is HEALTHY only if all sources are HEALTHY. Must have at
least 1. Must not have more than 10. Must be regional and in the same region
as the CompositeHealthCheck. Can be mutated.
Corresponds to the JSON property healthSources
8271 8272 8273 |
# File 'lib/google/apis/compute_alpha/classes.rb', line 8271 def health_sources @health_sources end |
#id ⇒ Fixnum
[Output Only] A unique identifier for this resource type. The server generates
this identifier.
Corresponds to the JSON property id
8277 8278 8279 |
# File 'lib/google/apis/compute_alpha/classes.rb', line 8277 def id @id end |
#kind ⇒ String
[Output Only] Type of the resource. Always compute#compositeHealthCheck for
composite health checks.
Corresponds to the JSON property kind
8283 8284 8285 |
# File 'lib/google/apis/compute_alpha/classes.rb', line 8283 def kind @kind end |
#name ⇒ String
Name of the resource. Provided by the client when the resource is created. The
name must be 1-63 characters long, and comply with RFC1035. Specifically, the
name must be 1-63 characters long and match the regular expression [a-z]([-a-
z0-9]*[a-z0-9])? which means the first character must be a lowercase letter,
and all following characters must be a dash, lowercase letter, or digit,
except the last character, which cannot be a dash.
Corresponds to the JSON property name
8293 8294 8295 |
# File 'lib/google/apis/compute_alpha/classes.rb', line 8293 def name @name end |
#region ⇒ String
[Output Only] URL of the region where the composite health check resides. This
field applies only to the regional resource. You must specify this field as
part of the HTTP request URL. It is not settable as a field in the request
body.
Corresponds to the JSON property region
8301 8302 8303 |
# File 'lib/google/apis/compute_alpha/classes.rb', line 8301 def region @region end |
#self_link ⇒ String
[Output Only] Server-defined URL for the resource.
Corresponds to the JSON property selfLink
8306 8307 8308 |
# File 'lib/google/apis/compute_alpha/classes.rb', line 8306 def self_link @self_link end |
#self_link_with_id ⇒ String
[Output Only] Server-defined URL with id for the resource.
Corresponds to the JSON property selfLinkWithId
8311 8312 8313 |
# File 'lib/google/apis/compute_alpha/classes.rb', line 8311 def self_link_with_id @self_link_with_id end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
8318 8319 8320 8321 8322 8323 8324 8325 8326 8327 8328 8329 8330 |
# File 'lib/google/apis/compute_alpha/classes.rb', line 8318 def update!(**args) @creation_timestamp = args[:creation_timestamp] if args.key?(:creation_timestamp) @description = args[:description] if args.key?(:description) @fingerprint = args[:fingerprint] if args.key?(:fingerprint) @health_destination = args[:health_destination] if args.key?(:health_destination) @health_sources = args[:health_sources] if args.key?(:health_sources) @id = args[:id] if args.key?(:id) @kind = args[:kind] if args.key?(:kind) @name = args[:name] if args.key?(:name) @region = args[:region] if args.key?(:region) @self_link = args[:self_link] if args.key?(:self_link) @self_link_with_id = args[:self_link_with_id] if args.key?(:self_link_with_id) end |