Interface IncidentComments


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

    • list

      com.azure.core.http.rest.PagedIterable<IncidentComment> list(String resourceGroupName, String workspaceName, String incidentId)
      Gets all incident comments.
      Parameters:
      resourceGroupName - The name of the resource group. The name is case insensitive.
      workspaceName - The name of the workspace.
      incidentId - Incident ID.
      Returns:
      all incident comments 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<IncidentComment> list(String resourceGroupName, String workspaceName, String incidentId, String filter, String orderby, Integer top, String skipToken, com.azure.core.util.Context context)
      Gets all incident comments.
      Parameters:
      resourceGroupName - The name of the resource group. The name is case insensitive.
      workspaceName - The name of the workspace.
      incidentId - Incident ID.
      filter - Filters the results, based on a Boolean condition. Optional.
      orderby - Sorts the results. Optional.
      top - Returns only the first n results. Optional.
      skipToken - Skiptoken is only used if a previous operation returned a partial result. If a previous response contains a nextLink element, the value of the nextLink element will include a skiptoken parameter that specifies a starting point to use for subsequent calls. Optional.
      context - The context to associate with this operation.
      Returns:
      all incident comments 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

      IncidentComment get(String resourceGroupName, String workspaceName, String incidentId, String incidentCommentId)
      Gets an incident comment.
      Parameters:
      resourceGroupName - The name of the resource group. The name is case insensitive.
      workspaceName - The name of the workspace.
      incidentId - Incident ID.
      incidentCommentId - Incident comment ID.
      Returns:
      an incident comment.
      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<IncidentComment> getWithResponse(String resourceGroupName, String workspaceName, String incidentId, String incidentCommentId, com.azure.core.util.Context context)
      Gets an incident comment.
      Parameters:
      resourceGroupName - The name of the resource group. The name is case insensitive.
      workspaceName - The name of the workspace.
      incidentId - Incident ID.
      incidentCommentId - Incident comment ID.
      context - The context to associate with this operation.
      Returns:
      an incident comment 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 incidentId, String incidentCommentId)
      Delete the incident comment.
      Parameters:
      resourceGroupName - The name of the resource group. The name is case insensitive.
      workspaceName - The name of the workspace.
      incidentId - Incident ID.
      incidentCommentId - Incident comment 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 incidentId, String incidentCommentId, com.azure.core.util.Context context)
      Delete the incident comment.
      Parameters:
      resourceGroupName - The name of the resource group. The name is case insensitive.
      workspaceName - The name of the workspace.
      incidentId - Incident ID.
      incidentCommentId - Incident comment 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.
    • getById

      IncidentComment getById(String id)
      Gets an incident comment.
      Parameters:
      id - the resource ID.
      Returns:
      an incident comment 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<IncidentComment> getByIdWithResponse(String id, com.azure.core.util.Context context)
      Gets an incident comment.
      Parameters:
      id - the resource ID.
      context - The context to associate with this operation.
      Returns:
      an incident comment 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)
      Delete the incident comment.
      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)
      Delete the incident comment.
      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 IncidentComment resource.
      Parameters:
      name - resource name.
      Returns:
      the first stage of the new IncidentComment definition.