Google Cloud Compute V1 API - Class Google::Cloud::Compute::V1::AllocationSpecificSKUReservation (v2.4.0)

Reference documentation and code samples for the Google Cloud Compute V1 API class Google::Cloud::Compute::V1::AllocationSpecificSKUReservation.

This reservation type allows to pre allocate specific instance configuration. Next ID: 6

Inherits

  • Object

Extended By

  • Google::Protobuf::MessageExts::ClassMethods

Includes

  • Google::Protobuf::MessageExts

Methods

#assured_count

def assured_count() -> ::Integer
Returns
  • (::Integer) — [Output Only] Indicates how many instances are actually usable currently.

#assured_count=

def assured_count=(value) -> ::Integer
Parameter
  • value (::Integer) — [Output Only] Indicates how many instances are actually usable currently.
Returns
  • (::Integer) — [Output Only] Indicates how many instances are actually usable currently.

#count

def count() -> ::Integer
Returns
  • (::Integer) — Specifies the number of resources that are allocated.

#count=

def count=(value) -> ::Integer
Parameter
  • value (::Integer) — Specifies the number of resources that are allocated.
Returns
  • (::Integer) — Specifies the number of resources that are allocated.

#in_use_count

def in_use_count() -> ::Integer
Returns
  • (::Integer) — [Output Only] Indicates how many instances are in use.

#in_use_count=

def in_use_count=(value) -> ::Integer
Parameter
  • value (::Integer) — [Output Only] Indicates how many instances are in use.
Returns
  • (::Integer) — [Output Only] Indicates how many instances are in use.

#instance_properties

def instance_properties() -> ::Google::Cloud::Compute::V1::AllocationSpecificSKUAllocationReservedInstanceProperties
Returns

#instance_properties=

def instance_properties=(value) -> ::Google::Cloud::Compute::V1::AllocationSpecificSKUAllocationReservedInstanceProperties
Parameter
Returns

#source_instance_template

def source_instance_template() -> ::String
Returns
  • (::String) — Specifies the instance template to create the reservation. If you use this field, you must exclude the instanceProperties field. This field is optional, and it can be a full or partial URL. For example, the following are all valid URLs to an instance template: - https://www.googleapis.com/compute/v1/projects/project /global/instanceTemplates/instanceTemplate - projects/project/global/instanceTemplates/instanceTemplate - global/instanceTemplates/instanceTemplate

#source_instance_template=

def source_instance_template=(value) -> ::String
Parameter
  • value (::String) — Specifies the instance template to create the reservation. If you use this field, you must exclude the instanceProperties field. This field is optional, and it can be a full or partial URL. For example, the following are all valid URLs to an instance template: - https://www.googleapis.com/compute/v1/projects/project /global/instanceTemplates/instanceTemplate - projects/project/global/instanceTemplates/instanceTemplate - global/instanceTemplates/instanceTemplate
Returns
  • (::String) — Specifies the instance template to create the reservation. If you use this field, you must exclude the instanceProperties field. This field is optional, and it can be a full or partial URL. For example, the following are all valid URLs to an instance template: - https://www.googleapis.com/compute/v1/projects/project /global/instanceTemplates/instanceTemplate - projects/project/global/instanceTemplates/instanceTemplate - global/instanceTemplates/instanceTemplate