Class Assignment (0.1.0)

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

A Assignment allows a project to submit jobs of a certain type using slots from the specified reservation.

Attributes

NameDescription
name str
Output only. Name of the resource. E.g.: projects/myproject/locations/US/reservations/team1-prod/assignments/123.
assignee str
The resource which will use the reservation. E.g. projects/myproject, folders/123, or organizations/456.
job_type .gcbr_reservation.Assignment.JobType
Which type of jobs will use the reservation.
state .gcbr_reservation.Assignment.State
Output only. State of the assignment.

Classes

JobType

JobType(value)

Types of job, which could be specified when using the reservation.

State

State(value)

Assignment will remain in PENDING state if no active capacity commitment is present. It will become ACTIVE when some capacity commitment becomes active.

Methods

__delattr__

__delattr__(key)

Delete the value on the given field.

This is generally equivalent to setting a falsy value.

__eq__

__eq__(other)

Return True if the messages are equal, False otherwise.

__ne__

__ne__(other)

Return True if the messages are unequal, False otherwise.

__setattr__

__setattr__(key, value)

Set the value on the given field.

For well-known protocol buffer types which are marshalled, either the protocol buffer object or the Python equivalent is accepted.