/// <summary>
 /// Initializes a new instance of the <see cref="RestoredObjectVCDConfigProto" /> class.
 /// </summary>
 /// <param name="isVapp">Whether the restored object is a VApp..</param>
 /// <param name="vappEntity">vappEntity.</param>
 /// <param name="vcenterConnectorParams">vcenterConnectorParams.</param>
 /// <param name="vdcEntity">vdcEntity.</param>
 public RestoredObjectVCDConfigProto(bool?isVapp = default(bool?), EntityProto vappEntity = default(EntityProto), ConnectorParams vcenterConnectorParams = default(ConnectorParams), EntityProto vdcEntity = default(EntityProto))
 {
     this.IsVapp                 = isVapp;
     this.IsVapp                 = isVapp;
     this.VappEntity             = vappEntity;
     this.VcenterConnectorParams = vcenterConnectorParams;
     this.VdcEntity              = vdcEntity;
 }
Пример #2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="StorageSnapshotProviderParams" /> class.
 /// </summary>
 /// <param name="connectorParams">connectorParams.</param>
 /// <param name="entity">entity.</param>
 public StorageSnapshotProviderParams(ConnectorParams connectorParams = default(ConnectorParams), EntityProto entity = default(EntityProto))
 {
     this.ConnectorParams = connectorParams;
     this.Entity          = entity;
 }
Пример #3
0
 /// <summary>
 /// Initializes a new instance of the <see cref="DestroyClonedTaskStateProto" /> class.
 /// </summary>
 /// <param name="cloneTaskName">The name of the clone task..</param>
 /// <param name="datastoreEntity">datastoreEntity.</param>
 /// <param name="deployVmsToCloudTaskState">deployVmsToCloudTaskState.</param>
 /// <param name="destroyCloneAppTaskInfo">destroyCloneAppTaskInfo.</param>
 /// <param name="destroyCloneVmTaskInfo">destroyCloneVmTaskInfo.</param>
 /// <param name="destroyMountVolumesTaskInfo">destroyMountVolumesTaskInfo.</param>
 /// <param name="endTimeUsecs">If the destroy clone task has finished, this field contains the end time of the task..</param>
 /// <param name="error">error.</param>
 /// <param name="folderEntity">folderEntity.</param>
 /// <param name="forceDelete">flag used to perform force delete, ignore error on delete steps.</param>
 /// <param name="fullViewName">The full external view name where cloned objects are placed..</param>
 /// <param name="parentSourceConnectionParams">parentSourceConnectionParams.</param>
 /// <param name="parentTaskId">The id of the task that triggered the destroy task. This will be used by refresh task to mark the destroy task as internal sub-task..</param>
 /// <param name="performCloneTaskId">The unique id of the task that performed the clone operation..</param>
 /// <param name="restoreType">The type of the restore/clone operation that is being destroyed..</param>
 /// <param name="scheduledConstituentId">Constituent id (and the gandalf session id) where this task has been scheduled. If -1, the task is not running at any slave. It&#39;s possible that the task was previously scheduled, but is now being re-scheduled..</param>
 /// <param name="scheduledGandalfSessionId">scheduledGandalfSessionId.</param>
 /// <param name="startTimeUsecs">The start time of this destroy clone task..</param>
 /// <param name="status">Status of the destroy clone task..</param>
 /// <param name="taskId">A globally unique id of this destroy clone task..</param>
 /// <param name="type">The type of environment that is being operated on..</param>
 /// <param name="user">The user who requested this destroy clone task..</param>
 /// <param name="userInfo">userInfo.</param>
 /// <param name="viewBoxId">The view box id to which &#39;view_name&#39; belongs to..</param>
 /// <param name="viewNameDEPRECATED">The view name as provided by the user for the clone operation..</param>
 public DestroyClonedTaskStateProto(string cloneTaskName = default(string), EntityProto datastoreEntity = default(EntityProto), DeployVMsToCloudTaskStateProto deployVmsToCloudTaskState = default(DeployVMsToCloudTaskStateProto), DestroyCloneAppTaskInfoProto destroyCloneAppTaskInfo = default(DestroyCloneAppTaskInfoProto), DestroyClonedVMTaskInfoProto destroyCloneVmTaskInfo = default(DestroyClonedVMTaskInfoProto), DestroyMountVolumesTaskInfoProto destroyMountVolumesTaskInfo = default(DestroyMountVolumesTaskInfoProto), long?endTimeUsecs = default(long?), ErrorProto error = default(ErrorProto), EntityProto folderEntity = default(EntityProto), bool?forceDelete = default(bool?), string fullViewName = default(string), ConnectorParams parentSourceConnectionParams = default(ConnectorParams), long?parentTaskId = default(long?), long?performCloneTaskId = default(long?), int?restoreType = default(int?), long?scheduledConstituentId = default(long?), long?scheduledGandalfSessionId = default(long?), long?startTimeUsecs = default(long?), int?status = default(int?), long?taskId = default(long?), int?type = default(int?), string user = default(string), UserInformation userInfo = default(UserInformation), long?viewBoxId = default(long?), string viewNameDEPRECATED = default(string))
 {
     this.CloneTaskName             = cloneTaskName;
     this.EndTimeUsecs              = endTimeUsecs;
     this.ForceDelete               = forceDelete;
     this.FullViewName              = fullViewName;
     this.ParentTaskId              = parentTaskId;
     this.PerformCloneTaskId        = performCloneTaskId;
     this.RestoreType               = restoreType;
     this.ScheduledConstituentId    = scheduledConstituentId;
     this.ScheduledGandalfSessionId = scheduledGandalfSessionId;
     this.StartTimeUsecs            = startTimeUsecs;
     this.Status                       = status;
     this.TaskId                       = taskId;
     this.Type                         = type;
     this.User                         = user;
     this.ViewBoxId                    = viewBoxId;
     this.ViewNameDEPRECATED           = viewNameDEPRECATED;
     this.CloneTaskName                = cloneTaskName;
     this.DatastoreEntity              = datastoreEntity;
     this.DeployVmsToCloudTaskState    = deployVmsToCloudTaskState;
     this.DestroyCloneAppTaskInfo      = destroyCloneAppTaskInfo;
     this.DestroyCloneVmTaskInfo       = destroyCloneVmTaskInfo;
     this.DestroyMountVolumesTaskInfo  = destroyMountVolumesTaskInfo;
     this.EndTimeUsecs                 = endTimeUsecs;
     this.Error                        = error;
     this.FolderEntity                 = folderEntity;
     this.ForceDelete                  = forceDelete;
     this.FullViewName                 = fullViewName;
     this.ParentSourceConnectionParams = parentSourceConnectionParams;
     this.ParentTaskId                 = parentTaskId;
     this.PerformCloneTaskId           = performCloneTaskId;
     this.RestoreType                  = restoreType;
     this.ScheduledConstituentId       = scheduledConstituentId;
     this.ScheduledGandalfSessionId    = scheduledGandalfSessionId;
     this.StartTimeUsecs               = startTimeUsecs;
     this.Status                       = status;
     this.TaskId                       = taskId;
     this.Type                         = type;
     this.User                         = user;
     this.UserInfo                     = userInfo;
     this.ViewBoxId                    = viewBoxId;
     this.ViewNameDEPRECATED           = viewNameDEPRECATED;
 }
Пример #4
0
 /// <summary>
 /// Initializes a new instance of the <see cref="RestoreTaskStateBaseProto" /> class.
 /// </summary>
 /// <param name="cancellationRequested">Whether this task has a pending cancellation request..</param>
 /// <param name="endTimeUsecs">If the restore task has finished, this field contains the end time for the task..</param>
 /// <param name="error">error.</param>
 /// <param name="name">The name of the restore task..</param>
 /// <param name="parentSourceConnectionParams">parentSourceConnectionParams.</param>
 /// <param name="publicStatus">Iris-facing task state. This field is stamped during the export..</param>
 /// <param name="refreshStatus">Status of the refresh task..</param>
 /// <param name="restoreVlanParams">restoreVlanParams.</param>
 /// <param name="scheduledConstituentId">Constituent id (and the gandalf session id) where this task has been scheduled. If -1, the task is not running at any slave. It&#39;s possible that the task was previously scheduled, but is now being re-scheduled..</param>
 /// <param name="scheduledGandalfSessionId">scheduledGandalfSessionId.</param>
 /// <param name="startTimeUsecs">The start time for this restore task..</param>
 /// <param name="status">Status of the restore task..</param>
 /// <param name="taskId">A globally unique id for this task..</param>
 /// <param name="totalLogicalSizeBytes">Logical size of this restore task. This is the amount of data that needs to be transferred to restore the entity..</param>
 /// <param name="totalPhysicalSizeBytes">Physical size of this restore task. This is the amount of data that was actually transferred to restore the entity..</param>
 /// <param name="type">The type of restore being performed..</param>
 /// <param name="user">The user who requested this restore task..</param>
 /// <param name="userInfo">userInfo.</param>
 /// <param name="userMessages">Messages displayed to the user for this task (if any). Only valid if the status of the task is kFinished. This is used for informing the user with additional details when there is not an error..</param>
 /// <param name="warnings">The warnings encountered by this task (if any) during its execution..</param>
 public RestoreTaskStateBaseProto(bool?cancellationRequested = default(bool?), long?endTimeUsecs = default(long?), ErrorProto error = default(ErrorProto), string name = default(string), ConnectorParams parentSourceConnectionParams = default(ConnectorParams), int?publicStatus = default(int?), int?refreshStatus = default(int?), RestoreVlanParams restoreVlanParams = default(RestoreVlanParams), long?scheduledConstituentId = default(long?), long?scheduledGandalfSessionId = default(long?), long?startTimeUsecs = default(long?), int?status = default(int?), long?taskId = default(long?), long?totalLogicalSizeBytes = default(long?), long?totalPhysicalSizeBytes = default(long?), int?type = default(int?), string user = default(string), UserInformation userInfo = default(UserInformation), List <string> userMessages = default(List <string>), List <ErrorProto> warnings = default(List <ErrorProto>))
 {
     this.CancellationRequested = cancellationRequested;
     this.EndTimeUsecs          = endTimeUsecs;
     this.Name                         = name;
     this.PublicStatus                 = publicStatus;
     this.RefreshStatus                = refreshStatus;
     this.ScheduledConstituentId       = scheduledConstituentId;
     this.ScheduledGandalfSessionId    = scheduledGandalfSessionId;
     this.StartTimeUsecs               = startTimeUsecs;
     this.Status                       = status;
     this.TaskId                       = taskId;
     this.TotalLogicalSizeBytes        = totalLogicalSizeBytes;
     this.TotalPhysicalSizeBytes       = totalPhysicalSizeBytes;
     this.Type                         = type;
     this.User                         = user;
     this.UserMessages                 = userMessages;
     this.Warnings                     = warnings;
     this.CancellationRequested        = cancellationRequested;
     this.EndTimeUsecs                 = endTimeUsecs;
     this.Error                        = error;
     this.Name                         = name;
     this.ParentSourceConnectionParams = parentSourceConnectionParams;
     this.PublicStatus                 = publicStatus;
     this.RefreshStatus                = refreshStatus;
     this.RestoreVlanParams            = restoreVlanParams;
     this.ScheduledConstituentId       = scheduledConstituentId;
     this.ScheduledGandalfSessionId    = scheduledGandalfSessionId;
     this.StartTimeUsecs               = startTimeUsecs;
     this.Status                       = status;
     this.TaskId                       = taskId;
     this.TotalLogicalSizeBytes        = totalLogicalSizeBytes;
     this.TotalPhysicalSizeBytes       = totalPhysicalSizeBytes;
     this.Type                         = type;
     this.User                         = user;
     this.UserInfo                     = userInfo;
     this.UserMessages                 = userMessages;
     this.Warnings                     = warnings;
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="RestoreFilesInfoProto" /> class.
 /// </summary>
 /// <param name="downloadFilesPath">The path that the user should use to download files through the UI. If only a single file needs to be downloaded, this will be the path to that file. If a directory or multiple files &amp; directories need to be downloaded, this will be the path to the .zip file to download. Only applicable to a download files task..</param>
 /// <param name="error">error.</param>
 /// <param name="proxyEntityConnectorParams">proxyEntityConnectorParams.</param>
 /// <param name="restoreFilesResultVec">Contains the result information of the restored files..</param>
 /// <param name="slaveTaskStartTimeUsecs">This is the timestamp at which the slave task started..</param>
 /// <param name="targetType">Specifies the target type for the task. The field is only valid if the task has got a permit..</param>
 /// <param name="teardownError">teardownError.</param>
 /// <param name="type">The type of environment this restore files info pertains to..</param>
 public RestoreFilesInfoProto(string downloadFilesPath = default(string), ErrorProto error = default(ErrorProto), ConnectorParams proxyEntityConnectorParams = default(ConnectorParams), List <RestoreFileResultInfo> restoreFilesResultVec = default(List <RestoreFileResultInfo>), long?slaveTaskStartTimeUsecs = default(long?), int?targetType = default(int?), ErrorProto teardownError = default(ErrorProto), int?type = default(int?))
 {
     this.DownloadFilesPath       = downloadFilesPath;
     this.RestoreFilesResultVec   = restoreFilesResultVec;
     this.SlaveTaskStartTimeUsecs = slaveTaskStartTimeUsecs;
     this.TargetType                 = targetType;
     this.Type                       = type;
     this.DownloadFilesPath          = downloadFilesPath;
     this.Error                      = error;
     this.ProxyEntityConnectorParams = proxyEntityConnectorParams;
     this.RestoreFilesResultVec      = restoreFilesResultVec;
     this.SlaveTaskStartTimeUsecs    = slaveTaskStartTimeUsecs;
     this.TargetType                 = targetType;
     this.TeardownError              = teardownError;
     this.Type                       = type;
 }
 /// <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 &#39;kAdmitted&#39;. 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 &#x3D; admitted_time_usecs - start_time_usecs run time &#x3D; 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="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="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>
 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), 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), 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?))
 {
     this.AdmittedTimeUsecs      = admittedTimeUsecs;
     this.CancellationRequested  = cancellationRequested;
     this.ContinueRestoreOnError = continueRestoreOnError;
     this.EndTimeUsecs           = endTimeUsecs;
     this.Name = name;
     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.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.ProgressMonitorTaskPath           = progressMonitorTaskPath;
     this.RenameRestoredObjectParam         = renameRestoredObjectParam;
     this.RestoreAcropolisVmsParams         = restoreAcropolisVmsParams;
     this.RestoreJobId                      = restoreJobId;
     this.RestoreKubernetesNamespacesParams = restoreKubernetesNamespacesParams;
     this.RestoreKvmVmsParams               = restoreKvmVmsParams;
     this.RestoreParentSource               = restoreParentSource;
     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;
 }