gogol-dataproc-0.4.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: 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" 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

data ProjectsRegionsClustersPatch Source #

Updates a cluster in a project.

See: projectsRegionsClustersPatch smart constructor.

Instances
Eq ProjectsRegionsClustersPatch Source # 
Instance details

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

Data ProjectsRegionsClustersPatch Source # 
Instance details

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

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 # 
Instance details

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

Generic ProjectsRegionsClustersPatch Source # 
Instance details

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

Associated Types

type Rep ProjectsRegionsClustersPatch :: Type -> Type #

GoogleRequest ProjectsRegionsClustersPatch Source # 
Instance details

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

type Rep ProjectsRegionsClustersPatch Source # 
Instance details

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

type Rep ProjectsRegionsClustersPatch = D1 (MetaData "ProjectsRegionsClustersPatch" "Network.Google.Resource.Dataproc.Projects.Regions.Clusters.Patch" "gogol-dataproc-0.4.0-1udjiqosCX7iHPt6mLpl8" False) (C1 (MetaCons "ProjectsRegionsClustersPatch'" PrefixI True) (((S1 (MetaSel (Just "_prcpXgafv") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Xgafv)) :*: (S1 (MetaSel (Just "_prcpRequestId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: S1 (MetaSel (Just "_prcpUploadProtocol") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)))) :*: (S1 (MetaSel (Just "_prcpUpdateMask") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe GFieldMask)) :*: (S1 (MetaSel (Just "_prcpAccessToken") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: S1 (MetaSel (Just "_prcpUploadType") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))))) :*: ((S1 (MetaSel (Just "_prcpPayload") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Cluster) :*: (S1 (MetaSel (Just "_prcpGracefulDecommissionTimeout") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe GDuration)) :*: S1 (MetaSel (Just "_prcpClusterName") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text))) :*: (S1 (MetaSel (Just "_prcpRegion") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text) :*: (S1 (MetaSel (Just "_prcpProjectId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text) :*: S1 (MetaSel (Just "_prcpCallback") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)))))))
type Scopes ProjectsRegionsClustersPatch Source # 
Instance details

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

type Scopes ProjectsRegionsClustersPatch = "https://www.googleapis.com/auth/cloud-platform" ': ([] :: [Symbol])
type Rs ProjectsRegionsClustersPatch Source # 
Instance details

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

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 > ---------------------------------------------------- -------------------------------

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

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

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.

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.