lib/google_api/firebase/v1beta1/model/sha_certificate.ex

# 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.Firebase.V1beta1.Model.ShaCertificate do
  @moduledoc """
  A SHA-1 or SHA-256 certificate associated with the AndroidApp.

  ## Attributes

  *   `certType` (*type:* `String.t`, *default:* `nil`) - The type of SHA certificate encoded in the hash.
  *   `name` (*type:* `String.t`, *default:* `nil`) - The resource name of the ShaCertificate for the AndroidApp, in the format: projects/PROJECT_IDENTIFIER/androidApps/APP_ID/sha/SHA_HASH * PROJECT_IDENTIFIER: the parent Project's [`ProjectNumber`](../projects#FirebaseProject.FIELDS.project_number) ***(recommended)*** or its [`ProjectId`](../projects#FirebaseProject.FIELDS.project_id). Learn more about using project identifiers in Google's [AIP 2510 standard](https://google.aip.dev/cloud/2510). Note that the value for PROJECT_IDENTIFIER in any response body will be the `ProjectId`. * APP_ID: the globally unique, Firebase-assigned identifier for the App (see [`appId`](../projects.androidApps#AndroidApp.FIELDS.app_id)). * SHA_HASH: the certificate hash for the App (see [`shaHash`](../projects.androidApps.sha#ShaCertificate.FIELDS.sha_hash)).
  *   `shaHash` (*type:* `String.t`, *default:* `nil`) - The certificate hash for the `AndroidApp`.
  """

  use GoogleApi.Gax.ModelBase

  @type t :: %__MODULE__{
          :certType => String.t() | nil,
          :name => String.t() | nil,
          :shaHash => String.t() | nil
        }

  field(:certType)
  field(:name)
  field(:shaHash)
end

defimpl Poison.Decoder, for: GoogleApi.Firebase.V1beta1.Model.ShaCertificate do
  def decode(value, options) do
    GoogleApi.Firebase.V1beta1.Model.ShaCertificate.decode(value, options)
  end
end

defimpl Poison.Encoder, for: GoogleApi.Firebase.V1beta1.Model.ShaCertificate do
  def encode(value, options) do
    GoogleApi.Gax.ModelBase.encode(value, options)
  end
end