共用方式為


SecurityInsightsApiKeyAuthModel Class

Definition

Model for authentication with the API Key. Will result in additional header on the request (default behavior) to the remote server: 'ApiKeyName: ApiKeyIdentifier ApiKey'. If 'IsApiKeyInPostPayload' is true it will send it in the body of the request and not the header.

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

Constructors

SecurityInsightsApiKeyAuthModel(String, String)

Initializes a new instance of SecurityInsightsApiKeyAuthModel.

Properties

ApiKey

API Key for the user secret key credential.

ApiKeyIdentifier

API Key Identifier.

ApiKeyName

API Key name.

IsApiKeyInPostPayload

Flag to indicate if API key is set in HTTP POST payload.

Explicit Interface Implementations

IJsonModel<CcpAuthConfig>.Create(Utf8JsonReader, ModelReaderWriterOptions)

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

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

Writes the model to the provided Utf8JsonWriter.

(Inherited from CcpAuthConfig)
IJsonModel<SecurityInsightsApiKeyAuthModel>.Create(Utf8JsonReader, ModelReaderWriterOptions)

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

IJsonModel<SecurityInsightsApiKeyAuthModel>.Write(Utf8JsonWriter, ModelReaderWriterOptions)

Writes the model to the provided Utf8JsonWriter.

IPersistableModel<CcpAuthConfig>.Create(BinaryData, ModelReaderWriterOptions)

Converts the provided BinaryData into a model.

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

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

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

Writes the model into a BinaryData.

(Inherited from CcpAuthConfig)
IPersistableModel<SecurityInsightsApiKeyAuthModel>.Create(BinaryData, ModelReaderWriterOptions)

Converts the provided BinaryData into a model.

IPersistableModel<SecurityInsightsApiKeyAuthModel>.GetFormatFromOptions(ModelReaderWriterOptions)

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

IPersistableModel<SecurityInsightsApiKeyAuthModel>.Write(ModelReaderWriterOptions)

Writes the model into a BinaryData.

Applies to