Interface PeerAsns
public interface PeerAsns
Resource collection API of PeerAsns.
-
Method Summary
Modifier and TypeMethodDescriptionBegins definition for a new PeerAsn resource.voidDeletes an existing peer ASN with the specified name under the given subscription.voiddeleteById(String id) Deletes an existing peer ASN with the specified name under the given subscription.com.azure.core.http.rest.Response<Void> deleteByIdWithResponse(String id, com.azure.core.util.Context context) Deletes 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.Gets the peer ASN with the specified name under the given subscription.com.azure.core.http.rest.Response<PeerAsn> getByIdWithResponse(String id, com.azure.core.util.Context context) Gets the peer ASN with the specified name under the given subscription.com.azure.core.http.rest.Response<PeerAsn> 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<PeerAsn> list()Lists all of the peer ASNs under the given subscription.com.azure.core.http.rest.PagedIterable<PeerAsn> 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<PeerAsn> 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.
-
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<PeerAsn> 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.
-
getById
Gets the peer ASN with the specified name under the given subscription.- Parameters:
id- the resource ID.- 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.
-
getByIdWithResponse
com.azure.core.http.rest.Response<PeerAsn> getByIdWithResponse(String id, com.azure.core.util.Context context) Gets the peer ASN with the specified name under the given subscription.- Parameters:
id- the resource ID.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.
-
deleteById
Deletes an existing peer ASN with the specified name under the given subscription.- 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 peer ASN with the specified name under the given subscription.- 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 PeerAsn resource.- Parameters:
name- resource name.- Returns:
- the first stage of the new PeerAsn definition.
-