Interface PoliciesClient

    • Method Detail

      • listByResourceGroupAsync

        com.azure.core.http.rest.PagedFlux<CdnWebApplicationFirewallPolicyInner> listByResourceGroupAsync​(String resourceGroupName)
        Lists all of the protection policies within a resource group.
        Parameters:
        resourceGroupName - Name of the Resource group within the Azure subscription.
        Returns:
        defines a list of WebApplicationFirewallPolicies for Azure CDN 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<CdnWebApplicationFirewallPolicyInner> listByResourceGroup​(String resourceGroupName)
        Lists all of the protection policies within a resource group.
        Parameters:
        resourceGroupName - Name of the Resource group within the Azure subscription.
        Returns:
        defines a list of WebApplicationFirewallPolicies for Azure CDN 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<CdnWebApplicationFirewallPolicyInner> listByResourceGroup​(String resourceGroupName,
                                                                                                         com.azure.core.util.Context context)
        Lists all of the protection policies within a resource group.
        Parameters:
        resourceGroupName - Name of the Resource group within the Azure subscription.
        context - The context to associate with this operation.
        Returns:
        defines a list of WebApplicationFirewallPolicies for Azure CDN 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<CdnWebApplicationFirewallPolicyInner>> getByResourceGroupWithResponseAsync​(String resourceGroupName,
                                                                                                                          String policyName)
        Retrieve protection policy with specified name within a resource group.
        Parameters:
        resourceGroupName - Name of the Resource group within the Azure subscription.
        policyName - The name of the CdnWebApplicationFirewallPolicy.
        Returns:
        defines web application firewall policy for Azure CDN along with Response 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<CdnWebApplicationFirewallPolicyInner> getByResourceGroupWithResponse​(String resourceGroupName,
                                                                                                               String policyName,
                                                                                                               com.azure.core.util.Context context)
        Retrieve protection policy with specified name within a resource group.
        Parameters:
        resourceGroupName - Name of the Resource group within the Azure subscription.
        policyName - The name of the CdnWebApplicationFirewallPolicy.
        context - The context to associate with this operation.
        Returns:
        defines web application firewall policy for Azure CDN 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.
      • createOrUpdateWithResponseAsync

        Mono<com.azure.core.http.rest.Response<Flux<ByteBuffer>>> createOrUpdateWithResponseAsync​(String resourceGroupName,
                                                                                                  String policyName,
                                                                                                  CdnWebApplicationFirewallPolicyInner cdnWebApplicationFirewallPolicy)
        Create or update policy with specified rule set name within a resource group.
        Parameters:
        resourceGroupName - Name of the Resource group within the Azure subscription.
        policyName - The name of the CdnWebApplicationFirewallPolicy.
        cdnWebApplicationFirewallPolicy - Policy to be created.
        Returns:
        defines web application firewall policy for Azure CDN along with Response 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.
      • beginCreateOrUpdateAsync

        com.azure.core.util.polling.PollerFlux<com.azure.core.management.polling.PollResult<CdnWebApplicationFirewallPolicyInner>,​CdnWebApplicationFirewallPolicyInner> beginCreateOrUpdateAsync​(String resourceGroupName,
                                                                                                                                                                                                       String policyName,
                                                                                                                                                                                                       CdnWebApplicationFirewallPolicyInner cdnWebApplicationFirewallPolicy)
        Create or update policy with specified rule set name within a resource group.
        Parameters:
        resourceGroupName - Name of the Resource group within the Azure subscription.
        policyName - The name of the CdnWebApplicationFirewallPolicy.
        cdnWebApplicationFirewallPolicy - Policy to be created.
        Returns:
        the PollerFlux for polling of defines web application firewall policy for Azure CDN.
        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.
      • beginCreateOrUpdate

        com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<CdnWebApplicationFirewallPolicyInner>,​CdnWebApplicationFirewallPolicyInner> beginCreateOrUpdate​(String resourceGroupName,
                                                                                                                                                                                                  String policyName,
                                                                                                                                                                                                  CdnWebApplicationFirewallPolicyInner cdnWebApplicationFirewallPolicy)
        Create or update policy with specified rule set name within a resource group.
        Parameters:
        resourceGroupName - Name of the Resource group within the Azure subscription.
        policyName - The name of the CdnWebApplicationFirewallPolicy.
        cdnWebApplicationFirewallPolicy - Policy to be created.
        Returns:
        the SyncPoller for polling of defines web application firewall policy for Azure CDN.
        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.
      • beginCreateOrUpdate

        com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<CdnWebApplicationFirewallPolicyInner>,​CdnWebApplicationFirewallPolicyInner> beginCreateOrUpdate​(String resourceGroupName,
                                                                                                                                                                                                  String policyName,
                                                                                                                                                                                                  CdnWebApplicationFirewallPolicyInner cdnWebApplicationFirewallPolicy,
                                                                                                                                                                                                  com.azure.core.util.Context context)
        Create or update policy with specified rule set name within a resource group.
        Parameters:
        resourceGroupName - Name of the Resource group within the Azure subscription.
        policyName - The name of the CdnWebApplicationFirewallPolicy.
        cdnWebApplicationFirewallPolicy - Policy to be created.
        context - The context to associate with this operation.
        Returns:
        the SyncPoller for polling of defines web application firewall policy for Azure CDN.
        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.
      • createOrUpdateAsync

        Mono<CdnWebApplicationFirewallPolicyInner> createOrUpdateAsync​(String resourceGroupName,
                                                                       String policyName,
                                                                       CdnWebApplicationFirewallPolicyInner cdnWebApplicationFirewallPolicy)
        Create or update policy with specified rule set name within a resource group.
        Parameters:
        resourceGroupName - Name of the Resource group within the Azure subscription.
        policyName - The name of the CdnWebApplicationFirewallPolicy.
        cdnWebApplicationFirewallPolicy - Policy to be created.
        Returns:
        defines web application firewall policy for Azure CDN 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.
      • createOrUpdate

        CdnWebApplicationFirewallPolicyInner createOrUpdate​(String resourceGroupName,
                                                            String policyName,
                                                            CdnWebApplicationFirewallPolicyInner cdnWebApplicationFirewallPolicy)
        Create or update policy with specified rule set name within a resource group.
        Parameters:
        resourceGroupName - Name of the Resource group within the Azure subscription.
        policyName - The name of the CdnWebApplicationFirewallPolicy.
        cdnWebApplicationFirewallPolicy - Policy to be created.
        Returns:
        defines web application firewall policy for Azure CDN.
        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.
      • createOrUpdate

        CdnWebApplicationFirewallPolicyInner createOrUpdate​(String resourceGroupName,
                                                            String policyName,
                                                            CdnWebApplicationFirewallPolicyInner cdnWebApplicationFirewallPolicy,
                                                            com.azure.core.util.Context context)
        Create or update policy with specified rule set name within a resource group.
        Parameters:
        resourceGroupName - Name of the Resource group within the Azure subscription.
        policyName - The name of the CdnWebApplicationFirewallPolicy.
        cdnWebApplicationFirewallPolicy - Policy to be created.
        context - The context to associate with this operation.
        Returns:
        defines web application firewall policy for Azure CDN.
        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<Flux<ByteBuffer>>> updateWithResponseAsync​(String resourceGroupName,
                                                                                          String policyName,
                                                                                          CdnWebApplicationFirewallPolicyPatchParameters cdnWebApplicationFirewallPolicyPatchParameters)
        Update an existing CdnWebApplicationFirewallPolicy with the specified policy name under the specified subscription and resource group.
        Parameters:
        resourceGroupName - Name of the Resource group within the Azure subscription.
        policyName - The name of the CdnWebApplicationFirewallPolicy.
        cdnWebApplicationFirewallPolicyPatchParameters - CdnWebApplicationFirewallPolicy parameters to be patched.
        Returns:
        defines web application firewall policy for Azure CDN along with Response 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.
      • beginUpdateAsync

        com.azure.core.util.polling.PollerFlux<com.azure.core.management.polling.PollResult<CdnWebApplicationFirewallPolicyInner>,​CdnWebApplicationFirewallPolicyInner> beginUpdateAsync​(String resourceGroupName,
                                                                                                                                                                                               String policyName,
                                                                                                                                                                                               CdnWebApplicationFirewallPolicyPatchParameters cdnWebApplicationFirewallPolicyPatchParameters)
        Update an existing CdnWebApplicationFirewallPolicy with the specified policy name under the specified subscription and resource group.
        Parameters:
        resourceGroupName - Name of the Resource group within the Azure subscription.
        policyName - The name of the CdnWebApplicationFirewallPolicy.
        cdnWebApplicationFirewallPolicyPatchParameters - CdnWebApplicationFirewallPolicy parameters to be patched.
        Returns:
        the PollerFlux for polling of defines web application firewall policy for Azure CDN.
        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.
      • beginUpdate

        com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<CdnWebApplicationFirewallPolicyInner>,​CdnWebApplicationFirewallPolicyInner> beginUpdate​(String resourceGroupName,
                                                                                                                                                                                          String policyName,
                                                                                                                                                                                          CdnWebApplicationFirewallPolicyPatchParameters cdnWebApplicationFirewallPolicyPatchParameters)
        Update an existing CdnWebApplicationFirewallPolicy with the specified policy name under the specified subscription and resource group.
        Parameters:
        resourceGroupName - Name of the Resource group within the Azure subscription.
        policyName - The name of the CdnWebApplicationFirewallPolicy.
        cdnWebApplicationFirewallPolicyPatchParameters - CdnWebApplicationFirewallPolicy parameters to be patched.
        Returns:
        the SyncPoller for polling of defines web application firewall policy for Azure CDN.
        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.
      • beginUpdate

        com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<CdnWebApplicationFirewallPolicyInner>,​CdnWebApplicationFirewallPolicyInner> beginUpdate​(String resourceGroupName,
                                                                                                                                                                                          String policyName,
                                                                                                                                                                                          CdnWebApplicationFirewallPolicyPatchParameters cdnWebApplicationFirewallPolicyPatchParameters,
                                                                                                                                                                                          com.azure.core.util.Context context)
        Update an existing CdnWebApplicationFirewallPolicy with the specified policy name under the specified subscription and resource group.
        Parameters:
        resourceGroupName - Name of the Resource group within the Azure subscription.
        policyName - The name of the CdnWebApplicationFirewallPolicy.
        cdnWebApplicationFirewallPolicyPatchParameters - CdnWebApplicationFirewallPolicy parameters to be patched.
        context - The context to associate with this operation.
        Returns:
        the SyncPoller for polling of defines web application firewall policy for Azure CDN.
        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<CdnWebApplicationFirewallPolicyInner> updateAsync​(String resourceGroupName,
                                                               String policyName,
                                                               CdnWebApplicationFirewallPolicyPatchParameters cdnWebApplicationFirewallPolicyPatchParameters)
        Update an existing CdnWebApplicationFirewallPolicy with the specified policy name under the specified subscription and resource group.
        Parameters:
        resourceGroupName - Name of the Resource group within the Azure subscription.
        policyName - The name of the CdnWebApplicationFirewallPolicy.
        cdnWebApplicationFirewallPolicyPatchParameters - CdnWebApplicationFirewallPolicy parameters to be patched.
        Returns:
        defines web application firewall policy for Azure CDN 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.
      • update

        CdnWebApplicationFirewallPolicyInner update​(String resourceGroupName,
                                                    String policyName,
                                                    CdnWebApplicationFirewallPolicyPatchParameters cdnWebApplicationFirewallPolicyPatchParameters)
        Update an existing CdnWebApplicationFirewallPolicy with the specified policy name under the specified subscription and resource group.
        Parameters:
        resourceGroupName - Name of the Resource group within the Azure subscription.
        policyName - The name of the CdnWebApplicationFirewallPolicy.
        cdnWebApplicationFirewallPolicyPatchParameters - CdnWebApplicationFirewallPolicy parameters to be patched.
        Returns:
        defines web application firewall policy for Azure CDN.
        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

        CdnWebApplicationFirewallPolicyInner update​(String resourceGroupName,
                                                    String policyName,
                                                    CdnWebApplicationFirewallPolicyPatchParameters cdnWebApplicationFirewallPolicyPatchParameters,
                                                    com.azure.core.util.Context context)
        Update an existing CdnWebApplicationFirewallPolicy with the specified policy name under the specified subscription and resource group.
        Parameters:
        resourceGroupName - Name of the Resource group within the Azure subscription.
        policyName - The name of the CdnWebApplicationFirewallPolicy.
        cdnWebApplicationFirewallPolicyPatchParameters - CdnWebApplicationFirewallPolicy parameters to be patched.
        context - The context to associate with this operation.
        Returns:
        defines web application firewall policy for Azure CDN.
        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 policyName)
        Deletes Policy.
        Parameters:
        resourceGroupName - Name of the Resource group within the Azure subscription.
        policyName - The name of the CdnWebApplicationFirewallPolicy.
        Returns:
        the Response 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.
      • deleteAsync

        Mono<Void> deleteAsync​(String resourceGroupName,
                               String policyName)
        Deletes Policy.
        Specified by:
        deleteAsync in interface InnerSupportsDelete<Void>
        Parameters:
        resourceGroupName - Name of the Resource group within the Azure subscription.
        policyName - The name of the CdnWebApplicationFirewallPolicy.
        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.
      • delete

        void delete​(String resourceGroupName,
                    String policyName)
        Deletes Policy.
        Parameters:
        resourceGroupName - Name of the Resource group within the Azure subscription.
        policyName - The name of the CdnWebApplicationFirewallPolicy.
        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 policyName,
                                                                   com.azure.core.util.Context context)
        Deletes Policy.
        Parameters:
        resourceGroupName - Name of the Resource group within the Azure subscription.
        policyName - The name of the CdnWebApplicationFirewallPolicy.
        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.