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 |
Updates a cluster in a project.
See: Google Cloud Dataproc API Reference for dataproc.projects.regions.clusters.patch
.
- type ProjectsRegionsClustersPatchResource = "v1" :> ("projects" :> (Capture "projectId" Text :> ("regions" :> (Capture "region" Text :> ("clusters" :> (Capture "clusterName" Text :> (QueryParam "$.xgafv" Text :> (QueryParam "upload_protocol" Text :> (QueryParam "updateMask" Text :> (QueryParam "pp" Bool :> (QueryParam "access_token" Text :> (QueryParam "uploadType" Text :> (QueryParam "bearer_token" Text :> (QueryParam "callback" Text :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] Cluster :> Patch '[JSON] Operation))))))))))))))))
- projectsRegionsClustersPatch :: Cluster -> Text -> Text -> Text -> ProjectsRegionsClustersPatch
- data ProjectsRegionsClustersPatch
- prcpXgafv :: Lens' ProjectsRegionsClustersPatch (Maybe Text)
- prcpUploadProtocol :: Lens' ProjectsRegionsClustersPatch (Maybe Text)
- prcpUpdateMask :: Lens' ProjectsRegionsClustersPatch (Maybe Text)
- prcpPp :: Lens' ProjectsRegionsClustersPatch Bool
- prcpAccessToken :: Lens' ProjectsRegionsClustersPatch (Maybe Text)
- prcpUploadType :: Lens' ProjectsRegionsClustersPatch (Maybe Text)
- prcpPayload :: Lens' ProjectsRegionsClustersPatch Cluster
- prcpBearerToken :: Lens' ProjectsRegionsClustersPatch (Maybe Text)
- prcpClusterName :: Lens' ProjectsRegionsClustersPatch Text
- prcpRegion :: Lens' ProjectsRegionsClustersPatch Text
- prcpProjectId :: Lens' ProjectsRegionsClustersPatch Text
- prcpCallback :: Lens' ProjectsRegionsClustersPatch (Maybe Text)
REST Resource
type ProjectsRegionsClustersPatchResource = "v1" :> ("projects" :> (Capture "projectId" Text :> ("regions" :> (Capture "region" Text :> ("clusters" :> (Capture "clusterName" Text :> (QueryParam "$.xgafv" Text :> (QueryParam "upload_protocol" Text :> (QueryParam "updateMask" Text :> (QueryParam "pp" Bool :> (QueryParam "access_token" Text :> (QueryParam "uploadType" Text :> (QueryParam "bearer_token" Text :> (QueryParam "callback" Text :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] Cluster :> Patch '[JSON] Operation)))))))))))))))) Source #
A resource alias for dataproc.projects.regions.clusters.patch
method which the
ProjectsRegionsClustersPatch
request conforms to.
Creating a Request
projectsRegionsClustersPatch Source #
:: Cluster | |
-> Text | |
-> Text | |
-> Text | |
-> ProjectsRegionsClustersPatch |
Creates a value of ProjectsRegionsClustersPatch
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data ProjectsRegionsClustersPatch Source #
Updates a cluster in a project.
See: projectsRegionsClustersPatch
smart constructor.
Request Lenses
prcpUploadProtocol :: Lens' ProjectsRegionsClustersPatch (Maybe Text) Source #
Upload protocol for media (e.g. "raw", "multipart").
prcpUpdateMask :: Lens' ProjectsRegionsClustersPatch (Maybe Text) Source #
- Required
- Specifies the path, relative to Cluster, of the field to update. For example, to change the number of workers in a cluster to 5, the update_mask parameter would be specified as config.worker_config.num_instances, and the `PATCH` request body would specify the new value, as follows: { "config":{ "workerConfig":{ "numInstances":"5" } } } Similarly, to change the number of preemptible workers in a cluster to 5, the update_mask parameter would be config.secondary_worker_config.num_instances, and the `PATCH` request body would be set as follows: { "config":{ "secondaryWorkerConfig":{ "numInstances":"5" } } } Note: Currently, config.worker_config.num_instances and config.secondary_worker_config.num_instances are the only fields that can be updated.
prcpAccessToken :: Lens' ProjectsRegionsClustersPatch (Maybe Text) Source #
OAuth access token.
prcpUploadType :: Lens' ProjectsRegionsClustersPatch (Maybe Text) Source #
Legacy upload protocol for media (e.g. "media", "multipart").
prcpPayload :: Lens' ProjectsRegionsClustersPatch Cluster Source #
Multipart request metadata.
prcpBearerToken :: Lens' ProjectsRegionsClustersPatch (Maybe Text) Source #
OAuth bearer token.
prcpClusterName :: Lens' ProjectsRegionsClustersPatch Text Source #
- Required
- The cluster name.
prcpRegion :: Lens' ProjectsRegionsClustersPatch Text Source #
- Required
- The Cloud Dataproc region in which to handle the request.
prcpProjectId :: Lens' ProjectsRegionsClustersPatch Text Source #
- Required
- The ID of the Google Cloud Platform project the cluster belongs to.
prcpCallback :: Lens' ProjectsRegionsClustersPatch (Maybe Text) Source #
JSONP