Dela via


IRunbookDraftOperations.ReplaceContentWithHttpMessagesAsync Metod

Definition

Ersätter runbook-utkastinnehållet. http://aka.ms/azureautomationsdk/runbookdraftoperations

public System.Threading.Tasks.Task<Microsoft.Rest.Azure.AzureOperationResponse<System.IO.Stream,Microsoft.Azure.Management.Automation.Models.RunbookDraftReplaceContentHeaders>> ReplaceContentWithHttpMessagesAsync (string resourceGroupName, string automationAccountName, string runbookName, System.IO.Stream runbookContent, System.Collections.Generic.Dictionary<string,System.Collections.Generic.List<string>> customHeaders = default, System.Threading.CancellationToken cancellationToken = default);
abstract member ReplaceContentWithHttpMessagesAsync : string * string * string * System.IO.Stream * System.Collections.Generic.Dictionary<string, System.Collections.Generic.List<string>> * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Rest.Azure.AzureOperationResponse<System.IO.Stream, Microsoft.Azure.Management.Automation.Models.RunbookDraftReplaceContentHeaders>>
Public Function ReplaceContentWithHttpMessagesAsync (resourceGroupName As String, automationAccountName As String, runbookName As String, runbookContent As Stream, Optional customHeaders As Dictionary(Of String, List(Of String)) = Nothing, Optional cancellationToken As CancellationToken = Nothing) As Task(Of AzureOperationResponse(Of Stream, RunbookDraftReplaceContentHeaders))

Parametrar

resourceGroupName
String

Namnet på en Azure-resursgrupp.

automationAccountName
String

Namnet på Automation-kontot.

runbookName
String

Runbook-namnet.

runbookContent
Stream

Runbook-utkastinnehållet.

customHeaders
Dictionary<String,List<String>>

Rubrikerna som ska läggas till i begäran.

cancellationToken
CancellationToken

Annulleringstoken.

Returer

Undantag

Genereras när åtgärden returnerade en ogiltig statuskod

Utlöses när det inte går att deserialisera svaret

Genereras när en obligatorisk parameter är null

Gäller för