Class: Google::Apis::ComputeAlpha::Host
- Inherits:
- 
      Object
      
        - Object
- Google::Apis::ComputeAlpha::Host
 
- Defined in:
- generated/google/apis/compute_alpha/classes.rb,
 generated/google/apis/compute_alpha/representations.rb,
 generated/google/apis/compute_alpha/representations.rb
Instance Attribute Summary collapse
- 
  
    
      #creation_timestamp  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    [Output Only] Creation timestamp in RFC3339 text format. 
- 
  
    
      #description  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    [Output Only] An optional textual description of the resource. 
- 
  
    
      #host_type  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    Full or partial URL of the host type resource to use for this host, in the format: zones/zone/hostTypes/host-type. 
- 
  
    
      #id  ⇒ Fixnum 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    [Output Only] The unique identifier for the resource. 
- 
  
    
      #instances  ⇒ Array<String> 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    A list of resource URLs to the virtual machine instances in this host. 
- 
  
    
      #kind  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    [Output Only] The type of the resource. 
- 
  
    
      #label_fingerprint  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    A fingerprint for this request, which is essentially a hash of the metadata's contents and used for optimistic locking. 
- 
  
    
      #labels  ⇒ Hash<String,String> 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    Labels to apply to this host. 
- 
  
    
      #name  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    The name of the resource, provided by the client when initially creating the resource. 
- 
  
    
      #self_link  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    [Output Only] Server-defined URL for the resource. 
- 
  
    
      #status  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    [Output Only] The status of the host. 
- 
  
    
      #status_message  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    [Output Only] An optional, human-readable explanation of the status. 
- 
  
    
      #zone  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    [Output Only] The name of the zone where the host resides, such as us-central1- a. 
Instance Method Summary collapse
- 
  
    
      #initialize(**args)  ⇒ Host 
    
    
  
  
  
    constructor
  
  
  
  
  
  
  
    A new instance of Host. 
- 
  
    
      #update!(**args)  ⇒ Object 
    
    
  
  
  
  
  
  
  
  
  
    Update properties of this object. 
Methods included from Google::Apis::Core::JsonObjectSupport
Methods included from Google::Apis::Core::Hashable
Constructor Details
#initialize(**args) ⇒ Host
Returns a new instance of Host
| 7220 7221 7222 | # File 'generated/google/apis/compute_alpha/classes.rb', line 7220 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
| 7138 7139 7140 | # File 'generated/google/apis/compute_alpha/classes.rb', line 7138 def @creation_timestamp end | 
#description ⇒ String
[Output Only] An optional textual description of the resource.
Corresponds to the JSON property description
| 7143 7144 7145 | # File 'generated/google/apis/compute_alpha/classes.rb', line 7143 def description @description end | 
#host_type ⇒ String
Full or partial URL of the host type resource to use for this host, in the
format: zones/zone/hostTypes/host-type. This is provided by the client when
the host is created. For example, the following is a valid partial url to a
predefined host type:
zones/us-central1-b/hostTypes/n1-host-64-416
Corresponds to the JSON property hostType
| 7152 7153 7154 | # File 'generated/google/apis/compute_alpha/classes.rb', line 7152 def host_type @host_type end | 
#id ⇒ Fixnum
[Output Only] The unique identifier for the resource. This identifier is
defined by the server.
Corresponds to the JSON property id
| 7158 7159 7160 | # File 'generated/google/apis/compute_alpha/classes.rb', line 7158 def id @id end | 
#instances ⇒ Array<String>
A list of resource URLs to the virtual machine instances in this host. They
must live in zones contained in the same region as this host.
Corresponds to the JSON property instances
| 7164 7165 7166 | # File 'generated/google/apis/compute_alpha/classes.rb', line 7164 def instances @instances end | 
#kind ⇒ String
[Output Only] The type of the resource. Always compute#host for host.
Corresponds to the JSON property kind
| 7169 7170 7171 | # File 'generated/google/apis/compute_alpha/classes.rb', line 7169 def kind @kind end | 
#label_fingerprint ⇒ String
A fingerprint for this request, which is essentially a hash of the metadata's
contents and used for optimistic locking. The fingerprint is initially
generated by Compute Engine and changes after every request to modify or
update metadata. You must always provide an up-to-date fingerprint hash in
order to update or change metadata.
To see the latest fingerprint, make get() request to the host.
Corresponds to the JSON property labelFingerprint
NOTE: Values are automatically base64 encoded/decoded in the client library.
| 7180 7181 7182 | # File 'generated/google/apis/compute_alpha/classes.rb', line 7180 def label_fingerprint @label_fingerprint end | 
#labels ⇒ Hash<String,String>
Labels to apply to this host.
Corresponds to the JSON property labels
| 7185 7186 7187 | # File 'generated/google/apis/compute_alpha/classes.rb', line 7185 def labels @labels end | 
#name ⇒ String
The name of the resource, provided by the client when initially creating the
resource. The resource 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
| 7196 7197 7198 | # File 'generated/google/apis/compute_alpha/classes.rb', line 7196 def name @name end | 
#self_link ⇒ String
[Output Only] Server-defined URL for the resource.
Corresponds to the JSON property selfLink
| 7201 7202 7203 | # File 'generated/google/apis/compute_alpha/classes.rb', line 7201 def self_link @self_link end | 
#status ⇒ String
[Output Only] The status of the host. One of the following values: CREATING,
READY, REPAIR, and DELETING.
Corresponds to the JSON property status
| 7207 7208 7209 | # File 'generated/google/apis/compute_alpha/classes.rb', line 7207 def status @status end | 
#status_message ⇒ String
[Output Only] An optional, human-readable explanation of the status.
Corresponds to the JSON property statusMessage
| 7212 7213 7214 | # File 'generated/google/apis/compute_alpha/classes.rb', line 7212 def @status_message end | 
#zone ⇒ String
[Output Only] The name of the zone where the host resides, such as us-central1-
a.
Corresponds to the JSON property zone
| 7218 7219 7220 | # File 'generated/google/apis/compute_alpha/classes.rb', line 7218 def zone @zone end | 
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
| 7225 7226 7227 7228 7229 7230 7231 7232 7233 7234 7235 7236 7237 7238 7239 | # File 'generated/google/apis/compute_alpha/classes.rb', line 7225 def update!(**args) @creation_timestamp = args[:creation_timestamp] if args.key?(:creation_timestamp) @description = args[:description] if args.key?(:description) @host_type = args[:host_type] if args.key?(:host_type) @id = args[:id] if args.key?(:id) @instances = args[:instances] if args.key?(:instances) @kind = args[:kind] if args.key?(:kind) @label_fingerprint = args[:label_fingerprint] if args.key?(:label_fingerprint) @labels = args[:labels] if args.key?(:labels) @name = args[:name] if args.key?(:name) @self_link = args[:self_link] if args.key?(:self_link) @status = args[:status] if args.key?(:status) @status_message = args[:status_message] if args.key?(:status_message) @zone = args[:zone] if args.key?(:zone) end |