/// <summary>
 /// Initializes a new instance of the <see cref="DataMigrationPolicy" /> class.
 /// </summary>
 /// <param name="daysToKeep">Specifies how many days to retain Snapshots on the Cohesity Cluster..</param>
 /// <param name="schedulingPolicy">schedulingPolicy.</param>
 /// <param name="wormRetentionType">Specifies WORM retention type for the files. When a WORM retention type is specified, the files will be kept until the maximum of the retention time. During that time, the files cannot be deleted. &#39;kNone&#39; implies there is no WORM retention set. &#39;kCompliance&#39; implies WORM retention is set for compliance reason. &#39;kAdministrative&#39; implies WORM retention is set for administrative purposes..</param>
 public DataMigrationPolicy(long?daysToKeep = default(long?), SchedulingPolicy schedulingPolicy = default(SchedulingPolicy), WormRetentionTypeEnum?wormRetentionType = default(WormRetentionTypeEnum?))
 {
     this.DaysToKeep        = daysToKeep;
     this.WormRetentionType = wormRetentionType;
     this.DaysToKeep        = daysToKeep;
     this.SchedulingPolicy  = schedulingPolicy;
     this.WormRetentionType = wormRetentionType;
 }
Exemple #2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="ProtectionPolicy" /> class.
 /// </summary>
 /// <param name="blackoutPeriods">Array of Blackout Periods.  If specified, this field defines black periods when new Job Runs are not started. If a Job Run has been scheduled but not yet executed and the blackout period starts, the behavior depends on the policy field AbortInBlackoutPeriod..</param>
 /// <param name="cloudDeployPolicies">Array of Cloud Deploy Policies.  Specifies settings for copying Snapshots to Cloud. CloudDeploy target where backup snapshots may be converted and stored. It also defines the retention of copied Snapshots on the Cloud..</param>
 /// <param name="daysToKeep">Specifies how many days to retain Snapshots on the Cohesity Cluster..</param>
 /// <param name="daysToKeepLog">Specifies the number of days to retain log run if Log Schedule exists..</param>
 /// <param name="daysToKeepSystem">Specifies the number of days to retain system backups made for bare metal recovery. This field is applicable if systemSchedulingPolicy is specified..</param>
 /// <param name="description">Description of the Protection Policy..</param>
 /// <param name="extendedRetentionPolicies">Specifies additional retention policies that should be applied to the backup snapshots. A backup snapshot will be retained up to a time that is the maximum of all retention policies that are applicable to it..</param>
 /// <param name="fullSchedulingPolicy">Specifies the Full (no CBT) backup schedule of a Protection Job and how long Snapshots captured by this schedule are retained on the Cohesity Cluster..</param>
 /// <param name="id">Specifies a unique Policy id assigned by the Cohesity Cluster..</param>
 /// <param name="incrementalSchedulingPolicy">Specifies the CBT-based backup schedule of a Protection Job and how long Snapshots captured by this schedule are retained on the Cohesity Cluster..</param>
 /// <param name="lastModifiedTimeMsecs">Specifies the epoch time (in milliseconds) when the Protection Policy was last modified..</param>
 /// <param name="logSchedulingPolicy">logSchedulingPolicy.</param>
 /// <param name="name">Specifies the name of the Protection Policy..</param>
 /// <param name="numLinkedPolicies">Species the number of policies linked to a global policy..</param>
 /// <param name="retries">Specifies the number of times to retry capturing Snapshots before the Job Run fails..</param>
 /// <param name="retryIntervalMins">Specifies the number of minutes before retrying a failed Protection Job..</param>
 /// <param name="rpoPolicySettings">rpoPolicySettings.</param>
 /// <param name="skipIntervalMins">Specifies the period of time before skipping the execution of new Job Runs if an existing queued Job Run of the same Protection Job has not started. For example if this field is set to 30 minutes and a Job Run is scheduled to start at 5:00 AM every day but does not start due to conflicts (such as too many Jobs are running). If the new Job Run does not start by 5:30AM, the Cohesity Cluster will skip the new Job Run. If the original Job Run completes before 5:30AM the next day, a new Job Run is created and starts executing. This field is optional..</param>
 /// <param name="snapshotArchivalCopyPolicies">Array of External Targets.  Specifies settings for copying Snapshots to  Archival External Targets (such as AWS or Tape). It also defines the retention of copied Snapshots on an External Targets such as AWS and Tape..</param>
 /// <param name="snapshotReplicationCopyPolicies">Array of Remote Clusters.  Specifies settings for copying Snapshots to Remote Clusters. It also defines the retention of copied Snapshots on a Remote Cluster..</param>
 /// <param name="systemSchedulingPolicy">systemSchedulingPolicy.</param>
 /// <param name="tenantIds">Specifies which organizations have been assigned this policy. This value is only populated for the cluster admin for now..</param>
 /// <param name="type">Specifies the type of the protection policy. &#39;kRegular&#39; means a regular Protection Policy. &#39;kRPO&#39; means an RPO Protection Policy..</param>
 /// <param name="wormRetentionType">Specifies WORM retention type for the snapshots. When a WORM retention type is specified, the snapshots of the Protection Jobs using this policy will be kept until the maximum of the snapshot retention time. During that time, the snapshots cannot be deleted. &#39;kNone&#39; implies there is no WORM retention set. &#39;kCompliance&#39; implies WORM retention is set for compliance reason. &#39;kAdministrative&#39; implies WORM retention is set for administrative purposes..</param>
 public ProtectionPolicy(List <BlackoutPeriod> blackoutPeriods = default(List <BlackoutPeriod>), List <SnapshotCloudCopyPolicy> cloudDeployPolicies = default(List <SnapshotCloudCopyPolicy>), long?daysToKeep = default(long?), long?daysToKeepLog = default(long?), long?daysToKeepSystem = default(long?), string description = default(string), List <ExtendedRetentionPolicy> extendedRetentionPolicies = default(List <ExtendedRetentionPolicy>), SchedulingPolicy fullSchedulingPolicy = default(SchedulingPolicy), string id = default(string), SchedulingPolicy incrementalSchedulingPolicy = default(SchedulingPolicy), long?lastModifiedTimeMsecs = default(long?), SchedulingPolicy logSchedulingPolicy = default(SchedulingPolicy), string name = default(string), long?numLinkedPolicies = default(long?), int?retries = default(int?), int?retryIntervalMins = default(int?), RpoPolicySettings rpoPolicySettings = default(RpoPolicySettings), int?skipIntervalMins = default(int?), List <SnapshotArchivalCopyPolicy> snapshotArchivalCopyPolicies = default(List <SnapshotArchivalCopyPolicy>), List <SnapshotReplicationCopyPolicy> snapshotReplicationCopyPolicies = default(List <SnapshotReplicationCopyPolicy>), SchedulingPolicy systemSchedulingPolicy = default(SchedulingPolicy), List <string> tenantIds = default(List <string>), TypeEnum?type = default(TypeEnum?), WormRetentionTypeEnum?wormRetentionType = default(WormRetentionTypeEnum?))
 {
     this.BlackoutPeriods           = blackoutPeriods;
     this.CloudDeployPolicies       = cloudDeployPolicies;
     this.DaysToKeep                = daysToKeep;
     this.DaysToKeepLog             = daysToKeepLog;
     this.DaysToKeepSystem          = daysToKeepSystem;
     this.Description               = description;
     this.ExtendedRetentionPolicies = extendedRetentionPolicies;
     this.FullSchedulingPolicy      = fullSchedulingPolicy;
     this.Id = id;
     this.IncrementalSchedulingPolicy = incrementalSchedulingPolicy;
     this.LastModifiedTimeMsecs       = lastModifiedTimeMsecs;
     this.Name = name;
     this.NumLinkedPolicies               = numLinkedPolicies;
     this.Retries                         = retries;
     this.RetryIntervalMins               = retryIntervalMins;
     this.SkipIntervalMins                = skipIntervalMins;
     this.SnapshotArchivalCopyPolicies    = snapshotArchivalCopyPolicies;
     this.SnapshotReplicationCopyPolicies = snapshotReplicationCopyPolicies;
     this.TenantIds                       = tenantIds;
     this.Type = type;
     this.WormRetentionType         = wormRetentionType;
     this.BlackoutPeriods           = blackoutPeriods;
     this.CloudDeployPolicies       = cloudDeployPolicies;
     this.DaysToKeep                = daysToKeep;
     this.DaysToKeepLog             = daysToKeepLog;
     this.DaysToKeepSystem          = daysToKeepSystem;
     this.Description               = description;
     this.ExtendedRetentionPolicies = extendedRetentionPolicies;
     this.FullSchedulingPolicy      = fullSchedulingPolicy;
     this.Id = id;
     this.IncrementalSchedulingPolicy = incrementalSchedulingPolicy;
     this.LastModifiedTimeMsecs       = lastModifiedTimeMsecs;
     this.LogSchedulingPolicy         = logSchedulingPolicy;
     this.Name = name;
     this.NumLinkedPolicies               = numLinkedPolicies;
     this.Retries                         = retries;
     this.RetryIntervalMins               = retryIntervalMins;
     this.RpoPolicySettings               = rpoPolicySettings;
     this.SkipIntervalMins                = skipIntervalMins;
     this.SnapshotArchivalCopyPolicies    = snapshotArchivalCopyPolicies;
     this.SnapshotReplicationCopyPolicies = snapshotReplicationCopyPolicies;
     this.SystemSchedulingPolicy          = systemSchedulingPolicy;
     this.TenantIds                       = tenantIds;
     this.Type = type;
     this.WormRetentionType = wormRetentionType;
 }