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 layer asset.
See: Google Maps Engine API Reference for mapsengine.layers.publish
.
- type LayersPublishResource = "mapsengine" :> ("v1" :> ("layers" :> (Capture "id" Text :> ("publish" :> (QueryParam "force" Bool :> (QueryParam "alt" AltJSON :> Post `[JSON]` PublishResponse))))))
- layersPublish :: Text -> LayersPublish
- data LayersPublish
- lpForce :: Lens' LayersPublish (Maybe Bool)
- lpId :: Lens' LayersPublish Text
REST Resource
type LayersPublishResource = "mapsengine" :> ("v1" :> ("layers" :> (Capture "id" Text :> ("publish" :> (QueryParam "force" Bool :> (QueryParam "alt" AltJSON :> Post `[JSON]` PublishResponse)))))) Source
A resource alias for mapsengine.layers.publish
method which the
LayersPublish
request conforms to.
Creating a Request
:: Text | |
-> LayersPublish |
Creates a value of LayersPublish
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data LayersPublish Source
Publish a layer asset.
See: layersPublish
smart constructor.
Request Lenses
lpForce :: Lens' LayersPublish (Maybe Bool) Source
If set to true, the API will allow publication of the layer even if it's out of date. If not true, you'll need to reprocess any out-of-date layer before publishing.
lpId :: Lens' LayersPublish Text Source
The ID of the layer.