# 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.Genomics.V2alpha1.Model.Metadata do
@moduledoc """
Carries information about the pipeline execution that is returned in the long running operation's metadata field.
## Attributes
* `createTime` (*type:* `DateTime.t`, *default:* `nil`) - The time at which the operation was created by the API.
* `endTime` (*type:* `DateTime.t`, *default:* `nil`) - The time at which execution was completed and resources were cleaned up.
* `events` (*type:* `list(GoogleApi.Genomics.V2alpha1.Model.Event.t)`, *default:* `nil`) - The list of events that have happened so far during the execution of this operation.
* `labels` (*type:* `map()`, *default:* `nil`) - The user-defined labels associated with this operation.
* `pipeline` (*type:* `GoogleApi.Genomics.V2alpha1.Model.Pipeline.t`, *default:* `nil`) - The pipeline this operation represents.
* `startTime` (*type:* `DateTime.t`, *default:* `nil`) - The first time at which resources were allocated to execute the pipeline.
"""
use GoogleApi.Gax.ModelBase
@type t :: %__MODULE__{
:createTime => DateTime.t() | nil,
:endTime => DateTime.t() | nil,
:events => list(GoogleApi.Genomics.V2alpha1.Model.Event.t()) | nil,
:labels => map() | nil,
:pipeline => GoogleApi.Genomics.V2alpha1.Model.Pipeline.t() | nil,
:startTime => DateTime.t() | nil
}
field(:createTime, as: DateTime)
field(:endTime, as: DateTime)
field(:events, as: GoogleApi.Genomics.V2alpha1.Model.Event, type: :list)
field(:labels, type: :map)
field(:pipeline, as: GoogleApi.Genomics.V2alpha1.Model.Pipeline)
field(:startTime, as: DateTime)
end
defimpl Poison.Decoder, for: GoogleApi.Genomics.V2alpha1.Model.Metadata do
def decode(value, options) do
GoogleApi.Genomics.V2alpha1.Model.Metadata.decode(value, options)
end
end
defimpl Poison.Encoder, for: GoogleApi.Genomics.V2alpha1.Model.Metadata do
def encode(value, options) do
GoogleApi.Gax.ModelBase.encode(value, options)
end
end