Interface AccessPolicies


public interface AccessPolicies
Resource collection API of AccessPolicies.
  • Method Details

    • getWithResponse

      com.azure.core.http.rest.Response<AccessPolicyResource> 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

      AccessPolicyResource 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.
    • 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

      void delete(String resourceGroupName, String environmentName, String accessPolicyName)
      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<AccessPolicyListResponse> 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

      AccessPolicyListResponse listByEnvironment(String resourceGroupName, String environmentName)
      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.
    • getById

      Gets the access policy with the specified name in the specified environment.
      Parameters:
      id - the resource ID.
      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.
    • getByIdWithResponse

      com.azure.core.http.rest.Response<AccessPolicyResource> getByIdWithResponse(String id, com.azure.core.util.Context context)
      Gets the access policy with the specified name in the specified environment.
      Parameters:
      id - the resource ID.
      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.
    • deleteById

      void deleteById(String id)
      Deletes the access policy with the specified name in the specified subscription, resource group, and environment.
      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

      com.azure.core.http.rest.Response<Void> deleteByIdWithResponse(String id, com.azure.core.util.Context context)
      Deletes the access policy with the specified name in the specified subscription, resource group, and environment.
      Parameters:
      id - the resource ID.
      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.
    • define

      Begins definition for a new AccessPolicyResource resource.
      Parameters:
      name - resource name.
      Returns:
      the first stage of the new AccessPolicyResource definition.