Class: Google::Apis::ComputeAlpha::QueuedResource

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ QueuedResource

Returns a new instance of QueuedResource.



31864
31865
31866
# File 'lib/google/apis/compute_alpha/classes.rb', line 31864

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

Instance Attribute Details

#bulk_insert_instance_resourceGoogle::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



31790
31791
31792
# File 'lib/google/apis/compute_alpha/classes.rb', line 31790

def bulk_insert_instance_resource
  @bulk_insert_instance_resource
end

#creation_timestampString

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

Returns:

  • (String)


31795
31796
31797
# File 'lib/google/apis/compute_alpha/classes.rb', line 31795

def creation_timestamp
  @creation_timestamp
end

#descriptionString

An optional description of this resource. Provide this property when you create the resource. Corresponds to the JSON property description

Returns:

  • (String)


31801
31802
31803
# File 'lib/google/apis/compute_alpha/classes.rb', line 31801

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)


31807
31808
31809
# File 'lib/google/apis/compute_alpha/classes.rb', line 31807

def id
  @id
end

#kindString

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

Returns:

  • (String)


31813
31814
31815
# File 'lib/google/apis/compute_alpha/classes.rb', line 31813

def kind
  @kind
end

#nameString

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

Returns:

  • (String)


31823
31824
31825
# File 'lib/google/apis/compute_alpha/classes.rb', line 31823

def name
  @name
end

#queuing_policyGoogle::Apis::ComputeAlpha::QueuingPolicy

Queuing parameters for the requested deferred capacity. Corresponds to the JSON property queuingPolicy



31828
31829
31830
# File 'lib/google/apis/compute_alpha/classes.rb', line 31828

def queuing_policy
  @queuing_policy
end

#regionString

[Output Only] URL of the region where the resource resides. Only applicable for regional 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 region

Returns:

  • (String)


31835
31836
31837
# File 'lib/google/apis/compute_alpha/classes.rb', line 31835

def region
  @region
end

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

Returns:

  • (String)


31840
31841
31842
# File 'lib/google/apis/compute_alpha/classes.rb', line 31840

def self_link
  @self_link
end

[Output Only] Server-defined URL for this resource with the resource id. Corresponds to the JSON property selfLinkWithId

Returns:

  • (String)


31845
31846
31847
# File 'lib/google/apis/compute_alpha/classes.rb', line 31845

def self_link_with_id
  @self_link_with_id
end

#stateString

[Output only] High-level status of the request. Corresponds to the JSON property state

Returns:

  • (String)


31850
31851
31852
# File 'lib/google/apis/compute_alpha/classes.rb', line 31850

def state
  @state
end

#statusGoogle::Apis::ComputeAlpha::QueuedResourceStatus

[Output only] Result of queuing and provisioning based on deferred capacity. Corresponds to the JSON property status



31855
31856
31857
# File 'lib/google/apis/compute_alpha/classes.rb', line 31855

def status
  @status
end

#zoneString

[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

Returns:

  • (String)


31862
31863
31864
# File 'lib/google/apis/compute_alpha/classes.rb', line 31862

def zone
  @zone
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



31869
31870
31871
31872
31873
31874
31875
31876
31877
31878
31879
31880
31881
31882
31883
# File 'lib/google/apis/compute_alpha/classes.rb', line 31869

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)
  @region = args[:region] if args.key?(:region)
  @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