Exemple #1
0
        public bool Equals(GoogleCloudSettings other)
        {
            if (other == null)
            {
                return(false);
            }

            if (WasEnabled(other))
            {
                return(true);
            }

            return(other.RemoteFolderName == RemoteFolderName);
        }
Exemple #2
0
 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(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()
     });
 }