# 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.Volume do @moduledoc """ ## Attributes - accessInfo (VolumeAccessInfo): Defaults to: `null`. - etag (String.t): Opaque identifier for a specific version of a volume resource. (In LITE projection) Defaults to: `null`. - id (String.t): Unique identifier for a volume. (In LITE projection.) Defaults to: `null`. - kind (String.t): Resource type for a volume. (In LITE projection.) Defaults to: `null`. - layerInfo (VolumeLayerInfo): Defaults to: `null`. - recommendedInfo (VolumeRecommendedInfo): Defaults to: `null`. - saleInfo (VolumeSaleInfo): Defaults to: `null`. - searchInfo (VolumeSearchInfo): Defaults to: `null`. - selfLink (String.t): URL to this resource. (In LITE projection.) Defaults to: `null`. - userInfo (VolumeUserInfo): Defaults to: `null`. - volumeInfo (VolumeVolumeInfo): Defaults to: `null`. """ use GoogleApi.Gax.ModelBase @type t :: %__MODULE__{ :accessInfo => GoogleApi.Books.V1.Model.VolumeAccessInfo.t(), :etag => any(), :id => any(), :kind => any(), :layerInfo => GoogleApi.Books.V1.Model.VolumeLayerInfo.t(), :recommendedInfo => GoogleApi.Books.V1.Model.VolumeRecommendedInfo.t(), :saleInfo => GoogleApi.Books.V1.Model.VolumeSaleInfo.t(), :searchInfo => GoogleApi.Books.V1.Model.VolumeSearchInfo.t(), :selfLink => any(), :userInfo => GoogleApi.Books.V1.Model.VolumeUserInfo.t(), :volumeInfo => GoogleApi.Books.V1.Model.VolumeVolumeInfo.t() } field(:accessInfo, as: GoogleApi.Books.V1.Model.VolumeAccessInfo) field(:etag) field(:id) field(:kind) field(:layerInfo, as: GoogleApi.Books.V1.Model.VolumeLayerInfo) field(:recommendedInfo, as: GoogleApi.Books.V1.Model.VolumeRecommendedInfo) field(:saleInfo, as: GoogleApi.Books.V1.Model.VolumeSaleInfo) field(:searchInfo, as: GoogleApi.Books.V1.Model.VolumeSearchInfo) field(:selfLink) field(:userInfo, as: GoogleApi.Books.V1.Model.VolumeUserInfo) field(:volumeInfo, as: GoogleApi.Books.V1.Model.VolumeVolumeInfo) end defimpl Poison.Decoder, for: GoogleApi.Books.V1.Model.Volume do def decode(value, options) do GoogleApi.Books.V1.Model.Volume.decode(value, options) end end defimpl Poison.Encoder, for: GoogleApi.Books.V1.Model.Volume do def encode(value, options) do GoogleApi.Gax.ModelBase.encode(value, options) end end