Interface PeeringsClient
public interface PeeringsClient
An instance of this class provides access to all the operations defined in PeeringsClient.
-
Method Summary
Modifier and TypeMethodDescriptioncreateOrUpdate(String resourceGroupName, String peeringName, PeeringInner peering) Creates a new peering or updates an existing peering with the specified name under the given subscription and resource group.com.azure.core.http.rest.Response<PeeringInner> createOrUpdateWithResponse(String resourceGroupName, String peeringName, PeeringInner peering, com.azure.core.util.Context context) Creates a new peering or updates an existing peering with the specified name under the given subscription and resource group.voidDeletes an existing peering with the specified name under the given subscription and resource group.com.azure.core.http.rest.Response<Void> deleteWithResponse(String resourceGroupName, String peeringName, com.azure.core.util.Context context) Deletes an existing peering with the specified name under the given subscription and resource group.getByResourceGroup(String resourceGroupName, String peeringName) Gets an existing peering with the specified name under the given subscription and resource group.com.azure.core.http.rest.Response<PeeringInner> getByResourceGroupWithResponse(String resourceGroupName, String peeringName, com.azure.core.util.Context context) Gets an existing peering with the specified name under the given subscription and resource group.com.azure.core.http.rest.PagedIterable<PeeringInner> list()Lists all of the peerings under the given subscription.com.azure.core.http.rest.PagedIterable<PeeringInner> list(com.azure.core.util.Context context) Lists all of the peerings under the given subscription.com.azure.core.http.rest.PagedIterable<PeeringInner> listByResourceGroup(String resourceGroupName) Lists all of the peerings under the given subscription and resource group.com.azure.core.http.rest.PagedIterable<PeeringInner> listByResourceGroup(String resourceGroupName, com.azure.core.util.Context context) Lists all of the peerings under the given subscription and resource group.update(String resourceGroupName, String peeringName, ResourceTags tags) Updates tags for a peering with the specified name under the given subscription and resource group.com.azure.core.http.rest.Response<PeeringInner> updateWithResponse(String resourceGroupName, String peeringName, ResourceTags tags, com.azure.core.util.Context context) Updates tags for a peering with the specified name under the given subscription and resource group.
-
Method Details
-
getByResourceGroupWithResponse
com.azure.core.http.rest.Response<PeeringInner> getByResourceGroupWithResponse(String resourceGroupName, String peeringName, com.azure.core.util.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. - 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.
-
getByResourceGroup
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.
- 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<PeeringInner> createOrUpdateWithResponse(String resourceGroupName, String peeringName, PeeringInner peering, com.azure.core.util.Context context) Creates a new peering or updates 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.peering- The properties needed to create or update a peering.context- The context to associate with this operation.- Returns:
- peering is a logical representation of a set of connections to the Microsoft Cloud Edge at a location
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 peering or updates 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.peering- The properties needed to create or update a peering.- Returns:
- peering is a logical representation of a set of connections to the Microsoft Cloud Edge at a location.
- 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 resourceGroupName, String peeringName, com.azure.core.util.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:
- 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 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.- 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.
-
updateWithResponse
com.azure.core.http.rest.Response<PeeringInner> updateWithResponse(String resourceGroupName, String peeringName, ResourceTags tags, com.azure.core.util.Context context) Updates tags for a 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.tags- The resource tags.context- The context to associate with this operation.- Returns:
- peering is a logical representation of a set of connections to the Microsoft Cloud Edge at a location
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.
-
update
Updates tags for a 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.tags- The resource tags.- Returns:
- peering is a logical representation of a set of connections to the Microsoft Cloud Edge at a location.
- 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.
-
listByResourceGroup
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. - 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.
-
listByResourceGroup
com.azure.core.http.rest.PagedIterable<PeeringInner> listByResourceGroup(String resourceGroupName, com.azure.core.util.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. - 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<PeeringInner> list()Lists all of the peerings under the given subscription.- Returns:
- the paginated list of peerings 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 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. - 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.
-