Interface Peerings


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

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

    • getByResourceGroupWithResponse

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

      Peering getByResourceGroup(String resourceGroupName, String peeringName)
      Gets an existing peering with the specified name under the given subscription and resource group.
      Parameters:
      resourceGroupName - The name of the resource group.
      peeringName - The name of the peering.
      Returns:
      an existing peering 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 peeringName, com.azure.core.util.Context context)
      Deletes an existing peering with the specified name under the given subscription and resource group.
      Parameters:
      resourceGroupName - The name of the resource group.
      peeringName - The name of the peering.
      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 peeringName)
      Deletes an existing peering with the specified name under the given subscription and resource group.
      Parameters:
      resourceGroupName - The name of the resource group.
      peeringName - The name of the peering.
      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<Peering> listByResourceGroup(String resourceGroupName)
      Lists all of the peerings under the given subscription and resource group.
      Parameters:
      resourceGroupName - The name of the resource group.
      Returns:
      the paginated list of peerings 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<Peering> listByResourceGroup(String resourceGroupName, com.azure.core.util.Context context)
      Lists all of the peerings 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 peerings 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<Peering> list()
      Lists all of the peerings under the given subscription.
      Returns:
      the paginated list of peerings 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<Peering> 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 peerings 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

      Peering getById(String id)
      Gets an existing peering with the specified name under the given subscription and resource group.
      Parameters:
      id - the resource ID.
      Returns:
      an existing peering 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<Peering> getByIdWithResponse(String id, com.azure.core.util.Context context)
      Gets an existing peering 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 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 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 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 Peering resource.
      Parameters:
      name - resource name.
      Returns:
      the first stage of the new Peering definition.