Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions api_names_out.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -56243,6 +56243,7 @@
"/bigqueryreservation:v1/Assignment/enableGeminiInBigquery": enable_gemini_in_bigquery
"/bigqueryreservation:v1/Assignment/jobType": job_type
"/bigqueryreservation:v1/Assignment/name": name
"/bigqueryreservation:v1/Assignment/schedulingPolicy": scheduling_policy
"/bigqueryreservation:v1/Assignment/state": state
"/bigqueryreservation:v1/AuditConfig": audit_config
"/bigqueryreservation:v1/AuditConfig/auditLogConfigs": audit_log_configs
Expand Down Expand Up @@ -56351,11 +56352,15 @@
"/bigqueryreservation:v1/Reservation/replicationStatus": replication_status
"/bigqueryreservation:v1/Reservation/reservationGroup": reservation_group
"/bigqueryreservation:v1/Reservation/scalingMode": scaling_mode
"/bigqueryreservation:v1/Reservation/schedulingPolicy": scheduling_policy
"/bigqueryreservation:v1/Reservation/secondaryLocation": secondary_location
"/bigqueryreservation:v1/Reservation/slotCapacity": slot_capacity
"/bigqueryreservation:v1/Reservation/updateTime": update_time
"/bigqueryreservation:v1/ReservationGroup": reservation_group
"/bigqueryreservation:v1/ReservationGroup/name": name
"/bigqueryreservation:v1/SchedulingPolicy": scheduling_policy
"/bigqueryreservation:v1/SchedulingPolicy/concurrency": concurrency
"/bigqueryreservation:v1/SchedulingPolicy/maxSlots": max_slots
"/bigqueryreservation:v1/SearchAllAssignmentsResponse": search_all_assignments_response
"/bigqueryreservation:v1/SearchAllAssignmentsResponse/assignments": assignments
"/bigqueryreservation:v1/SearchAllAssignmentsResponse/assignments/assignment": assignment
Expand Down
4 changes: 4 additions & 0 deletions generated/google-apis-bigqueryreservation_v1/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Release history for google-apis-bigqueryreservation_v1

### v0.49.0 (2025-10-26)

* Regenerated from discovery document revision 20251009

### v0.48.0 (2025-09-14)

* Regenerated from discovery document revision 20250907
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,11 @@ class Assignment
# @return [String]
attr_accessor :name

# The scheduling policy controls how a reservation's resources are distributed.
# Corresponds to the JSON property `schedulingPolicy`
# @return [Google::Apis::BigqueryreservationV1::SchedulingPolicy]
attr_accessor :scheduling_policy

# Output only. State of the assignment.
# Corresponds to the JSON property `state`
# @return [String]
Expand All @@ -73,6 +78,7 @@ def update!(**args)
@enable_gemini_in_bigquery = args[:enable_gemini_in_bigquery] if args.key?(:enable_gemini_in_bigquery)
@job_type = args[:job_type] if args.key?(:job_type)
@name = args[:name] if args.key?(:name)
@scheduling_policy = args[:scheduling_policy] if args.key?(:scheduling_policy)
@state = args[:state] if args.key?(:state)
end
end
Expand Down Expand Up @@ -960,6 +966,11 @@ class Reservation
# @return [String]
attr_accessor :scaling_mode

# The scheduling policy controls how a reservation's resources are distributed.
# Corresponds to the JSON property `schedulingPolicy`
# @return [Google::Apis::BigqueryreservationV1::SchedulingPolicy]
attr_accessor :scheduling_policy

# Optional. The current location of the reservation's secondary replica. This
# field is only set for reservations using the managed disaster recovery feature.
# Users can set this in create reservation calls to create a failover
Expand Down Expand Up @@ -1009,6 +1020,7 @@ def update!(**args)
@replication_status = args[:replication_status] if args.key?(:replication_status)
@reservation_group = args[:reservation_group] if args.key?(:reservation_group)
@scaling_mode = args[:scaling_mode] if args.key?(:scaling_mode)
@scheduling_policy = args[:scheduling_policy] if args.key?(:scheduling_policy)
@secondary_location = args[:secondary_location] if args.key?(:secondary_location)
@slot_capacity = args[:slot_capacity] if args.key?(:slot_capacity)
@update_time = args[:update_time] if args.key?(:update_time)
Expand Down Expand Up @@ -1037,6 +1049,35 @@ def update!(**args)
end
end

# The scheduling policy controls how a reservation's resources are distributed.
class SchedulingPolicy
include Google::Apis::Core::Hashable

# Optional. If present and > 0, the reservation will attempt to limit the
# concurrency of jobs running for any particular project within it to the given
# value. This feature is not yet generally available.
# Corresponds to the JSON property `concurrency`
# @return [Fixnum]
attr_accessor :concurrency

# Optional. If present and > 0, the reservation will attempt to limit the slot
# consumption of queries running for any particular project within it to the
# given value. This feature is not yet generally available.
# Corresponds to the JSON property `maxSlots`
# @return [Fixnum]
attr_accessor :max_slots

def initialize(**args)
update!(**args)
end

# Update properties of this object
def update!(**args)
@concurrency = args[:concurrency] if args.key?(:concurrency)
@max_slots = args[:max_slots] if args.key?(:max_slots)
end
end

# The response for ReservationService.SearchAllAssignments.
class SearchAllAssignmentsResponse
include Google::Apis::Core::Hashable
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,13 @@ module Google
module Apis
module BigqueryreservationV1
# Version of the google-apis-bigqueryreservation_v1 gem
GEM_VERSION = "0.48.0"
GEM_VERSION = "0.49.0"

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

# Revision of the discovery document this client was generated from
REVISION = "20250907"
REVISION = "20251009"
end
end
end
Original file line number Diff line number Diff line change
Expand Up @@ -142,6 +142,12 @@ class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end

class SchedulingPolicy
class Representation < Google::Apis::Core::JsonRepresentation; end

include Google::Apis::Core::JsonObjectSupport
end

class SearchAllAssignmentsResponse
class Representation < Google::Apis::Core::JsonRepresentation; end

Expand Down Expand Up @@ -203,6 +209,8 @@ class Representation < Google::Apis::Core::JsonRepresentation
property :enable_gemini_in_bigquery, as: 'enableGeminiInBigquery'
property :job_type, as: 'jobType'
property :name, as: 'name'
property :scheduling_policy, as: 'schedulingPolicy', class: Google::Apis::BigqueryreservationV1::SchedulingPolicy, decorator: Google::Apis::BigqueryreservationV1::SchedulingPolicy::Representation

property :state, as: 'state'
end
end
Expand Down Expand Up @@ -388,6 +396,8 @@ class Representation < Google::Apis::Core::JsonRepresentation

property :reservation_group, as: 'reservationGroup'
property :scaling_mode, as: 'scalingMode'
property :scheduling_policy, as: 'schedulingPolicy', class: Google::Apis::BigqueryreservationV1::SchedulingPolicy, decorator: Google::Apis::BigqueryreservationV1::SchedulingPolicy::Representation

property :secondary_location, as: 'secondaryLocation'
property :slot_capacity, :numeric_string => true, as: 'slotCapacity'
property :update_time, as: 'updateTime'
Expand All @@ -401,6 +411,14 @@ class Representation < Google::Apis::Core::JsonRepresentation
end
end

class SchedulingPolicy
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :concurrency, :numeric_string => true, as: 'concurrency'
property :max_slots, :numeric_string => true, as: 'maxSlots'
end
end

class SearchAllAssignmentsResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
Expand Down