PeeringServicesClient Interface

public interface PeeringServicesClient

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

Method Summary

Modifier and Type Method and Description
abstract PeeringServiceInner createOrUpdate(String resourceGroupName, String peeringServiceName, PeeringServiceInner peeringService)

Creates a new peering service or updates an existing peering with the specified name under the given subscription and resource group.

abstract Response<PeeringServiceInner> createOrUpdateWithResponse(String resourceGroupName, String peeringServiceName, PeeringServiceInner peeringService, Context context)

Creates a new peering service or updates an existing peering with the specified name under the given subscription and resource group.

abstract void delete(String resourceGroupName, String peeringServiceName)

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

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

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

abstract PeeringServiceInner getByResourceGroup(String resourceGroupName, String peeringServiceName)

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

abstract Response<PeeringServiceInner> getByResourceGroupWithResponse(String resourceGroupName, String peeringServiceName, Context context)

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

abstract PagedIterable<PeeringServiceInner> list()

Lists all of the peerings under the given subscription.

abstract PagedIterable<PeeringServiceInner> list(Context context)

Lists all of the peerings under the given subscription.

abstract PagedIterable<PeeringServiceInner> listByResourceGroup(String resourceGroupName)

Lists all of the peering services under the given subscription and resource group.

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

Lists all of the peering services under the given subscription and resource group.

abstract PeeringServiceInner update(String resourceGroupName, String peeringServiceName, ResourceTags tags)

Updates tags for a peering service with the specified name under the given subscription and resource group.

abstract Response<PeeringServiceInner> updateWithResponse(String resourceGroupName, String peeringServiceName, ResourceTags tags, Context context)

Updates tags for a peering service with the specified name under the given subscription and resource group.

Method Details

createOrUpdate

public abstract PeeringServiceInner createOrUpdate(String resourceGroupName, String peeringServiceName, PeeringServiceInner peeringService)

Creates a new peering service or updates an existing peering with the specified name under the given subscription and resource group.

Parameters:

resourceGroupName - The name of the resource group.
peeringServiceName - The name of the peering service.
peeringService - The properties needed to create or update a peering service.

Returns:

peering Service.

createOrUpdateWithResponse

public abstract Response<PeeringServiceInner> createOrUpdateWithResponse(String resourceGroupName, String peeringServiceName, PeeringServiceInner peeringService, Context context)

Creates a new peering service or updates an existing peering with the specified name under the given subscription and resource group.

Parameters:

resourceGroupName - The name of the resource group.
peeringServiceName - The name of the peering service.
peeringService - The properties needed to create or update a peering service.
context - The context to associate with this operation.

Returns:

peering Service along with Response<T>.

delete

public abstract void delete(String resourceGroupName, String peeringServiceName)

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

Parameters:

resourceGroupName - The name of the resource group.
peeringServiceName - The name of the peering service.

deleteWithResponse

public abstract Response<Void> deleteWithResponse(String resourceGroupName, String peeringServiceName, Context context)

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

Parameters:

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

Returns:

getByResourceGroup

public abstract PeeringServiceInner getByResourceGroup(String resourceGroupName, String peeringServiceName)

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

Parameters:

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

Returns:

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

getByResourceGroupWithResponse

public abstract Response<PeeringServiceInner> getByResourceGroupWithResponse(String resourceGroupName, String peeringServiceName, Context context)

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

Parameters:

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

Returns:

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

list

public abstract PagedIterable<PeeringServiceInner> list()

Lists all of the peerings under the given subscription.

Returns:

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

list

public abstract PagedIterable<PeeringServiceInner> 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 peering services as paginated response with PagedIterable<T>.

listByResourceGroup

public abstract PagedIterable<PeeringServiceInner> listByResourceGroup(String resourceGroupName)

Lists all of the peering services under the given subscription and resource group.

Parameters:

resourceGroupName - The name of the resource group.

Returns:

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

listByResourceGroup

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

Lists all of the peering services 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 peering services as paginated response with PagedIterable<T>.

update

public abstract PeeringServiceInner update(String resourceGroupName, String peeringServiceName, ResourceTags tags)

Updates tags for a peering service with the specified name under the given subscription and resource group.

Parameters:

resourceGroupName - The name of the resource group.
peeringServiceName - The name of the peering service.
tags - The resource tags.

Returns:

peering Service.

updateWithResponse

public abstract Response<PeeringServiceInner> updateWithResponse(String resourceGroupName, String peeringServiceName, ResourceTags tags, Context context)

Updates tags for a peering service with the specified name under the given subscription and resource group.

Parameters:

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

Returns:

peering Service along with Response<T>.

Applies to