Interface LegacyPeeringsClient


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

    Modifier and Type
    Method
    Description
    com.azure.core.http.rest.PagedIterable<PeeringInner>
    list(String peeringLocation, LegacyPeeringsKind kind)
    Lists all of the legacy peerings under the given subscription matching the specified kind and location.
    com.azure.core.http.rest.PagedIterable<PeeringInner>
    list(String peeringLocation, LegacyPeeringsKind kind, Integer asn, com.azure.core.util.Context context)
    Lists all of the legacy peerings under the given subscription matching the specified kind and location.
  • Method Details

    • list

      com.azure.core.http.rest.PagedIterable<PeeringInner> list(String peeringLocation, LegacyPeeringsKind kind)
      Lists all of the legacy peerings under the given subscription matching the specified kind and location.
      Parameters:
      peeringLocation - The location of the peering.
      kind - The kind of the peering.
      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<PeeringInner> list(String peeringLocation, LegacyPeeringsKind kind, Integer asn, com.azure.core.util.Context context)
      Lists all of the legacy peerings under the given subscription matching the specified kind and location.
      Parameters:
      peeringLocation - The location of the peering.
      kind - The kind of the peering.
      asn - The ASN number associated with a legacy peering.
      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.