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/issue.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.Manufacturers.V1.Model.Issue do
@moduledoc """
Product issue.
## Attributes
- attribute (String.t): If present, the attribute that triggered the issue. For more information about attributes, see https://support.google.com/manufacturers/answer/6124116. Defaults to: `null`.
- description (String.t): Longer description of the issue focused on how to resolve it. Defaults to: `null`.
- destination (String.t): The destination this issue applies to. Defaults to: `null`.
- resolution (String.t): What needs to happen to resolve the issue. Defaults to: `null`.
- Enum - one of [RESOLUTION_UNSPECIFIED, USER_ACTION, PENDING_PROCESSING]
- severity (String.t): The severity of the issue. Defaults to: `null`.
- Enum - one of [SEVERITY_UNSPECIFIED, ERROR, WARNING, INFO]
- timestamp (DateTime.t): The timestamp when this issue appeared. Defaults to: `null`.
- title (String.t): Short title describing the nature of the issue. Defaults to: `null`.
- type (String.t): The server-generated type of the issue, for example, “INCORRECT_TEXT_FORMATTING”, “IMAGE_NOT_SERVEABLE”, etc. Defaults to: `null`.
"""
use GoogleApi.Gax.ModelBase
@type t :: %__MODULE__{
:attribute => any(),
:description => any(),
:destination => any(),
:resolution => any(),
:severity => any(),
:timestamp => DateTime.t(),
:title => any(),
:type => any()
}
field(:attribute)
field(:description)
field(:destination)
field(:resolution)
field(:severity)
field(:timestamp, as: DateTime)
field(:title)
field(:type)
end
defimpl Poison.Decoder, for: GoogleApi.Manufacturers.V1.Model.Issue do
def decode(value, options) do
GoogleApi.Manufacturers.V1.Model.Issue.decode(value, options)
end
end
defimpl Poison.Encoder, for: GoogleApi.Manufacturers.V1.Model.Issue do
def encode(value, options) do
GoogleApi.Gax.ModelBase.encode(value, options)
end
end