Class: Google::Cloud::Batch::V1::AllocationPolicy::InstancePolicy

Inherits:
Object
  • Object
show all
Extended by:
Protobuf::MessageExts::ClassMethods
Includes:
Protobuf::MessageExts
Defined in:
proto_docs/google/cloud/batch/v1/job.rb

Overview

InstancePolicy describes an instance type and resources attached to each VM created by this InstancePolicy.

Instance Attribute Summary collapse

Instance Attribute Details

#accelerators::Array<::Google::Cloud::Batch::V1::AllocationPolicy::Accelerator>

Returns The accelerators attached to each VM instance.

Returns:



518
519
520
521
# File 'proto_docs/google/cloud/batch/v1/job.rb', line 518

class InstancePolicy
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods
end

#boot_disk::Google::Cloud::Batch::V1::AllocationPolicy::Disk

Returns Boot disk to be created and attached to each VM by this InstancePolicy. Boot disk will be deleted when the VM is deleted. Batch API now only supports booting from image.

Returns:



518
519
520
521
# File 'proto_docs/google/cloud/batch/v1/job.rb', line 518

class InstancePolicy
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods
end

#disks::Array<::Google::Cloud::Batch::V1::AllocationPolicy::AttachedDisk>

Returns Non-boot disks to be attached for each VM created by this InstancePolicy. New disks will be deleted when the VM is deleted. A non-boot disk is a disk that can be of a device with a file system or a raw storage drive that is not ready for data storage and accessing.

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. A non-boot disk is a disk that can be of a device with a file system or a raw storage drive that is not ready for data storage and accessing.



518
519
520
521
# File 'proto_docs/google/cloud/batch/v1/job.rb', line 518

class InstancePolicy
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods
end

#machine_type::String

Returns The Compute Engine machine type.

Returns:

  • (::String)

    The Compute Engine machine type.



518
519
520
521
# File 'proto_docs/google/cloud/batch/v1/job.rb', line 518

class InstancePolicy
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods
end

#min_cpu_platform::String

Returns:



518
519
520
521
# File 'proto_docs/google/cloud/batch/v1/job.rb', line 518

class InstancePolicy
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods
end

#provisioning_model::Google::Cloud::Batch::V1::AllocationPolicy::ProvisioningModel

Returns The provisioning model.



518
519
520
521
# File 'proto_docs/google/cloud/batch/v1/job.rb', line 518

class InstancePolicy
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods
end

#reservation::String

Returns Optional. If not specified (default), VMs will consume any applicable reservation. If "NO_RESERVATION" is specified, VMs will not consume any reservation. Otherwise, if specified, VMs will consume only the specified reservation.

Returns:

  • (::String)

    Optional. If not specified (default), VMs will consume any applicable reservation. If "NO_RESERVATION" is specified, VMs will not consume any reservation. Otherwise, if specified, VMs will consume only the specified reservation.



518
519
520
521
# File 'proto_docs/google/cloud/batch/v1/job.rb', line 518

class InstancePolicy
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods
end