/// <summary> /// Initializes a new instance of the <see cref="RestoreObjectState" /> class. /// </summary> /// <param name="error">error.</param> /// <param name="objectStatus">Specifies the status of an object during a Restore Task. 'kFilesCloned' indicates that the cloning has completed. 'kFetchedEntityInfo' indicates that information about the object was fetched from the primary source. 'kVMCreated' indicates that the new VM was created. 'kRelocationStarted' indicates that restoring to a different resource pool has started. 'kFinished' indicates that the Restore Task has finished. Whether it was successful or not is indicated by the error code that that is stored with the Restore Task. 'kAborted' indicates that the Restore Task was aborted before trying to restore this object. This can happen if the Restore Task encounters a global error. For example during a 'kCloneVMs' Restore Task, the datastore could not be mounted. The entire Restore Task is aborted before trying to create VMs on the primary source. 'kDataCopyStarted' indicates that the disk copy is started. 'kInProgress' captures a generic in-progress state and can be used by restore operations that don't track individual states..</param> /// <param name="resourcePoolId">Specifies the id of the Resource Pool that the restored object is attached to. For a 'kRecoverVMs' Restore Task, an object can be recovered back to its original resource pool. This means while recovering a set of objects, this field can reference different resource pools. For a 'kCloneVMs' Restore Task, all objects are attached to the same resource pool. However, this field will still be populated. NOTE: This field may not be populated if the restore of the object fails..</param> /// <param name="restoredObjectId">Specifies the Id of the recovered or cloned object. NOTE: For a Restore Task that is recovering or cloning an object in the VMware environment, after the VM is created it is storage vMotioned to its primary datastore. If storage vMotion fails, the Cohesity Cluster marks the recovery task as failed. However, this field is still populated with the id of the recovered VM. This id can be used later to clean up the VM from primary environment (i.e, the vCenter Server)..</param> /// <param name="sourceObjectId">Specifies the Protection Source id of the object to be recovered or cloned..</param> public RestoreObjectState(RequestError error = default(RequestError), ObjectStatusEnum?objectStatus = default(ObjectStatusEnum?), long?resourcePoolId = default(long?), long?restoredObjectId = default(long?), long?sourceObjectId = default(long?)) { this.ObjectStatus = objectStatus; this.ResourcePoolId = resourcePoolId; this.RestoredObjectId = restoredObjectId; this.SourceObjectId = sourceObjectId; this.Error = error; this.ObjectStatus = objectStatus; this.ResourcePoolId = resourcePoolId; this.RestoredObjectId = restoredObjectId; this.SourceObjectId = sourceObjectId; }
/// <summary> /// Initializes a new instance of the <see cref="MountVolumesState" /> class. /// </summary> /// <param name="bringDisksOnline">Optional setting that determines if the volumes are brought online on the mount target after attaching the disks. This option is only significant for VMs..</param> /// <param name="mountVolumeResults">Array of Mount Volume Results. Specifies the results of mounting each specified volume..</param> /// <param name="otherError">Specifies an error that did not occur during the mount operation..</param> /// <param name="targetSourceId">Specifies the target Protection Source Id where the volumes will be mounted. NOTE: The source that was backed up and the mount target must be the same type, for example if the source is a VMware VM, then the mount target must also be a VMware VM. The mount target must be registered on the Cohesity Cluster..</param> /// <param name="username">Specifies the username to access the mount target..</param> public MountVolumesState(bool?bringDisksOnline = default(bool?), List <MountVolumeResultDetails> mountVolumeResults = default(List <MountVolumeResultDetails>), RequestError otherError = default(RequestError), long?targetSourceId = default(long?), string username = default(string)) { this.BringDisksOnline = bringDisksOnline; this.MountVolumeResults = mountVolumeResults; this.OtherError = otherError; this.TargetSourceId = targetSourceId; this.Username = username; this.BringDisksOnline = bringDisksOnline; this.MountVolumeResults = mountVolumeResults; this.OtherError = otherError; this.TargetSourceId = targetSourceId; this.Username = username; }
/// <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'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 'kRecoverVMs' and 'kCloneVMs' 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. 'kReadyToSchedule' indicates the Restore Task is waiting to be scheduled. 'kProgressMonitorCreated' indicates the progress monitor for the Restore Task has been created. 'kRetrievedFromArchive' 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. 'kAdmitted' indicates the task has been admitted. After a task has been admitted, its status does not move back to 'kReadyToSchedule' state even if it is rescheduled. 'kInProgress' indicates that the Restore Task is in progress. 'kFinishingProgressMonitor' indicates that the Restore Task is finishing its progress monitoring. 'kFinished' 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. 'kInternalViewCreated' indicates that internal view for the task has been created. 'kZipFileRequested' 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. 'kCancelled' indicates that task or jb has been cancelled..</param> /// <param name="targetViewCreated">Is true if a new View was created by a 'kCloneVMs' Restore Task. This field is only set for a 'kCloneVMs' Restore Task..</param> /// <param name="type">Specifies the type of Restore Task. 'kRecoverVMs' specifies a Restore Task that recovers VMs. 'kCloneVMs' specifies a Restore Task that clones VMs. 'kCloneView' specifies a Restore Task that clones a View. 'kMountVolumes' specifies a Restore Task that mounts volumes. 'kRestoreFiles' specifies a Restore Task that recovers files and folders. 'kRecoverApp' specifies a Restore Task that recovers app. 'kCloneApp' specifies a Restore Task that clone app. 'kRecoverSanVolume' specifies a Restore Task that recovers SAN volumes. 'kConvertAndDeployVMs' specifies a Restore Task that converts and deploy VMs to a target environment. 'kMountFileVolume' specifies a Restore Task that mounts a file volume. 'kSystem' specifies a Restore Task that recovers a system. 'kRecoverVolumes' specifies a Restore Task that recovers volumes via the physical agent. 'kDeployVolumes' specifies a Restore Task that deployes volumes to a target environment. 'kDownloadFiles' specifies a Restore Task that downloads the requested files and folders in zip format. 'kRecoverEmails' specifies a Restore Task that recovers the mailbox/email items. 'kRecoverDisks' 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; }