Interface CommunicationsGateways
public interface CommunicationsGateways
Resource collection API of CommunicationsGateways.
-
Method Summary
Modifier and TypeMethodDescriptionBegins definition for a new CommunicationsGateway resource.void
delete
(String resourceGroupName, String communicationsGatewayName, com.azure.core.util.Context context) Delete a CommunicationsGateway.void
deleteById
(String id) Delete a CommunicationsGateway.void
deleteByIdWithResponse
(String id, com.azure.core.util.Context context) Delete a CommunicationsGateway.void
deleteByResourceGroup
(String resourceGroupName, String communicationsGatewayName) Delete a CommunicationsGateway.Get a CommunicationsGateway.com.azure.core.http.rest.Response<CommunicationsGateway>
getByIdWithResponse
(String id, com.azure.core.util.Context context) Get a CommunicationsGateway.getByResourceGroup
(String resourceGroupName, String communicationsGatewayName) Get a CommunicationsGateway.com.azure.core.http.rest.Response<CommunicationsGateway>
getByResourceGroupWithResponse
(String resourceGroupName, String communicationsGatewayName, com.azure.core.util.Context context) Get a CommunicationsGateway.com.azure.core.http.rest.PagedIterable<CommunicationsGateway>
list()
List CommunicationsGateway resources by subscription ID.com.azure.core.http.rest.PagedIterable<CommunicationsGateway>
list
(com.azure.core.util.Context context) List CommunicationsGateway resources by subscription ID.com.azure.core.http.rest.PagedIterable<CommunicationsGateway>
listByResourceGroup
(String resourceGroupName) List CommunicationsGateway resources by resource group.com.azure.core.http.rest.PagedIterable<CommunicationsGateway>
listByResourceGroup
(String resourceGroupName, com.azure.core.util.Context context) List CommunicationsGateway resources by resource group.
-
Method Details
-
list
com.azure.core.http.rest.PagedIterable<CommunicationsGateway> list()List CommunicationsGateway resources by subscription ID.- Returns:
- the response of a CommunicationsGateway list operation 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<CommunicationsGateway> list(com.azure.core.util.Context context) List CommunicationsGateway resources by subscription ID.- Parameters:
context
- The context to associate with this operation.- Returns:
- the response of a CommunicationsGateway list operation 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<CommunicationsGateway> listByResourceGroup(String resourceGroupName) List CommunicationsGateway resources by resource group.- Parameters:
resourceGroupName
- The name of the resource group. The name is case insensitive.- Returns:
- the response of a CommunicationsGateway list operation 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<CommunicationsGateway> listByResourceGroup(String resourceGroupName, com.azure.core.util.Context context) List CommunicationsGateway resources by resource group.- Parameters:
resourceGroupName
- The name of the resource group. The name is case insensitive.context
- The context to associate with this operation.- Returns:
- the response of a CommunicationsGateway list operation 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.
-
getByResourceGroupWithResponse
com.azure.core.http.rest.Response<CommunicationsGateway> getByResourceGroupWithResponse(String resourceGroupName, String communicationsGatewayName, com.azure.core.util.Context context) Get a CommunicationsGateway.- Parameters:
resourceGroupName
- The name of the resource group. The name is case insensitive.communicationsGatewayName
- Unique identifier for this deployment.context
- The context to associate with this operation.- Returns:
- a CommunicationsGateway 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
CommunicationsGateway getByResourceGroup(String resourceGroupName, String communicationsGatewayName) Get a CommunicationsGateway.- Parameters:
resourceGroupName
- The name of the resource group. The name is case insensitive.communicationsGatewayName
- Unique identifier for this deployment.- Returns:
- a CommunicationsGateway.
- 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.
-
deleteByResourceGroup
Delete a CommunicationsGateway.- Parameters:
resourceGroupName
- The name of the resource group. The name is case insensitive.communicationsGatewayName
- Unique identifier for this deployment.- 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
void delete(String resourceGroupName, String communicationsGatewayName, com.azure.core.util.Context context) Delete a CommunicationsGateway.- Parameters:
resourceGroupName
- The name of the resource group. The name is case insensitive.communicationsGatewayName
- Unique identifier for this deployment.context
- The context to associate with this operation.- 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.
-
getById
Get a CommunicationsGateway.- Parameters:
id
- the resource ID.- Returns:
- a CommunicationsGateway 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.
-
getByIdWithResponse
com.azure.core.http.rest.Response<CommunicationsGateway> getByIdWithResponse(String id, com.azure.core.util.Context context) Get a CommunicationsGateway.- Parameters:
id
- the resource ID.context
- The context to associate with this operation.- Returns:
- a CommunicationsGateway 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.
-
deleteById
Delete a CommunicationsGateway.- Parameters:
id
- the resource ID.- 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.
-
deleteByIdWithResponse
Delete a CommunicationsGateway.- Parameters:
id
- the resource ID.context
- The context to associate with this operation.- 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.
-
define
Begins definition for a new CommunicationsGateway resource.- Parameters:
name
- resource name.- Returns:
- the first stage of the new CommunicationsGateway definition.
-