7 using System.Collections.Generic;
19 public class RestoreBackupRequest : KineticaData
25 public struct RestoreObjectsMap
30 public const string ALL =
"all";
36 public const string TABLE =
"table";
44 public const string CONTEXT =
"context";
48 public const string DATASINK =
"datasink";
62 public const string MONITOR =
"monitor";
68 public const string USER =
"user";
73 public const string ROLE =
"role";
93 public const string TRUE =
"true";
94 public const string FALSE =
"false";
100 public struct Options
105 public const string BACKUP_ID =
"backup_id";
138 public const string NONE =
"none";
142 public const string REPLACE =
"replace";
149 public const string RENAME =
"rename";
179 public const string TRUE =
"true";
180 public const string FALSE =
"false";
218 public const string DDL_ONLY =
"ddl_only";
233 public const string CHECKSUM =
"checksum";
248 public const string DRY_RUN =
"dry_run";
352 public IDictionary<string, string>
restore_objects_map {
get;
set; } =
new Dictionary<string, string>();
507 public IDictionary<string, string>
options {
get;
set; } =
new Dictionary<string, string>();
768 IDictionary<string, string>
options =
null)
780 public class RestoreBackupResponse : KineticaData
801 public IDictionary<string, string>
restored_objects {
get;
set; } =
new Dictionary<string, string>();
805 public IDictionary<string, string>
renamed_objects {
get;
set; } =
new Dictionary<string, string>();
809 public IDictionary<string, string>
failed_objects {
get;
set; } =
new Dictionary<string, string>();
812 public IDictionary<string, string>
info {
get;
set; } =
new Dictionary<string, string>();
long restored_records
Total number of records restored from backup
const string REPLACE
If an object to be restored currently exists with the same name, replace it with the backup version
long restored_files
Total number of files restored from backup
const string CONFIGURATION
If TRUE, restore the database configuration file.
const string CHECKSUM
Verify checksum for backup files.
const string RESTORE_POLICY
Behavior to apply when restoring objects that already exist.
const string DRY_RUN
Does a dry-run restoration operation.
const string NONE
If an object to be restored currently exists with the same name, abort and return error
IDictionary< string, string > info
Additional information.
const string CREDENTIAL
Credential
RestoreBackupRequest()
Constructs a RestoreBackupRequest object with default parameters.
IDictionary< string, string > renamed_objects
Original and new names of objects that were successfully restored and their associated types.
const string RENAME
If an object to be restored currently exists with the same name, rename the original version
string datasource_name
Datasource where backup is located.
long backup_id
The backup ID that was restored
const string TABLE
Database Table
const string CONTEXT
Context
const string REINGEST
Behavior to apply when restoring table data.
const string DATASOURCE
Data Source
const string MONITOR
Table Monitor (Stream)
IDictionary< string, string > failed_objects
Objects that failed to be restored and their associated types.
const string RENAMED_OBJECTS_SCHEMA
If the restore policy is rename, optionally use this schema for renamed objects instead of a default ...
const string ROLE
Role, role members (roles or users, recursively) and associated permissions
IDictionary< string, string > restored_objects
Objects that were successfully restored and their associated types.
long restored_bytes
Total size of data restored from backup
const string USER
User (internal and external) and associated permissions
const string DDL_ONLY
Only recreates the objects from their DDL, do not restore table data.
const string STORED_PROCEDURE
SQL Procedure
const string ALL
All object types in a schema (excludes permissions, system configuration, host secret key,...
RestoreBackupRequest(string backup_name, IDictionary< string, string > restore_objects_map, string datasource_name, IDictionary< string, string > options=null)
Constructs a RestoreBackupRequest object with the specified parameters.
string backup_name
The backup name
const string DATASINK
Data Sink
IDictionary< string, string > options
Optional parameters.
const string BACKUP_ID
Backup instance ID to restore.
string backup_name
Name of the backup object, which must refer to a currently existing backup.
const string CREATE_SCHEMA_IF_NOT_EXIST
Create the schema for an object to be restored if it does not currently exist.
IDictionary< string, string > restore_objects_map
Map of objects to be restored from the backup.