Share via


DefenderForStorage.DefenderForStorageCreateViaJsonString Method

Definition

Update the Defender for Storage settings on a specified storage account.

public System.Threading.Tasks.Task DefenderForStorageCreateViaJsonString (string resourceId, string jsonString, Func<System.Net.Http.HttpResponseMessage,System.Threading.Tasks.Task<Microsoft.Azure.PowerShell.Cmdlets.DefenderForStorage.Models.IDefenderForStorageSetting>,System.Threading.Tasks.Task> onOk, Func<System.Net.Http.HttpResponseMessage,System.Threading.Tasks.Task<Microsoft.Azure.PowerShell.Cmdlets.DefenderForStorage.Models.IDefenderForStorageSetting>,System.Threading.Tasks.Task> onCreated, Func<System.Net.Http.HttpResponseMessage,System.Threading.Tasks.Task<Microsoft.Azure.PowerShell.Cmdlets.DefenderForStorage.Models.ICloudError>,System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DefenderForStorage.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DefenderForStorage.Runtime.ISendAsync sender);
member this.DefenderForStorageCreateViaJsonString : string * string * Func<System.Net.Http.HttpResponseMessage, System.Threading.Tasks.Task<Microsoft.Azure.PowerShell.Cmdlets.DefenderForStorage.Models.IDefenderForStorageSetting>, System.Threading.Tasks.Task> * Func<System.Net.Http.HttpResponseMessage, System.Threading.Tasks.Task<Microsoft.Azure.PowerShell.Cmdlets.DefenderForStorage.Models.IDefenderForStorageSetting>, System.Threading.Tasks.Task> * Func<System.Net.Http.HttpResponseMessage, System.Threading.Tasks.Task<Microsoft.Azure.PowerShell.Cmdlets.DefenderForStorage.Models.ICloudError>, System.Threading.Tasks.Task> * Microsoft.Azure.PowerShell.Cmdlets.DefenderForStorage.Runtime.IEventListener * Microsoft.Azure.PowerShell.Cmdlets.DefenderForStorage.Runtime.ISendAsync -> System.Threading.Tasks.Task
Public Function DefenderForStorageCreateViaJsonString (resourceId As String, jsonString As String, onOk As Func(Of HttpResponseMessage, Task(Of IDefenderForStorageSetting), Task), onCreated As Func(Of HttpResponseMessage, Task(Of IDefenderForStorageSetting), Task), onDefault As Func(Of HttpResponseMessage, Task(Of ICloudError), Task), eventListener As IEventListener, sender As ISendAsync) As Task

Parameters

resourceId
String

The identifier of the resource.

jsonString
String

Json string supplied to the DefenderForStorageCreate operation

onOk
Func<HttpResponseMessage,Task<IDefenderForStorageSetting>,Task>

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

onCreated
Func<HttpResponseMessage,Task<IDefenderForStorageSetting>,Task>

a delegate that is called when the remote service returns 201 (Created).

onDefault
Func<HttpResponseMessage,Task<ICloudError>,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.DefenderForStorage.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