DeploymentSessionContext.cs 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990
  1. using System;
  2. using System.Text;
  3. using System.Collections;
  4. using System.Collections.Generic;
  5. using System.Runtime.Serialization;
  6. using Newtonsoft.Json;
  7. namespace IO.Swagger.Model {
  8. /// <summary>
  9. ///
  10. /// </summary>
  11. [DataContract]
  12. public class DeploymentSessionContext {
  13. /// <summary>
  14. /// Unique UUID
  15. /// </summary>
  16. /// <value>Unique UUID</value>
  17. [DataMember(Name="session_id", EmitDefaultValue=false)]
  18. [JsonProperty(PropertyName = "session_id")]
  19. public string SessionId { get; set; }
  20. /// <summary>
  21. /// Current status of the session
  22. /// </summary>
  23. /// <value>Current status of the session</value>
  24. [DataMember(Name="status", EmitDefaultValue=false)]
  25. [JsonProperty(PropertyName = "status")]
  26. public string Status { get; set; }
  27. /// <summary>
  28. /// If the session is linked to a Ready deployment
  29. /// </summary>
  30. /// <value>If the session is linked to a Ready deployment</value>
  31. [DataMember(Name="ready", EmitDefaultValue=false)]
  32. [JsonProperty(PropertyName = "ready")]
  33. public bool? Ready { get; set; }
  34. /// <summary>
  35. /// If the session is linked to a deployment
  36. /// </summary>
  37. /// <value>If the session is linked to a deployment</value>
  38. [DataMember(Name="linked", EmitDefaultValue=false)]
  39. [JsonProperty(PropertyName = "linked")]
  40. public bool? Linked { get; set; }
  41. /// <summary>
  42. /// Type of session created
  43. /// </summary>
  44. /// <value>Type of session created</value>
  45. [DataMember(Name="kind", EmitDefaultValue=false)]
  46. [JsonProperty(PropertyName = "kind")]
  47. public string Kind { get; set; }
  48. /// <summary>
  49. /// Count of user this session currently have
  50. /// </summary>
  51. /// <value>Count of user this session currently have</value>
  52. [DataMember(Name="user_count", EmitDefaultValue=false)]
  53. [JsonProperty(PropertyName = "user_count")]
  54. public int? UserCount { get; set; }
  55. /// <summary>
  56. /// Get the string presentation of the object
  57. /// </summary>
  58. /// <returns>String presentation of the object</returns>
  59. public override string ToString() {
  60. StringBuilder sb = new StringBuilder();
  61. sb.Append("class DeploymentSessionContext {\n");
  62. sb.Append(" SessionId: ").Append(SessionId).Append("\n");
  63. sb.Append(" Status: ").Append(Status).Append("\n");
  64. sb.Append(" Ready: ").Append(Ready).Append("\n");
  65. sb.Append(" Linked: ").Append(Linked).Append("\n");
  66. sb.Append(" Kind: ").Append(Kind).Append("\n");
  67. sb.Append(" UserCount: ").Append(UserCount).Append("\n");
  68. sb.Append("}\n");
  69. return sb.ToString();
  70. }
  71. /// <summary>
  72. /// Get the JSON string presentation of the object
  73. /// </summary>
  74. /// <returns>JSON string presentation of the object</returns>
  75. public string ToJson() {
  76. return JsonConvert.SerializeObject(this, Formatting.Indented);
  77. }
  78. }
  79. }