Class: Google::Apis::ComputeBeta::AllocationSpecificSkuAllocationReservedInstanceProperties
- Inherits:
-
Object
- Object
- Google::Apis::ComputeBeta::AllocationSpecificSkuAllocationReservedInstanceProperties
- Includes:
- Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
- Defined in:
- lib/google/apis/compute_beta/classes.rb,
lib/google/apis/compute_beta/representations.rb,
lib/google/apis/compute_beta/representations.rb
Overview
Properties of the SKU instances being reserved. Next ID: 9
Instance Attribute Summary collapse
-
#guest_accelerators ⇒ Array<Google::Apis::ComputeBeta::AcceleratorConfig>
Specifies accelerator type and count.
-
#local_ssds ⇒ Array<Google::Apis::ComputeBeta::AllocationSpecificSkuAllocationAllocatedInstancePropertiesReservedDisk>
Specifies amount of local ssd to reserve with each instance.
-
#location_hint ⇒ String
An opaque location hint used to place the allocation close to other resources.
-
#machine_type ⇒ String
Specifies type of machine (name only) which has fixed number of vCPUs and fixed amount of memory.
-
#maintenance_freeze_duration_hours ⇒ Fixnum
Specifies the number of hours after reservation creation where instances using the reservation won't be scheduled for maintenance.
-
#maintenance_interval ⇒ String
For more information about maintenance intervals, see Setting maintenance intervals.
-
#min_cpu_platform ⇒ String
Minimum cpu platform the reservation.
Instance Method Summary collapse
-
#initialize(**args) ⇒ AllocationSpecificSkuAllocationReservedInstanceProperties
constructor
A new instance of AllocationSpecificSkuAllocationReservedInstanceProperties.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ AllocationSpecificSkuAllocationReservedInstanceProperties
Returns a new instance of AllocationSpecificSkuAllocationReservedInstanceProperties.
1211 1212 1213 |
# File 'lib/google/apis/compute_beta/classes.rb', line 1211 def initialize(**args) update!(**args) end |
Instance Attribute Details
#guest_accelerators ⇒ Array<Google::Apis::ComputeBeta::AcceleratorConfig>
Specifies accelerator type and count.
Corresponds to the JSON property guestAccelerators
1173 1174 1175 |
# File 'lib/google/apis/compute_beta/classes.rb', line 1173 def guest_accelerators @guest_accelerators end |
#local_ssds ⇒ Array<Google::Apis::ComputeBeta::AllocationSpecificSkuAllocationAllocatedInstancePropertiesReservedDisk>
Specifies amount of local ssd to reserve with each instance. The type of disk
is local-ssd.
Corresponds to the JSON property localSsds
1179 1180 1181 |
# File 'lib/google/apis/compute_beta/classes.rb', line 1179 def local_ssds @local_ssds end |
#location_hint ⇒ String
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
1185 1186 1187 |
# File 'lib/google/apis/compute_beta/classes.rb', line 1185 def location_hint @location_hint end |
#machine_type ⇒ String
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
1192 1193 1194 |
# File 'lib/google/apis/compute_beta/classes.rb', line 1192 def machine_type @machine_type end |
#maintenance_freeze_duration_hours ⇒ Fixnum
Specifies the number of hours after reservation creation where instances using
the reservation won't be scheduled for maintenance.
Corresponds to the JSON property maintenanceFreezeDurationHours
1198 1199 1200 |
# File 'lib/google/apis/compute_beta/classes.rb', line 1198 def maintenance_freeze_duration_hours @maintenance_freeze_duration_hours end |
#maintenance_interval ⇒ String
For more information about maintenance intervals, see Setting maintenance
intervals.
Corresponds to the JSON property maintenanceInterval
1204 1205 1206 |
# File 'lib/google/apis/compute_beta/classes.rb', line 1204 def maintenance_interval @maintenance_interval end |
#min_cpu_platform ⇒ String
Minimum cpu platform the reservation.
Corresponds to the JSON property minCpuPlatform
1209 1210 1211 |
# File 'lib/google/apis/compute_beta/classes.rb', line 1209 def min_cpu_platform @min_cpu_platform end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1216 1217 1218 1219 1220 1221 1222 1223 1224 |
# File 'lib/google/apis/compute_beta/classes.rb', line 1216 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) @machine_type = args[:machine_type] if args.key?(:machine_type) @maintenance_freeze_duration_hours = args[:maintenance_freeze_duration_hours] if args.key?(:maintenance_freeze_duration_hours) @maintenance_interval = args[:maintenance_interval] if args.key?(:maintenance_interval) @min_cpu_platform = args[:min_cpu_platform] if args.key?(:min_cpu_platform) end |