AppVersionPort.cs 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081
  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 AppVersionPort {
  13. /// <summary>
  14. /// The Port to Expose your service
  15. /// </summary>
  16. /// <value>The Port to Expose your service</value>
  17. [DataMember(Name="port", EmitDefaultValue=false)]
  18. [JsonProperty(PropertyName = "port")]
  19. public int? Port { get; set; }
  20. /// <summary>
  21. /// Available protocols: TCP, UDP, TCP/UDP, HTTP, HTTPS, WS or WSS
  22. /// </summary>
  23. /// <value>Available protocols: TCP, UDP, TCP/UDP, HTTP, HTTPS, WS or WSS</value>
  24. [DataMember(Name="protocol", EmitDefaultValue=false)]
  25. [JsonProperty(PropertyName = "protocol")]
  26. public string Protocol { get; set; }
  27. /// <summary>
  28. /// If the port must be verified by our port validations
  29. /// </summary>
  30. /// <value>If the port must be verified by our port validations</value>
  31. [DataMember(Name="to_check", EmitDefaultValue=false)]
  32. [JsonProperty(PropertyName = "to_check")]
  33. public bool? ToCheck { get; set; }
  34. /// <summary>
  35. /// Enabling with HTTP or WS will inject a sidecar proxy that upgrades the connection with TLS
  36. /// </summary>
  37. /// <value>Enabling with HTTP or WS will inject a sidecar proxy that upgrades the connection with TLS</value>
  38. [DataMember(Name="tls_upgrade", EmitDefaultValue=false)]
  39. [JsonProperty(PropertyName = "tls_upgrade")]
  40. public bool? TlsUpgrade { get; set; }
  41. /// <summary>
  42. /// An optional name for the port for easier handling
  43. /// </summary>
  44. /// <value>An optional name for the port for easier handling</value>
  45. [DataMember(Name="name", EmitDefaultValue=false)]
  46. [JsonProperty(PropertyName = "name")]
  47. public string Name { get; set; }
  48. /// <summary>
  49. /// Get the string presentation of the object
  50. /// </summary>
  51. /// <returns>String presentation of the object</returns>
  52. public override string ToString() {
  53. StringBuilder sb = new StringBuilder();
  54. sb.Append("class AppVersionPort {\n");
  55. sb.Append(" Port: ").Append(Port).Append("\n");
  56. sb.Append(" Protocol: ").Append(Protocol).Append("\n");
  57. sb.Append(" ToCheck: ").Append(ToCheck).Append("\n");
  58. sb.Append(" TlsUpgrade: ").Append(TlsUpgrade).Append("\n");
  59. sb.Append(" Name: ").Append(Name).Append("\n");
  60. sb.Append("}\n");
  61. return sb.ToString();
  62. }
  63. /// <summary>
  64. /// Get the JSON string presentation of the object
  65. /// </summary>
  66. /// <returns>JSON string presentation of the object</returns>
  67. public string ToJson() {
  68. return JsonConvert.SerializeObject(this, Formatting.Indented);
  69. }
  70. }
  71. }