Condividi tramite


DataSourceInfo Class

Definition

Datasource to be backed up.

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

Constructors

DataSourceInfo(ResourceIdentifier)

Initializes a new instance of DataSourceInfo.

Properties

DataSourceType

DatasourceType of the resource.

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.

ResourceProperties

Properties specific to data source Please note BaseResourceProperties 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 DefaultResourceProperties.

ResourceType

Resource Type of Datasource.

ResourceUriString

Uri of the resource.

Explicit Interface Implementations

IJsonModel<DataSourceInfo>.Create(Utf8JsonReader, ModelReaderWriterOptions)

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

IJsonModel<DataSourceInfo>.Write(Utf8JsonWriter, ModelReaderWriterOptions)

Writes the model to the provided Utf8JsonWriter.

IPersistableModel<DataSourceInfo>.Create(BinaryData, ModelReaderWriterOptions)

Converts the provided BinaryData into a model.

IPersistableModel<DataSourceInfo>.GetFormatFromOptions(ModelReaderWriterOptions)

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

IPersistableModel<DataSourceInfo>.Write(ModelReaderWriterOptions)

Writes the model into a BinaryData.

Applies to