/// <summary> /// Initializes a new instance of the <see cref="RestoreObject" /> class. /// </summary> /// <param name="archivalTarget">archivalTarget.</param> /// <param name="attemptNum">The attempt number of the job run to restore from..</param> /// <param name="cloudDeployTarget">cloudDeployTarget.</param> /// <param name="cloudReplicationTarget">cloudReplicationTarget.</param> /// <param name="entity">entity.</param> /// <param name="jobId">The job id from which to restore. This is used while communicating with yoda..</param> /// <param name="jobInstanceId">Id identifying a specific run to restore from. If this is not specified, and we need to restore from a run, the latest run is used. NOTE: This must be specified for RestoreFiles, RecoverDisks and GetVirtualDisks APIs..</param> /// <param name="jobUid">jobUid.</param> /// <param name="parentSource">parentSource.</param> /// <param name="pointInTimeRestoreTimeUsecs">The time to which the object needs to be restored. If this is not set, then the object will be restored to the full/incremental snapshot. This is applicable only if the object is protected using CDP..</param> /// <param name="restoreAcropolisVmParam">restoreAcropolisVmParam.</param> /// <param name="snapshotRelativeDirPath">The relative path to the directory containing the entity's snapshot..</param> /// <param name="startTimeUsecs">The start time of the specific job run. Iff 'job_instance_id' is set, this field must be set. In-memory indices on the Magneto master are laid-out by the start time of the job, and this is how the master pulls up a specific run. NOTE: This must be specified for RestoreFiles, RecoverDisks and GetVirtualDisks APIs.</param> /// <param name="viewName">The name of the view where the object's snapshot is located..</param> /// <param name="vmHadIndependentDisks">This is applicable only to VMs and is set to true when the VM being recovered or cloned contained independent disks when it was backed up..</param> public RestoreObject(ArchivalTarget archivalTarget = default(ArchivalTarget), int?attemptNum = default(int?), CloudDeployTarget cloudDeployTarget = default(CloudDeployTarget), CloudDeployTarget cloudReplicationTarget = default(CloudDeployTarget), EntityProto entity = default(EntityProto), long?jobId = default(long?), long?jobInstanceId = default(long?), UniversalIdProto jobUid = default(UniversalIdProto), EntityProto parentSource = default(EntityProto), long?pointInTimeRestoreTimeUsecs = default(long?), RestoreAcropolisVMParam restoreAcropolisVmParam = default(RestoreAcropolisVMParam), string snapshotRelativeDirPath = default(string), long?startTimeUsecs = default(long?), string viewName = default(string), bool?vmHadIndependentDisks = default(bool?)) { this.AttemptNum = attemptNum; this.JobId = jobId; this.JobInstanceId = jobInstanceId; this.PointInTimeRestoreTimeUsecs = pointInTimeRestoreTimeUsecs; this.SnapshotRelativeDirPath = snapshotRelativeDirPath; this.StartTimeUsecs = startTimeUsecs; this.ViewName = viewName; this.VmHadIndependentDisks = vmHadIndependentDisks; this.ArchivalTarget = archivalTarget; this.AttemptNum = attemptNum; this.CloudDeployTarget = cloudDeployTarget; this.CloudReplicationTarget = cloudReplicationTarget; this.Entity = entity; this.JobId = jobId; this.JobInstanceId = jobInstanceId; this.JobUid = jobUid; this.ParentSource = parentSource; this.PointInTimeRestoreTimeUsecs = pointInTimeRestoreTimeUsecs; this.RestoreAcropolisVmParam = restoreAcropolisVmParam; this.SnapshotRelativeDirPath = snapshotRelativeDirPath; this.StartTimeUsecs = startTimeUsecs; this.ViewName = viewName; this.VmHadIndependentDisks = vmHadIndependentDisks; }
/// <summary> /// Initializes a new instance of the <see cref="RetrieveArchiveTaskStateProto" /> class. /// </summary> /// <param name="archivalTarget">archivalTarget.</param> /// <param name="archiveTaskUid">archiveTaskUid.</param> /// <param name="backupRunStartTimeUsecs">The start time of the backup run whose corresponding archive is being retrieved. This field is just used for logging purposes..</param> /// <param name="cancellationRequested">Whether this retrieval task has a pending cancellation request..</param> /// <param name="downloadFilesInfo">downloadFilesInfo.</param> /// <param name="endTimeUsecs">If the retrieval task has finished, this field contains the end time for the task..</param> /// <param name="entityVec">Information on the exact set of objects to retrieve from archive. Even if the user wanted to retrieve all objects from the archive, this field will contain all individual leaf-level objects..</param> /// <param name="error">error.</param> /// <param name="fullViewNameDEPRECATED">The full view name (external). This is composed of a Cohesity specific prefix and the user provided view name..</param> /// <param name="jobUid">jobUid.</param> /// <param name="name">The name of the retrieval task..</param> /// <param name="progressMonitorTaskPath">The path of the progress monitor for this task..</param> /// <param name="restoreArchiveFilesInfo">restoreArchiveFilesInfo.</param> /// <param name="restoreTaskId">For retrieve tasks created after the 2.8 release, this will contain the id of the restore task that created this retrieve task..</param> /// <param name="retrievalInfo">retrievalInfo.</param> /// <param name="startTimeUsecs">The start time for this retrieval task..</param> /// <param name="status">The status of this task..</param> /// <param name="taskUid">taskUid.</param> /// <param name="user">The user who requested this retrieval task..</param> /// <param name="vaultRestoreParams">vaultRestoreParams.</param> /// <param name="viewBoxId">The view box id to which 'view_name' belongs to..</param> /// <param name="viewNameDEPRECATED">The view name as provided by the user for this retrieval task. Retrieved snapshots of the entities will be placed in this view..</param> public RetrieveArchiveTaskStateProto(ArchivalTarget archivalTarget = default(ArchivalTarget), UniversalIdProto archiveTaskUid = default(UniversalIdProto), long?backupRunStartTimeUsecs = default(long?), bool?cancellationRequested = default(bool?), RetrieveArchiveTaskStateProtoDownloadFilesInfo downloadFilesInfo = default(RetrieveArchiveTaskStateProtoDownloadFilesInfo), long?endTimeUsecs = default(long?), List <EntityProto> entityVec = default(List <EntityProto>), ErrorProto error = default(ErrorProto), string fullViewNameDEPRECATED = default(string), UniversalIdProto jobUid = default(UniversalIdProto), string name = default(string), string progressMonitorTaskPath = default(string), RetrieveArchiveTaskStateProtoDownloadFilesInfo restoreArchiveFilesInfo = default(RetrieveArchiveTaskStateProtoDownloadFilesInfo), long?restoreTaskId = default(long?), RetrieveArchiveInfo retrievalInfo = default(RetrieveArchiveInfo), long?startTimeUsecs = default(long?), int?status = default(int?), UniversalIdProto taskUid = default(UniversalIdProto), string user = default(string), VaultParamsRestoreParams vaultRestoreParams = default(VaultParamsRestoreParams), long?viewBoxId = default(long?), string viewNameDEPRECATED = default(string)) { this.BackupRunStartTimeUsecs = backupRunStartTimeUsecs; this.CancellationRequested = cancellationRequested; this.EndTimeUsecs = endTimeUsecs; this.EntityVec = entityVec; this.FullViewNameDEPRECATED = fullViewNameDEPRECATED; this.Name = name; this.ProgressMonitorTaskPath = progressMonitorTaskPath; this.RestoreTaskId = restoreTaskId; this.StartTimeUsecs = startTimeUsecs; this.Status = status; this.User = user; this.ViewBoxId = viewBoxId; this.ViewNameDEPRECATED = viewNameDEPRECATED; this.ArchivalTarget = archivalTarget; this.ArchiveTaskUid = archiveTaskUid; this.BackupRunStartTimeUsecs = backupRunStartTimeUsecs; this.CancellationRequested = cancellationRequested; this.DownloadFilesInfo = downloadFilesInfo; this.EndTimeUsecs = endTimeUsecs; this.EntityVec = entityVec; this.Error = error; this.FullViewNameDEPRECATED = fullViewNameDEPRECATED; this.JobUid = jobUid; this.Name = name; this.ProgressMonitorTaskPath = progressMonitorTaskPath; this.RestoreArchiveFilesInfo = restoreArchiveFilesInfo; this.RestoreTaskId = restoreTaskId; this.RetrievalInfo = retrievalInfo; this.StartTimeUsecs = startTimeUsecs; this.Status = status; this.TaskUid = taskUid; this.User = user; this.VaultRestoreParams = vaultRestoreParams; this.ViewBoxId = viewBoxId; this.ViewNameDEPRECATED = viewNameDEPRECATED; }
/// <summary> /// Initializes a new instance of the <see cref="MagnetoObjectId" /> class. /// </summary> /// <param name="entity">entity.</param> /// <param name="jobId">The id of the local job that the object belongs to, which may or may not match the object_id field in job_uid below depending on whether the object originally belonged to this local job or to a different remote job..</param> /// <param name="jobUid">jobUid.</param> public MagnetoObjectId(EntityProto entity = default(EntityProto), long?jobId = default(long?), UniversalIdProto jobUid = default(UniversalIdProto)) { this.JobId = jobId; this.Entity = entity; this.JobId = jobId; this.JobUid = jobUid; }