Interface DataSourcesClient
public interface DataSourcesClient
An instance of this class provides access to all the operations defined in DataSourcesClient.
-
Method Summary
Modifier and TypeMethodDescriptioncreateOrUpdate
(String resourceGroupName, String workspaceName, String dataSourceName, DataSourceInner parameters) Create or update a data source.com.azure.core.http.rest.Response<DataSourceInner>
createOrUpdateWithResponse
(String resourceGroupName, String workspaceName, String dataSourceName, DataSourceInner parameters, com.azure.core.util.Context context) Create or update a data source.void
Deletes a data source instance.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.Gets a datasource instance.com.azure.core.http.rest.Response<DataSourceInner>
getWithResponse
(String resourceGroupName, String workspaceName, String dataSourceName, com.azure.core.util.Context context) Gets a datasource instance.com.azure.core.http.rest.PagedIterable<DataSourceInner>
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.com.azure.core.http.rest.PagedIterable<DataSourceInner>
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.
-
Method Details
-
createOrUpdate
DataSourceInner createOrUpdate(String resourceGroupName, String workspaceName, String dataSourceName, DataSourceInner parameters) Create or update a data source.- Parameters:
resourceGroupName
- The name of the resource group. The name is case insensitive.workspaceName
- The name of the workspace.dataSourceName
- The name of the datasource resource.parameters
- The parameters required to create or update a datasource.- Returns:
- datasources under OMS Workspace.
- 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.
-
createOrUpdateWithResponse
com.azure.core.http.rest.Response<DataSourceInner> createOrUpdateWithResponse(String resourceGroupName, String workspaceName, String dataSourceName, DataSourceInner parameters, com.azure.core.util.Context context) Create or update a data source.- Parameters:
resourceGroupName
- The name of the resource group. The name is case insensitive.workspaceName
- The name of the workspace.dataSourceName
- The name of the datasource resource.parameters
- The parameters required to create or update a datasource.context
- The context to associate with this operation.- Returns:
- datasources under OMS Workspace 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.
-
delete
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
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<DataSourceInner> 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<DataSourceInner> 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<DataSourceInner> 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.
-