public final class SparkConfigurationClient extends Object
Modifier and Type | Method and Description |
---|---|
SparkConfigurationResource |
createOrUpdateSparkConfiguration(String sparkConfigurationName,
SparkConfigurationResource sparkConfiguration)
Creates or updates a sparkconfiguration.
|
SparkConfigurationResource |
createOrUpdateSparkConfiguration(String sparkConfigurationName,
SparkConfigurationResource sparkConfiguration,
String ifMatch)
Creates or updates a sparkconfiguration.
|
com.azure.core.http.rest.Response<SparkConfigurationResource> |
createOrUpdateSparkConfigurationWithResponse(String sparkConfigurationName,
SparkConfigurationResource sparkConfiguration,
String ifMatch,
com.azure.core.util.Context context)
Creates or updates a sparkconfiguration.
|
void |
deleteSparkConfiguration(String sparkConfigurationName)
Deletes a sparkConfiguration.
|
com.azure.core.http.rest.Response<Void> |
deleteSparkConfigurationWithResponse(String sparkConfigurationName,
com.azure.core.util.Context context)
Deletes a sparkConfiguration.
|
SparkConfigurationResource |
getSparkConfiguration(String sparkConfigurationName)
Gets a sparkConfiguration.
|
SparkConfigurationResource |
getSparkConfiguration(String sparkConfigurationName,
String ifNoneMatch)
Gets a sparkConfiguration.
|
com.azure.core.http.rest.PagedIterable<SparkConfigurationResource> |
getSparkConfigurationsByWorkspace()
Lists sparkconfigurations.
|
com.azure.core.http.rest.PagedIterable<SparkConfigurationResource> |
getSparkConfigurationsByWorkspace(com.azure.core.util.Context context)
Lists sparkconfigurations.
|
com.azure.core.http.rest.Response<SparkConfigurationResource> |
getSparkConfigurationWithResponse(String sparkConfigurationName,
String ifNoneMatch,
com.azure.core.util.Context context)
Gets a sparkConfiguration.
|
void |
renameSparkConfiguration(String sparkConfigurationName,
ArtifactRenameRequest request)
Renames a sparkConfiguration.
|
com.azure.core.http.rest.Response<Void> |
renameSparkConfigurationWithResponse(String sparkConfigurationName,
ArtifactRenameRequest request,
com.azure.core.util.Context context)
Renames a sparkConfiguration.
|
public com.azure.core.http.rest.PagedIterable<SparkConfigurationResource> getSparkConfigurationsByWorkspace()
CloudErrorException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.public com.azure.core.http.rest.PagedIterable<SparkConfigurationResource> getSparkConfigurationsByWorkspace(com.azure.core.util.Context context)
context
- The context to associate with this operation.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.public SparkConfigurationResource createOrUpdateSparkConfiguration(String sparkConfigurationName, SparkConfigurationResource sparkConfiguration, String ifMatch)
sparkConfigurationName
- The spark Configuration name.sparkConfiguration
- SparkConfiguration resource definition.ifMatch
- ETag of the sparkConfiguration entity. Should only be specified for update, for which it should
match existing entity or can be * for unconditional update.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.public SparkConfigurationResource createOrUpdateSparkConfiguration(String sparkConfigurationName, SparkConfigurationResource sparkConfiguration)
sparkConfigurationName
- The spark Configuration name.sparkConfiguration
- SparkConfiguration resource definition.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.public com.azure.core.http.rest.Response<SparkConfigurationResource> createOrUpdateSparkConfigurationWithResponse(String sparkConfigurationName, SparkConfigurationResource sparkConfiguration, String ifMatch, com.azure.core.util.Context context)
sparkConfigurationName
- The spark Configuration name.sparkConfiguration
- SparkConfiguration resource definition.ifMatch
- ETag of the sparkConfiguration entity. Should only be specified for update, for which it should
match existing entity or can be * for unconditional update.context
- The context to associate with this operation.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.public SparkConfigurationResource getSparkConfiguration(String sparkConfigurationName, String ifNoneMatch)
sparkConfigurationName
- The spark Configuration name.ifNoneMatch
- ETag of the sparkConfiguration 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.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.public SparkConfigurationResource getSparkConfiguration(String sparkConfigurationName)
sparkConfigurationName
- The spark Configuration name.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.public com.azure.core.http.rest.Response<SparkConfigurationResource> getSparkConfigurationWithResponse(String sparkConfigurationName, String ifNoneMatch, com.azure.core.util.Context context)
sparkConfigurationName
- The spark Configuration name.ifNoneMatch
- ETag of the sparkConfiguration 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.context
- The context to associate with this operation.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.public void deleteSparkConfiguration(String sparkConfigurationName)
sparkConfigurationName
- The spark Configuration name.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.public com.azure.core.http.rest.Response<Void> deleteSparkConfigurationWithResponse(String sparkConfigurationName, com.azure.core.util.Context context)
sparkConfigurationName
- The spark Configuration name.context
- The context to associate with this operation.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.public void renameSparkConfiguration(String sparkConfigurationName, ArtifactRenameRequest request)
sparkConfigurationName
- The spark Configuration name.request
- proposed new name.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.public com.azure.core.http.rest.Response<Void> renameSparkConfigurationWithResponse(String sparkConfigurationName, ArtifactRenameRequest request, com.azure.core.util.Context context)
sparkConfigurationName
- The spark Configuration name.request
- proposed new name.context
- The context to associate with this operation.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.Visit the Azure for Java Developers site for more Java documentation, including quick starts, tutorials, and code samples.