Share via


DeviceRegistrySchemaRegistryCollection.CreateOrUpdate Method

Definition

Create a SchemaRegistry.

public virtual Azure.ResourceManager.ArmOperation<Azure.ResourceManager.DeviceRegistry.DeviceRegistrySchemaRegistryResource> CreateOrUpdate(Azure.WaitUntil waitUntil, string schemaRegistryName, Azure.ResourceManager.DeviceRegistry.DeviceRegistrySchemaRegistryData data, System.Threading.CancellationToken cancellationToken = default);
abstract member CreateOrUpdate : Azure.WaitUntil * string * Azure.ResourceManager.DeviceRegistry.DeviceRegistrySchemaRegistryData * System.Threading.CancellationToken -> Azure.ResourceManager.ArmOperation<Azure.ResourceManager.DeviceRegistry.DeviceRegistrySchemaRegistryResource>
override this.CreateOrUpdate : Azure.WaitUntil * string * Azure.ResourceManager.DeviceRegistry.DeviceRegistrySchemaRegistryData * System.Threading.CancellationToken -> Azure.ResourceManager.ArmOperation<Azure.ResourceManager.DeviceRegistry.DeviceRegistrySchemaRegistryResource>
Public Overridable Function CreateOrUpdate (waitUntil As WaitUntil, schemaRegistryName As String, data As DeviceRegistrySchemaRegistryData, Optional cancellationToken As CancellationToken = Nothing) As ArmOperation(Of DeviceRegistrySchemaRegistryResource)

Parameters

waitUntil
WaitUntil

Completed if the method should wait to return until the long-running operation has completed on the service; Started if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples.

schemaRegistryName
String

Schema registry name parameter.

data
DeviceRegistrySchemaRegistryData

Resource create parameters.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

Exceptions

schemaRegistryName or data is null.

schemaRegistryName is an empty string, and was expected to be non-empty.

Applies to