/// <summary>
 /// Initializes a new instance of the <see cref="OutlookMailbox" /> class.
 /// </summary>
 /// <param name="mailboxObject">mailboxObject.</param>
 /// <param name="outlookFolderList">Specifies the list of folders to be restored incase user wishes not to restore entire mailbox..</param>
 /// <param name="restoreEntireMailbox">Specifies whether the entire mailbox is to be restored..</param>
 public OutlookMailbox(RestoreObjectDetails mailboxObject = default(RestoreObjectDetails), List <OutlookFolder> outlookFolderList = default(List <OutlookFolder>), bool?restoreEntireMailbox = default(bool?))
 {
     this.OutlookFolderList    = outlookFolderList;
     this.RestoreEntireMailbox = restoreEntireMailbox;
     this.MailboxObject        = mailboxObject;
     this.OutlookFolderList    = outlookFolderList;
     this.RestoreEntireMailbox = restoreEntireMailbox;
 }
Exemplo n.º 2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="RestoreFilesTaskRequest" /> class.
 /// </summary>
 /// <param name="continueOnError">Specifies if the Restore Task should continue even if the copy operation of some files and folders fails. If true, the Cohesity Cluster ignores intermittent errors and recovers as many files and folders as possible. If false, the Restore Task stops recovering when a copy operation fails..</param>
 /// <param name="fileRecoveryMethod">Specifies the type of method to be used to perform file recovery. &#39;kAutoDeploy&#39; indicates that file restore operation wiil be performed using an ephemeral agent. &#39;kUseExistingAgent&#39; indicates that file restore operation wiil be performed using an persistent agent. &#39;kUseHypervisorAPIs&#39; indicates that file restore operation wiil be performed using an hypervisor API&#39;s..</param>
 /// <param name="filenames">Array of Files or Folders.  Specifies the files and folders to recover from the snapshot..</param>
 /// <param name="isFileBasedVolumeRestore">Specifies whether this is a file based volume restore..</param>
 /// <param name="mountDisksOnVm">Sepcifies whether this will attach disks or mount disks on the VM side OR use Storage Proxy RPCs to stream data.</param>
 /// <param name="name">Specifies the name of the Restore Task. This field must be set and must be a unique name..</param>
 /// <param name="newBaseDirectory">Specifies an optional root folder where to recover the selected files and folders. By default, files and folders are restored to their original path..</param>
 /// <param name="overwrite">If true, any existing files and folders on the operating system are overwritten by the recovered files or folders. This is the default. If false, existing files and folders are not overwritten..</param>
 /// <param name="password">Specifies password of the username to access the target source..</param>
 /// <param name="preserveAttributes">If true, the Restore Tasks preserves the original file and folder attributes. This is the default..</param>
 /// <param name="restoredFileInfoList">Specifies information regarding files and directories..</param>
 /// <param name="sourceObjectInfo">Specifies information about the source object (such as a VM) that contains the files and folders to recover. In addition, it contains information about the Protection Job and Job Run that captured the snapshot to recover from. To specify a particular snapshot, you must specify a jobRunId and a startTimeUsecs. If jobRunId and startTimeUsecs are not specified, the last Job Run of the specified Job is used..</param>
 /// <param name="targetHostType">Specifies the target host types to be restored. &#39;kLinux&#39; indicates the Linux operating system. &#39;kWindows&#39; indicates the Microsoft Windows operating system. &#39;kAix&#39; indicates the IBM AIX operating system. &#39;kSolaris&#39; indicates the Oracle Solaris operating system. &#39;kSapHana&#39; indicates the Sap Hana database system developed by SAP SE. &#39;kOther&#39; indicates the other types of operating system..</param>
 /// <param name="targetParentSourceId">Specifies the registered source (such as a vCenter Server) that contains the target protection source (such as a VM) where the files and folders are recovered to. This field is not required for a Physical Server..</param>
 /// <param name="targetSourceId">Specifies the id of the target protection source (such as a VM) where the files and folders are recovered to..</param>
 /// <param name="useExistingAgent">Specifies whether this will use an existing agent on the target vm to do restore. Following field is deprecated and shall not be used. Please refer to the FileRecoveryMethod field for more information..</param>
 /// <param name="username">Specifies username to access the target source..</param>
 public RestoreFilesTaskRequest(bool?continueOnError = default(bool?), FileRecoveryMethodEnum?fileRecoveryMethod = default(FileRecoveryMethodEnum?), List <string> filenames = default(List <string>), bool?isFileBasedVolumeRestore = default(bool?), bool?mountDisksOnVm = default(bool?), string name = default(string), string newBaseDirectory = default(string), bool?overwrite = default(bool?), string password = default(string), bool?preserveAttributes = default(bool?), List <RestoredFileInfoList> restoredFileInfoList = default(List <RestoredFileInfoList>), RestoreObjectDetails sourceObjectInfo = default(RestoreObjectDetails), TargetHostTypeEnum?targetHostType = default(TargetHostTypeEnum?), long?targetParentSourceId = default(long?), long?targetSourceId = default(long?), bool?useExistingAgent = default(bool?), string username = default(string))
 {
     this.ContinueOnError          = continueOnError;
     this.FileRecoveryMethod       = fileRecoveryMethod;
     this.Filenames                = filenames;
     this.IsFileBasedVolumeRestore = isFileBasedVolumeRestore;
     this.MountDisksOnVm           = mountDisksOnVm;
     this.Name                     = name;
     this.NewBaseDirectory         = newBaseDirectory;
     this.Overwrite                = overwrite;
     this.Password                 = password;
     this.PreserveAttributes       = preserveAttributes;
     this.RestoredFileInfoList     = restoredFileInfoList;
     this.SourceObjectInfo         = sourceObjectInfo;
     this.TargetHostType           = targetHostType;
     this.TargetParentSourceId     = targetParentSourceId;
     this.TargetSourceId           = targetSourceId;
     this.UseExistingAgent         = useExistingAgent;
     this.Username                 = username;
     this.ContinueOnError          = continueOnError;
     this.FileRecoveryMethod       = fileRecoveryMethod;
     this.Filenames                = filenames;
     this.IsFileBasedVolumeRestore = isFileBasedVolumeRestore;
     this.MountDisksOnVm           = mountDisksOnVm;
     this.Name                     = name;
     this.NewBaseDirectory         = newBaseDirectory;
     this.Overwrite                = overwrite;
     this.Password                 = password;
     this.PreserveAttributes       = preserveAttributes;
     this.RestoredFileInfoList     = restoredFileInfoList;
     this.SourceObjectInfo         = sourceObjectInfo;
     this.TargetHostType           = targetHostType;
     this.TargetParentSourceId     = targetParentSourceId;
     this.TargetSourceId           = targetSourceId;
     this.UseExistingAgent         = useExistingAgent;
     this.Username                 = username;
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="ApplicationRestoreParameters" /> class.
 /// </summary>
 /// <param name="applicationEnvironment">Specifies the Environment of the Application server to restore like &#39;kSQL&#39;,&#39;kAD&#39;,or &#39;kExchange&#39;. Supported environment types such as &#39;kView&#39;, &#39;kSQL&#39;, &#39;kVMware&#39;, etc. NOTE: &#39;kPuppeteer&#39; refers to Cohesity&#39;s Remote Adapter. &#39;kVMware&#39; indicates the VMware Protection Source environment. &#39;kHyperV&#39; indicates the HyperV Protection Source environment. &#39;kSQL&#39; indicates the SQL Protection Source environment. &#39;kView&#39; indicates the View Protection Source environment. &#39;kPuppeteer&#39; indicates the Cohesity&#39;s Remote Adapter. &#39;kPhysical&#39; indicates the physical Protection Source environment. &#39;kPure&#39; indicates the Pure Storage Protection Source environment. &#39;Nimble&#39; indicates the Nimble Storage Protection Source environment. &#39;kAzure&#39; indicates the Microsoft&#39;s Azure Protection Source environment. &#39;kNetapp&#39; indicates the Netapp Protection Source environment. &#39;kAgent&#39; indicates the Agent Protection Source environment. &#39;kGenericNas&#39; indicates the Genreric Network Attached Storage Protection Source environment. &#39;kAcropolis&#39; indicates the Acropolis Protection Source environment. &#39;kPhsicalFiles&#39; indicates the Physical Files Protection Source environment. &#39;kIsilon&#39; indicates the Dell EMC&#39;s Isilon Protection Source environment. &#39;kGPFS&#39; indicates IBM&#39;s GPFS Protection Source environment. &#39;kKVM&#39; indicates the KVM Protection Source environment. &#39;kAWS&#39; indicates the AWS Protection Source environment. &#39;kExchange&#39; indicates the Exchange Protection Source environment. &#39;kHyperVVSS&#39; indicates the HyperV VSS Protection Source environment. &#39;kOracle&#39; indicates the Oracle Protection Source environment. &#39;kGCP&#39; indicates the Google Cloud Platform Protection Source environment. &#39;kFlashBlade&#39; indicates the Flash Blade Protection Source environment. &#39;kAWSNative&#39; indicates the AWS Native Protection Source environment. &#39;kVCD&#39; indicates the VMware&#39;s Virtual cloud Director Protection Source environment. &#39;kO365&#39; indicates the Office 365 Protection Source environment. &#39;kO365Outlook&#39; indicates Office 365 outlook Protection Source environment. &#39;kHyperFlex&#39; indicates the Hyper Flex Protection Source environment. &#39;kGCPNative&#39; indicates the GCP Native Protection Source environment. &#39;kAzureNative&#39; indicates the Azure Native Protection Source environment. &#39;kKubernetes&#39; indicates a Kubernetes Protection Source environment. &#39;kElastifile&#39; indicates Elastifile Protection Source environment..</param>
 /// <param name="applicationRestoreObjects">Specifies the Application Server objects whose data should be restored..</param>
 /// <param name="hostingProtectionSource">hostingProtectionSource.</param>
 public ApplicationRestoreParameters(ApplicationEnvironmentEnum?applicationEnvironment = default(ApplicationEnvironmentEnum?), List <ApplicationRestoreObject> applicationRestoreObjects = default(List <ApplicationRestoreObject>), RestoreObjectDetails hostingProtectionSource = default(RestoreObjectDetails))
 {
     this.ApplicationEnvironment    = applicationEnvironment;
     this.ApplicationRestoreObjects = applicationRestoreObjects;
     this.ApplicationEnvironment    = applicationEnvironment;
     this.ApplicationRestoreObjects = applicationRestoreObjects;
     this.HostingProtectionSource   = hostingProtectionSource;
 }
Exemplo n.º 4
0
 /// <summary>
 /// Initializes a new instance of the <see cref="OneDriveOwner" /> class.
 /// </summary>
 /// <param name="driveInfoList">Specifies the Drives that a user owns which are to be restored..</param>
 /// <param name="userDetailObject">userDetailObject.</param>
 public OneDriveOwner(List <OneDriveInfo> driveInfoList = default(List <OneDriveInfo>), RestoreObjectDetails userDetailObject = default(RestoreObjectDetails))
 {
     this.DriveInfoList    = driveInfoList;
     this.DriveInfoList    = driveInfoList;
     this.UserDetailObject = userDetailObject;
 }
        /// <summary>
        /// Initializes a new instance of the <see cref="ProtectionSourceAndApplicationRestoreObjects" /> class.
        /// </summary>
        /// <param name="applicationRestoreObjects">Specifies the Application Server objects whose data should be restored and the restore parameters for each of them..</param>
        /// <param name="hostingProtectionSource">hostingProtectionSource (required).</param>
        public ProtectionSourceAndApplicationRestoreObjects(List <ApplicationRestoreObject> applicationRestoreObjects = default(List <ApplicationRestoreObject>), RestoreObjectDetails hostingProtectionSource = default(RestoreObjectDetails))
        {
            this.ApplicationRestoreObjects = applicationRestoreObjects;
            // to ensure "hostingProtectionSource" is required (not null)
            if (hostingProtectionSource == null)
            {
                throw new InvalidDataException("hostingProtectionSource is a required property for ProtectionSourceAndApplicationRestoreObjects and cannot be null");
            }
            else
            {
                this.HostingProtectionSource = hostingProtectionSource;
            }

            this.ApplicationRestoreObjects = applicationRestoreObjects;
        }
Exemplo n.º 6
0
        /// <summary>
        /// Initializes a new instance of the <see cref="ApplicationsRestoreTaskRequest" /> class.
        /// </summary>
        /// <param name="applicationEnvironment">Specifies the Environment of the Application to restore like &#39;kSQL&#39;, or &#39;kExchange&#39;. overrideDescription: true Supported environment types such as &#39;kView&#39;, &#39;kSQL&#39;, &#39;kVMware&#39;, etc. NOTE: &#39;kPuppeteer&#39; refers to Cohesity&#39;s Remote Adapter. &#39;kVMware&#39; indicates the VMware Protection Source environment. &#39;kHyperV&#39; indicates the HyperV Protection Source environment. &#39;kSQL&#39; indicates the SQL Protection Source environment. &#39;kView&#39; indicates the View Protection Source environment. &#39;kPuppeteer&#39; indicates the Cohesity&#39;s Remote Adapter. &#39;kPhysical&#39; indicates the physical Protection Source environment. &#39;kPure&#39; indicates the Pure Storage Protection Source environment. &#39;Nimble&#39; indicates the Nimble Storage Protection Source environment. &#39;kAzure&#39; indicates the Microsoft&#39;s Azure Protection Source environment. &#39;kNetapp&#39; indicates the Netapp Protection Source environment. &#39;kAgent&#39; indicates the Agent Protection Source environment. &#39;kGenericNas&#39; indicates the Generic Network Attached Storage Protection Source environment. &#39;kAcropolis&#39; indicates the Acropolis Protection Source environment. &#39;kPhsicalFiles&#39; indicates the Physical Files Protection Source environment. &#39;kIsilon&#39; indicates the Dell EMC&#39;s Isilon Protection Source environment. &#39;kGPFS&#39; indicates IBM&#39;s GPFS Protection Source environment. &#39;kKVM&#39; indicates the KVM Protection Source environment. &#39;kAWS&#39; indicates the AWS Protection Source environment. &#39;kExchange&#39; indicates the Exchange Protection Source environment. &#39;kHyperVVSS&#39; indicates the HyperV VSS Protection Source environment. &#39;kOracle&#39; indicates the Oracle Protection Source environment. &#39;kGCP&#39; indicates the Google Cloud Platform Protection Source environment. &#39;kFlashBlade&#39; indicates the Flash Blade Protection Source environment. &#39;kAWSNative&#39; indicates the AWS Native Protection Source environment. &#39;kO365&#39; indicates the Office 365 Protection Source environment. &#39;kO365Outlook&#39; indicates Office 365 outlook Protection Source environment. &#39;kHyperFlex&#39; indicates the Hyper Flex Protection Source environment. &#39;kGCPNative&#39; indicates the GCP Native Protection Source environment. &#39;kAzureNative&#39; indicates the Azure Native Protection Source environment. &#39;kKubernetes&#39; indicates a Kubernetes Protection Source environment. &#39;kElastifile&#39; indicates Elastifile Protection Source environment. &#39;kAD&#39; indicates Active Directory Protection Source environment. &#39;kRDSSnapshotManager&#39; indicates AWS RDS Protection Source environment. (required).</param>
        /// <param name="applicationRestoreObjects">Specifies the Application Server objects whose data should be restored and the restore parameters for each of them. This field will be deprecated. Use the field ProtectionSourceAndApplicationRestoreObjects. deprecated: true.</param>
        /// <param name="hostingProtectionSource">hostingProtectionSource (required).</param>
        /// <param name="name">Specifies a name for the new task to be created. This field has to be set, and it needs to be unique across all restore tasks. (required).</param>
        /// <param name="password">Specifies password of the username to access the target source..</param>
        /// <param name="protectionSourceAndApplicationObjects">Specifies the list of hosting protection source and Application restore objects tuple..</param>
        /// <param name="username">Specifies username to access the target source..</param>
        /// <param name="vlanParameters">vlanParameters.</param>
        public ApplicationsRestoreTaskRequest(ApplicationEnvironmentEnum applicationEnvironment = default(ApplicationEnvironmentEnum), List <ApplicationRestoreObject> applicationRestoreObjects = default(List <ApplicationRestoreObject>), RestoreObjectDetails hostingProtectionSource = default(RestoreObjectDetails), string name = default(string), string password = default(string), List <ProtectionSourceAndApplicationRestoreObjects> protectionSourceAndApplicationObjects = default(List <ProtectionSourceAndApplicationRestoreObjects>), string username = default(string), VlanParameters vlanParameters = default(VlanParameters))
        {
            this.ApplicationEnvironment    = applicationEnvironment;
            this.ApplicationRestoreObjects = applicationRestoreObjects;
            // to ensure "hostingProtectionSource" is required (not null)
            if (hostingProtectionSource == null)
            {
                throw new InvalidDataException("hostingProtectionSource is a required property for ApplicationsRestoreTaskRequest and cannot be null");
            }
            else
            {
                this.HostingProtectionSource = hostingProtectionSource;
            }

            this.Name     = name;
            this.Password = password;
            this.ProtectionSourceAndApplicationObjects = protectionSourceAndApplicationObjects;
            this.Username = username;
            this.ApplicationRestoreObjects = applicationRestoreObjects;
            this.Password = password;
            this.ProtectionSourceAndApplicationObjects = protectionSourceAndApplicationObjects;
            this.Username       = username;
            this.VlanParameters = vlanParameters;
        }
 /// <summary>
 /// Initializes a new instance of the <see cref="DownloadFilesAndFoldersParams" /> class.
 /// </summary>
 /// <param name="filesAndFoldersInfo">Specifies the absolute paths for list of files and folders to download..</param>
 /// <param name="name">Specifies the name of the Download Task. This field must be set and must be a unique name. (required).</param>
 /// <param name="sourceObjectInfo">sourceObjectInfo.</param>
 public DownloadFilesAndFoldersParams(List <FilesAndFoldersInfo> filesAndFoldersInfo = default(List <FilesAndFoldersInfo>), string name = default(string), RestoreObjectDetails sourceObjectInfo = default(RestoreObjectDetails))
 {
     this.FilesAndFoldersInfo = filesAndFoldersInfo;
     this.Name = name;
     this.FilesAndFoldersInfo = filesAndFoldersInfo;
     this.SourceObjectInfo    = sourceObjectInfo;
 }