230 lines
6.6 KiB
C++
230 lines
6.6 KiB
C++
/*
|
|
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
|
*
|
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
* you may not use this file except in compliance with the License.
|
|
* You may obtain a copy of the License at
|
|
*
|
|
* http://www.apache.org/licenses/LICENSE-2.0
|
|
*
|
|
* Unless required by applicable law or agreed to in writing, software
|
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
* See the License for the specific language governing permissions and
|
|
* limitations under the License.
|
|
*/
|
|
|
|
#ifndef ALIBABACLOUD_CLOUDAPI_MODEL_DESCRIBEAPIHISTORYRESULT_H_
|
|
#define ALIBABACLOUD_CLOUDAPI_MODEL_DESCRIBEAPIHISTORYRESULT_H_
|
|
|
|
#include <string>
|
|
#include <vector>
|
|
#include <utility>
|
|
#include <alibabacloud/core/ServiceResult.h>
|
|
#include <alibabacloud/cloudapi/CloudAPIExport.h>
|
|
|
|
namespace AlibabaCloud
|
|
{
|
|
namespace CloudAPI
|
|
{
|
|
namespace Model
|
|
{
|
|
class ALIBABACLOUD_CLOUDAPI_EXPORT DescribeApiHistoryResult : public ServiceResult
|
|
{
|
|
public:
|
|
struct RequestConfig
|
|
{
|
|
std::string requestPath;
|
|
std::string requestMode;
|
|
std::string bodyModel;
|
|
std::string requestProtocol;
|
|
std::string requestHttpMethod;
|
|
std::string postBodyDescription;
|
|
std::string bodyFormat;
|
|
};
|
|
struct ServiceConfig
|
|
{
|
|
struct VpcConfig
|
|
{
|
|
std::string vpcId;
|
|
std::string instanceId;
|
|
int port;
|
|
std::string name;
|
|
};
|
|
struct FunctionComputeConfig
|
|
{
|
|
std::string functionName;
|
|
std::string serviceName;
|
|
std::string regionId;
|
|
std::string roleArn;
|
|
};
|
|
struct MockHeader
|
|
{
|
|
std::string headerValue;
|
|
std::string headerName;
|
|
};
|
|
std::string serviceAddress;
|
|
FunctionComputeConfig functionComputeConfig;
|
|
std::string mockResult;
|
|
VpcConfig vpcConfig;
|
|
std::string serviceVpcEnable;
|
|
int serviceTimeout;
|
|
int mockStatusCode;
|
|
std::vector<MockHeader> mockHeaders;
|
|
std::string serviceProtocol;
|
|
std::string serviceHttpMethod;
|
|
std::string servicePath;
|
|
std::string mock;
|
|
};
|
|
struct OpenIdConnectConfig
|
|
{
|
|
std::string openIdApiType;
|
|
std::string publicKey;
|
|
std::string idTokenParamName;
|
|
std::string publicKeyId;
|
|
};
|
|
struct ErrorCodeSample
|
|
{
|
|
std::string description;
|
|
std::string message;
|
|
std::string code;
|
|
};
|
|
struct ResultDescription
|
|
{
|
|
std::string type;
|
|
std::string description;
|
|
std::string pid;
|
|
std::string id;
|
|
bool hasChild;
|
|
std::string key;
|
|
std::string name;
|
|
bool mandatory;
|
|
};
|
|
struct SystemParameter
|
|
{
|
|
std::string demoValue;
|
|
std::string description;
|
|
std::string parameterName;
|
|
std::string serviceParameterName;
|
|
std::string location;
|
|
};
|
|
struct CustomSystemParameter
|
|
{
|
|
std::string demoValue;
|
|
std::string description;
|
|
std::string parameterName;
|
|
std::string serviceParameterName;
|
|
std::string location;
|
|
};
|
|
struct ConstantParameter
|
|
{
|
|
std::string description;
|
|
std::string constantValue;
|
|
std::string serviceParameterName;
|
|
std::string location;
|
|
};
|
|
struct RequestParameter
|
|
{
|
|
std::string regularExpression;
|
|
std::string parameterType;
|
|
std::string jsonScheme;
|
|
std::string description;
|
|
std::string apiParameterName;
|
|
std::string enumValue;
|
|
long minLength;
|
|
long maxValue;
|
|
long maxLength;
|
|
std::string demoValue;
|
|
std::string defaultValue;
|
|
std::string required;
|
|
int docOrder;
|
|
long minValue;
|
|
std::string docShow;
|
|
std::string location;
|
|
};
|
|
struct ServiceParameter
|
|
{
|
|
std::string parameterType;
|
|
std::string serviceParameterName;
|
|
std::string location;
|
|
};
|
|
struct ServiceParameterMap
|
|
{
|
|
std::string requestParameterName;
|
|
std::string serviceParameterName;
|
|
};
|
|
|
|
|
|
DescribeApiHistoryResult();
|
|
explicit DescribeApiHistoryResult(const std::string &payload);
|
|
~DescribeApiHistoryResult();
|
|
std::string getGroupName()const;
|
|
std::string getDescription()const;
|
|
bool getForceNonceCheck()const;
|
|
std::string getAllowSignatureMethod()const;
|
|
std::vector<ErrorCodeSample> getErrorCodeSamples()const;
|
|
std::vector<RequestParameter> getRequestParameters()const;
|
|
std::vector<ServiceParameterMap> getServiceParametersMap()const;
|
|
std::string getResultBodyModel()const;
|
|
ServiceConfig getServiceConfig()const;
|
|
std::vector<ConstantParameter> getConstantParameters()const;
|
|
std::vector<ResultDescription> getResultDescriptions()const;
|
|
OpenIdConnectConfig getOpenIdConnectConfig()const;
|
|
std::string getAuthType()const;
|
|
std::string getStatus()const;
|
|
RequestConfig getRequestConfig()const;
|
|
std::string getResultSample()const;
|
|
bool getDisableInternet()const;
|
|
std::string getStageName()const;
|
|
std::string getApiName()const;
|
|
std::string getResultType()const;
|
|
std::string getFailResultSample()const;
|
|
std::vector<CustomSystemParameter> getCustomSystemParameters()const;
|
|
std::string getGroupId()const;
|
|
std::string getDeployedTime()const;
|
|
std::vector<SystemParameter> getSystemParameters()const;
|
|
std::string getVisibility()const;
|
|
std::vector<ServiceParameter> getServiceParameters()const;
|
|
std::string getRegionId()const;
|
|
std::string getApiId()const;
|
|
std::string getHistoryVersion()const;
|
|
|
|
protected:
|
|
void parse(const std::string &payload);
|
|
private:
|
|
std::string groupName_;
|
|
std::string description_;
|
|
bool forceNonceCheck_;
|
|
std::string allowSignatureMethod_;
|
|
std::vector<ErrorCodeSample> errorCodeSamples_;
|
|
std::vector<RequestParameter> requestParameters_;
|
|
std::vector<ServiceParameterMap> serviceParametersMap_;
|
|
std::string resultBodyModel_;
|
|
ServiceConfig serviceConfig_;
|
|
std::vector<ConstantParameter> constantParameters_;
|
|
std::vector<ResultDescription> resultDescriptions_;
|
|
OpenIdConnectConfig openIdConnectConfig_;
|
|
std::string authType_;
|
|
std::string status_;
|
|
RequestConfig requestConfig_;
|
|
std::string resultSample_;
|
|
bool disableInternet_;
|
|
std::string stageName_;
|
|
std::string apiName_;
|
|
std::string resultType_;
|
|
std::string failResultSample_;
|
|
std::vector<CustomSystemParameter> customSystemParameters_;
|
|
std::string groupId_;
|
|
std::string deployedTime_;
|
|
std::vector<SystemParameter> systemParameters_;
|
|
std::string visibility_;
|
|
std::vector<ServiceParameter> serviceParameters_;
|
|
std::string regionId_;
|
|
std::string apiId_;
|
|
std::string historyVersion_;
|
|
|
|
};
|
|
}
|
|
}
|
|
}
|
|
#endif // !ALIBABACLOUD_CLOUDAPI_MODEL_DESCRIBEAPIHISTORYRESULT_H_
|