Class: Google::Apis::ComputeV1::Host
- Inherits:
-
Object
- Object
- Google::Apis::ComputeV1::Host
- 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
Represents a host resource.
Instance Attribute Summary collapse
-
#alias_links ⇒ Array<String>
Output only.
-
#creation_timestamp ⇒ String
Output only.
-
#description ⇒ String
An optional description of this resource.
-
#id ⇒ Fixnum
Output only.
-
#kind ⇒ String
Output only.
-
#name ⇒ String
Output only.
-
#self_link ⇒ String
Output only.
-
#self_link_with_id ⇒ String
Output only.
-
#state ⇒ String
Output only.
-
#status ⇒ Google::Apis::ComputeV1::HostStatus
Output only.
-
#zone ⇒ String
Output only.
Instance Method Summary collapse
-
#initialize(**args) ⇒ Host
constructor
A new instance of Host.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ Host
Returns a new instance of Host.
19683 19684 19685 |
# File 'lib/google/apis/compute_v1/classes.rb', line 19683 def initialize(**args) update!(**args) end |
Instance Attribute Details
#alias_links ⇒ Array<String>
Output only. All aliases for this resource.
e.g.
projects/123/zones/us-centra1-a/reservation/r1/reservationBlock/b1/hosts/h1
Corresponds to the JSON property aliasLinks
19630 19631 19632 |
# File 'lib/google/apis/compute_v1/classes.rb', line 19630 def alias_links @alias_links end |
#creation_timestamp ⇒ String
Output only. The creation timestamp, formatted asRFC3339 text.
Corresponds to the JSON property creationTimestamp
19635 19636 19637 |
# File 'lib/google/apis/compute_v1/classes.rb', line 19635 def @creation_timestamp end |
#description ⇒ String
An optional description of this resource.
Corresponds to the JSON property description
19640 19641 19642 |
# File 'lib/google/apis/compute_v1/classes.rb', line 19640 def description @description end |
#id ⇒ Fixnum
Output only. The unique identifier for this resource. This identifier is
defined by the server.
Corresponds to the JSON property id
19646 19647 19648 |
# File 'lib/google/apis/compute_v1/classes.rb', line 19646 def id @id end |
#kind ⇒ String
Output only. The type of resource. Alwayscompute#host for hosts.
Corresponds to the JSON property kind
19651 19652 19653 |
# File 'lib/google/apis/compute_v1/classes.rb', line 19651 def kind @kind end |
#name ⇒ String
Output only. The name of the host.
Corresponds to the JSON property name
19656 19657 19658 |
# File 'lib/google/apis/compute_v1/classes.rb', line 19656 def name @name end |
#self_link ⇒ String
Output only. The self link of the host.
Corresponds to the JSON property selfLink
19661 19662 19663 |
# File 'lib/google/apis/compute_v1/classes.rb', line 19661 def self_link @self_link end |
#self_link_with_id ⇒ String
Output only. The self link with id of the host.
Corresponds to the JSON property selfLinkWithId
19666 19667 19668 |
# File 'lib/google/apis/compute_v1/classes.rb', line 19666 def self_link_with_id @self_link_with_id end |
#state ⇒ String
Output only. The state of the host.
Corresponds to the JSON property state
19671 19672 19673 |
# File 'lib/google/apis/compute_v1/classes.rb', line 19671 def state @state end |
#status ⇒ Google::Apis::ComputeV1::HostStatus
Output only. The status of the host
Corresponds to the JSON property status
19676 19677 19678 |
# File 'lib/google/apis/compute_v1/classes.rb', line 19676 def status @status end |
#zone ⇒ String
Output only. The zone in which the host resides.
Corresponds to the JSON property zone
19681 19682 19683 |
# File 'lib/google/apis/compute_v1/classes.rb', line 19681 def zone @zone end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
19688 19689 19690 19691 19692 19693 19694 19695 19696 19697 19698 19699 19700 |
# File 'lib/google/apis/compute_v1/classes.rb', line 19688 def update!(**args) @alias_links = args[:alias_links] if args.key?(:alias_links) @creation_timestamp = args[:creation_timestamp] if args.key?(:creation_timestamp) @description = args[:description] if args.key?(:description) @id = args[:id] if args.key?(:id) @kind = args[:kind] if args.key?(:kind) @name = args[:name] if args.key?(:name) @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) @state = args[:state] if args.key?(:state) @status = args[:status] if args.key?(:status) @zone = args[:zone] if args.key?(:zone) end |