7 using System.Collections.Generic;
20 public class CreateBackupRequest : KineticaData
25 public struct BackupType
33 public const string FULL =
"full";
45 public struct BackupObjectsMap
50 public const string ALL =
"all";
54 public const string CONTEXT =
"context";
62 public const string DATASINK =
"datasink";
77 public const string MONITOR =
"monitor";
86 public const string ROLE =
"role";
96 public const string TABLE =
"table";
102 public const string USER =
"user";
127 public const string CHECKSUM =
"checksum";
129 public const string TRUE =
"true";
130 public const string FALSE =
"false";
133 public const string COMMENT =
"comment";
152 public const string DDL_ONLY =
"ddl_only";
183 public const string DRY_RUN =
"dry_run";
204 public const string RECREATE =
"recreate";
335 public IDictionary<string, string>
backup_objects_map {
get;
set; } =
new Dictionary<string, string>();
445 public IDictionary<string, string>
options {
get;
set; } =
new Dictionary<string, string>();
688 IDictionary<string, string>
options =
null)
701 public class CreateBackupResponse : KineticaData
726 public IDictionary<string, string>
info {
get;
set; } =
new Dictionary<string, string>();
const string STORED_PROCEDURE
SQL Procedure
const string FULL
Snapshot of the given database objects and data.
const string USER_DEFINED_FUNCTION
UDF(s).
long copied_records
Total number of records in all files copied for this snapshot
const string TABLE
Database Table
long total_number_of_records
Total number of records that can be restored from this snapshot
const string RESOURCE_GROUP
Resource group(s).
const string DATASINK
Data Sink
string backup_name
Name for this backup object.
const string COMMENT
Comments to store with this backup
IDictionary< string, string > options
Optional parameters.
long copied_files
Total number of files copied for this snapshot
const string ROLE
Role, role members (roles or users, recursively) and associated permissions
A set of string constants for the parameter options.
IDictionary< string, string > info
Additional information.
CreateBackupRequest()
Constructs a CreateBackupRequest object with default parameters.
const string DIFFERENTIAL
Snapshot of changes in the database objects and data since the last full snapshot.
const string MONITOR
Table Monitor (Stream)
const string CHECKSUM
Calculate checksum for backup files.
const string INCREMENTAL
Snapshot of changes in the database objects and data since the last snapshot of any kind.
const string FUNCTION_ENVIRONMENT
Python UDF function environment(s).
long copied_bytes
Total size of all files copied for this snapshot
const string CONTEXT
Context
const string MAX_INCREMENTAL_BACKUPS_TO_KEEP
Maximum number of incremental backups to keep.
string backup_name
Value of backup_name.
IDictionary< string, string > backup_objects_map
Map of objects to be captured in the backup.
const string CREDENTIAL
Credential
const string DRY_RUN
Dry run of backup.
string backup_type
Type of backup to create.
const string ALL
All object types in a schema (excludes permissions, system configuration, host secret key,...
CreateBackupRequest(string backup_name, string backup_type, IDictionary< string, string > backup_objects_map, string datasink_name, IDictionary< string, string > options=null)
Constructs a CreateBackupRequest object with the specified parameters.
const string DATASOURCE
Data Source
string datasink_name
Datasink where backup will be stored.
const string RECREATE
Replace the existing backup object with a new full backup if it already exists.
const string DELETE_INTERMEDIATE_BACKUPS
When the backup type is differential, delete any intermediate incremental or differential backups.
const string DDL_ONLY
Only save the DDL, do not backup table data.
const string USER
User (internal and external) and associated permissions