Show / Hide Table of Contents

Class NamespacesResource.JobsResource

The "jobs" collection of methods.

Inheritance
object
NamespacesResource.JobsResource
Inherited Members
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()
Namespace: Google.Apis.CloudRun.v1
Assembly: Google.Apis.CloudRun.v1.dll
Syntax
public class NamespacesResource.JobsResource

Constructors

JobsResource(IClientService)

Constructs a new resource.

Declaration
public JobsResource(IClientService service)
Parameters
Type Name Description
IClientService service

Methods

Create(Job, string)

Create a job.

Declaration
public virtual NamespacesResource.JobsResource.CreateRequest Create(Job body, string parent)
Parameters
Type Name Description
Job body

The body of the request.

string parent

Required. The namespace in which the job should be created. Replace {namespace} with the project ID or number. It takes the form namespaces/{namespace}. For example: namespaces/PROJECT_ID

Returns
Type Description
NamespacesResource.JobsResource.CreateRequest

Delete(string)

Delete a job.

Declaration
public virtual NamespacesResource.JobsResource.DeleteRequest Delete(string name)
Parameters
Type Name Description
string name

Required. The name of the job to delete. Replace {namespace} with the project ID or number. It takes the form namespaces/{namespace}. For example: namespaces/PROJECT_ID

Returns
Type Description
NamespacesResource.JobsResource.DeleteRequest

Get(string)

Get information about a job.

Declaration
public virtual NamespacesResource.JobsResource.GetRequest Get(string name)
Parameters
Type Name Description
string name

Required. The name of the job to retrieve. Replace {namespace} with the project ID or number. It takes the form namespaces/{namespace}. For example: namespaces/PROJECT_ID

Returns
Type Description
NamespacesResource.JobsResource.GetRequest

List(string)

List jobs. Results are sorted by creation time, descending.

Declaration
public virtual NamespacesResource.JobsResource.ListRequest List(string parent)
Parameters
Type Name Description
string parent

Required. The namespace from which the jobs should be listed. Replace {namespace} with the project ID or number. It takes the form namespaces/{namespace}. For example: namespaces/PROJECT_ID

Returns
Type Description
NamespacesResource.JobsResource.ListRequest

ReplaceJob(Job, string)

Replace a job. Only the spec and metadata labels and annotations are modifiable. After the Replace request, Cloud Run will work to make the 'status' match the requested 'spec'. May provide metadata.resourceVersion to enforce update from last read for optimistic concurrency control.

Declaration
public virtual NamespacesResource.JobsResource.ReplaceJobRequest ReplaceJob(Job body, string name)
Parameters
Type Name Description
Job body

The body of the request.

string name

Required. The name of the job being replaced. Replace {namespace} with the project ID or number. It takes the form namespaces/{namespace}. For example: namespaces/PROJECT_ID

Returns
Type Description
NamespacesResource.JobsResource.ReplaceJobRequest

Run(RunJobRequest, string)

Trigger creation of a new execution of this job.

Declaration
public virtual NamespacesResource.JobsResource.RunRequest Run(RunJobRequest body, string name)
Parameters
Type Name Description
RunJobRequest body

The body of the request.

string name

Required. The name of the job to run. Replace {namespace} with the project ID or number. It takes the form namespaces/{namespace}. For example: namespaces/PROJECT_ID

Returns
Type Description
NamespacesResource.JobsResource.RunRequest
In this article
Back to top Generated by DocFX