Deployments.cs 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172
  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 Deployments {
  13. /// <summary>
  14. /// List of Active Deployments
  15. /// </summary>
  16. /// <value>List of Active Deployments</value>
  17. [DataMember(Name="data", EmitDefaultValue=false)]
  18. [JsonProperty(PropertyName = "data")]
  19. public List<Deployment> Data { get; set; }
  20. /// <summary>
  21. /// Total Objects in the Database
  22. /// </summary>
  23. /// <value>Total Objects in the Database</value>
  24. [DataMember(Name="total_count", EmitDefaultValue=false)]
  25. [JsonProperty(PropertyName = "total_count")]
  26. public int? TotalCount { get; set; }
  27. /// <summary>
  28. /// Pagination Object
  29. /// </summary>
  30. /// <value>Pagination Object</value>
  31. [DataMember(Name="pagination", EmitDefaultValue=false)]
  32. [JsonProperty(PropertyName = "pagination")]
  33. public Pagination Pagination { get; set; }
  34. /// <summary>
  35. /// Extra Messages for the query
  36. /// </summary>
  37. /// <value>Extra Messages for the query</value>
  38. [DataMember(Name="message", EmitDefaultValue=false)]
  39. [JsonProperty(PropertyName = "message")]
  40. public List<string> Message { get; set; }
  41. /// <summary>
  42. /// Get the string presentation of the object
  43. /// </summary>
  44. /// <returns>String presentation of the object</returns>
  45. public override string ToString() {
  46. StringBuilder sb = new StringBuilder();
  47. sb.Append("class Deployments {\n");
  48. sb.Append(" Data: ").Append(Data).Append("\n");
  49. sb.Append(" TotalCount: ").Append(TotalCount).Append("\n");
  50. sb.Append(" Pagination: ").Append(Pagination).Append("\n");
  51. sb.Append(" Message: ").Append(Message).Append("\n");
  52. sb.Append("}\n");
  53. return sb.ToString();
  54. }
  55. /// <summary>
  56. /// Get the JSON string presentation of the object
  57. /// </summary>
  58. /// <returns>JSON string presentation of the object</returns>
  59. public string ToJson() {
  60. return JsonConvert.SerializeObject(this, Formatting.Indented);
  61. }
  62. }
  63. }