Skip to content

Commit a5bd611

Browse files
Google APIscopybara-github
authored andcommitted
feat: add principal field to BigQuery Reservation Assignment
docs: update the scaling mode documentation to correct an example math error PiperOrigin-RevId: 899158032
1 parent 38ed7d6 commit a5bd611

1 file changed

Lines changed: 19 additions & 2 deletions

File tree

google/cloud/bigquery/reservation/v1/reservation.proto

Lines changed: 19 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright 2025 Google LLC
1+
// Copyright 2026 Google LLC
22
//
33
// Licensed under the Apache License, Version 2.0 (the "License");
44
// you may not use this file except in compliance with the License.
@@ -560,7 +560,7 @@ message Reservation {
560560
// reservation will scale up to 1000 slots with 200 baseline and 800 idle
561561
// slots.
562562
// 2. if there are 500 idle slots available in other reservations, the
563-
// reservation will scale up to 700 slots with 200 baseline and 300 idle
563+
// reservation will scale up to 700 slots with 200 baseline and 500 idle
564564
// slots.
565565
// Please note, in this mode, the reservation might not be able to scale up
566566
// to max_slots.
@@ -1406,6 +1406,23 @@ message Assignment {
14061406
// This feature is not yet generally available.
14071407
SchedulingPolicy scheduling_policy = 11
14081408
[(google.api.field_behavior) = OPTIONAL];
1409+
1410+
// Optional. Represents the principal for this assignment. If not empty, jobs
1411+
// run by this principal will utilize the associated reservation. Otherwise,
1412+
// jobs will fall back to using the reservation assigned to the project,
1413+
// folder, or organization (in that order). If no reservation is assigned at
1414+
// any of these levels, on-demand capacity will be used.
1415+
//
1416+
// The supported formats are:
1417+
//
1418+
// * `principal://goog/subject/USER_EMAIL_ADDRESS` for users,
1419+
// * `principal://iam.googleapis.com/projects/-/serviceAccounts/SA_EMAIL_ADDRESS`
1420+
// for service accounts,
1421+
// * `principal://iam.googleapis.com/projects/PROJECT_NUMBER/locations/global/workloadIdentityPools/POOL_ID/subject/SUBJECT_ID`
1422+
// for workload identity pool identities.
1423+
// * The special value `unknown_or_deleted_user` represents principals which
1424+
// cannot be read from the user info service, for example deleted users.
1425+
string principal = 12 [(google.api.field_behavior) = OPTIONAL];
14091426
}
14101427

14111428
// The request for

0 commit comments

Comments
 (0)