Skip to content

Commit 44b87ab

Browse files
feat: Automated regeneration of bigqueryreservation v1 client (googleapis#23640)
Auto-created at 2025-07-06 10:44:43 +0000 using the toys pull request generator.
1 parent cd0291a commit 44b87ab

File tree

6 files changed

+250
-4
lines changed

6 files changed

+250
-4
lines changed

api_names_out.yaml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53790,6 +53790,10 @@
5379053790
"/bigqueryreservation:v1/ListOperationsResponse/nextPageToken": next_page_token
5379153791
"/bigqueryreservation:v1/ListOperationsResponse/operations": operations
5379253792
"/bigqueryreservation:v1/ListOperationsResponse/operations/operation": operation
53793+
"/bigqueryreservation:v1/ListReservationGroupsResponse": list_reservation_groups_response
53794+
"/bigqueryreservation:v1/ListReservationGroupsResponse/nextPageToken": next_page_token
53795+
"/bigqueryreservation:v1/ListReservationGroupsResponse/reservationGroups": reservation_groups
53796+
"/bigqueryreservation:v1/ListReservationGroupsResponse/reservationGroups/reservation_group": reservation_group
5379353797
"/bigqueryreservation:v1/ListReservationsResponse": list_reservations_response
5379453798
"/bigqueryreservation:v1/ListReservationsResponse/nextPageToken": next_page_token
5379553799
"/bigqueryreservation:v1/ListReservationsResponse/reservations": reservations
@@ -53835,10 +53839,13 @@
5383553839
"/bigqueryreservation:v1/Reservation/originalPrimaryLocation": original_primary_location
5383653840
"/bigqueryreservation:v1/Reservation/primaryLocation": primary_location
5383753841
"/bigqueryreservation:v1/Reservation/replicationStatus": replication_status
53842+
"/bigqueryreservation:v1/Reservation/reservationGroup": reservation_group
5383853843
"/bigqueryreservation:v1/Reservation/scalingMode": scaling_mode
5383953844
"/bigqueryreservation:v1/Reservation/secondaryLocation": secondary_location
5384053845
"/bigqueryreservation:v1/Reservation/slotCapacity": slot_capacity
5384153846
"/bigqueryreservation:v1/Reservation/updateTime": update_time
53847+
"/bigqueryreservation:v1/ReservationGroup": reservation_group
53848+
"/bigqueryreservation:v1/ReservationGroup/name": name
5384253849
"/bigqueryreservation:v1/SearchAllAssignmentsResponse": search_all_assignments_response
5384353850
"/bigqueryreservation:v1/SearchAllAssignmentsResponse/assignments": assignments
5384453851
"/bigqueryreservation:v1/SearchAllAssignmentsResponse/assignments/assignment": assignment
@@ -53900,6 +53907,17 @@
5390053907
"/bigqueryreservation:v1/bigqueryreservation.projects.locations.capacityCommitments.split/name": name
5390153908
"/bigqueryreservation:v1/bigqueryreservation.projects.locations.getBiReservation": get_project_location_bi_reservation
5390253909
"/bigqueryreservation:v1/bigqueryreservation.projects.locations.getBiReservation/name": name
53910+
"/bigqueryreservation:v1/bigqueryreservation.projects.locations.reservationGroups.create": create_project_location_reservation_group
53911+
"/bigqueryreservation:v1/bigqueryreservation.projects.locations.reservationGroups.create/parent": parent
53912+
"/bigqueryreservation:v1/bigqueryreservation.projects.locations.reservationGroups.create/reservationGroupId": reservation_group_id
53913+
"/bigqueryreservation:v1/bigqueryreservation.projects.locations.reservationGroups.delete": delete_project_location_reservation_group
53914+
"/bigqueryreservation:v1/bigqueryreservation.projects.locations.reservationGroups.delete/name": name
53915+
"/bigqueryreservation:v1/bigqueryreservation.projects.locations.reservationGroups.get": get_project_location_reservation_group
53916+
"/bigqueryreservation:v1/bigqueryreservation.projects.locations.reservationGroups.get/name": name
53917+
"/bigqueryreservation:v1/bigqueryreservation.projects.locations.reservationGroups.list": list_project_location_reservation_groups
53918+
"/bigqueryreservation:v1/bigqueryreservation.projects.locations.reservationGroups.list/pageSize": page_size
53919+
"/bigqueryreservation:v1/bigqueryreservation.projects.locations.reservationGroups.list/pageToken": page_token
53920+
"/bigqueryreservation:v1/bigqueryreservation.projects.locations.reservationGroups.list/parent": parent
5390353921
"/bigqueryreservation:v1/bigqueryreservation.projects.locations.reservations.assignments.create": create_project_location_reservation_assignment
5390453922
"/bigqueryreservation:v1/bigqueryreservation.projects.locations.reservations.assignments.create/assignmentId": assignment_id
5390553923
"/bigqueryreservation:v1/bigqueryreservation.projects.locations.reservations.assignments.create/parent": parent

generated/google-apis-bigqueryreservation_v1/CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# Release history for google-apis-bigqueryreservation_v1
22

3+
### v0.47.0 (2025-07-06)
4+
5+
* Regenerated from discovery document revision 20250620
6+
37
### v0.46.0 (2025-06-29)
48

59
* Regenerated from discovery document revision 20250611

generated/google-apis-bigqueryreservation_v1/lib/google/apis/bigqueryreservation_v1/classes.rb

Lines changed: 59 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -568,6 +568,32 @@ def update!(**args)
568568
end
569569
end
570570

571+
# The response for ReservationService.ListReservationGroups.
572+
class ListReservationGroupsResponse
573+
include Google::Apis::Core::Hashable
574+
575+
# Token to retrieve the next page of results, or empty if there are no more
576+
# results in the list.
577+
# Corresponds to the JSON property `nextPageToken`
578+
# @return [String]
579+
attr_accessor :next_page_token
580+
581+
# List of reservations visible to the user.
582+
# Corresponds to the JSON property `reservationGroups`
583+
# @return [Array<Google::Apis::BigqueryreservationV1::ReservationGroup>]
584+
attr_accessor :reservation_groups
585+
586+
def initialize(**args)
587+
update!(**args)
588+
end
589+
590+
# Update properties of this object
591+
def update!(**args)
592+
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
593+
@reservation_groups = args[:reservation_groups] if args.key?(:reservation_groups)
594+
end
595+
end
596+
571597
# The response for ReservationService.ListReservations.
572598
class ListReservationsResponse
573599
include Google::Apis::Core::Hashable
@@ -838,8 +864,8 @@ class Reservation
838864
alias_method :ignore_idle_slots?, :ignore_idle_slots
839865

840866
# Optional. The labels associated with this reservation. You can use these to
841-
# organize and group your reservations. You can set this property when inserting
842-
# or updating a reservation.
867+
# organize and group your reservations. You can set this property when you
868+
# create or update a reservation.
843869
# Corresponds to the JSON property `labels`
844870
# @return [Hash<String,String>]
845871
attr_accessor :labels
@@ -917,6 +943,14 @@ class Reservation
917943
# @return [Google::Apis::BigqueryreservationV1::ReplicationStatus]
918944
attr_accessor :replication_status
919945

946+
# Optional. The reservation group that this reservation belongs to. You can set
947+
# this property when you create or update a reservation. Reservations do not
948+
# need to belong to a reservation group. Format: projects/`project`/locations/`
949+
# location`/reservationGroups/`reservation_group` or just `reservation_group`
950+
# Corresponds to the JSON property `reservationGroup`
951+
# @return [String]
952+
attr_accessor :reservation_group
953+
920954
# Optional. The scaling mode for the reservation. If the field is present but
921955
# max_slots is not present, requests will be rejected with error code `google.
922956
# rpc.Code.INVALID_ARGUMENT`.
@@ -971,13 +1005,36 @@ def update!(**args)
9711005
@original_primary_location = args[:original_primary_location] if args.key?(:original_primary_location)
9721006
@primary_location = args[:primary_location] if args.key?(:primary_location)
9731007
@replication_status = args[:replication_status] if args.key?(:replication_status)
1008+
@reservation_group = args[:reservation_group] if args.key?(:reservation_group)
9741009
@scaling_mode = args[:scaling_mode] if args.key?(:scaling_mode)
9751010
@secondary_location = args[:secondary_location] if args.key?(:secondary_location)
9761011
@slot_capacity = args[:slot_capacity] if args.key?(:slot_capacity)
9771012
@update_time = args[:update_time] if args.key?(:update_time)
9781013
end
9791014
end
9801015

1016+
# A reservation group is a container for reservations.
1017+
class ReservationGroup
1018+
include Google::Apis::Core::Hashable
1019+
1020+
# Identifier. The resource name of the reservation group, e.g., `projects/*/
1021+
# locations/*/reservationGroups/team1-prod`. The reservation_group_id must only
1022+
# contain lower case alphanumeric characters or dashes. It must start with a
1023+
# letter and must not end with a dash. Its maximum length is 64 characters.
1024+
# Corresponds to the JSON property `name`
1025+
# @return [String]
1026+
attr_accessor :name
1027+
1028+
def initialize(**args)
1029+
update!(**args)
1030+
end
1031+
1032+
# Update properties of this object
1033+
def update!(**args)
1034+
@name = args[:name] if args.key?(:name)
1035+
end
1036+
end
1037+
9811038
# The response for ReservationService.SearchAllAssignments.
9821039
class SearchAllAssignmentsResponse
9831040
include Google::Apis::Core::Hashable

generated/google-apis-bigqueryreservation_v1/lib/google/apis/bigqueryreservation_v1/gem_version.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,13 +16,13 @@ module Google
1616
module Apis
1717
module BigqueryreservationV1
1818
# Version of the google-apis-bigqueryreservation_v1 gem
19-
GEM_VERSION = "0.46.0"
19+
GEM_VERSION = "0.47.0"
2020

2121
# Version of the code generator used to generate this client
2222
GENERATOR_VERSION = "0.18.0"
2323

2424
# Revision of the discovery document this client was generated from
25-
REVISION = "20250611"
25+
REVISION = "20250620"
2626
end
2727
end
2828
end

generated/google-apis-bigqueryreservation_v1/lib/google/apis/bigqueryreservation_v1/representations.rb

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,12 @@ class Representation < Google::Apis::Core::JsonRepresentation; end
9494
include Google::Apis::Core::JsonObjectSupport
9595
end
9696

97+
class ListReservationGroupsResponse
98+
class Representation < Google::Apis::Core::JsonRepresentation; end
99+
100+
include Google::Apis::Core::JsonObjectSupport
101+
end
102+
97103
class ListReservationsResponse
98104
class Representation < Google::Apis::Core::JsonRepresentation; end
99105

@@ -130,6 +136,12 @@ class Representation < Google::Apis::Core::JsonRepresentation; end
130136
include Google::Apis::Core::JsonObjectSupport
131137
end
132138

139+
class ReservationGroup
140+
class Representation < Google::Apis::Core::JsonRepresentation; end
141+
142+
include Google::Apis::Core::JsonObjectSupport
143+
end
144+
133145
class SearchAllAssignmentsResponse
134146
class Representation < Google::Apis::Core::JsonRepresentation; end
135147

@@ -300,6 +312,15 @@ class Representation < Google::Apis::Core::JsonRepresentation
300312
end
301313
end
302314

315+
class ListReservationGroupsResponse
316+
# @private
317+
class Representation < Google::Apis::Core::JsonRepresentation
318+
property :next_page_token, as: 'nextPageToken'
319+
collection :reservation_groups, as: 'reservationGroups', class: Google::Apis::BigqueryreservationV1::ReservationGroup, decorator: Google::Apis::BigqueryreservationV1::ReservationGroup::Representation
320+
321+
end
322+
end
323+
303324
class ListReservationsResponse
304325
# @private
305326
class Representation < Google::Apis::Core::JsonRepresentation
@@ -365,13 +386,21 @@ class Representation < Google::Apis::Core::JsonRepresentation
365386
property :primary_location, as: 'primaryLocation'
366387
property :replication_status, as: 'replicationStatus', class: Google::Apis::BigqueryreservationV1::ReplicationStatus, decorator: Google::Apis::BigqueryreservationV1::ReplicationStatus::Representation
367388

389+
property :reservation_group, as: 'reservationGroup'
368390
property :scaling_mode, as: 'scalingMode'
369391
property :secondary_location, as: 'secondaryLocation'
370392
property :slot_capacity, :numeric_string => true, as: 'slotCapacity'
371393
property :update_time, as: 'updateTime'
372394
end
373395
end
374396

397+
class ReservationGroup
398+
# @private
399+
class Representation < Google::Apis::Core::JsonRepresentation
400+
property :name, as: 'name'
401+
end
402+
end
403+
375404
class SearchAllAssignmentsResponse
376405
# @private
377406
class Representation < Google::Apis::Core::JsonRepresentation

0 commit comments

Comments
 (0)