|
| 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 |
0 commit comments