Partager via


DeviceRegistryUsernamePasswordCredentials Class

Definition

The credentials for authentication mode UsernamePassword.

public class DeviceRegistryUsernamePasswordCredentials : System.ClientModel.Primitives.IJsonModel<Azure.ResourceManager.DeviceRegistry.Models.DeviceRegistryUsernamePasswordCredentials>, System.ClientModel.Primitives.IPersistableModel<Azure.ResourceManager.DeviceRegistry.Models.DeviceRegistryUsernamePasswordCredentials>
type DeviceRegistryUsernamePasswordCredentials = class
    interface IJsonModel<DeviceRegistryUsernamePasswordCredentials>
    interface IPersistableModel<DeviceRegistryUsernamePasswordCredentials>
Public Class DeviceRegistryUsernamePasswordCredentials
Implements IJsonModel(Of DeviceRegistryUsernamePasswordCredentials), IPersistableModel(Of DeviceRegistryUsernamePasswordCredentials)
Inheritance
DeviceRegistryUsernamePasswordCredentials
Implements

Constructors

DeviceRegistryUsernamePasswordCredentials(String, String)

Initializes a new instance of DeviceRegistryUsernamePasswordCredentials.

Properties

PasswordSecretName

The name of the secret containing the password.

UsernameSecretName

The name of the secret containing the username.

Methods

JsonModelWriteCore(Utf8JsonWriter, ModelReaderWriterOptions)

Explicit Interface Implementations

IJsonModel<DeviceRegistryUsernamePasswordCredentials>.Create(Utf8JsonReader, ModelReaderWriterOptions)

Reads one JSON value (including objects or arrays) from the provided reader and converts it to a model.

IJsonModel<DeviceRegistryUsernamePasswordCredentials>.Write(Utf8JsonWriter, ModelReaderWriterOptions)

Writes the model to the provided Utf8JsonWriter.

IPersistableModel<DeviceRegistryUsernamePasswordCredentials>.Create(BinaryData, ModelReaderWriterOptions)

Converts the provided BinaryData into a model.

IPersistableModel<DeviceRegistryUsernamePasswordCredentials>.GetFormatFromOptions(ModelReaderWriterOptions)

Gets the data interchange format (JSON, Xml, etc) that the model uses when communicating with the service.

IPersistableModel<DeviceRegistryUsernamePasswordCredentials>.Write(ModelReaderWriterOptions)

Writes the model into a BinaryData.

Applies to