Esempio n. 1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="ProtectionSourcesJobRunsReportElement" /> class.
 /// </summary>
 /// <param name="protectionSource">Specifies the leaf Protection Source Object such as a VM..</param>
 /// <param name="snapshotsInfo">Array of Snapshots  Specifies the Snapshots that contain backups of the Protection Source Object..</param>
 public ProtectionSourcesJobRunsReportElement(ProtectionSource protectionSource = default(ProtectionSource), List <ProtectionSourceSnapshotInformation> snapshotsInfo = default(List <ProtectionSourceSnapshotInformation>))
 {
     this.ProtectionSource = protectionSource;
     this.SnapshotsInfo    = snapshotsInfo;
     this.ProtectionSource = protectionSource;
     this.SnapshotsInfo    = snapshotsInfo;
 }
 /// <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">source.</param>
 /// <param name="stats">stats.</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.Status             = status;
     this.TaskEndTimeUsecs   = taskEndTimeUsecs;
     this.TaskStartTimeUsecs = taskStartTimeUsecs;
     this.Error              = error;
     this.Source             = source;
     this.Stats              = stats;
     this.Status             = status;
     this.TaskEndTimeUsecs   = taskEndTimeUsecs;
     this.TaskStartTimeUsecs = taskStartTimeUsecs;
 }
Esempio n. 3
0
 /// <summary>
 /// Initializes a new instance of the <see cref="RestoreInfo" /> class.
 /// </summary>
 /// <param name="archivalTarget">archivalTarget.</param>
 /// <param name="attemptNumber">Specifies the attempt number..</param>
 /// <param name="cloudDeployTarget">cloudDeployTarget.</param>
 /// <param name="jobRunId">Specifies the id of the job run..</param>
 /// <param name="jobUid">jobUid.</param>
 /// <param name="parentSource">parentSource.</param>
 /// <param name="restoreTimeUsecs">This field specifies the time in to which the object needs to be restored. This filed is only applicable when object is being backeup using CDP feature..</param>
 /// <param name="snapshotRelativeDirPath">Specifies the relative path of the snapshot directory..</param>
 /// <param name="source">source.</param>
 /// <param name="startTimeUsecs">Specifies the start time specified as a Unix epoch Timestamp (in microseconds)..</param>
 /// <param name="viewName">Specifies the name of the view..</param>
 /// <param name="vmHadIndependentDisks">Specifies if the VM had independent disks..</param>
 public RestoreInfo(ArchivalExternalTarget archivalTarget = default(ArchivalExternalTarget), int?attemptNumber = default(int?), CloudDeployTargetDetails cloudDeployTarget = default(CloudDeployTargetDetails), long?jobRunId = default(long?), UniversalId jobUid = default(UniversalId), ProtectionSource parentSource = default(ProtectionSource), long?restoreTimeUsecs = default(long?), string snapshotRelativeDirPath = default(string), ProtectionSource source = default(ProtectionSource), long?startTimeUsecs = default(long?), string viewName = default(string), bool?vmHadIndependentDisks = default(bool?))
 {
     this.AttemptNumber           = attemptNumber;
     this.JobRunId                = jobRunId;
     this.RestoreTimeUsecs        = restoreTimeUsecs;
     this.SnapshotRelativeDirPath = snapshotRelativeDirPath;
     this.StartTimeUsecs          = startTimeUsecs;
     this.ViewName                = viewName;
     this.VmHadIndependentDisks   = vmHadIndependentDisks;
     this.ArchivalTarget          = archivalTarget;
     this.AttemptNumber           = attemptNumber;
     this.CloudDeployTarget       = cloudDeployTarget;
     this.JobRunId                = jobRunId;
     this.JobUid                  = jobUid;
     this.ParentSource            = parentSource;
     this.RestoreTimeUsecs        = restoreTimeUsecs;
     this.SnapshotRelativeDirPath = snapshotRelativeDirPath;
     this.Source                  = source;
     this.StartTimeUsecs          = startTimeUsecs;
     this.ViewName                = viewName;
     this.VmHadIndependentDisks   = vmHadIndependentDisks;
 }
Esempio n. 4
0
 /// <summary>
 /// Initializes a new instance of the <see cref="OutlookRestoreParameters" /> class.
 /// </summary>
 /// <param name="outlookMailboxList">Specifies the list of mailboxes to be restored..</param>
 /// <param name="targetFolderPath">Specifies the target folder path to restore the mailboxes. This will always be specified whether the target mailbox is the original or an alternate one..</param>
 /// <param name="targetMailbox">targetMailbox.</param>
 public OutlookRestoreParameters(List <OutlookMailbox> outlookMailboxList = default(List <OutlookMailbox>), string targetFolderPath = default(string), ProtectionSource targetMailbox = default(ProtectionSource))
 {
     this.OutlookMailboxList = outlookMailboxList;
     this.TargetFolderPath   = targetFolderPath;
     this.OutlookMailboxList = outlookMailboxList;
     this.TargetFolderPath   = targetFolderPath;
     this.TargetMailbox      = targetMailbox;
 }
Esempio n. 5
0
 /// <summary>
 /// Initializes a new instance of the <see cref="VirtualDiskMappingResponse" /> class.
 /// </summary>
 /// <param name="diskToOverwrite">diskToOverwrite.</param>
 /// <param name="sourceDisk">sourceDisk.</param>
 /// <param name="targetLocation">targetLocation.</param>
 public VirtualDiskMappingResponse(VirtualDiskIdInformation diskToOverwrite = default(VirtualDiskIdInformation), VirtualDiskIdInformation sourceDisk = default(VirtualDiskIdInformation), ProtectionSource targetLocation = default(ProtectionSource))
 {
     this.DiskToOverwrite = diskToOverwrite;
     this.SourceDisk      = sourceDisk;
     this.TargetLocation  = targetLocation;
 }
Esempio n. 6
0
 /// <summary>
 /// Initializes a new instance of the <see cref="FileSearchResult" /> class.
 /// </summary>
 /// <param name="adObjectMetaData">adObjectMetaData.</param>
 /// <param name="documentType">Specifies the inferred document type..</param>
 /// <param name="emailMetaData">emailMetaData.</param>
 /// <param name="fileVersions">Array of File Versions.  Specifies the different snapshot versions of a file or folder that were captured at different times..</param>
 /// <param name="filename">Specifies the name of the found file or folder..</param>
 /// <param name="isFolder">Specifies if the found item is a folder. If true, the found item is a folder..</param>
 /// <param name="jobId">Specifies the Job id for the Protection Job that is currently associated with object that contains the backed up file or folder. If the file or folder was backed up on current Cohesity Cluster, this field contains the id for the Job that captured the object that contains the file or folder. If the file or folder was backed up on a Primary Cluster and replicated to this Cohesity Cluster, a new Inactive Job is created, the object that contains the file or folder is now associated with new Inactive Job, and this field contains the id of the new Inactive Job..</param>
 /// <param name="jobUid">Specifies the universal id of the Protection Job that backed up the object that contains the file or folder..</param>
 /// <param name="oneDriveDocumentMetadata">oneDriveDocumentMetadata.</param>
 /// <param name="protectionSource">protectionSource.</param>
 /// <param name="registeredSourceId">Specifies the id of the top-level registered source (such as a vCenter Server) where the source object that contains the the file or folder is stored..</param>
 /// <param name="snapshotTags">Snapshot tags present on this document.</param>
 /// <param name="sourceId">Specifies the source id of the object that contains the file or folder..</param>
 /// <param name="tags">Tags present on this document..</param>
 /// <param name="tagsToSnapshotsMap">Mapping from snapshot tags to..</param>
 /// <param name="type">Specifies the type of the file document such as KDirectory, kFile, etc..</param>
 /// <param name="viewBoxId">Specifies the id of the Domain (View Box) where the source object that contains the file or folder is stored..</param>
 public FileSearchResult(AdObjectMetaData adObjectMetaData = default(AdObjectMetaData), string documentType = default(string), EmailMetaData emailMetaData = default(EmailMetaData), List <FileVersion> fileVersions = default(List <FileVersion>), string filename = default(string), bool?isFolder = default(bool?), long?jobId = default(long?), UniversalId jobUid = default(UniversalId), OneDriveDocumentMetadata oneDriveDocumentMetadata = default(OneDriveDocumentMetadata), ProtectionSource protectionSource = default(ProtectionSource), long?registeredSourceId = default(long?), List <string> snapshotTags = default(List <string>), long?sourceId = default(long?), List <string> tags = default(List <string>), Dictionary <string, List <long> > tagsToSnapshotsMap = default(Dictionary <string, List <long> >), TypeEnum?type = default(TypeEnum?), long?viewBoxId = default(long?))
 {
     this.DocumentType       = documentType;
     this.FileVersions       = fileVersions;
     this.Filename           = filename;
     this.IsFolder           = isFolder;
     this.JobId              = jobId;
     this.JobUid             = jobUid;
     this.RegisteredSourceId = registeredSourceId;
     this.SnapshotTags       = snapshotTags;
     this.SourceId           = sourceId;
     this.Tags = tags;
     this.TagsToSnapshotsMap = tagsToSnapshotsMap;
     this.Type                     = type;
     this.ViewBoxId                = viewBoxId;
     this.AdObjectMetaData         = adObjectMetaData;
     this.DocumentType             = documentType;
     this.EmailMetaData            = emailMetaData;
     this.FileVersions             = fileVersions;
     this.Filename                 = filename;
     this.IsFolder                 = isFolder;
     this.JobId                    = jobId;
     this.JobUid                   = jobUid;
     this.OneDriveDocumentMetadata = oneDriveDocumentMetadata;
     this.ProtectionSource         = protectionSource;
     this.RegisteredSourceId       = registeredSourceId;
     this.SnapshotTags             = snapshotTags;
     this.SourceId                 = sourceId;
     this.Tags                     = tags;
     this.TagsToSnapshotsMap       = tagsToSnapshotsMap;
     this.Type                     = type;
     this.ViewBoxId                = viewBoxId;
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="RegisteredApplicationServer" /> class.
 /// </summary>
 /// <param name="applicationServer">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="registeredProtectionSource">Specifies the Protection Source like a VM or Physical Server that registered the Application Server..</param>
 public RegisteredApplicationServer(ProtectionSourceNode applicationServer = default(ProtectionSourceNode), ProtectionSource registeredProtectionSource = default(ProtectionSource))
 {
     this.ApplicationServer          = applicationServer;
     this.RegisteredProtectionSource = registeredProtectionSource;
     this.ApplicationServer          = applicationServer;
     this.RegisteredProtectionSource = registeredProtectionSource;
 }
Esempio n. 8
0
 /// <summary>
 /// Initializes a new instance of the <see cref="ProtectionSourceResponse" /> class.
 /// </summary>
 /// <param name="jobs">Specifies the list of Protection Jobs that protect the object..</param>
 /// <param name="logicalSizeInBytes">Specifies the logical size of Protection Source in bytes..</param>
 /// <param name="parentSource">parentSource.</param>
 /// <param name="protectionSourceUidList">Specifies the list of universal ids of the Protection Source..</param>
 /// <param name="source">source.</param>
 /// <param name="uuid">Specifies the unique id of the Protection Source..</param>
 public ProtectionSourceResponse(List <ProtectionJobSummary> jobs = default(List <ProtectionJobSummary>), long?logicalSizeInBytes = default(long?), ProtectionSource parentSource = default(ProtectionSource), List <ProtectionSourceUid> protectionSourceUidList = default(List <ProtectionSourceUid>), ProtectionSource source = default(ProtectionSource), string uuid = default(string))
 {
     this.Jobs = jobs;
     this.LogicalSizeInBytes      = logicalSizeInBytes;
     this.ProtectionSourceUidList = protectionSourceUidList;
     this.Uuid = uuid;
     this.Jobs = jobs;
     this.LogicalSizeInBytes      = logicalSizeInBytes;
     this.ParentSource            = parentSource;
     this.ProtectionSourceUidList = protectionSourceUidList;
     this.Source = source;
     this.Uuid   = uuid;
 }
Esempio n. 9
0
 /// <summary>
 /// Initializes a new instance of the <see cref="VirtualDiskInformation" /> class.
 /// </summary>
 /// <param name="busNumber">Specifies the Id of the controller bus that controls the disk..</param>
 /// <param name="controllerType">Specifies the controller type like SCSI, or IDE etc..</param>
 /// <param name="diskId">Specifies original disk id. This is sufficient to identify the disk information, but in some scenarios, user&#39;s may specify the controller option instead..</param>
 /// <param name="diskLocation">diskLocation.</param>
 /// <param name="diskSizeInBytes">Specifies size of the virtual disk in bytes..</param>
 /// <param name="filePath">Specifies the original file path if applicable..</param>
 /// <param name="mountPoints">Specifies the list of mount points..</param>
 /// <param name="unitNumber">Specifies the disk file name. This is the VMDK name and not the flat file name..</param>
 public VirtualDiskInformation(long?busNumber = default(long?), string controllerType = default(string), string diskId = default(string), ProtectionSource diskLocation = default(ProtectionSource), long?diskSizeInBytes = default(long?), string filePath = default(string), List <string> mountPoints = default(List <string>), long?unitNumber = default(long?))
 {
     this.BusNumber       = busNumber;
     this.ControllerType  = controllerType;
     this.DiskId          = diskId;
     this.DiskSizeInBytes = diskSizeInBytes;
     this.FilePath        = filePath;
     this.MountPoints     = mountPoints;
     this.UnitNumber      = unitNumber;
     this.BusNumber       = busNumber;
     this.ControllerType  = controllerType;
     this.DiskId          = diskId;
     this.DiskLocation    = diskLocation;
     this.DiskSizeInBytes = diskSizeInBytes;
     this.FilePath        = filePath;
     this.MountPoints     = mountPoints;
     this.UnitNumber      = unitNumber;
 }
Esempio n. 10
0
 /// <summary>
 /// Initializes a new instance of the <see cref="ProtectedSourceSummary" /> class.
 /// </summary>
 /// <param name="backupRun">backupRun.</param>
 /// <param name="copyRuns">Specifies details about the Copy tasks of the Job Run. A Copy task copies the captured snapshots to an external target or a Remote Cohesity Cluster..</param>
 /// <param name="isPaused">Specifies the status of the backup job..</param>
 /// <param name="nextProtectionRunTimeUsecs">Specifies the time at which the next Protection Run is scheduled for the given Protection Source in Unix epoch Time (microseconds)..</param>
 /// <param name="protectedSourceUid">protectedSourceUid.</param>
 /// <param name="protectionSource">protectionSource.</param>
 /// <param name="sourceParameters">Specifies additional special settings for a single Protected Source..</param>
 public ProtectedSourceSummary(BackupRun backupRun = default(BackupRun), List <CopyRun> copyRuns = default(List <CopyRun>), bool?isPaused = default(bool?), long?nextProtectionRunTimeUsecs = default(long?), UniversalId protectedSourceUid = default(UniversalId), ProtectionSource protectionSource = default(ProtectionSource), List <SourceSpecialParameter> sourceParameters = default(List <SourceSpecialParameter>))
 {
     this.CopyRuns = copyRuns;
     this.IsPaused = isPaused;
     this.NextProtectionRunTimeUsecs = nextProtectionRunTimeUsecs;
     this.SourceParameters           = sourceParameters;
     this.BackupRun = backupRun;
     this.CopyRuns  = copyRuns;
     this.IsPaused  = isPaused;
     this.NextProtectionRunTimeUsecs = nextProtectionRunTimeUsecs;
     this.ProtectedSourceUid         = protectedSourceUid;
     this.ProtectionSource           = protectionSource;
     this.SourceParameters           = sourceParameters;
 }
Esempio n. 11
0
 /// <summary>
 /// Initializes a new instance of the <see cref="ProtectionObjectSummary" /> class.
 /// </summary>
 /// <param name="latestArchivalSnapshotTimeUsecs">Specifies the Unix epoch Timestamp (in microseconds) of the latest Archival Snapshot..</param>
 /// <param name="latestLocalSnapshotTimeUsecs">Specifies the Unix epoch Timestamp (in microseconds) of the latest Local Snapshot..</param>
 /// <param name="latestReplicationSnapshotTimeUsecs">Specifies the Unix epoch Timestamp (in microseconds) of the latest Replication Snapshot..</param>
 /// <param name="parentProtectionSource">parentProtectionSource.</param>
 /// <param name="protectionJobs">Returns the list of Protection Jobs with summary Information..</param>
 /// <param name="protectionSource">Specifies the leaf Protection Source Object such as a VM..</param>
 /// <param name="rpoPolicies">Specifies the id of the RPO policy protecting this object..</param>
 /// <param name="totalArchivalSnapshots">Specifies the total number of Archival Snapshots..</param>
 /// <param name="totalLocalSnapshots">Specifies the total number of Local Snapshots..</param>
 /// <param name="totalReplicationSnapshots">Specifies the total number of Replication Snapshots..</param>
 public ProtectionObjectSummary(long?latestArchivalSnapshotTimeUsecs = default(long?), long?latestLocalSnapshotTimeUsecs = default(long?), long?latestReplicationSnapshotTimeUsecs = default(long?), ProtectionSource parentProtectionSource = default(ProtectionSource), List <ProtectionRunInstance> protectionJobs = default(List <ProtectionRunInstance>), ProtectionSource protectionSource = default(ProtectionSource), List <ProtectionPolicy> rpoPolicies = default(List <ProtectionPolicy>), int?totalArchivalSnapshots = default(int?), int?totalLocalSnapshots = default(int?), int?totalReplicationSnapshots = default(int?))
 {
     this.LatestArchivalSnapshotTimeUsecs    = latestArchivalSnapshotTimeUsecs;
     this.LatestLocalSnapshotTimeUsecs       = latestLocalSnapshotTimeUsecs;
     this.LatestReplicationSnapshotTimeUsecs = latestReplicationSnapshotTimeUsecs;
     this.ProtectionJobs                     = protectionJobs;
     this.ProtectionSource                   = protectionSource;
     this.RpoPolicies                        = rpoPolicies;
     this.TotalArchivalSnapshots             = totalArchivalSnapshots;
     this.TotalLocalSnapshots                = totalLocalSnapshots;
     this.TotalReplicationSnapshots          = totalReplicationSnapshots;
     this.LatestArchivalSnapshotTimeUsecs    = latestArchivalSnapshotTimeUsecs;
     this.LatestLocalSnapshotTimeUsecs       = latestLocalSnapshotTimeUsecs;
     this.LatestReplicationSnapshotTimeUsecs = latestReplicationSnapshotTimeUsecs;
     this.ParentProtectionSource             = parentProtectionSource;
     this.ProtectionJobs                     = protectionJobs;
     this.ProtectionSource                   = protectionSource;
     this.RpoPolicies                        = rpoPolicies;
     this.TotalArchivalSnapshots             = totalArchivalSnapshots;
     this.TotalLocalSnapshots                = totalLocalSnapshots;
     this.TotalReplicationSnapshots          = totalReplicationSnapshots;
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="ProtectionSourceNode" /> class.
 /// </summary>
 /// <param name="applicationNodes">Array of Child Subtrees.  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="entityPaginationParameters">entityPaginationParameters.</param>
 /// <param name="entityPermissionInfo">entityPermissionInfo.</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">Array of Child 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">Array of Protected Objects.  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">Specifies the Protection Source for the current node..</param>
 /// <param name="registrationInfo">Specifies registration information for a root node in a Protection Sources tree. A root node represents a registered Source on the Cohesity Cluster, such as a vCenter Server..</param>
 /// <param name="unprotectedSourcesSummary">Array of Unprotected Sources.  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 ProtectionSourceNode(List <ProtectionSourceNode> applicationNodes = default(List <ProtectionSourceNode>), PaginationParameters entityPaginationParameters = default(PaginationParameters), EntityPermissionInformation entityPermissionInfo = default(EntityPermissionInformation), 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;
     this.ApplicationNodes           = applicationNodes;
     this.EntityPaginationParameters = entityPaginationParameters;
     this.EntityPermissionInfo       = entityPermissionInfo;
     this.LogicalSize                = logicalSize;
     this.Nodes                      = nodes;
     this.ProtectedSourcesSummary    = protectedSourcesSummary;
     this.ProtectionSource           = protectionSource;
     this.RegistrationInfo           = registrationInfo;
     this.UnprotectedSourcesSummary  = unprotectedSourcesSummary;
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="ProtectionSourcesSummaryStats" /> class.
 /// </summary>
 /// <param name="firstFailedRunTimeUsecs">Specifies the start time of the first failed Job Run protecting this Protection Source Object. The time is specified as a Unix epoch Timestamp (in microseconds)..</param>
 /// <param name="firstSuccessfulRunTimeUsecs">Specifies the start time of the first successful Job Run protecting this Protection Source Object. The time is specified as a Unix epoch Timestamp (in microseconds)..</param>
 /// <param name="lastFailedRunTimeUsecs">Specifies the start time of the last failed Job Run protecting this Protection Source Object. The time is specified as a Unix epoch Timestamp (in microseconds)..</param>
 /// <param name="lastRunEndTimeUsecs">Specifies the end time of the last Job Run protecting this Protection Source Object. The time is specified as a Unix epoch Timestamp (in microseconds)..</param>
 /// <param name="lastRunErrorMsg">Specifies the error message associated with last run, if the last run has failed..</param>
 /// <param name="lastRunStartTimeUsecs">Specifies the start time of the last Job Run protecting this Protection Source Object. The time is specified as a Unix epoch Timestamp (in microseconds)..</param>
 /// <param name="lastRunStatus">Specifies the Job Run status of the last Job Run protecting this Protection Source Object. &#39;kSuccess&#39; indicates that the Job Run was successful. &#39;kRunning&#39; indicates that the Job Run is currently running. &#39;kWarning&#39; indicates that the Job Run was successful but warnings were issued. &#39;kCancelled&#39; indicates that the Job Run was canceled. &#39;kError&#39; indicates the Job Run encountered an error and did not run to completion..</param>
 /// <param name="lastRunType">Specifies the Job Run type of the last Job Run protecting this Protection Source Object. &#39;kRegular&#39; indicates an incremental (CBT) backup. Incremental backups utilizing CBT (if supported) are captured of the target protection objects. The first run of a kRegular schedule captures all the blocks. &#39;kFull&#39; indicates a full (no CBT) backup. A complete backup (all blocks) of the target protection objects are always captured and Change Block Tracking (CBT) is not utilized. &#39;kLog&#39; indicates a Database Log backup. Capture the database transaction logs to allow rolling back to a specific point in time. &#39;kSystem&#39; indicates system volume backup. It produces an image for bare metal recovery..</param>
 /// <param name="lastSuccessfulRunTimeUsecs">Specifies the start time of the last successful Job Run protecting this Protection Source Object. The time is specified as a Unix epoch Timestamp (in microseconds)..</param>
 /// <param name="numDataReadBytes">Specifies the total number of bytes read while protecting this Protection Source Object..</param>
 /// <param name="numErrors">Specifies the total number of errors reported during Job Runs of this Protection Source Object..</param>
 /// <param name="numLogicalBytesProtected">Specifies the total logical bytes protected for this Protection Source Object. The logical size is when the data is fully hydrated or expanded..</param>
 /// <param name="numSnapshots">Specifies the total number of Snapshots that are backing up this Protection Source Object..</param>
 /// <param name="numSuccessRuns">Specifies the total number of successful Job Runs protecting this Protection Source Object..</param>
 /// <param name="numWarnings">Specifies the total number of warnings reported during Job Runs of this Protection Source Object..</param>
 /// <param name="protectionSource">Specifies the leaf Protection Source Object (such as VM). Snapshot summary statistics are reported for this Protection Source Object..</param>
 /// <param name="registeredSource">Specifies the name of the Registered Source that is the top level parent of the specified Protection Source Object..</param>
 /// <param name="tenants">Specifies basic information about tenants having access to the protection job..</param>
 public ProtectionSourcesSummaryStats(long?firstFailedRunTimeUsecs = default(long?), long?firstSuccessfulRunTimeUsecs = default(long?), long?lastFailedRunTimeUsecs = default(long?), long?lastRunEndTimeUsecs = default(long?), string lastRunErrorMsg = default(string), long?lastRunStartTimeUsecs = default(long?), LastRunStatusEnum?lastRunStatus = default(LastRunStatusEnum?), LastRunTypeEnum?lastRunType = default(LastRunTypeEnum?), long?lastSuccessfulRunTimeUsecs = default(long?), long?numDataReadBytes = default(long?), int?numErrors = default(int?), long?numLogicalBytesProtected = default(long?), int?numSnapshots = default(int?), int?numSuccessRuns = default(int?), int?numWarnings = default(int?), ProtectionSource protectionSource = default(ProtectionSource), string registeredSource = default(string), List <TenantInfo> tenants = default(List <TenantInfo>))
 {
     this.FirstFailedRunTimeUsecs     = firstFailedRunTimeUsecs;
     this.FirstSuccessfulRunTimeUsecs = firstSuccessfulRunTimeUsecs;
     this.LastFailedRunTimeUsecs      = lastFailedRunTimeUsecs;
     this.LastRunEndTimeUsecs         = lastRunEndTimeUsecs;
     this.LastRunErrorMsg             = lastRunErrorMsg;
     this.LastRunStartTimeUsecs       = lastRunStartTimeUsecs;
     this.LastRunStatus = lastRunStatus;
     this.LastRunType   = lastRunType;
     this.LastSuccessfulRunTimeUsecs = lastSuccessfulRunTimeUsecs;
     this.NumDataReadBytes           = numDataReadBytes;
     this.NumErrors = numErrors;
     this.NumLogicalBytesProtected = numLogicalBytesProtected;
     this.NumSnapshots             = numSnapshots;
     this.NumSuccessRuns           = numSuccessRuns;
     this.NumWarnings                 = numWarnings;
     this.ProtectionSource            = protectionSource;
     this.RegisteredSource            = registeredSource;
     this.Tenants                     = tenants;
     this.FirstFailedRunTimeUsecs     = firstFailedRunTimeUsecs;
     this.FirstSuccessfulRunTimeUsecs = firstSuccessfulRunTimeUsecs;
     this.LastFailedRunTimeUsecs      = lastFailedRunTimeUsecs;
     this.LastRunEndTimeUsecs         = lastRunEndTimeUsecs;
     this.LastRunErrorMsg             = lastRunErrorMsg;
     this.LastRunStartTimeUsecs       = lastRunStartTimeUsecs;
     this.LastRunStatus               = lastRunStatus;
     this.LastRunType                 = lastRunType;
     this.LastSuccessfulRunTimeUsecs  = lastSuccessfulRunTimeUsecs;
     this.NumDataReadBytes            = numDataReadBytes;
     this.NumErrors                   = numErrors;
     this.NumLogicalBytesProtected    = numLogicalBytesProtected;
     this.NumSnapshots                = numSnapshots;
     this.NumSuccessRuns              = numSuccessRuns;
     this.NumWarnings                 = numWarnings;
     this.ProtectionSource            = protectionSource;
     this.RegisteredSource            = registeredSource;
     this.Tenants                     = tenants;
 }
Esempio n. 14
0
 /// <summary>
 /// Initializes a new instance of the <see cref="OneDriveRestoreParameters" /> class.
 /// </summary>
 /// <param name="driveOwnerList">Specifies the list of Drive owners which are to be restored along with the details of their drives..</param>
 /// <param name="restoreToOriginalDrive">Specifies whether the objects are to be restored to the original drive..</param>
 /// <param name="targetDriveId">Specifies the Drive Id of the target user where the OneDrive items are to be recovered..</param>
 /// <param name="targetFolderPath">Specifies the target folder path within the drive where recovery has to be done..</param>
 /// <param name="targetUser">targetUser.</param>
 public OneDriveRestoreParameters(List <OneDriveOwner> driveOwnerList = default(List <OneDriveOwner>), bool?restoreToOriginalDrive = default(bool?), string targetDriveId = default(string), string targetFolderPath = default(string), ProtectionSource targetUser = default(ProtectionSource))
 {
     this.DriveOwnerList         = driveOwnerList;
     this.RestoreToOriginalDrive = restoreToOriginalDrive;
     this.TargetDriveId          = targetDriveId;
     this.TargetFolderPath       = targetFolderPath;
     this.DriveOwnerList         = driveOwnerList;
     this.RestoreToOriginalDrive = restoreToOriginalDrive;
     this.TargetDriveId          = targetDriveId;
     this.TargetFolderPath       = targetFolderPath;
     this.TargetUser             = targetUser;
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="ProtectionSourceTreeInfo" /> class.
 /// </summary>
 /// <param name="applications">Array of applications hierarchy registered on this node.  Specifies the application type and the list of instances of the application objects. For example for SQL Server, this list provides the SQL Server instances running on a VM or a Physical Server..</param>
 /// <param name="entityPermissionInfo">entityPermissionInfo.</param>
 /// <param name="logicalSizeBytes">Specifies the logical size of the Protection Source in bytes..</param>
 /// <param name="registrationInfo">Specifies registration information for a root node in a Protection Sources tree. A root node represents a registered Source on the Cohesity Cluster, such as a vCenter Server..</param>
 /// <param name="rootNode">Specifies the Protection Source for the root node of the Protection Source tree..</param>
 /// <param name="stats">Specifies the stats of protection for a Protection Source Tree..</param>
 /// <param name="statsByEnv">Specifies the breakdown of the stats of protection by environment. overrideDescription: true.</param>
 public ProtectionSourceTreeInfo(List <ApplicationInfo> applications = default(List <ApplicationInfo>), EntityPermissionInformation entityPermissionInfo = default(EntityPermissionInformation), long?logicalSizeBytes = default(long?), RegisteredSourceInfo registrationInfo = default(RegisteredSourceInfo), ProtectionSource rootNode = default(ProtectionSource), ProtectionSummary stats = default(ProtectionSummary), List <ProtectionSummaryByEnv> statsByEnv = default(List <ProtectionSummaryByEnv>))
 {
     this.Applications         = applications;
     this.LogicalSizeBytes     = logicalSizeBytes;
     this.RegistrationInfo     = registrationInfo;
     this.RootNode             = rootNode;
     this.Stats                = stats;
     this.StatsByEnv           = statsByEnv;
     this.Applications         = applications;
     this.EntityPermissionInfo = entityPermissionInfo;
     this.LogicalSizeBytes     = logicalSizeBytes;
     this.RegistrationInfo     = registrationInfo;
     this.RootNode             = rootNode;
     this.Stats                = stats;
     this.StatsByEnv           = statsByEnv;
 }
Esempio n. 16
0
 /// <summary>
 /// Initializes a new instance of the <see cref="AagAndDatabases" /> class.
 /// </summary>
 /// <param name="aag">aag.</param>
 /// <param name="databases">Specifies databases found that are members of the AAG..</param>
 public AagAndDatabases(ProtectionSource aag = default(ProtectionSource), List <ProtectionSource> databases = default(List <ProtectionSource>))
 {
     this.Databases = databases;
     this.Aag       = aag;
     this.Databases = databases;
 }
Esempio n. 17
0
 /// <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">Specifies the globally unique id of the Protection Job that backed up this object. This id is unique across Cohesity Clusters. Even if this object is replicated to a Remote Cohesity Cluster and the object is associated with a new Job, the value specified in this field does not change..</param>
 /// <param name="objectName">Specifies the primary name of the object..</param>
 /// <param name="osType">Specifies the inferred OS type..</param>
 /// <param name="registeredSource">registeredSource.</param>
 /// <param name="snapshottedSource">snapshottedSource.</param>
 /// <param name="versions">Array of Snapshots.  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), UniversalId jobUid = default(UniversalId), 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.Versions           = versions;
     this.ViewBoxId          = viewBoxId;
     this.ViewName           = viewName;
     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;
 }
Esempio n. 18
0
 /// <summary>
 /// Initializes a new instance of the <see cref="FileSearchResult" /> class.
 /// </summary>
 /// <param name="adObjectMetaData">adObjectMetaData.</param>
 /// <param name="documentType">Specifies the inferred document type..</param>
 /// <param name="emailMetaData">emailMetaData.</param>
 /// <param name="fileVersions">Array of File Versions.  Specifies the different snapshot versions of a file or folder that were captured at different times..</param>
 /// <param name="filename">Specifies the name of the found file or folder..</param>
 /// <param name="isFolder">Specifies if the found item is a folder. If true, the found item is a folder..</param>
 /// <param name="jobId">Specifies the Job id for the Protection Job that is currently associated with object that contains the backed up file or folder. If the file or folder was backed up on current Cohesity Cluster, this field contains the id for the Job that captured the object that contains the file or folder. If the file or folder was backed up on a Primary Cluster and replicated to this Cohesity Cluster, a new Inactive Job is created, the object that contains the file or folder is now associated with new Inactive Job, and this field contains the id of the new Inactive Job..</param>
 /// <param name="jobUid">Specifies the universal id of the Protection Job that backed up the object that contains the file or folder..</param>
 /// <param name="protectionSource">protectionSource.</param>
 /// <param name="registeredSourceId">Specifies the id of the top-level registered source (such as a vCenter Server) where the source object that contains the the file or folder is stored..</param>
 /// <param name="sourceId">Specifies the source id of the object that contains the file or folder..</param>
 /// <param name="type">Specifies the type of the file document such as KDirectory, kFile, etc..</param>
 /// <param name="viewBoxId">Specifies the id of the Domain (View Box) where the source object that contains the file or folder is stored..</param>
 public FileSearchResult(AdObjectMetaData adObjectMetaData = default(AdObjectMetaData), string documentType = default(string), EmailMetaData emailMetaData = default(EmailMetaData), List <FileVersion> fileVersions = default(List <FileVersion>), string filename = default(string), bool?isFolder = default(bool?), long?jobId = default(long?), UniversalId jobUid = default(UniversalId), ProtectionSource protectionSource = default(ProtectionSource), long?registeredSourceId = default(long?), long?sourceId = default(long?), TypeEnum?type = default(TypeEnum?), long?viewBoxId = default(long?))
 {
     this.DocumentType       = documentType;
     this.FileVersions       = fileVersions;
     this.Filename           = filename;
     this.IsFolder           = isFolder;
     this.JobId              = jobId;
     this.JobUid             = jobUid;
     this.RegisteredSourceId = registeredSourceId;
     this.SourceId           = sourceId;
     this.Type               = type;
     this.ViewBoxId          = viewBoxId;
     this.AdObjectMetaData   = adObjectMetaData;
     this.DocumentType       = documentType;
     this.EmailMetaData      = emailMetaData;
     this.FileVersions       = fileVersions;
     this.Filename           = filename;
     this.IsFolder           = isFolder;
     this.JobId              = jobId;
     this.JobUid             = jobUid;
     this.ProtectionSource   = protectionSource;
     this.RegisteredSourceId = registeredSourceId;
     this.SourceId           = sourceId;
     this.Type               = type;
     this.ViewBoxId          = viewBoxId;
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="VirtualDiskRestoreResponse" /> class.
 /// </summary>
 /// <param name="powerOffVmBeforeRecovery">Specifies whether to power off the VM before recovering virtual disks..</param>
 /// <param name="powerOnVmAfterRecovery">Specifies whether to power on the VM after recovering virtual disks..</param>
 /// <param name="targetSource">targetSource.</param>
 /// <param name="virtualDiskMappings">Specifies the list of virtual disks mappings..</param>
 public VirtualDiskRestoreResponse(bool?powerOffVmBeforeRecovery = default(bool?), bool?powerOnVmAfterRecovery = default(bool?), ProtectionSource targetSource = default(ProtectionSource), List <VirtualDiskMappingResponse> virtualDiskMappings = default(List <VirtualDiskMappingResponse>))
 {
     this.PowerOffVmBeforeRecovery = powerOffVmBeforeRecovery;
     this.PowerOnVmAfterRecovery   = powerOnVmAfterRecovery;
     this.VirtualDiskMappings      = virtualDiskMappings;
     this.PowerOffVmBeforeRecovery = powerOffVmBeforeRecovery;
     this.PowerOnVmAfterRecovery   = powerOnVmAfterRecovery;
     this.TargetSource             = targetSource;
     this.VirtualDiskMappings      = virtualDiskMappings;
 }
Esempio n. 20
0
 /// <summary>
 /// Initializes a new instance of the <see cref="SourceBackupStatus" /> class.
 /// </summary>
 /// <param name="currentSnapshotInfo">currentSnapshotInfo.</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 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="progressMonitorTaskPath">Specifies the yoda progress monitor task path which is used to get pulse information about the source that is being backed up..</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">source.</param>
 /// <param name="stats">stats.</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">Array of 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?), string progressMonitorTaskPath = default(string), 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.Error                   = error;
     this.IsFullBackup            = isFullBackup;
     this.NumRestarts             = numRestarts;
     this.ParentSourceId          = parentSourceId;
     this.ProgressMonitorTaskPath = progressMonitorTaskPath;
     this.Quiesced                = quiesced;
     this.SlaViolated             = slaViolated;
     this.Status                  = status;
     this.Warnings                = warnings;
     this.CurrentSnapshotInfo     = currentSnapshotInfo;
     this.Error                   = error;
     this.IsFullBackup            = isFullBackup;
     this.NumRestarts             = numRestarts;
     this.ParentSourceId          = parentSourceId;
     this.ProgressMonitorTaskPath = progressMonitorTaskPath;
     this.Quiesced                = quiesced;
     this.SlaViolated             = slaViolated;
     this.Source                  = source;
     this.Stats                   = stats;
     this.Status                  = status;
     this.Warnings                = warnings;
 }
Esempio n. 21
0
 /// <summary>
 /// Initializes a new instance of the <see cref="ProtectedVmInfo" /> class.
 /// </summary>
 /// <param name="protectionJobs">Specifies the list of Protection Jobs that protect the VM..</param>
 /// <param name="protectionPolicies">Specifies the list of Policies that are used by the Protection Jobs..</param>
 /// <param name="protectionSource">protectionSource.</param>
 /// <param name="stats">Specifies the protection stats of VM..</param>
 public ProtectedVmInfo(List <ProtectionJob> protectionJobs = default(List <ProtectionJob>), List <ProtectionPolicy> protectionPolicies = default(List <ProtectionPolicy>), ProtectionSource protectionSource = default(ProtectionSource), ProtectionSummary stats = default(ProtectionSummary))
 {
     this.ProtectionJobs     = protectionJobs;
     this.ProtectionPolicies = protectionPolicies;
     this.Stats              = stats;
     this.ProtectionJobs     = protectionJobs;
     this.ProtectionPolicies = protectionPolicies;
     this.ProtectionSource   = protectionSource;
     this.Stats              = stats;
 }