
target.apidocs.com.google.api.services.dataproc.Dataproc.Projects.Locations.Batches.html Maven / Gradle / Ivy
Dataproc.Projects.Locations.Batches (Cloud Dataproc API v1-rev20241025-2.0.0)
com.google.api.services.dataproc
Class Dataproc.Projects.Locations.Batches
- java.lang.Object
-
- com.google.api.services.dataproc.Dataproc.Projects.Locations.Batches
-
- Enclosing class:
- Dataproc.Projects.Locations
public class Dataproc.Projects.Locations.Batches
extends Object
The "batches" collection of methods.
-
-
Nested Class Summary
Nested Classes
Modifier and Type
Class and Description
class
Dataproc.Projects.Locations.Batches.Analyze
class
Dataproc.Projects.Locations.Batches.Create
class
Dataproc.Projects.Locations.Batches.Delete
class
Dataproc.Projects.Locations.Batches.Get
class
Dataproc.Projects.Locations.Batches.List
class
Dataproc.Projects.Locations.Batches.SparkApplications
The "sparkApplications" collection of methods.
-
Constructor Summary
Constructors
Constructor and Description
Batches()
-
Method Summary
All Methods Instance Methods Concrete Methods
Modifier and Type
Method and Description
Dataproc.Projects.Locations.Batches.Analyze
analyze(String name,
AnalyzeBatchRequest content)
Analyze a Batch for possible recommendations and insights.
Dataproc.Projects.Locations.Batches.Create
create(String parent,
Batch content)
Creates a batch workload that executes asynchronously.
Dataproc.Projects.Locations.Batches.Delete
delete(String name)
Deletes the batch workload resource.
Dataproc.Projects.Locations.Batches.Get
get(String name)
Gets the batch workload resource representation.
Dataproc.Projects.Locations.Batches.List
list(String parent)
Lists batch workloads.
Dataproc.Projects.Locations.Batches.SparkApplications
sparkApplications()
An accessor for creating requests from the SparkApplications collection.
-
-
Method Detail
-
analyze
public Dataproc.Projects.Locations.Batches.Analyze analyze(String name,
AnalyzeBatchRequest content)
throws IOException
Analyze a Batch for possible recommendations and insights.
Create a request for the method "batches.analyze".
This request holds the parameters needed by the dataproc server. After setting any optional
parameters, call the AbstractGoogleClientRequest.execute()
method to invoke the remote operation.
- Parameters:
name
- Required. The fully qualified name of the batch to analyze in the format
"projects/PROJECT_ID/locations/DATAPROC_REGION/batches/BATCH_ID"
content
- the AnalyzeBatchRequest
- Returns:
- the request
- Throws:
IOException
-
create
public Dataproc.Projects.Locations.Batches.Create create(String parent,
Batch content)
throws IOException
Creates a batch workload that executes asynchronously.
Create a request for the method "batches.create".
This request holds the parameters needed by the dataproc server. After setting any optional
parameters, call the AbstractGoogleClientRequest.execute()
method to invoke the remote operation.
- Parameters:
parent
- Required. The parent resource where this batch will be created.
content
- the Batch
- Returns:
- the request
- Throws:
IOException
-
delete
public Dataproc.Projects.Locations.Batches.Delete delete(String name)
throws IOException
Deletes the batch workload resource. If the batch is not in a CANCELLED, SUCCEEDED or FAILED
State, the delete operation fails and the response returns FAILED_PRECONDITION.
Create a request for the method "batches.delete".
This request holds the parameters needed by the dataproc server. After setting any optional
parameters, call the AbstractGoogleClientRequest.execute()
method to invoke the remote operation.
- Parameters:
name
- Required. The fully qualified name of the batch to retrieve in the format
"projects/PROJECT_ID/locations/DATAPROC_REGION/batches/BATCH_ID"
- Returns:
- the request
- Throws:
IOException
-
get
public Dataproc.Projects.Locations.Batches.Get get(String name)
throws IOException
Gets the batch workload resource representation.
Create a request for the method "batches.get".
This request holds the parameters needed by the dataproc server. After setting any optional
parameters, call the AbstractGoogleClientRequest.execute()
method to invoke the remote operation.
- Parameters:
name
- Required. The fully qualified name of the batch to retrieve in the format
"projects/PROJECT_ID/locations/DATAPROC_REGION/batches/BATCH_ID"
- Returns:
- the request
- Throws:
IOException
-
list
public Dataproc.Projects.Locations.Batches.List list(String parent)
throws IOException
Lists batch workloads.
Create a request for the method "batches.list".
This request holds the parameters needed by the dataproc server. After setting any optional
parameters, call the AbstractGoogleClientRequest.execute()
method to invoke the remote operation.
- Parameters:
parent
- Required. The parent, which owns this collection of batches.
- Returns:
- the request
- Throws:
IOException
-
sparkApplications
public Dataproc.Projects.Locations.Batches.SparkApplications sparkApplications()
An accessor for creating requests from the SparkApplications collection.
The typical use is:
Dataproc dataproc = new Dataproc(...);
Dataproc.SparkApplications.List request = dataproc.sparkApplications().list(parameters ...)
- Returns:
- the resource collection
Copyright © 2011–2024 Google. All rights reserved.
© 2015 - 2025 Weber Informatics LLC | Privacy Policy