Example #1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="CopySnapshotTaskStatus" /> class.
 /// </summary>
 /// <param name="error">Specifies if an error occurred (if any) while running this task. This field is populated when the status is equal to &#39;kFailure&#39;..</param>
 /// <param name="source">Specifies the source object whose snapshot is replicated. This is specified for replication targets..</param>
 /// <param name="stats">Specifies the stats of the replication or the archival task..</param>
 /// <param name="status">Specifies the status of the source object being protected. &#39;kAccepted&#39; indicates the task is queued to run but not yet running. &#39;kRunning&#39; indicates the task is running. &#39;kCanceling&#39; indicates a request to cancel the task has occurred but the task is not yet canceled. &#39;kCanceled&#39; indicates the task has been canceled. &#39;kSuccess&#39; indicates the task was successful. &#39;kFailure&#39; indicates the task failed..</param>
 /// <param name="taskEndTimeUsecs">Specifies the end time of the copy task. The end time is specified as a Unix epoch Timestamp (in microseconds)..</param>
 /// <param name="taskStartTimeUsecs">Specifies the start time of the copy task. The start time is specified as a Unix epoch Timestamp (in microseconds). Copy run task is started after completing backup tasks. It may spawn sub-tasks to copy or replicate individual snapshots..</param>
 public CopySnapshotTaskStatus(string error = default(string), ProtectionSource source = default(ProtectionSource), CopyRunStats stats = default(CopyRunStats), StatusEnum?status = default(StatusEnum?), long?taskEndTimeUsecs = default(long?), long?taskStartTimeUsecs = default(long?))
 {
     this.Error              = error;
     this.Source             = source;
     this.Stats              = stats;
     this.Status             = status;
     this.TaskEndTimeUsecs   = taskEndTimeUsecs;
     this.TaskStartTimeUsecs = taskStartTimeUsecs;
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="ObjectSnapshotInfo" /> class.
 /// </summary>
 /// <param name="clusterPartitionId">Specifies the Cohesity Cluster partition id where this object is stored..</param>
 /// <param name="jobId">Specifies the id for the Protection Job that is currently associated with the object. If the object was backed up on current Cohesity Cluster, this field contains the id for the Job that captured this backup object. If the object was backed up on a Primary Cluster and replicated to this Cohesity Cluster, a new Inactive Job is created, the object is now associated with new Inactive Job, and this field contains the id of the new Inactive Job..</param>
 /// <param name="jobName">Specifies the name of the Protection Job that captured the backup..</param>
 /// <param name="jobUid">jobUid.</param>
 /// <param name="objectName">Specifies the primary name of the object..</param>
 /// <param name="osType">Specifies the inferred OS type..</param>
 /// <param name="registeredSource">Specifies the id of the original root Protection Source tree (such as a vCenter Server) that was accessed by the Protection Job to capture a backup of this object..</param>
 /// <param name="snapshottedSource">Specifies the Protection Source that represents the original object being backed up. When a root Protection Source is registered, it creates a tree of source Protection Source objects. This field defines the specific Protection Source leaf object (such as a VM) that was backed up..</param>
 /// <param name="versions">Specifies all snapshot versions of this object. Each time a Job Run of a Job executes, it may create a new snapshot version of an object. This array stores the different snapshots versions of the object..</param>
 /// <param name="viewBoxId">Specifies the id of the Domain (View Box) where this object is stored..</param>
 /// <param name="viewName">Specifies the View name where this object is stored..</param>
 public ObjectSnapshotInfo(long?clusterPartitionId = default(long?), long?jobId = default(long?), string jobName = default(string), UniqueGlobalId3 jobUid = default(UniqueGlobalId3), string objectName = default(string), string osType = default(string), ProtectionSource registeredSource = default(ProtectionSource), ProtectionSource snapshottedSource = default(ProtectionSource), List <SnapshotVersion> versions = default(List <SnapshotVersion>), long?viewBoxId = default(long?), string viewName = default(string))
 {
     this.ClusterPartitionId = clusterPartitionId;
     this.JobId             = jobId;
     this.JobName           = jobName;
     this.JobUid            = jobUid;
     this.ObjectName        = objectName;
     this.OsType            = osType;
     this.RegisteredSource  = registeredSource;
     this.SnapshottedSource = snapshottedSource;
     this.Versions          = versions;
     this.ViewBoxId         = viewBoxId;
     this.ViewName          = viewName;
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="SourceBackupStatus" /> class.
 /// </summary>
 /// <param name="currentSnapshotInfo">Specifies details about the snapshot captured to backup the source object (such as a VM)..</param>
 /// <param name="error">Specifies if an error occurred (if any) while running this task. This field is populated when the status is equal to &#39;kFailure&#39;..</param>
 /// <param name="isFullBackup">Specifies whether this is a &#39;kFull&#39; or &#39;kRegular&#39; backup of the Run. This may be true even if the scheduled backup type is &#39;kRegular&#39;. This will happen when this run corresponds to the first backup run of the Job or if no previous snapshot information is found..</param>
 /// <param name="numRestarts">Specifies the number of times the the task was restarted because of the changes on the backup source host..</param>
 /// <param name="parentSourceId">Specifies the id of the registered Protection Source that is the parent of the Objects that are protected by this Job Run..</param>
 /// <param name="quiesced">Specifies if app-consistent snapshot was captured. This field is set to true, if an app-consistent snapshot was taken by quiescing applications and the file system before taking a backup..</param>
 /// <param name="slaViolated">Specifies if the SLA was violated for the Job Run. This field is set to true, if time to complete the Job Run is longer than the SLA specified. This field is populated when the status is set to &#39;kSuccess&#39; or &#39;kFailure&#39;..</param>
 /// <param name="source">Specifies the source object to protect..</param>
 /// <param name="stats">Specifies the stats of the Backup Run task for the Protection Source..</param>
 /// <param name="status">Specifies the status of the source object being protected. &#39;kAccepted&#39; indicates the task is queued to run but not yet running. &#39;kRunning&#39; indicates the task is running. &#39;kCanceling&#39; indicates a request to cancel the task has occurred but the task is not yet canceled. &#39;kCanceled&#39; indicates the task has been canceled. &#39;kSuccess&#39; indicates the task was successful. &#39;kFailure&#39; indicates the task failed..</param>
 /// <param name="warnings">Specifies the warnings that occurred (if any) while running this task..</param>
 public SourceBackupStatus(SnapshotInfo currentSnapshotInfo = default(SnapshotInfo), string error = default(string), bool?isFullBackup = default(bool?), int?numRestarts = default(int?), long?parentSourceId = default(long?), bool?quiesced = default(bool?), bool?slaViolated = default(bool?), ProtectionSource source = default(ProtectionSource), BackupSourceStats stats = default(BackupSourceStats), StatusEnum?status = default(StatusEnum?), List <string> warnings = default(List <string>))
 {
     this.CurrentSnapshotInfo = currentSnapshotInfo;
     this.Error          = error;
     this.IsFullBackup   = isFullBackup;
     this.NumRestarts    = numRestarts;
     this.ParentSourceId = parentSourceId;
     this.Quiesced       = quiesced;
     this.SlaViolated    = slaViolated;
     this.Source         = source;
     this.Stats          = stats;
     this.Status         = status;
     this.Warnings       = warnings;
 }
Example #4
0
 /// <summary>
 /// Initializes a new instance of the <see cref="ProtectedVmInfo" /> class.
 /// </summary>
 /// <param name="protectionJobs">protectionJobs.</param>
 /// <param name="protectionPolicies">protectionPolicies.</param>
 /// <param name="protectionSource">Specifies a VM that is being protected on the Cohesity Cluster..</param>
 /// <param name="stats">stats.</param>
 public ProtectedVmInfo(List <ProtectionJob> protectionJobs = default(List <ProtectionJob>), List <ProtectionPolicy> protectionPolicies = default(List <ProtectionPolicy>), ProtectionSource protectionSource = default(ProtectionSource), ProtectionSummaryInformationOfARegisteredProtectionSourceTreeOrtheCohesityCluster1 stats = default(ProtectionSummaryInformationOfARegisteredProtectionSourceTreeOrtheCohesityCluster1))
 {
     this.ProtectionJobs     = protectionJobs;
     this.ProtectionPolicies = protectionPolicies;
     this.ProtectionSource   = protectionSource;
     this.Stats = stats;
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="RegisteredApplicationServer" /> class.
 /// </summary>
 /// <param name="applicationServer">applicationServer.</param>
 /// <param name="registeredProtectionSource">registeredProtectionSource.</param>
 public RegisteredApplicationServer(ApplicationServerAndTheSubtreesBelowThem_ applicationServer = default(ApplicationServerAndTheSubtreesBelowThem_), ProtectionSource registeredProtectionSource = default(ProtectionSource))
 {
     this.ApplicationServer          = applicationServer;
     this.RegisteredProtectionSource = registeredProtectionSource;
 }
Example #6
0
 /// <summary>
 /// Initializes a new instance of the <see cref="ApplicationServerAndTheSubtreesBelowThem_" /> class.
 /// </summary>
 /// <param name="applicationNodes">Specifies the child subtree used to store additional application-level Objects. Different environments use the subtree to store application-level information. For example for SQL Server, this subtree stores the SQL Server instances running on a VM..</param>
 /// <param name="logicalSize">Specifies the logical size of the data in bytes for the Object on this node. Presence of this field indicates this node is a leaf node..</param>
 /// <param name="nodes">Specifies children of the current node in the Protection Sources hierarchy. When representing Objects in memory, the entire Object subtree hierarchy is represented. You can use this subtree to navigate down the Object hierarchy..</param>
 /// <param name="protectedSourcesSummary">Specifies aggregated information about all the child Objects of this node that are currently protected by a Protection Job. There is one entry for each environment that is being backed up. The aggregated information for the Object hierarchy&#39;s environment will be available at the 0th index of the vector..</param>
 /// <param name="protectionSource">protectionSource.</param>
 /// <param name="registrationInfo">registrationInfo.</param>
 /// <param name="unprotectedSourcesSummary">Specifies aggregated information about all the child Objects of this node that are not protected by any Protection Jobs. The aggregated information for the Objects hierarchy&#39;s environment will be available at the 0th index of the vector. NOTE: This list includes Objects that were protected at some point in the past but are no longer actively protected. Snapshots containing these Objects may even exist on the Cohesity Cluster and be available to recover from..</param>
 public ApplicationServerAndTheSubtreesBelowThem_(List <ProtectionSourceNode> applicationNodes = default(List <ProtectionSourceNode>), long?logicalSize = default(long?), List <ProtectionSourceNode> nodes = default(List <ProtectionSourceNode>), List <AggregatedSubtreeInfo> protectedSourcesSummary = default(List <AggregatedSubtreeInfo>), ProtectionSource protectionSource = default(ProtectionSource), RegisteredSourceInfo_ registrationInfo = default(RegisteredSourceInfo_), List <AggregatedSubtreeInfo> unprotectedSourcesSummary = default(List <AggregatedSubtreeInfo>))
 {
     this.ApplicationNodes          = applicationNodes;
     this.LogicalSize               = logicalSize;
     this.Nodes                     = nodes;
     this.ProtectedSourcesSummary   = protectedSourcesSummary;
     this.ProtectionSource          = protectionSource;
     this.RegistrationInfo          = registrationInfo;
     this.UnprotectedSourcesSummary = unprotectedSourcesSummary;
 }
Example #7
0
 /// <summary>
 /// Initializes a new instance of the <see cref="AagAndDatabases" /> class.
 /// </summary>
 /// <param name="aag">Specifies an AAG Protection Source object on a VM or a Physical host..</param>
 /// <param name="databases">databases.</param>
 public AagAndDatabases(ProtectionSource aag = default(ProtectionSource), List <ProtectionSource> databases = default(List <ProtectionSource>))
 {
     this.Aag       = aag;
     this.Databases = databases;
 }