target.apidocs.com.google.api.services.run.v1.CloudRun.Namespaces.Jobs.html Maven / Gradle / Ivy
CloudRun.Namespaces.Jobs (Cloud Run Admin API v1-rev20221016-2.0.0)
com.google.api.services.run.v1
Class CloudRun.Namespaces.Jobs
- java.lang.Object
-
- com.google.api.services.run.v1.CloudRun.Namespaces.Jobs
-
- Enclosing class:
- CloudRun.Namespaces
public class CloudRun.Namespaces.Jobs
extends Object
The "jobs" collection of methods.
-
-
Nested Class Summary
Nested Classes
Modifier and Type
Class and Description
class
CloudRun.Namespaces.Jobs.Create
class
CloudRun.Namespaces.Jobs.Delete
class
CloudRun.Namespaces.Jobs.Get
class
CloudRun.Namespaces.Jobs.List
class
CloudRun.Namespaces.Jobs.ReplaceJob
class
CloudRun.Namespaces.Jobs.Run
-
Constructor Summary
Constructors
Constructor and Description
Jobs()
-
Method Summary
All Methods Instance Methods Concrete Methods
Modifier and Type
Method and Description
CloudRun.Namespaces.Jobs.Create
create(String parent,
Job content)
Create a job.
CloudRun.Namespaces.Jobs.Delete
delete(String name)
Delete a job.
CloudRun.Namespaces.Jobs.Get
get(String name)
Get information about a job.
CloudRun.Namespaces.Jobs.List
list(String parent)
List jobs.
CloudRun.Namespaces.Jobs.ReplaceJob
replaceJob(String name,
Job content)
Replace a job.
CloudRun.Namespaces.Jobs.Run
run(String name,
RunJobRequest content)
Trigger creation of a new execution of this job.
-
-
Method Detail
-
create
public CloudRun.Namespaces.Jobs.Create create(String parent,
Job content)
throws IOException
Create a job.
Create a request for the method "jobs.create".
This request holds the parameters needed by the run server. After setting any optional
parameters, call the AbstractGoogleClientRequest.execute()
method to invoke the remote operation.
- Parameters:
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
content
- the Job
- Returns:
- the request
- Throws:
IOException
-
delete
public CloudRun.Namespaces.Jobs.Delete delete(String name)
throws IOException
Delete a job.
Create a request for the method "jobs.delete".
This request holds the parameters needed by the run server. After setting any optional
parameters, call the AbstractGoogleClientRequest.execute()
method to invoke the remote operation.
- Parameters:
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:
- the request
- Throws:
IOException
-
get
public CloudRun.Namespaces.Jobs.Get get(String name)
throws IOException
Get information about a job.
Create a request for the method "jobs.get".
This request holds the parameters needed by the run server. After setting any optional
parameters, call the AbstractGoogleClientRequest.execute()
method to invoke the remote operation.
- Parameters:
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:
- the request
- Throws:
IOException
-
list
public CloudRun.Namespaces.Jobs.List list(String parent)
throws IOException
List jobs.
Create a request for the method "jobs.list".
This request holds the parameters needed by the run server. After setting any optional
parameters, call the AbstractGoogleClientRequest.execute()
method to invoke the remote operation.
- Parameters:
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:
- the request
- Throws:
IOException
-
replaceJob
public CloudRun.Namespaces.Jobs.ReplaceJob replaceJob(String name,
Job content)
throws IOException
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.
Create a request for the method "jobs.replaceJob".
This request holds the parameters needed by the run server. After setting any optional
parameters, call the AbstractGoogleClientRequest.execute()
method to invoke the remote operation.
- Parameters:
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
content
- the Job
- Returns:
- the request
- Throws:
IOException
-
run
public CloudRun.Namespaces.Jobs.Run run(String name,
RunJobRequest content)
throws IOException
Trigger creation of a new execution of this job.
Create a request for the method "jobs.run".
This request holds the parameters needed by the run server. After setting any optional
parameters, call the AbstractGoogleClientRequest.execute()
method to invoke the remote operation.
- Parameters:
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
content
- the RunJobRequest
- Returns:
- the request
- Throws:
IOException
Copyright © 2011–2022 Google. All rights reserved.
© 2015 - 2025 Weber Informatics LLC | Privacy Policy