Class AllocationPolicy (0.3.2)

AllocationPolicy(mapping=None, *, ignore_unknown_fields=False, **kwargs)

A Job's resource allocation policy describes when, where, and how compute resources should be allocated for the Job.

Attributes

NameDescription
location google.cloud.batch_v1alpha.types.AllocationPolicy.LocationPolicy
Location where compute resources should be allocated for the Job.
instance google.cloud.batch_v1alpha.types.AllocationPolicy.InstancePolicy
Create only instances allowed by this policy.
instances Sequence[google.cloud.batch_v1alpha.types.AllocationPolicy.InstancePolicyOrTemplate]
Describe instances that can be created by this AllocationPolicy. Only instances[0] is supported now.
instance_templates Sequence[str]
Instance templates that are used to VMs. If specified, only instance_templates[0] is used.
provisioning_models Sequence[google.cloud.batch_v1alpha.types.AllocationPolicy.ProvisioningModel]
Create only instances in the listed provisiong models. Default to allow all. Currently only the first model of the provisioning_models list will be considered; specifying additional models (e.g., 2nd, 3rd, etc.) is a no-op.
service_account_email str
Email of the service account that VMs will run as.
service_account google.cloud.batch_v1alpha.types.ServiceAccount
Service account that VMs will run as. Not yet implemented.
labels Mapping[str, str]
Labels applied to all VM instances and other resources created by AllocationPolicy. Labels could be user provided or system generated. You can assign up to 64 labels. `Google Compute Engine label restrictions
network google.cloud.batch_v1alpha.types.AllocationPolicy.NetworkPolicy
The network policy.

Classes

Accelerator

Accelerator(mapping=None, *, ignore_unknown_fields=False, **kwargs)

Accelerator describes Compute Engine accelerators to be attached to VMs.

AttachedDisk

AttachedDisk(mapping=None, *, ignore_unknown_fields=False, **kwargs)

A new or an existing persistent disk or a local ssd attached to a VM instance.

This message has oneof_ fields (mutually exclusive fields). For each oneof, at most one member field can be set at the same time. Setting any member of the oneof automatically clears all other members.

.. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields

Disk

Disk(mapping=None, *, ignore_unknown_fields=False, **kwargs)

A new persistent disk or a local ssd. A VM can only have one local SSD setting but multiple local SSD partitions. https://cloud.google.com/compute/docs/disks#pdspecs. https://cloud.google.com/compute/docs/disks#localssds.

This message has oneof_ fields (mutually exclusive fields). For each oneof, at most one member field can be set at the same time. Setting any member of the oneof automatically clears all other members.

.. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields

InstancePolicy

InstancePolicy(mapping=None, *, ignore_unknown_fields=False, **kwargs)

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

InstancePolicyOrTemplate

InstancePolicyOrTemplate(mapping=None, *, ignore_unknown_fields=False, **kwargs)

Either an InstancePolicy or an instance template.

This message has oneof_ fields (mutually exclusive fields). For each oneof, at most one member field can be set at the same time. Setting any member of the oneof automatically clears all other members.

.. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields

LabelsEntry

LabelsEntry(mapping=None, *, ignore_unknown_fields=False, **kwargs)

The abstract base class for a message.

Parameters
NameDescription
kwargs dict

Keys and values corresponding to the fields of the message.

mapping Union[dict, .Message]

A dictionary or message to be used to determine the values for this message.

ignore_unknown_fields Optional(bool)

If True, do not raise errors for unknown fields. Only applied if mapping is a mapping type or there are keyword parameters.

LocationPolicy

LocationPolicy(mapping=None, *, ignore_unknown_fields=False, **kwargs)

NetworkInterface

NetworkInterface(mapping=None, *, ignore_unknown_fields=False, **kwargs)

A network interface.

NetworkPolicy

NetworkPolicy(mapping=None, *, ignore_unknown_fields=False, **kwargs)

NetworkPolicy describes VM instance network configurations.

ProvisioningModel

ProvisioningModel(value)

Compute Engine VM instance provisioning model.