共用方式為


GenericProtectionPolicy Class

Definition

Azure VM (Mercury) workload-specific backup policy.

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

Constructors

GenericProtectionPolicy()

Initializes a new instance of GenericProtectionPolicy.

Properties

FabricName

Name of this policy's fabric.

ProtectedItemsCount

Number of items associated with this policy.

(Inherited from BackupGenericProtectionPolicy)
ResourceGuardOperationRequests

ResourceGuard Operation Requests.

(Inherited from BackupGenericProtectionPolicy)
SubProtectionPolicy

List of sub-protection policies which includes schedule and retention.

TimeZone

TimeZone optional input as string. For example: TimeZone = "Pacific Standard Time".

Methods

JsonModelWriteCore(Utf8JsonWriter, ModelReaderWriterOptions)

Explicit Interface Implementations

IJsonModel<BackupGenericProtectionPolicy>.Create(Utf8JsonReader, ModelReaderWriterOptions)

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

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

Writes the model to the provided Utf8JsonWriter.

(Inherited from BackupGenericProtectionPolicy)
IJsonModel<GenericProtectionPolicy>.Create(Utf8JsonReader, ModelReaderWriterOptions)

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

IJsonModel<GenericProtectionPolicy>.Write(Utf8JsonWriter, ModelReaderWriterOptions)

Writes the model to the provided Utf8JsonWriter.

IPersistableModel<BackupGenericProtectionPolicy>.Create(BinaryData, ModelReaderWriterOptions)

Converts the provided BinaryData into a model.

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

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

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

Writes the model into a BinaryData.

(Inherited from BackupGenericProtectionPolicy)
IPersistableModel<GenericProtectionPolicy>.Create(BinaryData, ModelReaderWriterOptions)

Converts the provided BinaryData into a model.

IPersistableModel<GenericProtectionPolicy>.GetFormatFromOptions(ModelReaderWriterOptions)

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

IPersistableModel<GenericProtectionPolicy>.Write(ModelReaderWriterOptions)

Writes the model into a BinaryData.

Applies to