Example #1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="RecoverTaskRequest" /> class.
 /// </summary>
 /// <param name="acropolisParameters">acropolisParameters.</param>
 /// <param name="continueOnError">Specifies if the Restore Task should continue when some operations on some objects fail. If true, the Cohesity Cluster ignores intermittent errors and restores as many objects as possible..</param>
 /// <param name="deployVmsToCloud">deployVmsToCloud.</param>
 /// <param name="glacierRetrievalType">Specifies the way data needs to be retrieved from the external target. This information will be filled in by Iris and Magneto will pass it along to the Icebox as it is to support bulk retrieval from Glacier. Specifies the type of Restore Task.  &#39;kStandard&#39; specifies retrievals that allow to access any of your archives within several hours. Standard retrievals typically complete within 3–5 hours. This is the default option for retrieval requests that do not specify the retrieval option. &#39;kBulk&#39; specifies retrievals that are Glacier’s lowest-cost retrieval option, which can be used to retrieve large amounts, even petabytes, of data inexpensively in a day. Bulk retrieval typically complete within 5–12 hours. &#39;kExpedited&#39; specifies retrievals that allows to quickly access your data when occasional urgent requests for a subset of archives are required. For all but the largest archives (250 MB+), data accessed using Expedited retrievals are typically made available within 1–5 minutes..</param>
 /// <param name="hypervParameters">hypervParameters.</param>
 /// <param name="kubernetesParameters">kubernetesParameters.</param>
 /// <param name="mountParameters">mountParameters.</param>
 /// <param name="name">Specifies the name of the Restore Task. This field must be set and must be a unique name. (required).</param>
 /// <param name="newParentId">Specify a new registered parent Protection Source. If specified the selected objects are cloned or recovered to this new Protection Source. If not specified, objects are cloned or recovered to the original Protection Source that was managing them..</param>
 /// <param name="objects">Array of Objects.  Specifies a list of Protection Source objects or Protection Job objects (with specified Protection Source objects)..</param>
 /// <param name="oneDriveParameters">oneDriveParameters.</param>
 /// <param name="outlookParameters">outlookParameters.</param>
 /// <param name="restoreViewParameters">restoreViewParameters.</param>
 /// <param name="type">Specifies the type of Restore Task such as &#39;kRecoverVMs&#39; or &#39;kMountVolumes&#39;. &#39;kRecoverVMs&#39; specifies a Restore Task that recovers VMs. &#39;kMountVolumes&#39; specifies a Restore Task that mounts volumes to mount points. &#39;kRecoverNamespaces&#39; specifies a Restore Task that recovers Kubernetes namespaces. &#39;kMountFileVolume&#39; specifies a Restore Task that mounts a file volume. (required).</param>
 /// <param name="viewName">Specifie target view into which the objects are to be cloned when doing recovery for NAS..</param>
 /// <param name="virtualDiskRestoreParameters">virtualDiskRestoreParameters.</param>
 /// <param name="vlanParameters">vlanParameters.</param>
 /// <param name="vmwareParameters">vmwareParameters.</param>
 public RecoverTaskRequest(AcropolisRestoreParameters acropolisParameters = default(AcropolisRestoreParameters), bool?continueOnError = default(bool?), DeployVmsToCloud deployVmsToCloud = default(DeployVmsToCloud), GlacierRetrievalTypeEnum?glacierRetrievalType = default(GlacierRetrievalTypeEnum?), HypervRestoreParameters hypervParameters = default(HypervRestoreParameters), KubernetesRestoreParameters kubernetesParameters = default(KubernetesRestoreParameters), MountVolumesParameters mountParameters = default(MountVolumesParameters), string name = default(string), long?newParentId = default(long?), List <RestoreObjectDetails> objects = default(List <RestoreObjectDetails>), OneDriveRestoreParameters oneDriveParameters = default(OneDriveRestoreParameters), OutlookRestoreParameters outlookParameters = default(OutlookRestoreParameters), UpdateViewParam restoreViewParameters = default(UpdateViewParam), TypeEnum type = default(TypeEnum), string viewName = default(string), VirtualDiskRestoreParameters virtualDiskRestoreParameters = default(VirtualDiskRestoreParameters), VlanParameters vlanParameters = default(VlanParameters), VmwareRestoreParameters vmwareParameters = default(VmwareRestoreParameters))
 {
     this.ContinueOnError      = continueOnError;
     this.GlacierRetrievalType = glacierRetrievalType;
     this.Name                         = name;
     this.NewParentId                  = newParentId;
     this.Objects                      = objects;
     this.Type                         = type;
     this.ViewName                     = viewName;
     this.AcropolisParameters          = acropolisParameters;
     this.ContinueOnError              = continueOnError;
     this.DeployVmsToCloud             = deployVmsToCloud;
     this.GlacierRetrievalType         = glacierRetrievalType;
     this.HypervParameters             = hypervParameters;
     this.KubernetesParameters         = kubernetesParameters;
     this.MountParameters              = mountParameters;
     this.NewParentId                  = newParentId;
     this.Objects                      = objects;
     this.OneDriveParameters           = oneDriveParameters;
     this.OutlookParameters            = outlookParameters;
     this.RestoreViewParameters        = restoreViewParameters;
     this.ViewName                     = viewName;
     this.VirtualDiskRestoreParameters = virtualDiskRestoreParameters;
     this.VlanParameters               = vlanParameters;
     this.VmwareParameters             = vmwareParameters;
 }
Example #2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="RestoreTask" /> class.
 /// </summary>
 /// <param name="acropolisParameters">acropolisParameters.</param>
 /// <param name="archiveTaskUid">Specifies the uid of the Restore Task that retrieves objects from an archive. This field is only populated when objects must be retrieved from an archive before being restored..</param>
 /// <param name="cloneViewParameters">Specifies the View settings used when cloning a View..</param>
 /// <param name="continueOnError">Specifies if the Restore Task should continue when some operations on some objects fail. If true, the Cohesity Cluster ignores intermittent errors and restores as many objects as possible..</param>
 /// <param name="datastoreId">Specifies the datastore where the object&#39;s files are recovered to. This field is populated when objects are recovered to a different resource pool or to a different parent source. This field is not populated when objects are recovered to their original datastore locations in the original parent source..</param>
 /// <param name="endTimeUsecs">Specifies the end time of the Restore Task as a Unix epoch Timestamp (in microseconds). This field is only populated if the Restore Task completes..</param>
 /// <param name="error">Specifies the error reported by the Restore Task (if any) after the Task has finished..</param>
 /// <param name="fullViewName">Specifies the full name of a View..</param>
 /// <param name="hypervParameters">hypervParameters.</param>
 /// <param name="id">Specifies the id of the Restore Task assigned by Cohesity Cluster..</param>
 /// <param name="mountVolumesState">mountVolumesState.</param>
 /// <param name="name">Specifies the name of the Restore Task. This field must be set and must be a unique name. (required).</param>
 /// <param name="newParentId">Specify a new registered parent Protection Source. If specified the selected objects are cloned or recovered to this new Protection Source. If not specified, objects are cloned or recovered to the original Protection Source that was managing them..</param>
 /// <param name="objects">Array of Objects.  Specifies a list of Protection Source objects or Protection Job objects (with specified Protection Source objects)..</param>
 /// <param name="outlookParameters">outlookParameters.</param>
 /// <param name="restoreObjectState">Array of Object States.  Specifies the states of all the objects for the &#39;kRecoverVMs&#39; and &#39;kCloneVMs&#39; Restore Tasks..</param>
 /// <param name="startTimeUsecs">Specifies the start time for the Restore Task as a Unix epoch Timestamp (in microseconds)..</param>
 /// <param name="status">Specifies the overall status of the Restore Task. &#39;kReadyToSchedule&#39; indicates the Restore Task is waiting to be scheduled. &#39;kProgressMonitorCreated&#39; indicates the progress monitor for the Restore Task has been created. &#39;kRetrievedFromArchive&#39; indicates that the objects to restore have been retrieved from the specified archive. A Task will only ever transition to this state if a retrieval is necessary. &#39;kAdmitted&#39; indicates the task has been admitted. After a task has been admitted, its status does not move back to &#39;kReadyToSchedule&#39; state even if it is rescheduled. &#39;kInProgress&#39; indicates that the Restore Task is in progress. &#39;kFinishingProgressMonitor&#39; indicates that the Restore Task is finishing its progress monitoring. &#39;kFinished&#39; indicates that the Restore Task has finished. The status indicating success or failure is found in the error code that is stored with the Restore Task. &#39;kInternalViewCreated&#39; indicates that internal view for the task has been created. &#39;kZipFileRequested&#39; indicates that request has been sent to create zip files for the files to be downloaded. This state is only going to be present for kDownloadFiles Task. &#39;kCancelled&#39; indicates that task or jb has been cancelled..</param>
 /// <param name="targetViewCreated">Is true if a new View was created by a &#39;kCloneVMs&#39; Restore Task. This field is only set for a &#39;kCloneVMs&#39; Restore Task..</param>
 /// <param name="type">Specifies the type of Restore Task.  &#39;kRecoverVMs&#39; specifies a Restore Task that recovers VMs. &#39;kCloneVMs&#39; specifies a Restore Task that clones VMs. &#39;kCloneView&#39; specifies a Restore Task that clones a View. &#39;kMountVolumes&#39; specifies a Restore Task that mounts volumes. &#39;kRestoreFiles&#39; specifies a Restore Task that recovers files and folders. &#39;kRecoverApp&#39; specifies a Restore Task that recovers app. &#39;kCloneApp&#39; specifies a Restore Task that clone app. &#39;kRecoverSanVolume&#39; specifies a Restore Task that recovers SAN volumes. &#39;kConvertAndDeployVMs&#39; specifies a Restore Task that converts and deploy VMs to a target environment. &#39;kMountFileVolume&#39; specifies a Restore Task that mounts a file volume. &#39;kSystem&#39; specifies a Restore Task that recovers a system. &#39;kRecoverVolumes&#39; specifies a Restore Task that recovers volumes via the physical agent. &#39;kDeployVolumes&#39; specifies a Restore Task that deployes volumes to a target environment. &#39;kDownloadFiles&#39; specifies a Restore Task that downloads the requested files and folders in zip format. &#39;kRecoverEmails&#39; specifies a Restore Task that recovers the mailbox/email items. &#39;kRecoverDisks&#39; specifies a Restore Task that recovers the virtual disks..</param>
 /// <param name="username">Specifies the Cohesity user who requested this Restore Task..</param>
 /// <param name="viewBoxId">Specifies the id of the Domain (View Box) where the View is stored..</param>
 /// <param name="virtualDiskRestoreState">virtualDiskRestoreState.</param>
 /// <param name="vlanParameters">vlanParameters.</param>
 /// <param name="vmwareParameters">vmwareParameters.</param>
 public RestoreTask(AcropolisRestoreParameters acropolisParameters = default(AcropolisRestoreParameters), UniversalId archiveTaskUid = default(UniversalId), UpdateViewParam cloneViewParameters = default(UpdateViewParam), bool?continueOnError = default(bool?), long?datastoreId = default(long?), long?endTimeUsecs = default(long?), RequestError error = default(RequestError), string fullViewName = default(string), HypervRestoreParameters hypervParameters = default(HypervRestoreParameters), long?id = default(long?), MountVolumesState mountVolumesState = default(MountVolumesState), string name = default(string), long?newParentId = default(long?), List <RestoreObjectDetails> objects = default(List <RestoreObjectDetails>), OutlookRestoreParameters outlookParameters = default(OutlookRestoreParameters), List <RestoreObjectState> restoreObjectState = default(List <RestoreObjectState>), long?startTimeUsecs = default(long?), StatusEnum?status = default(StatusEnum?), bool?targetViewCreated = default(bool?), TypeEnum?type = default(TypeEnum?), string username = default(string), long?viewBoxId = default(long?), VirtualDiskRecoverTaskState virtualDiskRestoreState = default(VirtualDiskRecoverTaskState), VlanParameters vlanParameters = default(VlanParameters), VmwareRestoreParameters vmwareParameters = default(VmwareRestoreParameters))
 {
     this.ArchiveTaskUid      = archiveTaskUid;
     this.CloneViewParameters = cloneViewParameters;
     this.ContinueOnError     = continueOnError;
     this.DatastoreId         = datastoreId;
     this.EndTimeUsecs        = endTimeUsecs;
     this.Error                   = error;
     this.FullViewName            = fullViewName;
     this.Id                      = id;
     this.Name                    = name;
     this.NewParentId             = newParentId;
     this.Objects                 = objects;
     this.RestoreObjectState      = restoreObjectState;
     this.StartTimeUsecs          = startTimeUsecs;
     this.Status                  = status;
     this.TargetViewCreated       = targetViewCreated;
     this.Type                    = type;
     this.Username                = username;
     this.ViewBoxId               = viewBoxId;
     this.AcropolisParameters     = acropolisParameters;
     this.ArchiveTaskUid          = archiveTaskUid;
     this.CloneViewParameters     = cloneViewParameters;
     this.ContinueOnError         = continueOnError;
     this.DatastoreId             = datastoreId;
     this.EndTimeUsecs            = endTimeUsecs;
     this.Error                   = error;
     this.FullViewName            = fullViewName;
     this.HypervParameters        = hypervParameters;
     this.Id                      = id;
     this.MountVolumesState       = mountVolumesState;
     this.NewParentId             = newParentId;
     this.Objects                 = objects;
     this.OutlookParameters       = outlookParameters;
     this.RestoreObjectState      = restoreObjectState;
     this.StartTimeUsecs          = startTimeUsecs;
     this.Status                  = status;
     this.TargetViewCreated       = targetViewCreated;
     this.Type                    = type;
     this.Username                = username;
     this.ViewBoxId               = viewBoxId;
     this.VirtualDiskRestoreState = virtualDiskRestoreState;
     this.VlanParameters          = vlanParameters;
     this.VmwareParameters        = vmwareParameters;
 }