Current section
Files
Jump to
Current section
Files
lib/google_api/genomics/v1/model/operation_metadata.ex
# Copyright 2017 Google Inc.
#
# 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 class is auto generated by the swagger code generator program.
# https://github.com/swagger-api/swagger-codegen.git
# Do not edit the class manually.
defmodule GoogleApi.Genomics.V1.Model.OperationMetadata do
@moduledoc """
Metadata describing an Operation.
## Attributes
- clientId (String.t): This field is deprecated. Use `labels` instead. Optionally provided by the caller when submitting the request that creates the operation. Defaults to: `null`.
- createTime (DateTime.t): The time at which the job was submitted to the Genomics service. Defaults to: `null`.
- endTime (DateTime.t): The time at which the job stopped running. Defaults to: `null`.
- events ([OperationEvent]): Optional event messages that were generated during the job's execution. This also contains any warnings that were generated during import or export. Defaults to: `null`.
- labels (%{optional(String.t) => String.t}): Optionally provided by the caller when submitting the request that creates the operation. Defaults to: `null`.
- projectId (String.t): The Google Cloud Project in which the job is scoped. Defaults to: `null`.
- request (%{optional(String.t) => String.t}): The original request that started the operation. Note that this will be in current version of the API. If the operation was started with v1beta2 API and a GetOperation is performed on v1 API, a v1 request will be returned. Defaults to: `null`.
- runtimeMetadata (%{optional(String.t) => String.t}): Runtime metadata on this Operation. Defaults to: `null`.
- startTime (DateTime.t): The time at which the job began to run. Defaults to: `null`.
"""
use GoogleApi.Gax.ModelBase
@type t :: %__MODULE__{
:clientId => any(),
:createTime => DateTime.t(),
:endTime => DateTime.t(),
:events => list(GoogleApi.Genomics.V1.Model.OperationEvent.t()),
:labels => map(),
:projectId => any(),
:request => map(),
:runtimeMetadata => map(),
:startTime => DateTime.t()
}
field(:clientId)
field(:createTime, as: DateTime)
field(:endTime, as: DateTime)
field(:events, as: GoogleApi.Genomics.V1.Model.OperationEvent, type: :list)
field(:labels, type: :map)
field(:projectId)
field(:request, type: :map)
field(:runtimeMetadata, type: :map)
field(:startTime, as: DateTime)
end
defimpl Poison.Decoder, for: GoogleApi.Genomics.V1.Model.OperationMetadata do
def decode(value, options) do
GoogleApi.Genomics.V1.Model.OperationMetadata.decode(value, options)
end
end
defimpl Poison.Encoder, for: GoogleApi.Genomics.V1.Model.OperationMetadata do
def encode(value, options) do
GoogleApi.Gax.ModelBase.encode(value, options)
end
end