Interface PeeringServices


public interface PeeringServices
Resource collection API of PeeringServices.
  • Method Summary

    Modifier and Type
    Method
    Description
    define(String name)
    Begins definition for a new PeeringService resource.
    void
    Deletes an existing peering service with the specified name under the given subscription and resource group.
    com.azure.core.http.rest.Response<Void>
    deleteByIdWithResponse(String id, com.azure.core.util.Context context)
    Deletes an existing peering service with the specified name under the given subscription and resource group.
    void
    deleteByResourceGroup(String resourceGroupName, String peeringServiceName)
    Deletes an existing peering service with the specified name under the given subscription and resource group.
    com.azure.core.http.rest.Response<Void>
    deleteByResourceGroupWithResponse(String resourceGroupName, String peeringServiceName, com.azure.core.util.Context context)
    Deletes an existing peering service with the specified name under the given subscription and resource group.
    Gets an existing peering service with the specified name under the given subscription and resource group.
    com.azure.core.http.rest.Response<PeeringService>
    getByIdWithResponse(String id, com.azure.core.util.Context context)
    Gets an existing peering service with the specified name under the given subscription and resource group.
    getByResourceGroup(String resourceGroupName, String peeringServiceName)
    Gets an existing peering service with the specified name under the given subscription and resource group.
    com.azure.core.http.rest.Response<PeeringService>
    getByResourceGroupWithResponse(String resourceGroupName, String peeringServiceName, com.azure.core.util.Context context)
    Gets an existing peering service with the specified name under the given subscription and resource group.
    com.azure.core.http.rest.PagedIterable<PeeringService>
    Lists all of the peerings under the given subscription.
    com.azure.core.http.rest.PagedIterable<PeeringService>
    list(com.azure.core.util.Context context)
    Lists all of the peerings under the given subscription.
    com.azure.core.http.rest.PagedIterable<PeeringService>
    listByResourceGroup(String resourceGroupName)
    Lists all of the peering services under the given subscription and resource group.
    com.azure.core.http.rest.PagedIterable<PeeringService>
    listByResourceGroup(String resourceGroupName, com.azure.core.util.Context context)
    Lists all of the peering services under the given subscription and resource group.
  • Method Details

    • getByResourceGroupWithResponse

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

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

      com.azure.core.http.rest.Response<Void> deleteByResourceGroupWithResponse(String resourceGroupName, String peeringServiceName, com.azure.core.util.Context context)
      Deletes an existing peering service with the specified name under the given subscription and resource group.
      Parameters:
      resourceGroupName - The name of the resource group.
      peeringServiceName - The name of the peering service.
      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.
    • deleteByResourceGroup

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

      com.azure.core.http.rest.PagedIterable<PeeringService> listByResourceGroup(String resourceGroupName)
      Lists all of the peering services under the given subscription and resource group.
      Parameters:
      resourceGroupName - The name of the resource group.
      Returns:
      the paginated list of peering services 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<PeeringService> listByResourceGroup(String resourceGroupName, com.azure.core.util.Context context)
      Lists all of the peering services under the given subscription and resource group.
      Parameters:
      resourceGroupName - The name of the resource group.
      context - The context to associate with this operation.
      Returns:
      the paginated list of peering services 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.
    • list

      com.azure.core.http.rest.PagedIterable<PeeringService> list()
      Lists all of the peerings under the given subscription.
      Returns:
      the paginated list of peering services 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<PeeringService> list(com.azure.core.util.Context context)
      Lists all of the peerings under the given subscription.
      Parameters:
      context - The context to associate with this operation.
      Returns:
      the paginated list of peering services 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.
    • getById

      PeeringService getById(String id)
      Gets an existing peering service with the specified name under the given subscription and resource group.
      Parameters:
      id - the resource ID.
      Returns:
      an existing peering service with the specified name under the given subscription and resource group 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.
    • getByIdWithResponse

      com.azure.core.http.rest.Response<PeeringService> getByIdWithResponse(String id, com.azure.core.util.Context context)
      Gets an existing peering service with the specified name under the given subscription and resource group.
      Parameters:
      id - the resource ID.
      context - The context to associate with this operation.
      Returns:
      an existing peering service with the specified name under the given subscription and resource group 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.
    • deleteById

      void deleteById(String id)
      Deletes an existing peering service with the specified name under the given subscription and resource group.
      Parameters:
      id - the resource ID.
      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.
    • deleteByIdWithResponse

      com.azure.core.http.rest.Response<Void> deleteByIdWithResponse(String id, com.azure.core.util.Context context)
      Deletes an existing peering service with the specified name under the given subscription and resource group.
      Parameters:
      id - the resource ID.
      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.
    • define

      Begins definition for a new PeeringService resource.
      Parameters:
      name - resource name.
      Returns:
      the first stage of the new PeeringService definition.