gogol-dataproc-0.2.0: Google Cloud Dataproc SDK.

Copyright(c) 2015-2016 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay@gmail.com>
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellNone
LanguageHaskell2010

Network.Google.Resource.Dataproc.Projects.Regions.Clusters.Patch

Contents

Description

Updates a cluster in a project.

See: Google Cloud Dataproc API Reference for dataproc.projects.regions.clusters.patch.

Synopsis

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

data ProjectsRegionsClustersPatch Source #

Updates a cluster in a project.

See: projectsRegionsClustersPatch smart constructor.

Instances

Eq ProjectsRegionsClustersPatch Source # 
Data ProjectsRegionsClustersPatch Source # 

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> ProjectsRegionsClustersPatch -> c ProjectsRegionsClustersPatch #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c ProjectsRegionsClustersPatch #

toConstr :: ProjectsRegionsClustersPatch -> Constr #

dataTypeOf :: ProjectsRegionsClustersPatch -> DataType #

dataCast1 :: Typeable (* -> *) t => (forall d. Data d => c (t d)) -> Maybe (c ProjectsRegionsClustersPatch) #

dataCast2 :: Typeable (* -> * -> *) t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c ProjectsRegionsClustersPatch) #

gmapT :: (forall b. Data b => b -> b) -> ProjectsRegionsClustersPatch -> ProjectsRegionsClustersPatch #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> ProjectsRegionsClustersPatch -> r #

gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> ProjectsRegionsClustersPatch -> r #

gmapQ :: (forall d. Data d => d -> u) -> ProjectsRegionsClustersPatch -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> ProjectsRegionsClustersPatch -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> ProjectsRegionsClustersPatch -> m ProjectsRegionsClustersPatch #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> ProjectsRegionsClustersPatch -> m ProjectsRegionsClustersPatch #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> ProjectsRegionsClustersPatch -> m ProjectsRegionsClustersPatch #

Show ProjectsRegionsClustersPatch Source # 
Generic ProjectsRegionsClustersPatch Source # 
GoogleRequest ProjectsRegionsClustersPatch Source # 
type Rep ProjectsRegionsClustersPatch Source # 
type Rep ProjectsRegionsClustersPatch = D1 (MetaData "ProjectsRegionsClustersPatch" "Network.Google.Resource.Dataproc.Projects.Regions.Clusters.Patch" "gogol-dataproc-0.2.0-KcZ0dIGV1joB7pyOCocrVW" False) (C1 (MetaCons "ProjectsRegionsClustersPatch'" PrefixI True) ((:*:) ((:*:) ((:*:) (S1 (MetaSel (Just Symbol "_prcpXgafv") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))) ((:*:) (S1 (MetaSel (Just Symbol "_prcpUploadProtocol") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))) (S1 (MetaSel (Just Symbol "_prcpUpdateMask") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))))) ((:*:) (S1 (MetaSel (Just Symbol "_prcpPp") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Bool)) ((:*:) (S1 (MetaSel (Just Symbol "_prcpAccessToken") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))) (S1 (MetaSel (Just Symbol "_prcpUploadType") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)))))) ((:*:) ((:*:) (S1 (MetaSel (Just Symbol "_prcpPayload") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Cluster)) ((:*:) (S1 (MetaSel (Just Symbol "_prcpBearerToken") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))) (S1 (MetaSel (Just Symbol "_prcpClusterName") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text)))) ((:*:) (S1 (MetaSel (Just Symbol "_prcpRegion") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text)) ((:*:) (S1 (MetaSel (Just Symbol "_prcpProjectId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text)) (S1 (MetaSel (Just Symbol "_prcpCallback") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))))))))
type Scopes ProjectsRegionsClustersPatch Source # 
type Scopes ProjectsRegionsClustersPatch = (:) Symbol "https://www.googleapis.com/auth/cloud-platform" ([] Symbol)
type Rs ProjectsRegionsClustersPatch Source # 

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.

prcpUploadType :: Lens' ProjectsRegionsClustersPatch (Maybe Text) Source #

Legacy upload protocol for media (e.g. "media", "multipart").

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.