Interface GrafanasClient
public interface GrafanasClient
An instance of this class provides access to all the operations defined in GrafanasClient.
-
Method Summary
Modifier and TypeMethodDescriptioncom.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<ManagedGrafanaInner>,
ManagedGrafanaInner> beginCreate
(String resourceGroupName, String workspaceName, ManagedGrafanaInner requestBodyParameters) Create or update a workspace for Grafana resource.com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<ManagedGrafanaInner>,
ManagedGrafanaInner> beginCreate
(String resourceGroupName, String workspaceName, ManagedGrafanaInner requestBodyParameters, com.azure.core.util.Context context) Create or update a workspace for Grafana resource.beginDelete
(String resourceGroupName, String workspaceName) Delete a workspace for Grafana resource.beginDelete
(String resourceGroupName, String workspaceName, com.azure.core.util.Context context) Delete a workspace for Grafana resource.create
(String resourceGroupName, String workspaceName, ManagedGrafanaInner requestBodyParameters) Create or update a workspace for Grafana resource.create
(String resourceGroupName, String workspaceName, ManagedGrafanaInner requestBodyParameters, com.azure.core.util.Context context) Create or update a workspace for Grafana resource.void
Delete a workspace for Grafana resource.void
Delete a workspace for Grafana resource.getByResourceGroup
(String resourceGroupName, String workspaceName) Get the properties of a specific workspace for Grafana resource.com.azure.core.http.rest.Response<ManagedGrafanaInner>
getByResourceGroupWithResponse
(String resourceGroupName, String workspaceName, com.azure.core.util.Context context) Get the properties of a specific workspace for Grafana resource.com.azure.core.http.rest.PagedIterable<ManagedGrafanaInner>
list()
List all resources of workspaces for Grafana under the specified subscription.com.azure.core.http.rest.PagedIterable<ManagedGrafanaInner>
list
(com.azure.core.util.Context context) List all resources of workspaces for Grafana under the specified subscription.com.azure.core.http.rest.PagedIterable<ManagedGrafanaInner>
listByResourceGroup
(String resourceGroupName) List all resources of workspaces for Grafana under the specified resource group.com.azure.core.http.rest.PagedIterable<ManagedGrafanaInner>
listByResourceGroup
(String resourceGroupName, com.azure.core.util.Context context) List all resources of workspaces for Grafana under the specified resource group.update
(String resourceGroupName, String workspaceName, ManagedGrafanaUpdateParameters requestBodyParameters) Update a workspace for Grafana resource.com.azure.core.http.rest.Response<ManagedGrafanaInner>
updateWithResponse
(String resourceGroupName, String workspaceName, ManagedGrafanaUpdateParameters requestBodyParameters, com.azure.core.util.Context context) Update a workspace for Grafana resource.
-
Method Details
-
list
com.azure.core.http.rest.PagedIterable<ManagedGrafanaInner> list()List all resources of workspaces for Grafana under the specified subscription.- Returns:
- the 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<ManagedGrafanaInner> list(com.azure.core.util.Context context) List all resources of workspaces for Grafana under the specified subscription.- Parameters:
context
- The context to associate with this operation.- Returns:
- the 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<ManagedGrafanaInner> listByResourceGroup(String resourceGroupName) List all resources of workspaces for Grafana under the specified resource group.- Parameters:
resourceGroupName
- The name of the resource group. The name is case insensitive.- Returns:
- the 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<ManagedGrafanaInner> listByResourceGroup(String resourceGroupName, com.azure.core.util.Context context) List all resources of workspaces for Grafana under the specified 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 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.
-
getByResourceGroup
Get the properties of a specific workspace for Grafana resource.- Parameters:
resourceGroupName
- The name of the resource group. The name is case insensitive.workspaceName
- The workspace name of Azure Managed Grafana.- Returns:
- the properties of a specific workspace for Grafana 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.
-
getByResourceGroupWithResponse
com.azure.core.http.rest.Response<ManagedGrafanaInner> getByResourceGroupWithResponse(String resourceGroupName, String workspaceName, com.azure.core.util.Context context) Get the properties of a specific workspace for Grafana resource.- Parameters:
resourceGroupName
- The name of the resource group. The name is case insensitive.workspaceName
- The workspace name of Azure Managed Grafana.context
- The context to associate with this operation.- Returns:
- the properties of a specific workspace for Grafana 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.
-
beginCreate
com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<ManagedGrafanaInner>,ManagedGrafanaInner> beginCreate(String resourceGroupName, String workspaceName, ManagedGrafanaInner requestBodyParameters) Create or update a workspace for Grafana resource. This API is idempotent, so user can either create a new grafana or update an existing grafana.- Parameters:
resourceGroupName
- The name of the resource group. The name is case insensitive.workspaceName
- The workspace name of Azure Managed Grafana.requestBodyParameters
- The grafana resource type.- Returns:
- the
SyncPoller
for polling of the grafana resource type. - 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<ManagedGrafanaInner>,ManagedGrafanaInner> beginCreate(String resourceGroupName, String workspaceName, ManagedGrafanaInner requestBodyParameters, com.azure.core.util.Context context) Create or update a workspace for Grafana resource. This API is idempotent, so user can either create a new grafana or update an existing grafana.- Parameters:
resourceGroupName
- The name of the resource group. The name is case insensitive.workspaceName
- The workspace name of Azure Managed Grafana.requestBodyParameters
- The grafana resource type.context
- The context to associate with this operation.- Returns:
- the
SyncPoller
for polling of the grafana resource type. - 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
ManagedGrafanaInner create(String resourceGroupName, String workspaceName, ManagedGrafanaInner requestBodyParameters) Create or update a workspace for Grafana resource. This API is idempotent, so user can either create a new grafana or update an existing grafana.- Parameters:
resourceGroupName
- The name of the resource group. The name is case insensitive.workspaceName
- The workspace name of Azure Managed Grafana.requestBodyParameters
- The grafana resource type.- Returns:
- the grafana resource type.
- 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
ManagedGrafanaInner create(String resourceGroupName, String workspaceName, ManagedGrafanaInner requestBodyParameters, com.azure.core.util.Context context) Create or update a workspace for Grafana resource. This API is idempotent, so user can either create a new grafana or update an existing grafana.- Parameters:
resourceGroupName
- The name of the resource group. The name is case insensitive.workspaceName
- The workspace name of Azure Managed Grafana.requestBodyParameters
- The grafana resource type.context
- The context to associate with this operation.- Returns:
- the grafana resource type.
- 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
ManagedGrafanaInner update(String resourceGroupName, String workspaceName, ManagedGrafanaUpdateParameters requestBodyParameters) Update a workspace for Grafana resource.- Parameters:
resourceGroupName
- The name of the resource group. The name is case insensitive.workspaceName
- The workspace name of Azure Managed Grafana.requestBodyParameters
- The parameters for a PATCH request to a grafana resource.- Returns:
- the grafana resource type.
- 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<ManagedGrafanaInner> updateWithResponse(String resourceGroupName, String workspaceName, ManagedGrafanaUpdateParameters requestBodyParameters, com.azure.core.util.Context context) Update a workspace for Grafana resource.- Parameters:
resourceGroupName
- The name of the resource group. The name is case insensitive.workspaceName
- The workspace name of Azure Managed Grafana.requestBodyParameters
- The parameters for a PATCH request to a grafana resource.context
- The context to associate with this operation.- Returns:
- the grafana resource type 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 workspaceName) Delete a workspace for Grafana resource.- Parameters:
resourceGroupName
- The name of the resource group. The name is case insensitive.workspaceName
- The workspace name of Azure Managed Grafana.- 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 workspaceName, com.azure.core.util.Context context) Delete a workspace for Grafana resource.- Parameters:
resourceGroupName
- The name of the resource group. The name is case insensitive.workspaceName
- The workspace name of Azure Managed Grafana.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 workspace for Grafana resource.- Parameters:
resourceGroupName
- The name of the resource group. The name is case insensitive.workspaceName
- The workspace name of Azure Managed Grafana.- 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 workspace for Grafana resource.- Parameters:
resourceGroupName
- The name of the resource group. The name is case insensitive.workspaceName
- The workspace name of Azure Managed Grafana.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.
-