public final class DatasetClient extends Object
Modifier and Type | Method and Description |
---|---|
DatasetResource |
createOrUpdateDataset(String datasetName,
DatasetResource dataset)
Creates or updates a dataset.
|
DatasetResource |
createOrUpdateDataset(String datasetName,
DatasetResource dataset,
String ifMatch)
Creates or updates a dataset.
|
com.azure.core.http.rest.Response<DatasetResource> |
createOrUpdateDatasetWithResponse(String datasetName,
DatasetResource dataset,
String ifMatch,
com.azure.core.util.Context context)
Creates or updates a dataset.
|
void |
deleteDataset(String datasetName)
Deletes a dataset.
|
com.azure.core.http.rest.Response<Void> |
deleteDatasetWithResponse(String datasetName,
com.azure.core.util.Context context)
Deletes a dataset.
|
DatasetResource |
getDataset(String datasetName)
Gets a dataset.
|
DatasetResource |
getDataset(String datasetName,
String ifNoneMatch)
Gets a dataset.
|
com.azure.core.http.rest.PagedIterable<DatasetResource> |
getDatasetsByWorkspace()
Lists datasets.
|
com.azure.core.http.rest.PagedIterable<DatasetResource> |
getDatasetsByWorkspace(com.azure.core.util.Context context)
Lists datasets.
|
com.azure.core.http.rest.Response<DatasetResource> |
getDatasetWithResponse(String datasetName,
String ifNoneMatch,
com.azure.core.util.Context context)
Gets a dataset.
|
void |
renameDataset(String datasetName,
ArtifactRenameRequest request)
Renames a dataset.
|
com.azure.core.http.rest.Response<Void> |
renameDatasetWithResponse(String datasetName,
ArtifactRenameRequest request,
com.azure.core.util.Context context)
Renames a dataset.
|
public com.azure.core.http.rest.PagedIterable<DatasetResource> getDatasetsByWorkspace()
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<DatasetResource> getDatasetsByWorkspace(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 DatasetResource createOrUpdateDataset(String datasetName, DatasetResource dataset, String ifMatch)
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.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 DatasetResource createOrUpdateDataset(String datasetName, DatasetResource dataset)
datasetName
- The dataset name.dataset
- Dataset 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<DatasetResource> createOrUpdateDatasetWithResponse(String datasetName, DatasetResource dataset, String ifMatch, com.azure.core.util.Context context)
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.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 DatasetResource getDataset(String datasetName, String ifNoneMatch)
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.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 DatasetResource getDataset(String datasetName)
datasetName
- The dataset 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<DatasetResource> getDatasetWithResponse(String datasetName, String ifNoneMatch, com.azure.core.util.Context context)
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.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 deleteDataset(String datasetName)
datasetName
- The dataset 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> deleteDatasetWithResponse(String datasetName, com.azure.core.util.Context context)
datasetName
- The dataset 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 renameDataset(String datasetName, ArtifactRenameRequest request)
datasetName
- The dataset 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> renameDatasetWithResponse(String datasetName, ArtifactRenameRequest request, com.azure.core.util.Context context)
datasetName
- The dataset 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.Copyright © 2021 Microsoft Corporation. All rights reserved.