Interface DataSources


public interface DataSources
Resource collection API of DataSources.
  • Method Details

    • delete

      void delete(String resourceGroupName, String workspaceName, String dataSourceName)
      Deletes a data source instance.
      Parameters:
      resourceGroupName - The name of the resource group. The name is case insensitive.
      workspaceName - The name of the workspace.
      dataSourceName - Name of the datasource.
      Throws:
      IllegalArgumentException - thrown if parameters fail the validation.
      com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.
      RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
    • deleteWithResponse

      com.azure.core.http.rest.Response<Void> deleteWithResponse(String resourceGroupName, String workspaceName, String dataSourceName, com.azure.core.util.Context context)
      Deletes a data source instance.
      Parameters:
      resourceGroupName - The name of the resource group. The name is case insensitive.
      workspaceName - The name of the workspace.
      dataSourceName - Name of the datasource.
      context - The context to associate with this operation.
      Returns:
      the Response.
      Throws:
      IllegalArgumentException - thrown if parameters fail the validation.
      com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.
      RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
    • get

      DataSource get(String resourceGroupName, String workspaceName, String dataSourceName)
      Gets a datasource instance.
      Parameters:
      resourceGroupName - The name of the resource group. The name is case insensitive.
      workspaceName - The name of the workspace.
      dataSourceName - Name of the datasource.
      Returns:
      a datasource instance.
      Throws:
      IllegalArgumentException - thrown if parameters fail the validation.
      com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.
      RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
    • getWithResponse

      com.azure.core.http.rest.Response<DataSource> getWithResponse(String resourceGroupName, String workspaceName, String dataSourceName, com.azure.core.util.Context context)
      Gets a datasource instance.
      Parameters:
      resourceGroupName - The name of the resource group. The name is case insensitive.
      workspaceName - The name of the workspace.
      dataSourceName - Name of the datasource.
      context - The context to associate with this operation.
      Returns:
      a datasource instance along with Response.
      Throws:
      IllegalArgumentException - thrown if parameters fail the validation.
      com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.
      RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
    • listByWorkspace

      com.azure.core.http.rest.PagedIterable<DataSource> listByWorkspace(String resourceGroupName, String workspaceName, String filter)
      Gets the first page of data source instances in a workspace with the link to the next page.
      Parameters:
      resourceGroupName - The name of the resource group. The name is case insensitive.
      workspaceName - The name of the workspace.
      filter - The filter to apply on the operation.
      Returns:
      the first page of data source instances in a workspace with the link to the next page as paginated response with PagedIterable.
      Throws:
      IllegalArgumentException - thrown if parameters fail the validation.
      com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.
      RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
    • listByWorkspace

      com.azure.core.http.rest.PagedIterable<DataSource> listByWorkspace(String resourceGroupName, String workspaceName, String filter, String skiptoken, com.azure.core.util.Context context)
      Gets the first page of data source instances in a workspace with the link to the next page.
      Parameters:
      resourceGroupName - The name of the resource group. The name is case insensitive.
      workspaceName - The name of the workspace.
      filter - The filter to apply on the operation.
      skiptoken - Starting point of the collection of data source instances.
      context - The context to associate with this operation.
      Returns:
      the first page of data source instances in a workspace with the link to the next page as paginated response with PagedIterable.
      Throws:
      IllegalArgumentException - thrown if parameters fail the validation.
      com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.
      RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
    • getById

      DataSource getById(String id)
      Gets a datasource instance.
      Parameters:
      id - the resource ID.
      Returns:
      a datasource instance along with Response.
      Throws:
      IllegalArgumentException - thrown if parameters fail the validation.
      com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.
      RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
    • getByIdWithResponse

      com.azure.core.http.rest.Response<DataSource> getByIdWithResponse(String id, com.azure.core.util.Context context)
      Gets a datasource instance.
      Parameters:
      id - the resource ID.
      context - The context to associate with this operation.
      Returns:
      a datasource instance along with Response.
      Throws:
      IllegalArgumentException - thrown if parameters fail the validation.
      com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.
      RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
    • deleteById

      void deleteById(String id)
      Deletes a data source instance.
      Parameters:
      id - the resource ID.
      Throws:
      IllegalArgumentException - thrown if parameters fail the validation.
      com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.
      RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
    • deleteByIdWithResponse

      com.azure.core.http.rest.Response<Void> deleteByIdWithResponse(String id, com.azure.core.util.Context context)
      Deletes a data source instance.
      Parameters:
      id - the resource ID.
      context - The context to associate with this operation.
      Returns:
      the Response.
      Throws:
      IllegalArgumentException - thrown if parameters fail the validation.
      com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.
      RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
    • define

      Begins definition for a new DataSource resource.
      Parameters:
      name - resource name.
      Returns:
      the first stage of the new DataSource definition.