Compartir por


Peerings Interface

public interface Peerings

Resource collection API of Peerings.

Method Summary

Modifier and Type Method and Description
abstract Blank define(String name)

Begins definition for a new Peering resource.

abstract void deleteById(String id)

Deletes an existing peering with the specified name under the given subscription and resource group.

abstract Response<Void> deleteByIdWithResponse(String id, Context context)

Deletes an existing peering with the specified name under the given subscription and resource group.

abstract void deleteByResourceGroup(String resourceGroupName, String peeringName)

Deletes an existing peering with the specified name under the given subscription and resource group.

abstract Response<Void> deleteByResourceGroupWithResponse(String resourceGroupName, String peeringName, Context context)

Deletes an existing peering with the specified name under the given subscription and resource group.

abstract Peering getById(String id)

Gets an existing peering with the specified name under the given subscription and resource group.

abstract Response<Peering> getByIdWithResponse(String id, Context context)

Gets an existing peering with the specified name under the given subscription and resource group.

abstract Peering getByResourceGroup(String resourceGroupName, String peeringName)

Gets an existing peering with the specified name under the given subscription and resource group.

abstract Response<Peering> getByResourceGroupWithResponse(String resourceGroupName, String peeringName, Context context)

Gets an existing peering with the specified name under the given subscription and resource group.

abstract PagedIterable<Peering> list()

Lists all of the peerings under the given subscription.

abstract PagedIterable<Peering> list(Context context)

Lists all of the peerings under the given subscription.

abstract PagedIterable<Peering> listByResourceGroup(String resourceGroupName)

Lists all of the peerings under the given subscription and resource group.

abstract PagedIterable<Peering> listByResourceGroup(String resourceGroupName, Context context)

Lists all of the peerings under the given subscription and resource group.

Method Details

define

public abstract Peering.DefinitionStages.Blank define(String name)

Begins definition for a new Peering resource.

Parameters:

name - resource name.

Returns:

the first stage of the new Peering definition.

deleteById

public abstract void deleteById(String id)

Deletes an existing peering with the specified name under the given subscription and resource group.

Parameters:

id - the resource ID.

deleteByIdWithResponse

public abstract Response<Void> deleteByIdWithResponse(String id, Context context)

Deletes an existing peering with the specified name under the given subscription and resource group.

Parameters:

id - the resource ID.
context - The context to associate with this operation.

Returns:

deleteByResourceGroup

public abstract void deleteByResourceGroup(String resourceGroupName, String peeringName)

Deletes an existing peering with the specified name under the given subscription and resource group.

Parameters:

resourceGroupName - The name of the resource group.
peeringName - The name of the peering.

deleteByResourceGroupWithResponse

public abstract Response<Void> deleteByResourceGroupWithResponse(String resourceGroupName, String peeringName, Context context)

Deletes an existing peering with the specified name under the given subscription and resource group.

Parameters:

resourceGroupName - The name of the resource group.
peeringName - The name of the peering.
context - The context to associate with this operation.

Returns:

getById

public abstract Peering getById(String id)

Gets an existing peering with the specified name under the given subscription and resource group.

Parameters:

id - the resource ID.

Returns:

an existing peering with the specified name under the given subscription and resource group along with Response<T>.

getByIdWithResponse

public abstract Response<Peering> getByIdWithResponse(String id, Context context)

Gets an existing peering with the specified name under the given subscription and resource group.

Parameters:

id - the resource ID.
context - The context to associate with this operation.

Returns:

an existing peering with the specified name under the given subscription and resource group along with Response<T>.

getByResourceGroup

public abstract Peering getByResourceGroup(String resourceGroupName, String peeringName)

Gets an existing peering with the specified name under the given subscription and resource group.

Parameters:

resourceGroupName - The name of the resource group.
peeringName - The name of the peering.

Returns:

an existing peering with the specified name under the given subscription and resource group.

getByResourceGroupWithResponse

public abstract Response<Peering> getByResourceGroupWithResponse(String resourceGroupName, String peeringName, Context context)

Gets an existing peering with the specified name under the given subscription and resource group.

Parameters:

resourceGroupName - The name of the resource group.
peeringName - The name of the peering.
context - The context to associate with this operation.

Returns:

an existing peering with the specified name under the given subscription and resource group along with Response<T>.

list

public abstract PagedIterable<Peering> list()

Lists all of the peerings under the given subscription.

Returns:

the paginated list of peerings as paginated response with PagedIterable<T>.

list

public abstract PagedIterable<Peering> list(Context context)

Lists all of the peerings under the given subscription.

Parameters:

context - The context to associate with this operation.

Returns:

the paginated list of peerings as paginated response with PagedIterable<T>.

listByResourceGroup

public abstract PagedIterable<Peering> listByResourceGroup(String resourceGroupName)

Lists all of the peerings under the given subscription and resource group.

Parameters:

resourceGroupName - The name of the resource group.

Returns:

the paginated list of peerings as paginated response with PagedIterable<T>.

listByResourceGroup

public abstract PagedIterable<Peering> listByResourceGroup(String resourceGroupName, Context context)

Lists all of the peerings under the given subscription and resource group.

Parameters:

resourceGroupName - The name of the resource group.
context - The context to associate with this operation.

Returns:

the paginated list of peerings as paginated response with PagedIterable<T>.

Applies to