Class DatasetAsyncClient
java.lang.Object
com.azure.analytics.synapse.artifacts.DatasetAsyncClient
Initializes a new instance of the asynchronous ArtifactsClient type.
-
Method Summary
Modifier and TypeMethodDescriptioncreateOrUpdateDataset(String datasetName, DatasetResource dataset) Creates or updates a dataset.createOrUpdateDataset(String datasetName, DatasetResource dataset, String ifMatch) Creates or updates a dataset.createOrUpdateDatasetWithResponse(String datasetName, DatasetResource dataset, String ifMatch) Creates or updates a dataset.deleteDataset(String datasetName) Deletes a dataset.deleteDatasetWithResponse(String datasetName) Deletes a dataset.getDataset(String datasetName) Gets a dataset.getDataset(String datasetName, String ifNoneMatch) Gets a dataset.Lists datasets.getDatasetWithResponse(String datasetName, String ifNoneMatch) Gets a dataset.renameDataset(String datasetName, ArtifactRenameRequest request) Renames a dataset.renameDatasetWithResponse(String datasetName, ArtifactRenameRequest request) Renames a dataset.
-
Method Details
-
getDatasetsByWorkspace
Lists datasets.- Returns:
- a list of dataset 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.
-
createOrUpdateDatasetWithResponse
public Mono<Response<DatasetResource>> createOrUpdateDatasetWithResponse(String datasetName, DatasetResource dataset, String ifMatch) Creates or updates a dataset.- Parameters:
datasetName- The dataset name.dataset- Dataset resource definition.ifMatch- ETag of the dataset entity. Should only be specified for update, for which it should match existing entity or can be * for unconditional update.- Returns:
- dataset resource type along with
Responseon 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.
-
createOrUpdateDataset
public Mono<DatasetResource> createOrUpdateDataset(String datasetName, DatasetResource dataset, String ifMatch) Creates or updates a dataset.- Parameters:
datasetName- The dataset name.dataset- Dataset resource definition.ifMatch- ETag of the dataset entity. Should only be specified for update, for which it should match existing entity or can be * for unconditional update.- Returns:
- dataset 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.
-
createOrUpdateDataset
Creates or updates a dataset.- Parameters:
datasetName- The dataset name.dataset- Dataset resource definition.- Returns:
- dataset 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.
-
getDatasetWithResponse
public Mono<Response<DatasetResource>> getDatasetWithResponse(String datasetName, String ifNoneMatch) Gets a dataset.- Parameters:
datasetName- The dataset name.ifNoneMatch- ETag of the dataset 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 dataset along with
Responseon 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.
-
getDataset
Gets a dataset.- Parameters:
datasetName- The dataset name.ifNoneMatch- ETag of the dataset 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 dataset 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.
-
getDataset
Gets a dataset.- Parameters:
datasetName- The dataset name.- Returns:
- a dataset 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.
-
deleteDatasetWithResponse
Deletes a dataset.- Parameters:
datasetName- The dataset name.- Returns:
- the
Responseon 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.
-
deleteDataset
Deletes a dataset.- Parameters:
datasetName- The dataset name.- Returns:
- A
Monothat 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.
-
renameDatasetWithResponse
public Mono<Response<Void>> renameDatasetWithResponse(String datasetName, ArtifactRenameRequest request) Renames a dataset.- Parameters:
datasetName- The dataset name.request- proposed new name.- Returns:
- the
Responseon 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.
-
renameDataset
Renames a dataset.- Parameters:
datasetName- The dataset name.request- proposed new name.- Returns:
- A
Monothat 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.
-