Interface RunbookDrafts


public interface RunbookDrafts
Resource collection API of RunbookDrafts.
  • Method Summary

    Modifier and Type
    Method
    Description
    get(String resourceGroupName, String automationAccountName, String runbookName)
    Retrieve the runbook draft identified by runbook name.
    getContent(String resourceGroupName, String automationAccountName, String runbookName)
    Retrieve the content of runbook draft identified by runbook name.
    com.azure.core.http.rest.Response<Flux<ByteBuffer>>
    getContentWithResponse(String resourceGroupName, String automationAccountName, String runbookName, com.azure.core.util.Context context)
    Retrieve the content of runbook draft identified by runbook name.
    com.azure.core.http.rest.Response<RunbookDraft>
    getWithResponse(String resourceGroupName, String automationAccountName, String runbookName, com.azure.core.util.Context context)
    Retrieve the runbook draft identified by runbook name.
    com.azure.core.util.BinaryData
    replaceContent(String resourceGroupName, String automationAccountName, String runbookName, com.azure.core.util.BinaryData runbookContent, long contentLength)
    Replaces the runbook draft content.
    com.azure.core.util.BinaryData
    replaceContent(String resourceGroupName, String automationAccountName, String runbookName, com.azure.core.util.BinaryData runbookContent, long contentLength, com.azure.core.util.Context context)
    Replaces the runbook draft content.
    com.azure.core.util.BinaryData
    replaceContent(String resourceGroupName, String automationAccountName, String runbookName, Flux<ByteBuffer> runbookContent, long contentLength)
    Replaces the runbook draft content.
    com.azure.core.util.BinaryData
    replaceContent(String resourceGroupName, String automationAccountName, String runbookName, Flux<ByteBuffer> runbookContent, long contentLength, com.azure.core.util.Context context)
    Replaces the runbook draft content.
    undoEdit(String resourceGroupName, String automationAccountName, String runbookName)
    Undo draft edit to last known published state identified by runbook name.
    com.azure.core.http.rest.Response<RunbookDraftUndoEditResult>
    undoEditWithResponse(String resourceGroupName, String automationAccountName, String runbookName, com.azure.core.util.Context context)
    Undo draft edit to last known published state identified by runbook name.
  • Method Details

    • getContentWithResponse

      com.azure.core.http.rest.Response<Flux<ByteBuffer>> getContentWithResponse(String resourceGroupName, String automationAccountName, String runbookName, com.azure.core.util.Context context)
      Retrieve the content of runbook draft identified by runbook name.
      Parameters:
      resourceGroupName - Name of an Azure Resource group.
      automationAccountName - The name of the automation account.
      runbookName - The runbook name.
      context - The context to associate with this operation.
      Returns:
      the response body 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.
    • getContent

      Flux<ByteBuffer> getContent(String resourceGroupName, String automationAccountName, String runbookName)
      Retrieve the content of runbook draft identified by runbook name.
      Parameters:
      resourceGroupName - Name of an Azure Resource group.
      automationAccountName - The name of the automation account.
      runbookName - The runbook name.
      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.
    • replaceContent

      com.azure.core.util.BinaryData replaceContent(String resourceGroupName, String automationAccountName, String runbookName, Flux<ByteBuffer> runbookContent, long contentLength)
      Replaces the runbook draft content.
      Parameters:
      resourceGroupName - Name of an Azure Resource group.
      automationAccountName - The name of the automation account.
      runbookName - The runbook name.
      runbookContent - The runbook draft content.
      contentLength - The Content-Length header for the request.
      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.
    • replaceContent

      com.azure.core.util.BinaryData replaceContent(String resourceGroupName, String automationAccountName, String runbookName, Flux<ByteBuffer> runbookContent, long contentLength, com.azure.core.util.Context context)
      Replaces the runbook draft content.
      Parameters:
      resourceGroupName - Name of an Azure Resource group.
      automationAccountName - The name of the automation account.
      runbookName - The runbook name.
      runbookContent - The runbook draft content.
      contentLength - The Content-Length header for the request.
      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.
    • replaceContent

      com.azure.core.util.BinaryData replaceContent(String resourceGroupName, String automationAccountName, String runbookName, com.azure.core.util.BinaryData runbookContent, long contentLength)
      Replaces the runbook draft content.
      Parameters:
      resourceGroupName - Name of an Azure Resource group.
      automationAccountName - The name of the automation account.
      runbookName - The runbook name.
      runbookContent - The runbook draft content.
      contentLength - The Content-Length header for the request.
      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.
    • replaceContent

      com.azure.core.util.BinaryData replaceContent(String resourceGroupName, String automationAccountName, String runbookName, com.azure.core.util.BinaryData runbookContent, long contentLength, com.azure.core.util.Context context)
      Replaces the runbook draft content.
      Parameters:
      resourceGroupName - Name of an Azure Resource group.
      automationAccountName - The name of the automation account.
      runbookName - The runbook name.
      runbookContent - The runbook draft content.
      contentLength - The Content-Length header for the request.
      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.
    • getWithResponse

      com.azure.core.http.rest.Response<RunbookDraft> getWithResponse(String resourceGroupName, String automationAccountName, String runbookName, com.azure.core.util.Context context)
      Retrieve the runbook draft identified by runbook name.
      Parameters:
      resourceGroupName - Name of an Azure Resource group.
      automationAccountName - The name of the automation account.
      runbookName - The runbook name.
      context - The context to associate with this operation.
      Returns:
      the response body 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

      RunbookDraft get(String resourceGroupName, String automationAccountName, String runbookName)
      Retrieve the runbook draft identified by runbook name.
      Parameters:
      resourceGroupName - Name of an Azure Resource group.
      automationAccountName - The name of the automation account.
      runbookName - The runbook name.
      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.
    • undoEditWithResponse

      com.azure.core.http.rest.Response<RunbookDraftUndoEditResult> undoEditWithResponse(String resourceGroupName, String automationAccountName, String runbookName, com.azure.core.util.Context context)
      Undo draft edit to last known published state identified by runbook name.
      Parameters:
      resourceGroupName - Name of an Azure Resource group.
      automationAccountName - The name of the automation account.
      runbookName - The runbook name.
      context - The context to associate with this operation.
      Returns:
      the response model for the undo edit runbook 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.
    • undoEdit

      RunbookDraftUndoEditResult undoEdit(String resourceGroupName, String automationAccountName, String runbookName)
      Undo draft edit to last known published state identified by runbook name.
      Parameters:
      resourceGroupName - Name of an Azure Resource group.
      automationAccountName - The name of the automation account.
      runbookName - The runbook name.
      Returns:
      the response model for the undo edit runbook 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.