你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

Datasource Class

Definition

Datasource to be backed up

[System.ComponentModel.TypeConverter(typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20240401.DatasourceTypeConverter))]
public class Datasource : Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20240401.IDatasource
[<System.ComponentModel.TypeConverter(typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20240401.DatasourceTypeConverter))>]
type Datasource = class
    interface IDatasource
    interface IJsonSerializable
Public Class Datasource
Implements IDatasource
Inheritance
Datasource
Attributes
Implements

Constructors

Datasource()

Creates an new Datasource instance.

Properties

ObjectType

Type of Datasource object, used to initialize the right inherited type

ResourceId

Full ARM ID of the resource. For azure resources, this is ARM ID. For non azure resources, this will be the ID created by backup service via Fabric/Vault.

ResourceLocation

Location of datasource.

ResourceName

Unique identifier of the resource in the context of parent.

ResourcePropertyObjectType

Type of the specific object - used for deserializing

ResourceType

Resource Type of Datasource.

ResourceUri

Uri of the resource.

Type

DatasourceType of the resource.

Methods

DeserializeFromDictionary(IDictionary)

Deserializes a IDictionary into an instance of Datasource.

DeserializeFromPSObject(PSObject)

Deserializes a PSObject into an instance of Datasource.

FromJson(JsonNode)

Deserializes a JsonNode into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20240401.IDatasource.

FromJsonString(String)

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

ToJson(JsonObject, SerializationMode)

Serializes this instance of Datasource into a JsonNode.

ToJsonString()

Serializes this instance to a json string.

Applies to