Interface PeeringServicesClient
public interface PeeringServicesClient
An instance of this class provides access to all the operations defined in PeeringServicesClient.
-
Method Summary
Modifier and TypeMethodDescriptioncreateOrUpdate(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.com.azure.core.http.rest.Response<PeeringServiceInner> createOrUpdateWithResponse(String resourceGroupName, String peeringServiceName, PeeringServiceInner peeringService, com.azure.core.util.Context context) Creates a new peering service or updates an existing peering with the specified name under the given subscription and resource group.voidDeletes an existing peering service with the specified name under the given subscription and resource group.com.azure.core.http.rest.Response<Void> deleteWithResponse(String resourceGroupName, String peeringServiceName, com.azure.core.util.Context context) Deletes an existing peering service with the specified name under the given subscription and resource group.getByResourceGroup(String resourceGroupName, String peeringServiceName) Gets an existing peering service with the specified name under the given subscription and resource group.com.azure.core.http.rest.Response<PeeringServiceInner> getByResourceGroupWithResponse(String resourceGroupName, String peeringServiceName, com.azure.core.util.Context context) Gets an existing peering service with the specified name under the given subscription and resource group.com.azure.core.http.rest.PagedIterable<PeeringServiceInner> list()Lists all of the peerings under the given subscription.com.azure.core.http.rest.PagedIterable<PeeringServiceInner> list(com.azure.core.util.Context context) Lists all of the peerings under the given subscription.com.azure.core.http.rest.PagedIterable<PeeringServiceInner> listByResourceGroup(String resourceGroupName) Lists all of the peering services under the given subscription and resource group.com.azure.core.http.rest.PagedIterable<PeeringServiceInner> listByResourceGroup(String resourceGroupName, com.azure.core.util.Context context) Lists all of the peering services under the given subscription and resource group.update(String resourceGroupName, String peeringServiceName, ResourceTags tags) Updates tags for a peering service with the specified name under the given subscription and resource group.com.azure.core.http.rest.Response<PeeringServiceInner> updateWithResponse(String resourceGroupName, String peeringServiceName, ResourceTags tags, com.azure.core.util.Context context) Updates tags for a peering service with the specified name under the given subscription and resource group.
-
Method Details
-
getByResourceGroupWithResponse
com.azure.core.http.rest.Response<PeeringServiceInner> getByResourceGroupWithResponse(String resourceGroupName, String peeringServiceName, com.azure.core.util.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. - 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 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.
- 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<PeeringServiceInner> createOrUpdateWithResponse(String resourceGroupName, String peeringServiceName, PeeringServiceInner peeringService, com.azure.core.util.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. - 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
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.
- 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 peeringServiceName, com.azure.core.util.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:
- 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 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.- 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<PeeringServiceInner> updateWithResponse(String resourceGroupName, String peeringServiceName, ResourceTags tags, com.azure.core.util.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. - 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 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.
- 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<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. - 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<PeeringServiceInner> listByResourceGroup(String resourceGroupName, com.azure.core.util.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. - 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<PeeringServiceInner> list()Lists all of the peerings under the given subscription.- Returns:
- the paginated list of peering services 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
com.azure.core.http.rest.PagedIterable<PeeringServiceInner> list(com.azure.core.util.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. - 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.
-