|
| 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.OSConfig.V1.Model.GoogleCloudOsconfigV2beta_OperationMetadata do |
| 19 | + @moduledoc """ |
| 20 | + Represents the metadata of the long-running operation. |
| 21 | +
|
| 22 | + ## Attributes |
| 23 | +
|
| 24 | + * `apiVersion` (*type:* `String.t`, *default:* `nil`) - Output only. API version used to start the operation. |
| 25 | + * `createTime` (*type:* `DateTime.t`, *default:* `nil`) - Output only. The time the operation was created. |
| 26 | + * `endTime` (*type:* `DateTime.t`, *default:* `nil`) - Output only. The time the operation finished running. |
| 27 | + * `requestedCancellation` (*type:* `boolean()`, *default:* `nil`) - Output only. Identifies whether the user has requested cancellation of the operation. Operations that have been cancelled successfully have Operation.error value with a google.rpc.Status.code of 1, corresponding to `Code.CANCELLED`. |
| 28 | + * `statusMessage` (*type:* `String.t`, *default:* `nil`) - Output only. Human-readable status of the operation, if any. |
| 29 | + * `target` (*type:* `String.t`, *default:* `nil`) - Output only. Server-defined resource path for the target of the operation. |
| 30 | + * `verb` (*type:* `String.t`, *default:* `nil`) - Output only. Name of the verb executed by the operation. |
| 31 | + """ |
| 32 | + |
| 33 | + use GoogleApi.Gax.ModelBase |
| 34 | + |
| 35 | + @type t :: %__MODULE__{ |
| 36 | + :apiVersion => String.t() | nil, |
| 37 | + :createTime => DateTime.t() | nil, |
| 38 | + :endTime => DateTime.t() | nil, |
| 39 | + :requestedCancellation => boolean() | nil, |
| 40 | + :statusMessage => String.t() | nil, |
| 41 | + :target => String.t() | nil, |
| 42 | + :verb => String.t() | nil |
| 43 | + } |
| 44 | + |
| 45 | + field(:apiVersion) |
| 46 | + field(:createTime, as: DateTime) |
| 47 | + field(:endTime, as: DateTime) |
| 48 | + field(:requestedCancellation) |
| 49 | + field(:statusMessage) |
| 50 | + field(:target) |
| 51 | + field(:verb) |
| 52 | +end |
| 53 | + |
| 54 | +defimpl Poison.Decoder, |
| 55 | + for: GoogleApi.OSConfig.V1.Model.GoogleCloudOsconfigV2beta_OperationMetadata do |
| 56 | + def decode(value, options) do |
| 57 | + GoogleApi.OSConfig.V1.Model.GoogleCloudOsconfigV2beta_OperationMetadata.decode(value, options) |
| 58 | + end |
| 59 | +end |
| 60 | + |
| 61 | +defimpl Poison.Encoder, |
| 62 | + for: GoogleApi.OSConfig.V1.Model.GoogleCloudOsconfigV2beta_OperationMetadata do |
| 63 | + def encode(value, options) do |
| 64 | + GoogleApi.Gax.ModelBase.encode(value, options) |
| 65 | + end |
| 66 | +end |
0 commit comments