/// <summary> /// Initializes a new instance of the <see cref="RestoreWrapperProto" /> class. /// </summary> /// <param name="destroyClonedTaskStateVec">For a restore task of type 'Clone', this field contains the info of the destroy task(s)..</param> /// <param name="ownerRestoreWrapperProto">ownerRestoreWrapperProto.</param> /// <param name="performRefreshTaskStateVec">Contains information of the refresh tasks for a clone.</param> /// <param name="performRestoreJobState">performRestoreJobState.</param> /// <param name="performRestoreTaskState">performRestoreTaskState.</param> /// <param name="restoreSubTaskWrapperProtoVec">If this restore has sub tasks, the following field will get populated with the wrapper proto of all of its sub-tasks. Note that this field is only populated for Iris in response to 'GetRestoreTasksArg' RPC. It is not persisted in Magneto's WAL. List of environments that use this field: kSQL : Used for multi-stage SQL restore that supports a hot-standy..</param> public RestoreWrapperProto(List <DestroyClonedTaskStateProto> destroyClonedTaskStateVec = default(List <DestroyClonedTaskStateProto>), RestoreWrapperProto ownerRestoreWrapperProto = default(RestoreWrapperProto), List <PerformRestoreTaskStateProto> performRefreshTaskStateVec = default(List <PerformRestoreTaskStateProto>), PerformRestoreJobStateProto performRestoreJobState = default(PerformRestoreJobStateProto), PerformRestoreTaskStateProto performRestoreTaskState = default(PerformRestoreTaskStateProto), List <Object> restoreSubTaskWrapperProtoVec = default(List <Object>)) { this.DestroyClonedTaskStateVec = destroyClonedTaskStateVec; this.PerformRefreshTaskStateVec = performRefreshTaskStateVec; this.RestoreSubTaskWrapperProtoVec = restoreSubTaskWrapperProtoVec; this.DestroyClonedTaskStateVec = destroyClonedTaskStateVec; this.OwnerRestoreWrapperProto = ownerRestoreWrapperProto; this.PerformRefreshTaskStateVec = performRefreshTaskStateVec; this.PerformRestoreJobState = performRestoreJobState; this.PerformRestoreTaskState = performRestoreTaskState; this.RestoreSubTaskWrapperProtoVec = restoreSubTaskWrapperProtoVec; }
/// <summary> /// Initializes a new instance of the <see cref="PerformRestoreJobStateProto" /> class. /// </summary> /// <param name="admittedTimeUsecs">The time at which the restore job was admitted to run on a Magneto master. This field will be set only after the status changes to 'kAdmitted'. Using this field, amount of time spent in the waiting/queued state and the amount of time taken taken to actually run the job can be determined. wait time = admitted_time_usecs - start_time_usecs run time = end_time_usecs - admitted_time_usecs.</param> /// <param name="cancellationRequested">Whether this restore job has a pending cancellation request..</param> /// <param name="continueRestoreOnError">Whether to continue with the restore operation if restore of any object fails..</param> /// <param name="deployVmsToCloudTaskState">deployVmsToCloudTaskState.</param> /// <param name="endTimeUsecs">If the restore job has finished, this field contains the end time for the job..</param> /// <param name="error">error.</param> /// <param name="name">The name of the restore job..</param> /// <param name="parentSourceConnectionParams">parentSourceConnectionParams.</param> /// <param name="powerStateConfig">powerStateConfig.</param> /// <param name="preserveTags">Whether to preserve tags for the clone op. This field is currently used by HyperV and VMWare..</param> /// <param name="progressMonitorTaskPath">Root path of a Pulse task tracking the progress of the restore job..</param> /// <param name="renameRestoredObjectParam">renameRestoredObjectParam.</param> /// <param name="restoreAcropolisVmsParams">restoreAcropolisVmsParams.</param> /// <param name="restoreJobId">A globally unique id for this restore job..</param> /// <param name="restoreKubernetesNamespacesParams">restoreKubernetesNamespacesParams.</param> /// <param name="restoreKvmVmsParams">restoreKvmVmsParams.</param> /// <param name="restoreParentSource">restoreParentSource.</param> /// <param name="restoreTaskStateProtoTmpl">restoreTaskStateProtoTmpl.</param> /// <param name="restoreTaskVec">Even if the user wanted to restore an entire job from the latest snapshot, this will have info of all the individual objects..</param> /// <param name="restoreVmwareVmParams">restoreVmwareVmParams.</param> /// <param name="restoredObjectsNetworkConfig">restoredObjectsNetworkConfig.</param> /// <param name="restoredToDifferentSource">Whether restore is being performed to a different parent source..</param> /// <param name="startTimeUsecs">The start time for this restore job..</param> /// <param name="status">Status of the restore job..</param> /// <param name="type">The type of restore being performed..</param> /// <param name="user">The user who requested this restore job..</param> /// <param name="userInfo">userInfo.</param> /// <param name="viewBoxId">The view box id to which the restore job belongs to..</param> /// <param name="warnings">Populate warnings on the job if any. The warning messages are propagated from the child restore tasks upon completion of the task..</param> public PerformRestoreJobStateProto(long?admittedTimeUsecs = default(long?), bool?cancellationRequested = default(bool?), bool?continueRestoreOnError = default(bool?), DeployVMsToCloudTaskStateProto deployVmsToCloudTaskState = default(DeployVMsToCloudTaskStateProto), long?endTimeUsecs = default(long?), ErrorProto error = default(ErrorProto), string name = default(string), ConnectorParams parentSourceConnectionParams = default(ConnectorParams), PowerStateConfigProto powerStateConfig = default(PowerStateConfigProto), bool?preserveTags = default(bool?), string progressMonitorTaskPath = default(string), RenameObjectParamProto renameRestoredObjectParam = default(RenameObjectParamProto), RestoreAcropolisVMsParams restoreAcropolisVmsParams = default(RestoreAcropolisVMsParams), long?restoreJobId = default(long?), RestoreKubernetesNamespacesParams restoreKubernetesNamespacesParams = default(RestoreKubernetesNamespacesParams), RestoreKVMVMsParams restoreKvmVmsParams = default(RestoreKVMVMsParams), EntityProto restoreParentSource = default(EntityProto), PerformRestoreTaskStateProto restoreTaskStateProtoTmpl = default(PerformRestoreTaskStateProto), List <PerformRestoreJobStateProtoRestoreTask> restoreTaskVec = default(List <PerformRestoreJobStateProtoRestoreTask>), RestoreVMwareVMParams restoreVmwareVmParams = default(RestoreVMwareVMParams), RestoredObjectNetworkConfigProto restoredObjectsNetworkConfig = default(RestoredObjectNetworkConfigProto), bool?restoredToDifferentSource = default(bool?), long?startTimeUsecs = default(long?), int?status = default(int?), int?type = default(int?), string user = default(string), UserInformation userInfo = default(UserInformation), long?viewBoxId = default(long?), List <ErrorProto> warnings = default(List <ErrorProto>)) { this.AdmittedTimeUsecs = admittedTimeUsecs; this.CancellationRequested = cancellationRequested; this.ContinueRestoreOnError = continueRestoreOnError; this.EndTimeUsecs = endTimeUsecs; this.Name = name; this.PreserveTags = preserveTags; this.ProgressMonitorTaskPath = progressMonitorTaskPath; this.RestoreJobId = restoreJobId; this.RestoreTaskVec = restoreTaskVec; this.RestoredToDifferentSource = restoredToDifferentSource; this.StartTimeUsecs = startTimeUsecs; this.Status = status; this.Type = type; this.User = user; this.ViewBoxId = viewBoxId; this.Warnings = warnings; this.AdmittedTimeUsecs = admittedTimeUsecs; this.CancellationRequested = cancellationRequested; this.ContinueRestoreOnError = continueRestoreOnError; this.DeployVmsToCloudTaskState = deployVmsToCloudTaskState; this.EndTimeUsecs = endTimeUsecs; this.Error = error; this.Name = name; this.ParentSourceConnectionParams = parentSourceConnectionParams; this.PowerStateConfig = powerStateConfig; this.PreserveTags = preserveTags; this.ProgressMonitorTaskPath = progressMonitorTaskPath; this.RenameRestoredObjectParam = renameRestoredObjectParam; this.RestoreAcropolisVmsParams = restoreAcropolisVmsParams; this.RestoreJobId = restoreJobId; this.RestoreKubernetesNamespacesParams = restoreKubernetesNamespacesParams; this.RestoreKvmVmsParams = restoreKvmVmsParams; this.RestoreParentSource = restoreParentSource; this.RestoreTaskStateProtoTmpl = restoreTaskStateProtoTmpl; this.RestoreTaskVec = restoreTaskVec; this.RestoreVmwareVmParams = restoreVmwareVmParams; this.RestoredObjectsNetworkConfig = restoredObjectsNetworkConfig; this.RestoredToDifferentSource = restoredToDifferentSource; this.StartTimeUsecs = startTimeUsecs; this.Status = status; this.Type = type; this.User = user; this.UserInfo = userInfo; this.ViewBoxId = viewBoxId; this.Warnings = warnings; }