GetChangeOrderInfoResult.h 3.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143
  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_EDAS_MODEL_GETCHANGEORDERINFORESULT_H_
  17. #define ALIBABACLOUD_EDAS_MODEL_GETCHANGEORDERINFORESULT_H_
  18. #include <string>
  19. #include <vector>
  20. #include <utility>
  21. #include <alibabacloud/core/ServiceResult.h>
  22. #include <alibabacloud/edas/EdasExport.h>
  23. namespace AlibabaCloud
  24. {
  25. namespace Edas
  26. {
  27. namespace Model
  28. {
  29. class ALIBABACLOUD_EDAS_EXPORT GetChangeOrderInfoResult : public ServiceResult
  30. {
  31. public:
  32. struct ChangeOrderInfo
  33. {
  34. struct TrafficControl
  35. {
  36. std::string routes;
  37. std::string rules;
  38. std::string tips;
  39. };
  40. struct PipelineInfo
  41. {
  42. struct StageInfoDTO
  43. {
  44. struct StageResultDTO
  45. {
  46. struct ServiceStage
  47. {
  48. int status;
  49. std::string message;
  50. std::string stageName;
  51. std::string stageId;
  52. };
  53. struct InstanceDTO
  54. {
  55. struct InstanceStageDTO
  56. {
  57. int status;
  58. std::string finishTime;
  59. std::string stageName;
  60. std::string stageId;
  61. std::string startTime;
  62. std::string stageMessage;
  63. };
  64. int status;
  65. std::string instanceName;
  66. std::string podStatus;
  67. std::string podName;
  68. std::string instanceIp;
  69. std::vector<InstanceDTO::InstanceStageDTO> instanceStageDTOList;
  70. };
  71. std::vector<InstanceDTO> instanceDTOList;
  72. ServiceStage serviceStage;
  73. };
  74. int status;
  75. std::string stageName;
  76. StageResultDTO stageResultDTO;
  77. std::string stageId;
  78. };
  79. struct StageDetailDTO
  80. {
  81. struct TaskInfoDTO
  82. {
  83. std::string taskId;
  84. std::string taskName;
  85. int taskErrorIgnorance;
  86. bool showManualIgnorance;
  87. std::string taskErrorCode;
  88. std::string taskStatus;
  89. int retryType;
  90. std::string taskErrorMessage;
  91. std::string taskMessage;
  92. };
  93. std::string stageName;
  94. std::vector<StageDetailDTO::TaskInfoDTO> taskList;
  95. std::string stageId;
  96. int stageStatus;
  97. };
  98. int pipelineStatus;
  99. std::string pipelineName;
  100. std::vector<PipelineInfo::StageInfoDTO> stageList;
  101. std::vector<PipelineInfo::StageDetailDTO> stageDetailList;
  102. std::string startTime;
  103. std::string updateTime;
  104. std::string pipelineId;
  105. };
  106. int status;
  107. std::vector<PipelineInfo> pipelineInfoList;
  108. TrafficControl trafficControl;
  109. std::string createTime;
  110. std::string changeOrderId;
  111. std::string createUserId;
  112. std::vector<std::string> targets;
  113. std::string batchType;
  114. std::string desc;
  115. std::string changeOrderDescription;
  116. bool supportRollback;
  117. std::string coType;
  118. int batchCount;
  119. };
  120. GetChangeOrderInfoResult();
  121. explicit GetChangeOrderInfoResult(const std::string &payload);
  122. ~GetChangeOrderInfoResult();
  123. std::string getMessage()const;
  124. ChangeOrderInfo getChangeOrderInfo()const;
  125. int getCode()const;
  126. protected:
  127. void parse(const std::string &payload);
  128. private:
  129. std::string message_;
  130. ChangeOrderInfo changeOrderInfo_;
  131. int code_;
  132. };
  133. }
  134. }
  135. }
  136. #endif // !ALIBABACLOUD_EDAS_MODEL_GETCHANGEORDERINFORESULT_H_