DeployModel.cs 7.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180
  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 DeployModel {
  13. /// <summary>
  14. /// The Name of the App you want to deploy
  15. /// </summary>
  16. /// <value>The Name of the App you want to deploy</value>
  17. [DataMember(Name="app_name", EmitDefaultValue=false)]
  18. [JsonProperty(PropertyName = "app_name")]
  19. public string AppName { get; set; }
  20. /// <summary>
  21. /// The Name of the App Version you want to deploy, if not present, the last version created is picked
  22. /// </summary>
  23. /// <value>The Name of the App Version you want to deploy, if not present, the last version created is picked</value>
  24. [DataMember(Name="version_name", EmitDefaultValue=false)]
  25. [JsonProperty(PropertyName = "version_name")]
  26. public string VersionName { get; set; }
  27. /// <summary>
  28. /// If the Application is public or private. If not specified, we will look for a private Application
  29. /// </summary>
  30. /// <value>If the Application is public or private. If not specified, we will look for a private Application</value>
  31. [DataMember(Name="is_public_app", EmitDefaultValue=false)]
  32. [JsonProperty(PropertyName = "is_public_app")]
  33. public bool? IsPublicApp { get; set; }
  34. /// <summary>
  35. /// The List of IP of your user
  36. /// </summary>
  37. /// <value>The List of IP of your user</value>
  38. [DataMember(Name="ip_list", EmitDefaultValue=false)]
  39. [JsonProperty(PropertyName = "ip_list")]
  40. public List<string> IpList { get; set; }
  41. /// <summary>
  42. /// The list of IP of your user with their location (latitude, longitude)
  43. /// </summary>
  44. /// <value>The list of IP of your user with their location (latitude, longitude)</value>
  45. [DataMember(Name="geo_ip_list", EmitDefaultValue=false)]
  46. [JsonProperty(PropertyName = "geo_ip_list")]
  47. public List<GeoIpListModel> GeoIpList { get; set; }
  48. /// <summary>
  49. /// A list of deployment variables
  50. /// </summary>
  51. /// <value>A list of deployment variables</value>
  52. [DataMember(Name="env_vars", EmitDefaultValue=false)]
  53. [JsonProperty(PropertyName = "env_vars")]
  54. public List<DeployEnvModel> EnvVars { get; set; }
  55. /// <summary>
  56. /// If you want to skip the Telemetry and use a geolocations decision only
  57. /// </summary>
  58. /// <value>If you want to skip the Telemetry and use a geolocations decision only</value>
  59. [DataMember(Name="skip_telemetry", EmitDefaultValue=false)]
  60. [JsonProperty(PropertyName = "skip_telemetry")]
  61. public bool? SkipTelemetry { get; set; }
  62. /// <summary>
  63. /// If you want to specify a centroid for your deployment.
  64. /// </summary>
  65. /// <value>If you want to specify a centroid for your deployment.</value>
  66. [DataMember(Name="location", EmitDefaultValue=false)]
  67. [JsonProperty(PropertyName = "location")]
  68. public LocationModel Location { get; set; }
  69. /// <summary>
  70. /// If you want to deploy in a specific city
  71. /// </summary>
  72. /// <value>If you want to deploy in a specific city</value>
  73. [DataMember(Name="city", EmitDefaultValue=false)]
  74. [JsonProperty(PropertyName = "city")]
  75. public string City { get; set; }
  76. /// <summary>
  77. /// If you want to deploy in a specific country
  78. /// </summary>
  79. /// <value>If you want to deploy in a specific country</value>
  80. [DataMember(Name="country", EmitDefaultValue=false)]
  81. [JsonProperty(PropertyName = "country")]
  82. public string Country { get; set; }
  83. /// <summary>
  84. /// If you want to deploy in a specific continent
  85. /// </summary>
  86. /// <value>If you want to deploy in a specific continent</value>
  87. [DataMember(Name="continent", EmitDefaultValue=false)]
  88. [JsonProperty(PropertyName = "continent")]
  89. public string Continent { get; set; }
  90. /// <summary>
  91. /// If you want to deploy in a specific region
  92. /// </summary>
  93. /// <value>If you want to deploy in a specific region</value>
  94. [DataMember(Name="region", EmitDefaultValue=false)]
  95. [JsonProperty(PropertyName = "region")]
  96. public string Region { get; set; }
  97. /// <summary>
  98. /// If you want to deploy in a specific administrative division
  99. /// </summary>
  100. /// <value>If you want to deploy in a specific administrative division</value>
  101. [DataMember(Name="administrative_division", EmitDefaultValue=false)]
  102. [JsonProperty(PropertyName = "administrative_division")]
  103. public string AdministrativeDivision { get; set; }
  104. /// <summary>
  105. /// A web URL. This url will be called with method POST. The deployment status will be send in JSON format
  106. /// </summary>
  107. /// <value>A web URL. This url will be called with method POST. The deployment status will be send in JSON format</value>
  108. [DataMember(Name="webhook_url", EmitDefaultValue=false)]
  109. [JsonProperty(PropertyName = "webhook_url")]
  110. public string WebhookUrl { get; set; }
  111. /// <summary>
  112. /// The list of tags for your deployment
  113. /// </summary>
  114. /// <value>The list of tags for your deployment</value>
  115. [DataMember(Name="tags", EmitDefaultValue=false)]
  116. [JsonProperty(PropertyName = "tags")]
  117. public List<string> Tags { get; set; }
  118. /// <summary>
  119. /// The container log storage options for the deployment
  120. /// </summary>
  121. /// <value>The container log storage options for the deployment</value>
  122. [DataMember(Name="container_log_storage", EmitDefaultValue=false)]
  123. [JsonProperty(PropertyName = "container_log_storage")]
  124. public ContainerLogStorageModel ContainerLogStorage { get; set; }
  125. /// <summary>
  126. /// Get the string presentation of the object
  127. /// </summary>
  128. /// <returns>String presentation of the object</returns>
  129. public override string ToString() {
  130. StringBuilder sb = new StringBuilder();
  131. sb.Append("class DeployModel {\n");
  132. sb.Append(" AppName: ").Append(AppName).Append("\n");
  133. sb.Append(" VersionName: ").Append(VersionName).Append("\n");
  134. sb.Append(" IsPublicApp: ").Append(IsPublicApp).Append("\n");
  135. sb.Append(" IpList: ").Append(IpList).Append("\n");
  136. sb.Append(" GeoIpList: ").Append(GeoIpList).Append("\n");
  137. sb.Append(" EnvVars: ").Append(EnvVars).Append("\n");
  138. sb.Append(" SkipTelemetry: ").Append(SkipTelemetry).Append("\n");
  139. sb.Append(" Location: ").Append(Location).Append("\n");
  140. sb.Append(" City: ").Append(City).Append("\n");
  141. sb.Append(" Country: ").Append(Country).Append("\n");
  142. sb.Append(" Continent: ").Append(Continent).Append("\n");
  143. sb.Append(" Region: ").Append(Region).Append("\n");
  144. sb.Append(" AdministrativeDivision: ").Append(AdministrativeDivision).Append("\n");
  145. sb.Append(" WebhookUrl: ").Append(WebhookUrl).Append("\n");
  146. sb.Append(" Tags: ").Append(Tags).Append("\n");
  147. sb.Append(" ContainerLogStorage: ").Append(ContainerLogStorage).Append("\n");
  148. sb.Append("}\n");
  149. return sb.ToString();
  150. }
  151. /// <summary>
  152. /// Get the JSON string presentation of the object
  153. /// </summary>
  154. /// <returns>JSON string presentation of the object</returns>
  155. public string ToJson() {
  156. return JsonConvert.SerializeObject(this, Formatting.Indented);
  157. }
  158. }
  159. }