SessionRequest.cs 3.1 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 SessionRequest {
  13. /// <summary>
  14. /// The Unique Identifier of the Session
  15. /// </summary>
  16. /// <value>The Unique Identifier of the Session</value>
  17. [DataMember(Name="session_id", EmitDefaultValue=false)]
  18. [JsonProperty(PropertyName = "session_id")]
  19. public string SessionId { get; set; }
  20. /// <summary>
  21. /// Custom ID if Available
  22. /// </summary>
  23. /// <value>Custom ID if Available</value>
  24. [DataMember(Name="custom_id", EmitDefaultValue=false)]
  25. [JsonProperty(PropertyName = "custom_id")]
  26. public string CustomId { 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="app", EmitDefaultValue=false)]
  32. [JsonProperty(PropertyName = "app")]
  33. public string App { 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="version", EmitDefaultValue=false)]
  39. [JsonProperty(PropertyName = "version")]
  40. public string Version { get; set; }
  41. /// <summary>
  42. /// The Name of the App Version you want to deploy, example: v1.0
  43. /// </summary>
  44. /// <value>The Name of the App Version you want to deploy, example: v1.0</value>
  45. [DataMember(Name="deployment_request_id", EmitDefaultValue=false)]
  46. [JsonProperty(PropertyName = "deployment_request_id")]
  47. public string DeploymentRequestId { get; set; }
  48. /// <summary>
  49. /// List of Selectors to filter potential Deployment to link and tag the Session
  50. /// </summary>
  51. /// <value>List of Selectors to filter potential Deployment to link and tag the Session</value>
  52. [DataMember(Name="selectors", EmitDefaultValue=false)]
  53. [JsonProperty(PropertyName = "selectors")]
  54. public List<SelectorModel> Selectors { 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 SessionRequest {\n");
  62. sb.Append(" SessionId: ").Append(SessionId).Append("\n");
  63. sb.Append(" CustomId: ").Append(CustomId).Append("\n");
  64. sb.Append(" App: ").Append(App).Append("\n");
  65. sb.Append(" Version: ").Append(Version).Append("\n");
  66. sb.Append(" DeploymentRequestId: ").Append(DeploymentRequestId).Append("\n");
  67. sb.Append(" Selectors: ").Append(Selectors).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. }