Class: Google::Apis::ComputeAlpha::MultiMig
- Inherits:
-
Object
- Object
- Google::Apis::ComputeAlpha::MultiMig
- 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
Multi-MIG represents a group of managed instance groups.
Instance Attribute Summary collapse
-
#creation_timestamp ⇒ String
[Output only] The creation timestamp of this multi-MIG in RFC3339 text format.
-
#description ⇒ String
An optional description of this resource.
-
#id ⇒ Fixnum
[Output only] The unique identifier for this resource type.
-
#kind ⇒ String
[Output only] Type of the resource.
-
#name ⇒ String
The name of the multi-MIG.
-
#region ⇒ String
[Output only] The URL of the region where the resource resides.
-
#resource_policies ⇒ Google::Apis::ComputeAlpha::MultiMigResourcePolicies
Resource policies message for a multi-MIG.
-
#self_link ⇒ String
[Output only] Server-defined URL for the resource.
-
#self_link_with_id ⇒ String
[Output only] Server-defined URL for this resource with the resource id.
-
#status ⇒ Google::Apis::ComputeAlpha::MultiMigStatus
Corresponds to the JSON property
status
.
Instance Method Summary collapse
-
#initialize(**args) ⇒ MultiMig
constructor
A new instance of MultiMig.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ MultiMig
Returns a new instance of MultiMig.
30250 30251 30252 |
# File 'lib/google/apis/compute_alpha/classes.rb', line 30250 def initialize(**args) update!(**args) end |
Instance Attribute Details
#creation_timestamp ⇒ String
[Output only] The creation timestamp of this multi-MIG in RFC3339 text format.
Corresponds to the JSON property creationTimestamp
30194 30195 30196 |
# File 'lib/google/apis/compute_alpha/classes.rb', line 30194 def @creation_timestamp end |
#description ⇒ String
An optional description of this resource.
Corresponds to the JSON property description
30199 30200 30201 |
# File 'lib/google/apis/compute_alpha/classes.rb', line 30199 def description @description end |
#id ⇒ Fixnum
[Output only] The unique identifier for this resource type. The server
generates this identifier.
Corresponds to the JSON property id
30205 30206 30207 |
# File 'lib/google/apis/compute_alpha/classes.rb', line 30205 def id @id end |
#kind ⇒ String
[Output only] Type of the resource. Always compute#multiMig for multi-MIGs.
Corresponds to the JSON property kind
30210 30211 30212 |
# File 'lib/google/apis/compute_alpha/classes.rb', line 30210 def kind @kind end |
#name ⇒ String
The name of the multi-MIG. 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
30220 30221 30222 |
# File 'lib/google/apis/compute_alpha/classes.rb', line 30220 def name @name end |
#region ⇒ String
[Output only] The URL of the region where the resource resides. You must
specify this field as part of the HTTP request URL. You cannot set the region
as a field in the request body.
Corresponds to the JSON property region
30227 30228 30229 |
# File 'lib/google/apis/compute_alpha/classes.rb', line 30227 def region @region end |
#resource_policies ⇒ Google::Apis::ComputeAlpha::MultiMigResourcePolicies
Resource policies message for a multi-MIG. Specifies the workload policy
configuration of the multi-MIG.
Corresponds to the JSON property resourcePolicies
30233 30234 30235 |
# File 'lib/google/apis/compute_alpha/classes.rb', line 30233 def resource_policies @resource_policies end |
#self_link ⇒ String
[Output only] Server-defined URL for the resource.
Corresponds to the JSON property selfLink
30238 30239 30240 |
# File 'lib/google/apis/compute_alpha/classes.rb', line 30238 def self_link @self_link end |
#self_link_with_id ⇒ String
[Output only] Server-defined URL for this resource with the resource id.
Corresponds to the JSON property selfLinkWithId
30243 30244 30245 |
# File 'lib/google/apis/compute_alpha/classes.rb', line 30243 def self_link_with_id @self_link_with_id end |
#status ⇒ Google::Apis::ComputeAlpha::MultiMigStatus
Corresponds to the JSON property status
30248 30249 30250 |
# File 'lib/google/apis/compute_alpha/classes.rb', line 30248 def status @status end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
30255 30256 30257 30258 30259 30260 30261 30262 30263 30264 30265 30266 |
# File 'lib/google/apis/compute_alpha/classes.rb', line 30255 def update!(**args) @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) @region = args[:region] if args.key?(:region) @resource_policies = args[:resource_policies] if args.key?(:resource_policies) @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) @status = args[:status] if args.key?(:status) end |