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 |
Request that a new Project be created. The result is an Operation which can be used to track the creation process. It is automatically deleted after a few hours, so there is no need to call DeleteOperation. Our SLO permits Project creation to take up to 30 seconds at the 90th percentile. As of 2016-08-29, we are observing 6 seconds 50th percentile latency. 95th percentile latency is around 11 seconds. We recommend polling at the 5th second with an exponential backoff.
See: Google Cloud Resource Manager API Reference for cloudresourcemanager.projects.create
.
- type ProjectsCreateResource = "v1" :> ("projects" :> (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] Project :> Post '[JSON] Operation))))))))))
- projectsCreate :: Project -> ProjectsCreate
- data ProjectsCreate
- pcXgafv :: Lens' ProjectsCreate (Maybe Xgafv)
- pcUploadProtocol :: Lens' ProjectsCreate (Maybe Text)
- pcPp :: Lens' ProjectsCreate Bool
- pcAccessToken :: Lens' ProjectsCreate (Maybe Text)
- pcUploadType :: Lens' ProjectsCreate (Maybe Text)
- pcPayload :: Lens' ProjectsCreate Project
- pcBearerToken :: Lens' ProjectsCreate (Maybe Text)
- pcCallback :: Lens' ProjectsCreate (Maybe Text)
REST Resource
type ProjectsCreateResource = "v1" :> ("projects" :> (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] Project :> Post '[JSON] Operation)))))))))) Source #
A resource alias for cloudresourcemanager.projects.create
method which the
ProjectsCreate
request conforms to.
Creating a Request
Creates a value of ProjectsCreate
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data ProjectsCreate Source #
Request that a new Project be created. The result is an Operation which can be used to track the creation process. It is automatically deleted after a few hours, so there is no need to call DeleteOperation. Our SLO permits Project creation to take up to 30 seconds at the 90th percentile. As of 2016-08-29, we are observing 6 seconds 50th percentile latency. 95th percentile latency is around 11 seconds. We recommend polling at the 5th second with an exponential backoff.
See: projectsCreate
smart constructor.
Request Lenses
pcUploadProtocol :: Lens' ProjectsCreate (Maybe Text) Source #
Upload protocol for media (e.g. "raw", "multipart").
pcAccessToken :: Lens' ProjectsCreate (Maybe Text) Source #
OAuth access token.
pcUploadType :: Lens' ProjectsCreate (Maybe Text) Source #
Legacy upload protocol for media (e.g. "media", "multipart").
pcBearerToken :: Lens' ProjectsCreate (Maybe Text) Source #
OAuth bearer token.
pcCallback :: Lens' ProjectsCreate (Maybe Text) Source #
JSONP