Class AllocationPolicy (0.5.0)

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
Deprecated: please use instances[0].policy instead.
instances MutableSequence[google.cloud.batch_v1alpha.types.AllocationPolicy.InstancePolicyOrTemplate]
Describe instances that can be created by this AllocationPolicy. Only instances[0] is supported now.
instance_templates MutableSequence[str]
Deprecated: please use instances[0].template instead.
provisioning_models MutableSequence[google.cloud.batch_v1alpha.types.AllocationPolicy.ProvisioningModel]
Deprecated: please use instances[0].policy.provisioning_model instead.
service_account_email str
Deprecated: please use service_account instead.
service_account google.cloud.batch_v1alpha.types.ServiceAccount
Service account that VMs will run as.
labels MutableMapping[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 the VM.

AttachedDisk

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

A new or an existing persistent disk (PD) 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.