|
| 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.SQLAdmin.V1beta4.Model.Backup do |
| 19 | + @moduledoc """ |
| 20 | + A backup resource. |
| 21 | +
|
| 22 | + ## Attributes |
| 23 | +
|
| 24 | + * `backupInterval` (*type:* `GoogleApi.SQLAdmin.V1beta4.Model.Interval.t`, *default:* `nil`) - Output only. This output contains the following values: start_time: All database writes up to this time are available. end_time: Any database writes after this time aren't available. |
| 25 | + * `backupKind` (*type:* `String.t`, *default:* `nil`) - Output only. Specifies the kind of backup, PHYSICAL or DEFAULT_SNAPSHOT. |
| 26 | + * `backupRun` (*type:* `String.t`, *default:* `nil`) - Output only. The mapping to backup run resource used for IAM validations. |
| 27 | + * `description` (*type:* `String.t`, *default:* `nil`) - The description of this backup. |
| 28 | + * `error` (*type:* `GoogleApi.SQLAdmin.V1beta4.Model.OperationError.t`, *default:* `nil`) - Output only. Information about why the backup operation fails (for example, when the backup state fails). |
| 29 | + * `expiryTime` (*type:* `DateTime.t`, *default:* `nil`) - Backup expiration time. A UTC timestamp of when this resource expired. |
| 30 | + * `instance` (*type:* `String.t`, *default:* `nil`) - The name of the database instance. |
| 31 | + * `kind` (*type:* `String.t`, *default:* `nil`) - Output only. This is always `sql#backup`. |
| 32 | + * `kmsKey` (*type:* `String.t`, *default:* `nil`) - Output only. This output contains the encryption configuration for a backup and the resource name of the KMS key for disk encryption. |
| 33 | + * `kmsKeyVersion` (*type:* `String.t`, *default:* `nil`) - Output only. This output contains the encryption status for a backup and the version of the KMS key that's used to encrypt the Cloud SQL instance. |
| 34 | + * `location` (*type:* `String.t`, *default:* `nil`) - The storage location of the backups. The location can be multi-regional. |
| 35 | + * `maxChargeableBytes` (*type:* `String.t`, *default:* `nil`) - Output only. The maximum chargeable bytes for the backup. |
| 36 | + * `name` (*type:* `String.t`, *default:* `nil`) - Output only. The resource name of the backup. Format: projects/{project}/backups/{backup} |
| 37 | + * `satisfiesPzi` (*type:* `boolean()`, *default:* `nil`) - Output only. This status indicates whether the backup satisfies PZI. The status is reserved for future use. |
| 38 | + * `satisfiesPzs` (*type:* `boolean()`, *default:* `nil`) - Output only. This status indicates whether the backup satisfies PZS. The status is reserved for future use. |
| 39 | + * `selfLink` (*type:* `String.t`, *default:* `nil`) - Output only. The URI of this resource. |
| 40 | + * `state` (*type:* `String.t`, *default:* `nil`) - Output only. The state of this backup. |
| 41 | + * `timeZone` (*type:* `String.t`, *default:* `nil`) - Output only. This output contains a backup time zone. If a Cloud SQL for SQL Server instance has a different time zone from the backup's time zone, then restores to the instance won't happen. |
| 42 | + * `ttlDays` (*type:* `String.t`, *default:* `nil`) - Input only. The time-to-live (TTL) interval for this resource (in days). For example: ttlDays:7 means 7 days. |
| 43 | + * `type` (*type:* `String.t`, *default:* `nil`) - Output only. The type of this backup. The type can be "AUTOMATED", "ON_DEMAND", or “FINAL”. |
| 44 | + """ |
| 45 | + |
| 46 | + use GoogleApi.Gax.ModelBase |
| 47 | + |
| 48 | + @type t :: %__MODULE__{ |
| 49 | + :backupInterval => GoogleApi.SQLAdmin.V1beta4.Model.Interval.t() | nil, |
| 50 | + :backupKind => String.t() | nil, |
| 51 | + :backupRun => String.t() | nil, |
| 52 | + :description => String.t() | nil, |
| 53 | + :error => GoogleApi.SQLAdmin.V1beta4.Model.OperationError.t() | nil, |
| 54 | + :expiryTime => DateTime.t() | nil, |
| 55 | + :instance => String.t() | nil, |
| 56 | + :kind => String.t() | nil, |
| 57 | + :kmsKey => String.t() | nil, |
| 58 | + :kmsKeyVersion => String.t() | nil, |
| 59 | + :location => String.t() | nil, |
| 60 | + :maxChargeableBytes => String.t() | nil, |
| 61 | + :name => String.t() | nil, |
| 62 | + :satisfiesPzi => boolean() | nil, |
| 63 | + :satisfiesPzs => boolean() | nil, |
| 64 | + :selfLink => String.t() | nil, |
| 65 | + :state => String.t() | nil, |
| 66 | + :timeZone => String.t() | nil, |
| 67 | + :ttlDays => String.t() | nil, |
| 68 | + :type => String.t() | nil |
| 69 | + } |
| 70 | + |
| 71 | + field(:backupInterval, as: GoogleApi.SQLAdmin.V1beta4.Model.Interval) |
| 72 | + field(:backupKind) |
| 73 | + field(:backupRun) |
| 74 | + field(:description) |
| 75 | + field(:error, as: GoogleApi.SQLAdmin.V1beta4.Model.OperationError) |
| 76 | + field(:expiryTime, as: DateTime) |
| 77 | + field(:instance) |
| 78 | + field(:kind) |
| 79 | + field(:kmsKey) |
| 80 | + field(:kmsKeyVersion) |
| 81 | + field(:location) |
| 82 | + field(:maxChargeableBytes) |
| 83 | + field(:name) |
| 84 | + field(:satisfiesPzi) |
| 85 | + field(:satisfiesPzs) |
| 86 | + field(:selfLink) |
| 87 | + field(:state) |
| 88 | + field(:timeZone) |
| 89 | + field(:ttlDays) |
| 90 | + field(:type) |
| 91 | +end |
| 92 | + |
| 93 | +defimpl Poison.Decoder, for: GoogleApi.SQLAdmin.V1beta4.Model.Backup do |
| 94 | + def decode(value, options) do |
| 95 | + GoogleApi.SQLAdmin.V1beta4.Model.Backup.decode(value, options) |
| 96 | + end |
| 97 | +end |
| 98 | + |
| 99 | +defimpl Poison.Encoder, for: GoogleApi.SQLAdmin.V1beta4.Model.Backup do |
| 100 | + def encode(value, options) do |
| 101 | + GoogleApi.Gax.ModelBase.encode(value, options) |
| 102 | + end |
| 103 | +end |
0 commit comments