/// <summary>
 /// Initializes a new instance of the <see cref="ViewBox" /> class.
 /// </summary>
 /// <param name="adDomainName">Specifies an active directory domain that this view box is mapped to..</param>
 /// <param name="clusterPartitionId">Specifies the Cluster Partition id where the Storage Domain (View Box) is located. (required).</param>
 /// <param name="defaultUserQuotaPolicy">defaultUserQuotaPolicy.</param>
 /// <param name="defaultViewQuotaPolicy">defaultViewQuotaPolicy.</param>
 /// <param name="id">Specifies the Id of the Storage Domain (View Box)..</param>
 /// <param name="name">Specifies the name of the Storage Domain (View Box). (required).</param>
 /// <param name="physicalQuota">physicalQuota.</param>
 /// <param name="removalState">Specifies the current removal state of the Storage Domain (View Box). &#39;kDontRemove&#39; means the state of object is functional and it is not being removed. &#39;kMarkedForRemoval&#39; means the object is being removed. &#39;kOkToRemove&#39; means the object has been removed on the Cohesity Cluster and if the object is physical, it can be removed from the Cohesity Cluster..</param>
 /// <param name="s3BucketsAllowed">Specifies whether creation of a S3 bucket is allowed in this Storage Domain (View Box). When a new S3 bucket creation request arrives, we&#39;ll look at all the View Boxes and the first Storage Domain (View Box) that allows creating S3 buckets in it will be the one where the bucket will be placed..</param>
 /// <param name="stats">Specifies statistics about the Storage Domain (View Box). readOnly: true.</param>
 /// <param name="storagePolicy">Specifies the storage options applied to the Storage Domain (View Box)..</param>
 /// <param name="treatFileSyncAsDataSync">If &#39;true&#39;, when the Cohesity Cluster is writing to a file, the file modification time is not persisted synchronously during the file write, so the modification time may not be accurate. (Typically the file modification time is off by 30 seconds but it can be longer.) Only set to &#39;false&#39; if your environment requires a very accurate modification time. The default value is &#39;true&#39; which provides the best Cohesity Cluster performance..</param>
 public ViewBox(string adDomainName = default(string), long?clusterPartitionId = default(long?), QuotaPolicy1 defaultUserQuotaPolicy = default(QuotaPolicy1), QuotaPolicy2 defaultViewQuotaPolicy = default(QuotaPolicy2), long?id = default(long?), string name = default(string), QuotaPolicy3 physicalQuota = default(QuotaPolicy3), RemovalStateEnum?removalState = default(RemovalStateEnum?), bool?s3BucketsAllowed = default(bool?), ViewBoxStats stats = default(ViewBoxStats), StoragePolicy storagePolicy = default(StoragePolicy), bool?treatFileSyncAsDataSync = default(bool?))
 {
     // to ensure "clusterPartitionId" is required (not null)
     if (clusterPartitionId == null)
     {
         throw new InvalidDataException("clusterPartitionId is a required property for ViewBox and cannot be null");
     }
     else
     {
         this.ClusterPartitionId = clusterPartitionId;
     }
     // to ensure "name" is required (not null)
     if (name == null)
     {
         throw new InvalidDataException("name is a required property for ViewBox and cannot be null");
     }
     else
     {
         this.Name = name;
     }
     this.AdDomainName           = adDomainName;
     this.DefaultUserQuotaPolicy = defaultUserQuotaPolicy;
     this.DefaultViewQuotaPolicy = defaultViewQuotaPolicy;
     this.Id                      = id;
     this.PhysicalQuota           = physicalQuota;
     this.RemovalState            = removalState;
     this.S3BucketsAllowed        = s3BucketsAllowed;
     this.Stats                   = stats;
     this.StoragePolicy           = storagePolicy;
     this.TreatFileSyncAsDataSync = treatFileSyncAsDataSync;
 }
Пример #2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="CreateViewBoxParams" /> class.
 /// </summary>
 /// <param name="adDomainName">Specifies an active directory domain that this view box is mapped to..</param>
 /// <param name="clusterPartitionId">Specifies the Cluster Partition id where the Storage Domain (View Box) is located. (required).</param>
 /// <param name="defaultUserQuotaPolicy">defaultUserQuotaPolicy.</param>
 /// <param name="defaultViewQuotaPolicy">defaultViewQuotaPolicy.</param>
 /// <param name="name">Specifies the name of the Storage Domain (View Box). (required).</param>
 /// <param name="physicalQuota">physicalQuota.</param>
 /// <param name="s3BucketsAllowed">Specifies whether creation of a S3 bucket is allowed in this Storage Domain (View Box). When a new S3 bucket creation request arrives, we&#39;ll look at all the View Boxes and the first Storage Domain (View Box) that allows creating S3 buckets in it will be the one where the bucket will be placed..</param>
 /// <param name="storagePolicy">Specifies the storage options applied to the Storage Domain (View Box)..</param>
 public CreateViewBoxParams(string adDomainName = default(string), long?clusterPartitionId = default(long?), QuotaPolicy1 defaultUserQuotaPolicy = default(QuotaPolicy1), QuotaPolicy2 defaultViewQuotaPolicy = default(QuotaPolicy2), string name = default(string), QuotaPolicy3 physicalQuota = default(QuotaPolicy3), bool?s3BucketsAllowed = default(bool?), StoragePolicy storagePolicy = default(StoragePolicy))
 {
     // to ensure "clusterPartitionId" is required (not null)
     if (clusterPartitionId == null)
     {
         throw new InvalidDataException("clusterPartitionId is a required property for CreateViewBoxParams and cannot be null");
     }
     else
     {
         this.ClusterPartitionId = clusterPartitionId;
     }
     // to ensure "name" is required (not null)
     if (name == null)
     {
         throw new InvalidDataException("name is a required property for CreateViewBoxParams and cannot be null");
     }
     else
     {
         this.Name = name;
     }
     this.AdDomainName           = adDomainName;
     this.DefaultUserQuotaPolicy = defaultUserQuotaPolicy;
     this.DefaultViewQuotaPolicy = defaultViewQuotaPolicy;
     this.PhysicalQuota          = physicalQuota;
     this.S3BucketsAllowed       = s3BucketsAllowed;
     this.StoragePolicy          = storagePolicy;
 }