Class: Google::Apis::ComputeV1::AllocationSpecificSkuAllocationReservedInstanceProperties

Inherits:
Object
  • Object
show all
Includes:
Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
Defined in:
generated/google/apis/compute_v1/classes.rb,
generated/google/apis/compute_v1/representations.rb,
generated/google/apis/compute_v1/representations.rb

Overview

Properties of the SKU instances being reserved. Next ID: 9

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Google::Apis::Core::JsonObjectSupport

#to_json

Methods included from Google::Apis::Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ AllocationSpecificSkuAllocationReservedInstanceProperties

Returns a new instance of AllocationSpecificSkuAllocationReservedInstanceProperties.


1107
1108
1109
# File 'generated/google/apis/compute_v1/classes.rb', line 1107

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

Instance Attribute Details

#guest_acceleratorsArray<Google::Apis::ComputeV1::AcceleratorConfig>

Specifies accelerator type and count. Corresponds to the JSON property guestAccelerators


1080
1081
1082
# File 'generated/google/apis/compute_v1/classes.rb', line 1080

def guest_accelerators
  @guest_accelerators
end

#local_ssdsArray<Google::Apis::ComputeV1::AllocationSpecificSkuAllocationAllocatedInstancePropertiesReservedDisk>

Specifies amount of local ssd to reserve with each instance. The type of disk is local-ssd. Corresponds to the JSON property localSsds


1086
1087
1088
# File 'generated/google/apis/compute_v1/classes.rb', line 1086

def local_ssds
  @local_ssds
end

#machine_typeString

Specifies type of machine (name only) which has fixed number of vCPUs and fixed amount of memory. This also includes specifying custom machine type following custom-NUMBER_OF_CPUS-AMOUNT_OF_MEMORY pattern. Corresponds to the JSON property machineType

Returns:

  • (String)

1093
1094
1095
# File 'generated/google/apis/compute_v1/classes.rb', line 1093

def machine_type
  @machine_type
end

#maintenance_intervalString

Specifies whether this VM may be a stable fleet VM. Setting this to "Periodic" designates this VM as a Stable Fleet VM. See go/stable-fleet-ug for more details. Corresponds to the JSON property maintenanceInterval

Returns:

  • (String)

1100
1101
1102
# File 'generated/google/apis/compute_v1/classes.rb', line 1100

def maintenance_interval
  @maintenance_interval
end

#min_cpu_platformString

Minimum cpu platform the reservation. Corresponds to the JSON property minCpuPlatform

Returns:

  • (String)

1105
1106
1107
# File 'generated/google/apis/compute_v1/classes.rb', line 1105

def min_cpu_platform
  @min_cpu_platform
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object


1112
1113
1114
1115
1116
1117
1118
# File 'generated/google/apis/compute_v1/classes.rb', line 1112

def update!(**args)
  @guest_accelerators = args[:guest_accelerators] if args.key?(:guest_accelerators)
  @local_ssds = args[:local_ssds] if args.key?(:local_ssds)
  @machine_type = args[:machine_type] if args.key?(:machine_type)
  @maintenance_interval = args[:maintenance_interval] if args.key?(:maintenance_interval)
  @min_cpu_platform = args[:min_cpu_platform] if args.key?(:min_cpu_platform)
end