Copyright | (c) 2015-2016 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 |
Create an icon.
See: Google Maps Engine API Reference for mapsengine.projects.icons.create
.
- type ProjectsIconsCreateResource = ("mapsengine" :> ("v1" :> ("projects" :> (Capture "projectId" Text :> ("icons" :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] Icon :> Post '[JSON] Icon))))))) :<|> ("upload" :> ("mapsengine" :> ("v1" :> ("projects" :> (Capture "projectId" Text :> ("icons" :> (QueryParam "alt" AltJSON :> (QueryParam "uploadType" Multipart :> (MultipartRelated '[JSON] Icon :> Post '[JSON] Icon)))))))))
- projectsIconsCreate :: Icon -> Text -> ProjectsIconsCreate
- data ProjectsIconsCreate
- picPayload :: Lens' ProjectsIconsCreate Icon
- picProjectId :: Lens' ProjectsIconsCreate Text
REST Resource
type ProjectsIconsCreateResource = ("mapsengine" :> ("v1" :> ("projects" :> (Capture "projectId" Text :> ("icons" :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] Icon :> Post '[JSON] Icon))))))) :<|> ("upload" :> ("mapsengine" :> ("v1" :> ("projects" :> (Capture "projectId" Text :> ("icons" :> (QueryParam "alt" AltJSON :> (QueryParam "uploadType" Multipart :> (MultipartRelated '[JSON] Icon :> Post '[JSON] Icon))))))))) Source #
A resource alias for mapsengine.projects.icons.create
method which the
ProjectsIconsCreate
request conforms to.
Creating a Request
Creates a value of ProjectsIconsCreate
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data ProjectsIconsCreate Source #
Create an icon.
See: projectsIconsCreate
smart constructor.
Request Lenses
picPayload :: Lens' ProjectsIconsCreate Icon Source #
Multipart request metadata.
picProjectId :: Lens' ProjectsIconsCreate Text Source #
The ID of the project.