Class: Google::Apis::ComputeV1::Zone

Inherits:
Object
  • Object
show all
Includes:
Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
Defined in:
generated/google/apis/compute_v1/classes.rb,
generated/google/apis/compute_v1/representations.rb,
generated/google/apis/compute_v1/representations.rb

Overview

A Zone resource.

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Google::Apis::Core::JsonObjectSupport

#to_json

Methods included from Google::Apis::Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ Zone

Returns a new instance of Zone



12857
12858
12859
# File 'generated/google/apis/compute_v1/classes.rb', line 12857

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

Instance Attribute Details

#creation_timestampString

[Output Only] Creation timestamp in RFC3339 text format. Corresponds to the JSON property creationTimestamp

Returns:

  • (String)


12814
12815
12816
# File 'generated/google/apis/compute_v1/classes.rb', line 12814

def creation_timestamp
  @creation_timestamp
end

#deprecatedGoogle::Apis::ComputeV1::DeprecationStatus

Deprecation status for a public resource. Corresponds to the JSON property deprecated



12819
12820
12821
# File 'generated/google/apis/compute_v1/classes.rb', line 12819

def deprecated
  @deprecated
end

#descriptionString

[Output Only] Textual description of the resource. Corresponds to the JSON property description

Returns:

  • (String)


12824
12825
12826
# File 'generated/google/apis/compute_v1/classes.rb', line 12824

def description
  @description
end

#idFixnum

[Output Only] The unique identifier for the resource. This identifier is defined by the server. Corresponds to the JSON property id

Returns:

  • (Fixnum)


12830
12831
12832
# File 'generated/google/apis/compute_v1/classes.rb', line 12830

def id
  @id
end

#kindString

[Output Only] Type of the resource. Always compute#zone for zones. Corresponds to the JSON property kind

Returns:

  • (String)


12835
12836
12837
# File 'generated/google/apis/compute_v1/classes.rb', line 12835

def kind
  @kind
end

#nameString

[Output Only] Name of the resource. Corresponds to the JSON property name

Returns:

  • (String)


12840
12841
12842
# File 'generated/google/apis/compute_v1/classes.rb', line 12840

def name
  @name
end

#regionString

[Output Only] Full URL reference to the region which hosts the zone. Corresponds to the JSON property region

Returns:

  • (String)


12845
12846
12847
# File 'generated/google/apis/compute_v1/classes.rb', line 12845

def region
  @region
end

[Output Only] Server-defined URL for the resource. Corresponds to the JSON property selfLink

Returns:

  • (String)


12850
12851
12852
# File 'generated/google/apis/compute_v1/classes.rb', line 12850

def self_link
  @self_link
end

#statusString

[Output Only] Status of the zone, either UP or DOWN. Corresponds to the JSON property status

Returns:

  • (String)


12855
12856
12857
# File 'generated/google/apis/compute_v1/classes.rb', line 12855

def status
  @status
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



12862
12863
12864
12865
12866
12867
12868
12869
12870
12871
12872
# File 'generated/google/apis/compute_v1/classes.rb', line 12862

def update!(**args)
  @creation_timestamp = args[:creation_timestamp] if args.key?(:creation_timestamp)
  @deprecated = args[:deprecated] if args.key?(:deprecated)
  @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)
  @region = args[:region] if args.key?(:region)
  @self_link = args[:self_link] if args.key?(:self_link)
  @status = args[:status] if args.key?(:status)
end