DatasetAsyncClient Class

  • java.lang.Object
    • com.azure.analytics.synapse.artifacts.DatasetAsyncClient

public final class DatasetAsyncClient

Initializes a new instance of the asynchronous ArtifactsClient type.

Method Summary

Modifier and Type Method and Description
Mono<DatasetResource> createOrUpdateDataset(String datasetName, DatasetResource dataset)

Creates or updates a dataset.

Mono<DatasetResource> createOrUpdateDataset(String datasetName, DatasetResource dataset, String ifMatch)

Creates or updates a dataset.

Mono<Response<DatasetResource>> createOrUpdateDatasetWithResponse(String datasetName, DatasetResource dataset, String ifMatch)

Creates or updates a dataset.

Mono<Void> deleteDataset(String datasetName)

Deletes a dataset.

Mono<Response<Void>> deleteDatasetWithResponse(String datasetName)

Deletes a dataset.

Mono<DatasetResource> getDataset(String datasetName)

Gets a dataset.

Mono<DatasetResource> getDataset(String datasetName, String ifNoneMatch)

Gets a dataset.

Mono<Response<DatasetResource>> getDatasetWithResponse(String datasetName, String ifNoneMatch)

Gets a dataset.

PagedFlux<DatasetResource> getDatasetsByWorkspace()

Lists datasets.

Mono<Void> renameDataset(String datasetName, ArtifactRenameRequest request)

Renames a dataset.

Mono<Response<Void>> renameDatasetWithResponse(String datasetName, ArtifactRenameRequest request)

Renames a dataset.

Methods inherited from java.lang.Object

Method Details

createOrUpdateDataset

public Mono createOrUpdateDataset(String datasetName, DatasetResource dataset)

Creates or updates a dataset.

Parameters:

datasetName - The dataset name.
dataset - Dataset resource definition.

Returns:

dataset resource type on successful completion of Mono.

createOrUpdateDataset

public Mono 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.

createOrUpdateDatasetWithResponse

public Mono<>> 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 Response<T> on successful completion of Mono.

deleteDataset

public Mono deleteDataset(String datasetName)

Deletes a dataset.

Parameters:

datasetName - The dataset name.

Returns:

A Mono that completes when a successful response is received.

deleteDatasetWithResponse

public Mono<>> deleteDatasetWithResponse(String datasetName)

Deletes a dataset.

Parameters:

datasetName - The dataset name.

Returns:

the Response<T> on successful completion of Mono.

getDataset

public Mono getDataset(String datasetName)

Gets a dataset.

Parameters:

datasetName - The dataset name.

Returns:

a dataset on successful completion of Mono.

getDataset

public Mono getDataset(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 on successful completion of Mono.

getDatasetWithResponse

public Mono<>> 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 Response<T> on successful completion of Mono.

getDatasetsByWorkspace

public PagedFlux getDatasetsByWorkspace()

Lists datasets.

Returns:

a list of dataset resources as paginated response with PagedFlux<T>.

renameDataset

public Mono renameDataset(String datasetName, ArtifactRenameRequest request)

Renames a dataset.

Parameters:

datasetName - The dataset name.
request - proposed new name.

Returns:

A Mono that completes when a successful response is received.

renameDatasetWithResponse

public Mono<>> renameDatasetWithResponse(String datasetName, ArtifactRenameRequest request)

Renames a dataset.

Parameters:

datasetName - The dataset name.
request - proposed new name.

Returns:

the Response<T> on successful completion of Mono.

Applies to