module Sfx { export class PartitionBackupInfo { public partitionBackupConfigurationInfo : PartitionBackupConfigurationInfo ; public partitionBackupList : PartitionBackupCollection ; public latestPartitionBackup : SinglePartitionBackupCollection ; public backupPolicyName : string ; public cleanBackup : boolean ; public storage : IRawStorage ; public backupId : string ; public backupLocation : string ; public partitionBackupProgress : PartitionBackupProgress ; public partitionRestoreProgress : PartitionRestoreProgress ; public BackupTimeout : number ; public RestoreTimeout : number ; public constructor ( data , public parent ) { this . partitionBackupConfigurationInfo = new PartitionBackupConfigurationInfo ( data , this ) ; this . partitionBackupProgress = new PartitionBackupProgress ( data , this ) ; this . partitionRestoreProgress = new PartitionRestoreProgress ( data , this ) ; this . partitionBackupList = new PartitionBackupCollection ( data , this ) ; this . latestPartitionBackup = new SinglePartitionBackupCollection ( data , this ) ; this . cleanBackup = false ; } } export class PartitionBackupConfigurationInfo extends DataModelBase < IRawPartitionBackupConfigurationInfo > { public decorators : IDecorators = { hideList : [ "ServiceName" , "PartitionId" ] } ; public constructor ( data , public parent ) { super ( data , null , parent ) ; } protected retrieveNewData ( messageHandler ? ) { return Utils . getHttpResponseData ( this . data . restClient . getPartitionBackupConfigurationInfo ( this . parent . parent . id , messageHandler ) ) ; } } export class PartitionBackupProgress extends DataModelBase < IRawBackupProgressInfo > { public constructor ( data , public parent ) { super ( data , null , parent ) ; } protected retrieveNewData ( messageHandler ? ) { return Utils . getHttpResponseData ( this . data . restClient . getPartitionBackupProgress ( this . parent . parent . id , messageHandler ) ) ; } } export class PartitionRestoreProgress extends DataModelBase < IRawRestoreProgressInfo > { public constructor ( data , public parent ) { super ( data , null , parent ) ; } protected retrieveNewData ( messageHandler ? ) { return Utils . getHttpResponseData ( this . data . restClient . getPartitionRestoreProgress ( this . parent . parent . id , messageHandler ) ) ; } } export class PartitionBackup extends DataModelBase < IRawPartitionBackup > { public decorators : IDecorators = { hideList : [ "ApplicationName" , "ServiceName" , "PartitionInformation" , ] } ; public action : ActionWithDialog ; public constructor ( data , raw , public parent ) { super ( data , raw , parent ) ; if ( raw ) { this . action = new ActionWithDialog ( data . $uibModal , data . $q , raw . BackupId , raw . BackupId , "Creating" , null , ( ) => true , < angular . ui . bootstrap . IModalSettings > { templateUrl : "partials/partitionBackup.html" , controller : ActionController , resolve : { action : ( ) => this } } , null ) ; } else { this . action = null ; } } } }