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 |
Creates a new occurrence.
See: Container Analysis API Reference for containeranalysis.projects.occurrences.create
.
Synopsis
- type ProjectsOccurrencesCreateResource = "v1beta1" :> (Capture "parent" Text :> ("occurrences" :> (QueryParam "$.xgafv" Xgafv :> (QueryParam "upload_protocol" Text :> (QueryParam "access_token" Text :> (QueryParam "uploadType" Text :> (QueryParam "callback" Text :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] Occurrence :> Post '[JSON] Occurrence)))))))))
- projectsOccurrencesCreate :: Text -> Occurrence -> ProjectsOccurrencesCreate
- data ProjectsOccurrencesCreate
- pocParent :: Lens' ProjectsOccurrencesCreate Text
- pocXgafv :: Lens' ProjectsOccurrencesCreate (Maybe Xgafv)
- pocUploadProtocol :: Lens' ProjectsOccurrencesCreate (Maybe Text)
- pocAccessToken :: Lens' ProjectsOccurrencesCreate (Maybe Text)
- pocUploadType :: Lens' ProjectsOccurrencesCreate (Maybe Text)
- pocPayload :: Lens' ProjectsOccurrencesCreate Occurrence
- pocCallback :: Lens' ProjectsOccurrencesCreate (Maybe Text)
REST Resource
type ProjectsOccurrencesCreateResource = "v1beta1" :> (Capture "parent" Text :> ("occurrences" :> (QueryParam "$.xgafv" Xgafv :> (QueryParam "upload_protocol" Text :> (QueryParam "access_token" Text :> (QueryParam "uploadType" Text :> (QueryParam "callback" Text :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] Occurrence :> Post '[JSON] Occurrence))))))))) Source #
A resource alias for containeranalysis.projects.occurrences.create
method which the
ProjectsOccurrencesCreate
request conforms to.
Creating a Request
projectsOccurrencesCreate Source #
Creates a value of ProjectsOccurrencesCreate
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data ProjectsOccurrencesCreate Source #
Creates a new occurrence.
See: projectsOccurrencesCreate
smart constructor.
Instances
Request Lenses
pocParent :: Lens' ProjectsOccurrencesCreate Text Source #
The name of the project in the form of `projects/[PROJECT_ID]`, under which the occurrence is to be created.
pocUploadProtocol :: Lens' ProjectsOccurrencesCreate (Maybe Text) Source #
Upload protocol for media (e.g. "raw", "multipart").
pocAccessToken :: Lens' ProjectsOccurrencesCreate (Maybe Text) Source #
OAuth access token.
pocUploadType :: Lens' ProjectsOccurrencesCreate (Maybe Text) Source #
Legacy upload protocol for media (e.g. "media", "multipart").
pocPayload :: Lens' ProjectsOccurrencesCreate Occurrence Source #
Multipart request metadata.
pocCallback :: Lens' ProjectsOccurrencesCreate (Maybe Text) Source #
JSONP