Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 57fd285

Browse files
committedMar 4, 2025
feat(bigqueryreservation): update the api
#### bigqueryreservation:v1 The following keys were added: - schemas.Reservation.properties.maxSlots (Total Keys: 2) - schemas.Reservation.properties.scalingMode.type (Total Keys: 1)
1 parent 1e89fd5 commit 57fd285

File tree

2 files changed

+36
-1
lines changed

2 files changed

+36
-1
lines changed
 

‎docs/dyn/bigqueryreservation_v1.projects.locations.reservations.html

+14
Original file line numberDiff line numberDiff line change
@@ -130,6 +130,7 @@ <h3>Method Details</h3>
130130
&quot;labels&quot;: { # 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.
131131
&quot;a_key&quot;: &quot;A String&quot;,
132132
},
133+
&quot;maxSlots&quot;: &quot;A String&quot;, # 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&#x27;t use more than the specified number of slots, even if there is demand and supply (from idle slots). NOTE: capping a reservation&#x27;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&#x27;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&gt;=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.
133134
&quot;multiRegionAuxiliary&quot;: True or False, # 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&#x27;s secondary region which is designated for disaster recovery purposes. If false, this reservation is placed in the organization&#x27;s default region. NOTE: this is a preview feature. Project must be allow-listed in order to set this field.
134135
&quot;name&quot;: &quot;A String&quot;, # The resource name of the reservation, e.g., `projects/*/locations/*/reservations/team1-prod`. The reservation_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.
135136
&quot;originalPrimaryLocation&quot;: &quot;A String&quot;, # Output only. The location where the reservation was originally created. This is set only during the failover reservation&#x27;s creation. All billing charges for the failover reservation will be applied to this location.
@@ -148,6 +149,7 @@ <h3>Method Details</h3>
148149
&quot;lastReplicationTime&quot;: &quot;A String&quot;, # Output only. A timestamp corresponding to the last change on the primary that was successfully replicated to the secondary.
149150
&quot;softFailoverStartTime&quot;: &quot;A String&quot;, # Output only. The time at which a soft failover for the reservation and its associated datasets was initiated. After this field is set, all subsequent changes to the reservation will be rejected unless a hard failover overrides this operation. This field will be cleared once the failover is complete.
150151
},
152+
&quot;scalingMode&quot;: &quot;A String&quot;, # 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`.
151153
&quot;secondaryLocation&quot;: &quot;A String&quot;, # Optional. The current location of the reservation&#x27;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 reservation or in update reservation calls to convert a non-failover reservation to a failover reservation(or vice versa).
152154
&quot;slotCapacity&quot;: &quot;A String&quot;, # Baseline slots available to this reservation. A slot is a unit of computational power in BigQuery, and serves as the unit of parallelism. Queries using this reservation might use more slots during runtime if ignore_idle_slots is set to false, or autoscaling is enabled. The total slot_capacity of the reservation and its siblings may exceed the total slot_count of capacity commitments. In that case, the exceeding slots will be charged with the autoscale SKU. You can increase the number of baseline slots in a reservation every few minutes. If you want to decrease your baseline slots, you are limited to once an hour if you have recently changed your baseline slot capacity and your baseline slots exceed your committed slots. Otherwise, you can decrease your baseline slots every few minutes.
153155
&quot;updateTime&quot;: &quot;A String&quot;, # Output only. Last update time of the reservation.
@@ -174,6 +176,7 @@ <h3>Method Details</h3>
174176
&quot;labels&quot;: { # 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.
175177
&quot;a_key&quot;: &quot;A String&quot;,
176178
},
179+
&quot;maxSlots&quot;: &quot;A String&quot;, # 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&#x27;t use more than the specified number of slots, even if there is demand and supply (from idle slots). NOTE: capping a reservation&#x27;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&#x27;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&gt;=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.
177180
&quot;multiRegionAuxiliary&quot;: True or False, # 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&#x27;s secondary region which is designated for disaster recovery purposes. If false, this reservation is placed in the organization&#x27;s default region. NOTE: this is a preview feature. Project must be allow-listed in order to set this field.
178181
&quot;name&quot;: &quot;A String&quot;, # The resource name of the reservation, e.g., `projects/*/locations/*/reservations/team1-prod`. The reservation_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.
179182
&quot;originalPrimaryLocation&quot;: &quot;A String&quot;, # Output only. The location where the reservation was originally created. This is set only during the failover reservation&#x27;s creation. All billing charges for the failover reservation will be applied to this location.
@@ -192,6 +195,7 @@ <h3>Method Details</h3>
192195
&quot;lastReplicationTime&quot;: &quot;A String&quot;, # Output only. A timestamp corresponding to the last change on the primary that was successfully replicated to the secondary.
193196
&quot;softFailoverStartTime&quot;: &quot;A String&quot;, # Output only. The time at which a soft failover for the reservation and its associated datasets was initiated. After this field is set, all subsequent changes to the reservation will be rejected unless a hard failover overrides this operation. This field will be cleared once the failover is complete.
194197
},
198+
&quot;scalingMode&quot;: &quot;A String&quot;, # 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`.
195199
&quot;secondaryLocation&quot;: &quot;A String&quot;, # Optional. The current location of the reservation&#x27;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 reservation or in update reservation calls to convert a non-failover reservation to a failover reservation(or vice versa).
196200
&quot;slotCapacity&quot;: &quot;A String&quot;, # Baseline slots available to this reservation. A slot is a unit of computational power in BigQuery, and serves as the unit of parallelism. Queries using this reservation might use more slots during runtime if ignore_idle_slots is set to false, or autoscaling is enabled. The total slot_capacity of the reservation and its siblings may exceed the total slot_count of capacity commitments. In that case, the exceeding slots will be charged with the autoscale SKU. You can increase the number of baseline slots in a reservation every few minutes. If you want to decrease your baseline slots, you are limited to once an hour if you have recently changed your baseline slot capacity and your baseline slots exceed your committed slots. Otherwise, you can decrease your baseline slots every few minutes.
197201
&quot;updateTime&quot;: &quot;A String&quot;, # Output only. Last update time of the reservation.
@@ -248,6 +252,7 @@ <h3>Method Details</h3>
248252
&quot;labels&quot;: { # 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.
249253
&quot;a_key&quot;: &quot;A String&quot;,
250254
},
255+
&quot;maxSlots&quot;: &quot;A String&quot;, # 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&#x27;t use more than the specified number of slots, even if there is demand and supply (from idle slots). NOTE: capping a reservation&#x27;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&#x27;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&gt;=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.
251256
&quot;multiRegionAuxiliary&quot;: True or False, # 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&#x27;s secondary region which is designated for disaster recovery purposes. If false, this reservation is placed in the organization&#x27;s default region. NOTE: this is a preview feature. Project must be allow-listed in order to set this field.
252257
&quot;name&quot;: &quot;A String&quot;, # The resource name of the reservation, e.g., `projects/*/locations/*/reservations/team1-prod`. The reservation_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.
253258
&quot;originalPrimaryLocation&quot;: &quot;A String&quot;, # Output only. The location where the reservation was originally created. This is set only during the failover reservation&#x27;s creation. All billing charges for the failover reservation will be applied to this location.
@@ -266,6 +271,7 @@ <h3>Method Details</h3>
266271
&quot;lastReplicationTime&quot;: &quot;A String&quot;, # Output only. A timestamp corresponding to the last change on the primary that was successfully replicated to the secondary.
267272
&quot;softFailoverStartTime&quot;: &quot;A String&quot;, # Output only. The time at which a soft failover for the reservation and its associated datasets was initiated. After this field is set, all subsequent changes to the reservation will be rejected unless a hard failover overrides this operation. This field will be cleared once the failover is complete.
268273
},
274+
&quot;scalingMode&quot;: &quot;A String&quot;, # 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`.
269275
&quot;secondaryLocation&quot;: &quot;A String&quot;, # Optional. The current location of the reservation&#x27;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 reservation or in update reservation calls to convert a non-failover reservation to a failover reservation(or vice versa).
270276
&quot;slotCapacity&quot;: &quot;A String&quot;, # Baseline slots available to this reservation. A slot is a unit of computational power in BigQuery, and serves as the unit of parallelism. Queries using this reservation might use more slots during runtime if ignore_idle_slots is set to false, or autoscaling is enabled. The total slot_capacity of the reservation and its siblings may exceed the total slot_count of capacity commitments. In that case, the exceeding slots will be charged with the autoscale SKU. You can increase the number of baseline slots in a reservation every few minutes. If you want to decrease your baseline slots, you are limited to once an hour if you have recently changed your baseline slot capacity and your baseline slots exceed your committed slots. Otherwise, you can decrease your baseline slots every few minutes.
271277
&quot;updateTime&quot;: &quot;A String&quot;, # Output only. Last update time of the reservation.
@@ -298,6 +304,7 @@ <h3>Method Details</h3>
298304
&quot;labels&quot;: { # 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.
299305
&quot;a_key&quot;: &quot;A String&quot;,
300306
},
307+
&quot;maxSlots&quot;: &quot;A String&quot;, # 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&#x27;t use more than the specified number of slots, even if there is demand and supply (from idle slots). NOTE: capping a reservation&#x27;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&#x27;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&gt;=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.
301308
&quot;multiRegionAuxiliary&quot;: True or False, # 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&#x27;s secondary region which is designated for disaster recovery purposes. If false, this reservation is placed in the organization&#x27;s default region. NOTE: this is a preview feature. Project must be allow-listed in order to set this field.
302309
&quot;name&quot;: &quot;A String&quot;, # The resource name of the reservation, e.g., `projects/*/locations/*/reservations/team1-prod`. The reservation_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.
303310
&quot;originalPrimaryLocation&quot;: &quot;A String&quot;, # Output only. The location where the reservation was originally created. This is set only during the failover reservation&#x27;s creation. All billing charges for the failover reservation will be applied to this location.
@@ -316,6 +323,7 @@ <h3>Method Details</h3>
316323
&quot;lastReplicationTime&quot;: &quot;A String&quot;, # Output only. A timestamp corresponding to the last change on the primary that was successfully replicated to the secondary.
317324
&quot;softFailoverStartTime&quot;: &quot;A String&quot;, # Output only. The time at which a soft failover for the reservation and its associated datasets was initiated. After this field is set, all subsequent changes to the reservation will be rejected unless a hard failover overrides this operation. This field will be cleared once the failover is complete.
318325
},
326+
&quot;scalingMode&quot;: &quot;A String&quot;, # 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`.
319327
&quot;secondaryLocation&quot;: &quot;A String&quot;, # Optional. The current location of the reservation&#x27;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 reservation or in update reservation calls to convert a non-failover reservation to a failover reservation(or vice versa).
320328
&quot;slotCapacity&quot;: &quot;A String&quot;, # Baseline slots available to this reservation. A slot is a unit of computational power in BigQuery, and serves as the unit of parallelism. Queries using this reservation might use more slots during runtime if ignore_idle_slots is set to false, or autoscaling is enabled. The total slot_capacity of the reservation and its siblings may exceed the total slot_count of capacity commitments. In that case, the exceeding slots will be charged with the autoscale SKU. You can increase the number of baseline slots in a reservation every few minutes. If you want to decrease your baseline slots, you are limited to once an hour if you have recently changed your baseline slot capacity and your baseline slots exceed your committed slots. Otherwise, you can decrease your baseline slots every few minutes.
321329
&quot;updateTime&quot;: &quot;A String&quot;, # Output only. Last update time of the reservation.
@@ -353,6 +361,7 @@ <h3>Method Details</h3>
353361
&quot;labels&quot;: { # 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.
354362
&quot;a_key&quot;: &quot;A String&quot;,
355363
},
364+
&quot;maxSlots&quot;: &quot;A String&quot;, # 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&#x27;t use more than the specified number of slots, even if there is demand and supply (from idle slots). NOTE: capping a reservation&#x27;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&#x27;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&gt;=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.
356365
&quot;multiRegionAuxiliary&quot;: True or False, # 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&#x27;s secondary region which is designated for disaster recovery purposes. If false, this reservation is placed in the organization&#x27;s default region. NOTE: this is a preview feature. Project must be allow-listed in order to set this field.
357366
&quot;name&quot;: &quot;A String&quot;, # The resource name of the reservation, e.g., `projects/*/locations/*/reservations/team1-prod`. The reservation_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.
358367
&quot;originalPrimaryLocation&quot;: &quot;A String&quot;, # Output only. The location where the reservation was originally created. This is set only during the failover reservation&#x27;s creation. All billing charges for the failover reservation will be applied to this location.
@@ -371,6 +380,7 @@ <h3>Method Details</h3>
371380
&quot;lastReplicationTime&quot;: &quot;A String&quot;, # Output only. A timestamp corresponding to the last change on the primary that was successfully replicated to the secondary.
372381
&quot;softFailoverStartTime&quot;: &quot;A String&quot;, # Output only. The time at which a soft failover for the reservation and its associated datasets was initiated. After this field is set, all subsequent changes to the reservation will be rejected unless a hard failover overrides this operation. This field will be cleared once the failover is complete.
373382
},
383+
&quot;scalingMode&quot;: &quot;A String&quot;, # 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`.
374384
&quot;secondaryLocation&quot;: &quot;A String&quot;, # Optional. The current location of the reservation&#x27;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 reservation or in update reservation calls to convert a non-failover reservation to a failover reservation(or vice versa).
375385
&quot;slotCapacity&quot;: &quot;A String&quot;, # Baseline slots available to this reservation. A slot is a unit of computational power in BigQuery, and serves as the unit of parallelism. Queries using this reservation might use more slots during runtime if ignore_idle_slots is set to false, or autoscaling is enabled. The total slot_capacity of the reservation and its siblings may exceed the total slot_count of capacity commitments. In that case, the exceeding slots will be charged with the autoscale SKU. You can increase the number of baseline slots in a reservation every few minutes. If you want to decrease your baseline slots, you are limited to once an hour if you have recently changed your baseline slot capacity and your baseline slots exceed your committed slots. Otherwise, you can decrease your baseline slots every few minutes.
376386
&quot;updateTime&quot;: &quot;A String&quot;, # Output only. Last update time of the reservation.
@@ -414,6 +424,7 @@ <h3>Method Details</h3>
414424
&quot;labels&quot;: { # 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.
415425
&quot;a_key&quot;: &quot;A String&quot;,
416426
},
427+
&quot;maxSlots&quot;: &quot;A String&quot;, # 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&#x27;t use more than the specified number of slots, even if there is demand and supply (from idle slots). NOTE: capping a reservation&#x27;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&#x27;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&gt;=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.
417428
&quot;multiRegionAuxiliary&quot;: True or False, # 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&#x27;s secondary region which is designated for disaster recovery purposes. If false, this reservation is placed in the organization&#x27;s default region. NOTE: this is a preview feature. Project must be allow-listed in order to set this field.
418429
&quot;name&quot;: &quot;A String&quot;, # The resource name of the reservation, e.g., `projects/*/locations/*/reservations/team1-prod`. The reservation_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.
419430
&quot;originalPrimaryLocation&quot;: &quot;A String&quot;, # Output only. The location where the reservation was originally created. This is set only during the failover reservation&#x27;s creation. All billing charges for the failover reservation will be applied to this location.
@@ -432,6 +443,7 @@ <h3>Method Details</h3>
432443
&quot;lastReplicationTime&quot;: &quot;A String&quot;, # Output only. A timestamp corresponding to the last change on the primary that was successfully replicated to the secondary.
433444
&quot;softFailoverStartTime&quot;: &quot;A String&quot;, # Output only. The time at which a soft failover for the reservation and its associated datasets was initiated. After this field is set, all subsequent changes to the reservation will be rejected unless a hard failover overrides this operation. This field will be cleared once the failover is complete.
434445
},
446+
&quot;scalingMode&quot;: &quot;A String&quot;, # 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`.
435447
&quot;secondaryLocation&quot;: &quot;A String&quot;, # Optional. The current location of the reservation&#x27;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 reservation or in update reservation calls to convert a non-failover reservation to a failover reservation(or vice versa).
436448
&quot;slotCapacity&quot;: &quot;A String&quot;, # Baseline slots available to this reservation. A slot is a unit of computational power in BigQuery, and serves as the unit of parallelism. Queries using this reservation might use more slots during runtime if ignore_idle_slots is set to false, or autoscaling is enabled. The total slot_capacity of the reservation and its siblings may exceed the total slot_count of capacity commitments. In that case, the exceeding slots will be charged with the autoscale SKU. You can increase the number of baseline slots in a reservation every few minutes. If you want to decrease your baseline slots, you are limited to once an hour if you have recently changed your baseline slot capacity and your baseline slots exceed your committed slots. Otherwise, you can decrease your baseline slots every few minutes.
437449
&quot;updateTime&quot;: &quot;A String&quot;, # Output only. Last update time of the reservation.
@@ -458,6 +470,7 @@ <h3>Method Details</h3>
458470
&quot;labels&quot;: { # 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.
459471
&quot;a_key&quot;: &quot;A String&quot;,
460472
},
473+
&quot;maxSlots&quot;: &quot;A String&quot;, # 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&#x27;t use more than the specified number of slots, even if there is demand and supply (from idle slots). NOTE: capping a reservation&#x27;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&#x27;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&gt;=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.
461474
&quot;multiRegionAuxiliary&quot;: True or False, # 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&#x27;s secondary region which is designated for disaster recovery purposes. If false, this reservation is placed in the organization&#x27;s default region. NOTE: this is a preview feature. Project must be allow-listed in order to set this field.
462475
&quot;name&quot;: &quot;A String&quot;, # The resource name of the reservation, e.g., `projects/*/locations/*/reservations/team1-prod`. The reservation_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.
463476
&quot;originalPrimaryLocation&quot;: &quot;A String&quot;, # Output only. The location where the reservation was originally created. This is set only during the failover reservation&#x27;s creation. All billing charges for the failover reservation will be applied to this location.
@@ -476,6 +489,7 @@ <h3>Method Details</h3>
476489
&quot;lastReplicationTime&quot;: &quot;A String&quot;, # Output only. A timestamp corresponding to the last change on the primary that was successfully replicated to the secondary.
477490
&quot;softFailoverStartTime&quot;: &quot;A String&quot;, # Output only. The time at which a soft failover for the reservation and its associated datasets was initiated. After this field is set, all subsequent changes to the reservation will be rejected unless a hard failover overrides this operation. This field will be cleared once the failover is complete.
478491
},
492+
&quot;scalingMode&quot;: &quot;A String&quot;, # 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`.
479493
&quot;secondaryLocation&quot;: &quot;A String&quot;, # Optional. The current location of the reservation&#x27;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 reservation or in update reservation calls to convert a non-failover reservation to a failover reservation(or vice versa).
480494
&quot;slotCapacity&quot;: &quot;A String&quot;, # Baseline slots available to this reservation. A slot is a unit of computational power in BigQuery, and serves as the unit of parallelism. Queries using this reservation might use more slots during runtime if ignore_idle_slots is set to false, or autoscaling is enabled. The total slot_capacity of the reservation and its siblings may exceed the total slot_count of capacity commitments. In that case, the exceeding slots will be charged with the autoscale SKU. You can increase the number of baseline slots in a reservation every few minutes. If you want to decrease your baseline slots, you are limited to once an hour if you have recently changed your baseline slot capacity and your baseline slots exceed your committed slots. Otherwise, you can decrease your baseline slots every few minutes.
481495
&quot;updateTime&quot;: &quot;A String&quot;, # Output only. Last update time of the reservation.

‎googleapiclient/discovery_cache/documents/bigqueryreservation.v1.json

+22-1
Original file line numberDiff line numberDiff line change
@@ -935,7 +935,7 @@
935935
}
936936
}
937937
},
938-
"revision": "20250211",
938+
"revision": "20250218",
939939
"rootUrl": "https://bigqueryreservation.googleapis.com/",
940940
"schemas": {
941941
"Assignment": {
@@ -1367,6 +1367,11 @@ false
13671367
"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.",
13681368
"type": "object"
13691369
},
1370+
"maxSlots": {
1371+
"description": "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.",
1372+
"format": "int64",
1373+
"type": "string"
1374+
},
13701375
"multiRegionAuxiliary": {
13711376
"description": "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 purposes. If false, this reservation is placed in the organization's default region. NOTE: this is a preview feature. Project must be allow-listed in order to set this field.",
13721377
"type": "boolean"
@@ -1390,6 +1395,22 @@ false
13901395
"description": "Output only. The Disater Recovery(DR) replication status of the reservation. This is only available for the primary replica 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.",
13911396
"readOnly": true
13921397
},
1398+
"scalingMode": {
1399+
"description": "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`.",
1400+
"enum": [
1401+
"SCALING_MODE_UNSPECIFIED",
1402+
"AUTOSCALE_ONLY",
1403+
"IDLE_SLOTS_ONLY",
1404+
"ALL_SLOTS"
1405+
],
1406+
"enumDescriptions": [
1407+
"Default value of ScalingMode.",
1408+
"The reservation will scale up only using slots from autoscaling. It will not use any idle slots even if there may be some available. The upper limit that autoscaling can scale up to will be max_slots - baseline. For example, if max_slots is 1000, baseline is 200 and customer sets ScalingMode to AUTOSCALE_ONLY, then autoscalerg will scale up to 800 slots and no idle slots will be used. Please note, in this mode, the ignore_idle_slots field must be set to true. Otherwise the request will be rejected with error code `google.rpc.Code.INVALID_ARGUMENT`.",
1409+
"The reservation will scale up using only idle slots contributed by other reservations or from unassigned commitments. If no idle slots are available it will not scale up further. If the idle slots which it is using are reclaimed by the contributing reservation(s) it may be forced to scale down. The max idle slots the reservation can be max_slots - baseline capacity. For example, if max_slots is 1000, baseline is 200 and customer sets ScalingMode to IDLE_SLOTS_ONLY, 1. if there are 1000 idle slots available in other reservations, the reservation will scale up to 1000 slots with 200 baseline and 800 idle slots. 2. if there are 500 idle slots available in other reservations, the reservation will scale up to 700 slots with 200 baseline and 300 idle slots. Please note, in this mode, the reservation might not be able to scale up to max_slots. Please note, in this mode, the ignore_idle_slots field must be set to false. Otherwise the request will be rejected with error code `google.rpc.Code.INVALID_ARGUMENT`.",
1410+
"The reservation will scale up using all slots available to it. It will use idle slots contributed by other reservations or from unassigned commitments first. If no idle slots are available it will scale up using autoscaling. For example, if max_slots is 1000, baseline is 200 and customer sets ScalingMode to ALL_SLOTS, 1. if there are 800 idle slots available in other reservations, the reservation will scale up to 1000 slots with 200 baseline and 800 idle slots. 2. if there are 500 idle slots available in other reservations, the reservation will scale up to 1000 slots with 200 baseline, 500 idle slots and 300 autoscaling slots. 3. if there are no idle slots available in other reservations, it will scale up to 1000 slots with 200 baseline and 800 autoscaling slots. Please note, in this mode, the ignore_idle_slots field must be set to false. Otherwise the request will be rejected with error code `google.rpc.Code.INVALID_ARGUMENT`."
1411+
],
1412+
"type": "string"
1413+
},
13931414
"secondaryLocation": {
13941415
"description": "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 reservation or in update reservation calls to convert a non-failover reservation to a failover reservation(or vice versa).",
13951416
"type": "string"

0 commit comments

Comments
 (0)
Please sign in to comment.