Class SparkConfigurationClient
- java.lang.Object
-
- com.azure.analytics.synapse.artifacts.SparkConfigurationClient
-
public final class SparkConfigurationClient extends Object
Initializes a new instance of the synchronous ArtifactsClient type.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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.
-
-
-
Method Detail
-
getSparkConfigurationsByWorkspace
public com.azure.core.http.rest.PagedIterable<SparkConfigurationResource> getSparkConfigurationsByWorkspace()
Lists sparkconfigurations.- Returns:
- a list of sparkconfiguration resources as paginated response with
PagedIterable
. - Throws:
CloudErrorException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
getSparkConfigurationsByWorkspace
public com.azure.core.http.rest.PagedIterable<SparkConfigurationResource> getSparkConfigurationsByWorkspace(com.azure.core.util.Context context)
Lists sparkconfigurations.- Parameters:
context
- The context to associate with this operation.- Returns:
- a list of sparkconfiguration resources as paginated response with
PagedIterable
. - 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.
-
createOrUpdateSparkConfiguration
public SparkConfigurationResource createOrUpdateSparkConfiguration(String sparkConfigurationName, SparkConfigurationResource sparkConfiguration, String ifMatch)
Creates or updates a sparkconfiguration.- Parameters:
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.- Returns:
- spark Configuration resource type.
- 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.
-
createOrUpdateSparkConfiguration
public SparkConfigurationResource createOrUpdateSparkConfiguration(String sparkConfigurationName, SparkConfigurationResource sparkConfiguration)
Creates or updates a sparkconfiguration.- Parameters:
sparkConfigurationName
- The spark Configuration name.sparkConfiguration
- SparkConfiguration resource definition.- Returns:
- spark Configuration resource type.
- 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.
-
createOrUpdateSparkConfigurationWithResponse
public 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.- Parameters:
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.- Returns:
- spark Configuration resource type along with
Response
. - 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.
-
getSparkConfiguration
public SparkConfigurationResource getSparkConfiguration(String sparkConfigurationName, String ifNoneMatch)
Gets a sparkConfiguration.- Parameters:
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.- Returns:
- a sparkConfiguration.
- 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.
-
getSparkConfiguration
public SparkConfigurationResource getSparkConfiguration(String sparkConfigurationName)
Gets a sparkConfiguration.- Parameters:
sparkConfigurationName
- The spark Configuration name.- Returns:
- a sparkConfiguration.
- 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.
-
getSparkConfigurationWithResponse
public com.azure.core.http.rest.Response<SparkConfigurationResource> getSparkConfigurationWithResponse(String sparkConfigurationName, String ifNoneMatch, com.azure.core.util.Context context)
Gets a sparkConfiguration.- Parameters:
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.- Returns:
- a sparkConfiguration along with
Response
. - 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.
-
deleteSparkConfiguration
public void deleteSparkConfiguration(String sparkConfigurationName)
Deletes a sparkConfiguration.- Parameters:
sparkConfigurationName
- The spark Configuration name.- 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.
-
deleteSparkConfigurationWithResponse
public com.azure.core.http.rest.Response<Void> deleteSparkConfigurationWithResponse(String sparkConfigurationName, com.azure.core.util.Context context)
Deletes a sparkConfiguration.- Parameters:
sparkConfigurationName
- The spark Configuration name.context
- The context to associate with this operation.- Returns:
- the
Response
. - 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.
-
renameSparkConfiguration
public void renameSparkConfiguration(String sparkConfigurationName, ArtifactRenameRequest request)
Renames a sparkConfiguration.- Parameters:
sparkConfigurationName
- The spark Configuration name.request
- proposed new name.- 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.
-
renameSparkConfigurationWithResponse
public com.azure.core.http.rest.Response<Void> renameSparkConfigurationWithResponse(String sparkConfigurationName, ArtifactRenameRequest request, com.azure.core.util.Context context)
Renames a sparkConfiguration.- Parameters:
sparkConfigurationName
- The spark Configuration name.request
- proposed new name.context
- The context to associate with this operation.- Returns:
- the
Response
. - 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.
-
-