MatchmakerComponentResponse.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 MatchmakerComponentResponse : BaseModel {
  13. /// <summary>
  14. /// Matchmaker component name. Must be unique.
  15. /// </summary>
  16. /// <value>Matchmaker component name. Must be unique.</value>
  17. [DataMember(Name="name", EmitDefaultValue=false)]
  18. [JsonProperty(PropertyName = "name")]
  19. public string Name { get; set; }
  20. /// <summary>
  21. /// Container repository where the component's image is hosted.
  22. /// </summary>
  23. /// <value>Container repository where the component's image is hosted.</value>
  24. [DataMember(Name="repository", EmitDefaultValue=false)]
  25. [JsonProperty(PropertyName = "repository")]
  26. public string Repository { get; set; }
  27. /// <summary>
  28. /// Container image to use for this component.
  29. /// </summary>
  30. /// <value>Container image to use for this component.</value>
  31. [DataMember(Name="image", EmitDefaultValue=false)]
  32. [JsonProperty(PropertyName = "image")]
  33. public string Image { get; set; }
  34. /// <summary>
  35. /// Tag of the container image to use for this component.
  36. /// </summary>
  37. /// <value>Tag of the container image to use for this component.</value>
  38. [DataMember(Name="tag", EmitDefaultValue=false)]
  39. [JsonProperty(PropertyName = "tag")]
  40. public string Tag { get; set; }
  41. /// <summary>
  42. /// Private repo credentials to use for pulling the image, if applicable.
  43. /// </summary>
  44. /// <value>Private repo credentials to use for pulling the image, if applicable.</value>
  45. [DataMember(Name="credentials", EmitDefaultValue=false)]
  46. [JsonProperty(PropertyName = "credentials")]
  47. public Object Credentials { 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 MatchmakerComponentResponse {\n");
  55. sb.Append(" Name: ").Append(Name).Append("\n");
  56. sb.Append(" Repository: ").Append(Repository).Append("\n");
  57. sb.Append(" Image: ").Append(Image).Append("\n");
  58. sb.Append(" Tag: ").Append(Tag).Append("\n");
  59. sb.Append(" Credentials: ").Append(Credentials).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 new string ToJson() {
  68. return JsonConvert.SerializeObject(this, Formatting.Indented);
  69. }
  70. }
  71. }