Partager via


DatabaseConnection Class

Definition

Static Site Database Connection resource.

[System.ComponentModel.TypeConverter(typeof(Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.DatabaseConnectionTypeConverter))]
public class DatabaseConnection : Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.IDatabaseConnection, Microsoft.Azure.PowerShell.Cmdlets.Functions.Runtime.IValidates
[<System.ComponentModel.TypeConverter(typeof(Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.DatabaseConnectionTypeConverter))>]
type DatabaseConnection = class
    interface IDatabaseConnection
    interface IJsonSerializable
    interface IProxyOnlyResource
    interface IValidates
Public Class DatabaseConnection
Implements IDatabaseConnection, IValidates
Inheritance
DatabaseConnection
Attributes
Implements

Constructors

DatabaseConnection()

Creates an new DatabaseConnection instance.

Properties

ConfigurationFile

A list of configuration files associated with this database connection.

ConnectionIdentity

If present, the identity is used in conjunction with connection string to connect to the database. Use of the system-assigned managed identity is indicated with the string 'SystemAssigned', while use of a user-assigned managed identity is indicated with the resource id of the managed identity resource.

ConnectionString

The connection string to use to connect to the database.

Id

Resource Id.

Kind

Kind of resource.

Name

Resource Name.

Region

The region of the database resource.

ResourceId

The resource id of the database.

Type

Resource type.

Methods

DeserializeFromDictionary(IDictionary)

Deserializes a IDictionary into an instance of DatabaseConnection.

DeserializeFromPSObject(PSObject)

Deserializes a PSObject into an instance of DatabaseConnection.

FromJson(JsonNode)

Deserializes a JsonNode into an instance of Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.IDatabaseConnection.

FromJsonString(String)

Creates a new instance of DatabaseConnection, deserializing the content from a json string.

ToJson(JsonObject, SerializationMode)

Serializes this instance of DatabaseConnection into a JsonNode.

ToJsonString()

Serializes this instance to a json string.

Validate(IEventListener)

Validates that this object meets the validation criteria.

Applies to