Reference documentation and code samples for the Batch V1 API class Google::Cloud::Batch::V1::AllocationPolicy::InstancePolicy.
InstancePolicy describes an instance type and resources attached to each VM created by this InstancePolicy.
Inherits
- Object
Extended By
- Google::Protobuf::MessageExts::ClassMethods
Includes
- Google::Protobuf::MessageExts
Methods
#accelerators
def accelerators() -> ::Array<::Google::Cloud::Batch::V1::AllocationPolicy::Accelerator>
Returns
- (::Array<::Google::Cloud::Batch::V1::AllocationPolicy::Accelerator>) — The accelerators attached to each VM instance.
#accelerators=
def accelerators=(value) -> ::Array<::Google::Cloud::Batch::V1::AllocationPolicy::Accelerator>
Parameter
- value (::Array<::Google::Cloud::Batch::V1::AllocationPolicy::Accelerator>) — The accelerators attached to each VM instance.
Returns
- (::Array<::Google::Cloud::Batch::V1::AllocationPolicy::Accelerator>) — The accelerators attached to each VM instance.
#boot_disk
def boot_disk() -> ::Google::Cloud::Batch::V1::AllocationPolicy::Disk
Returns
- (::Google::Cloud::Batch::V1::AllocationPolicy::Disk) — Book disk to be created and attached to each VM by this InstancePolicy. Boot disk will be deleted when the VM is deleted.
#boot_disk=
def boot_disk=(value) -> ::Google::Cloud::Batch::V1::AllocationPolicy::Disk
Parameter
- value (::Google::Cloud::Batch::V1::AllocationPolicy::Disk) — Book disk to be created and attached to each VM by this InstancePolicy. Boot disk will be deleted when the VM is deleted.
Returns
- (::Google::Cloud::Batch::V1::AllocationPolicy::Disk) — Book disk to be created and attached to each VM by this InstancePolicy. Boot disk will be deleted when the VM is deleted.
#disks
def disks() -> ::Array<::Google::Cloud::Batch::V1::AllocationPolicy::AttachedDisk>
Returns
- (::Array<::Google::Cloud::Batch::V1::AllocationPolicy::AttachedDisk>) — Non-boot disks to be attached for each VM created by this InstancePolicy. New disks will be deleted when the VM is deleted.
#disks=
def disks=(value) -> ::Array<::Google::Cloud::Batch::V1::AllocationPolicy::AttachedDisk>
Parameter
- value (::Array<::Google::Cloud::Batch::V1::AllocationPolicy::AttachedDisk>) — Non-boot disks to be attached for each VM created by this InstancePolicy. New disks will be deleted when the VM is deleted.
Returns
- (::Array<::Google::Cloud::Batch::V1::AllocationPolicy::AttachedDisk>) — Non-boot disks to be attached for each VM created by this InstancePolicy. New disks will be deleted when the VM is deleted.
#machine_type
def machine_type() -> ::String
Returns
- (::String) — The Compute Engine machine type.
#machine_type=
def machine_type=(value) -> ::String
Parameter
- value (::String) — The Compute Engine machine type.
Returns
- (::String) — The Compute Engine machine type.
#min_cpu_platform
def min_cpu_platform() -> ::String
Returns
-
(::String) — The minimum CPU platform.
See
https://cloud.google.com/compute/docs/instances/specify-min-cpu-platform
. Not yet implemented.
#min_cpu_platform=
def min_cpu_platform=(value) -> ::String
Parameter
-
value (::String) — The minimum CPU platform.
See
https://cloud.google.com/compute/docs/instances/specify-min-cpu-platform
. Not yet implemented.
Returns
-
(::String) — The minimum CPU platform.
See
https://cloud.google.com/compute/docs/instances/specify-min-cpu-platform
. Not yet implemented.
#provisioning_model
def provisioning_model() -> ::Google::Cloud::Batch::V1::AllocationPolicy::ProvisioningModel
Returns
- (::Google::Cloud::Batch::V1::AllocationPolicy::ProvisioningModel) — The provisioning model.
#provisioning_model=
def provisioning_model=(value) -> ::Google::Cloud::Batch::V1::AllocationPolicy::ProvisioningModel
Parameter
- value (::Google::Cloud::Batch::V1::AllocationPolicy::ProvisioningModel) — The provisioning model.
Returns
- (::Google::Cloud::Batch::V1::AllocationPolicy::ProvisioningModel) — The provisioning model.