Interface PeerAsnsClient
public interface PeerAsnsClient
An instance of this class provides access to all the operations defined in PeerAsnsClient.
-
Method Summary
Modifier and TypeMethodDescriptioncreateOrUpdate(String peerAsnName, PeerAsnInner peerAsn) Creates a new peer ASN or updates an existing peer ASN with the specified name under the given subscription.com.azure.core.http.rest.Response<PeerAsnInner> createOrUpdateWithResponse(String peerAsnName, PeerAsnInner peerAsn, com.azure.core.util.Context context) Creates a new peer ASN or updates an existing peer ASN with the specified name under the given subscription.voidDeletes an existing peer ASN with the specified name under the given subscription.com.azure.core.http.rest.Response<Void> deleteWithResponse(String peerAsnName, com.azure.core.util.Context context) Deletes an existing peer ASN with the specified name under the given subscription.Gets the peer ASN with the specified name under the given subscription.com.azure.core.http.rest.Response<PeerAsnInner> getWithResponse(String peerAsnName, com.azure.core.util.Context context) Gets the peer ASN with the specified name under the given subscription.com.azure.core.http.rest.PagedIterable<PeerAsnInner> list()Lists all of the peer ASNs under the given subscription.com.azure.core.http.rest.PagedIterable<PeerAsnInner> list(com.azure.core.util.Context context) Lists all of the peer ASNs under the given subscription.
-
Method Details
-
getWithResponse
com.azure.core.http.rest.Response<PeerAsnInner> getWithResponse(String peerAsnName, com.azure.core.util.Context context) Gets the peer ASN with the specified name under the given subscription.- Parameters:
peerAsnName- The peer ASN name.context- The context to associate with this operation.- Returns:
- the peer ASN with the specified name under the given subscription 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
Gets the peer ASN with the specified name under the given subscription.- Parameters:
peerAsnName- The peer ASN name.- Returns:
- the peer ASN with the specified name under the given subscription.
- 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<PeerAsnInner> createOrUpdateWithResponse(String peerAsnName, PeerAsnInner peerAsn, com.azure.core.util.Context context) Creates a new peer ASN or updates an existing peer ASN with the specified name under the given subscription.- Parameters:
peerAsnName- The peer ASN name.peerAsn- The peer ASN.context- The context to associate with this operation.- Returns:
- the essential information related to the peer's ASN 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
Creates a new peer ASN or updates an existing peer ASN with the specified name under the given subscription.- Parameters:
peerAsnName- The peer ASN name.peerAsn- The peer ASN.- Returns:
- the essential information related to the peer's 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.
-
deleteWithResponse
com.azure.core.http.rest.Response<Void> deleteWithResponse(String peerAsnName, com.azure.core.util.Context context) Deletes an existing peer ASN with the specified name under the given subscription.- Parameters:
peerAsnName- The peer ASN name.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 peer ASN with the specified name under the given subscription.- Parameters:
peerAsnName- The peer ASN name.- 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<PeerAsnInner> list()Lists all of the peer ASNs under the given subscription.- Returns:
- the paginated list of peer ASNs 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
Lists all of the peer ASNs under the given subscription.- Parameters:
context- The context to associate with this operation.- Returns:
- the paginated list of peer 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.
-