App-related actions support tag authentication.

This commit is contained in:
sdk-team
2019-07-25 13:57:09 +08:00
parent 7237daffa7
commit 3e04864236
415 changed files with 30507 additions and 1 deletions

View File

@@ -0,0 +1,82 @@
/*
* 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.
*/
#include <alibabacloud/cloudapi/model/AbolishApiRequest.h>
using AlibabaCloud::CloudAPI::Model::AbolishApiRequest;
AbolishApiRequest::AbolishApiRequest() :
RpcServiceRequest("cloudapi", "2016-07-14", "AbolishApi")
{}
AbolishApiRequest::~AbolishApiRequest()
{}
std::string AbolishApiRequest::getStageName()const
{
return stageName_;
}
void AbolishApiRequest::setStageName(const std::string& stageName)
{
stageName_ = stageName;
setCoreParameter("StageName", stageName);
}
std::string AbolishApiRequest::getSecurityToken()const
{
return securityToken_;
}
void AbolishApiRequest::setSecurityToken(const std::string& securityToken)
{
securityToken_ = securityToken;
setCoreParameter("SecurityToken", securityToken);
}
std::string AbolishApiRequest::getGroupId()const
{
return groupId_;
}
void AbolishApiRequest::setGroupId(const std::string& groupId)
{
groupId_ = groupId;
setCoreParameter("GroupId", groupId);
}
std::string AbolishApiRequest::getApiId()const
{
return apiId_;
}
void AbolishApiRequest::setApiId(const std::string& apiId)
{
apiId_ = apiId;
setCoreParameter("ApiId", apiId);
}
std::string AbolishApiRequest::getAccessKeyId()const
{
return accessKeyId_;
}
void AbolishApiRequest::setAccessKeyId(const std::string& accessKeyId)
{
accessKeyId_ = accessKeyId;
setCoreParameter("AccessKeyId", accessKeyId);
}

View File

@@ -0,0 +1,45 @@
/*
* 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.
*/
#include <alibabacloud/cloudapi/model/AbolishApiResult.h>
#include <json/json.h>
using namespace AlibabaCloud::CloudAPI;
using namespace AlibabaCloud::CloudAPI::Model;
AbolishApiResult::AbolishApiResult() :
ServiceResult()
{}
AbolishApiResult::AbolishApiResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
AbolishApiResult::~AbolishApiResult()
{}
void AbolishApiResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
}

View File

@@ -0,0 +1,82 @@
/*
* 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.
*/
#include <alibabacloud/cloudapi/model/AddIpControlPolicyItemRequest.h>
using AlibabaCloud::CloudAPI::Model::AddIpControlPolicyItemRequest;
AddIpControlPolicyItemRequest::AddIpControlPolicyItemRequest() :
RpcServiceRequest("cloudapi", "2016-07-14", "AddIpControlPolicyItem")
{}
AddIpControlPolicyItemRequest::~AddIpControlPolicyItemRequest()
{}
std::string AddIpControlPolicyItemRequest::getIpControlId()const
{
return ipControlId_;
}
void AddIpControlPolicyItemRequest::setIpControlId(const std::string& ipControlId)
{
ipControlId_ = ipControlId;
setCoreParameter("IpControlId", ipControlId);
}
std::string AddIpControlPolicyItemRequest::getSecurityToken()const
{
return securityToken_;
}
void AddIpControlPolicyItemRequest::setSecurityToken(const std::string& securityToken)
{
securityToken_ = securityToken;
setCoreParameter("SecurityToken", securityToken);
}
std::string AddIpControlPolicyItemRequest::getAppId()const
{
return appId_;
}
void AddIpControlPolicyItemRequest::setAppId(const std::string& appId)
{
appId_ = appId;
setCoreParameter("AppId", appId);
}
std::string AddIpControlPolicyItemRequest::getCidrIp()const
{
return cidrIp_;
}
void AddIpControlPolicyItemRequest::setCidrIp(const std::string& cidrIp)
{
cidrIp_ = cidrIp;
setCoreParameter("CidrIp", cidrIp);
}
std::string AddIpControlPolicyItemRequest::getAccessKeyId()const
{
return accessKeyId_;
}
void AddIpControlPolicyItemRequest::setAccessKeyId(const std::string& accessKeyId)
{
accessKeyId_ = accessKeyId;
setCoreParameter("AccessKeyId", accessKeyId);
}

View File

@@ -0,0 +1,52 @@
/*
* 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.
*/
#include <alibabacloud/cloudapi/model/AddIpControlPolicyItemResult.h>
#include <json/json.h>
using namespace AlibabaCloud::CloudAPI;
using namespace AlibabaCloud::CloudAPI::Model;
AddIpControlPolicyItemResult::AddIpControlPolicyItemResult() :
ServiceResult()
{}
AddIpControlPolicyItemResult::AddIpControlPolicyItemResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
AddIpControlPolicyItemResult::~AddIpControlPolicyItemResult()
{}
void AddIpControlPolicyItemResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
if(!value["PolicyItemId"].isNull())
policyItemId_ = value["PolicyItemId"].asString();
}
std::string AddIpControlPolicyItemResult::getPolicyItemId()const
{
return policyItemId_;
}

View File

@@ -0,0 +1,93 @@
/*
* 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.
*/
#include <alibabacloud/cloudapi/model/AddTrafficSpecialControlRequest.h>
using AlibabaCloud::CloudAPI::Model::AddTrafficSpecialControlRequest;
AddTrafficSpecialControlRequest::AddTrafficSpecialControlRequest() :
RpcServiceRequest("cloudapi", "2016-07-14", "AddTrafficSpecialControl")
{}
AddTrafficSpecialControlRequest::~AddTrafficSpecialControlRequest()
{}
std::string AddTrafficSpecialControlRequest::getTrafficControlId()const
{
return trafficControlId_;
}
void AddTrafficSpecialControlRequest::setTrafficControlId(const std::string& trafficControlId)
{
trafficControlId_ = trafficControlId;
setCoreParameter("TrafficControlId", trafficControlId);
}
std::string AddTrafficSpecialControlRequest::getSpecialKey()const
{
return specialKey_;
}
void AddTrafficSpecialControlRequest::setSpecialKey(const std::string& specialKey)
{
specialKey_ = specialKey;
setCoreParameter("SpecialKey", specialKey);
}
std::string AddTrafficSpecialControlRequest::getSecurityToken()const
{
return securityToken_;
}
void AddTrafficSpecialControlRequest::setSecurityToken(const std::string& securityToken)
{
securityToken_ = securityToken;
setCoreParameter("SecurityToken", securityToken);
}
int AddTrafficSpecialControlRequest::getTrafficValue()const
{
return trafficValue_;
}
void AddTrafficSpecialControlRequest::setTrafficValue(int trafficValue)
{
trafficValue_ = trafficValue;
setCoreParameter("TrafficValue", std::to_string(trafficValue));
}
std::string AddTrafficSpecialControlRequest::getSpecialType()const
{
return specialType_;
}
void AddTrafficSpecialControlRequest::setSpecialType(const std::string& specialType)
{
specialType_ = specialType;
setCoreParameter("SpecialType", specialType);
}
std::string AddTrafficSpecialControlRequest::getAccessKeyId()const
{
return accessKeyId_;
}
void AddTrafficSpecialControlRequest::setAccessKeyId(const std::string& accessKeyId)
{
accessKeyId_ = accessKeyId;
setCoreParameter("AccessKeyId", accessKeyId);
}

View File

@@ -0,0 +1,45 @@
/*
* 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.
*/
#include <alibabacloud/cloudapi/model/AddTrafficSpecialControlResult.h>
#include <json/json.h>
using namespace AlibabaCloud::CloudAPI;
using namespace AlibabaCloud::CloudAPI::Model;
AddTrafficSpecialControlResult::AddTrafficSpecialControlResult() :
ServiceResult()
{}
AddTrafficSpecialControlResult::AddTrafficSpecialControlResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
AddTrafficSpecialControlResult::~AddTrafficSpecialControlResult()
{}
void AddTrafficSpecialControlResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
}

View File

@@ -0,0 +1,93 @@
/*
* 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.
*/
#include <alibabacloud/cloudapi/model/CreateApiGroupRequest.h>
using AlibabaCloud::CloudAPI::Model::CreateApiGroupRequest;
CreateApiGroupRequest::CreateApiGroupRequest() :
RpcServiceRequest("cloudapi", "2016-07-14", "CreateApiGroup")
{}
CreateApiGroupRequest::~CreateApiGroupRequest()
{}
std::string CreateApiGroupRequest::getInstanceId()const
{
return instanceId_;
}
void CreateApiGroupRequest::setInstanceId(const std::string& instanceId)
{
instanceId_ = instanceId;
setCoreParameter("InstanceId", instanceId);
}
std::string CreateApiGroupRequest::getSecurityToken()const
{
return securityToken_;
}
void CreateApiGroupRequest::setSecurityToken(const std::string& securityToken)
{
securityToken_ = securityToken;
setCoreParameter("SecurityToken", securityToken);
}
std::string CreateApiGroupRequest::getDescription()const
{
return description_;
}
void CreateApiGroupRequest::setDescription(const std::string& description)
{
description_ = description;
setCoreParameter("Description", description);
}
std::string CreateApiGroupRequest::getSource()const
{
return source_;
}
void CreateApiGroupRequest::setSource(const std::string& source)
{
source_ = source;
setCoreParameter("Source", source);
}
std::string CreateApiGroupRequest::getGroupName()const
{
return groupName_;
}
void CreateApiGroupRequest::setGroupName(const std::string& groupName)
{
groupName_ = groupName;
setCoreParameter("GroupName", groupName);
}
std::string CreateApiGroupRequest::getAccessKeyId()const
{
return accessKeyId_;
}
void CreateApiGroupRequest::setAccessKeyId(const std::string& accessKeyId)
{
accessKeyId_ = accessKeyId;
setCoreParameter("AccessKeyId", accessKeyId);
}

View File

@@ -0,0 +1,87 @@
/*
* 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.
*/
#include <alibabacloud/cloudapi/model/CreateApiGroupResult.h>
#include <json/json.h>
using namespace AlibabaCloud::CloudAPI;
using namespace AlibabaCloud::CloudAPI::Model;
CreateApiGroupResult::CreateApiGroupResult() :
ServiceResult()
{}
CreateApiGroupResult::CreateApiGroupResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
CreateApiGroupResult::~CreateApiGroupResult()
{}
void CreateApiGroupResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
if(!value["GroupId"].isNull())
groupId_ = value["GroupId"].asString();
if(!value["GroupName"].isNull())
groupName_ = value["GroupName"].asString();
if(!value["SubDomain"].isNull())
subDomain_ = value["SubDomain"].asString();
if(!value["Description"].isNull())
description_ = value["Description"].asString();
if(!value["InstanceId"].isNull())
instanceId_ = value["InstanceId"].asString();
if(!value["InstanceType"].isNull())
instanceType_ = value["InstanceType"].asString();
}
std::string CreateApiGroupResult::getGroupName()const
{
return groupName_;
}
std::string CreateApiGroupResult::getSubDomain()const
{
return subDomain_;
}
std::string CreateApiGroupResult::getDescription()const
{
return description_;
}
std::string CreateApiGroupResult::getInstanceId()const
{
return instanceId_;
}
std::string CreateApiGroupResult::getInstanceType()const
{
return instanceType_;
}
std::string CreateApiGroupResult::getGroupId()const
{
return groupId_;
}

View File

@@ -0,0 +1,313 @@
/*
* 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.
*/
#include <alibabacloud/cloudapi/model/CreateApiRequest.h>
using AlibabaCloud::CloudAPI::Model::CreateApiRequest;
CreateApiRequest::CreateApiRequest() :
RpcServiceRequest("cloudapi", "2016-07-14", "CreateApi")
{}
CreateApiRequest::~CreateApiRequest()
{}
std::string CreateApiRequest::getWebSocketApiType()const
{
return webSocketApiType_;
}
void CreateApiRequest::setWebSocketApiType(const std::string& webSocketApiType)
{
webSocketApiType_ = webSocketApiType;
setCoreParameter("WebSocketApiType", webSocketApiType);
}
std::string CreateApiRequest::getErrorCodeSamples()const
{
return errorCodeSamples_;
}
void CreateApiRequest::setErrorCodeSamples(const std::string& errorCodeSamples)
{
errorCodeSamples_ = errorCodeSamples;
setCoreParameter("ErrorCodeSamples", errorCodeSamples);
}
std::string CreateApiRequest::getAppCodeAuthType()const
{
return appCodeAuthType_;
}
void CreateApiRequest::setAppCodeAuthType(const std::string& appCodeAuthType)
{
appCodeAuthType_ = appCodeAuthType;
setCoreParameter("AppCodeAuthType", appCodeAuthType);
}
std::string CreateApiRequest::getDescription()const
{
return description_;
}
void CreateApiRequest::setDescription(const std::string& description)
{
description_ = description;
setCoreParameter("Description", description);
}
bool CreateApiRequest::getDisableInternet()const
{
return disableInternet_;
}
void CreateApiRequest::setDisableInternet(bool disableInternet)
{
disableInternet_ = disableInternet;
setCoreParameter("DisableInternet", disableInternet ? "true" : "false");
}
std::string CreateApiRequest::getConstantParameters()const
{
return constantParameters_;
}
void CreateApiRequest::setConstantParameters(const std::string& constantParameters)
{
constantParameters_ = constantParameters;
setCoreParameter("ConstantParameters", constantParameters);
}
std::string CreateApiRequest::getAccessKeyId()const
{
return accessKeyId_;
}
void CreateApiRequest::setAccessKeyId(const std::string& accessKeyId)
{
accessKeyId_ = accessKeyId;
setCoreParameter("AccessKeyId", accessKeyId);
}
std::string CreateApiRequest::getAuthType()const
{
return authType_;
}
void CreateApiRequest::setAuthType(const std::string& authType)
{
authType_ = authType;
setCoreParameter("AuthType", authType);
}
std::string CreateApiRequest::getAllowSignatureMethod()const
{
return allowSignatureMethod_;
}
void CreateApiRequest::setAllowSignatureMethod(const std::string& allowSignatureMethod)
{
allowSignatureMethod_ = allowSignatureMethod;
setCoreParameter("AllowSignatureMethod", allowSignatureMethod);
}
std::string CreateApiRequest::getServiceParameters()const
{
return serviceParameters_;
}
void CreateApiRequest::setServiceParameters(const std::string& serviceParameters)
{
serviceParameters_ = serviceParameters;
setCoreParameter("ServiceParameters", serviceParameters);
}
std::string CreateApiRequest::getFailResultSample()const
{
return failResultSample_;
}
void CreateApiRequest::setFailResultSample(const std::string& failResultSample)
{
failResultSample_ = failResultSample;
setCoreParameter("FailResultSample", failResultSample);
}
std::string CreateApiRequest::getSystemParameters()const
{
return systemParameters_;
}
void CreateApiRequest::setSystemParameters(const std::string& systemParameters)
{
systemParameters_ = systemParameters;
setCoreParameter("SystemParameters", systemParameters);
}
std::string CreateApiRequest::getServiceParametersMap()const
{
return serviceParametersMap_;
}
void CreateApiRequest::setServiceParametersMap(const std::string& serviceParametersMap)
{
serviceParametersMap_ = serviceParametersMap;
setCoreParameter("ServiceParametersMap", serviceParametersMap);
}
std::string CreateApiRequest::getSecurityToken()const
{
return securityToken_;
}
void CreateApiRequest::setSecurityToken(const std::string& securityToken)
{
securityToken_ = securityToken;
setCoreParameter("SecurityToken", securityToken);
}
std::string CreateApiRequest::getOpenIdConnectConfig()const
{
return openIdConnectConfig_;
}
void CreateApiRequest::setOpenIdConnectConfig(const std::string& openIdConnectConfig)
{
openIdConnectConfig_ = openIdConnectConfig;
setCoreParameter("OpenIdConnectConfig", openIdConnectConfig);
}
std::string CreateApiRequest::getRequestParameters()const
{
return requestParameters_;
}
void CreateApiRequest::setRequestParameters(const std::string& requestParameters)
{
requestParameters_ = requestParameters;
setCoreParameter("RequestParameters", requestParameters);
}
std::string CreateApiRequest::getResultDescriptions()const
{
return resultDescriptions_;
}
void CreateApiRequest::setResultDescriptions(const std::string& resultDescriptions)
{
resultDescriptions_ = resultDescriptions;
setCoreParameter("ResultDescriptions", resultDescriptions);
}
std::string CreateApiRequest::getVisibility()const
{
return visibility_;
}
void CreateApiRequest::setVisibility(const std::string& visibility)
{
visibility_ = visibility;
setCoreParameter("Visibility", visibility);
}
std::string CreateApiRequest::getGroupId()const
{
return groupId_;
}
void CreateApiRequest::setGroupId(const std::string& groupId)
{
groupId_ = groupId;
setCoreParameter("GroupId", groupId);
}
std::string CreateApiRequest::getServiceConfig()const
{
return serviceConfig_;
}
void CreateApiRequest::setServiceConfig(const std::string& serviceConfig)
{
serviceConfig_ = serviceConfig;
setCoreParameter("ServiceConfig", serviceConfig);
}
std::string CreateApiRequest::getResultType()const
{
return resultType_;
}
void CreateApiRequest::setResultType(const std::string& resultType)
{
resultType_ = resultType;
setCoreParameter("ResultType", resultType);
}
std::string CreateApiRequest::getApiName()const
{
return apiName_;
}
void CreateApiRequest::setApiName(const std::string& apiName)
{
apiName_ = apiName;
setCoreParameter("ApiName", apiName);
}
std::string CreateApiRequest::getResultSample()const
{
return resultSample_;
}
void CreateApiRequest::setResultSample(const std::string& resultSample)
{
resultSample_ = resultSample;
setCoreParameter("ResultSample", resultSample);
}
bool CreateApiRequest::getForceNonceCheck()const
{
return forceNonceCheck_;
}
void CreateApiRequest::setForceNonceCheck(bool forceNonceCheck)
{
forceNonceCheck_ = forceNonceCheck;
setCoreParameter("ForceNonceCheck", forceNonceCheck ? "true" : "false");
}
std::string CreateApiRequest::getRequestConfig()const
{
return requestConfig_;
}
void CreateApiRequest::setRequestConfig(const std::string& requestConfig)
{
requestConfig_ = requestConfig;
setCoreParameter("RequestConfig", requestConfig);
}
std::string CreateApiRequest::getResultBodyModel()const
{
return resultBodyModel_;
}
void CreateApiRequest::setResultBodyModel(const std::string& resultBodyModel)
{
resultBodyModel_ = resultBodyModel;
setCoreParameter("ResultBodyModel", resultBodyModel);
}

View File

@@ -0,0 +1,52 @@
/*
* 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.
*/
#include <alibabacloud/cloudapi/model/CreateApiResult.h>
#include <json/json.h>
using namespace AlibabaCloud::CloudAPI;
using namespace AlibabaCloud::CloudAPI::Model;
CreateApiResult::CreateApiResult() :
ServiceResult()
{}
CreateApiResult::CreateApiResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
CreateApiResult::~CreateApiResult()
{}
void CreateApiResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
if(!value["ApiId"].isNull())
apiId_ = value["ApiId"].asString();
}
std::string CreateApiResult::getApiId()const
{
return apiId_;
}

View File

@@ -0,0 +1,115 @@
/*
* 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.
*/
#include <alibabacloud/cloudapi/model/CreateApiStageVariableRequest.h>
using AlibabaCloud::CloudAPI::Model::CreateApiStageVariableRequest;
CreateApiStageVariableRequest::CreateApiStageVariableRequest() :
RpcServiceRequest("cloudapi", "2016-07-14", "CreateApiStageVariable")
{}
CreateApiStageVariableRequest::~CreateApiStageVariableRequest()
{}
bool CreateApiStageVariableRequest::getSupportRoute()const
{
return supportRoute_;
}
void CreateApiStageVariableRequest::setSupportRoute(bool supportRoute)
{
supportRoute_ = supportRoute;
setCoreParameter("SupportRoute", supportRoute ? "true" : "false");
}
std::string CreateApiStageVariableRequest::getSecurityToken()const
{
return securityToken_;
}
void CreateApiStageVariableRequest::setSecurityToken(const std::string& securityToken)
{
securityToken_ = securityToken;
setCoreParameter("SecurityToken", securityToken);
}
std::string CreateApiStageVariableRequest::getVariableName()const
{
return variableName_;
}
void CreateApiStageVariableRequest::setVariableName(const std::string& variableName)
{
variableName_ = variableName;
setCoreParameter("VariableName", variableName);
}
std::string CreateApiStageVariableRequest::getVariableValue()const
{
return variableValue_;
}
void CreateApiStageVariableRequest::setVariableValue(const std::string& variableValue)
{
variableValue_ = variableValue;
setCoreParameter("VariableValue", variableValue);
}
std::string CreateApiStageVariableRequest::getGroupId()const
{
return groupId_;
}
void CreateApiStageVariableRequest::setGroupId(const std::string& groupId)
{
groupId_ = groupId;
setCoreParameter("GroupId", groupId);
}
std::string CreateApiStageVariableRequest::getStageRouteModel()const
{
return stageRouteModel_;
}
void CreateApiStageVariableRequest::setStageRouteModel(const std::string& stageRouteModel)
{
stageRouteModel_ = stageRouteModel;
setCoreParameter("StageRouteModel", stageRouteModel);
}
std::string CreateApiStageVariableRequest::getAccessKeyId()const
{
return accessKeyId_;
}
void CreateApiStageVariableRequest::setAccessKeyId(const std::string& accessKeyId)
{
accessKeyId_ = accessKeyId;
setCoreParameter("AccessKeyId", accessKeyId);
}
std::string CreateApiStageVariableRequest::getStageId()const
{
return stageId_;
}
void CreateApiStageVariableRequest::setStageId(const std::string& stageId)
{
stageId_ = stageId;
setCoreParameter("StageId", stageId);
}

View File

@@ -0,0 +1,45 @@
/*
* 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.
*/
#include <alibabacloud/cloudapi/model/CreateApiStageVariableResult.h>
#include <json/json.h>
using namespace AlibabaCloud::CloudAPI;
using namespace AlibabaCloud::CloudAPI::Model;
CreateApiStageVariableResult::CreateApiStageVariableResult() :
ServiceResult()
{}
CreateApiStageVariableResult::CreateApiStageVariableResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
CreateApiStageVariableResult::~CreateApiStageVariableResult()
{}
void CreateApiStageVariableResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
}

View File

@@ -0,0 +1,71 @@
/*
* 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.
*/
#include <alibabacloud/cloudapi/model/CreateAppRequest.h>
using AlibabaCloud::CloudAPI::Model::CreateAppRequest;
CreateAppRequest::CreateAppRequest() :
RpcServiceRequest("cloudapi", "2016-07-14", "CreateApp")
{}
CreateAppRequest::~CreateAppRequest()
{}
std::string CreateAppRequest::getAppName()const
{
return appName_;
}
void CreateAppRequest::setAppName(const std::string& appName)
{
appName_ = appName;
setCoreParameter("AppName", appName);
}
std::string CreateAppRequest::getSecurityToken()const
{
return securityToken_;
}
void CreateAppRequest::setSecurityToken(const std::string& securityToken)
{
securityToken_ = securityToken;
setCoreParameter("SecurityToken", securityToken);
}
std::string CreateAppRequest::getDescription()const
{
return description_;
}
void CreateAppRequest::setDescription(const std::string& description)
{
description_ = description;
setCoreParameter("Description", description);
}
std::string CreateAppRequest::getAccessKeyId()const
{
return accessKeyId_;
}
void CreateAppRequest::setAccessKeyId(const std::string& accessKeyId)
{
accessKeyId_ = accessKeyId;
setCoreParameter("AccessKeyId", accessKeyId);
}

View File

@@ -0,0 +1,52 @@
/*
* 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.
*/
#include <alibabacloud/cloudapi/model/CreateAppResult.h>
#include <json/json.h>
using namespace AlibabaCloud::CloudAPI;
using namespace AlibabaCloud::CloudAPI::Model;
CreateAppResult::CreateAppResult() :
ServiceResult()
{}
CreateAppResult::CreateAppResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
CreateAppResult::~CreateAppResult()
{}
void CreateAppResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
if(!value["AppId"].isNull())
appId_ = std::stol(value["AppId"].asString());
}
long CreateAppResult::getAppId()const
{
return appId_;
}

View File

@@ -0,0 +1,71 @@
/*
* 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.
*/
#include <alibabacloud/cloudapi/model/CreateIntranetDomainRequest.h>
using AlibabaCloud::CloudAPI::Model::CreateIntranetDomainRequest;
CreateIntranetDomainRequest::CreateIntranetDomainRequest() :
RpcServiceRequest("cloudapi", "2016-07-14", "CreateIntranetDomain")
{}
CreateIntranetDomainRequest::~CreateIntranetDomainRequest()
{}
bool CreateIntranetDomainRequest::getDeleteInternetDomain()const
{
return deleteInternetDomain_;
}
void CreateIntranetDomainRequest::setDeleteInternetDomain(bool deleteInternetDomain)
{
deleteInternetDomain_ = deleteInternetDomain;
setCoreParameter("DeleteInternetDomain", deleteInternetDomain ? "true" : "false");
}
std::string CreateIntranetDomainRequest::getSecurityToken()const
{
return securityToken_;
}
void CreateIntranetDomainRequest::setSecurityToken(const std::string& securityToken)
{
securityToken_ = securityToken;
setCoreParameter("SecurityToken", securityToken);
}
std::string CreateIntranetDomainRequest::getGroupId()const
{
return groupId_;
}
void CreateIntranetDomainRequest::setGroupId(const std::string& groupId)
{
groupId_ = groupId;
setCoreParameter("GroupId", groupId);
}
std::string CreateIntranetDomainRequest::getAccessKeyId()const
{
return accessKeyId_;
}
void CreateIntranetDomainRequest::setAccessKeyId(const std::string& accessKeyId)
{
accessKeyId_ = accessKeyId;
setCoreParameter("AccessKeyId", accessKeyId);
}

View File

@@ -0,0 +1,52 @@
/*
* 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.
*/
#include <alibabacloud/cloudapi/model/CreateIntranetDomainResult.h>
#include <json/json.h>
using namespace AlibabaCloud::CloudAPI;
using namespace AlibabaCloud::CloudAPI::Model;
CreateIntranetDomainResult::CreateIntranetDomainResult() :
ServiceResult()
{}
CreateIntranetDomainResult::CreateIntranetDomainResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
CreateIntranetDomainResult::~CreateIntranetDomainResult()
{}
void CreateIntranetDomainResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
if(!value["DomainName"].isNull())
domainName_ = value["DomainName"].asString();
}
std::string CreateIntranetDomainResult::getDomainName()const
{
return domainName_;
}

View File

@@ -0,0 +1,99 @@
/*
* 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.
*/
#include <alibabacloud/cloudapi/model/CreateIpControlRequest.h>
using AlibabaCloud::CloudAPI::Model::CreateIpControlRequest;
CreateIpControlRequest::CreateIpControlRequest() :
RpcServiceRequest("cloudapi", "2016-07-14", "CreateIpControl")
{}
CreateIpControlRequest::~CreateIpControlRequest()
{}
std::string CreateIpControlRequest::getSecurityToken()const
{
return securityToken_;
}
void CreateIpControlRequest::setSecurityToken(const std::string& securityToken)
{
securityToken_ = securityToken;
setCoreParameter("SecurityToken", securityToken);
}
std::string CreateIpControlRequest::getIpControlName()const
{
return ipControlName_;
}
void CreateIpControlRequest::setIpControlName(const std::string& ipControlName)
{
ipControlName_ = ipControlName;
setCoreParameter("IpControlName", ipControlName);
}
std::string CreateIpControlRequest::getIpControlType()const
{
return ipControlType_;
}
void CreateIpControlRequest::setIpControlType(const std::string& ipControlType)
{
ipControlType_ = ipControlType;
setCoreParameter("IpControlType", ipControlType);
}
std::vector<CreateIpControlRequest::IpControlPolicys> CreateIpControlRequest::getIpControlPolicys()const
{
return ipControlPolicys_;
}
void CreateIpControlRequest::setIpControlPolicys(const std::vector<IpControlPolicys>& ipControlPolicys)
{
ipControlPolicys_ = ipControlPolicys;
int i = 0;
for(int i = 0; i!= ipControlPolicys.size(); i++) {
auto obj = ipControlPolicys.at(i);
std::string str ="IpControlPolicys."+ std::to_string(i);
setCoreParameter(str + ".AppId", obj.appId);
setCoreParameter(str + ".CidrIp", obj.cidrIp);
}
}
std::string CreateIpControlRequest::getDescription()const
{
return description_;
}
void CreateIpControlRequest::setDescription(const std::string& description)
{
description_ = description;
setCoreParameter("Description", description);
}
std::string CreateIpControlRequest::getAccessKeyId()const
{
return accessKeyId_;
}
void CreateIpControlRequest::setAccessKeyId(const std::string& accessKeyId)
{
accessKeyId_ = accessKeyId;
setCoreParameter("AccessKeyId", accessKeyId);
}

View File

@@ -0,0 +1,52 @@
/*
* 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.
*/
#include <alibabacloud/cloudapi/model/CreateIpControlResult.h>
#include <json/json.h>
using namespace AlibabaCloud::CloudAPI;
using namespace AlibabaCloud::CloudAPI::Model;
CreateIpControlResult::CreateIpControlResult() :
ServiceResult()
{}
CreateIpControlResult::CreateIpControlResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
CreateIpControlResult::~CreateIpControlResult()
{}
void CreateIpControlResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
if(!value["IpControlId"].isNull())
ipControlId_ = value["IpControlId"].asString();
}
std::string CreateIpControlResult::getIpControlId()const
{
return ipControlId_;
}

View File

@@ -0,0 +1,93 @@
/*
* 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.
*/
#include <alibabacloud/cloudapi/model/CreateLogConfigRequest.h>
using AlibabaCloud::CloudAPI::Model::CreateLogConfigRequest;
CreateLogConfigRequest::CreateLogConfigRequest() :
RpcServiceRequest("cloudapi", "2016-07-14", "CreateLogConfig")
{}
CreateLogConfigRequest::~CreateLogConfigRequest()
{}
std::string CreateLogConfigRequest::getSlsLogStore()const
{
return slsLogStore_;
}
void CreateLogConfigRequest::setSlsLogStore(const std::string& slsLogStore)
{
slsLogStore_ = slsLogStore;
setCoreParameter("SlsLogStore", slsLogStore);
}
std::string CreateLogConfigRequest::getLogType()const
{
return logType_;
}
void CreateLogConfigRequest::setLogType(const std::string& logType)
{
logType_ = logType;
setCoreParameter("LogType", logType);
}
std::string CreateLogConfigRequest::getSecurityToken()const
{
return securityToken_;
}
void CreateLogConfigRequest::setSecurityToken(const std::string& securityToken)
{
securityToken_ = securityToken;
setCoreParameter("SecurityToken", securityToken);
}
std::string CreateLogConfigRequest::getRegionId()const
{
return regionId_;
}
void CreateLogConfigRequest::setRegionId(const std::string& regionId)
{
regionId_ = regionId;
setCoreParameter("RegionId", regionId);
}
std::string CreateLogConfigRequest::getSlsProject()const
{
return slsProject_;
}
void CreateLogConfigRequest::setSlsProject(const std::string& slsProject)
{
slsProject_ = slsProject;
setCoreParameter("SlsProject", slsProject);
}
std::string CreateLogConfigRequest::getAccessKeyId()const
{
return accessKeyId_;
}
void CreateLogConfigRequest::setAccessKeyId(const std::string& accessKeyId)
{
accessKeyId_ = accessKeyId;
setCoreParameter("AccessKeyId", accessKeyId);
}

View File

@@ -0,0 +1,45 @@
/*
* 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.
*/
#include <alibabacloud/cloudapi/model/CreateLogConfigResult.h>
#include <json/json.h>
using namespace AlibabaCloud::CloudAPI;
using namespace AlibabaCloud::CloudAPI::Model;
CreateLogConfigResult::CreateLogConfigResult() :
ServiceResult()
{}
CreateLogConfigResult::CreateLogConfigResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
CreateLogConfigResult::~CreateLogConfigResult()
{}
void CreateLogConfigResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
}

View File

@@ -0,0 +1,82 @@
/*
* 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.
*/
#include <alibabacloud/cloudapi/model/CreateSignatureRequest.h>
using AlibabaCloud::CloudAPI::Model::CreateSignatureRequest;
CreateSignatureRequest::CreateSignatureRequest() :
RpcServiceRequest("cloudapi", "2016-07-14", "CreateSignature")
{}
CreateSignatureRequest::~CreateSignatureRequest()
{}
std::string CreateSignatureRequest::getSecurityToken()const
{
return securityToken_;
}
void CreateSignatureRequest::setSecurityToken(const std::string& securityToken)
{
securityToken_ = securityToken;
setCoreParameter("SecurityToken", securityToken);
}
std::string CreateSignatureRequest::getSignatureName()const
{
return signatureName_;
}
void CreateSignatureRequest::setSignatureName(const std::string& signatureName)
{
signatureName_ = signatureName;
setCoreParameter("SignatureName", signatureName);
}
std::string CreateSignatureRequest::getSignatureKey()const
{
return signatureKey_;
}
void CreateSignatureRequest::setSignatureKey(const std::string& signatureKey)
{
signatureKey_ = signatureKey;
setCoreParameter("SignatureKey", signatureKey);
}
std::string CreateSignatureRequest::getSignatureSecret()const
{
return signatureSecret_;
}
void CreateSignatureRequest::setSignatureSecret(const std::string& signatureSecret)
{
signatureSecret_ = signatureSecret;
setCoreParameter("SignatureSecret", signatureSecret);
}
std::string CreateSignatureRequest::getAccessKeyId()const
{
return accessKeyId_;
}
void CreateSignatureRequest::setAccessKeyId(const std::string& accessKeyId)
{
accessKeyId_ = accessKeyId;
setCoreParameter("AccessKeyId", accessKeyId);
}

View File

@@ -0,0 +1,59 @@
/*
* 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.
*/
#include <alibabacloud/cloudapi/model/CreateSignatureResult.h>
#include <json/json.h>
using namespace AlibabaCloud::CloudAPI;
using namespace AlibabaCloud::CloudAPI::Model;
CreateSignatureResult::CreateSignatureResult() :
ServiceResult()
{}
CreateSignatureResult::CreateSignatureResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
CreateSignatureResult::~CreateSignatureResult()
{}
void CreateSignatureResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
if(!value["SignatureId"].isNull())
signatureId_ = value["SignatureId"].asString();
if(!value["SignatureName"].isNull())
signatureName_ = value["SignatureName"].asString();
}
std::string CreateSignatureResult::getSignatureId()const
{
return signatureId_;
}
std::string CreateSignatureResult::getSignatureName()const
{
return signatureName_;
}

View File

@@ -0,0 +1,115 @@
/*
* 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.
*/
#include <alibabacloud/cloudapi/model/CreateTrafficControlRequest.h>
using AlibabaCloud::CloudAPI::Model::CreateTrafficControlRequest;
CreateTrafficControlRequest::CreateTrafficControlRequest() :
RpcServiceRequest("cloudapi", "2016-07-14", "CreateTrafficControl")
{}
CreateTrafficControlRequest::~CreateTrafficControlRequest()
{}
int CreateTrafficControlRequest::getApiDefault()const
{
return apiDefault_;
}
void CreateTrafficControlRequest::setApiDefault(int apiDefault)
{
apiDefault_ = apiDefault;
setCoreParameter("ApiDefault", std::to_string(apiDefault));
}
std::string CreateTrafficControlRequest::getSecurityToken()const
{
return securityToken_;
}
void CreateTrafficControlRequest::setSecurityToken(const std::string& securityToken)
{
securityToken_ = securityToken;
setCoreParameter("SecurityToken", securityToken);
}
std::string CreateTrafficControlRequest::getTrafficControlName()const
{
return trafficControlName_;
}
void CreateTrafficControlRequest::setTrafficControlName(const std::string& trafficControlName)
{
trafficControlName_ = trafficControlName;
setCoreParameter("TrafficControlName", trafficControlName);
}
std::string CreateTrafficControlRequest::getTrafficControlUnit()const
{
return trafficControlUnit_;
}
void CreateTrafficControlRequest::setTrafficControlUnit(const std::string& trafficControlUnit)
{
trafficControlUnit_ = trafficControlUnit;
setCoreParameter("TrafficControlUnit", trafficControlUnit);
}
std::string CreateTrafficControlRequest::getDescription()const
{
return description_;
}
void CreateTrafficControlRequest::setDescription(const std::string& description)
{
description_ = description;
setCoreParameter("Description", description);
}
int CreateTrafficControlRequest::getUserDefault()const
{
return userDefault_;
}
void CreateTrafficControlRequest::setUserDefault(int userDefault)
{
userDefault_ = userDefault;
setCoreParameter("UserDefault", std::to_string(userDefault));
}
int CreateTrafficControlRequest::getAppDefault()const
{
return appDefault_;
}
void CreateTrafficControlRequest::setAppDefault(int appDefault)
{
appDefault_ = appDefault;
setCoreParameter("AppDefault", std::to_string(appDefault));
}
std::string CreateTrafficControlRequest::getAccessKeyId()const
{
return accessKeyId_;
}
void CreateTrafficControlRequest::setAccessKeyId(const std::string& accessKeyId)
{
accessKeyId_ = accessKeyId;
setCoreParameter("AccessKeyId", accessKeyId);
}

View File

@@ -0,0 +1,52 @@
/*
* 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.
*/
#include <alibabacloud/cloudapi/model/CreateTrafficControlResult.h>
#include <json/json.h>
using namespace AlibabaCloud::CloudAPI;
using namespace AlibabaCloud::CloudAPI::Model;
CreateTrafficControlResult::CreateTrafficControlResult() :
ServiceResult()
{}
CreateTrafficControlResult::CreateTrafficControlResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
CreateTrafficControlResult::~CreateTrafficControlResult()
{}
void CreateTrafficControlResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
if(!value["TrafficControlId"].isNull())
trafficControlId_ = value["TrafficControlId"].asString();
}
std::string CreateTrafficControlResult::getTrafficControlId()const
{
return trafficControlId_;
}

View File

@@ -0,0 +1,60 @@
/*
* 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.
*/
#include <alibabacloud/cloudapi/model/DeleteAllTrafficSpecialControlRequest.h>
using AlibabaCloud::CloudAPI::Model::DeleteAllTrafficSpecialControlRequest;
DeleteAllTrafficSpecialControlRequest::DeleteAllTrafficSpecialControlRequest() :
RpcServiceRequest("cloudapi", "2016-07-14", "DeleteAllTrafficSpecialControl")
{}
DeleteAllTrafficSpecialControlRequest::~DeleteAllTrafficSpecialControlRequest()
{}
std::string DeleteAllTrafficSpecialControlRequest::getTrafficControlId()const
{
return trafficControlId_;
}
void DeleteAllTrafficSpecialControlRequest::setTrafficControlId(const std::string& trafficControlId)
{
trafficControlId_ = trafficControlId;
setCoreParameter("TrafficControlId", trafficControlId);
}
std::string DeleteAllTrafficSpecialControlRequest::getSecurityToken()const
{
return securityToken_;
}
void DeleteAllTrafficSpecialControlRequest::setSecurityToken(const std::string& securityToken)
{
securityToken_ = securityToken;
setCoreParameter("SecurityToken", securityToken);
}
std::string DeleteAllTrafficSpecialControlRequest::getAccessKeyId()const
{
return accessKeyId_;
}
void DeleteAllTrafficSpecialControlRequest::setAccessKeyId(const std::string& accessKeyId)
{
accessKeyId_ = accessKeyId;
setCoreParameter("AccessKeyId", accessKeyId);
}

View File

@@ -0,0 +1,45 @@
/*
* 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.
*/
#include <alibabacloud/cloudapi/model/DeleteAllTrafficSpecialControlResult.h>
#include <json/json.h>
using namespace AlibabaCloud::CloudAPI;
using namespace AlibabaCloud::CloudAPI::Model;
DeleteAllTrafficSpecialControlResult::DeleteAllTrafficSpecialControlResult() :
ServiceResult()
{}
DeleteAllTrafficSpecialControlResult::DeleteAllTrafficSpecialControlResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DeleteAllTrafficSpecialControlResult::~DeleteAllTrafficSpecialControlResult()
{}
void DeleteAllTrafficSpecialControlResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
}

View File

@@ -0,0 +1,60 @@
/*
* 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.
*/
#include <alibabacloud/cloudapi/model/DeleteApiGroupRequest.h>
using AlibabaCloud::CloudAPI::Model::DeleteApiGroupRequest;
DeleteApiGroupRequest::DeleteApiGroupRequest() :
RpcServiceRequest("cloudapi", "2016-07-14", "DeleteApiGroup")
{}
DeleteApiGroupRequest::~DeleteApiGroupRequest()
{}
std::string DeleteApiGroupRequest::getSecurityToken()const
{
return securityToken_;
}
void DeleteApiGroupRequest::setSecurityToken(const std::string& securityToken)
{
securityToken_ = securityToken;
setCoreParameter("SecurityToken", securityToken);
}
std::string DeleteApiGroupRequest::getGroupId()const
{
return groupId_;
}
void DeleteApiGroupRequest::setGroupId(const std::string& groupId)
{
groupId_ = groupId;
setCoreParameter("GroupId", groupId);
}
std::string DeleteApiGroupRequest::getAccessKeyId()const
{
return accessKeyId_;
}
void DeleteApiGroupRequest::setAccessKeyId(const std::string& accessKeyId)
{
accessKeyId_ = accessKeyId;
setCoreParameter("AccessKeyId", accessKeyId);
}

View File

@@ -0,0 +1,45 @@
/*
* 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.
*/
#include <alibabacloud/cloudapi/model/DeleteApiGroupResult.h>
#include <json/json.h>
using namespace AlibabaCloud::CloudAPI;
using namespace AlibabaCloud::CloudAPI::Model;
DeleteApiGroupResult::DeleteApiGroupResult() :
ServiceResult()
{}
DeleteApiGroupResult::DeleteApiGroupResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DeleteApiGroupResult::~DeleteApiGroupResult()
{}
void DeleteApiGroupResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
}

View File

@@ -0,0 +1,71 @@
/*
* 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.
*/
#include <alibabacloud/cloudapi/model/DeleteApiRequest.h>
using AlibabaCloud::CloudAPI::Model::DeleteApiRequest;
DeleteApiRequest::DeleteApiRequest() :
RpcServiceRequest("cloudapi", "2016-07-14", "DeleteApi")
{}
DeleteApiRequest::~DeleteApiRequest()
{}
std::string DeleteApiRequest::getSecurityToken()const
{
return securityToken_;
}
void DeleteApiRequest::setSecurityToken(const std::string& securityToken)
{
securityToken_ = securityToken;
setCoreParameter("SecurityToken", securityToken);
}
std::string DeleteApiRequest::getGroupId()const
{
return groupId_;
}
void DeleteApiRequest::setGroupId(const std::string& groupId)
{
groupId_ = groupId;
setCoreParameter("GroupId", groupId);
}
std::string DeleteApiRequest::getApiId()const
{
return apiId_;
}
void DeleteApiRequest::setApiId(const std::string& apiId)
{
apiId_ = apiId;
setCoreParameter("ApiId", apiId);
}
std::string DeleteApiRequest::getAccessKeyId()const
{
return accessKeyId_;
}
void DeleteApiRequest::setAccessKeyId(const std::string& accessKeyId)
{
accessKeyId_ = accessKeyId;
setCoreParameter("AccessKeyId", accessKeyId);
}

View File

@@ -0,0 +1,45 @@
/*
* 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.
*/
#include <alibabacloud/cloudapi/model/DeleteApiResult.h>
#include <json/json.h>
using namespace AlibabaCloud::CloudAPI;
using namespace AlibabaCloud::CloudAPI::Model;
DeleteApiResult::DeleteApiResult() :
ServiceResult()
{}
DeleteApiResult::DeleteApiResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DeleteApiResult::~DeleteApiResult()
{}
void DeleteApiResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
}

View File

@@ -0,0 +1,82 @@
/*
* 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.
*/
#include <alibabacloud/cloudapi/model/DeleteApiStageVariableRequest.h>
using AlibabaCloud::CloudAPI::Model::DeleteApiStageVariableRequest;
DeleteApiStageVariableRequest::DeleteApiStageVariableRequest() :
RpcServiceRequest("cloudapi", "2016-07-14", "DeleteApiStageVariable")
{}
DeleteApiStageVariableRequest::~DeleteApiStageVariableRequest()
{}
std::string DeleteApiStageVariableRequest::getSecurityToken()const
{
return securityToken_;
}
void DeleteApiStageVariableRequest::setSecurityToken(const std::string& securityToken)
{
securityToken_ = securityToken;
setCoreParameter("SecurityToken", securityToken);
}
std::string DeleteApiStageVariableRequest::getVariableName()const
{
return variableName_;
}
void DeleteApiStageVariableRequest::setVariableName(const std::string& variableName)
{
variableName_ = variableName;
setCoreParameter("VariableName", variableName);
}
std::string DeleteApiStageVariableRequest::getGroupId()const
{
return groupId_;
}
void DeleteApiStageVariableRequest::setGroupId(const std::string& groupId)
{
groupId_ = groupId;
setCoreParameter("GroupId", groupId);
}
std::string DeleteApiStageVariableRequest::getAccessKeyId()const
{
return accessKeyId_;
}
void DeleteApiStageVariableRequest::setAccessKeyId(const std::string& accessKeyId)
{
accessKeyId_ = accessKeyId;
setCoreParameter("AccessKeyId", accessKeyId);
}
std::string DeleteApiStageVariableRequest::getStageId()const
{
return stageId_;
}
void DeleteApiStageVariableRequest::setStageId(const std::string& stageId)
{
stageId_ = stageId;
setCoreParameter("StageId", stageId);
}

View File

@@ -0,0 +1,45 @@
/*
* 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.
*/
#include <alibabacloud/cloudapi/model/DeleteApiStageVariableResult.h>
#include <json/json.h>
using namespace AlibabaCloud::CloudAPI;
using namespace AlibabaCloud::CloudAPI::Model;
DeleteApiStageVariableResult::DeleteApiStageVariableResult() :
ServiceResult()
{}
DeleteApiStageVariableResult::DeleteApiStageVariableResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DeleteApiStageVariableResult::~DeleteApiStageVariableResult()
{}
void DeleteApiStageVariableResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
}

View File

@@ -0,0 +1,77 @@
/*
* 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.
*/
#include <alibabacloud/cloudapi/model/DeleteAppRequest.h>
using AlibabaCloud::CloudAPI::Model::DeleteAppRequest;
DeleteAppRequest::DeleteAppRequest() :
RpcServiceRequest("cloudapi", "2016-07-14", "DeleteApp")
{}
DeleteAppRequest::~DeleteAppRequest()
{}
std::string DeleteAppRequest::getSecurityToken()const
{
return securityToken_;
}
void DeleteAppRequest::setSecurityToken(const std::string& securityToken)
{
securityToken_ = securityToken;
setCoreParameter("SecurityToken", securityToken);
}
long DeleteAppRequest::getAppId()const
{
return appId_;
}
void DeleteAppRequest::setAppId(long appId)
{
appId_ = appId;
setCoreParameter("AppId", std::to_string(appId));
}
std::vector<DeleteAppRequest::Tag> DeleteAppRequest::getTag()const
{
return tag_;
}
void DeleteAppRequest::setTag(const std::vector<Tag>& tag)
{
tag_ = tag;
int i = 0;
for(int i = 0; i!= tag.size(); i++) {
auto obj = tag.at(i);
std::string str ="Tag."+ std::to_string(i);
setCoreParameter(str + ".Value", obj.value);
setCoreParameter(str + ".Key", obj.key);
}
}
std::string DeleteAppRequest::getAccessKeyId()const
{
return accessKeyId_;
}
void DeleteAppRequest::setAccessKeyId(const std::string& accessKeyId)
{
accessKeyId_ = accessKeyId;
setCoreParameter("AccessKeyId", accessKeyId);
}

View File

@@ -0,0 +1,45 @@
/*
* 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.
*/
#include <alibabacloud/cloudapi/model/DeleteAppResult.h>
#include <json/json.h>
using namespace AlibabaCloud::CloudAPI;
using namespace AlibabaCloud::CloudAPI::Model;
DeleteAppResult::DeleteAppResult() :
ServiceResult()
{}
DeleteAppResult::DeleteAppResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DeleteAppResult::~DeleteAppResult()
{}
void DeleteAppResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
}

View File

@@ -0,0 +1,82 @@
/*
* 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.
*/
#include <alibabacloud/cloudapi/model/DeleteDomainCertificateRequest.h>
using AlibabaCloud::CloudAPI::Model::DeleteDomainCertificateRequest;
DeleteDomainCertificateRequest::DeleteDomainCertificateRequest() :
RpcServiceRequest("cloudapi", "2016-07-14", "DeleteDomainCertificate")
{}
DeleteDomainCertificateRequest::~DeleteDomainCertificateRequest()
{}
std::string DeleteDomainCertificateRequest::getSecurityToken()const
{
return securityToken_;
}
void DeleteDomainCertificateRequest::setSecurityToken(const std::string& securityToken)
{
securityToken_ = securityToken;
setCoreParameter("SecurityToken", securityToken);
}
std::string DeleteDomainCertificateRequest::getGroupId()const
{
return groupId_;
}
void DeleteDomainCertificateRequest::setGroupId(const std::string& groupId)
{
groupId_ = groupId;
setCoreParameter("GroupId", groupId);
}
std::string DeleteDomainCertificateRequest::getCertificateId()const
{
return certificateId_;
}
void DeleteDomainCertificateRequest::setCertificateId(const std::string& certificateId)
{
certificateId_ = certificateId;
setCoreParameter("CertificateId", certificateId);
}
std::string DeleteDomainCertificateRequest::getDomainName()const
{
return domainName_;
}
void DeleteDomainCertificateRequest::setDomainName(const std::string& domainName)
{
domainName_ = domainName;
setCoreParameter("DomainName", domainName);
}
std::string DeleteDomainCertificateRequest::getAccessKeyId()const
{
return accessKeyId_;
}
void DeleteDomainCertificateRequest::setAccessKeyId(const std::string& accessKeyId)
{
accessKeyId_ = accessKeyId;
setCoreParameter("AccessKeyId", accessKeyId);
}

View File

@@ -0,0 +1,45 @@
/*
* 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.
*/
#include <alibabacloud/cloudapi/model/DeleteDomainCertificateResult.h>
#include <json/json.h>
using namespace AlibabaCloud::CloudAPI;
using namespace AlibabaCloud::CloudAPI::Model;
DeleteDomainCertificateResult::DeleteDomainCertificateResult() :
ServiceResult()
{}
DeleteDomainCertificateResult::DeleteDomainCertificateResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DeleteDomainCertificateResult::~DeleteDomainCertificateResult()
{}
void DeleteDomainCertificateResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
}

View File

@@ -0,0 +1,71 @@
/*
* 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.
*/
#include <alibabacloud/cloudapi/model/DeleteDomainRequest.h>
using AlibabaCloud::CloudAPI::Model::DeleteDomainRequest;
DeleteDomainRequest::DeleteDomainRequest() :
RpcServiceRequest("cloudapi", "2016-07-14", "DeleteDomain")
{}
DeleteDomainRequest::~DeleteDomainRequest()
{}
std::string DeleteDomainRequest::getSecurityToken()const
{
return securityToken_;
}
void DeleteDomainRequest::setSecurityToken(const std::string& securityToken)
{
securityToken_ = securityToken;
setCoreParameter("SecurityToken", securityToken);
}
std::string DeleteDomainRequest::getGroupId()const
{
return groupId_;
}
void DeleteDomainRequest::setGroupId(const std::string& groupId)
{
groupId_ = groupId;
setCoreParameter("GroupId", groupId);
}
std::string DeleteDomainRequest::getDomainName()const
{
return domainName_;
}
void DeleteDomainRequest::setDomainName(const std::string& domainName)
{
domainName_ = domainName;
setCoreParameter("DomainName", domainName);
}
std::string DeleteDomainRequest::getAccessKeyId()const
{
return accessKeyId_;
}
void DeleteDomainRequest::setAccessKeyId(const std::string& accessKeyId)
{
accessKeyId_ = accessKeyId;
setCoreParameter("AccessKeyId", accessKeyId);
}

View File

@@ -0,0 +1,45 @@
/*
* 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.
*/
#include <alibabacloud/cloudapi/model/DeleteDomainResult.h>
#include <json/json.h>
using namespace AlibabaCloud::CloudAPI;
using namespace AlibabaCloud::CloudAPI::Model;
DeleteDomainResult::DeleteDomainResult() :
ServiceResult()
{}
DeleteDomainResult::DeleteDomainResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DeleteDomainResult::~DeleteDomainResult()
{}
void DeleteDomainResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
}

View File

@@ -0,0 +1,60 @@
/*
* 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.
*/
#include <alibabacloud/cloudapi/model/DeleteIpControlRequest.h>
using AlibabaCloud::CloudAPI::Model::DeleteIpControlRequest;
DeleteIpControlRequest::DeleteIpControlRequest() :
RpcServiceRequest("cloudapi", "2016-07-14", "DeleteIpControl")
{}
DeleteIpControlRequest::~DeleteIpControlRequest()
{}
std::string DeleteIpControlRequest::getIpControlId()const
{
return ipControlId_;
}
void DeleteIpControlRequest::setIpControlId(const std::string& ipControlId)
{
ipControlId_ = ipControlId;
setCoreParameter("IpControlId", ipControlId);
}
std::string DeleteIpControlRequest::getSecurityToken()const
{
return securityToken_;
}
void DeleteIpControlRequest::setSecurityToken(const std::string& securityToken)
{
securityToken_ = securityToken;
setCoreParameter("SecurityToken", securityToken);
}
std::string DeleteIpControlRequest::getAccessKeyId()const
{
return accessKeyId_;
}
void DeleteIpControlRequest::setAccessKeyId(const std::string& accessKeyId)
{
accessKeyId_ = accessKeyId;
setCoreParameter("AccessKeyId", accessKeyId);
}

View File

@@ -0,0 +1,45 @@
/*
* 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.
*/
#include <alibabacloud/cloudapi/model/DeleteIpControlResult.h>
#include <json/json.h>
using namespace AlibabaCloud::CloudAPI;
using namespace AlibabaCloud::CloudAPI::Model;
DeleteIpControlResult::DeleteIpControlResult() :
ServiceResult()
{}
DeleteIpControlResult::DeleteIpControlResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DeleteIpControlResult::~DeleteIpControlResult()
{}
void DeleteIpControlResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
}

View File

@@ -0,0 +1,71 @@
/*
* 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.
*/
#include <alibabacloud/cloudapi/model/DeleteLogConfigRequest.h>
using AlibabaCloud::CloudAPI::Model::DeleteLogConfigRequest;
DeleteLogConfigRequest::DeleteLogConfigRequest() :
RpcServiceRequest("cloudapi", "2016-07-14", "DeleteLogConfig")
{}
DeleteLogConfigRequest::~DeleteLogConfigRequest()
{}
std::string DeleteLogConfigRequest::getLogType()const
{
return logType_;
}
void DeleteLogConfigRequest::setLogType(const std::string& logType)
{
logType_ = logType;
setCoreParameter("LogType", logType);
}
std::string DeleteLogConfigRequest::getSecurityToken()const
{
return securityToken_;
}
void DeleteLogConfigRequest::setSecurityToken(const std::string& securityToken)
{
securityToken_ = securityToken;
setCoreParameter("SecurityToken", securityToken);
}
std::string DeleteLogConfigRequest::getRegionId()const
{
return regionId_;
}
void DeleteLogConfigRequest::setRegionId(const std::string& regionId)
{
regionId_ = regionId;
setCoreParameter("RegionId", regionId);
}
std::string DeleteLogConfigRequest::getAccessKeyId()const
{
return accessKeyId_;
}
void DeleteLogConfigRequest::setAccessKeyId(const std::string& accessKeyId)
{
accessKeyId_ = accessKeyId;
setCoreParameter("AccessKeyId", accessKeyId);
}

View File

@@ -0,0 +1,45 @@
/*
* 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.
*/
#include <alibabacloud/cloudapi/model/DeleteLogConfigResult.h>
#include <json/json.h>
using namespace AlibabaCloud::CloudAPI;
using namespace AlibabaCloud::CloudAPI::Model;
DeleteLogConfigResult::DeleteLogConfigResult() :
ServiceResult()
{}
DeleteLogConfigResult::DeleteLogConfigResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DeleteLogConfigResult::~DeleteLogConfigResult()
{}
void DeleteLogConfigResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
}

View File

@@ -0,0 +1,60 @@
/*
* 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.
*/
#include <alibabacloud/cloudapi/model/DeleteSignatureRequest.h>
using AlibabaCloud::CloudAPI::Model::DeleteSignatureRequest;
DeleteSignatureRequest::DeleteSignatureRequest() :
RpcServiceRequest("cloudapi", "2016-07-14", "DeleteSignature")
{}
DeleteSignatureRequest::~DeleteSignatureRequest()
{}
std::string DeleteSignatureRequest::getSecurityToken()const
{
return securityToken_;
}
void DeleteSignatureRequest::setSecurityToken(const std::string& securityToken)
{
securityToken_ = securityToken;
setCoreParameter("SecurityToken", securityToken);
}
std::string DeleteSignatureRequest::getSignatureId()const
{
return signatureId_;
}
void DeleteSignatureRequest::setSignatureId(const std::string& signatureId)
{
signatureId_ = signatureId;
setCoreParameter("SignatureId", signatureId);
}
std::string DeleteSignatureRequest::getAccessKeyId()const
{
return accessKeyId_;
}
void DeleteSignatureRequest::setAccessKeyId(const std::string& accessKeyId)
{
accessKeyId_ = accessKeyId;
setCoreParameter("AccessKeyId", accessKeyId);
}

View File

@@ -0,0 +1,45 @@
/*
* 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.
*/
#include <alibabacloud/cloudapi/model/DeleteSignatureResult.h>
#include <json/json.h>
using namespace AlibabaCloud::CloudAPI;
using namespace AlibabaCloud::CloudAPI::Model;
DeleteSignatureResult::DeleteSignatureResult() :
ServiceResult()
{}
DeleteSignatureResult::DeleteSignatureResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DeleteSignatureResult::~DeleteSignatureResult()
{}
void DeleteSignatureResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
}

View File

@@ -0,0 +1,60 @@
/*
* 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.
*/
#include <alibabacloud/cloudapi/model/DeleteTrafficControlRequest.h>
using AlibabaCloud::CloudAPI::Model::DeleteTrafficControlRequest;
DeleteTrafficControlRequest::DeleteTrafficControlRequest() :
RpcServiceRequest("cloudapi", "2016-07-14", "DeleteTrafficControl")
{}
DeleteTrafficControlRequest::~DeleteTrafficControlRequest()
{}
std::string DeleteTrafficControlRequest::getTrafficControlId()const
{
return trafficControlId_;
}
void DeleteTrafficControlRequest::setTrafficControlId(const std::string& trafficControlId)
{
trafficControlId_ = trafficControlId;
setCoreParameter("TrafficControlId", trafficControlId);
}
std::string DeleteTrafficControlRequest::getSecurityToken()const
{
return securityToken_;
}
void DeleteTrafficControlRequest::setSecurityToken(const std::string& securityToken)
{
securityToken_ = securityToken;
setCoreParameter("SecurityToken", securityToken);
}
std::string DeleteTrafficControlRequest::getAccessKeyId()const
{
return accessKeyId_;
}
void DeleteTrafficControlRequest::setAccessKeyId(const std::string& accessKeyId)
{
accessKeyId_ = accessKeyId;
setCoreParameter("AccessKeyId", accessKeyId);
}

View File

@@ -0,0 +1,45 @@
/*
* 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.
*/
#include <alibabacloud/cloudapi/model/DeleteTrafficControlResult.h>
#include <json/json.h>
using namespace AlibabaCloud::CloudAPI;
using namespace AlibabaCloud::CloudAPI::Model;
DeleteTrafficControlResult::DeleteTrafficControlResult() :
ServiceResult()
{}
DeleteTrafficControlResult::DeleteTrafficControlResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DeleteTrafficControlResult::~DeleteTrafficControlResult()
{}
void DeleteTrafficControlResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
}

View File

@@ -0,0 +1,82 @@
/*
* 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.
*/
#include <alibabacloud/cloudapi/model/DeleteTrafficSpecialControlRequest.h>
using AlibabaCloud::CloudAPI::Model::DeleteTrafficSpecialControlRequest;
DeleteTrafficSpecialControlRequest::DeleteTrafficSpecialControlRequest() :
RpcServiceRequest("cloudapi", "2016-07-14", "DeleteTrafficSpecialControl")
{}
DeleteTrafficSpecialControlRequest::~DeleteTrafficSpecialControlRequest()
{}
std::string DeleteTrafficSpecialControlRequest::getTrafficControlId()const
{
return trafficControlId_;
}
void DeleteTrafficSpecialControlRequest::setTrafficControlId(const std::string& trafficControlId)
{
trafficControlId_ = trafficControlId;
setCoreParameter("TrafficControlId", trafficControlId);
}
std::string DeleteTrafficSpecialControlRequest::getSpecialKey()const
{
return specialKey_;
}
void DeleteTrafficSpecialControlRequest::setSpecialKey(const std::string& specialKey)
{
specialKey_ = specialKey;
setCoreParameter("SpecialKey", specialKey);
}
std::string DeleteTrafficSpecialControlRequest::getSecurityToken()const
{
return securityToken_;
}
void DeleteTrafficSpecialControlRequest::setSecurityToken(const std::string& securityToken)
{
securityToken_ = securityToken;
setCoreParameter("SecurityToken", securityToken);
}
std::string DeleteTrafficSpecialControlRequest::getSpecialType()const
{
return specialType_;
}
void DeleteTrafficSpecialControlRequest::setSpecialType(const std::string& specialType)
{
specialType_ = specialType;
setCoreParameter("SpecialType", specialType);
}
std::string DeleteTrafficSpecialControlRequest::getAccessKeyId()const
{
return accessKeyId_;
}
void DeleteTrafficSpecialControlRequest::setAccessKeyId(const std::string& accessKeyId)
{
accessKeyId_ = accessKeyId;
setCoreParameter("AccessKeyId", accessKeyId);
}

View File

@@ -0,0 +1,45 @@
/*
* 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.
*/
#include <alibabacloud/cloudapi/model/DeleteTrafficSpecialControlResult.h>
#include <json/json.h>
using namespace AlibabaCloud::CloudAPI;
using namespace AlibabaCloud::CloudAPI::Model;
DeleteTrafficSpecialControlResult::DeleteTrafficSpecialControlResult() :
ServiceResult()
{}
DeleteTrafficSpecialControlResult::DeleteTrafficSpecialControlResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DeleteTrafficSpecialControlResult::~DeleteTrafficSpecialControlResult()
{}
void DeleteTrafficSpecialControlResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
}

View File

@@ -0,0 +1,93 @@
/*
* 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.
*/
#include <alibabacloud/cloudapi/model/DeployApiRequest.h>
using AlibabaCloud::CloudAPI::Model::DeployApiRequest;
DeployApiRequest::DeployApiRequest() :
RpcServiceRequest("cloudapi", "2016-07-14", "DeployApi")
{}
DeployApiRequest::~DeployApiRequest()
{}
std::string DeployApiRequest::getStageName()const
{
return stageName_;
}
void DeployApiRequest::setStageName(const std::string& stageName)
{
stageName_ = stageName;
setCoreParameter("StageName", stageName);
}
std::string DeployApiRequest::getSecurityToken()const
{
return securityToken_;
}
void DeployApiRequest::setSecurityToken(const std::string& securityToken)
{
securityToken_ = securityToken;
setCoreParameter("SecurityToken", securityToken);
}
std::string DeployApiRequest::getGroupId()const
{
return groupId_;
}
void DeployApiRequest::setGroupId(const std::string& groupId)
{
groupId_ = groupId;
setCoreParameter("GroupId", groupId);
}
std::string DeployApiRequest::getDescription()const
{
return description_;
}
void DeployApiRequest::setDescription(const std::string& description)
{
description_ = description;
setCoreParameter("Description", description);
}
std::string DeployApiRequest::getApiId()const
{
return apiId_;
}
void DeployApiRequest::setApiId(const std::string& apiId)
{
apiId_ = apiId;
setCoreParameter("ApiId", apiId);
}
std::string DeployApiRequest::getAccessKeyId()const
{
return accessKeyId_;
}
void DeployApiRequest::setAccessKeyId(const std::string& accessKeyId)
{
accessKeyId_ = accessKeyId;
setCoreParameter("AccessKeyId", accessKeyId);
}

View File

@@ -0,0 +1,45 @@
/*
* 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.
*/
#include <alibabacloud/cloudapi/model/DeployApiResult.h>
#include <json/json.h>
using namespace AlibabaCloud::CloudAPI;
using namespace AlibabaCloud::CloudAPI::Model;
DeployApiResult::DeployApiResult() :
ServiceResult()
{}
DeployApiResult::DeployApiResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DeployApiResult::~DeployApiResult()
{}
void DeployApiResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
}

View File

@@ -0,0 +1,82 @@
/*
* 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.
*/
#include <alibabacloud/cloudapi/model/DescribeApiDocRequest.h>
using AlibabaCloud::CloudAPI::Model::DescribeApiDocRequest;
DescribeApiDocRequest::DescribeApiDocRequest() :
RpcServiceRequest("cloudapi", "2016-07-14", "DescribeApiDoc")
{}
DescribeApiDocRequest::~DescribeApiDocRequest()
{}
std::string DescribeApiDocRequest::getStageName()const
{
return stageName_;
}
void DescribeApiDocRequest::setStageName(const std::string& stageName)
{
stageName_ = stageName;
setCoreParameter("StageName", stageName);
}
std::string DescribeApiDocRequest::getSecurityToken()const
{
return securityToken_;
}
void DescribeApiDocRequest::setSecurityToken(const std::string& securityToken)
{
securityToken_ = securityToken;
setCoreParameter("SecurityToken", securityToken);
}
std::string DescribeApiDocRequest::getGroupId()const
{
return groupId_;
}
void DescribeApiDocRequest::setGroupId(const std::string& groupId)
{
groupId_ = groupId;
setCoreParameter("GroupId", groupId);
}
std::string DescribeApiDocRequest::getApiId()const
{
return apiId_;
}
void DescribeApiDocRequest::setApiId(const std::string& apiId)
{
apiId_ = apiId;
setCoreParameter("ApiId", apiId);
}
std::string DescribeApiDocRequest::getAccessKeyId()const
{
return accessKeyId_;
}
void DescribeApiDocRequest::setAccessKeyId(const std::string& accessKeyId)
{
accessKeyId_ = accessKeyId;
setCoreParameter("AccessKeyId", accessKeyId);
}

View File

@@ -0,0 +1,255 @@
/*
* 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.
*/
#include <alibabacloud/cloudapi/model/DescribeApiDocResult.h>
#include <json/json.h>
using namespace AlibabaCloud::CloudAPI;
using namespace AlibabaCloud::CloudAPI::Model;
DescribeApiDocResult::DescribeApiDocResult() :
ServiceResult()
{}
DescribeApiDocResult::DescribeApiDocResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DescribeApiDocResult::~DescribeApiDocResult()
{}
void DescribeApiDocResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto allErrorCodeSamples = value["ErrorCodeSamples"]["ErrorCodeSample"];
for (auto value : allErrorCodeSamples)
{
ErrorCodeSample errorCodeSamplesObject;
if(!value["Code"].isNull())
errorCodeSamplesObject.code = value["Code"].asString();
if(!value["Message"].isNull())
errorCodeSamplesObject.message = value["Message"].asString();
if(!value["Description"].isNull())
errorCodeSamplesObject.description = value["Description"].asString();
errorCodeSamples_.push_back(errorCodeSamplesObject);
}
auto allResultDescriptions = value["ResultDescriptions"]["ResultDescription"];
for (auto value : allResultDescriptions)
{
ResultDescription resultDescriptionsObject;
if(!value["Id"].isNull())
resultDescriptionsObject.id = value["Id"].asString();
if(!value["Pid"].isNull())
resultDescriptionsObject.pid = value["Pid"].asString();
if(!value["HasChild"].isNull())
resultDescriptionsObject.hasChild = value["HasChild"].asString() == "true";
if(!value["Key"].isNull())
resultDescriptionsObject.key = value["Key"].asString();
if(!value["Name"].isNull())
resultDescriptionsObject.name = value["Name"].asString();
if(!value["Mandatory"].isNull())
resultDescriptionsObject.mandatory = value["Mandatory"].asString() == "true";
if(!value["Type"].isNull())
resultDescriptionsObject.type = value["Type"].asString();
if(!value["Description"].isNull())
resultDescriptionsObject.description = value["Description"].asString();
resultDescriptions_.push_back(resultDescriptionsObject);
}
auto allRequestParameters = value["RequestParameters"]["RequestParameter"];
for (auto value : allRequestParameters)
{
RequestParameter requestParametersObject;
if(!value["ApiParameterName"].isNull())
requestParametersObject.apiParameterName = value["ApiParameterName"].asString();
if(!value["Location"].isNull())
requestParametersObject.location = value["Location"].asString();
if(!value["ParameterType"].isNull())
requestParametersObject.parameterType = value["ParameterType"].asString();
if(!value["Required"].isNull())
requestParametersObject.required = value["Required"].asString();
if(!value["DefaultValue"].isNull())
requestParametersObject.defaultValue = value["DefaultValue"].asString();
if(!value["DemoValue"].isNull())
requestParametersObject.demoValue = value["DemoValue"].asString();
if(!value["MaxValue"].isNull())
requestParametersObject.maxValue = std::stol(value["MaxValue"].asString());
if(!value["MinValue"].isNull())
requestParametersObject.minValue = std::stol(value["MinValue"].asString());
if(!value["MaxLength"].isNull())
requestParametersObject.maxLength = std::stol(value["MaxLength"].asString());
if(!value["MinLength"].isNull())
requestParametersObject.minLength = std::stol(value["MinLength"].asString());
if(!value["RegularExpression"].isNull())
requestParametersObject.regularExpression = value["RegularExpression"].asString();
if(!value["JsonScheme"].isNull())
requestParametersObject.jsonScheme = value["JsonScheme"].asString();
if(!value["EnumValue"].isNull())
requestParametersObject.enumValue = value["EnumValue"].asString();
if(!value["DocShow"].isNull())
requestParametersObject.docShow = value["DocShow"].asString();
if(!value["DocOrder"].isNull())
requestParametersObject.docOrder = std::stoi(value["DocOrder"].asString());
if(!value["Description"].isNull())
requestParametersObject.description = value["Description"].asString();
requestParameters_.push_back(requestParametersObject);
}
auto requestConfigNode = value["RequestConfig"];
if(!requestConfigNode["RequestProtocol"].isNull())
requestConfig_.requestProtocol = requestConfigNode["RequestProtocol"].asString();
if(!requestConfigNode["RequestHttpMethod"].isNull())
requestConfig_.requestHttpMethod = requestConfigNode["RequestHttpMethod"].asString();
if(!requestConfigNode["RequestPath"].isNull())
requestConfig_.requestPath = requestConfigNode["RequestPath"].asString();
if(!requestConfigNode["BodyFormat"].isNull())
requestConfig_.bodyFormat = requestConfigNode["BodyFormat"].asString();
if(!requestConfigNode["PostBodyDescription"].isNull())
requestConfig_.postBodyDescription = requestConfigNode["PostBodyDescription"].asString();
if(!requestConfigNode["RequestMode"].isNull())
requestConfig_.requestMode = requestConfigNode["RequestMode"].asString();
if(!value["RegionId"].isNull())
regionId_ = value["RegionId"].asString();
if(!value["GroupId"].isNull())
groupId_ = value["GroupId"].asString();
if(!value["GroupName"].isNull())
groupName_ = value["GroupName"].asString();
if(!value["StageName"].isNull())
stageName_ = value["StageName"].asString();
if(!value["ApiId"].isNull())
apiId_ = value["ApiId"].asString();
if(!value["ApiName"].isNull())
apiName_ = value["ApiName"].asString();
if(!value["Description"].isNull())
description_ = value["Description"].asString();
if(!value["Visibility"].isNull())
visibility_ = value["Visibility"].asString();
if(!value["AuthType"].isNull())
authType_ = value["AuthType"].asString();
if(!value["ResultType"].isNull())
resultType_ = value["ResultType"].asString();
if(!value["ResultSample"].isNull())
resultSample_ = value["ResultSample"].asString();
if(!value["FailResultSample"].isNull())
failResultSample_ = value["FailResultSample"].asString();
if(!value["DeployedTime"].isNull())
deployedTime_ = value["DeployedTime"].asString();
if(!value["ForceNonceCheck"].isNull())
forceNonceCheck_ = value["ForceNonceCheck"].asString() == "true";
if(!value["DisableInternet"].isNull())
disableInternet_ = value["DisableInternet"].asString() == "true";
}
std::string DescribeApiDocResult::getGroupName()const
{
return groupName_;
}
DescribeApiDocResult::RequestConfig DescribeApiDocResult::getRequestConfig()const
{
return requestConfig_;
}
std::string DescribeApiDocResult::getDescription()const
{
return description_;
}
std::string DescribeApiDocResult::getResultSample()const
{
return resultSample_;
}
bool DescribeApiDocResult::getDisableInternet()const
{
return disableInternet_;
}
std::string DescribeApiDocResult::getStageName()const
{
return stageName_;
}
std::string DescribeApiDocResult::getApiName()const
{
return apiName_;
}
bool DescribeApiDocResult::getForceNonceCheck()const
{
return forceNonceCheck_;
}
std::string DescribeApiDocResult::getResultType()const
{
return resultType_;
}
std::string DescribeApiDocResult::getFailResultSample()const
{
return failResultSample_;
}
std::vector<DescribeApiDocResult::ErrorCodeSample> DescribeApiDocResult::getErrorCodeSamples()const
{
return errorCodeSamples_;
}
std::vector<DescribeApiDocResult::RequestParameter> DescribeApiDocResult::getRequestParameters()const
{
return requestParameters_;
}
std::string DescribeApiDocResult::getGroupId()const
{
return groupId_;
}
std::string DescribeApiDocResult::getDeployedTime()const
{
return deployedTime_;
}
std::vector<DescribeApiDocResult::ResultDescription> DescribeApiDocResult::getResultDescriptions()const
{
return resultDescriptions_;
}
std::string DescribeApiDocResult::getVisibility()const
{
return visibility_;
}
std::string DescribeApiDocResult::getRegionId()const
{
return regionId_;
}
std::string DescribeApiDocResult::getAuthType()const
{
return authType_;
}
std::string DescribeApiDocResult::getApiId()const
{
return apiId_;
}

View File

@@ -0,0 +1,93 @@
/*
* 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.
*/
#include <alibabacloud/cloudapi/model/DescribeApiErrorDataRequest.h>
using AlibabaCloud::CloudAPI::Model::DescribeApiErrorDataRequest;
DescribeApiErrorDataRequest::DescribeApiErrorDataRequest() :
RpcServiceRequest("cloudapi", "2016-07-14", "DescribeApiErrorData")
{}
DescribeApiErrorDataRequest::~DescribeApiErrorDataRequest()
{}
std::string DescribeApiErrorDataRequest::getSecurityToken()const
{
return securityToken_;
}
void DescribeApiErrorDataRequest::setSecurityToken(const std::string& securityToken)
{
securityToken_ = securityToken;
setCoreParameter("SecurityToken", securityToken);
}
std::string DescribeApiErrorDataRequest::getGroupId()const
{
return groupId_;
}
void DescribeApiErrorDataRequest::setGroupId(const std::string& groupId)
{
groupId_ = groupId;
setCoreParameter("GroupId", groupId);
}
std::string DescribeApiErrorDataRequest::getEndTime()const
{
return endTime_;
}
void DescribeApiErrorDataRequest::setEndTime(const std::string& endTime)
{
endTime_ = endTime;
setCoreParameter("EndTime", endTime);
}
std::string DescribeApiErrorDataRequest::getStartTime()const
{
return startTime_;
}
void DescribeApiErrorDataRequest::setStartTime(const std::string& startTime)
{
startTime_ = startTime;
setCoreParameter("StartTime", startTime);
}
std::string DescribeApiErrorDataRequest::getApiId()const
{
return apiId_;
}
void DescribeApiErrorDataRequest::setApiId(const std::string& apiId)
{
apiId_ = apiId;
setCoreParameter("ApiId", apiId);
}
std::string DescribeApiErrorDataRequest::getAccessKeyId()const
{
return accessKeyId_;
}
void DescribeApiErrorDataRequest::setAccessKeyId(const std::string& accessKeyId)
{
accessKeyId_ = accessKeyId;
setCoreParameter("AccessKeyId", accessKeyId);
}

View File

@@ -0,0 +1,75 @@
/*
* 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.
*/
#include <alibabacloud/cloudapi/model/DescribeApiErrorDataResult.h>
#include <json/json.h>
using namespace AlibabaCloud::CloudAPI;
using namespace AlibabaCloud::CloudAPI::Model;
DescribeApiErrorDataResult::DescribeApiErrorDataResult() :
ServiceResult()
{}
DescribeApiErrorDataResult::DescribeApiErrorDataResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DescribeApiErrorDataResult::~DescribeApiErrorDataResult()
{}
void DescribeApiErrorDataResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto allClientErrors = value["ClientErrors"]["MonitorItem"];
for (auto value : allClientErrors)
{
MonitorItem clientErrorsObject;
if(!value["ItemTime"].isNull())
clientErrorsObject.itemTime = value["ItemTime"].asString();
if(!value["ItemValue"].isNull())
clientErrorsObject.itemValue = value["ItemValue"].asString();
clientErrors_.push_back(clientErrorsObject);
}
auto allServerErrors = value["ServerErrors"]["MonitorItem"];
for (auto value : allServerErrors)
{
MonitorItem serverErrorsObject;
if(!value["ItemTime"].isNull())
serverErrorsObject.itemTime = value["ItemTime"].asString();
if(!value["ItemValue"].isNull())
serverErrorsObject.itemValue = value["ItemValue"].asString();
serverErrors_.push_back(serverErrorsObject);
}
}
std::vector<DescribeApiErrorDataResult::MonitorItem> DescribeApiErrorDataResult::getClientErrors()const
{
return clientErrors_;
}
std::vector<DescribeApiErrorDataResult::MonitorItem> DescribeApiErrorDataResult::getServerErrors()const
{
return serverErrors_;
}

View File

@@ -0,0 +1,60 @@
/*
* 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.
*/
#include <alibabacloud/cloudapi/model/DescribeApiGroupRequest.h>
using AlibabaCloud::CloudAPI::Model::DescribeApiGroupRequest;
DescribeApiGroupRequest::DescribeApiGroupRequest() :
RpcServiceRequest("cloudapi", "2016-07-14", "DescribeApiGroup")
{}
DescribeApiGroupRequest::~DescribeApiGroupRequest()
{}
std::string DescribeApiGroupRequest::getSecurityToken()const
{
return securityToken_;
}
void DescribeApiGroupRequest::setSecurityToken(const std::string& securityToken)
{
securityToken_ = securityToken;
setCoreParameter("SecurityToken", securityToken);
}
std::string DescribeApiGroupRequest::getGroupId()const
{
return groupId_;
}
void DescribeApiGroupRequest::setGroupId(const std::string& groupId)
{
groupId_ = groupId;
setCoreParameter("GroupId", groupId);
}
std::string DescribeApiGroupRequest::getAccessKeyId()const
{
return accessKeyId_;
}
void DescribeApiGroupRequest::setAccessKeyId(const std::string& accessKeyId)
{
accessKeyId_ = accessKeyId;
setCoreParameter("AccessKeyId", accessKeyId);
}

View File

@@ -0,0 +1,194 @@
/*
* 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.
*/
#include <alibabacloud/cloudapi/model/DescribeApiGroupResult.h>
#include <json/json.h>
using namespace AlibabaCloud::CloudAPI;
using namespace AlibabaCloud::CloudAPI::Model;
DescribeApiGroupResult::DescribeApiGroupResult() :
ServiceResult()
{}
DescribeApiGroupResult::DescribeApiGroupResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DescribeApiGroupResult::~DescribeApiGroupResult()
{}
void DescribeApiGroupResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto allCustomDomains = value["CustomDomains"]["DomainItem"];
for (auto value : allCustomDomains)
{
DomainItem customDomainsObject;
if(!value["DomainName"].isNull())
customDomainsObject.domainName = value["DomainName"].asString();
if(!value["CertificateId"].isNull())
customDomainsObject.certificateId = value["CertificateId"].asString();
if(!value["CertificateName"].isNull())
customDomainsObject.certificateName = value["CertificateName"].asString();
if(!value["DomainCNAMEStatus"].isNull())
customDomainsObject.domainCNAMEStatus = value["DomainCNAMEStatus"].asString();
if(!value["DomainBindingStatus"].isNull())
customDomainsObject.domainBindingStatus = value["DomainBindingStatus"].asString();
if(!value["DomainLegalStatus"].isNull())
customDomainsObject.domainLegalStatus = value["DomainLegalStatus"].asString();
if(!value["DomainWebSocketStatus"].isNull())
customDomainsObject.domainWebSocketStatus = value["DomainWebSocketStatus"].asString();
if(!value["DomainRemark"].isNull())
customDomainsObject.domainRemark = value["DomainRemark"].asString();
customDomains_.push_back(customDomainsObject);
}
auto allStageItems = value["StageItems"]["StageInfo"];
for (auto value : allStageItems)
{
StageInfo stageItemsObject;
if(!value["StageId"].isNull())
stageItemsObject.stageId = value["StageId"].asString();
if(!value["StageName"].isNull())
stageItemsObject.stageName = value["StageName"].asString();
if(!value["Description"].isNull())
stageItemsObject.description = value["Description"].asString();
stageItems_.push_back(stageItemsObject);
}
if(!value["GroupId"].isNull())
groupId_ = value["GroupId"].asString();
if(!value["GroupName"].isNull())
groupName_ = value["GroupName"].asString();
if(!value["SubDomain"].isNull())
subDomain_ = value["SubDomain"].asString();
if(!value["Description"].isNull())
description_ = value["Description"].asString();
if(!value["CreatedTime"].isNull())
createdTime_ = value["CreatedTime"].asString();
if(!value["ModifiedTime"].isNull())
modifiedTime_ = value["ModifiedTime"].asString();
if(!value["RegionId"].isNull())
regionId_ = value["RegionId"].asString();
if(!value["Status"].isNull())
status_ = value["Status"].asString();
if(!value["BillingStatus"].isNull())
billingStatus_ = value["BillingStatus"].asString();
if(!value["IllegalStatus"].isNull())
illegalStatus_ = value["IllegalStatus"].asString();
if(!value["TrafficLimit"].isNull())
trafficLimit_ = std::stoi(value["TrafficLimit"].asString());
if(!value["VpcDomain"].isNull())
vpcDomain_ = value["VpcDomain"].asString();
if(!value["InstanceType"].isNull())
instanceType_ = value["InstanceType"].asString();
if(!value["InstanceId"].isNull())
instanceId_ = value["InstanceId"].asString();
if(!value["HttpsPolicy"].isNull())
httpsPolicy_ = value["HttpsPolicy"].asString();
}
std::string DescribeApiGroupResult::getGroupName()const
{
return groupName_;
}
std::string DescribeApiGroupResult::getStatus()const
{
return status_;
}
std::string DescribeApiGroupResult::getDescription()const
{
return description_;
}
std::string DescribeApiGroupResult::getCreatedTime()const
{
return createdTime_;
}
std::string DescribeApiGroupResult::getHttpsPolicy()const
{
return httpsPolicy_;
}
std::string DescribeApiGroupResult::getInstanceId()const
{
return instanceId_;
}
std::string DescribeApiGroupResult::getBillingStatus()const
{
return billingStatus_;
}
int DescribeApiGroupResult::getTrafficLimit()const
{
return trafficLimit_;
}
std::string DescribeApiGroupResult::getGroupId()const
{
return groupId_;
}
std::string DescribeApiGroupResult::getVpcDomain()const
{
return vpcDomain_;
}
std::string DescribeApiGroupResult::getSubDomain()const
{
return subDomain_;
}
std::vector<DescribeApiGroupResult::DomainItem> DescribeApiGroupResult::getCustomDomains()const
{
return customDomains_;
}
std::string DescribeApiGroupResult::getModifiedTime()const
{
return modifiedTime_;
}
std::vector<DescribeApiGroupResult::StageInfo> DescribeApiGroupResult::getStageItems()const
{
return stageItems_;
}
std::string DescribeApiGroupResult::getIllegalStatus()const
{
return illegalStatus_;
}
std::string DescribeApiGroupResult::getRegionId()const
{
return regionId_;
}
std::string DescribeApiGroupResult::getInstanceType()const
{
return instanceType_;
}

View File

@@ -0,0 +1,93 @@
/*
* 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.
*/
#include <alibabacloud/cloudapi/model/DescribeApiGroupsRequest.h>
using AlibabaCloud::CloudAPI::Model::DescribeApiGroupsRequest;
DescribeApiGroupsRequest::DescribeApiGroupsRequest() :
RpcServiceRequest("cloudapi", "2016-07-14", "DescribeApiGroups")
{}
DescribeApiGroupsRequest::~DescribeApiGroupsRequest()
{}
std::string DescribeApiGroupsRequest::getSecurityToken()const
{
return securityToken_;
}
void DescribeApiGroupsRequest::setSecurityToken(const std::string& securityToken)
{
securityToken_ = securityToken;
setCoreParameter("SecurityToken", securityToken);
}
std::string DescribeApiGroupsRequest::getGroupId()const
{
return groupId_;
}
void DescribeApiGroupsRequest::setGroupId(const std::string& groupId)
{
groupId_ = groupId;
setCoreParameter("GroupId", groupId);
}
int DescribeApiGroupsRequest::getPageSize()const
{
return pageSize_;
}
void DescribeApiGroupsRequest::setPageSize(int pageSize)
{
pageSize_ = pageSize;
setCoreParameter("PageSize", std::to_string(pageSize));
}
std::string DescribeApiGroupsRequest::getGroupName()const
{
return groupName_;
}
void DescribeApiGroupsRequest::setGroupName(const std::string& groupName)
{
groupName_ = groupName;
setCoreParameter("GroupName", groupName);
}
int DescribeApiGroupsRequest::getPageNumber()const
{
return pageNumber_;
}
void DescribeApiGroupsRequest::setPageNumber(int pageNumber)
{
pageNumber_ = pageNumber;
setCoreParameter("PageNumber", std::to_string(pageNumber));
}
std::string DescribeApiGroupsRequest::getAccessKeyId()const
{
return accessKeyId_;
}
void DescribeApiGroupsRequest::setAccessKeyId(const std::string& accessKeyId)
{
accessKeyId_ = accessKeyId;
setCoreParameter("AccessKeyId", accessKeyId);
}

View File

@@ -0,0 +1,103 @@
/*
* 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.
*/
#include <alibabacloud/cloudapi/model/DescribeApiGroupsResult.h>
#include <json/json.h>
using namespace AlibabaCloud::CloudAPI;
using namespace AlibabaCloud::CloudAPI::Model;
DescribeApiGroupsResult::DescribeApiGroupsResult() :
ServiceResult()
{}
DescribeApiGroupsResult::DescribeApiGroupsResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DescribeApiGroupsResult::~DescribeApiGroupsResult()
{}
void DescribeApiGroupsResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto allApiGroupAttributes = value["ApiGroupAttributes"]["ApiGroupAttribute"];
for (auto value : allApiGroupAttributes)
{
ApiGroupAttribute apiGroupAttributesObject;
if(!value["GroupId"].isNull())
apiGroupAttributesObject.groupId = value["GroupId"].asString();
if(!value["GroupName"].isNull())
apiGroupAttributesObject.groupName = value["GroupName"].asString();
if(!value["SubDomain"].isNull())
apiGroupAttributesObject.subDomain = value["SubDomain"].asString();
if(!value["Description"].isNull())
apiGroupAttributesObject.description = value["Description"].asString();
if(!value["CreatedTime"].isNull())
apiGroupAttributesObject.createdTime = value["CreatedTime"].asString();
if(!value["ModifiedTime"].isNull())
apiGroupAttributesObject.modifiedTime = value["ModifiedTime"].asString();
if(!value["RegionId"].isNull())
apiGroupAttributesObject.regionId = value["RegionId"].asString();
if(!value["TrafficLimit"].isNull())
apiGroupAttributesObject.trafficLimit = std::stoi(value["TrafficLimit"].asString());
if(!value["BillingStatus"].isNull())
apiGroupAttributesObject.billingStatus = value["BillingStatus"].asString();
if(!value["IllegalStatus"].isNull())
apiGroupAttributesObject.illegalStatus = value["IllegalStatus"].asString();
if(!value["InstanceId"].isNull())
apiGroupAttributesObject.instanceId = value["InstanceId"].asString();
if(!value["InstanceType"].isNull())
apiGroupAttributesObject.instanceType = value["InstanceType"].asString();
if(!value["HttpsPolicy"].isNull())
apiGroupAttributesObject.httpsPolicy = value["HttpsPolicy"].asString();
apiGroupAttributes_.push_back(apiGroupAttributesObject);
}
if(!value["TotalCount"].isNull())
totalCount_ = std::stoi(value["TotalCount"].asString());
if(!value["PageSize"].isNull())
pageSize_ = std::stoi(value["PageSize"].asString());
if(!value["PageNumber"].isNull())
pageNumber_ = std::stoi(value["PageNumber"].asString());
}
int DescribeApiGroupsResult::getTotalCount()const
{
return totalCount_;
}
int DescribeApiGroupsResult::getPageSize()const
{
return pageSize_;
}
int DescribeApiGroupsResult::getPageNumber()const
{
return pageNumber_;
}
std::vector<DescribeApiGroupsResult::ApiGroupAttribute> DescribeApiGroupsResult::getApiGroupAttributes()const
{
return apiGroupAttributes_;
}

View File

@@ -0,0 +1,115 @@
/*
* 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.
*/
#include <alibabacloud/cloudapi/model/DescribeApiHistoriesRequest.h>
using AlibabaCloud::CloudAPI::Model::DescribeApiHistoriesRequest;
DescribeApiHistoriesRequest::DescribeApiHistoriesRequest() :
RpcServiceRequest("cloudapi", "2016-07-14", "DescribeApiHistories")
{}
DescribeApiHistoriesRequest::~DescribeApiHistoriesRequest()
{}
std::string DescribeApiHistoriesRequest::getStageName()const
{
return stageName_;
}
void DescribeApiHistoriesRequest::setStageName(const std::string& stageName)
{
stageName_ = stageName;
setCoreParameter("StageName", stageName);
}
std::string DescribeApiHistoriesRequest::getApiName()const
{
return apiName_;
}
void DescribeApiHistoriesRequest::setApiName(const std::string& apiName)
{
apiName_ = apiName;
setCoreParameter("ApiName", apiName);
}
std::string DescribeApiHistoriesRequest::getSecurityToken()const
{
return securityToken_;
}
void DescribeApiHistoriesRequest::setSecurityToken(const std::string& securityToken)
{
securityToken_ = securityToken;
setCoreParameter("SecurityToken", securityToken);
}
std::string DescribeApiHistoriesRequest::getGroupId()const
{
return groupId_;
}
void DescribeApiHistoriesRequest::setGroupId(const std::string& groupId)
{
groupId_ = groupId;
setCoreParameter("GroupId", groupId);
}
std::string DescribeApiHistoriesRequest::getPageSize()const
{
return pageSize_;
}
void DescribeApiHistoriesRequest::setPageSize(const std::string& pageSize)
{
pageSize_ = pageSize;
setCoreParameter("PageSize", pageSize);
}
std::string DescribeApiHistoriesRequest::getApiId()const
{
return apiId_;
}
void DescribeApiHistoriesRequest::setApiId(const std::string& apiId)
{
apiId_ = apiId;
setCoreParameter("ApiId", apiId);
}
std::string DescribeApiHistoriesRequest::getPageNumber()const
{
return pageNumber_;
}
void DescribeApiHistoriesRequest::setPageNumber(const std::string& pageNumber)
{
pageNumber_ = pageNumber;
setCoreParameter("PageNumber", pageNumber);
}
std::string DescribeApiHistoriesRequest::getAccessKeyId()const
{
return accessKeyId_;
}
void DescribeApiHistoriesRequest::setAccessKeyId(const std::string& accessKeyId)
{
accessKeyId_ = accessKeyId;
setCoreParameter("AccessKeyId", accessKeyId);
}

View File

@@ -0,0 +1,97 @@
/*
* 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.
*/
#include <alibabacloud/cloudapi/model/DescribeApiHistoriesResult.h>
#include <json/json.h>
using namespace AlibabaCloud::CloudAPI;
using namespace AlibabaCloud::CloudAPI::Model;
DescribeApiHistoriesResult::DescribeApiHistoriesResult() :
ServiceResult()
{}
DescribeApiHistoriesResult::DescribeApiHistoriesResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DescribeApiHistoriesResult::~DescribeApiHistoriesResult()
{}
void DescribeApiHistoriesResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto allApiHisItems = value["ApiHisItems"]["ApiHisItem"];
for (auto value : allApiHisItems)
{
ApiHisItem apiHisItemsObject;
if(!value["RegionId"].isNull())
apiHisItemsObject.regionId = value["RegionId"].asString();
if(!value["ApiId"].isNull())
apiHisItemsObject.apiId = value["ApiId"].asString();
if(!value["ApiName"].isNull())
apiHisItemsObject.apiName = value["ApiName"].asString();
if(!value["GroupId"].isNull())
apiHisItemsObject.groupId = value["GroupId"].asString();
if(!value["GroupName"].isNull())
apiHisItemsObject.groupName = value["GroupName"].asString();
if(!value["StageName"].isNull())
apiHisItemsObject.stageName = value["StageName"].asString();
if(!value["HistoryVersion"].isNull())
apiHisItemsObject.historyVersion = value["HistoryVersion"].asString();
if(!value["Status"].isNull())
apiHisItemsObject.status = value["Status"].asString();
if(!value["Description"].isNull())
apiHisItemsObject.description = value["Description"].asString();
if(!value["DeployedTime"].isNull())
apiHisItemsObject.deployedTime = value["DeployedTime"].asString();
apiHisItems_.push_back(apiHisItemsObject);
}
if(!value["TotalCount"].isNull())
totalCount_ = std::stoi(value["TotalCount"].asString());
if(!value["PageSize"].isNull())
pageSize_ = std::stoi(value["PageSize"].asString());
if(!value["PageNumber"].isNull())
pageNumber_ = std::stoi(value["PageNumber"].asString());
}
int DescribeApiHistoriesResult::getTotalCount()const
{
return totalCount_;
}
int DescribeApiHistoriesResult::getPageSize()const
{
return pageSize_;
}
int DescribeApiHistoriesResult::getPageNumber()const
{
return pageNumber_;
}
std::vector<DescribeApiHistoriesResult::ApiHisItem> DescribeApiHistoriesResult::getApiHisItems()const
{
return apiHisItems_;
}

View File

@@ -0,0 +1,93 @@
/*
* 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.
*/
#include <alibabacloud/cloudapi/model/DescribeApiHistoryRequest.h>
using AlibabaCloud::CloudAPI::Model::DescribeApiHistoryRequest;
DescribeApiHistoryRequest::DescribeApiHistoryRequest() :
RpcServiceRequest("cloudapi", "2016-07-14", "DescribeApiHistory")
{}
DescribeApiHistoryRequest::~DescribeApiHistoryRequest()
{}
std::string DescribeApiHistoryRequest::getStageName()const
{
return stageName_;
}
void DescribeApiHistoryRequest::setStageName(const std::string& stageName)
{
stageName_ = stageName;
setCoreParameter("StageName", stageName);
}
std::string DescribeApiHistoryRequest::getSecurityToken()const
{
return securityToken_;
}
void DescribeApiHistoryRequest::setSecurityToken(const std::string& securityToken)
{
securityToken_ = securityToken;
setCoreParameter("SecurityToken", securityToken);
}
std::string DescribeApiHistoryRequest::getGroupId()const
{
return groupId_;
}
void DescribeApiHistoryRequest::setGroupId(const std::string& groupId)
{
groupId_ = groupId;
setCoreParameter("GroupId", groupId);
}
std::string DescribeApiHistoryRequest::getApiId()const
{
return apiId_;
}
void DescribeApiHistoryRequest::setApiId(const std::string& apiId)
{
apiId_ = apiId;
setCoreParameter("ApiId", apiId);
}
std::string DescribeApiHistoryRequest::getHistoryVersion()const
{
return historyVersion_;
}
void DescribeApiHistoryRequest::setHistoryVersion(const std::string& historyVersion)
{
historyVersion_ = historyVersion;
setCoreParameter("HistoryVersion", historyVersion);
}
std::string DescribeApiHistoryRequest::getAccessKeyId()const
{
return accessKeyId_;
}
void DescribeApiHistoryRequest::setAccessKeyId(const std::string& accessKeyId)
{
accessKeyId_ = accessKeyId;
setCoreParameter("AccessKeyId", accessKeyId);
}

View File

@@ -0,0 +1,444 @@
/*
* 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.
*/
#include <alibabacloud/cloudapi/model/DescribeApiHistoryResult.h>
#include <json/json.h>
using namespace AlibabaCloud::CloudAPI;
using namespace AlibabaCloud::CloudAPI::Model;
DescribeApiHistoryResult::DescribeApiHistoryResult() :
ServiceResult()
{}
DescribeApiHistoryResult::DescribeApiHistoryResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DescribeApiHistoryResult::~DescribeApiHistoryResult()
{}
void DescribeApiHistoryResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto allErrorCodeSamples = value["ErrorCodeSamples"]["ErrorCodeSample"];
for (auto value : allErrorCodeSamples)
{
ErrorCodeSample errorCodeSamplesObject;
if(!value["Code"].isNull())
errorCodeSamplesObject.code = value["Code"].asString();
if(!value["Message"].isNull())
errorCodeSamplesObject.message = value["Message"].asString();
if(!value["Description"].isNull())
errorCodeSamplesObject.description = value["Description"].asString();
errorCodeSamples_.push_back(errorCodeSamplesObject);
}
auto allResultDescriptions = value["ResultDescriptions"]["ResultDescription"];
for (auto value : allResultDescriptions)
{
ResultDescription resultDescriptionsObject;
if(!value["Id"].isNull())
resultDescriptionsObject.id = value["Id"].asString();
if(!value["Pid"].isNull())
resultDescriptionsObject.pid = value["Pid"].asString();
if(!value["HasChild"].isNull())
resultDescriptionsObject.hasChild = value["HasChild"].asString() == "true";
if(!value["Key"].isNull())
resultDescriptionsObject.key = value["Key"].asString();
if(!value["Name"].isNull())
resultDescriptionsObject.name = value["Name"].asString();
if(!value["Mandatory"].isNull())
resultDescriptionsObject.mandatory = value["Mandatory"].asString() == "true";
if(!value["Type"].isNull())
resultDescriptionsObject.type = value["Type"].asString();
if(!value["Description"].isNull())
resultDescriptionsObject.description = value["Description"].asString();
resultDescriptions_.push_back(resultDescriptionsObject);
}
auto allSystemParameters = value["SystemParameters"]["SystemParameter"];
for (auto value : allSystemParameters)
{
SystemParameter systemParametersObject;
if(!value["ParameterName"].isNull())
systemParametersObject.parameterName = value["ParameterName"].asString();
if(!value["ServiceParameterName"].isNull())
systemParametersObject.serviceParameterName = value["ServiceParameterName"].asString();
if(!value["Location"].isNull())
systemParametersObject.location = value["Location"].asString();
if(!value["DemoValue"].isNull())
systemParametersObject.demoValue = value["DemoValue"].asString();
if(!value["Description"].isNull())
systemParametersObject.description = value["Description"].asString();
systemParameters_.push_back(systemParametersObject);
}
auto allCustomSystemParameters = value["CustomSystemParameters"]["CustomSystemParameter"];
for (auto value : allCustomSystemParameters)
{
CustomSystemParameter customSystemParametersObject;
if(!value["ParameterName"].isNull())
customSystemParametersObject.parameterName = value["ParameterName"].asString();
if(!value["ServiceParameterName"].isNull())
customSystemParametersObject.serviceParameterName = value["ServiceParameterName"].asString();
if(!value["Location"].isNull())
customSystemParametersObject.location = value["Location"].asString();
if(!value["DemoValue"].isNull())
customSystemParametersObject.demoValue = value["DemoValue"].asString();
if(!value["Description"].isNull())
customSystemParametersObject.description = value["Description"].asString();
customSystemParameters_.push_back(customSystemParametersObject);
}
auto allConstantParameters = value["ConstantParameters"]["ConstantParameter"];
for (auto value : allConstantParameters)
{
ConstantParameter constantParametersObject;
if(!value["ServiceParameterName"].isNull())
constantParametersObject.serviceParameterName = value["ServiceParameterName"].asString();
if(!value["ConstantValue"].isNull())
constantParametersObject.constantValue = value["ConstantValue"].asString();
if(!value["Location"].isNull())
constantParametersObject.location = value["Location"].asString();
if(!value["Description"].isNull())
constantParametersObject.description = value["Description"].asString();
constantParameters_.push_back(constantParametersObject);
}
auto allRequestParameters = value["RequestParameters"]["RequestParameter"];
for (auto value : allRequestParameters)
{
RequestParameter requestParametersObject;
if(!value["ApiParameterName"].isNull())
requestParametersObject.apiParameterName = value["ApiParameterName"].asString();
if(!value["Location"].isNull())
requestParametersObject.location = value["Location"].asString();
if(!value["ParameterType"].isNull())
requestParametersObject.parameterType = value["ParameterType"].asString();
if(!value["Required"].isNull())
requestParametersObject.required = value["Required"].asString();
if(!value["DefaultValue"].isNull())
requestParametersObject.defaultValue = value["DefaultValue"].asString();
if(!value["DemoValue"].isNull())
requestParametersObject.demoValue = value["DemoValue"].asString();
if(!value["MaxValue"].isNull())
requestParametersObject.maxValue = std::stol(value["MaxValue"].asString());
if(!value["MinValue"].isNull())
requestParametersObject.minValue = std::stol(value["MinValue"].asString());
if(!value["MaxLength"].isNull())
requestParametersObject.maxLength = std::stol(value["MaxLength"].asString());
if(!value["MinLength"].isNull())
requestParametersObject.minLength = std::stol(value["MinLength"].asString());
if(!value["RegularExpression"].isNull())
requestParametersObject.regularExpression = value["RegularExpression"].asString();
if(!value["JsonScheme"].isNull())
requestParametersObject.jsonScheme = value["JsonScheme"].asString();
if(!value["EnumValue"].isNull())
requestParametersObject.enumValue = value["EnumValue"].asString();
if(!value["DocShow"].isNull())
requestParametersObject.docShow = value["DocShow"].asString();
if(!value["DocOrder"].isNull())
requestParametersObject.docOrder = std::stoi(value["DocOrder"].asString());
if(!value["Description"].isNull())
requestParametersObject.description = value["Description"].asString();
requestParameters_.push_back(requestParametersObject);
}
auto allServiceParameters = value["ServiceParameters"]["ServiceParameter"];
for (auto value : allServiceParameters)
{
ServiceParameter serviceParametersObject;
if(!value["ServiceParameterName"].isNull())
serviceParametersObject.serviceParameterName = value["ServiceParameterName"].asString();
if(!value["Location"].isNull())
serviceParametersObject.location = value["Location"].asString();
if(!value["ParameterType"].isNull())
serviceParametersObject.parameterType = value["ParameterType"].asString();
serviceParameters_.push_back(serviceParametersObject);
}
auto allServiceParametersMap = value["ServiceParametersMap"]["ServiceParameterMap"];
for (auto value : allServiceParametersMap)
{
ServiceParameterMap serviceParametersMapObject;
if(!value["ServiceParameterName"].isNull())
serviceParametersMapObject.serviceParameterName = value["ServiceParameterName"].asString();
if(!value["RequestParameterName"].isNull())
serviceParametersMapObject.requestParameterName = value["RequestParameterName"].asString();
serviceParametersMap_.push_back(serviceParametersMapObject);
}
auto requestConfigNode = value["RequestConfig"];
if(!requestConfigNode["RequestProtocol"].isNull())
requestConfig_.requestProtocol = requestConfigNode["RequestProtocol"].asString();
if(!requestConfigNode["RequestHttpMethod"].isNull())
requestConfig_.requestHttpMethod = requestConfigNode["RequestHttpMethod"].asString();
if(!requestConfigNode["RequestPath"].isNull())
requestConfig_.requestPath = requestConfigNode["RequestPath"].asString();
if(!requestConfigNode["BodyFormat"].isNull())
requestConfig_.bodyFormat = requestConfigNode["BodyFormat"].asString();
if(!requestConfigNode["PostBodyDescription"].isNull())
requestConfig_.postBodyDescription = requestConfigNode["PostBodyDescription"].asString();
if(!requestConfigNode["RequestMode"].isNull())
requestConfig_.requestMode = requestConfigNode["RequestMode"].asString();
if(!requestConfigNode["BodyModel"].isNull())
requestConfig_.bodyModel = requestConfigNode["BodyModel"].asString();
auto serviceConfigNode = value["ServiceConfig"];
if(!serviceConfigNode["ServiceProtocol"].isNull())
serviceConfig_.serviceProtocol = serviceConfigNode["ServiceProtocol"].asString();
if(!serviceConfigNode["ServiceAddress"].isNull())
serviceConfig_.serviceAddress = serviceConfigNode["ServiceAddress"].asString();
if(!serviceConfigNode["ServiceHttpMethod"].isNull())
serviceConfig_.serviceHttpMethod = serviceConfigNode["ServiceHttpMethod"].asString();
if(!serviceConfigNode["ServicePath"].isNull())
serviceConfig_.servicePath = serviceConfigNode["ServicePath"].asString();
if(!serviceConfigNode["ServiceTimeout"].isNull())
serviceConfig_.serviceTimeout = std::stoi(serviceConfigNode["ServiceTimeout"].asString());
if(!serviceConfigNode["Mock"].isNull())
serviceConfig_.mock = serviceConfigNode["Mock"].asString();
if(!serviceConfigNode["MockResult"].isNull())
serviceConfig_.mockResult = serviceConfigNode["MockResult"].asString();
if(!serviceConfigNode["ServiceVpcEnable"].isNull())
serviceConfig_.serviceVpcEnable = serviceConfigNode["ServiceVpcEnable"].asString();
if(!serviceConfigNode["MockStatusCode"].isNull())
serviceConfig_.mockStatusCode = std::stoi(serviceConfigNode["MockStatusCode"].asString());
auto allMockHeaders = value["MockHeaders"]["MockHeader"];
for (auto value : allMockHeaders)
{
ServiceConfig::MockHeader mockHeaderObject;
if(!value["HeaderName"].isNull())
mockHeaderObject.headerName = value["HeaderName"].asString();
if(!value["HeaderValue"].isNull())
mockHeaderObject.headerValue = value["HeaderValue"].asString();
serviceConfig_.mockHeaders.push_back(mockHeaderObject);
}
auto vpcConfigNode = serviceConfigNode["VpcConfig"];
if(!vpcConfigNode["Name"].isNull())
serviceConfig_.vpcConfig.name = vpcConfigNode["Name"].asString();
if(!vpcConfigNode["VpcId"].isNull())
serviceConfig_.vpcConfig.vpcId = vpcConfigNode["VpcId"].asString();
if(!vpcConfigNode["InstanceId"].isNull())
serviceConfig_.vpcConfig.instanceId = vpcConfigNode["InstanceId"].asString();
if(!vpcConfigNode["Port"].isNull())
serviceConfig_.vpcConfig.port = std::stoi(vpcConfigNode["Port"].asString());
auto functionComputeConfigNode = serviceConfigNode["FunctionComputeConfig"];
if(!functionComputeConfigNode["RegionId"].isNull())
serviceConfig_.functionComputeConfig.regionId = functionComputeConfigNode["RegionId"].asString();
if(!functionComputeConfigNode["ServiceName"].isNull())
serviceConfig_.functionComputeConfig.serviceName = functionComputeConfigNode["ServiceName"].asString();
if(!functionComputeConfigNode["FunctionName"].isNull())
serviceConfig_.functionComputeConfig.functionName = functionComputeConfigNode["FunctionName"].asString();
if(!functionComputeConfigNode["RoleArn"].isNull())
serviceConfig_.functionComputeConfig.roleArn = functionComputeConfigNode["RoleArn"].asString();
auto openIdConnectConfigNode = value["OpenIdConnectConfig"];
if(!openIdConnectConfigNode["OpenIdApiType"].isNull())
openIdConnectConfig_.openIdApiType = openIdConnectConfigNode["OpenIdApiType"].asString();
if(!openIdConnectConfigNode["IdTokenParamName"].isNull())
openIdConnectConfig_.idTokenParamName = openIdConnectConfigNode["IdTokenParamName"].asString();
if(!openIdConnectConfigNode["PublicKeyId"].isNull())
openIdConnectConfig_.publicKeyId = openIdConnectConfigNode["PublicKeyId"].asString();
if(!openIdConnectConfigNode["PublicKey"].isNull())
openIdConnectConfig_.publicKey = openIdConnectConfigNode["PublicKey"].asString();
if(!value["RegionId"].isNull())
regionId_ = value["RegionId"].asString();
if(!value["GroupId"].isNull())
groupId_ = value["GroupId"].asString();
if(!value["GroupName"].isNull())
groupName_ = value["GroupName"].asString();
if(!value["StageName"].isNull())
stageName_ = value["StageName"].asString();
if(!value["ApiId"].isNull())
apiId_ = value["ApiId"].asString();
if(!value["ApiName"].isNull())
apiName_ = value["ApiName"].asString();
if(!value["Description"].isNull())
description_ = value["Description"].asString();
if(!value["HistoryVersion"].isNull())
historyVersion_ = value["HistoryVersion"].asString();
if(!value["Status"].isNull())
status_ = value["Status"].asString();
if(!value["Visibility"].isNull())
visibility_ = value["Visibility"].asString();
if(!value["AuthType"].isNull())
authType_ = value["AuthType"].asString();
if(!value["ResultType"].isNull())
resultType_ = value["ResultType"].asString();
if(!value["ResultSample"].isNull())
resultSample_ = value["ResultSample"].asString();
if(!value["FailResultSample"].isNull())
failResultSample_ = value["FailResultSample"].asString();
if(!value["DeployedTime"].isNull())
deployedTime_ = value["DeployedTime"].asString();
if(!value["AllowSignatureMethod"].isNull())
allowSignatureMethod_ = value["AllowSignatureMethod"].asString();
if(!value["ResultBodyModel"].isNull())
resultBodyModel_ = value["ResultBodyModel"].asString();
if(!value["ForceNonceCheck"].isNull())
forceNonceCheck_ = value["ForceNonceCheck"].asString() == "true";
if(!value["DisableInternet"].isNull())
disableInternet_ = value["DisableInternet"].asString() == "true";
}
std::string DescribeApiHistoryResult::getGroupName()const
{
return groupName_;
}
std::string DescribeApiHistoryResult::getDescription()const
{
return description_;
}
bool DescribeApiHistoryResult::getForceNonceCheck()const
{
return forceNonceCheck_;
}
std::string DescribeApiHistoryResult::getAllowSignatureMethod()const
{
return allowSignatureMethod_;
}
std::vector<DescribeApiHistoryResult::ErrorCodeSample> DescribeApiHistoryResult::getErrorCodeSamples()const
{
return errorCodeSamples_;
}
std::vector<DescribeApiHistoryResult::RequestParameter> DescribeApiHistoryResult::getRequestParameters()const
{
return requestParameters_;
}
std::vector<DescribeApiHistoryResult::ServiceParameterMap> DescribeApiHistoryResult::getServiceParametersMap()const
{
return serviceParametersMap_;
}
std::string DescribeApiHistoryResult::getResultBodyModel()const
{
return resultBodyModel_;
}
DescribeApiHistoryResult::ServiceConfig DescribeApiHistoryResult::getServiceConfig()const
{
return serviceConfig_;
}
std::vector<DescribeApiHistoryResult::ConstantParameter> DescribeApiHistoryResult::getConstantParameters()const
{
return constantParameters_;
}
std::vector<DescribeApiHistoryResult::ResultDescription> DescribeApiHistoryResult::getResultDescriptions()const
{
return resultDescriptions_;
}
DescribeApiHistoryResult::OpenIdConnectConfig DescribeApiHistoryResult::getOpenIdConnectConfig()const
{
return openIdConnectConfig_;
}
std::string DescribeApiHistoryResult::getAuthType()const
{
return authType_;
}
std::string DescribeApiHistoryResult::getStatus()const
{
return status_;
}
DescribeApiHistoryResult::RequestConfig DescribeApiHistoryResult::getRequestConfig()const
{
return requestConfig_;
}
std::string DescribeApiHistoryResult::getResultSample()const
{
return resultSample_;
}
bool DescribeApiHistoryResult::getDisableInternet()const
{
return disableInternet_;
}
std::string DescribeApiHistoryResult::getStageName()const
{
return stageName_;
}
std::string DescribeApiHistoryResult::getApiName()const
{
return apiName_;
}
std::string DescribeApiHistoryResult::getResultType()const
{
return resultType_;
}
std::string DescribeApiHistoryResult::getFailResultSample()const
{
return failResultSample_;
}
std::vector<DescribeApiHistoryResult::CustomSystemParameter> DescribeApiHistoryResult::getCustomSystemParameters()const
{
return customSystemParameters_;
}
std::string DescribeApiHistoryResult::getGroupId()const
{
return groupId_;
}
std::string DescribeApiHistoryResult::getDeployedTime()const
{
return deployedTime_;
}
std::vector<DescribeApiHistoryResult::SystemParameter> DescribeApiHistoryResult::getSystemParameters()const
{
return systemParameters_;
}
std::string DescribeApiHistoryResult::getVisibility()const
{
return visibility_;
}
std::vector<DescribeApiHistoryResult::ServiceParameter> DescribeApiHistoryResult::getServiceParameters()const
{
return serviceParameters_;
}
std::string DescribeApiHistoryResult::getRegionId()const
{
return regionId_;
}
std::string DescribeApiHistoryResult::getApiId()const
{
return apiId_;
}
std::string DescribeApiHistoryResult::getHistoryVersion()const
{
return historyVersion_;
}

View File

@@ -0,0 +1,104 @@
/*
* 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.
*/
#include <alibabacloud/cloudapi/model/DescribeApiIpControlsRequest.h>
using AlibabaCloud::CloudAPI::Model::DescribeApiIpControlsRequest;
DescribeApiIpControlsRequest::DescribeApiIpControlsRequest() :
RpcServiceRequest("cloudapi", "2016-07-14", "DescribeApiIpControls")
{}
DescribeApiIpControlsRequest::~DescribeApiIpControlsRequest()
{}
std::string DescribeApiIpControlsRequest::getStageName()const
{
return stageName_;
}
void DescribeApiIpControlsRequest::setStageName(const std::string& stageName)
{
stageName_ = stageName;
setCoreParameter("StageName", stageName);
}
std::string DescribeApiIpControlsRequest::getSecurityToken()const
{
return securityToken_;
}
void DescribeApiIpControlsRequest::setSecurityToken(const std::string& securityToken)
{
securityToken_ = securityToken;
setCoreParameter("SecurityToken", securityToken);
}
std::string DescribeApiIpControlsRequest::getGroupId()const
{
return groupId_;
}
void DescribeApiIpControlsRequest::setGroupId(const std::string& groupId)
{
groupId_ = groupId;
setCoreParameter("GroupId", groupId);
}
int DescribeApiIpControlsRequest::getPageSize()const
{
return pageSize_;
}
void DescribeApiIpControlsRequest::setPageSize(int pageSize)
{
pageSize_ = pageSize;
setCoreParameter("PageSize", std::to_string(pageSize));
}
int DescribeApiIpControlsRequest::getPageNumber()const
{
return pageNumber_;
}
void DescribeApiIpControlsRequest::setPageNumber(int pageNumber)
{
pageNumber_ = pageNumber;
setCoreParameter("PageNumber", std::to_string(pageNumber));
}
std::string DescribeApiIpControlsRequest::getAccessKeyId()const
{
return accessKeyId_;
}
void DescribeApiIpControlsRequest::setAccessKeyId(const std::string& accessKeyId)
{
accessKeyId_ = accessKeyId;
setCoreParameter("AccessKeyId", accessKeyId);
}
std::string DescribeApiIpControlsRequest::getApiIds()const
{
return apiIds_;
}
void DescribeApiIpControlsRequest::setApiIds(const std::string& apiIds)
{
apiIds_ = apiIds;
setCoreParameter("ApiIds", apiIds);
}

View File

@@ -0,0 +1,87 @@
/*
* 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.
*/
#include <alibabacloud/cloudapi/model/DescribeApiIpControlsResult.h>
#include <json/json.h>
using namespace AlibabaCloud::CloudAPI;
using namespace AlibabaCloud::CloudAPI::Model;
DescribeApiIpControlsResult::DescribeApiIpControlsResult() :
ServiceResult()
{}
DescribeApiIpControlsResult::DescribeApiIpControlsResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DescribeApiIpControlsResult::~DescribeApiIpControlsResult()
{}
void DescribeApiIpControlsResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto allApiIpControls = value["ApiIpControls"]["ApiIpControlItem"];
for (auto value : allApiIpControls)
{
ApiIpControlItem apiIpControlsObject;
if(!value["ApiId"].isNull())
apiIpControlsObject.apiId = value["ApiId"].asString();
if(!value["ApiName"].isNull())
apiIpControlsObject.apiName = value["ApiName"].asString();
if(!value["IpControlId"].isNull())
apiIpControlsObject.ipControlId = value["IpControlId"].asString();
if(!value["IpControlName"].isNull())
apiIpControlsObject.ipControlName = value["IpControlName"].asString();
if(!value["BoundTime"].isNull())
apiIpControlsObject.boundTime = value["BoundTime"].asString();
apiIpControls_.push_back(apiIpControlsObject);
}
if(!value["TotalCount"].isNull())
totalCount_ = std::stoi(value["TotalCount"].asString());
if(!value["PageSize"].isNull())
pageSize_ = std::stoi(value["PageSize"].asString());
if(!value["PageNumber"].isNull())
pageNumber_ = std::stoi(value["PageNumber"].asString());
}
int DescribeApiIpControlsResult::getTotalCount()const
{
return totalCount_;
}
int DescribeApiIpControlsResult::getPageSize()const
{
return pageSize_;
}
int DescribeApiIpControlsResult::getPageNumber()const
{
return pageNumber_;
}
std::vector<DescribeApiIpControlsResult::ApiIpControlItem> DescribeApiIpControlsResult::getApiIpControls()const
{
return apiIpControls_;
}

View File

@@ -0,0 +1,93 @@
/*
* 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.
*/
#include <alibabacloud/cloudapi/model/DescribeApiLatencyDataRequest.h>
using AlibabaCloud::CloudAPI::Model::DescribeApiLatencyDataRequest;
DescribeApiLatencyDataRequest::DescribeApiLatencyDataRequest() :
RpcServiceRequest("cloudapi", "2016-07-14", "DescribeApiLatencyData")
{}
DescribeApiLatencyDataRequest::~DescribeApiLatencyDataRequest()
{}
std::string DescribeApiLatencyDataRequest::getSecurityToken()const
{
return securityToken_;
}
void DescribeApiLatencyDataRequest::setSecurityToken(const std::string& securityToken)
{
securityToken_ = securityToken;
setCoreParameter("SecurityToken", securityToken);
}
std::string DescribeApiLatencyDataRequest::getGroupId()const
{
return groupId_;
}
void DescribeApiLatencyDataRequest::setGroupId(const std::string& groupId)
{
groupId_ = groupId;
setCoreParameter("GroupId", groupId);
}
std::string DescribeApiLatencyDataRequest::getEndTime()const
{
return endTime_;
}
void DescribeApiLatencyDataRequest::setEndTime(const std::string& endTime)
{
endTime_ = endTime;
setCoreParameter("EndTime", endTime);
}
std::string DescribeApiLatencyDataRequest::getStartTime()const
{
return startTime_;
}
void DescribeApiLatencyDataRequest::setStartTime(const std::string& startTime)
{
startTime_ = startTime;
setCoreParameter("StartTime", startTime);
}
std::string DescribeApiLatencyDataRequest::getApiId()const
{
return apiId_;
}
void DescribeApiLatencyDataRequest::setApiId(const std::string& apiId)
{
apiId_ = apiId;
setCoreParameter("ApiId", apiId);
}
std::string DescribeApiLatencyDataRequest::getAccessKeyId()const
{
return accessKeyId_;
}
void DescribeApiLatencyDataRequest::setAccessKeyId(const std::string& accessKeyId)
{
accessKeyId_ = accessKeyId;
setCoreParameter("AccessKeyId", accessKeyId);
}

View File

@@ -0,0 +1,60 @@
/*
* 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.
*/
#include <alibabacloud/cloudapi/model/DescribeApiLatencyDataResult.h>
#include <json/json.h>
using namespace AlibabaCloud::CloudAPI;
using namespace AlibabaCloud::CloudAPI::Model;
DescribeApiLatencyDataResult::DescribeApiLatencyDataResult() :
ServiceResult()
{}
DescribeApiLatencyDataResult::DescribeApiLatencyDataResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DescribeApiLatencyDataResult::~DescribeApiLatencyDataResult()
{}
void DescribeApiLatencyDataResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto allCallLatencys = value["CallLatencys"]["MonitorItem"];
for (auto value : allCallLatencys)
{
MonitorItem callLatencysObject;
if(!value["ItemTime"].isNull())
callLatencysObject.itemTime = value["ItemTime"].asString();
if(!value["ItemValue"].isNull())
callLatencysObject.itemValue = value["ItemValue"].asString();
callLatencys_.push_back(callLatencysObject);
}
}
std::vector<DescribeApiLatencyDataResult::MonitorItem> DescribeApiLatencyDataResult::getCallLatencys()const
{
return callLatencys_;
}

View File

@@ -0,0 +1,93 @@
/*
* 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.
*/
#include <alibabacloud/cloudapi/model/DescribeApiQpsDataRequest.h>
using AlibabaCloud::CloudAPI::Model::DescribeApiQpsDataRequest;
DescribeApiQpsDataRequest::DescribeApiQpsDataRequest() :
RpcServiceRequest("cloudapi", "2016-07-14", "DescribeApiQpsData")
{}
DescribeApiQpsDataRequest::~DescribeApiQpsDataRequest()
{}
std::string DescribeApiQpsDataRequest::getSecurityToken()const
{
return securityToken_;
}
void DescribeApiQpsDataRequest::setSecurityToken(const std::string& securityToken)
{
securityToken_ = securityToken;
setCoreParameter("SecurityToken", securityToken);
}
std::string DescribeApiQpsDataRequest::getGroupId()const
{
return groupId_;
}
void DescribeApiQpsDataRequest::setGroupId(const std::string& groupId)
{
groupId_ = groupId;
setCoreParameter("GroupId", groupId);
}
std::string DescribeApiQpsDataRequest::getEndTime()const
{
return endTime_;
}
void DescribeApiQpsDataRequest::setEndTime(const std::string& endTime)
{
endTime_ = endTime;
setCoreParameter("EndTime", endTime);
}
std::string DescribeApiQpsDataRequest::getStartTime()const
{
return startTime_;
}
void DescribeApiQpsDataRequest::setStartTime(const std::string& startTime)
{
startTime_ = startTime;
setCoreParameter("StartTime", startTime);
}
std::string DescribeApiQpsDataRequest::getApiId()const
{
return apiId_;
}
void DescribeApiQpsDataRequest::setApiId(const std::string& apiId)
{
apiId_ = apiId;
setCoreParameter("ApiId", apiId);
}
std::string DescribeApiQpsDataRequest::getAccessKeyId()const
{
return accessKeyId_;
}
void DescribeApiQpsDataRequest::setAccessKeyId(const std::string& accessKeyId)
{
accessKeyId_ = accessKeyId;
setCoreParameter("AccessKeyId", accessKeyId);
}

View File

@@ -0,0 +1,75 @@
/*
* 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.
*/
#include <alibabacloud/cloudapi/model/DescribeApiQpsDataResult.h>
#include <json/json.h>
using namespace AlibabaCloud::CloudAPI;
using namespace AlibabaCloud::CloudAPI::Model;
DescribeApiQpsDataResult::DescribeApiQpsDataResult() :
ServiceResult()
{}
DescribeApiQpsDataResult::DescribeApiQpsDataResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DescribeApiQpsDataResult::~DescribeApiQpsDataResult()
{}
void DescribeApiQpsDataResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto allCallSuccesses = value["CallSuccesses"]["MonitorItem"];
for (auto value : allCallSuccesses)
{
MonitorItem callSuccessesObject;
if(!value["ItemTime"].isNull())
callSuccessesObject.itemTime = value["ItemTime"].asString();
if(!value["ItemValue"].isNull())
callSuccessesObject.itemValue = value["ItemValue"].asString();
callSuccesses_.push_back(callSuccessesObject);
}
auto allCallFails = value["CallFails"]["MonitorItem"];
for (auto value : allCallFails)
{
MonitorItem callFailsObject;
if(!value["ItemTime"].isNull())
callFailsObject.itemTime = value["ItemTime"].asString();
if(!value["ItemValue"].isNull())
callFailsObject.itemValue = value["ItemValue"].asString();
callFails_.push_back(callFailsObject);
}
}
std::vector<DescribeApiQpsDataResult::MonitorItem> DescribeApiQpsDataResult::getCallFails()const
{
return callFails_;
}
std::vector<DescribeApiQpsDataResult::MonitorItem> DescribeApiQpsDataResult::getCallSuccesses()const
{
return callSuccesses_;
}

View File

@@ -0,0 +1,71 @@
/*
* 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.
*/
#include <alibabacloud/cloudapi/model/DescribeApiRequest.h>
using AlibabaCloud::CloudAPI::Model::DescribeApiRequest;
DescribeApiRequest::DescribeApiRequest() :
RpcServiceRequest("cloudapi", "2016-07-14", "DescribeApi")
{}
DescribeApiRequest::~DescribeApiRequest()
{}
std::string DescribeApiRequest::getSecurityToken()const
{
return securityToken_;
}
void DescribeApiRequest::setSecurityToken(const std::string& securityToken)
{
securityToken_ = securityToken;
setCoreParameter("SecurityToken", securityToken);
}
std::string DescribeApiRequest::getGroupId()const
{
return groupId_;
}
void DescribeApiRequest::setGroupId(const std::string& groupId)
{
groupId_ = groupId;
setCoreParameter("GroupId", groupId);
}
std::string DescribeApiRequest::getApiId()const
{
return apiId_;
}
void DescribeApiRequest::setApiId(const std::string& apiId)
{
apiId_ = apiId;
setCoreParameter("ApiId", apiId);
}
std::string DescribeApiRequest::getAccessKeyId()const
{
return accessKeyId_;
}
void DescribeApiRequest::setAccessKeyId(const std::string& accessKeyId)
{
accessKeyId_ = accessKeyId;
setCoreParameter("AccessKeyId", accessKeyId);
}

View File

@@ -0,0 +1,476 @@
/*
* 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.
*/
#include <alibabacloud/cloudapi/model/DescribeApiResult.h>
#include <json/json.h>
using namespace AlibabaCloud::CloudAPI;
using namespace AlibabaCloud::CloudAPI::Model;
DescribeApiResult::DescribeApiResult() :
ServiceResult()
{}
DescribeApiResult::DescribeApiResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DescribeApiResult::~DescribeApiResult()
{}
void DescribeApiResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto allErrorCodeSamples = value["ErrorCodeSamples"]["ErrorCodeSample"];
for (auto value : allErrorCodeSamples)
{
ErrorCodeSample errorCodeSamplesObject;
if(!value["Code"].isNull())
errorCodeSamplesObject.code = value["Code"].asString();
if(!value["Message"].isNull())
errorCodeSamplesObject.message = value["Message"].asString();
if(!value["Description"].isNull())
errorCodeSamplesObject.description = value["Description"].asString();
if(!value["Model"].isNull())
errorCodeSamplesObject.model = value["Model"].asString();
errorCodeSamples_.push_back(errorCodeSamplesObject);
}
auto allResultDescriptions = value["ResultDescriptions"]["ResultDescription"];
for (auto value : allResultDescriptions)
{
ResultDescription resultDescriptionsObject;
if(!value["Id"].isNull())
resultDescriptionsObject.id = value["Id"].asString();
if(!value["Pid"].isNull())
resultDescriptionsObject.pid = value["Pid"].asString();
if(!value["HasChild"].isNull())
resultDescriptionsObject.hasChild = value["HasChild"].asString() == "true";
if(!value["Key"].isNull())
resultDescriptionsObject.key = value["Key"].asString();
if(!value["Name"].isNull())
resultDescriptionsObject.name = value["Name"].asString();
if(!value["Mandatory"].isNull())
resultDescriptionsObject.mandatory = value["Mandatory"].asString() == "true";
if(!value["Type"].isNull())
resultDescriptionsObject.type = value["Type"].asString();
if(!value["Description"].isNull())
resultDescriptionsObject.description = value["Description"].asString();
resultDescriptions_.push_back(resultDescriptionsObject);
}
auto allSystemParameters = value["SystemParameters"]["SystemParameter"];
for (auto value : allSystemParameters)
{
SystemParameter systemParametersObject;
if(!value["ParameterName"].isNull())
systemParametersObject.parameterName = value["ParameterName"].asString();
if(!value["ServiceParameterName"].isNull())
systemParametersObject.serviceParameterName = value["ServiceParameterName"].asString();
if(!value["Location"].isNull())
systemParametersObject.location = value["Location"].asString();
if(!value["DemoValue"].isNull())
systemParametersObject.demoValue = value["DemoValue"].asString();
if(!value["Description"].isNull())
systemParametersObject.description = value["Description"].asString();
systemParameters_.push_back(systemParametersObject);
}
auto allCustomSystemParameters = value["CustomSystemParameters"]["CustomSystemParameter"];
for (auto value : allCustomSystemParameters)
{
CustomSystemParameter customSystemParametersObject;
if(!value["ParameterName"].isNull())
customSystemParametersObject.parameterName = value["ParameterName"].asString();
if(!value["ServiceParameterName"].isNull())
customSystemParametersObject.serviceParameterName = value["ServiceParameterName"].asString();
if(!value["Location"].isNull())
customSystemParametersObject.location = value["Location"].asString();
if(!value["DemoValue"].isNull())
customSystemParametersObject.demoValue = value["DemoValue"].asString();
if(!value["Description"].isNull())
customSystemParametersObject.description = value["Description"].asString();
customSystemParameters_.push_back(customSystemParametersObject);
}
auto allConstantParameters = value["ConstantParameters"]["ConstantParameter"];
for (auto value : allConstantParameters)
{
ConstantParameter constantParametersObject;
if(!value["ServiceParameterName"].isNull())
constantParametersObject.serviceParameterName = value["ServiceParameterName"].asString();
if(!value["ConstantValue"].isNull())
constantParametersObject.constantValue = value["ConstantValue"].asString();
if(!value["Location"].isNull())
constantParametersObject.location = value["Location"].asString();
if(!value["Description"].isNull())
constantParametersObject.description = value["Description"].asString();
constantParameters_.push_back(constantParametersObject);
}
auto allRequestParameters = value["RequestParameters"]["RequestParameter"];
for (auto value : allRequestParameters)
{
RequestParameter requestParametersObject;
if(!value["ApiParameterName"].isNull())
requestParametersObject.apiParameterName = value["ApiParameterName"].asString();
if(!value["Location"].isNull())
requestParametersObject.location = value["Location"].asString();
if(!value["ParameterType"].isNull())
requestParametersObject.parameterType = value["ParameterType"].asString();
if(!value["Required"].isNull())
requestParametersObject.required = value["Required"].asString();
if(!value["DefaultValue"].isNull())
requestParametersObject.defaultValue = value["DefaultValue"].asString();
if(!value["DemoValue"].isNull())
requestParametersObject.demoValue = value["DemoValue"].asString();
if(!value["MaxValue"].isNull())
requestParametersObject.maxValue = std::stol(value["MaxValue"].asString());
if(!value["MinValue"].isNull())
requestParametersObject.minValue = std::stol(value["MinValue"].asString());
if(!value["MaxLength"].isNull())
requestParametersObject.maxLength = std::stol(value["MaxLength"].asString());
if(!value["MinLength"].isNull())
requestParametersObject.minLength = std::stol(value["MinLength"].asString());
if(!value["RegularExpression"].isNull())
requestParametersObject.regularExpression = value["RegularExpression"].asString();
if(!value["JsonScheme"].isNull())
requestParametersObject.jsonScheme = value["JsonScheme"].asString();
if(!value["EnumValue"].isNull())
requestParametersObject.enumValue = value["EnumValue"].asString();
if(!value["DocShow"].isNull())
requestParametersObject.docShow = value["DocShow"].asString();
if(!value["DocOrder"].isNull())
requestParametersObject.docOrder = std::stoi(value["DocOrder"].asString());
if(!value["Description"].isNull())
requestParametersObject.description = value["Description"].asString();
requestParameters_.push_back(requestParametersObject);
}
auto allServiceParameters = value["ServiceParameters"]["ServiceParameter"];
for (auto value : allServiceParameters)
{
ServiceParameter serviceParametersObject;
if(!value["ServiceParameterName"].isNull())
serviceParametersObject.serviceParameterName = value["ServiceParameterName"].asString();
if(!value["Location"].isNull())
serviceParametersObject.location = value["Location"].asString();
if(!value["ParameterType"].isNull())
serviceParametersObject.parameterType = value["ParameterType"].asString();
serviceParameters_.push_back(serviceParametersObject);
}
auto allServiceParametersMap = value["ServiceParametersMap"]["ServiceParameterMap"];
for (auto value : allServiceParametersMap)
{
ServiceParameterMap serviceParametersMapObject;
if(!value["ServiceParameterName"].isNull())
serviceParametersMapObject.serviceParameterName = value["ServiceParameterName"].asString();
if(!value["RequestParameterName"].isNull())
serviceParametersMapObject.requestParameterName = value["RequestParameterName"].asString();
serviceParametersMap_.push_back(serviceParametersMapObject);
}
auto allDeployedInfos = value["DeployedInfos"]["DeployedInfo"];
for (auto value : allDeployedInfos)
{
DeployedInfo deployedInfosObject;
if(!value["StageName"].isNull())
deployedInfosObject.stageName = value["StageName"].asString();
if(!value["EffectiveVersion"].isNull())
deployedInfosObject.effectiveVersion = value["EffectiveVersion"].asString();
if(!value["DeployedStatus"].isNull())
deployedInfosObject.deployedStatus = value["DeployedStatus"].asString();
deployedInfos_.push_back(deployedInfosObject);
}
auto requestConfigNode = value["RequestConfig"];
if(!requestConfigNode["RequestProtocol"].isNull())
requestConfig_.requestProtocol = requestConfigNode["RequestProtocol"].asString();
if(!requestConfigNode["RequestHttpMethod"].isNull())
requestConfig_.requestHttpMethod = requestConfigNode["RequestHttpMethod"].asString();
if(!requestConfigNode["RequestPath"].isNull())
requestConfig_.requestPath = requestConfigNode["RequestPath"].asString();
if(!requestConfigNode["BodyFormat"].isNull())
requestConfig_.bodyFormat = requestConfigNode["BodyFormat"].asString();
if(!requestConfigNode["PostBodyDescription"].isNull())
requestConfig_.postBodyDescription = requestConfigNode["PostBodyDescription"].asString();
if(!requestConfigNode["RequestMode"].isNull())
requestConfig_.requestMode = requestConfigNode["RequestMode"].asString();
if(!requestConfigNode["BodyModel"].isNull())
requestConfig_.bodyModel = requestConfigNode["BodyModel"].asString();
auto serviceConfigNode = value["ServiceConfig"];
if(!serviceConfigNode["ServiceProtocol"].isNull())
serviceConfig_.serviceProtocol = serviceConfigNode["ServiceProtocol"].asString();
if(!serviceConfigNode["ServiceAddress"].isNull())
serviceConfig_.serviceAddress = serviceConfigNode["ServiceAddress"].asString();
if(!serviceConfigNode["ServiceHttpMethod"].isNull())
serviceConfig_.serviceHttpMethod = serviceConfigNode["ServiceHttpMethod"].asString();
if(!serviceConfigNode["ServicePath"].isNull())
serviceConfig_.servicePath = serviceConfigNode["ServicePath"].asString();
if(!serviceConfigNode["ServiceTimeout"].isNull())
serviceConfig_.serviceTimeout = std::stoi(serviceConfigNode["ServiceTimeout"].asString());
if(!serviceConfigNode["ContentTypeCatagory"].isNull())
serviceConfig_.contentTypeCatagory = serviceConfigNode["ContentTypeCatagory"].asString();
if(!serviceConfigNode["ContentTypeValue"].isNull())
serviceConfig_.contentTypeValue = serviceConfigNode["ContentTypeValue"].asString();
if(!serviceConfigNode["Mock"].isNull())
serviceConfig_.mock = serviceConfigNode["Mock"].asString();
if(!serviceConfigNode["MockResult"].isNull())
serviceConfig_.mockResult = serviceConfigNode["MockResult"].asString();
if(!serviceConfigNode["ServiceVpcEnable"].isNull())
serviceConfig_.serviceVpcEnable = serviceConfigNode["ServiceVpcEnable"].asString();
if(!serviceConfigNode["AoneAppName"].isNull())
serviceConfig_.aoneAppName = serviceConfigNode["AoneAppName"].asString();
if(!serviceConfigNode["MockStatusCode"].isNull())
serviceConfig_.mockStatusCode = std::stoi(serviceConfigNode["MockStatusCode"].asString());
auto allMockHeaders = value["MockHeaders"]["MockHeader"];
for (auto value : allMockHeaders)
{
ServiceConfig::MockHeader mockHeaderObject;
if(!value["HeaderName"].isNull())
mockHeaderObject.headerName = value["HeaderName"].asString();
if(!value["HeaderValue"].isNull())
mockHeaderObject.headerValue = value["HeaderValue"].asString();
serviceConfig_.mockHeaders.push_back(mockHeaderObject);
}
auto vpcConfigNode = serviceConfigNode["VpcConfig"];
if(!vpcConfigNode["Name"].isNull())
serviceConfig_.vpcConfig.name = vpcConfigNode["Name"].asString();
if(!vpcConfigNode["VpcId"].isNull())
serviceConfig_.vpcConfig.vpcId = vpcConfigNode["VpcId"].asString();
if(!vpcConfigNode["InstanceId"].isNull())
serviceConfig_.vpcConfig.instanceId = vpcConfigNode["InstanceId"].asString();
if(!vpcConfigNode["Port"].isNull())
serviceConfig_.vpcConfig.port = std::stoi(vpcConfigNode["Port"].asString());
auto functionComputeConfigNode = serviceConfigNode["FunctionComputeConfig"];
if(!functionComputeConfigNode["RegionId"].isNull())
serviceConfig_.functionComputeConfig.regionId = functionComputeConfigNode["RegionId"].asString();
if(!functionComputeConfigNode["ServiceName"].isNull())
serviceConfig_.functionComputeConfig.serviceName = functionComputeConfigNode["ServiceName"].asString();
if(!functionComputeConfigNode["FunctionName"].isNull())
serviceConfig_.functionComputeConfig.functionName = functionComputeConfigNode["FunctionName"].asString();
if(!functionComputeConfigNode["RoleArn"].isNull())
serviceConfig_.functionComputeConfig.roleArn = functionComputeConfigNode["RoleArn"].asString();
auto openIdConnectConfigNode = value["OpenIdConnectConfig"];
if(!openIdConnectConfigNode["OpenIdApiType"].isNull())
openIdConnectConfig_.openIdApiType = openIdConnectConfigNode["OpenIdApiType"].asString();
if(!openIdConnectConfigNode["IdTokenParamName"].isNull())
openIdConnectConfig_.idTokenParamName = openIdConnectConfigNode["IdTokenParamName"].asString();
if(!openIdConnectConfigNode["PublicKeyId"].isNull())
openIdConnectConfig_.publicKeyId = openIdConnectConfigNode["PublicKeyId"].asString();
if(!openIdConnectConfigNode["PublicKey"].isNull())
openIdConnectConfig_.publicKey = openIdConnectConfigNode["PublicKey"].asString();
if(!value["RegionId"].isNull())
regionId_ = value["RegionId"].asString();
if(!value["ApiId"].isNull())
apiId_ = value["ApiId"].asString();
if(!value["ApiName"].isNull())
apiName_ = value["ApiName"].asString();
if(!value["GroupId"].isNull())
groupId_ = value["GroupId"].asString();
if(!value["GroupName"].isNull())
groupName_ = value["GroupName"].asString();
if(!value["Visibility"].isNull())
visibility_ = value["Visibility"].asString();
if(!value["AuthType"].isNull())
authType_ = value["AuthType"].asString();
if(!value["ResultType"].isNull())
resultType_ = value["ResultType"].asString();
if(!value["ResultSample"].isNull())
resultSample_ = value["ResultSample"].asString();
if(!value["FailResultSample"].isNull())
failResultSample_ = value["FailResultSample"].asString();
if(!value["CreatedTime"].isNull())
createdTime_ = value["CreatedTime"].asString();
if(!value["ModifiedTime"].isNull())
modifiedTime_ = value["ModifiedTime"].asString();
if(!value["Description"].isNull())
description_ = value["Description"].asString();
if(!value["Mock"].isNull())
mock_ = value["Mock"].asString();
if(!value["MockResult"].isNull())
mockResult_ = value["MockResult"].asString();
if(!value["AllowSignatureMethod"].isNull())
allowSignatureMethod_ = value["AllowSignatureMethod"].asString();
if(!value["WebSocketApiType"].isNull())
webSocketApiType_ = value["WebSocketApiType"].asString();
if(!value["ResultBodyModel"].isNull())
resultBodyModel_ = value["ResultBodyModel"].asString();
if(!value["ForceNonceCheck"].isNull())
forceNonceCheck_ = value["ForceNonceCheck"].asString() == "true";
if(!value["DisableInternet"].isNull())
disableInternet_ = value["DisableInternet"].asString() == "true";
}
std::string DescribeApiResult::getGroupName()const
{
return groupName_;
}
std::string DescribeApiResult::getCreatedTime()const
{
return createdTime_;
}
std::string DescribeApiResult::getDescription()const
{
return description_;
}
std::vector<DescribeApiResult::DeployedInfo> DescribeApiResult::getDeployedInfos()const
{
return deployedInfos_;
}
bool DescribeApiResult::getForceNonceCheck()const
{
return forceNonceCheck_;
}
std::string DescribeApiResult::getAllowSignatureMethod()const
{
return allowSignatureMethod_;
}
std::vector<DescribeApiResult::ErrorCodeSample> DescribeApiResult::getErrorCodeSamples()const
{
return errorCodeSamples_;
}
std::string DescribeApiResult::getMock()const
{
return mock_;
}
std::vector<DescribeApiResult::RequestParameter> DescribeApiResult::getRequestParameters()const
{
return requestParameters_;
}
std::vector<DescribeApiResult::ServiceParameterMap> DescribeApiResult::getServiceParametersMap()const
{
return serviceParametersMap_;
}
std::string DescribeApiResult::getResultBodyModel()const
{
return resultBodyModel_;
}
std::string DescribeApiResult::getModifiedTime()const
{
return modifiedTime_;
}
DescribeApiResult::ServiceConfig DescribeApiResult::getServiceConfig()const
{
return serviceConfig_;
}
std::vector<DescribeApiResult::ConstantParameter> DescribeApiResult::getConstantParameters()const
{
return constantParameters_;
}
std::string DescribeApiResult::getWebSocketApiType()const
{
return webSocketApiType_;
}
std::vector<DescribeApiResult::ResultDescription> DescribeApiResult::getResultDescriptions()const
{
return resultDescriptions_;
}
DescribeApiResult::OpenIdConnectConfig DescribeApiResult::getOpenIdConnectConfig()const
{
return openIdConnectConfig_;
}
std::string DescribeApiResult::getAuthType()const
{
return authType_;
}
DescribeApiResult::RequestConfig DescribeApiResult::getRequestConfig()const
{
return requestConfig_;
}
std::string DescribeApiResult::getResultSample()const
{
return resultSample_;
}
std::string DescribeApiResult::getMockResult()const
{
return mockResult_;
}
bool DescribeApiResult::getDisableInternet()const
{
return disableInternet_;
}
std::string DescribeApiResult::getApiName()const
{
return apiName_;
}
std::string DescribeApiResult::getResultType()const
{
return resultType_;
}
std::string DescribeApiResult::getFailResultSample()const
{
return failResultSample_;
}
std::vector<DescribeApiResult::CustomSystemParameter> DescribeApiResult::getCustomSystemParameters()const
{
return customSystemParameters_;
}
std::string DescribeApiResult::getGroupId()const
{
return groupId_;
}
std::vector<DescribeApiResult::SystemParameter> DescribeApiResult::getSystemParameters()const
{
return systemParameters_;
}
std::string DescribeApiResult::getVisibility()const
{
return visibility_;
}
std::vector<DescribeApiResult::ServiceParameter> DescribeApiResult::getServiceParameters()const
{
return serviceParameters_;
}
std::string DescribeApiResult::getRegionId()const
{
return regionId_;
}
std::string DescribeApiResult::getApiId()const
{
return apiId_;
}

View File

@@ -0,0 +1,104 @@
/*
* 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.
*/
#include <alibabacloud/cloudapi/model/DescribeApiSignaturesRequest.h>
using AlibabaCloud::CloudAPI::Model::DescribeApiSignaturesRequest;
DescribeApiSignaturesRequest::DescribeApiSignaturesRequest() :
RpcServiceRequest("cloudapi", "2016-07-14", "DescribeApiSignatures")
{}
DescribeApiSignaturesRequest::~DescribeApiSignaturesRequest()
{}
std::string DescribeApiSignaturesRequest::getStageName()const
{
return stageName_;
}
void DescribeApiSignaturesRequest::setStageName(const std::string& stageName)
{
stageName_ = stageName;
setCoreParameter("StageName", stageName);
}
std::string DescribeApiSignaturesRequest::getSecurityToken()const
{
return securityToken_;
}
void DescribeApiSignaturesRequest::setSecurityToken(const std::string& securityToken)
{
securityToken_ = securityToken;
setCoreParameter("SecurityToken", securityToken);
}
std::string DescribeApiSignaturesRequest::getGroupId()const
{
return groupId_;
}
void DescribeApiSignaturesRequest::setGroupId(const std::string& groupId)
{
groupId_ = groupId;
setCoreParameter("GroupId", groupId);
}
int DescribeApiSignaturesRequest::getPageSize()const
{
return pageSize_;
}
void DescribeApiSignaturesRequest::setPageSize(int pageSize)
{
pageSize_ = pageSize;
setCoreParameter("PageSize", std::to_string(pageSize));
}
int DescribeApiSignaturesRequest::getPageNumber()const
{
return pageNumber_;
}
void DescribeApiSignaturesRequest::setPageNumber(int pageNumber)
{
pageNumber_ = pageNumber;
setCoreParameter("PageNumber", std::to_string(pageNumber));
}
std::string DescribeApiSignaturesRequest::getAccessKeyId()const
{
return accessKeyId_;
}
void DescribeApiSignaturesRequest::setAccessKeyId(const std::string& accessKeyId)
{
accessKeyId_ = accessKeyId;
setCoreParameter("AccessKeyId", accessKeyId);
}
std::string DescribeApiSignaturesRequest::getApiIds()const
{
return apiIds_;
}
void DescribeApiSignaturesRequest::setApiIds(const std::string& apiIds)
{
apiIds_ = apiIds;
setCoreParameter("ApiIds", apiIds);
}

View File

@@ -0,0 +1,87 @@
/*
* 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.
*/
#include <alibabacloud/cloudapi/model/DescribeApiSignaturesResult.h>
#include <json/json.h>
using namespace AlibabaCloud::CloudAPI;
using namespace AlibabaCloud::CloudAPI::Model;
DescribeApiSignaturesResult::DescribeApiSignaturesResult() :
ServiceResult()
{}
DescribeApiSignaturesResult::DescribeApiSignaturesResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DescribeApiSignaturesResult::~DescribeApiSignaturesResult()
{}
void DescribeApiSignaturesResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto allApiSignatures = value["ApiSignatures"]["ApiSignatureItem"];
for (auto value : allApiSignatures)
{
ApiSignatureItem apiSignaturesObject;
if(!value["ApiId"].isNull())
apiSignaturesObject.apiId = value["ApiId"].asString();
if(!value["ApiName"].isNull())
apiSignaturesObject.apiName = value["ApiName"].asString();
if(!value["SignatureId"].isNull())
apiSignaturesObject.signatureId = value["SignatureId"].asString();
if(!value["SignatureName"].isNull())
apiSignaturesObject.signatureName = value["SignatureName"].asString();
if(!value["BoundTime"].isNull())
apiSignaturesObject.boundTime = value["BoundTime"].asString();
apiSignatures_.push_back(apiSignaturesObject);
}
if(!value["TotalCount"].isNull())
totalCount_ = std::stoi(value["TotalCount"].asString());
if(!value["PageSize"].isNull())
pageSize_ = std::stoi(value["PageSize"].asString());
if(!value["PageNumber"].isNull())
pageNumber_ = std::stoi(value["PageNumber"].asString());
}
int DescribeApiSignaturesResult::getTotalCount()const
{
return totalCount_;
}
std::vector<DescribeApiSignaturesResult::ApiSignatureItem> DescribeApiSignaturesResult::getApiSignatures()const
{
return apiSignatures_;
}
int DescribeApiSignaturesResult::getPageSize()const
{
return pageSize_;
}
int DescribeApiSignaturesResult::getPageNumber()const
{
return pageNumber_;
}

View File

@@ -0,0 +1,71 @@
/*
* 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.
*/
#include <alibabacloud/cloudapi/model/DescribeApiStageRequest.h>
using AlibabaCloud::CloudAPI::Model::DescribeApiStageRequest;
DescribeApiStageRequest::DescribeApiStageRequest() :
RpcServiceRequest("cloudapi", "2016-07-14", "DescribeApiStage")
{}
DescribeApiStageRequest::~DescribeApiStageRequest()
{}
std::string DescribeApiStageRequest::getSecurityToken()const
{
return securityToken_;
}
void DescribeApiStageRequest::setSecurityToken(const std::string& securityToken)
{
securityToken_ = securityToken;
setCoreParameter("SecurityToken", securityToken);
}
std::string DescribeApiStageRequest::getGroupId()const
{
return groupId_;
}
void DescribeApiStageRequest::setGroupId(const std::string& groupId)
{
groupId_ = groupId;
setCoreParameter("GroupId", groupId);
}
std::string DescribeApiStageRequest::getAccessKeyId()const
{
return accessKeyId_;
}
void DescribeApiStageRequest::setAccessKeyId(const std::string& accessKeyId)
{
accessKeyId_ = accessKeyId;
setCoreParameter("AccessKeyId", accessKeyId);
}
std::string DescribeApiStageRequest::getStageId()const
{
return stageId_;
}
void DescribeApiStageRequest::setStageId(const std::string& stageId)
{
stageId_ = stageId;
setCoreParameter("StageId", stageId);
}

View File

@@ -0,0 +1,129 @@
/*
* 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.
*/
#include <alibabacloud/cloudapi/model/DescribeApiStageResult.h>
#include <json/json.h>
using namespace AlibabaCloud::CloudAPI;
using namespace AlibabaCloud::CloudAPI::Model;
DescribeApiStageResult::DescribeApiStageResult() :
ServiceResult()
{}
DescribeApiStageResult::DescribeApiStageResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DescribeApiStageResult::~DescribeApiStageResult()
{}
void DescribeApiStageResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto allVariables = value["Variables"]["VariableItem"];
for (auto value : allVariables)
{
VariableItem variablesObject;
if(!value["VariableName"].isNull())
variablesObject.variableName = value["VariableName"].asString();
if(!value["VariableValue"].isNull())
variablesObject.variableValue = value["VariableValue"].asString();
if(!value["SupportRoute"].isNull())
variablesObject.supportRoute = value["SupportRoute"].asString() == "true";
auto stageRouteModelNode = value["StageRouteModel"];
if(!stageRouteModelNode["ParameterCatalog"].isNull())
variablesObject.stageRouteModel.parameterCatalog = stageRouteModelNode["ParameterCatalog"].asString();
if(!stageRouteModelNode["ServiceParameterName"].isNull())
variablesObject.stageRouteModel.serviceParameterName = stageRouteModelNode["ServiceParameterName"].asString();
if(!stageRouteModelNode["Location"].isNull())
variablesObject.stageRouteModel.location = stageRouteModelNode["Location"].asString();
if(!stageRouteModelNode["ParameterType"].isNull())
variablesObject.stageRouteModel.parameterType = stageRouteModelNode["ParameterType"].asString();
if(!stageRouteModelNode["RouteMatchSymbol"].isNull())
variablesObject.stageRouteModel.routeMatchSymbol = stageRouteModelNode["RouteMatchSymbol"].asString();
auto allRouteRules = value["RouteRules"]["RouteRuleItem"];
for (auto value : allRouteRules)
{
VariableItem::StageRouteModel::RouteRuleItem routeRuleItemObject;
if(!value["MaxValue"].isNull())
routeRuleItemObject.maxValue = std::stol(value["MaxValue"].asString());
if(!value["MinValue"].isNull())
routeRuleItemObject.minValue = std::stol(value["MinValue"].asString());
if(!value["ConditionValue"].isNull())
routeRuleItemObject.conditionValue = value["ConditionValue"].asString();
if(!value["ResultValue"].isNull())
routeRuleItemObject.resultValue = value["ResultValue"].asString();
variablesObject.stageRouteModel.routeRules.push_back(routeRuleItemObject);
}
variables_.push_back(variablesObject);
}
if(!value["GroupId"].isNull())
groupId_ = value["GroupId"].asString();
if(!value["StageId"].isNull())
stageId_ = value["StageId"].asString();
if(!value["StageName"].isNull())
stageName_ = value["StageName"].asString();
if(!value["Description"].isNull())
description_ = value["Description"].asString();
if(!value["CreatedTime"].isNull())
createdTime_ = value["CreatedTime"].asString();
if(!value["ModifiedTime"].isNull())
modifiedTime_ = value["ModifiedTime"].asString();
}
std::vector<DescribeApiStageResult::VariableItem> DescribeApiStageResult::getVariables()const
{
return variables_;
}
std::string DescribeApiStageResult::getDescription()const
{
return description_;
}
std::string DescribeApiStageResult::getCreatedTime()const
{
return createdTime_;
}
std::string DescribeApiStageResult::getModifiedTime()const
{
return modifiedTime_;
}
std::string DescribeApiStageResult::getStageName()const
{
return stageName_;
}
std::string DescribeApiStageResult::getStageId()const
{
return stageId_;
}
std::string DescribeApiStageResult::getGroupId()const
{
return groupId_;
}

View File

@@ -0,0 +1,104 @@
/*
* 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.
*/
#include <alibabacloud/cloudapi/model/DescribeApiTrafficControlsRequest.h>
using AlibabaCloud::CloudAPI::Model::DescribeApiTrafficControlsRequest;
DescribeApiTrafficControlsRequest::DescribeApiTrafficControlsRequest() :
RpcServiceRequest("cloudapi", "2016-07-14", "DescribeApiTrafficControls")
{}
DescribeApiTrafficControlsRequest::~DescribeApiTrafficControlsRequest()
{}
std::string DescribeApiTrafficControlsRequest::getStageName()const
{
return stageName_;
}
void DescribeApiTrafficControlsRequest::setStageName(const std::string& stageName)
{
stageName_ = stageName;
setCoreParameter("StageName", stageName);
}
std::string DescribeApiTrafficControlsRequest::getSecurityToken()const
{
return securityToken_;
}
void DescribeApiTrafficControlsRequest::setSecurityToken(const std::string& securityToken)
{
securityToken_ = securityToken;
setCoreParameter("SecurityToken", securityToken);
}
std::string DescribeApiTrafficControlsRequest::getGroupId()const
{
return groupId_;
}
void DescribeApiTrafficControlsRequest::setGroupId(const std::string& groupId)
{
groupId_ = groupId;
setCoreParameter("GroupId", groupId);
}
int DescribeApiTrafficControlsRequest::getPageSize()const
{
return pageSize_;
}
void DescribeApiTrafficControlsRequest::setPageSize(int pageSize)
{
pageSize_ = pageSize;
setCoreParameter("PageSize", std::to_string(pageSize));
}
int DescribeApiTrafficControlsRequest::getPageNumber()const
{
return pageNumber_;
}
void DescribeApiTrafficControlsRequest::setPageNumber(int pageNumber)
{
pageNumber_ = pageNumber;
setCoreParameter("PageNumber", std::to_string(pageNumber));
}
std::string DescribeApiTrafficControlsRequest::getAccessKeyId()const
{
return accessKeyId_;
}
void DescribeApiTrafficControlsRequest::setAccessKeyId(const std::string& accessKeyId)
{
accessKeyId_ = accessKeyId;
setCoreParameter("AccessKeyId", accessKeyId);
}
std::string DescribeApiTrafficControlsRequest::getApiIds()const
{
return apiIds_;
}
void DescribeApiTrafficControlsRequest::setApiIds(const std::string& apiIds)
{
apiIds_ = apiIds;
setCoreParameter("ApiIds", apiIds);
}

View File

@@ -0,0 +1,87 @@
/*
* 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.
*/
#include <alibabacloud/cloudapi/model/DescribeApiTrafficControlsResult.h>
#include <json/json.h>
using namespace AlibabaCloud::CloudAPI;
using namespace AlibabaCloud::CloudAPI::Model;
DescribeApiTrafficControlsResult::DescribeApiTrafficControlsResult() :
ServiceResult()
{}
DescribeApiTrafficControlsResult::DescribeApiTrafficControlsResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DescribeApiTrafficControlsResult::~DescribeApiTrafficControlsResult()
{}
void DescribeApiTrafficControlsResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto allApiTrafficControls = value["ApiTrafficControls"]["ApiTrafficControlItem"];
for (auto value : allApiTrafficControls)
{
ApiTrafficControlItem apiTrafficControlsObject;
if(!value["ApiId"].isNull())
apiTrafficControlsObject.apiId = value["ApiId"].asString();
if(!value["ApiName"].isNull())
apiTrafficControlsObject.apiName = value["ApiName"].asString();
if(!value["TrafficControlId"].isNull())
apiTrafficControlsObject.trafficControlId = value["TrafficControlId"].asString();
if(!value["TrafficControlName"].isNull())
apiTrafficControlsObject.trafficControlName = value["TrafficControlName"].asString();
if(!value["BoundTime"].isNull())
apiTrafficControlsObject.boundTime = value["BoundTime"].asString();
apiTrafficControls_.push_back(apiTrafficControlsObject);
}
if(!value["TotalCount"].isNull())
totalCount_ = std::stoi(value["TotalCount"].asString());
if(!value["PageSize"].isNull())
pageSize_ = std::stoi(value["PageSize"].asString());
if(!value["PageNumber"].isNull())
pageNumber_ = std::stoi(value["PageNumber"].asString());
}
int DescribeApiTrafficControlsResult::getTotalCount()const
{
return totalCount_;
}
int DescribeApiTrafficControlsResult::getPageSize()const
{
return pageSize_;
}
int DescribeApiTrafficControlsResult::getPageNumber()const
{
return pageNumber_;
}
std::vector<DescribeApiTrafficControlsResult::ApiTrafficControlItem> DescribeApiTrafficControlsResult::getApiTrafficControls()const
{
return apiTrafficControls_;
}

View File

@@ -0,0 +1,93 @@
/*
* 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.
*/
#include <alibabacloud/cloudapi/model/DescribeApiTrafficDataRequest.h>
using AlibabaCloud::CloudAPI::Model::DescribeApiTrafficDataRequest;
DescribeApiTrafficDataRequest::DescribeApiTrafficDataRequest() :
RpcServiceRequest("cloudapi", "2016-07-14", "DescribeApiTrafficData")
{}
DescribeApiTrafficDataRequest::~DescribeApiTrafficDataRequest()
{}
std::string DescribeApiTrafficDataRequest::getSecurityToken()const
{
return securityToken_;
}
void DescribeApiTrafficDataRequest::setSecurityToken(const std::string& securityToken)
{
securityToken_ = securityToken;
setCoreParameter("SecurityToken", securityToken);
}
std::string DescribeApiTrafficDataRequest::getGroupId()const
{
return groupId_;
}
void DescribeApiTrafficDataRequest::setGroupId(const std::string& groupId)
{
groupId_ = groupId;
setCoreParameter("GroupId", groupId);
}
std::string DescribeApiTrafficDataRequest::getEndTime()const
{
return endTime_;
}
void DescribeApiTrafficDataRequest::setEndTime(const std::string& endTime)
{
endTime_ = endTime;
setCoreParameter("EndTime", endTime);
}
std::string DescribeApiTrafficDataRequest::getStartTime()const
{
return startTime_;
}
void DescribeApiTrafficDataRequest::setStartTime(const std::string& startTime)
{
startTime_ = startTime;
setCoreParameter("StartTime", startTime);
}
std::string DescribeApiTrafficDataRequest::getApiId()const
{
return apiId_;
}
void DescribeApiTrafficDataRequest::setApiId(const std::string& apiId)
{
apiId_ = apiId;
setCoreParameter("ApiId", apiId);
}
std::string DescribeApiTrafficDataRequest::getAccessKeyId()const
{
return accessKeyId_;
}
void DescribeApiTrafficDataRequest::setAccessKeyId(const std::string& accessKeyId)
{
accessKeyId_ = accessKeyId;
setCoreParameter("AccessKeyId", accessKeyId);
}

View File

@@ -0,0 +1,75 @@
/*
* 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.
*/
#include <alibabacloud/cloudapi/model/DescribeApiTrafficDataResult.h>
#include <json/json.h>
using namespace AlibabaCloud::CloudAPI;
using namespace AlibabaCloud::CloudAPI::Model;
DescribeApiTrafficDataResult::DescribeApiTrafficDataResult() :
ServiceResult()
{}
DescribeApiTrafficDataResult::DescribeApiTrafficDataResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DescribeApiTrafficDataResult::~DescribeApiTrafficDataResult()
{}
void DescribeApiTrafficDataResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto allCallUploads = value["CallUploads"]["MonitorItem"];
for (auto value : allCallUploads)
{
MonitorItem callUploadsObject;
if(!value["ItemTime"].isNull())
callUploadsObject.itemTime = value["ItemTime"].asString();
if(!value["ItemValue"].isNull())
callUploadsObject.itemValue = value["ItemValue"].asString();
callUploads_.push_back(callUploadsObject);
}
auto allCallDownloads = value["CallDownloads"]["MonitorItem"];
for (auto value : allCallDownloads)
{
MonitorItem callDownloadsObject;
if(!value["ItemTime"].isNull())
callDownloadsObject.itemTime = value["ItemTime"].asString();
if(!value["ItemValue"].isNull())
callDownloadsObject.itemValue = value["ItemValue"].asString();
callDownloads_.push_back(callDownloadsObject);
}
}
std::vector<DescribeApiTrafficDataResult::MonitorItem> DescribeApiTrafficDataResult::getCallUploads()const
{
return callUploads_;
}
std::vector<DescribeApiTrafficDataResult::MonitorItem> DescribeApiTrafficDataResult::getCallDownloads()const
{
return callDownloads_;
}

View File

@@ -0,0 +1,82 @@
/*
* 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.
*/
#include <alibabacloud/cloudapi/model/DescribeApisByAppRequest.h>
using AlibabaCloud::CloudAPI::Model::DescribeApisByAppRequest;
DescribeApisByAppRequest::DescribeApisByAppRequest() :
RpcServiceRequest("cloudapi", "2016-07-14", "DescribeApisByApp")
{}
DescribeApisByAppRequest::~DescribeApisByAppRequest()
{}
std::string DescribeApisByAppRequest::getSecurityToken()const
{
return securityToken_;
}
void DescribeApisByAppRequest::setSecurityToken(const std::string& securityToken)
{
securityToken_ = securityToken;
setCoreParameter("SecurityToken", securityToken);
}
long DescribeApisByAppRequest::getAppId()const
{
return appId_;
}
void DescribeApisByAppRequest::setAppId(long appId)
{
appId_ = appId;
setCoreParameter("AppId", std::to_string(appId));
}
int DescribeApisByAppRequest::getPageSize()const
{
return pageSize_;
}
void DescribeApisByAppRequest::setPageSize(int pageSize)
{
pageSize_ = pageSize;
setCoreParameter("PageSize", std::to_string(pageSize));
}
int DescribeApisByAppRequest::getPageNumber()const
{
return pageNumber_;
}
void DescribeApisByAppRequest::setPageNumber(int pageNumber)
{
pageNumber_ = pageNumber;
setCoreParameter("PageNumber", std::to_string(pageNumber));
}
std::string DescribeApisByAppRequest::getAccessKeyId()const
{
return accessKeyId_;
}
void DescribeApisByAppRequest::setAccessKeyId(const std::string& accessKeyId)
{
accessKeyId_ = accessKeyId;
setCoreParameter("AccessKeyId", accessKeyId);
}

View File

@@ -0,0 +1,97 @@
/*
* 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.
*/
#include <alibabacloud/cloudapi/model/DescribeApisByAppResult.h>
#include <json/json.h>
using namespace AlibabaCloud::CloudAPI;
using namespace AlibabaCloud::CloudAPI::Model;
DescribeApisByAppResult::DescribeApisByAppResult() :
ServiceResult()
{}
DescribeApisByAppResult::DescribeApisByAppResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DescribeApisByAppResult::~DescribeApisByAppResult()
{}
void DescribeApisByAppResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto allAppApiRelationInfos = value["AppApiRelationInfos"]["AppApiRelationInfo"];
for (auto value : allAppApiRelationInfos)
{
AppApiRelationInfo appApiRelationInfosObject;
if(!value["RegionId"].isNull())
appApiRelationInfosObject.regionId = value["RegionId"].asString();
if(!value["GroupId"].isNull())
appApiRelationInfosObject.groupId = value["GroupId"].asString();
if(!value["GroupName"].isNull())
appApiRelationInfosObject.groupName = value["GroupName"].asString();
if(!value["StageName"].isNull())
appApiRelationInfosObject.stageName = value["StageName"].asString();
if(!value["Operator"].isNull())
appApiRelationInfosObject._operator = value["Operator"].asString();
if(!value["ApiId"].isNull())
appApiRelationInfosObject.apiId = value["ApiId"].asString();
if(!value["ApiName"].isNull())
appApiRelationInfosObject.apiName = value["ApiName"].asString();
if(!value["AuthorizationSource"].isNull())
appApiRelationInfosObject.authorizationSource = value["AuthorizationSource"].asString();
if(!value["Description"].isNull())
appApiRelationInfosObject.description = value["Description"].asString();
if(!value["CreatedTime"].isNull())
appApiRelationInfosObject.createdTime = value["CreatedTime"].asString();
appApiRelationInfos_.push_back(appApiRelationInfosObject);
}
if(!value["TotalCount"].isNull())
totalCount_ = std::stoi(value["TotalCount"].asString());
if(!value["PageSize"].isNull())
pageSize_ = std::stoi(value["PageSize"].asString());
if(!value["PageNumber"].isNull())
pageNumber_ = std::stoi(value["PageNumber"].asString());
}
std::vector<DescribeApisByAppResult::AppApiRelationInfo> DescribeApisByAppResult::getAppApiRelationInfos()const
{
return appApiRelationInfos_;
}
int DescribeApisByAppResult::getTotalCount()const
{
return totalCount_;
}
int DescribeApisByAppResult::getPageSize()const
{
return pageSize_;
}
int DescribeApisByAppResult::getPageNumber()const
{
return pageNumber_;
}

View File

@@ -0,0 +1,82 @@
/*
* 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.
*/
#include <alibabacloud/cloudapi/model/DescribeApisByIpControlRequest.h>
using AlibabaCloud::CloudAPI::Model::DescribeApisByIpControlRequest;
DescribeApisByIpControlRequest::DescribeApisByIpControlRequest() :
RpcServiceRequest("cloudapi", "2016-07-14", "DescribeApisByIpControl")
{}
DescribeApisByIpControlRequest::~DescribeApisByIpControlRequest()
{}
std::string DescribeApisByIpControlRequest::getIpControlId()const
{
return ipControlId_;
}
void DescribeApisByIpControlRequest::setIpControlId(const std::string& ipControlId)
{
ipControlId_ = ipControlId;
setCoreParameter("IpControlId", ipControlId);
}
std::string DescribeApisByIpControlRequest::getSecurityToken()const
{
return securityToken_;
}
void DescribeApisByIpControlRequest::setSecurityToken(const std::string& securityToken)
{
securityToken_ = securityToken;
setCoreParameter("SecurityToken", securityToken);
}
int DescribeApisByIpControlRequest::getPageSize()const
{
return pageSize_;
}
void DescribeApisByIpControlRequest::setPageSize(int pageSize)
{
pageSize_ = pageSize;
setCoreParameter("PageSize", std::to_string(pageSize));
}
int DescribeApisByIpControlRequest::getPageNumber()const
{
return pageNumber_;
}
void DescribeApisByIpControlRequest::setPageNumber(int pageNumber)
{
pageNumber_ = pageNumber;
setCoreParameter("PageNumber", std::to_string(pageNumber));
}
std::string DescribeApisByIpControlRequest::getAccessKeyId()const
{
return accessKeyId_;
}
void DescribeApisByIpControlRequest::setAccessKeyId(const std::string& accessKeyId)
{
accessKeyId_ = accessKeyId;
setCoreParameter("AccessKeyId", accessKeyId);
}

View File

@@ -0,0 +1,95 @@
/*
* 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.
*/
#include <alibabacloud/cloudapi/model/DescribeApisByIpControlResult.h>
#include <json/json.h>
using namespace AlibabaCloud::CloudAPI;
using namespace AlibabaCloud::CloudAPI::Model;
DescribeApisByIpControlResult::DescribeApisByIpControlResult() :
ServiceResult()
{}
DescribeApisByIpControlResult::DescribeApisByIpControlResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DescribeApisByIpControlResult::~DescribeApisByIpControlResult()
{}
void DescribeApisByIpControlResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto allApiInfos = value["ApiInfos"]["ApiInfo"];
for (auto value : allApiInfos)
{
ApiInfo apiInfosObject;
if(!value["RegionId"].isNull())
apiInfosObject.regionId = value["RegionId"].asString();
if(!value["GroupId"].isNull())
apiInfosObject.groupId = value["GroupId"].asString();
if(!value["GroupName"].isNull())
apiInfosObject.groupName = value["GroupName"].asString();
if(!value["StageName"].isNull())
apiInfosObject.stageName = value["StageName"].asString();
if(!value["ApiId"].isNull())
apiInfosObject.apiId = value["ApiId"].asString();
if(!value["ApiName"].isNull())
apiInfosObject.apiName = value["ApiName"].asString();
if(!value["Description"].isNull())
apiInfosObject.description = value["Description"].asString();
if(!value["Visibility"].isNull())
apiInfosObject.visibility = value["Visibility"].asString();
if(!value["BoundTime"].isNull())
apiInfosObject.boundTime = value["BoundTime"].asString();
apiInfos_.push_back(apiInfosObject);
}
if(!value["TotalCount"].isNull())
totalCount_ = std::stoi(value["TotalCount"].asString());
if(!value["PageSize"].isNull())
pageSize_ = std::stoi(value["PageSize"].asString());
if(!value["PageNumber"].isNull())
pageNumber_ = std::stoi(value["PageNumber"].asString());
}
std::vector<DescribeApisByIpControlResult::ApiInfo> DescribeApisByIpControlResult::getApiInfos()const
{
return apiInfos_;
}
int DescribeApisByIpControlResult::getTotalCount()const
{
return totalCount_;
}
int DescribeApisByIpControlResult::getPageSize()const
{
return pageSize_;
}
int DescribeApisByIpControlResult::getPageNumber()const
{
return pageNumber_;
}

View File

@@ -0,0 +1,82 @@
/*
* 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.
*/
#include <alibabacloud/cloudapi/model/DescribeApisBySignatureRequest.h>
using AlibabaCloud::CloudAPI::Model::DescribeApisBySignatureRequest;
DescribeApisBySignatureRequest::DescribeApisBySignatureRequest() :
RpcServiceRequest("cloudapi", "2016-07-14", "DescribeApisBySignature")
{}
DescribeApisBySignatureRequest::~DescribeApisBySignatureRequest()
{}
std::string DescribeApisBySignatureRequest::getSecurityToken()const
{
return securityToken_;
}
void DescribeApisBySignatureRequest::setSecurityToken(const std::string& securityToken)
{
securityToken_ = securityToken;
setCoreParameter("SecurityToken", securityToken);
}
int DescribeApisBySignatureRequest::getPageSize()const
{
return pageSize_;
}
void DescribeApisBySignatureRequest::setPageSize(int pageSize)
{
pageSize_ = pageSize;
setCoreParameter("PageSize", std::to_string(pageSize));
}
std::string DescribeApisBySignatureRequest::getSignatureId()const
{
return signatureId_;
}
void DescribeApisBySignatureRequest::setSignatureId(const std::string& signatureId)
{
signatureId_ = signatureId;
setCoreParameter("SignatureId", signatureId);
}
int DescribeApisBySignatureRequest::getPageNumber()const
{
return pageNumber_;
}
void DescribeApisBySignatureRequest::setPageNumber(int pageNumber)
{
pageNumber_ = pageNumber;
setCoreParameter("PageNumber", std::to_string(pageNumber));
}
std::string DescribeApisBySignatureRequest::getAccessKeyId()const
{
return accessKeyId_;
}
void DescribeApisBySignatureRequest::setAccessKeyId(const std::string& accessKeyId)
{
accessKeyId_ = accessKeyId;
setCoreParameter("AccessKeyId", accessKeyId);
}

View File

@@ -0,0 +1,95 @@
/*
* 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.
*/
#include <alibabacloud/cloudapi/model/DescribeApisBySignatureResult.h>
#include <json/json.h>
using namespace AlibabaCloud::CloudAPI;
using namespace AlibabaCloud::CloudAPI::Model;
DescribeApisBySignatureResult::DescribeApisBySignatureResult() :
ServiceResult()
{}
DescribeApisBySignatureResult::DescribeApisBySignatureResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DescribeApisBySignatureResult::~DescribeApisBySignatureResult()
{}
void DescribeApisBySignatureResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto allApiInfos = value["ApiInfos"]["ApiInfo"];
for (auto value : allApiInfos)
{
ApiInfo apiInfosObject;
if(!value["RegionId"].isNull())
apiInfosObject.regionId = value["RegionId"].asString();
if(!value["GroupId"].isNull())
apiInfosObject.groupId = value["GroupId"].asString();
if(!value["GroupName"].isNull())
apiInfosObject.groupName = value["GroupName"].asString();
if(!value["StageName"].isNull())
apiInfosObject.stageName = value["StageName"].asString();
if(!value["ApiId"].isNull())
apiInfosObject.apiId = value["ApiId"].asString();
if(!value["ApiName"].isNull())
apiInfosObject.apiName = value["ApiName"].asString();
if(!value["Description"].isNull())
apiInfosObject.description = value["Description"].asString();
if(!value["Visibility"].isNull())
apiInfosObject.visibility = value["Visibility"].asString();
if(!value["BoundTime"].isNull())
apiInfosObject.boundTime = value["BoundTime"].asString();
apiInfos_.push_back(apiInfosObject);
}
if(!value["TotalCount"].isNull())
totalCount_ = std::stoi(value["TotalCount"].asString());
if(!value["PageSize"].isNull())
pageSize_ = std::stoi(value["PageSize"].asString());
if(!value["PageNumber"].isNull())
pageNumber_ = std::stoi(value["PageNumber"].asString());
}
std::vector<DescribeApisBySignatureResult::ApiInfo> DescribeApisBySignatureResult::getApiInfos()const
{
return apiInfos_;
}
int DescribeApisBySignatureResult::getTotalCount()const
{
return totalCount_;
}
int DescribeApisBySignatureResult::getPageSize()const
{
return pageSize_;
}
int DescribeApisBySignatureResult::getPageNumber()const
{
return pageNumber_;
}

View File

@@ -0,0 +1,82 @@
/*
* 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.
*/
#include <alibabacloud/cloudapi/model/DescribeApisByTrafficControlRequest.h>
using AlibabaCloud::CloudAPI::Model::DescribeApisByTrafficControlRequest;
DescribeApisByTrafficControlRequest::DescribeApisByTrafficControlRequest() :
RpcServiceRequest("cloudapi", "2016-07-14", "DescribeApisByTrafficControl")
{}
DescribeApisByTrafficControlRequest::~DescribeApisByTrafficControlRequest()
{}
std::string DescribeApisByTrafficControlRequest::getTrafficControlId()const
{
return trafficControlId_;
}
void DescribeApisByTrafficControlRequest::setTrafficControlId(const std::string& trafficControlId)
{
trafficControlId_ = trafficControlId;
setCoreParameter("TrafficControlId", trafficControlId);
}
std::string DescribeApisByTrafficControlRequest::getSecurityToken()const
{
return securityToken_;
}
void DescribeApisByTrafficControlRequest::setSecurityToken(const std::string& securityToken)
{
securityToken_ = securityToken;
setCoreParameter("SecurityToken", securityToken);
}
int DescribeApisByTrafficControlRequest::getPageSize()const
{
return pageSize_;
}
void DescribeApisByTrafficControlRequest::setPageSize(int pageSize)
{
pageSize_ = pageSize;
setCoreParameter("PageSize", std::to_string(pageSize));
}
int DescribeApisByTrafficControlRequest::getPageNumber()const
{
return pageNumber_;
}
void DescribeApisByTrafficControlRequest::setPageNumber(int pageNumber)
{
pageNumber_ = pageNumber;
setCoreParameter("PageNumber", std::to_string(pageNumber));
}
std::string DescribeApisByTrafficControlRequest::getAccessKeyId()const
{
return accessKeyId_;
}
void DescribeApisByTrafficControlRequest::setAccessKeyId(const std::string& accessKeyId)
{
accessKeyId_ = accessKeyId;
setCoreParameter("AccessKeyId", accessKeyId);
}

View File

@@ -0,0 +1,95 @@
/*
* 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.
*/
#include <alibabacloud/cloudapi/model/DescribeApisByTrafficControlResult.h>
#include <json/json.h>
using namespace AlibabaCloud::CloudAPI;
using namespace AlibabaCloud::CloudAPI::Model;
DescribeApisByTrafficControlResult::DescribeApisByTrafficControlResult() :
ServiceResult()
{}
DescribeApisByTrafficControlResult::DescribeApisByTrafficControlResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DescribeApisByTrafficControlResult::~DescribeApisByTrafficControlResult()
{}
void DescribeApisByTrafficControlResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto allApiInfos = value["ApiInfos"]["ApiInfo"];
for (auto value : allApiInfos)
{
ApiInfo apiInfosObject;
if(!value["RegionId"].isNull())
apiInfosObject.regionId = value["RegionId"].asString();
if(!value["GroupId"].isNull())
apiInfosObject.groupId = value["GroupId"].asString();
if(!value["GroupName"].isNull())
apiInfosObject.groupName = value["GroupName"].asString();
if(!value["StageName"].isNull())
apiInfosObject.stageName = value["StageName"].asString();
if(!value["ApiId"].isNull())
apiInfosObject.apiId = value["ApiId"].asString();
if(!value["ApiName"].isNull())
apiInfosObject.apiName = value["ApiName"].asString();
if(!value["Description"].isNull())
apiInfosObject.description = value["Description"].asString();
if(!value["Visibility"].isNull())
apiInfosObject.visibility = value["Visibility"].asString();
if(!value["BoundTime"].isNull())
apiInfosObject.boundTime = value["BoundTime"].asString();
apiInfos_.push_back(apiInfosObject);
}
if(!value["TotalCount"].isNull())
totalCount_ = std::stoi(value["TotalCount"].asString());
if(!value["PageSize"].isNull())
pageSize_ = std::stoi(value["PageSize"].asString());
if(!value["PageNumber"].isNull())
pageNumber_ = std::stoi(value["PageNumber"].asString());
}
std::vector<DescribeApisByTrafficControlResult::ApiInfo> DescribeApisByTrafficControlResult::getApiInfos()const
{
return apiInfos_;
}
int DescribeApisByTrafficControlResult::getTotalCount()const
{
return totalCount_;
}
int DescribeApisByTrafficControlResult::getPageSize()const
{
return pageSize_;
}
int DescribeApisByTrafficControlResult::getPageNumber()const
{
return pageNumber_;
}

View File

@@ -0,0 +1,126 @@
/*
* 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.
*/
#include <alibabacloud/cloudapi/model/DescribeApisRequest.h>
using AlibabaCloud::CloudAPI::Model::DescribeApisRequest;
DescribeApisRequest::DescribeApisRequest() :
RpcServiceRequest("cloudapi", "2016-07-14", "DescribeApis")
{}
DescribeApisRequest::~DescribeApisRequest()
{}
std::string DescribeApisRequest::getApiName()const
{
return apiName_;
}
void DescribeApisRequest::setApiName(const std::string& apiName)
{
apiName_ = apiName;
setCoreParameter("ApiName", apiName);
}
std::string DescribeApisRequest::getCatalogId()const
{
return catalogId_;
}
void DescribeApisRequest::setCatalogId(const std::string& catalogId)
{
catalogId_ = catalogId;
setCoreParameter("CatalogId", catalogId);
}
std::string DescribeApisRequest::getVisibility()const
{
return visibility_;
}
void DescribeApisRequest::setVisibility(const std::string& visibility)
{
visibility_ = visibility;
setCoreParameter("Visibility", visibility);
}
std::string DescribeApisRequest::getSecurityToken()const
{
return securityToken_;
}
void DescribeApisRequest::setSecurityToken(const std::string& securityToken)
{
securityToken_ = securityToken;
setCoreParameter("SecurityToken", securityToken);
}
std::string DescribeApisRequest::getGroupId()const
{
return groupId_;
}
void DescribeApisRequest::setGroupId(const std::string& groupId)
{
groupId_ = groupId;
setCoreParameter("GroupId", groupId);
}
int DescribeApisRequest::getPageSize()const
{
return pageSize_;
}
void DescribeApisRequest::setPageSize(int pageSize)
{
pageSize_ = pageSize;
setCoreParameter("PageSize", std::to_string(pageSize));
}
std::string DescribeApisRequest::getApiId()const
{
return apiId_;
}
void DescribeApisRequest::setApiId(const std::string& apiId)
{
apiId_ = apiId;
setCoreParameter("ApiId", apiId);
}
int DescribeApisRequest::getPageNumber()const
{
return pageNumber_;
}
void DescribeApisRequest::setPageNumber(int pageNumber)
{
pageNumber_ = pageNumber;
setCoreParameter("PageNumber", std::to_string(pageNumber));
}
std::string DescribeApisRequest::getAccessKeyId()const
{
return accessKeyId_;
}
void DescribeApisRequest::setAccessKeyId(const std::string& accessKeyId)
{
accessKeyId_ = accessKeyId;
setCoreParameter("AccessKeyId", accessKeyId);
}

View File

@@ -0,0 +1,95 @@
/*
* 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.
*/
#include <alibabacloud/cloudapi/model/DescribeApisResult.h>
#include <json/json.h>
using namespace AlibabaCloud::CloudAPI;
using namespace AlibabaCloud::CloudAPI::Model;
DescribeApisResult::DescribeApisResult() :
ServiceResult()
{}
DescribeApisResult::DescribeApisResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DescribeApisResult::~DescribeApisResult()
{}
void DescribeApisResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto allApiSummarys = value["ApiSummarys"]["ApiSummary"];
for (auto value : allApiSummarys)
{
ApiSummary apiSummarysObject;
if(!value["RegionId"].isNull())
apiSummarysObject.regionId = value["RegionId"].asString();
if(!value["GroupId"].isNull())
apiSummarysObject.groupId = value["GroupId"].asString();
if(!value["GroupName"].isNull())
apiSummarysObject.groupName = value["GroupName"].asString();
if(!value["ApiId"].isNull())
apiSummarysObject.apiId = value["ApiId"].asString();
if(!value["ApiName"].isNull())
apiSummarysObject.apiName = value["ApiName"].asString();
if(!value["Visibility"].isNull())
apiSummarysObject.visibility = value["Visibility"].asString();
if(!value["Description"].isNull())
apiSummarysObject.description = value["Description"].asString();
if(!value["CreatedTime"].isNull())
apiSummarysObject.createdTime = value["CreatedTime"].asString();
if(!value["ModifiedTime"].isNull())
apiSummarysObject.modifiedTime = value["ModifiedTime"].asString();
apiSummarys_.push_back(apiSummarysObject);
}
if(!value["TotalCount"].isNull())
totalCount_ = std::stoi(value["TotalCount"].asString());
if(!value["PageSize"].isNull())
pageSize_ = std::stoi(value["PageSize"].asString());
if(!value["PageNumber"].isNull())
pageNumber_ = std::stoi(value["PageNumber"].asString());
}
int DescribeApisResult::getTotalCount()const
{
return totalCount_;
}
int DescribeApisResult::getPageSize()const
{
return pageSize_;
}
int DescribeApisResult::getPageNumber()const
{
return pageNumber_;
}
std::vector<DescribeApisResult::ApiSummary> DescribeApisResult::getApiSummarys()const
{
return apiSummarys_;
}

View File

@@ -0,0 +1,110 @@
/*
* 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.
*/
#include <alibabacloud/cloudapi/model/DescribeAppAttributesRequest.h>
using AlibabaCloud::CloudAPI::Model::DescribeAppAttributesRequest;
DescribeAppAttributesRequest::DescribeAppAttributesRequest() :
RpcServiceRequest("cloudapi", "2016-07-14", "DescribeAppAttributes")
{}
DescribeAppAttributesRequest::~DescribeAppAttributesRequest()
{}
std::string DescribeAppAttributesRequest::getAppName()const
{
return appName_;
}
void DescribeAppAttributesRequest::setAppName(const std::string& appName)
{
appName_ = appName;
setCoreParameter("AppName", appName);
}
std::string DescribeAppAttributesRequest::getSecurityToken()const
{
return securityToken_;
}
void DescribeAppAttributesRequest::setSecurityToken(const std::string& securityToken)
{
securityToken_ = securityToken;
setCoreParameter("SecurityToken", securityToken);
}
long DescribeAppAttributesRequest::getAppId()const
{
return appId_;
}
void DescribeAppAttributesRequest::setAppId(long appId)
{
appId_ = appId;
setCoreParameter("AppId", std::to_string(appId));
}
int DescribeAppAttributesRequest::getPageSize()const
{
return pageSize_;
}
void DescribeAppAttributesRequest::setPageSize(int pageSize)
{
pageSize_ = pageSize;
setCoreParameter("PageSize", std::to_string(pageSize));
}
std::vector<DescribeAppAttributesRequest::Tag> DescribeAppAttributesRequest::getTag()const
{
return tag_;
}
void DescribeAppAttributesRequest::setTag(const std::vector<Tag>& tag)
{
tag_ = tag;
int i = 0;
for(int i = 0; i!= tag.size(); i++) {
auto obj = tag.at(i);
std::string str ="Tag."+ std::to_string(i);
setCoreParameter(str + ".Value", obj.value);
setCoreParameter(str + ".Key", obj.key);
}
}
int DescribeAppAttributesRequest::getPageNumber()const
{
return pageNumber_;
}
void DescribeAppAttributesRequest::setPageNumber(int pageNumber)
{
pageNumber_ = pageNumber;
setCoreParameter("PageNumber", std::to_string(pageNumber));
}
std::string DescribeAppAttributesRequest::getAccessKeyId()const
{
return accessKeyId_;
}
void DescribeAppAttributesRequest::setAccessKeyId(const std::string& accessKeyId)
{
accessKeyId_ = accessKeyId;
setCoreParameter("AccessKeyId", accessKeyId);
}

View File

@@ -0,0 +1,87 @@
/*
* 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.
*/
#include <alibabacloud/cloudapi/model/DescribeAppAttributesResult.h>
#include <json/json.h>
using namespace AlibabaCloud::CloudAPI;
using namespace AlibabaCloud::CloudAPI::Model;
DescribeAppAttributesResult::DescribeAppAttributesResult() :
ServiceResult()
{}
DescribeAppAttributesResult::DescribeAppAttributesResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DescribeAppAttributesResult::~DescribeAppAttributesResult()
{}
void DescribeAppAttributesResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto allApps = value["Apps"]["AppAttribute"];
for (auto value : allApps)
{
AppAttribute appsObject;
if(!value["AppId"].isNull())
appsObject.appId = std::stol(value["AppId"].asString());
if(!value["AppName"].isNull())
appsObject.appName = value["AppName"].asString();
if(!value["Description"].isNull())
appsObject.description = value["Description"].asString();
if(!value["CreatedTime"].isNull())
appsObject.createdTime = value["CreatedTime"].asString();
if(!value["ModifiedTime"].isNull())
appsObject.modifiedTime = value["ModifiedTime"].asString();
apps_.push_back(appsObject);
}
if(!value["TotalCount"].isNull())
totalCount_ = std::stoi(value["TotalCount"].asString());
if(!value["PageSize"].isNull())
pageSize_ = std::stoi(value["PageSize"].asString());
if(!value["PageNumber"].isNull())
pageNumber_ = std::stoi(value["PageNumber"].asString());
}
int DescribeAppAttributesResult::getTotalCount()const
{
return totalCount_;
}
int DescribeAppAttributesResult::getPageSize()const
{
return pageSize_;
}
int DescribeAppAttributesResult::getPageNumber()const
{
return pageNumber_;
}
std::vector<DescribeAppAttributesResult::AppAttribute> DescribeAppAttributesResult::getApps()const
{
return apps_;
}

View File

@@ -0,0 +1,60 @@
/*
* 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.
*/
#include <alibabacloud/cloudapi/model/DescribeAppRequest.h>
using AlibabaCloud::CloudAPI::Model::DescribeAppRequest;
DescribeAppRequest::DescribeAppRequest() :
RpcServiceRequest("cloudapi", "2016-07-14", "DescribeApp")
{}
DescribeAppRequest::~DescribeAppRequest()
{}
std::string DescribeAppRequest::getSecurityToken()const
{
return securityToken_;
}
void DescribeAppRequest::setSecurityToken(const std::string& securityToken)
{
securityToken_ = securityToken;
setCoreParameter("SecurityToken", securityToken);
}
long DescribeAppRequest::getAppId()const
{
return appId_;
}
void DescribeAppRequest::setAppId(long appId)
{
appId_ = appId;
setCoreParameter("AppId", std::to_string(appId));
}
std::string DescribeAppRequest::getAccessKeyId()const
{
return accessKeyId_;
}
void DescribeAppRequest::setAccessKeyId(const std::string& accessKeyId)
{
accessKeyId_ = accessKeyId;
setCoreParameter("AccessKeyId", accessKeyId);
}

View File

@@ -0,0 +1,80 @@
/*
* 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.
*/
#include <alibabacloud/cloudapi/model/DescribeAppResult.h>
#include <json/json.h>
using namespace AlibabaCloud::CloudAPI;
using namespace AlibabaCloud::CloudAPI::Model;
DescribeAppResult::DescribeAppResult() :
ServiceResult()
{}
DescribeAppResult::DescribeAppResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DescribeAppResult::~DescribeAppResult()
{}
void DescribeAppResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
if(!value["AppId"].isNull())
appId_ = std::stol(value["AppId"].asString());
if(!value["AppName"].isNull())
appName_ = value["AppName"].asString();
if(!value["Description"].isNull())
description_ = value["Description"].asString();
if(!value["CreatedTime"].isNull())
createdTime_ = value["CreatedTime"].asString();
if(!value["ModifiedTime"].isNull())
modifiedTime_ = value["ModifiedTime"].asString();
}
std::string DescribeAppResult::getDescription()const
{
return description_;
}
std::string DescribeAppResult::getCreatedTime()const
{
return createdTime_;
}
long DescribeAppResult::getAppId()const
{
return appId_;
}
std::string DescribeAppResult::getModifiedTime()const
{
return modifiedTime_;
}
std::string DescribeAppResult::getAppName()const
{
return appName_;
}

View File

@@ -0,0 +1,77 @@
/*
* 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.
*/
#include <alibabacloud/cloudapi/model/DescribeAppSecurityRequest.h>
using AlibabaCloud::CloudAPI::Model::DescribeAppSecurityRequest;
DescribeAppSecurityRequest::DescribeAppSecurityRequest() :
RpcServiceRequest("cloudapi", "2016-07-14", "DescribeAppSecurity")
{}
DescribeAppSecurityRequest::~DescribeAppSecurityRequest()
{}
std::string DescribeAppSecurityRequest::getSecurityToken()const
{
return securityToken_;
}
void DescribeAppSecurityRequest::setSecurityToken(const std::string& securityToken)
{
securityToken_ = securityToken;
setCoreParameter("SecurityToken", securityToken);
}
long DescribeAppSecurityRequest::getAppId()const
{
return appId_;
}
void DescribeAppSecurityRequest::setAppId(long appId)
{
appId_ = appId;
setCoreParameter("AppId", std::to_string(appId));
}
std::vector<DescribeAppSecurityRequest::Tag> DescribeAppSecurityRequest::getTag()const
{
return tag_;
}
void DescribeAppSecurityRequest::setTag(const std::vector<Tag>& tag)
{
tag_ = tag;
int i = 0;
for(int i = 0; i!= tag.size(); i++) {
auto obj = tag.at(i);
std::string str ="Tag."+ std::to_string(i);
setCoreParameter(str + ".Value", obj.value);
setCoreParameter(str + ".Key", obj.key);
}
}
std::string DescribeAppSecurityRequest::getAccessKeyId()const
{
return accessKeyId_;
}
void DescribeAppSecurityRequest::setAccessKeyId(const std::string& accessKeyId)
{
accessKeyId_ = accessKeyId;
setCoreParameter("AccessKeyId", accessKeyId);
}

View File

@@ -0,0 +1,80 @@
/*
* 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.
*/
#include <alibabacloud/cloudapi/model/DescribeAppSecurityResult.h>
#include <json/json.h>
using namespace AlibabaCloud::CloudAPI;
using namespace AlibabaCloud::CloudAPI::Model;
DescribeAppSecurityResult::DescribeAppSecurityResult() :
ServiceResult()
{}
DescribeAppSecurityResult::DescribeAppSecurityResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DescribeAppSecurityResult::~DescribeAppSecurityResult()
{}
void DescribeAppSecurityResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
if(!value["AppKey"].isNull())
appKey_ = value["AppKey"].asString();
if(!value["AppSecret"].isNull())
appSecret_ = value["AppSecret"].asString();
if(!value["CreatedTime"].isNull())
createdTime_ = value["CreatedTime"].asString();
if(!value["ModifiedTime"].isNull())
modifiedTime_ = value["ModifiedTime"].asString();
if(!value["AppCode"].isNull())
appCode_ = value["AppCode"].asString();
}
std::string DescribeAppSecurityResult::getAppCode()const
{
return appCode_;
}
std::string DescribeAppSecurityResult::getCreatedTime()const
{
return createdTime_;
}
std::string DescribeAppSecurityResult::getModifiedTime()const
{
return modifiedTime_;
}
std::string DescribeAppSecurityResult::getAppKey()const
{
return appKey_;
}
std::string DescribeAppSecurityResult::getAppSecret()const
{
return appSecret_;
}

View File

@@ -0,0 +1,93 @@
/*
* 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.
*/
#include <alibabacloud/cloudapi/model/DescribeAppsRequest.h>
using AlibabaCloud::CloudAPI::Model::DescribeAppsRequest;
DescribeAppsRequest::DescribeAppsRequest() :
RpcServiceRequest("cloudapi", "2016-07-14", "DescribeApps")
{}
DescribeAppsRequest::~DescribeAppsRequest()
{}
std::string DescribeAppsRequest::getSecurityToken()const
{
return securityToken_;
}
void DescribeAppsRequest::setSecurityToken(const std::string& securityToken)
{
securityToken_ = securityToken;
setCoreParameter("SecurityToken", securityToken);
}
long DescribeAppsRequest::getAppId()const
{
return appId_;
}
void DescribeAppsRequest::setAppId(long appId)
{
appId_ = appId;
setCoreParameter("AppId", std::to_string(appId));
}
int DescribeAppsRequest::getPageSize()const
{
return pageSize_;
}
void DescribeAppsRequest::setPageSize(int pageSize)
{
pageSize_ = pageSize;
setCoreParameter("PageSize", std::to_string(pageSize));
}
long DescribeAppsRequest::getAppOwner()const
{
return appOwner_;
}
void DescribeAppsRequest::setAppOwner(long appOwner)
{
appOwner_ = appOwner;
setCoreParameter("AppOwner", std::to_string(appOwner));
}
int DescribeAppsRequest::getPageNumber()const
{
return pageNumber_;
}
void DescribeAppsRequest::setPageNumber(int pageNumber)
{
pageNumber_ = pageNumber;
setCoreParameter("PageNumber", std::to_string(pageNumber));
}
std::string DescribeAppsRequest::getAccessKeyId()const
{
return accessKeyId_;
}
void DescribeAppsRequest::setAccessKeyId(const std::string& accessKeyId)
{
accessKeyId_ = accessKeyId;
setCoreParameter("AccessKeyId", accessKeyId);
}

View File

@@ -0,0 +1,83 @@
/*
* 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.
*/
#include <alibabacloud/cloudapi/model/DescribeAppsResult.h>
#include <json/json.h>
using namespace AlibabaCloud::CloudAPI;
using namespace AlibabaCloud::CloudAPI::Model;
DescribeAppsResult::DescribeAppsResult() :
ServiceResult()
{}
DescribeAppsResult::DescribeAppsResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DescribeAppsResult::~DescribeAppsResult()
{}
void DescribeAppsResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto allApps = value["Apps"]["AppItem"];
for (auto value : allApps)
{
AppItem appsObject;
if(!value["AppId"].isNull())
appsObject.appId = std::stol(value["AppId"].asString());
if(!value["AppName"].isNull())
appsObject.appName = value["AppName"].asString();
if(!value["Description"].isNull())
appsObject.description = value["Description"].asString();
apps_.push_back(appsObject);
}
if(!value["TotalCount"].isNull())
totalCount_ = std::stoi(value["TotalCount"].asString());
if(!value["PageSize"].isNull())
pageSize_ = std::stoi(value["PageSize"].asString());
if(!value["PageNumber"].isNull())
pageNumber_ = std::stoi(value["PageNumber"].asString());
}
int DescribeAppsResult::getTotalCount()const
{
return totalCount_;
}
int DescribeAppsResult::getPageSize()const
{
return pageSize_;
}
int DescribeAppsResult::getPageNumber()const
{
return pageNumber_;
}
std::vector<DescribeAppsResult::AppItem> DescribeAppsResult::getApps()const
{
return apps_;
}

View File

@@ -0,0 +1,82 @@
/*
* 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.
*/
#include <alibabacloud/cloudapi/model/DescribeAuthorizedApisRequest.h>
using AlibabaCloud::CloudAPI::Model::DescribeAuthorizedApisRequest;
DescribeAuthorizedApisRequest::DescribeAuthorizedApisRequest() :
RpcServiceRequest("cloudapi", "2016-07-14", "DescribeAuthorizedApis")
{}
DescribeAuthorizedApisRequest::~DescribeAuthorizedApisRequest()
{}
std::string DescribeAuthorizedApisRequest::getSecurityToken()const
{
return securityToken_;
}
void DescribeAuthorizedApisRequest::setSecurityToken(const std::string& securityToken)
{
securityToken_ = securityToken;
setCoreParameter("SecurityToken", securityToken);
}
long DescribeAuthorizedApisRequest::getAppId()const
{
return appId_;
}
void DescribeAuthorizedApisRequest::setAppId(long appId)
{
appId_ = appId;
setCoreParameter("AppId", std::to_string(appId));
}
int DescribeAuthorizedApisRequest::getPageSize()const
{
return pageSize_;
}
void DescribeAuthorizedApisRequest::setPageSize(int pageSize)
{
pageSize_ = pageSize;
setCoreParameter("PageSize", std::to_string(pageSize));
}
int DescribeAuthorizedApisRequest::getPageNumber()const
{
return pageNumber_;
}
void DescribeAuthorizedApisRequest::setPageNumber(int pageNumber)
{
pageNumber_ = pageNumber;
setCoreParameter("PageNumber", std::to_string(pageNumber));
}
std::string DescribeAuthorizedApisRequest::getAccessKeyId()const
{
return accessKeyId_;
}
void DescribeAuthorizedApisRequest::setAccessKeyId(const std::string& accessKeyId)
{
accessKeyId_ = accessKeyId;
setCoreParameter("AccessKeyId", accessKeyId);
}

View File

@@ -0,0 +1,99 @@
/*
* 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.
*/
#include <alibabacloud/cloudapi/model/DescribeAuthorizedApisResult.h>
#include <json/json.h>
using namespace AlibabaCloud::CloudAPI;
using namespace AlibabaCloud::CloudAPI::Model;
DescribeAuthorizedApisResult::DescribeAuthorizedApisResult() :
ServiceResult()
{}
DescribeAuthorizedApisResult::DescribeAuthorizedApisResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DescribeAuthorizedApisResult::~DescribeAuthorizedApisResult()
{}
void DescribeAuthorizedApisResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto allAuthorizedApis = value["AuthorizedApis"]["AuthorizedApi"];
for (auto value : allAuthorizedApis)
{
AuthorizedApi authorizedApisObject;
if(!value["RegionId"].isNull())
authorizedApisObject.regionId = value["RegionId"].asString();
if(!value["GroupId"].isNull())
authorizedApisObject.groupId = value["GroupId"].asString();
if(!value["GroupName"].isNull())
authorizedApisObject.groupName = value["GroupName"].asString();
if(!value["StageName"].isNull())
authorizedApisObject.stageName = value["StageName"].asString();
if(!value["Operator"].isNull())
authorizedApisObject._operator = value["Operator"].asString();
if(!value["ApiId"].isNull())
authorizedApisObject.apiId = value["ApiId"].asString();
if(!value["ApiName"].isNull())
authorizedApisObject.apiName = value["ApiName"].asString();
if(!value["AuthorizationSource"].isNull())
authorizedApisObject.authorizationSource = value["AuthorizationSource"].asString();
if(!value["Description"].isNull())
authorizedApisObject.description = value["Description"].asString();
if(!value["AuthorizedTime"].isNull())
authorizedApisObject.authorizedTime = value["AuthorizedTime"].asString();
if(!value["AuthVaildTime"].isNull())
authorizedApisObject.authVaildTime = value["AuthVaildTime"].asString();
authorizedApis_.push_back(authorizedApisObject);
}
if(!value["TotalCount"].isNull())
totalCount_ = std::stoi(value["TotalCount"].asString());
if(!value["PageSize"].isNull())
pageSize_ = std::stoi(value["PageSize"].asString());
if(!value["PageNumber"].isNull())
pageNumber_ = std::stoi(value["PageNumber"].asString());
}
int DescribeAuthorizedApisResult::getTotalCount()const
{
return totalCount_;
}
int DescribeAuthorizedApisResult::getPageSize()const
{
return pageSize_;
}
int DescribeAuthorizedApisResult::getPageNumber()const
{
return pageNumber_;
}
std::vector<DescribeAuthorizedApisResult::AuthorizedApi> DescribeAuthorizedApisResult::getAuthorizedApis()const
{
return authorizedApis_;
}

View File

@@ -0,0 +1,137 @@
/*
* 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.
*/
#include <alibabacloud/cloudapi/model/DescribeAuthorizedAppsRequest.h>
using AlibabaCloud::CloudAPI::Model::DescribeAuthorizedAppsRequest;
DescribeAuthorizedAppsRequest::DescribeAuthorizedAppsRequest() :
RpcServiceRequest("cloudapi", "2016-07-14", "DescribeAuthorizedApps")
{}
DescribeAuthorizedAppsRequest::~DescribeAuthorizedAppsRequest()
{}
std::string DescribeAuthorizedAppsRequest::getStageName()const
{
return stageName_;
}
void DescribeAuthorizedAppsRequest::setStageName(const std::string& stageName)
{
stageName_ = stageName;
setCoreParameter("StageName", stageName);
}
std::string DescribeAuthorizedAppsRequest::getAppName()const
{
return appName_;
}
void DescribeAuthorizedAppsRequest::setAppName(const std::string& appName)
{
appName_ = appName;
setCoreParameter("AppName", appName);
}
std::string DescribeAuthorizedAppsRequest::getSecurityToken()const
{
return securityToken_;
}
void DescribeAuthorizedAppsRequest::setSecurityToken(const std::string& securityToken)
{
securityToken_ = securityToken;
setCoreParameter("SecurityToken", securityToken);
}
std::string DescribeAuthorizedAppsRequest::getGroupId()const
{
return groupId_;
}
void DescribeAuthorizedAppsRequest::setGroupId(const std::string& groupId)
{
groupId_ = groupId;
setCoreParameter("GroupId", groupId);
}
long DescribeAuthorizedAppsRequest::getAppId()const
{
return appId_;
}
void DescribeAuthorizedAppsRequest::setAppId(long appId)
{
appId_ = appId;
setCoreParameter("AppId", std::to_string(appId));
}
long DescribeAuthorizedAppsRequest::getAppOwnerId()const
{
return appOwnerId_;
}
void DescribeAuthorizedAppsRequest::setAppOwnerId(long appOwnerId)
{
appOwnerId_ = appOwnerId;
setCoreParameter("AppOwnerId", std::to_string(appOwnerId));
}
int DescribeAuthorizedAppsRequest::getPageSize()const
{
return pageSize_;
}
void DescribeAuthorizedAppsRequest::setPageSize(int pageSize)
{
pageSize_ = pageSize;
setCoreParameter("PageSize", std::to_string(pageSize));
}
std::string DescribeAuthorizedAppsRequest::getApiId()const
{
return apiId_;
}
void DescribeAuthorizedAppsRequest::setApiId(const std::string& apiId)
{
apiId_ = apiId;
setCoreParameter("ApiId", apiId);
}
int DescribeAuthorizedAppsRequest::getPageNumber()const
{
return pageNumber_;
}
void DescribeAuthorizedAppsRequest::setPageNumber(int pageNumber)
{
pageNumber_ = pageNumber;
setCoreParameter("PageNumber", std::to_string(pageNumber));
}
std::string DescribeAuthorizedAppsRequest::getAccessKeyId()const
{
return accessKeyId_;
}
void DescribeAuthorizedAppsRequest::setAccessKeyId(const std::string& accessKeyId)
{
accessKeyId_ = accessKeyId;
setCoreParameter("AccessKeyId", accessKeyId);
}

View File

@@ -0,0 +1,93 @@
/*
* 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.
*/
#include <alibabacloud/cloudapi/model/DescribeAuthorizedAppsResult.h>
#include <json/json.h>
using namespace AlibabaCloud::CloudAPI;
using namespace AlibabaCloud::CloudAPI::Model;
DescribeAuthorizedAppsResult::DescribeAuthorizedAppsResult() :
ServiceResult()
{}
DescribeAuthorizedAppsResult::DescribeAuthorizedAppsResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DescribeAuthorizedAppsResult::~DescribeAuthorizedAppsResult()
{}
void DescribeAuthorizedAppsResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto allAuthorizedApps = value["AuthorizedApps"]["AuthorizedApp"];
for (auto value : allAuthorizedApps)
{
AuthorizedApp authorizedAppsObject;
if(!value["StageName"].isNull())
authorizedAppsObject.stageName = value["StageName"].asString();
if(!value["AppId"].isNull())
authorizedAppsObject.appId = std::stol(value["AppId"].asString());
if(!value["AppName"].isNull())
authorizedAppsObject.appName = value["AppName"].asString();
if(!value["Operator"].isNull())
authorizedAppsObject._operator = value["Operator"].asString();
if(!value["AuthorizationSource"].isNull())
authorizedAppsObject.authorizationSource = value["AuthorizationSource"].asString();
if(!value["Description"].isNull())
authorizedAppsObject.description = value["Description"].asString();
if(!value["AuthorizedTime"].isNull())
authorizedAppsObject.authorizedTime = value["AuthorizedTime"].asString();
if(!value["AuthVaildTime"].isNull())
authorizedAppsObject.authVaildTime = value["AuthVaildTime"].asString();
authorizedApps_.push_back(authorizedAppsObject);
}
if(!value["TotalCount"].isNull())
totalCount_ = std::stoi(value["TotalCount"].asString());
if(!value["PageSize"].isNull())
pageSize_ = std::stoi(value["PageSize"].asString());
if(!value["PageNumber"].isNull())
pageNumber_ = std::stoi(value["PageNumber"].asString());
}
int DescribeAuthorizedAppsResult::getTotalCount()const
{
return totalCount_;
}
int DescribeAuthorizedAppsResult::getPageSize()const
{
return pageSize_;
}
std::vector<DescribeAuthorizedAppsResult::AuthorizedApp> DescribeAuthorizedAppsResult::getAuthorizedApps()const
{
return authorizedApps_;
}
int DescribeAuthorizedAppsResult::getPageNumber()const
{
return pageNumber_;
}

Some files were not shown because too many files have changed in this diff Show More