GetOrderResult.h 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131
  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_CSB_MODEL_GETORDERRESULT_H_
  17. #define ALIBABACLOUD_CSB_MODEL_GETORDERRESULT_H_
  18. #include <string>
  19. #include <vector>
  20. #include <utility>
  21. #include <alibabacloud/core/ServiceResult.h>
  22. #include <alibabacloud/csb/CSBExport.h>
  23. namespace AlibabaCloud
  24. {
  25. namespace CSB
  26. {
  27. namespace Model
  28. {
  29. class ALIBABACLOUD_CSB_EXPORT GetOrderResult : public ServiceResult
  30. {
  31. public:
  32. struct Data
  33. {
  34. struct Order
  35. {
  36. struct Service
  37. {
  38. std::string projectName;
  39. std::string ownerId;
  40. std::string consumeTypesJSON;
  41. bool skipAuth;
  42. bool ottFlag;
  43. std::string interfaceName;
  44. int status;
  45. std::string statisticName;
  46. std::string errDefJSON;
  47. long createTime;
  48. long csbId;
  49. std::string projectId;
  50. std::string principalName;
  51. std::string accessParamsJSON;
  52. bool sSL;
  53. bool active;
  54. std::string serviceProviderType;
  55. std::string scope;
  56. bool allVisiable;
  57. std::string serviceName;
  58. std::string alias;
  59. std::string provideType;
  60. long userId;
  61. std::string serviceVersion;
  62. std::string oldVersion;
  63. bool validConsumeTypes;
  64. long id;
  65. bool validProvideType;
  66. };
  67. struct SlaInfo
  68. {
  69. std::string qps;
  70. std::string qph;
  71. };
  72. struct Total
  73. {
  74. int total;
  75. int errorNum;
  76. };
  77. struct ErrorTypeCatagory
  78. {
  79. int total;
  80. int errorNum;
  81. std::string name;
  82. };
  83. std::vector<ErrorTypeCatagory> errorTypeCatagoryList;
  84. std::string groupName;
  85. int status;
  86. std::string statisticName;
  87. long credentialGroupId;
  88. std::string projectName;
  89. long csbId;
  90. long gmtModified;
  91. Service service;
  92. long serviceId;
  93. long gmtCreate;
  94. std::string serviceName;
  95. std::string alias;
  96. int serviceStatus;
  97. std::string userId;
  98. Total total;
  99. std::string serviceVersion;
  100. std::string strictWhiteListJson;
  101. long id;
  102. SlaInfo slaInfo;
  103. std::vector<std::string> strictWhiteList;
  104. std::string dauthGroupName;
  105. };
  106. Order order;
  107. };
  108. GetOrderResult();
  109. explicit GetOrderResult(const std::string &payload);
  110. ~GetOrderResult();
  111. std::string getMessage()const;
  112. Data getData()const;
  113. int getCode()const;
  114. protected:
  115. void parse(const std::string &payload);
  116. private:
  117. std::string message_;
  118. Data data_;
  119. int code_;
  120. };
  121. }
  122. }
  123. }
  124. #endif // !ALIBABACLOUD_CSB_MODEL_GETORDERRESULT_H_