Service Client: Google::Cloud::Bigquery::Reservation::V1::Reservation::ReservationServiceClient

Client stub representing the remote ReservationService gRPC service. Delegates call dispatching to Google::gRPC::Client.

target

The endpoint target address. Defaults to bigquery.googleapis.com:443.

credentials

The authentication credentials provider. Defaults to application default credentials via Google::Auth.

NAME

Google::Cloud::Bigquery::Reservation::V1::Reservation - Compiled Protocol Buffers messages for google/cloud/bigquery/reservation/v1/reservation.proto

SYNOPSIS

use Google::Cloud::Bigquery::Reservation::V1::Reservation;

my $msg = Google::Cloud::Bigquery::Reservation::V1::Reservation::Reservation->new({
    name => $name,
    slot_capacity => $slot_capacity,
    ignore_idle_slots => $ignore_idle_slots,
    autoscale => $autoscale,
});

# Read or update a field
my $val = $msg->name();

# Binary wire-format roundtrip
my $bytes   = $msg->serialize();
my $decoded = Google::Cloud::Bigquery::Reservation::V1::Reservation::Reservation->parse($bytes);

# Canonical ProtoJSON
my $json = $msg->to_json();

DESCRIPTION

Auto-generated Protobuf message classes compiled from google/cloud/bigquery/reservation/v1/reservation.proto. All message classes inherit from Protobuf::Message and support new(), serialize(), parse(), to_json(), from_json(), to_text(), and to_perl().

MESSAGES

Google::Cloud::Bigquery::Reservation::V1::Reservation::Reservation

A reservation is a mechanism used to guarantee slots to users.

Inherits from Protobuf::Message.

Accessors

  • $msg->name() / $msg->name($value)

    Type: String

    Identifier. The resource name of the reservation, e.g., `projects/*/locations/*/reservations/team1-prod`. The reservation_id must only contain lower case alphanumeric characters or dashes. It must start with a letter and must not end with a dash. Its maximum length is 64 characters.

  • $msg->slot_capacity() / $msg->slot_capacity($value)

    Type: Int64

    Optional. Baseline 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, or autoscaling is enabled.

    The total slot_capacity of the reservation and its siblings may exceed the total slot_count of capacity commitments. In that case, the exceeding slots will be charged with the autoscale SKU. You can increase the number of baseline slots in a reservation every few minutes. If you want to decrease your baseline slots, you are limited to once an hour if you have recently changed your baseline slot capacity and your baseline slots exceed your committed slots. Otherwise, you can decrease your baseline slots every few minutes.

  • $msg->ignore_idle_slots() / $msg->ignore_idle_slots($value)

    Type: Bool

    Optional. If false, any query or pipeline job using this reservation will use idle slots from other reservations within the same admin project. If true, a query or pipeline job using this reservation will execute with the slot capacity specified in the slot_capacity field at most.

  • $msg->autoscale() / $msg->autoscale($value)

    Type: Message (Google::Cloud::Bigquery::Reservation::V1::Reservation::Reservation::Autoscale)

    Optional. The configuration parameters for the auto scaling feature.

  • $msg->concurrency() / $msg->concurrency($value)

    Type: Int64

    Optional. Job concurrency target which sets a soft upper bound on the number of jobs that can run concurrently in this reservation. This is a soft target due to asynchronous nature of the system and various optimizations for small queries. Default value is 0 which means that concurrency target will be automatically computed by the system. NOTE: this field is exposed as target job concurrency in the Information Schema, DDL and BigQuery CLI.

  • $msg->creation_time() / $msg->creation_time($value)

    Type: Message (Google::Protobuf::Timestamp::Timestamp)

    Output only. Creation time of the reservation.

  • $msg->update_time() / $msg->update_time($value)

    Type: Message (Google::Protobuf::Timestamp::Timestamp)

    Output only. Last update time of the reservation.

  • $msg->multi_region_auxiliary() / $msg->multi_region_auxiliary($value)

    Type: Bool

    Applicable only for reservations located within one of the BigQuery multi-regions (US or EU).

    If set to true, this reservation is placed in the organization's secondary region which is designated for disaster recovery purposes. If false, this reservation is placed in the organization's default region.

    NOTE: this is a preview feature. Project must be allow-listed in order to set this field.

  • $msg->edition() / $msg->edition($value)

    Type: Enum (Google::Cloud::Bigquery::Reservation::V1::Edition)

    Optional. Edition of the reservation.

  • $msg->primary_location() / $msg->primary_location($value)

    Type: String

    Output only. The current location of the reservation's primary replica. This field is only set for reservations using the managed disaster recovery feature.

  • $msg->secondary_location() / $msg->secondary_location($value)

    Type: String

    Optional. The current location of the reservation's secondary replica. This field is only set for reservations using the managed disaster recovery feature. Users can set this in create reservation calls to create a failover reservation or in update reservation calls to convert a non-failover reservation to a failover reservation(or vice versa).

  • $msg->original_primary_location() / $msg->original_primary_location($value)

    Type: String

    Output only. The location where the reservation was originally created. This is set only during the failover reservation's creation. All billing charges for the failover reservation will be applied to this location.

  • $msg->max_slots() / $msg->max_slots($value)

    Type: Int64

    Optional. The overall max slots for the reservation, covering slot_capacity (baseline), idle slots (if ignore_idle_slots is false) and scaled slots. If present, the reservation won't use more than the specified number of slots, even if there is demand and supply (from idle slots). NOTE: capping a reservation's idle slot usage is best effort and its usage may exceed the max_slots value. However, in terms of autoscale.current_slots (which accounts for the additional added slots), it will never exceed the max_slots - baseline.

    This field must be set together with the scaling_mode enum value, otherwise the request will be rejected with error code `google.rpc.Code.INVALID_ARGUMENT`.

    If the max_slots and scaling_mode are set, the autoscale or autoscale.max_slots field must be unset. Otherwise the request will be rejected with error code `google.rpc.Code.INVALID_ARGUMENT`. However, the autoscale field may still be in the output. The autopscale.max_slots will always show as 0 and the autoscaler.current_slots will represent the current slots from autoscaler excluding idle slots. For example, if the max_slots is 1000 and scaling_mode is AUTOSCALE_ONLY, then in the output, the autoscaler.max_slots will be 0 and the autoscaler.current_slots may be any value between 0 and 1000.

    If the max_slots is 1000, scaling_mode is ALL_SLOTS, the baseline is 100 and idle slots usage is 200, then in the output, the autoscaler.max_slots will be 0 and the autoscaler.current_slots will not be higher than 700.

    If the max_slots is 1000, scaling_mode is IDLE_SLOTS_ONLY, then in the output, the autoscaler field will be null.

    If the max_slots and scaling_mode are set, then the ignore_idle_slots field must be aligned with the scaling_mode enum value.(See details in ScalingMode comments). Otherwise the request will be rejected with error code `google.rpc.Code.INVALID_ARGUMENT`.

    Please note, the max_slots is for user to manage the part of slots greater than the baseline. Therefore, we don't allow users to set max_slots smaller or equal to the baseline as it will not be meaningful. If the field is present and slot_capacity>=max_slots, requests will be rejected with error code `google.rpc.Code.INVALID_ARGUMENT`.

    Please note that if max_slots is set to 0, we will treat it as unset. Customers can set max_slots to 0 and set scaling_mode to SCALING_MODE_UNSPECIFIED to disable the max_slots feature.

  • $msg->scaling_mode() / $msg->scaling_mode($value)

    Type: Enum (Google::Cloud::Bigquery::Reservation::V1::Reservation::ScalingMode)

    Optional. The scaling mode for the reservation. If the field is present but max_slots is not present, requests will be rejected with error code `google.rpc.Code.INVALID_ARGUMENT`.

  • $msg->labels() / $msg->labels($value)

    Type: Message (Google::Cloud::Bigquery::Reservation::V1::Reservation::Reservation::LabelsEntry)

    Optional. The labels associated with this reservation. You can use these to organize and group your reservations. You can set this property when you create or update a reservation.

  • $msg->reservation_group() / $msg->reservation_group($value)

    Type: String

    Optional. The reservation group that this reservation belongs to. You can set this property when you create or update a reservation. Reservations do not need to belong to a reservation group. Format: projects/{project}/locations/{location}/reservationGroups/{reservation_group} or just {reservation_group}

  • $msg->replication_status() / $msg->replication_status($value)

    Type: Message (Google::Cloud::Bigquery::Reservation::V1::Reservation::Reservation::ReplicationStatus)

    Output only. The Disaster Recovery(DR) replication status of the reservation. This is only available for the primary replicas of DR/failover reservations and provides information about the both the staleness of the secondary and the last error encountered while trying to replicate changes from the primary to the secondary. If this field is blank, it means that the reservation is either not a DR reservation or the reservation is a DR secondary or that any replication operations on the reservation have succeeded.

  • $msg->scheduling_policy() / $msg->scheduling_policy($value)

    Type: Message (Google::Cloud::Bigquery::Reservation::V1::Reservation::SchedulingPolicy)

    Optional. The scheduling policy to use for jobs and queries running under this reservation. The scheduling policy controls how the reservation's resources are distributed.

    This feature is not yet generally available.

  • $msg->reservation_group_path() / $msg->reservation_group_path($value)

    Type: String

    Output only. The reservation group path of the reservation from root to leaf. The order of elements matters: the first element is the top level group and the last element is the direct parent reservation group. For example, if a reservation is under group-1 -> group-2 -> group-3, then the reservation group path is ["group-1", "group-2", "group-3"].

Enum: Reservation::ScalingMode

  • SCALING_MODE_UNSPECIFIED => 0

  • AUTOSCALE_ONLY => 1

  • IDLE_SLOTS_ONLY => 2

  • ALL_SLOTS => 3

Google::Cloud::Bigquery::Reservation::V1::Reservation::SchedulingPolicy

The scheduling policy controls how a reservation's resources are distributed.

Inherits from Protobuf::Message.

Accessors

  • $msg->concurrency() / $msg->concurrency($value)

    Type: Int64

    Optional. If present and > 0, the reservation will attempt to limit the concurrency of jobs running for any particular project within it to the given value.

    This feature is not yet generally available.

  • $msg->max_slots() / $msg->max_slots($value)

    Type: Int64

    Optional. If present and > 0, the reservation will attempt to limit the slot consumption of queries running for any particular project within it to the given value.

    This feature is not yet generally available.

Google::Cloud::Bigquery::Reservation::V1::Reservation::ReservationGroup

A reservation group is a container for reservations.

Inherits from Protobuf::Message.

Accessors

  • $msg->name() / $msg->name($value)

    Type: String

    Identifier. The resource name of the reservation group, e.g., `projects/*/locations/*/reservationGroups/team1-prod`. The reservation_group_id must only contain lower case alphanumeric characters or dashes. It must start with a letter and must not end with a dash. Its maximum length is 64 characters.

  • $msg->parent_group() / $msg->parent_group($value)

    Type: String

    Optional. The parent reservation group of the reservation group. Format: `projects/*/locations/*/reservationGroups/team1-prod` for non-root reservation groups, or `projects/*/locations/*` for root reservation groups.

  • $msg->creation_time() / $msg->creation_time($value)

    Type: Message (Google::Protobuf::Timestamp::Timestamp)

    Output only. Creation time of the reservation group.

  • $msg->update_time() / $msg->update_time($value)

    Type: Message (Google::Protobuf::Timestamp::Timestamp)

    Output only. Last update time of the reservation group via a user operation. This timestamp is updated only when an update operation explicitly targets this reservation group directly. It is not updated when parent or child groups are created, updated, or deleted.

Google::Cloud::Bigquery::Reservation::V1::Reservation::CapacityCommitment

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.

Inherits from Protobuf::Message.

Accessors

  • $msg->name() / $msg->name($value)

    Type: String

    Output only. The resource name of the capacity commitment, e.g., `projects/myproject/locations/US/capacityCommitments/123` The commitment_id must only contain lower case alphanumeric characters or dashes. It must start with a letter and must not end with a dash. Its maximum length is 64 characters.

  • $msg->slot_count() / $msg->slot_count($value)

    Type: Int64

    Optional. Number of slots in this commitment.

  • $msg->plan() / $msg->plan($value)

    Type: Enum (Google::Cloud::Bigquery::Reservation::V1::CapacityCommitment::CommitmentPlan)

    Optional. Capacity commitment commitment plan.

  • $msg->state() / $msg->state($value)

    Type: Enum (Google::Cloud::Bigquery::Reservation::V1::CapacityCommitment::State)

    Output only. State of the commitment.

  • $msg->commitment_start_time() / $msg->commitment_start_time($value)

    Type: Message (Google::Protobuf::Timestamp::Timestamp)

    Output only. The start of the current commitment period. It is applicable only for ACTIVE capacity commitments. Note after the commitment is renewed, commitment_start_time won't be changed. It refers to the start time of the original commitment.

  • $msg->commitment_end_time() / $msg->commitment_end_time($value)

    Type: Message (Google::Protobuf::Timestamp::Timestamp)

    Output only. The end of the current commitment period. It is applicable only for ACTIVE capacity commitments. Note after renewal, commitment_end_time is the time the renewed commitment expires. So itwould be at a time after commitment_start_time + committed period, because we don't change commitment_start_time ,

  • $msg->failure_status() / $msg->failure_status($value)

    Type: Message (Google::Rpc::Status::Status)

    Output only. For FAILED commitment plan, provides the reason of failure.

  • $msg->renewal_plan() / $msg->renewal_plan($value)

    Type: Enum (Google::Cloud::Bigquery::Reservation::V1::CapacityCommitment::CommitmentPlan)

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

  • $msg->multi_region_auxiliary() / $msg->multi_region_auxiliary($value)

    Type: Bool

    Applicable only for commitments located within one of the BigQuery multi-regions (US or EU).

    If set to true, this commitment is placed in the organization's secondary region which is designated for disaster recovery purposes. If false, this commitment is placed in the organization's default region.

    NOTE: this is a preview feature. Project must be allow-listed in order to set this field.

  • $msg->edition() / $msg->edition($value)

    Type: Enum (Google::Cloud::Bigquery::Reservation::V1::Edition)

    Optional. Edition of the capacity commitment.

  • $msg->is_flat_rate() / $msg->is_flat_rate($value)

    Type: Bool

    Output only. If true, the commitment is a flat-rate commitment, otherwise, it's an edition commitment.

Enum: CapacityCommitment::CommitmentPlan

  • COMMITMENT_PLAN_UNSPECIFIED => 0

  • FLEX => 3

  • FLEX_FLAT_RATE => 7

  • TRIAL => 5

  • MONTHLY => 2

  • MONTHLY_FLAT_RATE => 8

  • ANNUAL => 4

  • ANNUAL_FLAT_RATE => 9

  • THREE_YEAR => 10

  • NONE => 6

Enum: CapacityCommitment::State

  • STATE_UNSPECIFIED => 0

  • PENDING => 1

  • ACTIVE => 2

  • FAILED => 3

Google::Cloud::Bigquery::Reservation::V1::Reservation::CreateReservationRequest

The request for [ReservationService.CreateReservation][google.cloud.bigquery.reservation.v1.ReservationService.CreateReservation].

Inherits from Protobuf::Message.

Accessors

  • $msg->parent() / $msg->parent($value)

    Type: String

    Required. Project, location. E.g., `projects/myproject/locations/US`

  • $msg->reservation_id() / $msg->reservation_id($value)

    Type: String

    The reservation ID. It must only contain lower case alphanumeric characters or dashes. It must start with a letter and must not end with a dash. Its maximum length is 64 characters.

  • $msg->reservation() / $msg->reservation($value)

    Type: Message (Google::Cloud::Bigquery::Reservation::V1::Reservation::Reservation)

    Definition of the new reservation to create.

Google::Cloud::Bigquery::Reservation::V1::Reservation::ListReservationsRequest

The request for [ReservationService.ListReservations][google.cloud.bigquery.reservation.v1.ReservationService.ListReservations].

Inherits from Protobuf::Message.

Accessors

  • $msg->parent() / $msg->parent($value)

    Type: String

    Required. The parent resource name containing project and location, e.g.: `projects/myproject/locations/US`

  • $msg->page_size() / $msg->page_size($value)

    Type: Int32

    The maximum number of items to return per page.

  • $msg->page_token() / $msg->page_token($value)

    Type: String

    The next_page_token value returned from a previous List request, if any.

Google::Cloud::Bigquery::Reservation::V1::Reservation::ListReservationsResponse

The response for [ReservationService.ListReservations][google.cloud.bigquery.reservation.v1.ReservationService.ListReservations].

Inherits from Protobuf::Message.

Accessors

  • $msg->reservations() / $msg->reservations($value)

    Type: Message (Google::Cloud::Bigquery::Reservation::V1::Reservation::Reservation)

    List of reservations visible to the user.

  • $msg->next_page_token() / $msg->next_page_token($value)

    Type: String

    Token to retrieve the next page of results, or empty if there are no more results in the list.

Google::Cloud::Bigquery::Reservation::V1::Reservation::GetReservationRequest

The request for [ReservationService.GetReservation][google.cloud.bigquery.reservation.v1.ReservationService.GetReservation].

Inherits from Protobuf::Message.

Accessors

  • $msg->name() / $msg->name($value)

    Type: String

    Required. Resource name of the reservation to retrieve. E.g., `projects/myproject/locations/US/reservations/team1-prod`

Google::Cloud::Bigquery::Reservation::V1::Reservation::DeleteReservationRequest

The request for [ReservationService.DeleteReservation][google.cloud.bigquery.reservation.v1.ReservationService.DeleteReservation].

Inherits from Protobuf::Message.

Accessors

  • $msg->name() / $msg->name($value)

    Type: String

    Required. Resource name of the reservation to retrieve. E.g., `projects/myproject/locations/US/reservations/team1-prod`

Google::Cloud::Bigquery::Reservation::V1::Reservation::UpdateReservationRequest

The request for [ReservationService.UpdateReservation][google.cloud.bigquery.reservation.v1.ReservationService.UpdateReservation].

Inherits from Protobuf::Message.

Accessors

Google::Cloud::Bigquery::Reservation::V1::Reservation::FailoverReservationRequest

The request for ReservationService.FailoverReservation.

Inherits from Protobuf::Message.

Accessors

  • $msg->name() / $msg->name($value)

    Type: String

    Required. Resource name of the reservation to failover. E.g., `projects/myproject/locations/US/reservations/team1-prod`

  • $msg->failover_mode() / $msg->failover_mode($value)

    Type: Enum (Google::Cloud::Bigquery::Reservation::V1::FailoverMode)

    Optional. A parameter that determines how writes that are pending replication are handled after a failover is initiated. If not specified, HARD failover mode is used by default.

Google::Cloud::Bigquery::Reservation::V1::Reservation::CreateReservationGroupRequest

The request for [ReservationService.CreateReservationGroup][google.cloud.bigquery.reservation.v1.ReservationService.CreateReservationGroup].

Inherits from Protobuf::Message.

Accessors

  • $msg->parent() / $msg->parent($value)

    Type: String

    Required. Project, location. E.g., `projects/myproject/locations/US`

  • $msg->reservation_group_id() / $msg->reservation_group_id($value)

    Type: String

    Required. The reservation group ID. It must only contain lower case alphanumeric characters or dashes. It must start with a letter and must not end with a dash. Its maximum length is 64 characters.

  • $msg->reservation_group() / $msg->reservation_group($value)

    Type: Message (Google::Cloud::Bigquery::Reservation::V1::Reservation::ReservationGroup)

    Required. New Reservation Group to create.

Google::Cloud::Bigquery::Reservation::V1::Reservation::GetReservationGroupRequest

The request for [ReservationService.GetReservationGroup][google.cloud.bigquery.reservation.v1.ReservationService.GetReservationGroup].

Inherits from Protobuf::Message.

Accessors

  • $msg->name() / $msg->name($value)

    Type: String

    Required. Resource name of the reservation group to retrieve. E.g., `projects/myproject/locations/US/reservationGroups/team1-prod`

Google::Cloud::Bigquery::Reservation::V1::Reservation::ListReservationGroupsRequest

The request for [ReservationService.ListReservationGroups][google.cloud.bigquery.reservation.v1.ReservationService.ListReservationGroups].

Inherits from Protobuf::Message.

Accessors

  • $msg->parent() / $msg->parent($value)

    Type: String

    Required. The parent resource name containing project and location, e.g.: `projects/myproject/locations/US`

  • $msg->page_size() / $msg->page_size($value)

    Type: Int32

    The maximum number of items to return per page.

  • $msg->page_token() / $msg->page_token($value)

    Type: String

    The next_page_token value returned from a previous List request, if any.

Google::Cloud::Bigquery::Reservation::V1::Reservation::ListReservationGroupsResponse

The response for [ReservationService.ListReservationGroups][google.cloud.bigquery.reservation.v1.ReservationService.ListReservationGroups].

Inherits from Protobuf::Message.

Accessors

  • $msg->reservation_groups() / $msg->reservation_groups($value)

    Type: Message (Google::Cloud::Bigquery::Reservation::V1::Reservation::ReservationGroup)

    List of reservations visible to the user.

  • $msg->next_page_token() / $msg->next_page_token($value)

    Type: String

    Token to retrieve the next page of results, or empty if there are no more results in the list.

Google::Cloud::Bigquery::Reservation::V1::Reservation::DeleteReservationGroupRequest

The request for [ReservationService.DeleteReservationGroup][google.cloud.bigquery.reservation.v1.ReservationService.DeleteReservationGroup].

Inherits from Protobuf::Message.

Accessors

  • $msg->name() / $msg->name($value)

    Type: String

    Required. Resource name of the reservation group to retrieve. E.g., `projects/myproject/locations/US/reservationGroups/team1-prod`

Google::Cloud::Bigquery::Reservation::V1::Reservation::UpdateReservationGroupRequest

The request for [ReservationService.UpdateReservationGroup][google.cloud.bigquery.reservation.v1.ReservationService.UpdateReservationGroup].

Inherits from Protobuf::Message.

Accessors

Google::Cloud::Bigquery::Reservation::V1::Reservation::CreateCapacityCommitmentRequest

The request for [ReservationService.CreateCapacityCommitment][google.cloud.bigquery.reservation.v1.ReservationService.CreateCapacityCommitment].

Inherits from Protobuf::Message.

Accessors

  • $msg->parent() / $msg->parent($value)

    Type: String

    Required. Resource name of the parent reservation. E.g., `projects/myproject/locations/US`

  • $msg->capacity_commitment() / $msg->capacity_commitment($value)

    Type: Message (Google::Cloud::Bigquery::Reservation::V1::Reservation::CapacityCommitment)

    Content of the capacity commitment to create.

  • $msg->enforce_single_admin_project_per_org() / $msg->enforce_single_admin_project_per_org($value)

    Type: Bool

    If true, fail the request if another project in the organization has a capacity commitment.

  • $msg->capacity_commitment_id() / $msg->capacity_commitment_id($value)

    Type: String

    The optional capacity commitment ID. Capacity commitment name will be generated automatically if this field is empty. This field must only contain lower case alphanumeric characters or dashes. The first and last character cannot be a dash. Max length is 64 characters. NOTE: this ID won't be kept if the capacity commitment is split or merged.

Google::Cloud::Bigquery::Reservation::V1::Reservation::ListCapacityCommitmentsRequest

The request for [ReservationService.ListCapacityCommitments][google.cloud.bigquery.reservation.v1.ReservationService.ListCapacityCommitments].

Inherits from Protobuf::Message.

Accessors

  • $msg->parent() / $msg->parent($value)

    Type: String

    Required. Resource name of the parent reservation. E.g., `projects/myproject/locations/US`

  • $msg->page_size() / $msg->page_size($value)

    Type: Int32

    The maximum number of items to return.

  • $msg->page_token() / $msg->page_token($value)

    Type: String

    The next_page_token value returned from a previous List request, if any.

Google::Cloud::Bigquery::Reservation::V1::Reservation::ListCapacityCommitmentsResponse

The response for [ReservationService.ListCapacityCommitments][google.cloud.bigquery.reservation.v1.ReservationService.ListCapacityCommitments].

Inherits from Protobuf::Message.

Accessors

  • $msg->capacity_commitments() / $msg->capacity_commitments($value)

    Type: Message (Google::Cloud::Bigquery::Reservation::V1::Reservation::CapacityCommitment)

    List of capacity commitments visible to the user.

  • $msg->next_page_token() / $msg->next_page_token($value)

    Type: String

    Token to retrieve the next page of results, or empty if there are no more results in the list.

Google::Cloud::Bigquery::Reservation::V1::Reservation::GetCapacityCommitmentRequest

The request for [ReservationService.GetCapacityCommitment][google.cloud.bigquery.reservation.v1.ReservationService.GetCapacityCommitment].

Inherits from Protobuf::Message.

Accessors

  • $msg->name() / $msg->name($value)

    Type: String

    Required. Resource name of the capacity commitment to retrieve. E.g., `projects/myproject/locations/US/capacityCommitments/123`

Google::Cloud::Bigquery::Reservation::V1::Reservation::DeleteCapacityCommitmentRequest

The request for [ReservationService.DeleteCapacityCommitment][google.cloud.bigquery.reservation.v1.ReservationService.DeleteCapacityCommitment].

Inherits from Protobuf::Message.

Accessors

  • $msg->name() / $msg->name($value)

    Type: String

    Required. Resource name of the capacity commitment to delete. E.g., `projects/myproject/locations/US/capacityCommitments/123`

  • $msg->force() / $msg->force($value)

    Type: Bool

    Can be used to force delete commitments even if assignments exist. Deleting commitments with assignments may cause queries to fail if they no longer have access to slots.

Google::Cloud::Bigquery::Reservation::V1::Reservation::UpdateCapacityCommitmentRequest

The request for [ReservationService.UpdateCapacityCommitment][google.cloud.bigquery.reservation.v1.ReservationService.UpdateCapacityCommitment].

Inherits from Protobuf::Message.

Accessors

Google::Cloud::Bigquery::Reservation::V1::Reservation::SplitCapacityCommitmentRequest

The request for [ReservationService.SplitCapacityCommitment][google.cloud.bigquery.reservation.v1.ReservationService.SplitCapacityCommitment].

Inherits from Protobuf::Message.

Accessors

  • $msg->name() / $msg->name($value)

    Type: String

    Required. The resource name e.g.,: `projects/myproject/locations/US/capacityCommitments/123`

  • $msg->slot_count() / $msg->slot_count($value)

    Type: Int64

    Number of slots in the capacity commitment after the split.

Google::Cloud::Bigquery::Reservation::V1::Reservation::SplitCapacityCommitmentResponse

The response for [ReservationService.SplitCapacityCommitment][google.cloud.bigquery.reservation.v1.ReservationService.SplitCapacityCommitment].

Inherits from Protobuf::Message.

Accessors

Google::Cloud::Bigquery::Reservation::V1::Reservation::MergeCapacityCommitmentsRequest

The request for [ReservationService.MergeCapacityCommitments][google.cloud.bigquery.reservation.v1.ReservationService.MergeCapacityCommitments].

Inherits from Protobuf::Message.

Accessors

  • $msg->parent() / $msg->parent($value)

    Type: String

    Parent resource that identifies admin project and location e.g., `projects/myproject/locations/us`

  • $msg->capacity_commitment_ids() / $msg->capacity_commitment_ids($value)

    Type: String

    Ids of capacity commitments to merge. These capacity commitments must exist under admin project and location specified in the parent. ID is the last portion of capacity commitment name e.g., 'abc' for projects/myproject/locations/US/capacityCommitments/abc

  • $msg->capacity_commitment_id() / $msg->capacity_commitment_id($value)

    Type: String

    Optional. The optional resulting capacity commitment ID. Capacity commitment name will be generated automatically if this field is empty. This field must only contain lower case alphanumeric characters or dashes. The first and last character cannot be a dash. Max length is 64 characters.

Google::Cloud::Bigquery::Reservation::V1::Reservation::Assignment

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

Inherits from Protobuf::Message.

Accessors

  • $msg->name() / $msg->name($value)

    Type: String

    Output only. Name of the resource. E.g.: `projects/myproject/locations/US/reservations/team1-prod/assignments/123`. The assignment_id must only contain lower case alphanumeric characters or dashes and the max length is 64 characters.

  • $msg->assignee() / $msg->assignee($value)

    Type: String

    Optional. The resource which will use the reservation. E.g. `projects/myproject`, `folders/123`, or `organizations/456`.

  • $msg->job_type() / $msg->job_type($value)

    Type: Enum (Google::Cloud::Bigquery::Reservation::V1::Assignment::JobType)

    Optional. Which type of jobs will use the reservation.

  • $msg->state() / $msg->state($value)

    Type: Enum (Google::Cloud::Bigquery::Reservation::V1::Assignment::State)

    Output only. State of the assignment.

  • $msg->enable_gemini_in_bigquery() / $msg->enable_gemini_in_bigquery($value)

    Type: Bool

    Optional. Deprecated: "Gemini in BigQuery" is now available by default for all BigQuery editions and should not be explicitly set. Controls if "Gemini in BigQuery" (https://cloud.google.com/gemini/docs/bigquery/overview) features should be enabled for this reservation assignment.

  • $msg->scheduling_policy() / $msg->scheduling_policy($value)

    Type: Message (Google::Cloud::Bigquery::Reservation::V1::Reservation::SchedulingPolicy)

    Optional. The scheduling policy to use for jobs and queries of this assignee when running under the associated reservation. The scheduling policy controls how the reservation's resources are distributed. This overrides the default scheduling policy specified on the reservation.

    This feature is not yet generally available.

  • $msg->principal() / $msg->principal($value)

    Type: String

    Optional. Represents the principal for this assignment. If not empty, jobs run by this principal utilize the associated reservation. Otherwise, jobs fall back to using the reservation assigned to the project, folder, or organization, in that order. If no reservation is assigned at any of these levels, on-demand capacity is used.

    The supported formats are:

    * `principal://goog/subject/USER_EMAIL_ADDRESS` for users, * `principal://iam.googleapis.com/projects/-/serviceAccounts/SA_EMAIL_ADDRESS` for service accounts, * `principal://iam.googleapis.com/projects/PROJECT_NUMBER/locations/global/workloadIdentityPools/POOL_ID/subject/SUBJECT_ID` for workload identity pool identities. * The special value `unknown_or_deleted_user` represents principals which cannot be read from the user info service, for example, deleted users.

  • $msg->precedence() / $msg->precedence($value)

    Type: Int64

    Optional. Specifies the priority precedence for this assignment. Used to resolve ambiguity when multiple assignments match a single job. Higher numerical values represent higher priority (e.g., 20 is higher than 10). If unspecified, it defaults to 0. Multiple assignments can share the same precedence, but it is recommended to use unique precedence values for assignments within the same assignee scope.

  • $msg->condition() / $msg->condition($value)

    Type: Message (Google::Type::Expr::Expr)

    Optional. Common Expression Language (CEL) condition that defines the matching criteria for this assignment. The condition must resolve to a boolean value. Supported variables will be added later.

Enum: Assignment::JobType

  • JOB_TYPE_UNSPECIFIED => 0

  • PIPELINE => 1

  • QUERY => 2

  • ML_EXTERNAL => 3

  • BACKGROUND => 4

  • CONTINUOUS => 6

  • BACKGROUND_CHANGE_DATA_CAPTURE => 7

  • BACKGROUND_COLUMN_METADATA_INDEX => 8

  • BACKGROUND_SEARCH_INDEX_REFRESH => 9

  • AUTOMATIC_MATERIALIZED_VIEW_REFRESH => 10

Enum: Assignment::State

  • STATE_UNSPECIFIED => 0

  • PENDING => 1

  • ACTIVE => 2

Google::Cloud::Bigquery::Reservation::V1::Reservation::CreateAssignmentRequest

The request for [ReservationService.CreateAssignment][google.cloud.bigquery.reservation.v1.ReservationService.CreateAssignment]. Note: "bigquery.reservationAssignments.create" permission is required on the related assignee.

Inherits from Protobuf::Message.

Accessors

  • $msg->parent() / $msg->parent($value)

    Type: String

    Required. The parent resource name of the assignment E.g. `projects/myproject/locations/US/reservations/team1-prod`

  • $msg->assignment() / $msg->assignment($value)

    Type: Message (Google::Cloud::Bigquery::Reservation::V1::Reservation::Assignment)

    Assignment resource to create.

  • $msg->assignment_id() / $msg->assignment_id($value)

    Type: String

    The optional assignment ID. Assignment name will be generated automatically if this field is empty. This field must only contain lower case alphanumeric characters or dashes. Max length is 64 characters.

Google::Cloud::Bigquery::Reservation::V1::Reservation::ListAssignmentsRequest

The request for [ReservationService.ListAssignments][google.cloud.bigquery.reservation.v1.ReservationService.ListAssignments].

Inherits from Protobuf::Message.

Accessors

  • $msg->parent() / $msg->parent($value)

    Type: String

    Required. The parent resource name e.g.:

    `projects/myproject/locations/US/reservations/team1-prod`

    Or:

    `projects/myproject/locations/US/reservations/-`

  • $msg->page_size() / $msg->page_size($value)

    Type: Int32

    The maximum number of items to return per page.

  • $msg->page_token() / $msg->page_token($value)

    Type: String

    The next_page_token value returned from a previous List request, if any.

Google::Cloud::Bigquery::Reservation::V1::Reservation::ListAssignmentsResponse

The response for [ReservationService.ListAssignments][google.cloud.bigquery.reservation.v1.ReservationService.ListAssignments].

Inherits from Protobuf::Message.

Accessors

  • $msg->assignments() / $msg->assignments($value)

    Type: Message (Google::Cloud::Bigquery::Reservation::V1::Reservation::Assignment)

    List of assignments visible to the user.

  • $msg->next_page_token() / $msg->next_page_token($value)

    Type: String

    Token to retrieve the next page of results, or empty if there are no more results in the list.

Google::Cloud::Bigquery::Reservation::V1::Reservation::DeleteAssignmentRequest

The request for [ReservationService.DeleteAssignment][google.cloud.bigquery.reservation.v1.ReservationService.DeleteAssignment]. Note: "bigquery.reservationAssignments.delete" permission is required on the related assignee.

Inherits from Protobuf::Message.

Accessors

  • $msg->name() / $msg->name($value)

    Type: String

    Required. Name of the resource, e.g. `projects/myproject/locations/US/reservations/team1-prod/assignments/123`

Google::Cloud::Bigquery::Reservation::V1::Reservation::SearchAssignmentsRequest

The request for [ReservationService.SearchAssignments][google.cloud.bigquery.reservation.v1.ReservationService.SearchAssignments]. Note: "bigquery.reservationAssignments.search" permission is required on the related assignee.

Inherits from Protobuf::Message.

Accessors

  • $msg->parent() / $msg->parent($value)

    Type: String

    Required. The resource name of the admin project(containing project and location), e.g.: `projects/myproject/locations/US`.

  • $msg->query() / $msg->query($value)

    Type: String

    Please specify resource name as assignee in the query.

    Examples:

    * `assignee=projects/myproject` * `assignee=folders/123` * `assignee=organizations/456`

  • $msg->page_size() / $msg->page_size($value)

    Type: Int32

    The maximum number of items to return per page.

  • $msg->page_token() / $msg->page_token($value)

    Type: String

    The next_page_token value returned from a previous List request, if any.

Google::Cloud::Bigquery::Reservation::V1::Reservation::SearchAllAssignmentsRequest

The request for [ReservationService.SearchAllAssignments][google.cloud.bigquery.reservation.v1.ReservationService.SearchAllAssignments]. Note: "bigquery.reservationAssignments.search" permission is required on the related assignee.

Inherits from Protobuf::Message.

Accessors

  • $msg->parent() / $msg->parent($value)

    Type: String

    Required. The resource name with location (project name could be the wildcard '-'), e.g.: `projects/-/locations/US`.

  • $msg->query() / $msg->query($value)

    Type: String

    Please specify resource name as assignee in the query.

    Examples:

    * `assignee=projects/myproject` * `assignee=folders/123` * `assignee=organizations/456`

  • $msg->page_size() / $msg->page_size($value)

    Type: Int32

    The maximum number of items to return per page.

  • $msg->page_token() / $msg->page_token($value)

    Type: String

    The next_page_token value returned from a previous List request, if any.

Google::Cloud::Bigquery::Reservation::V1::Reservation::SearchAssignmentsResponse

The response for [ReservationService.SearchAssignments][google.cloud.bigquery.reservation.v1.ReservationService.SearchAssignments].

Inherits from Protobuf::Message.

Accessors

  • $msg->assignments() / $msg->assignments($value)

    Type: Message (Google::Cloud::Bigquery::Reservation::V1::Reservation::Assignment)

    List of assignments visible to the user.

  • $msg->next_page_token() / $msg->next_page_token($value)

    Type: String

    Token to retrieve the next page of results, or empty if there are no more results in the list.

Google::Cloud::Bigquery::Reservation::V1::Reservation::SearchAllAssignmentsResponse

The response for [ReservationService.SearchAllAssignments][google.cloud.bigquery.reservation.v1.ReservationService.SearchAllAssignments].

Inherits from Protobuf::Message.

Accessors

  • $msg->assignments() / $msg->assignments($value)

    Type: Message (Google::Cloud::Bigquery::Reservation::V1::Reservation::Assignment)

    List of assignments visible to the user.

  • $msg->next_page_token() / $msg->next_page_token($value)

    Type: String

    Token to retrieve the next page of results, or empty if there are no more results in the list.

Google::Cloud::Bigquery::Reservation::V1::Reservation::MoveAssignmentRequest

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.

Inherits from Protobuf::Message.

Accessors

  • $msg->name() / $msg->name($value)

    Type: String

    Required. The resource name of the assignment, e.g. `projects/myproject/locations/US/reservations/team1-prod/assignments/123`

  • $msg->destination_id() / $msg->destination_id($value)

    Type: String

    The new reservation ID, e.g.: `projects/myotherproject/locations/US/reservations/team2-prod`

  • $msg->assignment_id() / $msg->assignment_id($value)

    Type: String

    The optional assignment ID. A new assignment name is generated if this field is empty.

    This field can contain only lowercase alphanumeric characters or dashes. Max length is 64 characters.

Google::Cloud::Bigquery::Reservation::V1::Reservation::UpdateAssignmentRequest

The request for [ReservationService.UpdateAssignment][google.cloud.bigquery.reservation.v1.ReservationService.UpdateAssignment].

Inherits from Protobuf::Message.

Accessors

Google::Cloud::Bigquery::Reservation::V1::Reservation::TableReference

Fully qualified reference to BigQuery table. Internally stored as google.cloud.bi.v1.BqTableReference.

Inherits from Protobuf::Message.

Accessors

  • $msg->project_id() / $msg->project_id($value)

    Type: String

    Optional. The assigned project ID of the project.

  • $msg->dataset_id() / $msg->dataset_id($value)

    Type: String

    Optional. The ID of the dataset in the above project.

  • $msg->table_id() / $msg->table_id($value)

    Type: String

    Optional. The ID of the table in the above dataset.

Google::Cloud::Bigquery::Reservation::V1::Reservation::BiReservation

Represents a BI Reservation.

Inherits from Protobuf::Message.

Accessors

  • $msg->name() / $msg->name($value)

    Type: String

    Identifier. The resource name of the singleton BI reservation. Reservation names have the form `projects/{project_id}/locations/{location_id}/biReservation`.

  • $msg->update_time() / $msg->update_time($value)

    Type: Message (Google::Protobuf::Timestamp::Timestamp)

    Output only. The last update timestamp of a reservation.

  • $msg->size() / $msg->size($value)

    Type: Int64

    Optional. Size of a reservation, in bytes.

  • $msg->preferred_tables() / $msg->preferred_tables($value)

    Type: Message (Google::Cloud::Bigquery::Reservation::V1::Reservation::TableReference)

    Optional. Preferred tables to use BI capacity for.

Google::Cloud::Bigquery::Reservation::V1::Reservation::GetBiReservationRequest

A request to get a singleton BI reservation.

Inherits from Protobuf::Message.

Accessors

  • $msg->name() / $msg->name($value)

    Type: String

    Required. Name of the requested reservation, for example: `projects/{project_id}/locations/{location_id}/biReservation`

Google::Cloud::Bigquery::Reservation::V1::Reservation::UpdateBiReservationRequest

A request to update a BI reservation.

Inherits from Protobuf::Message.

Accessors

SEE ALSO

Protobuf, Protobuf::Message, Google::Cloud::Bigquery::Reservation::V1::Reservation::Types, https://protobuf.dev/

LICENSE AND COPYRIGHT

Copyright (C) 2026 Google LLC

This program is released under the Apache 2.0 license.