Skip to content

Commit 8e29498

Browse files
feat: Automated regeneration of BigQueryReservation client (#13126)
Auto-created at 2025-03-10 13:17:24 +0000 using the toys pull request generator.
1 parent 1cf6dab commit 8e29498

File tree

3 files changed

+3
-6
lines changed

3 files changed

+3
-6
lines changed

clients/big_query_reservation/lib/google_api/big_query_reservation/v1/metadata.ex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ defmodule GoogleApi.BigQueryReservation.V1 do
2020
API client metadata for GoogleApi.BigQueryReservation.V1.
2121
"""
2222

23-
@discovery_revision "20250218"
23+
@discovery_revision "20250304"
2424

2525
def discovery_revision(), do: @discovery_revision
2626
end

clients/big_query_reservation/lib/google_api/big_query_reservation/v1/model/replication_status.ex

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,22 +24,19 @@ defmodule GoogleApi.BigQueryReservation.V1.Model.ReplicationStatus do
2424
* `error` (*type:* `GoogleApi.BigQueryReservation.V1.Model.Status.t`, *default:* `nil`) - Output only. The last error encountered while trying to replicate changes from the primary to the secondary. This field is only available if the replication has not succeeded since.
2525
* `lastErrorTime` (*type:* `DateTime.t`, *default:* `nil`) - Output only. The time at which the last error was encountered while trying to replicate changes from the primary to the secondary. This field is only available if the replication has not succeeded since.
2626
* `lastReplicationTime` (*type:* `DateTime.t`, *default:* `nil`) - Output only. A timestamp corresponding to the last change on the primary that was successfully replicated to the secondary.
27-
* `softFailoverStartTime` (*type:* `DateTime.t`, *default:* `nil`) - 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.
2827
"""
2928

3029
use GoogleApi.Gax.ModelBase
3130

3231
@type t :: %__MODULE__{
3332
:error => GoogleApi.BigQueryReservation.V1.Model.Status.t() | nil,
3433
:lastErrorTime => DateTime.t() | nil,
35-
:lastReplicationTime => DateTime.t() | nil,
36-
:softFailoverStartTime => DateTime.t() | nil
34+
:lastReplicationTime => DateTime.t() | nil
3735
}
3836

3937
field(:error, as: GoogleApi.BigQueryReservation.V1.Model.Status)
4038
field(:lastErrorTime, as: DateTime)
4139
field(:lastReplicationTime, as: DateTime)
42-
field(:softFailoverStartTime, as: DateTime)
4340
end
4441

4542
defimpl Poison.Decoder, for: GoogleApi.BigQueryReservation.V1.Model.ReplicationStatus do

clients/big_query_reservation/lib/google_api/big_query_reservation/v1/model/reservation.ex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ defmodule GoogleApi.BigQueryReservation.V1.Model.Reservation do
3232
* `name` (*type:* `String.t`, *default:* `nil`) - 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.
3333
* `originalPrimaryLocation` (*type:* `String.t`, *default:* `nil`) - Output only. The location where the reservation was originally created. This is set only during the failover reservation's creation. All billing charges for the failover reservation will be applied to this location.
3434
* `primaryLocation` (*type:* `String.t`, *default:* `nil`) - Output only. The current location of the reservation's primary replica. This field is only set for reservations using the managed disaster recovery feature.
35-
* `replicationStatus` (*type:* `GoogleApi.BigQueryReservation.V1.Model.ReplicationStatus.t`, *default:* `nil`) - 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.
35+
* `replicationStatus` (*type:* `GoogleApi.BigQueryReservation.V1.Model.ReplicationStatus.t`, *default:* `nil`) - Output only. The Disaster Recovery(DR) replication status of the reservation. This is only available for the primary replicas 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. If this field is blank, it means that the reservation is either not a DR reservation or the reservation is a DR secondary or that any replication operations on the reservation have succeeded.
3636
* `scalingMode` (*type:* `String.t`, *default:* `nil`) - 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`.
3737
* `secondaryLocation` (*type:* `String.t`, *default:* `nil`) - 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).
3838
* `slotCapacity` (*type:* `String.t`, *default:* `nil`) - 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.

0 commit comments

Comments
 (0)