Backup for GKE v1 API - Class BackupPlan (2.2.0)

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

Reference documentation and code samples for the Backup for GKE v1 API class BackupPlan.

Defines the configuration and scheduling for a "line" of Backups.

Inheritance

object > BackupPlan

Namespace

Google.Cloud.GkeBackup.V1

Assembly

Google.Cloud.GkeBackup.V1.dll

Constructors

BackupPlan()

public BackupPlan()

BackupPlan(BackupPlan)

public BackupPlan(BackupPlan other)
Parameter
NameDescription
otherBackupPlan

Properties

BackupConfig

public BackupPlan.Types.BackupConfig BackupConfig { get; set; }

Defines the configuration of Backups created via this BackupPlan.

Property Value
TypeDescription
BackupPlanTypesBackupConfig

BackupPlanName

public BackupPlanName BackupPlanName { get; set; }

BackupPlanName-typed view over the Name resource name property.

Property Value
TypeDescription
BackupPlanName

BackupSchedule

public BackupPlan.Types.Schedule BackupSchedule { get; set; }

Defines a schedule for automatic Backup creation via this BackupPlan.

Property Value
TypeDescription
BackupPlanTypesSchedule

Cluster

public string Cluster { get; set; }

Required. Immutable. The source cluster from which Backups will be created via this BackupPlan. Valid formats:

  • projects/*/locations/*/clusters/*
  • projects/*/zones/*/clusters/*
Property Value
TypeDescription
string

ClusterAsClusterName

public ClusterName ClusterAsClusterName { get; set; }

ClusterName-typed view over the Cluster resource name property.

Property Value
TypeDescription
ClusterName

CreateTime

public Timestamp CreateTime { get; set; }

Output only. The timestamp when this BackupPlan resource was created.

Property Value
TypeDescription
Timestamp

Deactivated

public bool Deactivated { get; set; }

This flag indicates whether this BackupPlan has been deactivated. Setting this field to True locks the BackupPlan such that no further updates will be allowed (except deletes), including the deactivated field itself. It also prevents any new Backups from being created via this BackupPlan (including scheduled Backups).

Default: False

Property Value
TypeDescription
bool

Description

public string Description { get; set; }

User specified descriptive string for this BackupPlan.

Property Value
TypeDescription
string

Etag

public string Etag { get; set; }

Output only. etag is used for optimistic concurrency control as a way to help prevent simultaneous updates of a backup plan from overwriting each other. It is strongly suggested that systems make use of the 'etag' in the read-modify-write cycle to perform BackupPlan updates in order to avoid race conditions: An etag is returned in the response to GetBackupPlan, and systems are expected to put that etag in the request to UpdateBackupPlan or DeleteBackupPlan to ensure that their change will be applied to the same version of the resource.

Property Value
TypeDescription
string

Labels

public MapField<string, string> Labels { get; }

A set of custom labels supplied by user.

Property Value
TypeDescription
MapFieldstringstring

Name

public string Name { get; set; }

Output only. The full name of the BackupPlan resource. Format: projects/*/locations/*/backupPlans/*

Property Value
TypeDescription
string

ProtectedPodCount

public int ProtectedPodCount { get; set; }

Output only. The number of Kubernetes Pods backed up in the last successful Backup created via this BackupPlan.

Property Value
TypeDescription
int

RetentionPolicy

public BackupPlan.Types.RetentionPolicy RetentionPolicy { get; set; }

RetentionPolicy governs lifecycle of Backups created under this plan.

Property Value
TypeDescription
BackupPlanTypesRetentionPolicy

State

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

Output only. State of the BackupPlan. This State field reflects the various stages a BackupPlan can be in during the Create operation. It will be set to "DEACTIVATED" if the BackupPlan is deactivated on an Update

Property Value
TypeDescription
BackupPlanTypesState

StateReason

public string StateReason { get; set; }

Output only. Human-readable description of why BackupPlan is in the current state

Property Value
TypeDescription
string

Uid

public string Uid { get; set; }

Output only. Server generated global unique identifier of UUID format.

Property Value
TypeDescription
string

UpdateTime

public Timestamp UpdateTime { get; set; }

Output only. The timestamp when this BackupPlan resource was last updated.

Property Value
TypeDescription
Timestamp