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 SessionRequest { /// /// The Unique Identifier of the Session /// /// The Unique Identifier of the Session [DataMember(Name="session_id", EmitDefaultValue=false)] [JsonProperty(PropertyName = "session_id")] public string SessionId { get; set; } /// /// Custom ID if Available /// /// Custom ID if Available [DataMember(Name="custom_id", EmitDefaultValue=false)] [JsonProperty(PropertyName = "custom_id")] public string CustomId { get; set; } /// /// The Name of the App you requested /// /// The Name of the App you requested [DataMember(Name="app", EmitDefaultValue=false)] [JsonProperty(PropertyName = "app")] public string App { get; set; } /// /// The name of the App Version you requested /// /// The name of the App Version you requested [DataMember(Name="version", EmitDefaultValue=false)] [JsonProperty(PropertyName = "version")] public string Version { get; set; } /// /// The Name of the App Version you want to deploy, example: v1.0 /// /// The Name of the App Version you want to deploy, example: v1.0 [DataMember(Name="deployment_request_id", EmitDefaultValue=false)] [JsonProperty(PropertyName = "deployment_request_id")] public string DeploymentRequestId { get; set; } /// /// List of Selectors to filter potential Deployment to link and tag the Session /// /// List of Selectors to filter potential Deployment to link and tag the Session [DataMember(Name="selectors", EmitDefaultValue=false)] [JsonProperty(PropertyName = "selectors")] public List Selectors { 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 SessionRequest {\n"); sb.Append(" SessionId: ").Append(SessionId).Append("\n"); sb.Append(" CustomId: ").Append(CustomId).Append("\n"); sb.Append(" App: ").Append(App).Append("\n"); sb.Append(" Version: ").Append(Version).Append("\n"); sb.Append(" DeploymentRequestId: ").Append(DeploymentRequestId).Append("\n"); sb.Append(" Selectors: ").Append(Selectors).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); } } }