Packages
Books API client library. The Google Books API allows clients to access the Google Books repository.
Current section
Files
Jump to
Current section
Files
lib/google_api/books/v1/model/notification.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.Books.V1.Model.Notification do
@moduledoc """
## Attributes
- body (String.t): Defaults to: `null`.
- crmExperimentIds ([String.t]): The list of crm experiment ids. Defaults to: `null`.
- doc_id (String.t): Defaults to: `null`.
- doc_type (String.t): Defaults to: `null`.
- dont_show_notification (boolean()): Defaults to: `null`.
- iconUrl (String.t): Defaults to: `null`.
- is_document_mature (boolean()): Defaults to: `null`.
- kind (String.t): Resource type. Defaults to: `null`.
- notificationGroup (String.t): Defaults to: `null`.
- notification_type (String.t): Defaults to: `null`.
- pcampaign_id (String.t): Defaults to: `null`.
- reason (String.t): Defaults to: `null`.
- show_notification_settings_action (boolean()): Defaults to: `null`.
- targetUrl (String.t): Defaults to: `null`.
- title (String.t): Defaults to: `null`.
"""
use GoogleApi.Gax.ModelBase
@type t :: %__MODULE__{
:body => any(),
:crmExperimentIds => list(any()),
:doc_id => any(),
:doc_type => any(),
:dont_show_notification => any(),
:iconUrl => any(),
:is_document_mature => any(),
:kind => any(),
:notificationGroup => any(),
:notification_type => any(),
:pcampaign_id => any(),
:reason => any(),
:show_notification_settings_action => any(),
:targetUrl => any(),
:title => any()
}
field(:body)
field(:crmExperimentIds, type: :list)
field(:doc_id)
field(:doc_type)
field(:dont_show_notification)
field(:iconUrl)
field(:is_document_mature)
field(:kind)
field(:notificationGroup)
field(:notification_type)
field(:pcampaign_id)
field(:reason)
field(:show_notification_settings_action)
field(:targetUrl)
field(:title)
end
defimpl Poison.Decoder, for: GoogleApi.Books.V1.Model.Notification do
def decode(value, options) do
GoogleApi.Books.V1.Model.Notification.decode(value, options)
end
end
defimpl Poison.Encoder, for: GoogleApi.Books.V1.Model.Notification do
def encode(value, options) do
GoogleApi.Gax.ModelBase.encode(value, options)
end
end