Skip to content

Commit 767ba18

Browse files
yoshi-automationmiguelvelezsa
authored andcommitted
feat(bigqueryreservation): update the API
#### bigqueryreservation:v1 The following keys were added: - schemas.Assignment.properties.schedulingPolicy.$ref - schemas.Assignment.properties.schedulingPolicy.description - schemas.Reservation.properties.schedulingPolicy.$ref - schemas.Reservation.properties.schedulingPolicy.description - schemas.SchedulingPolicy.description - schemas.SchedulingPolicy.id - schemas.SchedulingPolicy.properties.concurrency.description - schemas.SchedulingPolicy.properties.concurrency.format - schemas.SchedulingPolicy.properties.concurrency.type - schemas.SchedulingPolicy.properties.maxSlots.description - schemas.SchedulingPolicy.properties.maxSlots.format - schemas.SchedulingPolicy.properties.maxSlots.type - schemas.SchedulingPolicy.type
1 parent 6840cb5 commit 767ba18

File tree

2 files changed

+58
-1
lines changed

2 files changed

+58
-1
lines changed

discovery/bigqueryreservation-v1.json

Lines changed: 26 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1267,7 +1267,7 @@
12671267
}
12681268
}
12691269
},
1270-
"revision": "20250907",
1270+
"revision": "20251009",
12711271
"rootUrl": "https://bigqueryreservation.googleapis.com/",
12721272
"schemas": {
12731273
"Assignment": {
@@ -1313,6 +1313,10 @@
13131313
"readOnly": true,
13141314
"type": "string"
13151315
},
1316+
"schedulingPolicy": {
1317+
"$ref": "SchedulingPolicy",
1318+
"description": "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."
1319+
},
13161320
"state": {
13171321
"description": "Output only. State of the assignment.",
13181322
"enum": [
@@ -1916,6 +1920,10 @@
19161920
],
19171921
"type": "string"
19181922
},
1923+
"schedulingPolicy": {
1924+
"$ref": "SchedulingPolicy",
1925+
"description": "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."
1926+
},
19191927
"secondaryLocation": {
19201928
"description": "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).",
19211929
"type": "string"
@@ -1945,6 +1953,23 @@
19451953
},
19461954
"type": "object"
19471955
},
1956+
"SchedulingPolicy": {
1957+
"description": "The scheduling policy controls how a reservation's resources are distributed.",
1958+
"id": "SchedulingPolicy",
1959+
"properties": {
1960+
"concurrency": {
1961+
"description": "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.",
1962+
"format": "int64",
1963+
"type": "string"
1964+
},
1965+
"maxSlots": {
1966+
"description": "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.",
1967+
"format": "int64",
1968+
"type": "string"
1969+
}
1970+
},
1971+
"type": "object"
1972+
},
19481973
"SearchAllAssignmentsResponse": {
19491974
"description": "The response for ReservationService.SearchAllAssignments.",
19501975
"id": "SearchAllAssignmentsResponse",

src/apis/bigqueryreservation/v1.ts

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -144,6 +144,10 @@ export namespace bigqueryreservation_v1 {
144144
* 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.
145145
*/
146146
name?: string | null;
147+
/**
148+
* 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.
149+
*/
150+
schedulingPolicy?: Schema$SchedulingPolicy;
147151
/**
148152
* Output only. State of the assignment.
149153
*/
@@ -489,6 +493,10 @@ export namespace bigqueryreservation_v1 {
489493
* 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`.
490494
*/
491495
scalingMode?: string | null;
496+
/**
497+
* 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.
498+
*/
499+
schedulingPolicy?: Schema$SchedulingPolicy;
492500
/**
493501
* 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).
494502
*/
@@ -511,6 +519,19 @@ export namespace bigqueryreservation_v1 {
511519
*/
512520
name?: string | null;
513521
}
522+
/**
523+
* The scheduling policy controls how a reservation's resources are distributed.
524+
*/
525+
export interface Schema$SchedulingPolicy {
526+
/**
527+
* 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.
528+
*/
529+
concurrency?: string | null;
530+
/**
531+
* 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.
532+
*/
533+
maxSlots?: string | null;
534+
}
514535
/**
515536
* The response for ReservationService.SearchAllAssignments.
516537
*/
@@ -3230,6 +3251,7 @@ export namespace bigqueryreservation_v1 {
32303251
* // "replicationStatus": {},
32313252
* // "reservationGroup": "my_reservationGroup",
32323253
* // "scalingMode": "my_scalingMode",
3254+
* // "schedulingPolicy": {},
32333255
* // "secondaryLocation": "my_secondaryLocation",
32343256
* // "slotCapacity": "my_slotCapacity",
32353257
* // "updateTime": "my_updateTime"
@@ -3254,6 +3276,7 @@ export namespace bigqueryreservation_v1 {
32543276
* // "replicationStatus": {},
32553277
* // "reservationGroup": "my_reservationGroup",
32563278
* // "scalingMode": "my_scalingMode",
3279+
* // "schedulingPolicy": {},
32573280
* // "secondaryLocation": "my_secondaryLocation",
32583281
* // "slotCapacity": "my_slotCapacity",
32593282
* // "updateTime": "my_updateTime"
@@ -3558,6 +3581,7 @@ export namespace bigqueryreservation_v1 {
35583581
* // "replicationStatus": {},
35593582
* // "reservationGroup": "my_reservationGroup",
35603583
* // "scalingMode": "my_scalingMode",
3584+
* // "schedulingPolicy": {},
35613585
* // "secondaryLocation": "my_secondaryLocation",
35623586
* // "slotCapacity": "my_slotCapacity",
35633587
* // "updateTime": "my_updateTime"
@@ -3718,6 +3742,7 @@ export namespace bigqueryreservation_v1 {
37183742
* // "replicationStatus": {},
37193743
* // "reservationGroup": "my_reservationGroup",
37203744
* // "scalingMode": "my_scalingMode",
3745+
* // "schedulingPolicy": {},
37213746
* // "secondaryLocation": "my_secondaryLocation",
37223747
* // "slotCapacity": "my_slotCapacity",
37233748
* // "updateTime": "my_updateTime"
@@ -4171,6 +4196,7 @@ export namespace bigqueryreservation_v1 {
41714196
* // "replicationStatus": {},
41724197
* // "reservationGroup": "my_reservationGroup",
41734198
* // "scalingMode": "my_scalingMode",
4199+
* // "schedulingPolicy": {},
41744200
* // "secondaryLocation": "my_secondaryLocation",
41754201
* // "slotCapacity": "my_slotCapacity",
41764202
* // "updateTime": "my_updateTime"
@@ -4195,6 +4221,7 @@ export namespace bigqueryreservation_v1 {
41954221
* // "replicationStatus": {},
41964222
* // "reservationGroup": "my_reservationGroup",
41974223
* // "scalingMode": "my_scalingMode",
4224+
* // "schedulingPolicy": {},
41984225
* // "secondaryLocation": "my_secondaryLocation",
41994226
* // "slotCapacity": "my_slotCapacity",
42004227
* // "updateTime": "my_updateTime"
@@ -4774,6 +4801,7 @@ export namespace bigqueryreservation_v1 {
47744801
* // "enableGeminiInBigquery": false,
47754802
* // "jobType": "my_jobType",
47764803
* // "name": "my_name",
4804+
* // "schedulingPolicy": {},
47774805
* // "state": "my_state"
47784806
* // }
47794807
* },
@@ -4787,6 +4815,7 @@ export namespace bigqueryreservation_v1 {
47874815
* // "enableGeminiInBigquery": false,
47884816
* // "jobType": "my_jobType",
47894817
* // "name": "my_name",
4818+
* // "schedulingPolicy": {},
47904819
* // "state": "my_state"
47914820
* // }
47924821
* }
@@ -5385,6 +5414,7 @@ export namespace bigqueryreservation_v1 {
53855414
* // "enableGeminiInBigquery": false,
53865415
* // "jobType": "my_jobType",
53875416
* // "name": "my_name",
5417+
* // "schedulingPolicy": {},
53885418
* // "state": "my_state"
53895419
* // }
53905420
* }
@@ -5532,6 +5562,7 @@ export namespace bigqueryreservation_v1 {
55325562
* // "enableGeminiInBigquery": false,
55335563
* // "jobType": "my_jobType",
55345564
* // "name": "my_name",
5565+
* // "schedulingPolicy": {},
55355566
* // "state": "my_state"
55365567
* // }
55375568
* },
@@ -5545,6 +5576,7 @@ export namespace bigqueryreservation_v1 {
55455576
* // "enableGeminiInBigquery": false,
55465577
* // "jobType": "my_jobType",
55475578
* // "name": "my_name",
5579+
* // "schedulingPolicy": {},
55485580
* // "state": "my_state"
55495581
* // }
55505582
* }

0 commit comments

Comments
 (0)