Skip to content

Commit 52fbbbe

Browse files
yoshi-automationsofisl
authored andcommitted
feat(bigqueryreservation): update the API
#### bigqueryreservation:v1 The following keys were added: - schemas.MoveAssignmentRequest.properties.assignmentId.description - schemas.MoveAssignmentRequest.properties.assignmentId.type The following keys were changed: - schemas.CapacityCommitment.properties.edition.description - schemas.CapacityCommitment.properties.edition.enum - schemas.CapacityCommitment.properties.edition.enumDescriptions - schemas.CapacityCommitment.properties.plan.enum - schemas.CapacityCommitment.properties.plan.enumDescriptions - schemas.CapacityCommitment.properties.renewalPlan.enum - schemas.CapacityCommitment.properties.renewalPlan.enumDescriptions - schemas.Reservation.properties.edition.description - schemas.Reservation.properties.edition.enum - schemas.Reservation.properties.edition.enumDescriptions
1 parent d907c11 commit 52fbbbe

File tree

2 files changed

+46
-13
lines changed

2 files changed

+46
-13
lines changed

discovery/bigqueryreservation-v1.json

Lines changed: 39 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -823,7 +823,7 @@
823823
}
824824
}
825825
},
826-
"revision": "20230215",
826+
"revision": "20230316",
827827
"rootUrl": "https://bigqueryreservation.googleapis.com/",
828828
"schemas": {
829829
"Assignment": {
@@ -939,14 +939,18 @@
939939
"type": "string"
940940
},
941941
"edition": {
942-
"description": "Do not use.",
942+
"description": "Edition of the capacity commitment.",
943943
"enum": [
944944
"EDITION_UNSPECIFIED",
945-
"ENTERPRISE"
945+
"STANDARD",
946+
"ENTERPRISE",
947+
"ENTERPRISE_PLUS"
946948
],
947949
"enumDescriptions": [
948-
"Do not use.",
949-
"Do not use."
950+
"Default value, which will be treated as ENTERPRISE.",
951+
"Standard edition.",
952+
"Enterprise edition.",
953+
"Enterprise plus edition."
950954
],
951955
"type": "string"
952956
},
@@ -969,18 +973,26 @@
969973
"enum": [
970974
"COMMITMENT_PLAN_UNSPECIFIED",
971975
"FLEX",
976+
"FLEX_FLAT_RATE",
972977
"TRIAL",
973978
"MONTHLY",
979+
"MONTHLY_FLAT_RATE",
974980
"ANNUAL",
981+
"ANNUAL_FLAT_RATE",
982+
"THREE_YEAR",
975983
"NONE"
976984
],
977985
"enumDescriptions": [
978986
"Invalid plan value. Requests with this value will be rejected with error code `google.rpc.Code.INVALID_ARGUMENT`.",
979987
"Flex commitments have committed period of 1 minute after becoming ACTIVE. After that, they are not in a committed period anymore and can be removed any time.",
988+
"Same as FLEX, should only be used if flat-rate commitments are still available.",
980989
"Trial commitments have a committed period of 182 days after becoming ACTIVE. After that, they are converted to a new commitment based on the `renewal_plan`. Default `renewal_plan` for Trial commitment is Flex so that it can be deleted right after committed period ends.",
981990
"Monthly commitments have a committed period of 30 days after becoming ACTIVE. After that, they are not in a committed period anymore and can be removed any time.",
991+
"Same as MONTHLY, should only be used if flat-rate commitments are still available.",
982992
"Annual commitments have a committed period of 365 days after becoming ACTIVE. After that they are converted to a new commitment based on the renewal_plan.",
983-
"Do not use."
993+
"Same as ANNUAL, should only be used if flat-rate commitments are still available.",
994+
"3-year commitments have a committed period of 1095(3 * 365) days after becoming ACTIVE. After that they are converted to a new commitment based on the renewal_plan.",
995+
"Should only be used for `renewal_plan` and is only meaningful if edition is specified to values other than EDITION_UNSPECIFIED. Otherwise CreateCapacityCommitmentRequest or UpdateCapacityCommitmentRequest will be rejected with error code `google.rpc.Code.INVALID_ARGUMENT`. If the renewal_plan is NONE, capacity commitment will be removed at the end of its commitment period."
984996
],
985997
"type": "string"
986998
},
@@ -989,18 +1001,26 @@
9891001
"enum": [
9901002
"COMMITMENT_PLAN_UNSPECIFIED",
9911003
"FLEX",
1004+
"FLEX_FLAT_RATE",
9921005
"TRIAL",
9931006
"MONTHLY",
1007+
"MONTHLY_FLAT_RATE",
9941008
"ANNUAL",
1009+
"ANNUAL_FLAT_RATE",
1010+
"THREE_YEAR",
9951011
"NONE"
9961012
],
9971013
"enumDescriptions": [
9981014
"Invalid plan value. Requests with this value will be rejected with error code `google.rpc.Code.INVALID_ARGUMENT`.",
9991015
"Flex commitments have committed period of 1 minute after becoming ACTIVE. After that, they are not in a committed period anymore and can be removed any time.",
1016+
"Same as FLEX, should only be used if flat-rate commitments are still available.",
10001017
"Trial commitments have a committed period of 182 days after becoming ACTIVE. After that, they are converted to a new commitment based on the `renewal_plan`. Default `renewal_plan` for Trial commitment is Flex so that it can be deleted right after committed period ends.",
10011018
"Monthly commitments have a committed period of 30 days after becoming ACTIVE. After that, they are not in a committed period anymore and can be removed any time.",
1019+
"Same as MONTHLY, should only be used if flat-rate commitments are still available.",
10021020
"Annual commitments have a committed period of 365 days after becoming ACTIVE. After that they are converted to a new commitment based on the renewal_plan.",
1003-
"Do not use."
1021+
"Same as ANNUAL, should only be used if flat-rate commitments are still available.",
1022+
"3-year commitments have a committed period of 1095(3 * 365) days after becoming ACTIVE. After that they are converted to a new commitment based on the renewal_plan.",
1023+
"Should only be used for `renewal_plan` and is only meaningful if edition is specified to values other than EDITION_UNSPECIFIED. Otherwise CreateCapacityCommitmentRequest or UpdateCapacityCommitmentRequest will be rejected with error code `google.rpc.Code.INVALID_ARGUMENT`. If the renewal_plan is NONE, capacity commitment will be removed at the end of its commitment period."
10041024
],
10051025
"type": "string"
10061026
},
@@ -1107,6 +1127,10 @@
11071127
"description": "The request for 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.",
11081128
"id": "MoveAssignmentRequest",
11091129
"properties": {
1130+
"assignmentId": {
1131+
"description": "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.",
1132+
"type": "string"
1133+
},
11101134
"destinationId": {
11111135
"description": "The new reservation ID, e.g.: `projects/myotherproject/locations/US/reservations/team2-prod`",
11121136
"type": "string"
@@ -1134,14 +1158,18 @@
11341158
"type": "string"
11351159
},
11361160
"edition": {
1137-
"description": "Do not use.",
1161+
"description": "Edition of the reservation.",
11381162
"enum": [
11391163
"EDITION_UNSPECIFIED",
1140-
"ENTERPRISE"
1164+
"STANDARD",
1165+
"ENTERPRISE",
1166+
"ENTERPRISE_PLUS"
11411167
],
11421168
"enumDescriptions": [
1143-
"Do not use.",
1144-
"Do not use."
1169+
"Default value, which will be treated as ENTERPRISE.",
1170+
"Standard edition.",
1171+
"Enterprise edition.",
1172+
"Enterprise plus edition."
11451173
],
11461174
"type": "string"
11471175
},

src/apis/bigqueryreservation/v1.ts

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -192,7 +192,7 @@ export namespace bigqueryreservation_v1 {
192192
*/
193193
commitmentStartTime?: string | null;
194194
/**
195-
* Do not use.
195+
* Edition of the capacity commitment.
196196
*/
197197
edition?: string | null;
198198
/**
@@ -280,6 +280,10 @@ export namespace bigqueryreservation_v1 {
280280
* The request for 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.
281281
*/
282282
export interface Schema$MoveAssignmentRequest {
283+
/**
284+
* 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.
285+
*/
286+
assignmentId?: string | null;
283287
/**
284288
* The new reservation ID, e.g.: `projects/myotherproject/locations/US/reservations/team2-prod`
285289
*/
@@ -302,7 +306,7 @@ export namespace bigqueryreservation_v1 {
302306
*/
303307
creationTime?: string | null;
304308
/**
305-
* Do not use.
309+
* Edition of the reservation.
306310
*/
307311
edition?: string | null;
308312
/**
@@ -3509,6 +3513,7 @@ export namespace bigqueryreservation_v1 {
35093513
* requestBody: {
35103514
* // request body parameters
35113515
* // {
3516+
* // "assignmentId": "my_assignmentId",
35123517
* // "destinationId": "my_destinationId"
35133518
* // }
35143519
* },

0 commit comments

Comments
 (0)