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): This field is deprecated. Use `labels` instead. Optionally provided by the caller when submitting the request that creates the operation. Defaults to: `null`.
- createTime (String): The time at which the job was submitted to the Genomics service. Defaults to: `null`.
- endTime (String): The time at which the job stopped running. Defaults to: `null`.
- events (List[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 (Map[String, String]): Optionally provided by the caller when submitting the request that creates the operation. Defaults to: `null`.
- projectId (String): The Google Cloud Project in which the job is scoped. Defaults to: `null`.
- request (Object): 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 (Object): Runtime metadata on this Operation. Defaults to: `null`.
- startTime (String): The time at which the job began to run. Defaults to: `null`.
"""
defstruct [
:"clientId",
:"createTime",
:"endTime",
:"events",
:"labels",
:"projectId",
:"request",
:"runtimeMetadata",
:"startTime"
]
end
defimpl Poison.Decoder, for: GoogleApi.Genomics.V1.Model.OperationMetadata do
import GoogleApi.Genomics.V1.Deserializer
def decode(value, options) do
value
|> deserialize(:"events", :list, GoogleApi.Genomics.V1.Model.OperationEvent, options)
|> deserialize(:"request", :struct, GoogleApi.Genomics.V1.Model.Object, options)
|> deserialize(:"runtimeMetadata", :struct, GoogleApi.Genomics.V1.Model.Object, options)
end
end
defimpl Poison.Encoder, for: GoogleApi.Genomics.V1.Model.OperationMetadata do
def encode(value, options) do
GoogleApi.Genomics.V1.Deserializer.serialize_non_nil(value, options)
end
end