DescribeDeployedApiResult.h 6.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228
  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_CLOUDAPI_MODEL_DESCRIBEDEPLOYEDAPIRESULT_H_
  17. #define ALIBABACLOUD_CLOUDAPI_MODEL_DESCRIBEDEPLOYEDAPIRESULT_H_
  18. #include <string>
  19. #include <vector>
  20. #include <utility>
  21. #include <alibabacloud/core/ServiceResult.h>
  22. #include <alibabacloud/cloudapi/CloudAPIExport.h>
  23. namespace AlibabaCloud
  24. {
  25. namespace CloudAPI
  26. {
  27. namespace Model
  28. {
  29. class ALIBABACLOUD_CLOUDAPI_EXPORT DescribeDeployedApiResult : public ServiceResult
  30. {
  31. public:
  32. struct RequestConfig
  33. {
  34. std::string requestPath;
  35. std::string requestMode;
  36. std::string bodyModel;
  37. std::string requestProtocol;
  38. std::string requestHttpMethod;
  39. std::string postBodyDescription;
  40. std::string bodyFormat;
  41. };
  42. struct ServiceConfig
  43. {
  44. struct VpcConfig
  45. {
  46. std::string vpcId;
  47. std::string instanceId;
  48. int port;
  49. std::string name;
  50. };
  51. struct FunctionComputeConfig
  52. {
  53. std::string functionName;
  54. std::string serviceName;
  55. std::string regionId;
  56. std::string roleArn;
  57. };
  58. struct MockHeader
  59. {
  60. std::string headerValue;
  61. std::string headerName;
  62. };
  63. std::string serviceAddress;
  64. FunctionComputeConfig functionComputeConfig;
  65. std::string mockResult;
  66. VpcConfig vpcConfig;
  67. std::string serviceVpcEnable;
  68. int mockStatusCode;
  69. std::vector<MockHeader> mockHeaders;
  70. std::string serviceHttpMethod;
  71. std::string servicePath;
  72. std::string mock;
  73. std::string vpcId;
  74. int serviceTimeout;
  75. std::string serviceProtocol;
  76. };
  77. struct OpenIdConnectConfig
  78. {
  79. std::string openIdApiType;
  80. std::string publicKey;
  81. std::string idTokenParamName;
  82. std::string publicKeyId;
  83. };
  84. struct ErrorCodeSample
  85. {
  86. std::string description;
  87. std::string message;
  88. std::string code;
  89. };
  90. struct ResultDescription
  91. {
  92. std::string type;
  93. std::string description;
  94. std::string pid;
  95. std::string id;
  96. bool hasChild;
  97. std::string key;
  98. std::string name;
  99. bool mandatory;
  100. };
  101. struct SystemParameter
  102. {
  103. std::string demoValue;
  104. std::string description;
  105. std::string parameterName;
  106. std::string serviceParameterName;
  107. std::string location;
  108. };
  109. struct CustomSystemParameter
  110. {
  111. std::string demoValue;
  112. std::string description;
  113. std::string parameterName;
  114. std::string serviceParameterName;
  115. std::string location;
  116. };
  117. struct ConstantParameter
  118. {
  119. std::string description;
  120. std::string constantValue;
  121. std::string serviceParameterName;
  122. std::string location;
  123. };
  124. struct RequestParameter
  125. {
  126. std::string arrayItemsType;
  127. std::string regularExpression;
  128. std::string parameterType;
  129. std::string jsonScheme;
  130. std::string description;
  131. std::string apiParameterName;
  132. std::string enumValue;
  133. long minLength;
  134. long maxValue;
  135. long maxLength;
  136. std::string demoValue;
  137. std::string defaultValue;
  138. std::string required;
  139. int docOrder;
  140. long minValue;
  141. std::string docShow;
  142. std::string location;
  143. };
  144. struct ServiceParameter
  145. {
  146. std::string parameterType;
  147. std::string serviceParameterName;
  148. std::string location;
  149. };
  150. struct ServiceParameterMap
  151. {
  152. std::string requestParameterName;
  153. std::string serviceParameterName;
  154. };
  155. DescribeDeployedApiResult();
  156. explicit DescribeDeployedApiResult(const std::string &payload);
  157. ~DescribeDeployedApiResult();
  158. std::string getGroupName()const;
  159. std::string getDescription()const;
  160. bool getForceNonceCheck()const;
  161. std::string getAllowSignatureMethod()const;
  162. std::vector<ErrorCodeSample> getErrorCodeSamples()const;
  163. std::vector<RequestParameter> getRequestParameters()const;
  164. std::vector<ServiceParameterMap> getServiceParametersMap()const;
  165. std::string getResultBodyModel()const;
  166. ServiceConfig getServiceConfig()const;
  167. std::vector<ConstantParameter> getConstantParameters()const;
  168. std::vector<ResultDescription> getResultDescriptions()const;
  169. OpenIdConnectConfig getOpenIdConnectConfig()const;
  170. std::string getAuthType()const;
  171. RequestConfig getRequestConfig()const;
  172. std::string getResultSample()const;
  173. bool getDisableInternet()const;
  174. std::string getStageName()const;
  175. std::string getApiName()const;
  176. std::string getResultType()const;
  177. std::string getFailResultSample()const;
  178. std::vector<CustomSystemParameter> getCustomSystemParameters()const;
  179. std::string getGroupId()const;
  180. std::string getDeployedTime()const;
  181. std::vector<SystemParameter> getSystemParameters()const;
  182. std::string getVisibility()const;
  183. std::vector<ServiceParameter> getServiceParameters()const;
  184. std::string getRegionId()const;
  185. std::string getApiId()const;
  186. protected:
  187. void parse(const std::string &payload);
  188. private:
  189. std::string groupName_;
  190. std::string description_;
  191. bool forceNonceCheck_;
  192. std::string allowSignatureMethod_;
  193. std::vector<ErrorCodeSample> errorCodeSamples_;
  194. std::vector<RequestParameter> requestParameters_;
  195. std::vector<ServiceParameterMap> serviceParametersMap_;
  196. std::string resultBodyModel_;
  197. ServiceConfig serviceConfig_;
  198. std::vector<ConstantParameter> constantParameters_;
  199. std::vector<ResultDescription> resultDescriptions_;
  200. OpenIdConnectConfig openIdConnectConfig_;
  201. std::string authType_;
  202. RequestConfig requestConfig_;
  203. std::string resultSample_;
  204. bool disableInternet_;
  205. std::string stageName_;
  206. std::string apiName_;
  207. std::string resultType_;
  208. std::string failResultSample_;
  209. std::vector<CustomSystemParameter> customSystemParameters_;
  210. std::string groupId_;
  211. std::string deployedTime_;
  212. std::vector<SystemParameter> systemParameters_;
  213. std::string visibility_;
  214. std::vector<ServiceParameter> serviceParameters_;
  215. std::string regionId_;
  216. std::string apiId_;
  217. };
  218. }
  219. }
  220. }
  221. #endif // !ALIBABACLOUD_CLOUDAPI_MODEL_DESCRIBEDEPLOYEDAPIRESULT_H_