using System; using System.Text; using System.Collections; using System.Collections.Generic; using System.Runtime.Serialization; using Newtonsoft.Json; namespace IO.Swagger.Model { /// /// /// [DataContract] public class ComponentCredentials { /// /// Username for the component's private repository. /// /// Username for the component's private repository. [DataMember(Name="username", EmitDefaultValue=false)] [JsonProperty(PropertyName = "username")] public string Username { get; set; } /// /// Password (token) of the component's private repository. /// /// Password (token) of the component's private repository. [DataMember(Name="token", EmitDefaultValue=false)] [JsonProperty(PropertyName = "token")] public string Token { get; set; } /// /// Get the string presentation of the object /// /// String presentation of the object public override string ToString() { StringBuilder sb = new StringBuilder(); sb.Append("class ComponentCredentials {\n"); sb.Append(" Username: ").Append(Username).Append("\n"); sb.Append(" Token: ").Append(Token).Append("\n"); sb.Append("}\n"); return sb.ToString(); } /// /// Get the JSON string presentation of the object /// /// JSON string presentation of the object public string ToJson() { return JsonConvert.SerializeObject(this, Formatting.Indented); } } }