Skip to content

Commit 9db9c76

Browse files
feat: Automated regeneration of bigqueryreservation v1 client (googleapis#24761)
Auto-created at 2025-10-26 11:01:46 +0000 using the toys pull request generator.
1 parent 884b124 commit 9db9c76

File tree

5 files changed

+70
-2
lines changed

5 files changed

+70
-2
lines changed

api_names_out.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56430,6 +56430,7 @@
5643056430
"/bigqueryreservation:v1/Assignment/enableGeminiInBigquery": enable_gemini_in_bigquery
5643156431
"/bigqueryreservation:v1/Assignment/jobType": job_type
5643256432
"/bigqueryreservation:v1/Assignment/name": name
56433+
"/bigqueryreservation:v1/Assignment/schedulingPolicy": scheduling_policy
5643356434
"/bigqueryreservation:v1/Assignment/state": state
5643456435
"/bigqueryreservation:v1/AuditConfig": audit_config
5643556436
"/bigqueryreservation:v1/AuditConfig/auditLogConfigs": audit_log_configs
@@ -56538,11 +56539,15 @@
5653856539
"/bigqueryreservation:v1/Reservation/replicationStatus": replication_status
5653956540
"/bigqueryreservation:v1/Reservation/reservationGroup": reservation_group
5654056541
"/bigqueryreservation:v1/Reservation/scalingMode": scaling_mode
56542+
"/bigqueryreservation:v1/Reservation/schedulingPolicy": scheduling_policy
5654156543
"/bigqueryreservation:v1/Reservation/secondaryLocation": secondary_location
5654256544
"/bigqueryreservation:v1/Reservation/slotCapacity": slot_capacity
5654356545
"/bigqueryreservation:v1/Reservation/updateTime": update_time
5654456546
"/bigqueryreservation:v1/ReservationGroup": reservation_group
5654556547
"/bigqueryreservation:v1/ReservationGroup/name": name
56548+
"/bigqueryreservation:v1/SchedulingPolicy": scheduling_policy
56549+
"/bigqueryreservation:v1/SchedulingPolicy/concurrency": concurrency
56550+
"/bigqueryreservation:v1/SchedulingPolicy/maxSlots": max_slots
5654656551
"/bigqueryreservation:v1/SearchAllAssignmentsResponse": search_all_assignments_response
5654756552
"/bigqueryreservation:v1/SearchAllAssignmentsResponse/assignments": assignments
5654856553
"/bigqueryreservation:v1/SearchAllAssignmentsResponse/assignments/assignment": assignment

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.49.0 (2025-10-26)
4+
5+
* Regenerated from discovery document revision 20251009
6+
37
### v0.48.0 (2025-09-14)
48

59
* Regenerated from discovery document revision 20250907

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

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,11 @@ class Assignment
5858
# @return [String]
5959
attr_accessor :name
6060

61+
# The scheduling policy controls how a reservation's resources are distributed.
62+
# Corresponds to the JSON property `schedulingPolicy`
63+
# @return [Google::Apis::BigqueryreservationV1::SchedulingPolicy]
64+
attr_accessor :scheduling_policy
65+
6166
# Output only. State of the assignment.
6267
# Corresponds to the JSON property `state`
6368
# @return [String]
@@ -73,6 +78,7 @@ def update!(**args)
7378
@enable_gemini_in_bigquery = args[:enable_gemini_in_bigquery] if args.key?(:enable_gemini_in_bigquery)
7479
@job_type = args[:job_type] if args.key?(:job_type)
7580
@name = args[:name] if args.key?(:name)
81+
@scheduling_policy = args[:scheduling_policy] if args.key?(:scheduling_policy)
7682
@state = args[:state] if args.key?(:state)
7783
end
7884
end
@@ -960,6 +966,11 @@ class Reservation
960966
# @return [String]
961967
attr_accessor :scaling_mode
962968

969+
# The scheduling policy controls how a reservation's resources are distributed.
970+
# Corresponds to the JSON property `schedulingPolicy`
971+
# @return [Google::Apis::BigqueryreservationV1::SchedulingPolicy]
972+
attr_accessor :scheduling_policy
973+
963974
# Optional. The current location of the reservation's secondary replica. This
964975
# field is only set for reservations using the managed disaster recovery feature.
965976
# Users can set this in create reservation calls to create a failover
@@ -1009,6 +1020,7 @@ def update!(**args)
10091020
@replication_status = args[:replication_status] if args.key?(:replication_status)
10101021
@reservation_group = args[:reservation_group] if args.key?(:reservation_group)
10111022
@scaling_mode = args[:scaling_mode] if args.key?(:scaling_mode)
1023+
@scheduling_policy = args[:scheduling_policy] if args.key?(:scheduling_policy)
10121024
@secondary_location = args[:secondary_location] if args.key?(:secondary_location)
10131025
@slot_capacity = args[:slot_capacity] if args.key?(:slot_capacity)
10141026
@update_time = args[:update_time] if args.key?(:update_time)
@@ -1037,6 +1049,35 @@ def update!(**args)
10371049
end
10381050
end
10391051

1052+
# The scheduling policy controls how a reservation's resources are distributed.
1053+
class SchedulingPolicy
1054+
include Google::Apis::Core::Hashable
1055+
1056+
# Optional. If present and > 0, the reservation will attempt to limit the
1057+
# concurrency of jobs running for any particular project within it to the given
1058+
# value. This feature is not yet generally available.
1059+
# Corresponds to the JSON property `concurrency`
1060+
# @return [Fixnum]
1061+
attr_accessor :concurrency
1062+
1063+
# Optional. If present and > 0, the reservation will attempt to limit the slot
1064+
# consumption of queries running for any particular project within it to the
1065+
# given value. This feature is not yet generally available.
1066+
# Corresponds to the JSON property `maxSlots`
1067+
# @return [Fixnum]
1068+
attr_accessor :max_slots
1069+
1070+
def initialize(**args)
1071+
update!(**args)
1072+
end
1073+
1074+
# Update properties of this object
1075+
def update!(**args)
1076+
@concurrency = args[:concurrency] if args.key?(:concurrency)
1077+
@max_slots = args[:max_slots] if args.key?(:max_slots)
1078+
end
1079+
end
1080+
10401081
# The response for ReservationService.SearchAllAssignments.
10411082
class SearchAllAssignmentsResponse
10421083
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.48.0"
19+
GEM_VERSION = "0.49.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 = "20250907"
25+
REVISION = "20251009"
2626
end
2727
end
2828
end

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

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -142,6 +142,12 @@ class Representation < Google::Apis::Core::JsonRepresentation; end
142142
include Google::Apis::Core::JsonObjectSupport
143143
end
144144

145+
class SchedulingPolicy
146+
class Representation < Google::Apis::Core::JsonRepresentation; end
147+
148+
include Google::Apis::Core::JsonObjectSupport
149+
end
150+
145151
class SearchAllAssignmentsResponse
146152
class Representation < Google::Apis::Core::JsonRepresentation; end
147153

@@ -203,6 +209,8 @@ class Representation < Google::Apis::Core::JsonRepresentation
203209
property :enable_gemini_in_bigquery, as: 'enableGeminiInBigquery'
204210
property :job_type, as: 'jobType'
205211
property :name, as: 'name'
212+
property :scheduling_policy, as: 'schedulingPolicy', class: Google::Apis::BigqueryreservationV1::SchedulingPolicy, decorator: Google::Apis::BigqueryreservationV1::SchedulingPolicy::Representation
213+
206214
property :state, as: 'state'
207215
end
208216
end
@@ -388,6 +396,8 @@ class Representation < Google::Apis::Core::JsonRepresentation
388396

389397
property :reservation_group, as: 'reservationGroup'
390398
property :scaling_mode, as: 'scalingMode'
399+
property :scheduling_policy, as: 'schedulingPolicy', class: Google::Apis::BigqueryreservationV1::SchedulingPolicy, decorator: Google::Apis::BigqueryreservationV1::SchedulingPolicy::Representation
400+
391401
property :secondary_location, as: 'secondaryLocation'
392402
property :slot_capacity, :numeric_string => true, as: 'slotCapacity'
393403
property :update_time, as: 'updateTime'
@@ -401,6 +411,14 @@ class Representation < Google::Apis::Core::JsonRepresentation
401411
end
402412
end
403413

414+
class SchedulingPolicy
415+
# @private
416+
class Representation < Google::Apis::Core::JsonRepresentation
417+
property :concurrency, :numeric_string => true, as: 'concurrency'
418+
property :max_slots, :numeric_string => true, as: 'maxSlots'
419+
end
420+
end
421+
404422
class SearchAllAssignmentsResponse
405423
# @private
406424
class Representation < Google::Apis::Core::JsonRepresentation

0 commit comments

Comments
 (0)