Interface CommunicationServicesClient
-
Method Summary
Modifier and TypeMethodDescriptioncom.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<CommunicationServiceResourceInner>,
CommunicationServiceResourceInner> beginCreateOrUpdate
(String resourceGroupName, String communicationServiceName, CommunicationServiceResourceInner parameters) Create Or Updatecom.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<CommunicationServiceResourceInner>,
CommunicationServiceResourceInner> beginCreateOrUpdate
(String resourceGroupName, String communicationServiceName, CommunicationServiceResourceInner parameters, com.azure.core.util.Context context) Create Or UpdatebeginDelete
(String resourceGroupName, String communicationServiceName) DeletebeginDelete
(String resourceGroupName, String communicationServiceName, com.azure.core.util.Context context) Deletecom.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<CommunicationServiceKeysInner>,
CommunicationServiceKeysInner> beginRegenerateKey
(String resourceGroupName, String communicationServiceName, RegenerateKeyParameters parameters) Regenerate Keycom.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<CommunicationServiceKeysInner>,
CommunicationServiceKeysInner> beginRegenerateKey
(String resourceGroupName, String communicationServiceName, RegenerateKeyParameters parameters, com.azure.core.util.Context context) Regenerate Keycom.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<CommunicationServiceResourceInner>,
CommunicationServiceResourceInner> beginUpdate
(String resourceGroupName, String communicationServiceName, CommunicationServiceResourceUpdate parameters) Updatecom.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<CommunicationServiceResourceInner>,
CommunicationServiceResourceInner> beginUpdate
(String resourceGroupName, String communicationServiceName, CommunicationServiceResourceUpdate parameters, com.azure.core.util.Context context) UpdatecheckNameAvailability
(NameAvailabilityParameters nameAvailabilityParameters) Check Name Availabilitycom.azure.core.http.rest.Response<CheckNameAvailabilityResponseInner>
checkNameAvailabilityWithResponse
(NameAvailabilityParameters nameAvailabilityParameters, com.azure.core.util.Context context) Check Name AvailabilitycreateOrUpdate
(String resourceGroupName, String communicationServiceName, CommunicationServiceResourceInner parameters) Create Or UpdatecreateOrUpdate
(String resourceGroupName, String communicationServiceName, CommunicationServiceResourceInner parameters, com.azure.core.util.Context context) Create Or Updatevoid
Deletevoid
delete
(String resourceGroupName, String communicationServiceName, com.azure.core.util.Context context) DeletegetByResourceGroup
(String resourceGroupName, String communicationServiceName) Getcom.azure.core.http.rest.Response<CommunicationServiceResourceInner>
getByResourceGroupWithResponse
(String resourceGroupName, String communicationServiceName, com.azure.core.util.Context context) GetlinkNotificationHub
(String resourceGroupName, String communicationServiceName) Link Notification Hubcom.azure.core.http.rest.Response<LinkedNotificationHubInner>
linkNotificationHubWithResponse
(String resourceGroupName, String communicationServiceName, LinkNotificationHubParameters linkNotificationHubParameters, com.azure.core.util.Context context) Link Notification Hubcom.azure.core.http.rest.PagedIterable<CommunicationServiceResourceInner>
list()
List By Subscriptioncom.azure.core.http.rest.PagedIterable<CommunicationServiceResourceInner>
list
(com.azure.core.util.Context context) List By Subscriptioncom.azure.core.http.rest.PagedIterable<CommunicationServiceResourceInner>
listByResourceGroup
(String resourceGroupName) List By Resource Groupcom.azure.core.http.rest.PagedIterable<CommunicationServiceResourceInner>
listByResourceGroup
(String resourceGroupName, com.azure.core.util.Context context) List By Resource GroupList Keyscom.azure.core.http.rest.Response<CommunicationServiceKeysInner>
listKeysWithResponse
(String resourceGroupName, String communicationServiceName, com.azure.core.util.Context context) List KeysregenerateKey
(String resourceGroupName, String communicationServiceName, RegenerateKeyParameters parameters) Regenerate KeyregenerateKey
(String resourceGroupName, String communicationServiceName, RegenerateKeyParameters parameters, com.azure.core.util.Context context) Regenerate Keyupdate
(String resourceGroupName, String communicationServiceName, CommunicationServiceResourceUpdate parameters) Updateupdate
(String resourceGroupName, String communicationServiceName, CommunicationServiceResourceUpdate parameters, com.azure.core.util.Context context) Update
-
Method Details
-
checkNameAvailability
CheckNameAvailabilityResponseInner checkNameAvailability(NameAvailabilityParameters nameAvailabilityParameters) Check Name AvailabilityChecks that the CommunicationService name is valid and is not already in use.
- Parameters:
nameAvailabilityParameters
- Parameters supplied to the operation.- Returns:
- the check availability result.
- 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.
-
checkNameAvailabilityWithResponse
com.azure.core.http.rest.Response<CheckNameAvailabilityResponseInner> checkNameAvailabilityWithResponse(NameAvailabilityParameters nameAvailabilityParameters, com.azure.core.util.Context context) Check Name AvailabilityChecks that the CommunicationService name is valid and is not already in use.
- Parameters:
nameAvailabilityParameters
- Parameters supplied to the operation.context
- The context to associate with this operation.- Returns:
- the check availability result 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.
-
linkNotificationHub
LinkedNotificationHubInner linkNotificationHub(String resourceGroupName, String communicationServiceName) Link Notification HubLinks an Azure Notification Hub to this communication service.
- Parameters:
resourceGroupName
- The name of the resource group. The name is case insensitive.communicationServiceName
- The name of the CommunicationService resource.- Returns:
- a notification hub that has been linked to the communication 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.
-
linkNotificationHubWithResponse
com.azure.core.http.rest.Response<LinkedNotificationHubInner> linkNotificationHubWithResponse(String resourceGroupName, String communicationServiceName, LinkNotificationHubParameters linkNotificationHubParameters, com.azure.core.util.Context context) Link Notification HubLinks an Azure Notification Hub to this communication service.
- Parameters:
resourceGroupName
- The name of the resource group. The name is case insensitive.communicationServiceName
- The name of the CommunicationService resource.linkNotificationHubParameters
- Parameters supplied to the operation.context
- The context to associate with this operation.- Returns:
- a notification hub that has been linked to the communication 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.
-
list
com.azure.core.http.rest.PagedIterable<CommunicationServiceResourceInner> list()List By SubscriptionHandles requests to list all resources in a subscription.
- Returns:
- object that includes an array of CommunicationServices and a possible link for next set 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<CommunicationServiceResourceInner> list(com.azure.core.util.Context context) List By SubscriptionHandles requests to list all resources in a subscription.
- Parameters:
context
- The context to associate with this operation.- Returns:
- object that includes an array of CommunicationServices and a possible link for next set 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<CommunicationServiceResourceInner> listByResourceGroup(String resourceGroupName) List By Resource GroupHandles requests to list all resources in a resource group.
- Parameters:
resourceGroupName
- The name of the resource group. The name is case insensitive.- Returns:
- object that includes an array of CommunicationServices and a possible link for next set 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<CommunicationServiceResourceInner> listByResourceGroup(String resourceGroupName, com.azure.core.util.Context context) List By Resource GroupHandles requests to list all resources in a resource group.
- Parameters:
resourceGroupName
- The name of the resource group. The name is case insensitive.context
- The context to associate with this operation.- Returns:
- object that includes an array of CommunicationServices and a possible link for next set 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.
-
beginUpdate
com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<CommunicationServiceResourceInner>,CommunicationServiceResourceInner> beginUpdate(String resourceGroupName, String communicationServiceName, CommunicationServiceResourceUpdate parameters) UpdateOperation to update an existing CommunicationService.
- Parameters:
resourceGroupName
- The name of the resource group. The name is case insensitive.communicationServiceName
- The name of the CommunicationService resource.parameters
- Parameters for the update operation.- Returns:
- the
SyncPoller
for polling of a class representing a CommunicationService resource. - 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.
-
beginUpdate
com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<CommunicationServiceResourceInner>,CommunicationServiceResourceInner> beginUpdate(String resourceGroupName, String communicationServiceName, CommunicationServiceResourceUpdate parameters, com.azure.core.util.Context context) UpdateOperation to update an existing CommunicationService.
- Parameters:
resourceGroupName
- The name of the resource group. The name is case insensitive.communicationServiceName
- The name of the CommunicationService resource.parameters
- Parameters for the update operation.context
- The context to associate with this operation.- Returns:
- the
SyncPoller
for polling of a class representing a CommunicationService resource. - 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
CommunicationServiceResourceInner update(String resourceGroupName, String communicationServiceName, CommunicationServiceResourceUpdate parameters) UpdateOperation to update an existing CommunicationService.
- Parameters:
resourceGroupName
- The name of the resource group. The name is case insensitive.communicationServiceName
- The name of the CommunicationService resource.parameters
- Parameters for the update operation.- Returns:
- a class representing a CommunicationService resource.
- 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
CommunicationServiceResourceInner update(String resourceGroupName, String communicationServiceName, CommunicationServiceResourceUpdate parameters, com.azure.core.util.Context context) UpdateOperation to update an existing CommunicationService.
- Parameters:
resourceGroupName
- The name of the resource group. The name is case insensitive.communicationServiceName
- The name of the CommunicationService resource.parameters
- Parameters for the update operation.context
- The context to associate with this operation.- Returns:
- a class representing a CommunicationService resource.
- 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
CommunicationServiceResourceInner getByResourceGroup(String resourceGroupName, String communicationServiceName) GetGet the CommunicationService and its properties.
- Parameters:
resourceGroupName
- The name of the resource group. The name is case insensitive.communicationServiceName
- The name of the CommunicationService resource.- Returns:
- the CommunicationService and its properties.
- 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<CommunicationServiceResourceInner> getByResourceGroupWithResponse(String resourceGroupName, String communicationServiceName, com.azure.core.util.Context context) GetGet the CommunicationService and its properties.
- Parameters:
resourceGroupName
- The name of the resource group. The name is case insensitive.communicationServiceName
- The name of the CommunicationService resource.context
- The context to associate with this operation.- Returns:
- the CommunicationService and its properties 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.
-
beginCreateOrUpdate
com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<CommunicationServiceResourceInner>,CommunicationServiceResourceInner> beginCreateOrUpdate(String resourceGroupName, String communicationServiceName, CommunicationServiceResourceInner parameters) Create Or UpdateCreate a new CommunicationService or update an existing CommunicationService.
- Parameters:
resourceGroupName
- The name of the resource group. The name is case insensitive.communicationServiceName
- The name of the CommunicationService resource.parameters
- Parameters for the create or update operation.- Returns:
- the
SyncPoller
for polling of a class representing a CommunicationService resource. - 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.
-
beginCreateOrUpdate
com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<CommunicationServiceResourceInner>,CommunicationServiceResourceInner> beginCreateOrUpdate(String resourceGroupName, String communicationServiceName, CommunicationServiceResourceInner parameters, com.azure.core.util.Context context) Create Or UpdateCreate a new CommunicationService or update an existing CommunicationService.
- Parameters:
resourceGroupName
- The name of the resource group. The name is case insensitive.communicationServiceName
- The name of the CommunicationService resource.parameters
- Parameters for the create or update operation.context
- The context to associate with this operation.- Returns:
- the
SyncPoller
for polling of a class representing a CommunicationService resource. - 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
CommunicationServiceResourceInner createOrUpdate(String resourceGroupName, String communicationServiceName, CommunicationServiceResourceInner parameters) Create Or UpdateCreate a new CommunicationService or update an existing CommunicationService.
- Parameters:
resourceGroupName
- The name of the resource group. The name is case insensitive.communicationServiceName
- The name of the CommunicationService resource.parameters
- Parameters for the create or update operation.- Returns:
- a class representing a CommunicationService resource.
- 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
CommunicationServiceResourceInner createOrUpdate(String resourceGroupName, String communicationServiceName, CommunicationServiceResourceInner parameters, com.azure.core.util.Context context) Create Or UpdateCreate a new CommunicationService or update an existing CommunicationService.
- Parameters:
resourceGroupName
- The name of the resource group. The name is case insensitive.communicationServiceName
- The name of the CommunicationService resource.parameters
- Parameters for the create or update operation.context
- The context to associate with this operation.- Returns:
- a class representing a CommunicationService resource.
- 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.
-
beginDelete
com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<Void>,Void> beginDelete(String resourceGroupName, String communicationServiceName) DeleteOperation to delete a CommunicationService.
- Parameters:
resourceGroupName
- The name of the resource group. The name is case insensitive.communicationServiceName
- The name of the CommunicationService resource.- Returns:
- the
SyncPoller
for polling of long-running 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.
-
beginDelete
com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<Void>,Void> beginDelete(String resourceGroupName, String communicationServiceName, com.azure.core.util.Context context) DeleteOperation to delete a CommunicationService.
- Parameters:
resourceGroupName
- The name of the resource group. The name is case insensitive.communicationServiceName
- The name of the CommunicationService resource.context
- The context to associate with this operation.- Returns:
- the
SyncPoller
for polling of long-running 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.
-
delete
DeleteOperation to delete a CommunicationService.
- Parameters:
resourceGroupName
- The name of the resource group. The name is case insensitive.communicationServiceName
- The name of the CommunicationService resource.- 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 communicationServiceName, com.azure.core.util.Context context) DeleteOperation to delete a CommunicationService.
- Parameters:
resourceGroupName
- The name of the resource group. The name is case insensitive.communicationServiceName
- The name of the CommunicationService resource.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.
-
listKeys
List KeysGet the access keys of the CommunicationService resource.
- Parameters:
resourceGroupName
- The name of the resource group. The name is case insensitive.communicationServiceName
- The name of the CommunicationService resource.- Returns:
- the access keys of the CommunicationService resource.
- 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.
-
listKeysWithResponse
com.azure.core.http.rest.Response<CommunicationServiceKeysInner> listKeysWithResponse(String resourceGroupName, String communicationServiceName, com.azure.core.util.Context context) List KeysGet the access keys of the CommunicationService resource.
- Parameters:
resourceGroupName
- The name of the resource group. The name is case insensitive.communicationServiceName
- The name of the CommunicationService resource.context
- The context to associate with this operation.- Returns:
- the access keys of the CommunicationService resource 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.
-
beginRegenerateKey
com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<CommunicationServiceKeysInner>,CommunicationServiceKeysInner> beginRegenerateKey(String resourceGroupName, String communicationServiceName, RegenerateKeyParameters parameters) Regenerate KeyRegenerate CommunicationService access key. PrimaryKey and SecondaryKey cannot be regenerated at the same time.
- Parameters:
resourceGroupName
- The name of the resource group. The name is case insensitive.communicationServiceName
- The name of the CommunicationService resource.parameters
- Parameter that describes the Regenerate Key Operation.- Returns:
- the
SyncPoller
for polling of a class representing the access keys of a CommunicationService. - 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.
-
beginRegenerateKey
com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<CommunicationServiceKeysInner>,CommunicationServiceKeysInner> beginRegenerateKey(String resourceGroupName, String communicationServiceName, RegenerateKeyParameters parameters, com.azure.core.util.Context context) Regenerate KeyRegenerate CommunicationService access key. PrimaryKey and SecondaryKey cannot be regenerated at the same time.
- Parameters:
resourceGroupName
- The name of the resource group. The name is case insensitive.communicationServiceName
- The name of the CommunicationService resource.parameters
- Parameter that describes the Regenerate Key Operation.context
- The context to associate with this operation.- Returns:
- the
SyncPoller
for polling of a class representing the access keys of a CommunicationService. - 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.
-
regenerateKey
CommunicationServiceKeysInner regenerateKey(String resourceGroupName, String communicationServiceName, RegenerateKeyParameters parameters) Regenerate KeyRegenerate CommunicationService access key. PrimaryKey and SecondaryKey cannot be regenerated at the same time.
- Parameters:
resourceGroupName
- The name of the resource group. The name is case insensitive.communicationServiceName
- The name of the CommunicationService resource.parameters
- Parameter that describes the Regenerate Key Operation.- Returns:
- a class representing the access keys of a CommunicationService.
- 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.
-
regenerateKey
CommunicationServiceKeysInner regenerateKey(String resourceGroupName, String communicationServiceName, RegenerateKeyParameters parameters, com.azure.core.util.Context context) Regenerate KeyRegenerate CommunicationService access key. PrimaryKey and SecondaryKey cannot be regenerated at the same time.
- Parameters:
resourceGroupName
- The name of the resource group. The name is case insensitive.communicationServiceName
- The name of the CommunicationService resource.parameters
- Parameter that describes the Regenerate Key Operation.context
- The context to associate with this operation.- Returns:
- a class representing the access keys of a CommunicationService.
- 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.
-