Class AllocationPolicy (0.1.1)

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_v1.types.AllocationPolicy.LocationPolicy
Location where compute resources should be allocated for the Job.
instances Sequence[google.cloud.batch_v1.types.AllocationPolicy.InstancePolicyOrTemplate]
Describe instances that can be created by this AllocationPolicy. Only instances[0] is supported now.
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_v1.types.AllocationPolicy.NetworkPolicy
The network policy.

Inheritance

builtins.object > proto.message.Message > AllocationPolicy

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 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.

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.