Class: Google::Apis::ComputeAlpha::QueuedResource
- Inherits:
-
Object
- Object
- Google::Apis::ComputeAlpha::QueuedResource
- 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
QueuedResource represents a request for future capacity. The capacity is delivered in the form of other GCE resources, either Instances or Reservations.
Instance Attribute Summary collapse
-
#bulk_insert_instance_resource ⇒ Google::Apis::ComputeAlpha::BulkInsertInstanceResource
A transient resource used in compute.instances.bulkInsert and compute.
-
#creation_timestamp ⇒ String
[Output Only] Creation timestamp in RFC3339 text format.
-
#description ⇒ String
An optional description of this resource.
-
#id ⇒ Fixnum
[Output Only] The unique identifier for the resource.
-
#kind ⇒ String
[Output Only] Type of the resource.
-
#name ⇒ String
Name of the resource.
-
#queuing_policy ⇒ Google::Apis::ComputeAlpha::QueuingPolicy
Queuing parameters for the requested deferred capacity.
-
#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.
-
#state ⇒ String
[Output only] High-level status of the request.
-
#status ⇒ Google::Apis::ComputeAlpha::QueuedResourceStatus
[Output only] Result of queuing and provisioning based on deferred capacity.
-
#zone ⇒ String
[Output Only] URL of the zone where the resource resides.
Instance Method Summary collapse
-
#initialize(**args) ⇒ QueuedResource
constructor
A new instance of QueuedResource.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ QueuedResource
Returns a new instance of QueuedResource.
33501 33502 33503 |
# File 'lib/google/apis/compute_alpha/classes.rb', line 33501 def initialize(**args) update!(**args) end |
Instance Attribute Details
#bulk_insert_instance_resource ⇒ Google::Apis::ComputeAlpha::BulkInsertInstanceResource
A transient resource used in compute.instances.bulkInsert and compute.
regionInstances.bulkInsert . This resource is not persisted anywhere, it is
used only for processing the requests.
Corresponds to the JSON property bulkInsertInstanceResource
33434 33435 33436 |
# File 'lib/google/apis/compute_alpha/classes.rb', line 33434 def bulk_insert_instance_resource @bulk_insert_instance_resource end |
#creation_timestamp ⇒ String
[Output Only] Creation timestamp in RFC3339 text format.
Corresponds to the JSON property creationTimestamp
33439 33440 33441 |
# File 'lib/google/apis/compute_alpha/classes.rb', line 33439 def @creation_timestamp end |
#description ⇒ String
An optional description of this resource. Provide this property when you
create the resource.
Corresponds to the JSON property description
33445 33446 33447 |
# File 'lib/google/apis/compute_alpha/classes.rb', line 33445 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
33451 33452 33453 |
# File 'lib/google/apis/compute_alpha/classes.rb', line 33451 def id @id end |
#kind ⇒ String
[Output Only] Type of the resource. Always compute#queuedResource for
QueuedResources.
Corresponds to the JSON property kind
33457 33458 33459 |
# File 'lib/google/apis/compute_alpha/classes.rb', line 33457 def kind @kind end |
#name ⇒ String
Name of the resource. Provided by the client when the resource is created. 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
33467 33468 33469 |
# File 'lib/google/apis/compute_alpha/classes.rb', line 33467 def name @name end |
#queuing_policy ⇒ Google::Apis::ComputeAlpha::QueuingPolicy
Queuing parameters for the requested deferred capacity.
Corresponds to the JSON property queuingPolicy
33472 33473 33474 |
# File 'lib/google/apis/compute_alpha/classes.rb', line 33472 def queuing_policy @queuing_policy end |
#self_link ⇒ String
[Output only] Server-defined URL for the resource.
Corresponds to the JSON property selfLink
33477 33478 33479 |
# File 'lib/google/apis/compute_alpha/classes.rb', line 33477 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
33482 33483 33484 |
# File 'lib/google/apis/compute_alpha/classes.rb', line 33482 def self_link_with_id @self_link_with_id end |
#state ⇒ String
[Output only] High-level status of the request.
Corresponds to the JSON property state
33487 33488 33489 |
# File 'lib/google/apis/compute_alpha/classes.rb', line 33487 def state @state end |
#status ⇒ Google::Apis::ComputeAlpha::QueuedResourceStatus
[Output only] Result of queuing and provisioning based on deferred capacity.
Corresponds to the JSON property status
33492 33493 33494 |
# File 'lib/google/apis/compute_alpha/classes.rb', line 33492 def status @status end |
#zone ⇒ String
[Output Only] URL of the zone where the resource resides. Only applicable for
zonal resources. You must specify this field as part of the HTTP request URL.
It is not settable as a field in the request body.
Corresponds to the JSON property zone
33499 33500 33501 |
# File 'lib/google/apis/compute_alpha/classes.rb', line 33499 def zone @zone end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
33506 33507 33508 33509 33510 33511 33512 33513 33514 33515 33516 33517 33518 33519 |
# File 'lib/google/apis/compute_alpha/classes.rb', line 33506 def update!(**args) @bulk_insert_instance_resource = args[:bulk_insert_instance_resource] if args.key?(:bulk_insert_instance_resource) @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) @queuing_policy = args[:queuing_policy] if args.key?(:queuing_policy) @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) @state = args[:state] if args.key?(:state) @status = args[:status] if args.key?(:status) @zone = args[:zone] if args.key?(:zone) end |