/// <summary>
 /// Initializes a new instance of the <see cref="GenericBlobStoreApiResponse" /> class.
 /// </summary>
 /// <param name="softQuota">Settings to control the soft quota.</param>
 /// <param name="name">name.</param>
 /// <param name="type">type.</param>
 /// <param name="blobCount">blobCount.</param>
 /// <param name="totalSizeInBytes">totalSizeInBytes.</param>
 /// <param name="availableSpaceInBytes">availableSpaceInBytes.</param>
 public GenericBlobStoreApiResponse(BlobStoreApiSoftQuota softQuota = default(BlobStoreApiSoftQuota), string name = default(string), string type = default(string), long?blobCount = default(long?), long?totalSizeInBytes = default(long?), long?availableSpaceInBytes = default(long?))
 {
     this.SoftQuota             = softQuota;
     this.Name                  = name;
     this.Type                  = type;
     this.BlobCount             = blobCount;
     this.TotalSizeInBytes      = totalSizeInBytes;
     this.AvailableSpaceInBytes = availableSpaceInBytes;
 }
Пример #2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="S3BlobStoreApiModel" /> class.
 /// </summary>
 /// <param name="name">The name of the S3 blob store. (required).</param>
 /// <param name="softQuota">Settings to control the soft quota..</param>
 /// <param name="bucketConfiguration">The S3 specific configuration details for the S3 object that&#39;ll contain the blob store. (required).</param>
 public S3BlobStoreApiModel(string name = default(string), BlobStoreApiSoftQuota softQuota = default(BlobStoreApiSoftQuota), S3BlobStoreApiBucketConfiguration bucketConfiguration = default(S3BlobStoreApiBucketConfiguration))
 {
     // to ensure "name" is required (not null)
     if (name == null)
     {
         throw new InvalidDataException("name is a required property for S3BlobStoreApiModel and cannot be null");
     }
     else
     {
         this.Name = name;
     }
     // to ensure "bucketConfiguration" is required (not null)
     if (bucketConfiguration == null)
     {
         throw new InvalidDataException("bucketConfiguration is a required property for S3BlobStoreApiModel and cannot be null");
     }
     else
     {
         this.BucketConfiguration = bucketConfiguration;
     }
     this.SoftQuota = softQuota;
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="FileBlobStoreApiModel" /> class.
 /// </summary>
 /// <param name="softQuota">Settings to control the soft quota.</param>
 /// <param name="path">The path to the blobstore contents. This can be an absolute path to anywhere on the system Nexus Repository Manager has access to or it can be a path relative to the sonatype-work directory..</param>
 public FileBlobStoreApiModel(BlobStoreApiSoftQuota softQuota = default(BlobStoreApiSoftQuota), string path = default(string))
 {
     this.SoftQuota = softQuota;
     this.Path      = path;
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="FileBlobStoreApiUpdateRequest" /> class.
 /// </summary>
 /// <param name="softQuota">Settings to control the soft quota.</param>
 /// <param name="path">The path to the blobstore contents. This can be an absolute path to anywhere on the system Nexus Repository Manager has access to or it can be a path relative to the sonatype-work directory..</param>
 public FileBlobStoreApiUpdateRequest(BlobStoreApiSoftQuota softQuota = default(BlobStoreApiSoftQuota), string path = default(string))
 {
     this.SoftQuota = softQuota;
     this.Path      = path;
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="FileBlobStoreApiCreateRequest" /> class.
 /// </summary>
 /// <param name="softQuota">Settings to control the soft quota.</param>
 /// <param name="path">The path to the blobstore contents. This can be an absolute path to anywhere on the system Nexus Repository Manager has access to or it can be a path relative to the sonatype-work directory..</param>
 /// <param name="name">name.</param>
 public FileBlobStoreApiCreateRequest(BlobStoreApiSoftQuota softQuota = default(BlobStoreApiSoftQuota), string path = default(string), string name = default(string))
 {
     this.SoftQuota = softQuota;
     this.Path      = path;
     this.Name      = name;
 }