![JAR search and dependency download from the Maven repository](/logo.png)
com.azure.resourcemanager.automation.fluent.RunbookDraftsClient Maven / Gradle / Ivy
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// Code generated by Microsoft (R) AutoRest Code Generator.
package com.azure.resourcemanager.automation.fluent;
import com.azure.core.annotation.ReturnType;
import com.azure.core.annotation.ServiceMethod;
import com.azure.core.http.rest.Response;
import com.azure.core.management.polling.PollResult;
import com.azure.core.util.BinaryData;
import com.azure.core.util.Context;
import com.azure.core.util.polling.SyncPoller;
import com.azure.resourcemanager.automation.fluent.models.RunbookDraftInner;
import com.azure.resourcemanager.automation.fluent.models.RunbookDraftUndoEditResultInner;
import java.nio.ByteBuffer;
import reactor.core.publisher.Flux;
/**
* An instance of this class provides access to all the operations defined in RunbookDraftsClient.
*/
public interface RunbookDraftsClient {
/**
* Retrieve the content of runbook draft identified by runbook name.
*
* @param resourceGroupName Name of an Azure Resource group.
* @param automationAccountName The name of the automation account.
* @param runbookName The runbook name.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return the response body along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Response> getContentWithResponse(String resourceGroupName, String automationAccountName,
String runbookName, Context context);
/**
* Retrieve the content of runbook draft identified by runbook name.
*
* @param resourceGroupName Name of an Azure Resource group.
* @param automationAccountName The name of the automation account.
* @param runbookName The runbook name.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return the response.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Flux getContent(String resourceGroupName, String automationAccountName, String runbookName);
/**
* Replaces the runbook draft content.
*
* @param resourceGroupName Name of an Azure Resource group.
* @param automationAccountName The name of the automation account.
* @param runbookName The runbook name.
* @param runbookContent The runbook draft content.
* @param contentLength The Content-Length header for the request.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return the response.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
BinaryData replaceContent(String resourceGroupName, String automationAccountName, String runbookName,
Flux runbookContent, long contentLength);
/**
* Replaces the runbook draft content.
*
* @param resourceGroupName Name of an Azure Resource group.
* @param automationAccountName The name of the automation account.
* @param runbookName The runbook name.
* @param runbookContent The runbook draft content.
* @param contentLength The Content-Length header for the request.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return the response.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
BinaryData replaceContent(String resourceGroupName, String automationAccountName, String runbookName,
Flux runbookContent, long contentLength, Context context);
/**
* Replaces the runbook draft content.
*
* @param resourceGroupName Name of an Azure Resource group.
* @param automationAccountName The name of the automation account.
* @param runbookName The runbook name.
* @param runbookContent The runbook draft content.
* @param contentLength The Content-Length header for the request.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return the {@link SyncPoller} for polling of long-running operation.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller, BinaryData> beginReplaceContent(String resourceGroupName,
String automationAccountName, String runbookName, BinaryData runbookContent, long contentLength);
/**
* Replaces the runbook draft content.
*
* @param resourceGroupName Name of an Azure Resource group.
* @param automationAccountName The name of the automation account.
* @param runbookName The runbook name.
* @param runbookContent The runbook draft content.
* @param contentLength The Content-Length header for the request.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return the {@link SyncPoller} for polling of long-running operation.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller, BinaryData> beginReplaceContent(String resourceGroupName,
String automationAccountName, String runbookName, BinaryData runbookContent, long contentLength,
Context context);
/**
* Replaces the runbook draft content.
*
* @param resourceGroupName Name of an Azure Resource group.
* @param automationAccountName The name of the automation account.
* @param runbookName The runbook name.
* @param runbookContent The runbook draft content.
* @param contentLength The Content-Length header for the request.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return the response.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
BinaryData replaceContent(String resourceGroupName, String automationAccountName, String runbookName,
BinaryData runbookContent, long contentLength);
/**
* Replaces the runbook draft content.
*
* @param resourceGroupName Name of an Azure Resource group.
* @param automationAccountName The name of the automation account.
* @param runbookName The runbook name.
* @param runbookContent The runbook draft content.
* @param contentLength The Content-Length header for the request.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return the response.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
BinaryData replaceContent(String resourceGroupName, String automationAccountName, String runbookName,
BinaryData runbookContent, long contentLength, Context context);
/**
* Retrieve the runbook draft identified by runbook name.
*
* @param resourceGroupName Name of an Azure Resource group.
* @param automationAccountName The name of the automation account.
* @param runbookName The runbook name.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return the response body along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Response getWithResponse(String resourceGroupName, String automationAccountName,
String runbookName, Context context);
/**
* Retrieve the runbook draft identified by runbook name.
*
* @param resourceGroupName Name of an Azure Resource group.
* @param automationAccountName The name of the automation account.
* @param runbookName The runbook name.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return the response.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
RunbookDraftInner get(String resourceGroupName, String automationAccountName, String runbookName);
/**
* Undo draft edit to last known published state identified by runbook name.
*
* @param resourceGroupName Name of an Azure Resource group.
* @param automationAccountName The name of the automation account.
* @param runbookName The runbook name.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return the response model for the undo edit runbook operation along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Response undoEditWithResponse(String resourceGroupName,
String automationAccountName, String runbookName, Context context);
/**
* Undo draft edit to last known published state identified by runbook name.
*
* @param resourceGroupName Name of an Azure Resource group.
* @param automationAccountName The name of the automation account.
* @param runbookName The runbook name.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return the response model for the undo edit runbook operation.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
RunbookDraftUndoEditResultInner undoEdit(String resourceGroupName, String automationAccountName,
String runbookName);
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy