Hi there! Are you looking for the official Deno documentation? Try docs.deno.com for all your Deno learning needs.

Backup

import type { Backup } from "https://googleapis.deno.dev/v1/sqladmin:v1.ts";

A backup resource. Next ID: 30

interface Backup {
readonly backupInterval?: Interval;
readonly backupKind?: "SQL_BACKUP_KIND_UNSPECIFIED" | "SNAPSHOT" | "PHYSICAL";
readonly backupRun?: string;
readonly databaseVersion?:
| "SQL_DATABASE_VERSION_UNSPECIFIED"
| "MYSQL_5_1"
| "MYSQL_5_5"
| "MYSQL_5_6"
| "MYSQL_5_7"
| "MYSQL_8_0"
| "MYSQL_8_0_18"
| "MYSQL_8_0_26"
| "MYSQL_8_0_27"
| "MYSQL_8_0_28"
| "MYSQL_8_0_29"
| "MYSQL_8_0_30"
| "MYSQL_8_0_31"
| "MYSQL_8_0_32"
| "MYSQL_8_0_33"
| "MYSQL_8_0_34"
| "MYSQL_8_0_35"
| "MYSQL_8_0_36"
| "MYSQL_8_0_37"
| "MYSQL_8_0_39"
| "MYSQL_8_0_40"
| "MYSQL_8_0_41"
| "MYSQL_8_0_42"
| "MYSQL_8_0_43"
| "MYSQL_8_0_44"
| "MYSQL_8_0_45"
| "MYSQL_8_0_46"
| "MYSQL_8_4"
| "SQLSERVER_2017_STANDARD"
| "SQLSERVER_2017_ENTERPRISE"
| "SQLSERVER_2017_EXPRESS"
| "SQLSERVER_2017_WEB"
| "POSTGRES_9_6"
| "POSTGRES_10"
| "POSTGRES_11"
| "POSTGRES_12"
| "POSTGRES_13"
| "POSTGRES_14"
| "POSTGRES_15"
| "POSTGRES_16"
| "POSTGRES_17"
| "SQLSERVER_2019_STANDARD"
| "SQLSERVER_2019_ENTERPRISE"
| "SQLSERVER_2019_EXPRESS"
| "SQLSERVER_2019_WEB"
| "SQLSERVER_2022_STANDARD"
| "SQLSERVER_2022_ENTERPRISE"
| "SQLSERVER_2022_EXPRESS"
| "SQLSERVER_2022_WEB";
description?: string;
readonly error?: OperationError;
expiryTime?: Date;
instance?: string;
readonly instanceDeletionTime?: Date;
readonly instanceSettings?: DatabaseInstance;
readonly kind?: string;
readonly kmsKey?: string;
readonly kmsKeyVersion?: string;
location?: string;
readonly maxChargeableBytes?: bigint;
readonly name?: string;
readonly satisfiesPzi?: boolean;
readonly satisfiesPzs?: boolean;
readonly selfLink?: string;
readonly state?:
| "SQL_BACKUP_STATE_UNSPECIFIED"
| "ENQUEUED"
| "RUNNING"
| "FAILED"
| "SUCCESSFUL"
| "DELETING"
| "DELETION_FAILED";
readonly timeZone?: string;
ttlDays?: bigint;
readonly type?:
| "SQL_BACKUP_TYPE_UNSPECIFIED"
| "AUTOMATED"
| "ON_DEMAND"
| "FINAL";
}

§Properties

§
readonly backupInterval?: Interval
[src]

Output only. This output contains the following values: start_time: All database writes up to this time are available. end_time: Any database writes after this time aren't available.

§
readonly backupKind?: "SQL_BACKUP_KIND_UNSPECIFIED" | "SNAPSHOT" | "PHYSICAL"
[src]

Output only. Specifies the kind of backup, PHYSICAL or DEFAULT_SNAPSHOT.

§
readonly backupRun?: string
[src]

Output only. The mapping to backup run resource used for IAM validations.

§
readonly databaseVersion?: "SQL_DATABASE_VERSION_UNSPECIFIED" | "MYSQL_5_1" | "MYSQL_5_5" | "MYSQL_5_6" | "MYSQL_5_7" | "MYSQL_8_0" | "MYSQL_8_0_18" | "MYSQL_8_0_26" | "MYSQL_8_0_27" | "MYSQL_8_0_28" | "MYSQL_8_0_29" | "MYSQL_8_0_30" | "MYSQL_8_0_31" | "MYSQL_8_0_32" | "MYSQL_8_0_33" | "MYSQL_8_0_34" | "MYSQL_8_0_35" | "MYSQL_8_0_36" | "MYSQL_8_0_37" | "MYSQL_8_0_39" | "MYSQL_8_0_40" | "MYSQL_8_0_41" | "MYSQL_8_0_42" | "MYSQL_8_0_43" | "MYSQL_8_0_44" | "MYSQL_8_0_45" | "MYSQL_8_0_46" | "MYSQL_8_4" | "SQLSERVER_2017_STANDARD" | "SQLSERVER_2017_ENTERPRISE" | "SQLSERVER_2017_EXPRESS" | "SQLSERVER_2017_WEB" | "POSTGRES_9_6" | "POSTGRES_10" | "POSTGRES_11" | "POSTGRES_12" | "POSTGRES_13" | "POSTGRES_14" | "POSTGRES_15" | "POSTGRES_16" | "POSTGRES_17" | "SQLSERVER_2019_STANDARD" | "SQLSERVER_2019_ENTERPRISE" | "SQLSERVER_2019_EXPRESS" | "SQLSERVER_2019_WEB" | "SQLSERVER_2022_STANDARD" | "SQLSERVER_2022_ENTERPRISE" | "SQLSERVER_2022_EXPRESS" | "SQLSERVER_2022_WEB"
[src]

Output only. The database version of the instance of at the time this backup was made.

§
description?: string
[src]

The description of this backup.

§
readonly error?: OperationError
[src]

Output only. Information about why the backup operation fails (for example, when the backup state fails).

§
expiryTime?: Date
[src]

Backup expiration time. A UTC timestamp of when this backup expired.

§
instance?: string
[src]

The name of the source database instance.

§
readonly instanceDeletionTime?: Date
[src]

Optional. Output only. Timestamp in UTC of when the instance associated with this backup is deleted.

§
readonly instanceSettings?: DatabaseInstance
[src]

Optional. Output only. The instance setting of the source instance that's associated with this backup.

§
readonly kind?: string
[src]

Output only. This is always sql#backup.

§
readonly kmsKey?: string
[src]

Output only. This output contains the encryption configuration for a backup and the resource name of the KMS key for disk encryption.

§
readonly kmsKeyVersion?: string
[src]

Output only. This output contains the encryption status for a backup and the version of the KMS key that's used to encrypt the Cloud SQL instance.

§
location?: string
[src]

The storage location of the backups. The location can be multi-regional.

§
readonly maxChargeableBytes?: bigint
[src]

Output only. The maximum chargeable bytes for the backup.

§
readonly name?: string
[src]

Output only. The resource name of the backup. Format: projects/{project}/backups/{backup}.

§
readonly satisfiesPzi?: boolean
[src]

Output only. This status indicates whether the backup satisfies PZI. The status is reserved for future use.

§
readonly satisfiesPzs?: boolean
[src]

Output only. This status indicates whether the backup satisfies PZS. The status is reserved for future use.

§
readonly state?: "SQL_BACKUP_STATE_UNSPECIFIED" | "ENQUEUED" | "RUNNING" | "FAILED" | "SUCCESSFUL" | "DELETING" | "DELETION_FAILED"
[src]

Output only. The status of this backup.

§
readonly timeZone?: string
[src]

Output only. This output contains a backup time zone. If a Cloud SQL for SQL Server instance has a different time zone from the backup's time zone, then the restore to the instance doesn't happen.

§
ttlDays?: bigint
[src]

Input only. The time-to-live (TTL) interval for this resource (in days). For example: ttlDays:7, means 7 days from the current time. The expiration time can't exceed 365 days from the time that the backup is created.

§
readonly type?: "SQL_BACKUP_TYPE_UNSPECIFIED" | "AUTOMATED" | "ON_DEMAND" | "FINAL"
[src]

Output only. The type of this backup. The type can be "AUTOMATED", "ON_DEMAND" or “FINAL”.