# 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.ContainerAnalysis.V1alpha1.Model.Fingerprint do
@moduledoc """
A set of properties that uniquely identify a given Docker image.
## Attributes
* `v1Name` (*type:* `String.t`, *default:* `nil`) - The layer-id of the final layer in the Docker image's v1 representation. This field can be used as a filter in list requests.
* `v2Blob` (*type:* `list(String.t)`, *default:* `nil`) - The ordered list of v2 blobs that represent a given image.
* `v2Name` (*type:* `String.t`, *default:* `nil`) - Output only. The name of the image's v2 blobs computed via: [bottom] := v2_blobbottom := sha256(v2_blob[N] + " " + v2_name[N+1]) Only the name of the final blob is kept. This field can be used as a filter in list requests.
"""
use GoogleApi.Gax.ModelBase
@type t :: %__MODULE__{
:v1Name => String.t() | nil,
:v2Blob => list(String.t()) | nil,
:v2Name => String.t() | nil
}
field(:v1Name)
field(:v2Blob, type: :list)
field(:v2Name)
end
defimpl Poison.Decoder, for: GoogleApi.ContainerAnalysis.V1alpha1.Model.Fingerprint do
def decode(value, options) do
GoogleApi.ContainerAnalysis.V1alpha1.Model.Fingerprint.decode(value, options)
end
end
defimpl Poison.Encoder, for: GoogleApi.ContainerAnalysis.V1alpha1.Model.Fingerprint do
def encode(value, options) do
GoogleApi.Gax.ModelBase.encode(value, options)
end
end