@lap v0.3
# Machine-readable API spec. Each @endpoint block is one API call.
@api Azure Machine Learning Datastore Management Client
@version 2019-09-30
@auth OAuth2
@common_fields {subscriptionId: any # The Azure Subscription ID., resourceGroupName: any # The Name of the resource group in which the workspace is located., workspaceName: any # The name of the workspace.}
@endpoints 8
@toc datastore(8)

@endpoint GET /datastore/v1.0/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/datastores
@desc Get Datastores list.
@optional {dataStoreNames: any # List of Datastore names., continuationToken: any # The Continuation Token., count: any # Count of Datastores to be returned., includeSecret: any # Whether to include the datastore secret in the response.}
@returns(200) The list of Datastores are returned successfully.

@endpoint POST /datastore/v1.0/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/datastores
@desc Create or update a Datastore.
@optional {dto: map # The Datastore details., createIfNotExists: any # If set to true, the call will create an Datastore if it doesn't exist., skipValidation: any # If set to true, the call will skip Datastore validation.}
@returns(200) The Datastore is created/updated successfully.

@endpoint DELETE /datastore/v1.0/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/datastores
@desc Delete all Datastores.
@returns(200) All the Datastores in the workspace are deleted successfully.

@endpoint GET /datastore/v1.0/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/datastores/{name}
@desc Get Datastore details.
@required {name: any # The Datastore name.}
@returns(200) The Datastore details are returned successfully.

@endpoint PUT /datastore/v1.0/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/datastores/{name}
@desc Update or create a Datastore.
@required {name: any # The Datastore name.}
@optional {dto: map # The Datastore details., createIfNotExists: any # If set to true, the call will create an Datastore if it doesn't exist., skipValidation: any # If set to true, the call will skip Datastore validation.}
@returns(200) The Datastore is created/updated successfully.

@endpoint DELETE /datastore/v1.0/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/datastores/{name}
@desc Delete a Datastore.
@required {name: any # The Datastore name.}
@returns(200) The Datastore is deleted successfully.

@endpoint PUT /datastore/v1.0/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/default/{name}
@desc Set a default Datastore.
@required {name: any # The Datastore name.}
@returns(200) The default Datastore is set successfully.

@endpoint GET /datastore/v1.0/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/default
@desc Get the default Datastore.
@returns(200) The default Datastore is returned successfully.

@end
