Skip to content

Commit eee6a42

Browse files
feat(bigqueryreservation): update the API
#### bigqueryreservation:v1 The following keys were added: - resources.projects.resources.locations.resources.reservationGroups.methods.create.description - resources.projects.resources.locations.resources.reservationGroups.methods.create.flatPath - resources.projects.resources.locations.resources.reservationGroups.methods.create.httpMethod - resources.projects.resources.locations.resources.reservationGroups.methods.create.id - resources.projects.resources.locations.resources.reservationGroups.methods.create.parameterOrder - resources.projects.resources.locations.resources.reservationGroups.methods.create.parameters.parent.description - resources.projects.resources.locations.resources.reservationGroups.methods.create.parameters.parent.location - resources.projects.resources.locations.resources.reservationGroups.methods.create.parameters.parent.pattern - resources.projects.resources.locations.resources.reservationGroups.methods.create.parameters.parent.required - resources.projects.resources.locations.resources.reservationGroups.methods.create.parameters.parent.type - resources.projects.resources.locations.resources.reservationGroups.methods.create.parameters.reservationGroupId.description - resources.projects.resources.locations.resources.reservationGroups.methods.create.parameters.reservationGroupId.location - resources.projects.resources.locations.resources.reservationGroups.methods.create.parameters.reservationGroupId.type - resources.projects.resources.locations.resources.reservationGroups.methods.create.path - resources.projects.resources.locations.resources.reservationGroups.methods.create.request.$ref - resources.projects.resources.locations.resources.reservationGroups.methods.create.response.$ref - resources.projects.resources.locations.resources.reservationGroups.methods.create.scopes - resources.projects.resources.locations.resources.reservationGroups.methods.delete.description - resources.projects.resources.locations.resources.reservationGroups.methods.delete.flatPath - resources.projects.resources.locations.resources.reservationGroups.methods.delete.httpMethod - resources.projects.resources.locations.resources.reservationGroups.methods.delete.id - resources.projects.resources.locations.resources.reservationGroups.methods.delete.parameterOrder - resources.projects.resources.locations.resources.reservationGroups.methods.delete.parameters.name.description - resources.projects.resources.locations.resources.reservationGroups.methods.delete.parameters.name.location - resources.projects.resources.locations.resources.reservationGroups.methods.delete.parameters.name.pattern - resources.projects.resources.locations.resources.reservationGroups.methods.delete.parameters.name.required - resources.projects.resources.locations.resources.reservationGroups.methods.delete.parameters.name.type - resources.projects.resources.locations.resources.reservationGroups.methods.delete.path - resources.projects.resources.locations.resources.reservationGroups.methods.delete.response.$ref - resources.projects.resources.locations.resources.reservationGroups.methods.delete.scopes - resources.projects.resources.locations.resources.reservationGroups.methods.get.description - resources.projects.resources.locations.resources.reservationGroups.methods.get.flatPath - resources.projects.resources.locations.resources.reservationGroups.methods.get.httpMethod - resources.projects.resources.locations.resources.reservationGroups.methods.get.id - resources.projects.resources.locations.resources.reservationGroups.methods.get.parameterOrder - resources.projects.resources.locations.resources.reservationGroups.methods.get.parameters.name.description - resources.projects.resources.locations.resources.reservationGroups.methods.get.parameters.name.location - resources.projects.resources.locations.resources.reservationGroups.methods.get.parameters.name.pattern - resources.projects.resources.locations.resources.reservationGroups.methods.get.parameters.name.required - resources.projects.resources.locations.resources.reservationGroups.methods.get.parameters.name.type - resources.projects.resources.locations.resources.reservationGroups.methods.get.path - resources.projects.resources.locations.resources.reservationGroups.methods.get.response.$ref - resources.projects.resources.locations.resources.reservationGroups.methods.get.scopes - resources.projects.resources.locations.resources.reservationGroups.methods.list.description - resources.projects.resources.locations.resources.reservationGroups.methods.list.flatPath - resources.projects.resources.locations.resources.reservationGroups.methods.list.httpMethod - resources.projects.resources.locations.resources.reservationGroups.methods.list.id - resources.projects.resources.locations.resources.reservationGroups.methods.list.parameterOrder - resources.projects.resources.locations.resources.reservationGroups.methods.list.parameters.pageSize.description - resources.projects.resources.locations.resources.reservationGroups.methods.list.parameters.pageSize.format - resources.projects.resources.locations.resources.reservationGroups.methods.list.parameters.pageSize.location - resources.projects.resources.locations.resources.reservationGroups.methods.list.parameters.pageSize.type - resources.projects.resources.locations.resources.reservationGroups.methods.list.parameters.pageToken.description - resources.projects.resources.locations.resources.reservationGroups.methods.list.parameters.pageToken.location - resources.projects.resources.locations.resources.reservationGroups.methods.list.parameters.pageToken.type - resources.projects.resources.locations.resources.reservationGroups.methods.list.parameters.parent.description - resources.projects.resources.locations.resources.reservationGroups.methods.list.parameters.parent.location - resources.projects.resources.locations.resources.reservationGroups.methods.list.parameters.parent.pattern - resources.projects.resources.locations.resources.reservationGroups.methods.list.parameters.parent.required - resources.projects.resources.locations.resources.reservationGroups.methods.list.parameters.parent.type - resources.projects.resources.locations.resources.reservationGroups.methods.list.path - resources.projects.resources.locations.resources.reservationGroups.methods.list.response.$ref - resources.projects.resources.locations.resources.reservationGroups.methods.list.scopes - schemas.ListReservationGroupsResponse.description - schemas.ListReservationGroupsResponse.id - schemas.ListReservationGroupsResponse.properties.nextPageToken.description - schemas.ListReservationGroupsResponse.properties.nextPageToken.type - schemas.ListReservationGroupsResponse.properties.reservationGroups.description - schemas.ListReservationGroupsResponse.properties.reservationGroups.items.$ref - schemas.ListReservationGroupsResponse.properties.reservationGroups.type - schemas.ListReservationGroupsResponse.type - schemas.Reservation.properties.reservationGroup.description - schemas.Reservation.properties.reservationGroup.type - schemas.ReservationGroup.description - schemas.ReservationGroup.id - schemas.ReservationGroup.properties.name.description - schemas.ReservationGroup.properties.name.type - schemas.ReservationGroup.type The following keys were changed: - schemas.Reservation.properties.labels.description
1 parent bac72aa commit eee6a42

File tree

3 files changed

+836
-4
lines changed

3 files changed

+836
-4
lines changed

‎discovery/bigqueryreservation-v1.json

Lines changed: 162 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -597,6 +597,133 @@
597597
}
598598
}
599599
},
600+
"reservationGroups": {
601+
"methods": {
602+
"create": {
603+
"description": "Creates a new reservation group.",
604+
"flatPath": "v1/projects/{projectsId}/locations/{locationsId}/reservationGroups",
605+
"httpMethod": "POST",
606+
"id": "bigqueryreservation.projects.locations.reservationGroups.create",
607+
"parameterOrder": [
608+
"parent"
609+
],
610+
"parameters": {
611+
"parent": {
612+
"description": "Required. Project, location. E.g., `projects/myproject/locations/US`",
613+
"location": "path",
614+
"pattern": "^projects/[^/]+/locations/[^/]+$",
615+
"required": true,
616+
"type": "string"
617+
},
618+
"reservationGroupId": {
619+
"description": "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.",
620+
"location": "query",
621+
"type": "string"
622+
}
623+
},
624+
"path": "v1/{+parent}/reservationGroups",
625+
"request": {
626+
"$ref": "ReservationGroup"
627+
},
628+
"response": {
629+
"$ref": "ReservationGroup"
630+
},
631+
"scopes": [
632+
"https://www.googleapis.com/auth/bigquery",
633+
"https://www.googleapis.com/auth/cloud-platform"
634+
]
635+
},
636+
"delete": {
637+
"description": "Deletes a reservation. Returns `google.rpc.Code.FAILED_PRECONDITION` when reservation has assignments.",
638+
"flatPath": "v1/projects/{projectsId}/locations/{locationsId}/reservationGroups/{reservationGroupsId}",
639+
"httpMethod": "DELETE",
640+
"id": "bigqueryreservation.projects.locations.reservationGroups.delete",
641+
"parameterOrder": [
642+
"name"
643+
],
644+
"parameters": {
645+
"name": {
646+
"description": "Required. Resource name of the reservation group to retrieve. E.g., `projects/myproject/locations/US/reservationGroups/team1-prod`",
647+
"location": "path",
648+
"pattern": "^projects/[^/]+/locations/[^/]+/reservationGroups/[^/]+$",
649+
"required": true,
650+
"type": "string"
651+
}
652+
},
653+
"path": "v1/{+name}",
654+
"response": {
655+
"$ref": "Empty"
656+
},
657+
"scopes": [
658+
"https://www.googleapis.com/auth/bigquery",
659+
"https://www.googleapis.com/auth/cloud-platform"
660+
]
661+
},
662+
"get": {
663+
"description": "Returns information about the reservation group.",
664+
"flatPath": "v1/projects/{projectsId}/locations/{locationsId}/reservationGroups/{reservationGroupsId}",
665+
"httpMethod": "GET",
666+
"id": "bigqueryreservation.projects.locations.reservationGroups.get",
667+
"parameterOrder": [
668+
"name"
669+
],
670+
"parameters": {
671+
"name": {
672+
"description": "Required. Resource name of the reservation group to retrieve. E.g., `projects/myproject/locations/US/reservationGroups/team1-prod`",
673+
"location": "path",
674+
"pattern": "^projects/[^/]+/locations/[^/]+/reservationGroups/[^/]+$",
675+
"required": true,
676+
"type": "string"
677+
}
678+
},
679+
"path": "v1/{+name}",
680+
"response": {
681+
"$ref": "ReservationGroup"
682+
},
683+
"scopes": [
684+
"https://www.googleapis.com/auth/bigquery",
685+
"https://www.googleapis.com/auth/cloud-platform"
686+
]
687+
},
688+
"list": {
689+
"description": "Lists all the reservation groups for the project in the specified location.",
690+
"flatPath": "v1/projects/{projectsId}/locations/{locationsId}/reservationGroups",
691+
"httpMethod": "GET",
692+
"id": "bigqueryreservation.projects.locations.reservationGroups.list",
693+
"parameterOrder": [
694+
"parent"
695+
],
696+
"parameters": {
697+
"pageSize": {
698+
"description": "The maximum number of items to return per page.",
699+
"format": "int32",
700+
"location": "query",
701+
"type": "integer"
702+
},
703+
"pageToken": {
704+
"description": "The next_page_token value returned from a previous List request, if any.",
705+
"location": "query",
706+
"type": "string"
707+
},
708+
"parent": {
709+
"description": "Required. The parent resource name containing project and location, e.g.: `projects/myproject/locations/US`",
710+
"location": "path",
711+
"pattern": "^projects/[^/]+/locations/[^/]+$",
712+
"required": true,
713+
"type": "string"
714+
}
715+
},
716+
"path": "v1/{+parent}/reservationGroups",
717+
"response": {
718+
"$ref": "ListReservationGroupsResponse"
719+
},
720+
"scopes": [
721+
"https://www.googleapis.com/auth/bigquery",
722+
"https://www.googleapis.com/auth/cloud-platform"
723+
]
724+
}
725+
}
726+
},
600727
"reservations": {
601728
"methods": {
602729
"create": {
@@ -1140,7 +1267,7 @@
11401267
}
11411268
}
11421269
},
1143-
"revision": "20250611",
1270+
"revision": "20250620",
11441271
"rootUrl": "https://bigqueryreservation.googleapis.com/",
11451272
"schemas": {
11461273
"Assignment": {
@@ -1558,6 +1685,24 @@
15581685
},
15591686
"type": "object"
15601687
},
1688+
"ListReservationGroupsResponse": {
1689+
"description": "The response for ReservationService.ListReservationGroups.",
1690+
"id": "ListReservationGroupsResponse",
1691+
"properties": {
1692+
"nextPageToken": {
1693+
"description": "Token to retrieve the next page of results, or empty if there are no more results in the list.",
1694+
"type": "string"
1695+
},
1696+
"reservationGroups": {
1697+
"description": "List of reservations visible to the user.",
1698+
"items": {
1699+
"$ref": "ReservationGroup"
1700+
},
1701+
"type": "array"
1702+
}
1703+
},
1704+
"type": "object"
1705+
},
15611706
"ListReservationsResponse": {
15621707
"description": "The response for ReservationService.ListReservations.",
15631708
"id": "ListReservationsResponse",
@@ -1713,7 +1858,7 @@
17131858
"additionalProperties": {
17141859
"type": "string"
17151860
},
1716-
"description": "Optional. The labels associated with this reservation. You can use these to organize and group your reservations. You can set this property when inserting or updating a reservation.",
1861+
"description": "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.",
17171862
"type": "object"
17181863
},
17191864
"maxSlots": {
@@ -1745,6 +1890,10 @@
17451890
"description": "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.",
17461891
"readOnly": true
17471892
},
1893+
"reservationGroup": {
1894+
"description": "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}",
1895+
"type": "string"
1896+
},
17481897
"scalingMode": {
17491898
"description": "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`.",
17501899
"enum": [
@@ -1779,6 +1928,17 @@
17791928
},
17801929
"type": "object"
17811930
},
1931+
"ReservationGroup": {
1932+
"description": "A reservation group is a container for reservations.",
1933+
"id": "ReservationGroup",
1934+
"properties": {
1935+
"name": {
1936+
"description": "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.",
1937+
"type": "string"
1938+
}
1939+
},
1940+
"type": "object"
1941+
},
17821942
"SearchAllAssignmentsResponse": {
17831943
"description": "The response for ReservationService.SearchAllAssignments.",
17841944
"id": "SearchAllAssignmentsResponse",

‎src/apis/bigqueryreservation/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
"webpack": "webpack"
2929
},
3030
"dependencies": {
31-
"googleapis-common": "^8.0.0"
31+
"googleapis-common": "^8.0.2-rc.0"
3232
},
3333
"devDependencies": {
3434
"@microsoft/api-documenter": "^7.8.10",

0 commit comments

Comments
 (0)