Copyright | (c) 2015 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
Language | Haskell2010 |
Publish a map asset.
See: Google Maps Engine API Reference for mapsengine.maps.publish
.
- type MapsPublishResource = "mapsengine" :> ("v1" :> ("maps" :> (Capture "id" Text :> ("publish" :> (QueryParam "force" Bool :> (QueryParam "alt" AltJSON :> Post `[JSON]` PublishResponse))))))
- mapsPublish :: Text -> MapsPublish
- data MapsPublish
- mapForce :: Lens' MapsPublish (Maybe Bool)
- mapId :: Lens' MapsPublish Text
REST Resource
type MapsPublishResource = "mapsengine" :> ("v1" :> ("maps" :> (Capture "id" Text :> ("publish" :> (QueryParam "force" Bool :> (QueryParam "alt" AltJSON :> Post `[JSON]` PublishResponse)))))) Source
A resource alias for mapsengine.maps.publish
method which the
MapsPublish
request conforms to.
Creating a Request
:: Text | |
-> MapsPublish |
Creates a value of MapsPublish
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data MapsPublish Source
Publish a map asset.
See: mapsPublish
smart constructor.
Request Lenses
mapForce :: Lens' MapsPublish (Maybe Bool) Source
If set to true, the API will allow publication of the map even if it's out of date. If false, the map must have a processingStatus of complete before publishing.
mapId :: Lens' MapsPublish Text Source
The ID of the map.