Пример #1
0
 public void UpdateJson(DynamicJsonValue json)
 {
     json[nameof(TaskId)]                        = TaskId;
     json[nameof(BackupType)]                    = BackupType;
     json[nameof(IsFull)]                        = IsFull;
     json[nameof(NodeTag)]                       = NodeTag;
     json[nameof(LastFullBackup)]                = LastFullBackup;
     json[nameof(LastIncrementalBackup)]         = LastIncrementalBackup;
     json[nameof(LastFullBackupInternal)]        = LastFullBackupInternal;
     json[nameof(LastIncrementalBackupInternal)] = LastIncrementalBackupInternal;
     json[nameof(LocalBackup)]                   = LocalBackup?.ToJson();
     json[nameof(UploadToS3)]                    = UploadToS3?.ToJson();
     json[nameof(UploadToGlacier)]               = UploadToGlacier?.ToJson();
     json[nameof(UploadToAzure)]                 = UploadToAzure?.ToJson();
     json[nameof(UploadToGoogleCloud)]           = UploadToGoogleCloud?.ToJson();
     json[nameof(UploadToFtp)]                   = UploadToFtp?.ToJson();
     json[nameof(LastEtag)]                      = LastEtag;
     json[nameof(LastRaftIndex)]                 = LastRaftIndex?.ToJson();
     json[nameof(FolderName)]                    = FolderName;
     json[nameof(DurationInMs)]                  = DurationInMs;
     json[nameof(LocalRetentionDurationInMs)]    = LocalRetentionDurationInMs;
     json[nameof(Version)]                       = Version;
     json[nameof(Error)]                    = Error?.ToJson();
     json[nameof(LastOperationId)]          = LastOperationId;
     json[nameof(LastDatabaseChangeVector)] = LastDatabaseChangeVector;
 }
Пример #2
0
 public BackupResult()
 {
     _progress         = new BackupProgress(this);
     SnapshotBackup    = new Counts();
     S3Backup          = new UploadToS3();
     AzureBackup       = new UploadToAzure();
     GoogleCloudBackup = new UploadToGoogleCloud();
     GlacierBackup     = new UploadToGlacier();
     FtpBackup         = new UploadToFtp();
     LocalBackup       = new LocalBackup();
 }
Пример #3
0
 public void UpdateJson(DynamicJsonValue json)
 {
     json[nameof(TaskId)]                        = TaskId;
     json[nameof(BackupType)]                    = BackupType;
     json[nameof(IsFull)]                        = IsFull;
     json[nameof(NodeTag)]                       = NodeTag;
     json[nameof(LastFullBackup)]                = LastFullBackup;
     json[nameof(LastIncrementalBackup)]         = LastIncrementalBackup;
     json[nameof(LastFullBackupInternal)]        = LastFullBackupInternal;
     json[nameof(LastIncrementalBackupInternal)] = LastIncrementalBackupInternal;
     json[nameof(LocalBackup)]                   = LocalBackup?.ToJson();
     json[nameof(UploadToS3)]                    = UploadToS3?.ToJson();
     json[nameof(UploadToGlacier)]               = UploadToGlacier?.ToJson();
     json[nameof(UploadToAzure)]                 = UploadToAzure?.ToJson();
     json[nameof(LastEtag)]                      = LastEtag;
     json[nameof(FolderName)]                    = FolderName;
     json[nameof(DurationInMs)]                  = DurationInMs;
     json[nameof(Version)]                       = Version;
     json[nameof(Error)] = Error?.ToJson();
 }