Interface RunbookDraftsClient


public interface RunbookDraftsClient
An instance of this class provides access to all the operations defined in RunbookDraftsClient.
  • Method Details

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

      InputStream 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.
    • replaceContentWithResponse

      com.azure.core.http.rest.StreamResponse replaceContentWithResponse(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

      InputStream 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.
    • replaceContentWithResponse

      com.azure.core.http.rest.StreamResponse replaceContentWithResponse(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.
    • get

      RunbookDraftInner 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.
    • getWithResponse

      com.azure.core.http.rest.Response<RunbookDraftInner> 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.
    • undoEdit

      RunbookDraftUndoEditResultInner 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.
    • undoEditWithResponse

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