Interface BotsClient
public interface BotsClient
An instance of this class provides access to all the operations defined in BotsClient.
-
Method Summary
Modifier and TypeMethodDescriptioncom.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<HealthBotInner>,
HealthBotInner> beginCreate
(String resourceGroupName, String botName, HealthBotInner parameters) Create a new HealthBot.com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<HealthBotInner>,
HealthBotInner> beginCreate
(String resourceGroupName, String botName, HealthBotInner parameters, com.azure.core.util.Context context) Create a new HealthBot.beginDelete
(String resourceGroupName, String botName) Delete a HealthBot.beginDelete
(String resourceGroupName, String botName, com.azure.core.util.Context context) Delete a HealthBot.create
(String resourceGroupName, String botName, HealthBotInner parameters) Create a new HealthBot.create
(String resourceGroupName, String botName, HealthBotInner parameters, com.azure.core.util.Context context) Create a new HealthBot.void
Delete a HealthBot.void
Delete a HealthBot.getByResourceGroup
(String resourceGroupName, String botName) Get a HealthBot.com.azure.core.http.rest.Response<HealthBotInner>
getByResourceGroupWithResponse
(String resourceGroupName, String botName, com.azure.core.util.Context context) Get a HealthBot.com.azure.core.http.rest.PagedIterable<HealthBotInner>
list()
Returns all the resources of a particular type belonging to a subscription.com.azure.core.http.rest.PagedIterable<HealthBotInner>
list
(com.azure.core.util.Context context) Returns all the resources of a particular type belonging to a subscription.com.azure.core.http.rest.PagedIterable<HealthBotInner>
listByResourceGroup
(String resourceGroupName) Returns all the resources of a particular type belonging to a resource group.com.azure.core.http.rest.PagedIterable<HealthBotInner>
listByResourceGroup
(String resourceGroupName, com.azure.core.util.Context context) Returns all the resources of a particular type belonging to a resource group.update
(String resourceGroupName, String botName, HealthBotUpdateParameters parameters) Patch a HealthBot.com.azure.core.http.rest.Response<HealthBotInner>
updateWithResponse
(String resourceGroupName, String botName, HealthBotUpdateParameters parameters, com.azure.core.util.Context context) Patch a HealthBot.
-
Method Details
-
beginCreate
com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<HealthBotInner>,HealthBotInner> beginCreate(String resourceGroupName, String botName, HealthBotInner parameters) Create a new HealthBot.- Parameters:
resourceGroupName
- The name of the Bot resource group in the user subscription.botName
- The name of the Bot resource.parameters
- The parameters to provide for the created bot.- Returns:
- the
SyncPoller
for polling of healthBot resource definition. - 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.
-
beginCreate
com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<HealthBotInner>,HealthBotInner> beginCreate(String resourceGroupName, String botName, HealthBotInner parameters, com.azure.core.util.Context context) Create a new HealthBot.- Parameters:
resourceGroupName
- The name of the Bot resource group in the user subscription.botName
- The name of the Bot resource.parameters
- The parameters to provide for the created bot.context
- The context to associate with this operation.- Returns:
- the
SyncPoller
for polling of healthBot resource definition. - 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.
-
create
Create a new HealthBot.- Parameters:
resourceGroupName
- The name of the Bot resource group in the user subscription.botName
- The name of the Bot resource.parameters
- The parameters to provide for the created bot.- Returns:
- healthBot resource definition.
- 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.
-
create
HealthBotInner create(String resourceGroupName, String botName, HealthBotInner parameters, com.azure.core.util.Context context) Create a new HealthBot.- Parameters:
resourceGroupName
- The name of the Bot resource group in the user subscription.botName
- The name of the Bot resource.parameters
- The parameters to provide for the created bot.context
- The context to associate with this operation.- Returns:
- healthBot resource definition.
- 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
Get a HealthBot.- Parameters:
resourceGroupName
- The name of the Bot resource group in the user subscription.botName
- The name of the Bot resource.- Returns:
- a HealthBot.
- 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<HealthBotInner> getByResourceGroupWithResponse(String resourceGroupName, String botName, com.azure.core.util.Context context) Get a HealthBot.- Parameters:
resourceGroupName
- The name of the Bot resource group in the user subscription.botName
- The name of the Bot resource.context
- The context to associate with this operation.- Returns:
- a HealthBot 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
HealthBotInner update(String resourceGroupName, String botName, HealthBotUpdateParameters parameters) Patch a HealthBot.- Parameters:
resourceGroupName
- The name of the Bot resource group in the user subscription.botName
- The name of the Bot resource.parameters
- The parameters to provide for the required bot.- Returns:
- healthBot resource definition.
- 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<HealthBotInner> updateWithResponse(String resourceGroupName, String botName, HealthBotUpdateParameters parameters, com.azure.core.util.Context context) Patch a HealthBot.- Parameters:
resourceGroupName
- The name of the Bot resource group in the user subscription.botName
- The name of the Bot resource.parameters
- The parameters to provide for the required bot.context
- The context to associate with this operation.- Returns:
- healthBot resource definition 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.
-
beginDelete
com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<Void>,Void> beginDelete(String resourceGroupName, String botName) Delete a HealthBot.- Parameters:
resourceGroupName
- The name of the Bot resource group in the user subscription.botName
- The name of the Bot 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 botName, com.azure.core.util.Context context) Delete a HealthBot.- Parameters:
resourceGroupName
- The name of the Bot resource group in the user subscription.botName
- The name of the Bot 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
Delete a HealthBot.- Parameters:
resourceGroupName
- The name of the Bot resource group in the user subscription.botName
- The name of the Bot 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
Delete a HealthBot.- Parameters:
resourceGroupName
- The name of the Bot resource group in the user subscription.botName
- The name of the Bot 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.
-
listByResourceGroup
com.azure.core.http.rest.PagedIterable<HealthBotInner> listByResourceGroup(String resourceGroupName) Returns all the resources of a particular type belonging to a resource group.- Parameters:
resourceGroupName
- The name of the Bot resource group in the user subscription.- Returns:
- the list of Healthbot operation response 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<HealthBotInner> listByResourceGroup(String resourceGroupName, com.azure.core.util.Context context) Returns all the resources of a particular type belonging to a resource group.- Parameters:
resourceGroupName
- The name of the Bot resource group in the user subscription.context
- The context to associate with this operation.- Returns:
- the list of Healthbot operation response 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<HealthBotInner> list()Returns all the resources of a particular type belonging to a subscription.- Returns:
- the list of Healthbot operation response 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
Returns all the resources of a particular type belonging to a subscription.- Parameters:
context
- The context to associate with this operation.- Returns:
- the list of Healthbot operation response 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.
-