Beispiel #1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="RawGroupRepositoryApiRequest" /> class.
 /// </summary>
 /// <param name="name">A unique identifier for this repository (required).</param>
 /// <param name="online">Whether this repository accepts incoming requests (required).</param>
 /// <param name="storage">storage (required).</param>
 /// <param name="group">group (required).</param>
 /// <param name="raw">raw.</param>
 public RawGroupRepositoryApiRequest(string name = default(string), bool?online = default(bool?), StorageAttributes storage = default(StorageAttributes), GroupAttributes group = default(GroupAttributes), RawAttributes raw = default(RawAttributes))
 {
     // to ensure "name" is required (not null)
     if (name == null)
     {
         throw new InvalidDataException("name is a required property for RawGroupRepositoryApiRequest and cannot be null");
     }
     else
     {
         this.Name = name;
     }
     // to ensure "online" is required (not null)
     if (online == null)
     {
         throw new InvalidDataException("online is a required property for RawGroupRepositoryApiRequest and cannot be null");
     }
     else
     {
         this.Online = online;
     }
     // to ensure "storage" is required (not null)
     if (storage == null)
     {
         throw new InvalidDataException("storage is a required property for RawGroupRepositoryApiRequest and cannot be null");
     }
     else
     {
         this.Storage = storage;
     }
     // to ensure "group" is required (not null)
     if (group == null)
     {
         throw new InvalidDataException("group is a required property for RawGroupRepositoryApiRequest and cannot be null");
     }
     else
     {
         this.Group = group;
     }
     this.Raw = raw;
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="RawProxyRepositoryApiRequest" /> class.
 /// </summary>
 /// <param name="name">A unique identifier for this repository (required).</param>
 /// <param name="online">Whether this repository accepts incoming requests (required).</param>
 /// <param name="storage">storage (required).</param>
 /// <param name="cleanup">cleanup.</param>
 /// <param name="proxy">proxy (required).</param>
 /// <param name="negativeCache">negativeCache (required).</param>
 /// <param name="httpClient">httpClient (required).</param>
 /// <param name="routingRule">routingRule.</param>
 /// <param name="raw">raw.</param>
 public RawProxyRepositoryApiRequest(string name = default(string), bool?online = default(bool?), StorageAttributes storage = default(StorageAttributes), CleanupPolicyAttributes cleanup = default(CleanupPolicyAttributes), ProxyAttributes proxy = default(ProxyAttributes), NegativeCacheAttributes negativeCache = default(NegativeCacheAttributes), HttpClientAttributes httpClient = default(HttpClientAttributes), string routingRule = default(string), RawAttributes raw = default(RawAttributes))
 {
     // to ensure "name" is required (not null)
     if (name == null)
     {
         throw new InvalidDataException("name is a required property for RawProxyRepositoryApiRequest and cannot be null");
     }
     else
     {
         this.Name = name;
     }
     // to ensure "online" is required (not null)
     if (online == null)
     {
         throw new InvalidDataException("online is a required property for RawProxyRepositoryApiRequest and cannot be null");
     }
     else
     {
         this.Online = online;
     }
     // to ensure "storage" is required (not null)
     if (storage == null)
     {
         throw new InvalidDataException("storage is a required property for RawProxyRepositoryApiRequest and cannot be null");
     }
     else
     {
         this.Storage = storage;
     }
     // to ensure "proxy" is required (not null)
     if (proxy == null)
     {
         throw new InvalidDataException("proxy is a required property for RawProxyRepositoryApiRequest and cannot be null");
     }
     else
     {
         this.Proxy = proxy;
     }
     // to ensure "negativeCache" is required (not null)
     if (negativeCache == null)
     {
         throw new InvalidDataException("negativeCache is a required property for RawProxyRepositoryApiRequest and cannot be null");
     }
     else
     {
         this.NegativeCache = negativeCache;
     }
     // to ensure "httpClient" is required (not null)
     if (httpClient == null)
     {
         throw new InvalidDataException("httpClient is a required property for RawProxyRepositoryApiRequest and cannot be null");
     }
     else
     {
         this.HttpClient = httpClient;
     }
     this.Cleanup     = cleanup;
     this.RoutingRule = routingRule;
     this.Raw         = raw;
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="RawHostedRepositoryApiRequest" /> class.
 /// </summary>
 /// <param name="name">A unique identifier for this repository (required).</param>
 /// <param name="online">Whether this repository accepts incoming requests (required).</param>
 /// <param name="storage">storage (required).</param>
 /// <param name="cleanup">cleanup.</param>
 /// <param name="raw">raw.</param>
 public RawHostedRepositoryApiRequest(string name = default(string), bool?online = default(bool?), HostedStorageAttributes storage = default(HostedStorageAttributes), CleanupPolicyAttributes cleanup = default(CleanupPolicyAttributes), RawAttributes raw = default(RawAttributes))
 {
     // to ensure "name" is required (not null)
     if (name == null)
     {
         throw new InvalidDataException("name is a required property for RawHostedRepositoryApiRequest and cannot be null");
     }
     else
     {
         this.Name = name;
     }
     // to ensure "online" is required (not null)
     if (online == null)
     {
         throw new InvalidDataException("online is a required property for RawHostedRepositoryApiRequest and cannot be null");
     }
     else
     {
         this.Online = online;
     }
     // to ensure "storage" is required (not null)
     if (storage == null)
     {
         throw new InvalidDataException("storage is a required property for RawHostedRepositoryApiRequest and cannot be null");
     }
     else
     {
         this.Storage = storage;
     }
     this.Cleanup = cleanup;
     this.Raw     = raw;
 }