# 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.Games.V1.Model.SnapshotRevision do @moduledoc """ A Snapshot revision resource. Snapshot revisions are immutable. ## Attributes * `blob` (*type:* `GoogleApi.Games.V1.Model.SnapshotDataResource.t`, *default:* `nil`) - Reference to the game provided blob for this revision. * `coverImage` (*type:* `GoogleApi.Games.V1.Model.SnapshotCoverImageResource.t`, *default:* `nil`) - Reference to the cover image for this revision. * `id` (*type:* `String.t`, *default:* `nil`) - Output only. A server generated identifier of the snapshot revision. * `metadata` (*type:* `GoogleApi.Games.V1.Model.SnapshotMetadata.t`, *default:* `nil`) - Metadata for this snapshot revision. """ use GoogleApi.Gax.ModelBase @type t :: %__MODULE__{ :blob => GoogleApi.Games.V1.Model.SnapshotDataResource.t() | nil, :coverImage => GoogleApi.Games.V1.Model.SnapshotCoverImageResource.t() | nil, :id => String.t() | nil, :metadata => GoogleApi.Games.V1.Model.SnapshotMetadata.t() | nil } field(:blob, as: GoogleApi.Games.V1.Model.SnapshotDataResource) field(:coverImage, as: GoogleApi.Games.V1.Model.SnapshotCoverImageResource) field(:id) field(:metadata, as: GoogleApi.Games.V1.Model.SnapshotMetadata) end defimpl Poison.Decoder, for: GoogleApi.Games.V1.Model.SnapshotRevision do def decode(value, options) do GoogleApi.Games.V1.Model.SnapshotRevision.decode(value, options) end end defimpl Poison.Encoder, for: GoogleApi.Games.V1.Model.SnapshotRevision do def encode(value, options) do GoogleApi.Gax.ModelBase.encode(value, options) end end