lib/google_api/apigee/v1/model/google_cloud_apigee_v1_export.ex

# Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
#     http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

# NOTE: This file is auto generated by the elixir code generator program.
# Do not edit this file manually.

defmodule GoogleApi.Apigee.V1.Model.GoogleCloudApigeeV1Export do
  @moduledoc """
  Details of an export job.

  ## Attributes

  *   `created` (*type:* `String.t`, *default:* `nil`) - Output only. Time the export job was created.
  *   `datastoreName` (*type:* `String.t`, *default:* `nil`) - Name of the datastore that is the destination of the export job [datastore]
  *   `description` (*type:* `String.t`, *default:* `nil`) - Description of the export job.
  *   `error` (*type:* `String.t`, *default:* `nil`) - Output only. Error is set when export fails
  *   `executionTime` (*type:* `String.t`, *default:* `nil`) - Output only. Execution time for this export job. If the job is still in progress, it will be set to the amount of time that has elapsed since`created`, in seconds. Else, it will set to (`updated` - `created`), in seconds.
  *   `name` (*type:* `String.t`, *default:* `nil`) - Display name of the export job.
  *   `self` (*type:* `String.t`, *default:* `nil`) - Output only. Self link of the export job. A URI that can be used to retrieve the status of an export job. Example: `/organizations/myorg/environments/myenv/analytics/exports/9cfc0d85-0f30-46d6-ae6f-318d0cb961bd`
  *   `state` (*type:* `String.t`, *default:* `nil`) - Output only. Status of the export job. Valid values include `enqueued`, `running`, `completed`, and `failed`.
  *   `updated` (*type:* `String.t`, *default:* `nil`) - Output only. Time the export job was last updated.
  """

  use GoogleApi.Gax.ModelBase

  @type t :: %__MODULE__{
          :created => String.t() | nil,
          :datastoreName => String.t() | nil,
          :description => String.t() | nil,
          :error => String.t() | nil,
          :executionTime => String.t() | nil,
          :name => String.t() | nil,
          :self => String.t() | nil,
          :state => String.t() | nil,
          :updated => String.t() | nil
        }

  field(:created)
  field(:datastoreName)
  field(:description)
  field(:error)
  field(:executionTime)
  field(:name)
  field(:self)
  field(:state)
  field(:updated)
end

defimpl Poison.Decoder, for: GoogleApi.Apigee.V1.Model.GoogleCloudApigeeV1Export do
  def decode(value, options) do
    GoogleApi.Apigee.V1.Model.GoogleCloudApigeeV1Export.decode(value, options)
  end
end

defimpl Poison.Encoder, for: GoogleApi.Apigee.V1.Model.GoogleCloudApigeeV1Export do
  def encode(value, options) do
    GoogleApi.Gax.ModelBase.encode(value, options)
  end
end