AddTestResult.h 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117
  1. /*
  2. * Copyright 2009-2017 Alibaba Cloud All rights reserved.
  3. *
  4. * Licensed under the Apache License, Version 2.0 (the "License");
  5. * you may not use this file except in compliance with the License.
  6. * You may obtain a copy of the License at
  7. *
  8. * http://www.apache.org/licenses/LICENSE-2.0
  9. *
  10. * Unless required by applicable law or agreed to in writing, software
  11. * distributed under the License is distributed on an "AS IS" BASIS,
  12. * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  13. * See the License for the specific language governing permissions and
  14. * limitations under the License.
  15. */
  16. #ifndef ALIBABACLOUD_MSE_MODEL_ADDTESTRESULT_H_
  17. #define ALIBABACLOUD_MSE_MODEL_ADDTESTRESULT_H_
  18. #include <string>
  19. #include <vector>
  20. #include <utility>
  21. #include <alibabacloud/core/ServiceResult.h>
  22. #include <alibabacloud/mse/MseExport.h>
  23. namespace AlibabaCloud
  24. {
  25. namespace Mse
  26. {
  27. namespace Model
  28. {
  29. class ALIBABACLOUD_MSE_EXPORT AddTestResult : public ServiceResult
  30. {
  31. public:
  32. struct Data
  33. {
  34. struct Gateways
  35. {
  36. struct SlbItem
  37. {
  38. std::string slbId;
  39. std::string slbPort;
  40. std::string statusDesc;
  41. std::string type;
  42. std::string gatewaySlbMode;
  43. std::string slbIp;
  44. std::string gatewaySlbStatus;
  45. std::string slbSpec;
  46. };
  47. struct InternetSlbItem
  48. {
  49. std::string slbId;
  50. std::string slbPort;
  51. std::string statusDesc;
  52. std::string type;
  53. std::string gatewaySlbMode;
  54. std::string slbIp;
  55. std::string gatewaySlbStatus;
  56. std::string slbSpec;
  57. std::string internetNetworkFlow;
  58. };
  59. std::string currentVersion;
  60. std::vector<Gateways::SlbItem> slb;
  61. std::string gmtModified;
  62. std::string vswitch2;
  63. std::string gatewayType;
  64. bool upgrade;
  65. std::string name;
  66. std::string statusDesc;
  67. bool armsOn;
  68. std::vector<Gateways::InternetSlbItem> internetSlb;
  69. int status;
  70. bool mustUpgrade;
  71. std::string instanceId;
  72. bool ahasOn;
  73. int replica;
  74. std::string endDate;
  75. std::string gatewayUniqueId;
  76. std::string gmtCreate;
  77. std::string latestVersion;
  78. std::string chargeType;
  79. std::string region;
  80. std::string primaryUser;
  81. long id;
  82. std::string tag;
  83. std::string spec;
  84. };
  85. int pageSize;
  86. int pageNumber;
  87. long totalSize;
  88. std::vector<Gateways> result;
  89. };
  90. AddTestResult();
  91. explicit AddTestResult(const std::string &payload);
  92. ~AddTestResult();
  93. std::string getMessage()const;
  94. int getHttpStatusCode()const;
  95. Data getData()const;
  96. int getCode()const;
  97. bool getSuccess()const;
  98. protected:
  99. void parse(const std::string &payload);
  100. private:
  101. std::string message_;
  102. int httpStatusCode_;
  103. Data data_;
  104. int code_;
  105. bool success_;
  106. };
  107. }
  108. }
  109. }
  110. #endif // !ALIBABACLOUD_MSE_MODEL_ADDTESTRESULT_H_