Update by SDK platform.

This commit is contained in:
sdk-team
2023-03-31 13:52:17 +00:00
parent f8a80b38cd
commit 97f1441d6e
42 changed files with 2538 additions and 7 deletions

View File

@@ -267,6 +267,42 @@ DdsClient::CreateDBInstanceOutcomeCallable DdsClient::createDBInstanceCallable(c
return task->get_future();
}
DdsClient::CreateGlobalSecurityIPGroupOutcome DdsClient::createGlobalSecurityIPGroup(const CreateGlobalSecurityIPGroupRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return CreateGlobalSecurityIPGroupOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return CreateGlobalSecurityIPGroupOutcome(CreateGlobalSecurityIPGroupResult(outcome.result()));
else
return CreateGlobalSecurityIPGroupOutcome(outcome.error());
}
void DdsClient::createGlobalSecurityIPGroupAsync(const CreateGlobalSecurityIPGroupRequest& request, const CreateGlobalSecurityIPGroupAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, createGlobalSecurityIPGroup(request), context);
};
asyncExecute(new Runnable(fn));
}
DdsClient::CreateGlobalSecurityIPGroupOutcomeCallable DdsClient::createGlobalSecurityIPGroupCallable(const CreateGlobalSecurityIPGroupRequest &request) const
{
auto task = std::make_shared<std::packaged_task<CreateGlobalSecurityIPGroupOutcome()>>(
[this, request]()
{
return this->createGlobalSecurityIPGroup(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
DdsClient::CreateNodeOutcome DdsClient::createNode(const CreateNodeRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
@@ -411,6 +447,42 @@ DdsClient::DeleteDBInstanceOutcomeCallable DdsClient::deleteDBInstanceCallable(c
return task->get_future();
}
DdsClient::DeleteGlobalSecurityIPGroupOutcome DdsClient::deleteGlobalSecurityIPGroup(const DeleteGlobalSecurityIPGroupRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return DeleteGlobalSecurityIPGroupOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return DeleteGlobalSecurityIPGroupOutcome(DeleteGlobalSecurityIPGroupResult(outcome.result()));
else
return DeleteGlobalSecurityIPGroupOutcome(outcome.error());
}
void DdsClient::deleteGlobalSecurityIPGroupAsync(const DeleteGlobalSecurityIPGroupRequest& request, const DeleteGlobalSecurityIPGroupAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, deleteGlobalSecurityIPGroup(request), context);
};
asyncExecute(new Runnable(fn));
}
DdsClient::DeleteGlobalSecurityIPGroupOutcomeCallable DdsClient::deleteGlobalSecurityIPGroupCallable(const DeleteGlobalSecurityIPGroupRequest &request) const
{
auto task = std::make_shared<std::packaged_task<DeleteGlobalSecurityIPGroupOutcome()>>(
[this, request]()
{
return this->deleteGlobalSecurityIPGroup(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
DdsClient::DeleteNodeOutcome DdsClient::deleteNode(const DeleteNodeRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
@@ -1167,6 +1239,78 @@ DdsClient::DescribeErrorLogRecordsOutcomeCallable DdsClient::describeErrorLogRec
return task->get_future();
}
DdsClient::DescribeGlobalSecurityIPGroupOutcome DdsClient::describeGlobalSecurityIPGroup(const DescribeGlobalSecurityIPGroupRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return DescribeGlobalSecurityIPGroupOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return DescribeGlobalSecurityIPGroupOutcome(DescribeGlobalSecurityIPGroupResult(outcome.result()));
else
return DescribeGlobalSecurityIPGroupOutcome(outcome.error());
}
void DdsClient::describeGlobalSecurityIPGroupAsync(const DescribeGlobalSecurityIPGroupRequest& request, const DescribeGlobalSecurityIPGroupAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, describeGlobalSecurityIPGroup(request), context);
};
asyncExecute(new Runnable(fn));
}
DdsClient::DescribeGlobalSecurityIPGroupOutcomeCallable DdsClient::describeGlobalSecurityIPGroupCallable(const DescribeGlobalSecurityIPGroupRequest &request) const
{
auto task = std::make_shared<std::packaged_task<DescribeGlobalSecurityIPGroupOutcome()>>(
[this, request]()
{
return this->describeGlobalSecurityIPGroup(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
DdsClient::DescribeGlobalSecurityIPGroupRelationOutcome DdsClient::describeGlobalSecurityIPGroupRelation(const DescribeGlobalSecurityIPGroupRelationRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return DescribeGlobalSecurityIPGroupRelationOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return DescribeGlobalSecurityIPGroupRelationOutcome(DescribeGlobalSecurityIPGroupRelationResult(outcome.result()));
else
return DescribeGlobalSecurityIPGroupRelationOutcome(outcome.error());
}
void DdsClient::describeGlobalSecurityIPGroupRelationAsync(const DescribeGlobalSecurityIPGroupRelationRequest& request, const DescribeGlobalSecurityIPGroupRelationAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, describeGlobalSecurityIPGroupRelation(request), context);
};
asyncExecute(new Runnable(fn));
}
DdsClient::DescribeGlobalSecurityIPGroupRelationOutcomeCallable DdsClient::describeGlobalSecurityIPGroupRelationCallable(const DescribeGlobalSecurityIPGroupRelationRequest &request) const
{
auto task = std::make_shared<std::packaged_task<DescribeGlobalSecurityIPGroupRelationOutcome()>>(
[this, request]()
{
return this->describeGlobalSecurityIPGroupRelation(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
DdsClient::DescribeInstanceAutoRenewalAttributeOutcome DdsClient::describeInstanceAutoRenewalAttribute(const DescribeInstanceAutoRenewalAttributeRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
@@ -2463,6 +2607,114 @@ DdsClient::ModifyDBInstanceTDEOutcomeCallable DdsClient::modifyDBInstanceTDECall
return task->get_future();
}
DdsClient::ModifyGlobalSecurityIPGroupOutcome DdsClient::modifyGlobalSecurityIPGroup(const ModifyGlobalSecurityIPGroupRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return ModifyGlobalSecurityIPGroupOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return ModifyGlobalSecurityIPGroupOutcome(ModifyGlobalSecurityIPGroupResult(outcome.result()));
else
return ModifyGlobalSecurityIPGroupOutcome(outcome.error());
}
void DdsClient::modifyGlobalSecurityIPGroupAsync(const ModifyGlobalSecurityIPGroupRequest& request, const ModifyGlobalSecurityIPGroupAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, modifyGlobalSecurityIPGroup(request), context);
};
asyncExecute(new Runnable(fn));
}
DdsClient::ModifyGlobalSecurityIPGroupOutcomeCallable DdsClient::modifyGlobalSecurityIPGroupCallable(const ModifyGlobalSecurityIPGroupRequest &request) const
{
auto task = std::make_shared<std::packaged_task<ModifyGlobalSecurityIPGroupOutcome()>>(
[this, request]()
{
return this->modifyGlobalSecurityIPGroup(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
DdsClient::ModifyGlobalSecurityIPGroupNameOutcome DdsClient::modifyGlobalSecurityIPGroupName(const ModifyGlobalSecurityIPGroupNameRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return ModifyGlobalSecurityIPGroupNameOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return ModifyGlobalSecurityIPGroupNameOutcome(ModifyGlobalSecurityIPGroupNameResult(outcome.result()));
else
return ModifyGlobalSecurityIPGroupNameOutcome(outcome.error());
}
void DdsClient::modifyGlobalSecurityIPGroupNameAsync(const ModifyGlobalSecurityIPGroupNameRequest& request, const ModifyGlobalSecurityIPGroupNameAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, modifyGlobalSecurityIPGroupName(request), context);
};
asyncExecute(new Runnable(fn));
}
DdsClient::ModifyGlobalSecurityIPGroupNameOutcomeCallable DdsClient::modifyGlobalSecurityIPGroupNameCallable(const ModifyGlobalSecurityIPGroupNameRequest &request) const
{
auto task = std::make_shared<std::packaged_task<ModifyGlobalSecurityIPGroupNameOutcome()>>(
[this, request]()
{
return this->modifyGlobalSecurityIPGroupName(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
DdsClient::ModifyGlobalSecurityIPGroupRelationOutcome DdsClient::modifyGlobalSecurityIPGroupRelation(const ModifyGlobalSecurityIPGroupRelationRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return ModifyGlobalSecurityIPGroupRelationOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return ModifyGlobalSecurityIPGroupRelationOutcome(ModifyGlobalSecurityIPGroupRelationResult(outcome.result()));
else
return ModifyGlobalSecurityIPGroupRelationOutcome(outcome.error());
}
void DdsClient::modifyGlobalSecurityIPGroupRelationAsync(const ModifyGlobalSecurityIPGroupRelationRequest& request, const ModifyGlobalSecurityIPGroupRelationAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, modifyGlobalSecurityIPGroupRelation(request), context);
};
asyncExecute(new Runnable(fn));
}
DdsClient::ModifyGlobalSecurityIPGroupRelationOutcomeCallable DdsClient::modifyGlobalSecurityIPGroupRelationCallable(const ModifyGlobalSecurityIPGroupRelationRequest &request) const
{
auto task = std::make_shared<std::packaged_task<ModifyGlobalSecurityIPGroupRelationOutcome()>>(
[this, request]()
{
return this->modifyGlobalSecurityIPGroupRelation(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
DdsClient::ModifyInstanceAutoRenewalAttributeOutcome DdsClient::modifyInstanceAutoRenewalAttribute(const ModifyInstanceAutoRenewalAttributeRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();

View File

@@ -129,6 +129,15 @@ void CreateDBInstanceRequest::setTag(const std::vector<CreateDBInstanceRequest::
}
}
std::string CreateDBInstanceRequest::getGlobalSecurityGroupIds() const {
return globalSecurityGroupIds_;
}
void CreateDBInstanceRequest::setGlobalSecurityGroupIds(const std::string &globalSecurityGroupIds) {
globalSecurityGroupIds_ = globalSecurityGroupIds;
setParameter(std::string("GlobalSecurityGroupIds"), globalSecurityGroupIds);
}
std::string CreateDBInstanceRequest::getBusinessInfo() const {
return businessInfo_;
}

View File

@@ -0,0 +1,135 @@
/*
* 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/dds/model/CreateGlobalSecurityIPGroupRequest.h>
using AlibabaCloud::Dds::Model::CreateGlobalSecurityIPGroupRequest;
CreateGlobalSecurityIPGroupRequest::CreateGlobalSecurityIPGroupRequest()
: RpcServiceRequest("dds", "2015-12-01", "CreateGlobalSecurityIPGroup") {
setMethod(HttpRequest::Method::Post);
}
CreateGlobalSecurityIPGroupRequest::~CreateGlobalSecurityIPGroupRequest() {}
long CreateGlobalSecurityIPGroupRequest::getResourceOwnerId() const {
return resourceOwnerId_;
}
void CreateGlobalSecurityIPGroupRequest::setResourceOwnerId(long resourceOwnerId) {
resourceOwnerId_ = resourceOwnerId;
setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId));
}
std::string CreateGlobalSecurityIPGroupRequest::getGIpList() const {
return gIpList_;
}
void CreateGlobalSecurityIPGroupRequest::setGIpList(const std::string &gIpList) {
gIpList_ = gIpList;
setParameter(std::string("GIpList"), gIpList);
}
std::string CreateGlobalSecurityIPGroupRequest::getAccessKeyId() const {
return accessKeyId_;
}
void CreateGlobalSecurityIPGroupRequest::setAccessKeyId(const std::string &accessKeyId) {
accessKeyId_ = accessKeyId;
setParameter(std::string("AccessKeyId"), accessKeyId);
}
std::string CreateGlobalSecurityIPGroupRequest::getResourceGroupId() const {
return resourceGroupId_;
}
void CreateGlobalSecurityIPGroupRequest::setResourceGroupId(const std::string &resourceGroupId) {
resourceGroupId_ = resourceGroupId;
setParameter(std::string("ResourceGroupId"), resourceGroupId);
}
std::string CreateGlobalSecurityIPGroupRequest::getSecurityToken() const {
return securityToken_;
}
void CreateGlobalSecurityIPGroupRequest::setSecurityToken(const std::string &securityToken) {
securityToken_ = securityToken;
setParameter(std::string("SecurityToken"), securityToken);
}
std::string CreateGlobalSecurityIPGroupRequest::getRegionId() const {
return regionId_;
}
void CreateGlobalSecurityIPGroupRequest::setRegionId(const std::string &regionId) {
regionId_ = regionId;
setParameter(std::string("RegionId"), regionId);
}
std::string CreateGlobalSecurityIPGroupRequest::getSecurityIPType() const {
return securityIPType_;
}
void CreateGlobalSecurityIPGroupRequest::setSecurityIPType(const std::string &securityIPType) {
securityIPType_ = securityIPType;
setParameter(std::string("SecurityIPType"), securityIPType);
}
std::string CreateGlobalSecurityIPGroupRequest::getResourceOwnerAccount() const {
return resourceOwnerAccount_;
}
void CreateGlobalSecurityIPGroupRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) {
resourceOwnerAccount_ = resourceOwnerAccount;
setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount);
}
std::string CreateGlobalSecurityIPGroupRequest::getOwnerAccount() const {
return ownerAccount_;
}
void CreateGlobalSecurityIPGroupRequest::setOwnerAccount(const std::string &ownerAccount) {
ownerAccount_ = ownerAccount;
setParameter(std::string("OwnerAccount"), ownerAccount);
}
long CreateGlobalSecurityIPGroupRequest::getOwnerId() const {
return ownerId_;
}
void CreateGlobalSecurityIPGroupRequest::setOwnerId(long ownerId) {
ownerId_ = ownerId;
setParameter(std::string("OwnerId"), std::to_string(ownerId));
}
std::string CreateGlobalSecurityIPGroupRequest::getWhitelistNetType() const {
return whitelistNetType_;
}
void CreateGlobalSecurityIPGroupRequest::setWhitelistNetType(const std::string &whitelistNetType) {
whitelistNetType_ = whitelistNetType;
setParameter(std::string("WhitelistNetType"), whitelistNetType);
}
std::string CreateGlobalSecurityIPGroupRequest::getGlobalIgName() const {
return globalIgName_;
}
void CreateGlobalSecurityIPGroupRequest::setGlobalIgName(const std::string &globalIgName) {
globalIgName_ = globalIgName;
setParameter(std::string("GlobalIgName"), globalIgName);
}

View File

@@ -0,0 +1,67 @@
/*
* 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/dds/model/CreateGlobalSecurityIPGroupResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Dds;
using namespace AlibabaCloud::Dds::Model;
CreateGlobalSecurityIPGroupResult::CreateGlobalSecurityIPGroupResult() :
ServiceResult()
{}
CreateGlobalSecurityIPGroupResult::CreateGlobalSecurityIPGroupResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
CreateGlobalSecurityIPGroupResult::~CreateGlobalSecurityIPGroupResult()
{}
void CreateGlobalSecurityIPGroupResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto allGlobalSecurityIPGroupNode = value["GlobalSecurityIPGroup"]["GlobalSecurityIPGroupItem"];
for (auto valueGlobalSecurityIPGroupGlobalSecurityIPGroupItem : allGlobalSecurityIPGroupNode)
{
GlobalSecurityIPGroupItem globalSecurityIPGroupObject;
if(!valueGlobalSecurityIPGroupGlobalSecurityIPGroupItem["GlobalSecurityGroupId"].isNull())
globalSecurityIPGroupObject.globalSecurityGroupId = valueGlobalSecurityIPGroupGlobalSecurityIPGroupItem["GlobalSecurityGroupId"].asString();
if(!valueGlobalSecurityIPGroupGlobalSecurityIPGroupItem["GlobalIgName"].isNull())
globalSecurityIPGroupObject.globalIgName = valueGlobalSecurityIPGroupGlobalSecurityIPGroupItem["GlobalIgName"].asString();
if(!valueGlobalSecurityIPGroupGlobalSecurityIPGroupItem["SecurityIPType"].isNull())
globalSecurityIPGroupObject.securityIPType = valueGlobalSecurityIPGroupGlobalSecurityIPGroupItem["SecurityIPType"].asString();
if(!valueGlobalSecurityIPGroupGlobalSecurityIPGroupItem["GIpList"].isNull())
globalSecurityIPGroupObject.gIpList = valueGlobalSecurityIPGroupGlobalSecurityIPGroupItem["GIpList"].asString();
if(!valueGlobalSecurityIPGroupGlobalSecurityIPGroupItem["WhitelistNetType"].isNull())
globalSecurityIPGroupObject.whitelistNetType = valueGlobalSecurityIPGroupGlobalSecurityIPGroupItem["WhitelistNetType"].asString();
if(!valueGlobalSecurityIPGroupGlobalSecurityIPGroupItem["RegionId"].isNull())
globalSecurityIPGroupObject.regionId = valueGlobalSecurityIPGroupGlobalSecurityIPGroupItem["RegionId"].asString();
globalSecurityIPGroup_.push_back(globalSecurityIPGroupObject);
}
}
std::vector<CreateGlobalSecurityIPGroupResult::GlobalSecurityIPGroupItem> CreateGlobalSecurityIPGroupResult::getGlobalSecurityIPGroup()const
{
return globalSecurityIPGroup_;
}

View File

@@ -112,6 +112,15 @@ void CreateShardingDBInstanceRequest::setDBInstanceDescription(const std::string
setParameter(std::string("DBInstanceDescription"), dBInstanceDescription);
}
std::string CreateShardingDBInstanceRequest::getGlobalSecurityGroupIds() const {
return globalSecurityGroupIds_;
}
void CreateShardingDBInstanceRequest::setGlobalSecurityGroupIds(const std::string &globalSecurityGroupIds) {
globalSecurityGroupIds_ = globalSecurityGroupIds;
setParameter(std::string("GlobalSecurityGroupIds"), globalSecurityGroupIds);
}
int CreateShardingDBInstanceRequest::getPeriod() const {
return period_;
}

View File

@@ -0,0 +1,117 @@
/*
* 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/dds/model/DeleteGlobalSecurityIPGroupRequest.h>
using AlibabaCloud::Dds::Model::DeleteGlobalSecurityIPGroupRequest;
DeleteGlobalSecurityIPGroupRequest::DeleteGlobalSecurityIPGroupRequest()
: RpcServiceRequest("dds", "2015-12-01", "DeleteGlobalSecurityIPGroup") {
setMethod(HttpRequest::Method::Post);
}
DeleteGlobalSecurityIPGroupRequest::~DeleteGlobalSecurityIPGroupRequest() {}
long DeleteGlobalSecurityIPGroupRequest::getResourceOwnerId() const {
return resourceOwnerId_;
}
void DeleteGlobalSecurityIPGroupRequest::setResourceOwnerId(long resourceOwnerId) {
resourceOwnerId_ = resourceOwnerId;
setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId));
}
std::string DeleteGlobalSecurityIPGroupRequest::getAccessKeyId() const {
return accessKeyId_;
}
void DeleteGlobalSecurityIPGroupRequest::setAccessKeyId(const std::string &accessKeyId) {
accessKeyId_ = accessKeyId;
setParameter(std::string("AccessKeyId"), accessKeyId);
}
std::string DeleteGlobalSecurityIPGroupRequest::getResourceGroupId() const {
return resourceGroupId_;
}
void DeleteGlobalSecurityIPGroupRequest::setResourceGroupId(const std::string &resourceGroupId) {
resourceGroupId_ = resourceGroupId;
setParameter(std::string("ResourceGroupId"), resourceGroupId);
}
std::string DeleteGlobalSecurityIPGroupRequest::getGlobalSecurityGroupId() const {
return globalSecurityGroupId_;
}
void DeleteGlobalSecurityIPGroupRequest::setGlobalSecurityGroupId(const std::string &globalSecurityGroupId) {
globalSecurityGroupId_ = globalSecurityGroupId;
setParameter(std::string("GlobalSecurityGroupId"), globalSecurityGroupId);
}
std::string DeleteGlobalSecurityIPGroupRequest::getSecurityToken() const {
return securityToken_;
}
void DeleteGlobalSecurityIPGroupRequest::setSecurityToken(const std::string &securityToken) {
securityToken_ = securityToken;
setParameter(std::string("SecurityToken"), securityToken);
}
std::string DeleteGlobalSecurityIPGroupRequest::getRegionId() const {
return regionId_;
}
void DeleteGlobalSecurityIPGroupRequest::setRegionId(const std::string &regionId) {
regionId_ = regionId;
setParameter(std::string("RegionId"), regionId);
}
std::string DeleteGlobalSecurityIPGroupRequest::getResourceOwnerAccount() const {
return resourceOwnerAccount_;
}
void DeleteGlobalSecurityIPGroupRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) {
resourceOwnerAccount_ = resourceOwnerAccount;
setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount);
}
std::string DeleteGlobalSecurityIPGroupRequest::getOwnerAccount() const {
return ownerAccount_;
}
void DeleteGlobalSecurityIPGroupRequest::setOwnerAccount(const std::string &ownerAccount) {
ownerAccount_ = ownerAccount;
setParameter(std::string("OwnerAccount"), ownerAccount);
}
long DeleteGlobalSecurityIPGroupRequest::getOwnerId() const {
return ownerId_;
}
void DeleteGlobalSecurityIPGroupRequest::setOwnerId(long ownerId) {
ownerId_ = ownerId;
setParameter(std::string("OwnerId"), std::to_string(ownerId));
}
std::string DeleteGlobalSecurityIPGroupRequest::getGlobalIgName() const {
return globalIgName_;
}
void DeleteGlobalSecurityIPGroupRequest::setGlobalIgName(const std::string &globalIgName) {
globalIgName_ = globalIgName;
setParameter(std::string("GlobalIgName"), globalIgName);
}

View 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/dds/model/DeleteGlobalSecurityIPGroupResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Dds;
using namespace AlibabaCloud::Dds::Model;
DeleteGlobalSecurityIPGroupResult::DeleteGlobalSecurityIPGroupResult() :
ServiceResult()
{}
DeleteGlobalSecurityIPGroupResult::DeleteGlobalSecurityIPGroupResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DeleteGlobalSecurityIPGroupResult::~DeleteGlobalSecurityIPGroupResult()
{}
void DeleteGlobalSecurityIPGroupResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
}

View File

@@ -0,0 +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/dds/model/DescribeGlobalSecurityIPGroupRelationRequest.h>
using AlibabaCloud::Dds::Model::DescribeGlobalSecurityIPGroupRelationRequest;
DescribeGlobalSecurityIPGroupRelationRequest::DescribeGlobalSecurityIPGroupRelationRequest()
: RpcServiceRequest("dds", "2015-12-01", "DescribeGlobalSecurityIPGroupRelation") {
setMethod(HttpRequest::Method::Get);
}
DescribeGlobalSecurityIPGroupRelationRequest::~DescribeGlobalSecurityIPGroupRelationRequest() {}
long DescribeGlobalSecurityIPGroupRelationRequest::getResourceOwnerId() const {
return resourceOwnerId_;
}
void DescribeGlobalSecurityIPGroupRelationRequest::setResourceOwnerId(long resourceOwnerId) {
resourceOwnerId_ = resourceOwnerId;
setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId));
}
std::string DescribeGlobalSecurityIPGroupRelationRequest::getAccessKeyId() const {
return accessKeyId_;
}
void DescribeGlobalSecurityIPGroupRelationRequest::setAccessKeyId(const std::string &accessKeyId) {
accessKeyId_ = accessKeyId;
setParameter(std::string("AccessKeyId"), accessKeyId);
}
std::string DescribeGlobalSecurityIPGroupRelationRequest::getResourceGroupId() const {
return resourceGroupId_;
}
void DescribeGlobalSecurityIPGroupRelationRequest::setResourceGroupId(const std::string &resourceGroupId) {
resourceGroupId_ = resourceGroupId;
setParameter(std::string("ResourceGroupId"), resourceGroupId);
}
std::string DescribeGlobalSecurityIPGroupRelationRequest::getSecurityToken() const {
return securityToken_;
}
void DescribeGlobalSecurityIPGroupRelationRequest::setSecurityToken(const std::string &securityToken) {
securityToken_ = securityToken;
setParameter(std::string("SecurityToken"), securityToken);
}
std::string DescribeGlobalSecurityIPGroupRelationRequest::getRegionId() const {
return regionId_;
}
void DescribeGlobalSecurityIPGroupRelationRequest::setRegionId(const std::string &regionId) {
regionId_ = regionId;
setParameter(std::string("RegionId"), regionId);
}
std::string DescribeGlobalSecurityIPGroupRelationRequest::getResourceOwnerAccount() const {
return resourceOwnerAccount_;
}
void DescribeGlobalSecurityIPGroupRelationRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) {
resourceOwnerAccount_ = resourceOwnerAccount;
setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount);
}
std::string DescribeGlobalSecurityIPGroupRelationRequest::getDBClusterId() const {
return dBClusterId_;
}
void DescribeGlobalSecurityIPGroupRelationRequest::setDBClusterId(const std::string &dBClusterId) {
dBClusterId_ = dBClusterId;
setParameter(std::string("DBClusterId"), dBClusterId);
}
std::string DescribeGlobalSecurityIPGroupRelationRequest::getOwnerAccount() const {
return ownerAccount_;
}
void DescribeGlobalSecurityIPGroupRelationRequest::setOwnerAccount(const std::string &ownerAccount) {
ownerAccount_ = ownerAccount;
setParameter(std::string("OwnerAccount"), ownerAccount);
}
long DescribeGlobalSecurityIPGroupRelationRequest::getOwnerId() const {
return ownerId_;
}
void DescribeGlobalSecurityIPGroupRelationRequest::setOwnerId(long ownerId) {
ownerId_ = ownerId;
setParameter(std::string("OwnerId"), std::to_string(ownerId));
}

View 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/dds/model/DescribeGlobalSecurityIPGroupRelationResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Dds;
using namespace AlibabaCloud::Dds::Model;
DescribeGlobalSecurityIPGroupRelationResult::DescribeGlobalSecurityIPGroupRelationResult() :
ServiceResult()
{}
DescribeGlobalSecurityIPGroupRelationResult::DescribeGlobalSecurityIPGroupRelationResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DescribeGlobalSecurityIPGroupRelationResult::~DescribeGlobalSecurityIPGroupRelationResult()
{}
void DescribeGlobalSecurityIPGroupRelationResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto allGlobalSecurityIPGroupRelNode = value["GlobalSecurityIPGroupRel"]["GlobalSecurityIPGroupRelItem"];
for (auto valueGlobalSecurityIPGroupRelGlobalSecurityIPGroupRelItem : allGlobalSecurityIPGroupRelNode)
{
GlobalSecurityIPGroupRelItem globalSecurityIPGroupRelObject;
if(!valueGlobalSecurityIPGroupRelGlobalSecurityIPGroupRelItem["GlobalSecurityGroupId"].isNull())
globalSecurityIPGroupRelObject.globalSecurityGroupId = valueGlobalSecurityIPGroupRelGlobalSecurityIPGroupRelItem["GlobalSecurityGroupId"].asString();
if(!valueGlobalSecurityIPGroupRelGlobalSecurityIPGroupRelItem["GIpList"].isNull())
globalSecurityIPGroupRelObject.gIpList = valueGlobalSecurityIPGroupRelGlobalSecurityIPGroupRelItem["GIpList"].asString();
if(!valueGlobalSecurityIPGroupRelGlobalSecurityIPGroupRelItem["RegionId"].isNull())
globalSecurityIPGroupRelObject.regionId = valueGlobalSecurityIPGroupRelGlobalSecurityIPGroupRelItem["RegionId"].asString();
if(!valueGlobalSecurityIPGroupRelGlobalSecurityIPGroupRelItem["WhitelistNetType"].isNull())
globalSecurityIPGroupRelObject.whitelistNetType = valueGlobalSecurityIPGroupRelGlobalSecurityIPGroupRelItem["WhitelistNetType"].asString();
if(!valueGlobalSecurityIPGroupRelGlobalSecurityIPGroupRelItem["GlobalIgName"].isNull())
globalSecurityIPGroupRelObject.globalIgName = valueGlobalSecurityIPGroupRelGlobalSecurityIPGroupRelItem["GlobalIgName"].asString();
globalSecurityIPGroupRel_.push_back(globalSecurityIPGroupRelObject);
}
if(!value["DBClusterId"].isNull())
dBClusterId_ = value["DBClusterId"].asString();
}
std::string DescribeGlobalSecurityIPGroupRelationResult::getDBClusterId()const
{
return dBClusterId_;
}
std::vector<DescribeGlobalSecurityIPGroupRelationResult::GlobalSecurityIPGroupRelItem> DescribeGlobalSecurityIPGroupRelationResult::getGlobalSecurityIPGroupRel()const
{
return globalSecurityIPGroupRel_;
}

View File

@@ -0,0 +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/dds/model/DescribeGlobalSecurityIPGroupRequest.h>
using AlibabaCloud::Dds::Model::DescribeGlobalSecurityIPGroupRequest;
DescribeGlobalSecurityIPGroupRequest::DescribeGlobalSecurityIPGroupRequest()
: RpcServiceRequest("dds", "2015-12-01", "DescribeGlobalSecurityIPGroup") {
setMethod(HttpRequest::Method::Get);
}
DescribeGlobalSecurityIPGroupRequest::~DescribeGlobalSecurityIPGroupRequest() {}
long DescribeGlobalSecurityIPGroupRequest::getResourceOwnerId() const {
return resourceOwnerId_;
}
void DescribeGlobalSecurityIPGroupRequest::setResourceOwnerId(long resourceOwnerId) {
resourceOwnerId_ = resourceOwnerId;
setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId));
}
std::string DescribeGlobalSecurityIPGroupRequest::getAccessKeyId() const {
return accessKeyId_;
}
void DescribeGlobalSecurityIPGroupRequest::setAccessKeyId(const std::string &accessKeyId) {
accessKeyId_ = accessKeyId;
setParameter(std::string("AccessKeyId"), accessKeyId);
}
std::string DescribeGlobalSecurityIPGroupRequest::getResourceGroupId() const {
return resourceGroupId_;
}
void DescribeGlobalSecurityIPGroupRequest::setResourceGroupId(const std::string &resourceGroupId) {
resourceGroupId_ = resourceGroupId;
setParameter(std::string("ResourceGroupId"), resourceGroupId);
}
std::string DescribeGlobalSecurityIPGroupRequest::getGlobalSecurityGroupId() const {
return globalSecurityGroupId_;
}
void DescribeGlobalSecurityIPGroupRequest::setGlobalSecurityGroupId(const std::string &globalSecurityGroupId) {
globalSecurityGroupId_ = globalSecurityGroupId;
setParameter(std::string("GlobalSecurityGroupId"), globalSecurityGroupId);
}
std::string DescribeGlobalSecurityIPGroupRequest::getSecurityToken() const {
return securityToken_;
}
void DescribeGlobalSecurityIPGroupRequest::setSecurityToken(const std::string &securityToken) {
securityToken_ = securityToken;
setParameter(std::string("SecurityToken"), securityToken);
}
std::string DescribeGlobalSecurityIPGroupRequest::getRegionId() const {
return regionId_;
}
void DescribeGlobalSecurityIPGroupRequest::setRegionId(const std::string &regionId) {
regionId_ = regionId;
setParameter(std::string("RegionId"), regionId);
}
std::string DescribeGlobalSecurityIPGroupRequest::getResourceOwnerAccount() const {
return resourceOwnerAccount_;
}
void DescribeGlobalSecurityIPGroupRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) {
resourceOwnerAccount_ = resourceOwnerAccount;
setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount);
}
std::string DescribeGlobalSecurityIPGroupRequest::getOwnerAccount() const {
return ownerAccount_;
}
void DescribeGlobalSecurityIPGroupRequest::setOwnerAccount(const std::string &ownerAccount) {
ownerAccount_ = ownerAccount;
setParameter(std::string("OwnerAccount"), ownerAccount);
}
long DescribeGlobalSecurityIPGroupRequest::getOwnerId() const {
return ownerId_;
}
void DescribeGlobalSecurityIPGroupRequest::setOwnerId(long ownerId) {
ownerId_ = ownerId;
setParameter(std::string("OwnerId"), std::to_string(ownerId));
}

View File

@@ -0,0 +1,70 @@
/*
* 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/dds/model/DescribeGlobalSecurityIPGroupResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Dds;
using namespace AlibabaCloud::Dds::Model;
DescribeGlobalSecurityIPGroupResult::DescribeGlobalSecurityIPGroupResult() :
ServiceResult()
{}
DescribeGlobalSecurityIPGroupResult::DescribeGlobalSecurityIPGroupResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DescribeGlobalSecurityIPGroupResult::~DescribeGlobalSecurityIPGroupResult()
{}
void DescribeGlobalSecurityIPGroupResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto allGlobalSecurityIPGroupNode = value["GlobalSecurityIPGroup"]["GlobalSecurityIPGroupItem"];
for (auto valueGlobalSecurityIPGroupGlobalSecurityIPGroupItem : allGlobalSecurityIPGroupNode)
{
GlobalSecurityIPGroupItem globalSecurityIPGroupObject;
if(!valueGlobalSecurityIPGroupGlobalSecurityIPGroupItem["GlobalSecurityGroupId"].isNull())
globalSecurityIPGroupObject.globalSecurityGroupId = valueGlobalSecurityIPGroupGlobalSecurityIPGroupItem["GlobalSecurityGroupId"].asString();
if(!valueGlobalSecurityIPGroupGlobalSecurityIPGroupItem["GlobalIgName"].isNull())
globalSecurityIPGroupObject.globalIgName = valueGlobalSecurityIPGroupGlobalSecurityIPGroupItem["GlobalIgName"].asString();
if(!valueGlobalSecurityIPGroupGlobalSecurityIPGroupItem["SecurityIPType"].isNull())
globalSecurityIPGroupObject.securityIPType = valueGlobalSecurityIPGroupGlobalSecurityIPGroupItem["SecurityIPType"].asString();
if(!valueGlobalSecurityIPGroupGlobalSecurityIPGroupItem["GIpList"].isNull())
globalSecurityIPGroupObject.gIpList = valueGlobalSecurityIPGroupGlobalSecurityIPGroupItem["GIpList"].asString();
if(!valueGlobalSecurityIPGroupGlobalSecurityIPGroupItem["WhitelistNetType"].isNull())
globalSecurityIPGroupObject.whitelistNetType = valueGlobalSecurityIPGroupGlobalSecurityIPGroupItem["WhitelistNetType"].asString();
if(!valueGlobalSecurityIPGroupGlobalSecurityIPGroupItem["RegionId"].isNull())
globalSecurityIPGroupObject.regionId = valueGlobalSecurityIPGroupGlobalSecurityIPGroupItem["RegionId"].asString();
auto allDBInstances = value["DBInstances"]["DBInstances"];
for (auto value : allDBInstances)
globalSecurityIPGroupObject.dBInstances.push_back(value.asString());
globalSecurityIPGroup_.push_back(globalSecurityIPGroupObject);
}
}
std::vector<DescribeGlobalSecurityIPGroupResult::GlobalSecurityIPGroupItem> DescribeGlobalSecurityIPGroupResult::getGlobalSecurityIPGroup()const
{
return globalSecurityIPGroup_;
}

View File

@@ -55,12 +55,14 @@ void DescribeParametersResult::parse(const std::string &payload)
runningParametersObject.parameterDescription = valueRunningParametersParameter["ParameterDescription"].asString();
if(!valueRunningParametersParameter["ModifiableStatus"].isNull())
runningParametersObject.modifiableStatus = valueRunningParametersParameter["ModifiableStatus"].asString();
if(!valueRunningParametersParameter["CharacterType"].isNull())
runningParametersObject.characterType = valueRunningParametersParameter["CharacterType"].asString();
runningParameters_.push_back(runningParametersObject);
}
auto allConfigParametersNode = value["ConfigParameters"]["Parameter"];
for (auto valueConfigParametersParameter : allConfigParametersNode)
{
_Parameter configParametersObject;
_Parameter1 configParametersObject;
if(!valueConfigParametersParameter["CheckingCode"].isNull())
configParametersObject.checkingCode = valueConfigParametersParameter["CheckingCode"].asString();
if(!valueConfigParametersParameter["ParameterName"].isNull())
@@ -68,11 +70,11 @@ void DescribeParametersResult::parse(const std::string &payload)
if(!valueConfigParametersParameter["ParameterValue"].isNull())
configParametersObject.parameterValue = valueConfigParametersParameter["ParameterValue"].asString();
if(!valueConfigParametersParameter["ForceRestart"].isNull())
configParametersObject.forceRestart = valueConfigParametersParameter["ForceRestart"].asString();
configParametersObject.forceRestart = valueConfigParametersParameter["ForceRestart"].asString() == "true";
if(!valueConfigParametersParameter["ParameterDescription"].isNull())
configParametersObject.parameterDescription = valueConfigParametersParameter["ParameterDescription"].asString();
if(!valueConfigParametersParameter["ModifiableStatus"].isNull())
configParametersObject.modifiableStatus = valueConfigParametersParameter["ModifiableStatus"].asString();
configParametersObject.modifiableStatus = valueConfigParametersParameter["ModifiableStatus"].asString() == "true";
configParameters_.push_back(configParametersObject);
}
if(!value["EngineVersion"].isNull())
@@ -92,7 +94,7 @@ std::string DescribeParametersResult::getEngineVersion()const
return engineVersion_;
}
std::vector<DescribeParametersResult::_Parameter> DescribeParametersResult::getConfigParameters()const
std::vector<DescribeParametersResult::_Parameter1> DescribeParametersResult::getConfigParameters()const
{
return configParameters_;
}

View File

@@ -88,6 +88,15 @@ void ModifyDBInstanceConnectionStringRequest::setOwnerAccount(const std::string
setParameter(std::string("OwnerAccount"), ownerAccount);
}
int ModifyDBInstanceConnectionStringRequest::getNewPort() const {
return newPort_;
}
void ModifyDBInstanceConnectionStringRequest::setNewPort(int newPort) {
newPort_ = newPort;
setParameter(std::string("NewPort"), std::to_string(newPort));
}
std::string ModifyDBInstanceConnectionStringRequest::getNewConnectionString() const {
return newConnectionString_;
}

View File

@@ -0,0 +1,117 @@
/*
* 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/dds/model/ModifyGlobalSecurityIPGroupNameRequest.h>
using AlibabaCloud::Dds::Model::ModifyGlobalSecurityIPGroupNameRequest;
ModifyGlobalSecurityIPGroupNameRequest::ModifyGlobalSecurityIPGroupNameRequest()
: RpcServiceRequest("dds", "2015-12-01", "ModifyGlobalSecurityIPGroupName") {
setMethod(HttpRequest::Method::Post);
}
ModifyGlobalSecurityIPGroupNameRequest::~ModifyGlobalSecurityIPGroupNameRequest() {}
long ModifyGlobalSecurityIPGroupNameRequest::getResourceOwnerId() const {
return resourceOwnerId_;
}
void ModifyGlobalSecurityIPGroupNameRequest::setResourceOwnerId(long resourceOwnerId) {
resourceOwnerId_ = resourceOwnerId;
setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId));
}
std::string ModifyGlobalSecurityIPGroupNameRequest::getAccessKeyId() const {
return accessKeyId_;
}
void ModifyGlobalSecurityIPGroupNameRequest::setAccessKeyId(const std::string &accessKeyId) {
accessKeyId_ = accessKeyId;
setParameter(std::string("AccessKeyId"), accessKeyId);
}
std::string ModifyGlobalSecurityIPGroupNameRequest::getResourceGroupId() const {
return resourceGroupId_;
}
void ModifyGlobalSecurityIPGroupNameRequest::setResourceGroupId(const std::string &resourceGroupId) {
resourceGroupId_ = resourceGroupId;
setParameter(std::string("ResourceGroupId"), resourceGroupId);
}
std::string ModifyGlobalSecurityIPGroupNameRequest::getGlobalSecurityGroupId() const {
return globalSecurityGroupId_;
}
void ModifyGlobalSecurityIPGroupNameRequest::setGlobalSecurityGroupId(const std::string &globalSecurityGroupId) {
globalSecurityGroupId_ = globalSecurityGroupId;
setParameter(std::string("GlobalSecurityGroupId"), globalSecurityGroupId);
}
std::string ModifyGlobalSecurityIPGroupNameRequest::getSecurityToken() const {
return securityToken_;
}
void ModifyGlobalSecurityIPGroupNameRequest::setSecurityToken(const std::string &securityToken) {
securityToken_ = securityToken;
setParameter(std::string("SecurityToken"), securityToken);
}
std::string ModifyGlobalSecurityIPGroupNameRequest::getRegionId() const {
return regionId_;
}
void ModifyGlobalSecurityIPGroupNameRequest::setRegionId(const std::string &regionId) {
regionId_ = regionId;
setParameter(std::string("RegionId"), regionId);
}
std::string ModifyGlobalSecurityIPGroupNameRequest::getResourceOwnerAccount() const {
return resourceOwnerAccount_;
}
void ModifyGlobalSecurityIPGroupNameRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) {
resourceOwnerAccount_ = resourceOwnerAccount;
setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount);
}
std::string ModifyGlobalSecurityIPGroupNameRequest::getOwnerAccount() const {
return ownerAccount_;
}
void ModifyGlobalSecurityIPGroupNameRequest::setOwnerAccount(const std::string &ownerAccount) {
ownerAccount_ = ownerAccount;
setParameter(std::string("OwnerAccount"), ownerAccount);
}
long ModifyGlobalSecurityIPGroupNameRequest::getOwnerId() const {
return ownerId_;
}
void ModifyGlobalSecurityIPGroupNameRequest::setOwnerId(long ownerId) {
ownerId_ = ownerId;
setParameter(std::string("OwnerId"), std::to_string(ownerId));
}
std::string ModifyGlobalSecurityIPGroupNameRequest::getGlobalIgName() const {
return globalIgName_;
}
void ModifyGlobalSecurityIPGroupNameRequest::setGlobalIgName(const std::string &globalIgName) {
globalIgName_ = globalIgName;
setParameter(std::string("GlobalIgName"), globalIgName);
}

View File

@@ -0,0 +1,67 @@
/*
* 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/dds/model/ModifyGlobalSecurityIPGroupNameResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Dds;
using namespace AlibabaCloud::Dds::Model;
ModifyGlobalSecurityIPGroupNameResult::ModifyGlobalSecurityIPGroupNameResult() :
ServiceResult()
{}
ModifyGlobalSecurityIPGroupNameResult::ModifyGlobalSecurityIPGroupNameResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
ModifyGlobalSecurityIPGroupNameResult::~ModifyGlobalSecurityIPGroupNameResult()
{}
void ModifyGlobalSecurityIPGroupNameResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto allGlobalSecurityIPGroupNode = value["GlobalSecurityIPGroup"]["GlobalSecurityIPGroupItem"];
for (auto valueGlobalSecurityIPGroupGlobalSecurityIPGroupItem : allGlobalSecurityIPGroupNode)
{
GlobalSecurityIPGroupItem globalSecurityIPGroupObject;
if(!valueGlobalSecurityIPGroupGlobalSecurityIPGroupItem["GlobalSecurityGroupId"].isNull())
globalSecurityIPGroupObject.globalSecurityGroupId = valueGlobalSecurityIPGroupGlobalSecurityIPGroupItem["GlobalSecurityGroupId"].asString();
if(!valueGlobalSecurityIPGroupGlobalSecurityIPGroupItem["GlobalIgName"].isNull())
globalSecurityIPGroupObject.globalIgName = valueGlobalSecurityIPGroupGlobalSecurityIPGroupItem["GlobalIgName"].asString();
if(!valueGlobalSecurityIPGroupGlobalSecurityIPGroupItem["SecurityIPType"].isNull())
globalSecurityIPGroupObject.securityIPType = valueGlobalSecurityIPGroupGlobalSecurityIPGroupItem["SecurityIPType"].asString();
if(!valueGlobalSecurityIPGroupGlobalSecurityIPGroupItem["GIpList"].isNull())
globalSecurityIPGroupObject.gIpList = valueGlobalSecurityIPGroupGlobalSecurityIPGroupItem["GIpList"].asString();
if(!valueGlobalSecurityIPGroupGlobalSecurityIPGroupItem["WhitelistNetType"].isNull())
globalSecurityIPGroupObject.whitelistNetType = valueGlobalSecurityIPGroupGlobalSecurityIPGroupItem["WhitelistNetType"].asString();
if(!valueGlobalSecurityIPGroupGlobalSecurityIPGroupItem["RegionId"].isNull())
globalSecurityIPGroupObject.regionId = valueGlobalSecurityIPGroupGlobalSecurityIPGroupItem["RegionId"].asString();
globalSecurityIPGroup_.push_back(globalSecurityIPGroupObject);
}
}
std::vector<ModifyGlobalSecurityIPGroupNameResult::GlobalSecurityIPGroupItem> ModifyGlobalSecurityIPGroupNameResult::getGlobalSecurityIPGroup()const
{
return globalSecurityIPGroup_;
}

View File

@@ -0,0 +1,117 @@
/*
* 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/dds/model/ModifyGlobalSecurityIPGroupRelationRequest.h>
using AlibabaCloud::Dds::Model::ModifyGlobalSecurityIPGroupRelationRequest;
ModifyGlobalSecurityIPGroupRelationRequest::ModifyGlobalSecurityIPGroupRelationRequest()
: RpcServiceRequest("dds", "2015-12-01", "ModifyGlobalSecurityIPGroupRelation") {
setMethod(HttpRequest::Method::Post);
}
ModifyGlobalSecurityIPGroupRelationRequest::~ModifyGlobalSecurityIPGroupRelationRequest() {}
long ModifyGlobalSecurityIPGroupRelationRequest::getResourceOwnerId() const {
return resourceOwnerId_;
}
void ModifyGlobalSecurityIPGroupRelationRequest::setResourceOwnerId(long resourceOwnerId) {
resourceOwnerId_ = resourceOwnerId;
setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId));
}
std::string ModifyGlobalSecurityIPGroupRelationRequest::getAccessKeyId() const {
return accessKeyId_;
}
void ModifyGlobalSecurityIPGroupRelationRequest::setAccessKeyId(const std::string &accessKeyId) {
accessKeyId_ = accessKeyId;
setParameter(std::string("AccessKeyId"), accessKeyId);
}
std::string ModifyGlobalSecurityIPGroupRelationRequest::getResourceGroupId() const {
return resourceGroupId_;
}
void ModifyGlobalSecurityIPGroupRelationRequest::setResourceGroupId(const std::string &resourceGroupId) {
resourceGroupId_ = resourceGroupId;
setParameter(std::string("ResourceGroupId"), resourceGroupId);
}
std::string ModifyGlobalSecurityIPGroupRelationRequest::getGlobalSecurityGroupId() const {
return globalSecurityGroupId_;
}
void ModifyGlobalSecurityIPGroupRelationRequest::setGlobalSecurityGroupId(const std::string &globalSecurityGroupId) {
globalSecurityGroupId_ = globalSecurityGroupId;
setParameter(std::string("GlobalSecurityGroupId"), globalSecurityGroupId);
}
std::string ModifyGlobalSecurityIPGroupRelationRequest::getSecurityToken() const {
return securityToken_;
}
void ModifyGlobalSecurityIPGroupRelationRequest::setSecurityToken(const std::string &securityToken) {
securityToken_ = securityToken;
setParameter(std::string("SecurityToken"), securityToken);
}
std::string ModifyGlobalSecurityIPGroupRelationRequest::getRegionId() const {
return regionId_;
}
void ModifyGlobalSecurityIPGroupRelationRequest::setRegionId(const std::string &regionId) {
regionId_ = regionId;
setParameter(std::string("RegionId"), regionId);
}
std::string ModifyGlobalSecurityIPGroupRelationRequest::getResourceOwnerAccount() const {
return resourceOwnerAccount_;
}
void ModifyGlobalSecurityIPGroupRelationRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) {
resourceOwnerAccount_ = resourceOwnerAccount;
setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount);
}
std::string ModifyGlobalSecurityIPGroupRelationRequest::getDBClusterId() const {
return dBClusterId_;
}
void ModifyGlobalSecurityIPGroupRelationRequest::setDBClusterId(const std::string &dBClusterId) {
dBClusterId_ = dBClusterId;
setParameter(std::string("DBClusterId"), dBClusterId);
}
std::string ModifyGlobalSecurityIPGroupRelationRequest::getOwnerAccount() const {
return ownerAccount_;
}
void ModifyGlobalSecurityIPGroupRelationRequest::setOwnerAccount(const std::string &ownerAccount) {
ownerAccount_ = ownerAccount;
setParameter(std::string("OwnerAccount"), ownerAccount);
}
long ModifyGlobalSecurityIPGroupRelationRequest::getOwnerId() const {
return ownerId_;
}
void ModifyGlobalSecurityIPGroupRelationRequest::setOwnerId(long ownerId) {
ownerId_ = ownerId;
setParameter(std::string("OwnerId"), std::to_string(ownerId));
}

View 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/dds/model/ModifyGlobalSecurityIPGroupRelationResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Dds;
using namespace AlibabaCloud::Dds::Model;
ModifyGlobalSecurityIPGroupRelationResult::ModifyGlobalSecurityIPGroupRelationResult() :
ServiceResult()
{}
ModifyGlobalSecurityIPGroupRelationResult::ModifyGlobalSecurityIPGroupRelationResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
ModifyGlobalSecurityIPGroupRelationResult::~ModifyGlobalSecurityIPGroupRelationResult()
{}
void ModifyGlobalSecurityIPGroupRelationResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
}

View File

@@ -0,0 +1,144 @@
/*
* 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/dds/model/ModifyGlobalSecurityIPGroupRequest.h>
using AlibabaCloud::Dds::Model::ModifyGlobalSecurityIPGroupRequest;
ModifyGlobalSecurityIPGroupRequest::ModifyGlobalSecurityIPGroupRequest()
: RpcServiceRequest("dds", "2015-12-01", "ModifyGlobalSecurityIPGroup") {
setMethod(HttpRequest::Method::Post);
}
ModifyGlobalSecurityIPGroupRequest::~ModifyGlobalSecurityIPGroupRequest() {}
long ModifyGlobalSecurityIPGroupRequest::getResourceOwnerId() const {
return resourceOwnerId_;
}
void ModifyGlobalSecurityIPGroupRequest::setResourceOwnerId(long resourceOwnerId) {
resourceOwnerId_ = resourceOwnerId;
setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId));
}
std::string ModifyGlobalSecurityIPGroupRequest::getGIpList() const {
return gIpList_;
}
void ModifyGlobalSecurityIPGroupRequest::setGIpList(const std::string &gIpList) {
gIpList_ = gIpList;
setParameter(std::string("GIpList"), gIpList);
}
std::string ModifyGlobalSecurityIPGroupRequest::getAccessKeyId() const {
return accessKeyId_;
}
void ModifyGlobalSecurityIPGroupRequest::setAccessKeyId(const std::string &accessKeyId) {
accessKeyId_ = accessKeyId;
setParameter(std::string("AccessKeyId"), accessKeyId);
}
std::string ModifyGlobalSecurityIPGroupRequest::getResourceGroupId() const {
return resourceGroupId_;
}
void ModifyGlobalSecurityIPGroupRequest::setResourceGroupId(const std::string &resourceGroupId) {
resourceGroupId_ = resourceGroupId;
setParameter(std::string("ResourceGroupId"), resourceGroupId);
}
std::string ModifyGlobalSecurityIPGroupRequest::getGlobalSecurityGroupId() const {
return globalSecurityGroupId_;
}
void ModifyGlobalSecurityIPGroupRequest::setGlobalSecurityGroupId(const std::string &globalSecurityGroupId) {
globalSecurityGroupId_ = globalSecurityGroupId;
setParameter(std::string("GlobalSecurityGroupId"), globalSecurityGroupId);
}
std::string ModifyGlobalSecurityIPGroupRequest::getSecurityToken() const {
return securityToken_;
}
void ModifyGlobalSecurityIPGroupRequest::setSecurityToken(const std::string &securityToken) {
securityToken_ = securityToken;
setParameter(std::string("SecurityToken"), securityToken);
}
std::string ModifyGlobalSecurityIPGroupRequest::getRegionId() const {
return regionId_;
}
void ModifyGlobalSecurityIPGroupRequest::setRegionId(const std::string &regionId) {
regionId_ = regionId;
setParameter(std::string("RegionId"), regionId);
}
std::string ModifyGlobalSecurityIPGroupRequest::getSecurityIPType() const {
return securityIPType_;
}
void ModifyGlobalSecurityIPGroupRequest::setSecurityIPType(const std::string &securityIPType) {
securityIPType_ = securityIPType;
setParameter(std::string("SecurityIPType"), securityIPType);
}
std::string ModifyGlobalSecurityIPGroupRequest::getResourceOwnerAccount() const {
return resourceOwnerAccount_;
}
void ModifyGlobalSecurityIPGroupRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) {
resourceOwnerAccount_ = resourceOwnerAccount;
setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount);
}
std::string ModifyGlobalSecurityIPGroupRequest::getOwnerAccount() const {
return ownerAccount_;
}
void ModifyGlobalSecurityIPGroupRequest::setOwnerAccount(const std::string &ownerAccount) {
ownerAccount_ = ownerAccount;
setParameter(std::string("OwnerAccount"), ownerAccount);
}
long ModifyGlobalSecurityIPGroupRequest::getOwnerId() const {
return ownerId_;
}
void ModifyGlobalSecurityIPGroupRequest::setOwnerId(long ownerId) {
ownerId_ = ownerId;
setParameter(std::string("OwnerId"), std::to_string(ownerId));
}
std::string ModifyGlobalSecurityIPGroupRequest::getWhitelistNetType() const {
return whitelistNetType_;
}
void ModifyGlobalSecurityIPGroupRequest::setWhitelistNetType(const std::string &whitelistNetType) {
whitelistNetType_ = whitelistNetType;
setParameter(std::string("WhitelistNetType"), whitelistNetType);
}
std::string ModifyGlobalSecurityIPGroupRequest::getGlobalIgName() const {
return globalIgName_;
}
void ModifyGlobalSecurityIPGroupRequest::setGlobalIgName(const std::string &globalIgName) {
globalIgName_ = globalIgName;
setParameter(std::string("GlobalIgName"), globalIgName);
}

View 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/dds/model/ModifyGlobalSecurityIPGroupResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Dds;
using namespace AlibabaCloud::Dds::Model;
ModifyGlobalSecurityIPGroupResult::ModifyGlobalSecurityIPGroupResult() :
ServiceResult()
{}
ModifyGlobalSecurityIPGroupResult::ModifyGlobalSecurityIPGroupResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
ModifyGlobalSecurityIPGroupResult::~ModifyGlobalSecurityIPGroupResult()
{}
void ModifyGlobalSecurityIPGroupResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
}

View File

@@ -106,3 +106,12 @@ void ResetAccountPasswordRequest::setAccountPassword(const std::string &accountP
setParameter(std::string("AccountPassword"), accountPassword);
}
std::string ResetAccountPasswordRequest::getCharacterType() const {
return characterType_;
}
void ResetAccountPasswordRequest::setCharacterType(const std::string &characterType) {
characterType_ = characterType;
setParameter(std::string("CharacterType"), characterType);
}