Class BackupPlan
A BackupPlan
specifies some common fields, such as description
as well as one or more BackupRule
messages.
Each BackupRule
has a retention policy and defines a schedule by which the system is to perform backup
workloads.
Implements
Inherited Members
Namespace: Google.Apis.Backupdr.v1.Data
Assembly: Google.Apis.Backupdr.v1.dll
Syntax
public class BackupPlan : IDirectResponseSchema
Properties
BackupRules
Required. The backup rules for this BackupPlan
. There must be at least one BackupRule
message.
Declaration
[JsonProperty("backupRules")]
public virtual IList<BackupRule> BackupRules { get; set; }
Property Value
Type | Description |
---|---|
IList<BackupRule> |
BackupVault
Required. Resource name of backup vault which will be used as storage location for backups. Format: projects/{project}/locations/{location}/backupVaults/{backupvault}
Declaration
[JsonProperty("backupVault")]
public virtual string BackupVault { get; set; }
Property Value
Type | Description |
---|---|
string |
BackupVaultServiceAccount
Output only. The Google Cloud Platform Service Account to be used by the BackupVault for taking backups. Specify the email address of the Backup Vault Service Account.
Declaration
[JsonProperty("backupVaultServiceAccount")]
public virtual string BackupVaultServiceAccount { get; set; }
Property Value
Type | Description |
---|---|
string |
CreateTime
object representation of CreateTimeRaw.
Declaration
[JsonIgnore]
[Obsolete("This property is obsolete and may behave unexpectedly; please use CreateTimeDateTimeOffset instead.")]
public virtual object CreateTime { get; set; }
Property Value
Type | Description |
---|---|
object |
CreateTimeDateTimeOffset
DateTimeOffset representation of CreateTimeRaw.
Declaration
[JsonIgnore]
public virtual DateTimeOffset? CreateTimeDateTimeOffset { get; set; }
Property Value
Type | Description |
---|---|
DateTimeOffset? |
CreateTimeRaw
Output only. When the BackupPlan
was created.
Declaration
[JsonProperty("createTime")]
public virtual string CreateTimeRaw { get; set; }
Property Value
Type | Description |
---|---|
string |
Description
Optional. The description of the BackupPlan
resource. The description allows for additional details about
BackupPlan
and its use cases to be provided. An example description is the following: "This is a backup
plan that performs a daily backup at 6pm and retains data for 3 months". The description must be at most
2048 characters.
Declaration
[JsonProperty("description")]
public virtual string Description { get; set; }
Property Value
Type | Description |
---|---|
string |
ETag
Optional. etag
is returned from the service in the response. As a user of the service, you may provide an
etag value in this field to prevent stale resources.
Declaration
[JsonProperty("etag")]
public virtual string ETag { get; set; }
Property Value
Type | Description |
---|---|
string |
Labels
Optional. This collection of key/value pairs allows for custom labels to be supplied by the user. Example, {"tag": "Weekly"}.
Declaration
[JsonProperty("labels")]
public virtual IDictionary<string, string> Labels { get; set; }
Property Value
Type | Description |
---|---|
IDictionary<string, string> |
Name
Output only. Identifier. The resource name of the BackupPlan
. Format:
projects/{project}/locations/{location}/backupPlans/{backup_plan}
Declaration
[JsonProperty("name")]
public virtual string Name { get; set; }
Property Value
Type | Description |
---|---|
string |
ResourceType
Required. The resource type to which the BackupPlan
will be applied. Examples include,
"compute.googleapis.com/Instance", "sqladmin.googleapis.com/Instance" and "storage.googleapis.com/Bucket".
Declaration
[JsonProperty("resourceType")]
public virtual string ResourceType { get; set; }
Property Value
Type | Description |
---|---|
string |
State
Output only. The State
for the BackupPlan
.
Declaration
[JsonProperty("state")]
public virtual string State { get; set; }
Property Value
Type | Description |
---|---|
string |
UpdateTime
object representation of UpdateTimeRaw.
Declaration
[JsonIgnore]
[Obsolete("This property is obsolete and may behave unexpectedly; please use UpdateTimeDateTimeOffset instead.")]
public virtual object UpdateTime { get; set; }
Property Value
Type | Description |
---|---|
object |
UpdateTimeDateTimeOffset
DateTimeOffset representation of UpdateTimeRaw.
Declaration
[JsonIgnore]
public virtual DateTimeOffset? UpdateTimeDateTimeOffset { get; set; }
Property Value
Type | Description |
---|---|
DateTimeOffset? |
UpdateTimeRaw
Output only. When the BackupPlan
was last updated.
Declaration
[JsonProperty("updateTime")]
public virtual string UpdateTimeRaw { get; set; }
Property Value
Type | Description |
---|---|
string |