Request.cs 5.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135
  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 Request {
  13. /// <summary>
  14. /// The Unique Identifier of the request
  15. /// </summary>
  16. /// <value>The Unique Identifier of the request</value>
  17. [DataMember(Name="request_id", EmitDefaultValue=false)]
  18. [JsonProperty(PropertyName = "request_id")]
  19. public string RequestId { get; set; }
  20. /// <summary>
  21. /// The URL to connect to the instance
  22. /// </summary>
  23. /// <value>The URL to connect to the instance</value>
  24. [DataMember(Name="request_dns", EmitDefaultValue=false)]
  25. [JsonProperty(PropertyName = "request_dns")]
  26. public string RequestDns { get; set; }
  27. /// <summary>
  28. /// The Name of the App you requested
  29. /// </summary>
  30. /// <value>The Name of the App you requested</value>
  31. [DataMember(Name="request_app", EmitDefaultValue=false)]
  32. [JsonProperty(PropertyName = "request_app")]
  33. public string RequestApp { get; set; }
  34. /// <summary>
  35. /// The name of the App Version you requested
  36. /// </summary>
  37. /// <value>The name of the App Version you requested</value>
  38. [DataMember(Name="request_version", EmitDefaultValue=false)]
  39. [JsonProperty(PropertyName = "request_version")]
  40. public string RequestVersion { get; set; }
  41. /// <summary>
  42. /// How Many Users your request contain
  43. /// </summary>
  44. /// <value>How Many Users your request contain</value>
  45. [DataMember(Name="request_user_count", EmitDefaultValue=false)]
  46. [JsonProperty(PropertyName = "request_user_count")]
  47. public int? RequestUserCount { get; set; }
  48. /// <summary>
  49. /// The city where the deployment is located
  50. /// </summary>
  51. /// <value>The city where the deployment is located</value>
  52. [DataMember(Name="city", EmitDefaultValue=false)]
  53. [JsonProperty(PropertyName = "city")]
  54. public string City { get; set; }
  55. /// <summary>
  56. /// The country where the deployment is located
  57. /// </summary>
  58. /// <value>The country where the deployment is located</value>
  59. [DataMember(Name="country", EmitDefaultValue=false)]
  60. [JsonProperty(PropertyName = "country")]
  61. public string Country { get; set; }
  62. /// <summary>
  63. /// The continent where the deployment is located
  64. /// </summary>
  65. /// <value>The continent where the deployment is located</value>
  66. [DataMember(Name="continent", EmitDefaultValue=false)]
  67. [JsonProperty(PropertyName = "continent")]
  68. public string Continent { get; set; }
  69. /// <summary>
  70. /// The administrative division where the deployment is located
  71. /// </summary>
  72. /// <value>The administrative division where the deployment is located</value>
  73. [DataMember(Name="administrative_division", EmitDefaultValue=false)]
  74. [JsonProperty(PropertyName = "administrative_division")]
  75. public string AdministrativeDivision { get; set; }
  76. /// <summary>
  77. /// List of tags associated with the deployment
  78. /// </summary>
  79. /// <value>List of tags associated with the deployment</value>
  80. [DataMember(Name="tags", EmitDefaultValue=false)]
  81. [JsonProperty(PropertyName = "tags")]
  82. public List<string> Tags { get; set; }
  83. /// <summary>
  84. /// The container log storage options for the deployment
  85. /// </summary>
  86. /// <value>The container log storage options for the deployment</value>
  87. [DataMember(Name="container_log_storage", EmitDefaultValue=false)]
  88. [JsonProperty(PropertyName = "container_log_storage")]
  89. public ContainerLogStorageModel ContainerLogStorage { get; set; }
  90. /// <summary>
  91. /// Get the string presentation of the object
  92. /// </summary>
  93. /// <returns>String presentation of the object</returns>
  94. public override string ToString() {
  95. StringBuilder sb = new StringBuilder();
  96. sb.Append("class Request {\n");
  97. sb.Append(" RequestId: ").Append(RequestId).Append("\n");
  98. sb.Append(" RequestDns: ").Append(RequestDns).Append("\n");
  99. sb.Append(" RequestApp: ").Append(RequestApp).Append("\n");
  100. sb.Append(" RequestVersion: ").Append(RequestVersion).Append("\n");
  101. sb.Append(" RequestUserCount: ").Append(RequestUserCount).Append("\n");
  102. sb.Append(" City: ").Append(City).Append("\n");
  103. sb.Append(" Country: ").Append(Country).Append("\n");
  104. sb.Append(" Continent: ").Append(Continent).Append("\n");
  105. sb.Append(" AdministrativeDivision: ").Append(AdministrativeDivision).Append("\n");
  106. sb.Append(" Tags: ").Append(Tags).Append("\n");
  107. sb.Append(" ContainerLogStorage: ").Append(ContainerLogStorage).Append("\n");
  108. sb.Append("}\n");
  109. return sb.ToString();
  110. }
  111. /// <summary>
  112. /// Get the JSON string presentation of the object
  113. /// </summary>
  114. /// <returns>JSON string presentation of the object</returns>
  115. public string ToJson() {
  116. return JsonConvert.SerializeObject(this, Formatting.Indented);
  117. }
  118. }
  119. }