Interface DataCollectionRulesClient
- All Superinterfaces:
InnerSupportsDelete<Void>
,InnerSupportsGet<DataCollectionRuleResourceInner>
,InnerSupportsListing<DataCollectionRuleResourceInner>
public interface DataCollectionRulesClient
extends InnerSupportsGet<DataCollectionRuleResourceInner>, InnerSupportsListing<DataCollectionRuleResourceInner>, InnerSupportsDelete<Void>
An instance of this class provides access to all the operations defined in DataCollectionRulesClient.
-
Method Summary
Modifier and TypeMethodDescriptionCreates or updates a data collection rule.createAsync
(String resourceGroupName, String dataCollectionRuleName) Creates or updates a data collection rule.com.azure.core.http.rest.Response
<DataCollectionRuleResourceInner> createWithResponse
(String resourceGroupName, String dataCollectionRuleName, DataCollectionRuleResourceInner body, com.azure.core.util.Context context) Creates or updates a data collection rule.Mono
<com.azure.core.http.rest.Response<DataCollectionRuleResourceInner>> createWithResponseAsync
(String resourceGroupName, String dataCollectionRuleName, DataCollectionRuleResourceInner body) Creates or updates a data collection rule.void
Deletes a data collection rule.deleteAsync
(String resourceGroupName, String dataCollectionRuleName) Deletes a data collection rule.com.azure.core.http.rest.Response
<Void> deleteWithResponse
(String resourceGroupName, String dataCollectionRuleName, com.azure.core.util.Context context) Deletes a data collection rule.deleteWithResponseAsync
(String resourceGroupName, String dataCollectionRuleName) Deletes a data collection rule.getByResourceGroup
(String resourceGroupName, String dataCollectionRuleName) Returns the specified data collection rule.getByResourceGroupAsync
(String resourceGroupName, String dataCollectionRuleName) Returns the specified data collection rule.com.azure.core.http.rest.Response
<DataCollectionRuleResourceInner> getByResourceGroupWithResponse
(String resourceGroupName, String dataCollectionRuleName, com.azure.core.util.Context context) Returns the specified data collection rule.Mono
<com.azure.core.http.rest.Response<DataCollectionRuleResourceInner>> getByResourceGroupWithResponseAsync
(String resourceGroupName, String dataCollectionRuleName) Returns the specified data collection rule.com.azure.core.http.rest.PagedIterable
<DataCollectionRuleResourceInner> list()
Lists all data collection rules in the specified subscription.com.azure.core.http.rest.PagedIterable
<DataCollectionRuleResourceInner> list
(com.azure.core.util.Context context) Lists all data collection rules in the specified subscription.com.azure.core.http.rest.PagedFlux
<DataCollectionRuleResourceInner> Lists all data collection rules in the specified subscription.com.azure.core.http.rest.PagedIterable
<DataCollectionRuleResourceInner> listByResourceGroup
(String resourceGroupName) Lists all data collection rules in the specified resource group.com.azure.core.http.rest.PagedIterable
<DataCollectionRuleResourceInner> listByResourceGroup
(String resourceGroupName, com.azure.core.util.Context context) Lists all data collection rules in the specified resource group.com.azure.core.http.rest.PagedFlux
<DataCollectionRuleResourceInner> listByResourceGroupAsync
(String resourceGroupName) Lists all data collection rules in the specified resource group.Updates part of a data collection rule.updateAsync
(String resourceGroupName, String dataCollectionRuleName) Updates part of a data collection rule.com.azure.core.http.rest.Response
<DataCollectionRuleResourceInner> updateWithResponse
(String resourceGroupName, String dataCollectionRuleName, ResourceForUpdate body, com.azure.core.util.Context context) Updates part of a data collection rule.Mono
<com.azure.core.http.rest.Response<DataCollectionRuleResourceInner>> updateWithResponseAsync
(String resourceGroupName, String dataCollectionRuleName, ResourceForUpdate body) Updates part of a data collection rule.
-
Method Details
-
listByResourceGroupAsync
com.azure.core.http.rest.PagedFlux<DataCollectionRuleResourceInner> listByResourceGroupAsync(String resourceGroupName) Lists all data collection rules in the specified resource group.- Specified by:
listByResourceGroupAsync
in interfaceInnerSupportsListing<DataCollectionRuleResourceInner>
- Parameters:
resourceGroupName
- The name of the resource group. The name is case insensitive.- Returns:
- a pageable list of resources as paginated response with
PagedFlux
. - 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.
-
listByResourceGroup
com.azure.core.http.rest.PagedIterable<DataCollectionRuleResourceInner> listByResourceGroup(String resourceGroupName) Lists all data collection rules in the specified resource group.- Specified by:
listByResourceGroup
in interfaceInnerSupportsListing<DataCollectionRuleResourceInner>
- Parameters:
resourceGroupName
- The name of the resource group. The name is case insensitive.- Returns:
- a pageable list of resources 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.
-
listByResourceGroup
com.azure.core.http.rest.PagedIterable<DataCollectionRuleResourceInner> listByResourceGroup(String resourceGroupName, com.azure.core.util.Context context) Lists all data collection rules in the specified resource group.- Parameters:
resourceGroupName
- The name of the resource group. The name is case insensitive.context
- The context to associate with this operation.- Returns:
- a pageable list of resources 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.
-
listAsync
com.azure.core.http.rest.PagedFlux<DataCollectionRuleResourceInner> listAsync()Lists all data collection rules in the specified subscription.- Specified by:
listAsync
in interfaceInnerSupportsListing<DataCollectionRuleResourceInner>
- Returns:
- a pageable list of resources as paginated response with
PagedFlux
. - Throws:
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.
-
list
com.azure.core.http.rest.PagedIterable<DataCollectionRuleResourceInner> list()Lists all data collection rules in the specified subscription.- Specified by:
list
in interfaceInnerSupportsListing<DataCollectionRuleResourceInner>
- Returns:
- a pageable list of resources as paginated response with
PagedIterable
. - Throws:
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.
-
list
com.azure.core.http.rest.PagedIterable<DataCollectionRuleResourceInner> list(com.azure.core.util.Context context) Lists all data collection rules in the specified subscription.- Parameters:
context
- The context to associate with this operation.- Returns:
- a pageable list of resources 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.
-
getByResourceGroupWithResponseAsync
Mono<com.azure.core.http.rest.Response<DataCollectionRuleResourceInner>> getByResourceGroupWithResponseAsync(String resourceGroupName, String dataCollectionRuleName) Returns the specified data collection rule.- Parameters:
resourceGroupName
- The name of the resource group. The name is case insensitive.dataCollectionRuleName
- The name of the data collection rule. The name is case insensitive.- Returns:
- definition of ARM tracked top level resource along with
Response
on successful completion ofMono
. - 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.
-
getByResourceGroupAsync
Mono<DataCollectionRuleResourceInner> getByResourceGroupAsync(String resourceGroupName, String dataCollectionRuleName) Returns the specified data collection rule.- Specified by:
getByResourceGroupAsync
in interfaceInnerSupportsGet<DataCollectionRuleResourceInner>
- Parameters:
resourceGroupName
- The name of the resource group. The name is case insensitive.dataCollectionRuleName
- The name of the data collection rule. The name is case insensitive.- Returns:
- definition of ARM tracked top level resource on successful completion of
Mono
. - 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.
-
getByResourceGroupWithResponse
com.azure.core.http.rest.Response<DataCollectionRuleResourceInner> getByResourceGroupWithResponse(String resourceGroupName, String dataCollectionRuleName, com.azure.core.util.Context context) Returns the specified data collection rule.- Parameters:
resourceGroupName
- The name of the resource group. The name is case insensitive.dataCollectionRuleName
- The name of the data collection rule. The name is case insensitive.context
- The context to associate with this operation.- Returns:
- definition of ARM tracked top level resource 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.
-
getByResourceGroup
DataCollectionRuleResourceInner getByResourceGroup(String resourceGroupName, String dataCollectionRuleName) Returns the specified data collection rule.- Specified by:
getByResourceGroup
in interfaceInnerSupportsGet<DataCollectionRuleResourceInner>
- Parameters:
resourceGroupName
- The name of the resource group. The name is case insensitive.dataCollectionRuleName
- The name of the data collection rule. The name is case insensitive.- Returns:
- definition of ARM tracked top level resource.
- 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.
-
createWithResponseAsync
Mono<com.azure.core.http.rest.Response<DataCollectionRuleResourceInner>> createWithResponseAsync(String resourceGroupName, String dataCollectionRuleName, DataCollectionRuleResourceInner body) Creates or updates a data collection rule.- Parameters:
resourceGroupName
- The name of the resource group. The name is case insensitive.dataCollectionRuleName
- The name of the data collection rule. The name is case insensitive.body
- The payload.- Returns:
- definition of ARM tracked top level resource along with
Response
on successful completion ofMono
. - 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.
-
createAsync
Mono<DataCollectionRuleResourceInner> createAsync(String resourceGroupName, String dataCollectionRuleName) Creates or updates a data collection rule.- Parameters:
resourceGroupName
- The name of the resource group. The name is case insensitive.dataCollectionRuleName
- The name of the data collection rule. The name is case insensitive.- Returns:
- definition of ARM tracked top level resource on successful completion of
Mono
. - 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.
-
createWithResponse
com.azure.core.http.rest.Response<DataCollectionRuleResourceInner> createWithResponse(String resourceGroupName, String dataCollectionRuleName, DataCollectionRuleResourceInner body, com.azure.core.util.Context context) Creates or updates a data collection rule.- Parameters:
resourceGroupName
- The name of the resource group. The name is case insensitive.dataCollectionRuleName
- The name of the data collection rule. The name is case insensitive.body
- The payload.context
- The context to associate with this operation.- Returns:
- definition of ARM tracked top level resource 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.
-
create
Creates or updates a data collection rule.- Parameters:
resourceGroupName
- The name of the resource group. The name is case insensitive.dataCollectionRuleName
- The name of the data collection rule. The name is case insensitive.- Returns:
- definition of ARM tracked top level resource.
- 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.
-
updateWithResponseAsync
Mono<com.azure.core.http.rest.Response<DataCollectionRuleResourceInner>> updateWithResponseAsync(String resourceGroupName, String dataCollectionRuleName, ResourceForUpdate body) Updates part of a data collection rule.- Parameters:
resourceGroupName
- The name of the resource group. The name is case insensitive.dataCollectionRuleName
- The name of the data collection rule. The name is case insensitive.body
- The payload.- Returns:
- definition of ARM tracked top level resource along with
Response
on successful completion ofMono
. - 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.
-
updateAsync
Mono<DataCollectionRuleResourceInner> updateAsync(String resourceGroupName, String dataCollectionRuleName) Updates part of a data collection rule.- Parameters:
resourceGroupName
- The name of the resource group. The name is case insensitive.dataCollectionRuleName
- The name of the data collection rule. The name is case insensitive.- Returns:
- definition of ARM tracked top level resource on successful completion of
Mono
. - 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.
-
updateWithResponse
com.azure.core.http.rest.Response<DataCollectionRuleResourceInner> updateWithResponse(String resourceGroupName, String dataCollectionRuleName, ResourceForUpdate body, com.azure.core.util.Context context) Updates part of a data collection rule.- Parameters:
resourceGroupName
- The name of the resource group. The name is case insensitive.dataCollectionRuleName
- The name of the data collection rule. The name is case insensitive.body
- The payload.context
- The context to associate with this operation.- Returns:
- definition of ARM tracked top level resource 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.
-
update
Updates part of a data collection rule.- Parameters:
resourceGroupName
- The name of the resource group. The name is case insensitive.dataCollectionRuleName
- The name of the data collection rule. The name is case insensitive.- Returns:
- definition of ARM tracked top level resource.
- 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.
-
deleteWithResponseAsync
Mono<com.azure.core.http.rest.Response<Void>> deleteWithResponseAsync(String resourceGroupName, String dataCollectionRuleName) Deletes a data collection rule.- Parameters:
resourceGroupName
- The name of the resource group. The name is case insensitive.dataCollectionRuleName
- The name of the data collection rule. The name is case insensitive.- Returns:
- the
Response
on successful completion ofMono
. - 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.
-
deleteAsync
Deletes a data collection rule.- Specified by:
deleteAsync
in interfaceInnerSupportsDelete<Void>
- Parameters:
resourceGroupName
- The name of the resource group. The name is case insensitive.dataCollectionRuleName
- The name of the data collection rule. The name is case insensitive.- Returns:
- A
Mono
that completes when a successful response is received. - 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 dataCollectionRuleName, com.azure.core.util.Context context) Deletes a data collection rule.- Parameters:
resourceGroupName
- The name of the resource group. The name is case insensitive.dataCollectionRuleName
- The name of the data collection rule. The name is case insensitive.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.
-
delete
Deletes a data collection rule.- Parameters:
resourceGroupName
- The name of the resource group. The name is case insensitive.dataCollectionRuleName
- The name of the data collection rule. The name is case insensitive.- 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.
-