Beispiel #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;
 }
 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();
 }