gogol-cloudscheduler-0.4.0: Google Cloud Scheduler 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.CloudScheduler.Projects.Locations.Jobs.Resume

Contents

Description

Resume a job. This method reenables a job after it has been Job.State.PAUSED. The state of a job is stored in Job.state; after calling this method it will be set to Job.State.ENABLED. A job must be in Job.State.PAUSED to be resumed.

See: Cloud Scheduler API Reference for cloudscheduler.projects.locations.jobs.resume.

Synopsis

REST Resource

type ProjectsLocationsJobsResumeResource = "v1beta1" :> (CaptureMode "name" "resume" Text :> (QueryParam "$.xgafv" Xgafv :> (QueryParam "upload_protocol" Text :> (QueryParam "access_token" Text :> (QueryParam "uploadType" Text :> (QueryParam "callback" Text :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] ResumeJobRequest :> Post '[JSON] Job)))))))) Source #

A resource alias for cloudscheduler.projects.locations.jobs.resume method which the ProjectsLocationsJobsResume request conforms to.

Creating a Request

projectsLocationsJobsResume Source #

Creates a value of ProjectsLocationsJobsResume with the minimum fields required to make a request.

Use one of the following lenses to modify other fields as desired:

data ProjectsLocationsJobsResume Source #

Resume a job. This method reenables a job after it has been Job.State.PAUSED. The state of a job is stored in Job.state; after calling this method it will be set to Job.State.ENABLED. A job must be in Job.State.PAUSED to be resumed.

See: projectsLocationsJobsResume smart constructor.

Instances
Eq ProjectsLocationsJobsResume Source # 
Instance details

Defined in Network.Google.Resource.CloudScheduler.Projects.Locations.Jobs.Resume

Data ProjectsLocationsJobsResume Source # 
Instance details

Defined in Network.Google.Resource.CloudScheduler.Projects.Locations.Jobs.Resume

Methods

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

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

toConstr :: ProjectsLocationsJobsResume -> Constr #

dataTypeOf :: ProjectsLocationsJobsResume -> DataType #

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

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

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

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

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

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

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

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

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

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

Show ProjectsLocationsJobsResume Source # 
Instance details

Defined in Network.Google.Resource.CloudScheduler.Projects.Locations.Jobs.Resume

Generic ProjectsLocationsJobsResume Source # 
Instance details

Defined in Network.Google.Resource.CloudScheduler.Projects.Locations.Jobs.Resume

Associated Types

type Rep ProjectsLocationsJobsResume :: Type -> Type #

GoogleRequest ProjectsLocationsJobsResume Source # 
Instance details

Defined in Network.Google.Resource.CloudScheduler.Projects.Locations.Jobs.Resume

type Rep ProjectsLocationsJobsResume Source # 
Instance details

Defined in Network.Google.Resource.CloudScheduler.Projects.Locations.Jobs.Resume

type Rep ProjectsLocationsJobsResume = D1 (MetaData "ProjectsLocationsJobsResume" "Network.Google.Resource.CloudScheduler.Projects.Locations.Jobs.Resume" "gogol-cloudscheduler-0.4.0-48VkVd2TeO9C5YcAbm9sQw" False) (C1 (MetaCons "ProjectsLocationsJobsResume'" PrefixI True) ((S1 (MetaSel (Just "_pljrXgafv") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Xgafv)) :*: (S1 (MetaSel (Just "_pljrUploadProtocol") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: S1 (MetaSel (Just "_pljrAccessToken") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)))) :*: ((S1 (MetaSel (Just "_pljrUploadType") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: S1 (MetaSel (Just "_pljrPayload") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 ResumeJobRequest)) :*: (S1 (MetaSel (Just "_pljrName") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text) :*: S1 (MetaSel (Just "_pljrCallback") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))))))
type Scopes ProjectsLocationsJobsResume Source # 
Instance details

Defined in Network.Google.Resource.CloudScheduler.Projects.Locations.Jobs.Resume

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

Defined in Network.Google.Resource.CloudScheduler.Projects.Locations.Jobs.Resume

Request Lenses

pljrUploadProtocol :: Lens' ProjectsLocationsJobsResume (Maybe Text) Source #

Upload protocol for media (e.g. "raw", "multipart").

pljrUploadType :: Lens' ProjectsLocationsJobsResume (Maybe Text) Source #

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

pljrName :: Lens' ProjectsLocationsJobsResume Text Source #

Required. The job name. For example: `projects/PROJECT_ID/locations/LOCATION_ID/jobs/JOB_ID`.