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 cluster in a project.
See: Cloud Dataproc API Reference for dataproc.projects.regions.clusters.create
.
Synopsis
- type ProjectsRegionsClustersCreateResource = "v1" :> ("projects" :> (Capture "projectId" Text :> ("regions" :> (Capture "region" Text :> ("clusters" :> (QueryParam "$.xgafv" Xgafv :> (QueryParam "requestId" Text :> (QueryParam "upload_protocol" Text :> (QueryParam "access_token" Text :> (QueryParam "uploadType" Text :> (QueryParam "callback" Text :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] Cluster :> Post '[JSON] Operation)))))))))))))
- projectsRegionsClustersCreate :: Cluster -> Text -> Text -> ProjectsRegionsClustersCreate
- data ProjectsRegionsClustersCreate
- prccXgafv :: Lens' ProjectsRegionsClustersCreate (Maybe Xgafv)
- prccRequestId :: Lens' ProjectsRegionsClustersCreate (Maybe Text)
- prccUploadProtocol :: Lens' ProjectsRegionsClustersCreate (Maybe Text)
- prccAccessToken :: Lens' ProjectsRegionsClustersCreate (Maybe Text)
- prccUploadType :: Lens' ProjectsRegionsClustersCreate (Maybe Text)
- prccPayload :: Lens' ProjectsRegionsClustersCreate Cluster
- prccRegion :: Lens' ProjectsRegionsClustersCreate Text
- prccProjectId :: Lens' ProjectsRegionsClustersCreate Text
- prccCallback :: Lens' ProjectsRegionsClustersCreate (Maybe Text)
REST Resource
type ProjectsRegionsClustersCreateResource = "v1" :> ("projects" :> (Capture "projectId" Text :> ("regions" :> (Capture "region" Text :> ("clusters" :> (QueryParam "$.xgafv" Xgafv :> (QueryParam "requestId" Text :> (QueryParam "upload_protocol" Text :> (QueryParam "access_token" Text :> (QueryParam "uploadType" Text :> (QueryParam "callback" Text :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] Cluster :> Post '[JSON] Operation))))))))))))) Source #
A resource alias for dataproc.projects.regions.clusters.create
method which the
ProjectsRegionsClustersCreate
request conforms to.
Creating a Request
projectsRegionsClustersCreate Source #
Creates a value of ProjectsRegionsClustersCreate
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data ProjectsRegionsClustersCreate Source #
Creates a cluster in a project.
See: projectsRegionsClustersCreate
smart constructor.
Instances
Request Lenses
prccRequestId :: Lens' ProjectsRegionsClustersCreate (Maybe Text) Source #
Optional. A unique id used to identify the request. If the server receives two CreateClusterRequest requests with the same id, then the second request will be ignored and the first google.longrunning.Operation created and stored in the backend is returned.It is recommended to always set this value to a UUID (https://en.wikipedia.org/wiki/Universally_unique_identifier).The id must contain only letters (a-z, A-Z), numbers (0-9), underscores (_), and hyphens (-). The maximum length is 40 characters.
prccUploadProtocol :: Lens' ProjectsRegionsClustersCreate (Maybe Text) Source #
Upload protocol for media (e.g. "raw", "multipart").
prccAccessToken :: Lens' ProjectsRegionsClustersCreate (Maybe Text) Source #
OAuth access token.
prccUploadType :: Lens' ProjectsRegionsClustersCreate (Maybe Text) Source #
Legacy upload protocol for media (e.g. "media", "multipart").
prccPayload :: Lens' ProjectsRegionsClustersCreate Cluster Source #
Multipart request metadata.
prccRegion :: Lens' ProjectsRegionsClustersCreate Text Source #
Required. The Cloud Dataproc region in which to handle the request.
prccProjectId :: Lens' ProjectsRegionsClustersCreate Text Source #
Required. The ID of the Google Cloud Platform project that the cluster belongs to.
prccCallback :: Lens' ProjectsRegionsClustersCreate (Maybe Text) Source #
JSONP