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 Status { /// /// The Unique ID of the Deployment's request /// /// The Unique ID of the Deployment's request [DataMember(Name="request_id", EmitDefaultValue=false)] [JsonProperty(PropertyName = "request_id")] public string RequestId { get; set; } /// /// The FQDN that allow to connect to your Deployment /// /// The FQDN that allow to connect to your Deployment [DataMember(Name="fqdn", EmitDefaultValue=false)] [JsonProperty(PropertyName = "fqdn")] public string Fqdn { get; set; } /// /// The name of the deployed App /// /// The name of the deployed App [DataMember(Name="app_name", EmitDefaultValue=false)] [JsonProperty(PropertyName = "app_name")] public string AppName { get; set; } /// /// The version of the deployed App /// /// The version of the deployed App [DataMember(Name="app_version", EmitDefaultValue=false)] [JsonProperty(PropertyName = "app_version")] public string AppVersion { get; set; } /// /// The current status of the Deployment /// /// The current status of the Deployment [DataMember(Name="current_status", EmitDefaultValue=false)] [JsonProperty(PropertyName = "current_status")] public string CurrentStatus { get; set; } /// /// True if the current Deployment is ready to be connected and running /// /// True if the current Deployment is ready to be connected and running [DataMember(Name="running", EmitDefaultValue=false)] [JsonProperty(PropertyName = "running")] public bool? Running { get; set; } /// /// True if the current Deployment is ACL protected /// /// True if the current Deployment is ACL protected [DataMember(Name="whitelisting_active", EmitDefaultValue=false)] [JsonProperty(PropertyName = "whitelisting_active")] public bool? WhitelistingActive { get; set; } /// /// Timestamp of the Deployment when it is up and running /// /// Timestamp of the Deployment when it is up and running [DataMember(Name="start_time", EmitDefaultValue=false)] [JsonProperty(PropertyName = "start_time")] public string StartTime { get; set; } /// /// Timestamp of the end of the Deployment /// /// Timestamp of the end of the Deployment [DataMember(Name="removal_time", EmitDefaultValue=false)] [JsonProperty(PropertyName = "removal_time")] public string RemovalTime { get; set; } /// /// Time since the Deployment is up and running in seconds /// /// Time since the Deployment is up and running in seconds [DataMember(Name="elapsed_time", EmitDefaultValue=false)] [JsonProperty(PropertyName = "elapsed_time")] public int? ElapsedTime { get; set; } /// /// The last status of the Deployment /// /// The last status of the Deployment [DataMember(Name="last_status", EmitDefaultValue=false)] [JsonProperty(PropertyName = "last_status")] public string LastStatus { get; set; } /// /// True if there is an error with the Deployment /// /// True if there is an error with the Deployment [DataMember(Name="error", EmitDefaultValue=false)] [JsonProperty(PropertyName = "error")] public bool? Error { get; set; } /// /// The error details of the Deployment /// /// The error details of the Deployment [DataMember(Name="error_detail", EmitDefaultValue=false)] [JsonProperty(PropertyName = "error_detail")] public string ErrorDetail { get; set; } /// /// Gets or Sets Ports /// [DataMember(Name="ports", EmitDefaultValue=false)] [JsonProperty(PropertyName = "ports")] public Dictionary Ports { get; set; } /// /// The public IP /// /// The public IP [DataMember(Name="public_ip", EmitDefaultValue=false)] [JsonProperty(PropertyName = "public_ip")] public string PublicIp { get; set; } /// /// List of Active Sessions if Deployment App is Session Based /// /// List of Active Sessions if Deployment App is Session Based [DataMember(Name="sessions", EmitDefaultValue=false)] [JsonProperty(PropertyName = "sessions")] public List Sessions { get; set; } /// /// Location related information /// /// Location related information [DataMember(Name="location", EmitDefaultValue=false)] [JsonProperty(PropertyName = "location")] public DeploymentLocation Location { get; set; } /// /// List of tags associated with the deployment /// /// List of tags associated with the deployment [DataMember(Name="tags", EmitDefaultValue=false)] [JsonProperty(PropertyName = "tags")] public List Tags { get; set; } /// /// The Capacity of the Deployment /// /// The Capacity of the Deployment [DataMember(Name="sockets", EmitDefaultValue=false)] [JsonProperty(PropertyName = "sockets")] public int? Sockets { get; set; } /// /// The Capacity Usage of the Deployment /// /// The Capacity Usage of the Deployment [DataMember(Name="sockets_usage", EmitDefaultValue=false)] [JsonProperty(PropertyName = "sockets_usage")] public int? SocketsUsage { 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 Status {\n"); sb.Append(" RequestId: ").Append(RequestId).Append("\n"); sb.Append(" Fqdn: ").Append(Fqdn).Append("\n"); sb.Append(" AppName: ").Append(AppName).Append("\n"); sb.Append(" AppVersion: ").Append(AppVersion).Append("\n"); sb.Append(" CurrentStatus: ").Append(CurrentStatus).Append("\n"); sb.Append(" Running: ").Append(Running).Append("\n"); sb.Append(" WhitelistingActive: ").Append(WhitelistingActive).Append("\n"); sb.Append(" StartTime: ").Append(StartTime).Append("\n"); sb.Append(" RemovalTime: ").Append(RemovalTime).Append("\n"); sb.Append(" ElapsedTime: ").Append(ElapsedTime).Append("\n"); sb.Append(" LastStatus: ").Append(LastStatus).Append("\n"); sb.Append(" Error: ").Append(Error).Append("\n"); sb.Append(" ErrorDetail: ").Append(ErrorDetail).Append("\n"); sb.Append(" Ports: ").Append(Ports).Append("\n"); sb.Append(" PublicIp: ").Append(PublicIp).Append("\n"); sb.Append(" Sessions: ").Append(Sessions).Append("\n"); sb.Append(" Location: ").Append(Location).Append("\n"); sb.Append(" Tags: ").Append(Tags).Append("\n"); sb.Append(" Sockets: ").Append(Sockets).Append("\n"); sb.Append(" SocketsUsage: ").Append(SocketsUsage).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); } } }