Beispiel #1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="RecoverTaskRequest" /> class.
 /// </summary>
 /// <param name="acropolisParameters">Specifies additional parameters for &#39;kAcropolis&#39; restore objects..</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="hypervParameters">Specifies additional parameters for &#39;kHyperV&#39; restore objects..</param>
 /// <param name="mountParameters">Specifies parameters required for mounting volumes..</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">Specifies a list of Protection Source objects or Protection Job objects (with specified Protection Source objects)..</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. (required).</param>
 /// <param name="vlanParameters">Specifies VLAN parameters for the restore operation..</param>
 /// <param name="vmwareParameters">Specifies additional parameters for &#39;kVmware&#39; restore objects..</param>
 public RecoverTaskRequest(AcropolisRestoreParameters acropolisParameters = default(AcropolisRestoreParameters), bool?continueOnError = default(bool?), HypervRestoreParameters hypervParameters = default(HypervRestoreParameters), MountVolumesParameters mountParameters = default(MountVolumesParameters), string name = default(string), long?newParentId = default(long?), List <RestoreObject> objects = default(List <RestoreObject>), TypeEnum type = default(TypeEnum), VlanParameters vlanParameters = default(VlanParameters), VmwareRestoreParameters vmwareParameters = default(VmwareRestoreParameters))
 {
     // to ensure "name" is required (not null)
     if (name == null)
     {
         throw new InvalidDataException("name is a required property for RecoverTaskRequest and cannot be null");
     }
     else
     {
         this.Name = name;
     }
     // to ensure "type" is required (not null)
     if (type == null)
     {
         throw new InvalidDataException("type is a required property for RecoverTaskRequest and cannot be null");
     }
     else
     {
         this.Type = type;
     }
     this.AcropolisParameters = acropolisParameters;
     this.ContinueOnError     = continueOnError;
     this.HypervParameters    = hypervParameters;
     this.MountParameters     = mountParameters;
     this.NewParentId         = newParentId;
     this.Objects             = objects;
     this.VlanParameters      = vlanParameters;
     this.VmwareParameters    = vmwareParameters;
 }
Beispiel #2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="RestoreTask" /> class.
 /// </summary>
 /// <param name="acropolisParameters">Specifies parameters for &#39;kAcropolis&#39; restore task..</param>
 /// <param name="archiveTaskUid">archiveTaskUid.</param>
 /// <param name="cloneViewParameters">cloneViewParameters.</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">error.</param>
 /// <param name="fullViewName">Specifies the full name of a View..</param>
 /// <param name="hypervParameters">Specifies additional parameters for &#39;kHyperV&#39; restore objects..</param>
 /// <param name="id">Specifies the id of the Restore Task assigned by Cohesity Cluster..</param>
 /// <param name="mountVolumesState">Specifies the states of mounting all the volumes onto a mount target for a &#39;kRecoverVMs&#39; Restore Task..</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">Specifies a list of Protection Source objects or Protection Job objects (with specified Protection Source objects)..</param>
 /// <param name="restoreObjectState">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..</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..</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="vlanParameters">Specifies VLAN parameters for the restore operation..</param>
 /// <param name="vmwareParameters">Specifies additional parameters for &#39;kVmware&#39; restore objects..</param>
 public RestoreTask(AcropolisRestoreParameters acropolisParameters = default(AcropolisRestoreParameters), UniqueGlobalId8 archiveTaskUid = default(UniqueGlobalId8), View_ cloneViewParameters = default(View_), bool?continueOnError = default(bool?), long?datastoreId = default(long?), long?endTimeUsecs = default(long?), RestoreTaskError_ error = default(RestoreTaskError_), 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 <RestoreObject> objects = default(List <RestoreObject>), 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?), VlanParameters vlanParameters = default(VlanParameters), VmwareRestoreParameters vmwareParameters = default(VmwareRestoreParameters))
 {
     // to ensure "name" is required (not null)
     if (name == null)
     {
         throw new InvalidDataException("name is a required property for RestoreTask and cannot be null");
     }
     else
     {
         this.Name = name;
     }
     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.RestoreObjectState = restoreObjectState;
     this.StartTimeUsecs     = startTimeUsecs;
     this.Status             = status;
     this.TargetViewCreated  = targetViewCreated;
     this.Type             = type;
     this.Username         = username;
     this.ViewBoxId        = viewBoxId;
     this.VlanParameters   = vlanParameters;
     this.VmwareParameters = vmwareParameters;
 }