Current section

Files

Jump to
google_api_books lib google_api books v1 model layersummary.ex
Raw

lib/google_api/books/v1/model/layersummary.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.Books.V1.Model.Layersummary do
@moduledoc """
## Attributes
* `annotationCount` (*type:* `integer()`, *default:* `nil`) - The number of annotations for this layer.
* `annotationTypes` (*type:* `list(String.t)`, *default:* `nil`) - The list of annotation types contained for this layer.
* `annotationsDataLink` (*type:* `String.t`, *default:* `nil`) - Link to get data for this annotation.
* `annotationsLink` (*type:* `String.t`, *default:* `nil`) - The link to get the annotations for this layer.
* `contentVersion` (*type:* `String.t`, *default:* `nil`) - The content version this resource is for.
* `dataCount` (*type:* `integer()`, *default:* `nil`) - The number of data items for this layer.
* `id` (*type:* `String.t`, *default:* `nil`) - Unique id of this layer summary.
* `kind` (*type:* `String.t`, *default:* `books#layersummary`) - Resource Type
* `layerId` (*type:* `String.t`, *default:* `nil`) - The layer id for this summary.
* `selfLink` (*type:* `String.t`, *default:* `nil`) - URL to this resource.
* `updated` (*type:* `DateTime.t`, *default:* `nil`) - Timestamp for the last time an item in this layer was updated. (RFC 3339 UTC date-time format).
* `volumeAnnotationsVersion` (*type:* `String.t`, *default:* `nil`) - The current version of this layer's volume annotations. Note that this version applies only to the data in the books.layers.volumeAnnotations.* responses. The actual annotation data is versioned separately.
* `volumeId` (*type:* `String.t`, *default:* `nil`) - The volume id this resource is for.
"""
use GoogleApi.Gax.ModelBase
@type t :: %__MODULE__{
:annotationCount => integer(),
:annotationTypes => list(String.t()),
:annotationsDataLink => String.t(),
:annotationsLink => String.t(),
:contentVersion => String.t(),
:dataCount => integer(),
:id => String.t(),
:kind => String.t(),
:layerId => String.t(),
:selfLink => String.t(),
:updated => DateTime.t(),
:volumeAnnotationsVersion => String.t(),
:volumeId => String.t()
}
field(:annotationCount)
field(:annotationTypes, type: :list)
field(:annotationsDataLink)
field(:annotationsLink)
field(:contentVersion)
field(:dataCount)
field(:id)
field(:kind)
field(:layerId)
field(:selfLink)
field(:updated, as: DateTime)
field(:volumeAnnotationsVersion)
field(:volumeId)
end
defimpl Poison.Decoder, for: GoogleApi.Books.V1.Model.Layersummary do
def decode(value, options) do
GoogleApi.Books.V1.Model.Layersummary.decode(value, options)
end
end
defimpl Poison.Encoder, for: GoogleApi.Books.V1.Model.Layersummary do
def encode(value, options) do
GoogleApi.Gax.ModelBase.encode(value, options)
end
end