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: Cloud Dataproc API Reference for dataproc.projects.regions.clusters.patch
.
Synopsis
- type ProjectsRegionsClustersPatchResource = "v1" :> ("projects" :> (Capture "projectId" Text :> ("regions" :> (Capture "region" Text :> ("clusters" :> (Capture "clusterName" Text :> (QueryParam "$.xgafv" Xgafv :> (QueryParam "requestId" Text :> (QueryParam "upload_protocol" Text :> (QueryParam "updateMask" GFieldMask :> (QueryParam "access_token" Text :> (QueryParam "uploadType" Text :> (QueryParam "gracefulDecommissionTimeout" GDuration :> (QueryParam "callback" Text :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] Cluster :> Patch '[JSON] Operation))))))))))))))))
- projectsRegionsClustersPatch :: Cluster -> Text -> Text -> Text -> ProjectsRegionsClustersPatch
- data ProjectsRegionsClustersPatch
- prcpXgafv :: Lens' ProjectsRegionsClustersPatch (Maybe Xgafv)
- prcpRequestId :: Lens' ProjectsRegionsClustersPatch (Maybe Text)
- prcpUploadProtocol :: Lens' ProjectsRegionsClustersPatch (Maybe Text)
- prcpUpdateMask :: Lens' ProjectsRegionsClustersPatch (Maybe GFieldMask)
- prcpAccessToken :: Lens' ProjectsRegionsClustersPatch (Maybe Text)
- prcpUploadType :: Lens' ProjectsRegionsClustersPatch (Maybe Text)
- prcpPayload :: Lens' ProjectsRegionsClustersPatch Cluster
- prcpGracefulDecommissionTimeout :: Lens' ProjectsRegionsClustersPatch (Maybe Scientific)
- 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" Xgafv :> (QueryParam "requestId" Text :> (QueryParam "upload_protocol" Text :> (QueryParam "updateMask" GFieldMask :> (QueryParam "access_token" Text :> (QueryParam "uploadType" Text :> (QueryParam "gracefulDecommissionTimeout" GDuration :> (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.
Instances
Request Lenses
prcpRequestId :: Lens' ProjectsRegionsClustersPatch (Maybe Text) Source #
Optional. A unique id used to identify the request. If the server receives two UpdateClusterRequest 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.
prcpUploadProtocol :: Lens' ProjectsRegionsClustersPatch (Maybe Text) Source #
Upload protocol for media (e.g. "raw", "multipart").
prcpUpdateMask :: Lens' ProjectsRegionsClustersPatch (Maybe GFieldMask) 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, only the following fields can be updated: > ---------------------------------------------------- ------------------------------- > Mask Purpose > labels Update labels > config.worker_config.num_instances Resize primary worker group > config.secondary_worker_config.num_instances Resize secondary worker group > ---------------------------------------------------- -------------------------------
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.
prcpGracefulDecommissionTimeout :: Lens' ProjectsRegionsClustersPatch (Maybe Scientific) Source #
Optional. Timeout for graceful YARN decomissioning. Graceful decommissioning allows removing nodes from the cluster without interrupting jobs in progress. Timeout specifies how long to wait for jobs in progress to finish before forcefully removing nodes (and potentially interrupting jobs). Default timeout is 0 (for forceful decommission), and the maximum allowed timeout is 1 day.Only supported on Dataproc image versions 1.2 and higher.
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