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 class is auto generated by the elixir code generator program.
# Do not edit the class manually.
defmodule GoogleApi.Books.V1.Model.Layersummary do
@moduledoc """
## Attributes
- annotationCount (integer()): The number of annotations for this layer. Defaults to `nil`.
- annotationTypes (list(String.t)): The list of annotation types contained for this layer. Defaults to `nil`.
- annotationsDataLink (String.t): Link to get data for this annotation. Defaults to `nil`.
- annotationsLink (String.t): The link to get the annotations for this layer. Defaults to `nil`.
- contentVersion (String.t): The content version this resource is for. Defaults to `nil`.
- dataCount (integer()): The number of data items for this layer. Defaults to `nil`.
- id (String.t): Unique id of this layer summary. Defaults to `nil`.
- kind (String.t): Resource Type Defaults to `books#layersummary`.
- layerId (String.t): The layer id for this summary. Defaults to `nil`.
- selfLink (String.t): URL to this resource. Defaults to `nil`.
- updated (DateTime.t): Timestamp for the last time an item in this layer was updated. (RFC 3339 UTC date-time format). Defaults to `nil`.
- volumeAnnotationsVersion (String.t): 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. Defaults to `nil`.
- volumeId (String.t): The volume id this resource is for. Defaults to `nil`.
"""
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