Language

BillingBenefits.SavingsPlanValidateUpdate Method

Definition

Overloads

SavingsPlanValidateUpdate(String, String, ISavingsPlanUpdateValidateRequest, Func<HttpResponseMessage,Task<ISavingsPlanValidateResponse>, Task>, Func<HttpResponseMessage,Task<IErrorResponse>,Task>, IEventListener, ISendAsync)

Validate savings plan patch.

public System.Threading.Tasks.Task SavingsPlanValidateUpdate(string savingsPlanOrderId, string savingsPlanId, Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanUpdateValidateRequest body, Func<System.Net.Http.HttpResponseMessage,System.Threading.Tasks.Task<Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanValidateResponse>,System.Threading.Tasks.Task> onOk, Func<System.Net.Http.HttpResponseMessage,System.Threading.Tasks.Task<Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api30.IErrorResponse>,System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Runtime.ISendAsync sender);
member this.SavingsPlanValidateUpdate : string * string * Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanUpdateValidateRequest * Func<System.Net.Http.HttpResponseMessage, System.Threading.Tasks.Task<Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanValidateResponse>, System.Threading.Tasks.Task> * Func<System.Net.Http.HttpResponseMessage, System.Threading.Tasks.Task<Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api30.IErrorResponse>, System.Threading.Tasks.Task> * Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Runtime.IEventListener * Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Runtime.ISendAsync -> System.Threading.Tasks.Task
Public Function SavingsPlanValidateUpdate (savingsPlanOrderId As String, savingsPlanId As String, body As ISavingsPlanUpdateValidateRequest, onOk As Func(Of HttpResponseMessage, Task(Of ISavingsPlanValidateResponse), Task), onDefault As Func(Of HttpResponseMessage, Task(Of IErrorResponse), Task), eventListener As IEventListener, sender As ISendAsync) As Task

Parameters

savingsPlanOrderId
String

Order ID of the savings plan

savingsPlanId
String

ID of the savings plan

body
ISavingsPlanUpdateValidateRequest

Request body for validating a savings plan patch request

onOk
Func<HttpResponseMessage,Task<ISavingsPlanValidateResponse>,Task>

a delegate that is called when the remote service returns 200 (OK).

onDefault
Func<HttpResponseMessage,Task<IErrorResponse>,Task>

a delegate that is called when the remote service returns default (any response code not handled elsewhere).

eventListener
IEventListener

an IEventListener instance that will receive events.

sender
ISendAsync

an instance of an Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Runtime.ISendAsync pipeline to use to make the request.

Returns

A Task that will be complete when handling of the response is completed.

Applies to

SavingsPlanValidateUpdate(String, String, ISavingsPlanUpdateValidateRequest, Func<HttpResponseMessage,Task<ISavingsPlanValidateResponse>, Task>, Func<HttpResponseMessage,Task<IErrorResponse>,Task>, IEventListener, ISendAsync, SerializationMode)

public System.Threading.Tasks.Task SavingsPlanValidateUpdate(string savingsPlanOrderId, string savingsPlanId, Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.ISavingsPlanUpdateValidateRequest body, Func<System.Net.Http.HttpResponseMessage,System.Threading.Tasks.Task<Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.ISavingsPlanValidateResponse>,System.Threading.Tasks.Task> onOk, Func<System.Net.Http.HttpResponseMessage,System.Threading.Tasks.Task<Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.IErrorResponse>,System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Runtime.ISendAsync sender, Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Runtime.SerializationMode serializationMode = Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Runtime.SerializationMode.IncludeCreateOrUpdate);
member this.SavingsPlanValidateUpdate : string * string * Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.ISavingsPlanUpdateValidateRequest * Func<System.Net.Http.HttpResponseMessage, System.Threading.Tasks.Task<Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.ISavingsPlanValidateResponse>, System.Threading.Tasks.Task> * Func<System.Net.Http.HttpResponseMessage, System.Threading.Tasks.Task<Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.IErrorResponse>, System.Threading.Tasks.Task> * Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Runtime.IEventListener * Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Runtime.ISendAsync * Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Runtime.SerializationMode -> System.Threading.Tasks.Task
Public Function SavingsPlanValidateUpdate (savingsPlanOrderId As String, savingsPlanId As String, body As ISavingsPlanUpdateValidateRequest, onOk As Func(Of HttpResponseMessage, Task(Of ISavingsPlanValidateResponse), Task), onDefault As Func(Of HttpResponseMessage, Task(Of IErrorResponse), Task), eventListener As IEventListener, sender As ISendAsync, Optional serializationMode As SerializationMode = Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Runtime.SerializationMode.IncludeCreateOrUpdate) As Task

Parameters

savingsPlanOrderId
String
savingsPlanId
String
eventListener
IEventListener
sender
ISendAsync
serializationMode
SerializationMode

Returns

Applies to