Class SparkJobDefinitionAsyncClient
- java.lang.Object
-
- com.azure.analytics.synapse.artifacts.SparkJobDefinitionAsyncClient
-
public final class SparkJobDefinitionAsyncClient extends Object
Initializes a new instance of the asynchronous ArtifactsClient type.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Mono<SparkJobDefinitionResource>
createOrUpdateSparkJobDefinition(String sparkJobDefinitionName, SparkJobDefinitionResource sparkJobDefinition)
Creates or updates a Spark Job Definition.Mono<SparkJobDefinitionResource>
createOrUpdateSparkJobDefinition(String sparkJobDefinitionName, SparkJobDefinitionResource sparkJobDefinition, String ifMatch)
Creates or updates a Spark Job Definition.Mono<com.azure.core.http.rest.Response<SparkJobDefinitionResource>>
createOrUpdateSparkJobDefinitionWithResponse(String sparkJobDefinitionName, SparkJobDefinitionResource sparkJobDefinition, String ifMatch)
Creates or updates a Spark Job Definition.Mono<SparkBatchJob>
debugSparkJobDefinition(SparkJobDefinitionResource sparkJobDefinitionAzureResource)
Debug the spark job definition.Mono<com.azure.core.http.rest.Response<SparkBatchJob>>
debugSparkJobDefinitionWithResponse(SparkJobDefinitionResource sparkJobDefinitionAzureResource)
Debug the spark job definition.Mono<Void>
deleteSparkJobDefinition(String sparkJobDefinitionName)
Deletes a Spark Job Definition.Mono<com.azure.core.http.rest.Response<Void>>
deleteSparkJobDefinitionWithResponse(String sparkJobDefinitionName)
Deletes a Spark Job Definition.Mono<SparkBatchJob>
executeSparkJobDefinition(String sparkJobDefinitionName)
Executes the spark job definition.Mono<com.azure.core.http.rest.Response<SparkBatchJob>>
executeSparkJobDefinitionWithResponse(String sparkJobDefinitionName)
Executes the spark job definition.Mono<SparkJobDefinitionResource>
getSparkJobDefinition(String sparkJobDefinitionName)
Gets a Spark Job Definition.Mono<SparkJobDefinitionResource>
getSparkJobDefinition(String sparkJobDefinitionName, String ifNoneMatch)
Gets a Spark Job Definition.com.azure.core.http.rest.PagedFlux<SparkJobDefinitionResource>
getSparkJobDefinitionsByWorkspace()
Lists spark job definitions.Mono<com.azure.core.http.rest.Response<SparkJobDefinitionResource>>
getSparkJobDefinitionWithResponse(String sparkJobDefinitionName, String ifNoneMatch)
Gets a Spark Job Definition.Mono<Void>
renameSparkJobDefinition(String sparkJobDefinitionName, ArtifactRenameRequest request)
Renames a sparkJobDefinition.Mono<com.azure.core.http.rest.Response<Void>>
renameSparkJobDefinitionWithResponse(String sparkJobDefinitionName, ArtifactRenameRequest request)
Renames a sparkJobDefinition.
-
-
-
Method Detail
-
getSparkJobDefinitionsByWorkspace
public com.azure.core.http.rest.PagedFlux<SparkJobDefinitionResource> getSparkJobDefinitionsByWorkspace()
Lists spark job definitions.- Returns:
- a list of spark job definitions resources as paginated response with
PagedFlux
. - Throws:
CloudErrorException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
createOrUpdateSparkJobDefinitionWithResponse
public Mono<com.azure.core.http.rest.Response<SparkJobDefinitionResource>> createOrUpdateSparkJobDefinitionWithResponse(String sparkJobDefinitionName, SparkJobDefinitionResource sparkJobDefinition, String ifMatch)
Creates or updates a Spark Job Definition.- Parameters:
sparkJobDefinitionName
- The spark job definition name.sparkJobDefinition
- Spark Job Definition resource definition.ifMatch
- ETag of the Spark Job Definition entity. Should only be specified for update, for which it should match existing entity or can be * for unconditional update.- Returns:
- spark job definition resource type along with
Response
on successful completion ofMono
. - Throws:
IllegalArgumentException
- thrown if parameters fail the validation.CloudErrorException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
createOrUpdateSparkJobDefinition
public Mono<SparkJobDefinitionResource> createOrUpdateSparkJobDefinition(String sparkJobDefinitionName, SparkJobDefinitionResource sparkJobDefinition, String ifMatch)
Creates or updates a Spark Job Definition.- Parameters:
sparkJobDefinitionName
- The spark job definition name.sparkJobDefinition
- Spark Job Definition resource definition.ifMatch
- ETag of the Spark Job Definition entity. Should only be specified for update, for which it should match existing entity or can be * for unconditional update.- Returns:
- spark job definition resource type on successful completion of
Mono
. - Throws:
IllegalArgumentException
- thrown if parameters fail the validation.CloudErrorException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
createOrUpdateSparkJobDefinition
public Mono<SparkJobDefinitionResource> createOrUpdateSparkJobDefinition(String sparkJobDefinitionName, SparkJobDefinitionResource sparkJobDefinition)
Creates or updates a Spark Job Definition.- Parameters:
sparkJobDefinitionName
- The spark job definition name.sparkJobDefinition
- Spark Job Definition resource definition.- Returns:
- spark job definition resource type on successful completion of
Mono
. - Throws:
IllegalArgumentException
- thrown if parameters fail the validation.CloudErrorException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
getSparkJobDefinitionWithResponse
public Mono<com.azure.core.http.rest.Response<SparkJobDefinitionResource>> getSparkJobDefinitionWithResponse(String sparkJobDefinitionName, String ifNoneMatch)
Gets a Spark Job Definition.- Parameters:
sparkJobDefinitionName
- The spark job definition name.ifNoneMatch
- ETag of the Spark Job Definition entity. Should only be specified for get. If the ETag matches the existing entity tag, or if * was provided, then no content will be returned.- Returns:
- a Spark Job Definition along with
Response
on successful completion ofMono
. - Throws:
IllegalArgumentException
- thrown if parameters fail the validation.CloudErrorException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
getSparkJobDefinition
public Mono<SparkJobDefinitionResource> getSparkJobDefinition(String sparkJobDefinitionName, String ifNoneMatch)
Gets a Spark Job Definition.- Parameters:
sparkJobDefinitionName
- The spark job definition name.ifNoneMatch
- ETag of the Spark Job Definition entity. Should only be specified for get. If the ETag matches the existing entity tag, or if * was provided, then no content will be returned.- Returns:
- a Spark Job Definition on successful completion of
Mono
. - Throws:
IllegalArgumentException
- thrown if parameters fail the validation.CloudErrorException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
getSparkJobDefinition
public Mono<SparkJobDefinitionResource> getSparkJobDefinition(String sparkJobDefinitionName)
Gets a Spark Job Definition.- Parameters:
sparkJobDefinitionName
- The spark job definition name.- Returns:
- a Spark Job Definition on successful completion of
Mono
. - Throws:
IllegalArgumentException
- thrown if parameters fail the validation.CloudErrorException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
deleteSparkJobDefinitionWithResponse
public Mono<com.azure.core.http.rest.Response<Void>> deleteSparkJobDefinitionWithResponse(String sparkJobDefinitionName)
Deletes a Spark Job Definition.- Parameters:
sparkJobDefinitionName
- The spark job definition name.- Returns:
- the
Response
on successful completion ofMono
. - Throws:
IllegalArgumentException
- thrown if parameters fail the validation.CloudErrorException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
deleteSparkJobDefinition
public Mono<Void> deleteSparkJobDefinition(String sparkJobDefinitionName)
Deletes a Spark Job Definition.- Parameters:
sparkJobDefinitionName
- The spark job definition name.- Returns:
- A
Mono
that completes when a successful response is received. - Throws:
IllegalArgumentException
- thrown if parameters fail the validation.CloudErrorException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
executeSparkJobDefinitionWithResponse
public Mono<com.azure.core.http.rest.Response<SparkBatchJob>> executeSparkJobDefinitionWithResponse(String sparkJobDefinitionName)
Executes the spark job definition.- Parameters:
sparkJobDefinitionName
- The spark job definition name.- Returns:
- the response body along with
Response
on successful completion ofMono
. - Throws:
IllegalArgumentException
- thrown if parameters fail the validation.CloudErrorException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
executeSparkJobDefinition
public Mono<SparkBatchJob> executeSparkJobDefinition(String sparkJobDefinitionName)
Executes the spark job definition.- Parameters:
sparkJobDefinitionName
- The spark job definition name.- Returns:
- the response body on successful completion of
Mono
. - Throws:
IllegalArgumentException
- thrown if parameters fail the validation.CloudErrorException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
renameSparkJobDefinitionWithResponse
public Mono<com.azure.core.http.rest.Response<Void>> renameSparkJobDefinitionWithResponse(String sparkJobDefinitionName, ArtifactRenameRequest request)
Renames a sparkJobDefinition.- Parameters:
sparkJobDefinitionName
- The spark job definition name.request
- proposed new name.- Returns:
- the
Response
on successful completion ofMono
. - Throws:
IllegalArgumentException
- thrown if parameters fail the validation.CloudErrorException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
renameSparkJobDefinition
public Mono<Void> renameSparkJobDefinition(String sparkJobDefinitionName, ArtifactRenameRequest request)
Renames a sparkJobDefinition.- Parameters:
sparkJobDefinitionName
- The spark job definition name.request
- proposed new name.- Returns:
- A
Mono
that completes when a successful response is received. - Throws:
IllegalArgumentException
- thrown if parameters fail the validation.CloudErrorException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
debugSparkJobDefinitionWithResponse
public Mono<com.azure.core.http.rest.Response<SparkBatchJob>> debugSparkJobDefinitionWithResponse(SparkJobDefinitionResource sparkJobDefinitionAzureResource)
Debug the spark job definition.- Parameters:
sparkJobDefinitionAzureResource
- Spark Job Definition resource definition.- Returns:
- the response body along with
Response
on successful completion ofMono
. - Throws:
IllegalArgumentException
- thrown if parameters fail the validation.CloudErrorException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
debugSparkJobDefinition
public Mono<SparkBatchJob> debugSparkJobDefinition(SparkJobDefinitionResource sparkJobDefinitionAzureResource)
Debug the spark job definition.- Parameters:
sparkJobDefinitionAzureResource
- Spark Job Definition resource definition.- Returns:
- the response body on successful completion of
Mono
. - Throws:
IllegalArgumentException
- thrown if parameters fail the validation.CloudErrorException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
-