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. Not yet implemented.
#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. Not yet implemented.
Returns
- (::Array<::Google::Cloud::Batch::V1::AllocationPolicy::Accelerator>) — The accelerators attached to each VM instance. Not yet implemented.
#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 attached 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 attached 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 attached 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.