Esempio n. 1
0
 /// <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. &#39;kFilesCloned&#39; indicates that the cloning has completed. &#39;kFetchedEntityInfo&#39; indicates that information about the object was fetched from the primary source. &#39;kVMCreated&#39; indicates that the new VM was created. &#39;kRelocationStarted&#39; indicates that restoring to a different resource pool has started. &#39;kFinished&#39; 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. &#39;kAborted&#39; 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 &#39;kCloneVMs&#39; Restore Task, the datastore could not be mounted. The entire Restore Task is aborted before trying to create VMs on the primary source. &#39;kDataCopyStarted&#39; indicates that the disk copy is started. &#39;kInProgress&#39; captures a generic in-progress state and can be used by restore operations that don&#39;t track individual states..</param>
 /// <param name="resourcePoolId">Specifies the id of the Resource Pool that the restored object is attached to. For a &#39;kRecoverVMs&#39; 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 &#39;kCloneVMs&#39; 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;
 }
Esempio n. 2
0
 /// <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;
 }
Esempio n. 3
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;
 }