Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Automated regeneration of bigqueryreservation v1 client #21931

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
2 changes: 2 additions & 0 deletions api_names_out.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -50705,11 +50705,13 @@
"/bigqueryreservation:v1/Reservation/ignoreIdleSlots": ignore_idle_slots
"/bigqueryreservation:v1/Reservation/labels": labels
"/bigqueryreservation:v1/Reservation/labels/label": label
"/bigqueryreservation:v1/Reservation/maxSlots": max_slots
"/bigqueryreservation:v1/Reservation/multiRegionAuxiliary": multi_region_auxiliary
"/bigqueryreservation:v1/Reservation/name": name
"/bigqueryreservation:v1/Reservation/originalPrimaryLocation": original_primary_location
"/bigqueryreservation:v1/Reservation/primaryLocation": primary_location
"/bigqueryreservation:v1/Reservation/replicationStatus": replication_status
"/bigqueryreservation:v1/Reservation/scalingMode": scaling_mode
"/bigqueryreservation:v1/Reservation/secondaryLocation": secondary_location
"/bigqueryreservation:v1/Reservation/slotCapacity": slot_capacity
"/bigqueryreservation:v1/Reservation/updateTime": update_time
Expand Down
4 changes: 2 additions & 2 deletions generated/google-apis-bigqueryreservation_v1/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
# Release history for google-apis-bigqueryreservation_v1

### v0.41.0 (2025-02-26)
### v0.41.0 (2025-03-02)

* Regenerated from discovery document revision 20250211
* Regenerated from discovery document revision 20250218

### v0.40.0 (2025-01-12)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -506,6 +506,42 @@ class Reservation
# @return [Hash<String,String>]
attr_accessor :labels

# Optional. The overall max slots for the reservation, covering slot_capacity (
# baseline), idle slots (if ignore_idle_slots is false) and scaled slots. If
# present, the reservation won't use more than the specified number of slots,
# even if there is demand and supply (from idle slots). NOTE: capping a
# reservation's idle slot usage is best effort and its usage may exceed the
# max_slots value. However, in terms of autoscale.current_slots (which accounts
# for the additional added slots), it will never exceed the max_slots - baseline.
# This field must be set together with the scaling_mode enum value, otherwise
# the request will be rejected with error code `google.rpc.Code.INVALID_ARGUMENT`
# . If the max_slots and scaling_mode are set, the autoscale or autoscale.
# max_slots field must be unset. Otherwise the request will be rejected with
# error code `google.rpc.Code.INVALID_ARGUMENT`. However, the autoscale field
# may still be in the output. The autopscale.max_slots will always show as 0 and
# the autoscaler.current_slots will represent the current slots from autoscaler
# excluding idle slots. For example, if the max_slots is 1000 and scaling_mode
# is AUTOSCALE_ONLY, then in the output, the autoscaler.max_slots will be 0 and
# the autoscaler.current_slots may be any value between 0 and 1000. If the
# max_slots is 1000, scaling_mode is ALL_SLOTS, the baseline is 100 and idle
# slots usage is 200, then in the output, the autoscaler.max_slots will be 0 and
# the autoscaler.current_slots will not be higher than 700. If the max_slots is
# 1000, scaling_mode is IDLE_SLOTS_ONLY, then in the output, the autoscaler
# field will be null. If the max_slots and scaling_mode are set, then the
# ignore_idle_slots field must be aligned with the scaling_mode enum value.(See
# details in ScalingMode comments). Otherwise the request will be rejected with
# error code `google.rpc.Code.INVALID_ARGUMENT`. Please note, the max_slots is
# for user to manage the part of slots greater than the baseline. Therefore, we
# don't allow users to set max_slots smaller or equal to the baseline as it will
# not be meaningful. If the field is present and slot_capacity>=max_slots,
# requests will be rejected with error code `google.rpc.Code.INVALID_ARGUMENT`.
# Please note that if max_slots is set to 0, we will treat it as unset.
# Customers can set max_slots to 0 and set scaling_mode to
# SCALING_MODE_UNSPECIFIED to disable the max_slots feature.
# Corresponds to the JSON property `maxSlots`
# @return [Fixnum]
attr_accessor :max_slots

# Applicable only for reservations located within one of the BigQuery multi-
# regions (US or EU). If set to true, this reservation is placed in the
# organization's secondary region which is designated for disaster recovery
Expand Down Expand Up @@ -543,6 +579,13 @@ class Reservation
# @return [Google::Apis::BigqueryreservationV1::ReplicationStatus]
attr_accessor :replication_status

# 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`.
# Corresponds to the JSON property `scalingMode`
# @return [String]
attr_accessor :scaling_mode

# 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 @@ -584,11 +627,13 @@ def update!(**args)
@edition = args[:edition] if args.key?(:edition)
@ignore_idle_slots = args[:ignore_idle_slots] if args.key?(:ignore_idle_slots)
@labels = args[:labels] if args.key?(:labels)
@max_slots = args[:max_slots] if args.key?(:max_slots)
@multi_region_auxiliary = args[:multi_region_auxiliary] if args.key?(:multi_region_auxiliary)
@name = args[:name] if args.key?(:name)
@original_primary_location = args[:original_primary_location] if args.key?(:original_primary_location)
@primary_location = args[:primary_location] if args.key?(:primary_location)
@replication_status = args[:replication_status] if args.key?(:replication_status)
@scaling_mode = args[:scaling_mode] if args.key?(:scaling_mode)
@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
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ module BigqueryreservationV1
GENERATOR_VERSION = "0.16.0"

# Revision of the discovery document this client was generated from
REVISION = "20250211"
REVISION = "20250218"
end
end
end
Original file line number Diff line number Diff line change
Expand Up @@ -259,12 +259,14 @@ class Representation < Google::Apis::Core::JsonRepresentation
property :edition, as: 'edition'
property :ignore_idle_slots, as: 'ignoreIdleSlots'
hash :labels, as: 'labels'
property :max_slots, :numeric_string => true, as: 'maxSlots'
property :multi_region_auxiliary, as: 'multiRegionAuxiliary'
property :name, as: 'name'
property :original_primary_location, as: 'originalPrimaryLocation'
property :primary_location, as: 'primaryLocation'
property :replication_status, as: 'replicationStatus', class: Google::Apis::BigqueryreservationV1::ReplicationStatus, decorator: Google::Apis::BigqueryreservationV1::ReplicationStatus::Representation

property :scaling_mode, as: 'scalingMode'
property :secondary_location, as: 'secondaryLocation'
property :slot_capacity, :numeric_string => true, as: 'slotCapacity'
property :update_time, as: 'updateTime'
Expand Down