Class: Google::Apis::ComputeAlpha::CapacityAdviceRequestInstanceFlexibilityPolicyInstanceSelection

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

Machine specification.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ CapacityAdviceRequestInstanceFlexibilityPolicyInstanceSelection

Returns a new instance of CapacityAdviceRequestInstanceFlexibilityPolicyInstanceSelection.



8413
8414
8415
# File 'lib/google/apis/compute_alpha/classes.rb', line 8413

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

Instance Attribute Details

#disksArray<Google::Apis::ComputeAlpha::CapacityAdviceRequestInstanceFlexibilityPolicyInstanceSelectionAttachedDisk>

Local SSDs. Corresponds to the JSON property disks



8401
8402
8403
# File 'lib/google/apis/compute_alpha/classes.rb', line 8401

def disks
  @disks
end

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

Accelerators configuration. Corresponds to the JSON property guestAccelerators



8406
8407
8408
# File 'lib/google/apis/compute_alpha/classes.rb', line 8406

def guest_accelerators
  @guest_accelerators
end

#machine_typesArray<String>

Full machine-type names, e.g. "n1-standard-16". Corresponds to the JSON property machineTypes

Returns:

  • (Array<String>)


8411
8412
8413
# File 'lib/google/apis/compute_alpha/classes.rb', line 8411

def machine_types
  @machine_types
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



8418
8419
8420
8421
8422
# File 'lib/google/apis/compute_alpha/classes.rb', line 8418

def update!(**args)
  @disks = args[:disks] if args.key?(:disks)
  @guest_accelerators = args[:guest_accelerators] if args.key?(:guest_accelerators)
  @machine_types = args[:machine_types] if args.key?(:machine_types)
end