Backup and DR Service v1 API - Class AutoProtectionPolicy (2.10.0)

public sealed class AutoProtectionPolicy : IMessage<AutoProtectionPolicy>, IEquatable<AutoProtectionPolicy>, IDeepCloneable<AutoProtectionPolicy>, IBufferMessage, IMessage

Reference documentation and code samples for the Backup and DR Service v1 API class AutoProtectionPolicy.

An AutoprotectionPolicy is a policy resource designed to automate backup management, moving from manual per-resource protection to a bulk approach. The policy dynamically discovers and applies a specified backup plan to all eligible resources that match its defined scope and criteria.

Inheritance

object > AutoProtectionPolicy

Namespace

Google.Cloud.BackupDR.V1

Assembly

Google.Cloud.BackupDR.V1.dll

Constructors

AutoProtectionPolicy()

public AutoProtectionPolicy()

AutoProtectionPolicy(AutoProtectionPolicy)

public AutoProtectionPolicy(AutoProtectionPolicy other)
Parameter
Name Description
other AutoProtectionPolicy

Properties

AutoProtectionPolicyName

public AutoProtectionPolicyName AutoProtectionPolicyName { get; set; }

AutoProtectionPolicyName-typed view over the Name resource name property.

Property Value
Type Description
AutoProtectionPolicyName

BackupPlanDetails

public RepeatedField<BackupPlanDetail> BackupPlanDetails { get; }

Required. The backup plan details for matching resources.

Property Value
Type Description
RepeatedFieldBackupPlanDetail

BindingSummary

public BindingSummary BindingSummary { get; set; }

Output only. Summary of total count of different containers covered through this policy.

Property Value
Type Description
BindingSummary

CreateTime

public Timestamp CreateTime { get; set; }

Output only. The timestamp when the policy was created.

Property Value
Type Description
Timestamp

Criteria

public Criteria Criteria { get; set; }

Required. The criteria for matching resources.

Property Value
Type Description
Criteria

Description

public string Description { get; set; }

Optional. A description of the policy. The description must be at most 2048 characters.

Property Value
Type Description
string

Etag

public string Etag { get; set; }

Output only. The etag for the policy. If this is provided on update, it must match the server's etag.

Property Value
Type Description
string

Name

public string Name { get; set; }

Output only. Identifier. The resource name of the AutoProtectionPolicy. Format: projects/{project}/locations/{location}/autoProtectionPolicies/{auto_protection_policy}

Property Value
Type Description
string

PolicyEvaluationSummary

public PolicyEvaluationSummary PolicyEvaluationSummary { get; set; }

Output only. Summary of last policy evaluation when job was run per workload type.

Property Value
Type Description
PolicyEvaluationSummary

State

public AutoProtectionPolicy.Types.State State { get; set; }

Output only. The current state of the AutoProtectionPolicy.

Property Value
Type Description
AutoProtectionPolicyTypesState

UpdateTime

public Timestamp UpdateTime { get; set; }

Output only. The timestamp when the policy was last updated.

Property Value
Type Description
Timestamp