Deployment.cs 4.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134
  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 Deployment {
  13. /// <summary>
  14. /// Unique UUID
  15. /// </summary>
  16. /// <value>Unique UUID</value>
  17. [DataMember(Name="request_id", EmitDefaultValue=false)]
  18. [JsonProperty(PropertyName = "request_id")]
  19. public string RequestId { get; set; }
  20. /// <summary>
  21. /// The public IP
  22. /// </summary>
  23. /// <value>The public IP</value>
  24. [DataMember(Name="public_ip", EmitDefaultValue=false)]
  25. [JsonProperty(PropertyName = "public_ip")]
  26. public string PublicIp { get; set; }
  27. /// <summary>
  28. /// Current status of Deployment
  29. /// </summary>
  30. /// <value>Current status of Deployment</value>
  31. [DataMember(Name="status", EmitDefaultValue=false)]
  32. [JsonProperty(PropertyName = "status")]
  33. public string Status { get; set; }
  34. /// <summary>
  35. /// if the deployment is ready
  36. /// </summary>
  37. /// <value>if the deployment is ready</value>
  38. [DataMember(Name="ready", EmitDefaultValue=false)]
  39. [JsonProperty(PropertyName = "ready")]
  40. public bool? Ready { get; set; }
  41. /// <summary>
  42. /// if the deployment ACL is active
  43. /// </summary>
  44. /// <value>if the deployment ACL is active</value>
  45. [DataMember(Name="whitelisting_active", EmitDefaultValue=false)]
  46. [JsonProperty(PropertyName = "whitelisting_active")]
  47. public bool? WhitelistingActive { get; set; }
  48. /// <summary>
  49. ///
  50. /// </summary>
  51. /// <value></value>
  52. [DataMember(Name="fqdn", EmitDefaultValue=false)]
  53. [JsonProperty(PropertyName = "fqdn")]
  54. public string Fqdn { get; set; }
  55. /// <summary>
  56. /// Gets or Sets Ports
  57. /// </summary>
  58. [DataMember(Name="ports", EmitDefaultValue=false)]
  59. [JsonProperty(PropertyName = "ports")]
  60. public Dictionary<string, PortMapping> Ports { get; set; }
  61. /// <summary>
  62. /// Location related information
  63. /// </summary>
  64. /// <value>Location related information</value>
  65. [DataMember(Name="location", EmitDefaultValue=false)]
  66. [JsonProperty(PropertyName = "location")]
  67. public DeploymentLocation Location { get; set; }
  68. /// <summary>
  69. /// List of tags associated with the deployment
  70. /// </summary>
  71. /// <value>List of tags associated with the deployment</value>
  72. [DataMember(Name="tags", EmitDefaultValue=false)]
  73. [JsonProperty(PropertyName = "tags")]
  74. public List<string> Tags { get; set; }
  75. /// <summary>
  76. /// The Capacity of the Deployment
  77. /// </summary>
  78. /// <value>The Capacity of the Deployment</value>
  79. [DataMember(Name="sockets", EmitDefaultValue=false)]
  80. [JsonProperty(PropertyName = "sockets")]
  81. public int? Sockets { get; set; }
  82. /// <summary>
  83. /// The Capacity Usage of the Deployment
  84. /// </summary>
  85. /// <value>The Capacity Usage of the Deployment</value>
  86. [DataMember(Name="sockets_usage", EmitDefaultValue=false)]
  87. [JsonProperty(PropertyName = "sockets_usage")]
  88. public int? SocketsUsage { get; set; }
  89. /// <summary>
  90. /// Get the string presentation of the object
  91. /// </summary>
  92. /// <returns>String presentation of the object</returns>
  93. public override string ToString() {
  94. StringBuilder sb = new StringBuilder();
  95. sb.Append("class Deployment {\n");
  96. sb.Append(" RequestId: ").Append(RequestId).Append("\n");
  97. sb.Append(" PublicIp: ").Append(PublicIp).Append("\n");
  98. sb.Append(" Status: ").Append(Status).Append("\n");
  99. sb.Append(" Ready: ").Append(Ready).Append("\n");
  100. sb.Append(" WhitelistingActive: ").Append(WhitelistingActive).Append("\n");
  101. sb.Append(" Fqdn: ").Append(Fqdn).Append("\n");
  102. sb.Append(" Ports: ").Append(Ports).Append("\n");
  103. sb.Append(" Location: ").Append(Location).Append("\n");
  104. sb.Append(" Tags: ").Append(Tags).Append("\n");
  105. sb.Append(" Sockets: ").Append(Sockets).Append("\n");
  106. sb.Append(" SocketsUsage: ").Append(SocketsUsage).Append("\n");
  107. sb.Append("}\n");
  108. return sb.ToString();
  109. }
  110. /// <summary>
  111. /// Get the JSON string presentation of the object
  112. /// </summary>
  113. /// <returns>JSON string presentation of the object</returns>
  114. public string ToJson() {
  115. return JsonConvert.SerializeObject(this, Formatting.Indented);
  116. }
  117. }
  118. }