Class: Google::Apis::ComputeAlpha::AllocationSpecificSkuAllocationReservedInstanceProperties

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

Overview

Properties of the SKU instances being reserved.

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.



1177
1178
1179
# File 'generated/google/apis/compute_alpha/classes.rb', line 1177

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

Instance Attribute Details

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

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



1139
1140
1141
# File 'generated/google/apis/compute_alpha/classes.rb', line 1139

def guest_accelerators
  @guest_accelerators
end

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

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



1145
1146
1147
# File 'generated/google/apis/compute_alpha/classes.rb', line 1145

def local_ssds
  @local_ssds
end

#location_hintString

An opaque location hint used to place the allocation close to other resources. This field is for use by internal tools that use the public API. Corresponds to the JSON property locationHint

Returns:

  • (String)


1151
1152
1153
# File 'generated/google/apis/compute_alpha/classes.rb', line 1151

def location_hint
  @location_hint
end

#long_term_releaseBoolean Also known as: long_term_release?

DEPRECATED, please use maintenance_freeze_duration_hours. TODO(b/154158138): Remove this field. Compute Engine Long Term Release. When specified, VMs that have this policy become long term release (internal: stable fleet) VMs. For all VM shapes, this should result in fewer disruptions due to software updates and greater predictability via 1 week extended notifications. For GPU VMs, this should also result in an 2 week uptime guarantee. See go/ stable-fleet-gpus-design for more details. Corresponds to the JSON property longTermRelease

Returns:

  • (Boolean)


1162
1163
1164
# File 'generated/google/apis/compute_alpha/classes.rb', line 1162

def long_term_release
  @long_term_release
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)


1170
1171
1172
# File 'generated/google/apis/compute_alpha/classes.rb', line 1170

def machine_type
  @machine_type
end

#min_cpu_platformString

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

Returns:

  • (String)


1175
1176
1177
# File 'generated/google/apis/compute_alpha/classes.rb', line 1175

def min_cpu_platform
  @min_cpu_platform
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1182
1183
1184
1185
1186
1187
1188
1189
# File 'generated/google/apis/compute_alpha/classes.rb', line 1182

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