Class: Google::Apis::ComputeBeta::Zone
- Inherits:
-
Object
- Object
- Google::Apis::ComputeBeta::Zone
- Defined in:
- generated/google/apis/compute_beta/classes.rb,
generated/google/apis/compute_beta/representations.rb,
generated/google/apis/compute_beta/representations.rb
Overview
A Zone resource.
Instance Attribute Summary collapse
-
#creation_timestamp ⇒ String
[Output Only] Creation timestamp in RFC3339 text format.
-
#deprecated ⇒ Google::Apis::ComputeBeta::DeprecationStatus
Deprecation status for a public resource.
-
#description ⇒ String
[Output Only] Textual description of the resource.
-
#id ⇒ String
[Output Only] The unique identifier for the resource.
-
#kind ⇒ String
[Output Only] Type of the resource.
-
#name ⇒ String
[Output Only] Name of the resource.
-
#region ⇒ String
[Output Only] Full URL reference to the region which hosts the zone.
-
#self_link ⇒ String
[Output Only] Server-defined URL for the resource.
-
#status ⇒ String
[Output Only] Status of the zone, either UP or DOWN.
Instance Method Summary collapse
-
#initialize(**args) ⇒ Zone
constructor
A new instance of Zone.
-
#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) ⇒ Zone
Returns a new instance of Zone.
11235 11236 11237 |
# File 'generated/google/apis/compute_beta/classes.rb', line 11235 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
11192 11193 11194 |
# File 'generated/google/apis/compute_beta/classes.rb', line 11192 def @creation_timestamp end |
#deprecated ⇒ Google::Apis::ComputeBeta::DeprecationStatus
Deprecation status for a public resource.
Corresponds to the JSON property deprecated
11197 11198 11199 |
# File 'generated/google/apis/compute_beta/classes.rb', line 11197 def deprecated @deprecated end |
#description ⇒ String
[Output Only] Textual description of the resource.
Corresponds to the JSON property description
11202 11203 11204 |
# File 'generated/google/apis/compute_beta/classes.rb', line 11202 def description @description end |
#id ⇒ String
[Output Only] The unique identifier for the resource. This identifier is
defined by the server.
Corresponds to the JSON property id
11208 11209 11210 |
# File 'generated/google/apis/compute_beta/classes.rb', line 11208 def id @id end |
#kind ⇒ String
[Output Only] Type of the resource. Always compute#zone for zones.
Corresponds to the JSON property kind
11213 11214 11215 |
# File 'generated/google/apis/compute_beta/classes.rb', line 11213 def kind @kind end |
#name ⇒ String
[Output Only] Name of the resource.
Corresponds to the JSON property name
11218 11219 11220 |
# File 'generated/google/apis/compute_beta/classes.rb', line 11218 def name @name end |
#region ⇒ String
[Output Only] Full URL reference to the region which hosts the zone.
Corresponds to the JSON property region
11223 11224 11225 |
# File 'generated/google/apis/compute_beta/classes.rb', line 11223 def region @region end |
#self_link ⇒ String
[Output Only] Server-defined URL for the resource.
Corresponds to the JSON property selfLink
11228 11229 11230 |
# File 'generated/google/apis/compute_beta/classes.rb', line 11228 def self_link @self_link end |
#status ⇒ String
[Output Only] Status of the zone, either UP or DOWN.
Corresponds to the JSON property status
11233 11234 11235 |
# File 'generated/google/apis/compute_beta/classes.rb', line 11233 def status @status end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
11240 11241 11242 11243 11244 11245 11246 11247 11248 11249 11250 |
# File 'generated/google/apis/compute_beta/classes.rb', line 11240 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 |