Interface EntityQueries


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

    • list

      com.azure.core.http.rest.PagedIterable<EntityQuery> list(String resourceGroupName, String workspaceName)
      Gets all entity queries.
      Parameters:
      resourceGroupName - The name of the resource group. The name is case insensitive.
      workspaceName - The name of the workspace.
      Returns:
      all entity queries 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<EntityQuery> list(String resourceGroupName, String workspaceName, EntityQueriesKind kind, com.azure.core.util.Context context)
      Gets all entity queries.
      Parameters:
      resourceGroupName - The name of the resource group. The name is case insensitive.
      workspaceName - The name of the workspace.
      kind - The entity query kind we want to fetch.
      context - The context to associate with this operation.
      Returns:
      all entity queries 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.
    • get

      EntityQuery get(String resourceGroupName, String workspaceName, String entityQueryId)
      Gets an entity query.
      Parameters:
      resourceGroupName - The name of the resource group. The name is case insensitive.
      workspaceName - The name of the workspace.
      entityQueryId - entity query ID.
      Returns:
      an entity query.
      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<EntityQuery> getWithResponse(String resourceGroupName, String workspaceName, String entityQueryId, com.azure.core.util.Context context)
      Gets an entity query.
      Parameters:
      resourceGroupName - The name of the resource group. The name is case insensitive.
      workspaceName - The name of the workspace.
      entityQueryId - entity query ID.
      context - The context to associate with this operation.
      Returns:
      an entity query 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

      EntityQuery createOrUpdate(String resourceGroupName, String workspaceName, String entityQueryId, CustomEntityQuery entityQuery)
      Creates or updates the entity query.
      Parameters:
      resourceGroupName - The name of the resource group. The name is case insensitive.
      workspaceName - The name of the workspace.
      entityQueryId - entity query ID.
      entityQuery - The entity query we want to create or update.
      Returns:
      specific entity query.
      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.
    • createOrUpdateWithResponse

      com.azure.core.http.rest.Response<EntityQuery> createOrUpdateWithResponse(String resourceGroupName, String workspaceName, String entityQueryId, CustomEntityQuery entityQuery, com.azure.core.util.Context context)
      Creates or updates the entity query.
      Parameters:
      resourceGroupName - The name of the resource group. The name is case insensitive.
      workspaceName - The name of the workspace.
      entityQueryId - entity query ID.
      entityQuery - The entity query we want to create or update.
      context - The context to associate with this operation.
      Returns:
      specific entity query 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.
    • delete

      void delete(String resourceGroupName, String workspaceName, String entityQueryId)
      Delete the entity query.
      Parameters:
      resourceGroupName - The name of the resource group. The name is case insensitive.
      workspaceName - The name of the workspace.
      entityQueryId - entity query 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.
    • deleteWithResponse

      com.azure.core.http.rest.Response<Void> deleteWithResponse(String resourceGroupName, String workspaceName, String entityQueryId, com.azure.core.util.Context context)
      Delete the entity query.
      Parameters:
      resourceGroupName - The name of the resource group. The name is case insensitive.
      workspaceName - The name of the workspace.
      entityQueryId - entity query 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.