diff --git a/VERSION b/VERSION index 5658062d4..8386e4bc8 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -1.36.1520 \ No newline at end of file +1.36.1521 \ No newline at end of file diff --git a/dds/CMakeLists.txt b/dds/CMakeLists.txt index cc0829b49..3a1c6befa 100644 --- a/dds/CMakeLists.txt +++ b/dds/CMakeLists.txt @@ -33,6 +33,8 @@ set(dds_public_header_model include/alibabacloud/dds/model/CreateBackupResult.h include/alibabacloud/dds/model/CreateDBInstanceRequest.h include/alibabacloud/dds/model/CreateDBInstanceResult.h + include/alibabacloud/dds/model/CreateGlobalSecurityIPGroupRequest.h + include/alibabacloud/dds/model/CreateGlobalSecurityIPGroupResult.h include/alibabacloud/dds/model/CreateNodeRequest.h include/alibabacloud/dds/model/CreateNodeResult.h include/alibabacloud/dds/model/CreateNodeBatchRequest.h @@ -41,6 +43,8 @@ set(dds_public_header_model include/alibabacloud/dds/model/CreateShardingDBInstanceResult.h include/alibabacloud/dds/model/DeleteDBInstanceRequest.h include/alibabacloud/dds/model/DeleteDBInstanceResult.h + include/alibabacloud/dds/model/DeleteGlobalSecurityIPGroupRequest.h + include/alibabacloud/dds/model/DeleteGlobalSecurityIPGroupResult.h include/alibabacloud/dds/model/DeleteNodeRequest.h include/alibabacloud/dds/model/DeleteNodeResult.h include/alibabacloud/dds/model/DescribeAccountsRequest.h @@ -83,6 +87,10 @@ set(dds_public_header_model include/alibabacloud/dds/model/DescribeDBInstancesOverviewResult.h include/alibabacloud/dds/model/DescribeErrorLogRecordsRequest.h include/alibabacloud/dds/model/DescribeErrorLogRecordsResult.h + include/alibabacloud/dds/model/DescribeGlobalSecurityIPGroupRequest.h + include/alibabacloud/dds/model/DescribeGlobalSecurityIPGroupResult.h + include/alibabacloud/dds/model/DescribeGlobalSecurityIPGroupRelationRequest.h + include/alibabacloud/dds/model/DescribeGlobalSecurityIPGroupRelationResult.h include/alibabacloud/dds/model/DescribeInstanceAutoRenewalAttributeRequest.h include/alibabacloud/dds/model/DescribeInstanceAutoRenewalAttributeResult.h include/alibabacloud/dds/model/DescribeKernelReleaseNotesRequest.h @@ -155,6 +163,12 @@ set(dds_public_header_model include/alibabacloud/dds/model/ModifyDBInstanceSpecResult.h include/alibabacloud/dds/model/ModifyDBInstanceTDERequest.h include/alibabacloud/dds/model/ModifyDBInstanceTDEResult.h + include/alibabacloud/dds/model/ModifyGlobalSecurityIPGroupRequest.h + include/alibabacloud/dds/model/ModifyGlobalSecurityIPGroupResult.h + include/alibabacloud/dds/model/ModifyGlobalSecurityIPGroupNameRequest.h + include/alibabacloud/dds/model/ModifyGlobalSecurityIPGroupNameResult.h + include/alibabacloud/dds/model/ModifyGlobalSecurityIPGroupRelationRequest.h + include/alibabacloud/dds/model/ModifyGlobalSecurityIPGroupRelationResult.h include/alibabacloud/dds/model/ModifyInstanceAutoRenewalAttributeRequest.h include/alibabacloud/dds/model/ModifyInstanceAutoRenewalAttributeResult.h include/alibabacloud/dds/model/ModifyInstanceVpcAuthModeRequest.h @@ -212,6 +226,8 @@ set(dds_src src/model/CreateBackupResult.cc src/model/CreateDBInstanceRequest.cc src/model/CreateDBInstanceResult.cc + src/model/CreateGlobalSecurityIPGroupRequest.cc + src/model/CreateGlobalSecurityIPGroupResult.cc src/model/CreateNodeRequest.cc src/model/CreateNodeResult.cc src/model/CreateNodeBatchRequest.cc @@ -220,6 +236,8 @@ set(dds_src src/model/CreateShardingDBInstanceResult.cc src/model/DeleteDBInstanceRequest.cc src/model/DeleteDBInstanceResult.cc + src/model/DeleteGlobalSecurityIPGroupRequest.cc + src/model/DeleteGlobalSecurityIPGroupResult.cc src/model/DeleteNodeRequest.cc src/model/DeleteNodeResult.cc src/model/DescribeAccountsRequest.cc @@ -262,6 +280,10 @@ set(dds_src src/model/DescribeDBInstancesOverviewResult.cc src/model/DescribeErrorLogRecordsRequest.cc src/model/DescribeErrorLogRecordsResult.cc + src/model/DescribeGlobalSecurityIPGroupRequest.cc + src/model/DescribeGlobalSecurityIPGroupResult.cc + src/model/DescribeGlobalSecurityIPGroupRelationRequest.cc + src/model/DescribeGlobalSecurityIPGroupRelationResult.cc src/model/DescribeInstanceAutoRenewalAttributeRequest.cc src/model/DescribeInstanceAutoRenewalAttributeResult.cc src/model/DescribeKernelReleaseNotesRequest.cc @@ -334,6 +356,12 @@ set(dds_src src/model/ModifyDBInstanceSpecResult.cc src/model/ModifyDBInstanceTDERequest.cc src/model/ModifyDBInstanceTDEResult.cc + src/model/ModifyGlobalSecurityIPGroupRequest.cc + src/model/ModifyGlobalSecurityIPGroupResult.cc + src/model/ModifyGlobalSecurityIPGroupNameRequest.cc + src/model/ModifyGlobalSecurityIPGroupNameResult.cc + src/model/ModifyGlobalSecurityIPGroupRelationRequest.cc + src/model/ModifyGlobalSecurityIPGroupRelationResult.cc src/model/ModifyInstanceAutoRenewalAttributeRequest.cc src/model/ModifyInstanceAutoRenewalAttributeResult.cc src/model/ModifyInstanceVpcAuthModeRequest.cc diff --git a/dds/include/alibabacloud/dds/DdsClient.h b/dds/include/alibabacloud/dds/DdsClient.h index 867a75b7e..5478a0170 100644 --- a/dds/include/alibabacloud/dds/DdsClient.h +++ b/dds/include/alibabacloud/dds/DdsClient.h @@ -34,6 +34,8 @@ #include "model/CreateBackupResult.h" #include "model/CreateDBInstanceRequest.h" #include "model/CreateDBInstanceResult.h" +#include "model/CreateGlobalSecurityIPGroupRequest.h" +#include "model/CreateGlobalSecurityIPGroupResult.h" #include "model/CreateNodeRequest.h" #include "model/CreateNodeResult.h" #include "model/CreateNodeBatchRequest.h" @@ -42,6 +44,8 @@ #include "model/CreateShardingDBInstanceResult.h" #include "model/DeleteDBInstanceRequest.h" #include "model/DeleteDBInstanceResult.h" +#include "model/DeleteGlobalSecurityIPGroupRequest.h" +#include "model/DeleteGlobalSecurityIPGroupResult.h" #include "model/DeleteNodeRequest.h" #include "model/DeleteNodeResult.h" #include "model/DescribeAccountsRequest.h" @@ -84,6 +88,10 @@ #include "model/DescribeDBInstancesOverviewResult.h" #include "model/DescribeErrorLogRecordsRequest.h" #include "model/DescribeErrorLogRecordsResult.h" +#include "model/DescribeGlobalSecurityIPGroupRequest.h" +#include "model/DescribeGlobalSecurityIPGroupResult.h" +#include "model/DescribeGlobalSecurityIPGroupRelationRequest.h" +#include "model/DescribeGlobalSecurityIPGroupRelationResult.h" #include "model/DescribeInstanceAutoRenewalAttributeRequest.h" #include "model/DescribeInstanceAutoRenewalAttributeResult.h" #include "model/DescribeKernelReleaseNotesRequest.h" @@ -156,6 +164,12 @@ #include "model/ModifyDBInstanceSpecResult.h" #include "model/ModifyDBInstanceTDERequest.h" #include "model/ModifyDBInstanceTDEResult.h" +#include "model/ModifyGlobalSecurityIPGroupRequest.h" +#include "model/ModifyGlobalSecurityIPGroupResult.h" +#include "model/ModifyGlobalSecurityIPGroupNameRequest.h" +#include "model/ModifyGlobalSecurityIPGroupNameResult.h" +#include "model/ModifyGlobalSecurityIPGroupRelationRequest.h" +#include "model/ModifyGlobalSecurityIPGroupRelationResult.h" #include "model/ModifyInstanceAutoRenewalAttributeRequest.h" #include "model/ModifyInstanceAutoRenewalAttributeResult.h" #include "model/ModifyInstanceVpcAuthModeRequest.h" @@ -225,6 +239,9 @@ namespace AlibabaCloud typedef Outcome CreateDBInstanceOutcome; typedef std::future CreateDBInstanceOutcomeCallable; typedef std::function&)> CreateDBInstanceAsyncHandler; + typedef Outcome CreateGlobalSecurityIPGroupOutcome; + typedef std::future CreateGlobalSecurityIPGroupOutcomeCallable; + typedef std::function&)> CreateGlobalSecurityIPGroupAsyncHandler; typedef Outcome CreateNodeOutcome; typedef std::future CreateNodeOutcomeCallable; typedef std::function&)> CreateNodeAsyncHandler; @@ -237,6 +254,9 @@ namespace AlibabaCloud typedef Outcome DeleteDBInstanceOutcome; typedef std::future DeleteDBInstanceOutcomeCallable; typedef std::function&)> DeleteDBInstanceAsyncHandler; + typedef Outcome DeleteGlobalSecurityIPGroupOutcome; + typedef std::future DeleteGlobalSecurityIPGroupOutcomeCallable; + typedef std::function&)> DeleteGlobalSecurityIPGroupAsyncHandler; typedef Outcome DeleteNodeOutcome; typedef std::future DeleteNodeOutcomeCallable; typedef std::function&)> DeleteNodeAsyncHandler; @@ -300,6 +320,12 @@ namespace AlibabaCloud typedef Outcome DescribeErrorLogRecordsOutcome; typedef std::future DescribeErrorLogRecordsOutcomeCallable; typedef std::function&)> DescribeErrorLogRecordsAsyncHandler; + typedef Outcome DescribeGlobalSecurityIPGroupOutcome; + typedef std::future DescribeGlobalSecurityIPGroupOutcomeCallable; + typedef std::function&)> DescribeGlobalSecurityIPGroupAsyncHandler; + typedef Outcome DescribeGlobalSecurityIPGroupRelationOutcome; + typedef std::future DescribeGlobalSecurityIPGroupRelationOutcomeCallable; + typedef std::function&)> DescribeGlobalSecurityIPGroupRelationAsyncHandler; typedef Outcome DescribeInstanceAutoRenewalAttributeOutcome; typedef std::future DescribeInstanceAutoRenewalAttributeOutcomeCallable; typedef std::function&)> DescribeInstanceAutoRenewalAttributeAsyncHandler; @@ -408,6 +434,15 @@ namespace AlibabaCloud typedef Outcome ModifyDBInstanceTDEOutcome; typedef std::future ModifyDBInstanceTDEOutcomeCallable; typedef std::function&)> ModifyDBInstanceTDEAsyncHandler; + typedef Outcome ModifyGlobalSecurityIPGroupOutcome; + typedef std::future ModifyGlobalSecurityIPGroupOutcomeCallable; + typedef std::function&)> ModifyGlobalSecurityIPGroupAsyncHandler; + typedef Outcome ModifyGlobalSecurityIPGroupNameOutcome; + typedef std::future ModifyGlobalSecurityIPGroupNameOutcomeCallable; + typedef std::function&)> ModifyGlobalSecurityIPGroupNameAsyncHandler; + typedef Outcome ModifyGlobalSecurityIPGroupRelationOutcome; + typedef std::future ModifyGlobalSecurityIPGroupRelationOutcomeCallable; + typedef std::function&)> ModifyGlobalSecurityIPGroupRelationAsyncHandler; typedef Outcome ModifyInstanceAutoRenewalAttributeOutcome; typedef std::future ModifyInstanceAutoRenewalAttributeOutcomeCallable; typedef std::function&)> ModifyInstanceAutoRenewalAttributeAsyncHandler; @@ -494,6 +529,9 @@ namespace AlibabaCloud CreateDBInstanceOutcome createDBInstance(const Model::CreateDBInstanceRequest &request)const; void createDBInstanceAsync(const Model::CreateDBInstanceRequest& request, const CreateDBInstanceAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; CreateDBInstanceOutcomeCallable createDBInstanceCallable(const Model::CreateDBInstanceRequest& request) const; + CreateGlobalSecurityIPGroupOutcome createGlobalSecurityIPGroup(const Model::CreateGlobalSecurityIPGroupRequest &request)const; + void createGlobalSecurityIPGroupAsync(const Model::CreateGlobalSecurityIPGroupRequest& request, const CreateGlobalSecurityIPGroupAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CreateGlobalSecurityIPGroupOutcomeCallable createGlobalSecurityIPGroupCallable(const Model::CreateGlobalSecurityIPGroupRequest& request) const; CreateNodeOutcome createNode(const Model::CreateNodeRequest &request)const; void createNodeAsync(const Model::CreateNodeRequest& request, const CreateNodeAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; CreateNodeOutcomeCallable createNodeCallable(const Model::CreateNodeRequest& request) const; @@ -506,6 +544,9 @@ namespace AlibabaCloud DeleteDBInstanceOutcome deleteDBInstance(const Model::DeleteDBInstanceRequest &request)const; void deleteDBInstanceAsync(const Model::DeleteDBInstanceRequest& request, const DeleteDBInstanceAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DeleteDBInstanceOutcomeCallable deleteDBInstanceCallable(const Model::DeleteDBInstanceRequest& request) const; + DeleteGlobalSecurityIPGroupOutcome deleteGlobalSecurityIPGroup(const Model::DeleteGlobalSecurityIPGroupRequest &request)const; + void deleteGlobalSecurityIPGroupAsync(const Model::DeleteGlobalSecurityIPGroupRequest& request, const DeleteGlobalSecurityIPGroupAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DeleteGlobalSecurityIPGroupOutcomeCallable deleteGlobalSecurityIPGroupCallable(const Model::DeleteGlobalSecurityIPGroupRequest& request) const; DeleteNodeOutcome deleteNode(const Model::DeleteNodeRequest &request)const; void deleteNodeAsync(const Model::DeleteNodeRequest& request, const DeleteNodeAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DeleteNodeOutcomeCallable deleteNodeCallable(const Model::DeleteNodeRequest& request) const; @@ -569,6 +610,12 @@ namespace AlibabaCloud DescribeErrorLogRecordsOutcome describeErrorLogRecords(const Model::DescribeErrorLogRecordsRequest &request)const; void describeErrorLogRecordsAsync(const Model::DescribeErrorLogRecordsRequest& request, const DescribeErrorLogRecordsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DescribeErrorLogRecordsOutcomeCallable describeErrorLogRecordsCallable(const Model::DescribeErrorLogRecordsRequest& request) const; + DescribeGlobalSecurityIPGroupOutcome describeGlobalSecurityIPGroup(const Model::DescribeGlobalSecurityIPGroupRequest &request)const; + void describeGlobalSecurityIPGroupAsync(const Model::DescribeGlobalSecurityIPGroupRequest& request, const DescribeGlobalSecurityIPGroupAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeGlobalSecurityIPGroupOutcomeCallable describeGlobalSecurityIPGroupCallable(const Model::DescribeGlobalSecurityIPGroupRequest& request) const; + DescribeGlobalSecurityIPGroupRelationOutcome describeGlobalSecurityIPGroupRelation(const Model::DescribeGlobalSecurityIPGroupRelationRequest &request)const; + void describeGlobalSecurityIPGroupRelationAsync(const Model::DescribeGlobalSecurityIPGroupRelationRequest& request, const DescribeGlobalSecurityIPGroupRelationAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeGlobalSecurityIPGroupRelationOutcomeCallable describeGlobalSecurityIPGroupRelationCallable(const Model::DescribeGlobalSecurityIPGroupRelationRequest& request) const; DescribeInstanceAutoRenewalAttributeOutcome describeInstanceAutoRenewalAttribute(const Model::DescribeInstanceAutoRenewalAttributeRequest &request)const; void describeInstanceAutoRenewalAttributeAsync(const Model::DescribeInstanceAutoRenewalAttributeRequest& request, const DescribeInstanceAutoRenewalAttributeAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DescribeInstanceAutoRenewalAttributeOutcomeCallable describeInstanceAutoRenewalAttributeCallable(const Model::DescribeInstanceAutoRenewalAttributeRequest& request) const; @@ -677,6 +724,15 @@ namespace AlibabaCloud ModifyDBInstanceTDEOutcome modifyDBInstanceTDE(const Model::ModifyDBInstanceTDERequest &request)const; void modifyDBInstanceTDEAsync(const Model::ModifyDBInstanceTDERequest& request, const ModifyDBInstanceTDEAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; ModifyDBInstanceTDEOutcomeCallable modifyDBInstanceTDECallable(const Model::ModifyDBInstanceTDERequest& request) const; + ModifyGlobalSecurityIPGroupOutcome modifyGlobalSecurityIPGroup(const Model::ModifyGlobalSecurityIPGroupRequest &request)const; + void modifyGlobalSecurityIPGroupAsync(const Model::ModifyGlobalSecurityIPGroupRequest& request, const ModifyGlobalSecurityIPGroupAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ModifyGlobalSecurityIPGroupOutcomeCallable modifyGlobalSecurityIPGroupCallable(const Model::ModifyGlobalSecurityIPGroupRequest& request) const; + ModifyGlobalSecurityIPGroupNameOutcome modifyGlobalSecurityIPGroupName(const Model::ModifyGlobalSecurityIPGroupNameRequest &request)const; + void modifyGlobalSecurityIPGroupNameAsync(const Model::ModifyGlobalSecurityIPGroupNameRequest& request, const ModifyGlobalSecurityIPGroupNameAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ModifyGlobalSecurityIPGroupNameOutcomeCallable modifyGlobalSecurityIPGroupNameCallable(const Model::ModifyGlobalSecurityIPGroupNameRequest& request) const; + ModifyGlobalSecurityIPGroupRelationOutcome modifyGlobalSecurityIPGroupRelation(const Model::ModifyGlobalSecurityIPGroupRelationRequest &request)const; + void modifyGlobalSecurityIPGroupRelationAsync(const Model::ModifyGlobalSecurityIPGroupRelationRequest& request, const ModifyGlobalSecurityIPGroupRelationAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ModifyGlobalSecurityIPGroupRelationOutcomeCallable modifyGlobalSecurityIPGroupRelationCallable(const Model::ModifyGlobalSecurityIPGroupRelationRequest& request) const; ModifyInstanceAutoRenewalAttributeOutcome modifyInstanceAutoRenewalAttribute(const Model::ModifyInstanceAutoRenewalAttributeRequest &request)const; void modifyInstanceAutoRenewalAttributeAsync(const Model::ModifyInstanceAutoRenewalAttributeRequest& request, const ModifyInstanceAutoRenewalAttributeAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; ModifyInstanceAutoRenewalAttributeOutcomeCallable modifyInstanceAutoRenewalAttributeCallable(const Model::ModifyInstanceAutoRenewalAttributeRequest& request) const; diff --git a/dds/include/alibabacloud/dds/model/CreateDBInstanceRequest.h b/dds/include/alibabacloud/dds/model/CreateDBInstanceRequest.h index 0e82555b4..b00469ad2 100644 --- a/dds/include/alibabacloud/dds/model/CreateDBInstanceRequest.h +++ b/dds/include/alibabacloud/dds/model/CreateDBInstanceRequest.h @@ -56,6 +56,8 @@ public: void setDBInstanceDescription(const std::string &dBInstanceDescription); std::vector getTag() const; void setTag(const std::vector &tag); + std::string getGlobalSecurityGroupIds() const; + void setGlobalSecurityGroupIds(const std::string &globalSecurityGroupIds); std::string getBusinessInfo() const; void setBusinessInfo(const std::string &businessInfo); int getPeriod() const; @@ -121,6 +123,7 @@ private: std::string securityToken_; std::string dBInstanceDescription_; std::vector tag_; + std::string globalSecurityGroupIds_; std::string businessInfo_; int period_; std::string backupId_; diff --git a/dds/include/alibabacloud/dds/model/CreateGlobalSecurityIPGroupRequest.h b/dds/include/alibabacloud/dds/model/CreateGlobalSecurityIPGroupRequest.h new file mode 100644 index 000000000..59b2d936f --- /dev/null +++ b/dds/include/alibabacloud/dds/model/CreateGlobalSecurityIPGroupRequest.h @@ -0,0 +1,75 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_DDS_MODEL_CREATEGLOBALSECURITYIPGROUPREQUEST_H_ +#define ALIBABACLOUD_DDS_MODEL_CREATEGLOBALSECURITYIPGROUPREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Dds { +namespace Model { +class ALIBABACLOUD_DDS_EXPORT CreateGlobalSecurityIPGroupRequest : public RpcServiceRequest { +public: + CreateGlobalSecurityIPGroupRequest(); + ~CreateGlobalSecurityIPGroupRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getGIpList() const; + void setGIpList(const std::string &gIpList); + std::string getAccessKeyId() const; + void setAccessKeyId(const std::string &accessKeyId); + std::string getResourceGroupId() const; + void setResourceGroupId(const std::string &resourceGroupId); + std::string getSecurityToken() const; + void setSecurityToken(const std::string &securityToken); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::string getSecurityIPType() const; + void setSecurityIPType(const std::string &securityIPType); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + long getOwnerId() const; + void setOwnerId(long ownerId); + std::string getWhitelistNetType() const; + void setWhitelistNetType(const std::string &whitelistNetType); + std::string getGlobalIgName() const; + void setGlobalIgName(const std::string &globalIgName); + +private: + long resourceOwnerId_; + std::string gIpList_; + std::string accessKeyId_; + std::string resourceGroupId_; + std::string securityToken_; + std::string regionId_; + std::string securityIPType_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; + std::string whitelistNetType_; + std::string globalIgName_; +}; +} // namespace Model +} // namespace Dds +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_DDS_MODEL_CREATEGLOBALSECURITYIPGROUPREQUEST_H_ diff --git a/dds/include/alibabacloud/dds/model/CreateGlobalSecurityIPGroupResult.h b/dds/include/alibabacloud/dds/model/CreateGlobalSecurityIPGroupResult.h new file mode 100644 index 000000000..4d6b8cbf9 --- /dev/null +++ b/dds/include/alibabacloud/dds/model/CreateGlobalSecurityIPGroupResult.h @@ -0,0 +1,60 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_DDS_MODEL_CREATEGLOBALSECURITYIPGROUPRESULT_H_ +#define ALIBABACLOUD_DDS_MODEL_CREATEGLOBALSECURITYIPGROUPRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Dds + { + namespace Model + { + class ALIBABACLOUD_DDS_EXPORT CreateGlobalSecurityIPGroupResult : public ServiceResult + { + public: + struct GlobalSecurityIPGroupItem + { + std::string securityIPType; + std::string globalIgName; + std::string gIpList; + std::string globalSecurityGroupId; + std::string regionId; + std::string whitelistNetType; + }; + + + CreateGlobalSecurityIPGroupResult(); + explicit CreateGlobalSecurityIPGroupResult(const std::string &payload); + ~CreateGlobalSecurityIPGroupResult(); + std::vector getGlobalSecurityIPGroup()const; + + protected: + void parse(const std::string &payload); + private: + std::vector globalSecurityIPGroup_; + + }; + } + } +} +#endif // !ALIBABACLOUD_DDS_MODEL_CREATEGLOBALSECURITYIPGROUPRESULT_H_ \ No newline at end of file diff --git a/dds/include/alibabacloud/dds/model/CreateShardingDBInstanceRequest.h b/dds/include/alibabacloud/dds/model/CreateShardingDBInstanceRequest.h index a5807597a..7308df1ff 100644 --- a/dds/include/alibabacloud/dds/model/CreateShardingDBInstanceRequest.h +++ b/dds/include/alibabacloud/dds/model/CreateShardingDBInstanceRequest.h @@ -60,6 +60,8 @@ public: void setSecurityToken(const std::string &securityToken); std::string getDBInstanceDescription() const; void setDBInstanceDescription(const std::string &dBInstanceDescription); + std::string getGlobalSecurityGroupIds() const; + void setGlobalSecurityGroupIds(const std::string &globalSecurityGroupIds); int getPeriod() const; void setPeriod(int period); std::vector getConfigServer() const; @@ -115,6 +117,7 @@ private: std::string resourceGroupId_; std::string securityToken_; std::string dBInstanceDescription_; + std::string globalSecurityGroupIds_; int period_; std::vector configServer_; long ownerId_; diff --git a/dds/include/alibabacloud/dds/model/DeleteGlobalSecurityIPGroupRequest.h b/dds/include/alibabacloud/dds/model/DeleteGlobalSecurityIPGroupRequest.h new file mode 100644 index 000000000..0f5bfec72 --- /dev/null +++ b/dds/include/alibabacloud/dds/model/DeleteGlobalSecurityIPGroupRequest.h @@ -0,0 +1,69 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_DDS_MODEL_DELETEGLOBALSECURITYIPGROUPREQUEST_H_ +#define ALIBABACLOUD_DDS_MODEL_DELETEGLOBALSECURITYIPGROUPREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Dds { +namespace Model { +class ALIBABACLOUD_DDS_EXPORT DeleteGlobalSecurityIPGroupRequest : public RpcServiceRequest { +public: + DeleteGlobalSecurityIPGroupRequest(); + ~DeleteGlobalSecurityIPGroupRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getAccessKeyId() const; + void setAccessKeyId(const std::string &accessKeyId); + std::string getResourceGroupId() const; + void setResourceGroupId(const std::string &resourceGroupId); + std::string getGlobalSecurityGroupId() const; + void setGlobalSecurityGroupId(const std::string &globalSecurityGroupId); + std::string getSecurityToken() const; + void setSecurityToken(const std::string &securityToken); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + long getOwnerId() const; + void setOwnerId(long ownerId); + std::string getGlobalIgName() const; + void setGlobalIgName(const std::string &globalIgName); + +private: + long resourceOwnerId_; + std::string accessKeyId_; + std::string resourceGroupId_; + std::string globalSecurityGroupId_; + std::string securityToken_; + std::string regionId_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; + std::string globalIgName_; +}; +} // namespace Model +} // namespace Dds +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_DDS_MODEL_DELETEGLOBALSECURITYIPGROUPREQUEST_H_ diff --git a/dds/include/alibabacloud/dds/model/DeleteGlobalSecurityIPGroupResult.h b/dds/include/alibabacloud/dds/model/DeleteGlobalSecurityIPGroupResult.h new file mode 100644 index 000000000..e3b73febd --- /dev/null +++ b/dds/include/alibabacloud/dds/model/DeleteGlobalSecurityIPGroupResult.h @@ -0,0 +1,49 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_DDS_MODEL_DELETEGLOBALSECURITYIPGROUPRESULT_H_ +#define ALIBABACLOUD_DDS_MODEL_DELETEGLOBALSECURITYIPGROUPRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Dds + { + namespace Model + { + class ALIBABACLOUD_DDS_EXPORT DeleteGlobalSecurityIPGroupResult : public ServiceResult + { + public: + + + DeleteGlobalSecurityIPGroupResult(); + explicit DeleteGlobalSecurityIPGroupResult(const std::string &payload); + ~DeleteGlobalSecurityIPGroupResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_DDS_MODEL_DELETEGLOBALSECURITYIPGROUPRESULT_H_ \ No newline at end of file diff --git a/dds/include/alibabacloud/dds/model/DescribeGlobalSecurityIPGroupRelationRequest.h b/dds/include/alibabacloud/dds/model/DescribeGlobalSecurityIPGroupRelationRequest.h new file mode 100644 index 000000000..c9e050222 --- /dev/null +++ b/dds/include/alibabacloud/dds/model/DescribeGlobalSecurityIPGroupRelationRequest.h @@ -0,0 +1,66 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_DDS_MODEL_DESCRIBEGLOBALSECURITYIPGROUPRELATIONREQUEST_H_ +#define ALIBABACLOUD_DDS_MODEL_DESCRIBEGLOBALSECURITYIPGROUPRELATIONREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Dds { +namespace Model { +class ALIBABACLOUD_DDS_EXPORT DescribeGlobalSecurityIPGroupRelationRequest : public RpcServiceRequest { +public: + DescribeGlobalSecurityIPGroupRelationRequest(); + ~DescribeGlobalSecurityIPGroupRelationRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getAccessKeyId() const; + void setAccessKeyId(const std::string &accessKeyId); + std::string getResourceGroupId() const; + void setResourceGroupId(const std::string &resourceGroupId); + std::string getSecurityToken() const; + void setSecurityToken(const std::string &securityToken); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getDBClusterId() const; + void setDBClusterId(const std::string &dBClusterId); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + long getOwnerId() const; + void setOwnerId(long ownerId); + +private: + long resourceOwnerId_; + std::string accessKeyId_; + std::string resourceGroupId_; + std::string securityToken_; + std::string regionId_; + std::string resourceOwnerAccount_; + std::string dBClusterId_; + std::string ownerAccount_; + long ownerId_; +}; +} // namespace Model +} // namespace Dds +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_DDS_MODEL_DESCRIBEGLOBALSECURITYIPGROUPRELATIONREQUEST_H_ diff --git a/dds/include/alibabacloud/dds/model/DescribeGlobalSecurityIPGroupRelationResult.h b/dds/include/alibabacloud/dds/model/DescribeGlobalSecurityIPGroupRelationResult.h new file mode 100644 index 000000000..e0671bbc3 --- /dev/null +++ b/dds/include/alibabacloud/dds/model/DescribeGlobalSecurityIPGroupRelationResult.h @@ -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. + */ + +#ifndef ALIBABACLOUD_DDS_MODEL_DESCRIBEGLOBALSECURITYIPGROUPRELATIONRESULT_H_ +#define ALIBABACLOUD_DDS_MODEL_DESCRIBEGLOBALSECURITYIPGROUPRELATIONRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Dds + { + namespace Model + { + class ALIBABACLOUD_DDS_EXPORT DescribeGlobalSecurityIPGroupRelationResult : public ServiceResult + { + public: + struct GlobalSecurityIPGroupRelItem + { + std::string globalIgName; + std::string gIpList; + std::string globalSecurityGroupId; + std::string regionId; + std::string whitelistNetType; + }; + + + DescribeGlobalSecurityIPGroupRelationResult(); + explicit DescribeGlobalSecurityIPGroupRelationResult(const std::string &payload); + ~DescribeGlobalSecurityIPGroupRelationResult(); + std::string getDBClusterId()const; + std::vector getGlobalSecurityIPGroupRel()const; + + protected: + void parse(const std::string &payload); + private: + std::string dBClusterId_; + std::vector globalSecurityIPGroupRel_; + + }; + } + } +} +#endif // !ALIBABACLOUD_DDS_MODEL_DESCRIBEGLOBALSECURITYIPGROUPRELATIONRESULT_H_ \ No newline at end of file diff --git a/dds/include/alibabacloud/dds/model/DescribeGlobalSecurityIPGroupRequest.h b/dds/include/alibabacloud/dds/model/DescribeGlobalSecurityIPGroupRequest.h new file mode 100644 index 000000000..425922c14 --- /dev/null +++ b/dds/include/alibabacloud/dds/model/DescribeGlobalSecurityIPGroupRequest.h @@ -0,0 +1,66 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_DDS_MODEL_DESCRIBEGLOBALSECURITYIPGROUPREQUEST_H_ +#define ALIBABACLOUD_DDS_MODEL_DESCRIBEGLOBALSECURITYIPGROUPREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Dds { +namespace Model { +class ALIBABACLOUD_DDS_EXPORT DescribeGlobalSecurityIPGroupRequest : public RpcServiceRequest { +public: + DescribeGlobalSecurityIPGroupRequest(); + ~DescribeGlobalSecurityIPGroupRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getAccessKeyId() const; + void setAccessKeyId(const std::string &accessKeyId); + std::string getResourceGroupId() const; + void setResourceGroupId(const std::string &resourceGroupId); + std::string getGlobalSecurityGroupId() const; + void setGlobalSecurityGroupId(const std::string &globalSecurityGroupId); + std::string getSecurityToken() const; + void setSecurityToken(const std::string &securityToken); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + long getOwnerId() const; + void setOwnerId(long ownerId); + +private: + long resourceOwnerId_; + std::string accessKeyId_; + std::string resourceGroupId_; + std::string globalSecurityGroupId_; + std::string securityToken_; + std::string regionId_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; +}; +} // namespace Model +} // namespace Dds +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_DDS_MODEL_DESCRIBEGLOBALSECURITYIPGROUPREQUEST_H_ diff --git a/dds/include/alibabacloud/dds/model/DescribeGlobalSecurityIPGroupResult.h b/dds/include/alibabacloud/dds/model/DescribeGlobalSecurityIPGroupResult.h new file mode 100644 index 000000000..ae835d3cd --- /dev/null +++ b/dds/include/alibabacloud/dds/model/DescribeGlobalSecurityIPGroupResult.h @@ -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. + */ + +#ifndef ALIBABACLOUD_DDS_MODEL_DESCRIBEGLOBALSECURITYIPGROUPRESULT_H_ +#define ALIBABACLOUD_DDS_MODEL_DESCRIBEGLOBALSECURITYIPGROUPRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Dds + { + namespace Model + { + class ALIBABACLOUD_DDS_EXPORT DescribeGlobalSecurityIPGroupResult : public ServiceResult + { + public: + struct GlobalSecurityIPGroupItem + { + std::string securityIPType; + std::string globalIgName; + std::string gIpList; + std::string globalSecurityGroupId; + std::string regionId; + std::vector dBInstances; + std::string whitelistNetType; + }; + + + DescribeGlobalSecurityIPGroupResult(); + explicit DescribeGlobalSecurityIPGroupResult(const std::string &payload); + ~DescribeGlobalSecurityIPGroupResult(); + std::vector getGlobalSecurityIPGroup()const; + + protected: + void parse(const std::string &payload); + private: + std::vector globalSecurityIPGroup_; + + }; + } + } +} +#endif // !ALIBABACLOUD_DDS_MODEL_DESCRIBEGLOBALSECURITYIPGROUPRESULT_H_ \ No newline at end of file diff --git a/dds/include/alibabacloud/dds/model/DescribeParametersResult.h b/dds/include/alibabacloud/dds/model/DescribeParametersResult.h index 03ffeba7b..b55d6e593 100644 --- a/dds/include/alibabacloud/dds/model/DescribeParametersResult.h +++ b/dds/include/alibabacloud/dds/model/DescribeParametersResult.h @@ -39,6 +39,16 @@ namespace AlibabaCloud std::string parameterValue; std::string forceRestart; std::string parameterName; + std::string characterType; + std::string parameterDescription; + }; + struct _Parameter1 + { + std::string checkingCode; + bool modifiableStatus; + std::string parameterValue; + bool forceRestart; + std::string parameterName; std::string parameterDescription; }; @@ -48,7 +58,7 @@ namespace AlibabaCloud ~DescribeParametersResult(); std::vector<_Parameter> getRunningParameters()const; std::string getEngineVersion()const; - std::vector<_Parameter> getConfigParameters()const; + std::vector<_Parameter1> getConfigParameters()const; std::string getEngine()const; protected: @@ -56,7 +66,7 @@ namespace AlibabaCloud private: std::vector<_Parameter> runningParameters_; std::string engineVersion_; - std::vector<_Parameter> configParameters_; + std::vector<_Parameter1> configParameters_; std::string engine_; }; diff --git a/dds/include/alibabacloud/dds/model/ModifyDBInstanceConnectionStringRequest.h b/dds/include/alibabacloud/dds/model/ModifyDBInstanceConnectionStringRequest.h index 71b20be60..cc96aa871 100644 --- a/dds/include/alibabacloud/dds/model/ModifyDBInstanceConnectionStringRequest.h +++ b/dds/include/alibabacloud/dds/model/ModifyDBInstanceConnectionStringRequest.h @@ -44,6 +44,8 @@ public: void setResourceOwnerAccount(const std::string &resourceOwnerAccount); std::string getOwnerAccount() const; void setOwnerAccount(const std::string &ownerAccount); + int getNewPort() const; + void setNewPort(int newPort); std::string getNewConnectionString() const; void setNewConnectionString(const std::string &newConnectionString); long getOwnerId() const; @@ -59,6 +61,7 @@ private: std::string nodeId_; std::string resourceOwnerAccount_; std::string ownerAccount_; + int newPort_; std::string newConnectionString_; long ownerId_; std::string currentConnectionString_; diff --git a/dds/include/alibabacloud/dds/model/ModifyGlobalSecurityIPGroupNameRequest.h b/dds/include/alibabacloud/dds/model/ModifyGlobalSecurityIPGroupNameRequest.h new file mode 100644 index 000000000..03cf11aee --- /dev/null +++ b/dds/include/alibabacloud/dds/model/ModifyGlobalSecurityIPGroupNameRequest.h @@ -0,0 +1,69 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_DDS_MODEL_MODIFYGLOBALSECURITYIPGROUPNAMEREQUEST_H_ +#define ALIBABACLOUD_DDS_MODEL_MODIFYGLOBALSECURITYIPGROUPNAMEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Dds { +namespace Model { +class ALIBABACLOUD_DDS_EXPORT ModifyGlobalSecurityIPGroupNameRequest : public RpcServiceRequest { +public: + ModifyGlobalSecurityIPGroupNameRequest(); + ~ModifyGlobalSecurityIPGroupNameRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getAccessKeyId() const; + void setAccessKeyId(const std::string &accessKeyId); + std::string getResourceGroupId() const; + void setResourceGroupId(const std::string &resourceGroupId); + std::string getGlobalSecurityGroupId() const; + void setGlobalSecurityGroupId(const std::string &globalSecurityGroupId); + std::string getSecurityToken() const; + void setSecurityToken(const std::string &securityToken); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + long getOwnerId() const; + void setOwnerId(long ownerId); + std::string getGlobalIgName() const; + void setGlobalIgName(const std::string &globalIgName); + +private: + long resourceOwnerId_; + std::string accessKeyId_; + std::string resourceGroupId_; + std::string globalSecurityGroupId_; + std::string securityToken_; + std::string regionId_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; + std::string globalIgName_; +}; +} // namespace Model +} // namespace Dds +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_DDS_MODEL_MODIFYGLOBALSECURITYIPGROUPNAMEREQUEST_H_ diff --git a/dds/include/alibabacloud/dds/model/ModifyGlobalSecurityIPGroupNameResult.h b/dds/include/alibabacloud/dds/model/ModifyGlobalSecurityIPGroupNameResult.h new file mode 100644 index 000000000..ea5abba82 --- /dev/null +++ b/dds/include/alibabacloud/dds/model/ModifyGlobalSecurityIPGroupNameResult.h @@ -0,0 +1,60 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_DDS_MODEL_MODIFYGLOBALSECURITYIPGROUPNAMERESULT_H_ +#define ALIBABACLOUD_DDS_MODEL_MODIFYGLOBALSECURITYIPGROUPNAMERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Dds + { + namespace Model + { + class ALIBABACLOUD_DDS_EXPORT ModifyGlobalSecurityIPGroupNameResult : public ServiceResult + { + public: + struct GlobalSecurityIPGroupItem + { + std::string securityIPType; + std::string globalIgName; + std::string gIpList; + std::string globalSecurityGroupId; + std::string regionId; + std::string whitelistNetType; + }; + + + ModifyGlobalSecurityIPGroupNameResult(); + explicit ModifyGlobalSecurityIPGroupNameResult(const std::string &payload); + ~ModifyGlobalSecurityIPGroupNameResult(); + std::vector getGlobalSecurityIPGroup()const; + + protected: + void parse(const std::string &payload); + private: + std::vector globalSecurityIPGroup_; + + }; + } + } +} +#endif // !ALIBABACLOUD_DDS_MODEL_MODIFYGLOBALSECURITYIPGROUPNAMERESULT_H_ \ No newline at end of file diff --git a/dds/include/alibabacloud/dds/model/ModifyGlobalSecurityIPGroupRelationRequest.h b/dds/include/alibabacloud/dds/model/ModifyGlobalSecurityIPGroupRelationRequest.h new file mode 100644 index 000000000..45595a514 --- /dev/null +++ b/dds/include/alibabacloud/dds/model/ModifyGlobalSecurityIPGroupRelationRequest.h @@ -0,0 +1,69 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_DDS_MODEL_MODIFYGLOBALSECURITYIPGROUPRELATIONREQUEST_H_ +#define ALIBABACLOUD_DDS_MODEL_MODIFYGLOBALSECURITYIPGROUPRELATIONREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Dds { +namespace Model { +class ALIBABACLOUD_DDS_EXPORT ModifyGlobalSecurityIPGroupRelationRequest : public RpcServiceRequest { +public: + ModifyGlobalSecurityIPGroupRelationRequest(); + ~ModifyGlobalSecurityIPGroupRelationRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getAccessKeyId() const; + void setAccessKeyId(const std::string &accessKeyId); + std::string getResourceGroupId() const; + void setResourceGroupId(const std::string &resourceGroupId); + std::string getGlobalSecurityGroupId() const; + void setGlobalSecurityGroupId(const std::string &globalSecurityGroupId); + std::string getSecurityToken() const; + void setSecurityToken(const std::string &securityToken); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getDBClusterId() const; + void setDBClusterId(const std::string &dBClusterId); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + long getOwnerId() const; + void setOwnerId(long ownerId); + +private: + long resourceOwnerId_; + std::string accessKeyId_; + std::string resourceGroupId_; + std::string globalSecurityGroupId_; + std::string securityToken_; + std::string regionId_; + std::string resourceOwnerAccount_; + std::string dBClusterId_; + std::string ownerAccount_; + long ownerId_; +}; +} // namespace Model +} // namespace Dds +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_DDS_MODEL_MODIFYGLOBALSECURITYIPGROUPRELATIONREQUEST_H_ diff --git a/dds/include/alibabacloud/dds/model/ModifyGlobalSecurityIPGroupRelationResult.h b/dds/include/alibabacloud/dds/model/ModifyGlobalSecurityIPGroupRelationResult.h new file mode 100644 index 000000000..22723f6f9 --- /dev/null +++ b/dds/include/alibabacloud/dds/model/ModifyGlobalSecurityIPGroupRelationResult.h @@ -0,0 +1,49 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_DDS_MODEL_MODIFYGLOBALSECURITYIPGROUPRELATIONRESULT_H_ +#define ALIBABACLOUD_DDS_MODEL_MODIFYGLOBALSECURITYIPGROUPRELATIONRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Dds + { + namespace Model + { + class ALIBABACLOUD_DDS_EXPORT ModifyGlobalSecurityIPGroupRelationResult : public ServiceResult + { + public: + + + ModifyGlobalSecurityIPGroupRelationResult(); + explicit ModifyGlobalSecurityIPGroupRelationResult(const std::string &payload); + ~ModifyGlobalSecurityIPGroupRelationResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_DDS_MODEL_MODIFYGLOBALSECURITYIPGROUPRELATIONRESULT_H_ \ No newline at end of file diff --git a/dds/include/alibabacloud/dds/model/ModifyGlobalSecurityIPGroupRequest.h b/dds/include/alibabacloud/dds/model/ModifyGlobalSecurityIPGroupRequest.h new file mode 100644 index 000000000..f5f837af7 --- /dev/null +++ b/dds/include/alibabacloud/dds/model/ModifyGlobalSecurityIPGroupRequest.h @@ -0,0 +1,78 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_DDS_MODEL_MODIFYGLOBALSECURITYIPGROUPREQUEST_H_ +#define ALIBABACLOUD_DDS_MODEL_MODIFYGLOBALSECURITYIPGROUPREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Dds { +namespace Model { +class ALIBABACLOUD_DDS_EXPORT ModifyGlobalSecurityIPGroupRequest : public RpcServiceRequest { +public: + ModifyGlobalSecurityIPGroupRequest(); + ~ModifyGlobalSecurityIPGroupRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getGIpList() const; + void setGIpList(const std::string &gIpList); + std::string getAccessKeyId() const; + void setAccessKeyId(const std::string &accessKeyId); + std::string getResourceGroupId() const; + void setResourceGroupId(const std::string &resourceGroupId); + std::string getGlobalSecurityGroupId() const; + void setGlobalSecurityGroupId(const std::string &globalSecurityGroupId); + std::string getSecurityToken() const; + void setSecurityToken(const std::string &securityToken); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::string getSecurityIPType() const; + void setSecurityIPType(const std::string &securityIPType); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + long getOwnerId() const; + void setOwnerId(long ownerId); + std::string getWhitelistNetType() const; + void setWhitelistNetType(const std::string &whitelistNetType); + std::string getGlobalIgName() const; + void setGlobalIgName(const std::string &globalIgName); + +private: + long resourceOwnerId_; + std::string gIpList_; + std::string accessKeyId_; + std::string resourceGroupId_; + std::string globalSecurityGroupId_; + std::string securityToken_; + std::string regionId_; + std::string securityIPType_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; + std::string whitelistNetType_; + std::string globalIgName_; +}; +} // namespace Model +} // namespace Dds +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_DDS_MODEL_MODIFYGLOBALSECURITYIPGROUPREQUEST_H_ diff --git a/dds/include/alibabacloud/dds/model/ModifyGlobalSecurityIPGroupResult.h b/dds/include/alibabacloud/dds/model/ModifyGlobalSecurityIPGroupResult.h new file mode 100644 index 000000000..03cfe443b --- /dev/null +++ b/dds/include/alibabacloud/dds/model/ModifyGlobalSecurityIPGroupResult.h @@ -0,0 +1,49 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_DDS_MODEL_MODIFYGLOBALSECURITYIPGROUPRESULT_H_ +#define ALIBABACLOUD_DDS_MODEL_MODIFYGLOBALSECURITYIPGROUPRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Dds + { + namespace Model + { + class ALIBABACLOUD_DDS_EXPORT ModifyGlobalSecurityIPGroupResult : public ServiceResult + { + public: + + + ModifyGlobalSecurityIPGroupResult(); + explicit ModifyGlobalSecurityIPGroupResult(const std::string &payload); + ~ModifyGlobalSecurityIPGroupResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_DDS_MODEL_MODIFYGLOBALSECURITYIPGROUPRESULT_H_ \ No newline at end of file diff --git a/dds/include/alibabacloud/dds/model/ResetAccountPasswordRequest.h b/dds/include/alibabacloud/dds/model/ResetAccountPasswordRequest.h index a7c464cbf..a0dc7dabe 100644 --- a/dds/include/alibabacloud/dds/model/ResetAccountPasswordRequest.h +++ b/dds/include/alibabacloud/dds/model/ResetAccountPasswordRequest.h @@ -48,6 +48,8 @@ public: void setOwnerId(long ownerId); std::string getAccountPassword() const; void setAccountPassword(const std::string &accountPassword); + std::string getCharacterType() const; + void setCharacterType(const std::string &characterType); private: long resourceOwnerId_; @@ -59,6 +61,7 @@ private: std::string ownerAccount_; long ownerId_; std::string accountPassword_; + std::string characterType_; }; } // namespace Model } // namespace Dds diff --git a/dds/src/DdsClient.cc b/dds/src/DdsClient.cc index e449769e4..3732d83b9 100644 --- a/dds/src/DdsClient.cc +++ b/dds/src/DdsClient.cc @@ -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& 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>( + [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& 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>( + [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& 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>( + [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& 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>( + [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& 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>( + [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& 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>( + [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& 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>( + [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(); diff --git a/dds/src/model/CreateDBInstanceRequest.cc b/dds/src/model/CreateDBInstanceRequest.cc index 7a5b087a7..3f8f3adc3 100644 --- a/dds/src/model/CreateDBInstanceRequest.cc +++ b/dds/src/model/CreateDBInstanceRequest.cc @@ -129,6 +129,15 @@ void CreateDBInstanceRequest::setTag(const std::vector + +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 ®ionId) { + 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); +} + diff --git a/dds/src/model/CreateGlobalSecurityIPGroupResult.cc b/dds/src/model/CreateGlobalSecurityIPGroupResult.cc new file mode 100644 index 000000000..95fbcf4b5 --- /dev/null +++ b/dds/src/model/CreateGlobalSecurityIPGroupResult.cc @@ -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 +#include + +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::getGlobalSecurityIPGroup()const +{ + return globalSecurityIPGroup_; +} + diff --git a/dds/src/model/CreateShardingDBInstanceRequest.cc b/dds/src/model/CreateShardingDBInstanceRequest.cc index 30dccbda8..08efe676e 100644 --- a/dds/src/model/CreateShardingDBInstanceRequest.cc +++ b/dds/src/model/CreateShardingDBInstanceRequest.cc @@ -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_; } diff --git a/dds/src/model/DeleteGlobalSecurityIPGroupRequest.cc b/dds/src/model/DeleteGlobalSecurityIPGroupRequest.cc new file mode 100644 index 000000000..e4de2c124 --- /dev/null +++ b/dds/src/model/DeleteGlobalSecurityIPGroupRequest.cc @@ -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 + +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 ®ionId) { + 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); +} + diff --git a/dds/src/model/DeleteGlobalSecurityIPGroupResult.cc b/dds/src/model/DeleteGlobalSecurityIPGroupResult.cc new file mode 100644 index 000000000..4fa4053f0 --- /dev/null +++ b/dds/src/model/DeleteGlobalSecurityIPGroupResult.cc @@ -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 +#include + +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()); + +} + diff --git a/dds/src/model/DescribeGlobalSecurityIPGroupRelationRequest.cc b/dds/src/model/DescribeGlobalSecurityIPGroupRelationRequest.cc new file mode 100644 index 000000000..a98c5d7ab --- /dev/null +++ b/dds/src/model/DescribeGlobalSecurityIPGroupRelationRequest.cc @@ -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 + +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 ®ionId) { + 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)); +} + diff --git a/dds/src/model/DescribeGlobalSecurityIPGroupRelationResult.cc b/dds/src/model/DescribeGlobalSecurityIPGroupRelationResult.cc new file mode 100644 index 000000000..9e345076d --- /dev/null +++ b/dds/src/model/DescribeGlobalSecurityIPGroupRelationResult.cc @@ -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 +#include + +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::getGlobalSecurityIPGroupRel()const +{ + return globalSecurityIPGroupRel_; +} + diff --git a/dds/src/model/DescribeGlobalSecurityIPGroupRequest.cc b/dds/src/model/DescribeGlobalSecurityIPGroupRequest.cc new file mode 100644 index 000000000..d15dc6bf6 --- /dev/null +++ b/dds/src/model/DescribeGlobalSecurityIPGroupRequest.cc @@ -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 + +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 ®ionId) { + 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)); +} + diff --git a/dds/src/model/DescribeGlobalSecurityIPGroupResult.cc b/dds/src/model/DescribeGlobalSecurityIPGroupResult.cc new file mode 100644 index 000000000..90926d516 --- /dev/null +++ b/dds/src/model/DescribeGlobalSecurityIPGroupResult.cc @@ -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 +#include + +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::getGlobalSecurityIPGroup()const +{ + return globalSecurityIPGroup_; +} + diff --git a/dds/src/model/DescribeParametersResult.cc b/dds/src/model/DescribeParametersResult.cc index e7604d0f5..3d9478045 100644 --- a/dds/src/model/DescribeParametersResult.cc +++ b/dds/src/model/DescribeParametersResult.cc @@ -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::getConfigParameters()const +std::vector DescribeParametersResult::getConfigParameters()const { return configParameters_; } diff --git a/dds/src/model/ModifyDBInstanceConnectionStringRequest.cc b/dds/src/model/ModifyDBInstanceConnectionStringRequest.cc index a109079b7..4df9ec55c 100644 --- a/dds/src/model/ModifyDBInstanceConnectionStringRequest.cc +++ b/dds/src/model/ModifyDBInstanceConnectionStringRequest.cc @@ -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_; } diff --git a/dds/src/model/ModifyGlobalSecurityIPGroupNameRequest.cc b/dds/src/model/ModifyGlobalSecurityIPGroupNameRequest.cc new file mode 100644 index 000000000..74f39b7d0 --- /dev/null +++ b/dds/src/model/ModifyGlobalSecurityIPGroupNameRequest.cc @@ -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 + +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 ®ionId) { + 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); +} + diff --git a/dds/src/model/ModifyGlobalSecurityIPGroupNameResult.cc b/dds/src/model/ModifyGlobalSecurityIPGroupNameResult.cc new file mode 100644 index 000000000..4dbffc08b --- /dev/null +++ b/dds/src/model/ModifyGlobalSecurityIPGroupNameResult.cc @@ -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 +#include + +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::getGlobalSecurityIPGroup()const +{ + return globalSecurityIPGroup_; +} + diff --git a/dds/src/model/ModifyGlobalSecurityIPGroupRelationRequest.cc b/dds/src/model/ModifyGlobalSecurityIPGroupRelationRequest.cc new file mode 100644 index 000000000..ac2b9816f --- /dev/null +++ b/dds/src/model/ModifyGlobalSecurityIPGroupRelationRequest.cc @@ -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 + +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 ®ionId) { + 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)); +} + diff --git a/dds/src/model/ModifyGlobalSecurityIPGroupRelationResult.cc b/dds/src/model/ModifyGlobalSecurityIPGroupRelationResult.cc new file mode 100644 index 000000000..67d796091 --- /dev/null +++ b/dds/src/model/ModifyGlobalSecurityIPGroupRelationResult.cc @@ -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 +#include + +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()); + +} + diff --git a/dds/src/model/ModifyGlobalSecurityIPGroupRequest.cc b/dds/src/model/ModifyGlobalSecurityIPGroupRequest.cc new file mode 100644 index 000000000..0632fa8ce --- /dev/null +++ b/dds/src/model/ModifyGlobalSecurityIPGroupRequest.cc @@ -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 + +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 ®ionId) { + 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); +} + diff --git a/dds/src/model/ModifyGlobalSecurityIPGroupResult.cc b/dds/src/model/ModifyGlobalSecurityIPGroupResult.cc new file mode 100644 index 000000000..1555e9916 --- /dev/null +++ b/dds/src/model/ModifyGlobalSecurityIPGroupResult.cc @@ -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 +#include + +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()); + +} + diff --git a/dds/src/model/ResetAccountPasswordRequest.cc b/dds/src/model/ResetAccountPasswordRequest.cc index 08fa8c100..16a64d468 100644 --- a/dds/src/model/ResetAccountPasswordRequest.cc +++ b/dds/src/model/ResetAccountPasswordRequest.cc @@ -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); +} +