Class ProjectsResource.LocationsResource.JobsResource.PatchRequest
Updates a job. If successful, the updated Job is returned. If the job does not exist, NOT_FOUND
is
returned. If UpdateJob does not successfully return, it is possible for the job to be in an
Job.State.UPDATE_FAILED state. A job in this state may not be executed. If this happens, retry the
UpdateJob request until a successful response is received.
Inheritance
Inherited Members
Namespace: Google.Apis.CloudScheduler.v1beta1
Assembly: Google.Apis.CloudScheduler.v1beta1.dll
Syntax
public class ProjectsResource.LocationsResource.JobsResource.PatchRequest : CloudSchedulerBaseServiceRequest<Job>, IClientServiceRequest<Job>, IClientServiceRequest
Constructors
PatchRequest(IClientService, Job, string)
Constructs a new Patch request.
Declaration
public PatchRequest(IClientService service, Job body, string name)
Parameters
Type | Name | Description |
---|---|---|
IClientService | service | |
Job | body | |
string | name |
Properties
HttpMethod
Gets the HTTP method.
Declaration
public override string HttpMethod { get; }
Property Value
Type | Description |
---|---|
string |
Overrides
MethodName
Gets the method name.
Declaration
public override string MethodName { get; }
Property Value
Type | Description |
---|---|
string |
Overrides
Name
Optionally caller-specified in CreateJob, after which it becomes output only. The job name. For
example: projects/PROJECT_ID/locations/LOCATION_ID/jobs/JOB_ID
. * PROJECT_ID
can contain
letters ([A-Za-z]), numbers ([0-9]), hyphens (-), colons (:), or periods (.). For more
information, see Identifying
projects
LOCATION_ID
is the canonical ID for the job's location. The list of available locations can be obtained by calling ListLocations. For more information, see https://cloud.google.com/about/locations/. *JOB_ID
can contain only letters ([A-Za-z]), numbers ([0-9]), hyphens (-), or underscores (_). The maximum length is 500 characters.
Declaration
[RequestParameter("name", RequestParameterType.Path)]
public virtual string Name { get; }
Property Value
Type | Description |
---|---|
string |
RestPath
Gets the REST path.
Declaration
public override string RestPath { get; }
Property Value
Type | Description |
---|---|
string |
Overrides
UpdateMask
A mask used to specify which fields of the job are being updated.
Declaration
[RequestParameter("updateMask", RequestParameterType.Query)]
public virtual object UpdateMask { get; set; }
Property Value
Type | Description |
---|---|
object |
Methods
GetBody()
Returns the body of the request.
Declaration
protected override object GetBody()
Returns
Type | Description |
---|---|
object |
Overrides
InitParameters()
Initializes Patch parameter list.
Declaration
protected override void InitParameters()