Packages
Manufacturer Center API client library. Public API for managing Manufacturer Center related data.
Current section
Files
Jump to
Current section
Files
lib/google_api/manufacturers/v1/model/certification.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.Manufacturers.V1.Model.Certification do
@moduledoc """
Description of a certification.
## Attributes
* `authority` (*type:* `String.t`, *default:* `nil`) - Required. Name of the certification body.
* `code` (*type:* `String.t`, *default:* `nil`) - Required. A unique code to identify the certification.
* `link` (*type:* `String.t`, *default:* `nil`) - Optional. A URL link to the certification.
* `logo` (*type:* `String.t`, *default:* `nil`) - Optional. A URL link to the certification logo.
* `name` (*type:* `String.t`, *default:* `nil`) - Required. Name of the certification.
* `validUntil` (*type:* `String.t`, *default:* `nil`) - Optional. The expiration date (UTC).
* `value` (*type:* `String.t`, *default:* `nil`) - Optional. A custom value of the certification.
"""
use GoogleApi.Gax.ModelBase
@type t :: %__MODULE__{
:authority => String.t() | nil,
:code => String.t() | nil,
:link => String.t() | nil,
:logo => String.t() | nil,
:name => String.t() | nil,
:validUntil => String.t() | nil,
:value => String.t() | nil
}
field(:authority)
field(:code)
field(:link)
field(:logo)
field(:name)
field(:validUntil)
field(:value)
end
defimpl Poison.Decoder, for: GoogleApi.Manufacturers.V1.Model.Certification do
def decode(value, options) do
GoogleApi.Manufacturers.V1.Model.Certification.decode(value, options)
end
end
defimpl Poison.Encoder, for: GoogleApi.Manufacturers.V1.Model.Certification do
def encode(value, options) do
GoogleApi.Gax.ModelBase.encode(value, options)
end
end