Add ImportOAS.
This commit is contained in:
@@ -1,84 +1,72 @@
|
||||
/*
|
||||
* 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")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
AbolishApiRequest::~AbolishApiRequest()
|
||||
{}
|
||||
|
||||
std::string AbolishApiRequest::getStageName()const
|
||||
{
|
||||
return stageName_;
|
||||
*/
|
||||
|
||||
#include <alibabacloud/cloudapi/model/AbolishApiRequest.h>
|
||||
|
||||
using AlibabaCloud::CloudAPI::Model::AbolishApiRequest;
|
||||
|
||||
AbolishApiRequest::AbolishApiRequest()
|
||||
: RpcServiceRequest("cloudapi", "2016-07-14", "AbolishApi") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
void AbolishApiRequest::setStageName(const std::string& stageName)
|
||||
{
|
||||
stageName_ = stageName;
|
||||
setParameter("StageName", stageName);
|
||||
AbolishApiRequest::~AbolishApiRequest() {}
|
||||
|
||||
std::string AbolishApiRequest::getStageName() const {
|
||||
return stageName_;
|
||||
}
|
||||
|
||||
std::string AbolishApiRequest::getGroupId()const
|
||||
{
|
||||
return groupId_;
|
||||
void AbolishApiRequest::setStageName(const std::string &stageName) {
|
||||
stageName_ = stageName;
|
||||
setParameter(std::string("StageName"), stageName);
|
||||
}
|
||||
|
||||
void AbolishApiRequest::setGroupId(const std::string& groupId)
|
||||
{
|
||||
groupId_ = groupId;
|
||||
setParameter("GroupId", groupId);
|
||||
std::string AbolishApiRequest::getGroupId() const {
|
||||
return groupId_;
|
||||
}
|
||||
|
||||
std::string AbolishApiRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
void AbolishApiRequest::setGroupId(const std::string &groupId) {
|
||||
groupId_ = groupId;
|
||||
setParameter(std::string("GroupId"), groupId);
|
||||
}
|
||||
|
||||
void AbolishApiRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter("AccessKeyId", accessKeyId);
|
||||
std::string AbolishApiRequest::getAccessKeyId() const {
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
std::string AbolishApiRequest::getSecurityToken()const
|
||||
{
|
||||
return securityToken_;
|
||||
void AbolishApiRequest::setAccessKeyId(const std::string &accessKeyId) {
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter(std::string("AccessKeyId"), accessKeyId);
|
||||
}
|
||||
|
||||
void AbolishApiRequest::setSecurityToken(const std::string& securityToken)
|
||||
{
|
||||
securityToken_ = securityToken;
|
||||
setParameter("SecurityToken", securityToken);
|
||||
std::string AbolishApiRequest::getSecurityToken() const {
|
||||
return securityToken_;
|
||||
}
|
||||
|
||||
std::string AbolishApiRequest::getApiId()const
|
||||
{
|
||||
return apiId_;
|
||||
void AbolishApiRequest::setSecurityToken(const std::string &securityToken) {
|
||||
securityToken_ = securityToken;
|
||||
setParameter(std::string("SecurityToken"), securityToken);
|
||||
}
|
||||
|
||||
void AbolishApiRequest::setApiId(const std::string& apiId)
|
||||
{
|
||||
apiId_ = apiId;
|
||||
setParameter("ApiId", apiId);
|
||||
std::string AbolishApiRequest::getApiId() const {
|
||||
return apiId_;
|
||||
}
|
||||
|
||||
void AbolishApiRequest::setApiId(const std::string &apiId) {
|
||||
apiId_ = apiId;
|
||||
setParameter(std::string("ApiId"), apiId);
|
||||
}
|
||||
|
||||
|
||||
63
cloudapi/src/model/AddAccessControlListEntryRequest.cc
Normal file
63
cloudapi/src/model/AddAccessControlListEntryRequest.cc
Normal file
@@ -0,0 +1,63 @@
|
||||
/*
|
||||
* 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/AddAccessControlListEntryRequest.h>
|
||||
|
||||
using AlibabaCloud::CloudAPI::Model::AddAccessControlListEntryRequest;
|
||||
|
||||
AddAccessControlListEntryRequest::AddAccessControlListEntryRequest()
|
||||
: RpcServiceRequest("cloudapi", "2016-07-14", "AddAccessControlListEntry") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
AddAccessControlListEntryRequest::~AddAccessControlListEntryRequest() {}
|
||||
|
||||
std::string AddAccessControlListEntryRequest::getAclId() const {
|
||||
return aclId_;
|
||||
}
|
||||
|
||||
void AddAccessControlListEntryRequest::setAclId(const std::string &aclId) {
|
||||
aclId_ = aclId;
|
||||
setParameter(std::string("AclId"), aclId);
|
||||
}
|
||||
|
||||
std::string AddAccessControlListEntryRequest::getAclEntrys() const {
|
||||
return aclEntrys_;
|
||||
}
|
||||
|
||||
void AddAccessControlListEntryRequest::setAclEntrys(const std::string &aclEntrys) {
|
||||
aclEntrys_ = aclEntrys;
|
||||
setParameter(std::string("AclEntrys"), aclEntrys);
|
||||
}
|
||||
|
||||
std::string AddAccessControlListEntryRequest::getAccessKeyId() const {
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void AddAccessControlListEntryRequest::setAccessKeyId(const std::string &accessKeyId) {
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter(std::string("AccessKeyId"), accessKeyId);
|
||||
}
|
||||
|
||||
std::string AddAccessControlListEntryRequest::getSecurityToken() const {
|
||||
return securityToken_;
|
||||
}
|
||||
|
||||
void AddAccessControlListEntryRequest::setSecurityToken(const std::string &securityToken) {
|
||||
securityToken_ = securityToken;
|
||||
setParameter(std::string("SecurityToken"), securityToken);
|
||||
}
|
||||
|
||||
@@ -14,26 +14,26 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/cloudapi/model/ModifyApiMarketAttributesResult.h>
|
||||
#include <alibabacloud/cloudapi/model/AddAccessControlListEntryResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::CloudAPI;
|
||||
using namespace AlibabaCloud::CloudAPI::Model;
|
||||
|
||||
ModifyApiMarketAttributesResult::ModifyApiMarketAttributesResult() :
|
||||
AddAccessControlListEntryResult::AddAccessControlListEntryResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
ModifyApiMarketAttributesResult::ModifyApiMarketAttributesResult(const std::string &payload) :
|
||||
AddAccessControlListEntryResult::AddAccessControlListEntryResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
ModifyApiMarketAttributesResult::~ModifyApiMarketAttributesResult()
|
||||
AddAccessControlListEntryResult::~AddAccessControlListEntryResult()
|
||||
{}
|
||||
|
||||
void ModifyApiMarketAttributesResult::parse(const std::string &payload)
|
||||
void AddAccessControlListEntryResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
@@ -1,84 +1,72 @@
|
||||
/*
|
||||
* 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")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
AddIpControlPolicyItemRequest::~AddIpControlPolicyItemRequest()
|
||||
{}
|
||||
|
||||
std::string AddIpControlPolicyItemRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
*/
|
||||
|
||||
#include <alibabacloud/cloudapi/model/AddIpControlPolicyItemRequest.h>
|
||||
|
||||
using AlibabaCloud::CloudAPI::Model::AddIpControlPolicyItemRequest;
|
||||
|
||||
AddIpControlPolicyItemRequest::AddIpControlPolicyItemRequest()
|
||||
: RpcServiceRequest("cloudapi", "2016-07-14", "AddIpControlPolicyItem") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
void AddIpControlPolicyItemRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter("AccessKeyId", accessKeyId);
|
||||
AddIpControlPolicyItemRequest::~AddIpControlPolicyItemRequest() {}
|
||||
|
||||
std::string AddIpControlPolicyItemRequest::getAccessKeyId() const {
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
std::string AddIpControlPolicyItemRequest::getIpControlId()const
|
||||
{
|
||||
return ipControlId_;
|
||||
void AddIpControlPolicyItemRequest::setAccessKeyId(const std::string &accessKeyId) {
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter(std::string("AccessKeyId"), accessKeyId);
|
||||
}
|
||||
|
||||
void AddIpControlPolicyItemRequest::setIpControlId(const std::string& ipControlId)
|
||||
{
|
||||
ipControlId_ = ipControlId;
|
||||
setParameter("IpControlId", ipControlId);
|
||||
std::string AddIpControlPolicyItemRequest::getIpControlId() const {
|
||||
return ipControlId_;
|
||||
}
|
||||
|
||||
std::string AddIpControlPolicyItemRequest::getSecurityToken()const
|
||||
{
|
||||
return securityToken_;
|
||||
void AddIpControlPolicyItemRequest::setIpControlId(const std::string &ipControlId) {
|
||||
ipControlId_ = ipControlId;
|
||||
setParameter(std::string("IpControlId"), ipControlId);
|
||||
}
|
||||
|
||||
void AddIpControlPolicyItemRequest::setSecurityToken(const std::string& securityToken)
|
||||
{
|
||||
securityToken_ = securityToken;
|
||||
setParameter("SecurityToken", securityToken);
|
||||
std::string AddIpControlPolicyItemRequest::getSecurityToken() const {
|
||||
return securityToken_;
|
||||
}
|
||||
|
||||
std::string AddIpControlPolicyItemRequest::getAppId()const
|
||||
{
|
||||
return appId_;
|
||||
void AddIpControlPolicyItemRequest::setSecurityToken(const std::string &securityToken) {
|
||||
securityToken_ = securityToken;
|
||||
setParameter(std::string("SecurityToken"), securityToken);
|
||||
}
|
||||
|
||||
void AddIpControlPolicyItemRequest::setAppId(const std::string& appId)
|
||||
{
|
||||
appId_ = appId;
|
||||
setParameter("AppId", appId);
|
||||
std::string AddIpControlPolicyItemRequest::getAppId() const {
|
||||
return appId_;
|
||||
}
|
||||
|
||||
std::string AddIpControlPolicyItemRequest::getCidrIp()const
|
||||
{
|
||||
return cidrIp_;
|
||||
void AddIpControlPolicyItemRequest::setAppId(const std::string &appId) {
|
||||
appId_ = appId;
|
||||
setParameter(std::string("AppId"), appId);
|
||||
}
|
||||
|
||||
void AddIpControlPolicyItemRequest::setCidrIp(const std::string& cidrIp)
|
||||
{
|
||||
cidrIp_ = cidrIp;
|
||||
setParameter("CidrIp", cidrIp);
|
||||
std::string AddIpControlPolicyItemRequest::getCidrIp() const {
|
||||
return cidrIp_;
|
||||
}
|
||||
|
||||
void AddIpControlPolicyItemRequest::setCidrIp(const std::string &cidrIp) {
|
||||
cidrIp_ = cidrIp;
|
||||
setParameter(std::string("CidrIp"), cidrIp);
|
||||
}
|
||||
|
||||
|
||||
@@ -1,95 +1,81 @@
|
||||
/*
|
||||
* 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")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
AddTrafficSpecialControlRequest::~AddTrafficSpecialControlRequest()
|
||||
{}
|
||||
|
||||
std::string AddTrafficSpecialControlRequest::getTrafficControlId()const
|
||||
{
|
||||
return trafficControlId_;
|
||||
*/
|
||||
|
||||
#include <alibabacloud/cloudapi/model/AddTrafficSpecialControlRequest.h>
|
||||
|
||||
using AlibabaCloud::CloudAPI::Model::AddTrafficSpecialControlRequest;
|
||||
|
||||
AddTrafficSpecialControlRequest::AddTrafficSpecialControlRequest()
|
||||
: RpcServiceRequest("cloudapi", "2016-07-14", "AddTrafficSpecialControl") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
void AddTrafficSpecialControlRequest::setTrafficControlId(const std::string& trafficControlId)
|
||||
{
|
||||
trafficControlId_ = trafficControlId;
|
||||
setParameter("TrafficControlId", trafficControlId);
|
||||
AddTrafficSpecialControlRequest::~AddTrafficSpecialControlRequest() {}
|
||||
|
||||
std::string AddTrafficSpecialControlRequest::getTrafficControlId() const {
|
||||
return trafficControlId_;
|
||||
}
|
||||
|
||||
std::string AddTrafficSpecialControlRequest::getSpecialKey()const
|
||||
{
|
||||
return specialKey_;
|
||||
void AddTrafficSpecialControlRequest::setTrafficControlId(const std::string &trafficControlId) {
|
||||
trafficControlId_ = trafficControlId;
|
||||
setParameter(std::string("TrafficControlId"), trafficControlId);
|
||||
}
|
||||
|
||||
void AddTrafficSpecialControlRequest::setSpecialKey(const std::string& specialKey)
|
||||
{
|
||||
specialKey_ = specialKey;
|
||||
setParameter("SpecialKey", specialKey);
|
||||
std::string AddTrafficSpecialControlRequest::getSpecialKey() const {
|
||||
return specialKey_;
|
||||
}
|
||||
|
||||
int AddTrafficSpecialControlRequest::getTrafficValue()const
|
||||
{
|
||||
return trafficValue_;
|
||||
void AddTrafficSpecialControlRequest::setSpecialKey(const std::string &specialKey) {
|
||||
specialKey_ = specialKey;
|
||||
setParameter(std::string("SpecialKey"), specialKey);
|
||||
}
|
||||
|
||||
void AddTrafficSpecialControlRequest::setTrafficValue(int trafficValue)
|
||||
{
|
||||
trafficValue_ = trafficValue;
|
||||
setParameter("TrafficValue", std::to_string(trafficValue));
|
||||
int AddTrafficSpecialControlRequest::getTrafficValue() const {
|
||||
return trafficValue_;
|
||||
}
|
||||
|
||||
std::string AddTrafficSpecialControlRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
void AddTrafficSpecialControlRequest::setTrafficValue(int trafficValue) {
|
||||
trafficValue_ = trafficValue;
|
||||
setParameter(std::string("TrafficValue"), std::to_string(trafficValue));
|
||||
}
|
||||
|
||||
void AddTrafficSpecialControlRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter("AccessKeyId", accessKeyId);
|
||||
std::string AddTrafficSpecialControlRequest::getAccessKeyId() const {
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
std::string AddTrafficSpecialControlRequest::getSecurityToken()const
|
||||
{
|
||||
return securityToken_;
|
||||
void AddTrafficSpecialControlRequest::setAccessKeyId(const std::string &accessKeyId) {
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter(std::string("AccessKeyId"), accessKeyId);
|
||||
}
|
||||
|
||||
void AddTrafficSpecialControlRequest::setSecurityToken(const std::string& securityToken)
|
||||
{
|
||||
securityToken_ = securityToken;
|
||||
setParameter("SecurityToken", securityToken);
|
||||
std::string AddTrafficSpecialControlRequest::getSecurityToken() const {
|
||||
return securityToken_;
|
||||
}
|
||||
|
||||
std::string AddTrafficSpecialControlRequest::getSpecialType()const
|
||||
{
|
||||
return specialType_;
|
||||
void AddTrafficSpecialControlRequest::setSecurityToken(const std::string &securityToken) {
|
||||
securityToken_ = securityToken;
|
||||
setParameter(std::string("SecurityToken"), securityToken);
|
||||
}
|
||||
|
||||
void AddTrafficSpecialControlRequest::setSpecialType(const std::string& specialType)
|
||||
{
|
||||
specialType_ = specialType;
|
||||
setParameter("SpecialType", specialType);
|
||||
std::string AddTrafficSpecialControlRequest::getSpecialType() const {
|
||||
return specialType_;
|
||||
}
|
||||
|
||||
void AddTrafficSpecialControlRequest::setSpecialType(const std::string &specialType) {
|
||||
specialType_ = specialType;
|
||||
setParameter(std::string("SpecialType"), specialType);
|
||||
}
|
||||
|
||||
|
||||
90
cloudapi/src/model/AttachPluginRequest.cc
Normal file
90
cloudapi/src/model/AttachPluginRequest.cc
Normal file
@@ -0,0 +1,90 @@
|
||||
/*
|
||||
* 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/AttachPluginRequest.h>
|
||||
|
||||
using AlibabaCloud::CloudAPI::Model::AttachPluginRequest;
|
||||
|
||||
AttachPluginRequest::AttachPluginRequest()
|
||||
: RpcServiceRequest("cloudapi", "2016-07-14", "AttachPlugin") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
AttachPluginRequest::~AttachPluginRequest() {}
|
||||
|
||||
std::string AttachPluginRequest::getStageName() const {
|
||||
return stageName_;
|
||||
}
|
||||
|
||||
void AttachPluginRequest::setStageName(const std::string &stageName) {
|
||||
stageName_ = stageName;
|
||||
setParameter(std::string("StageName"), stageName);
|
||||
}
|
||||
|
||||
std::string AttachPluginRequest::getPluginId() const {
|
||||
return pluginId_;
|
||||
}
|
||||
|
||||
void AttachPluginRequest::setPluginId(const std::string &pluginId) {
|
||||
pluginId_ = pluginId;
|
||||
setParameter(std::string("PluginId"), pluginId);
|
||||
}
|
||||
|
||||
std::string AttachPluginRequest::getGroupId() const {
|
||||
return groupId_;
|
||||
}
|
||||
|
||||
void AttachPluginRequest::setGroupId(const std::string &groupId) {
|
||||
groupId_ = groupId;
|
||||
setParameter(std::string("GroupId"), groupId);
|
||||
}
|
||||
|
||||
std::string AttachPluginRequest::getAccessKeyId() const {
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void AttachPluginRequest::setAccessKeyId(const std::string &accessKeyId) {
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter(std::string("AccessKeyId"), accessKeyId);
|
||||
}
|
||||
|
||||
std::string AttachPluginRequest::getSecurityToken() const {
|
||||
return securityToken_;
|
||||
}
|
||||
|
||||
void AttachPluginRequest::setSecurityToken(const std::string &securityToken) {
|
||||
securityToken_ = securityToken;
|
||||
setParameter(std::string("SecurityToken"), securityToken);
|
||||
}
|
||||
|
||||
std::string AttachPluginRequest::getApiId() const {
|
||||
return apiId_;
|
||||
}
|
||||
|
||||
void AttachPluginRequest::setApiId(const std::string &apiId) {
|
||||
apiId_ = apiId;
|
||||
setParameter(std::string("ApiId"), apiId);
|
||||
}
|
||||
|
||||
std::string AttachPluginRequest::getApiIds() const {
|
||||
return apiIds_;
|
||||
}
|
||||
|
||||
void AttachPluginRequest::setApiIds(const std::string &apiIds) {
|
||||
apiIds_ = apiIds;
|
||||
setParameter(std::string("ApiIds"), apiIds);
|
||||
}
|
||||
|
||||
44
cloudapi/src/model/AttachPluginResult.cc
Normal file
44
cloudapi/src/model/AttachPluginResult.cc
Normal file
@@ -0,0 +1,44 @@
|
||||
/*
|
||||
* 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/AttachPluginResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::CloudAPI;
|
||||
using namespace AlibabaCloud::CloudAPI::Model;
|
||||
|
||||
AttachPluginResult::AttachPluginResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
AttachPluginResult::AttachPluginResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
AttachPluginResult::~AttachPluginResult()
|
||||
{}
|
||||
|
||||
void AttachPluginResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
|
||||
}
|
||||
|
||||
61
cloudapi/src/model/BatchAbolishApisRequest.cc
Normal file
61
cloudapi/src/model/BatchAbolishApisRequest.cc
Normal file
@@ -0,0 +1,61 @@
|
||||
/*
|
||||
* 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/BatchAbolishApisRequest.h>
|
||||
|
||||
using AlibabaCloud::CloudAPI::Model::BatchAbolishApisRequest;
|
||||
|
||||
BatchAbolishApisRequest::BatchAbolishApisRequest()
|
||||
: RpcServiceRequest("cloudapi", "2016-07-14", "BatchAbolishApis") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
BatchAbolishApisRequest::~BatchAbolishApisRequest() {}
|
||||
|
||||
std::string BatchAbolishApisRequest::getAccessKeyId() const {
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void BatchAbolishApisRequest::setAccessKeyId(const std::string &accessKeyId) {
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter(std::string("AccessKeyId"), accessKeyId);
|
||||
}
|
||||
|
||||
std::string BatchAbolishApisRequest::getSecurityToken() const {
|
||||
return securityToken_;
|
||||
}
|
||||
|
||||
void BatchAbolishApisRequest::setSecurityToken(const std::string &securityToken) {
|
||||
securityToken_ = securityToken;
|
||||
setParameter(std::string("SecurityToken"), securityToken);
|
||||
}
|
||||
|
||||
std::vector<BatchAbolishApisRequest::Api> BatchAbolishApisRequest::getApi() const {
|
||||
return api_;
|
||||
}
|
||||
|
||||
void BatchAbolishApisRequest::setApi(const std::vector<BatchAbolishApisRequest::Api> &api) {
|
||||
api_ = api;
|
||||
for(int dep1 = 0; dep1 != api.size(); dep1++) {
|
||||
auto apiObj = api.at(dep1);
|
||||
std::string apiObjStr = std::string("Api") + "." + std::to_string(dep1 + 1);
|
||||
setParameter(apiObjStr + ".StageName", apiObj.stageName);
|
||||
setParameter(apiObjStr + ".GroupId", apiObj.groupId);
|
||||
setParameter(apiObjStr + ".ApiUid", apiObj.apiUid);
|
||||
setParameter(apiObjStr + ".StageId", apiObj.stageId);
|
||||
}
|
||||
}
|
||||
|
||||
51
cloudapi/src/model/BatchAbolishApisResult.cc
Normal file
51
cloudapi/src/model/BatchAbolishApisResult.cc
Normal file
@@ -0,0 +1,51 @@
|
||||
/*
|
||||
* 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/BatchAbolishApisResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::CloudAPI;
|
||||
using namespace AlibabaCloud::CloudAPI::Model;
|
||||
|
||||
BatchAbolishApisResult::BatchAbolishApisResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
BatchAbolishApisResult::BatchAbolishApisResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
BatchAbolishApisResult::~BatchAbolishApisResult()
|
||||
{}
|
||||
|
||||
void BatchAbolishApisResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["OperationId"].isNull())
|
||||
operationId_ = value["OperationId"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string BatchAbolishApisResult::getOperationId()const
|
||||
{
|
||||
return operationId_;
|
||||
}
|
||||
|
||||
77
cloudapi/src/model/BatchDeployApisRequest.cc
Normal file
77
cloudapi/src/model/BatchDeployApisRequest.cc
Normal 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/BatchDeployApisRequest.h>
|
||||
|
||||
using AlibabaCloud::CloudAPI::Model::BatchDeployApisRequest;
|
||||
|
||||
BatchDeployApisRequest::BatchDeployApisRequest()
|
||||
: RpcServiceRequest("cloudapi", "2016-07-14", "BatchDeployApis") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
BatchDeployApisRequest::~BatchDeployApisRequest() {}
|
||||
|
||||
std::string BatchDeployApisRequest::getStageName() const {
|
||||
return stageName_;
|
||||
}
|
||||
|
||||
void BatchDeployApisRequest::setStageName(const std::string &stageName) {
|
||||
stageName_ = stageName;
|
||||
setParameter(std::string("StageName"), stageName);
|
||||
}
|
||||
|
||||
std::string BatchDeployApisRequest::getDescription() const {
|
||||
return description_;
|
||||
}
|
||||
|
||||
void BatchDeployApisRequest::setDescription(const std::string &description) {
|
||||
description_ = description;
|
||||
setParameter(std::string("Description"), description);
|
||||
}
|
||||
|
||||
std::string BatchDeployApisRequest::getAccessKeyId() const {
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void BatchDeployApisRequest::setAccessKeyId(const std::string &accessKeyId) {
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter(std::string("AccessKeyId"), accessKeyId);
|
||||
}
|
||||
|
||||
std::string BatchDeployApisRequest::getSecurityToken() const {
|
||||
return securityToken_;
|
||||
}
|
||||
|
||||
void BatchDeployApisRequest::setSecurityToken(const std::string &securityToken) {
|
||||
securityToken_ = securityToken;
|
||||
setParameter(std::string("SecurityToken"), securityToken);
|
||||
}
|
||||
|
||||
std::vector<BatchDeployApisRequest::Api> BatchDeployApisRequest::getApi() const {
|
||||
return api_;
|
||||
}
|
||||
|
||||
void BatchDeployApisRequest::setApi(const std::vector<BatchDeployApisRequest::Api> &api) {
|
||||
api_ = api;
|
||||
for(int dep1 = 0; dep1 != api.size(); dep1++) {
|
||||
auto apiObj = api.at(dep1);
|
||||
std::string apiObjStr = std::string("Api") + "." + std::to_string(dep1 + 1);
|
||||
setParameter(apiObjStr + ".GroupId", apiObj.groupId);
|
||||
setParameter(apiObjStr + ".ApiUid", apiObj.apiUid);
|
||||
}
|
||||
}
|
||||
|
||||
51
cloudapi/src/model/BatchDeployApisResult.cc
Normal file
51
cloudapi/src/model/BatchDeployApisResult.cc
Normal file
@@ -0,0 +1,51 @@
|
||||
/*
|
||||
* 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/BatchDeployApisResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::CloudAPI;
|
||||
using namespace AlibabaCloud::CloudAPI::Model;
|
||||
|
||||
BatchDeployApisResult::BatchDeployApisResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
BatchDeployApisResult::BatchDeployApisResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
BatchDeployApisResult::~BatchDeployApisResult()
|
||||
{}
|
||||
|
||||
void BatchDeployApisResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["OperationId"].isNull())
|
||||
operationId_ = value["OperationId"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string BatchDeployApisResult::getOperationId()const
|
||||
{
|
||||
return operationId_;
|
||||
}
|
||||
|
||||
54
cloudapi/src/model/CreateAccessControlListRequest.cc
Normal file
54
cloudapi/src/model/CreateAccessControlListRequest.cc
Normal file
@@ -0,0 +1,54 @@
|
||||
/*
|
||||
* 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/CreateAccessControlListRequest.h>
|
||||
|
||||
using AlibabaCloud::CloudAPI::Model::CreateAccessControlListRequest;
|
||||
|
||||
CreateAccessControlListRequest::CreateAccessControlListRequest()
|
||||
: RpcServiceRequest("cloudapi", "2016-07-14", "CreateAccessControlList") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
CreateAccessControlListRequest::~CreateAccessControlListRequest() {}
|
||||
|
||||
std::string CreateAccessControlListRequest::getAclName() const {
|
||||
return aclName_;
|
||||
}
|
||||
|
||||
void CreateAccessControlListRequest::setAclName(const std::string &aclName) {
|
||||
aclName_ = aclName;
|
||||
setParameter(std::string("AclName"), aclName);
|
||||
}
|
||||
|
||||
std::string CreateAccessControlListRequest::getAccessKeyId() const {
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void CreateAccessControlListRequest::setAccessKeyId(const std::string &accessKeyId) {
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter(std::string("AccessKeyId"), accessKeyId);
|
||||
}
|
||||
|
||||
std::string CreateAccessControlListRequest::getSecurityToken() const {
|
||||
return securityToken_;
|
||||
}
|
||||
|
||||
void CreateAccessControlListRequest::setSecurityToken(const std::string &securityToken) {
|
||||
securityToken_ = securityToken;
|
||||
setParameter(std::string("SecurityToken"), securityToken);
|
||||
}
|
||||
|
||||
44
cloudapi/src/model/CreateAccessControlListResult.cc
Normal file
44
cloudapi/src/model/CreateAccessControlListResult.cc
Normal file
@@ -0,0 +1,44 @@
|
||||
/*
|
||||
* 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/CreateAccessControlListResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::CloudAPI;
|
||||
using namespace AlibabaCloud::CloudAPI::Model;
|
||||
|
||||
CreateAccessControlListResult::CreateAccessControlListResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
CreateAccessControlListResult::CreateAccessControlListResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
CreateAccessControlListResult::~CreateAccessControlListResult()
|
||||
{}
|
||||
|
||||
void CreateAccessControlListResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
|
||||
}
|
||||
|
||||
@@ -1,122 +1,113 @@
|
||||
/*
|
||||
* 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")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
CreateApiGroupRequest::~CreateApiGroupRequest()
|
||||
{}
|
||||
|
||||
std::string CreateApiGroupRequest::getDescription()const
|
||||
{
|
||||
return description_;
|
||||
*/
|
||||
|
||||
#include <alibabacloud/cloudapi/model/CreateApiGroupRequest.h>
|
||||
|
||||
using AlibabaCloud::CloudAPI::Model::CreateApiGroupRequest;
|
||||
|
||||
CreateApiGroupRequest::CreateApiGroupRequest()
|
||||
: RpcServiceRequest("cloudapi", "2016-07-14", "CreateApiGroup") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
void CreateApiGroupRequest::setDescription(const std::string& description)
|
||||
{
|
||||
description_ = description;
|
||||
setParameter("Description", description);
|
||||
CreateApiGroupRequest::~CreateApiGroupRequest() {}
|
||||
|
||||
std::string CreateApiGroupRequest::getBasePath() const {
|
||||
return basePath_;
|
||||
}
|
||||
|
||||
std::string CreateApiGroupRequest::getSource()const
|
||||
{
|
||||
return source_;
|
||||
void CreateApiGroupRequest::setBasePath(const std::string &basePath) {
|
||||
basePath_ = basePath;
|
||||
setParameter(std::string("BasePath"), basePath);
|
||||
}
|
||||
|
||||
void CreateApiGroupRequest::setSource(const std::string& source)
|
||||
{
|
||||
source_ = source;
|
||||
setParameter("Source", source);
|
||||
std::string CreateApiGroupRequest::getDescription() const {
|
||||
return description_;
|
||||
}
|
||||
|
||||
std::string CreateApiGroupRequest::getGroupName()const
|
||||
{
|
||||
return groupName_;
|
||||
void CreateApiGroupRequest::setDescription(const std::string &description) {
|
||||
description_ = description;
|
||||
setParameter(std::string("Description"), description);
|
||||
}
|
||||
|
||||
void CreateApiGroupRequest::setGroupName(const std::string& groupName)
|
||||
{
|
||||
groupName_ = groupName;
|
||||
setParameter("GroupName", groupName);
|
||||
std::string CreateApiGroupRequest::getSource() const {
|
||||
return source_;
|
||||
}
|
||||
|
||||
std::string CreateApiGroupRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
void CreateApiGroupRequest::setSource(const std::string &source) {
|
||||
source_ = source;
|
||||
setParameter(std::string("Source"), source);
|
||||
}
|
||||
|
||||
void CreateApiGroupRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter("AccessKeyId", accessKeyId);
|
||||
std::string CreateApiGroupRequest::getGroupName() const {
|
||||
return groupName_;
|
||||
}
|
||||
|
||||
std::string CreateApiGroupRequest::getResourceOwnerToken()const
|
||||
{
|
||||
return resourceOwnerToken_;
|
||||
void CreateApiGroupRequest::setGroupName(const std::string &groupName) {
|
||||
groupName_ = groupName;
|
||||
setParameter(std::string("GroupName"), groupName);
|
||||
}
|
||||
|
||||
void CreateApiGroupRequest::setResourceOwnerToken(const std::string& resourceOwnerToken)
|
||||
{
|
||||
resourceOwnerToken_ = resourceOwnerToken;
|
||||
setParameter("ResourceOwnerToken", resourceOwnerToken);
|
||||
std::string CreateApiGroupRequest::getAccessKeyId() const {
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
std::string CreateApiGroupRequest::getInstanceId()const
|
||||
{
|
||||
return instanceId_;
|
||||
void CreateApiGroupRequest::setAccessKeyId(const std::string &accessKeyId) {
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter(std::string("AccessKeyId"), accessKeyId);
|
||||
}
|
||||
|
||||
void CreateApiGroupRequest::setInstanceId(const std::string& instanceId)
|
||||
{
|
||||
instanceId_ = instanceId;
|
||||
setParameter("InstanceId", instanceId);
|
||||
std::string CreateApiGroupRequest::getResourceOwnerToken() const {
|
||||
return resourceOwnerToken_;
|
||||
}
|
||||
|
||||
std::string CreateApiGroupRequest::getSecurityToken()const
|
||||
{
|
||||
return securityToken_;
|
||||
void CreateApiGroupRequest::setResourceOwnerToken(const std::string &resourceOwnerToken) {
|
||||
resourceOwnerToken_ = resourceOwnerToken;
|
||||
setParameter(std::string("ResourceOwnerToken"), resourceOwnerToken);
|
||||
}
|
||||
|
||||
void CreateApiGroupRequest::setSecurityToken(const std::string& securityToken)
|
||||
{
|
||||
securityToken_ = securityToken;
|
||||
setParameter("SecurityToken", securityToken);
|
||||
std::string CreateApiGroupRequest::getInstanceId() const {
|
||||
return instanceId_;
|
||||
}
|
||||
|
||||
std::vector<CreateApiGroupRequest::Tag> CreateApiGroupRequest::getTag()const
|
||||
{
|
||||
return tag_;
|
||||
void CreateApiGroupRequest::setInstanceId(const std::string &instanceId) {
|
||||
instanceId_ = instanceId;
|
||||
setParameter(std::string("InstanceId"), instanceId);
|
||||
}
|
||||
|
||||
void CreateApiGroupRequest::setTag(const std::vector<Tag>& tag)
|
||||
{
|
||||
tag_ = tag;
|
||||
for(int dep1 = 0; dep1!= tag.size(); dep1++) {
|
||||
auto tagObj = tag.at(dep1);
|
||||
std::string tagObjStr = "Tag." + std::to_string(dep1 + 1);
|
||||
setParameter(tagObjStr + ".Value", tagObj.value);
|
||||
setParameter(tagObjStr + ".Key", tagObj.key);
|
||||
}
|
||||
std::string CreateApiGroupRequest::getSecurityToken() const {
|
||||
return securityToken_;
|
||||
}
|
||||
|
||||
void CreateApiGroupRequest::setSecurityToken(const std::string &securityToken) {
|
||||
securityToken_ = securityToken;
|
||||
setParameter(std::string("SecurityToken"), securityToken);
|
||||
}
|
||||
|
||||
std::vector<CreateApiGroupRequest::Tag> CreateApiGroupRequest::getTag() const {
|
||||
return tag_;
|
||||
}
|
||||
|
||||
void CreateApiGroupRequest::setTag(const std::vector<CreateApiGroupRequest::Tag> &tag) {
|
||||
tag_ = tag;
|
||||
for(int dep1 = 0; dep1 != tag.size(); dep1++) {
|
||||
auto tagObj = tag.at(dep1);
|
||||
std::string tagObjStr = std::string("Tag") + "." + std::to_string(dep1 + 1);
|
||||
setParameter(tagObjStr + ".Value", tagObj.value);
|
||||
setParameter(tagObjStr + ".Key", tagObj.key);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -39,20 +39,22 @@ void CreateApiGroupResult::parse(const std::string &payload)
|
||||
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();
|
||||
if(!value["TagStatus"].isNull())
|
||||
tagStatus_ = value["TagStatus"].asString() == "true";
|
||||
if(!value["BasePath"].isNull())
|
||||
basePath_ = value["BasePath"].asString();
|
||||
if(!value["Description"].isNull())
|
||||
description_ = value["Description"].asString();
|
||||
if(!value["GroupName"].isNull())
|
||||
groupName_ = value["GroupName"].asString();
|
||||
if(!value["GroupId"].isNull())
|
||||
groupId_ = value["GroupId"].asString();
|
||||
if(!value["InstanceId"].isNull())
|
||||
instanceId_ = value["InstanceId"].asString();
|
||||
if(!value["SubDomain"].isNull())
|
||||
subDomain_ = value["SubDomain"].asString();
|
||||
if(!value["InstanceType"].isNull())
|
||||
instanceType_ = value["InstanceType"].asString();
|
||||
|
||||
}
|
||||
|
||||
@@ -81,6 +83,11 @@ bool CreateApiGroupResult::getTagStatus()const
|
||||
return tagStatus_;
|
||||
}
|
||||
|
||||
std::string CreateApiGroupResult::getBasePath()const
|
||||
{
|
||||
return basePath_;
|
||||
}
|
||||
|
||||
std::string CreateApiGroupResult::getInstanceType()const
|
||||
{
|
||||
return instanceType_;
|
||||
|
||||
@@ -1,326 +1,288 @@
|
||||
/*
|
||||
* 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")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
CreateApiRequest::~CreateApiRequest()
|
||||
{}
|
||||
|
||||
std::string CreateApiRequest::getWebSocketApiType()const
|
||||
{
|
||||
return webSocketApiType_;
|
||||
*/
|
||||
|
||||
#include <alibabacloud/cloudapi/model/CreateApiRequest.h>
|
||||
|
||||
using AlibabaCloud::CloudAPI::Model::CreateApiRequest;
|
||||
|
||||
CreateApiRequest::CreateApiRequest()
|
||||
: RpcServiceRequest("cloudapi", "2016-07-14", "CreateApi") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
void CreateApiRequest::setWebSocketApiType(const std::string& webSocketApiType)
|
||||
{
|
||||
webSocketApiType_ = webSocketApiType;
|
||||
setParameter("WebSocketApiType", webSocketApiType);
|
||||
CreateApiRequest::~CreateApiRequest() {}
|
||||
|
||||
std::string CreateApiRequest::getWebSocketApiType() const {
|
||||
return webSocketApiType_;
|
||||
}
|
||||
|
||||
std::string CreateApiRequest::getErrorCodeSamples()const
|
||||
{
|
||||
return errorCodeSamples_;
|
||||
void CreateApiRequest::setWebSocketApiType(const std::string &webSocketApiType) {
|
||||
webSocketApiType_ = webSocketApiType;
|
||||
setParameter(std::string("WebSocketApiType"), webSocketApiType);
|
||||
}
|
||||
|
||||
void CreateApiRequest::setErrorCodeSamples(const std::string& errorCodeSamples)
|
||||
{
|
||||
errorCodeSamples_ = errorCodeSamples;
|
||||
setParameter("ErrorCodeSamples", errorCodeSamples);
|
||||
std::string CreateApiRequest::getErrorCodeSamples() const {
|
||||
return errorCodeSamples_;
|
||||
}
|
||||
|
||||
std::string CreateApiRequest::getAppCodeAuthType()const
|
||||
{
|
||||
return appCodeAuthType_;
|
||||
void CreateApiRequest::setErrorCodeSamples(const std::string &errorCodeSamples) {
|
||||
errorCodeSamples_ = errorCodeSamples;
|
||||
setParameter(std::string("ErrorCodeSamples"), errorCodeSamples);
|
||||
}
|
||||
|
||||
void CreateApiRequest::setAppCodeAuthType(const std::string& appCodeAuthType)
|
||||
{
|
||||
appCodeAuthType_ = appCodeAuthType;
|
||||
setParameter("AppCodeAuthType", appCodeAuthType);
|
||||
std::string CreateApiRequest::getAppCodeAuthType() const {
|
||||
return appCodeAuthType_;
|
||||
}
|
||||
|
||||
std::string CreateApiRequest::getDescription()const
|
||||
{
|
||||
return description_;
|
||||
void CreateApiRequest::setAppCodeAuthType(const std::string &appCodeAuthType) {
|
||||
appCodeAuthType_ = appCodeAuthType;
|
||||
setParameter(std::string("AppCodeAuthType"), appCodeAuthType);
|
||||
}
|
||||
|
||||
void CreateApiRequest::setDescription(const std::string& description)
|
||||
{
|
||||
description_ = description;
|
||||
setParameter("Description", description);
|
||||
std::string CreateApiRequest::getDescription() const {
|
||||
return description_;
|
||||
}
|
||||
|
||||
bool CreateApiRequest::getDisableInternet()const
|
||||
{
|
||||
return disableInternet_;
|
||||
void CreateApiRequest::setDescription(const std::string &description) {
|
||||
description_ = description;
|
||||
setParameter(std::string("Description"), description);
|
||||
}
|
||||
|
||||
void CreateApiRequest::setDisableInternet(bool disableInternet)
|
||||
{
|
||||
disableInternet_ = disableInternet;
|
||||
setParameter("DisableInternet", disableInternet ? "true" : "false");
|
||||
bool CreateApiRequest::getDisableInternet() const {
|
||||
return disableInternet_;
|
||||
}
|
||||
|
||||
std::string CreateApiRequest::getConstantParameters()const
|
||||
{
|
||||
return constantParameters_;
|
||||
void CreateApiRequest::setDisableInternet(bool disableInternet) {
|
||||
disableInternet_ = disableInternet;
|
||||
setParameter(std::string("DisableInternet"), disableInternet ? "true" : "false");
|
||||
}
|
||||
|
||||
void CreateApiRequest::setConstantParameters(const std::string& constantParameters)
|
||||
{
|
||||
constantParameters_ = constantParameters;
|
||||
setParameter("ConstantParameters", constantParameters);
|
||||
std::string CreateApiRequest::getBackendId() const {
|
||||
return backendId_;
|
||||
}
|
||||
|
||||
std::string CreateApiRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
void CreateApiRequest::setBackendId(const std::string &backendId) {
|
||||
backendId_ = backendId;
|
||||
setParameter(std::string("BackendId"), backendId);
|
||||
}
|
||||
|
||||
void CreateApiRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter("AccessKeyId", accessKeyId);
|
||||
std::string CreateApiRequest::getConstantParameters() const {
|
||||
return constantParameters_;
|
||||
}
|
||||
|
||||
std::string CreateApiRequest::getAuthType()const
|
||||
{
|
||||
return authType_;
|
||||
void CreateApiRequest::setConstantParameters(const std::string &constantParameters) {
|
||||
constantParameters_ = constantParameters;
|
||||
setParameter(std::string("ConstantParameters"), constantParameters);
|
||||
}
|
||||
|
||||
void CreateApiRequest::setAuthType(const std::string& authType)
|
||||
{
|
||||
authType_ = authType;
|
||||
setParameter("AuthType", authType);
|
||||
std::string CreateApiRequest::getAccessKeyId() const {
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
std::string CreateApiRequest::getAllowSignatureMethod()const
|
||||
{
|
||||
return allowSignatureMethod_;
|
||||
void CreateApiRequest::setAccessKeyId(const std::string &accessKeyId) {
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter(std::string("AccessKeyId"), accessKeyId);
|
||||
}
|
||||
|
||||
void CreateApiRequest::setAllowSignatureMethod(const std::string& allowSignatureMethod)
|
||||
{
|
||||
allowSignatureMethod_ = allowSignatureMethod;
|
||||
setParameter("AllowSignatureMethod", allowSignatureMethod);
|
||||
std::string CreateApiRequest::getAuthType() const {
|
||||
return authType_;
|
||||
}
|
||||
|
||||
std::string CreateApiRequest::getServiceParameters()const
|
||||
{
|
||||
return serviceParameters_;
|
||||
void CreateApiRequest::setAuthType(const std::string &authType) {
|
||||
authType_ = authType;
|
||||
setParameter(std::string("AuthType"), authType);
|
||||
}
|
||||
|
||||
void CreateApiRequest::setServiceParameters(const std::string& serviceParameters)
|
||||
{
|
||||
serviceParameters_ = serviceParameters;
|
||||
setParameter("ServiceParameters", serviceParameters);
|
||||
std::string CreateApiRequest::getAllowSignatureMethod() const {
|
||||
return allowSignatureMethod_;
|
||||
}
|
||||
|
||||
std::string CreateApiRequest::getFailResultSample()const
|
||||
{
|
||||
return failResultSample_;
|
||||
void CreateApiRequest::setAllowSignatureMethod(const std::string &allowSignatureMethod) {
|
||||
allowSignatureMethod_ = allowSignatureMethod;
|
||||
setParameter(std::string("AllowSignatureMethod"), allowSignatureMethod);
|
||||
}
|
||||
|
||||
void CreateApiRequest::setFailResultSample(const std::string& failResultSample)
|
||||
{
|
||||
failResultSample_ = failResultSample;
|
||||
setParameter("FailResultSample", failResultSample);
|
||||
std::string CreateApiRequest::getServiceParameters() const {
|
||||
return serviceParameters_;
|
||||
}
|
||||
|
||||
std::string CreateApiRequest::getResourceOwnerToken()const
|
||||
{
|
||||
return resourceOwnerToken_;
|
||||
void CreateApiRequest::setServiceParameters(const std::string &serviceParameters) {
|
||||
serviceParameters_ = serviceParameters;
|
||||
setParameter(std::string("ServiceParameters"), serviceParameters);
|
||||
}
|
||||
|
||||
void CreateApiRequest::setResourceOwnerToken(const std::string& resourceOwnerToken)
|
||||
{
|
||||
resourceOwnerToken_ = resourceOwnerToken;
|
||||
setParameter("ResourceOwnerToken", resourceOwnerToken);
|
||||
std::string CreateApiRequest::getFailResultSample() const {
|
||||
return failResultSample_;
|
||||
}
|
||||
|
||||
std::string CreateApiRequest::getSystemParameters()const
|
||||
{
|
||||
return systemParameters_;
|
||||
void CreateApiRequest::setFailResultSample(const std::string &failResultSample) {
|
||||
failResultSample_ = failResultSample;
|
||||
setParameter(std::string("FailResultSample"), failResultSample);
|
||||
}
|
||||
|
||||
void CreateApiRequest::setSystemParameters(const std::string& systemParameters)
|
||||
{
|
||||
systemParameters_ = systemParameters;
|
||||
setParameter("SystemParameters", systemParameters);
|
||||
std::string CreateApiRequest::getResourceOwnerToken() const {
|
||||
return resourceOwnerToken_;
|
||||
}
|
||||
|
||||
std::string CreateApiRequest::getServiceParametersMap()const
|
||||
{
|
||||
return serviceParametersMap_;
|
||||
void CreateApiRequest::setResourceOwnerToken(const std::string &resourceOwnerToken) {
|
||||
resourceOwnerToken_ = resourceOwnerToken;
|
||||
setParameter(std::string("ResourceOwnerToken"), resourceOwnerToken);
|
||||
}
|
||||
|
||||
void CreateApiRequest::setServiceParametersMap(const std::string& serviceParametersMap)
|
||||
{
|
||||
serviceParametersMap_ = serviceParametersMap;
|
||||
setParameter("ServiceParametersMap", serviceParametersMap);
|
||||
std::string CreateApiRequest::getSystemParameters() const {
|
||||
return systemParameters_;
|
||||
}
|
||||
|
||||
std::string CreateApiRequest::getSecurityToken()const
|
||||
{
|
||||
return securityToken_;
|
||||
void CreateApiRequest::setSystemParameters(const std::string &systemParameters) {
|
||||
systemParameters_ = systemParameters;
|
||||
setParameter(std::string("SystemParameters"), systemParameters);
|
||||
}
|
||||
|
||||
void CreateApiRequest::setSecurityToken(const std::string& securityToken)
|
||||
{
|
||||
securityToken_ = securityToken;
|
||||
setParameter("SecurityToken", securityToken);
|
||||
std::string CreateApiRequest::getServiceParametersMap() const {
|
||||
return serviceParametersMap_;
|
||||
}
|
||||
|
||||
std::string CreateApiRequest::getOpenIdConnectConfig()const
|
||||
{
|
||||
return openIdConnectConfig_;
|
||||
void CreateApiRequest::setServiceParametersMap(const std::string &serviceParametersMap) {
|
||||
serviceParametersMap_ = serviceParametersMap;
|
||||
setParameter(std::string("ServiceParametersMap"), serviceParametersMap);
|
||||
}
|
||||
|
||||
void CreateApiRequest::setOpenIdConnectConfig(const std::string& openIdConnectConfig)
|
||||
{
|
||||
openIdConnectConfig_ = openIdConnectConfig;
|
||||
setParameter("OpenIdConnectConfig", openIdConnectConfig);
|
||||
std::string CreateApiRequest::getSecurityToken() const {
|
||||
return securityToken_;
|
||||
}
|
||||
|
||||
std::string CreateApiRequest::getRequestParameters()const
|
||||
{
|
||||
return requestParameters_;
|
||||
void CreateApiRequest::setSecurityToken(const std::string &securityToken) {
|
||||
securityToken_ = securityToken;
|
||||
setParameter(std::string("SecurityToken"), securityToken);
|
||||
}
|
||||
|
||||
void CreateApiRequest::setRequestParameters(const std::string& requestParameters)
|
||||
{
|
||||
requestParameters_ = requestParameters;
|
||||
setParameter("RequestParameters", requestParameters);
|
||||
std::string CreateApiRequest::getOpenIdConnectConfig() const {
|
||||
return openIdConnectConfig_;
|
||||
}
|
||||
|
||||
std::string CreateApiRequest::getResultDescriptions()const
|
||||
{
|
||||
return resultDescriptions_;
|
||||
void CreateApiRequest::setOpenIdConnectConfig(const std::string &openIdConnectConfig) {
|
||||
openIdConnectConfig_ = openIdConnectConfig;
|
||||
setParameter(std::string("OpenIdConnectConfig"), openIdConnectConfig);
|
||||
}
|
||||
|
||||
void CreateApiRequest::setResultDescriptions(const std::string& resultDescriptions)
|
||||
{
|
||||
resultDescriptions_ = resultDescriptions;
|
||||
setParameter("ResultDescriptions", resultDescriptions);
|
||||
std::string CreateApiRequest::getRequestParameters() const {
|
||||
return requestParameters_;
|
||||
}
|
||||
|
||||
std::string CreateApiRequest::getVisibility()const
|
||||
{
|
||||
return visibility_;
|
||||
void CreateApiRequest::setRequestParameters(const std::string &requestParameters) {
|
||||
requestParameters_ = requestParameters;
|
||||
setParameter(std::string("RequestParameters"), requestParameters);
|
||||
}
|
||||
|
||||
void CreateApiRequest::setVisibility(const std::string& visibility)
|
||||
{
|
||||
visibility_ = visibility;
|
||||
setParameter("Visibility", visibility);
|
||||
std::string CreateApiRequest::getResultDescriptions() const {
|
||||
return resultDescriptions_;
|
||||
}
|
||||
|
||||
std::string CreateApiRequest::getGroupId()const
|
||||
{
|
||||
return groupId_;
|
||||
void CreateApiRequest::setResultDescriptions(const std::string &resultDescriptions) {
|
||||
resultDescriptions_ = resultDescriptions;
|
||||
setParameter(std::string("ResultDescriptions"), resultDescriptions);
|
||||
}
|
||||
|
||||
void CreateApiRequest::setGroupId(const std::string& groupId)
|
||||
{
|
||||
groupId_ = groupId;
|
||||
setParameter("GroupId", groupId);
|
||||
std::string CreateApiRequest::getVisibility() const {
|
||||
return visibility_;
|
||||
}
|
||||
|
||||
std::string CreateApiRequest::getServiceConfig()const
|
||||
{
|
||||
return serviceConfig_;
|
||||
void CreateApiRequest::setVisibility(const std::string &visibility) {
|
||||
visibility_ = visibility;
|
||||
setParameter(std::string("Visibility"), visibility);
|
||||
}
|
||||
|
||||
void CreateApiRequest::setServiceConfig(const std::string& serviceConfig)
|
||||
{
|
||||
serviceConfig_ = serviceConfig;
|
||||
setParameter("ServiceConfig", serviceConfig);
|
||||
std::string CreateApiRequest::getGroupId() const {
|
||||
return groupId_;
|
||||
}
|
||||
|
||||
std::string CreateApiRequest::getResultType()const
|
||||
{
|
||||
return resultType_;
|
||||
void CreateApiRequest::setGroupId(const std::string &groupId) {
|
||||
groupId_ = groupId;
|
||||
setParameter(std::string("GroupId"), groupId);
|
||||
}
|
||||
|
||||
void CreateApiRequest::setResultType(const std::string& resultType)
|
||||
{
|
||||
resultType_ = resultType;
|
||||
setParameter("ResultType", resultType);
|
||||
std::string CreateApiRequest::getServiceConfig() const {
|
||||
return serviceConfig_;
|
||||
}
|
||||
|
||||
std::string CreateApiRequest::getApiName()const
|
||||
{
|
||||
return apiName_;
|
||||
void CreateApiRequest::setServiceConfig(const std::string &serviceConfig) {
|
||||
serviceConfig_ = serviceConfig;
|
||||
setParameter(std::string("ServiceConfig"), serviceConfig);
|
||||
}
|
||||
|
||||
void CreateApiRequest::setApiName(const std::string& apiName)
|
||||
{
|
||||
apiName_ = apiName;
|
||||
setParameter("ApiName", apiName);
|
||||
std::string CreateApiRequest::getResultType() const {
|
||||
return resultType_;
|
||||
}
|
||||
|
||||
std::string CreateApiRequest::getResultSample()const
|
||||
{
|
||||
return resultSample_;
|
||||
void CreateApiRequest::setResultType(const std::string &resultType) {
|
||||
resultType_ = resultType;
|
||||
setParameter(std::string("ResultType"), resultType);
|
||||
}
|
||||
|
||||
void CreateApiRequest::setResultSample(const std::string& resultSample)
|
||||
{
|
||||
resultSample_ = resultSample;
|
||||
setParameter("ResultSample", resultSample);
|
||||
std::string CreateApiRequest::getApiName() const {
|
||||
return apiName_;
|
||||
}
|
||||
|
||||
bool CreateApiRequest::getForceNonceCheck()const
|
||||
{
|
||||
return forceNonceCheck_;
|
||||
void CreateApiRequest::setApiName(const std::string &apiName) {
|
||||
apiName_ = apiName;
|
||||
setParameter(std::string("ApiName"), apiName);
|
||||
}
|
||||
|
||||
void CreateApiRequest::setForceNonceCheck(bool forceNonceCheck)
|
||||
{
|
||||
forceNonceCheck_ = forceNonceCheck;
|
||||
setParameter("ForceNonceCheck", forceNonceCheck ? "true" : "false");
|
||||
std::string CreateApiRequest::getResultSample() const {
|
||||
return resultSample_;
|
||||
}
|
||||
|
||||
std::string CreateApiRequest::getRequestConfig()const
|
||||
{
|
||||
return requestConfig_;
|
||||
void CreateApiRequest::setResultSample(const std::string &resultSample) {
|
||||
resultSample_ = resultSample;
|
||||
setParameter(std::string("ResultSample"), resultSample);
|
||||
}
|
||||
|
||||
void CreateApiRequest::setRequestConfig(const std::string& requestConfig)
|
||||
{
|
||||
requestConfig_ = requestConfig;
|
||||
setParameter("RequestConfig", requestConfig);
|
||||
bool CreateApiRequest::getBackendEnable() const {
|
||||
return backendEnable_;
|
||||
}
|
||||
|
||||
std::string CreateApiRequest::getResultBodyModel()const
|
||||
{
|
||||
return resultBodyModel_;
|
||||
void CreateApiRequest::setBackendEnable(bool backendEnable) {
|
||||
backendEnable_ = backendEnable;
|
||||
setParameter(std::string("BackendEnable"), backendEnable ? "true" : "false");
|
||||
}
|
||||
|
||||
void CreateApiRequest::setResultBodyModel(const std::string& resultBodyModel)
|
||||
{
|
||||
resultBodyModel_ = resultBodyModel;
|
||||
setParameter("ResultBodyModel", resultBodyModel);
|
||||
bool CreateApiRequest::getForceNonceCheck() const {
|
||||
return forceNonceCheck_;
|
||||
}
|
||||
|
||||
void CreateApiRequest::setForceNonceCheck(bool forceNonceCheck) {
|
||||
forceNonceCheck_ = forceNonceCheck;
|
||||
setParameter(std::string("ForceNonceCheck"), forceNonceCheck ? "true" : "false");
|
||||
}
|
||||
|
||||
std::string CreateApiRequest::getRequestConfig() const {
|
||||
return requestConfig_;
|
||||
}
|
||||
|
||||
void CreateApiRequest::setRequestConfig(const std::string &requestConfig) {
|
||||
requestConfig_ = requestConfig;
|
||||
setParameter(std::string("RequestConfig"), requestConfig);
|
||||
}
|
||||
|
||||
std::string CreateApiRequest::getResultBodyModel() const {
|
||||
return resultBodyModel_;
|
||||
}
|
||||
|
||||
void CreateApiRequest::setResultBodyModel(const std::string &resultBodyModel) {
|
||||
resultBodyModel_ = resultBodyModel;
|
||||
setParameter(std::string("ResultBodyModel"), resultBodyModel);
|
||||
}
|
||||
|
||||
|
||||
@@ -1,117 +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/CreateApiStageVariableRequest.h>
|
||||
|
||||
using AlibabaCloud::CloudAPI::Model::CreateApiStageVariableRequest;
|
||||
|
||||
CreateApiStageVariableRequest::CreateApiStageVariableRequest() :
|
||||
RpcServiceRequest("cloudapi", "2016-07-14", "CreateApiStageVariable")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
CreateApiStageVariableRequest::~CreateApiStageVariableRequest()
|
||||
{}
|
||||
|
||||
bool CreateApiStageVariableRequest::getSupportRoute()const
|
||||
{
|
||||
return supportRoute_;
|
||||
*/
|
||||
|
||||
#include <alibabacloud/cloudapi/model/CreateApiStageVariableRequest.h>
|
||||
|
||||
using AlibabaCloud::CloudAPI::Model::CreateApiStageVariableRequest;
|
||||
|
||||
CreateApiStageVariableRequest::CreateApiStageVariableRequest()
|
||||
: RpcServiceRequest("cloudapi", "2016-07-14", "CreateApiStageVariable") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
void CreateApiStageVariableRequest::setSupportRoute(bool supportRoute)
|
||||
{
|
||||
supportRoute_ = supportRoute;
|
||||
setParameter("SupportRoute", supportRoute ? "true" : "false");
|
||||
CreateApiStageVariableRequest::~CreateApiStageVariableRequest() {}
|
||||
|
||||
bool CreateApiStageVariableRequest::getSupportRoute() const {
|
||||
return supportRoute_;
|
||||
}
|
||||
|
||||
std::string CreateApiStageVariableRequest::getVariableValue()const
|
||||
{
|
||||
return variableValue_;
|
||||
void CreateApiStageVariableRequest::setSupportRoute(bool supportRoute) {
|
||||
supportRoute_ = supportRoute;
|
||||
setParameter(std::string("SupportRoute"), supportRoute ? "true" : "false");
|
||||
}
|
||||
|
||||
void CreateApiStageVariableRequest::setVariableValue(const std::string& variableValue)
|
||||
{
|
||||
variableValue_ = variableValue;
|
||||
setParameter("VariableValue", variableValue);
|
||||
std::string CreateApiStageVariableRequest::getVariableValue() const {
|
||||
return variableValue_;
|
||||
}
|
||||
|
||||
std::string CreateApiStageVariableRequest::getGroupId()const
|
||||
{
|
||||
return groupId_;
|
||||
void CreateApiStageVariableRequest::setVariableValue(const std::string &variableValue) {
|
||||
variableValue_ = variableValue;
|
||||
setParameter(std::string("VariableValue"), variableValue);
|
||||
}
|
||||
|
||||
void CreateApiStageVariableRequest::setGroupId(const std::string& groupId)
|
||||
{
|
||||
groupId_ = groupId;
|
||||
setParameter("GroupId", groupId);
|
||||
std::string CreateApiStageVariableRequest::getGroupId() const {
|
||||
return groupId_;
|
||||
}
|
||||
|
||||
std::string CreateApiStageVariableRequest::getStageRouteModel()const
|
||||
{
|
||||
return stageRouteModel_;
|
||||
void CreateApiStageVariableRequest::setGroupId(const std::string &groupId) {
|
||||
groupId_ = groupId;
|
||||
setParameter(std::string("GroupId"), groupId);
|
||||
}
|
||||
|
||||
void CreateApiStageVariableRequest::setStageRouteModel(const std::string& stageRouteModel)
|
||||
{
|
||||
stageRouteModel_ = stageRouteModel;
|
||||
setParameter("StageRouteModel", stageRouteModel);
|
||||
std::string CreateApiStageVariableRequest::getStageRouteModel() const {
|
||||
return stageRouteModel_;
|
||||
}
|
||||
|
||||
std::string CreateApiStageVariableRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
void CreateApiStageVariableRequest::setStageRouteModel(const std::string &stageRouteModel) {
|
||||
stageRouteModel_ = stageRouteModel;
|
||||
setParameter(std::string("StageRouteModel"), stageRouteModel);
|
||||
}
|
||||
|
||||
void CreateApiStageVariableRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter("AccessKeyId", accessKeyId);
|
||||
std::string CreateApiStageVariableRequest::getAccessKeyId() const {
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
std::string CreateApiStageVariableRequest::getSecurityToken()const
|
||||
{
|
||||
return securityToken_;
|
||||
void CreateApiStageVariableRequest::setAccessKeyId(const std::string &accessKeyId) {
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter(std::string("AccessKeyId"), accessKeyId);
|
||||
}
|
||||
|
||||
void CreateApiStageVariableRequest::setSecurityToken(const std::string& securityToken)
|
||||
{
|
||||
securityToken_ = securityToken;
|
||||
setParameter("SecurityToken", securityToken);
|
||||
std::string CreateApiStageVariableRequest::getSecurityToken() const {
|
||||
return securityToken_;
|
||||
}
|
||||
|
||||
std::string CreateApiStageVariableRequest::getVariableName()const
|
||||
{
|
||||
return variableName_;
|
||||
void CreateApiStageVariableRequest::setSecurityToken(const std::string &securityToken) {
|
||||
securityToken_ = securityToken;
|
||||
setParameter(std::string("SecurityToken"), securityToken);
|
||||
}
|
||||
|
||||
void CreateApiStageVariableRequest::setVariableName(const std::string& variableName)
|
||||
{
|
||||
variableName_ = variableName;
|
||||
setParameter("VariableName", variableName);
|
||||
std::string CreateApiStageVariableRequest::getVariableName() const {
|
||||
return variableName_;
|
||||
}
|
||||
|
||||
std::string CreateApiStageVariableRequest::getStageId()const
|
||||
{
|
||||
return stageId_;
|
||||
void CreateApiStageVariableRequest::setVariableName(const std::string &variableName) {
|
||||
variableName_ = variableName;
|
||||
setParameter(std::string("VariableName"), variableName);
|
||||
}
|
||||
|
||||
void CreateApiStageVariableRequest::setStageId(const std::string& stageId)
|
||||
{
|
||||
stageId_ = stageId;
|
||||
setParameter("StageId", stageId);
|
||||
std::string CreateApiStageVariableRequest::getStageId() const {
|
||||
return stageId_;
|
||||
}
|
||||
|
||||
void CreateApiStageVariableRequest::setStageId(const std::string &stageId) {
|
||||
stageId_ = stageId;
|
||||
setParameter(std::string("StageId"), stageId);
|
||||
}
|
||||
|
||||
|
||||
@@ -1,89 +1,113 @@
|
||||
/*
|
||||
* 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")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
CreateAppRequest::~CreateAppRequest()
|
||||
{}
|
||||
|
||||
std::string CreateAppRequest::getDescription()const
|
||||
{
|
||||
return description_;
|
||||
*/
|
||||
|
||||
#include <alibabacloud/cloudapi/model/CreateAppRequest.h>
|
||||
|
||||
using AlibabaCloud::CloudAPI::Model::CreateAppRequest;
|
||||
|
||||
CreateAppRequest::CreateAppRequest()
|
||||
: RpcServiceRequest("cloudapi", "2016-07-14", "CreateApp") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
void CreateAppRequest::setDescription(const std::string& description)
|
||||
{
|
||||
description_ = description;
|
||||
setParameter("Description", description);
|
||||
CreateAppRequest::~CreateAppRequest() {}
|
||||
|
||||
std::string CreateAppRequest::getDescription() const {
|
||||
return description_;
|
||||
}
|
||||
|
||||
std::string CreateAppRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
void CreateAppRequest::setDescription(const std::string &description) {
|
||||
description_ = description;
|
||||
setParameter(std::string("Description"), description);
|
||||
}
|
||||
|
||||
void CreateAppRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter("AccessKeyId", accessKeyId);
|
||||
std::string CreateAppRequest::getSource() const {
|
||||
return source_;
|
||||
}
|
||||
|
||||
std::string CreateAppRequest::getAppName()const
|
||||
{
|
||||
return appName_;
|
||||
void CreateAppRequest::setSource(const std::string &source) {
|
||||
source_ = source;
|
||||
setParameter(std::string("Source"), source);
|
||||
}
|
||||
|
||||
void CreateAppRequest::setAppName(const std::string& appName)
|
||||
{
|
||||
appName_ = appName;
|
||||
setParameter("AppName", appName);
|
||||
std::string CreateAppRequest::getAccessKeyId() const {
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
std::string CreateAppRequest::getSecurityToken()const
|
||||
{
|
||||
return securityToken_;
|
||||
void CreateAppRequest::setAccessKeyId(const std::string &accessKeyId) {
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter(std::string("AccessKeyId"), accessKeyId);
|
||||
}
|
||||
|
||||
void CreateAppRequest::setSecurityToken(const std::string& securityToken)
|
||||
{
|
||||
securityToken_ = securityToken;
|
||||
setParameter("SecurityToken", securityToken);
|
||||
std::string CreateAppRequest::getAppName() const {
|
||||
return appName_;
|
||||
}
|
||||
|
||||
std::vector<CreateAppRequest::Tag> CreateAppRequest::getTag()const
|
||||
{
|
||||
return tag_;
|
||||
void CreateAppRequest::setAppName(const std::string &appName) {
|
||||
appName_ = appName;
|
||||
setParameter(std::string("AppName"), appName);
|
||||
}
|
||||
|
||||
void CreateAppRequest::setTag(const std::vector<Tag>& tag)
|
||||
{
|
||||
tag_ = tag;
|
||||
for(int dep1 = 0; dep1!= tag.size(); dep1++) {
|
||||
auto tagObj = tag.at(dep1);
|
||||
std::string tagObjStr = "Tag." + std::to_string(dep1 + 1);
|
||||
setParameter(tagObjStr + ".Value", tagObj.value);
|
||||
setParameter(tagObjStr + ".Key", tagObj.key);
|
||||
}
|
||||
std::string CreateAppRequest::getSecurityToken() const {
|
||||
return securityToken_;
|
||||
}
|
||||
|
||||
void CreateAppRequest::setSecurityToken(const std::string &securityToken) {
|
||||
securityToken_ = securityToken;
|
||||
setParameter(std::string("SecurityToken"), securityToken);
|
||||
}
|
||||
|
||||
std::string CreateAppRequest::getAppSecret() const {
|
||||
return appSecret_;
|
||||
}
|
||||
|
||||
void CreateAppRequest::setAppSecret(const std::string &appSecret) {
|
||||
appSecret_ = appSecret;
|
||||
setParameter(std::string("AppSecret"), appSecret);
|
||||
}
|
||||
|
||||
std::string CreateAppRequest::getAppKey() const {
|
||||
return appKey_;
|
||||
}
|
||||
|
||||
void CreateAppRequest::setAppKey(const std::string &appKey) {
|
||||
appKey_ = appKey;
|
||||
setParameter(std::string("AppKey"), appKey);
|
||||
}
|
||||
|
||||
std::string CreateAppRequest::getAppCode() const {
|
||||
return appCode_;
|
||||
}
|
||||
|
||||
void CreateAppRequest::setAppCode(const std::string &appCode) {
|
||||
appCode_ = appCode;
|
||||
setParameter(std::string("AppCode"), appCode);
|
||||
}
|
||||
|
||||
std::vector<CreateAppRequest::Tag> CreateAppRequest::getTag() const {
|
||||
return tag_;
|
||||
}
|
||||
|
||||
void CreateAppRequest::setTag(const std::vector<CreateAppRequest::Tag> &tag) {
|
||||
tag_ = tag;
|
||||
for(int dep1 = 0; dep1 != tag.size(); dep1++) {
|
||||
auto tagObj = tag.at(dep1);
|
||||
std::string tagObjStr = std::string("Tag") + "." + std::to_string(dep1 + 1);
|
||||
setParameter(tagObjStr + ".Value", tagObj.value);
|
||||
setParameter(tagObjStr + ".Key", tagObj.key);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -39,10 +39,10 @@ void CreateAppResult::parse(const std::string &payload)
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["AppId"].isNull())
|
||||
appId_ = std::stol(value["AppId"].asString());
|
||||
if(!value["TagStatus"].isNull())
|
||||
tagStatus_ = value["TagStatus"].asString() == "true";
|
||||
if(!value["AppId"].isNull())
|
||||
appId_ = std::stol(value["AppId"].asString());
|
||||
|
||||
}
|
||||
|
||||
|
||||
90
cloudapi/src/model/CreateBackendModelRequest.cc
Normal file
90
cloudapi/src/model/CreateBackendModelRequest.cc
Normal file
@@ -0,0 +1,90 @@
|
||||
/*
|
||||
* 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/CreateBackendModelRequest.h>
|
||||
|
||||
using AlibabaCloud::CloudAPI::Model::CreateBackendModelRequest;
|
||||
|
||||
CreateBackendModelRequest::CreateBackendModelRequest()
|
||||
: RpcServiceRequest("cloudapi", "2016-07-14", "CreateBackendModel") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
CreateBackendModelRequest::~CreateBackendModelRequest() {}
|
||||
|
||||
std::string CreateBackendModelRequest::getStageName() const {
|
||||
return stageName_;
|
||||
}
|
||||
|
||||
void CreateBackendModelRequest::setStageName(const std::string &stageName) {
|
||||
stageName_ = stageName;
|
||||
setParameter(std::string("StageName"), stageName);
|
||||
}
|
||||
|
||||
std::string CreateBackendModelRequest::getBackendModelData() const {
|
||||
return backendModelData_;
|
||||
}
|
||||
|
||||
void CreateBackendModelRequest::setBackendModelData(const std::string &backendModelData) {
|
||||
backendModelData_ = backendModelData;
|
||||
setParameter(std::string("BackendModelData"), backendModelData);
|
||||
}
|
||||
|
||||
std::string CreateBackendModelRequest::getBackendId() const {
|
||||
return backendId_;
|
||||
}
|
||||
|
||||
void CreateBackendModelRequest::setBackendId(const std::string &backendId) {
|
||||
backendId_ = backendId;
|
||||
setParameter(std::string("BackendId"), backendId);
|
||||
}
|
||||
|
||||
std::string CreateBackendModelRequest::getDescription() const {
|
||||
return description_;
|
||||
}
|
||||
|
||||
void CreateBackendModelRequest::setDescription(const std::string &description) {
|
||||
description_ = description;
|
||||
setParameter(std::string("Description"), description);
|
||||
}
|
||||
|
||||
std::string CreateBackendModelRequest::getAccessKeyId() const {
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void CreateBackendModelRequest::setAccessKeyId(const std::string &accessKeyId) {
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter(std::string("AccessKeyId"), accessKeyId);
|
||||
}
|
||||
|
||||
std::string CreateBackendModelRequest::getSecurityToken() const {
|
||||
return securityToken_;
|
||||
}
|
||||
|
||||
void CreateBackendModelRequest::setSecurityToken(const std::string &securityToken) {
|
||||
securityToken_ = securityToken;
|
||||
setParameter(std::string("SecurityToken"), securityToken);
|
||||
}
|
||||
|
||||
std::string CreateBackendModelRequest::getBackendType() const {
|
||||
return backendType_;
|
||||
}
|
||||
|
||||
void CreateBackendModelRequest::setBackendType(const std::string &backendType) {
|
||||
backendType_ = backendType;
|
||||
setParameter(std::string("BackendType"), backendType);
|
||||
}
|
||||
|
||||
51
cloudapi/src/model/CreateBackendModelResult.cc
Normal file
51
cloudapi/src/model/CreateBackendModelResult.cc
Normal file
@@ -0,0 +1,51 @@
|
||||
/*
|
||||
* 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/CreateBackendModelResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::CloudAPI;
|
||||
using namespace AlibabaCloud::CloudAPI::Model;
|
||||
|
||||
CreateBackendModelResult::CreateBackendModelResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
CreateBackendModelResult::CreateBackendModelResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
CreateBackendModelResult::~CreateBackendModelResult()
|
||||
{}
|
||||
|
||||
void CreateBackendModelResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["BackendModelId"].isNull())
|
||||
backendModelId_ = value["BackendModelId"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string CreateBackendModelResult::getBackendModelId()const
|
||||
{
|
||||
return backendModelId_;
|
||||
}
|
||||
|
||||
81
cloudapi/src/model/CreateBackendRequest.cc
Normal file
81
cloudapi/src/model/CreateBackendRequest.cc
Normal file
@@ -0,0 +1,81 @@
|
||||
/*
|
||||
* 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/CreateBackendRequest.h>
|
||||
|
||||
using AlibabaCloud::CloudAPI::Model::CreateBackendRequest;
|
||||
|
||||
CreateBackendRequest::CreateBackendRequest()
|
||||
: RpcServiceRequest("cloudapi", "2016-07-14", "CreateBackend") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
CreateBackendRequest::~CreateBackendRequest() {}
|
||||
|
||||
std::string CreateBackendRequest::getDescription() const {
|
||||
return description_;
|
||||
}
|
||||
|
||||
void CreateBackendRequest::setDescription(const std::string &description) {
|
||||
description_ = description;
|
||||
setParameter(std::string("Description"), description);
|
||||
}
|
||||
|
||||
std::string CreateBackendRequest::getBackendName() const {
|
||||
return backendName_;
|
||||
}
|
||||
|
||||
void CreateBackendRequest::setBackendName(const std::string &backendName) {
|
||||
backendName_ = backendName;
|
||||
setParameter(std::string("BackendName"), backendName);
|
||||
}
|
||||
|
||||
std::string CreateBackendRequest::getAccessKeyId() const {
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void CreateBackendRequest::setAccessKeyId(const std::string &accessKeyId) {
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter(std::string("AccessKeyId"), accessKeyId);
|
||||
}
|
||||
|
||||
bool CreateBackendRequest::getCreateEventBridgeServiceLinkedRole() const {
|
||||
return createEventBridgeServiceLinkedRole_;
|
||||
}
|
||||
|
||||
void CreateBackendRequest::setCreateEventBridgeServiceLinkedRole(bool createEventBridgeServiceLinkedRole) {
|
||||
createEventBridgeServiceLinkedRole_ = createEventBridgeServiceLinkedRole;
|
||||
setParameter(std::string("CreateEventBridgeServiceLinkedRole"), createEventBridgeServiceLinkedRole ? "true" : "false");
|
||||
}
|
||||
|
||||
std::string CreateBackendRequest::getSecurityToken() const {
|
||||
return securityToken_;
|
||||
}
|
||||
|
||||
void CreateBackendRequest::setSecurityToken(const std::string &securityToken) {
|
||||
securityToken_ = securityToken;
|
||||
setParameter(std::string("SecurityToken"), securityToken);
|
||||
}
|
||||
|
||||
std::string CreateBackendRequest::getBackendType() const {
|
||||
return backendType_;
|
||||
}
|
||||
|
||||
void CreateBackendRequest::setBackendType(const std::string &backendType) {
|
||||
backendType_ = backendType;
|
||||
setParameter(std::string("BackendType"), backendType);
|
||||
}
|
||||
|
||||
51
cloudapi/src/model/CreateBackendResult.cc
Normal file
51
cloudapi/src/model/CreateBackendResult.cc
Normal file
@@ -0,0 +1,51 @@
|
||||
/*
|
||||
* 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/CreateBackendResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::CloudAPI;
|
||||
using namespace AlibabaCloud::CloudAPI::Model;
|
||||
|
||||
CreateBackendResult::CreateBackendResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
CreateBackendResult::CreateBackendResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
CreateBackendResult::~CreateBackendResult()
|
||||
{}
|
||||
|
||||
void CreateBackendResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["BackendId"].isNull())
|
||||
backendId_ = value["BackendId"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string CreateBackendResult::getBackendId()const
|
||||
{
|
||||
return backendId_;
|
||||
}
|
||||
|
||||
81
cloudapi/src/model/CreateDatasetItemRequest.cc
Normal file
81
cloudapi/src/model/CreateDatasetItemRequest.cc
Normal file
@@ -0,0 +1,81 @@
|
||||
/*
|
||||
* 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/CreateDatasetItemRequest.h>
|
||||
|
||||
using AlibabaCloud::CloudAPI::Model::CreateDatasetItemRequest;
|
||||
|
||||
CreateDatasetItemRequest::CreateDatasetItemRequest()
|
||||
: RpcServiceRequest("cloudapi", "2016-07-14", "CreateDatasetItem") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
CreateDatasetItemRequest::~CreateDatasetItemRequest() {}
|
||||
|
||||
std::string CreateDatasetItemRequest::getDescription() const {
|
||||
return description_;
|
||||
}
|
||||
|
||||
void CreateDatasetItemRequest::setDescription(const std::string &description) {
|
||||
description_ = description;
|
||||
setParameter(std::string("Description"), description);
|
||||
}
|
||||
|
||||
std::string CreateDatasetItemRequest::getAccessKeyId() const {
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void CreateDatasetItemRequest::setAccessKeyId(const std::string &accessKeyId) {
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter(std::string("AccessKeyId"), accessKeyId);
|
||||
}
|
||||
|
||||
std::string CreateDatasetItemRequest::getSecurityToken() const {
|
||||
return securityToken_;
|
||||
}
|
||||
|
||||
void CreateDatasetItemRequest::setSecurityToken(const std::string &securityToken) {
|
||||
securityToken_ = securityToken;
|
||||
setParameter(std::string("SecurityToken"), securityToken);
|
||||
}
|
||||
|
||||
std::string CreateDatasetItemRequest::getExpiredTime() const {
|
||||
return expiredTime_;
|
||||
}
|
||||
|
||||
void CreateDatasetItemRequest::setExpiredTime(const std::string &expiredTime) {
|
||||
expiredTime_ = expiredTime;
|
||||
setParameter(std::string("ExpiredTime"), expiredTime);
|
||||
}
|
||||
|
||||
std::string CreateDatasetItemRequest::getDatasetId() const {
|
||||
return datasetId_;
|
||||
}
|
||||
|
||||
void CreateDatasetItemRequest::setDatasetId(const std::string &datasetId) {
|
||||
datasetId_ = datasetId;
|
||||
setParameter(std::string("DatasetId"), datasetId);
|
||||
}
|
||||
|
||||
std::string CreateDatasetItemRequest::getValue() const {
|
||||
return value_;
|
||||
}
|
||||
|
||||
void CreateDatasetItemRequest::setValue(const std::string &value) {
|
||||
value_ = value;
|
||||
setParameter(std::string("Value"), value);
|
||||
}
|
||||
|
||||
51
cloudapi/src/model/CreateDatasetItemResult.cc
Normal file
51
cloudapi/src/model/CreateDatasetItemResult.cc
Normal file
@@ -0,0 +1,51 @@
|
||||
/*
|
||||
* 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/CreateDatasetItemResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::CloudAPI;
|
||||
using namespace AlibabaCloud::CloudAPI::Model;
|
||||
|
||||
CreateDatasetItemResult::CreateDatasetItemResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
CreateDatasetItemResult::CreateDatasetItemResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
CreateDatasetItemResult::~CreateDatasetItemResult()
|
||||
{}
|
||||
|
||||
void CreateDatasetItemResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["DatasetItemId"].isNull())
|
||||
datasetItemId_ = value["DatasetItemId"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string CreateDatasetItemResult::getDatasetItemId()const
|
||||
{
|
||||
return datasetItemId_;
|
||||
}
|
||||
|
||||
63
cloudapi/src/model/CreateDatasetRequest.cc
Normal file
63
cloudapi/src/model/CreateDatasetRequest.cc
Normal file
@@ -0,0 +1,63 @@
|
||||
/*
|
||||
* 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/CreateDatasetRequest.h>
|
||||
|
||||
using AlibabaCloud::CloudAPI::Model::CreateDatasetRequest;
|
||||
|
||||
CreateDatasetRequest::CreateDatasetRequest()
|
||||
: RpcServiceRequest("cloudapi", "2016-07-14", "CreateDataset") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
CreateDatasetRequest::~CreateDatasetRequest() {}
|
||||
|
||||
std::string CreateDatasetRequest::getAccessKeyId() const {
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void CreateDatasetRequest::setAccessKeyId(const std::string &accessKeyId) {
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter(std::string("AccessKeyId"), accessKeyId);
|
||||
}
|
||||
|
||||
std::string CreateDatasetRequest::getDatasetType() const {
|
||||
return datasetType_;
|
||||
}
|
||||
|
||||
void CreateDatasetRequest::setDatasetType(const std::string &datasetType) {
|
||||
datasetType_ = datasetType;
|
||||
setParameter(std::string("DatasetType"), datasetType);
|
||||
}
|
||||
|
||||
std::string CreateDatasetRequest::getSecurityToken() const {
|
||||
return securityToken_;
|
||||
}
|
||||
|
||||
void CreateDatasetRequest::setSecurityToken(const std::string &securityToken) {
|
||||
securityToken_ = securityToken;
|
||||
setParameter(std::string("SecurityToken"), securityToken);
|
||||
}
|
||||
|
||||
std::string CreateDatasetRequest::getDatasetName() const {
|
||||
return datasetName_;
|
||||
}
|
||||
|
||||
void CreateDatasetRequest::setDatasetName(const std::string &datasetName) {
|
||||
datasetName_ = datasetName;
|
||||
setParameter(std::string("DatasetName"), datasetName);
|
||||
}
|
||||
|
||||
51
cloudapi/src/model/CreateDatasetResult.cc
Normal file
51
cloudapi/src/model/CreateDatasetResult.cc
Normal file
@@ -0,0 +1,51 @@
|
||||
/*
|
||||
* 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/CreateDatasetResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::CloudAPI;
|
||||
using namespace AlibabaCloud::CloudAPI::Model;
|
||||
|
||||
CreateDatasetResult::CreateDatasetResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
CreateDatasetResult::CreateDatasetResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
CreateDatasetResult::~CreateDatasetResult()
|
||||
{}
|
||||
|
||||
void CreateDatasetResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["DatasetId"].isNull())
|
||||
datasetId_ = value["DatasetId"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string CreateDatasetResult::getDatasetId()const
|
||||
{
|
||||
return datasetId_;
|
||||
}
|
||||
|
||||
@@ -1,128 +1,108 @@
|
||||
/*
|
||||
* 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/CreateInstanceRequest.h>
|
||||
|
||||
using AlibabaCloud::CloudAPI::Model::CreateInstanceRequest;
|
||||
|
||||
CreateInstanceRequest::CreateInstanceRequest() :
|
||||
RpcServiceRequest("cloudapi", "2016-07-14", "CreateInstance")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
CreateInstanceRequest::~CreateInstanceRequest()
|
||||
{}
|
||||
|
||||
bool CreateInstanceRequest::getAutoPay()const
|
||||
{
|
||||
return autoPay_;
|
||||
*/
|
||||
|
||||
#include <alibabacloud/cloudapi/model/CreateInstanceRequest.h>
|
||||
|
||||
using AlibabaCloud::CloudAPI::Model::CreateInstanceRequest;
|
||||
|
||||
CreateInstanceRequest::CreateInstanceRequest()
|
||||
: RpcServiceRequest("cloudapi", "2016-07-14", "CreateInstance") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
void CreateInstanceRequest::setAutoPay(bool autoPay)
|
||||
{
|
||||
autoPay_ = autoPay;
|
||||
setParameter("AutoPay", autoPay ? "true" : "false");
|
||||
CreateInstanceRequest::~CreateInstanceRequest() {}
|
||||
|
||||
bool CreateInstanceRequest::getAutoPay() const {
|
||||
return autoPay_;
|
||||
}
|
||||
|
||||
std::string CreateInstanceRequest::getInstanceSpec()const
|
||||
{
|
||||
return instanceSpec_;
|
||||
void CreateInstanceRequest::setAutoPay(bool autoPay) {
|
||||
autoPay_ = autoPay;
|
||||
setParameter(std::string("AutoPay"), autoPay ? "true" : "false");
|
||||
}
|
||||
|
||||
void CreateInstanceRequest::setInstanceSpec(const std::string& instanceSpec)
|
||||
{
|
||||
instanceSpec_ = instanceSpec;
|
||||
setParameter("InstanceSpec", instanceSpec);
|
||||
std::string CreateInstanceRequest::getInstanceSpec() const {
|
||||
return instanceSpec_;
|
||||
}
|
||||
|
||||
std::string CreateInstanceRequest::getHttpsPolicy()const
|
||||
{
|
||||
return httpsPolicy_;
|
||||
void CreateInstanceRequest::setInstanceSpec(const std::string &instanceSpec) {
|
||||
instanceSpec_ = instanceSpec;
|
||||
setParameter(std::string("InstanceSpec"), instanceSpec);
|
||||
}
|
||||
|
||||
void CreateInstanceRequest::setHttpsPolicy(const std::string& httpsPolicy)
|
||||
{
|
||||
httpsPolicy_ = httpsPolicy;
|
||||
setParameter("HttpsPolicy", httpsPolicy);
|
||||
std::string CreateInstanceRequest::getHttpsPolicy() const {
|
||||
return httpsPolicy_;
|
||||
}
|
||||
|
||||
std::string CreateInstanceRequest::getToken()const
|
||||
{
|
||||
return token_;
|
||||
void CreateInstanceRequest::setHttpsPolicy(const std::string &httpsPolicy) {
|
||||
httpsPolicy_ = httpsPolicy;
|
||||
setParameter(std::string("HttpsPolicy"), httpsPolicy);
|
||||
}
|
||||
|
||||
void CreateInstanceRequest::setToken(const std::string& token)
|
||||
{
|
||||
token_ = token;
|
||||
setParameter("Token", token);
|
||||
std::string CreateInstanceRequest::getToken() const {
|
||||
return token_;
|
||||
}
|
||||
|
||||
int CreateInstanceRequest::getDuration()const
|
||||
{
|
||||
return duration_;
|
||||
void CreateInstanceRequest::setToken(const std::string &token) {
|
||||
token_ = token;
|
||||
setParameter(std::string("Token"), token);
|
||||
}
|
||||
|
||||
void CreateInstanceRequest::setDuration(int duration)
|
||||
{
|
||||
duration_ = duration;
|
||||
setParameter("Duration", std::to_string(duration));
|
||||
int CreateInstanceRequest::getDuration() const {
|
||||
return duration_;
|
||||
}
|
||||
|
||||
std::string CreateInstanceRequest::getInstanceName()const
|
||||
{
|
||||
return instanceName_;
|
||||
void CreateInstanceRequest::setDuration(int duration) {
|
||||
duration_ = duration;
|
||||
setParameter(std::string("Duration"), std::to_string(duration));
|
||||
}
|
||||
|
||||
void CreateInstanceRequest::setInstanceName(const std::string& instanceName)
|
||||
{
|
||||
instanceName_ = instanceName;
|
||||
setParameter("InstanceName", instanceName);
|
||||
std::string CreateInstanceRequest::getInstanceName() const {
|
||||
return instanceName_;
|
||||
}
|
||||
|
||||
std::string CreateInstanceRequest::getZoneId()const
|
||||
{
|
||||
return zoneId_;
|
||||
void CreateInstanceRequest::setInstanceName(const std::string &instanceName) {
|
||||
instanceName_ = instanceName;
|
||||
setParameter(std::string("InstanceName"), instanceName);
|
||||
}
|
||||
|
||||
void CreateInstanceRequest::setZoneId(const std::string& zoneId)
|
||||
{
|
||||
zoneId_ = zoneId;
|
||||
setParameter("ZoneId", zoneId);
|
||||
std::string CreateInstanceRequest::getZoneId() const {
|
||||
return zoneId_;
|
||||
}
|
||||
|
||||
std::string CreateInstanceRequest::getChargeType()const
|
||||
{
|
||||
return chargeType_;
|
||||
void CreateInstanceRequest::setZoneId(const std::string &zoneId) {
|
||||
zoneId_ = zoneId;
|
||||
setParameter(std::string("ZoneId"), zoneId);
|
||||
}
|
||||
|
||||
void CreateInstanceRequest::setChargeType(const std::string& chargeType)
|
||||
{
|
||||
chargeType_ = chargeType;
|
||||
setParameter("ChargeType", chargeType);
|
||||
std::string CreateInstanceRequest::getChargeType() const {
|
||||
return chargeType_;
|
||||
}
|
||||
|
||||
std::string CreateInstanceRequest::getPricingCycle()const
|
||||
{
|
||||
return pricingCycle_;
|
||||
void CreateInstanceRequest::setChargeType(const std::string &chargeType) {
|
||||
chargeType_ = chargeType;
|
||||
setParameter(std::string("ChargeType"), chargeType);
|
||||
}
|
||||
|
||||
void CreateInstanceRequest::setPricingCycle(const std::string& pricingCycle)
|
||||
{
|
||||
pricingCycle_ = pricingCycle;
|
||||
setParameter("PricingCycle", pricingCycle);
|
||||
std::string CreateInstanceRequest::getPricingCycle() const {
|
||||
return pricingCycle_;
|
||||
}
|
||||
|
||||
void CreateInstanceRequest::setPricingCycle(const std::string &pricingCycle) {
|
||||
pricingCycle_ = pricingCycle;
|
||||
setParameter(std::string("PricingCycle"), pricingCycle);
|
||||
}
|
||||
|
||||
|
||||
@@ -1,73 +1,63 @@
|
||||
/*
|
||||
* 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")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
CreateIntranetDomainRequest::~CreateIntranetDomainRequest()
|
||||
{}
|
||||
|
||||
std::string CreateIntranetDomainRequest::getGroupId()const
|
||||
{
|
||||
return groupId_;
|
||||
*/
|
||||
|
||||
#include <alibabacloud/cloudapi/model/CreateIntranetDomainRequest.h>
|
||||
|
||||
using AlibabaCloud::CloudAPI::Model::CreateIntranetDomainRequest;
|
||||
|
||||
CreateIntranetDomainRequest::CreateIntranetDomainRequest()
|
||||
: RpcServiceRequest("cloudapi", "2016-07-14", "CreateIntranetDomain") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
void CreateIntranetDomainRequest::setGroupId(const std::string& groupId)
|
||||
{
|
||||
groupId_ = groupId;
|
||||
setParameter("GroupId", groupId);
|
||||
CreateIntranetDomainRequest::~CreateIntranetDomainRequest() {}
|
||||
|
||||
std::string CreateIntranetDomainRequest::getGroupId() const {
|
||||
return groupId_;
|
||||
}
|
||||
|
||||
std::string CreateIntranetDomainRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
void CreateIntranetDomainRequest::setGroupId(const std::string &groupId) {
|
||||
groupId_ = groupId;
|
||||
setParameter(std::string("GroupId"), groupId);
|
||||
}
|
||||
|
||||
void CreateIntranetDomainRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter("AccessKeyId", accessKeyId);
|
||||
std::string CreateIntranetDomainRequest::getAccessKeyId() const {
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
bool CreateIntranetDomainRequest::getDeleteInternetDomain()const
|
||||
{
|
||||
return deleteInternetDomain_;
|
||||
void CreateIntranetDomainRequest::setAccessKeyId(const std::string &accessKeyId) {
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter(std::string("AccessKeyId"), accessKeyId);
|
||||
}
|
||||
|
||||
void CreateIntranetDomainRequest::setDeleteInternetDomain(bool deleteInternetDomain)
|
||||
{
|
||||
deleteInternetDomain_ = deleteInternetDomain;
|
||||
setParameter("DeleteInternetDomain", deleteInternetDomain ? "true" : "false");
|
||||
bool CreateIntranetDomainRequest::getDeleteInternetDomain() const {
|
||||
return deleteInternetDomain_;
|
||||
}
|
||||
|
||||
std::string CreateIntranetDomainRequest::getSecurityToken()const
|
||||
{
|
||||
return securityToken_;
|
||||
void CreateIntranetDomainRequest::setDeleteInternetDomain(bool deleteInternetDomain) {
|
||||
deleteInternetDomain_ = deleteInternetDomain;
|
||||
setParameter(std::string("DeleteInternetDomain"), deleteInternetDomain ? "true" : "false");
|
||||
}
|
||||
|
||||
void CreateIntranetDomainRequest::setSecurityToken(const std::string& securityToken)
|
||||
{
|
||||
securityToken_ = securityToken;
|
||||
setParameter("SecurityToken", securityToken);
|
||||
std::string CreateIntranetDomainRequest::getSecurityToken() const {
|
||||
return securityToken_;
|
||||
}
|
||||
|
||||
void CreateIntranetDomainRequest::setSecurityToken(const std::string &securityToken) {
|
||||
securityToken_ = securityToken;
|
||||
setParameter(std::string("SecurityToken"), securityToken);
|
||||
}
|
||||
|
||||
|
||||
@@ -1,100 +1,86 @@
|
||||
/*
|
||||
* 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")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
CreateIpControlRequest::~CreateIpControlRequest()
|
||||
{}
|
||||
|
||||
std::string CreateIpControlRequest::getIpControlName()const
|
||||
{
|
||||
return ipControlName_;
|
||||
*/
|
||||
|
||||
#include <alibabacloud/cloudapi/model/CreateIpControlRequest.h>
|
||||
|
||||
using AlibabaCloud::CloudAPI::Model::CreateIpControlRequest;
|
||||
|
||||
CreateIpControlRequest::CreateIpControlRequest()
|
||||
: RpcServiceRequest("cloudapi", "2016-07-14", "CreateIpControl") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
void CreateIpControlRequest::setIpControlName(const std::string& ipControlName)
|
||||
{
|
||||
ipControlName_ = ipControlName;
|
||||
setParameter("IpControlName", ipControlName);
|
||||
CreateIpControlRequest::~CreateIpControlRequest() {}
|
||||
|
||||
std::string CreateIpControlRequest::getIpControlName() const {
|
||||
return ipControlName_;
|
||||
}
|
||||
|
||||
std::vector<CreateIpControlRequest::IpControlPolicys> CreateIpControlRequest::getIpControlPolicys()const
|
||||
{
|
||||
return ipControlPolicys_;
|
||||
void CreateIpControlRequest::setIpControlName(const std::string &ipControlName) {
|
||||
ipControlName_ = ipControlName;
|
||||
setParameter(std::string("IpControlName"), ipControlName);
|
||||
}
|
||||
|
||||
void CreateIpControlRequest::setIpControlPolicys(const std::vector<IpControlPolicys>& ipControlPolicys)
|
||||
{
|
||||
ipControlPolicys_ = ipControlPolicys;
|
||||
for(int dep1 = 0; dep1!= ipControlPolicys.size(); dep1++) {
|
||||
auto ipControlPolicysObj = ipControlPolicys.at(dep1);
|
||||
std::string ipControlPolicysObjStr = "IpControlPolicys." + std::to_string(dep1 + 1);
|
||||
setParameter(ipControlPolicysObjStr + ".AppId", ipControlPolicysObj.appId);
|
||||
setParameter(ipControlPolicysObjStr + ".CidrIp", ipControlPolicysObj.cidrIp);
|
||||
}
|
||||
std::vector<CreateIpControlRequest::IpControlPolicys> CreateIpControlRequest::getIpControlPolicys() const {
|
||||
return ipControlPolicys_;
|
||||
}
|
||||
|
||||
std::string CreateIpControlRequest::getDescription()const
|
||||
{
|
||||
return description_;
|
||||
void CreateIpControlRequest::setIpControlPolicys(const std::vector<CreateIpControlRequest::IpControlPolicys> &ipControlPolicys) {
|
||||
ipControlPolicys_ = ipControlPolicys;
|
||||
for(int dep1 = 0; dep1 != ipControlPolicys.size(); dep1++) {
|
||||
auto ipControlPolicysObj = ipControlPolicys.at(dep1);
|
||||
std::string ipControlPolicysObjStr = std::string("IpControlPolicys") + "." + std::to_string(dep1 + 1);
|
||||
setParameter(ipControlPolicysObjStr + ".AppId", ipControlPolicysObj.appId);
|
||||
setParameter(ipControlPolicysObjStr + ".CidrIp", ipControlPolicysObj.cidrIp);
|
||||
}
|
||||
}
|
||||
|
||||
void CreateIpControlRequest::setDescription(const std::string& description)
|
||||
{
|
||||
description_ = description;
|
||||
setParameter("Description", description);
|
||||
std::string CreateIpControlRequest::getDescription() const {
|
||||
return description_;
|
||||
}
|
||||
|
||||
std::string CreateIpControlRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
void CreateIpControlRequest::setDescription(const std::string &description) {
|
||||
description_ = description;
|
||||
setParameter(std::string("Description"), description);
|
||||
}
|
||||
|
||||
void CreateIpControlRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter("AccessKeyId", accessKeyId);
|
||||
std::string CreateIpControlRequest::getAccessKeyId() const {
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
std::string CreateIpControlRequest::getSecurityToken()const
|
||||
{
|
||||
return securityToken_;
|
||||
void CreateIpControlRequest::setAccessKeyId(const std::string &accessKeyId) {
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter(std::string("AccessKeyId"), accessKeyId);
|
||||
}
|
||||
|
||||
void CreateIpControlRequest::setSecurityToken(const std::string& securityToken)
|
||||
{
|
||||
securityToken_ = securityToken;
|
||||
setParameter("SecurityToken", securityToken);
|
||||
std::string CreateIpControlRequest::getSecurityToken() const {
|
||||
return securityToken_;
|
||||
}
|
||||
|
||||
std::string CreateIpControlRequest::getIpControlType()const
|
||||
{
|
||||
return ipControlType_;
|
||||
void CreateIpControlRequest::setSecurityToken(const std::string &securityToken) {
|
||||
securityToken_ = securityToken;
|
||||
setParameter(std::string("SecurityToken"), securityToken);
|
||||
}
|
||||
|
||||
void CreateIpControlRequest::setIpControlType(const std::string& ipControlType)
|
||||
{
|
||||
ipControlType_ = ipControlType;
|
||||
setParameter("IpControlType", ipControlType);
|
||||
std::string CreateIpControlRequest::getIpControlType() const {
|
||||
return ipControlType_;
|
||||
}
|
||||
|
||||
void CreateIpControlRequest::setIpControlType(const std::string &ipControlType) {
|
||||
ipControlType_ = ipControlType;
|
||||
setParameter(std::string("IpControlType"), ipControlType);
|
||||
}
|
||||
|
||||
|
||||
@@ -1,84 +1,72 @@
|
||||
/*
|
||||
* 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")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
CreateLogConfigRequest::~CreateLogConfigRequest()
|
||||
{}
|
||||
|
||||
std::string CreateLogConfigRequest::getSlsLogStore()const
|
||||
{
|
||||
return slsLogStore_;
|
||||
*/
|
||||
|
||||
#include <alibabacloud/cloudapi/model/CreateLogConfigRequest.h>
|
||||
|
||||
using AlibabaCloud::CloudAPI::Model::CreateLogConfigRequest;
|
||||
|
||||
CreateLogConfigRequest::CreateLogConfigRequest()
|
||||
: RpcServiceRequest("cloudapi", "2016-07-14", "CreateLogConfig") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
void CreateLogConfigRequest::setSlsLogStore(const std::string& slsLogStore)
|
||||
{
|
||||
slsLogStore_ = slsLogStore;
|
||||
setParameter("SlsLogStore", slsLogStore);
|
||||
CreateLogConfigRequest::~CreateLogConfigRequest() {}
|
||||
|
||||
std::string CreateLogConfigRequest::getSlsLogStore() const {
|
||||
return slsLogStore_;
|
||||
}
|
||||
|
||||
std::string CreateLogConfigRequest::getSlsProject()const
|
||||
{
|
||||
return slsProject_;
|
||||
void CreateLogConfigRequest::setSlsLogStore(const std::string &slsLogStore) {
|
||||
slsLogStore_ = slsLogStore;
|
||||
setParameter(std::string("SlsLogStore"), slsLogStore);
|
||||
}
|
||||
|
||||
void CreateLogConfigRequest::setSlsProject(const std::string& slsProject)
|
||||
{
|
||||
slsProject_ = slsProject;
|
||||
setParameter("SlsProject", slsProject);
|
||||
std::string CreateLogConfigRequest::getSlsProject() const {
|
||||
return slsProject_;
|
||||
}
|
||||
|
||||
std::string CreateLogConfigRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
void CreateLogConfigRequest::setSlsProject(const std::string &slsProject) {
|
||||
slsProject_ = slsProject;
|
||||
setParameter(std::string("SlsProject"), slsProject);
|
||||
}
|
||||
|
||||
void CreateLogConfigRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter("AccessKeyId", accessKeyId);
|
||||
std::string CreateLogConfigRequest::getAccessKeyId() const {
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
std::string CreateLogConfigRequest::getLogType()const
|
||||
{
|
||||
return logType_;
|
||||
void CreateLogConfigRequest::setAccessKeyId(const std::string &accessKeyId) {
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter(std::string("AccessKeyId"), accessKeyId);
|
||||
}
|
||||
|
||||
void CreateLogConfigRequest::setLogType(const std::string& logType)
|
||||
{
|
||||
logType_ = logType;
|
||||
setParameter("LogType", logType);
|
||||
std::string CreateLogConfigRequest::getLogType() const {
|
||||
return logType_;
|
||||
}
|
||||
|
||||
std::string CreateLogConfigRequest::getSecurityToken()const
|
||||
{
|
||||
return securityToken_;
|
||||
void CreateLogConfigRequest::setLogType(const std::string &logType) {
|
||||
logType_ = logType;
|
||||
setParameter(std::string("LogType"), logType);
|
||||
}
|
||||
|
||||
void CreateLogConfigRequest::setSecurityToken(const std::string& securityToken)
|
||||
{
|
||||
securityToken_ = securityToken;
|
||||
setParameter("SecurityToken", securityToken);
|
||||
std::string CreateLogConfigRequest::getSecurityToken() const {
|
||||
return securityToken_;
|
||||
}
|
||||
|
||||
void CreateLogConfigRequest::setSecurityToken(const std::string &securityToken) {
|
||||
securityToken_ = securityToken;
|
||||
setParameter(std::string("SecurityToken"), securityToken);
|
||||
}
|
||||
|
||||
|
||||
81
cloudapi/src/model/CreateModelRequest.cc
Normal file
81
cloudapi/src/model/CreateModelRequest.cc
Normal file
@@ -0,0 +1,81 @@
|
||||
/*
|
||||
* 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/CreateModelRequest.h>
|
||||
|
||||
using AlibabaCloud::CloudAPI::Model::CreateModelRequest;
|
||||
|
||||
CreateModelRequest::CreateModelRequest()
|
||||
: RpcServiceRequest("cloudapi", "2016-07-14", "CreateModel") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
CreateModelRequest::~CreateModelRequest() {}
|
||||
|
||||
std::string CreateModelRequest::getSchema() const {
|
||||
return schema_;
|
||||
}
|
||||
|
||||
void CreateModelRequest::setSchema(const std::string &schema) {
|
||||
schema_ = schema;
|
||||
setParameter(std::string("Schema"), schema);
|
||||
}
|
||||
|
||||
std::string CreateModelRequest::getModelName() const {
|
||||
return modelName_;
|
||||
}
|
||||
|
||||
void CreateModelRequest::setModelName(const std::string &modelName) {
|
||||
modelName_ = modelName;
|
||||
setParameter(std::string("ModelName"), modelName);
|
||||
}
|
||||
|
||||
std::string CreateModelRequest::getGroupId() const {
|
||||
return groupId_;
|
||||
}
|
||||
|
||||
void CreateModelRequest::setGroupId(const std::string &groupId) {
|
||||
groupId_ = groupId;
|
||||
setParameter(std::string("GroupId"), groupId);
|
||||
}
|
||||
|
||||
std::string CreateModelRequest::getDescription() const {
|
||||
return description_;
|
||||
}
|
||||
|
||||
void CreateModelRequest::setDescription(const std::string &description) {
|
||||
description_ = description;
|
||||
setParameter(std::string("Description"), description);
|
||||
}
|
||||
|
||||
std::string CreateModelRequest::getAccessKeyId() const {
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void CreateModelRequest::setAccessKeyId(const std::string &accessKeyId) {
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter(std::string("AccessKeyId"), accessKeyId);
|
||||
}
|
||||
|
||||
std::string CreateModelRequest::getSecurityToken() const {
|
||||
return securityToken_;
|
||||
}
|
||||
|
||||
void CreateModelRequest::setSecurityToken(const std::string &securityToken) {
|
||||
securityToken_ = securityToken;
|
||||
setParameter(std::string("SecurityToken"), securityToken);
|
||||
}
|
||||
|
||||
107
cloudapi/src/model/CreateModelResult.cc
Normal file
107
cloudapi/src/model/CreateModelResult.cc
Normal file
@@ -0,0 +1,107 @@
|
||||
/*
|
||||
* 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/CreateModelResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::CloudAPI;
|
||||
using namespace AlibabaCloud::CloudAPI::Model;
|
||||
|
||||
CreateModelResult::CreateModelResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
CreateModelResult::CreateModelResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
CreateModelResult::~CreateModelResult()
|
||||
{}
|
||||
|
||||
void CreateModelResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["ModifiedTime"].isNull())
|
||||
modifiedTime_ = value["ModifiedTime"].asString();
|
||||
if(!value["Description"].isNull())
|
||||
description_ = value["Description"].asString();
|
||||
if(!value["GroupId"].isNull())
|
||||
groupId_ = value["GroupId"].asString();
|
||||
if(!value["Schema"].isNull())
|
||||
schema_ = value["Schema"].asString();
|
||||
if(!value["ModelName"].isNull())
|
||||
modelName_ = value["ModelName"].asString();
|
||||
if(!value["CreatedTime"].isNull())
|
||||
createdTime_ = value["CreatedTime"].asString();
|
||||
if(!value["ModelId"].isNull())
|
||||
modelId_ = value["ModelId"].asString();
|
||||
if(!value["RegionId"].isNull())
|
||||
regionId_ = value["RegionId"].asString();
|
||||
if(!value["ModelRef"].isNull())
|
||||
modelRef_ = value["ModelRef"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string CreateModelResult::getDescription()const
|
||||
{
|
||||
return description_;
|
||||
}
|
||||
|
||||
std::string CreateModelResult::getModelName()const
|
||||
{
|
||||
return modelName_;
|
||||
}
|
||||
|
||||
std::string CreateModelResult::getCreatedTime()const
|
||||
{
|
||||
return createdTime_;
|
||||
}
|
||||
|
||||
std::string CreateModelResult::getModifiedTime()const
|
||||
{
|
||||
return modifiedTime_;
|
||||
}
|
||||
|
||||
std::string CreateModelResult::getSchema()const
|
||||
{
|
||||
return schema_;
|
||||
}
|
||||
|
||||
std::string CreateModelResult::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
std::string CreateModelResult::getModelId()const
|
||||
{
|
||||
return modelId_;
|
||||
}
|
||||
|
||||
std::string CreateModelResult::getModelRef()const
|
||||
{
|
||||
return modelRef_;
|
||||
}
|
||||
|
||||
std::string CreateModelResult::getGroupId()const
|
||||
{
|
||||
return groupId_;
|
||||
}
|
||||
|
||||
72
cloudapi/src/model/CreateMonitorGroupRequest.cc
Normal file
72
cloudapi/src/model/CreateMonitorGroupRequest.cc
Normal file
@@ -0,0 +1,72 @@
|
||||
/*
|
||||
* 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/CreateMonitorGroupRequest.h>
|
||||
|
||||
using AlibabaCloud::CloudAPI::Model::CreateMonitorGroupRequest;
|
||||
|
||||
CreateMonitorGroupRequest::CreateMonitorGroupRequest()
|
||||
: RpcServiceRequest("cloudapi", "2016-07-14", "CreateMonitorGroup") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
CreateMonitorGroupRequest::~CreateMonitorGroupRequest() {}
|
||||
|
||||
std::string CreateMonitorGroupRequest::getAuth() const {
|
||||
return auth_;
|
||||
}
|
||||
|
||||
void CreateMonitorGroupRequest::setAuth(const std::string &auth) {
|
||||
auth_ = auth;
|
||||
setParameter(std::string("Auth"), auth);
|
||||
}
|
||||
|
||||
std::string CreateMonitorGroupRequest::getGroupId() const {
|
||||
return groupId_;
|
||||
}
|
||||
|
||||
void CreateMonitorGroupRequest::setGroupId(const std::string &groupId) {
|
||||
groupId_ = groupId;
|
||||
setParameter(std::string("GroupId"), groupId);
|
||||
}
|
||||
|
||||
long CreateMonitorGroupRequest::getRawMonitorGroupId() const {
|
||||
return rawMonitorGroupId_;
|
||||
}
|
||||
|
||||
void CreateMonitorGroupRequest::setRawMonitorGroupId(long rawMonitorGroupId) {
|
||||
rawMonitorGroupId_ = rawMonitorGroupId;
|
||||
setParameter(std::string("RawMonitorGroupId"), std::to_string(rawMonitorGroupId));
|
||||
}
|
||||
|
||||
std::string CreateMonitorGroupRequest::getAccessKeyId() const {
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void CreateMonitorGroupRequest::setAccessKeyId(const std::string &accessKeyId) {
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter(std::string("AccessKeyId"), accessKeyId);
|
||||
}
|
||||
|
||||
std::string CreateMonitorGroupRequest::getSecurityToken() const {
|
||||
return securityToken_;
|
||||
}
|
||||
|
||||
void CreateMonitorGroupRequest::setSecurityToken(const std::string &securityToken) {
|
||||
securityToken_ = securityToken;
|
||||
setParameter(std::string("SecurityToken"), securityToken);
|
||||
}
|
||||
|
||||
51
cloudapi/src/model/CreateMonitorGroupResult.cc
Normal file
51
cloudapi/src/model/CreateMonitorGroupResult.cc
Normal file
@@ -0,0 +1,51 @@
|
||||
/*
|
||||
* 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/CreateMonitorGroupResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::CloudAPI;
|
||||
using namespace AlibabaCloud::CloudAPI::Model;
|
||||
|
||||
CreateMonitorGroupResult::CreateMonitorGroupResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
CreateMonitorGroupResult::CreateMonitorGroupResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
CreateMonitorGroupResult::~CreateMonitorGroupResult()
|
||||
{}
|
||||
|
||||
void CreateMonitorGroupResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["MonitorGroupId"].isNull())
|
||||
monitorGroupId_ = std::stol(value["MonitorGroupId"].asString());
|
||||
|
||||
}
|
||||
|
||||
long CreateMonitorGroupResult::getMonitorGroupId()const
|
||||
{
|
||||
return monitorGroupId_;
|
||||
}
|
||||
|
||||
95
cloudapi/src/model/CreatePluginRequest.cc
Normal file
95
cloudapi/src/model/CreatePluginRequest.cc
Normal 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/CreatePluginRequest.h>
|
||||
|
||||
using AlibabaCloud::CloudAPI::Model::CreatePluginRequest;
|
||||
|
||||
CreatePluginRequest::CreatePluginRequest()
|
||||
: RpcServiceRequest("cloudapi", "2016-07-14", "CreatePlugin") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
CreatePluginRequest::~CreatePluginRequest() {}
|
||||
|
||||
std::string CreatePluginRequest::getPluginName() const {
|
||||
return pluginName_;
|
||||
}
|
||||
|
||||
void CreatePluginRequest::setPluginName(const std::string &pluginName) {
|
||||
pluginName_ = pluginName;
|
||||
setParameter(std::string("PluginName"), pluginName);
|
||||
}
|
||||
|
||||
std::string CreatePluginRequest::getPluginData() const {
|
||||
return pluginData_;
|
||||
}
|
||||
|
||||
void CreatePluginRequest::setPluginData(const std::string &pluginData) {
|
||||
pluginData_ = pluginData;
|
||||
setParameter(std::string("PluginData"), pluginData);
|
||||
}
|
||||
|
||||
std::string CreatePluginRequest::getDescription() const {
|
||||
return description_;
|
||||
}
|
||||
|
||||
void CreatePluginRequest::setDescription(const std::string &description) {
|
||||
description_ = description;
|
||||
setParameter(std::string("Description"), description);
|
||||
}
|
||||
|
||||
std::string CreatePluginRequest::getAccessKeyId() const {
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void CreatePluginRequest::setAccessKeyId(const std::string &accessKeyId) {
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter(std::string("AccessKeyId"), accessKeyId);
|
||||
}
|
||||
|
||||
std::string CreatePluginRequest::getPluginType() const {
|
||||
return pluginType_;
|
||||
}
|
||||
|
||||
void CreatePluginRequest::setPluginType(const std::string &pluginType) {
|
||||
pluginType_ = pluginType;
|
||||
setParameter(std::string("PluginType"), pluginType);
|
||||
}
|
||||
|
||||
std::string CreatePluginRequest::getSecurityToken() const {
|
||||
return securityToken_;
|
||||
}
|
||||
|
||||
void CreatePluginRequest::setSecurityToken(const std::string &securityToken) {
|
||||
securityToken_ = securityToken;
|
||||
setParameter(std::string("SecurityToken"), securityToken);
|
||||
}
|
||||
|
||||
std::vector<CreatePluginRequest::Tag> CreatePluginRequest::getTag() const {
|
||||
return tag_;
|
||||
}
|
||||
|
||||
void CreatePluginRequest::setTag(const std::vector<CreatePluginRequest::Tag> &tag) {
|
||||
tag_ = tag;
|
||||
for(int dep1 = 0; dep1 != tag.size(); dep1++) {
|
||||
auto tagObj = tag.at(dep1);
|
||||
std::string tagObjStr = std::string("Tag") + "." + std::to_string(dep1 + 1);
|
||||
setParameter(tagObjStr + ".Value", tagObj.value);
|
||||
setParameter(tagObjStr + ".Key", tagObj.key);
|
||||
}
|
||||
}
|
||||
|
||||
58
cloudapi/src/model/CreatePluginResult.cc
Normal file
58
cloudapi/src/model/CreatePluginResult.cc
Normal file
@@ -0,0 +1,58 @@
|
||||
/*
|
||||
* 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/CreatePluginResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::CloudAPI;
|
||||
using namespace AlibabaCloud::CloudAPI::Model;
|
||||
|
||||
CreatePluginResult::CreatePluginResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
CreatePluginResult::CreatePluginResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
CreatePluginResult::~CreatePluginResult()
|
||||
{}
|
||||
|
||||
void CreatePluginResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["PluginId"].isNull())
|
||||
pluginId_ = value["PluginId"].asString();
|
||||
if(!value["TagStatus"].isNull())
|
||||
tagStatus_ = value["TagStatus"].asString() == "true";
|
||||
|
||||
}
|
||||
|
||||
bool CreatePluginResult::getTagStatus()const
|
||||
{
|
||||
return tagStatus_;
|
||||
}
|
||||
|
||||
std::string CreatePluginResult::getPluginId()const
|
||||
{
|
||||
return pluginId_;
|
||||
}
|
||||
|
||||
@@ -1,84 +1,72 @@
|
||||
/*
|
||||
* 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")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
CreateSignatureRequest::~CreateSignatureRequest()
|
||||
{}
|
||||
|
||||
std::string CreateSignatureRequest::getSignatureName()const
|
||||
{
|
||||
return signatureName_;
|
||||
*/
|
||||
|
||||
#include <alibabacloud/cloudapi/model/CreateSignatureRequest.h>
|
||||
|
||||
using AlibabaCloud::CloudAPI::Model::CreateSignatureRequest;
|
||||
|
||||
CreateSignatureRequest::CreateSignatureRequest()
|
||||
: RpcServiceRequest("cloudapi", "2016-07-14", "CreateSignature") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
void CreateSignatureRequest::setSignatureName(const std::string& signatureName)
|
||||
{
|
||||
signatureName_ = signatureName;
|
||||
setParameter("SignatureName", signatureName);
|
||||
CreateSignatureRequest::~CreateSignatureRequest() {}
|
||||
|
||||
std::string CreateSignatureRequest::getSignatureName() const {
|
||||
return signatureName_;
|
||||
}
|
||||
|
||||
std::string CreateSignatureRequest::getSignatureSecret()const
|
||||
{
|
||||
return signatureSecret_;
|
||||
void CreateSignatureRequest::setSignatureName(const std::string &signatureName) {
|
||||
signatureName_ = signatureName;
|
||||
setParameter(std::string("SignatureName"), signatureName);
|
||||
}
|
||||
|
||||
void CreateSignatureRequest::setSignatureSecret(const std::string& signatureSecret)
|
||||
{
|
||||
signatureSecret_ = signatureSecret;
|
||||
setParameter("SignatureSecret", signatureSecret);
|
||||
std::string CreateSignatureRequest::getSignatureSecret() const {
|
||||
return signatureSecret_;
|
||||
}
|
||||
|
||||
std::string CreateSignatureRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
void CreateSignatureRequest::setSignatureSecret(const std::string &signatureSecret) {
|
||||
signatureSecret_ = signatureSecret;
|
||||
setParameter(std::string("SignatureSecret"), signatureSecret);
|
||||
}
|
||||
|
||||
void CreateSignatureRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter("AccessKeyId", accessKeyId);
|
||||
std::string CreateSignatureRequest::getAccessKeyId() const {
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
std::string CreateSignatureRequest::getSecurityToken()const
|
||||
{
|
||||
return securityToken_;
|
||||
void CreateSignatureRequest::setAccessKeyId(const std::string &accessKeyId) {
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter(std::string("AccessKeyId"), accessKeyId);
|
||||
}
|
||||
|
||||
void CreateSignatureRequest::setSecurityToken(const std::string& securityToken)
|
||||
{
|
||||
securityToken_ = securityToken;
|
||||
setParameter("SecurityToken", securityToken);
|
||||
std::string CreateSignatureRequest::getSecurityToken() const {
|
||||
return securityToken_;
|
||||
}
|
||||
|
||||
std::string CreateSignatureRequest::getSignatureKey()const
|
||||
{
|
||||
return signatureKey_;
|
||||
void CreateSignatureRequest::setSecurityToken(const std::string &securityToken) {
|
||||
securityToken_ = securityToken;
|
||||
setParameter(std::string("SecurityToken"), securityToken);
|
||||
}
|
||||
|
||||
void CreateSignatureRequest::setSignatureKey(const std::string& signatureKey)
|
||||
{
|
||||
signatureKey_ = signatureKey;
|
||||
setParameter("SignatureKey", signatureKey);
|
||||
std::string CreateSignatureRequest::getSignatureKey() const {
|
||||
return signatureKey_;
|
||||
}
|
||||
|
||||
void CreateSignatureRequest::setSignatureKey(const std::string &signatureKey) {
|
||||
signatureKey_ = signatureKey;
|
||||
setParameter(std::string("SignatureKey"), signatureKey);
|
||||
}
|
||||
|
||||
|
||||
@@ -1,117 +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/CreateTrafficControlRequest.h>
|
||||
|
||||
using AlibabaCloud::CloudAPI::Model::CreateTrafficControlRequest;
|
||||
|
||||
CreateTrafficControlRequest::CreateTrafficControlRequest() :
|
||||
RpcServiceRequest("cloudapi", "2016-07-14", "CreateTrafficControl")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
CreateTrafficControlRequest::~CreateTrafficControlRequest()
|
||||
{}
|
||||
|
||||
std::string CreateTrafficControlRequest::getTrafficControlName()const
|
||||
{
|
||||
return trafficControlName_;
|
||||
*/
|
||||
|
||||
#include <alibabacloud/cloudapi/model/CreateTrafficControlRequest.h>
|
||||
|
||||
using AlibabaCloud::CloudAPI::Model::CreateTrafficControlRequest;
|
||||
|
||||
CreateTrafficControlRequest::CreateTrafficControlRequest()
|
||||
: RpcServiceRequest("cloudapi", "2016-07-14", "CreateTrafficControl") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
void CreateTrafficControlRequest::setTrafficControlName(const std::string& trafficControlName)
|
||||
{
|
||||
trafficControlName_ = trafficControlName;
|
||||
setParameter("TrafficControlName", trafficControlName);
|
||||
CreateTrafficControlRequest::~CreateTrafficControlRequest() {}
|
||||
|
||||
std::string CreateTrafficControlRequest::getTrafficControlName() const {
|
||||
return trafficControlName_;
|
||||
}
|
||||
|
||||
std::string CreateTrafficControlRequest::getDescription()const
|
||||
{
|
||||
return description_;
|
||||
void CreateTrafficControlRequest::setTrafficControlName(const std::string &trafficControlName) {
|
||||
trafficControlName_ = trafficControlName;
|
||||
setParameter(std::string("TrafficControlName"), trafficControlName);
|
||||
}
|
||||
|
||||
void CreateTrafficControlRequest::setDescription(const std::string& description)
|
||||
{
|
||||
description_ = description;
|
||||
setParameter("Description", description);
|
||||
std::string CreateTrafficControlRequest::getDescription() const {
|
||||
return description_;
|
||||
}
|
||||
|
||||
int CreateTrafficControlRequest::getUserDefault()const
|
||||
{
|
||||
return userDefault_;
|
||||
void CreateTrafficControlRequest::setDescription(const std::string &description) {
|
||||
description_ = description;
|
||||
setParameter(std::string("Description"), description);
|
||||
}
|
||||
|
||||
void CreateTrafficControlRequest::setUserDefault(int userDefault)
|
||||
{
|
||||
userDefault_ = userDefault;
|
||||
setParameter("UserDefault", std::to_string(userDefault));
|
||||
int CreateTrafficControlRequest::getUserDefault() const {
|
||||
return userDefault_;
|
||||
}
|
||||
|
||||
std::string CreateTrafficControlRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
void CreateTrafficControlRequest::setUserDefault(int userDefault) {
|
||||
userDefault_ = userDefault;
|
||||
setParameter(std::string("UserDefault"), std::to_string(userDefault));
|
||||
}
|
||||
|
||||
void CreateTrafficControlRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter("AccessKeyId", accessKeyId);
|
||||
std::string CreateTrafficControlRequest::getAccessKeyId() const {
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
int CreateTrafficControlRequest::getApiDefault()const
|
||||
{
|
||||
return apiDefault_;
|
||||
void CreateTrafficControlRequest::setAccessKeyId(const std::string &accessKeyId) {
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter(std::string("AccessKeyId"), accessKeyId);
|
||||
}
|
||||
|
||||
void CreateTrafficControlRequest::setApiDefault(int apiDefault)
|
||||
{
|
||||
apiDefault_ = apiDefault;
|
||||
setParameter("ApiDefault", std::to_string(apiDefault));
|
||||
int CreateTrafficControlRequest::getApiDefault() const {
|
||||
return apiDefault_;
|
||||
}
|
||||
|
||||
std::string CreateTrafficControlRequest::getSecurityToken()const
|
||||
{
|
||||
return securityToken_;
|
||||
void CreateTrafficControlRequest::setApiDefault(int apiDefault) {
|
||||
apiDefault_ = apiDefault;
|
||||
setParameter(std::string("ApiDefault"), std::to_string(apiDefault));
|
||||
}
|
||||
|
||||
void CreateTrafficControlRequest::setSecurityToken(const std::string& securityToken)
|
||||
{
|
||||
securityToken_ = securityToken;
|
||||
setParameter("SecurityToken", securityToken);
|
||||
std::string CreateTrafficControlRequest::getSecurityToken() const {
|
||||
return securityToken_;
|
||||
}
|
||||
|
||||
std::string CreateTrafficControlRequest::getTrafficControlUnit()const
|
||||
{
|
||||
return trafficControlUnit_;
|
||||
void CreateTrafficControlRequest::setSecurityToken(const std::string &securityToken) {
|
||||
securityToken_ = securityToken;
|
||||
setParameter(std::string("SecurityToken"), securityToken);
|
||||
}
|
||||
|
||||
void CreateTrafficControlRequest::setTrafficControlUnit(const std::string& trafficControlUnit)
|
||||
{
|
||||
trafficControlUnit_ = trafficControlUnit;
|
||||
setParameter("TrafficControlUnit", trafficControlUnit);
|
||||
std::string CreateTrafficControlRequest::getTrafficControlUnit() const {
|
||||
return trafficControlUnit_;
|
||||
}
|
||||
|
||||
int CreateTrafficControlRequest::getAppDefault()const
|
||||
{
|
||||
return appDefault_;
|
||||
void CreateTrafficControlRequest::setTrafficControlUnit(const std::string &trafficControlUnit) {
|
||||
trafficControlUnit_ = trafficControlUnit;
|
||||
setParameter(std::string("TrafficControlUnit"), trafficControlUnit);
|
||||
}
|
||||
|
||||
void CreateTrafficControlRequest::setAppDefault(int appDefault)
|
||||
{
|
||||
appDefault_ = appDefault;
|
||||
setParameter("AppDefault", std::to_string(appDefault));
|
||||
int CreateTrafficControlRequest::getAppDefault() const {
|
||||
return appDefault_;
|
||||
}
|
||||
|
||||
void CreateTrafficControlRequest::setAppDefault(int appDefault) {
|
||||
appDefault_ = appDefault;
|
||||
setParameter(std::string("AppDefault"), std::to_string(appDefault));
|
||||
}
|
||||
|
||||
|
||||
54
cloudapi/src/model/DeleteAccessControlListRequest.cc
Normal file
54
cloudapi/src/model/DeleteAccessControlListRequest.cc
Normal file
@@ -0,0 +1,54 @@
|
||||
/*
|
||||
* 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/DeleteAccessControlListRequest.h>
|
||||
|
||||
using AlibabaCloud::CloudAPI::Model::DeleteAccessControlListRequest;
|
||||
|
||||
DeleteAccessControlListRequest::DeleteAccessControlListRequest()
|
||||
: RpcServiceRequest("cloudapi", "2016-07-14", "DeleteAccessControlList") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DeleteAccessControlListRequest::~DeleteAccessControlListRequest() {}
|
||||
|
||||
std::string DeleteAccessControlListRequest::getAclId() const {
|
||||
return aclId_;
|
||||
}
|
||||
|
||||
void DeleteAccessControlListRequest::setAclId(const std::string &aclId) {
|
||||
aclId_ = aclId;
|
||||
setParameter(std::string("AclId"), aclId);
|
||||
}
|
||||
|
||||
std::string DeleteAccessControlListRequest::getAccessKeyId() const {
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void DeleteAccessControlListRequest::setAccessKeyId(const std::string &accessKeyId) {
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter(std::string("AccessKeyId"), accessKeyId);
|
||||
}
|
||||
|
||||
std::string DeleteAccessControlListRequest::getSecurityToken() const {
|
||||
return securityToken_;
|
||||
}
|
||||
|
||||
void DeleteAccessControlListRequest::setSecurityToken(const std::string &securityToken) {
|
||||
securityToken_ = securityToken;
|
||||
setParameter(std::string("SecurityToken"), securityToken);
|
||||
}
|
||||
|
||||
44
cloudapi/src/model/DeleteAccessControlListResult.cc
Normal file
44
cloudapi/src/model/DeleteAccessControlListResult.cc
Normal file
@@ -0,0 +1,44 @@
|
||||
/*
|
||||
* 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/DeleteAccessControlListResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::CloudAPI;
|
||||
using namespace AlibabaCloud::CloudAPI::Model;
|
||||
|
||||
DeleteAccessControlListResult::DeleteAccessControlListResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DeleteAccessControlListResult::DeleteAccessControlListResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DeleteAccessControlListResult::~DeleteAccessControlListResult()
|
||||
{}
|
||||
|
||||
void DeleteAccessControlListResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
|
||||
}
|
||||
|
||||
@@ -1,62 +1,54 @@
|
||||
/*
|
||||
* 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")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DeleteAllTrafficSpecialControlRequest::~DeleteAllTrafficSpecialControlRequest()
|
||||
{}
|
||||
|
||||
std::string DeleteAllTrafficSpecialControlRequest::getTrafficControlId()const
|
||||
{
|
||||
return trafficControlId_;
|
||||
*/
|
||||
|
||||
#include <alibabacloud/cloudapi/model/DeleteAllTrafficSpecialControlRequest.h>
|
||||
|
||||
using AlibabaCloud::CloudAPI::Model::DeleteAllTrafficSpecialControlRequest;
|
||||
|
||||
DeleteAllTrafficSpecialControlRequest::DeleteAllTrafficSpecialControlRequest()
|
||||
: RpcServiceRequest("cloudapi", "2016-07-14", "DeleteAllTrafficSpecialControl") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
void DeleteAllTrafficSpecialControlRequest::setTrafficControlId(const std::string& trafficControlId)
|
||||
{
|
||||
trafficControlId_ = trafficControlId;
|
||||
setParameter("TrafficControlId", trafficControlId);
|
||||
DeleteAllTrafficSpecialControlRequest::~DeleteAllTrafficSpecialControlRequest() {}
|
||||
|
||||
std::string DeleteAllTrafficSpecialControlRequest::getTrafficControlId() const {
|
||||
return trafficControlId_;
|
||||
}
|
||||
|
||||
std::string DeleteAllTrafficSpecialControlRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
void DeleteAllTrafficSpecialControlRequest::setTrafficControlId(const std::string &trafficControlId) {
|
||||
trafficControlId_ = trafficControlId;
|
||||
setParameter(std::string("TrafficControlId"), trafficControlId);
|
||||
}
|
||||
|
||||
void DeleteAllTrafficSpecialControlRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter("AccessKeyId", accessKeyId);
|
||||
std::string DeleteAllTrafficSpecialControlRequest::getAccessKeyId() const {
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
std::string DeleteAllTrafficSpecialControlRequest::getSecurityToken()const
|
||||
{
|
||||
return securityToken_;
|
||||
void DeleteAllTrafficSpecialControlRequest::setAccessKeyId(const std::string &accessKeyId) {
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter(std::string("AccessKeyId"), accessKeyId);
|
||||
}
|
||||
|
||||
void DeleteAllTrafficSpecialControlRequest::setSecurityToken(const std::string& securityToken)
|
||||
{
|
||||
securityToken_ = securityToken;
|
||||
setParameter("SecurityToken", securityToken);
|
||||
std::string DeleteAllTrafficSpecialControlRequest::getSecurityToken() const {
|
||||
return securityToken_;
|
||||
}
|
||||
|
||||
void DeleteAllTrafficSpecialControlRequest::setSecurityToken(const std::string &securityToken) {
|
||||
securityToken_ = securityToken;
|
||||
setParameter(std::string("SecurityToken"), securityToken);
|
||||
}
|
||||
|
||||
|
||||
@@ -1,78 +1,68 @@
|
||||
/*
|
||||
* 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")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DeleteApiGroupRequest::~DeleteApiGroupRequest()
|
||||
{}
|
||||
|
||||
std::string DeleteApiGroupRequest::getGroupId()const
|
||||
{
|
||||
return groupId_;
|
||||
*/
|
||||
|
||||
#include <alibabacloud/cloudapi/model/DeleteApiGroupRequest.h>
|
||||
|
||||
using AlibabaCloud::CloudAPI::Model::DeleteApiGroupRequest;
|
||||
|
||||
DeleteApiGroupRequest::DeleteApiGroupRequest()
|
||||
: RpcServiceRequest("cloudapi", "2016-07-14", "DeleteApiGroup") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
void DeleteApiGroupRequest::setGroupId(const std::string& groupId)
|
||||
{
|
||||
groupId_ = groupId;
|
||||
setParameter("GroupId", groupId);
|
||||
DeleteApiGroupRequest::~DeleteApiGroupRequest() {}
|
||||
|
||||
std::string DeleteApiGroupRequest::getGroupId() const {
|
||||
return groupId_;
|
||||
}
|
||||
|
||||
std::string DeleteApiGroupRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
void DeleteApiGroupRequest::setGroupId(const std::string &groupId) {
|
||||
groupId_ = groupId;
|
||||
setParameter(std::string("GroupId"), groupId);
|
||||
}
|
||||
|
||||
void DeleteApiGroupRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter("AccessKeyId", accessKeyId);
|
||||
std::string DeleteApiGroupRequest::getAccessKeyId() const {
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
std::string DeleteApiGroupRequest::getSecurityToken()const
|
||||
{
|
||||
return securityToken_;
|
||||
void DeleteApiGroupRequest::setAccessKeyId(const std::string &accessKeyId) {
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter(std::string("AccessKeyId"), accessKeyId);
|
||||
}
|
||||
|
||||
void DeleteApiGroupRequest::setSecurityToken(const std::string& securityToken)
|
||||
{
|
||||
securityToken_ = securityToken;
|
||||
setParameter("SecurityToken", securityToken);
|
||||
std::string DeleteApiGroupRequest::getSecurityToken() const {
|
||||
return securityToken_;
|
||||
}
|
||||
|
||||
std::vector<DeleteApiGroupRequest::Tag> DeleteApiGroupRequest::getTag()const
|
||||
{
|
||||
return tag_;
|
||||
void DeleteApiGroupRequest::setSecurityToken(const std::string &securityToken) {
|
||||
securityToken_ = securityToken;
|
||||
setParameter(std::string("SecurityToken"), securityToken);
|
||||
}
|
||||
|
||||
void DeleteApiGroupRequest::setTag(const std::vector<Tag>& tag)
|
||||
{
|
||||
tag_ = tag;
|
||||
for(int dep1 = 0; dep1!= tag.size(); dep1++) {
|
||||
auto tagObj = tag.at(dep1);
|
||||
std::string tagObjStr = "Tag." + std::to_string(dep1 + 1);
|
||||
setParameter(tagObjStr + ".Value", tagObj.value);
|
||||
setParameter(tagObjStr + ".Key", tagObj.key);
|
||||
}
|
||||
std::vector<DeleteApiGroupRequest::Tag> DeleteApiGroupRequest::getTag() const {
|
||||
return tag_;
|
||||
}
|
||||
|
||||
void DeleteApiGroupRequest::setTag(const std::vector<DeleteApiGroupRequest::Tag> &tag) {
|
||||
tag_ = tag;
|
||||
for(int dep1 = 0; dep1 != tag.size(); dep1++) {
|
||||
auto tagObj = tag.at(dep1);
|
||||
std::string tagObjStr = std::string("Tag") + "." + std::to_string(dep1 + 1);
|
||||
setParameter(tagObjStr + ".Value", tagObj.value);
|
||||
setParameter(tagObjStr + ".Key", tagObj.key);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -1,73 +1,63 @@
|
||||
/*
|
||||
* 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")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DeleteApiRequest::~DeleteApiRequest()
|
||||
{}
|
||||
|
||||
std::string DeleteApiRequest::getGroupId()const
|
||||
{
|
||||
return groupId_;
|
||||
*/
|
||||
|
||||
#include <alibabacloud/cloudapi/model/DeleteApiRequest.h>
|
||||
|
||||
using AlibabaCloud::CloudAPI::Model::DeleteApiRequest;
|
||||
|
||||
DeleteApiRequest::DeleteApiRequest()
|
||||
: RpcServiceRequest("cloudapi", "2016-07-14", "DeleteApi") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
void DeleteApiRequest::setGroupId(const std::string& groupId)
|
||||
{
|
||||
groupId_ = groupId;
|
||||
setParameter("GroupId", groupId);
|
||||
DeleteApiRequest::~DeleteApiRequest() {}
|
||||
|
||||
std::string DeleteApiRequest::getGroupId() const {
|
||||
return groupId_;
|
||||
}
|
||||
|
||||
std::string DeleteApiRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
void DeleteApiRequest::setGroupId(const std::string &groupId) {
|
||||
groupId_ = groupId;
|
||||
setParameter(std::string("GroupId"), groupId);
|
||||
}
|
||||
|
||||
void DeleteApiRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter("AccessKeyId", accessKeyId);
|
||||
std::string DeleteApiRequest::getAccessKeyId() const {
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
std::string DeleteApiRequest::getSecurityToken()const
|
||||
{
|
||||
return securityToken_;
|
||||
void DeleteApiRequest::setAccessKeyId(const std::string &accessKeyId) {
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter(std::string("AccessKeyId"), accessKeyId);
|
||||
}
|
||||
|
||||
void DeleteApiRequest::setSecurityToken(const std::string& securityToken)
|
||||
{
|
||||
securityToken_ = securityToken;
|
||||
setParameter("SecurityToken", securityToken);
|
||||
std::string DeleteApiRequest::getSecurityToken() const {
|
||||
return securityToken_;
|
||||
}
|
||||
|
||||
std::string DeleteApiRequest::getApiId()const
|
||||
{
|
||||
return apiId_;
|
||||
void DeleteApiRequest::setSecurityToken(const std::string &securityToken) {
|
||||
securityToken_ = securityToken;
|
||||
setParameter(std::string("SecurityToken"), securityToken);
|
||||
}
|
||||
|
||||
void DeleteApiRequest::setApiId(const std::string& apiId)
|
||||
{
|
||||
apiId_ = apiId;
|
||||
setParameter("ApiId", apiId);
|
||||
std::string DeleteApiRequest::getApiId() const {
|
||||
return apiId_;
|
||||
}
|
||||
|
||||
void DeleteApiRequest::setApiId(const std::string &apiId) {
|
||||
apiId_ = apiId;
|
||||
setParameter(std::string("ApiId"), apiId);
|
||||
}
|
||||
|
||||
|
||||
@@ -1,84 +1,72 @@
|
||||
/*
|
||||
* 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")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DeleteApiStageVariableRequest::~DeleteApiStageVariableRequest()
|
||||
{}
|
||||
|
||||
std::string DeleteApiStageVariableRequest::getGroupId()const
|
||||
{
|
||||
return groupId_;
|
||||
*/
|
||||
|
||||
#include <alibabacloud/cloudapi/model/DeleteApiStageVariableRequest.h>
|
||||
|
||||
using AlibabaCloud::CloudAPI::Model::DeleteApiStageVariableRequest;
|
||||
|
||||
DeleteApiStageVariableRequest::DeleteApiStageVariableRequest()
|
||||
: RpcServiceRequest("cloudapi", "2016-07-14", "DeleteApiStageVariable") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
void DeleteApiStageVariableRequest::setGroupId(const std::string& groupId)
|
||||
{
|
||||
groupId_ = groupId;
|
||||
setParameter("GroupId", groupId);
|
||||
DeleteApiStageVariableRequest::~DeleteApiStageVariableRequest() {}
|
||||
|
||||
std::string DeleteApiStageVariableRequest::getGroupId() const {
|
||||
return groupId_;
|
||||
}
|
||||
|
||||
std::string DeleteApiStageVariableRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
void DeleteApiStageVariableRequest::setGroupId(const std::string &groupId) {
|
||||
groupId_ = groupId;
|
||||
setParameter(std::string("GroupId"), groupId);
|
||||
}
|
||||
|
||||
void DeleteApiStageVariableRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter("AccessKeyId", accessKeyId);
|
||||
std::string DeleteApiStageVariableRequest::getAccessKeyId() const {
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
std::string DeleteApiStageVariableRequest::getSecurityToken()const
|
||||
{
|
||||
return securityToken_;
|
||||
void DeleteApiStageVariableRequest::setAccessKeyId(const std::string &accessKeyId) {
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter(std::string("AccessKeyId"), accessKeyId);
|
||||
}
|
||||
|
||||
void DeleteApiStageVariableRequest::setSecurityToken(const std::string& securityToken)
|
||||
{
|
||||
securityToken_ = securityToken;
|
||||
setParameter("SecurityToken", securityToken);
|
||||
std::string DeleteApiStageVariableRequest::getSecurityToken() const {
|
||||
return securityToken_;
|
||||
}
|
||||
|
||||
std::string DeleteApiStageVariableRequest::getVariableName()const
|
||||
{
|
||||
return variableName_;
|
||||
void DeleteApiStageVariableRequest::setSecurityToken(const std::string &securityToken) {
|
||||
securityToken_ = securityToken;
|
||||
setParameter(std::string("SecurityToken"), securityToken);
|
||||
}
|
||||
|
||||
void DeleteApiStageVariableRequest::setVariableName(const std::string& variableName)
|
||||
{
|
||||
variableName_ = variableName;
|
||||
setParameter("VariableName", variableName);
|
||||
std::string DeleteApiStageVariableRequest::getVariableName() const {
|
||||
return variableName_;
|
||||
}
|
||||
|
||||
std::string DeleteApiStageVariableRequest::getStageId()const
|
||||
{
|
||||
return stageId_;
|
||||
void DeleteApiStageVariableRequest::setVariableName(const std::string &variableName) {
|
||||
variableName_ = variableName;
|
||||
setParameter(std::string("VariableName"), variableName);
|
||||
}
|
||||
|
||||
void DeleteApiStageVariableRequest::setStageId(const std::string& stageId)
|
||||
{
|
||||
stageId_ = stageId;
|
||||
setParameter("StageId", stageId);
|
||||
std::string DeleteApiStageVariableRequest::getStageId() const {
|
||||
return stageId_;
|
||||
}
|
||||
|
||||
void DeleteApiStageVariableRequest::setStageId(const std::string &stageId) {
|
||||
stageId_ = stageId;
|
||||
setParameter(std::string("StageId"), stageId);
|
||||
}
|
||||
|
||||
|
||||
@@ -1,78 +1,68 @@
|
||||
/*
|
||||
* 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")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DeleteAppRequest::~DeleteAppRequest()
|
||||
{}
|
||||
|
||||
std::string DeleteAppRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
*/
|
||||
|
||||
#include <alibabacloud/cloudapi/model/DeleteAppRequest.h>
|
||||
|
||||
using AlibabaCloud::CloudAPI::Model::DeleteAppRequest;
|
||||
|
||||
DeleteAppRequest::DeleteAppRequest()
|
||||
: RpcServiceRequest("cloudapi", "2016-07-14", "DeleteApp") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
void DeleteAppRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter("AccessKeyId", accessKeyId);
|
||||
DeleteAppRequest::~DeleteAppRequest() {}
|
||||
|
||||
std::string DeleteAppRequest::getAccessKeyId() const {
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
std::string DeleteAppRequest::getSecurityToken()const
|
||||
{
|
||||
return securityToken_;
|
||||
void DeleteAppRequest::setAccessKeyId(const std::string &accessKeyId) {
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter(std::string("AccessKeyId"), accessKeyId);
|
||||
}
|
||||
|
||||
void DeleteAppRequest::setSecurityToken(const std::string& securityToken)
|
||||
{
|
||||
securityToken_ = securityToken;
|
||||
setParameter("SecurityToken", securityToken);
|
||||
std::string DeleteAppRequest::getSecurityToken() const {
|
||||
return securityToken_;
|
||||
}
|
||||
|
||||
long DeleteAppRequest::getAppId()const
|
||||
{
|
||||
return appId_;
|
||||
void DeleteAppRequest::setSecurityToken(const std::string &securityToken) {
|
||||
securityToken_ = securityToken;
|
||||
setParameter(std::string("SecurityToken"), securityToken);
|
||||
}
|
||||
|
||||
void DeleteAppRequest::setAppId(long appId)
|
||||
{
|
||||
appId_ = appId;
|
||||
setParameter("AppId", std::to_string(appId));
|
||||
long DeleteAppRequest::getAppId() const {
|
||||
return appId_;
|
||||
}
|
||||
|
||||
std::vector<DeleteAppRequest::Tag> DeleteAppRequest::getTag()const
|
||||
{
|
||||
return tag_;
|
||||
void DeleteAppRequest::setAppId(long appId) {
|
||||
appId_ = appId;
|
||||
setParameter(std::string("AppId"), std::to_string(appId));
|
||||
}
|
||||
|
||||
void DeleteAppRequest::setTag(const std::vector<Tag>& tag)
|
||||
{
|
||||
tag_ = tag;
|
||||
for(int dep1 = 0; dep1!= tag.size(); dep1++) {
|
||||
auto tagObj = tag.at(dep1);
|
||||
std::string tagObjStr = "Tag." + std::to_string(dep1 + 1);
|
||||
setParameter(tagObjStr + ".Value", tagObj.value);
|
||||
setParameter(tagObjStr + ".Key", tagObj.key);
|
||||
}
|
||||
std::vector<DeleteAppRequest::Tag> DeleteAppRequest::getTag() const {
|
||||
return tag_;
|
||||
}
|
||||
|
||||
void DeleteAppRequest::setTag(const std::vector<DeleteAppRequest::Tag> &tag) {
|
||||
tag_ = tag;
|
||||
for(int dep1 = 0; dep1 != tag.size(); dep1++) {
|
||||
auto tagObj = tag.at(dep1);
|
||||
std::string tagObjStr = std::string("Tag") + "." + std::to_string(dep1 + 1);
|
||||
setParameter(tagObjStr + ".Value", tagObj.value);
|
||||
setParameter(tagObjStr + ".Key", tagObj.key);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
72
cloudapi/src/model/DeleteBackendModelRequest.cc
Normal file
72
cloudapi/src/model/DeleteBackendModelRequest.cc
Normal file
@@ -0,0 +1,72 @@
|
||||
/*
|
||||
* 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/DeleteBackendModelRequest.h>
|
||||
|
||||
using AlibabaCloud::CloudAPI::Model::DeleteBackendModelRequest;
|
||||
|
||||
DeleteBackendModelRequest::DeleteBackendModelRequest()
|
||||
: RpcServiceRequest("cloudapi", "2016-07-14", "DeleteBackendModel") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DeleteBackendModelRequest::~DeleteBackendModelRequest() {}
|
||||
|
||||
std::string DeleteBackendModelRequest::getStageName() const {
|
||||
return stageName_;
|
||||
}
|
||||
|
||||
void DeleteBackendModelRequest::setStageName(const std::string &stageName) {
|
||||
stageName_ = stageName;
|
||||
setParameter(std::string("StageName"), stageName);
|
||||
}
|
||||
|
||||
std::string DeleteBackendModelRequest::getBackendId() const {
|
||||
return backendId_;
|
||||
}
|
||||
|
||||
void DeleteBackendModelRequest::setBackendId(const std::string &backendId) {
|
||||
backendId_ = backendId;
|
||||
setParameter(std::string("BackendId"), backendId);
|
||||
}
|
||||
|
||||
std::string DeleteBackendModelRequest::getAccessKeyId() const {
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void DeleteBackendModelRequest::setAccessKeyId(const std::string &accessKeyId) {
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter(std::string("AccessKeyId"), accessKeyId);
|
||||
}
|
||||
|
||||
std::string DeleteBackendModelRequest::getSecurityToken() const {
|
||||
return securityToken_;
|
||||
}
|
||||
|
||||
void DeleteBackendModelRequest::setSecurityToken(const std::string &securityToken) {
|
||||
securityToken_ = securityToken;
|
||||
setParameter(std::string("SecurityToken"), securityToken);
|
||||
}
|
||||
|
||||
std::string DeleteBackendModelRequest::getBackendModelId() const {
|
||||
return backendModelId_;
|
||||
}
|
||||
|
||||
void DeleteBackendModelRequest::setBackendModelId(const std::string &backendModelId) {
|
||||
backendModelId_ = backendModelId;
|
||||
setParameter(std::string("BackendModelId"), backendModelId);
|
||||
}
|
||||
|
||||
51
cloudapi/src/model/DeleteBackendModelResult.cc
Normal file
51
cloudapi/src/model/DeleteBackendModelResult.cc
Normal file
@@ -0,0 +1,51 @@
|
||||
/*
|
||||
* 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/DeleteBackendModelResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::CloudAPI;
|
||||
using namespace AlibabaCloud::CloudAPI::Model;
|
||||
|
||||
DeleteBackendModelResult::DeleteBackendModelResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DeleteBackendModelResult::DeleteBackendModelResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DeleteBackendModelResult::~DeleteBackendModelResult()
|
||||
{}
|
||||
|
||||
void DeleteBackendModelResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["OperationId"].isNull())
|
||||
operationId_ = value["OperationId"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string DeleteBackendModelResult::getOperationId()const
|
||||
{
|
||||
return operationId_;
|
||||
}
|
||||
|
||||
54
cloudapi/src/model/DeleteBackendRequest.cc
Normal file
54
cloudapi/src/model/DeleteBackendRequest.cc
Normal file
@@ -0,0 +1,54 @@
|
||||
/*
|
||||
* 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/DeleteBackendRequest.h>
|
||||
|
||||
using AlibabaCloud::CloudAPI::Model::DeleteBackendRequest;
|
||||
|
||||
DeleteBackendRequest::DeleteBackendRequest()
|
||||
: RpcServiceRequest("cloudapi", "2016-07-14", "DeleteBackend") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DeleteBackendRequest::~DeleteBackendRequest() {}
|
||||
|
||||
std::string DeleteBackendRequest::getBackendId() const {
|
||||
return backendId_;
|
||||
}
|
||||
|
||||
void DeleteBackendRequest::setBackendId(const std::string &backendId) {
|
||||
backendId_ = backendId;
|
||||
setParameter(std::string("BackendId"), backendId);
|
||||
}
|
||||
|
||||
std::string DeleteBackendRequest::getAccessKeyId() const {
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void DeleteBackendRequest::setAccessKeyId(const std::string &accessKeyId) {
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter(std::string("AccessKeyId"), accessKeyId);
|
||||
}
|
||||
|
||||
std::string DeleteBackendRequest::getSecurityToken() const {
|
||||
return securityToken_;
|
||||
}
|
||||
|
||||
void DeleteBackendRequest::setSecurityToken(const std::string &securityToken) {
|
||||
securityToken_ = securityToken;
|
||||
setParameter(std::string("SecurityToken"), securityToken);
|
||||
}
|
||||
|
||||
44
cloudapi/src/model/DeleteBackendResult.cc
Normal file
44
cloudapi/src/model/DeleteBackendResult.cc
Normal file
@@ -0,0 +1,44 @@
|
||||
/*
|
||||
* 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/DeleteBackendResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::CloudAPI;
|
||||
using namespace AlibabaCloud::CloudAPI::Model;
|
||||
|
||||
DeleteBackendResult::DeleteBackendResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DeleteBackendResult::DeleteBackendResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DeleteBackendResult::~DeleteBackendResult()
|
||||
{}
|
||||
|
||||
void DeleteBackendResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
|
||||
}
|
||||
|
||||
63
cloudapi/src/model/DeleteDatasetItemRequest.cc
Normal file
63
cloudapi/src/model/DeleteDatasetItemRequest.cc
Normal file
@@ -0,0 +1,63 @@
|
||||
/*
|
||||
* 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/DeleteDatasetItemRequest.h>
|
||||
|
||||
using AlibabaCloud::CloudAPI::Model::DeleteDatasetItemRequest;
|
||||
|
||||
DeleteDatasetItemRequest::DeleteDatasetItemRequest()
|
||||
: RpcServiceRequest("cloudapi", "2016-07-14", "DeleteDatasetItem") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DeleteDatasetItemRequest::~DeleteDatasetItemRequest() {}
|
||||
|
||||
std::string DeleteDatasetItemRequest::getAccessKeyId() const {
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void DeleteDatasetItemRequest::setAccessKeyId(const std::string &accessKeyId) {
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter(std::string("AccessKeyId"), accessKeyId);
|
||||
}
|
||||
|
||||
std::string DeleteDatasetItemRequest::getSecurityToken() const {
|
||||
return securityToken_;
|
||||
}
|
||||
|
||||
void DeleteDatasetItemRequest::setSecurityToken(const std::string &securityToken) {
|
||||
securityToken_ = securityToken;
|
||||
setParameter(std::string("SecurityToken"), securityToken);
|
||||
}
|
||||
|
||||
std::string DeleteDatasetItemRequest::getDatasetId() const {
|
||||
return datasetId_;
|
||||
}
|
||||
|
||||
void DeleteDatasetItemRequest::setDatasetId(const std::string &datasetId) {
|
||||
datasetId_ = datasetId;
|
||||
setParameter(std::string("DatasetId"), datasetId);
|
||||
}
|
||||
|
||||
std::string DeleteDatasetItemRequest::getDatasetItemId() const {
|
||||
return datasetItemId_;
|
||||
}
|
||||
|
||||
void DeleteDatasetItemRequest::setDatasetItemId(const std::string &datasetItemId) {
|
||||
datasetItemId_ = datasetItemId;
|
||||
setParameter(std::string("DatasetItemId"), datasetItemId);
|
||||
}
|
||||
|
||||
44
cloudapi/src/model/DeleteDatasetItemResult.cc
Normal file
44
cloudapi/src/model/DeleteDatasetItemResult.cc
Normal file
@@ -0,0 +1,44 @@
|
||||
/*
|
||||
* 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/DeleteDatasetItemResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::CloudAPI;
|
||||
using namespace AlibabaCloud::CloudAPI::Model;
|
||||
|
||||
DeleteDatasetItemResult::DeleteDatasetItemResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DeleteDatasetItemResult::DeleteDatasetItemResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DeleteDatasetItemResult::~DeleteDatasetItemResult()
|
||||
{}
|
||||
|
||||
void DeleteDatasetItemResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
|
||||
}
|
||||
|
||||
54
cloudapi/src/model/DeleteDatasetRequest.cc
Normal file
54
cloudapi/src/model/DeleteDatasetRequest.cc
Normal file
@@ -0,0 +1,54 @@
|
||||
/*
|
||||
* 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/DeleteDatasetRequest.h>
|
||||
|
||||
using AlibabaCloud::CloudAPI::Model::DeleteDatasetRequest;
|
||||
|
||||
DeleteDatasetRequest::DeleteDatasetRequest()
|
||||
: RpcServiceRequest("cloudapi", "2016-07-14", "DeleteDataset") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DeleteDatasetRequest::~DeleteDatasetRequest() {}
|
||||
|
||||
std::string DeleteDatasetRequest::getAccessKeyId() const {
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void DeleteDatasetRequest::setAccessKeyId(const std::string &accessKeyId) {
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter(std::string("AccessKeyId"), accessKeyId);
|
||||
}
|
||||
|
||||
std::string DeleteDatasetRequest::getSecurityToken() const {
|
||||
return securityToken_;
|
||||
}
|
||||
|
||||
void DeleteDatasetRequest::setSecurityToken(const std::string &securityToken) {
|
||||
securityToken_ = securityToken;
|
||||
setParameter(std::string("SecurityToken"), securityToken);
|
||||
}
|
||||
|
||||
std::string DeleteDatasetRequest::getDatasetId() const {
|
||||
return datasetId_;
|
||||
}
|
||||
|
||||
void DeleteDatasetRequest::setDatasetId(const std::string &datasetId) {
|
||||
datasetId_ = datasetId;
|
||||
setParameter(std::string("DatasetId"), datasetId);
|
||||
}
|
||||
|
||||
44
cloudapi/src/model/DeleteDatasetResult.cc
Normal file
44
cloudapi/src/model/DeleteDatasetResult.cc
Normal file
@@ -0,0 +1,44 @@
|
||||
/*
|
||||
* 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/DeleteDatasetResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::CloudAPI;
|
||||
using namespace AlibabaCloud::CloudAPI::Model;
|
||||
|
||||
DeleteDatasetResult::DeleteDatasetResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DeleteDatasetResult::DeleteDatasetResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DeleteDatasetResult::~DeleteDatasetResult()
|
||||
{}
|
||||
|
||||
void DeleteDatasetResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
|
||||
}
|
||||
|
||||
@@ -1,84 +1,72 @@
|
||||
/*
|
||||
* 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")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DeleteDomainCertificateRequest::~DeleteDomainCertificateRequest()
|
||||
{}
|
||||
|
||||
std::string DeleteDomainCertificateRequest::getGroupId()const
|
||||
{
|
||||
return groupId_;
|
||||
*/
|
||||
|
||||
#include <alibabacloud/cloudapi/model/DeleteDomainCertificateRequest.h>
|
||||
|
||||
using AlibabaCloud::CloudAPI::Model::DeleteDomainCertificateRequest;
|
||||
|
||||
DeleteDomainCertificateRequest::DeleteDomainCertificateRequest()
|
||||
: RpcServiceRequest("cloudapi", "2016-07-14", "DeleteDomainCertificate") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
void DeleteDomainCertificateRequest::setGroupId(const std::string& groupId)
|
||||
{
|
||||
groupId_ = groupId;
|
||||
setParameter("GroupId", groupId);
|
||||
DeleteDomainCertificateRequest::~DeleteDomainCertificateRequest() {}
|
||||
|
||||
std::string DeleteDomainCertificateRequest::getGroupId() const {
|
||||
return groupId_;
|
||||
}
|
||||
|
||||
std::string DeleteDomainCertificateRequest::getCertificateId()const
|
||||
{
|
||||
return certificateId_;
|
||||
void DeleteDomainCertificateRequest::setGroupId(const std::string &groupId) {
|
||||
groupId_ = groupId;
|
||||
setParameter(std::string("GroupId"), groupId);
|
||||
}
|
||||
|
||||
void DeleteDomainCertificateRequest::setCertificateId(const std::string& certificateId)
|
||||
{
|
||||
certificateId_ = certificateId;
|
||||
setParameter("CertificateId", certificateId);
|
||||
std::string DeleteDomainCertificateRequest::getCertificateId() const {
|
||||
return certificateId_;
|
||||
}
|
||||
|
||||
std::string DeleteDomainCertificateRequest::getDomainName()const
|
||||
{
|
||||
return domainName_;
|
||||
void DeleteDomainCertificateRequest::setCertificateId(const std::string &certificateId) {
|
||||
certificateId_ = certificateId;
|
||||
setParameter(std::string("CertificateId"), certificateId);
|
||||
}
|
||||
|
||||
void DeleteDomainCertificateRequest::setDomainName(const std::string& domainName)
|
||||
{
|
||||
domainName_ = domainName;
|
||||
setParameter("DomainName", domainName);
|
||||
std::string DeleteDomainCertificateRequest::getDomainName() const {
|
||||
return domainName_;
|
||||
}
|
||||
|
||||
std::string DeleteDomainCertificateRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
void DeleteDomainCertificateRequest::setDomainName(const std::string &domainName) {
|
||||
domainName_ = domainName;
|
||||
setParameter(std::string("DomainName"), domainName);
|
||||
}
|
||||
|
||||
void DeleteDomainCertificateRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter("AccessKeyId", accessKeyId);
|
||||
std::string DeleteDomainCertificateRequest::getAccessKeyId() const {
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
std::string DeleteDomainCertificateRequest::getSecurityToken()const
|
||||
{
|
||||
return securityToken_;
|
||||
void DeleteDomainCertificateRequest::setAccessKeyId(const std::string &accessKeyId) {
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter(std::string("AccessKeyId"), accessKeyId);
|
||||
}
|
||||
|
||||
void DeleteDomainCertificateRequest::setSecurityToken(const std::string& securityToken)
|
||||
{
|
||||
securityToken_ = securityToken;
|
||||
setParameter("SecurityToken", securityToken);
|
||||
std::string DeleteDomainCertificateRequest::getSecurityToken() const {
|
||||
return securityToken_;
|
||||
}
|
||||
|
||||
void DeleteDomainCertificateRequest::setSecurityToken(const std::string &securityToken) {
|
||||
securityToken_ = securityToken;
|
||||
setParameter(std::string("SecurityToken"), securityToken);
|
||||
}
|
||||
|
||||
|
||||
@@ -1,73 +1,63 @@
|
||||
/*
|
||||
* 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")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DeleteDomainRequest::~DeleteDomainRequest()
|
||||
{}
|
||||
|
||||
std::string DeleteDomainRequest::getGroupId()const
|
||||
{
|
||||
return groupId_;
|
||||
*/
|
||||
|
||||
#include <alibabacloud/cloudapi/model/DeleteDomainRequest.h>
|
||||
|
||||
using AlibabaCloud::CloudAPI::Model::DeleteDomainRequest;
|
||||
|
||||
DeleteDomainRequest::DeleteDomainRequest()
|
||||
: RpcServiceRequest("cloudapi", "2016-07-14", "DeleteDomain") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
void DeleteDomainRequest::setGroupId(const std::string& groupId)
|
||||
{
|
||||
groupId_ = groupId;
|
||||
setParameter("GroupId", groupId);
|
||||
DeleteDomainRequest::~DeleteDomainRequest() {}
|
||||
|
||||
std::string DeleteDomainRequest::getGroupId() const {
|
||||
return groupId_;
|
||||
}
|
||||
|
||||
std::string DeleteDomainRequest::getDomainName()const
|
||||
{
|
||||
return domainName_;
|
||||
void DeleteDomainRequest::setGroupId(const std::string &groupId) {
|
||||
groupId_ = groupId;
|
||||
setParameter(std::string("GroupId"), groupId);
|
||||
}
|
||||
|
||||
void DeleteDomainRequest::setDomainName(const std::string& domainName)
|
||||
{
|
||||
domainName_ = domainName;
|
||||
setParameter("DomainName", domainName);
|
||||
std::string DeleteDomainRequest::getDomainName() const {
|
||||
return domainName_;
|
||||
}
|
||||
|
||||
std::string DeleteDomainRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
void DeleteDomainRequest::setDomainName(const std::string &domainName) {
|
||||
domainName_ = domainName;
|
||||
setParameter(std::string("DomainName"), domainName);
|
||||
}
|
||||
|
||||
void DeleteDomainRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter("AccessKeyId", accessKeyId);
|
||||
std::string DeleteDomainRequest::getAccessKeyId() const {
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
std::string DeleteDomainRequest::getSecurityToken()const
|
||||
{
|
||||
return securityToken_;
|
||||
void DeleteDomainRequest::setAccessKeyId(const std::string &accessKeyId) {
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter(std::string("AccessKeyId"), accessKeyId);
|
||||
}
|
||||
|
||||
void DeleteDomainRequest::setSecurityToken(const std::string& securityToken)
|
||||
{
|
||||
securityToken_ = securityToken;
|
||||
setParameter("SecurityToken", securityToken);
|
||||
std::string DeleteDomainRequest::getSecurityToken() const {
|
||||
return securityToken_;
|
||||
}
|
||||
|
||||
void DeleteDomainRequest::setSecurityToken(const std::string &securityToken) {
|
||||
securityToken_ = securityToken;
|
||||
setParameter(std::string("SecurityToken"), securityToken);
|
||||
}
|
||||
|
||||
|
||||
@@ -1,67 +1,68 @@
|
||||
/*
|
||||
* 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/DeleteInstanceRequest.h>
|
||||
|
||||
using AlibabaCloud::CloudAPI::Model::DeleteInstanceRequest;
|
||||
|
||||
DeleteInstanceRequest::DeleteInstanceRequest() :
|
||||
RpcServiceRequest("cloudapi", "2016-07-14", "DeleteInstance")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DeleteInstanceRequest::~DeleteInstanceRequest()
|
||||
{}
|
||||
|
||||
std::string DeleteInstanceRequest::getToken()const
|
||||
{
|
||||
return token_;
|
||||
*/
|
||||
|
||||
#include <alibabacloud/cloudapi/model/DeleteInstanceRequest.h>
|
||||
|
||||
using AlibabaCloud::CloudAPI::Model::DeleteInstanceRequest;
|
||||
|
||||
DeleteInstanceRequest::DeleteInstanceRequest()
|
||||
: RpcServiceRequest("cloudapi", "2016-07-14", "DeleteInstance") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
void DeleteInstanceRequest::setToken(const std::string& token)
|
||||
{
|
||||
token_ = token;
|
||||
setParameter("Token", token);
|
||||
DeleteInstanceRequest::~DeleteInstanceRequest() {}
|
||||
|
||||
std::string DeleteInstanceRequest::getHardDelete() const {
|
||||
return hardDelete_;
|
||||
}
|
||||
|
||||
std::string DeleteInstanceRequest::getInstanceId()const
|
||||
{
|
||||
return instanceId_;
|
||||
void DeleteInstanceRequest::setHardDelete(const std::string &hardDelete) {
|
||||
hardDelete_ = hardDelete;
|
||||
setParameter(std::string("HardDelete"), hardDelete);
|
||||
}
|
||||
|
||||
void DeleteInstanceRequest::setInstanceId(const std::string& instanceId)
|
||||
{
|
||||
instanceId_ = instanceId;
|
||||
setParameter("InstanceId", instanceId);
|
||||
std::string DeleteInstanceRequest::getInstanceId() const {
|
||||
return instanceId_;
|
||||
}
|
||||
|
||||
std::vector<DeleteInstanceRequest::Tag> DeleteInstanceRequest::getTag()const
|
||||
{
|
||||
return tag_;
|
||||
void DeleteInstanceRequest::setInstanceId(const std::string &instanceId) {
|
||||
instanceId_ = instanceId;
|
||||
setParameter(std::string("InstanceId"), instanceId);
|
||||
}
|
||||
|
||||
void DeleteInstanceRequest::setTag(const std::vector<Tag>& tag)
|
||||
{
|
||||
tag_ = tag;
|
||||
for(int dep1 = 0; dep1!= tag.size(); dep1++) {
|
||||
auto tagObj = tag.at(dep1);
|
||||
std::string tagObjStr = "Tag." + std::to_string(dep1 + 1);
|
||||
setParameter(tagObjStr + ".Value", tagObj.value);
|
||||
setParameter(tagObjStr + ".Key", tagObj.key);
|
||||
}
|
||||
std::string DeleteInstanceRequest::getForceDelete() const {
|
||||
return forceDelete_;
|
||||
}
|
||||
|
||||
void DeleteInstanceRequest::setForceDelete(const std::string &forceDelete) {
|
||||
forceDelete_ = forceDelete;
|
||||
setParameter(std::string("ForceDelete"), forceDelete);
|
||||
}
|
||||
|
||||
std::vector<DeleteInstanceRequest::Tag> DeleteInstanceRequest::getTag() const {
|
||||
return tag_;
|
||||
}
|
||||
|
||||
void DeleteInstanceRequest::setTag(const std::vector<DeleteInstanceRequest::Tag> &tag) {
|
||||
tag_ = tag;
|
||||
for(int dep1 = 0; dep1 != tag.size(); dep1++) {
|
||||
auto tagObj = tag.at(dep1);
|
||||
std::string tagObjStr = std::string("Tag") + "." + std::to_string(dep1 + 1);
|
||||
setParameter(tagObjStr + ".Value", tagObj.value);
|
||||
setParameter(tagObjStr + ".Key", tagObj.key);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -1,62 +1,54 @@
|
||||
/*
|
||||
* 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")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DeleteIpControlRequest::~DeleteIpControlRequest()
|
||||
{}
|
||||
|
||||
std::string DeleteIpControlRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
*/
|
||||
|
||||
#include <alibabacloud/cloudapi/model/DeleteIpControlRequest.h>
|
||||
|
||||
using AlibabaCloud::CloudAPI::Model::DeleteIpControlRequest;
|
||||
|
||||
DeleteIpControlRequest::DeleteIpControlRequest()
|
||||
: RpcServiceRequest("cloudapi", "2016-07-14", "DeleteIpControl") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
void DeleteIpControlRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter("AccessKeyId", accessKeyId);
|
||||
DeleteIpControlRequest::~DeleteIpControlRequest() {}
|
||||
|
||||
std::string DeleteIpControlRequest::getAccessKeyId() const {
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
std::string DeleteIpControlRequest::getIpControlId()const
|
||||
{
|
||||
return ipControlId_;
|
||||
void DeleteIpControlRequest::setAccessKeyId(const std::string &accessKeyId) {
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter(std::string("AccessKeyId"), accessKeyId);
|
||||
}
|
||||
|
||||
void DeleteIpControlRequest::setIpControlId(const std::string& ipControlId)
|
||||
{
|
||||
ipControlId_ = ipControlId;
|
||||
setParameter("IpControlId", ipControlId);
|
||||
std::string DeleteIpControlRequest::getIpControlId() const {
|
||||
return ipControlId_;
|
||||
}
|
||||
|
||||
std::string DeleteIpControlRequest::getSecurityToken()const
|
||||
{
|
||||
return securityToken_;
|
||||
void DeleteIpControlRequest::setIpControlId(const std::string &ipControlId) {
|
||||
ipControlId_ = ipControlId;
|
||||
setParameter(std::string("IpControlId"), ipControlId);
|
||||
}
|
||||
|
||||
void DeleteIpControlRequest::setSecurityToken(const std::string& securityToken)
|
||||
{
|
||||
securityToken_ = securityToken;
|
||||
setParameter("SecurityToken", securityToken);
|
||||
std::string DeleteIpControlRequest::getSecurityToken() const {
|
||||
return securityToken_;
|
||||
}
|
||||
|
||||
void DeleteIpControlRequest::setSecurityToken(const std::string &securityToken) {
|
||||
securityToken_ = securityToken;
|
||||
setParameter(std::string("SecurityToken"), securityToken);
|
||||
}
|
||||
|
||||
|
||||
@@ -1,62 +1,54 @@
|
||||
/*
|
||||
* 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")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DeleteLogConfigRequest::~DeleteLogConfigRequest()
|
||||
{}
|
||||
|
||||
std::string DeleteLogConfigRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
*/
|
||||
|
||||
#include <alibabacloud/cloudapi/model/DeleteLogConfigRequest.h>
|
||||
|
||||
using AlibabaCloud::CloudAPI::Model::DeleteLogConfigRequest;
|
||||
|
||||
DeleteLogConfigRequest::DeleteLogConfigRequest()
|
||||
: RpcServiceRequest("cloudapi", "2016-07-14", "DeleteLogConfig") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
void DeleteLogConfigRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter("AccessKeyId", accessKeyId);
|
||||
DeleteLogConfigRequest::~DeleteLogConfigRequest() {}
|
||||
|
||||
std::string DeleteLogConfigRequest::getAccessKeyId() const {
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
std::string DeleteLogConfigRequest::getLogType()const
|
||||
{
|
||||
return logType_;
|
||||
void DeleteLogConfigRequest::setAccessKeyId(const std::string &accessKeyId) {
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter(std::string("AccessKeyId"), accessKeyId);
|
||||
}
|
||||
|
||||
void DeleteLogConfigRequest::setLogType(const std::string& logType)
|
||||
{
|
||||
logType_ = logType;
|
||||
setParameter("LogType", logType);
|
||||
std::string DeleteLogConfigRequest::getLogType() const {
|
||||
return logType_;
|
||||
}
|
||||
|
||||
std::string DeleteLogConfigRequest::getSecurityToken()const
|
||||
{
|
||||
return securityToken_;
|
||||
void DeleteLogConfigRequest::setLogType(const std::string &logType) {
|
||||
logType_ = logType;
|
||||
setParameter(std::string("LogType"), logType);
|
||||
}
|
||||
|
||||
void DeleteLogConfigRequest::setSecurityToken(const std::string& securityToken)
|
||||
{
|
||||
securityToken_ = securityToken;
|
||||
setParameter("SecurityToken", securityToken);
|
||||
std::string DeleteLogConfigRequest::getSecurityToken() const {
|
||||
return securityToken_;
|
||||
}
|
||||
|
||||
void DeleteLogConfigRequest::setSecurityToken(const std::string &securityToken) {
|
||||
securityToken_ = securityToken;
|
||||
setParameter(std::string("SecurityToken"), securityToken);
|
||||
}
|
||||
|
||||
|
||||
63
cloudapi/src/model/DeleteModelRequest.cc
Normal file
63
cloudapi/src/model/DeleteModelRequest.cc
Normal file
@@ -0,0 +1,63 @@
|
||||
/*
|
||||
* 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/DeleteModelRequest.h>
|
||||
|
||||
using AlibabaCloud::CloudAPI::Model::DeleteModelRequest;
|
||||
|
||||
DeleteModelRequest::DeleteModelRequest()
|
||||
: RpcServiceRequest("cloudapi", "2016-07-14", "DeleteModel") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DeleteModelRequest::~DeleteModelRequest() {}
|
||||
|
||||
std::string DeleteModelRequest::getModelName() const {
|
||||
return modelName_;
|
||||
}
|
||||
|
||||
void DeleteModelRequest::setModelName(const std::string &modelName) {
|
||||
modelName_ = modelName;
|
||||
setParameter(std::string("ModelName"), modelName);
|
||||
}
|
||||
|
||||
std::string DeleteModelRequest::getGroupId() const {
|
||||
return groupId_;
|
||||
}
|
||||
|
||||
void DeleteModelRequest::setGroupId(const std::string &groupId) {
|
||||
groupId_ = groupId;
|
||||
setParameter(std::string("GroupId"), groupId);
|
||||
}
|
||||
|
||||
std::string DeleteModelRequest::getAccessKeyId() const {
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void DeleteModelRequest::setAccessKeyId(const std::string &accessKeyId) {
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter(std::string("AccessKeyId"), accessKeyId);
|
||||
}
|
||||
|
||||
std::string DeleteModelRequest::getSecurityToken() const {
|
||||
return securityToken_;
|
||||
}
|
||||
|
||||
void DeleteModelRequest::setSecurityToken(const std::string &securityToken) {
|
||||
securityToken_ = securityToken;
|
||||
setParameter(std::string("SecurityToken"), securityToken);
|
||||
}
|
||||
|
||||
44
cloudapi/src/model/DeleteModelResult.cc
Normal file
44
cloudapi/src/model/DeleteModelResult.cc
Normal file
@@ -0,0 +1,44 @@
|
||||
/*
|
||||
* 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/DeleteModelResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::CloudAPI;
|
||||
using namespace AlibabaCloud::CloudAPI::Model;
|
||||
|
||||
DeleteModelResult::DeleteModelResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DeleteModelResult::DeleteModelResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DeleteModelResult::~DeleteModelResult()
|
||||
{}
|
||||
|
||||
void DeleteModelResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
|
||||
}
|
||||
|
||||
63
cloudapi/src/model/DeleteMonitorGroupRequest.cc
Normal file
63
cloudapi/src/model/DeleteMonitorGroupRequest.cc
Normal file
@@ -0,0 +1,63 @@
|
||||
/*
|
||||
* 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/DeleteMonitorGroupRequest.h>
|
||||
|
||||
using AlibabaCloud::CloudAPI::Model::DeleteMonitorGroupRequest;
|
||||
|
||||
DeleteMonitorGroupRequest::DeleteMonitorGroupRequest()
|
||||
: RpcServiceRequest("cloudapi", "2016-07-14", "DeleteMonitorGroup") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DeleteMonitorGroupRequest::~DeleteMonitorGroupRequest() {}
|
||||
|
||||
std::string DeleteMonitorGroupRequest::getGroupId() const {
|
||||
return groupId_;
|
||||
}
|
||||
|
||||
void DeleteMonitorGroupRequest::setGroupId(const std::string &groupId) {
|
||||
groupId_ = groupId;
|
||||
setParameter(std::string("GroupId"), groupId);
|
||||
}
|
||||
|
||||
long DeleteMonitorGroupRequest::getRawMonitorGroupId() const {
|
||||
return rawMonitorGroupId_;
|
||||
}
|
||||
|
||||
void DeleteMonitorGroupRequest::setRawMonitorGroupId(long rawMonitorGroupId) {
|
||||
rawMonitorGroupId_ = rawMonitorGroupId;
|
||||
setParameter(std::string("RawMonitorGroupId"), std::to_string(rawMonitorGroupId));
|
||||
}
|
||||
|
||||
std::string DeleteMonitorGroupRequest::getAccessKeyId() const {
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void DeleteMonitorGroupRequest::setAccessKeyId(const std::string &accessKeyId) {
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter(std::string("AccessKeyId"), accessKeyId);
|
||||
}
|
||||
|
||||
std::string DeleteMonitorGroupRequest::getSecurityToken() const {
|
||||
return securityToken_;
|
||||
}
|
||||
|
||||
void DeleteMonitorGroupRequest::setSecurityToken(const std::string &securityToken) {
|
||||
securityToken_ = securityToken;
|
||||
setParameter(std::string("SecurityToken"), securityToken);
|
||||
}
|
||||
|
||||
44
cloudapi/src/model/DeleteMonitorGroupResult.cc
Normal file
44
cloudapi/src/model/DeleteMonitorGroupResult.cc
Normal file
@@ -0,0 +1,44 @@
|
||||
/*
|
||||
* 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/DeleteMonitorGroupResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::CloudAPI;
|
||||
using namespace AlibabaCloud::CloudAPI::Model;
|
||||
|
||||
DeleteMonitorGroupResult::DeleteMonitorGroupResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DeleteMonitorGroupResult::DeleteMonitorGroupResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DeleteMonitorGroupResult::~DeleteMonitorGroupResult()
|
||||
{}
|
||||
|
||||
void DeleteMonitorGroupResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
|
||||
}
|
||||
|
||||
68
cloudapi/src/model/DeletePluginRequest.cc
Normal file
68
cloudapi/src/model/DeletePluginRequest.cc
Normal file
@@ -0,0 +1,68 @@
|
||||
/*
|
||||
* 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/DeletePluginRequest.h>
|
||||
|
||||
using AlibabaCloud::CloudAPI::Model::DeletePluginRequest;
|
||||
|
||||
DeletePluginRequest::DeletePluginRequest()
|
||||
: RpcServiceRequest("cloudapi", "2016-07-14", "DeletePlugin") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DeletePluginRequest::~DeletePluginRequest() {}
|
||||
|
||||
std::string DeletePluginRequest::getPluginId() const {
|
||||
return pluginId_;
|
||||
}
|
||||
|
||||
void DeletePluginRequest::setPluginId(const std::string &pluginId) {
|
||||
pluginId_ = pluginId;
|
||||
setParameter(std::string("PluginId"), pluginId);
|
||||
}
|
||||
|
||||
std::string DeletePluginRequest::getAccessKeyId() const {
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void DeletePluginRequest::setAccessKeyId(const std::string &accessKeyId) {
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter(std::string("AccessKeyId"), accessKeyId);
|
||||
}
|
||||
|
||||
std::string DeletePluginRequest::getSecurityToken() const {
|
||||
return securityToken_;
|
||||
}
|
||||
|
||||
void DeletePluginRequest::setSecurityToken(const std::string &securityToken) {
|
||||
securityToken_ = securityToken;
|
||||
setParameter(std::string("SecurityToken"), securityToken);
|
||||
}
|
||||
|
||||
std::vector<DeletePluginRequest::Tag> DeletePluginRequest::getTag() const {
|
||||
return tag_;
|
||||
}
|
||||
|
||||
void DeletePluginRequest::setTag(const std::vector<DeletePluginRequest::Tag> &tag) {
|
||||
tag_ = tag;
|
||||
for(int dep1 = 0; dep1 != tag.size(); dep1++) {
|
||||
auto tagObj = tag.at(dep1);
|
||||
std::string tagObjStr = std::string("Tag") + "." + std::to_string(dep1 + 1);
|
||||
setParameter(tagObjStr + ".Value", tagObj.value);
|
||||
setParameter(tagObjStr + ".Key", tagObj.key);
|
||||
}
|
||||
}
|
||||
|
||||
44
cloudapi/src/model/DeletePluginResult.cc
Normal file
44
cloudapi/src/model/DeletePluginResult.cc
Normal file
@@ -0,0 +1,44 @@
|
||||
/*
|
||||
* 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/DeletePluginResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::CloudAPI;
|
||||
using namespace AlibabaCloud::CloudAPI::Model;
|
||||
|
||||
DeletePluginResult::DeletePluginResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DeletePluginResult::DeletePluginResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DeletePluginResult::~DeletePluginResult()
|
||||
{}
|
||||
|
||||
void DeletePluginResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
|
||||
}
|
||||
|
||||
@@ -1,62 +1,54 @@
|
||||
/*
|
||||
* 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")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DeleteSignatureRequest::~DeleteSignatureRequest()
|
||||
{}
|
||||
|
||||
std::string DeleteSignatureRequest::getSignatureId()const
|
||||
{
|
||||
return signatureId_;
|
||||
*/
|
||||
|
||||
#include <alibabacloud/cloudapi/model/DeleteSignatureRequest.h>
|
||||
|
||||
using AlibabaCloud::CloudAPI::Model::DeleteSignatureRequest;
|
||||
|
||||
DeleteSignatureRequest::DeleteSignatureRequest()
|
||||
: RpcServiceRequest("cloudapi", "2016-07-14", "DeleteSignature") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
void DeleteSignatureRequest::setSignatureId(const std::string& signatureId)
|
||||
{
|
||||
signatureId_ = signatureId;
|
||||
setParameter("SignatureId", signatureId);
|
||||
DeleteSignatureRequest::~DeleteSignatureRequest() {}
|
||||
|
||||
std::string DeleteSignatureRequest::getSignatureId() const {
|
||||
return signatureId_;
|
||||
}
|
||||
|
||||
std::string DeleteSignatureRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
void DeleteSignatureRequest::setSignatureId(const std::string &signatureId) {
|
||||
signatureId_ = signatureId;
|
||||
setParameter(std::string("SignatureId"), signatureId);
|
||||
}
|
||||
|
||||
void DeleteSignatureRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter("AccessKeyId", accessKeyId);
|
||||
std::string DeleteSignatureRequest::getAccessKeyId() const {
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
std::string DeleteSignatureRequest::getSecurityToken()const
|
||||
{
|
||||
return securityToken_;
|
||||
void DeleteSignatureRequest::setAccessKeyId(const std::string &accessKeyId) {
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter(std::string("AccessKeyId"), accessKeyId);
|
||||
}
|
||||
|
||||
void DeleteSignatureRequest::setSecurityToken(const std::string& securityToken)
|
||||
{
|
||||
securityToken_ = securityToken;
|
||||
setParameter("SecurityToken", securityToken);
|
||||
std::string DeleteSignatureRequest::getSecurityToken() const {
|
||||
return securityToken_;
|
||||
}
|
||||
|
||||
void DeleteSignatureRequest::setSecurityToken(const std::string &securityToken) {
|
||||
securityToken_ = securityToken;
|
||||
setParameter(std::string("SecurityToken"), securityToken);
|
||||
}
|
||||
|
||||
|
||||
@@ -1,62 +1,54 @@
|
||||
/*
|
||||
* 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")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DeleteTrafficControlRequest::~DeleteTrafficControlRequest()
|
||||
{}
|
||||
|
||||
std::string DeleteTrafficControlRequest::getTrafficControlId()const
|
||||
{
|
||||
return trafficControlId_;
|
||||
*/
|
||||
|
||||
#include <alibabacloud/cloudapi/model/DeleteTrafficControlRequest.h>
|
||||
|
||||
using AlibabaCloud::CloudAPI::Model::DeleteTrafficControlRequest;
|
||||
|
||||
DeleteTrafficControlRequest::DeleteTrafficControlRequest()
|
||||
: RpcServiceRequest("cloudapi", "2016-07-14", "DeleteTrafficControl") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
void DeleteTrafficControlRequest::setTrafficControlId(const std::string& trafficControlId)
|
||||
{
|
||||
trafficControlId_ = trafficControlId;
|
||||
setParameter("TrafficControlId", trafficControlId);
|
||||
DeleteTrafficControlRequest::~DeleteTrafficControlRequest() {}
|
||||
|
||||
std::string DeleteTrafficControlRequest::getTrafficControlId() const {
|
||||
return trafficControlId_;
|
||||
}
|
||||
|
||||
std::string DeleteTrafficControlRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
void DeleteTrafficControlRequest::setTrafficControlId(const std::string &trafficControlId) {
|
||||
trafficControlId_ = trafficControlId;
|
||||
setParameter(std::string("TrafficControlId"), trafficControlId);
|
||||
}
|
||||
|
||||
void DeleteTrafficControlRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter("AccessKeyId", accessKeyId);
|
||||
std::string DeleteTrafficControlRequest::getAccessKeyId() const {
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
std::string DeleteTrafficControlRequest::getSecurityToken()const
|
||||
{
|
||||
return securityToken_;
|
||||
void DeleteTrafficControlRequest::setAccessKeyId(const std::string &accessKeyId) {
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter(std::string("AccessKeyId"), accessKeyId);
|
||||
}
|
||||
|
||||
void DeleteTrafficControlRequest::setSecurityToken(const std::string& securityToken)
|
||||
{
|
||||
securityToken_ = securityToken;
|
||||
setParameter("SecurityToken", securityToken);
|
||||
std::string DeleteTrafficControlRequest::getSecurityToken() const {
|
||||
return securityToken_;
|
||||
}
|
||||
|
||||
void DeleteTrafficControlRequest::setSecurityToken(const std::string &securityToken) {
|
||||
securityToken_ = securityToken;
|
||||
setParameter(std::string("SecurityToken"), securityToken);
|
||||
}
|
||||
|
||||
|
||||
@@ -1,84 +1,72 @@
|
||||
/*
|
||||
* 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")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DeleteTrafficSpecialControlRequest::~DeleteTrafficSpecialControlRequest()
|
||||
{}
|
||||
|
||||
std::string DeleteTrafficSpecialControlRequest::getTrafficControlId()const
|
||||
{
|
||||
return trafficControlId_;
|
||||
*/
|
||||
|
||||
#include <alibabacloud/cloudapi/model/DeleteTrafficSpecialControlRequest.h>
|
||||
|
||||
using AlibabaCloud::CloudAPI::Model::DeleteTrafficSpecialControlRequest;
|
||||
|
||||
DeleteTrafficSpecialControlRequest::DeleteTrafficSpecialControlRequest()
|
||||
: RpcServiceRequest("cloudapi", "2016-07-14", "DeleteTrafficSpecialControl") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
void DeleteTrafficSpecialControlRequest::setTrafficControlId(const std::string& trafficControlId)
|
||||
{
|
||||
trafficControlId_ = trafficControlId;
|
||||
setParameter("TrafficControlId", trafficControlId);
|
||||
DeleteTrafficSpecialControlRequest::~DeleteTrafficSpecialControlRequest() {}
|
||||
|
||||
std::string DeleteTrafficSpecialControlRequest::getTrafficControlId() const {
|
||||
return trafficControlId_;
|
||||
}
|
||||
|
||||
std::string DeleteTrafficSpecialControlRequest::getSpecialKey()const
|
||||
{
|
||||
return specialKey_;
|
||||
void DeleteTrafficSpecialControlRequest::setTrafficControlId(const std::string &trafficControlId) {
|
||||
trafficControlId_ = trafficControlId;
|
||||
setParameter(std::string("TrafficControlId"), trafficControlId);
|
||||
}
|
||||
|
||||
void DeleteTrafficSpecialControlRequest::setSpecialKey(const std::string& specialKey)
|
||||
{
|
||||
specialKey_ = specialKey;
|
||||
setParameter("SpecialKey", specialKey);
|
||||
std::string DeleteTrafficSpecialControlRequest::getSpecialKey() const {
|
||||
return specialKey_;
|
||||
}
|
||||
|
||||
std::string DeleteTrafficSpecialControlRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
void DeleteTrafficSpecialControlRequest::setSpecialKey(const std::string &specialKey) {
|
||||
specialKey_ = specialKey;
|
||||
setParameter(std::string("SpecialKey"), specialKey);
|
||||
}
|
||||
|
||||
void DeleteTrafficSpecialControlRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter("AccessKeyId", accessKeyId);
|
||||
std::string DeleteTrafficSpecialControlRequest::getAccessKeyId() const {
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
std::string DeleteTrafficSpecialControlRequest::getSecurityToken()const
|
||||
{
|
||||
return securityToken_;
|
||||
void DeleteTrafficSpecialControlRequest::setAccessKeyId(const std::string &accessKeyId) {
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter(std::string("AccessKeyId"), accessKeyId);
|
||||
}
|
||||
|
||||
void DeleteTrafficSpecialControlRequest::setSecurityToken(const std::string& securityToken)
|
||||
{
|
||||
securityToken_ = securityToken;
|
||||
setParameter("SecurityToken", securityToken);
|
||||
std::string DeleteTrafficSpecialControlRequest::getSecurityToken() const {
|
||||
return securityToken_;
|
||||
}
|
||||
|
||||
std::string DeleteTrafficSpecialControlRequest::getSpecialType()const
|
||||
{
|
||||
return specialType_;
|
||||
void DeleteTrafficSpecialControlRequest::setSecurityToken(const std::string &securityToken) {
|
||||
securityToken_ = securityToken;
|
||||
setParameter(std::string("SecurityToken"), securityToken);
|
||||
}
|
||||
|
||||
void DeleteTrafficSpecialControlRequest::setSpecialType(const std::string& specialType)
|
||||
{
|
||||
specialType_ = specialType;
|
||||
setParameter("SpecialType", specialType);
|
||||
std::string DeleteTrafficSpecialControlRequest::getSpecialType() const {
|
||||
return specialType_;
|
||||
}
|
||||
|
||||
void DeleteTrafficSpecialControlRequest::setSpecialType(const std::string &specialType) {
|
||||
specialType_ = specialType;
|
||||
setParameter(std::string("SpecialType"), specialType);
|
||||
}
|
||||
|
||||
|
||||
@@ -1,106 +1,90 @@
|
||||
/*
|
||||
* 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")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DeployApiRequest::~DeployApiRequest()
|
||||
{}
|
||||
|
||||
std::string DeployApiRequest::getStageName()const
|
||||
{
|
||||
return stageName_;
|
||||
*/
|
||||
|
||||
#include <alibabacloud/cloudapi/model/DeployApiRequest.h>
|
||||
|
||||
using AlibabaCloud::CloudAPI::Model::DeployApiRequest;
|
||||
|
||||
DeployApiRequest::DeployApiRequest()
|
||||
: RpcServiceRequest("cloudapi", "2016-07-14", "DeployApi") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
void DeployApiRequest::setStageName(const std::string& stageName)
|
||||
{
|
||||
stageName_ = stageName;
|
||||
setParameter("StageName", stageName);
|
||||
DeployApiRequest::~DeployApiRequest() {}
|
||||
|
||||
std::string DeployApiRequest::getStageName() const {
|
||||
return stageName_;
|
||||
}
|
||||
|
||||
std::string DeployApiRequest::getGroupId()const
|
||||
{
|
||||
return groupId_;
|
||||
void DeployApiRequest::setStageName(const std::string &stageName) {
|
||||
stageName_ = stageName;
|
||||
setParameter(std::string("StageName"), stageName);
|
||||
}
|
||||
|
||||
void DeployApiRequest::setGroupId(const std::string& groupId)
|
||||
{
|
||||
groupId_ = groupId;
|
||||
setParameter("GroupId", groupId);
|
||||
std::string DeployApiRequest::getGroupId() const {
|
||||
return groupId_;
|
||||
}
|
||||
|
||||
std::string DeployApiRequest::getDescription()const
|
||||
{
|
||||
return description_;
|
||||
void DeployApiRequest::setGroupId(const std::string &groupId) {
|
||||
groupId_ = groupId;
|
||||
setParameter(std::string("GroupId"), groupId);
|
||||
}
|
||||
|
||||
void DeployApiRequest::setDescription(const std::string& description)
|
||||
{
|
||||
description_ = description;
|
||||
setParameter("Description", description);
|
||||
std::string DeployApiRequest::getDescription() const {
|
||||
return description_;
|
||||
}
|
||||
|
||||
std::string DeployApiRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
void DeployApiRequest::setDescription(const std::string &description) {
|
||||
description_ = description;
|
||||
setParameter(std::string("Description"), description);
|
||||
}
|
||||
|
||||
void DeployApiRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter("AccessKeyId", accessKeyId);
|
||||
std::string DeployApiRequest::getAccessKeyId() const {
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
std::string DeployApiRequest::getResourceOwnerToken()const
|
||||
{
|
||||
return resourceOwnerToken_;
|
||||
void DeployApiRequest::setAccessKeyId(const std::string &accessKeyId) {
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter(std::string("AccessKeyId"), accessKeyId);
|
||||
}
|
||||
|
||||
void DeployApiRequest::setResourceOwnerToken(const std::string& resourceOwnerToken)
|
||||
{
|
||||
resourceOwnerToken_ = resourceOwnerToken;
|
||||
setParameter("ResourceOwnerToken", resourceOwnerToken);
|
||||
std::string DeployApiRequest::getResourceOwnerToken() const {
|
||||
return resourceOwnerToken_;
|
||||
}
|
||||
|
||||
std::string DeployApiRequest::getSecurityToken()const
|
||||
{
|
||||
return securityToken_;
|
||||
void DeployApiRequest::setResourceOwnerToken(const std::string &resourceOwnerToken) {
|
||||
resourceOwnerToken_ = resourceOwnerToken;
|
||||
setParameter(std::string("ResourceOwnerToken"), resourceOwnerToken);
|
||||
}
|
||||
|
||||
void DeployApiRequest::setSecurityToken(const std::string& securityToken)
|
||||
{
|
||||
securityToken_ = securityToken;
|
||||
setParameter("SecurityToken", securityToken);
|
||||
std::string DeployApiRequest::getSecurityToken() const {
|
||||
return securityToken_;
|
||||
}
|
||||
|
||||
std::string DeployApiRequest::getApiId()const
|
||||
{
|
||||
return apiId_;
|
||||
void DeployApiRequest::setSecurityToken(const std::string &securityToken) {
|
||||
securityToken_ = securityToken;
|
||||
setParameter(std::string("SecurityToken"), securityToken);
|
||||
}
|
||||
|
||||
void DeployApiRequest::setApiId(const std::string& apiId)
|
||||
{
|
||||
apiId_ = apiId;
|
||||
setParameter("ApiId", apiId);
|
||||
std::string DeployApiRequest::getApiId() const {
|
||||
return apiId_;
|
||||
}
|
||||
|
||||
void DeployApiRequest::setApiId(const std::string &apiId) {
|
||||
apiId_ = apiId;
|
||||
setParameter(std::string("ApiId"), apiId);
|
||||
}
|
||||
|
||||
|
||||
54
cloudapi/src/model/DescribeAbolishApiTaskRequest.cc
Normal file
54
cloudapi/src/model/DescribeAbolishApiTaskRequest.cc
Normal file
@@ -0,0 +1,54 @@
|
||||
/*
|
||||
* 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/DescribeAbolishApiTaskRequest.h>
|
||||
|
||||
using AlibabaCloud::CloudAPI::Model::DescribeAbolishApiTaskRequest;
|
||||
|
||||
DescribeAbolishApiTaskRequest::DescribeAbolishApiTaskRequest()
|
||||
: RpcServiceRequest("cloudapi", "2016-07-14", "DescribeAbolishApiTask") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DescribeAbolishApiTaskRequest::~DescribeAbolishApiTaskRequest() {}
|
||||
|
||||
std::string DescribeAbolishApiTaskRequest::getOperationUid() const {
|
||||
return operationUid_;
|
||||
}
|
||||
|
||||
void DescribeAbolishApiTaskRequest::setOperationUid(const std::string &operationUid) {
|
||||
operationUid_ = operationUid;
|
||||
setParameter(std::string("OperationUid"), operationUid);
|
||||
}
|
||||
|
||||
std::string DescribeAbolishApiTaskRequest::getAccessKeyId() const {
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void DescribeAbolishApiTaskRequest::setAccessKeyId(const std::string &accessKeyId) {
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter(std::string("AccessKeyId"), accessKeyId);
|
||||
}
|
||||
|
||||
std::string DescribeAbolishApiTaskRequest::getSecurityToken() const {
|
||||
return securityToken_;
|
||||
}
|
||||
|
||||
void DescribeAbolishApiTaskRequest::setSecurityToken(const std::string &securityToken) {
|
||||
securityToken_ = securityToken;
|
||||
setParameter(std::string("SecurityToken"), securityToken);
|
||||
}
|
||||
|
||||
71
cloudapi/src/model/DescribeAbolishApiTaskResult.cc
Normal file
71
cloudapi/src/model/DescribeAbolishApiTaskResult.cc
Normal 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/DescribeAbolishApiTaskResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::CloudAPI;
|
||||
using namespace AlibabaCloud::CloudAPI::Model;
|
||||
|
||||
DescribeAbolishApiTaskResult::DescribeAbolishApiTaskResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DescribeAbolishApiTaskResult::DescribeAbolishApiTaskResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DescribeAbolishApiTaskResult::~DescribeAbolishApiTaskResult()
|
||||
{}
|
||||
|
||||
void DescribeAbolishApiTaskResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allApiAbolishResultsNode = value["ApiAbolishResults"]["ApiAbolishResult"];
|
||||
for (auto valueApiAbolishResultsApiAbolishResult : allApiAbolishResultsNode)
|
||||
{
|
||||
ApiAbolishResult apiAbolishResultsObject;
|
||||
if(!valueApiAbolishResultsApiAbolishResult["StageId"].isNull())
|
||||
apiAbolishResultsObject.stageId = valueApiAbolishResultsApiAbolishResult["StageId"].asString();
|
||||
if(!valueApiAbolishResultsApiAbolishResult["AbolishStatus"].isNull())
|
||||
apiAbolishResultsObject.abolishStatus = valueApiAbolishResultsApiAbolishResult["AbolishStatus"].asString();
|
||||
if(!valueApiAbolishResultsApiAbolishResult["GroupId"].isNull())
|
||||
apiAbolishResultsObject.groupId = valueApiAbolishResultsApiAbolishResult["GroupId"].asString();
|
||||
if(!valueApiAbolishResultsApiAbolishResult["GroupName"].isNull())
|
||||
apiAbolishResultsObject.groupName = valueApiAbolishResultsApiAbolishResult["GroupName"].asString();
|
||||
if(!valueApiAbolishResultsApiAbolishResult["ApiUid"].isNull())
|
||||
apiAbolishResultsObject.apiUid = valueApiAbolishResultsApiAbolishResult["ApiUid"].asString();
|
||||
if(!valueApiAbolishResultsApiAbolishResult["ErrorMsg"].isNull())
|
||||
apiAbolishResultsObject.errorMsg = valueApiAbolishResultsApiAbolishResult["ErrorMsg"].asString();
|
||||
if(!valueApiAbolishResultsApiAbolishResult["StageName"].isNull())
|
||||
apiAbolishResultsObject.stageName = valueApiAbolishResultsApiAbolishResult["StageName"].asString();
|
||||
if(!valueApiAbolishResultsApiAbolishResult["ApiName"].isNull())
|
||||
apiAbolishResultsObject.apiName = valueApiAbolishResultsApiAbolishResult["ApiName"].asString();
|
||||
apiAbolishResults_.push_back(apiAbolishResultsObject);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
std::vector<DescribeAbolishApiTaskResult::ApiAbolishResult> DescribeAbolishApiTaskResult::getApiAbolishResults()const
|
||||
{
|
||||
return apiAbolishResults_;
|
||||
}
|
||||
|
||||
@@ -0,0 +1,54 @@
|
||||
/*
|
||||
* 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/DescribeAccessControlListAttributeRequest.h>
|
||||
|
||||
using AlibabaCloud::CloudAPI::Model::DescribeAccessControlListAttributeRequest;
|
||||
|
||||
DescribeAccessControlListAttributeRequest::DescribeAccessControlListAttributeRequest()
|
||||
: RpcServiceRequest("cloudapi", "2016-07-14", "DescribeAccessControlListAttribute") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DescribeAccessControlListAttributeRequest::~DescribeAccessControlListAttributeRequest() {}
|
||||
|
||||
std::string DescribeAccessControlListAttributeRequest::getAclId() const {
|
||||
return aclId_;
|
||||
}
|
||||
|
||||
void DescribeAccessControlListAttributeRequest::setAclId(const std::string &aclId) {
|
||||
aclId_ = aclId;
|
||||
setParameter(std::string("AclId"), aclId);
|
||||
}
|
||||
|
||||
std::string DescribeAccessControlListAttributeRequest::getAccessKeyId() const {
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void DescribeAccessControlListAttributeRequest::setAccessKeyId(const std::string &accessKeyId) {
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter(std::string("AccessKeyId"), accessKeyId);
|
||||
}
|
||||
|
||||
std::string DescribeAccessControlListAttributeRequest::getSecurityToken() const {
|
||||
return securityToken_;
|
||||
}
|
||||
|
||||
void DescribeAccessControlListAttributeRequest::setSecurityToken(const std::string &securityToken) {
|
||||
securityToken_ = securityToken;
|
||||
setParameter(std::string("SecurityToken"), securityToken);
|
||||
}
|
||||
|
||||
@@ -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/DescribeAccessControlListAttributeResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::CloudAPI;
|
||||
using namespace AlibabaCloud::CloudAPI::Model;
|
||||
|
||||
DescribeAccessControlListAttributeResult::DescribeAccessControlListAttributeResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DescribeAccessControlListAttributeResult::DescribeAccessControlListAttributeResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DescribeAccessControlListAttributeResult::~DescribeAccessControlListAttributeResult()
|
||||
{}
|
||||
|
||||
void DescribeAccessControlListAttributeResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allAclEntrysNode = value["AclEntrys"]["AclEntry"];
|
||||
for (auto valueAclEntrysAclEntry : allAclEntrysNode)
|
||||
{
|
||||
AclEntry aclEntrysObject;
|
||||
if(!valueAclEntrysAclEntry["AclEntryIp"].isNull())
|
||||
aclEntrysObject.aclEntryIp = valueAclEntrysAclEntry["AclEntryIp"].asString();
|
||||
if(!valueAclEntrysAclEntry["AclEntryComment"].isNull())
|
||||
aclEntrysObject.aclEntryComment = valueAclEntrysAclEntry["AclEntryComment"].asString();
|
||||
aclEntrys_.push_back(aclEntrysObject);
|
||||
}
|
||||
if(!value["AclId"].isNull())
|
||||
aclId_ = value["AclId"].asString();
|
||||
if(!value["AclName"].isNull())
|
||||
aclName_ = value["AclName"].asString();
|
||||
if(!value["IsUsed"].isNull())
|
||||
isUsed_ = value["IsUsed"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::vector<DescribeAccessControlListAttributeResult::AclEntry> DescribeAccessControlListAttributeResult::getAclEntrys()const
|
||||
{
|
||||
return aclEntrys_;
|
||||
}
|
||||
|
||||
std::string DescribeAccessControlListAttributeResult::getAclId()const
|
||||
{
|
||||
return aclId_;
|
||||
}
|
||||
|
||||
std::string DescribeAccessControlListAttributeResult::getIsUsed()const
|
||||
{
|
||||
return isUsed_;
|
||||
}
|
||||
|
||||
std::string DescribeAccessControlListAttributeResult::getAclName()const
|
||||
{
|
||||
return aclName_;
|
||||
}
|
||||
|
||||
72
cloudapi/src/model/DescribeAccessControlListsRequest.cc
Normal file
72
cloudapi/src/model/DescribeAccessControlListsRequest.cc
Normal file
@@ -0,0 +1,72 @@
|
||||
/*
|
||||
* 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/DescribeAccessControlListsRequest.h>
|
||||
|
||||
using AlibabaCloud::CloudAPI::Model::DescribeAccessControlListsRequest;
|
||||
|
||||
DescribeAccessControlListsRequest::DescribeAccessControlListsRequest()
|
||||
: RpcServiceRequest("cloudapi", "2016-07-14", "DescribeAccessControlLists") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DescribeAccessControlListsRequest::~DescribeAccessControlListsRequest() {}
|
||||
|
||||
std::string DescribeAccessControlListsRequest::getAclName() const {
|
||||
return aclName_;
|
||||
}
|
||||
|
||||
void DescribeAccessControlListsRequest::setAclName(const std::string &aclName) {
|
||||
aclName_ = aclName;
|
||||
setParameter(std::string("AclName"), aclName);
|
||||
}
|
||||
|
||||
int DescribeAccessControlListsRequest::getPageNumber() const {
|
||||
return pageNumber_;
|
||||
}
|
||||
|
||||
void DescribeAccessControlListsRequest::setPageNumber(int pageNumber) {
|
||||
pageNumber_ = pageNumber;
|
||||
setParameter(std::string("PageNumber"), std::to_string(pageNumber));
|
||||
}
|
||||
|
||||
std::string DescribeAccessControlListsRequest::getAccessKeyId() const {
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void DescribeAccessControlListsRequest::setAccessKeyId(const std::string &accessKeyId) {
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter(std::string("AccessKeyId"), accessKeyId);
|
||||
}
|
||||
|
||||
std::string DescribeAccessControlListsRequest::getSecurityToken() const {
|
||||
return securityToken_;
|
||||
}
|
||||
|
||||
void DescribeAccessControlListsRequest::setSecurityToken(const std::string &securityToken) {
|
||||
securityToken_ = securityToken;
|
||||
setParameter(std::string("SecurityToken"), securityToken);
|
||||
}
|
||||
|
||||
int DescribeAccessControlListsRequest::getPageSize() const {
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
void DescribeAccessControlListsRequest::setPageSize(int pageSize) {
|
||||
pageSize_ = pageSize;
|
||||
setParameter(std::string("PageSize"), std::to_string(pageSize));
|
||||
}
|
||||
|
||||
80
cloudapi/src/model/DescribeAccessControlListsResult.cc
Normal file
80
cloudapi/src/model/DescribeAccessControlListsResult.cc
Normal 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/DescribeAccessControlListsResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::CloudAPI;
|
||||
using namespace AlibabaCloud::CloudAPI::Model;
|
||||
|
||||
DescribeAccessControlListsResult::DescribeAccessControlListsResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DescribeAccessControlListsResult::DescribeAccessControlListsResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DescribeAccessControlListsResult::~DescribeAccessControlListsResult()
|
||||
{}
|
||||
|
||||
void DescribeAccessControlListsResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allAclsNode = value["Acls"]["Acl"];
|
||||
for (auto valueAclsAcl : allAclsNode)
|
||||
{
|
||||
Acl aclsObject;
|
||||
if(!valueAclsAcl["AclName"].isNull())
|
||||
aclsObject.aclName = valueAclsAcl["AclName"].asString();
|
||||
if(!valueAclsAcl["AclId"].isNull())
|
||||
aclsObject.aclId = valueAclsAcl["AclId"].asString();
|
||||
acls_.push_back(aclsObject);
|
||||
}
|
||||
if(!value["PageNumber"].isNull())
|
||||
pageNumber_ = std::stoi(value["PageNumber"].asString());
|
||||
if(!value["PageSize"].isNull())
|
||||
pageSize_ = std::stoi(value["PageSize"].asString());
|
||||
if(!value["TotalCount"].isNull())
|
||||
totalCount_ = std::stoi(value["TotalCount"].asString());
|
||||
|
||||
}
|
||||
|
||||
int DescribeAccessControlListsResult::getTotalCount()const
|
||||
{
|
||||
return totalCount_;
|
||||
}
|
||||
|
||||
int DescribeAccessControlListsResult::getPageSize()const
|
||||
{
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
int DescribeAccessControlListsResult::getPageNumber()const
|
||||
{
|
||||
return pageNumber_;
|
||||
}
|
||||
|
||||
std::vector<DescribeAccessControlListsResult::Acl> DescribeAccessControlListsResult::getAcls()const
|
||||
{
|
||||
return acls_;
|
||||
}
|
||||
|
||||
@@ -1,84 +1,72 @@
|
||||
/*
|
||||
* 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")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DescribeApiDocRequest::~DescribeApiDocRequest()
|
||||
{}
|
||||
|
||||
std::string DescribeApiDocRequest::getStageName()const
|
||||
{
|
||||
return stageName_;
|
||||
*/
|
||||
|
||||
#include <alibabacloud/cloudapi/model/DescribeApiDocRequest.h>
|
||||
|
||||
using AlibabaCloud::CloudAPI::Model::DescribeApiDocRequest;
|
||||
|
||||
DescribeApiDocRequest::DescribeApiDocRequest()
|
||||
: RpcServiceRequest("cloudapi", "2016-07-14", "DescribeApiDoc") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
void DescribeApiDocRequest::setStageName(const std::string& stageName)
|
||||
{
|
||||
stageName_ = stageName;
|
||||
setParameter("StageName", stageName);
|
||||
DescribeApiDocRequest::~DescribeApiDocRequest() {}
|
||||
|
||||
std::string DescribeApiDocRequest::getStageName() const {
|
||||
return stageName_;
|
||||
}
|
||||
|
||||
std::string DescribeApiDocRequest::getGroupId()const
|
||||
{
|
||||
return groupId_;
|
||||
void DescribeApiDocRequest::setStageName(const std::string &stageName) {
|
||||
stageName_ = stageName;
|
||||
setParameter(std::string("StageName"), stageName);
|
||||
}
|
||||
|
||||
void DescribeApiDocRequest::setGroupId(const std::string& groupId)
|
||||
{
|
||||
groupId_ = groupId;
|
||||
setParameter("GroupId", groupId);
|
||||
std::string DescribeApiDocRequest::getGroupId() const {
|
||||
return groupId_;
|
||||
}
|
||||
|
||||
std::string DescribeApiDocRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
void DescribeApiDocRequest::setGroupId(const std::string &groupId) {
|
||||
groupId_ = groupId;
|
||||
setParameter(std::string("GroupId"), groupId);
|
||||
}
|
||||
|
||||
void DescribeApiDocRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter("AccessKeyId", accessKeyId);
|
||||
std::string DescribeApiDocRequest::getAccessKeyId() const {
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
std::string DescribeApiDocRequest::getSecurityToken()const
|
||||
{
|
||||
return securityToken_;
|
||||
void DescribeApiDocRequest::setAccessKeyId(const std::string &accessKeyId) {
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter(std::string("AccessKeyId"), accessKeyId);
|
||||
}
|
||||
|
||||
void DescribeApiDocRequest::setSecurityToken(const std::string& securityToken)
|
||||
{
|
||||
securityToken_ = securityToken;
|
||||
setParameter("SecurityToken", securityToken);
|
||||
std::string DescribeApiDocRequest::getSecurityToken() const {
|
||||
return securityToken_;
|
||||
}
|
||||
|
||||
std::string DescribeApiDocRequest::getApiId()const
|
||||
{
|
||||
return apiId_;
|
||||
void DescribeApiDocRequest::setSecurityToken(const std::string &securityToken) {
|
||||
securityToken_ = securityToken;
|
||||
setParameter(std::string("SecurityToken"), securityToken);
|
||||
}
|
||||
|
||||
void DescribeApiDocRequest::setApiId(const std::string& apiId)
|
||||
{
|
||||
apiId_ = apiId;
|
||||
setParameter("ApiId", apiId);
|
||||
std::string DescribeApiDocRequest::getApiId() const {
|
||||
return apiId_;
|
||||
}
|
||||
|
||||
void DescribeApiDocRequest::setApiId(const std::string &apiId) {
|
||||
apiId_ = apiId;
|
||||
setParameter(std::string("ApiId"), apiId);
|
||||
}
|
||||
|
||||
|
||||
@@ -55,107 +55,107 @@ void DescribeApiDocResult::parse(const std::string &payload)
|
||||
for (auto valueResultDescriptionsResultDescription : allResultDescriptionsNode)
|
||||
{
|
||||
ResultDescription resultDescriptionsObject;
|
||||
if(!valueResultDescriptionsResultDescription["Id"].isNull())
|
||||
resultDescriptionsObject.id = valueResultDescriptionsResultDescription["Id"].asString();
|
||||
if(!valueResultDescriptionsResultDescription["Pid"].isNull())
|
||||
resultDescriptionsObject.pid = valueResultDescriptionsResultDescription["Pid"].asString();
|
||||
if(!valueResultDescriptionsResultDescription["HasChild"].isNull())
|
||||
resultDescriptionsObject.hasChild = valueResultDescriptionsResultDescription["HasChild"].asString() == "true";
|
||||
if(!valueResultDescriptionsResultDescription["Key"].isNull())
|
||||
resultDescriptionsObject.key = valueResultDescriptionsResultDescription["Key"].asString();
|
||||
if(!valueResultDescriptionsResultDescription["Name"].isNull())
|
||||
resultDescriptionsObject.name = valueResultDescriptionsResultDescription["Name"].asString();
|
||||
if(!valueResultDescriptionsResultDescription["Mandatory"].isNull())
|
||||
resultDescriptionsObject.mandatory = valueResultDescriptionsResultDescription["Mandatory"].asString() == "true";
|
||||
if(!valueResultDescriptionsResultDescription["Type"].isNull())
|
||||
resultDescriptionsObject.type = valueResultDescriptionsResultDescription["Type"].asString();
|
||||
if(!valueResultDescriptionsResultDescription["Key"].isNull())
|
||||
resultDescriptionsObject.key = valueResultDescriptionsResultDescription["Key"].asString();
|
||||
if(!valueResultDescriptionsResultDescription["HasChild"].isNull())
|
||||
resultDescriptionsObject.hasChild = valueResultDescriptionsResultDescription["HasChild"].asString() == "true";
|
||||
if(!valueResultDescriptionsResultDescription["Description"].isNull())
|
||||
resultDescriptionsObject.description = valueResultDescriptionsResultDescription["Description"].asString();
|
||||
if(!valueResultDescriptionsResultDescription["Pid"].isNull())
|
||||
resultDescriptionsObject.pid = valueResultDescriptionsResultDescription["Pid"].asString();
|
||||
if(!valueResultDescriptionsResultDescription["Mandatory"].isNull())
|
||||
resultDescriptionsObject.mandatory = valueResultDescriptionsResultDescription["Mandatory"].asString() == "true";
|
||||
if(!valueResultDescriptionsResultDescription["Name"].isNull())
|
||||
resultDescriptionsObject.name = valueResultDescriptionsResultDescription["Name"].asString();
|
||||
if(!valueResultDescriptionsResultDescription["Id"].isNull())
|
||||
resultDescriptionsObject.id = valueResultDescriptionsResultDescription["Id"].asString();
|
||||
resultDescriptions_.push_back(resultDescriptionsObject);
|
||||
}
|
||||
auto allRequestParametersNode = value["RequestParameters"]["RequestParameter"];
|
||||
for (auto valueRequestParametersRequestParameter : allRequestParametersNode)
|
||||
{
|
||||
RequestParameter requestParametersObject;
|
||||
if(!valueRequestParametersRequestParameter["ApiParameterName"].isNull())
|
||||
requestParametersObject.apiParameterName = valueRequestParametersRequestParameter["ApiParameterName"].asString();
|
||||
if(!valueRequestParametersRequestParameter["Location"].isNull())
|
||||
requestParametersObject.location = valueRequestParametersRequestParameter["Location"].asString();
|
||||
if(!valueRequestParametersRequestParameter["ParameterType"].isNull())
|
||||
requestParametersObject.parameterType = valueRequestParametersRequestParameter["ParameterType"].asString();
|
||||
if(!valueRequestParametersRequestParameter["Required"].isNull())
|
||||
requestParametersObject.required = valueRequestParametersRequestParameter["Required"].asString();
|
||||
if(!valueRequestParametersRequestParameter["DefaultValue"].isNull())
|
||||
requestParametersObject.defaultValue = valueRequestParametersRequestParameter["DefaultValue"].asString();
|
||||
if(!valueRequestParametersRequestParameter["DemoValue"].isNull())
|
||||
requestParametersObject.demoValue = valueRequestParametersRequestParameter["DemoValue"].asString();
|
||||
if(!valueRequestParametersRequestParameter["MaxValue"].isNull())
|
||||
requestParametersObject.maxValue = std::stol(valueRequestParametersRequestParameter["MaxValue"].asString());
|
||||
if(!valueRequestParametersRequestParameter["MinValue"].isNull())
|
||||
requestParametersObject.minValue = std::stol(valueRequestParametersRequestParameter["MinValue"].asString());
|
||||
if(!valueRequestParametersRequestParameter["MaxLength"].isNull())
|
||||
requestParametersObject.maxLength = std::stol(valueRequestParametersRequestParameter["MaxLength"].asString());
|
||||
if(!valueRequestParametersRequestParameter["MinLength"].isNull())
|
||||
requestParametersObject.minLength = std::stol(valueRequestParametersRequestParameter["MinLength"].asString());
|
||||
if(!valueRequestParametersRequestParameter["RegularExpression"].isNull())
|
||||
requestParametersObject.regularExpression = valueRequestParametersRequestParameter["RegularExpression"].asString();
|
||||
if(!valueRequestParametersRequestParameter["JsonScheme"].isNull())
|
||||
requestParametersObject.jsonScheme = valueRequestParametersRequestParameter["JsonScheme"].asString();
|
||||
if(!valueRequestParametersRequestParameter["EnumValue"].isNull())
|
||||
requestParametersObject.enumValue = valueRequestParametersRequestParameter["EnumValue"].asString();
|
||||
if(!valueRequestParametersRequestParameter["DocShow"].isNull())
|
||||
requestParametersObject.docShow = valueRequestParametersRequestParameter["DocShow"].asString();
|
||||
if(!valueRequestParametersRequestParameter["DocOrder"].isNull())
|
||||
requestParametersObject.docOrder = std::stoi(valueRequestParametersRequestParameter["DocOrder"].asString());
|
||||
if(!valueRequestParametersRequestParameter["Description"].isNull())
|
||||
requestParametersObject.description = valueRequestParametersRequestParameter["Description"].asString();
|
||||
if(!valueRequestParametersRequestParameter["MaxValue"].isNull())
|
||||
requestParametersObject.maxValue = std::stol(valueRequestParametersRequestParameter["MaxValue"].asString());
|
||||
if(!valueRequestParametersRequestParameter["ArrayItemsType"].isNull())
|
||||
requestParametersObject.arrayItemsType = valueRequestParametersRequestParameter["ArrayItemsType"].asString();
|
||||
if(!valueRequestParametersRequestParameter["MinValue"].isNull())
|
||||
requestParametersObject.minValue = std::stol(valueRequestParametersRequestParameter["MinValue"].asString());
|
||||
if(!valueRequestParametersRequestParameter["DocShow"].isNull())
|
||||
requestParametersObject.docShow = valueRequestParametersRequestParameter["DocShow"].asString();
|
||||
if(!valueRequestParametersRequestParameter["MaxLength"].isNull())
|
||||
requestParametersObject.maxLength = std::stol(valueRequestParametersRequestParameter["MaxLength"].asString());
|
||||
if(!valueRequestParametersRequestParameter["DefaultValue"].isNull())
|
||||
requestParametersObject.defaultValue = valueRequestParametersRequestParameter["DefaultValue"].asString();
|
||||
if(!valueRequestParametersRequestParameter["ApiParameterName"].isNull())
|
||||
requestParametersObject.apiParameterName = valueRequestParametersRequestParameter["ApiParameterName"].asString();
|
||||
if(!valueRequestParametersRequestParameter["EnumValue"].isNull())
|
||||
requestParametersObject.enumValue = valueRequestParametersRequestParameter["EnumValue"].asString();
|
||||
if(!valueRequestParametersRequestParameter["DemoValue"].isNull())
|
||||
requestParametersObject.demoValue = valueRequestParametersRequestParameter["DemoValue"].asString();
|
||||
if(!valueRequestParametersRequestParameter["Required"].isNull())
|
||||
requestParametersObject.required = valueRequestParametersRequestParameter["Required"].asString();
|
||||
if(!valueRequestParametersRequestParameter["Description"].isNull())
|
||||
requestParametersObject.description = valueRequestParametersRequestParameter["Description"].asString();
|
||||
if(!valueRequestParametersRequestParameter["ParameterType"].isNull())
|
||||
requestParametersObject.parameterType = valueRequestParametersRequestParameter["ParameterType"].asString();
|
||||
if(!valueRequestParametersRequestParameter["RegularExpression"].isNull())
|
||||
requestParametersObject.regularExpression = valueRequestParametersRequestParameter["RegularExpression"].asString();
|
||||
if(!valueRequestParametersRequestParameter["MinLength"].isNull())
|
||||
requestParametersObject.minLength = std::stol(valueRequestParametersRequestParameter["MinLength"].asString());
|
||||
if(!valueRequestParametersRequestParameter["DocOrder"].isNull())
|
||||
requestParametersObject.docOrder = std::stoi(valueRequestParametersRequestParameter["DocOrder"].asString());
|
||||
if(!valueRequestParametersRequestParameter["Location"].isNull())
|
||||
requestParametersObject.location = valueRequestParametersRequestParameter["Location"].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["RequestHttpMethod"].isNull())
|
||||
requestConfig_.requestHttpMethod = requestConfigNode["RequestHttpMethod"].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["PostBodyDescription"].isNull())
|
||||
requestConfig_.postBodyDescription = requestConfigNode["PostBodyDescription"].asString();
|
||||
if(!requestConfigNode["RequestProtocol"].isNull())
|
||||
requestConfig_.requestProtocol = requestConfigNode["RequestProtocol"].asString();
|
||||
if(!value["ApiId"].isNull())
|
||||
apiId_ = value["ApiId"].asString();
|
||||
if(!value["ResultType"].isNull())
|
||||
resultType_ = value["ResultType"].asString();
|
||||
if(!value["DisableInternet"].isNull())
|
||||
disableInternet_ = value["DisableInternet"].asString() == "true";
|
||||
if(!value["ResultSample"].isNull())
|
||||
resultSample_ = value["ResultSample"].asString();
|
||||
if(!value["RegionId"].isNull())
|
||||
regionId_ = value["RegionId"].asString();
|
||||
if(!value["ForceNonceCheck"].isNull())
|
||||
forceNonceCheck_ = value["ForceNonceCheck"].asString() == "true";
|
||||
if(!value["Visibility"].isNull())
|
||||
visibility_ = value["Visibility"].asString();
|
||||
if(!value["FailResultSample"].isNull())
|
||||
failResultSample_ = value["FailResultSample"].asString();
|
||||
if(!value["AuthType"].isNull())
|
||||
authType_ = value["AuthType"].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";
|
||||
if(!value["StageName"].isNull())
|
||||
stageName_ = value["StageName"].asString();
|
||||
if(!value["ApiName"].isNull())
|
||||
apiName_ = value["ApiName"].asString();
|
||||
|
||||
}
|
||||
|
||||
@@ -169,21 +169,26 @@ DescribeApiDocResult::RequestConfig DescribeApiDocResult::getRequestConfig()cons
|
||||
return requestConfig_;
|
||||
}
|
||||
|
||||
std::string DescribeApiDocResult::getDescription()const
|
||||
{
|
||||
return description_;
|
||||
}
|
||||
|
||||
std::string DescribeApiDocResult::getResultSample()const
|
||||
{
|
||||
return resultSample_;
|
||||
}
|
||||
|
||||
std::string DescribeApiDocResult::getDescription()const
|
||||
{
|
||||
return description_;
|
||||
}
|
||||
|
||||
bool DescribeApiDocResult::getDisableInternet()const
|
||||
{
|
||||
return disableInternet_;
|
||||
}
|
||||
|
||||
bool DescribeApiDocResult::getForceNonceCheck()const
|
||||
{
|
||||
return forceNonceCheck_;
|
||||
}
|
||||
|
||||
std::string DescribeApiDocResult::getStageName()const
|
||||
{
|
||||
return stageName_;
|
||||
@@ -194,11 +199,6 @@ std::string DescribeApiDocResult::getApiName()const
|
||||
return apiName_;
|
||||
}
|
||||
|
||||
bool DescribeApiDocResult::getForceNonceCheck()const
|
||||
{
|
||||
return forceNonceCheck_;
|
||||
}
|
||||
|
||||
std::string DescribeApiDocResult::getResultType()const
|
||||
{
|
||||
return resultType_;
|
||||
|
||||
@@ -1,95 +0,0 @@
|
||||
/*
|
||||
* 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")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DescribeApiErrorDataRequest::~DescribeApiErrorDataRequest()
|
||||
{}
|
||||
|
||||
std::string DescribeApiErrorDataRequest::getGroupId()const
|
||||
{
|
||||
return groupId_;
|
||||
}
|
||||
|
||||
void DescribeApiErrorDataRequest::setGroupId(const std::string& groupId)
|
||||
{
|
||||
groupId_ = groupId;
|
||||
setParameter("GroupId", groupId);
|
||||
}
|
||||
|
||||
std::string DescribeApiErrorDataRequest::getEndTime()const
|
||||
{
|
||||
return endTime_;
|
||||
}
|
||||
|
||||
void DescribeApiErrorDataRequest::setEndTime(const std::string& endTime)
|
||||
{
|
||||
endTime_ = endTime;
|
||||
setParameter("EndTime", endTime);
|
||||
}
|
||||
|
||||
std::string DescribeApiErrorDataRequest::getStartTime()const
|
||||
{
|
||||
return startTime_;
|
||||
}
|
||||
|
||||
void DescribeApiErrorDataRequest::setStartTime(const std::string& startTime)
|
||||
{
|
||||
startTime_ = startTime;
|
||||
setParameter("StartTime", startTime);
|
||||
}
|
||||
|
||||
std::string DescribeApiErrorDataRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void DescribeApiErrorDataRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
std::string DescribeApiErrorDataRequest::getSecurityToken()const
|
||||
{
|
||||
return securityToken_;
|
||||
}
|
||||
|
||||
void DescribeApiErrorDataRequest::setSecurityToken(const std::string& securityToken)
|
||||
{
|
||||
securityToken_ = securityToken;
|
||||
setParameter("SecurityToken", securityToken);
|
||||
}
|
||||
|
||||
std::string DescribeApiErrorDataRequest::getApiId()const
|
||||
{
|
||||
return apiId_;
|
||||
}
|
||||
|
||||
void DescribeApiErrorDataRequest::setApiId(const std::string& apiId)
|
||||
{
|
||||
apiId_ = apiId;
|
||||
setParameter("ApiId", apiId);
|
||||
}
|
||||
|
||||
@@ -1,74 +0,0 @@
|
||||
/*
|
||||
* 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 allClientErrorsNode = value["ClientErrors"]["MonitorItem"];
|
||||
for (auto valueClientErrorsMonitorItem : allClientErrorsNode)
|
||||
{
|
||||
MonitorItem clientErrorsObject;
|
||||
if(!valueClientErrorsMonitorItem["ItemTime"].isNull())
|
||||
clientErrorsObject.itemTime = valueClientErrorsMonitorItem["ItemTime"].asString();
|
||||
if(!valueClientErrorsMonitorItem["ItemValue"].isNull())
|
||||
clientErrorsObject.itemValue = valueClientErrorsMonitorItem["ItemValue"].asString();
|
||||
clientErrors_.push_back(clientErrorsObject);
|
||||
}
|
||||
auto allServerErrorsNode = value["ServerErrors"]["MonitorItem"];
|
||||
for (auto valueServerErrorsMonitorItem : allServerErrorsNode)
|
||||
{
|
||||
MonitorItem serverErrorsObject;
|
||||
if(!valueServerErrorsMonitorItem["ItemTime"].isNull())
|
||||
serverErrorsObject.itemTime = valueServerErrorsMonitorItem["ItemTime"].asString();
|
||||
if(!valueServerErrorsMonitorItem["ItemValue"].isNull())
|
||||
serverErrorsObject.itemValue = valueServerErrorsMonitorItem["ItemValue"].asString();
|
||||
serverErrors_.push_back(serverErrorsObject);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
std::vector<DescribeApiErrorDataResult::MonitorItem> DescribeApiErrorDataResult::getClientErrors()const
|
||||
{
|
||||
return clientErrors_;
|
||||
}
|
||||
|
||||
std::vector<DescribeApiErrorDataResult::MonitorItem> DescribeApiErrorDataResult::getServerErrors()const
|
||||
{
|
||||
return serverErrors_;
|
||||
}
|
||||
|
||||
@@ -1,78 +1,68 @@
|
||||
/*
|
||||
* 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")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DescribeApiGroupRequest::~DescribeApiGroupRequest()
|
||||
{}
|
||||
|
||||
std::string DescribeApiGroupRequest::getGroupId()const
|
||||
{
|
||||
return groupId_;
|
||||
*/
|
||||
|
||||
#include <alibabacloud/cloudapi/model/DescribeApiGroupRequest.h>
|
||||
|
||||
using AlibabaCloud::CloudAPI::Model::DescribeApiGroupRequest;
|
||||
|
||||
DescribeApiGroupRequest::DescribeApiGroupRequest()
|
||||
: RpcServiceRequest("cloudapi", "2016-07-14", "DescribeApiGroup") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
void DescribeApiGroupRequest::setGroupId(const std::string& groupId)
|
||||
{
|
||||
groupId_ = groupId;
|
||||
setParameter("GroupId", groupId);
|
||||
DescribeApiGroupRequest::~DescribeApiGroupRequest() {}
|
||||
|
||||
std::string DescribeApiGroupRequest::getGroupId() const {
|
||||
return groupId_;
|
||||
}
|
||||
|
||||
std::string DescribeApiGroupRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
void DescribeApiGroupRequest::setGroupId(const std::string &groupId) {
|
||||
groupId_ = groupId;
|
||||
setParameter(std::string("GroupId"), groupId);
|
||||
}
|
||||
|
||||
void DescribeApiGroupRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter("AccessKeyId", accessKeyId);
|
||||
std::string DescribeApiGroupRequest::getAccessKeyId() const {
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
std::string DescribeApiGroupRequest::getSecurityToken()const
|
||||
{
|
||||
return securityToken_;
|
||||
void DescribeApiGroupRequest::setAccessKeyId(const std::string &accessKeyId) {
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter(std::string("AccessKeyId"), accessKeyId);
|
||||
}
|
||||
|
||||
void DescribeApiGroupRequest::setSecurityToken(const std::string& securityToken)
|
||||
{
|
||||
securityToken_ = securityToken;
|
||||
setParameter("SecurityToken", securityToken);
|
||||
std::string DescribeApiGroupRequest::getSecurityToken() const {
|
||||
return securityToken_;
|
||||
}
|
||||
|
||||
std::vector<DescribeApiGroupRequest::Tag> DescribeApiGroupRequest::getTag()const
|
||||
{
|
||||
return tag_;
|
||||
void DescribeApiGroupRequest::setSecurityToken(const std::string &securityToken) {
|
||||
securityToken_ = securityToken;
|
||||
setParameter(std::string("SecurityToken"), securityToken);
|
||||
}
|
||||
|
||||
void DescribeApiGroupRequest::setTag(const std::vector<Tag>& tag)
|
||||
{
|
||||
tag_ = tag;
|
||||
for(int dep1 = 0; dep1!= tag.size(); dep1++) {
|
||||
auto tagObj = tag.at(dep1);
|
||||
std::string tagObjStr = "Tag." + std::to_string(dep1 + 1);
|
||||
setParameter(tagObjStr + ".Value", tagObj.value);
|
||||
setParameter(tagObjStr + ".Key", tagObj.key);
|
||||
}
|
||||
std::vector<DescribeApiGroupRequest::Tag> DescribeApiGroupRequest::getTag() const {
|
||||
return tag_;
|
||||
}
|
||||
|
||||
void DescribeApiGroupRequest::setTag(const std::vector<DescribeApiGroupRequest::Tag> &tag) {
|
||||
tag_ = tag;
|
||||
for(int dep1 = 0; dep1 != tag.size(); dep1++) {
|
||||
auto tagObj = tag.at(dep1);
|
||||
std::string tagObjStr = std::string("Tag") + "." + std::to_string(dep1 + 1);
|
||||
setParameter(tagObjStr + ".Value", tagObj.value);
|
||||
setParameter(tagObjStr + ".Key", tagObj.key);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -43,24 +43,32 @@ void DescribeApiGroupResult::parse(const std::string &payload)
|
||||
for (auto valueCustomDomainsDomainItem : allCustomDomainsNode)
|
||||
{
|
||||
DomainItem customDomainsObject;
|
||||
if(!valueCustomDomainsDomainItem["DomainName"].isNull())
|
||||
customDomainsObject.domainName = valueCustomDomainsDomainItem["DomainName"].asString();
|
||||
if(!valueCustomDomainsDomainItem["CertificateId"].isNull())
|
||||
customDomainsObject.certificateId = valueCustomDomainsDomainItem["CertificateId"].asString();
|
||||
if(!valueCustomDomainsDomainItem["CertificateName"].isNull())
|
||||
customDomainsObject.certificateName = valueCustomDomainsDomainItem["CertificateName"].asString();
|
||||
if(!valueCustomDomainsDomainItem["DomainCNAMEStatus"].isNull())
|
||||
customDomainsObject.domainCNAMEStatus = valueCustomDomainsDomainItem["DomainCNAMEStatus"].asString();
|
||||
if(!valueCustomDomainsDomainItem["DomainBindingStatus"].isNull())
|
||||
customDomainsObject.domainBindingStatus = valueCustomDomainsDomainItem["DomainBindingStatus"].asString();
|
||||
if(!valueCustomDomainsDomainItem["BindStageName"].isNull())
|
||||
customDomainsObject.bindStageName = valueCustomDomainsDomainItem["BindStageName"].asString();
|
||||
if(!valueCustomDomainsDomainItem["DomainLegalStatus"].isNull())
|
||||
customDomainsObject.domainLegalStatus = valueCustomDomainsDomainItem["DomainLegalStatus"].asString();
|
||||
if(!valueCustomDomainsDomainItem["DomainWebSocketStatus"].isNull())
|
||||
customDomainsObject.domainWebSocketStatus = valueCustomDomainsDomainItem["DomainWebSocketStatus"].asString();
|
||||
if(!valueCustomDomainsDomainItem["CertificateName"].isNull())
|
||||
customDomainsObject.certificateName = valueCustomDomainsDomainItem["CertificateName"].asString();
|
||||
if(!valueCustomDomainsDomainItem["CustomDomainType"].isNull())
|
||||
customDomainsObject.customDomainType = valueCustomDomainsDomainItem["CustomDomainType"].asString();
|
||||
if(!valueCustomDomainsDomainItem["DomainCNAMEStatus"].isNull())
|
||||
customDomainsObject.domainCNAMEStatus = valueCustomDomainsDomainItem["DomainCNAMEStatus"].asString();
|
||||
if(!valueCustomDomainsDomainItem["WildcardDomainPatterns"].isNull())
|
||||
customDomainsObject.wildcardDomainPatterns = valueCustomDomainsDomainItem["WildcardDomainPatterns"].asString();
|
||||
if(!valueCustomDomainsDomainItem["DomainBindingStatus"].isNull())
|
||||
customDomainsObject.domainBindingStatus = valueCustomDomainsDomainItem["DomainBindingStatus"].asString();
|
||||
if(!valueCustomDomainsDomainItem["DomainName"].isNull())
|
||||
customDomainsObject.domainName = valueCustomDomainsDomainItem["DomainName"].asString();
|
||||
if(!valueCustomDomainsDomainItem["DomainRemark"].isNull())
|
||||
customDomainsObject.domainRemark = valueCustomDomainsDomainItem["DomainRemark"].asString();
|
||||
if(!valueCustomDomainsDomainItem["DomainWebSocketStatus"].isNull())
|
||||
customDomainsObject.domainWebSocketStatus = valueCustomDomainsDomainItem["DomainWebSocketStatus"].asString();
|
||||
if(!valueCustomDomainsDomainItem["CertificateId"].isNull())
|
||||
customDomainsObject.certificateId = valueCustomDomainsDomainItem["CertificateId"].asString();
|
||||
if(!valueCustomDomainsDomainItem["IsHttpRedirectToHttps"].isNull())
|
||||
customDomainsObject.isHttpRedirectToHttps = valueCustomDomainsDomainItem["IsHttpRedirectToHttps"].asString() == "true";
|
||||
if(!valueCustomDomainsDomainItem["WssEnable"].isNull())
|
||||
customDomainsObject.wssEnable = valueCustomDomainsDomainItem["WssEnable"].asString();
|
||||
customDomains_.push_back(customDomainsObject);
|
||||
}
|
||||
auto allStageItemsNode = value["StageItems"]["StageInfo"];
|
||||
@@ -75,44 +83,64 @@ void DescribeApiGroupResult::parse(const std::string &payload)
|
||||
stageItemsObject.description = valueStageItemsStageInfo["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["CompatibleFlags"].isNull())
|
||||
compatibleFlags_ = value["CompatibleFlags"].asString();
|
||||
if(!value["BasePath"].isNull())
|
||||
basePath_ = value["BasePath"].asString();
|
||||
if(!value["Ipv6Status"].isNull())
|
||||
ipv6Status_ = value["Ipv6Status"].asString();
|
||||
if(!value["UserLogConfig"].isNull())
|
||||
userLogConfig_ = value["UserLogConfig"].asString();
|
||||
if(!value["CustomerConfigs"].isNull())
|
||||
customerConfigs_ = value["CustomerConfigs"].asString();
|
||||
if(!value["Description"].isNull())
|
||||
description_ = value["Description"].asString();
|
||||
if(!value["HttpsPolicy"].isNull())
|
||||
httpsPolicy_ = value["HttpsPolicy"].asString();
|
||||
if(!value["SubDomain"].isNull())
|
||||
subDomain_ = value["SubDomain"].asString();
|
||||
if(!value["CreatedTime"].isNull())
|
||||
createdTime_ = value["CreatedTime"].asString();
|
||||
if(!value["RpcPattern"].isNull())
|
||||
rpcPattern_ = value["RpcPattern"].asString();
|
||||
if(!value["DefaultDomain"].isNull())
|
||||
defaultDomain_ = value["DefaultDomain"].asString();
|
||||
if(!value["CmsMonitorGroup"].isNull())
|
||||
cmsMonitorGroup_ = value["CmsMonitorGroup"].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["PassthroughHeaders"].isNull())
|
||||
passthroughHeaders_ = value["PassthroughHeaders"].asString();
|
||||
if(!value["InstanceId"].isNull())
|
||||
instanceId_ = value["InstanceId"].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();
|
||||
if(!value["UserLogConfig"].isNull())
|
||||
userLogConfig_ = value["UserLogConfig"].asString();
|
||||
if(!value["CustomTraceConfig"].isNull())
|
||||
customTraceConfig_ = value["CustomTraceConfig"].asString();
|
||||
if(!value["RpcPattern"].isNull())
|
||||
rpcPattern_ = value["RpcPattern"].asString();
|
||||
if(!value["CompatibleFlags"].isNull())
|
||||
compatibleFlags_ = value["CompatibleFlags"].asString();
|
||||
if(!value["RegionId"].isNull())
|
||||
regionId_ = value["RegionId"].asString();
|
||||
if(!value["ModifiedTime"].isNull())
|
||||
modifiedTime_ = value["ModifiedTime"].asString();
|
||||
if(!value["GroupId"].isNull())
|
||||
groupId_ = value["GroupId"].asString();
|
||||
if(!value["GroupName"].isNull())
|
||||
groupName_ = value["GroupName"].asString();
|
||||
if(!value["ClassicVpcSubDomain"].isNull())
|
||||
classicVpcSubDomain_ = value["ClassicVpcSubDomain"].asString();
|
||||
if(!value["IllegalStatus"].isNull())
|
||||
illegalStatus_ = value["IllegalStatus"].asString();
|
||||
if(!value["InstanceVipList"].isNull())
|
||||
instanceVipList_ = value["InstanceVipList"].asString();
|
||||
if(!value["VpcSlbIntranetDomain"].isNull())
|
||||
vpcSlbIntranetDomain_ = value["VpcSlbIntranetDomain"].asString();
|
||||
if(!value["CloudMarketCommodity"].isNull())
|
||||
cloudMarketCommodity_ = value["CloudMarketCommodity"].asString() == "true";
|
||||
|
||||
}
|
||||
|
||||
@@ -121,34 +149,19 @@ 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
|
||||
std::string DescribeApiGroupResult::getCreatedTime()const
|
||||
{
|
||||
return instanceId_;
|
||||
}
|
||||
|
||||
std::string DescribeApiGroupResult::getCompatibleFlags()const
|
||||
{
|
||||
return compatibleFlags_;
|
||||
return createdTime_;
|
||||
}
|
||||
|
||||
std::string DescribeApiGroupResult::getCustomTraceConfig()const
|
||||
@@ -156,24 +169,24 @@ std::string DescribeApiGroupResult::getCustomTraceConfig()const
|
||||
return customTraceConfig_;
|
||||
}
|
||||
|
||||
std::string DescribeApiGroupResult::getBasePath()const
|
||||
{
|
||||
return basePath_;
|
||||
}
|
||||
|
||||
std::string DescribeApiGroupResult::getUserLogConfig()const
|
||||
{
|
||||
return userLogConfig_;
|
||||
}
|
||||
|
||||
std::string DescribeApiGroupResult::getBillingStatus()const
|
||||
std::string DescribeApiGroupResult::getDefaultDomain()const
|
||||
{
|
||||
return billingStatus_;
|
||||
return defaultDomain_;
|
||||
}
|
||||
|
||||
int DescribeApiGroupResult::getTrafficLimit()const
|
||||
std::string DescribeApiGroupResult::getPassthroughHeaders()const
|
||||
{
|
||||
return trafficLimit_;
|
||||
}
|
||||
|
||||
std::string DescribeApiGroupResult::getGroupId()const
|
||||
{
|
||||
return groupId_;
|
||||
return passthroughHeaders_;
|
||||
}
|
||||
|
||||
std::string DescribeApiGroupResult::getVpcDomain()const
|
||||
@@ -186,6 +199,11 @@ std::string DescribeApiGroupResult::getSubDomain()const
|
||||
return subDomain_;
|
||||
}
|
||||
|
||||
std::string DescribeApiGroupResult::getCustomerConfigs()const
|
||||
{
|
||||
return customerConfigs_;
|
||||
}
|
||||
|
||||
std::vector<DescribeApiGroupResult::DomainItem> DescribeApiGroupResult::getCustomDomains()const
|
||||
{
|
||||
return customDomains_;
|
||||
@@ -211,13 +229,73 @@ std::string DescribeApiGroupResult::getIllegalStatus()const
|
||||
return illegalStatus_;
|
||||
}
|
||||
|
||||
std::string DescribeApiGroupResult::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
std::string DescribeApiGroupResult::getInstanceType()const
|
||||
{
|
||||
return instanceType_;
|
||||
}
|
||||
|
||||
std::string DescribeApiGroupResult::getStatus()const
|
||||
{
|
||||
return status_;
|
||||
}
|
||||
|
||||
std::string DescribeApiGroupResult::getInstanceId()const
|
||||
{
|
||||
return instanceId_;
|
||||
}
|
||||
|
||||
std::string DescribeApiGroupResult::getCompatibleFlags()const
|
||||
{
|
||||
return compatibleFlags_;
|
||||
}
|
||||
|
||||
bool DescribeApiGroupResult::getCloudMarketCommodity()const
|
||||
{
|
||||
return cloudMarketCommodity_;
|
||||
}
|
||||
|
||||
std::string DescribeApiGroupResult::getInstanceVipList()const
|
||||
{
|
||||
return instanceVipList_;
|
||||
}
|
||||
|
||||
std::string DescribeApiGroupResult::getVpcSlbIntranetDomain()const
|
||||
{
|
||||
return vpcSlbIntranetDomain_;
|
||||
}
|
||||
|
||||
std::string DescribeApiGroupResult::getBillingStatus()const
|
||||
{
|
||||
return billingStatus_;
|
||||
}
|
||||
|
||||
int DescribeApiGroupResult::getTrafficLimit()const
|
||||
{
|
||||
return trafficLimit_;
|
||||
}
|
||||
|
||||
std::string DescribeApiGroupResult::getGroupId()const
|
||||
{
|
||||
return groupId_;
|
||||
}
|
||||
|
||||
std::string DescribeApiGroupResult::getIpv6Status()const
|
||||
{
|
||||
return ipv6Status_;
|
||||
}
|
||||
|
||||
std::string DescribeApiGroupResult::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
std::string DescribeApiGroupResult::getCmsMonitorGroup()const
|
||||
{
|
||||
return cmsMonitorGroup_;
|
||||
}
|
||||
|
||||
std::string DescribeApiGroupResult::getClassicVpcSubDomain()const
|
||||
{
|
||||
return classicVpcSubDomain_;
|
||||
}
|
||||
|
||||
|
||||
@@ -1,62 +1,54 @@
|
||||
/*
|
||||
* 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/DescribeApiGroupVpcWhitelistRequest.h>
|
||||
|
||||
using AlibabaCloud::CloudAPI::Model::DescribeApiGroupVpcWhitelistRequest;
|
||||
|
||||
DescribeApiGroupVpcWhitelistRequest::DescribeApiGroupVpcWhitelistRequest() :
|
||||
RpcServiceRequest("cloudapi", "2016-07-14", "DescribeApiGroupVpcWhitelist")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DescribeApiGroupVpcWhitelistRequest::~DescribeApiGroupVpcWhitelistRequest()
|
||||
{}
|
||||
|
||||
std::string DescribeApiGroupVpcWhitelistRequest::getGroupId()const
|
||||
{
|
||||
return groupId_;
|
||||
*/
|
||||
|
||||
#include <alibabacloud/cloudapi/model/DescribeApiGroupVpcWhitelistRequest.h>
|
||||
|
||||
using AlibabaCloud::CloudAPI::Model::DescribeApiGroupVpcWhitelistRequest;
|
||||
|
||||
DescribeApiGroupVpcWhitelistRequest::DescribeApiGroupVpcWhitelistRequest()
|
||||
: RpcServiceRequest("cloudapi", "2016-07-14", "DescribeApiGroupVpcWhitelist") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
void DescribeApiGroupVpcWhitelistRequest::setGroupId(const std::string& groupId)
|
||||
{
|
||||
groupId_ = groupId;
|
||||
setParameter("GroupId", groupId);
|
||||
DescribeApiGroupVpcWhitelistRequest::~DescribeApiGroupVpcWhitelistRequest() {}
|
||||
|
||||
std::string DescribeApiGroupVpcWhitelistRequest::getGroupId() const {
|
||||
return groupId_;
|
||||
}
|
||||
|
||||
std::string DescribeApiGroupVpcWhitelistRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
void DescribeApiGroupVpcWhitelistRequest::setGroupId(const std::string &groupId) {
|
||||
groupId_ = groupId;
|
||||
setParameter(std::string("GroupId"), groupId);
|
||||
}
|
||||
|
||||
void DescribeApiGroupVpcWhitelistRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter("AccessKeyId", accessKeyId);
|
||||
std::string DescribeApiGroupVpcWhitelistRequest::getAccessKeyId() const {
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
std::string DescribeApiGroupVpcWhitelistRequest::getSecurityToken()const
|
||||
{
|
||||
return securityToken_;
|
||||
void DescribeApiGroupVpcWhitelistRequest::setAccessKeyId(const std::string &accessKeyId) {
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter(std::string("AccessKeyId"), accessKeyId);
|
||||
}
|
||||
|
||||
void DescribeApiGroupVpcWhitelistRequest::setSecurityToken(const std::string& securityToken)
|
||||
{
|
||||
securityToken_ = securityToken;
|
||||
setParameter("SecurityToken", securityToken);
|
||||
std::string DescribeApiGroupVpcWhitelistRequest::getSecurityToken() const {
|
||||
return securityToken_;
|
||||
}
|
||||
|
||||
void DescribeApiGroupVpcWhitelistRequest::setSecurityToken(const std::string &securityToken) {
|
||||
securityToken_ = securityToken;
|
||||
setParameter(std::string("SecurityToken"), securityToken);
|
||||
}
|
||||
|
||||
|
||||
@@ -1,133 +1,140 @@
|
||||
/*
|
||||
* 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")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DescribeApiGroupsRequest::~DescribeApiGroupsRequest()
|
||||
{}
|
||||
|
||||
std::string DescribeApiGroupsRequest::getGroupId()const
|
||||
{
|
||||
return groupId_;
|
||||
*/
|
||||
|
||||
#include <alibabacloud/cloudapi/model/DescribeApiGroupsRequest.h>
|
||||
|
||||
using AlibabaCloud::CloudAPI::Model::DescribeApiGroupsRequest;
|
||||
|
||||
DescribeApiGroupsRequest::DescribeApiGroupsRequest()
|
||||
: RpcServiceRequest("cloudapi", "2016-07-14", "DescribeApiGroups") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
void DescribeApiGroupsRequest::setGroupId(const std::string& groupId)
|
||||
{
|
||||
groupId_ = groupId;
|
||||
setParameter("GroupId", groupId);
|
||||
DescribeApiGroupsRequest::~DescribeApiGroupsRequest() {}
|
||||
|
||||
std::string DescribeApiGroupsRequest::getGroupId() const {
|
||||
return groupId_;
|
||||
}
|
||||
|
||||
bool DescribeApiGroupsRequest::getEnableTagAuth()const
|
||||
{
|
||||
return enableTagAuth_;
|
||||
void DescribeApiGroupsRequest::setGroupId(const std::string &groupId) {
|
||||
groupId_ = groupId;
|
||||
setParameter(std::string("GroupId"), groupId);
|
||||
}
|
||||
|
||||
void DescribeApiGroupsRequest::setEnableTagAuth(bool enableTagAuth)
|
||||
{
|
||||
enableTagAuth_ = enableTagAuth;
|
||||
setParameter("EnableTagAuth", enableTagAuth ? "true" : "false");
|
||||
std::string DescribeApiGroupsRequest::getSort() const {
|
||||
return sort_;
|
||||
}
|
||||
|
||||
std::string DescribeApiGroupsRequest::getGroupName()const
|
||||
{
|
||||
return groupName_;
|
||||
void DescribeApiGroupsRequest::setSort(const std::string &sort) {
|
||||
sort_ = sort;
|
||||
setParameter(std::string("Sort"), sort);
|
||||
}
|
||||
|
||||
void DescribeApiGroupsRequest::setGroupName(const std::string& groupName)
|
||||
{
|
||||
groupName_ = groupName;
|
||||
setParameter("GroupName", groupName);
|
||||
bool DescribeApiGroupsRequest::getEnableTagAuth() const {
|
||||
return enableTagAuth_;
|
||||
}
|
||||
|
||||
int DescribeApiGroupsRequest::getPageNumber()const
|
||||
{
|
||||
return pageNumber_;
|
||||
void DescribeApiGroupsRequest::setEnableTagAuth(bool enableTagAuth) {
|
||||
enableTagAuth_ = enableTagAuth;
|
||||
setParameter(std::string("EnableTagAuth"), enableTagAuth ? "true" : "false");
|
||||
}
|
||||
|
||||
void DescribeApiGroupsRequest::setPageNumber(int pageNumber)
|
||||
{
|
||||
pageNumber_ = pageNumber;
|
||||
setParameter("PageNumber", std::to_string(pageNumber));
|
||||
std::string DescribeApiGroupsRequest::getGroupName() const {
|
||||
return groupName_;
|
||||
}
|
||||
|
||||
std::string DescribeApiGroupsRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
void DescribeApiGroupsRequest::setGroupName(const std::string &groupName) {
|
||||
groupName_ = groupName;
|
||||
setParameter(std::string("GroupName"), groupName);
|
||||
}
|
||||
|
||||
void DescribeApiGroupsRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter("AccessKeyId", accessKeyId);
|
||||
int DescribeApiGroupsRequest::getPageNumber() const {
|
||||
return pageNumber_;
|
||||
}
|
||||
|
||||
std::string DescribeApiGroupsRequest::getInstanceId()const
|
||||
{
|
||||
return instanceId_;
|
||||
void DescribeApiGroupsRequest::setPageNumber(int pageNumber) {
|
||||
pageNumber_ = pageNumber;
|
||||
setParameter(std::string("PageNumber"), std::to_string(pageNumber));
|
||||
}
|
||||
|
||||
void DescribeApiGroupsRequest::setInstanceId(const std::string& instanceId)
|
||||
{
|
||||
instanceId_ = instanceId;
|
||||
setParameter("InstanceId", instanceId);
|
||||
std::string DescribeApiGroupsRequest::getAccessKeyId() const {
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
std::string DescribeApiGroupsRequest::getSecurityToken()const
|
||||
{
|
||||
return securityToken_;
|
||||
void DescribeApiGroupsRequest::setAccessKeyId(const std::string &accessKeyId) {
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter(std::string("AccessKeyId"), accessKeyId);
|
||||
}
|
||||
|
||||
void DescribeApiGroupsRequest::setSecurityToken(const std::string& securityToken)
|
||||
{
|
||||
securityToken_ = securityToken;
|
||||
setParameter("SecurityToken", securityToken);
|
||||
bool DescribeApiGroupsRequest::getDisableAuthForConsole() const {
|
||||
return disableAuthForConsole_;
|
||||
}
|
||||
|
||||
int DescribeApiGroupsRequest::getPageSize()const
|
||||
{
|
||||
return pageSize_;
|
||||
void DescribeApiGroupsRequest::setDisableAuthForConsole(bool disableAuthForConsole) {
|
||||
disableAuthForConsole_ = disableAuthForConsole;
|
||||
setParameter(std::string("DisableAuthForConsole"), disableAuthForConsole ? "true" : "false");
|
||||
}
|
||||
|
||||
void DescribeApiGroupsRequest::setPageSize(int pageSize)
|
||||
{
|
||||
pageSize_ = pageSize;
|
||||
setParameter("PageSize", std::to_string(pageSize));
|
||||
std::string DescribeApiGroupsRequest::getInstanceId() const {
|
||||
return instanceId_;
|
||||
}
|
||||
|
||||
std::vector<DescribeApiGroupsRequest::Tag> DescribeApiGroupsRequest::getTag()const
|
||||
{
|
||||
return tag_;
|
||||
void DescribeApiGroupsRequest::setInstanceId(const std::string &instanceId) {
|
||||
instanceId_ = instanceId;
|
||||
setParameter(std::string("InstanceId"), instanceId);
|
||||
}
|
||||
|
||||
void DescribeApiGroupsRequest::setTag(const std::vector<Tag>& tag)
|
||||
{
|
||||
tag_ = tag;
|
||||
for(int dep1 = 0; dep1!= tag.size(); dep1++) {
|
||||
auto tagObj = tag.at(dep1);
|
||||
std::string tagObjStr = "Tag." + std::to_string(dep1 + 1);
|
||||
setParameter(tagObjStr + ".Value", tagObj.value);
|
||||
setParameter(tagObjStr + ".Key", tagObj.key);
|
||||
}
|
||||
std::string DescribeApiGroupsRequest::getSecurityToken() const {
|
||||
return securityToken_;
|
||||
}
|
||||
|
||||
void DescribeApiGroupsRequest::setSecurityToken(const std::string &securityToken) {
|
||||
securityToken_ = securityToken;
|
||||
setParameter(std::string("SecurityToken"), securityToken);
|
||||
}
|
||||
|
||||
int DescribeApiGroupsRequest::getPageSize() const {
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
void DescribeApiGroupsRequest::setPageSize(int pageSize) {
|
||||
pageSize_ = pageSize;
|
||||
setParameter(std::string("PageSize"), std::to_string(pageSize));
|
||||
}
|
||||
|
||||
bool DescribeApiGroupsRequest::getNotClassic() const {
|
||||
return notClassic_;
|
||||
}
|
||||
|
||||
void DescribeApiGroupsRequest::setNotClassic(bool notClassic) {
|
||||
notClassic_ = notClassic;
|
||||
setParameter(std::string("NotClassic"), notClassic ? "true" : "false");
|
||||
}
|
||||
|
||||
std::vector<DescribeApiGroupsRequest::Tag> DescribeApiGroupsRequest::getTag() const {
|
||||
return tag_;
|
||||
}
|
||||
|
||||
void DescribeApiGroupsRequest::setTag(const std::vector<DescribeApiGroupsRequest::Tag> &tag) {
|
||||
tag_ = tag;
|
||||
for(int dep1 = 0; dep1 != tag.size(); dep1++) {
|
||||
auto tagObj = tag.at(dep1);
|
||||
std::string tagObjStr = std::string("Tag") + "." + std::to_string(dep1 + 1);
|
||||
setParameter(tagObjStr + ".Value", tagObj.value);
|
||||
setParameter(tagObjStr + ".Key", tagObj.key);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -43,40 +43,52 @@ void DescribeApiGroupsResult::parse(const std::string &payload)
|
||||
for (auto valueApiGroupAttributesApiGroupAttribute : allApiGroupAttributesNode)
|
||||
{
|
||||
ApiGroupAttribute apiGroupAttributesObject;
|
||||
if(!valueApiGroupAttributesApiGroupAttribute["GroupId"].isNull())
|
||||
apiGroupAttributesObject.groupId = valueApiGroupAttributesApiGroupAttribute["GroupId"].asString();
|
||||
if(!valueApiGroupAttributesApiGroupAttribute["GroupName"].isNull())
|
||||
apiGroupAttributesObject.groupName = valueApiGroupAttributesApiGroupAttribute["GroupName"].asString();
|
||||
if(!valueApiGroupAttributesApiGroupAttribute["SubDomain"].isNull())
|
||||
apiGroupAttributesObject.subDomain = valueApiGroupAttributesApiGroupAttribute["SubDomain"].asString();
|
||||
if(!valueApiGroupAttributesApiGroupAttribute["Description"].isNull())
|
||||
apiGroupAttributesObject.description = valueApiGroupAttributesApiGroupAttribute["Description"].asString();
|
||||
if(!valueApiGroupAttributesApiGroupAttribute["CreatedTime"].isNull())
|
||||
apiGroupAttributesObject.createdTime = valueApiGroupAttributesApiGroupAttribute["CreatedTime"].asString();
|
||||
if(!valueApiGroupAttributesApiGroupAttribute["ModifiedTime"].isNull())
|
||||
apiGroupAttributesObject.modifiedTime = valueApiGroupAttributesApiGroupAttribute["ModifiedTime"].asString();
|
||||
if(!valueApiGroupAttributesApiGroupAttribute["RegionId"].isNull())
|
||||
apiGroupAttributesObject.regionId = valueApiGroupAttributesApiGroupAttribute["RegionId"].asString();
|
||||
if(!valueApiGroupAttributesApiGroupAttribute["TrafficLimit"].isNull())
|
||||
apiGroupAttributesObject.trafficLimit = std::stoi(valueApiGroupAttributesApiGroupAttribute["TrafficLimit"].asString());
|
||||
if(!valueApiGroupAttributesApiGroupAttribute["BasePath"].isNull())
|
||||
apiGroupAttributesObject.basePath = valueApiGroupAttributesApiGroupAttribute["BasePath"].asString();
|
||||
if(!valueApiGroupAttributesApiGroupAttribute["BillingStatus"].isNull())
|
||||
apiGroupAttributesObject.billingStatus = valueApiGroupAttributesApiGroupAttribute["BillingStatus"].asString();
|
||||
if(!valueApiGroupAttributesApiGroupAttribute["IllegalStatus"].isNull())
|
||||
apiGroupAttributesObject.illegalStatus = valueApiGroupAttributesApiGroupAttribute["IllegalStatus"].asString();
|
||||
if(!valueApiGroupAttributesApiGroupAttribute["TrafficLimit"].isNull())
|
||||
apiGroupAttributesObject.trafficLimit = std::stoi(valueApiGroupAttributesApiGroupAttribute["TrafficLimit"].asString());
|
||||
if(!valueApiGroupAttributesApiGroupAttribute["InstanceId"].isNull())
|
||||
apiGroupAttributesObject.instanceId = valueApiGroupAttributesApiGroupAttribute["InstanceId"].asString();
|
||||
if(!valueApiGroupAttributesApiGroupAttribute["InstanceType"].isNull())
|
||||
apiGroupAttributesObject.instanceType = valueApiGroupAttributesApiGroupAttribute["InstanceType"].asString();
|
||||
if(!valueApiGroupAttributesApiGroupAttribute["RegionId"].isNull())
|
||||
apiGroupAttributesObject.regionId = valueApiGroupAttributesApiGroupAttribute["RegionId"].asString();
|
||||
if(!valueApiGroupAttributesApiGroupAttribute["ModifiedTime"].isNull())
|
||||
apiGroupAttributesObject.modifiedTime = valueApiGroupAttributesApiGroupAttribute["ModifiedTime"].asString();
|
||||
if(!valueApiGroupAttributesApiGroupAttribute["GroupId"].isNull())
|
||||
apiGroupAttributesObject.groupId = valueApiGroupAttributesApiGroupAttribute["GroupId"].asString();
|
||||
if(!valueApiGroupAttributesApiGroupAttribute["GroupName"].isNull())
|
||||
apiGroupAttributesObject.groupName = valueApiGroupAttributesApiGroupAttribute["GroupName"].asString();
|
||||
if(!valueApiGroupAttributesApiGroupAttribute["Description"].isNull())
|
||||
apiGroupAttributesObject.description = valueApiGroupAttributesApiGroupAttribute["Description"].asString();
|
||||
if(!valueApiGroupAttributesApiGroupAttribute["IllegalStatus"].isNull())
|
||||
apiGroupAttributesObject.illegalStatus = valueApiGroupAttributesApiGroupAttribute["IllegalStatus"].asString();
|
||||
if(!valueApiGroupAttributesApiGroupAttribute["HttpsPolicy"].isNull())
|
||||
apiGroupAttributesObject.httpsPolicy = valueApiGroupAttributesApiGroupAttribute["HttpsPolicy"].asString();
|
||||
if(!valueApiGroupAttributesApiGroupAttribute["SubDomain"].isNull())
|
||||
apiGroupAttributesObject.subDomain = valueApiGroupAttributesApiGroupAttribute["SubDomain"].asString();
|
||||
if(!valueApiGroupAttributesApiGroupAttribute["CreatedTime"].isNull())
|
||||
apiGroupAttributesObject.createdTime = valueApiGroupAttributesApiGroupAttribute["CreatedTime"].asString();
|
||||
auto allTagsNode = valueApiGroupAttributesApiGroupAttribute["Tags"]["TagInfo"];
|
||||
for (auto valueApiGroupAttributesApiGroupAttributeTagsTagInfo : allTagsNode)
|
||||
{
|
||||
ApiGroupAttribute::TagInfo tagsObject;
|
||||
if(!valueApiGroupAttributesApiGroupAttributeTagsTagInfo["Key"].isNull())
|
||||
tagsObject.key = valueApiGroupAttributesApiGroupAttributeTagsTagInfo["Key"].asString();
|
||||
if(!valueApiGroupAttributesApiGroupAttributeTagsTagInfo["Value"].isNull())
|
||||
tagsObject.value = valueApiGroupAttributesApiGroupAttributeTagsTagInfo["Value"].asString();
|
||||
apiGroupAttributesObject.tags.push_back(tagsObject);
|
||||
}
|
||||
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());
|
||||
if(!value["PageSize"].isNull())
|
||||
pageSize_ = std::stoi(value["PageSize"].asString());
|
||||
if(!value["TotalCount"].isNull())
|
||||
totalCount_ = std::stoi(value["TotalCount"].asString());
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -1,117 +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/DescribeApiHistoriesRequest.h>
|
||||
|
||||
using AlibabaCloud::CloudAPI::Model::DescribeApiHistoriesRequest;
|
||||
|
||||
DescribeApiHistoriesRequest::DescribeApiHistoriesRequest() :
|
||||
RpcServiceRequest("cloudapi", "2016-07-14", "DescribeApiHistories")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DescribeApiHistoriesRequest::~DescribeApiHistoriesRequest()
|
||||
{}
|
||||
|
||||
std::string DescribeApiHistoriesRequest::getStageName()const
|
||||
{
|
||||
return stageName_;
|
||||
*/
|
||||
|
||||
#include <alibabacloud/cloudapi/model/DescribeApiHistoriesRequest.h>
|
||||
|
||||
using AlibabaCloud::CloudAPI::Model::DescribeApiHistoriesRequest;
|
||||
|
||||
DescribeApiHistoriesRequest::DescribeApiHistoriesRequest()
|
||||
: RpcServiceRequest("cloudapi", "2016-07-14", "DescribeApiHistories") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
void DescribeApiHistoriesRequest::setStageName(const std::string& stageName)
|
||||
{
|
||||
stageName_ = stageName;
|
||||
setParameter("StageName", stageName);
|
||||
DescribeApiHistoriesRequest::~DescribeApiHistoriesRequest() {}
|
||||
|
||||
std::string DescribeApiHistoriesRequest::getStageName() const {
|
||||
return stageName_;
|
||||
}
|
||||
|
||||
std::string DescribeApiHistoriesRequest::getGroupId()const
|
||||
{
|
||||
return groupId_;
|
||||
void DescribeApiHistoriesRequest::setStageName(const std::string &stageName) {
|
||||
stageName_ = stageName;
|
||||
setParameter(std::string("StageName"), stageName);
|
||||
}
|
||||
|
||||
void DescribeApiHistoriesRequest::setGroupId(const std::string& groupId)
|
||||
{
|
||||
groupId_ = groupId;
|
||||
setParameter("GroupId", groupId);
|
||||
std::string DescribeApiHistoriesRequest::getGroupId() const {
|
||||
return groupId_;
|
||||
}
|
||||
|
||||
std::string DescribeApiHistoriesRequest::getPageNumber()const
|
||||
{
|
||||
return pageNumber_;
|
||||
void DescribeApiHistoriesRequest::setGroupId(const std::string &groupId) {
|
||||
groupId_ = groupId;
|
||||
setParameter(std::string("GroupId"), groupId);
|
||||
}
|
||||
|
||||
void DescribeApiHistoriesRequest::setPageNumber(const std::string& pageNumber)
|
||||
{
|
||||
pageNumber_ = pageNumber;
|
||||
setParameter("PageNumber", pageNumber);
|
||||
int DescribeApiHistoriesRequest::getPageNumber() const {
|
||||
return pageNumber_;
|
||||
}
|
||||
|
||||
std::string DescribeApiHistoriesRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
void DescribeApiHistoriesRequest::setPageNumber(int pageNumber) {
|
||||
pageNumber_ = pageNumber;
|
||||
setParameter(std::string("PageNumber"), std::to_string(pageNumber));
|
||||
}
|
||||
|
||||
void DescribeApiHistoriesRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter("AccessKeyId", accessKeyId);
|
||||
std::string DescribeApiHistoriesRequest::getAccessKeyId() const {
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
std::string DescribeApiHistoriesRequest::getApiName()const
|
||||
{
|
||||
return apiName_;
|
||||
void DescribeApiHistoriesRequest::setAccessKeyId(const std::string &accessKeyId) {
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter(std::string("AccessKeyId"), accessKeyId);
|
||||
}
|
||||
|
||||
void DescribeApiHistoriesRequest::setApiName(const std::string& apiName)
|
||||
{
|
||||
apiName_ = apiName;
|
||||
setParameter("ApiName", apiName);
|
||||
std::string DescribeApiHistoriesRequest::getApiName() const {
|
||||
return apiName_;
|
||||
}
|
||||
|
||||
std::string DescribeApiHistoriesRequest::getSecurityToken()const
|
||||
{
|
||||
return securityToken_;
|
||||
void DescribeApiHistoriesRequest::setApiName(const std::string &apiName) {
|
||||
apiName_ = apiName;
|
||||
setParameter(std::string("ApiName"), apiName);
|
||||
}
|
||||
|
||||
void DescribeApiHistoriesRequest::setSecurityToken(const std::string& securityToken)
|
||||
{
|
||||
securityToken_ = securityToken;
|
||||
setParameter("SecurityToken", securityToken);
|
||||
std::string DescribeApiHistoriesRequest::getSecurityToken() const {
|
||||
return securityToken_;
|
||||
}
|
||||
|
||||
std::string DescribeApiHistoriesRequest::getPageSize()const
|
||||
{
|
||||
return pageSize_;
|
||||
void DescribeApiHistoriesRequest::setSecurityToken(const std::string &securityToken) {
|
||||
securityToken_ = securityToken;
|
||||
setParameter(std::string("SecurityToken"), securityToken);
|
||||
}
|
||||
|
||||
void DescribeApiHistoriesRequest::setPageSize(const std::string& pageSize)
|
||||
{
|
||||
pageSize_ = pageSize;
|
||||
setParameter("PageSize", pageSize);
|
||||
int DescribeApiHistoriesRequest::getPageSize() const {
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
std::string DescribeApiHistoriesRequest::getApiId()const
|
||||
{
|
||||
return apiId_;
|
||||
void DescribeApiHistoriesRequest::setPageSize(int pageSize) {
|
||||
pageSize_ = pageSize;
|
||||
setParameter(std::string("PageSize"), std::to_string(pageSize));
|
||||
}
|
||||
|
||||
void DescribeApiHistoriesRequest::setApiId(const std::string& apiId)
|
||||
{
|
||||
apiId_ = apiId;
|
||||
setParameter("ApiId", apiId);
|
||||
std::string DescribeApiHistoriesRequest::getApiId() const {
|
||||
return apiId_;
|
||||
}
|
||||
|
||||
void DescribeApiHistoriesRequest::setApiId(const std::string &apiId) {
|
||||
apiId_ = apiId;
|
||||
setParameter(std::string("ApiId"), apiId);
|
||||
}
|
||||
|
||||
|
||||
@@ -43,34 +43,34 @@ void DescribeApiHistoriesResult::parse(const std::string &payload)
|
||||
for (auto valueApiHisItemsApiHisItem : allApiHisItemsNode)
|
||||
{
|
||||
ApiHisItem apiHisItemsObject;
|
||||
if(!valueApiHisItemsApiHisItem["RegionId"].isNull())
|
||||
apiHisItemsObject.regionId = valueApiHisItemsApiHisItem["RegionId"].asString();
|
||||
if(!valueApiHisItemsApiHisItem["Status"].isNull())
|
||||
apiHisItemsObject.status = valueApiHisItemsApiHisItem["Status"].asString();
|
||||
if(!valueApiHisItemsApiHisItem["ApiId"].isNull())
|
||||
apiHisItemsObject.apiId = valueApiHisItemsApiHisItem["ApiId"].asString();
|
||||
if(!valueApiHisItemsApiHisItem["ApiName"].isNull())
|
||||
apiHisItemsObject.apiName = valueApiHisItemsApiHisItem["ApiName"].asString();
|
||||
if(!valueApiHisItemsApiHisItem["GroupId"].isNull())
|
||||
apiHisItemsObject.groupId = valueApiHisItemsApiHisItem["GroupId"].asString();
|
||||
if(!valueApiHisItemsApiHisItem["Description"].isNull())
|
||||
apiHisItemsObject.description = valueApiHisItemsApiHisItem["Description"].asString();
|
||||
if(!valueApiHisItemsApiHisItem["GroupName"].isNull())
|
||||
apiHisItemsObject.groupName = valueApiHisItemsApiHisItem["GroupName"].asString();
|
||||
if(!valueApiHisItemsApiHisItem["GroupId"].isNull())
|
||||
apiHisItemsObject.groupId = valueApiHisItemsApiHisItem["GroupId"].asString();
|
||||
if(!valueApiHisItemsApiHisItem["DeployedTime"].isNull())
|
||||
apiHisItemsObject.deployedTime = valueApiHisItemsApiHisItem["DeployedTime"].asString();
|
||||
if(!valueApiHisItemsApiHisItem["StageName"].isNull())
|
||||
apiHisItemsObject.stageName = valueApiHisItemsApiHisItem["StageName"].asString();
|
||||
if(!valueApiHisItemsApiHisItem["HistoryVersion"].isNull())
|
||||
apiHisItemsObject.historyVersion = valueApiHisItemsApiHisItem["HistoryVersion"].asString();
|
||||
if(!valueApiHisItemsApiHisItem["Status"].isNull())
|
||||
apiHisItemsObject.status = valueApiHisItemsApiHisItem["Status"].asString();
|
||||
if(!valueApiHisItemsApiHisItem["Description"].isNull())
|
||||
apiHisItemsObject.description = valueApiHisItemsApiHisItem["Description"].asString();
|
||||
if(!valueApiHisItemsApiHisItem["DeployedTime"].isNull())
|
||||
apiHisItemsObject.deployedTime = valueApiHisItemsApiHisItem["DeployedTime"].asString();
|
||||
if(!valueApiHisItemsApiHisItem["ApiName"].isNull())
|
||||
apiHisItemsObject.apiName = valueApiHisItemsApiHisItem["ApiName"].asString();
|
||||
if(!valueApiHisItemsApiHisItem["RegionId"].isNull())
|
||||
apiHisItemsObject.regionId = valueApiHisItemsApiHisItem["RegionId"].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());
|
||||
if(!value["PageSize"].isNull())
|
||||
pageSize_ = std::stoi(value["PageSize"].asString());
|
||||
if(!value["TotalCount"].isNull())
|
||||
totalCount_ = std::stoi(value["TotalCount"].asString());
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -1,106 +1,90 @@
|
||||
/*
|
||||
* 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")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DescribeApiHistoryRequest::~DescribeApiHistoryRequest()
|
||||
{}
|
||||
|
||||
std::string DescribeApiHistoryRequest::getStageName()const
|
||||
{
|
||||
return stageName_;
|
||||
*/
|
||||
|
||||
#include <alibabacloud/cloudapi/model/DescribeApiHistoryRequest.h>
|
||||
|
||||
using AlibabaCloud::CloudAPI::Model::DescribeApiHistoryRequest;
|
||||
|
||||
DescribeApiHistoryRequest::DescribeApiHistoryRequest()
|
||||
: RpcServiceRequest("cloudapi", "2016-07-14", "DescribeApiHistory") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
void DescribeApiHistoryRequest::setStageName(const std::string& stageName)
|
||||
{
|
||||
stageName_ = stageName;
|
||||
setParameter("StageName", stageName);
|
||||
DescribeApiHistoryRequest::~DescribeApiHistoryRequest() {}
|
||||
|
||||
std::string DescribeApiHistoryRequest::getStageName() const {
|
||||
return stageName_;
|
||||
}
|
||||
|
||||
std::string DescribeApiHistoryRequest::getGroupId()const
|
||||
{
|
||||
return groupId_;
|
||||
void DescribeApiHistoryRequest::setStageName(const std::string &stageName) {
|
||||
stageName_ = stageName;
|
||||
setParameter(std::string("StageName"), stageName);
|
||||
}
|
||||
|
||||
void DescribeApiHistoryRequest::setGroupId(const std::string& groupId)
|
||||
{
|
||||
groupId_ = groupId;
|
||||
setParameter("GroupId", groupId);
|
||||
std::string DescribeApiHistoryRequest::getGroupId() const {
|
||||
return groupId_;
|
||||
}
|
||||
|
||||
std::string DescribeApiHistoryRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
void DescribeApiHistoryRequest::setGroupId(const std::string &groupId) {
|
||||
groupId_ = groupId;
|
||||
setParameter(std::string("GroupId"), groupId);
|
||||
}
|
||||
|
||||
void DescribeApiHistoryRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter("AccessKeyId", accessKeyId);
|
||||
std::string DescribeApiHistoryRequest::getAccessKeyId() const {
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
std::string DescribeApiHistoryRequest::getResourceOwnerToken()const
|
||||
{
|
||||
return resourceOwnerToken_;
|
||||
void DescribeApiHistoryRequest::setAccessKeyId(const std::string &accessKeyId) {
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter(std::string("AccessKeyId"), accessKeyId);
|
||||
}
|
||||
|
||||
void DescribeApiHistoryRequest::setResourceOwnerToken(const std::string& resourceOwnerToken)
|
||||
{
|
||||
resourceOwnerToken_ = resourceOwnerToken;
|
||||
setParameter("ResourceOwnerToken", resourceOwnerToken);
|
||||
std::string DescribeApiHistoryRequest::getResourceOwnerToken() const {
|
||||
return resourceOwnerToken_;
|
||||
}
|
||||
|
||||
std::string DescribeApiHistoryRequest::getSecurityToken()const
|
||||
{
|
||||
return securityToken_;
|
||||
void DescribeApiHistoryRequest::setResourceOwnerToken(const std::string &resourceOwnerToken) {
|
||||
resourceOwnerToken_ = resourceOwnerToken;
|
||||
setParameter(std::string("ResourceOwnerToken"), resourceOwnerToken);
|
||||
}
|
||||
|
||||
void DescribeApiHistoryRequest::setSecurityToken(const std::string& securityToken)
|
||||
{
|
||||
securityToken_ = securityToken;
|
||||
setParameter("SecurityToken", securityToken);
|
||||
std::string DescribeApiHistoryRequest::getSecurityToken() const {
|
||||
return securityToken_;
|
||||
}
|
||||
|
||||
std::string DescribeApiHistoryRequest::getApiId()const
|
||||
{
|
||||
return apiId_;
|
||||
void DescribeApiHistoryRequest::setSecurityToken(const std::string &securityToken) {
|
||||
securityToken_ = securityToken;
|
||||
setParameter(std::string("SecurityToken"), securityToken);
|
||||
}
|
||||
|
||||
void DescribeApiHistoryRequest::setApiId(const std::string& apiId)
|
||||
{
|
||||
apiId_ = apiId;
|
||||
setParameter("ApiId", apiId);
|
||||
std::string DescribeApiHistoryRequest::getApiId() const {
|
||||
return apiId_;
|
||||
}
|
||||
|
||||
std::string DescribeApiHistoryRequest::getHistoryVersion()const
|
||||
{
|
||||
return historyVersion_;
|
||||
void DescribeApiHistoryRequest::setApiId(const std::string &apiId) {
|
||||
apiId_ = apiId;
|
||||
setParameter(std::string("ApiId"), apiId);
|
||||
}
|
||||
|
||||
void DescribeApiHistoryRequest::setHistoryVersion(const std::string& historyVersion)
|
||||
{
|
||||
historyVersion_ = historyVersion;
|
||||
setParameter("HistoryVersion", historyVersion);
|
||||
std::string DescribeApiHistoryRequest::getHistoryVersion() const {
|
||||
return historyVersion_;
|
||||
}
|
||||
|
||||
void DescribeApiHistoryRequest::setHistoryVersion(const std::string &historyVersion) {
|
||||
historyVersion_ = historyVersion;
|
||||
setParameter(std::string("HistoryVersion"), historyVersion);
|
||||
}
|
||||
|
||||
|
||||
@@ -55,196 +55,243 @@ void DescribeApiHistoryResult::parse(const std::string &payload)
|
||||
for (auto valueResultDescriptionsResultDescription : allResultDescriptionsNode)
|
||||
{
|
||||
ResultDescription resultDescriptionsObject;
|
||||
if(!valueResultDescriptionsResultDescription["Id"].isNull())
|
||||
resultDescriptionsObject.id = valueResultDescriptionsResultDescription["Id"].asString();
|
||||
if(!valueResultDescriptionsResultDescription["Pid"].isNull())
|
||||
resultDescriptionsObject.pid = valueResultDescriptionsResultDescription["Pid"].asString();
|
||||
if(!valueResultDescriptionsResultDescription["HasChild"].isNull())
|
||||
resultDescriptionsObject.hasChild = valueResultDescriptionsResultDescription["HasChild"].asString() == "true";
|
||||
if(!valueResultDescriptionsResultDescription["Key"].isNull())
|
||||
resultDescriptionsObject.key = valueResultDescriptionsResultDescription["Key"].asString();
|
||||
if(!valueResultDescriptionsResultDescription["Name"].isNull())
|
||||
resultDescriptionsObject.name = valueResultDescriptionsResultDescription["Name"].asString();
|
||||
if(!valueResultDescriptionsResultDescription["Mandatory"].isNull())
|
||||
resultDescriptionsObject.mandatory = valueResultDescriptionsResultDescription["Mandatory"].asString() == "true";
|
||||
if(!valueResultDescriptionsResultDescription["Type"].isNull())
|
||||
resultDescriptionsObject.type = valueResultDescriptionsResultDescription["Type"].asString();
|
||||
if(!valueResultDescriptionsResultDescription["Key"].isNull())
|
||||
resultDescriptionsObject.key = valueResultDescriptionsResultDescription["Key"].asString();
|
||||
if(!valueResultDescriptionsResultDescription["HasChild"].isNull())
|
||||
resultDescriptionsObject.hasChild = valueResultDescriptionsResultDescription["HasChild"].asString() == "true";
|
||||
if(!valueResultDescriptionsResultDescription["Description"].isNull())
|
||||
resultDescriptionsObject.description = valueResultDescriptionsResultDescription["Description"].asString();
|
||||
if(!valueResultDescriptionsResultDescription["Pid"].isNull())
|
||||
resultDescriptionsObject.pid = valueResultDescriptionsResultDescription["Pid"].asString();
|
||||
if(!valueResultDescriptionsResultDescription["Mandatory"].isNull())
|
||||
resultDescriptionsObject.mandatory = valueResultDescriptionsResultDescription["Mandatory"].asString() == "true";
|
||||
if(!valueResultDescriptionsResultDescription["Name"].isNull())
|
||||
resultDescriptionsObject.name = valueResultDescriptionsResultDescription["Name"].asString();
|
||||
if(!valueResultDescriptionsResultDescription["Id"].isNull())
|
||||
resultDescriptionsObject.id = valueResultDescriptionsResultDescription["Id"].asString();
|
||||
resultDescriptions_.push_back(resultDescriptionsObject);
|
||||
}
|
||||
auto allSystemParametersNode = value["SystemParameters"]["SystemParameter"];
|
||||
for (auto valueSystemParametersSystemParameter : allSystemParametersNode)
|
||||
{
|
||||
SystemParameter systemParametersObject;
|
||||
if(!valueSystemParametersSystemParameter["ParameterName"].isNull())
|
||||
systemParametersObject.parameterName = valueSystemParametersSystemParameter["ParameterName"].asString();
|
||||
if(!valueSystemParametersSystemParameter["ServiceParameterName"].isNull())
|
||||
systemParametersObject.serviceParameterName = valueSystemParametersSystemParameter["ServiceParameterName"].asString();
|
||||
if(!valueSystemParametersSystemParameter["Location"].isNull())
|
||||
systemParametersObject.location = valueSystemParametersSystemParameter["Location"].asString();
|
||||
if(!valueSystemParametersSystemParameter["DemoValue"].isNull())
|
||||
systemParametersObject.demoValue = valueSystemParametersSystemParameter["DemoValue"].asString();
|
||||
if(!valueSystemParametersSystemParameter["Description"].isNull())
|
||||
systemParametersObject.description = valueSystemParametersSystemParameter["Description"].asString();
|
||||
if(!valueSystemParametersSystemParameter["ParameterName"].isNull())
|
||||
systemParametersObject.parameterName = valueSystemParametersSystemParameter["ParameterName"].asString();
|
||||
if(!valueSystemParametersSystemParameter["Location"].isNull())
|
||||
systemParametersObject.location = valueSystemParametersSystemParameter["Location"].asString();
|
||||
if(!valueSystemParametersSystemParameter["ServiceParameterName"].isNull())
|
||||
systemParametersObject.serviceParameterName = valueSystemParametersSystemParameter["ServiceParameterName"].asString();
|
||||
systemParameters_.push_back(systemParametersObject);
|
||||
}
|
||||
auto allCustomSystemParametersNode = value["CustomSystemParameters"]["CustomSystemParameter"];
|
||||
for (auto valueCustomSystemParametersCustomSystemParameter : allCustomSystemParametersNode)
|
||||
{
|
||||
CustomSystemParameter customSystemParametersObject;
|
||||
if(!valueCustomSystemParametersCustomSystemParameter["ParameterName"].isNull())
|
||||
customSystemParametersObject.parameterName = valueCustomSystemParametersCustomSystemParameter["ParameterName"].asString();
|
||||
if(!valueCustomSystemParametersCustomSystemParameter["ServiceParameterName"].isNull())
|
||||
customSystemParametersObject.serviceParameterName = valueCustomSystemParametersCustomSystemParameter["ServiceParameterName"].asString();
|
||||
if(!valueCustomSystemParametersCustomSystemParameter["Location"].isNull())
|
||||
customSystemParametersObject.location = valueCustomSystemParametersCustomSystemParameter["Location"].asString();
|
||||
if(!valueCustomSystemParametersCustomSystemParameter["DemoValue"].isNull())
|
||||
customSystemParametersObject.demoValue = valueCustomSystemParametersCustomSystemParameter["DemoValue"].asString();
|
||||
if(!valueCustomSystemParametersCustomSystemParameter["Description"].isNull())
|
||||
customSystemParametersObject.description = valueCustomSystemParametersCustomSystemParameter["Description"].asString();
|
||||
if(!valueCustomSystemParametersCustomSystemParameter["ParameterName"].isNull())
|
||||
customSystemParametersObject.parameterName = valueCustomSystemParametersCustomSystemParameter["ParameterName"].asString();
|
||||
if(!valueCustomSystemParametersCustomSystemParameter["Location"].isNull())
|
||||
customSystemParametersObject.location = valueCustomSystemParametersCustomSystemParameter["Location"].asString();
|
||||
if(!valueCustomSystemParametersCustomSystemParameter["ServiceParameterName"].isNull())
|
||||
customSystemParametersObject.serviceParameterName = valueCustomSystemParametersCustomSystemParameter["ServiceParameterName"].asString();
|
||||
customSystemParameters_.push_back(customSystemParametersObject);
|
||||
}
|
||||
auto allConstantParametersNode = value["ConstantParameters"]["ConstantParameter"];
|
||||
for (auto valueConstantParametersConstantParameter : allConstantParametersNode)
|
||||
{
|
||||
ConstantParameter constantParametersObject;
|
||||
if(!valueConstantParametersConstantParameter["Description"].isNull())
|
||||
constantParametersObject.description = valueConstantParametersConstantParameter["Description"].asString();
|
||||
if(!valueConstantParametersConstantParameter["Location"].isNull())
|
||||
constantParametersObject.location = valueConstantParametersConstantParameter["Location"].asString();
|
||||
if(!valueConstantParametersConstantParameter["ServiceParameterName"].isNull())
|
||||
constantParametersObject.serviceParameterName = valueConstantParametersConstantParameter["ServiceParameterName"].asString();
|
||||
if(!valueConstantParametersConstantParameter["ConstantValue"].isNull())
|
||||
constantParametersObject.constantValue = valueConstantParametersConstantParameter["ConstantValue"].asString();
|
||||
if(!valueConstantParametersConstantParameter["Location"].isNull())
|
||||
constantParametersObject.location = valueConstantParametersConstantParameter["Location"].asString();
|
||||
if(!valueConstantParametersConstantParameter["Description"].isNull())
|
||||
constantParametersObject.description = valueConstantParametersConstantParameter["Description"].asString();
|
||||
constantParameters_.push_back(constantParametersObject);
|
||||
}
|
||||
auto allRequestParametersNode = value["RequestParameters"]["RequestParameter"];
|
||||
for (auto valueRequestParametersRequestParameter : allRequestParametersNode)
|
||||
{
|
||||
RequestParameter requestParametersObject;
|
||||
if(!valueRequestParametersRequestParameter["ApiParameterName"].isNull())
|
||||
requestParametersObject.apiParameterName = valueRequestParametersRequestParameter["ApiParameterName"].asString();
|
||||
if(!valueRequestParametersRequestParameter["Location"].isNull())
|
||||
requestParametersObject.location = valueRequestParametersRequestParameter["Location"].asString();
|
||||
if(!valueRequestParametersRequestParameter["ParameterType"].isNull())
|
||||
requestParametersObject.parameterType = valueRequestParametersRequestParameter["ParameterType"].asString();
|
||||
if(!valueRequestParametersRequestParameter["Required"].isNull())
|
||||
requestParametersObject.required = valueRequestParametersRequestParameter["Required"].asString();
|
||||
if(!valueRequestParametersRequestParameter["DefaultValue"].isNull())
|
||||
requestParametersObject.defaultValue = valueRequestParametersRequestParameter["DefaultValue"].asString();
|
||||
if(!valueRequestParametersRequestParameter["DemoValue"].isNull())
|
||||
requestParametersObject.demoValue = valueRequestParametersRequestParameter["DemoValue"].asString();
|
||||
if(!valueRequestParametersRequestParameter["MaxValue"].isNull())
|
||||
requestParametersObject.maxValue = std::stol(valueRequestParametersRequestParameter["MaxValue"].asString());
|
||||
if(!valueRequestParametersRequestParameter["MinValue"].isNull())
|
||||
requestParametersObject.minValue = std::stol(valueRequestParametersRequestParameter["MinValue"].asString());
|
||||
if(!valueRequestParametersRequestParameter["MaxLength"].isNull())
|
||||
requestParametersObject.maxLength = std::stol(valueRequestParametersRequestParameter["MaxLength"].asString());
|
||||
if(!valueRequestParametersRequestParameter["MinLength"].isNull())
|
||||
requestParametersObject.minLength = std::stol(valueRequestParametersRequestParameter["MinLength"].asString());
|
||||
if(!valueRequestParametersRequestParameter["RegularExpression"].isNull())
|
||||
requestParametersObject.regularExpression = valueRequestParametersRequestParameter["RegularExpression"].asString();
|
||||
if(!valueRequestParametersRequestParameter["JsonScheme"].isNull())
|
||||
requestParametersObject.jsonScheme = valueRequestParametersRequestParameter["JsonScheme"].asString();
|
||||
if(!valueRequestParametersRequestParameter["EnumValue"].isNull())
|
||||
requestParametersObject.enumValue = valueRequestParametersRequestParameter["EnumValue"].asString();
|
||||
if(!valueRequestParametersRequestParameter["DocShow"].isNull())
|
||||
requestParametersObject.docShow = valueRequestParametersRequestParameter["DocShow"].asString();
|
||||
if(!valueRequestParametersRequestParameter["DocOrder"].isNull())
|
||||
requestParametersObject.docOrder = std::stoi(valueRequestParametersRequestParameter["DocOrder"].asString());
|
||||
if(!valueRequestParametersRequestParameter["Description"].isNull())
|
||||
requestParametersObject.description = valueRequestParametersRequestParameter["Description"].asString();
|
||||
if(!valueRequestParametersRequestParameter["MaxValue"].isNull())
|
||||
requestParametersObject.maxValue = std::stol(valueRequestParametersRequestParameter["MaxValue"].asString());
|
||||
if(!valueRequestParametersRequestParameter["ArrayItemsType"].isNull())
|
||||
requestParametersObject.arrayItemsType = valueRequestParametersRequestParameter["ArrayItemsType"].asString();
|
||||
if(!valueRequestParametersRequestParameter["MinValue"].isNull())
|
||||
requestParametersObject.minValue = std::stol(valueRequestParametersRequestParameter["MinValue"].asString());
|
||||
if(!valueRequestParametersRequestParameter["DocShow"].isNull())
|
||||
requestParametersObject.docShow = valueRequestParametersRequestParameter["DocShow"].asString();
|
||||
if(!valueRequestParametersRequestParameter["MaxLength"].isNull())
|
||||
requestParametersObject.maxLength = std::stol(valueRequestParametersRequestParameter["MaxLength"].asString());
|
||||
if(!valueRequestParametersRequestParameter["DefaultValue"].isNull())
|
||||
requestParametersObject.defaultValue = valueRequestParametersRequestParameter["DefaultValue"].asString();
|
||||
if(!valueRequestParametersRequestParameter["ApiParameterName"].isNull())
|
||||
requestParametersObject.apiParameterName = valueRequestParametersRequestParameter["ApiParameterName"].asString();
|
||||
if(!valueRequestParametersRequestParameter["EnumValue"].isNull())
|
||||
requestParametersObject.enumValue = valueRequestParametersRequestParameter["EnumValue"].asString();
|
||||
if(!valueRequestParametersRequestParameter["DemoValue"].isNull())
|
||||
requestParametersObject.demoValue = valueRequestParametersRequestParameter["DemoValue"].asString();
|
||||
if(!valueRequestParametersRequestParameter["Required"].isNull())
|
||||
requestParametersObject.required = valueRequestParametersRequestParameter["Required"].asString();
|
||||
if(!valueRequestParametersRequestParameter["Description"].isNull())
|
||||
requestParametersObject.description = valueRequestParametersRequestParameter["Description"].asString();
|
||||
if(!valueRequestParametersRequestParameter["ParameterType"].isNull())
|
||||
requestParametersObject.parameterType = valueRequestParametersRequestParameter["ParameterType"].asString();
|
||||
if(!valueRequestParametersRequestParameter["RegularExpression"].isNull())
|
||||
requestParametersObject.regularExpression = valueRequestParametersRequestParameter["RegularExpression"].asString();
|
||||
if(!valueRequestParametersRequestParameter["MinLength"].isNull())
|
||||
requestParametersObject.minLength = std::stol(valueRequestParametersRequestParameter["MinLength"].asString());
|
||||
if(!valueRequestParametersRequestParameter["DocOrder"].isNull())
|
||||
requestParametersObject.docOrder = std::stoi(valueRequestParametersRequestParameter["DocOrder"].asString());
|
||||
if(!valueRequestParametersRequestParameter["Location"].isNull())
|
||||
requestParametersObject.location = valueRequestParametersRequestParameter["Location"].asString();
|
||||
requestParameters_.push_back(requestParametersObject);
|
||||
}
|
||||
auto allServiceParametersNode = value["ServiceParameters"]["ServiceParameter"];
|
||||
for (auto valueServiceParametersServiceParameter : allServiceParametersNode)
|
||||
{
|
||||
ServiceParameter serviceParametersObject;
|
||||
if(!valueServiceParametersServiceParameter["ServiceParameterName"].isNull())
|
||||
serviceParametersObject.serviceParameterName = valueServiceParametersServiceParameter["ServiceParameterName"].asString();
|
||||
if(!valueServiceParametersServiceParameter["Location"].isNull())
|
||||
serviceParametersObject.location = valueServiceParametersServiceParameter["Location"].asString();
|
||||
if(!valueServiceParametersServiceParameter["ParameterType"].isNull())
|
||||
serviceParametersObject.parameterType = valueServiceParametersServiceParameter["ParameterType"].asString();
|
||||
if(!valueServiceParametersServiceParameter["ServiceParameterName"].isNull())
|
||||
serviceParametersObject.serviceParameterName = valueServiceParametersServiceParameter["ServiceParameterName"].asString();
|
||||
serviceParameters_.push_back(serviceParametersObject);
|
||||
}
|
||||
auto allServiceParametersMapNode = value["ServiceParametersMap"]["ServiceParameterMap"];
|
||||
for (auto valueServiceParametersMapServiceParameterMap : allServiceParametersMapNode)
|
||||
{
|
||||
ServiceParameterMap serviceParametersMapObject;
|
||||
if(!valueServiceParametersMapServiceParameterMap["ServiceParameterName"].isNull())
|
||||
serviceParametersMapObject.serviceParameterName = valueServiceParametersMapServiceParameterMap["ServiceParameterName"].asString();
|
||||
if(!valueServiceParametersMapServiceParameterMap["RequestParameterName"].isNull())
|
||||
serviceParametersMapObject.requestParameterName = valueServiceParametersMapServiceParameterMap["RequestParameterName"].asString();
|
||||
if(!valueServiceParametersMapServiceParameterMap["ServiceParameterName"].isNull())
|
||||
serviceParametersMapObject.serviceParameterName = valueServiceParametersMapServiceParameterMap["ServiceParameterName"].asString();
|
||||
serviceParametersMap_.push_back(serviceParametersMapObject);
|
||||
}
|
||||
auto backendConfigNode = value["BackendConfig"];
|
||||
if(!backendConfigNode["BackendId"].isNull())
|
||||
backendConfig_.backendId = backendConfigNode["BackendId"].asString();
|
||||
if(!backendConfigNode["BackendType"].isNull())
|
||||
backendConfig_.backendType = backendConfigNode["BackendType"].asString();
|
||||
if(!backendConfigNode["BackendName"].isNull())
|
||||
backendConfig_.backendName = backendConfigNode["BackendName"].asString();
|
||||
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();
|
||||
if(!requestConfigNode["RequestPath"].isNull())
|
||||
requestConfig_.requestPath = requestConfigNode["RequestPath"].asString();
|
||||
if(!requestConfigNode["RequestHttpMethod"].isNull())
|
||||
requestConfig_.requestHttpMethod = requestConfigNode["RequestHttpMethod"].asString();
|
||||
if(!requestConfigNode["BodyFormat"].isNull())
|
||||
requestConfig_.bodyFormat = requestConfigNode["BodyFormat"].asString();
|
||||
if(!requestConfigNode["RequestMode"].isNull())
|
||||
requestConfig_.requestMode = requestConfigNode["RequestMode"].asString();
|
||||
if(!requestConfigNode["PostBodyDescription"].isNull())
|
||||
requestConfig_.postBodyDescription = requestConfigNode["PostBodyDescription"].asString();
|
||||
if(!requestConfigNode["RequestProtocol"].isNull())
|
||||
requestConfig_.requestProtocol = requestConfigNode["RequestProtocol"].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());
|
||||
if(!serviceConfigNode["VpcId"].isNull())
|
||||
serviceConfig_.vpcId = serviceConfigNode["VpcId"].asString();
|
||||
if(!serviceConfigNode["MockStatusCode"].isNull())
|
||||
serviceConfig_.mockStatusCode = std::stoi(serviceConfigNode["MockStatusCode"].asString());
|
||||
if(!serviceConfigNode["ContentTypeValue"].isNull())
|
||||
serviceConfig_.contentTypeValue = serviceConfigNode["ContentTypeValue"].asString();
|
||||
if(!serviceConfigNode["ServiceProtocol"].isNull())
|
||||
serviceConfig_.serviceProtocol = serviceConfigNode["ServiceProtocol"].asString();
|
||||
if(!serviceConfigNode["ServicePath"].isNull())
|
||||
serviceConfig_.servicePath = serviceConfigNode["ServicePath"].asString();
|
||||
if(!serviceConfigNode["ContentTypeCatagory"].isNull())
|
||||
serviceConfig_.contentTypeCatagory = serviceConfigNode["ContentTypeCatagory"].asString();
|
||||
if(!serviceConfigNode["ServiceAddress"].isNull())
|
||||
serviceConfig_.serviceAddress = serviceConfigNode["ServiceAddress"].asString();
|
||||
if(!serviceConfigNode["Mock"].isNull())
|
||||
serviceConfig_.mock = serviceConfigNode["Mock"].asString();
|
||||
if(!serviceConfigNode["ServiceVpcEnable"].isNull())
|
||||
serviceConfig_.serviceVpcEnable = serviceConfigNode["ServiceVpcEnable"].asString();
|
||||
if(!serviceConfigNode["MockResult"].isNull())
|
||||
serviceConfig_.mockResult = serviceConfigNode["MockResult"].asString();
|
||||
if(!serviceConfigNode["ServiceHttpMethod"].isNull())
|
||||
serviceConfig_.serviceHttpMethod = serviceConfigNode["ServiceHttpMethod"].asString();
|
||||
if(!serviceConfigNode["ServiceTimeout"].isNull())
|
||||
serviceConfig_.serviceTimeout = std::stoi(serviceConfigNode["ServiceTimeout"].asString());
|
||||
auto allMockHeadersNode = serviceConfigNode["MockHeaders"]["MockHeader"];
|
||||
for (auto serviceConfigNodeMockHeadersMockHeader : allMockHeadersNode)
|
||||
{
|
||||
ServiceConfig::MockHeader mockHeaderObject;
|
||||
if(!serviceConfigNodeMockHeadersMockHeader["HeaderName"].isNull())
|
||||
mockHeaderObject.headerName = serviceConfigNodeMockHeadersMockHeader["HeaderName"].asString();
|
||||
if(!serviceConfigNodeMockHeadersMockHeader["HeaderValue"].isNull())
|
||||
mockHeaderObject.headerValue = serviceConfigNodeMockHeadersMockHeader["HeaderValue"].asString();
|
||||
if(!serviceConfigNodeMockHeadersMockHeader["HeaderName"].isNull())
|
||||
mockHeaderObject.headerName = serviceConfigNodeMockHeadersMockHeader["HeaderName"].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["VpcScheme"].isNull())
|
||||
serviceConfig_.vpcConfig.vpcScheme = vpcConfigNode["VpcScheme"].asString();
|
||||
if(!vpcConfigNode["InstanceId"].isNull())
|
||||
serviceConfig_.vpcConfig.instanceId = vpcConfigNode["InstanceId"].asString();
|
||||
if(!vpcConfigNode["Port"].isNull())
|
||||
serviceConfig_.vpcConfig.port = std::stoi(vpcConfigNode["Port"].asString());
|
||||
if(!vpcConfigNode["Name"].isNull())
|
||||
serviceConfig_.vpcConfig.name = vpcConfigNode["Name"].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["FcType"].isNull())
|
||||
serviceConfig_.functionComputeConfig.fcType = functionComputeConfigNode["FcType"].asString();
|
||||
if(!functionComputeConfigNode["RoleArn"].isNull())
|
||||
serviceConfig_.functionComputeConfig.roleArn = functionComputeConfigNode["RoleArn"].asString();
|
||||
if(!functionComputeConfigNode["Method"].isNull())
|
||||
serviceConfig_.functionComputeConfig.method = functionComputeConfigNode["Method"].asString();
|
||||
if(!functionComputeConfigNode["FcBaseUrl"].isNull())
|
||||
serviceConfig_.functionComputeConfig.fcBaseUrl = functionComputeConfigNode["FcBaseUrl"].asString();
|
||||
if(!functionComputeConfigNode["ContentTypeValue"].isNull())
|
||||
serviceConfig_.functionComputeConfig.contentTypeValue = functionComputeConfigNode["ContentTypeValue"].asString();
|
||||
if(!functionComputeConfigNode["RegionId"].isNull())
|
||||
serviceConfig_.functionComputeConfig.regionId = functionComputeConfigNode["RegionId"].asString();
|
||||
if(!functionComputeConfigNode["OnlyBusinessPath"].isNull())
|
||||
serviceConfig_.functionComputeConfig.onlyBusinessPath = functionComputeConfigNode["OnlyBusinessPath"].asString() == "true";
|
||||
if(!functionComputeConfigNode["FunctionName"].isNull())
|
||||
serviceConfig_.functionComputeConfig.functionName = functionComputeConfigNode["FunctionName"].asString();
|
||||
if(!functionComputeConfigNode["ContentTypeCatagory"].isNull())
|
||||
serviceConfig_.functionComputeConfig.contentTypeCatagory = functionComputeConfigNode["ContentTypeCatagory"].asString();
|
||||
if(!functionComputeConfigNode["Path"].isNull())
|
||||
serviceConfig_.functionComputeConfig.path = functionComputeConfigNode["Path"].asString();
|
||||
if(!functionComputeConfigNode["ServiceName"].isNull())
|
||||
serviceConfig_.functionComputeConfig.serviceName = functionComputeConfigNode["ServiceName"].asString();
|
||||
if(!functionComputeConfigNode["Qualifier"].isNull())
|
||||
serviceConfig_.functionComputeConfig.qualifier = functionComputeConfigNode["Qualifier"].asString();
|
||||
auto ossConfigNode = serviceConfigNode["OssConfig"];
|
||||
if(!ossConfigNode["Key"].isNull())
|
||||
serviceConfig_.ossConfig.key = ossConfigNode["Key"].asString();
|
||||
if(!ossConfigNode["Action"].isNull())
|
||||
serviceConfig_.ossConfig.action = ossConfigNode["Action"].asString();
|
||||
if(!ossConfigNode["OssRegionId"].isNull())
|
||||
serviceConfig_.ossConfig.ossRegionId = ossConfigNode["OssRegionId"].asString();
|
||||
if(!ossConfigNode["BucketName"].isNull())
|
||||
serviceConfig_.ossConfig.bucketName = ossConfigNode["BucketName"].asString();
|
||||
auto eventBridgeConfigNode = serviceConfigNode["EventBridgeConfig"];
|
||||
if(!eventBridgeConfigNode["EventBridgeRegionId"].isNull())
|
||||
serviceConfig_.eventBridgeConfig.eventBridgeRegionId = eventBridgeConfigNode["EventBridgeRegionId"].asString();
|
||||
if(!eventBridgeConfigNode["EventBus"].isNull())
|
||||
serviceConfig_.eventBridgeConfig.eventBus = eventBridgeConfigNode["EventBus"].asString();
|
||||
if(!eventBridgeConfigNode["EventSource"].isNull())
|
||||
serviceConfig_.eventBridgeConfig.eventSource = eventBridgeConfigNode["EventSource"].asString();
|
||||
if(!eventBridgeConfigNode["RoleArn"].isNull())
|
||||
serviceConfig_.eventBridgeConfig.roleArn = eventBridgeConfigNode["RoleArn"].asString();
|
||||
auto openIdConnectConfigNode = value["OpenIdConnectConfig"];
|
||||
if(!openIdConnectConfigNode["OpenIdApiType"].isNull())
|
||||
openIdConnectConfig_.openIdApiType = openIdConnectConfigNode["OpenIdApiType"].asString();
|
||||
@@ -254,44 +301,50 @@ void DescribeApiHistoryResult::parse(const std::string &payload)
|
||||
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["ApiId"].isNull())
|
||||
apiId_ = value["ApiId"].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["WebSocketApiType"].isNull())
|
||||
webSocketApiType_ = value["WebSocketApiType"].asString();
|
||||
if(!value["DisableInternet"].isNull())
|
||||
disableInternet_ = value["DisableInternet"].asString() == "true";
|
||||
if(!value["ResultBodyModel"].isNull())
|
||||
resultBodyModel_ = value["ResultBodyModel"].asString();
|
||||
if(!value["ResultSample"].isNull())
|
||||
resultSample_ = value["ResultSample"].asString();
|
||||
if(!value["AppCodeAuthType"].isNull())
|
||||
appCodeAuthType_ = value["AppCodeAuthType"].asString();
|
||||
if(!value["AllowSignatureMethod"].isNull())
|
||||
allowSignatureMethod_ = value["AllowSignatureMethod"].asString();
|
||||
if(!value["RegionId"].isNull())
|
||||
regionId_ = value["RegionId"].asString();
|
||||
if(!value["ForceNonceCheck"].isNull())
|
||||
forceNonceCheck_ = value["ForceNonceCheck"].asString() == "true";
|
||||
if(!value["Visibility"].isNull())
|
||||
visibility_ = value["Visibility"].asString();
|
||||
if(!value["FailResultSample"].isNull())
|
||||
failResultSample_ = value["FailResultSample"].asString();
|
||||
if(!value["AuthType"].isNull())
|
||||
authType_ = value["AuthType"].asString();
|
||||
if(!value["Description"].isNull())
|
||||
description_ = value["Description"].asString();
|
||||
if(!value["GroupName"].isNull())
|
||||
groupName_ = value["GroupName"].asString();
|
||||
if(!value["GroupId"].isNull())
|
||||
groupId_ = value["GroupId"].asString();
|
||||
if(!value["DeployedTime"].isNull())
|
||||
deployedTime_ = value["DeployedTime"].asString();
|
||||
if(!value["StageName"].isNull())
|
||||
stageName_ = value["StageName"].asString();
|
||||
if(!value["HistoryVersion"].isNull())
|
||||
historyVersion_ = value["HistoryVersion"].asString();
|
||||
if(!value["ApiName"].isNull())
|
||||
apiName_ = value["ApiName"].asString();
|
||||
if(!value["BackendEnable"].isNull())
|
||||
backendEnable_ = value["BackendEnable"].asString() == "true";
|
||||
|
||||
}
|
||||
|
||||
@@ -330,6 +383,11 @@ std::vector<DescribeApiHistoryResult::ServiceParameterMap> DescribeApiHistoryRes
|
||||
return serviceParametersMap_;
|
||||
}
|
||||
|
||||
std::string DescribeApiHistoryResult::getAppCodeAuthType()const
|
||||
{
|
||||
return appCodeAuthType_;
|
||||
}
|
||||
|
||||
std::string DescribeApiHistoryResult::getResultBodyModel()const
|
||||
{
|
||||
return resultBodyModel_;
|
||||
@@ -345,11 +403,21 @@ std::vector<DescribeApiHistoryResult::ConstantParameter> DescribeApiHistoryResul
|
||||
return constantParameters_;
|
||||
}
|
||||
|
||||
std::string DescribeApiHistoryResult::getWebSocketApiType()const
|
||||
{
|
||||
return webSocketApiType_;
|
||||
}
|
||||
|
||||
std::vector<DescribeApiHistoryResult::ResultDescription> DescribeApiHistoryResult::getResultDescriptions()const
|
||||
{
|
||||
return resultDescriptions_;
|
||||
}
|
||||
|
||||
DescribeApiHistoryResult::BackendConfig DescribeApiHistoryResult::getBackendConfig()const
|
||||
{
|
||||
return backendConfig_;
|
||||
}
|
||||
|
||||
DescribeApiHistoryResult::OpenIdConnectConfig DescribeApiHistoryResult::getOpenIdConnectConfig()const
|
||||
{
|
||||
return openIdConnectConfig_;
|
||||
@@ -415,6 +483,11 @@ std::string DescribeApiHistoryResult::getDeployedTime()const
|
||||
return deployedTime_;
|
||||
}
|
||||
|
||||
bool DescribeApiHistoryResult::getBackendEnable()const
|
||||
{
|
||||
return backendEnable_;
|
||||
}
|
||||
|
||||
std::vector<DescribeApiHistoryResult::SystemParameter> DescribeApiHistoryResult::getSystemParameters()const
|
||||
{
|
||||
return systemParameters_;
|
||||
|
||||
@@ -1,106 +1,90 @@
|
||||
/*
|
||||
* 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")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DescribeApiIpControlsRequest::~DescribeApiIpControlsRequest()
|
||||
{}
|
||||
|
||||
std::string DescribeApiIpControlsRequest::getStageName()const
|
||||
{
|
||||
return stageName_;
|
||||
*/
|
||||
|
||||
#include <alibabacloud/cloudapi/model/DescribeApiIpControlsRequest.h>
|
||||
|
||||
using AlibabaCloud::CloudAPI::Model::DescribeApiIpControlsRequest;
|
||||
|
||||
DescribeApiIpControlsRequest::DescribeApiIpControlsRequest()
|
||||
: RpcServiceRequest("cloudapi", "2016-07-14", "DescribeApiIpControls") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
void DescribeApiIpControlsRequest::setStageName(const std::string& stageName)
|
||||
{
|
||||
stageName_ = stageName;
|
||||
setParameter("StageName", stageName);
|
||||
DescribeApiIpControlsRequest::~DescribeApiIpControlsRequest() {}
|
||||
|
||||
std::string DescribeApiIpControlsRequest::getStageName() const {
|
||||
return stageName_;
|
||||
}
|
||||
|
||||
std::string DescribeApiIpControlsRequest::getGroupId()const
|
||||
{
|
||||
return groupId_;
|
||||
void DescribeApiIpControlsRequest::setStageName(const std::string &stageName) {
|
||||
stageName_ = stageName;
|
||||
setParameter(std::string("StageName"), stageName);
|
||||
}
|
||||
|
||||
void DescribeApiIpControlsRequest::setGroupId(const std::string& groupId)
|
||||
{
|
||||
groupId_ = groupId;
|
||||
setParameter("GroupId", groupId);
|
||||
std::string DescribeApiIpControlsRequest::getGroupId() const {
|
||||
return groupId_;
|
||||
}
|
||||
|
||||
int DescribeApiIpControlsRequest::getPageNumber()const
|
||||
{
|
||||
return pageNumber_;
|
||||
void DescribeApiIpControlsRequest::setGroupId(const std::string &groupId) {
|
||||
groupId_ = groupId;
|
||||
setParameter(std::string("GroupId"), groupId);
|
||||
}
|
||||
|
||||
void DescribeApiIpControlsRequest::setPageNumber(int pageNumber)
|
||||
{
|
||||
pageNumber_ = pageNumber;
|
||||
setParameter("PageNumber", std::to_string(pageNumber));
|
||||
int DescribeApiIpControlsRequest::getPageNumber() const {
|
||||
return pageNumber_;
|
||||
}
|
||||
|
||||
std::string DescribeApiIpControlsRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
void DescribeApiIpControlsRequest::setPageNumber(int pageNumber) {
|
||||
pageNumber_ = pageNumber;
|
||||
setParameter(std::string("PageNumber"), std::to_string(pageNumber));
|
||||
}
|
||||
|
||||
void DescribeApiIpControlsRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter("AccessKeyId", accessKeyId);
|
||||
std::string DescribeApiIpControlsRequest::getAccessKeyId() const {
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
std::string DescribeApiIpControlsRequest::getSecurityToken()const
|
||||
{
|
||||
return securityToken_;
|
||||
void DescribeApiIpControlsRequest::setAccessKeyId(const std::string &accessKeyId) {
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter(std::string("AccessKeyId"), accessKeyId);
|
||||
}
|
||||
|
||||
void DescribeApiIpControlsRequest::setSecurityToken(const std::string& securityToken)
|
||||
{
|
||||
securityToken_ = securityToken;
|
||||
setParameter("SecurityToken", securityToken);
|
||||
std::string DescribeApiIpControlsRequest::getSecurityToken() const {
|
||||
return securityToken_;
|
||||
}
|
||||
|
||||
int DescribeApiIpControlsRequest::getPageSize()const
|
||||
{
|
||||
return pageSize_;
|
||||
void DescribeApiIpControlsRequest::setSecurityToken(const std::string &securityToken) {
|
||||
securityToken_ = securityToken;
|
||||
setParameter(std::string("SecurityToken"), securityToken);
|
||||
}
|
||||
|
||||
void DescribeApiIpControlsRequest::setPageSize(int pageSize)
|
||||
{
|
||||
pageSize_ = pageSize;
|
||||
setParameter("PageSize", std::to_string(pageSize));
|
||||
int DescribeApiIpControlsRequest::getPageSize() const {
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
std::string DescribeApiIpControlsRequest::getApiIds()const
|
||||
{
|
||||
return apiIds_;
|
||||
void DescribeApiIpControlsRequest::setPageSize(int pageSize) {
|
||||
pageSize_ = pageSize;
|
||||
setParameter(std::string("PageSize"), std::to_string(pageSize));
|
||||
}
|
||||
|
||||
void DescribeApiIpControlsRequest::setApiIds(const std::string& apiIds)
|
||||
{
|
||||
apiIds_ = apiIds;
|
||||
setParameter("ApiIds", apiIds);
|
||||
std::string DescribeApiIpControlsRequest::getApiIds() const {
|
||||
return apiIds_;
|
||||
}
|
||||
|
||||
void DescribeApiIpControlsRequest::setApiIds(const std::string &apiIds) {
|
||||
apiIds_ = apiIds;
|
||||
setParameter(std::string("ApiIds"), apiIds);
|
||||
}
|
||||
|
||||
|
||||
@@ -43,24 +43,24 @@ void DescribeApiIpControlsResult::parse(const std::string &payload)
|
||||
for (auto valueApiIpControlsApiIpControlItem : allApiIpControlsNode)
|
||||
{
|
||||
ApiIpControlItem apiIpControlsObject;
|
||||
if(!valueApiIpControlsApiIpControlItem["BoundTime"].isNull())
|
||||
apiIpControlsObject.boundTime = valueApiIpControlsApiIpControlItem["BoundTime"].asString();
|
||||
if(!valueApiIpControlsApiIpControlItem["ApiId"].isNull())
|
||||
apiIpControlsObject.apiId = valueApiIpControlsApiIpControlItem["ApiId"].asString();
|
||||
if(!valueApiIpControlsApiIpControlItem["ApiName"].isNull())
|
||||
apiIpControlsObject.apiName = valueApiIpControlsApiIpControlItem["ApiName"].asString();
|
||||
if(!valueApiIpControlsApiIpControlItem["IpControlId"].isNull())
|
||||
apiIpControlsObject.ipControlId = valueApiIpControlsApiIpControlItem["IpControlId"].asString();
|
||||
if(!valueApiIpControlsApiIpControlItem["IpControlName"].isNull())
|
||||
apiIpControlsObject.ipControlName = valueApiIpControlsApiIpControlItem["IpControlName"].asString();
|
||||
if(!valueApiIpControlsApiIpControlItem["BoundTime"].isNull())
|
||||
apiIpControlsObject.boundTime = valueApiIpControlsApiIpControlItem["BoundTime"].asString();
|
||||
if(!valueApiIpControlsApiIpControlItem["ApiName"].isNull())
|
||||
apiIpControlsObject.apiName = valueApiIpControlsApiIpControlItem["ApiName"].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());
|
||||
if(!value["PageSize"].isNull())
|
||||
pageSize_ = std::stoi(value["PageSize"].asString());
|
||||
if(!value["TotalCount"].isNull())
|
||||
totalCount_ = std::stoi(value["TotalCount"].asString());
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -1,95 +1,90 @@
|
||||
/*
|
||||
* 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")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DescribeApiLatencyDataRequest::~DescribeApiLatencyDataRequest()
|
||||
{}
|
||||
|
||||
std::string DescribeApiLatencyDataRequest::getGroupId()const
|
||||
{
|
||||
return groupId_;
|
||||
*/
|
||||
|
||||
#include <alibabacloud/cloudapi/model/DescribeApiLatencyDataRequest.h>
|
||||
|
||||
using AlibabaCloud::CloudAPI::Model::DescribeApiLatencyDataRequest;
|
||||
|
||||
DescribeApiLatencyDataRequest::DescribeApiLatencyDataRequest()
|
||||
: RpcServiceRequest("cloudapi", "2016-07-14", "DescribeApiLatencyData") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
void DescribeApiLatencyDataRequest::setGroupId(const std::string& groupId)
|
||||
{
|
||||
groupId_ = groupId;
|
||||
setParameter("GroupId", groupId);
|
||||
DescribeApiLatencyDataRequest::~DescribeApiLatencyDataRequest() {}
|
||||
|
||||
std::string DescribeApiLatencyDataRequest::getStageName() const {
|
||||
return stageName_;
|
||||
}
|
||||
|
||||
std::string DescribeApiLatencyDataRequest::getEndTime()const
|
||||
{
|
||||
return endTime_;
|
||||
void DescribeApiLatencyDataRequest::setStageName(const std::string &stageName) {
|
||||
stageName_ = stageName;
|
||||
setParameter(std::string("StageName"), stageName);
|
||||
}
|
||||
|
||||
void DescribeApiLatencyDataRequest::setEndTime(const std::string& endTime)
|
||||
{
|
||||
endTime_ = endTime;
|
||||
setParameter("EndTime", endTime);
|
||||
std::string DescribeApiLatencyDataRequest::getGroupId() const {
|
||||
return groupId_;
|
||||
}
|
||||
|
||||
std::string DescribeApiLatencyDataRequest::getStartTime()const
|
||||
{
|
||||
return startTime_;
|
||||
void DescribeApiLatencyDataRequest::setGroupId(const std::string &groupId) {
|
||||
groupId_ = groupId;
|
||||
setParameter(std::string("GroupId"), groupId);
|
||||
}
|
||||
|
||||
void DescribeApiLatencyDataRequest::setStartTime(const std::string& startTime)
|
||||
{
|
||||
startTime_ = startTime;
|
||||
setParameter("StartTime", startTime);
|
||||
std::string DescribeApiLatencyDataRequest::getEndTime() const {
|
||||
return endTime_;
|
||||
}
|
||||
|
||||
std::string DescribeApiLatencyDataRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
void DescribeApiLatencyDataRequest::setEndTime(const std::string &endTime) {
|
||||
endTime_ = endTime;
|
||||
setParameter(std::string("EndTime"), endTime);
|
||||
}
|
||||
|
||||
void DescribeApiLatencyDataRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter("AccessKeyId", accessKeyId);
|
||||
std::string DescribeApiLatencyDataRequest::getStartTime() const {
|
||||
return startTime_;
|
||||
}
|
||||
|
||||
std::string DescribeApiLatencyDataRequest::getSecurityToken()const
|
||||
{
|
||||
return securityToken_;
|
||||
void DescribeApiLatencyDataRequest::setStartTime(const std::string &startTime) {
|
||||
startTime_ = startTime;
|
||||
setParameter(std::string("StartTime"), startTime);
|
||||
}
|
||||
|
||||
void DescribeApiLatencyDataRequest::setSecurityToken(const std::string& securityToken)
|
||||
{
|
||||
securityToken_ = securityToken;
|
||||
setParameter("SecurityToken", securityToken);
|
||||
std::string DescribeApiLatencyDataRequest::getAccessKeyId() const {
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
std::string DescribeApiLatencyDataRequest::getApiId()const
|
||||
{
|
||||
return apiId_;
|
||||
void DescribeApiLatencyDataRequest::setAccessKeyId(const std::string &accessKeyId) {
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter(std::string("AccessKeyId"), accessKeyId);
|
||||
}
|
||||
|
||||
void DescribeApiLatencyDataRequest::setApiId(const std::string& apiId)
|
||||
{
|
||||
apiId_ = apiId;
|
||||
setParameter("ApiId", apiId);
|
||||
std::string DescribeApiLatencyDataRequest::getSecurityToken() const {
|
||||
return securityToken_;
|
||||
}
|
||||
|
||||
void DescribeApiLatencyDataRequest::setSecurityToken(const std::string &securityToken) {
|
||||
securityToken_ = securityToken;
|
||||
setParameter(std::string("SecurityToken"), securityToken);
|
||||
}
|
||||
|
||||
std::string DescribeApiLatencyDataRequest::getApiId() const {
|
||||
return apiId_;
|
||||
}
|
||||
|
||||
void DescribeApiLatencyDataRequest::setApiId(const std::string &apiId) {
|
||||
apiId_ = apiId;
|
||||
setParameter(std::string("ApiId"), apiId);
|
||||
}
|
||||
|
||||
|
||||
@@ -43,10 +43,10 @@ void DescribeApiLatencyDataResult::parse(const std::string &payload)
|
||||
for (auto valueCallLatencysMonitorItem : allCallLatencysNode)
|
||||
{
|
||||
MonitorItem callLatencysObject;
|
||||
if(!valueCallLatencysMonitorItem["ItemTime"].isNull())
|
||||
callLatencysObject.itemTime = valueCallLatencysMonitorItem["ItemTime"].asString();
|
||||
if(!valueCallLatencysMonitorItem["ItemValue"].isNull())
|
||||
callLatencysObject.itemValue = valueCallLatencysMonitorItem["ItemValue"].asString();
|
||||
if(!valueCallLatencysMonitorItem["ItemTime"].isNull())
|
||||
callLatencysObject.itemTime = valueCallLatencysMonitorItem["ItemTime"].asString();
|
||||
callLatencys_.push_back(callLatencysObject);
|
||||
}
|
||||
|
||||
|
||||
@@ -1,73 +1,63 @@
|
||||
/*
|
||||
* 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/DescribeApiMarketAttributesRequest.h>
|
||||
|
||||
using AlibabaCloud::CloudAPI::Model::DescribeApiMarketAttributesRequest;
|
||||
|
||||
DescribeApiMarketAttributesRequest::DescribeApiMarketAttributesRequest() :
|
||||
RpcServiceRequest("cloudapi", "2016-07-14", "DescribeApiMarketAttributes")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DescribeApiMarketAttributesRequest::~DescribeApiMarketAttributesRequest()
|
||||
{}
|
||||
|
||||
std::string DescribeApiMarketAttributesRequest::getGroupId()const
|
||||
{
|
||||
return groupId_;
|
||||
*/
|
||||
|
||||
#include <alibabacloud/cloudapi/model/DescribeApiMarketAttributesRequest.h>
|
||||
|
||||
using AlibabaCloud::CloudAPI::Model::DescribeApiMarketAttributesRequest;
|
||||
|
||||
DescribeApiMarketAttributesRequest::DescribeApiMarketAttributesRequest()
|
||||
: RpcServiceRequest("cloudapi", "2016-07-14", "DescribeApiMarketAttributes") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
void DescribeApiMarketAttributesRequest::setGroupId(const std::string& groupId)
|
||||
{
|
||||
groupId_ = groupId;
|
||||
setParameter("GroupId", groupId);
|
||||
DescribeApiMarketAttributesRequest::~DescribeApiMarketAttributesRequest() {}
|
||||
|
||||
std::string DescribeApiMarketAttributesRequest::getGroupId() const {
|
||||
return groupId_;
|
||||
}
|
||||
|
||||
std::string DescribeApiMarketAttributesRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
void DescribeApiMarketAttributesRequest::setGroupId(const std::string &groupId) {
|
||||
groupId_ = groupId;
|
||||
setParameter(std::string("GroupId"), groupId);
|
||||
}
|
||||
|
||||
void DescribeApiMarketAttributesRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter("AccessKeyId", accessKeyId);
|
||||
std::string DescribeApiMarketAttributesRequest::getAccessKeyId() const {
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
std::string DescribeApiMarketAttributesRequest::getSecurityToken()const
|
||||
{
|
||||
return securityToken_;
|
||||
void DescribeApiMarketAttributesRequest::setAccessKeyId(const std::string &accessKeyId) {
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter(std::string("AccessKeyId"), accessKeyId);
|
||||
}
|
||||
|
||||
void DescribeApiMarketAttributesRequest::setSecurityToken(const std::string& securityToken)
|
||||
{
|
||||
securityToken_ = securityToken;
|
||||
setParameter("SecurityToken", securityToken);
|
||||
std::string DescribeApiMarketAttributesRequest::getSecurityToken() const {
|
||||
return securityToken_;
|
||||
}
|
||||
|
||||
std::string DescribeApiMarketAttributesRequest::getApiId()const
|
||||
{
|
||||
return apiId_;
|
||||
void DescribeApiMarketAttributesRequest::setSecurityToken(const std::string &securityToken) {
|
||||
securityToken_ = securityToken;
|
||||
setParameter(std::string("SecurityToken"), securityToken);
|
||||
}
|
||||
|
||||
void DescribeApiMarketAttributesRequest::setApiId(const std::string& apiId)
|
||||
{
|
||||
apiId_ = apiId;
|
||||
setParameter("ApiId", apiId);
|
||||
std::string DescribeApiMarketAttributesRequest::getApiId() const {
|
||||
return apiId_;
|
||||
}
|
||||
|
||||
void DescribeApiMarketAttributesRequest::setApiId(const std::string &apiId) {
|
||||
apiId_ = apiId;
|
||||
setParameter(std::string("ApiId"), apiId);
|
||||
}
|
||||
|
||||
|
||||
@@ -41,10 +41,10 @@ void DescribeApiMarketAttributesResult::parse(const std::string &payload)
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["ApiId"].isNull())
|
||||
apiId_ = value["ApiId"].asString();
|
||||
if(!value["NeedCharging"].isNull())
|
||||
needCharging_ = value["NeedCharging"].asString();
|
||||
if(!value["MarketChargingMode"].isNull())
|
||||
marketChargingMode_ = value["MarketChargingMode"].asString();
|
||||
if(!value["NeedCharging"].isNull())
|
||||
needCharging_ = value["NeedCharging"].asString();
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -1,95 +1,90 @@
|
||||
/*
|
||||
* 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")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DescribeApiQpsDataRequest::~DescribeApiQpsDataRequest()
|
||||
{}
|
||||
|
||||
std::string DescribeApiQpsDataRequest::getGroupId()const
|
||||
{
|
||||
return groupId_;
|
||||
*/
|
||||
|
||||
#include <alibabacloud/cloudapi/model/DescribeApiQpsDataRequest.h>
|
||||
|
||||
using AlibabaCloud::CloudAPI::Model::DescribeApiQpsDataRequest;
|
||||
|
||||
DescribeApiQpsDataRequest::DescribeApiQpsDataRequest()
|
||||
: RpcServiceRequest("cloudapi", "2016-07-14", "DescribeApiQpsData") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
void DescribeApiQpsDataRequest::setGroupId(const std::string& groupId)
|
||||
{
|
||||
groupId_ = groupId;
|
||||
setParameter("GroupId", groupId);
|
||||
DescribeApiQpsDataRequest::~DescribeApiQpsDataRequest() {}
|
||||
|
||||
std::string DescribeApiQpsDataRequest::getStageName() const {
|
||||
return stageName_;
|
||||
}
|
||||
|
||||
std::string DescribeApiQpsDataRequest::getEndTime()const
|
||||
{
|
||||
return endTime_;
|
||||
void DescribeApiQpsDataRequest::setStageName(const std::string &stageName) {
|
||||
stageName_ = stageName;
|
||||
setParameter(std::string("StageName"), stageName);
|
||||
}
|
||||
|
||||
void DescribeApiQpsDataRequest::setEndTime(const std::string& endTime)
|
||||
{
|
||||
endTime_ = endTime;
|
||||
setParameter("EndTime", endTime);
|
||||
std::string DescribeApiQpsDataRequest::getGroupId() const {
|
||||
return groupId_;
|
||||
}
|
||||
|
||||
std::string DescribeApiQpsDataRequest::getStartTime()const
|
||||
{
|
||||
return startTime_;
|
||||
void DescribeApiQpsDataRequest::setGroupId(const std::string &groupId) {
|
||||
groupId_ = groupId;
|
||||
setParameter(std::string("GroupId"), groupId);
|
||||
}
|
||||
|
||||
void DescribeApiQpsDataRequest::setStartTime(const std::string& startTime)
|
||||
{
|
||||
startTime_ = startTime;
|
||||
setParameter("StartTime", startTime);
|
||||
std::string DescribeApiQpsDataRequest::getEndTime() const {
|
||||
return endTime_;
|
||||
}
|
||||
|
||||
std::string DescribeApiQpsDataRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
void DescribeApiQpsDataRequest::setEndTime(const std::string &endTime) {
|
||||
endTime_ = endTime;
|
||||
setParameter(std::string("EndTime"), endTime);
|
||||
}
|
||||
|
||||
void DescribeApiQpsDataRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter("AccessKeyId", accessKeyId);
|
||||
std::string DescribeApiQpsDataRequest::getStartTime() const {
|
||||
return startTime_;
|
||||
}
|
||||
|
||||
std::string DescribeApiQpsDataRequest::getSecurityToken()const
|
||||
{
|
||||
return securityToken_;
|
||||
void DescribeApiQpsDataRequest::setStartTime(const std::string &startTime) {
|
||||
startTime_ = startTime;
|
||||
setParameter(std::string("StartTime"), startTime);
|
||||
}
|
||||
|
||||
void DescribeApiQpsDataRequest::setSecurityToken(const std::string& securityToken)
|
||||
{
|
||||
securityToken_ = securityToken;
|
||||
setParameter("SecurityToken", securityToken);
|
||||
std::string DescribeApiQpsDataRequest::getAccessKeyId() const {
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
std::string DescribeApiQpsDataRequest::getApiId()const
|
||||
{
|
||||
return apiId_;
|
||||
void DescribeApiQpsDataRequest::setAccessKeyId(const std::string &accessKeyId) {
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter(std::string("AccessKeyId"), accessKeyId);
|
||||
}
|
||||
|
||||
void DescribeApiQpsDataRequest::setApiId(const std::string& apiId)
|
||||
{
|
||||
apiId_ = apiId;
|
||||
setParameter("ApiId", apiId);
|
||||
std::string DescribeApiQpsDataRequest::getSecurityToken() const {
|
||||
return securityToken_;
|
||||
}
|
||||
|
||||
void DescribeApiQpsDataRequest::setSecurityToken(const std::string &securityToken) {
|
||||
securityToken_ = securityToken;
|
||||
setParameter(std::string("SecurityToken"), securityToken);
|
||||
}
|
||||
|
||||
std::string DescribeApiQpsDataRequest::getApiId() const {
|
||||
return apiId_;
|
||||
}
|
||||
|
||||
void DescribeApiQpsDataRequest::setApiId(const std::string &apiId) {
|
||||
apiId_ = apiId;
|
||||
setParameter(std::string("ApiId"), apiId);
|
||||
}
|
||||
|
||||
|
||||
@@ -43,20 +43,20 @@ void DescribeApiQpsDataResult::parse(const std::string &payload)
|
||||
for (auto valueCallSuccessesMonitorItem : allCallSuccessesNode)
|
||||
{
|
||||
MonitorItem callSuccessesObject;
|
||||
if(!valueCallSuccessesMonitorItem["ItemTime"].isNull())
|
||||
callSuccessesObject.itemTime = valueCallSuccessesMonitorItem["ItemTime"].asString();
|
||||
if(!valueCallSuccessesMonitorItem["ItemValue"].isNull())
|
||||
callSuccessesObject.itemValue = valueCallSuccessesMonitorItem["ItemValue"].asString();
|
||||
if(!valueCallSuccessesMonitorItem["ItemTime"].isNull())
|
||||
callSuccessesObject.itemTime = valueCallSuccessesMonitorItem["ItemTime"].asString();
|
||||
callSuccesses_.push_back(callSuccessesObject);
|
||||
}
|
||||
auto allCallFailsNode = value["CallFails"]["MonitorItem"];
|
||||
for (auto valueCallFailsMonitorItem : allCallFailsNode)
|
||||
{
|
||||
MonitorItem callFailsObject;
|
||||
if(!valueCallFailsMonitorItem["ItemTime"].isNull())
|
||||
callFailsObject.itemTime = valueCallFailsMonitorItem["ItemTime"].asString();
|
||||
if(!valueCallFailsMonitorItem["ItemValue"].isNull())
|
||||
callFailsObject.itemValue = valueCallFailsMonitorItem["ItemValue"].asString();
|
||||
if(!valueCallFailsMonitorItem["ItemTime"].isNull())
|
||||
callFailsObject.itemTime = valueCallFailsMonitorItem["ItemTime"].asString();
|
||||
callFails_.push_back(callFailsObject);
|
||||
}
|
||||
|
||||
|
||||
@@ -1,84 +1,72 @@
|
||||
/*
|
||||
* 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")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DescribeApiRequest::~DescribeApiRequest()
|
||||
{}
|
||||
|
||||
std::string DescribeApiRequest::getGroupId()const
|
||||
{
|
||||
return groupId_;
|
||||
*/
|
||||
|
||||
#include <alibabacloud/cloudapi/model/DescribeApiRequest.h>
|
||||
|
||||
using AlibabaCloud::CloudAPI::Model::DescribeApiRequest;
|
||||
|
||||
DescribeApiRequest::DescribeApiRequest()
|
||||
: RpcServiceRequest("cloudapi", "2016-07-14", "DescribeApi") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
void DescribeApiRequest::setGroupId(const std::string& groupId)
|
||||
{
|
||||
groupId_ = groupId;
|
||||
setParameter("GroupId", groupId);
|
||||
DescribeApiRequest::~DescribeApiRequest() {}
|
||||
|
||||
std::string DescribeApiRequest::getGroupId() const {
|
||||
return groupId_;
|
||||
}
|
||||
|
||||
std::string DescribeApiRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
void DescribeApiRequest::setGroupId(const std::string &groupId) {
|
||||
groupId_ = groupId;
|
||||
setParameter(std::string("GroupId"), groupId);
|
||||
}
|
||||
|
||||
void DescribeApiRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter("AccessKeyId", accessKeyId);
|
||||
std::string DescribeApiRequest::getAccessKeyId() const {
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
std::string DescribeApiRequest::getResourceOwnerToken()const
|
||||
{
|
||||
return resourceOwnerToken_;
|
||||
void DescribeApiRequest::setAccessKeyId(const std::string &accessKeyId) {
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter(std::string("AccessKeyId"), accessKeyId);
|
||||
}
|
||||
|
||||
void DescribeApiRequest::setResourceOwnerToken(const std::string& resourceOwnerToken)
|
||||
{
|
||||
resourceOwnerToken_ = resourceOwnerToken;
|
||||
setParameter("ResourceOwnerToken", resourceOwnerToken);
|
||||
std::string DescribeApiRequest::getResourceOwnerToken() const {
|
||||
return resourceOwnerToken_;
|
||||
}
|
||||
|
||||
std::string DescribeApiRequest::getSecurityToken()const
|
||||
{
|
||||
return securityToken_;
|
||||
void DescribeApiRequest::setResourceOwnerToken(const std::string &resourceOwnerToken) {
|
||||
resourceOwnerToken_ = resourceOwnerToken;
|
||||
setParameter(std::string("ResourceOwnerToken"), resourceOwnerToken);
|
||||
}
|
||||
|
||||
void DescribeApiRequest::setSecurityToken(const std::string& securityToken)
|
||||
{
|
||||
securityToken_ = securityToken;
|
||||
setParameter("SecurityToken", securityToken);
|
||||
std::string DescribeApiRequest::getSecurityToken() const {
|
||||
return securityToken_;
|
||||
}
|
||||
|
||||
std::string DescribeApiRequest::getApiId()const
|
||||
{
|
||||
return apiId_;
|
||||
void DescribeApiRequest::setSecurityToken(const std::string &securityToken) {
|
||||
securityToken_ = securityToken;
|
||||
setParameter(std::string("SecurityToken"), securityToken);
|
||||
}
|
||||
|
||||
void DescribeApiRequest::setApiId(const std::string& apiId)
|
||||
{
|
||||
apiId_ = apiId;
|
||||
setParameter("ApiId", apiId);
|
||||
std::string DescribeApiRequest::getApiId() const {
|
||||
return apiId_;
|
||||
}
|
||||
|
||||
void DescribeApiRequest::setApiId(const std::string &apiId) {
|
||||
apiId_ = apiId;
|
||||
setParameter(std::string("ApiId"), apiId);
|
||||
}
|
||||
|
||||
|
||||
@@ -45,142 +45,142 @@ void DescribeApiResult::parse(const std::string &payload)
|
||||
ErrorCodeSample errorCodeSamplesObject;
|
||||
if(!valueErrorCodeSamplesErrorCodeSample["Code"].isNull())
|
||||
errorCodeSamplesObject.code = valueErrorCodeSamplesErrorCodeSample["Code"].asString();
|
||||
if(!valueErrorCodeSamplesErrorCodeSample["Model"].isNull())
|
||||
errorCodeSamplesObject.model = valueErrorCodeSamplesErrorCodeSample["Model"].asString();
|
||||
if(!valueErrorCodeSamplesErrorCodeSample["Message"].isNull())
|
||||
errorCodeSamplesObject.message = valueErrorCodeSamplesErrorCodeSample["Message"].asString();
|
||||
if(!valueErrorCodeSamplesErrorCodeSample["Description"].isNull())
|
||||
errorCodeSamplesObject.description = valueErrorCodeSamplesErrorCodeSample["Description"].asString();
|
||||
if(!valueErrorCodeSamplesErrorCodeSample["Model"].isNull())
|
||||
errorCodeSamplesObject.model = valueErrorCodeSamplesErrorCodeSample["Model"].asString();
|
||||
errorCodeSamples_.push_back(errorCodeSamplesObject);
|
||||
}
|
||||
auto allResultDescriptionsNode = value["ResultDescriptions"]["ResultDescription"];
|
||||
for (auto valueResultDescriptionsResultDescription : allResultDescriptionsNode)
|
||||
{
|
||||
ResultDescription resultDescriptionsObject;
|
||||
if(!valueResultDescriptionsResultDescription["Id"].isNull())
|
||||
resultDescriptionsObject.id = valueResultDescriptionsResultDescription["Id"].asString();
|
||||
if(!valueResultDescriptionsResultDescription["Pid"].isNull())
|
||||
resultDescriptionsObject.pid = valueResultDescriptionsResultDescription["Pid"].asString();
|
||||
if(!valueResultDescriptionsResultDescription["HasChild"].isNull())
|
||||
resultDescriptionsObject.hasChild = valueResultDescriptionsResultDescription["HasChild"].asString() == "true";
|
||||
if(!valueResultDescriptionsResultDescription["Key"].isNull())
|
||||
resultDescriptionsObject.key = valueResultDescriptionsResultDescription["Key"].asString();
|
||||
if(!valueResultDescriptionsResultDescription["Name"].isNull())
|
||||
resultDescriptionsObject.name = valueResultDescriptionsResultDescription["Name"].asString();
|
||||
if(!valueResultDescriptionsResultDescription["Mandatory"].isNull())
|
||||
resultDescriptionsObject.mandatory = valueResultDescriptionsResultDescription["Mandatory"].asString() == "true";
|
||||
if(!valueResultDescriptionsResultDescription["Type"].isNull())
|
||||
resultDescriptionsObject.type = valueResultDescriptionsResultDescription["Type"].asString();
|
||||
if(!valueResultDescriptionsResultDescription["Key"].isNull())
|
||||
resultDescriptionsObject.key = valueResultDescriptionsResultDescription["Key"].asString();
|
||||
if(!valueResultDescriptionsResultDescription["HasChild"].isNull())
|
||||
resultDescriptionsObject.hasChild = valueResultDescriptionsResultDescription["HasChild"].asString() == "true";
|
||||
if(!valueResultDescriptionsResultDescription["Description"].isNull())
|
||||
resultDescriptionsObject.description = valueResultDescriptionsResultDescription["Description"].asString();
|
||||
if(!valueResultDescriptionsResultDescription["Pid"].isNull())
|
||||
resultDescriptionsObject.pid = valueResultDescriptionsResultDescription["Pid"].asString();
|
||||
if(!valueResultDescriptionsResultDescription["Mandatory"].isNull())
|
||||
resultDescriptionsObject.mandatory = valueResultDescriptionsResultDescription["Mandatory"].asString() == "true";
|
||||
if(!valueResultDescriptionsResultDescription["Name"].isNull())
|
||||
resultDescriptionsObject.name = valueResultDescriptionsResultDescription["Name"].asString();
|
||||
if(!valueResultDescriptionsResultDescription["Id"].isNull())
|
||||
resultDescriptionsObject.id = valueResultDescriptionsResultDescription["Id"].asString();
|
||||
resultDescriptions_.push_back(resultDescriptionsObject);
|
||||
}
|
||||
auto allSystemParametersNode = value["SystemParameters"]["SystemParameter"];
|
||||
for (auto valueSystemParametersSystemParameter : allSystemParametersNode)
|
||||
{
|
||||
SystemParameter systemParametersObject;
|
||||
if(!valueSystemParametersSystemParameter["ParameterName"].isNull())
|
||||
systemParametersObject.parameterName = valueSystemParametersSystemParameter["ParameterName"].asString();
|
||||
if(!valueSystemParametersSystemParameter["ServiceParameterName"].isNull())
|
||||
systemParametersObject.serviceParameterName = valueSystemParametersSystemParameter["ServiceParameterName"].asString();
|
||||
if(!valueSystemParametersSystemParameter["Location"].isNull())
|
||||
systemParametersObject.location = valueSystemParametersSystemParameter["Location"].asString();
|
||||
if(!valueSystemParametersSystemParameter["DemoValue"].isNull())
|
||||
systemParametersObject.demoValue = valueSystemParametersSystemParameter["DemoValue"].asString();
|
||||
if(!valueSystemParametersSystemParameter["Description"].isNull())
|
||||
systemParametersObject.description = valueSystemParametersSystemParameter["Description"].asString();
|
||||
if(!valueSystemParametersSystemParameter["ParameterName"].isNull())
|
||||
systemParametersObject.parameterName = valueSystemParametersSystemParameter["ParameterName"].asString();
|
||||
if(!valueSystemParametersSystemParameter["Location"].isNull())
|
||||
systemParametersObject.location = valueSystemParametersSystemParameter["Location"].asString();
|
||||
if(!valueSystemParametersSystemParameter["ServiceParameterName"].isNull())
|
||||
systemParametersObject.serviceParameterName = valueSystemParametersSystemParameter["ServiceParameterName"].asString();
|
||||
systemParameters_.push_back(systemParametersObject);
|
||||
}
|
||||
auto allCustomSystemParametersNode = value["CustomSystemParameters"]["CustomSystemParameter"];
|
||||
for (auto valueCustomSystemParametersCustomSystemParameter : allCustomSystemParametersNode)
|
||||
{
|
||||
CustomSystemParameter customSystemParametersObject;
|
||||
if(!valueCustomSystemParametersCustomSystemParameter["ParameterName"].isNull())
|
||||
customSystemParametersObject.parameterName = valueCustomSystemParametersCustomSystemParameter["ParameterName"].asString();
|
||||
if(!valueCustomSystemParametersCustomSystemParameter["ServiceParameterName"].isNull())
|
||||
customSystemParametersObject.serviceParameterName = valueCustomSystemParametersCustomSystemParameter["ServiceParameterName"].asString();
|
||||
if(!valueCustomSystemParametersCustomSystemParameter["Location"].isNull())
|
||||
customSystemParametersObject.location = valueCustomSystemParametersCustomSystemParameter["Location"].asString();
|
||||
if(!valueCustomSystemParametersCustomSystemParameter["DemoValue"].isNull())
|
||||
customSystemParametersObject.demoValue = valueCustomSystemParametersCustomSystemParameter["DemoValue"].asString();
|
||||
if(!valueCustomSystemParametersCustomSystemParameter["Description"].isNull())
|
||||
customSystemParametersObject.description = valueCustomSystemParametersCustomSystemParameter["Description"].asString();
|
||||
if(!valueCustomSystemParametersCustomSystemParameter["ParameterName"].isNull())
|
||||
customSystemParametersObject.parameterName = valueCustomSystemParametersCustomSystemParameter["ParameterName"].asString();
|
||||
if(!valueCustomSystemParametersCustomSystemParameter["Location"].isNull())
|
||||
customSystemParametersObject.location = valueCustomSystemParametersCustomSystemParameter["Location"].asString();
|
||||
if(!valueCustomSystemParametersCustomSystemParameter["ServiceParameterName"].isNull())
|
||||
customSystemParametersObject.serviceParameterName = valueCustomSystemParametersCustomSystemParameter["ServiceParameterName"].asString();
|
||||
customSystemParameters_.push_back(customSystemParametersObject);
|
||||
}
|
||||
auto allConstantParametersNode = value["ConstantParameters"]["ConstantParameter"];
|
||||
for (auto valueConstantParametersConstantParameter : allConstantParametersNode)
|
||||
{
|
||||
ConstantParameter constantParametersObject;
|
||||
if(!valueConstantParametersConstantParameter["Description"].isNull())
|
||||
constantParametersObject.description = valueConstantParametersConstantParameter["Description"].asString();
|
||||
if(!valueConstantParametersConstantParameter["Location"].isNull())
|
||||
constantParametersObject.location = valueConstantParametersConstantParameter["Location"].asString();
|
||||
if(!valueConstantParametersConstantParameter["ServiceParameterName"].isNull())
|
||||
constantParametersObject.serviceParameterName = valueConstantParametersConstantParameter["ServiceParameterName"].asString();
|
||||
if(!valueConstantParametersConstantParameter["ConstantValue"].isNull())
|
||||
constantParametersObject.constantValue = valueConstantParametersConstantParameter["ConstantValue"].asString();
|
||||
if(!valueConstantParametersConstantParameter["Location"].isNull())
|
||||
constantParametersObject.location = valueConstantParametersConstantParameter["Location"].asString();
|
||||
if(!valueConstantParametersConstantParameter["Description"].isNull())
|
||||
constantParametersObject.description = valueConstantParametersConstantParameter["Description"].asString();
|
||||
constantParameters_.push_back(constantParametersObject);
|
||||
}
|
||||
auto allRequestParametersNode = value["RequestParameters"]["RequestParameter"];
|
||||
for (auto valueRequestParametersRequestParameter : allRequestParametersNode)
|
||||
{
|
||||
RequestParameter requestParametersObject;
|
||||
if(!valueRequestParametersRequestParameter["ApiParameterName"].isNull())
|
||||
requestParametersObject.apiParameterName = valueRequestParametersRequestParameter["ApiParameterName"].asString();
|
||||
if(!valueRequestParametersRequestParameter["Location"].isNull())
|
||||
requestParametersObject.location = valueRequestParametersRequestParameter["Location"].asString();
|
||||
if(!valueRequestParametersRequestParameter["ParameterType"].isNull())
|
||||
requestParametersObject.parameterType = valueRequestParametersRequestParameter["ParameterType"].asString();
|
||||
if(!valueRequestParametersRequestParameter["Required"].isNull())
|
||||
requestParametersObject.required = valueRequestParametersRequestParameter["Required"].asString();
|
||||
if(!valueRequestParametersRequestParameter["DefaultValue"].isNull())
|
||||
requestParametersObject.defaultValue = valueRequestParametersRequestParameter["DefaultValue"].asString();
|
||||
if(!valueRequestParametersRequestParameter["DemoValue"].isNull())
|
||||
requestParametersObject.demoValue = valueRequestParametersRequestParameter["DemoValue"].asString();
|
||||
if(!valueRequestParametersRequestParameter["MaxValue"].isNull())
|
||||
requestParametersObject.maxValue = std::stol(valueRequestParametersRequestParameter["MaxValue"].asString());
|
||||
if(!valueRequestParametersRequestParameter["MinValue"].isNull())
|
||||
requestParametersObject.minValue = std::stol(valueRequestParametersRequestParameter["MinValue"].asString());
|
||||
if(!valueRequestParametersRequestParameter["MaxLength"].isNull())
|
||||
requestParametersObject.maxLength = std::stol(valueRequestParametersRequestParameter["MaxLength"].asString());
|
||||
if(!valueRequestParametersRequestParameter["MinLength"].isNull())
|
||||
requestParametersObject.minLength = std::stol(valueRequestParametersRequestParameter["MinLength"].asString());
|
||||
if(!valueRequestParametersRequestParameter["RegularExpression"].isNull())
|
||||
requestParametersObject.regularExpression = valueRequestParametersRequestParameter["RegularExpression"].asString();
|
||||
if(!valueRequestParametersRequestParameter["JsonScheme"].isNull())
|
||||
requestParametersObject.jsonScheme = valueRequestParametersRequestParameter["JsonScheme"].asString();
|
||||
if(!valueRequestParametersRequestParameter["EnumValue"].isNull())
|
||||
requestParametersObject.enumValue = valueRequestParametersRequestParameter["EnumValue"].asString();
|
||||
if(!valueRequestParametersRequestParameter["DocShow"].isNull())
|
||||
requestParametersObject.docShow = valueRequestParametersRequestParameter["DocShow"].asString();
|
||||
if(!valueRequestParametersRequestParameter["DocOrder"].isNull())
|
||||
requestParametersObject.docOrder = std::stoi(valueRequestParametersRequestParameter["DocOrder"].asString());
|
||||
if(!valueRequestParametersRequestParameter["Description"].isNull())
|
||||
requestParametersObject.description = valueRequestParametersRequestParameter["Description"].asString();
|
||||
if(!valueRequestParametersRequestParameter["MaxValue"].isNull())
|
||||
requestParametersObject.maxValue = std::stol(valueRequestParametersRequestParameter["MaxValue"].asString());
|
||||
if(!valueRequestParametersRequestParameter["ArrayItemsType"].isNull())
|
||||
requestParametersObject.arrayItemsType = valueRequestParametersRequestParameter["ArrayItemsType"].asString();
|
||||
if(!valueRequestParametersRequestParameter["MinValue"].isNull())
|
||||
requestParametersObject.minValue = std::stol(valueRequestParametersRequestParameter["MinValue"].asString());
|
||||
if(!valueRequestParametersRequestParameter["DocShow"].isNull())
|
||||
requestParametersObject.docShow = valueRequestParametersRequestParameter["DocShow"].asString();
|
||||
if(!valueRequestParametersRequestParameter["MaxLength"].isNull())
|
||||
requestParametersObject.maxLength = std::stol(valueRequestParametersRequestParameter["MaxLength"].asString());
|
||||
if(!valueRequestParametersRequestParameter["DefaultValue"].isNull())
|
||||
requestParametersObject.defaultValue = valueRequestParametersRequestParameter["DefaultValue"].asString();
|
||||
if(!valueRequestParametersRequestParameter["ApiParameterName"].isNull())
|
||||
requestParametersObject.apiParameterName = valueRequestParametersRequestParameter["ApiParameterName"].asString();
|
||||
if(!valueRequestParametersRequestParameter["EnumValue"].isNull())
|
||||
requestParametersObject.enumValue = valueRequestParametersRequestParameter["EnumValue"].asString();
|
||||
if(!valueRequestParametersRequestParameter["DemoValue"].isNull())
|
||||
requestParametersObject.demoValue = valueRequestParametersRequestParameter["DemoValue"].asString();
|
||||
if(!valueRequestParametersRequestParameter["Required"].isNull())
|
||||
requestParametersObject.required = valueRequestParametersRequestParameter["Required"].asString();
|
||||
if(!valueRequestParametersRequestParameter["Description"].isNull())
|
||||
requestParametersObject.description = valueRequestParametersRequestParameter["Description"].asString();
|
||||
if(!valueRequestParametersRequestParameter["ParameterType"].isNull())
|
||||
requestParametersObject.parameterType = valueRequestParametersRequestParameter["ParameterType"].asString();
|
||||
if(!valueRequestParametersRequestParameter["RegularExpression"].isNull())
|
||||
requestParametersObject.regularExpression = valueRequestParametersRequestParameter["RegularExpression"].asString();
|
||||
if(!valueRequestParametersRequestParameter["MinLength"].isNull())
|
||||
requestParametersObject.minLength = std::stol(valueRequestParametersRequestParameter["MinLength"].asString());
|
||||
if(!valueRequestParametersRequestParameter["DocOrder"].isNull())
|
||||
requestParametersObject.docOrder = std::stoi(valueRequestParametersRequestParameter["DocOrder"].asString());
|
||||
if(!valueRequestParametersRequestParameter["Location"].isNull())
|
||||
requestParametersObject.location = valueRequestParametersRequestParameter["Location"].asString();
|
||||
requestParameters_.push_back(requestParametersObject);
|
||||
}
|
||||
auto allServiceParametersNode = value["ServiceParameters"]["ServiceParameter"];
|
||||
for (auto valueServiceParametersServiceParameter : allServiceParametersNode)
|
||||
{
|
||||
ServiceParameter serviceParametersObject;
|
||||
if(!valueServiceParametersServiceParameter["ServiceParameterName"].isNull())
|
||||
serviceParametersObject.serviceParameterName = valueServiceParametersServiceParameter["ServiceParameterName"].asString();
|
||||
if(!valueServiceParametersServiceParameter["Location"].isNull())
|
||||
serviceParametersObject.location = valueServiceParametersServiceParameter["Location"].asString();
|
||||
if(!valueServiceParametersServiceParameter["ParameterType"].isNull())
|
||||
serviceParametersObject.parameterType = valueServiceParametersServiceParameter["ParameterType"].asString();
|
||||
if(!valueServiceParametersServiceParameter["ServiceParameterName"].isNull())
|
||||
serviceParametersObject.serviceParameterName = valueServiceParametersServiceParameter["ServiceParameterName"].asString();
|
||||
serviceParameters_.push_back(serviceParametersObject);
|
||||
}
|
||||
auto allServiceParametersMapNode = value["ServiceParametersMap"]["ServiceParameterMap"];
|
||||
for (auto valueServiceParametersMapServiceParameterMap : allServiceParametersMapNode)
|
||||
{
|
||||
ServiceParameterMap serviceParametersMapObject;
|
||||
if(!valueServiceParametersMapServiceParameterMap["ServiceParameterName"].isNull())
|
||||
serviceParametersMapObject.serviceParameterName = valueServiceParametersMapServiceParameterMap["ServiceParameterName"].asString();
|
||||
if(!valueServiceParametersMapServiceParameterMap["RequestParameterName"].isNull())
|
||||
serviceParametersMapObject.requestParameterName = valueServiceParametersMapServiceParameterMap["RequestParameterName"].asString();
|
||||
if(!valueServiceParametersMapServiceParameterMap["ServiceParameterName"].isNull())
|
||||
serviceParametersMapObject.serviceParameterName = valueServiceParametersMapServiceParameterMap["ServiceParameterName"].asString();
|
||||
serviceParametersMap_.push_back(serviceParametersMapObject);
|
||||
}
|
||||
auto allDeployedInfosNode = value["DeployedInfos"]["DeployedInfo"];
|
||||
@@ -195,74 +195,117 @@ void DescribeApiResult::parse(const std::string &payload)
|
||||
deployedInfosObject.deployedStatus = valueDeployedInfosDeployedInfo["DeployedStatus"].asString();
|
||||
deployedInfos_.push_back(deployedInfosObject);
|
||||
}
|
||||
auto backendConfigNode = value["BackendConfig"];
|
||||
if(!backendConfigNode["BackendId"].isNull())
|
||||
backendConfig_.backendId = backendConfigNode["BackendId"].asString();
|
||||
if(!backendConfigNode["BackendType"].isNull())
|
||||
backendConfig_.backendType = backendConfigNode["BackendType"].asString();
|
||||
if(!backendConfigNode["BackendName"].isNull())
|
||||
backendConfig_.backendName = backendConfigNode["BackendName"].asString();
|
||||
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();
|
||||
if(!requestConfigNode["RequestPath"].isNull())
|
||||
requestConfig_.requestPath = requestConfigNode["RequestPath"].asString();
|
||||
if(!requestConfigNode["RequestHttpMethod"].isNull())
|
||||
requestConfig_.requestHttpMethod = requestConfigNode["RequestHttpMethod"].asString();
|
||||
if(!requestConfigNode["BodyFormat"].isNull())
|
||||
requestConfig_.bodyFormat = requestConfigNode["BodyFormat"].asString();
|
||||
if(!requestConfigNode["RequestMode"].isNull())
|
||||
requestConfig_.requestMode = requestConfigNode["RequestMode"].asString();
|
||||
if(!requestConfigNode["PostBodyDescription"].isNull())
|
||||
requestConfig_.postBodyDescription = requestConfigNode["PostBodyDescription"].asString();
|
||||
if(!requestConfigNode["RequestProtocol"].isNull())
|
||||
requestConfig_.requestProtocol = requestConfigNode["RequestProtocol"].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());
|
||||
if(!serviceConfigNode["ContentTypeValue"].isNull())
|
||||
serviceConfig_.contentTypeValue = serviceConfigNode["ContentTypeValue"].asString();
|
||||
if(!serviceConfigNode["ServiceProtocol"].isNull())
|
||||
serviceConfig_.serviceProtocol = serviceConfigNode["ServiceProtocol"].asString();
|
||||
if(!serviceConfigNode["ServicePath"].isNull())
|
||||
serviceConfig_.servicePath = serviceConfigNode["ServicePath"].asString();
|
||||
if(!serviceConfigNode["ContentTypeCatagory"].isNull())
|
||||
serviceConfig_.contentTypeCatagory = serviceConfigNode["ContentTypeCatagory"].asString();
|
||||
if(!serviceConfigNode["ServiceAddress"].isNull())
|
||||
serviceConfig_.serviceAddress = serviceConfigNode["ServiceAddress"].asString();
|
||||
if(!serviceConfigNode["Mock"].isNull())
|
||||
serviceConfig_.mock = serviceConfigNode["Mock"].asString();
|
||||
if(!serviceConfigNode["ServiceVpcEnable"].isNull())
|
||||
serviceConfig_.serviceVpcEnable = serviceConfigNode["ServiceVpcEnable"].asString();
|
||||
if(!serviceConfigNode["MockResult"].isNull())
|
||||
serviceConfig_.mockResult = serviceConfigNode["MockResult"].asString();
|
||||
if(!serviceConfigNode["ServiceHttpMethod"].isNull())
|
||||
serviceConfig_.serviceHttpMethod = serviceConfigNode["ServiceHttpMethod"].asString();
|
||||
if(!serviceConfigNode["ServiceTimeout"].isNull())
|
||||
serviceConfig_.serviceTimeout = std::stoi(serviceConfigNode["ServiceTimeout"].asString());
|
||||
auto allMockHeadersNode = serviceConfigNode["MockHeaders"]["MockHeader"];
|
||||
for (auto serviceConfigNodeMockHeadersMockHeader : allMockHeadersNode)
|
||||
{
|
||||
ServiceConfig::MockHeader mockHeaderObject;
|
||||
if(!serviceConfigNodeMockHeadersMockHeader["HeaderName"].isNull())
|
||||
mockHeaderObject.headerName = serviceConfigNodeMockHeadersMockHeader["HeaderName"].asString();
|
||||
if(!serviceConfigNodeMockHeadersMockHeader["HeaderValue"].isNull())
|
||||
mockHeaderObject.headerValue = serviceConfigNodeMockHeadersMockHeader["HeaderValue"].asString();
|
||||
if(!serviceConfigNodeMockHeadersMockHeader["HeaderName"].isNull())
|
||||
mockHeaderObject.headerName = serviceConfigNodeMockHeadersMockHeader["HeaderName"].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["VpcScheme"].isNull())
|
||||
serviceConfig_.vpcConfig.vpcScheme = vpcConfigNode["VpcScheme"].asString();
|
||||
if(!vpcConfigNode["InstanceId"].isNull())
|
||||
serviceConfig_.vpcConfig.instanceId = vpcConfigNode["InstanceId"].asString();
|
||||
if(!vpcConfigNode["Port"].isNull())
|
||||
serviceConfig_.vpcConfig.port = std::stoi(vpcConfigNode["Port"].asString());
|
||||
if(!vpcConfigNode["Name"].isNull())
|
||||
serviceConfig_.vpcConfig.name = vpcConfigNode["Name"].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["FcType"].isNull())
|
||||
serviceConfig_.functionComputeConfig.fcType = functionComputeConfigNode["FcType"].asString();
|
||||
if(!functionComputeConfigNode["RoleArn"].isNull())
|
||||
serviceConfig_.functionComputeConfig.roleArn = functionComputeConfigNode["RoleArn"].asString();
|
||||
if(!functionComputeConfigNode["Method"].isNull())
|
||||
serviceConfig_.functionComputeConfig.method = functionComputeConfigNode["Method"].asString();
|
||||
if(!functionComputeConfigNode["FcBaseUrl"].isNull())
|
||||
serviceConfig_.functionComputeConfig.fcBaseUrl = functionComputeConfigNode["FcBaseUrl"].asString();
|
||||
if(!functionComputeConfigNode["ContentTypeValue"].isNull())
|
||||
serviceConfig_.functionComputeConfig.contentTypeValue = functionComputeConfigNode["ContentTypeValue"].asString();
|
||||
if(!functionComputeConfigNode["RegionId"].isNull())
|
||||
serviceConfig_.functionComputeConfig.regionId = functionComputeConfigNode["RegionId"].asString();
|
||||
if(!functionComputeConfigNode["OnlyBusinessPath"].isNull())
|
||||
serviceConfig_.functionComputeConfig.onlyBusinessPath = functionComputeConfigNode["OnlyBusinessPath"].asString() == "true";
|
||||
if(!functionComputeConfigNode["FunctionName"].isNull())
|
||||
serviceConfig_.functionComputeConfig.functionName = functionComputeConfigNode["FunctionName"].asString();
|
||||
if(!functionComputeConfigNode["ContentTypeCatagory"].isNull())
|
||||
serviceConfig_.functionComputeConfig.contentTypeCatagory = functionComputeConfigNode["ContentTypeCatagory"].asString();
|
||||
if(!functionComputeConfigNode["Path"].isNull())
|
||||
serviceConfig_.functionComputeConfig.path = functionComputeConfigNode["Path"].asString();
|
||||
if(!functionComputeConfigNode["ServiceName"].isNull())
|
||||
serviceConfig_.functionComputeConfig.serviceName = functionComputeConfigNode["ServiceName"].asString();
|
||||
if(!functionComputeConfigNode["Qualifier"].isNull())
|
||||
serviceConfig_.functionComputeConfig.qualifier = functionComputeConfigNode["Qualifier"].asString();
|
||||
auto ossConfigNode = serviceConfigNode["OssConfig"];
|
||||
if(!ossConfigNode["Key"].isNull())
|
||||
serviceConfig_.ossConfig.key = ossConfigNode["Key"].asString();
|
||||
if(!ossConfigNode["Action"].isNull())
|
||||
serviceConfig_.ossConfig.action = ossConfigNode["Action"].asString();
|
||||
if(!ossConfigNode["OssRegionId"].isNull())
|
||||
serviceConfig_.ossConfig.ossRegionId = ossConfigNode["OssRegionId"].asString();
|
||||
if(!ossConfigNode["BucketName"].isNull())
|
||||
serviceConfig_.ossConfig.bucketName = ossConfigNode["BucketName"].asString();
|
||||
auto eventBridgeConfigNode = serviceConfigNode["EventBridgeConfig"];
|
||||
if(!eventBridgeConfigNode["EventBus"].isNull())
|
||||
serviceConfig_.eventBridgeConfig.eventBus = eventBridgeConfigNode["EventBus"].asString();
|
||||
if(!eventBridgeConfigNode["EventSource"].isNull())
|
||||
serviceConfig_.eventBridgeConfig.eventSource = eventBridgeConfigNode["EventSource"].asString();
|
||||
if(!eventBridgeConfigNode["EventBridgeRegionId"].isNull())
|
||||
serviceConfig_.eventBridgeConfig.eventBridgeRegionId = eventBridgeConfigNode["EventBridgeRegionId"].asString();
|
||||
if(!eventBridgeConfigNode["RoleArn"].isNull())
|
||||
serviceConfig_.eventBridgeConfig.roleArn = eventBridgeConfigNode["RoleArn"].asString();
|
||||
auto openIdConnectConfigNode = value["OpenIdConnectConfig"];
|
||||
if(!openIdConnectConfigNode["OpenIdApiType"].isNull())
|
||||
openIdConnectConfig_.openIdApiType = openIdConnectConfigNode["OpenIdApiType"].asString();
|
||||
@@ -272,48 +315,50 @@ void DescribeApiResult::parse(const std::string &payload)
|
||||
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["WebSocketApiType"].isNull())
|
||||
webSocketApiType_ = value["WebSocketApiType"].asString();
|
||||
if(!value["DisableInternet"].isNull())
|
||||
disableInternet_ = value["DisableInternet"].asString() == "true";
|
||||
if(!value["ResultBodyModel"].isNull())
|
||||
resultBodyModel_ = value["ResultBodyModel"].asString();
|
||||
if(!value["ResultSample"].isNull())
|
||||
resultSample_ = value["ResultSample"].asString();
|
||||
if(!value["AppCodeAuthType"].isNull())
|
||||
appCodeAuthType_ = value["AppCodeAuthType"].asString();
|
||||
if(!value["AllowSignatureMethod"].isNull())
|
||||
allowSignatureMethod_ = value["AllowSignatureMethod"].asString();
|
||||
if(!value["RegionId"].isNull())
|
||||
regionId_ = value["RegionId"].asString();
|
||||
if(!value["ForceNonceCheck"].isNull())
|
||||
forceNonceCheck_ = value["ForceNonceCheck"].asString() == "true";
|
||||
if(!value["Visibility"].isNull())
|
||||
visibility_ = value["Visibility"].asString();
|
||||
if(!value["FailResultSample"].isNull())
|
||||
failResultSample_ = value["FailResultSample"].asString();
|
||||
if(!value["CreatedTime"].isNull())
|
||||
createdTime_ = value["CreatedTime"].asString();
|
||||
if(!value["AuthType"].isNull())
|
||||
authType_ = value["AuthType"].asString();
|
||||
if(!value["ModifiedTime"].isNull())
|
||||
modifiedTime_ = value["ModifiedTime"].asString();
|
||||
if(!value["Description"].isNull())
|
||||
description_ = value["Description"].asString();
|
||||
if(!value["GroupName"].isNull())
|
||||
groupName_ = value["GroupName"].asString();
|
||||
if(!value["GroupId"].isNull())
|
||||
groupId_ = value["GroupId"].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";
|
||||
if(!value["AppCodeAuthType"].isNull())
|
||||
appCodeAuthType_ = value["AppCodeAuthType"].asString();
|
||||
if(!value["CreatedTime"].isNull())
|
||||
createdTime_ = value["CreatedTime"].asString();
|
||||
if(!value["ApiName"].isNull())
|
||||
apiName_ = value["ApiName"].asString();
|
||||
if(!value["BackendEnable"].isNull())
|
||||
backendEnable_ = value["BackendEnable"].asString() == "true";
|
||||
|
||||
}
|
||||
|
||||
@@ -322,16 +367,16 @@ std::string DescribeApiResult::getGroupName()const
|
||||
return groupName_;
|
||||
}
|
||||
|
||||
std::string DescribeApiResult::getCreatedTime()const
|
||||
{
|
||||
return createdTime_;
|
||||
}
|
||||
|
||||
std::string DescribeApiResult::getDescription()const
|
||||
{
|
||||
return description_;
|
||||
}
|
||||
|
||||
std::string DescribeApiResult::getCreatedTime()const
|
||||
{
|
||||
return createdTime_;
|
||||
}
|
||||
|
||||
std::vector<DescribeApiResult::DeployedInfo> DescribeApiResult::getDeployedInfos()const
|
||||
{
|
||||
return deployedInfos_;
|
||||
@@ -402,6 +447,11 @@ std::vector<DescribeApiResult::ResultDescription> DescribeApiResult::getResultDe
|
||||
return resultDescriptions_;
|
||||
}
|
||||
|
||||
DescribeApiResult::BackendConfig DescribeApiResult::getBackendConfig()const
|
||||
{
|
||||
return backendConfig_;
|
||||
}
|
||||
|
||||
DescribeApiResult::OpenIdConnectConfig DescribeApiResult::getOpenIdConnectConfig()const
|
||||
{
|
||||
return openIdConnectConfig_;
|
||||
@@ -457,6 +507,11 @@ std::string DescribeApiResult::getGroupId()const
|
||||
return groupId_;
|
||||
}
|
||||
|
||||
bool DescribeApiResult::getBackendEnable()const
|
||||
{
|
||||
return backendEnable_;
|
||||
}
|
||||
|
||||
std::vector<DescribeApiResult::SystemParameter> DescribeApiResult::getSystemParameters()const
|
||||
{
|
||||
return systemParameters_;
|
||||
|
||||
@@ -1,106 +1,90 @@
|
||||
/*
|
||||
* 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")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DescribeApiSignaturesRequest::~DescribeApiSignaturesRequest()
|
||||
{}
|
||||
|
||||
std::string DescribeApiSignaturesRequest::getStageName()const
|
||||
{
|
||||
return stageName_;
|
||||
*/
|
||||
|
||||
#include <alibabacloud/cloudapi/model/DescribeApiSignaturesRequest.h>
|
||||
|
||||
using AlibabaCloud::CloudAPI::Model::DescribeApiSignaturesRequest;
|
||||
|
||||
DescribeApiSignaturesRequest::DescribeApiSignaturesRequest()
|
||||
: RpcServiceRequest("cloudapi", "2016-07-14", "DescribeApiSignatures") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
void DescribeApiSignaturesRequest::setStageName(const std::string& stageName)
|
||||
{
|
||||
stageName_ = stageName;
|
||||
setParameter("StageName", stageName);
|
||||
DescribeApiSignaturesRequest::~DescribeApiSignaturesRequest() {}
|
||||
|
||||
std::string DescribeApiSignaturesRequest::getStageName() const {
|
||||
return stageName_;
|
||||
}
|
||||
|
||||
std::string DescribeApiSignaturesRequest::getGroupId()const
|
||||
{
|
||||
return groupId_;
|
||||
void DescribeApiSignaturesRequest::setStageName(const std::string &stageName) {
|
||||
stageName_ = stageName;
|
||||
setParameter(std::string("StageName"), stageName);
|
||||
}
|
||||
|
||||
void DescribeApiSignaturesRequest::setGroupId(const std::string& groupId)
|
||||
{
|
||||
groupId_ = groupId;
|
||||
setParameter("GroupId", groupId);
|
||||
std::string DescribeApiSignaturesRequest::getGroupId() const {
|
||||
return groupId_;
|
||||
}
|
||||
|
||||
int DescribeApiSignaturesRequest::getPageNumber()const
|
||||
{
|
||||
return pageNumber_;
|
||||
void DescribeApiSignaturesRequest::setGroupId(const std::string &groupId) {
|
||||
groupId_ = groupId;
|
||||
setParameter(std::string("GroupId"), groupId);
|
||||
}
|
||||
|
||||
void DescribeApiSignaturesRequest::setPageNumber(int pageNumber)
|
||||
{
|
||||
pageNumber_ = pageNumber;
|
||||
setParameter("PageNumber", std::to_string(pageNumber));
|
||||
int DescribeApiSignaturesRequest::getPageNumber() const {
|
||||
return pageNumber_;
|
||||
}
|
||||
|
||||
std::string DescribeApiSignaturesRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
void DescribeApiSignaturesRequest::setPageNumber(int pageNumber) {
|
||||
pageNumber_ = pageNumber;
|
||||
setParameter(std::string("PageNumber"), std::to_string(pageNumber));
|
||||
}
|
||||
|
||||
void DescribeApiSignaturesRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter("AccessKeyId", accessKeyId);
|
||||
std::string DescribeApiSignaturesRequest::getAccessKeyId() const {
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
std::string DescribeApiSignaturesRequest::getSecurityToken()const
|
||||
{
|
||||
return securityToken_;
|
||||
void DescribeApiSignaturesRequest::setAccessKeyId(const std::string &accessKeyId) {
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter(std::string("AccessKeyId"), accessKeyId);
|
||||
}
|
||||
|
||||
void DescribeApiSignaturesRequest::setSecurityToken(const std::string& securityToken)
|
||||
{
|
||||
securityToken_ = securityToken;
|
||||
setParameter("SecurityToken", securityToken);
|
||||
std::string DescribeApiSignaturesRequest::getSecurityToken() const {
|
||||
return securityToken_;
|
||||
}
|
||||
|
||||
int DescribeApiSignaturesRequest::getPageSize()const
|
||||
{
|
||||
return pageSize_;
|
||||
void DescribeApiSignaturesRequest::setSecurityToken(const std::string &securityToken) {
|
||||
securityToken_ = securityToken;
|
||||
setParameter(std::string("SecurityToken"), securityToken);
|
||||
}
|
||||
|
||||
void DescribeApiSignaturesRequest::setPageSize(int pageSize)
|
||||
{
|
||||
pageSize_ = pageSize;
|
||||
setParameter("PageSize", std::to_string(pageSize));
|
||||
int DescribeApiSignaturesRequest::getPageSize() const {
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
std::string DescribeApiSignaturesRequest::getApiIds()const
|
||||
{
|
||||
return apiIds_;
|
||||
void DescribeApiSignaturesRequest::setPageSize(int pageSize) {
|
||||
pageSize_ = pageSize;
|
||||
setParameter(std::string("PageSize"), std::to_string(pageSize));
|
||||
}
|
||||
|
||||
void DescribeApiSignaturesRequest::setApiIds(const std::string& apiIds)
|
||||
{
|
||||
apiIds_ = apiIds;
|
||||
setParameter("ApiIds", apiIds);
|
||||
std::string DescribeApiSignaturesRequest::getApiIds() const {
|
||||
return apiIds_;
|
||||
}
|
||||
|
||||
void DescribeApiSignaturesRequest::setApiIds(const std::string &apiIds) {
|
||||
apiIds_ = apiIds;
|
||||
setParameter(std::string("ApiIds"), apiIds);
|
||||
}
|
||||
|
||||
|
||||
@@ -43,24 +43,24 @@ void DescribeApiSignaturesResult::parse(const std::string &payload)
|
||||
for (auto valueApiSignaturesApiSignatureItem : allApiSignaturesNode)
|
||||
{
|
||||
ApiSignatureItem apiSignaturesObject;
|
||||
if(!valueApiSignaturesApiSignatureItem["BoundTime"].isNull())
|
||||
apiSignaturesObject.boundTime = valueApiSignaturesApiSignatureItem["BoundTime"].asString();
|
||||
if(!valueApiSignaturesApiSignatureItem["ApiId"].isNull())
|
||||
apiSignaturesObject.apiId = valueApiSignaturesApiSignatureItem["ApiId"].asString();
|
||||
if(!valueApiSignaturesApiSignatureItem["ApiName"].isNull())
|
||||
apiSignaturesObject.apiName = valueApiSignaturesApiSignatureItem["ApiName"].asString();
|
||||
if(!valueApiSignaturesApiSignatureItem["SignatureId"].isNull())
|
||||
apiSignaturesObject.signatureId = valueApiSignaturesApiSignatureItem["SignatureId"].asString();
|
||||
if(!valueApiSignaturesApiSignatureItem["SignatureName"].isNull())
|
||||
apiSignaturesObject.signatureName = valueApiSignaturesApiSignatureItem["SignatureName"].asString();
|
||||
if(!valueApiSignaturesApiSignatureItem["BoundTime"].isNull())
|
||||
apiSignaturesObject.boundTime = valueApiSignaturesApiSignatureItem["BoundTime"].asString();
|
||||
if(!valueApiSignaturesApiSignatureItem["ApiName"].isNull())
|
||||
apiSignaturesObject.apiName = valueApiSignaturesApiSignatureItem["ApiName"].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());
|
||||
if(!value["PageSize"].isNull())
|
||||
pageSize_ = std::stoi(value["PageSize"].asString());
|
||||
if(!value["TotalCount"].isNull())
|
||||
totalCount_ = std::stoi(value["TotalCount"].asString());
|
||||
|
||||
}
|
||||
|
||||
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user