/// <summary> /// Initializes a new instance of the <see cref="PkgSummaryDiffVariables" /> class. /// </summary> /// <param name="id">id.</param> /// <param name="name">name.</param> /// <param name="oldDescription">oldDescription.</param> /// <param name="newDescription">newDescription.</param> /// <param name="oldArgs">oldArgs.</param> /// <param name="newArgs">newArgs.</param> public PkgSummaryDiffVariables(string id = default(string), string name = default(string), string oldDescription = default(string), string newDescription = default(string), VariableProperties oldArgs = default(VariableProperties), VariableProperties newArgs = default(VariableProperties)) { this.Id = id; this.Name = name; this.OldDescription = oldDescription; this.NewDescription = newDescription; this.OldArgs = oldArgs; this.NewArgs = newArgs; }
/// <summary> /// Initializes a new instance of the <see cref="Variable" /> class. /// </summary> /// <param name="links">links.</param> /// <param name="orgID">orgID (required).</param> /// <param name="name">name (required).</param> /// <param name="description">description.</param> /// <param name="selected">selected.</param> /// <param name="labels">labels.</param> /// <param name="arguments">arguments (required).</param> /// <param name="createdAt">createdAt.</param> /// <param name="updatedAt">updatedAt.</param> public Variable(VariableLinks links = default(VariableLinks), string orgID = default(string), string name = default(string), string description = default(string), List <string> selected = default(List <string>), List <Label> labels = default(List <Label>), VariableProperties arguments = default(VariableProperties), DateTime?createdAt = default(DateTime?), DateTime?updatedAt = default(DateTime?)) { // to ensure "orgID" is required (not null) if (orgID == null) { throw new InvalidDataException("orgID is a required property for Variable and cannot be null"); } else { this.OrgID = orgID; } // to ensure "name" is required (not null) if (name == null) { throw new InvalidDataException("name is a required property for Variable and cannot be null"); } else { this.Name = name; } // to ensure "arguments" is required (not null) if (arguments == null) { throw new InvalidDataException("arguments is a required property for Variable and cannot be null"); } else { this.Arguments = arguments; } this.Links = links; this.Description = description; this.Selected = selected; this.Labels = labels; this.CreatedAt = createdAt; this.UpdatedAt = updatedAt; }