Interface RegisteredAsnsClient
public interface RegisteredAsnsClient
An instance of this class provides access to all the operations defined in RegisteredAsnsClient.
-
Method Summary
Modifier and TypeMethodDescriptioncreateOrUpdate(String resourceGroupName, String peeringName, String registeredAsnName, PeeringRegisteredAsnInner registeredAsn) Creates a new registered ASN with the specified name under the given subscription, resource group and peering.com.azure.core.http.rest.Response<PeeringRegisteredAsnInner> createOrUpdateWithResponse(String resourceGroupName, String peeringName, String registeredAsnName, PeeringRegisteredAsnInner registeredAsn, com.azure.core.util.Context context) Creates a new registered ASN with the specified name under the given subscription, resource group and peering.voidDeletes 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.Gets an existing registered ASN with the specified name under the given subscription, resource group and peering.com.azure.core.http.rest.Response<PeeringRegisteredAsnInner> 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<PeeringRegisteredAsnInner> listByPeering(String resourceGroupName, String peeringName) Lists all registered ASNs under the given subscription, resource group and peering.com.azure.core.http.rest.PagedIterable<PeeringRegisteredAsnInner> 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<PeeringRegisteredAsnInner> 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
PeeringRegisteredAsnInner 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.
-
createOrUpdateWithResponse
com.azure.core.http.rest.Response<PeeringRegisteredAsnInner> createOrUpdateWithResponse(String resourceGroupName, String peeringName, String registeredAsnName, PeeringRegisteredAsnInner registeredAsn, com.azure.core.util.Context context) Creates a new 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 ASN.registeredAsn- The properties needed to create a registered ASN.context- The context to associate with this operation.- Returns:
- the customer's ASN that is registered by the peering service provider 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
PeeringRegisteredAsnInner createOrUpdate(String resourceGroupName, String peeringName, String registeredAsnName, PeeringRegisteredAsnInner registeredAsn) Creates a new 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 ASN.registeredAsn- The properties needed to create a registered ASN.- Returns:
- the customer's ASN that is registered by the peering service provider.
- 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
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<PeeringRegisteredAsnInner> 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<PeeringRegisteredAsnInner> 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.
-