Interface RegisteredAsns


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

    Modifier and Type
    Method
    Description
    define(String name)
    Begins definition for a new PeeringRegisteredAsn resource.
    void
    delete(String resourceGroupName, String peeringName, String registeredAsnName)
    Deletes an existing registered ASN with the specified name under the given subscription, resource group and peering.
    void
    Deletes an existing registered ASN with the specified name under the given subscription, resource group and peering.
    com.azure.core.http.rest.Response<Void>
    deleteByIdWithResponse(String id, com.azure.core.util.Context context)
    Deletes an existing registered ASN with the specified name under the given subscription, resource group and peering.
    com.azure.core.http.rest.Response<Void>
    deleteWithResponse(String resourceGroupName, String peeringName, String registeredAsnName, com.azure.core.util.Context context)
    Deletes an existing registered ASN with the specified name under the given subscription, resource group and peering.
    get(String resourceGroupName, String peeringName, String registeredAsnName)
    Gets an existing registered ASN with the specified name under the given subscription, resource group and peering.
    Gets an existing registered ASN with the specified name under the given subscription, resource group and peering.
    com.azure.core.http.rest.Response<PeeringRegisteredAsn>
    getByIdWithResponse(String id, com.azure.core.util.Context context)
    Gets an existing registered ASN with the specified name under the given subscription, resource group and peering.
    com.azure.core.http.rest.Response<PeeringRegisteredAsn>
    getWithResponse(String resourceGroupName, String peeringName, String registeredAsnName, com.azure.core.util.Context context)
    Gets an existing registered ASN with the specified name under the given subscription, resource group and peering.
    com.azure.core.http.rest.PagedIterable<PeeringRegisteredAsn>
    listByPeering(String resourceGroupName, String peeringName)
    Lists all registered ASNs under the given subscription, resource group and peering.
    com.azure.core.http.rest.PagedIterable<PeeringRegisteredAsn>
    listByPeering(String resourceGroupName, String peeringName, com.azure.core.util.Context context)
    Lists all registered ASNs under the given subscription, resource group and peering.
  • Method Details

    • getWithResponse

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

      PeeringRegisteredAsn get(String resourceGroupName, String peeringName, String registeredAsnName)
      Gets an existing registered ASN with the specified name under the given subscription, resource group and peering.
      Parameters:
      resourceGroupName - The name of the resource group.
      peeringName - The name of the peering.
      registeredAsnName - The name of the registered ASN.
      Returns:
      an existing registered ASN with the specified name under the given subscription, resource group and 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.
    • deleteWithResponse

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

      com.azure.core.http.rest.PagedIterable<PeeringRegisteredAsn> listByPeering(String resourceGroupName, String peeringName)
      Lists all registered ASNs under the given subscription, resource group and peering.
      Parameters:
      resourceGroupName - The name of the resource group.
      peeringName - The name of the peering.
      Returns:
      the paginated list of peering registered ASNs 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.
    • listByPeering

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

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