Interface PrefixesClient


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

    • getWithResponse

      com.azure.core.http.rest.Response<PeeringServicePrefixInner> getWithResponse(String resourceGroupName, String peeringServiceName, String prefixName, String expand, com.azure.core.util.Context context)
      Gets an existing prefix with the specified name under the given subscription, resource group and peering service.
      Parameters:
      resourceGroupName - The name of the resource group.
      peeringServiceName - The name of the peering service.
      prefixName - The name of the prefix.
      expand - The properties to be expanded.
      context - The context to associate with this operation.
      Returns:
      an existing prefix with the specified name under the given subscription, resource group and peering service 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.
    • get

      PeeringServicePrefixInner get(String resourceGroupName, String peeringServiceName, String prefixName)
      Gets an existing prefix with the specified name under the given subscription, resource group and peering service.
      Parameters:
      resourceGroupName - The name of the resource group.
      peeringServiceName - The name of the peering service.
      prefixName - The name of the prefix.
      Returns:
      an existing prefix with the specified name under the given subscription, resource group and peering service.
      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.
    • createOrUpdateWithResponse

      com.azure.core.http.rest.Response<PeeringServicePrefixInner> createOrUpdateWithResponse(String resourceGroupName, String peeringServiceName, String prefixName, PeeringServicePrefixInner peeringServicePrefix, com.azure.core.util.Context context)
      Creates a new prefix with the specified name under the given subscription, resource group and peering service.
      Parameters:
      resourceGroupName - The name of the resource group.
      peeringServiceName - The name of the peering service.
      prefixName - The name of the prefix.
      peeringServicePrefix - The properties needed to create a prefix.
      context - The context to associate with this operation.
      Returns:
      the peering service prefix class 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.
    • createOrUpdate

      PeeringServicePrefixInner createOrUpdate(String resourceGroupName, String peeringServiceName, String prefixName, PeeringServicePrefixInner peeringServicePrefix)
      Creates a new prefix with the specified name under the given subscription, resource group and peering service.
      Parameters:
      resourceGroupName - The name of the resource group.
      peeringServiceName - The name of the peering service.
      prefixName - The name of the prefix.
      peeringServicePrefix - The properties needed to create a prefix.
      Returns:
      the peering service prefix class.
      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 peeringServiceName, String prefixName, com.azure.core.util.Context context)
      Deletes an existing prefix with the specified name under the given subscription, resource group and peering service.
      Parameters:
      resourceGroupName - The name of the resource group.
      peeringServiceName - The name of the peering service.
      prefixName - The name of the prefix.
      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

      void delete(String resourceGroupName, String peeringServiceName, String prefixName)
      Deletes an existing prefix with the specified name under the given subscription, resource group and peering service.
      Parameters:
      resourceGroupName - The name of the resource group.
      peeringServiceName - The name of the peering service.
      prefixName - The name of the prefix.
      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.
    • listByPeeringService

      com.azure.core.http.rest.PagedIterable<PeeringServicePrefixInner> listByPeeringService(String resourceGroupName, String peeringServiceName)
      Lists all prefixes under the given subscription, resource group and peering service.
      Parameters:
      resourceGroupName - The name of the resource group.
      peeringServiceName - The name of the peering service.
      Returns:
      the paginated list of peering service prefixes 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.
    • listByPeeringService

      com.azure.core.http.rest.PagedIterable<PeeringServicePrefixInner> listByPeeringService(String resourceGroupName, String peeringServiceName, String expand, com.azure.core.util.Context context)
      Lists all prefixes under the given subscription, resource group and peering service.
      Parameters:
      resourceGroupName - The name of the resource group.
      peeringServiceName - The name of the peering service.
      expand - The properties to be expanded.
      context - The context to associate with this operation.
      Returns:
      the paginated list of peering service prefixes 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.