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 a new Category.
See: Stackdriver Monitoring API Reference for monitoring.projects.categories.create
.
- type ProjectsCategoriesCreateResource = "v3" :> (Capture "parent" Text :> ("categories" :> (QueryParam "$.xgafv" Xgafv :> (QueryParam "upload_protocol" Text :> (QueryParam "pp" Bool :> (QueryParam "access_token" Text :> (QueryParam "uploadType" Text :> (QueryParam "bearer_token" Text :> (QueryParam "callback" Text :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] Category :> Post '[JSON] Category)))))))))))
- projectsCategoriesCreate :: Text -> Category -> ProjectsCategoriesCreate
- data ProjectsCategoriesCreate
- pccParent :: Lens' ProjectsCategoriesCreate Text
- pccXgafv :: Lens' ProjectsCategoriesCreate (Maybe Xgafv)
- pccUploadProtocol :: Lens' ProjectsCategoriesCreate (Maybe Text)
- pccPp :: Lens' ProjectsCategoriesCreate Bool
- pccAccessToken :: Lens' ProjectsCategoriesCreate (Maybe Text)
- pccUploadType :: Lens' ProjectsCategoriesCreate (Maybe Text)
- pccPayload :: Lens' ProjectsCategoriesCreate Category
- pccBearerToken :: Lens' ProjectsCategoriesCreate (Maybe Text)
- pccCallback :: Lens' ProjectsCategoriesCreate (Maybe Text)
REST Resource
type ProjectsCategoriesCreateResource = "v3" :> (Capture "parent" Text :> ("categories" :> (QueryParam "$.xgafv" Xgafv :> (QueryParam "upload_protocol" Text :> (QueryParam "pp" Bool :> (QueryParam "access_token" Text :> (QueryParam "uploadType" Text :> (QueryParam "bearer_token" Text :> (QueryParam "callback" Text :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] Category :> Post '[JSON] Category))))))))))) Source #
A resource alias for monitoring.projects.categories.create
method which the
ProjectsCategoriesCreate
request conforms to.
Creating a Request
projectsCategoriesCreate Source #
Creates a value of ProjectsCategoriesCreate
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data ProjectsCategoriesCreate Source #
Create a new Category.
See: projectsCategoriesCreate
smart constructor.
Request Lenses
pccParent :: Lens' ProjectsCategoriesCreate Text Source #
Resource parent of the project to get. Resource parent form is projects/{project_id_or_number}.
pccUploadProtocol :: Lens' ProjectsCategoriesCreate (Maybe Text) Source #
Upload protocol for media (e.g. "raw", "multipart").
pccAccessToken :: Lens' ProjectsCategoriesCreate (Maybe Text) Source #
OAuth access token.
pccUploadType :: Lens' ProjectsCategoriesCreate (Maybe Text) Source #
Legacy upload protocol for media (e.g. "media", "multipart").
pccPayload :: Lens' ProjectsCategoriesCreate Category Source #
Multipart request metadata.
pccBearerToken :: Lens' ProjectsCategoriesCreate (Maybe Text) Source #
OAuth bearer token.
pccCallback :: Lens' ProjectsCategoriesCreate (Maybe Text) Source #
JSONP