Exemple #1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="Buckets" /> class.
 /// </summary>
 /// <param name="links">links.</param>
 /// <param name="buckets">buckets.</param>
 public Buckets(Links links = default(Links), List <Bucket> buckets = default(List <Bucket>))
 {
     this.Links    = links;
     this._Buckets = buckets;
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="Authorizations" /> class.
 /// </summary>
 /// <param name="links">links.</param>
 /// <param name="authorizations">authorizations.</param>
 public Authorizations(Links links = default(Links), List <Authorization> authorizations = default(List <Authorization>))
 {
     this.Links           = links;
     this._Authorizations = authorizations;
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="LabelResponse" /> class.
 /// </summary>
 /// <param name="label">label.</param>
 /// <param name="links">links.</param>
 public LabelResponse(Label label = default(Label), Links links = default(Links))
 {
     this.Label = label;
     this.Links = links;
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="Tasks" /> class.
 /// </summary>
 /// <param name="links">links.</param>
 /// <param name="tasks">tasks.</param>
 public Tasks(Links links = default(Links), List <TaskType> tasks = default(List <TaskType>))
 {
     this.Links  = links;
     this._Tasks = tasks;
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="Checks" /> class.
 /// </summary>
 /// <param name="checks">checks.</param>
 /// <param name="links">links.</param>
 public Checks(List <Check> checks = default(List <Check>), Links links = default(Links))
 {
     this._Checks = checks;
     this.Links   = links;
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="OperationLogs" /> class.
 /// </summary>
 /// <param name="logs">logs.</param>
 /// <param name="links">links.</param>
 public OperationLogs(List <OperationLog> logs = default(List <OperationLog>), Links links = default(Links))
 {
     this.Logs  = logs;
     this.Links = links;
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="DBRP" /> class.
 /// </summary>
 /// <param name="orgID">the organization ID that owns this mapping. (required).</param>
 /// <param name="bucketID">the bucket ID used as target for the translation. (required).</param>
 /// <param name="database">InfluxDB v1 database (required).</param>
 /// <param name="retentionPolicy">InfluxDB v1 retention policy (required).</param>
 /// <param name="_default">Specify if this mapping represents the default retention policy for the database specificed..</param>
 /// <param name="links">links.</param>
 public DBRP(string orgID = default(string), string bucketID = default(string), string database = default(string), string retentionPolicy = default(string), bool?_default = default(bool?), Links links = default(Links))
 {
     // to ensure "orgID" is required (not null)
     if (orgID == null)
     {
         throw new InvalidDataException("orgID is a required property for DBRP and cannot be null");
     }
     else
     {
         this.OrgID = orgID;
     }
     // to ensure "bucketID" is required (not null)
     if (bucketID == null)
     {
         throw new InvalidDataException("bucketID is a required property for DBRP and cannot be null");
     }
     else
     {
         this.BucketID = bucketID;
     }
     // to ensure "database" is required (not null)
     if (database == null)
     {
         throw new InvalidDataException("database is a required property for DBRP and cannot be null");
     }
     else
     {
         this.Database = database;
     }
     // to ensure "retentionPolicy" is required (not null)
     if (retentionPolicy == null)
     {
         throw new InvalidDataException("retentionPolicy is a required property for DBRP and cannot be null");
     }
     else
     {
         this.RetentionPolicy = retentionPolicy;
     }
     this.Default = _default;
     this.Links   = links;
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="Runs" /> class.
 /// </summary>
 /// <param name="links">links.</param>
 /// <param name="runs">runs.</param>
 public Runs(Links links = default(Links), List <Run> runs = default(List <Run>))
 {
     this.Links = links;
     this._Runs = runs;
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="DBRPUpdate" /> class.
 /// </summary>
 /// <param name="database">InfluxDB v1 database.</param>
 /// <param name="retentionPolicy">InfluxDB v1 retention policy.</param>
 /// <param name="_default">_default.</param>
 /// <param name="links">links.</param>
 public DBRPUpdate(string database = default(string), string retentionPolicy = default(string), bool?_default = default(bool?), Links links = default(Links))
 {
     this.Database        = database;
     this.RetentionPolicy = retentionPolicy;
     this.Default         = _default;
     this.Links           = links;
 }