Interface FirewallPoliciesClient

All Superinterfaces:
InnerSupportsDelete<Void>, InnerSupportsGet<FirewallPolicyInner>, InnerSupportsListing<FirewallPolicyInner>

An instance of this class provides access to all the operations defined in FirewallPoliciesClient.
  • Method Details

    • deleteWithResponseAsync

      Mono<com.azure.core.http.rest.Response<Flux<ByteBuffer>>> deleteWithResponseAsync(String resourceGroupName, String firewallPolicyName)
      Deletes the specified Firewall Policy.
      Parameters:
      resourceGroupName - The name of the resource group.
      firewallPolicyName - The name of the Firewall Policy.
      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.
    • beginDeleteAsync

      com.azure.core.util.polling.PollerFlux<com.azure.core.management.polling.PollResult<Void>,Void> beginDeleteAsync(String resourceGroupName, String firewallPolicyName)
      Deletes the specified Firewall Policy.
      Parameters:
      resourceGroupName - The name of the resource group.
      firewallPolicyName - The name of the Firewall Policy.
      Returns:
      the PollerFlux for polling of long-running operation.
      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.
    • beginDelete

      com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<Void>,Void> beginDelete(String resourceGroupName, String firewallPolicyName)
      Deletes the specified Firewall Policy.
      Parameters:
      resourceGroupName - The name of the resource group.
      firewallPolicyName - The name of the Firewall Policy.
      Returns:
      the SyncPoller for polling of long-running operation.
      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.
    • beginDelete

      com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<Void>,Void> beginDelete(String resourceGroupName, String firewallPolicyName, com.azure.core.util.Context context)
      Deletes the specified Firewall Policy.
      Parameters:
      resourceGroupName - The name of the resource group.
      firewallPolicyName - The name of the Firewall Policy.
      context - The context to associate with this operation.
      Returns:
      the SyncPoller for polling of long-running operation.
      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 firewallPolicyName)
      Deletes the specified Firewall Policy.
      Specified by:
      deleteAsync in interface InnerSupportsDelete<Void>
      Parameters:
      resourceGroupName - The name of the resource group.
      firewallPolicyName - The name of the Firewall Policy.
      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 firewallPolicyName)
      Deletes the specified Firewall Policy.
      Parameters:
      resourceGroupName - The name of the resource group.
      firewallPolicyName - The name of the Firewall Policy.
      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 firewallPolicyName, com.azure.core.util.Context context)
      Deletes the specified Firewall Policy.
      Parameters:
      resourceGroupName - The name of the resource group.
      firewallPolicyName - The name of the Firewall Policy.
      context - The context to associate with this operation.
      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<FirewallPolicyInner>> getByResourceGroupWithResponseAsync(String resourceGroupName, String firewallPolicyName, String expand)
      Gets the specified Firewall Policy.
      Parameters:
      resourceGroupName - The name of the resource group.
      firewallPolicyName - The name of the Firewall Policy.
      expand - Expands referenced resources.
      Returns:
      the specified Firewall Policy 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.
    • getByResourceGroupAsync

      Mono<FirewallPolicyInner> getByResourceGroupAsync(String resourceGroupName, String firewallPolicyName)
      Gets the specified Firewall Policy.
      Specified by:
      getByResourceGroupAsync in interface InnerSupportsGet<FirewallPolicyInner>
      Parameters:
      resourceGroupName - The name of the resource group.
      firewallPolicyName - The name of the Firewall Policy.
      Returns:
      the specified Firewall Policy 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<FirewallPolicyInner> getByResourceGroupWithResponse(String resourceGroupName, String firewallPolicyName, String expand, com.azure.core.util.Context context)
      Gets the specified Firewall Policy.
      Parameters:
      resourceGroupName - The name of the resource group.
      firewallPolicyName - The name of the Firewall Policy.
      expand - Expands referenced resources.
      context - The context to associate with this operation.
      Returns:
      the specified Firewall Policy 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

      FirewallPolicyInner getByResourceGroup(String resourceGroupName, String firewallPolicyName)
      Gets the specified Firewall Policy.
      Specified by:
      getByResourceGroup in interface InnerSupportsGet<FirewallPolicyInner>
      Parameters:
      resourceGroupName - The name of the resource group.
      firewallPolicyName - The name of the Firewall Policy.
      Returns:
      the specified Firewall Policy.
      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 firewallPolicyName, FirewallPolicyInner parameters)
      Creates or updates the specified Firewall Policy.
      Parameters:
      resourceGroupName - The name of the resource group.
      firewallPolicyName - The name of the Firewall Policy.
      parameters - Parameters supplied to the create or update Firewall Policy operation.
      Returns:
      firewallPolicy Resource 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<FirewallPolicyInner>,FirewallPolicyInner> beginCreateOrUpdateAsync(String resourceGroupName, String firewallPolicyName, FirewallPolicyInner parameters)
      Creates or updates the specified Firewall Policy.
      Parameters:
      resourceGroupName - The name of the resource group.
      firewallPolicyName - The name of the Firewall Policy.
      parameters - Parameters supplied to the create or update Firewall Policy operation.
      Returns:
      the PollerFlux for polling of firewallPolicy 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.
    • beginCreateOrUpdate

      com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<FirewallPolicyInner>,FirewallPolicyInner> beginCreateOrUpdate(String resourceGroupName, String firewallPolicyName, FirewallPolicyInner parameters)
      Creates or updates the specified Firewall Policy.
      Parameters:
      resourceGroupName - The name of the resource group.
      firewallPolicyName - The name of the Firewall Policy.
      parameters - Parameters supplied to the create or update Firewall Policy operation.
      Returns:
      the SyncPoller for polling of firewallPolicy 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.
    • beginCreateOrUpdate

      com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<FirewallPolicyInner>,FirewallPolicyInner> beginCreateOrUpdate(String resourceGroupName, String firewallPolicyName, FirewallPolicyInner parameters, com.azure.core.util.Context context)
      Creates or updates the specified Firewall Policy.
      Parameters:
      resourceGroupName - The name of the resource group.
      firewallPolicyName - The name of the Firewall Policy.
      parameters - Parameters supplied to the create or update Firewall Policy operation.
      context - The context to associate with this operation.
      Returns:
      the SyncPoller for polling of firewallPolicy 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.
    • createOrUpdateAsync

      Mono<FirewallPolicyInner> createOrUpdateAsync(String resourceGroupName, String firewallPolicyName, FirewallPolicyInner parameters)
      Creates or updates the specified Firewall Policy.
      Parameters:
      resourceGroupName - The name of the resource group.
      firewallPolicyName - The name of the Firewall Policy.
      parameters - Parameters supplied to the create or update Firewall Policy operation.
      Returns:
      firewallPolicy 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.
    • createOrUpdate

      FirewallPolicyInner createOrUpdate(String resourceGroupName, String firewallPolicyName, FirewallPolicyInner parameters)
      Creates or updates the specified Firewall Policy.
      Parameters:
      resourceGroupName - The name of the resource group.
      firewallPolicyName - The name of the Firewall Policy.
      parameters - Parameters supplied to the create or update Firewall Policy operation.
      Returns:
      firewallPolicy 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.
    • createOrUpdate

      FirewallPolicyInner createOrUpdate(String resourceGroupName, String firewallPolicyName, FirewallPolicyInner parameters, com.azure.core.util.Context context)
      Creates or updates the specified Firewall Policy.
      Parameters:
      resourceGroupName - The name of the resource group.
      firewallPolicyName - The name of the Firewall Policy.
      parameters - Parameters supplied to the create or update Firewall Policy operation.
      context - The context to associate with this operation.
      Returns:
      firewallPolicy 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.
    • updateTagsWithResponseAsync

      Mono<com.azure.core.http.rest.Response<FirewallPolicyInner>> updateTagsWithResponseAsync(String resourceGroupName, String firewallPolicyName, TagsObject parameters)
      Updates tags of a Azure Firewall Policy resource.
      Parameters:
      resourceGroupName - The name of the resource group.
      firewallPolicyName - The name of the Firewall Policy.
      parameters - Parameters supplied to update Azure Firewall Policy tags.
      Returns:
      firewallPolicy Resource 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.
    • updateTagsAsync

      Mono<FirewallPolicyInner> updateTagsAsync(String resourceGroupName, String firewallPolicyName, TagsObject parameters)
      Updates tags of a Azure Firewall Policy resource.
      Parameters:
      resourceGroupName - The name of the resource group.
      firewallPolicyName - The name of the Firewall Policy.
      parameters - Parameters supplied to update Azure Firewall Policy tags.
      Returns:
      firewallPolicy 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.
    • updateTagsWithResponse

      com.azure.core.http.rest.Response<FirewallPolicyInner> updateTagsWithResponse(String resourceGroupName, String firewallPolicyName, TagsObject parameters, com.azure.core.util.Context context)
      Updates tags of a Azure Firewall Policy resource.
      Parameters:
      resourceGroupName - The name of the resource group.
      firewallPolicyName - The name of the Firewall Policy.
      parameters - Parameters supplied to update Azure Firewall Policy tags.
      context - The context to associate with this operation.
      Returns:
      firewallPolicy 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.
    • updateTags

      FirewallPolicyInner updateTags(String resourceGroupName, String firewallPolicyName, TagsObject parameters)
      Updates tags of a Azure Firewall Policy resource.
      Parameters:
      resourceGroupName - The name of the resource group.
      firewallPolicyName - The name of the Firewall Policy.
      parameters - Parameters supplied to update Azure Firewall Policy tags.
      Returns:
      firewallPolicy 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.
    • listByResourceGroupAsync

      com.azure.core.http.rest.PagedFlux<FirewallPolicyInner> listByResourceGroupAsync(String resourceGroupName)
      Lists all Firewall Policies in a resource group.
      Specified by:
      listByResourceGroupAsync in interface InnerSupportsListing<FirewallPolicyInner>
      Parameters:
      resourceGroupName - The name of the resource group.
      Returns:
      response for ListFirewallPolicies API service call 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<FirewallPolicyInner> listByResourceGroup(String resourceGroupName)
      Lists all Firewall Policies in a resource group.
      Specified by:
      listByResourceGroup in interface InnerSupportsListing<FirewallPolicyInner>
      Parameters:
      resourceGroupName - The name of the resource group.
      Returns:
      response for ListFirewallPolicies API service call 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<FirewallPolicyInner> listByResourceGroup(String resourceGroupName, com.azure.core.util.Context context)
      Lists all Firewall Policies in a resource group.
      Parameters:
      resourceGroupName - The name of the resource group.
      context - The context to associate with this operation.
      Returns:
      response for ListFirewallPolicies API service call 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<FirewallPolicyInner> listAsync()
      Gets all the Firewall Policies in a subscription.
      Specified by:
      listAsync in interface InnerSupportsListing<FirewallPolicyInner>
      Returns:
      all the Firewall Policies in a subscription 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<FirewallPolicyInner> list()
      Gets all the Firewall Policies in a subscription.
      Specified by:
      list in interface InnerSupportsListing<FirewallPolicyInner>
      Returns:
      all the Firewall Policies in a subscription 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<FirewallPolicyInner> list(com.azure.core.util.Context context)
      Gets all the Firewall Policies in a subscription.
      Parameters:
      context - The context to associate with this operation.
      Returns:
      all the Firewall Policies in a subscription 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.