target.apidocs.com.google.api.services.dataflow.Dataflow.Projects.Jobs.html Maven / Gradle / Ivy
Dataflow.Projects.Jobs (Dataflow API v1b3-rev20231112-2.0.0)
com.google.api.services.dataflow
Class Dataflow.Projects.Jobs
- java.lang.Object
-
- com.google.api.services.dataflow.Dataflow.Projects.Jobs
-
- Enclosing class:
- Dataflow.Projects
public class Dataflow.Projects.Jobs
extends Object
The "jobs" collection of methods.
-
-
Nested Class Summary
Nested Classes
Modifier and Type
Class and Description
class
Dataflow.Projects.Jobs.Aggregated
class
Dataflow.Projects.Jobs.Create
class
Dataflow.Projects.Jobs.Debug
The "debug" collection of methods.
class
Dataflow.Projects.Jobs.Get
class
Dataflow.Projects.Jobs.GetMetrics
class
Dataflow.Projects.Jobs.List
class
Dataflow.Projects.Jobs.Messages
The "messages" collection of methods.
class
Dataflow.Projects.Jobs.Snapshot
class
Dataflow.Projects.Jobs.Update
class
Dataflow.Projects.Jobs.WorkItems
The "workItems" collection of methods.
-
Constructor Summary
Constructors
Constructor and Description
Jobs()
-
Method Summary
All Methods Instance Methods Concrete Methods
Modifier and Type
Method and Description
Dataflow.Projects.Jobs.Aggregated
aggregated(String projectId)
List the jobs of a project across all regions.
Dataflow.Projects.Jobs.Create
create(String projectId,
Job content)
Creates a Cloud Dataflow job.
Dataflow.Projects.Jobs.Debug
debug()
An accessor for creating requests from the Debug collection.
Dataflow.Projects.Jobs.Get
get(String projectId,
String jobId)
Gets the state of the specified Cloud Dataflow job.
Dataflow.Projects.Jobs.GetMetrics
getMetrics(String projectId,
String jobId)
Request the job status.
Dataflow.Projects.Jobs.List
list(String projectId)
List the jobs of a project.
Dataflow.Projects.Jobs.Messages
messages()
An accessor for creating requests from the Messages collection.
Dataflow.Projects.Jobs.Snapshot
snapshot(String projectId,
String jobId,
SnapshotJobRequest content)
Snapshot the state of a streaming job.
Dataflow.Projects.Jobs.Update
update(String projectId,
String jobId,
Job content)
Updates the state of an existing Cloud Dataflow job.
Dataflow.Projects.Jobs.WorkItems
workItems()
An accessor for creating requests from the WorkItems collection.
-
-
Method Detail
-
aggregated
public Dataflow.Projects.Jobs.Aggregated aggregated(String projectId)
throws IOException
List the jobs of a project across all regions. **Note:** This method doesn't support filtering
the list of jobs by name.
Create a request for the method "jobs.aggregated".
This request holds the parameters needed by the dataflow server. After setting any optional
parameters, call the AbstractGoogleClientRequest.execute()
method to invoke the remote operation.
- Parameters:
projectId
- The project which owns the jobs.
- Returns:
- the request
- Throws:
IOException
-
create
public Dataflow.Projects.Jobs.Create create(String projectId,
Job content)
throws IOException
Creates a Cloud Dataflow job. To create a job, we recommend using
`projects.locations.jobs.create` with a [regional endpoint]
(https://cloud.google.com/dataflow/docs/concepts/regional-endpoints). Using
`projects.jobs.create` is not recommended, as your job will always start in `us-central1`. Do not
enter confidential information when you supply string values using the API.
Create a request for the method "jobs.create".
This request holds the parameters needed by the dataflow server. After setting any optional
parameters, call the AbstractGoogleClientRequest.execute()
method to invoke the remote operation.
- Parameters:
projectId
- The ID of the Cloud Platform project that the job belongs to.
content
- the Job
- Returns:
- the request
- Throws:
IOException
-
get
public Dataflow.Projects.Jobs.Get get(String projectId,
String jobId)
throws IOException
Gets the state of the specified Cloud Dataflow job. To get the state of a job, we recommend using
`projects.locations.jobs.get` with a [regional endpoint]
(https://cloud.google.com/dataflow/docs/concepts/regional-endpoints). Using `projects.jobs.get`
is not recommended, as you can only get the state of jobs that are running in `us-central1`.
Create a request for the method "jobs.get".
This request holds the parameters needed by the dataflow server. After setting any optional
parameters, call the AbstractGoogleClientRequest.execute()
method to invoke the remote operation.
- Parameters:
projectId
- The ID of the Cloud Platform project that the job belongs to.
jobId
- The job ID.
- Returns:
- the request
- Throws:
IOException
-
getMetrics
public Dataflow.Projects.Jobs.GetMetrics getMetrics(String projectId,
String jobId)
throws IOException
Request the job status. To request the status of a job, we recommend using
`projects.locations.jobs.getMetrics` with a [regional endpoint]
(https://cloud.google.com/dataflow/docs/concepts/regional-endpoints). Using
`projects.jobs.getMetrics` is not recommended, as you can only request the status of jobs that
are running in `us-central1`.
Create a request for the method "jobs.getMetrics".
This request holds the parameters needed by the dataflow server. After setting any optional
parameters, call the AbstractGoogleClientRequest.execute()
method to invoke the remote operation.
- Parameters:
projectId
- A project id.
jobId
- The job to get metrics for.
- Returns:
- the request
- Throws:
IOException
-
list
public Dataflow.Projects.Jobs.List list(String projectId)
throws IOException
List the jobs of a project. To list the jobs of a project in a region, we recommend using
`projects.locations.jobs.list` with a [regional endpoint]
(https://cloud.google.com/dataflow/docs/concepts/regional-endpoints). To list the all jobs across
all regions, use `projects.jobs.aggregated`. Using `projects.jobs.list` is not recommended,
because you can only get the list of jobs that are running in `us-central1`.
`projects.locations.jobs.list` and `projects.jobs.list` support filtering the list of jobs by
name. Filtering by name isn't supported by `projects.jobs.aggregated`.
Create a request for the method "jobs.list".
This request holds the parameters needed by the dataflow server. After setting any optional
parameters, call the AbstractGoogleClientRequest.execute()
method to invoke the remote operation.
- Parameters:
projectId
- The project which owns the jobs.
- Returns:
- the request
- Throws:
IOException
-
snapshot
public Dataflow.Projects.Jobs.Snapshot snapshot(String projectId,
String jobId,
SnapshotJobRequest content)
throws IOException
Snapshot the state of a streaming job.
Create a request for the method "jobs.snapshot".
This request holds the parameters needed by the dataflow server. After setting any optional
parameters, call the AbstractGoogleClientRequest.execute()
method to invoke the remote operation.
- Parameters:
projectId
- The project which owns the job to be snapshotted.
jobId
- The job to be snapshotted.
content
- the SnapshotJobRequest
- Returns:
- the request
- Throws:
IOException
-
update
public Dataflow.Projects.Jobs.Update update(String projectId,
String jobId,
Job content)
throws IOException
Updates the state of an existing Cloud Dataflow job. To update the state of an existing job, we
recommend using `projects.locations.jobs.update` with a [regional endpoint]
(https://cloud.google.com/dataflow/docs/concepts/regional-endpoints). Using
`projects.jobs.update` is not recommended, as you can only update the state of jobs that are
running in `us-central1`.
Create a request for the method "jobs.update".
This request holds the parameters needed by the dataflow server. After setting any optional
parameters, call the AbstractGoogleClientRequest.execute()
method to invoke the remote operation.
- Parameters:
projectId
- The ID of the Cloud Platform project that the job belongs to.
jobId
- The job ID.
content
- the Job
- Returns:
- the request
- Throws:
IOException
-
debug
public Dataflow.Projects.Jobs.Debug debug()
An accessor for creating requests from the Debug collection.
The typical use is:
Dataflow dataflow = new Dataflow(...);
Dataflow.Debug.List request = dataflow.debug().list(parameters ...)
- Returns:
- the resource collection
-
messages
public Dataflow.Projects.Jobs.Messages messages()
An accessor for creating requests from the Messages collection.
The typical use is:
Dataflow dataflow = new Dataflow(...);
Dataflow.Messages.List request = dataflow.messages().list(parameters ...)
- Returns:
- the resource collection
-
workItems
public Dataflow.Projects.Jobs.WorkItems workItems()
An accessor for creating requests from the WorkItems collection.
The typical use is:
Dataflow dataflow = new Dataflow(...);
Dataflow.WorkItems.List request = dataflow.workItems().list(parameters ...)
- Returns:
- the resource collection
Copyright © 2011–2023 Google. All rights reserved.
© 2015 - 2024 Weber Informatics LLC | Privacy Policy