Class: Google::Apis::ComputeAlpha::Allocation
- Inherits:
-
Object
- Object
- Google::Apis::ComputeAlpha::Allocation
- Defined in:
- generated/google/apis/compute_alpha/classes.rb,
generated/google/apis/compute_alpha/representations.rb,
generated/google/apis/compute_alpha/representations.rb
Overview
Allocation resource
Instance Attribute Summary collapse
-
#commitment ⇒ String
Full or partial url for commitment in which this allocation is to be created.
-
#creation_timestamp ⇒ String
[Output Only] Creation timestamp in RFC3339 text format.
-
#description ⇒ String
Corresponds to the JSON property
description
. -
#id ⇒ Fixnum
[Output Only] The unique identifier for the resource.
-
#kind ⇒ String
[Output Only] Type of the resource.
-
#name ⇒ String
The name of the resource, provided by the client when initially creating the resource.
-
#self_link ⇒ String
[Output Only] Server-defined fully-qualified URL for this resource.
-
#self_link_with_id ⇒ String
[Output Only] Server-defined URL for this resource with the resource id.
-
#specific_allocation ⇒ Google::Apis::ComputeAlpha::AllocationSpecificSkuAllocation
This allocation type allows to pre allocate specific instance configuration.
-
#specific_allocation_required ⇒ Boolean
(also: #specific_allocation_required?)
Indicates whether the allocation can be consumed by VMs with "any allocation" defined.
-
#zone ⇒ String
Corresponds to the JSON property
zone
.
Instance Method Summary collapse
-
#initialize(**args) ⇒ Allocation
constructor
A new instance of Allocation.
-
#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) ⇒ Allocation
Returns a new instance of Allocation
1142 1143 1144 |
# File 'generated/google/apis/compute_alpha/classes.rb', line 1142 def initialize(**args) update!(**args) end |
Instance Attribute Details
#commitment ⇒ String
Full or partial url for commitment in which this allocation is to be created.
This field is ignored when allocations are created during committment creation.
Corresponds to the JSON property commitment
1080 1081 1082 |
# File 'generated/google/apis/compute_alpha/classes.rb', line 1080 def commitment @commitment end |
#creation_timestamp ⇒ String
[Output Only] Creation timestamp in RFC3339 text format.
Corresponds to the JSON property creationTimestamp
1085 1086 1087 |
# File 'generated/google/apis/compute_alpha/classes.rb', line 1085 def @creation_timestamp end |
#description ⇒ String
Corresponds to the JSON property description
1090 1091 1092 |
# File 'generated/google/apis/compute_alpha/classes.rb', line 1090 def description @description end |
#id ⇒ Fixnum
[Output Only] The unique identifier for the resource. This identifier is
defined by the server.
Corresponds to the JSON property id
1096 1097 1098 |
# File 'generated/google/apis/compute_alpha/classes.rb', line 1096 def id @id end |
#kind ⇒ String
[Output Only] Type of the resource. Always compute#allocations for allocations.
Corresponds to the JSON property kind
1101 1102 1103 |
# File 'generated/google/apis/compute_alpha/classes.rb', line 1101 def kind @kind 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
1112 1113 1114 |
# File 'generated/google/apis/compute_alpha/classes.rb', line 1112 def name @name end |
#self_link ⇒ String
[Output Only] Server-defined fully-qualified URL for this resource.
Corresponds to the JSON property selfLink
1117 1118 1119 |
# File 'generated/google/apis/compute_alpha/classes.rb', line 1117 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
1122 1123 1124 |
# File 'generated/google/apis/compute_alpha/classes.rb', line 1122 def self_link_with_id @self_link_with_id end |
#specific_allocation ⇒ Google::Apis::ComputeAlpha::AllocationSpecificSkuAllocation
This allocation type allows to pre allocate specific instance configuration.
Corresponds to the JSON property specificAllocation
1127 1128 1129 |
# File 'generated/google/apis/compute_alpha/classes.rb', line 1127 def specific_allocation @specific_allocation end |
#specific_allocation_required ⇒ Boolean Also known as: specific_allocation_required?
Indicates whether the allocation can be consumed by VMs with "any allocation"
defined. If the field is set, then only VMs that target the allocation by name
using --allocation-affinity can consume this allocation.
Corresponds to the JSON property specificAllocationRequired
1134 1135 1136 |
# File 'generated/google/apis/compute_alpha/classes.rb', line 1134 def specific_allocation_required @specific_allocation_required end |
#zone ⇒ String
Corresponds to the JSON property zone
1140 1141 1142 |
# File 'generated/google/apis/compute_alpha/classes.rb', line 1140 def zone @zone end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1147 1148 1149 1150 1151 1152 1153 1154 1155 1156 1157 1158 1159 |
# File 'generated/google/apis/compute_alpha/classes.rb', line 1147 def update!(**args) @commitment = args[:commitment] if args.key?(:commitment) @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) @specific_allocation = args[:specific_allocation] if args.key?(:specific_allocation) @specific_allocation_required = args[:specific_allocation_required] if args.key?(:specific_allocation_required) @zone = args[:zone] if args.key?(:zone) end |