Interface DataCollectionRulesClient

    • Method Detail

      • 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.
      • 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:
        getByResourceGroupAsync in interface InnerSupportsGet<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:
        getByResourceGroup in interface InnerSupportsGet<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:
        deleteAsync in interface InnerSupportsDelete<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.