Example #1
0
 public virtual DynamicJsonValue ToJson()
 {
     return(new DynamicJsonValue
     {
         [nameof(BackupType)] = BackupType,
         [nameof(SnapshotSettings)] = SnapshotSettings?.ToJson(),
         [nameof(BackupEncryptionSettings)] = BackupEncryptionSettings?.ToJson(),
         [nameof(LocalSettings)] = LocalSettings?.ToJson(),
         [nameof(S3Settings)] = S3Settings?.ToJson(),
         [nameof(GlacierSettings)] = GlacierSettings?.ToJson(),
         [nameof(AzureSettings)] = AzureSettings?.ToJson(),
         [nameof(GoogleCloudSettings)] = GoogleCloudSettings?.ToJson(),
         [nameof(FtpSettings)] = FtpSettings?.ToJson()
     });
 }
 public virtual DynamicJsonValue ToJson()
 {
     return(new DynamicJsonValue
     {
         [nameof(TaskId)] = TaskId,
         [nameof(Disabled)] = Disabled,
         [nameof(Name)] = Name,
         [nameof(MentorNode)] = MentorNode,
         [nameof(BackupType)] = BackupType,
         [nameof(BackupEncryptionSettings)] = BackupEncryptionSettings?.ToJson(),
         [nameof(RetentionPolicy)] = RetentionPolicy?.ToJson(),
         [nameof(SnapshotSettings)] = SnapshotSettings?.ToJson(),
         [nameof(FullBackupFrequency)] = FullBackupFrequency,
         [nameof(IncrementalBackupFrequency)] = IncrementalBackupFrequency,
         [nameof(LocalSettings)] = LocalSettings?.ToJson(),
         [nameof(S3Settings)] = S3Settings?.ToJson(),
         [nameof(GlacierSettings)] = GlacierSettings?.ToJson(),
         [nameof(AzureSettings)] = AzureSettings?.ToJson(),
         [nameof(GoogleCloudSettings)] = GoogleCloudSettings?.ToJson(),
         [nameof(FtpSettings)] = FtpSettings?.ToJson()
     });
 }