Current section

Files

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

lib/google_api/books/v1/model/geolayerdata_geo.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.GeolayerdataGeo do
@moduledoc """
## Attributes
- boundary ([[Object]]): The boundary of the location as a set of loops containing pairs of latitude, longitude coordinates. Defaults to: `null`.
- cachePolicy (String.t): The cache policy active for this data. EX: UNRESTRICTED, RESTRICTED, NEVER Defaults to: `null`.
- countryCode (String.t): The country code of the location. Defaults to: `null`.
- latitude (float()): The latitude of the location. Defaults to: `null`.
- longitude (float()): The longitude of the location. Defaults to: `null`.
- mapType (String.t): The type of map that should be used for this location. EX: HYBRID, ROADMAP, SATELLITE, TERRAIN Defaults to: `null`.
- viewport (GeolayerdataGeoViewport): Defaults to: `null`.
- zoom (integer()): The Zoom level to use for the map. Zoom levels between 0 (the lowest zoom level, in which the entire world can be seen on one map) to 21+ (down to individual buildings). See: https://developers.google.com/maps/documentation/staticmaps/#Zoomlevels Defaults to: `null`.
"""
use GoogleApi.Gax.ModelBase
@type t :: %__MODULE__{
:boundary => list(),
:cachePolicy => any(),
:countryCode => any(),
:latitude => any(),
:longitude => any(),
:mapType => any(),
:viewport => GoogleApi.Books.V1.Model.GeolayerdataGeoViewport.t(),
:zoom => any()
}
field(:boundary, type: :list)
field(:cachePolicy)
field(:countryCode)
field(:latitude)
field(:longitude)
field(:mapType)
field(:viewport, as: GoogleApi.Books.V1.Model.GeolayerdataGeoViewport)
field(:zoom)
end
defimpl Poison.Decoder, for: GoogleApi.Books.V1.Model.GeolayerdataGeo do
def decode(value, options) do
GoogleApi.Books.V1.Model.GeolayerdataGeo.decode(value, options)
end
end
defimpl Poison.Encoder, for: GoogleApi.Books.V1.Model.GeolayerdataGeo do
def encode(value, options) do
GoogleApi.Gax.ModelBase.encode(value, options)
end
end