Skip to content

Commit 303aa63

Browse files
feat: Automated regeneration of BigQueryReservation client (googleapis#12973)
Auto-created at 2025-02-15 13:11:39 +0000 using the toys pull request generator.
1 parent 8fe632e commit 303aa63

File tree

5 files changed

+62
-3
lines changed

5 files changed

+62
-3
lines changed

clients/big_query_reservation/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ Install this package from [Hex](https://hex.pm) by adding
1111

1212
```elixir
1313
def deps do
14-
[{:google_api_big_query_reservation, "~> 0.20"}]
14+
[{:google_api_big_query_reservation, "~> 0.21"}]
1515
end
1616
```
1717

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 "20241231"
23+
@discovery_revision "20250211"
2424

2525
def discovery_revision(), do: @discovery_revision
2626
end
Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
# Copyright 2019 Google LLC
2+
#
3+
# Licensed under the Apache License, Version 2.0 (the "License");
4+
# you may not use this file except in compliance with the License.
5+
# You may obtain a copy of the License at
6+
#
7+
# http://www.apache.org/licenses/LICENSE-2.0
8+
#
9+
# Unless required by applicable law or agreed to in writing, software
10+
# distributed under the License is distributed on an "AS IS" BASIS,
11+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
# See the License for the specific language governing permissions and
13+
# limitations under the License.
14+
15+
# NOTE: This file is auto generated by the elixir code generator program.
16+
# Do not edit this file manually.
17+
18+
defmodule GoogleApi.BigQueryReservation.V1.Model.ReplicationStatus do
19+
@moduledoc """
20+
Disaster Recovery(DR) replication status of the reservation.
21+
22+
## Attributes
23+
24+
* `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.
25+
* `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.
26+
* `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.
28+
"""
29+
30+
use GoogleApi.Gax.ModelBase
31+
32+
@type t :: %__MODULE__{
33+
:error => GoogleApi.BigQueryReservation.V1.Model.Status.t() | nil,
34+
:lastErrorTime => DateTime.t() | nil,
35+
:lastReplicationTime => DateTime.t() | nil,
36+
:softFailoverStartTime => DateTime.t() | nil
37+
}
38+
39+
field(:error, as: GoogleApi.BigQueryReservation.V1.Model.Status)
40+
field(:lastErrorTime, as: DateTime)
41+
field(:lastReplicationTime, as: DateTime)
42+
field(:softFailoverStartTime, as: DateTime)
43+
end
44+
45+
defimpl Poison.Decoder, for: GoogleApi.BigQueryReservation.V1.Model.ReplicationStatus do
46+
def decode(value, options) do
47+
GoogleApi.BigQueryReservation.V1.Model.ReplicationStatus.decode(value, options)
48+
end
49+
end
50+
51+
defimpl Poison.Encoder, for: GoogleApi.BigQueryReservation.V1.Model.ReplicationStatus do
52+
def encode(value, options) do
53+
GoogleApi.Gax.ModelBase.encode(value, options)
54+
end
55+
end

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

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ defmodule GoogleApi.BigQueryReservation.V1.Model.Reservation do
3131
* `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.
3232
* `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.
3333
* `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.
34+
* `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.
3435
* `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).
3536
* `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.
3637
* `updateTime` (*type:* `DateTime.t`, *default:* `nil`) - Output only. Last update time of the reservation.
@@ -49,6 +50,8 @@ defmodule GoogleApi.BigQueryReservation.V1.Model.Reservation do
4950
:name => String.t() | nil,
5051
:originalPrimaryLocation => String.t() | nil,
5152
:primaryLocation => String.t() | nil,
53+
:replicationStatus =>
54+
GoogleApi.BigQueryReservation.V1.Model.ReplicationStatus.t() | nil,
5255
:secondaryLocation => String.t() | nil,
5356
:slotCapacity => String.t() | nil,
5457
:updateTime => DateTime.t() | nil
@@ -64,6 +67,7 @@ defmodule GoogleApi.BigQueryReservation.V1.Model.Reservation do
6467
field(:name)
6568
field(:originalPrimaryLocation)
6669
field(:primaryLocation)
70+
field(:replicationStatus, as: GoogleApi.BigQueryReservation.V1.Model.ReplicationStatus)
6771
field(:secondaryLocation)
6872
field(:slotCapacity)
6973
field(:updateTime, as: DateTime)

clients/big_query_reservation/mix.exs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
defmodule GoogleApi.BigQueryReservation.Mixfile do
1919
use Mix.Project
2020

21-
@version "0.20.3"
21+
@version "0.21.0"
2222

2323
def project() do
2424
[

0 commit comments

Comments
 (0)