Interface Bots
public interface Bots
Resource collection API of Bots.
-
Method Summary
Modifier and TypeMethodDescriptionBegins definition for a new HealthBot resource.void
Delete a HealthBot.void
deleteById
(String id) Delete a HealthBot.void
deleteByIdWithResponse
(String id, com.azure.core.util.Context context) Delete a HealthBot.void
deleteByResourceGroup
(String resourceGroupName, String botName) Delete a HealthBot.Get a HealthBot.com.azure.core.http.rest.Response<HealthBot>
getByIdWithResponse
(String id, com.azure.core.util.Context context) Get a HealthBot.getByResourceGroup
(String resourceGroupName, String botName) Get a HealthBot.com.azure.core.http.rest.Response<HealthBot>
getByResourceGroupWithResponse
(String resourceGroupName, String botName, com.azure.core.util.Context context) Get a HealthBot.com.azure.core.http.rest.PagedIterable<HealthBot>
list()
Returns all the resources of a particular type belonging to a subscription.com.azure.core.http.rest.PagedIterable<HealthBot>
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<HealthBot>
listByResourceGroup
(String resourceGroupName) Returns all the resources of a particular type belonging to a resource group.com.azure.core.http.rest.PagedIterable<HealthBot>
listByResourceGroup
(String resourceGroupName, com.azure.core.util.Context context) Returns all the resources of a particular type belonging to a resource group.
-
Method Details
-
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<HealthBot> 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.
-
deleteByResourceGroup
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
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<HealthBot> 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<HealthBot> 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.
-
getById
Get a HealthBot.- Parameters:
id
- the resource ID.- 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.
-
getByIdWithResponse
com.azure.core.http.rest.Response<HealthBot> getByIdWithResponse(String id, com.azure.core.util.Context context) Get a HealthBot.- Parameters:
id
- the resource ID.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.
-
deleteById
Delete a HealthBot.- 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 HealthBot.- 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 HealthBot resource.- Parameters:
name
- resource name.- Returns:
- the first stage of the new HealthBot definition.
-