PeerAsnsClient Interface

public interface PeerAsnsClient

An instance of this class provides access to all the operations defined in PeerAsnsClient.

Method Summary

Modifier and Type Method and Description
abstract PeerAsnInner createOrUpdate(String peerAsnName, PeerAsnInner peerAsn)

Creates a new peer ASN or updates an existing peer ASN with the specified name under the given subscription.

abstract Response<PeerAsnInner> createOrUpdateWithResponse(String peerAsnName, PeerAsnInner peerAsn, Context context)

Creates a new peer ASN or updates an existing peer ASN with the specified name under the given subscription.

abstract void delete(String peerAsnName)

Deletes an existing peer ASN with the specified name under the given subscription.

abstract Response<Void> deleteWithResponse(String peerAsnName, Context context)

Deletes an existing peer ASN with the specified name under the given subscription.

abstract PeerAsnInner get(String peerAsnName)

Gets the peer ASN with the specified name under the given subscription.

abstract Response<PeerAsnInner> getWithResponse(String peerAsnName, Context context)

Gets the peer ASN with the specified name under the given subscription.

abstract PagedIterable<PeerAsnInner> list()

Lists all of the peer ASNs under the given subscription.

abstract PagedIterable<PeerAsnInner> list(Context context)

Lists all of the peer ASNs under the given subscription.

Method Details

createOrUpdate

public abstract PeerAsnInner createOrUpdate(String peerAsnName, PeerAsnInner peerAsn)

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.

createOrUpdateWithResponse

public abstract Response<PeerAsnInner> createOrUpdateWithResponse(String peerAsnName, PeerAsnInner peerAsn, 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<T>.

delete

public abstract void delete(String peerAsnName)

Deletes an existing peer ASN with the specified name under the given subscription.

Parameters:

peerAsnName - The peer ASN name.

deleteWithResponse

public abstract Response<Void> deleteWithResponse(String peerAsnName, 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:

get

public abstract PeerAsnInner get(String peerAsnName)

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.

getWithResponse

public abstract Response<PeerAsnInner> getWithResponse(String peerAsnName, 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<T>.

list

public abstract 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<T>.

list

public abstract PagedIterable<PeerAsnInner> list(Context context)

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<T>.

Applies to