Skip to content

Commit 50fc7c4

Browse files
feat(all): auto-regenerate discovery clients (#1826)
1 parent 6aad438 commit 50fc7c4

31 files changed

+400
-178
lines changed

api-list.json

Lines changed: 0 additions & 45 deletions
Original file line numberDiff line numberDiff line change
@@ -1111,51 +1111,6 @@
11111111
"documentationLink": "https://cloud.google.com/billing/",
11121112
"preferred": true
11131113
},
1114-
{
1115-
"kind": "discovery#directoryItem",
1116-
"id": "cloudbuild:v1alpha1",
1117-
"name": "cloudbuild",
1118-
"version": "v1alpha1",
1119-
"title": "Cloud Build API",
1120-
"description": "Creates and manages builds on Google Cloud Platform.",
1121-
"discoveryRestUrl": "https://cloudbuild.googleapis.com/$discovery/rest?version=v1alpha1",
1122-
"icons": {
1123-
"x16": "https://www.gstatic.com/images/branding/product/1x/googleg_16dp.png",
1124-
"x32": "https://www.gstatic.com/images/branding/product/1x/googleg_32dp.png"
1125-
},
1126-
"documentationLink": "https://cloud.google.com/cloud-build/docs/",
1127-
"preferred": false
1128-
},
1129-
{
1130-
"kind": "discovery#directoryItem",
1131-
"id": "cloudbuild:v1alpha2",
1132-
"name": "cloudbuild",
1133-
"version": "v1alpha2",
1134-
"title": "Cloud Build API",
1135-
"description": "Creates and manages builds on Google Cloud Platform.",
1136-
"discoveryRestUrl": "https://cloudbuild.googleapis.com/$discovery/rest?version=v1alpha2",
1137-
"icons": {
1138-
"x16": "https://www.gstatic.com/images/branding/product/1x/googleg_16dp.png",
1139-
"x32": "https://www.gstatic.com/images/branding/product/1x/googleg_32dp.png"
1140-
},
1141-
"documentationLink": "https://cloud.google.com/cloud-build/docs/",
1142-
"preferred": false
1143-
},
1144-
{
1145-
"kind": "discovery#directoryItem",
1146-
"id": "cloudbuild:v1beta1",
1147-
"name": "cloudbuild",
1148-
"version": "v1beta1",
1149-
"title": "Cloud Build API",
1150-
"description": "Creates and manages builds on Google Cloud Platform.",
1151-
"discoveryRestUrl": "https://cloudbuild.googleapis.com/$discovery/rest?version=v1beta1",
1152-
"icons": {
1153-
"x16": "https://www.gstatic.com/images/branding/product/1x/googleg_16dp.png",
1154-
"x32": "https://www.gstatic.com/images/branding/product/1x/googleg_32dp.png"
1155-
},
1156-
"documentationLink": "https://cloud.google.com/cloud-build/docs/",
1157-
"preferred": false
1158-
},
11591114
{
11601115
"kind": "discovery#directoryItem",
11611116
"id": "cloudbuild:v1",

bigqueryreservation/v1/bigqueryreservation-api.json

Lines changed: 55 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -823,7 +823,7 @@
823823
}
824824
}
825825
},
826-
"revision": "20221112",
826+
"revision": "20230121",
827827
"rootUrl": "https://bigqueryreservation.googleapis.com/",
828828
"schemas": {
829829
"Assignment": {
@@ -875,6 +875,24 @@
875875
},
876876
"type": "object"
877877
},
878+
"Autoscale": {
879+
"description": "Auto scaling settings. max_slots and budget are mutually exclusive. If max_slots is set: * The system will create a dedicated `FLEX` capacity commitment to hold the slots for auto-scale. Users won't be able to manage it, to avoid conflicts. * Scale-up will happen if there are always pending tasks for the past 10 minutes. * Scale-down will happen, if the system detects that scale-up won't be triggered again. If budget is set: * The system will try to use more slots immediately. * At a particular moment, the number of slots scaled is determined by the sytsem, based on the remaining budget and system limit. But overall the usage will conform to the budget if there is enough traffic. * The system will round the slot usage every minute. **Note** this is an alpha feature.",
880+
"id": "Autoscale",
881+
"properties": {
882+
"currentSlots": {
883+
"description": "Output only. The slot capacity added to this reservation when autoscale happens. Will be between [0, max_slots].",
884+
"format": "int64",
885+
"readOnly": true,
886+
"type": "string"
887+
},
888+
"maxSlots": {
889+
"description": "Number of slots to be scaled when needed.",
890+
"format": "int64",
891+
"type": "string"
892+
}
893+
},
894+
"type": "object"
895+
},
878896
"BiReservation": {
879897
"description": "Represents a BI Reservation.",
880898
"id": "BiReservation",
@@ -920,6 +938,18 @@
920938
"readOnly": true,
921939
"type": "string"
922940
},
941+
"edition": {
942+
"description": "Edition of the capacity commitment.",
943+
"enum": [
944+
"EDITION_UNSPECIFIED",
945+
"ENTERPRISE"
946+
],
947+
"enumDescriptions": [
948+
"Default value, only for legacy reservations and capacity commitments.",
949+
"Enterprise edition."
950+
],
951+
"type": "string"
952+
},
923953
"failureStatus": {
924954
"$ref": "Status",
925955
"description": "Output only. For FAILED commitment plan, provides the reason of failure.",
@@ -941,14 +971,16 @@
941971
"FLEX",
942972
"TRIAL",
943973
"MONTHLY",
944-
"ANNUAL"
974+
"ANNUAL",
975+
"NONE"
945976
],
946977
"enumDescriptions": [
947978
"Invalid plan value. Requests with this value will be rejected with error code `google.rpc.Code.INVALID_ARGUMENT`.",
948979
"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.",
949980
"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.",
950981
"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.",
951-
"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."
982+
"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+
"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."
952984
],
953985
"type": "string"
954986
},
@@ -959,14 +991,16 @@
959991
"FLEX",
960992
"TRIAL",
961993
"MONTHLY",
962-
"ANNUAL"
994+
"ANNUAL",
995+
"NONE"
963996
],
964997
"enumDescriptions": [
965998
"Invalid plan value. Requests with this value will be rejected with error code `google.rpc.Code.INVALID_ARGUMENT`.",
966999
"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.",
9671000
"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.",
9681001
"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.",
969-
"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."
1002+
"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+
"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."
9701004
],
9711005
"type": "string"
9721006
},
@@ -1084,6 +1118,10 @@
10841118
"description": "A reservation is a mechanism used to guarantee slots to users.",
10851119
"id": "Reservation",
10861120
"properties": {
1121+
"autoscale": {
1122+
"$ref": "Autoscale",
1123+
"description": "The configuration parameters for the auto scaling feature. Note this is an alpha feature."
1124+
},
10871125
"concurrency": {
10881126
"description": "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 BQ CLI.",
10891127
"format": "int64",
@@ -1095,6 +1133,18 @@
10951133
"readOnly": true,
10961134
"type": "string"
10971135
},
1136+
"edition": {
1137+
"description": "Edition of the reservation.",
1138+
"enum": [
1139+
"EDITION_UNSPECIFIED",
1140+
"ENTERPRISE"
1141+
],
1142+
"enumDescriptions": [
1143+
"Default value, only for legacy reservations and capacity commitments.",
1144+
"Enterprise edition."
1145+
],
1146+
"type": "string"
1147+
},
10981148
"ignoreIdleSlots": {
10991149
"description": "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.",
11001150
"type": "boolean"

bigqueryreservation/v1/bigqueryreservation-gen.go

Lines changed: 82 additions & 5 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)