Types for Google Cloud Bigquery Reservation API¶
-
class
google.cloud.bigquery.reservation_v1.types.
Reservation
(mapping=None, **kwargs)[source]¶ A reservation is a mechanism used to guarantee slots to users.
-
name
¶ The resource name of the reservation, e.g.,
projects/*/locations/*/reservations/team1-prod
.- Type
-
slot_capacity
¶ Minimum slots available to this reservation. A slot is a unit of computational power in BigQuery, and serves as the unit of parallelism.
Queries using this reservation might use more slots during runtime if ignore_idle_slots is set to false.
If the new reservation’s slot capacity exceed the parent’s slot capacity or if total slot capacity of the new reservation and its siblings exceeds the parent’s slot capacity, the request will fail with
google.rpc.Code.RESOURCE_EXHAUSTED
.- Type
-
-
class
google.cloud.bigquery.reservation_v1.types.
CapacityCommitment
(mapping=None, **kwargs)[source]¶ Capacity commitment is a way to purchase compute capacity for BigQuery jobs (in the form of slots) with some committed period of usage. Annual commitments renew by default. Commitments can be removed after their commitment end time passes.
In order to remove annual commitment, its plan needs to be changed to monthly or flex first.
A capacity commitment resource exists as a child resource of the admin project.
-
name
¶ Output only. The resource name of the capacity commitment, e.g.,
projects/myproject/locations/US/capacityCommitments/123
- Type
-
plan
¶ Capacity commitment commitment plan.
- Type
CommitmentPlan
-
state
¶ Output only. State of the commitment.
- Type
State
-
commitment_end_time
¶ Output only. The end of the current commitment period. It is applicable only for ACTIVE capacity commitments.
- Type
Timestamp
-
failure_status
¶ Output only. For FAILED commitment plan, provides the reason of failure.
- Type
Status
-
renewal_plan
¶ The plan this capacity commitment is converted to after commitment_end_time passes. Once the plan is changed, committed period is extended according to commitment plan. Only applicable for ANNUAL and TRIAL commitments.
- Type
CommitmentPlan
-
-
class
google.cloud.bigquery.reservation_v1.types.
CreateReservationRequest
(mapping=None, **kwargs)[source]¶ The request for [ReservationService.CreateReservation][google.cloud.bigquery.reservation.v1.ReservationService.CreateReservation].
-
reservation_id
¶ The reservation ID. This field must only contain lower case alphanumeric characters or dash. Max length is 64 characters.
- Type
-
reservation
¶ Definition of the new reservation to create.
- Type
Reservation
-
-
class
google.cloud.bigquery.reservation_v1.types.
ListReservationsRequest
(mapping=None, **kwargs)[source]¶ The request for [ReservationService.ListReservations][google.cloud.bigquery.reservation.v1.ReservationService.ListReservations].
-
parent
¶ Required. The parent resource name containing project and location, e.g.: “projects/myproject/locations/US”.
- Type
-
-
class
google.cloud.bigquery.reservation_v1.types.
ListReservationsResponse
(mapping=None, **kwargs)[source]¶ The response for [ReservationService.ListReservations][google.cloud.bigquery.reservation.v1.ReservationService.ListReservations].
-
reservations
¶ List of reservations visible to the user.
- Type
Sequence[Reservation]
-
-
class
google.cloud.bigquery.reservation_v1.types.
GetReservationRequest
(mapping=None, **kwargs)[source]¶ The request for [ReservationService.GetReservation][google.cloud.bigquery.reservation.v1.ReservationService.GetReservation].
-
class
google.cloud.bigquery.reservation_v1.types.
DeleteReservationRequest
(mapping=None, **kwargs)[source]¶ The request for [ReservationService.DeleteReservation][google.cloud.bigquery.reservation.v1.ReservationService.DeleteReservation].
-
class
google.cloud.bigquery.reservation_v1.types.
UpdateReservationRequest
(mapping=None, **kwargs)[source]¶ The request for [ReservationService.UpdateReservation][google.cloud.bigquery.reservation.v1.ReservationService.UpdateReservation].
-
reservation
¶ Content of the reservation to update.
- Type
Reservation
-
update_mask
¶ Standard field mask for the set of fields to be updated.
- Type
FieldMask
-
-
class
google.cloud.bigquery.reservation_v1.types.
CreateCapacityCommitmentRequest
(mapping=None, **kwargs)[source]¶ The request for [ReservationService.CreateCapacityCommitment][google.cloud.bigquery.reservation.v1.ReservationService.CreateCapacityCommitment].
-
parent
¶ Required. Resource name of the parent reservation. E.g., projects/myproject/locations/US
- Type
-
capacity_commitment
¶ Content of the capacity commitment to create.
- Type
CapacityCommitment
-
-
class
google.cloud.bigquery.reservation_v1.types.
ListCapacityCommitmentsRequest
(mapping=None, **kwargs)[source]¶ The request for [ReservationService.ListCapacityCommitments][google.cloud.bigquery.reservation.v1.ReservationService.ListCapacityCommitments].
-
parent
¶ Required. Resource name of the parent reservation. E.g., projects/myproject/locations/US
- Type
-
-
class
google.cloud.bigquery.reservation_v1.types.
ListCapacityCommitmentsResponse
(mapping=None, **kwargs)[source]¶ The response for [ReservationService.ListCapacityCommitments][google.cloud.bigquery.reservation.v1.ReservationService.ListCapacityCommitments].
-
capacity_commitments
¶ List of capacity commitments visible to the user.
- Type
Sequence[CapacityCommitment]
-
-
class
google.cloud.bigquery.reservation_v1.types.
GetCapacityCommitmentRequest
(mapping=None, **kwargs)[source]¶ The request for [ReservationService.GetCapacityCommitment][google.cloud.bigquery.reservation.v1.ReservationService.GetCapacityCommitment].
-
class
google.cloud.bigquery.reservation_v1.types.
DeleteCapacityCommitmentRequest
(mapping=None, **kwargs)[source]¶ The request for [ReservationService.DeleteCapacityCommitment][google.cloud.bigquery.reservation.v1.ReservationService.DeleteCapacityCommitment].
-
class
google.cloud.bigquery.reservation_v1.types.
UpdateCapacityCommitmentRequest
(mapping=None, **kwargs)[source]¶ The request for [ReservationService.UpdateCapacityCommitment][google.cloud.bigquery.reservation.v1.ReservationService.UpdateCapacityCommitment].
-
capacity_commitment
¶ Content of the capacity commitment to update.
- Type
CapacityCommitment
-
update_mask
¶ Standard field mask for the set of fields to be updated.
- Type
FieldMask
-
-
class
google.cloud.bigquery.reservation_v1.types.
SplitCapacityCommitmentRequest
(mapping=None, **kwargs)[source]¶ The request for [ReservationService.SplitCapacityCommitment][google.cloud.bigquery.reservation.v1.ReservationService.SplitCapacityCommitment].
-
name
¶ Required. The resource name e.g.,: projects/myproject/locations/US/capacityCommitments/123
- Type
-
-
class
google.cloud.bigquery.reservation_v1.types.
SplitCapacityCommitmentResponse
(mapping=None, **kwargs)[source]¶ The response for [ReservationService.SplitCapacityCommitment][google.cloud.bigquery.reservation.v1.ReservationService.SplitCapacityCommitment].
-
first
¶ First capacity commitment, result of a split.
- Type
CapacityCommitment
-
second
¶ Second capacity commitment, result of a split.
- Type
CapacityCommitment
-
-
class
google.cloud.bigquery.reservation_v1.types.
MergeCapacityCommitmentsRequest
(mapping=None, **kwargs)[source]¶ The request for [ReservationService.MergeCapacityCommitments][google.cloud.bigquery.reservation.v1.ReservationService.MergeCapacityCommitments].
-
parent
¶ Parent resource that identifies admin project and location e.g., projects/myproject/locations/us
- Type
-
-
class
google.cloud.bigquery.reservation_v1.types.
Assignment
(mapping=None, **kwargs)[source]¶ A Assignment allows a project to submit jobs of a certain type using slots from the specified reservation.
-
name
¶ Output only. Name of the resource. E.g.:
projects/myproject/locations/US/reservations/team1-prod/assignments/123
.- Type
-
assignee
¶ The resource which will use the reservation. E.g.
projects/myproject
,folders/123
, ororganizations/456
.- Type
-
job_type
¶ Which type of jobs will use the reservation.
- Type
JobType
-
state
¶ Output only. State of the assignment.
- Type
State
-
-
class
google.cloud.bigquery.reservation_v1.types.
CreateAssignmentRequest
(mapping=None, **kwargs)[source]¶ The request for [ReservationService.CreateAssignment][google.cloud.bigquery.reservation.v1.ReservationService.CreateAssignment]. Note: “bigquery.reservationAssignments.create” permission is required on the related assignee.
-
parent
¶ Required. The parent resource name of the assignment E.g.
projects/myproject/locations/US/reservations/team1-prod
- Type
-
assignment
¶ Assignment resource to create.
- Type
Assignment
-
-
class
google.cloud.bigquery.reservation_v1.types.
ListAssignmentsRequest
(mapping=None, **kwargs)[source]¶ The request for [ReservationService.ListAssignments][google.cloud.bigquery.reservation.v1.ReservationService.ListAssignments].
-
parent
¶ Required. The parent resource name e.g.:
projects/myproject/locations/US/reservations/team1-prod
Or:
projects/myproject/locations/US/reservations/-
- Type
-
-
class
google.cloud.bigquery.reservation_v1.types.
ListAssignmentsResponse
(mapping=None, **kwargs)[source]¶ The response for [ReservationService.ListAssignments][google.cloud.bigquery.reservation.v1.ReservationService.ListAssignments].
-
assignments
¶ List of assignments visible to the user.
- Type
Sequence[Assignment]
-
-
class
google.cloud.bigquery.reservation_v1.types.
DeleteAssignmentRequest
(mapping=None, **kwargs)[source]¶ The request for [ReservationService.DeleteAssignment][google.cloud.bigquery.reservation.v1.ReservationService.DeleteAssignment]. Note: “bigquery.reservationAssignments.delete” permission is required on the related assignee.
-
class
google.cloud.bigquery.reservation_v1.types.
SearchAssignmentsRequest
(mapping=None, **kwargs)[source]¶ The request for [ReservationService.SearchAssignments][google.cloud.bigquery.reservation.v1.ReservationService.SearchAssignments]. Note: “bigquery.reservationAssignments.search” permission is required on the related assignee.
-
parent
¶ Required. The resource name of the admin project(containing project and location), e.g.: “projects/myproject/locations/US”.
- Type
-
query
¶ Please specify resource name as assignee in the query.
Examples:
assignee=projects/myproject
assignee=folders/123
assignee=organizations/456
- Type
-
-
class
google.cloud.bigquery.reservation_v1.types.
SearchAssignmentsResponse
(mapping=None, **kwargs)[source]¶ The response for [ReservationService.SearchAssignments][google.cloud.bigquery.reservation.v1.ReservationService.SearchAssignments].
-
assignments
¶ List of assignments visible to the user.
- Type
Sequence[Assignment]
-
-
class
google.cloud.bigquery.reservation_v1.types.
MoveAssignmentRequest
(mapping=None, **kwargs)[source]¶ The request for [ReservationService.MoveAssignment][google.cloud.bigquery.reservation.v1.ReservationService.MoveAssignment].
Note: “bigquery.reservationAssignments.create” permission is required on the destination_id.
Note: “bigquery.reservationAssignments.create” and “bigquery.reservationAssignments.delete” permission are required on the related assignee.
-
name
¶ Required. The resource name of the assignment, e.g.
projects/myproject/locations/US/reservations/team1-prod/assignments/123
- Type
-
-
class
google.cloud.bigquery.reservation_v1.types.
BiReservation
(mapping=None, **kwargs)[source]¶ Represents a BI Reservation.
-
name
¶ The resource name of the singleton BI reservation. Reservation names have the form
projects/{project_id}/locations/{location_id}/bireservation
.- Type
-
update_time
¶ Output only. The last update timestamp of a reservation.
- Type
Timestamp
-