Sdílet prostřednictvím


SecretAuthInfo Class

Definition

The authentication info when authType is secret.

public class SecretAuthInfo : Azure.ResourceManager.ServiceLinker.Models.AuthBaseInfo, System.ClientModel.Primitives.IJsonModel<Azure.ResourceManager.ServiceLinker.Models.SecretAuthInfo>, System.ClientModel.Primitives.IPersistableModel<Azure.ResourceManager.ServiceLinker.Models.SecretAuthInfo>
public class SecretAuthInfo : Azure.ResourceManager.ServiceLinker.Models.AuthBaseInfo
type SecretAuthInfo = class
    inherit AuthBaseInfo
    interface IJsonModel<SecretAuthInfo>
    interface IPersistableModel<SecretAuthInfo>
type SecretAuthInfo = class
    inherit AuthBaseInfo
Public Class SecretAuthInfo
Inherits AuthBaseInfo
Implements IJsonModel(Of SecretAuthInfo), IPersistableModel(Of SecretAuthInfo)
Public Class SecretAuthInfo
Inherits AuthBaseInfo
Inheritance
SecretAuthInfo
Implements

Constructors

SecretAuthInfo()

Initializes a new instance of SecretAuthInfo.

Properties

Name

Username or account name for secret auth.

SecretInfo

Password or key vault secret for secret auth. Please note SecretBaseInfo is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. The available derived classes include KeyVaultSecretReferenceSecretInfo, KeyVaultSecretUriSecretInfo and RawValueSecretInfo.

Methods

JsonModelWriteCore(Utf8JsonWriter, ModelReaderWriterOptions)

Explicit Interface Implementations

IJsonModel<AuthBaseInfo>.Create(Utf8JsonReader, ModelReaderWriterOptions)

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

(Inherited from AuthBaseInfo)
IJsonModel<AuthBaseInfo>.Write(Utf8JsonWriter, ModelReaderWriterOptions)

Writes the model to the provided Utf8JsonWriter.

(Inherited from AuthBaseInfo)
IJsonModel<SecretAuthInfo>.Create(Utf8JsonReader, ModelReaderWriterOptions)

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

IJsonModel<SecretAuthInfo>.Write(Utf8JsonWriter, ModelReaderWriterOptions)

Writes the model to the provided Utf8JsonWriter.

IPersistableModel<AuthBaseInfo>.Create(BinaryData, ModelReaderWriterOptions)

Converts the provided BinaryData into a model.

(Inherited from AuthBaseInfo)
IPersistableModel<AuthBaseInfo>.GetFormatFromOptions(ModelReaderWriterOptions)

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

(Inherited from AuthBaseInfo)
IPersistableModel<AuthBaseInfo>.Write(ModelReaderWriterOptions)

Writes the model into a BinaryData.

(Inherited from AuthBaseInfo)
IPersistableModel<SecretAuthInfo>.Create(BinaryData, ModelReaderWriterOptions)

Converts the provided BinaryData into a model.

IPersistableModel<SecretAuthInfo>.GetFormatFromOptions(ModelReaderWriterOptions)

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

IPersistableModel<SecretAuthInfo>.Write(ModelReaderWriterOptions)

Writes the model into a BinaryData.

Applies to