Show / Hide Table of Contents

Class ProjectsResource.LocationsResource.JobsResource.PauseRequest

Pauses a job. If a job is paused then the system will stop executing the job until it is re-enabled via ResumeJob. The state of the job is stored in state; if paused it will be set to Job.State.PAUSED. A job must be in Job.State.ENABLED to be paused.

Inheritance
System.Object
Google.Apis.Requests.ClientServiceRequest
Google.Apis.Requests.ClientServiceRequest<Job>
CloudSchedulerBaseServiceRequest<Job>
ProjectsResource.LocationsResource.JobsResource.PauseRequest
Implements
Google.Apis.Requests.IClientServiceRequest<Job>
Google.Apis.Requests.IClientServiceRequest
Inherited Members
CloudSchedulerBaseServiceRequest<Job>.Xgafv
CloudSchedulerBaseServiceRequest<Job>.AccessToken
CloudSchedulerBaseServiceRequest<Job>.Alt
CloudSchedulerBaseServiceRequest<Job>.Callback
CloudSchedulerBaseServiceRequest<Job>.Fields
CloudSchedulerBaseServiceRequest<Job>.Key
CloudSchedulerBaseServiceRequest<Job>.OauthToken
CloudSchedulerBaseServiceRequest<Job>.PrettyPrint
CloudSchedulerBaseServiceRequest<Job>.QuotaUser
CloudSchedulerBaseServiceRequest<Job>.UploadType
CloudSchedulerBaseServiceRequest<Job>.UploadProtocol
Google.Apis.Requests.ClientServiceRequest<Google.Apis.CloudScheduler.v1beta1.Data.Job>.Execute()
Google.Apis.Requests.ClientServiceRequest<Google.Apis.CloudScheduler.v1beta1.Data.Job>.ExecuteAsStream()
Google.Apis.Requests.ClientServiceRequest<Google.Apis.CloudScheduler.v1beta1.Data.Job>.ExecuteAsync()
Google.Apis.Requests.ClientServiceRequest<Google.Apis.CloudScheduler.v1beta1.Data.Job>.ExecuteAsync(System.Threading.CancellationToken)
Google.Apis.Requests.ClientServiceRequest<Google.Apis.CloudScheduler.v1beta1.Data.Job>.ExecuteAsStreamAsync()
Google.Apis.Requests.ClientServiceRequest<Google.Apis.CloudScheduler.v1beta1.Data.Job>.ExecuteAsStreamAsync(System.Threading.CancellationToken)
Google.Apis.Requests.ClientServiceRequest<Google.Apis.CloudScheduler.v1beta1.Data.Job>.CreateRequest(System.Nullable<System.Boolean>)
Google.Apis.Requests.ClientServiceRequest<Google.Apis.CloudScheduler.v1beta1.Data.Job>.GenerateRequestUri()
Google.Apis.Requests.ClientServiceRequest<Google.Apis.CloudScheduler.v1beta1.Data.Job>.GetDefaultETagAction(System.String)
Google.Apis.Requests.ClientServiceRequest<Google.Apis.CloudScheduler.v1beta1.Data.Job>.ETagAction
Google.Apis.Requests.ClientServiceRequest<Google.Apis.CloudScheduler.v1beta1.Data.Job>.ModifyRequest
Google.Apis.Requests.ClientServiceRequest<Google.Apis.CloudScheduler.v1beta1.Data.Job>.ValidateParameters
Google.Apis.Requests.ClientServiceRequest<Google.Apis.CloudScheduler.v1beta1.Data.Job>.RequestParameters
Google.Apis.Requests.ClientServiceRequest<Google.Apis.CloudScheduler.v1beta1.Data.Job>.Service
Google.Apis.Requests.ClientServiceRequest._unsuccessfulResponseHandlers
Google.Apis.Requests.ClientServiceRequest._exceptionHandlers
Google.Apis.Requests.ClientServiceRequest._executeInterceptors
Google.Apis.Requests.ClientServiceRequest.AddUnsuccessfulResponseHandler(Google.Apis.Http.IHttpUnsuccessfulResponseHandler)
Google.Apis.Requests.ClientServiceRequest.AddExceptionHandler(Google.Apis.Http.IHttpExceptionHandler)
Google.Apis.Requests.ClientServiceRequest.AddExecuteInterceptor(Google.Apis.Http.IHttpExecuteInterceptor)
Google.Apis.Requests.ClientServiceRequest.Credential
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Google.Apis.CloudScheduler.v1beta1
Assembly: Google.Apis.CloudScheduler.v1beta1.dll
Syntax
public class PauseRequest : CloudSchedulerBaseServiceRequest<Job>, IClientServiceRequest<Job>, IClientServiceRequest

Constructors

PauseRequest(IClientService, PauseJobRequest, String)

Constructs a new Pause request.

Declaration
public PauseRequest(IClientService service, PauseJobRequest body, string name)
Parameters
Type Name Description
Google.Apis.Services.IClientService service
PauseJobRequest body
System.String name

Properties

HttpMethod

Gets the HTTP method.

Declaration
public override string HttpMethod { get; }
Property Value
Type Description
System.String
Overrides
Google.Apis.Requests.ClientServiceRequest<Google.Apis.CloudScheduler.v1beta1.Data.Job>.HttpMethod

MethodName

Gets the method name.

Declaration
public override string MethodName { get; }
Property Value
Type Description
System.String
Overrides
Google.Apis.Requests.ClientServiceRequest<Google.Apis.CloudScheduler.v1beta1.Data.Job>.MethodName

Name

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

Declaration
[RequestParameter("name", RequestParameterType.Path)]
public virtual string Name { get; }
Property Value
Type Description
System.String

RestPath

Gets the REST path.

Declaration
public override string RestPath { get; }
Property Value
Type Description
System.String
Overrides
Google.Apis.Requests.ClientServiceRequest<Google.Apis.CloudScheduler.v1beta1.Data.Job>.RestPath

Methods

GetBody()

Returns the body of the request.

Declaration
protected override object GetBody()
Returns
Type Description
System.Object
Overrides
Google.Apis.Requests.ClientServiceRequest<Google.Apis.CloudScheduler.v1beta1.Data.Job>.GetBody()

InitParameters()

Initializes Pause parameter list.

Declaration
protected override void InitParameters()
Overrides
Google.Apis.CloudScheduler.v1beta1.CloudSchedulerBaseServiceRequest<Google.Apis.CloudScheduler.v1beta1.Data.Job>.InitParameters()

Implements

Google.Apis.Requests.IClientServiceRequest<TResponse>
Google.Apis.Requests.IClientServiceRequest
In This Article
Back to top