Interface AccessPoliciesClient
public interface AccessPoliciesClient
An instance of this class provides access to all the operations defined in AccessPoliciesClient.
-
Method Summary
Modifier and TypeMethodDescriptioncreateOrUpdate
(String resourceGroupName, String environmentName, String accessPolicyName, AccessPolicyCreateOrUpdateParameters parameters) Create or update an access policy in the specified environment.com.azure.core.http.rest.Response<AccessPolicyResourceInner>
createOrUpdateWithResponse
(String resourceGroupName, String environmentName, String accessPolicyName, AccessPolicyCreateOrUpdateParameters parameters, com.azure.core.util.Context context) Create or update an access policy in the specified environment.void
Deletes the access policy with the specified name in the specified subscription, resource group, and environment.com.azure.core.http.rest.Response<Void>
deleteWithResponse
(String resourceGroupName, String environmentName, String accessPolicyName, com.azure.core.util.Context context) Deletes the access policy with the specified name in the specified subscription, resource group, and environment.Gets the access policy with the specified name in the specified environment.com.azure.core.http.rest.Response<AccessPolicyResourceInner>
getWithResponse
(String resourceGroupName, String environmentName, String accessPolicyName, com.azure.core.util.Context context) Gets the access policy with the specified name in the specified environment.listByEnvironment
(String resourceGroupName, String environmentName) Lists all the available access policies associated with the environment.com.azure.core.http.rest.Response<AccessPolicyListResponseInner>
listByEnvironmentWithResponse
(String resourceGroupName, String environmentName, com.azure.core.util.Context context) Lists all the available access policies associated with the environment.update
(String resourceGroupName, String environmentName, String accessPolicyName, AccessPolicyUpdateParameters accessPolicyUpdateParameters) Updates the access policy with the specified name in the specified subscription, resource group, and environment.com.azure.core.http.rest.Response<AccessPolicyResourceInner>
updateWithResponse
(String resourceGroupName, String environmentName, String accessPolicyName, AccessPolicyUpdateParameters accessPolicyUpdateParameters, com.azure.core.util.Context context) Updates the access policy with the specified name in the specified subscription, resource group, and environment.
-
Method Details
-
createOrUpdateWithResponse
com.azure.core.http.rest.Response<AccessPolicyResourceInner> createOrUpdateWithResponse(String resourceGroupName, String environmentName, String accessPolicyName, AccessPolicyCreateOrUpdateParameters parameters, com.azure.core.util.Context context) Create or update an access policy in the specified environment.- Parameters:
resourceGroupName
- Name of an Azure Resource group.environmentName
- The name of the Time Series Insights environment associated with the specified resource group.accessPolicyName
- Name of the access policy.parameters
- Parameters for creating an access policy.context
- The context to associate with this operation.- Returns:
- an access policy is used to grant users and applications access to the environment 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.
-
createOrUpdate
AccessPolicyResourceInner createOrUpdate(String resourceGroupName, String environmentName, String accessPolicyName, AccessPolicyCreateOrUpdateParameters parameters) Create or update an access policy in the specified environment.- Parameters:
resourceGroupName
- Name of an Azure Resource group.environmentName
- The name of the Time Series Insights environment associated with the specified resource group.accessPolicyName
- Name of the access policy.parameters
- Parameters for creating an access policy.- Returns:
- an access policy is used to grant users and applications access to the environment.
- 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.
-
getWithResponse
com.azure.core.http.rest.Response<AccessPolicyResourceInner> getWithResponse(String resourceGroupName, String environmentName, String accessPolicyName, com.azure.core.util.Context context) Gets the access policy with the specified name in the specified environment.- Parameters:
resourceGroupName
- Name of an Azure Resource group.environmentName
- The name of the Time Series Insights environment associated with the specified resource group.accessPolicyName
- The name of the Time Series Insights access policy associated with the specified environment.context
- The context to associate with this operation.- Returns:
- the access policy with the specified name in the specified environment 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.
-
get
AccessPolicyResourceInner get(String resourceGroupName, String environmentName, String accessPolicyName) Gets the access policy with the specified name in the specified environment.- Parameters:
resourceGroupName
- Name of an Azure Resource group.environmentName
- The name of the Time Series Insights environment associated with the specified resource group.accessPolicyName
- The name of the Time Series Insights access policy associated with the specified environment.- Returns:
- the access policy with the specified name in the specified environment.
- 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<AccessPolicyResourceInner> updateWithResponse(String resourceGroupName, String environmentName, String accessPolicyName, AccessPolicyUpdateParameters accessPolicyUpdateParameters, com.azure.core.util.Context context) Updates the access policy with the specified name in the specified subscription, resource group, and environment.- Parameters:
resourceGroupName
- Name of an Azure Resource group.environmentName
- The name of the Time Series Insights environment associated with the specified resource group.accessPolicyName
- The name of the Time Series Insights access policy associated with the specified environment.accessPolicyUpdateParameters
- Request object that contains the updated information for the access policy.context
- The context to associate with this operation.- Returns:
- an access policy is used to grant users and applications access to the environment 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
AccessPolicyResourceInner update(String resourceGroupName, String environmentName, String accessPolicyName, AccessPolicyUpdateParameters accessPolicyUpdateParameters) Updates the access policy with the specified name in the specified subscription, resource group, and environment.- Parameters:
resourceGroupName
- Name of an Azure Resource group.environmentName
- The name of the Time Series Insights environment associated with the specified resource group.accessPolicyName
- The name of the Time Series Insights access policy associated with the specified environment.accessPolicyUpdateParameters
- Request object that contains the updated information for the access policy.- Returns:
- an access policy is used to grant users and applications access to the environment.
- 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.
-
deleteWithResponse
com.azure.core.http.rest.Response<Void> deleteWithResponse(String resourceGroupName, String environmentName, String accessPolicyName, com.azure.core.util.Context context) Deletes the access policy with the specified name in the specified subscription, resource group, and environment.- Parameters:
resourceGroupName
- Name of an Azure Resource group.environmentName
- The name of the Time Series Insights environment associated with the specified resource group.accessPolicyName
- The name of the Time Series Insights access policy associated with the specified environment.context
- The context to associate with this operation.- Returns:
- the
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.
-
delete
Deletes the access policy with the specified name in the specified subscription, resource group, and environment.- Parameters:
resourceGroupName
- Name of an Azure Resource group.environmentName
- The name of the Time Series Insights environment associated with the specified resource group.accessPolicyName
- The name of the Time Series Insights access policy associated with the specified environment.- 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.
-
listByEnvironmentWithResponse
com.azure.core.http.rest.Response<AccessPolicyListResponseInner> listByEnvironmentWithResponse(String resourceGroupName, String environmentName, com.azure.core.util.Context context) Lists all the available access policies associated with the environment.- Parameters:
resourceGroupName
- Name of an Azure Resource group.environmentName
- The name of the Time Series Insights environment associated with the specified resource group.context
- The context to associate with this operation.- Returns:
- the response of the List access policies operation 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.
-
listByEnvironment
Lists all the available access policies associated with the environment.- Parameters:
resourceGroupName
- Name of an Azure Resource group.environmentName
- The name of the Time Series Insights environment associated with the specified resource group.- Returns:
- the response of the List access policies 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.
-