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
All Methods Instance Methods Abstract Methods Modifier and Type Method Description DataCollectionRuleResourceInnercreate(String resourceGroupName, String dataCollectionRuleName)Creates or updates a data collection rule.Mono<DataCollectionRuleResourceInner>createAsync(String resourceGroupName, String dataCollectionRuleName)Creates or updates a data collection rule.Mono<DataCollectionRuleResourceInner>createAsync(String resourceGroupName, String dataCollectionRuleName, DataCollectionRuleResourceInner body)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.voiddelete(String resourceGroupName, String dataCollectionRuleName)Deletes a data collection rule.Mono<Void>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.Mono<com.azure.core.http.rest.Response<Void>>deleteWithResponseAsync(String resourceGroupName, String dataCollectionRuleName)Deletes a data collection rule.DataCollectionRuleResourceInnergetByResourceGroup(String resourceGroupName, String dataCollectionRuleName)Returns the specified data collection rule.Mono<DataCollectionRuleResourceInner>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>listAsync()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.DataCollectionRuleResourceInnerupdate(String resourceGroupName, String dataCollectionRuleName)Updates part of a data collection rule.Mono<DataCollectionRuleResourceInner>updateAsync(String resourceGroupName, String dataCollectionRuleName)Updates part of a data collection rule.Mono<DataCollectionRuleResourceInner>updateAsync(String resourceGroupName, String dataCollectionRuleName, Map<String,String> tags)Updates part of a data collection rule.com.azure.core.http.rest.Response<DataCollectionRuleResourceInner>updateWithResponse(String resourceGroupName, String dataCollectionRuleName, Map<String,String> tags, 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, Map<String,String> tags)Updates part of a data collection rule.
-
-
-
Method Detail
-
listByResourceGroupAsync
com.azure.core.http.rest.PagedFlux<DataCollectionRuleResourceInner> listByResourceGroupAsync(String resourceGroupName)
Lists all data collection rules in the specified resource group.- Specified by:
listByResourceGroupAsyncin interfaceInnerSupportsListing<DataCollectionRuleResourceInner>- Parameters:
resourceGroupName- The name of the resource group. The name is case insensitive.- Returns:
- a pageable list of resources.
- 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:
listByResourceGroupin interfaceInnerSupportsListing<DataCollectionRuleResourceInner>- Parameters:
resourceGroupName- The name of the resource group. The name is case insensitive.- Returns:
- a pageable list of resources.
- 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.
- 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:
listAsyncin interfaceInnerSupportsListing<DataCollectionRuleResourceInner>- Returns:
- a pageable list of resources.
- 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:
listin interfaceInnerSupportsListing<DataCollectionRuleResourceInner>- Returns:
- a pageable list of resources.
- 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.
- 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.
- 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:
getByResourceGroupAsyncin 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.
-
getByResourceGroup
DataCollectionRuleResourceInner getByResourceGroup(String resourceGroupName, String dataCollectionRuleName)
Returns the specified data collection rule.- Specified by:
getByResourceGroupin 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.
-
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.
- 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.
- 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, 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.
- 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.
- 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
DataCollectionRuleResourceInner create(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.
- 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.
- 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, Map<String,String> tags)
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.tags- Resource tags.- 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.
-
updateAsync
Mono<DataCollectionRuleResourceInner> updateAsync(String resourceGroupName, String dataCollectionRuleName, Map<String,String> tags)
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.tags- Resource tags.- 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.
-
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.
- 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
DataCollectionRuleResourceInner update(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.
- 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, Map<String,String> tags, 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.tags- Resource tags.context- The context to associate with this operation.- 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 completion.
- 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
Mono<Void> deleteAsync(String resourceGroupName, String dataCollectionRuleName)
Deletes a data collection rule.- Specified by:
deleteAsyncin 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:
- the completion.
- 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
void delete(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.- 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.
-
-