Пример #1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="SnapshotTarget" /> class.
 /// </summary>
 /// <param name="archivalTarget">archivalTarget.</param>
 /// <param name="cloudDeployTarget">cloudDeployTarget.</param>
 /// <param name="replicationTarget">replicationTarget.</param>
 /// <param name="type">The type of snapshot target this proto represents..</param>
 public SnapshotTarget(ArchivalTarget archivalTarget = default(ArchivalTarget), CloudDeployTarget cloudDeployTarget = default(CloudDeployTarget), ReplicationTarget replicationTarget = default(ReplicationTarget), int?type = default(int?))
 {
     this.Type              = type;
     this.ArchivalTarget    = archivalTarget;
     this.CloudDeployTarget = cloudDeployTarget;
     this.ReplicationTarget = replicationTarget;
     this.Type              = type;
 }
 /// <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&#39;s snapshot..</param>
 /// <param name="startTimeUsecs">The start time of the specific job run. Iff &#39;job_instance_id&#39; 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&#39;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;
 }