From a2e2d09381a88ee28b66a91d7d6d8a246e00a2f1 Mon Sep 17 00:00:00 2001 From: sdk-team Date: Sat, 8 May 2021 01:36:02 +0000 Subject: [PATCH] Generated 2019-09-16 for alikafka. --- CHANGELOG | 3 + VERSION | 2 +- alikafka/2019-09-16/CheckInstanceQuota.xml | 1 + alikafka/2019-09-16/ConvertPostPayOrder.xml | 1 + alikafka/2019-09-16/CreateAcl.xml | 1 + alikafka/2019-09-16/CreateConnectorTask.xml | 1 + alikafka/2019-09-16/CreateConsumerGroup.xml | 1 + alikafka/2019-09-16/CreatePostPayOrder.xml | 1 + alikafka/2019-09-16/CreatePrePayOrder.xml | 1 + alikafka/2019-09-16/CreateSaslUser.xml | 1 + alikafka/2019-09-16/CreateTopic.xml | 1 + alikafka/2019-09-16/DeleteAcl.xml | 1 + alikafka/2019-09-16/DeleteConnectorTask.xml | 1 + alikafka/2019-09-16/DeleteConsumerGroup.xml | 1 + alikafka/2019-09-16/DeleteInstance.xml | 1 + alikafka/2019-09-16/DeleteSaslUser.xml | 1 + alikafka/2019-09-16/DeleteTopic.xml | 1 + alikafka/2019-09-16/DeployConnectorTask.xml | 1 + alikafka/2019-09-16/DescribeAcls.xml | 1 + alikafka/2019-09-16/DescribeNodeStatus.xml | 1 + alikafka/2019-09-16/DescribeSaslUsers.xml | 1 + .../GenerateConnectorTaskSystemResource.xml | 1 + alikafka/2019-09-16/GetAllInstanceIdList.xml | 1 + alikafka/2019-09-16/GetAllowedIpList.xml | 1 + alikafka/2019-09-16/GetConsumerList.xml | 1 + alikafka/2019-09-16/GetConsumerProgress.xml | 1 + alikafka/2019-09-16/GetInstanceList.xml | 1 + alikafka/2019-09-16/GetMetaProductList.xml | 1 + alikafka/2019-09-16/GetTopicList.xml | 1 + alikafka/2019-09-16/GetTopicStatus.xml | 1 + alikafka/2019-09-16/ListConnectorTask.xml | 1 + alikafka/2019-09-16/ListTagResources.xml | 1 + alikafka/2019-09-16/ModifyInstanceName.xml | 1 + alikafka/2019-09-16/ModifyPartitionNum.xml | 1 + alikafka/2019-09-16/ModifyTopicRemark.xml | 1 + alikafka/2019-09-16/ReleaseInstance.xml | 1 + .../2019-09-16/SendMigrationHeartbeat.xml | 1 + alikafka/2019-09-16/StartInstance.xml | 1 + alikafka/2019-09-16/TagResources.xml | 1 + alikafka/2019-09-16/UntagResources.xml | 1 + alikafka/2019-09-16/UpdateAllowedIp.xml | 1 + .../2019-09-16/UpdateConnectorTaskRemark.xml | 1 + alikafka/2019-09-16/UpdateInstanceConfig.xml | 1 + .../2019-09-16/UpgradeInstanceVersion.xml | 1 + alikafka/2019-09-16/UpgradePostPayOrder.xml | 1 + alikafka/2019-09-16/UpgradePrePayOrder.xml | 1 + alikafka/CMakeLists.txt | 222 +++ .../alibabacloud/alikafka/AlikafkaClient.h | 326 ++++ .../alibabacloud/alikafka/AlikafkaExport.h | 32 + .../model/ConvertPostPayOrderRequest.h | 54 + .../model/ConvertPostPayOrderResult.h | 57 + .../alikafka/model/CreateAclRequest.h | 66 + .../alikafka/model/CreateAclResult.h | 55 + .../model/CreateConsumerGroupRequest.h | 57 + .../model/CreateConsumerGroupResult.h | 55 + .../model/CreatePostPayOrderRequest.h | 75 + .../alikafka/model/CreatePostPayOrderResult.h | 57 + .../alikafka/model/CreatePrePayOrderRequest.h | 72 + .../alikafka/model/CreatePrePayOrderResult.h | 57 + .../alikafka/model/CreateSaslUserRequest.h | 60 + .../alikafka/model/CreateSaslUserResult.h | 55 + .../alikafka/model/CreateTopicRequest.h | 66 + .../alikafka/model/CreateTopicResult.h | 55 + .../alikafka/model/DeleteAclRequest.h | 66 + .../alikafka/model/DeleteAclResult.h | 55 + .../model/DeleteConsumerGroupRequest.h | 54 + .../model/DeleteConsumerGroupResult.h | 55 + .../alikafka/model/DeleteInstanceRequest.h | 51 + .../alikafka/model/DeleteInstanceResult.h | 55 + .../alikafka/model/DeleteSaslUserRequest.h | 57 + .../alikafka/model/DeleteSaslUserResult.h | 55 + .../alikafka/model/DeleteTopicRequest.h | 54 + .../alikafka/model/DeleteTopicResult.h | 55 + .../alikafka/model/DescribeAclsRequest.h | 63 + .../alikafka/model/DescribeAclsResult.h | 66 + .../model/DescribeNodeStatusRequest.h | 51 + .../alikafka/model/DescribeNodeStatusResult.h | 57 + .../alikafka/model/DescribeSaslUsersRequest.h | 51 + .../alikafka/model/DescribeSaslUsersResult.h | 63 + .../alikafka/model/GetAllowedIpListRequest.h | 51 + .../alikafka/model/GetAllowedIpListResult.h | 68 + .../alikafka/model/GetConsumerListRequest.h | 57 + .../alikafka/model/GetConsumerListResult.h | 70 + .../model/GetConsumerProgressRequest.h | 54 + .../model/GetConsumerProgressResult.h | 77 + .../alikafka/model/GetInstanceListRequest.h | 63 + .../alikafka/model/GetInstanceListResult.h | 93 ++ .../model/GetMetaProductListRequest.h | 51 + .../alikafka/model/GetMetaProductListResult.h | 73 + .../alikafka/model/GetTopicListRequest.h | 57 + .../alikafka/model/GetTopicListResult.h | 82 + .../alikafka/model/GetTopicStatusRequest.h | 54 + .../alikafka/model/GetTopicStatusResult.h | 71 + .../alikafka/model/ListTagResourcesRequest.h | 66 + .../alikafka/model/ListTagResourcesResult.h | 60 + .../model/ModifyInstanceNameRequest.h | 54 + .../alikafka/model/ModifyInstanceNameResult.h | 55 + .../model/ModifyPartitionNumRequest.h | 57 + .../alikafka/model/ModifyPartitionNumResult.h | 55 + .../alikafka/model/ModifyTopicRemarkRequest.h | 57 + .../alikafka/model/ModifyTopicRemarkResult.h | 55 + .../alikafka/model/ReleaseInstanceRequest.h | 57 + .../alikafka/model/ReleaseInstanceResult.h | 55 + .../alikafka/model/StartInstanceRequest.h | 93 ++ .../alikafka/model/StartInstanceResult.h | 55 + .../alikafka/model/TagResourcesRequest.h | 63 + .../alikafka/model/TagResourcesResult.h | 49 + .../alikafka/model/UntagResourcesRequest.h | 60 + .../alikafka/model/UntagResourcesResult.h | 49 + .../alikafka/model/UpdateAllowedIpRequest.h | 63 + .../alikafka/model/UpdateAllowedIpResult.h | 55 + .../model/UpdateInstanceConfigRequest.h | 54 + .../model/UpdateInstanceConfigResult.h | 55 + .../model/UpgradeInstanceVersionRequest.h | 54 + .../model/UpgradeInstanceVersionResult.h | 55 + .../model/UpgradePostPayOrderRequest.h | 69 + .../model/UpgradePostPayOrderResult.h | 55 + .../model/UpgradePrePayOrderRequest.h | 69 + .../alikafka/model/UpgradePrePayOrderResult.h | 55 + alikafka/src/AlikafkaClient.cc | 1313 +++++++++++++++++ .../src/model/ConvertPostPayOrderRequest.cc | 62 + .../src/model/ConvertPostPayOrderResult.cc | 72 + alikafka/src/model/CreateAclRequest.cc | 106 ++ alikafka/src/model/CreateAclResult.cc | 65 + .../src/model/CreateConsumerGroupRequest.cc | 73 + .../src/model/CreateConsumerGroupResult.cc | 65 + .../src/model/CreatePostPayOrderRequest.cc | 139 ++ .../src/model/CreatePostPayOrderResult.cc | 72 + .../src/model/CreatePrePayOrderRequest.cc | 128 ++ alikafka/src/model/CreatePrePayOrderResult.cc | 72 + alikafka/src/model/CreateSaslUserRequest.cc | 84 ++ alikafka/src/model/CreateSaslUserResult.cc | 65 + alikafka/src/model/CreateTopicRequest.cc | 106 ++ alikafka/src/model/CreateTopicResult.cc | 65 + alikafka/src/model/DeleteAclRequest.cc | 106 ++ alikafka/src/model/DeleteAclResult.cc | 65 + .../src/model/DeleteConsumerGroupRequest.cc | 62 + .../src/model/DeleteConsumerGroupResult.cc | 65 + alikafka/src/model/DeleteInstanceRequest.cc | 51 + alikafka/src/model/DeleteInstanceResult.cc | 65 + alikafka/src/model/DeleteSaslUserRequest.cc | 73 + alikafka/src/model/DeleteSaslUserResult.cc | 65 + alikafka/src/model/DeleteTopicRequest.cc | 62 + alikafka/src/model/DeleteTopicResult.cc | 65 + alikafka/src/model/DescribeAclsRequest.cc | 95 ++ alikafka/src/model/DescribeAclsResult.cc | 88 ++ .../src/model/DescribeNodeStatusRequest.cc | 51 + .../src/model/DescribeNodeStatusResult.cc | 73 + .../src/model/DescribeSaslUsersRequest.cc | 51 + alikafka/src/model/DescribeSaslUsersResult.cc | 82 + alikafka/src/model/GetAllowedIpListRequest.cc | 51 + alikafka/src/model/GetAllowedIpListResult.cc | 95 ++ alikafka/src/model/GetConsumerListRequest.cc | 73 + alikafka/src/model/GetConsumerListResult.cc | 94 ++ .../src/model/GetConsumerProgressRequest.cc | 62 + .../src/model/GetConsumerProgressResult.cc | 101 ++ alikafka/src/model/GetInstanceListRequest.cc | 80 + alikafka/src/model/GetInstanceListResult.cc | 133 ++ .../src/model/GetMetaProductListRequest.cc | 51 + .../src/model/GetMetaProductListResult.cc | 113 ++ alikafka/src/model/GetTopicListRequest.cc | 73 + alikafka/src/model/GetTopicListResult.cc | 127 ++ alikafka/src/model/GetTopicStatusRequest.cc | 62 + alikafka/src/model/GetTopicStatusResult.cc | 91 ++ alikafka/src/model/ListTagResourcesRequest.cc | 91 ++ alikafka/src/model/ListTagResourcesResult.cc | 70 + .../src/model/ModifyInstanceNameRequest.cc | 62 + .../src/model/ModifyInstanceNameResult.cc | 65 + .../src/model/ModifyPartitionNumRequest.cc | 73 + .../src/model/ModifyPartitionNumResult.cc | 65 + .../src/model/ModifyTopicRemarkRequest.cc | 73 + alikafka/src/model/ModifyTopicRemarkResult.cc | 65 + alikafka/src/model/ReleaseInstanceRequest.cc | 73 + alikafka/src/model/ReleaseInstanceResult.cc | 65 + alikafka/src/model/StartInstanceRequest.cc | 205 +++ alikafka/src/model/StartInstanceResult.cc | 65 + alikafka/src/model/TagResourcesRequest.cc | 80 + alikafka/src/model/TagResourcesResult.cc | 44 + alikafka/src/model/UntagResourcesRequest.cc | 88 ++ alikafka/src/model/UntagResourcesResult.cc | 44 + alikafka/src/model/UpdateAllowedIpRequest.cc | 95 ++ alikafka/src/model/UpdateAllowedIpResult.cc | 65 + .../src/model/UpdateInstanceConfigRequest.cc | 62 + .../src/model/UpdateInstanceConfigResult.cc | 65 + .../model/UpgradeInstanceVersionRequest.cc | 62 + .../src/model/UpgradeInstanceVersionResult.cc | 65 + .../src/model/UpgradePostPayOrderRequest.cc | 117 ++ .../src/model/UpgradePostPayOrderResult.cc | 65 + .../src/model/UpgradePrePayOrderRequest.cc | 117 ++ .../src/model/UpgradePrePayOrderResult.cc | 65 + alikafka/version-2019-09-16.xml | 1 + 191 files changed, 11641 insertions(+), 1 deletion(-) create mode 100644 alikafka/2019-09-16/CheckInstanceQuota.xml create mode 100644 alikafka/2019-09-16/ConvertPostPayOrder.xml create mode 100644 alikafka/2019-09-16/CreateAcl.xml create mode 100644 alikafka/2019-09-16/CreateConnectorTask.xml create mode 100644 alikafka/2019-09-16/CreateConsumerGroup.xml create mode 100644 alikafka/2019-09-16/CreatePostPayOrder.xml create mode 100644 alikafka/2019-09-16/CreatePrePayOrder.xml create mode 100644 alikafka/2019-09-16/CreateSaslUser.xml create mode 100644 alikafka/2019-09-16/CreateTopic.xml create mode 100644 alikafka/2019-09-16/DeleteAcl.xml create mode 100644 alikafka/2019-09-16/DeleteConnectorTask.xml create mode 100644 alikafka/2019-09-16/DeleteConsumerGroup.xml create mode 100644 alikafka/2019-09-16/DeleteInstance.xml create mode 100644 alikafka/2019-09-16/DeleteSaslUser.xml create mode 100644 alikafka/2019-09-16/DeleteTopic.xml create mode 100644 alikafka/2019-09-16/DeployConnectorTask.xml create mode 100644 alikafka/2019-09-16/DescribeAcls.xml create mode 100644 alikafka/2019-09-16/DescribeNodeStatus.xml create mode 100644 alikafka/2019-09-16/DescribeSaslUsers.xml create mode 100644 alikafka/2019-09-16/GenerateConnectorTaskSystemResource.xml create mode 100644 alikafka/2019-09-16/GetAllInstanceIdList.xml create mode 100644 alikafka/2019-09-16/GetAllowedIpList.xml create mode 100644 alikafka/2019-09-16/GetConsumerList.xml create mode 100644 alikafka/2019-09-16/GetConsumerProgress.xml create mode 100644 alikafka/2019-09-16/GetInstanceList.xml create mode 100644 alikafka/2019-09-16/GetMetaProductList.xml create mode 100644 alikafka/2019-09-16/GetTopicList.xml create mode 100644 alikafka/2019-09-16/GetTopicStatus.xml create mode 100644 alikafka/2019-09-16/ListConnectorTask.xml create mode 100644 alikafka/2019-09-16/ListTagResources.xml create mode 100644 alikafka/2019-09-16/ModifyInstanceName.xml create mode 100644 alikafka/2019-09-16/ModifyPartitionNum.xml create mode 100644 alikafka/2019-09-16/ModifyTopicRemark.xml create mode 100644 alikafka/2019-09-16/ReleaseInstance.xml create mode 100644 alikafka/2019-09-16/SendMigrationHeartbeat.xml create mode 100644 alikafka/2019-09-16/StartInstance.xml create mode 100644 alikafka/2019-09-16/TagResources.xml create mode 100644 alikafka/2019-09-16/UntagResources.xml create mode 100644 alikafka/2019-09-16/UpdateAllowedIp.xml create mode 100644 alikafka/2019-09-16/UpdateConnectorTaskRemark.xml create mode 100644 alikafka/2019-09-16/UpdateInstanceConfig.xml create mode 100644 alikafka/2019-09-16/UpgradeInstanceVersion.xml create mode 100644 alikafka/2019-09-16/UpgradePostPayOrder.xml create mode 100644 alikafka/2019-09-16/UpgradePrePayOrder.xml create mode 100644 alikafka/CMakeLists.txt create mode 100644 alikafka/include/alibabacloud/alikafka/AlikafkaClient.h create mode 100644 alikafka/include/alibabacloud/alikafka/AlikafkaExport.h create mode 100644 alikafka/include/alibabacloud/alikafka/model/ConvertPostPayOrderRequest.h create mode 100644 alikafka/include/alibabacloud/alikafka/model/ConvertPostPayOrderResult.h create mode 100644 alikafka/include/alibabacloud/alikafka/model/CreateAclRequest.h create mode 100644 alikafka/include/alibabacloud/alikafka/model/CreateAclResult.h create mode 100644 alikafka/include/alibabacloud/alikafka/model/CreateConsumerGroupRequest.h create mode 100644 alikafka/include/alibabacloud/alikafka/model/CreateConsumerGroupResult.h create mode 100644 alikafka/include/alibabacloud/alikafka/model/CreatePostPayOrderRequest.h create mode 100644 alikafka/include/alibabacloud/alikafka/model/CreatePostPayOrderResult.h create mode 100644 alikafka/include/alibabacloud/alikafka/model/CreatePrePayOrderRequest.h create mode 100644 alikafka/include/alibabacloud/alikafka/model/CreatePrePayOrderResult.h create mode 100644 alikafka/include/alibabacloud/alikafka/model/CreateSaslUserRequest.h create mode 100644 alikafka/include/alibabacloud/alikafka/model/CreateSaslUserResult.h create mode 100644 alikafka/include/alibabacloud/alikafka/model/CreateTopicRequest.h create mode 100644 alikafka/include/alibabacloud/alikafka/model/CreateTopicResult.h create mode 100644 alikafka/include/alibabacloud/alikafka/model/DeleteAclRequest.h create mode 100644 alikafka/include/alibabacloud/alikafka/model/DeleteAclResult.h create mode 100644 alikafka/include/alibabacloud/alikafka/model/DeleteConsumerGroupRequest.h create mode 100644 alikafka/include/alibabacloud/alikafka/model/DeleteConsumerGroupResult.h create mode 100644 alikafka/include/alibabacloud/alikafka/model/DeleteInstanceRequest.h create mode 100644 alikafka/include/alibabacloud/alikafka/model/DeleteInstanceResult.h create mode 100644 alikafka/include/alibabacloud/alikafka/model/DeleteSaslUserRequest.h create mode 100644 alikafka/include/alibabacloud/alikafka/model/DeleteSaslUserResult.h create mode 100644 alikafka/include/alibabacloud/alikafka/model/DeleteTopicRequest.h create mode 100644 alikafka/include/alibabacloud/alikafka/model/DeleteTopicResult.h create mode 100644 alikafka/include/alibabacloud/alikafka/model/DescribeAclsRequest.h create mode 100644 alikafka/include/alibabacloud/alikafka/model/DescribeAclsResult.h create mode 100644 alikafka/include/alibabacloud/alikafka/model/DescribeNodeStatusRequest.h create mode 100644 alikafka/include/alibabacloud/alikafka/model/DescribeNodeStatusResult.h create mode 100644 alikafka/include/alibabacloud/alikafka/model/DescribeSaslUsersRequest.h create mode 100644 alikafka/include/alibabacloud/alikafka/model/DescribeSaslUsersResult.h create mode 100644 alikafka/include/alibabacloud/alikafka/model/GetAllowedIpListRequest.h create mode 100644 alikafka/include/alibabacloud/alikafka/model/GetAllowedIpListResult.h create mode 100644 alikafka/include/alibabacloud/alikafka/model/GetConsumerListRequest.h create mode 100644 alikafka/include/alibabacloud/alikafka/model/GetConsumerListResult.h create mode 100644 alikafka/include/alibabacloud/alikafka/model/GetConsumerProgressRequest.h create mode 100644 alikafka/include/alibabacloud/alikafka/model/GetConsumerProgressResult.h create mode 100644 alikafka/include/alibabacloud/alikafka/model/GetInstanceListRequest.h create mode 100644 alikafka/include/alibabacloud/alikafka/model/GetInstanceListResult.h create mode 100644 alikafka/include/alibabacloud/alikafka/model/GetMetaProductListRequest.h create mode 100644 alikafka/include/alibabacloud/alikafka/model/GetMetaProductListResult.h create mode 100644 alikafka/include/alibabacloud/alikafka/model/GetTopicListRequest.h create mode 100644 alikafka/include/alibabacloud/alikafka/model/GetTopicListResult.h create mode 100644 alikafka/include/alibabacloud/alikafka/model/GetTopicStatusRequest.h create mode 100644 alikafka/include/alibabacloud/alikafka/model/GetTopicStatusResult.h create mode 100644 alikafka/include/alibabacloud/alikafka/model/ListTagResourcesRequest.h create mode 100644 alikafka/include/alibabacloud/alikafka/model/ListTagResourcesResult.h create mode 100644 alikafka/include/alibabacloud/alikafka/model/ModifyInstanceNameRequest.h create mode 100644 alikafka/include/alibabacloud/alikafka/model/ModifyInstanceNameResult.h create mode 100644 alikafka/include/alibabacloud/alikafka/model/ModifyPartitionNumRequest.h create mode 100644 alikafka/include/alibabacloud/alikafka/model/ModifyPartitionNumResult.h create mode 100644 alikafka/include/alibabacloud/alikafka/model/ModifyTopicRemarkRequest.h create mode 100644 alikafka/include/alibabacloud/alikafka/model/ModifyTopicRemarkResult.h create mode 100644 alikafka/include/alibabacloud/alikafka/model/ReleaseInstanceRequest.h create mode 100644 alikafka/include/alibabacloud/alikafka/model/ReleaseInstanceResult.h create mode 100644 alikafka/include/alibabacloud/alikafka/model/StartInstanceRequest.h create mode 100644 alikafka/include/alibabacloud/alikafka/model/StartInstanceResult.h create mode 100644 alikafka/include/alibabacloud/alikafka/model/TagResourcesRequest.h create mode 100644 alikafka/include/alibabacloud/alikafka/model/TagResourcesResult.h create mode 100644 alikafka/include/alibabacloud/alikafka/model/UntagResourcesRequest.h create mode 100644 alikafka/include/alibabacloud/alikafka/model/UntagResourcesResult.h create mode 100644 alikafka/include/alibabacloud/alikafka/model/UpdateAllowedIpRequest.h create mode 100644 alikafka/include/alibabacloud/alikafka/model/UpdateAllowedIpResult.h create mode 100644 alikafka/include/alibabacloud/alikafka/model/UpdateInstanceConfigRequest.h create mode 100644 alikafka/include/alibabacloud/alikafka/model/UpdateInstanceConfigResult.h create mode 100644 alikafka/include/alibabacloud/alikafka/model/UpgradeInstanceVersionRequest.h create mode 100644 alikafka/include/alibabacloud/alikafka/model/UpgradeInstanceVersionResult.h create mode 100644 alikafka/include/alibabacloud/alikafka/model/UpgradePostPayOrderRequest.h create mode 100644 alikafka/include/alibabacloud/alikafka/model/UpgradePostPayOrderResult.h create mode 100644 alikafka/include/alibabacloud/alikafka/model/UpgradePrePayOrderRequest.h create mode 100644 alikafka/include/alibabacloud/alikafka/model/UpgradePrePayOrderResult.h create mode 100644 alikafka/src/AlikafkaClient.cc create mode 100644 alikafka/src/model/ConvertPostPayOrderRequest.cc create mode 100644 alikafka/src/model/ConvertPostPayOrderResult.cc create mode 100644 alikafka/src/model/CreateAclRequest.cc create mode 100644 alikafka/src/model/CreateAclResult.cc create mode 100644 alikafka/src/model/CreateConsumerGroupRequest.cc create mode 100644 alikafka/src/model/CreateConsumerGroupResult.cc create mode 100644 alikafka/src/model/CreatePostPayOrderRequest.cc create mode 100644 alikafka/src/model/CreatePostPayOrderResult.cc create mode 100644 alikafka/src/model/CreatePrePayOrderRequest.cc create mode 100644 alikafka/src/model/CreatePrePayOrderResult.cc create mode 100644 alikafka/src/model/CreateSaslUserRequest.cc create mode 100644 alikafka/src/model/CreateSaslUserResult.cc create mode 100644 alikafka/src/model/CreateTopicRequest.cc create mode 100644 alikafka/src/model/CreateTopicResult.cc create mode 100644 alikafka/src/model/DeleteAclRequest.cc create mode 100644 alikafka/src/model/DeleteAclResult.cc create mode 100644 alikafka/src/model/DeleteConsumerGroupRequest.cc create mode 100644 alikafka/src/model/DeleteConsumerGroupResult.cc create mode 100644 alikafka/src/model/DeleteInstanceRequest.cc create mode 100644 alikafka/src/model/DeleteInstanceResult.cc create mode 100644 alikafka/src/model/DeleteSaslUserRequest.cc create mode 100644 alikafka/src/model/DeleteSaslUserResult.cc create mode 100644 alikafka/src/model/DeleteTopicRequest.cc create mode 100644 alikafka/src/model/DeleteTopicResult.cc create mode 100644 alikafka/src/model/DescribeAclsRequest.cc create mode 100644 alikafka/src/model/DescribeAclsResult.cc create mode 100644 alikafka/src/model/DescribeNodeStatusRequest.cc create mode 100644 alikafka/src/model/DescribeNodeStatusResult.cc create mode 100644 alikafka/src/model/DescribeSaslUsersRequest.cc create mode 100644 alikafka/src/model/DescribeSaslUsersResult.cc create mode 100644 alikafka/src/model/GetAllowedIpListRequest.cc create mode 100644 alikafka/src/model/GetAllowedIpListResult.cc create mode 100644 alikafka/src/model/GetConsumerListRequest.cc create mode 100644 alikafka/src/model/GetConsumerListResult.cc create mode 100644 alikafka/src/model/GetConsumerProgressRequest.cc create mode 100644 alikafka/src/model/GetConsumerProgressResult.cc create mode 100644 alikafka/src/model/GetInstanceListRequest.cc create mode 100644 alikafka/src/model/GetInstanceListResult.cc create mode 100644 alikafka/src/model/GetMetaProductListRequest.cc create mode 100644 alikafka/src/model/GetMetaProductListResult.cc create mode 100644 alikafka/src/model/GetTopicListRequest.cc create mode 100644 alikafka/src/model/GetTopicListResult.cc create mode 100644 alikafka/src/model/GetTopicStatusRequest.cc create mode 100644 alikafka/src/model/GetTopicStatusResult.cc create mode 100644 alikafka/src/model/ListTagResourcesRequest.cc create mode 100644 alikafka/src/model/ListTagResourcesResult.cc create mode 100644 alikafka/src/model/ModifyInstanceNameRequest.cc create mode 100644 alikafka/src/model/ModifyInstanceNameResult.cc create mode 100644 alikafka/src/model/ModifyPartitionNumRequest.cc create mode 100644 alikafka/src/model/ModifyPartitionNumResult.cc create mode 100644 alikafka/src/model/ModifyTopicRemarkRequest.cc create mode 100644 alikafka/src/model/ModifyTopicRemarkResult.cc create mode 100644 alikafka/src/model/ReleaseInstanceRequest.cc create mode 100644 alikafka/src/model/ReleaseInstanceResult.cc create mode 100644 alikafka/src/model/StartInstanceRequest.cc create mode 100644 alikafka/src/model/StartInstanceResult.cc create mode 100644 alikafka/src/model/TagResourcesRequest.cc create mode 100644 alikafka/src/model/TagResourcesResult.cc create mode 100644 alikafka/src/model/UntagResourcesRequest.cc create mode 100644 alikafka/src/model/UntagResourcesResult.cc create mode 100644 alikafka/src/model/UpdateAllowedIpRequest.cc create mode 100644 alikafka/src/model/UpdateAllowedIpResult.cc create mode 100644 alikafka/src/model/UpdateInstanceConfigRequest.cc create mode 100644 alikafka/src/model/UpdateInstanceConfigResult.cc create mode 100644 alikafka/src/model/UpgradeInstanceVersionRequest.cc create mode 100644 alikafka/src/model/UpgradeInstanceVersionResult.cc create mode 100644 alikafka/src/model/UpgradePostPayOrderRequest.cc create mode 100644 alikafka/src/model/UpgradePostPayOrderResult.cc create mode 100644 alikafka/src/model/UpgradePrePayOrderRequest.cc create mode 100644 alikafka/src/model/UpgradePrePayOrderResult.cc create mode 100644 alikafka/version-2019-09-16.xml diff --git a/CHANGELOG b/CHANGELOG index 223807394..65c8f77f1 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -1,3 +1,6 @@ +2021-05-08 Version: 1.36.713 +- Generated 2019-09-16 for `alikafka`. + 2021-05-07 Version: 1.36.712 - Support interface DescribeDBInstanceEncryptionKey for DB Instance Cloud Disk Encryption. diff --git a/VERSION b/VERSION index 517361481..f000f0618 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -1.36.712 \ No newline at end of file +1.36.713 \ No newline at end of file diff --git a/alikafka/2019-09-16/CheckInstanceQuota.xml b/alikafka/2019-09-16/CheckInstanceQuota.xml new file mode 100644 index 000000000..841395af7 --- /dev/null +++ b/alikafka/2019-09-16/CheckInstanceQuota.xml @@ -0,0 +1 @@ + diff --git a/alikafka/2019-09-16/ConvertPostPayOrder.xml b/alikafka/2019-09-16/ConvertPostPayOrder.xml new file mode 100644 index 000000000..8a66fc1d7 --- /dev/null +++ b/alikafka/2019-09-16/ConvertPostPayOrder.xml @@ -0,0 +1 @@ + diff --git a/alikafka/2019-09-16/CreateAcl.xml b/alikafka/2019-09-16/CreateAcl.xml new file mode 100644 index 000000000..040580d21 --- /dev/null +++ b/alikafka/2019-09-16/CreateAcl.xml @@ -0,0 +1 @@ + diff --git a/alikafka/2019-09-16/CreateConnectorTask.xml b/alikafka/2019-09-16/CreateConnectorTask.xml new file mode 100644 index 000000000..c6352c283 --- /dev/null +++ b/alikafka/2019-09-16/CreateConnectorTask.xml @@ -0,0 +1 @@ + diff --git a/alikafka/2019-09-16/CreateConsumerGroup.xml b/alikafka/2019-09-16/CreateConsumerGroup.xml new file mode 100644 index 000000000..1d0da0971 --- /dev/null +++ b/alikafka/2019-09-16/CreateConsumerGroup.xml @@ -0,0 +1 @@ + diff --git a/alikafka/2019-09-16/CreatePostPayOrder.xml b/alikafka/2019-09-16/CreatePostPayOrder.xml new file mode 100644 index 000000000..e9e94c512 --- /dev/null +++ b/alikafka/2019-09-16/CreatePostPayOrder.xml @@ -0,0 +1 @@ + diff --git a/alikafka/2019-09-16/CreatePrePayOrder.xml b/alikafka/2019-09-16/CreatePrePayOrder.xml new file mode 100644 index 000000000..4b0ad7f7c --- /dev/null +++ b/alikafka/2019-09-16/CreatePrePayOrder.xml @@ -0,0 +1 @@ + diff --git a/alikafka/2019-09-16/CreateSaslUser.xml b/alikafka/2019-09-16/CreateSaslUser.xml new file mode 100644 index 000000000..703661161 --- /dev/null +++ b/alikafka/2019-09-16/CreateSaslUser.xml @@ -0,0 +1 @@ + diff --git a/alikafka/2019-09-16/CreateTopic.xml b/alikafka/2019-09-16/CreateTopic.xml new file mode 100644 index 000000000..072b476f9 --- /dev/null +++ b/alikafka/2019-09-16/CreateTopic.xml @@ -0,0 +1 @@ + diff --git a/alikafka/2019-09-16/DeleteAcl.xml b/alikafka/2019-09-16/DeleteAcl.xml new file mode 100644 index 000000000..461df41a7 --- /dev/null +++ b/alikafka/2019-09-16/DeleteAcl.xml @@ -0,0 +1 @@ + diff --git a/alikafka/2019-09-16/DeleteConnectorTask.xml b/alikafka/2019-09-16/DeleteConnectorTask.xml new file mode 100644 index 000000000..0f96ea0a7 --- /dev/null +++ b/alikafka/2019-09-16/DeleteConnectorTask.xml @@ -0,0 +1 @@ + diff --git a/alikafka/2019-09-16/DeleteConsumerGroup.xml b/alikafka/2019-09-16/DeleteConsumerGroup.xml new file mode 100644 index 000000000..718a1cac4 --- /dev/null +++ b/alikafka/2019-09-16/DeleteConsumerGroup.xml @@ -0,0 +1 @@ + diff --git a/alikafka/2019-09-16/DeleteInstance.xml b/alikafka/2019-09-16/DeleteInstance.xml new file mode 100644 index 000000000..5e3955e23 --- /dev/null +++ b/alikafka/2019-09-16/DeleteInstance.xml @@ -0,0 +1 @@ + diff --git a/alikafka/2019-09-16/DeleteSaslUser.xml b/alikafka/2019-09-16/DeleteSaslUser.xml new file mode 100644 index 000000000..551020f49 --- /dev/null +++ b/alikafka/2019-09-16/DeleteSaslUser.xml @@ -0,0 +1 @@ + diff --git a/alikafka/2019-09-16/DeleteTopic.xml b/alikafka/2019-09-16/DeleteTopic.xml new file mode 100644 index 000000000..d3d9c98b8 --- /dev/null +++ b/alikafka/2019-09-16/DeleteTopic.xml @@ -0,0 +1 @@ + diff --git a/alikafka/2019-09-16/DeployConnectorTask.xml b/alikafka/2019-09-16/DeployConnectorTask.xml new file mode 100644 index 000000000..f731dad65 --- /dev/null +++ b/alikafka/2019-09-16/DeployConnectorTask.xml @@ -0,0 +1 @@ + diff --git a/alikafka/2019-09-16/DescribeAcls.xml b/alikafka/2019-09-16/DescribeAcls.xml new file mode 100644 index 000000000..36caedc80 --- /dev/null +++ b/alikafka/2019-09-16/DescribeAcls.xml @@ -0,0 +1 @@ + diff --git a/alikafka/2019-09-16/DescribeNodeStatus.xml b/alikafka/2019-09-16/DescribeNodeStatus.xml new file mode 100644 index 000000000..79313839a --- /dev/null +++ b/alikafka/2019-09-16/DescribeNodeStatus.xml @@ -0,0 +1 @@ + diff --git a/alikafka/2019-09-16/DescribeSaslUsers.xml b/alikafka/2019-09-16/DescribeSaslUsers.xml new file mode 100644 index 000000000..ce33686c6 --- /dev/null +++ b/alikafka/2019-09-16/DescribeSaslUsers.xml @@ -0,0 +1 @@ + diff --git a/alikafka/2019-09-16/GenerateConnectorTaskSystemResource.xml b/alikafka/2019-09-16/GenerateConnectorTaskSystemResource.xml new file mode 100644 index 000000000..61fa417fd --- /dev/null +++ b/alikafka/2019-09-16/GenerateConnectorTaskSystemResource.xml @@ -0,0 +1 @@ + diff --git a/alikafka/2019-09-16/GetAllInstanceIdList.xml b/alikafka/2019-09-16/GetAllInstanceIdList.xml new file mode 100644 index 000000000..b930788b2 --- /dev/null +++ b/alikafka/2019-09-16/GetAllInstanceIdList.xml @@ -0,0 +1 @@ + diff --git a/alikafka/2019-09-16/GetAllowedIpList.xml b/alikafka/2019-09-16/GetAllowedIpList.xml new file mode 100644 index 000000000..c17c9e7e4 --- /dev/null +++ b/alikafka/2019-09-16/GetAllowedIpList.xml @@ -0,0 +1 @@ + diff --git a/alikafka/2019-09-16/GetConsumerList.xml b/alikafka/2019-09-16/GetConsumerList.xml new file mode 100644 index 000000000..3a55e14db --- /dev/null +++ b/alikafka/2019-09-16/GetConsumerList.xml @@ -0,0 +1 @@ + diff --git a/alikafka/2019-09-16/GetConsumerProgress.xml b/alikafka/2019-09-16/GetConsumerProgress.xml new file mode 100644 index 000000000..2bf5bd5c8 --- /dev/null +++ b/alikafka/2019-09-16/GetConsumerProgress.xml @@ -0,0 +1 @@ + diff --git a/alikafka/2019-09-16/GetInstanceList.xml b/alikafka/2019-09-16/GetInstanceList.xml new file mode 100644 index 000000000..c88af0b29 --- /dev/null +++ b/alikafka/2019-09-16/GetInstanceList.xml @@ -0,0 +1 @@ + diff --git a/alikafka/2019-09-16/GetMetaProductList.xml b/alikafka/2019-09-16/GetMetaProductList.xml new file mode 100644 index 000000000..238a21a3b --- /dev/null +++ b/alikafka/2019-09-16/GetMetaProductList.xml @@ -0,0 +1 @@ + diff --git a/alikafka/2019-09-16/GetTopicList.xml b/alikafka/2019-09-16/GetTopicList.xml new file mode 100644 index 000000000..8192e18a3 --- /dev/null +++ b/alikafka/2019-09-16/GetTopicList.xml @@ -0,0 +1 @@ + diff --git a/alikafka/2019-09-16/GetTopicStatus.xml b/alikafka/2019-09-16/GetTopicStatus.xml new file mode 100644 index 000000000..da65f94ef --- /dev/null +++ b/alikafka/2019-09-16/GetTopicStatus.xml @@ -0,0 +1 @@ + diff --git a/alikafka/2019-09-16/ListConnectorTask.xml b/alikafka/2019-09-16/ListConnectorTask.xml new file mode 100644 index 000000000..49e1f2ef5 --- /dev/null +++ b/alikafka/2019-09-16/ListConnectorTask.xml @@ -0,0 +1 @@ + diff --git a/alikafka/2019-09-16/ListTagResources.xml b/alikafka/2019-09-16/ListTagResources.xml new file mode 100644 index 000000000..5ecac6014 --- /dev/null +++ b/alikafka/2019-09-16/ListTagResources.xml @@ -0,0 +1 @@ + diff --git a/alikafka/2019-09-16/ModifyInstanceName.xml b/alikafka/2019-09-16/ModifyInstanceName.xml new file mode 100644 index 000000000..5cda667bc --- /dev/null +++ b/alikafka/2019-09-16/ModifyInstanceName.xml @@ -0,0 +1 @@ + diff --git a/alikafka/2019-09-16/ModifyPartitionNum.xml b/alikafka/2019-09-16/ModifyPartitionNum.xml new file mode 100644 index 000000000..d64fd0ab5 --- /dev/null +++ b/alikafka/2019-09-16/ModifyPartitionNum.xml @@ -0,0 +1 @@ + diff --git a/alikafka/2019-09-16/ModifyTopicRemark.xml b/alikafka/2019-09-16/ModifyTopicRemark.xml new file mode 100644 index 000000000..467cd3253 --- /dev/null +++ b/alikafka/2019-09-16/ModifyTopicRemark.xml @@ -0,0 +1 @@ + diff --git a/alikafka/2019-09-16/ReleaseInstance.xml b/alikafka/2019-09-16/ReleaseInstance.xml new file mode 100644 index 000000000..0c2997eaf --- /dev/null +++ b/alikafka/2019-09-16/ReleaseInstance.xml @@ -0,0 +1 @@ + diff --git a/alikafka/2019-09-16/SendMigrationHeartbeat.xml b/alikafka/2019-09-16/SendMigrationHeartbeat.xml new file mode 100644 index 000000000..c8061960e --- /dev/null +++ b/alikafka/2019-09-16/SendMigrationHeartbeat.xml @@ -0,0 +1 @@ + diff --git a/alikafka/2019-09-16/StartInstance.xml b/alikafka/2019-09-16/StartInstance.xml new file mode 100644 index 000000000..ffa073df8 --- /dev/null +++ b/alikafka/2019-09-16/StartInstance.xml @@ -0,0 +1 @@ + diff --git a/alikafka/2019-09-16/TagResources.xml b/alikafka/2019-09-16/TagResources.xml new file mode 100644 index 000000000..fdb040001 --- /dev/null +++ b/alikafka/2019-09-16/TagResources.xml @@ -0,0 +1 @@ + diff --git a/alikafka/2019-09-16/UntagResources.xml b/alikafka/2019-09-16/UntagResources.xml new file mode 100644 index 000000000..cf5cf9023 --- /dev/null +++ b/alikafka/2019-09-16/UntagResources.xml @@ -0,0 +1 @@ + diff --git a/alikafka/2019-09-16/UpdateAllowedIp.xml b/alikafka/2019-09-16/UpdateAllowedIp.xml new file mode 100644 index 000000000..a61af84a5 --- /dev/null +++ b/alikafka/2019-09-16/UpdateAllowedIp.xml @@ -0,0 +1 @@ + diff --git a/alikafka/2019-09-16/UpdateConnectorTaskRemark.xml b/alikafka/2019-09-16/UpdateConnectorTaskRemark.xml new file mode 100644 index 000000000..16b607d24 --- /dev/null +++ b/alikafka/2019-09-16/UpdateConnectorTaskRemark.xml @@ -0,0 +1 @@ + diff --git a/alikafka/2019-09-16/UpdateInstanceConfig.xml b/alikafka/2019-09-16/UpdateInstanceConfig.xml new file mode 100644 index 000000000..5e22936ee --- /dev/null +++ b/alikafka/2019-09-16/UpdateInstanceConfig.xml @@ -0,0 +1 @@ + diff --git a/alikafka/2019-09-16/UpgradeInstanceVersion.xml b/alikafka/2019-09-16/UpgradeInstanceVersion.xml new file mode 100644 index 000000000..8f17a9d49 --- /dev/null +++ b/alikafka/2019-09-16/UpgradeInstanceVersion.xml @@ -0,0 +1 @@ + diff --git a/alikafka/2019-09-16/UpgradePostPayOrder.xml b/alikafka/2019-09-16/UpgradePostPayOrder.xml new file mode 100644 index 000000000..43c16add1 --- /dev/null +++ b/alikafka/2019-09-16/UpgradePostPayOrder.xml @@ -0,0 +1 @@ + diff --git a/alikafka/2019-09-16/UpgradePrePayOrder.xml b/alikafka/2019-09-16/UpgradePrePayOrder.xml new file mode 100644 index 000000000..34e30941d --- /dev/null +++ b/alikafka/2019-09-16/UpgradePrePayOrder.xml @@ -0,0 +1 @@ + diff --git a/alikafka/CMakeLists.txt b/alikafka/CMakeLists.txt new file mode 100644 index 000000000..950ac4d3e --- /dev/null +++ b/alikafka/CMakeLists.txt @@ -0,0 +1,222 @@ +# +# 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. +# + +set(public_header_dir ${CMAKE_CURRENT_SOURCE_DIR}/../include) + +set(alikafka_public_header + include/alibabacloud/alikafka/AlikafkaClient.h + include/alibabacloud/alikafka/AlikafkaExport.h ) + +set(alikafka_public_header_model + include/alibabacloud/alikafka/model/ConvertPostPayOrderRequest.h + include/alibabacloud/alikafka/model/ConvertPostPayOrderResult.h + include/alibabacloud/alikafka/model/CreateAclRequest.h + include/alibabacloud/alikafka/model/CreateAclResult.h + include/alibabacloud/alikafka/model/CreateConsumerGroupRequest.h + include/alibabacloud/alikafka/model/CreateConsumerGroupResult.h + include/alibabacloud/alikafka/model/CreatePostPayOrderRequest.h + include/alibabacloud/alikafka/model/CreatePostPayOrderResult.h + include/alibabacloud/alikafka/model/CreatePrePayOrderRequest.h + include/alibabacloud/alikafka/model/CreatePrePayOrderResult.h + include/alibabacloud/alikafka/model/CreateSaslUserRequest.h + include/alibabacloud/alikafka/model/CreateSaslUserResult.h + include/alibabacloud/alikafka/model/CreateTopicRequest.h + include/alibabacloud/alikafka/model/CreateTopicResult.h + include/alibabacloud/alikafka/model/DeleteAclRequest.h + include/alibabacloud/alikafka/model/DeleteAclResult.h + include/alibabacloud/alikafka/model/DeleteConsumerGroupRequest.h + include/alibabacloud/alikafka/model/DeleteConsumerGroupResult.h + include/alibabacloud/alikafka/model/DeleteInstanceRequest.h + include/alibabacloud/alikafka/model/DeleteInstanceResult.h + include/alibabacloud/alikafka/model/DeleteSaslUserRequest.h + include/alibabacloud/alikafka/model/DeleteSaslUserResult.h + include/alibabacloud/alikafka/model/DeleteTopicRequest.h + include/alibabacloud/alikafka/model/DeleteTopicResult.h + include/alibabacloud/alikafka/model/DescribeAclsRequest.h + include/alibabacloud/alikafka/model/DescribeAclsResult.h + include/alibabacloud/alikafka/model/DescribeNodeStatusRequest.h + include/alibabacloud/alikafka/model/DescribeNodeStatusResult.h + include/alibabacloud/alikafka/model/DescribeSaslUsersRequest.h + include/alibabacloud/alikafka/model/DescribeSaslUsersResult.h + include/alibabacloud/alikafka/model/GetAllowedIpListRequest.h + include/alibabacloud/alikafka/model/GetAllowedIpListResult.h + include/alibabacloud/alikafka/model/GetConsumerListRequest.h + include/alibabacloud/alikafka/model/GetConsumerListResult.h + include/alibabacloud/alikafka/model/GetConsumerProgressRequest.h + include/alibabacloud/alikafka/model/GetConsumerProgressResult.h + include/alibabacloud/alikafka/model/GetInstanceListRequest.h + include/alibabacloud/alikafka/model/GetInstanceListResult.h + include/alibabacloud/alikafka/model/GetMetaProductListRequest.h + include/alibabacloud/alikafka/model/GetMetaProductListResult.h + include/alibabacloud/alikafka/model/GetTopicListRequest.h + include/alibabacloud/alikafka/model/GetTopicListResult.h + include/alibabacloud/alikafka/model/GetTopicStatusRequest.h + include/alibabacloud/alikafka/model/GetTopicStatusResult.h + include/alibabacloud/alikafka/model/ListTagResourcesRequest.h + include/alibabacloud/alikafka/model/ListTagResourcesResult.h + include/alibabacloud/alikafka/model/ModifyInstanceNameRequest.h + include/alibabacloud/alikafka/model/ModifyInstanceNameResult.h + include/alibabacloud/alikafka/model/ModifyPartitionNumRequest.h + include/alibabacloud/alikafka/model/ModifyPartitionNumResult.h + include/alibabacloud/alikafka/model/ModifyTopicRemarkRequest.h + include/alibabacloud/alikafka/model/ModifyTopicRemarkResult.h + include/alibabacloud/alikafka/model/ReleaseInstanceRequest.h + include/alibabacloud/alikafka/model/ReleaseInstanceResult.h + include/alibabacloud/alikafka/model/StartInstanceRequest.h + include/alibabacloud/alikafka/model/StartInstanceResult.h + include/alibabacloud/alikafka/model/TagResourcesRequest.h + include/alibabacloud/alikafka/model/TagResourcesResult.h + include/alibabacloud/alikafka/model/UntagResourcesRequest.h + include/alibabacloud/alikafka/model/UntagResourcesResult.h + include/alibabacloud/alikafka/model/UpdateAllowedIpRequest.h + include/alibabacloud/alikafka/model/UpdateAllowedIpResult.h + include/alibabacloud/alikafka/model/UpdateInstanceConfigRequest.h + include/alibabacloud/alikafka/model/UpdateInstanceConfigResult.h + include/alibabacloud/alikafka/model/UpgradeInstanceVersionRequest.h + include/alibabacloud/alikafka/model/UpgradeInstanceVersionResult.h + include/alibabacloud/alikafka/model/UpgradePostPayOrderRequest.h + include/alibabacloud/alikafka/model/UpgradePostPayOrderResult.h + include/alibabacloud/alikafka/model/UpgradePrePayOrderRequest.h + include/alibabacloud/alikafka/model/UpgradePrePayOrderResult.h ) + +set(alikafka_src + src/AlikafkaClient.cc + src/model/ConvertPostPayOrderRequest.cc + src/model/ConvertPostPayOrderResult.cc + src/model/CreateAclRequest.cc + src/model/CreateAclResult.cc + src/model/CreateConsumerGroupRequest.cc + src/model/CreateConsumerGroupResult.cc + src/model/CreatePostPayOrderRequest.cc + src/model/CreatePostPayOrderResult.cc + src/model/CreatePrePayOrderRequest.cc + src/model/CreatePrePayOrderResult.cc + src/model/CreateSaslUserRequest.cc + src/model/CreateSaslUserResult.cc + src/model/CreateTopicRequest.cc + src/model/CreateTopicResult.cc + src/model/DeleteAclRequest.cc + src/model/DeleteAclResult.cc + src/model/DeleteConsumerGroupRequest.cc + src/model/DeleteConsumerGroupResult.cc + src/model/DeleteInstanceRequest.cc + src/model/DeleteInstanceResult.cc + src/model/DeleteSaslUserRequest.cc + src/model/DeleteSaslUserResult.cc + src/model/DeleteTopicRequest.cc + src/model/DeleteTopicResult.cc + src/model/DescribeAclsRequest.cc + src/model/DescribeAclsResult.cc + src/model/DescribeNodeStatusRequest.cc + src/model/DescribeNodeStatusResult.cc + src/model/DescribeSaslUsersRequest.cc + src/model/DescribeSaslUsersResult.cc + src/model/GetAllowedIpListRequest.cc + src/model/GetAllowedIpListResult.cc + src/model/GetConsumerListRequest.cc + src/model/GetConsumerListResult.cc + src/model/GetConsumerProgressRequest.cc + src/model/GetConsumerProgressResult.cc + src/model/GetInstanceListRequest.cc + src/model/GetInstanceListResult.cc + src/model/GetMetaProductListRequest.cc + src/model/GetMetaProductListResult.cc + src/model/GetTopicListRequest.cc + src/model/GetTopicListResult.cc + src/model/GetTopicStatusRequest.cc + src/model/GetTopicStatusResult.cc + src/model/ListTagResourcesRequest.cc + src/model/ListTagResourcesResult.cc + src/model/ModifyInstanceNameRequest.cc + src/model/ModifyInstanceNameResult.cc + src/model/ModifyPartitionNumRequest.cc + src/model/ModifyPartitionNumResult.cc + src/model/ModifyTopicRemarkRequest.cc + src/model/ModifyTopicRemarkResult.cc + src/model/ReleaseInstanceRequest.cc + src/model/ReleaseInstanceResult.cc + src/model/StartInstanceRequest.cc + src/model/StartInstanceResult.cc + src/model/TagResourcesRequest.cc + src/model/TagResourcesResult.cc + src/model/UntagResourcesRequest.cc + src/model/UntagResourcesResult.cc + src/model/UpdateAllowedIpRequest.cc + src/model/UpdateAllowedIpResult.cc + src/model/UpdateInstanceConfigRequest.cc + src/model/UpdateInstanceConfigResult.cc + src/model/UpgradeInstanceVersionRequest.cc + src/model/UpgradeInstanceVersionResult.cc + src/model/UpgradePostPayOrderRequest.cc + src/model/UpgradePostPayOrderResult.cc + src/model/UpgradePrePayOrderRequest.cc + src/model/UpgradePrePayOrderResult.cc ) + +add_library(alikafka ${LIB_TYPE} + ${alikafka_public_header} + ${alikafka_public_header_model} + ${alikafka_src}) + +set_target_properties(alikafka + PROPERTIES + LINKER_LANGUAGE CXX + ARCHIVE_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/lib + LIBRARY_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/lib + RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/bin + OUTPUT_NAME ${TARGET_OUTPUT_NAME_PREFIX}alikafka + ) + +if(${LIB_TYPE} STREQUAL "SHARED") + set_target_properties(alikafka + PROPERTIES + DEFINE_SYMBOL ALIBABACLOUD_ALIKAFKA_LIBRARY) +endif() + +target_include_directories(alikafka + PRIVATE include + ${CMAKE_SOURCE_DIR}/core/include + ) +target_link_libraries(alikafka + core) + +if(CMAKE_HOST_WIN32) + ExternalProject_Get_Property(jsoncpp INSTALL_DIR) + set(jsoncpp_install_dir ${INSTALL_DIR}) + add_dependencies(alikafka + jsoncpp) + target_include_directories(alikafka + PRIVATE ${jsoncpp_install_dir}/include) + target_link_libraries(alikafka + ${jsoncpp_install_dir}/lib/jsoncpp.lib) + set_target_properties(alikafka + PROPERTIES + COMPILE_OPTIONS "/bigobj") +else() + target_include_directories(alikafka + PRIVATE /usr/include/jsoncpp) + target_link_libraries(alikafka + jsoncpp) +endif() + +install(FILES ${alikafka_public_header} + DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/alibabacloud/alikafka) +install(FILES ${alikafka_public_header_model} + DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/alibabacloud/alikafka/model) +install(TARGETS alikafka + ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR} + LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR} + RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR} + ) \ No newline at end of file diff --git a/alikafka/include/alibabacloud/alikafka/AlikafkaClient.h b/alikafka/include/alibabacloud/alikafka/AlikafkaClient.h new file mode 100644 index 000000000..9321dccb2 --- /dev/null +++ b/alikafka/include/alibabacloud/alikafka/AlikafkaClient.h @@ -0,0 +1,326 @@ +/* + * 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_ALIKAFKA_ALIKAFKACLIENT_H_ +#define ALIBABACLOUD_ALIKAFKA_ALIKAFKACLIENT_H_ + +#include +#include +#include +#include +#include "AlikafkaExport.h" +#include "model/ConvertPostPayOrderRequest.h" +#include "model/ConvertPostPayOrderResult.h" +#include "model/CreateAclRequest.h" +#include "model/CreateAclResult.h" +#include "model/CreateConsumerGroupRequest.h" +#include "model/CreateConsumerGroupResult.h" +#include "model/CreatePostPayOrderRequest.h" +#include "model/CreatePostPayOrderResult.h" +#include "model/CreatePrePayOrderRequest.h" +#include "model/CreatePrePayOrderResult.h" +#include "model/CreateSaslUserRequest.h" +#include "model/CreateSaslUserResult.h" +#include "model/CreateTopicRequest.h" +#include "model/CreateTopicResult.h" +#include "model/DeleteAclRequest.h" +#include "model/DeleteAclResult.h" +#include "model/DeleteConsumerGroupRequest.h" +#include "model/DeleteConsumerGroupResult.h" +#include "model/DeleteInstanceRequest.h" +#include "model/DeleteInstanceResult.h" +#include "model/DeleteSaslUserRequest.h" +#include "model/DeleteSaslUserResult.h" +#include "model/DeleteTopicRequest.h" +#include "model/DeleteTopicResult.h" +#include "model/DescribeAclsRequest.h" +#include "model/DescribeAclsResult.h" +#include "model/DescribeNodeStatusRequest.h" +#include "model/DescribeNodeStatusResult.h" +#include "model/DescribeSaslUsersRequest.h" +#include "model/DescribeSaslUsersResult.h" +#include "model/GetAllowedIpListRequest.h" +#include "model/GetAllowedIpListResult.h" +#include "model/GetConsumerListRequest.h" +#include "model/GetConsumerListResult.h" +#include "model/GetConsumerProgressRequest.h" +#include "model/GetConsumerProgressResult.h" +#include "model/GetInstanceListRequest.h" +#include "model/GetInstanceListResult.h" +#include "model/GetMetaProductListRequest.h" +#include "model/GetMetaProductListResult.h" +#include "model/GetTopicListRequest.h" +#include "model/GetTopicListResult.h" +#include "model/GetTopicStatusRequest.h" +#include "model/GetTopicStatusResult.h" +#include "model/ListTagResourcesRequest.h" +#include "model/ListTagResourcesResult.h" +#include "model/ModifyInstanceNameRequest.h" +#include "model/ModifyInstanceNameResult.h" +#include "model/ModifyPartitionNumRequest.h" +#include "model/ModifyPartitionNumResult.h" +#include "model/ModifyTopicRemarkRequest.h" +#include "model/ModifyTopicRemarkResult.h" +#include "model/ReleaseInstanceRequest.h" +#include "model/ReleaseInstanceResult.h" +#include "model/StartInstanceRequest.h" +#include "model/StartInstanceResult.h" +#include "model/TagResourcesRequest.h" +#include "model/TagResourcesResult.h" +#include "model/UntagResourcesRequest.h" +#include "model/UntagResourcesResult.h" +#include "model/UpdateAllowedIpRequest.h" +#include "model/UpdateAllowedIpResult.h" +#include "model/UpdateInstanceConfigRequest.h" +#include "model/UpdateInstanceConfigResult.h" +#include "model/UpgradeInstanceVersionRequest.h" +#include "model/UpgradeInstanceVersionResult.h" +#include "model/UpgradePostPayOrderRequest.h" +#include "model/UpgradePostPayOrderResult.h" +#include "model/UpgradePrePayOrderRequest.h" +#include "model/UpgradePrePayOrderResult.h" + + +namespace AlibabaCloud +{ + namespace Alikafka + { + class ALIBABACLOUD_ALIKAFKA_EXPORT AlikafkaClient : public RpcServiceClient + { + public: + typedef Outcome ConvertPostPayOrderOutcome; + typedef std::future ConvertPostPayOrderOutcomeCallable; + typedef std::function&)> ConvertPostPayOrderAsyncHandler; + typedef Outcome CreateAclOutcome; + typedef std::future CreateAclOutcomeCallable; + typedef std::function&)> CreateAclAsyncHandler; + typedef Outcome CreateConsumerGroupOutcome; + typedef std::future CreateConsumerGroupOutcomeCallable; + typedef std::function&)> CreateConsumerGroupAsyncHandler; + typedef Outcome CreatePostPayOrderOutcome; + typedef std::future CreatePostPayOrderOutcomeCallable; + typedef std::function&)> CreatePostPayOrderAsyncHandler; + typedef Outcome CreatePrePayOrderOutcome; + typedef std::future CreatePrePayOrderOutcomeCallable; + typedef std::function&)> CreatePrePayOrderAsyncHandler; + typedef Outcome CreateSaslUserOutcome; + typedef std::future CreateSaslUserOutcomeCallable; + typedef std::function&)> CreateSaslUserAsyncHandler; + typedef Outcome CreateTopicOutcome; + typedef std::future CreateTopicOutcomeCallable; + typedef std::function&)> CreateTopicAsyncHandler; + typedef Outcome DeleteAclOutcome; + typedef std::future DeleteAclOutcomeCallable; + typedef std::function&)> DeleteAclAsyncHandler; + typedef Outcome DeleteConsumerGroupOutcome; + typedef std::future DeleteConsumerGroupOutcomeCallable; + typedef std::function&)> DeleteConsumerGroupAsyncHandler; + typedef Outcome DeleteInstanceOutcome; + typedef std::future DeleteInstanceOutcomeCallable; + typedef std::function&)> DeleteInstanceAsyncHandler; + typedef Outcome DeleteSaslUserOutcome; + typedef std::future DeleteSaslUserOutcomeCallable; + typedef std::function&)> DeleteSaslUserAsyncHandler; + typedef Outcome DeleteTopicOutcome; + typedef std::future DeleteTopicOutcomeCallable; + typedef std::function&)> DeleteTopicAsyncHandler; + typedef Outcome DescribeAclsOutcome; + typedef std::future DescribeAclsOutcomeCallable; + typedef std::function&)> DescribeAclsAsyncHandler; + typedef Outcome DescribeNodeStatusOutcome; + typedef std::future DescribeNodeStatusOutcomeCallable; + typedef std::function&)> DescribeNodeStatusAsyncHandler; + typedef Outcome DescribeSaslUsersOutcome; + typedef std::future DescribeSaslUsersOutcomeCallable; + typedef std::function&)> DescribeSaslUsersAsyncHandler; + typedef Outcome GetAllowedIpListOutcome; + typedef std::future GetAllowedIpListOutcomeCallable; + typedef std::function&)> GetAllowedIpListAsyncHandler; + typedef Outcome GetConsumerListOutcome; + typedef std::future GetConsumerListOutcomeCallable; + typedef std::function&)> GetConsumerListAsyncHandler; + typedef Outcome GetConsumerProgressOutcome; + typedef std::future GetConsumerProgressOutcomeCallable; + typedef std::function&)> GetConsumerProgressAsyncHandler; + typedef Outcome GetInstanceListOutcome; + typedef std::future GetInstanceListOutcomeCallable; + typedef std::function&)> GetInstanceListAsyncHandler; + typedef Outcome GetMetaProductListOutcome; + typedef std::future GetMetaProductListOutcomeCallable; + typedef std::function&)> GetMetaProductListAsyncHandler; + typedef Outcome GetTopicListOutcome; + typedef std::future GetTopicListOutcomeCallable; + typedef std::function&)> GetTopicListAsyncHandler; + typedef Outcome GetTopicStatusOutcome; + typedef std::future GetTopicStatusOutcomeCallable; + typedef std::function&)> GetTopicStatusAsyncHandler; + typedef Outcome ListTagResourcesOutcome; + typedef std::future ListTagResourcesOutcomeCallable; + typedef std::function&)> ListTagResourcesAsyncHandler; + typedef Outcome ModifyInstanceNameOutcome; + typedef std::future ModifyInstanceNameOutcomeCallable; + typedef std::function&)> ModifyInstanceNameAsyncHandler; + typedef Outcome ModifyPartitionNumOutcome; + typedef std::future ModifyPartitionNumOutcomeCallable; + typedef std::function&)> ModifyPartitionNumAsyncHandler; + typedef Outcome ModifyTopicRemarkOutcome; + typedef std::future ModifyTopicRemarkOutcomeCallable; + typedef std::function&)> ModifyTopicRemarkAsyncHandler; + typedef Outcome ReleaseInstanceOutcome; + typedef std::future ReleaseInstanceOutcomeCallable; + typedef std::function&)> ReleaseInstanceAsyncHandler; + typedef Outcome StartInstanceOutcome; + typedef std::future StartInstanceOutcomeCallable; + typedef std::function&)> StartInstanceAsyncHandler; + typedef Outcome TagResourcesOutcome; + typedef std::future TagResourcesOutcomeCallable; + typedef std::function&)> TagResourcesAsyncHandler; + typedef Outcome UntagResourcesOutcome; + typedef std::future UntagResourcesOutcomeCallable; + typedef std::function&)> UntagResourcesAsyncHandler; + typedef Outcome UpdateAllowedIpOutcome; + typedef std::future UpdateAllowedIpOutcomeCallable; + typedef std::function&)> UpdateAllowedIpAsyncHandler; + typedef Outcome UpdateInstanceConfigOutcome; + typedef std::future UpdateInstanceConfigOutcomeCallable; + typedef std::function&)> UpdateInstanceConfigAsyncHandler; + typedef Outcome UpgradeInstanceVersionOutcome; + typedef std::future UpgradeInstanceVersionOutcomeCallable; + typedef std::function&)> UpgradeInstanceVersionAsyncHandler; + typedef Outcome UpgradePostPayOrderOutcome; + typedef std::future UpgradePostPayOrderOutcomeCallable; + typedef std::function&)> UpgradePostPayOrderAsyncHandler; + typedef Outcome UpgradePrePayOrderOutcome; + typedef std::future UpgradePrePayOrderOutcomeCallable; + typedef std::function&)> UpgradePrePayOrderAsyncHandler; + + AlikafkaClient(const Credentials &credentials, const ClientConfiguration &configuration); + AlikafkaClient(const std::shared_ptr &credentialsProvider, const ClientConfiguration &configuration); + AlikafkaClient(const std::string &accessKeyId, const std::string &accessKeySecret, const ClientConfiguration &configuration); + ~AlikafkaClient(); + ConvertPostPayOrderOutcome convertPostPayOrder(const Model::ConvertPostPayOrderRequest &request)const; + void convertPostPayOrderAsync(const Model::ConvertPostPayOrderRequest& request, const ConvertPostPayOrderAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ConvertPostPayOrderOutcomeCallable convertPostPayOrderCallable(const Model::ConvertPostPayOrderRequest& request) const; + CreateAclOutcome createAcl(const Model::CreateAclRequest &request)const; + void createAclAsync(const Model::CreateAclRequest& request, const CreateAclAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CreateAclOutcomeCallable createAclCallable(const Model::CreateAclRequest& request) const; + CreateConsumerGroupOutcome createConsumerGroup(const Model::CreateConsumerGroupRequest &request)const; + void createConsumerGroupAsync(const Model::CreateConsumerGroupRequest& request, const CreateConsumerGroupAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CreateConsumerGroupOutcomeCallable createConsumerGroupCallable(const Model::CreateConsumerGroupRequest& request) const; + CreatePostPayOrderOutcome createPostPayOrder(const Model::CreatePostPayOrderRequest &request)const; + void createPostPayOrderAsync(const Model::CreatePostPayOrderRequest& request, const CreatePostPayOrderAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CreatePostPayOrderOutcomeCallable createPostPayOrderCallable(const Model::CreatePostPayOrderRequest& request) const; + CreatePrePayOrderOutcome createPrePayOrder(const Model::CreatePrePayOrderRequest &request)const; + void createPrePayOrderAsync(const Model::CreatePrePayOrderRequest& request, const CreatePrePayOrderAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CreatePrePayOrderOutcomeCallable createPrePayOrderCallable(const Model::CreatePrePayOrderRequest& request) const; + CreateSaslUserOutcome createSaslUser(const Model::CreateSaslUserRequest &request)const; + void createSaslUserAsync(const Model::CreateSaslUserRequest& request, const CreateSaslUserAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CreateSaslUserOutcomeCallable createSaslUserCallable(const Model::CreateSaslUserRequest& request) const; + CreateTopicOutcome createTopic(const Model::CreateTopicRequest &request)const; + void createTopicAsync(const Model::CreateTopicRequest& request, const CreateTopicAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CreateTopicOutcomeCallable createTopicCallable(const Model::CreateTopicRequest& request) const; + DeleteAclOutcome deleteAcl(const Model::DeleteAclRequest &request)const; + void deleteAclAsync(const Model::DeleteAclRequest& request, const DeleteAclAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DeleteAclOutcomeCallable deleteAclCallable(const Model::DeleteAclRequest& request) const; + DeleteConsumerGroupOutcome deleteConsumerGroup(const Model::DeleteConsumerGroupRequest &request)const; + void deleteConsumerGroupAsync(const Model::DeleteConsumerGroupRequest& request, const DeleteConsumerGroupAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DeleteConsumerGroupOutcomeCallable deleteConsumerGroupCallable(const Model::DeleteConsumerGroupRequest& request) const; + DeleteInstanceOutcome deleteInstance(const Model::DeleteInstanceRequest &request)const; + void deleteInstanceAsync(const Model::DeleteInstanceRequest& request, const DeleteInstanceAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DeleteInstanceOutcomeCallable deleteInstanceCallable(const Model::DeleteInstanceRequest& request) const; + DeleteSaslUserOutcome deleteSaslUser(const Model::DeleteSaslUserRequest &request)const; + void deleteSaslUserAsync(const Model::DeleteSaslUserRequest& request, const DeleteSaslUserAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DeleteSaslUserOutcomeCallable deleteSaslUserCallable(const Model::DeleteSaslUserRequest& request) const; + DeleteTopicOutcome deleteTopic(const Model::DeleteTopicRequest &request)const; + void deleteTopicAsync(const Model::DeleteTopicRequest& request, const DeleteTopicAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DeleteTopicOutcomeCallable deleteTopicCallable(const Model::DeleteTopicRequest& request) const; + DescribeAclsOutcome describeAcls(const Model::DescribeAclsRequest &request)const; + void describeAclsAsync(const Model::DescribeAclsRequest& request, const DescribeAclsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeAclsOutcomeCallable describeAclsCallable(const Model::DescribeAclsRequest& request) const; + DescribeNodeStatusOutcome describeNodeStatus(const Model::DescribeNodeStatusRequest &request)const; + void describeNodeStatusAsync(const Model::DescribeNodeStatusRequest& request, const DescribeNodeStatusAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeNodeStatusOutcomeCallable describeNodeStatusCallable(const Model::DescribeNodeStatusRequest& request) const; + DescribeSaslUsersOutcome describeSaslUsers(const Model::DescribeSaslUsersRequest &request)const; + void describeSaslUsersAsync(const Model::DescribeSaslUsersRequest& request, const DescribeSaslUsersAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeSaslUsersOutcomeCallable describeSaslUsersCallable(const Model::DescribeSaslUsersRequest& request) const; + GetAllowedIpListOutcome getAllowedIpList(const Model::GetAllowedIpListRequest &request)const; + void getAllowedIpListAsync(const Model::GetAllowedIpListRequest& request, const GetAllowedIpListAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + GetAllowedIpListOutcomeCallable getAllowedIpListCallable(const Model::GetAllowedIpListRequest& request) const; + GetConsumerListOutcome getConsumerList(const Model::GetConsumerListRequest &request)const; + void getConsumerListAsync(const Model::GetConsumerListRequest& request, const GetConsumerListAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + GetConsumerListOutcomeCallable getConsumerListCallable(const Model::GetConsumerListRequest& request) const; + GetConsumerProgressOutcome getConsumerProgress(const Model::GetConsumerProgressRequest &request)const; + void getConsumerProgressAsync(const Model::GetConsumerProgressRequest& request, const GetConsumerProgressAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + GetConsumerProgressOutcomeCallable getConsumerProgressCallable(const Model::GetConsumerProgressRequest& request) const; + GetInstanceListOutcome getInstanceList(const Model::GetInstanceListRequest &request)const; + void getInstanceListAsync(const Model::GetInstanceListRequest& request, const GetInstanceListAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + GetInstanceListOutcomeCallable getInstanceListCallable(const Model::GetInstanceListRequest& request) const; + GetMetaProductListOutcome getMetaProductList(const Model::GetMetaProductListRequest &request)const; + void getMetaProductListAsync(const Model::GetMetaProductListRequest& request, const GetMetaProductListAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + GetMetaProductListOutcomeCallable getMetaProductListCallable(const Model::GetMetaProductListRequest& request) const; + GetTopicListOutcome getTopicList(const Model::GetTopicListRequest &request)const; + void getTopicListAsync(const Model::GetTopicListRequest& request, const GetTopicListAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + GetTopicListOutcomeCallable getTopicListCallable(const Model::GetTopicListRequest& request) const; + GetTopicStatusOutcome getTopicStatus(const Model::GetTopicStatusRequest &request)const; + void getTopicStatusAsync(const Model::GetTopicStatusRequest& request, const GetTopicStatusAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + GetTopicStatusOutcomeCallable getTopicStatusCallable(const Model::GetTopicStatusRequest& request) const; + ListTagResourcesOutcome listTagResources(const Model::ListTagResourcesRequest &request)const; + void listTagResourcesAsync(const Model::ListTagResourcesRequest& request, const ListTagResourcesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListTagResourcesOutcomeCallable listTagResourcesCallable(const Model::ListTagResourcesRequest& request) const; + ModifyInstanceNameOutcome modifyInstanceName(const Model::ModifyInstanceNameRequest &request)const; + void modifyInstanceNameAsync(const Model::ModifyInstanceNameRequest& request, const ModifyInstanceNameAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ModifyInstanceNameOutcomeCallable modifyInstanceNameCallable(const Model::ModifyInstanceNameRequest& request) const; + ModifyPartitionNumOutcome modifyPartitionNum(const Model::ModifyPartitionNumRequest &request)const; + void modifyPartitionNumAsync(const Model::ModifyPartitionNumRequest& request, const ModifyPartitionNumAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ModifyPartitionNumOutcomeCallable modifyPartitionNumCallable(const Model::ModifyPartitionNumRequest& request) const; + ModifyTopicRemarkOutcome modifyTopicRemark(const Model::ModifyTopicRemarkRequest &request)const; + void modifyTopicRemarkAsync(const Model::ModifyTopicRemarkRequest& request, const ModifyTopicRemarkAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ModifyTopicRemarkOutcomeCallable modifyTopicRemarkCallable(const Model::ModifyTopicRemarkRequest& request) const; + ReleaseInstanceOutcome releaseInstance(const Model::ReleaseInstanceRequest &request)const; + void releaseInstanceAsync(const Model::ReleaseInstanceRequest& request, const ReleaseInstanceAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ReleaseInstanceOutcomeCallable releaseInstanceCallable(const Model::ReleaseInstanceRequest& request) const; + StartInstanceOutcome startInstance(const Model::StartInstanceRequest &request)const; + void startInstanceAsync(const Model::StartInstanceRequest& request, const StartInstanceAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + StartInstanceOutcomeCallable startInstanceCallable(const Model::StartInstanceRequest& request) const; + TagResourcesOutcome tagResources(const Model::TagResourcesRequest &request)const; + void tagResourcesAsync(const Model::TagResourcesRequest& request, const TagResourcesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + TagResourcesOutcomeCallable tagResourcesCallable(const Model::TagResourcesRequest& request) const; + UntagResourcesOutcome untagResources(const Model::UntagResourcesRequest &request)const; + void untagResourcesAsync(const Model::UntagResourcesRequest& request, const UntagResourcesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + UntagResourcesOutcomeCallable untagResourcesCallable(const Model::UntagResourcesRequest& request) const; + UpdateAllowedIpOutcome updateAllowedIp(const Model::UpdateAllowedIpRequest &request)const; + void updateAllowedIpAsync(const Model::UpdateAllowedIpRequest& request, const UpdateAllowedIpAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + UpdateAllowedIpOutcomeCallable updateAllowedIpCallable(const Model::UpdateAllowedIpRequest& request) const; + UpdateInstanceConfigOutcome updateInstanceConfig(const Model::UpdateInstanceConfigRequest &request)const; + void updateInstanceConfigAsync(const Model::UpdateInstanceConfigRequest& request, const UpdateInstanceConfigAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + UpdateInstanceConfigOutcomeCallable updateInstanceConfigCallable(const Model::UpdateInstanceConfigRequest& request) const; + UpgradeInstanceVersionOutcome upgradeInstanceVersion(const Model::UpgradeInstanceVersionRequest &request)const; + void upgradeInstanceVersionAsync(const Model::UpgradeInstanceVersionRequest& request, const UpgradeInstanceVersionAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + UpgradeInstanceVersionOutcomeCallable upgradeInstanceVersionCallable(const Model::UpgradeInstanceVersionRequest& request) const; + UpgradePostPayOrderOutcome upgradePostPayOrder(const Model::UpgradePostPayOrderRequest &request)const; + void upgradePostPayOrderAsync(const Model::UpgradePostPayOrderRequest& request, const UpgradePostPayOrderAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + UpgradePostPayOrderOutcomeCallable upgradePostPayOrderCallable(const Model::UpgradePostPayOrderRequest& request) const; + UpgradePrePayOrderOutcome upgradePrePayOrder(const Model::UpgradePrePayOrderRequest &request)const; + void upgradePrePayOrderAsync(const Model::UpgradePrePayOrderRequest& request, const UpgradePrePayOrderAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + UpgradePrePayOrderOutcomeCallable upgradePrePayOrderCallable(const Model::UpgradePrePayOrderRequest& request) const; + + private: + std::shared_ptr endpointProvider_; + }; + } +} + +#endif // !ALIBABACLOUD_ALIKAFKA_ALIKAFKACLIENT_H_ diff --git a/alikafka/include/alibabacloud/alikafka/AlikafkaExport.h b/alikafka/include/alibabacloud/alikafka/AlikafkaExport.h new file mode 100644 index 000000000..29bcab1f2 --- /dev/null +++ b/alikafka/include/alibabacloud/alikafka/AlikafkaExport.h @@ -0,0 +1,32 @@ +/* + * 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_ALIKAFKA_ALIKAFKAEXPORT_H_ +#define ALIBABACLOUD_ALIKAFKA_ALIKAFKAEXPORT_H_ + +#include + +#if defined(ALIBABACLOUD_SHARED) +# if defined(ALIBABACLOUD_ALIKAFKA_LIBRARY) +# define ALIBABACLOUD_ALIKAFKA_EXPORT ALIBABACLOUD_DECL_EXPORT +# else +# define ALIBABACLOUD_ALIKAFKA_EXPORT ALIBABACLOUD_DECL_IMPORT +# endif +#else +# define ALIBABACLOUD_ALIKAFKA_EXPORT +#endif + +#endif // !ALIBABACLOUD_ALIKAFKA_ALIKAFKAEXPORT_H_ \ No newline at end of file diff --git a/alikafka/include/alibabacloud/alikafka/model/ConvertPostPayOrderRequest.h b/alikafka/include/alibabacloud/alikafka/model/ConvertPostPayOrderRequest.h new file mode 100644 index 000000000..a70ee8460 --- /dev/null +++ b/alikafka/include/alibabacloud/alikafka/model/ConvertPostPayOrderRequest.h @@ -0,0 +1,54 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ALIKAFKA_MODEL_CONVERTPOSTPAYORDERREQUEST_H_ +#define ALIBABACLOUD_ALIKAFKA_MODEL_CONVERTPOSTPAYORDERREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Alikafka + { + namespace Model + { + class ALIBABACLOUD_ALIKAFKA_EXPORT ConvertPostPayOrderRequest : public RpcServiceRequest + { + + public: + ConvertPostPayOrderRequest(); + ~ConvertPostPayOrderRequest(); + + int getDuration()const; + void setDuration(int duration); + std::string getInstanceId()const; + void setInstanceId(const std::string& instanceId); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + + private: + int duration_; + std::string instanceId_; + std::string regionId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ALIKAFKA_MODEL_CONVERTPOSTPAYORDERREQUEST_H_ \ No newline at end of file diff --git a/alikafka/include/alibabacloud/alikafka/model/ConvertPostPayOrderResult.h b/alikafka/include/alibabacloud/alikafka/model/ConvertPostPayOrderResult.h new file mode 100644 index 000000000..2756daf8a --- /dev/null +++ b/alikafka/include/alibabacloud/alikafka/model/ConvertPostPayOrderResult.h @@ -0,0 +1,57 @@ +/* + * 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_ALIKAFKA_MODEL_CONVERTPOSTPAYORDERRESULT_H_ +#define ALIBABACLOUD_ALIKAFKA_MODEL_CONVERTPOSTPAYORDERRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Alikafka + { + namespace Model + { + class ALIBABACLOUD_ALIKAFKA_EXPORT ConvertPostPayOrderResult : public ServiceResult + { + public: + + + ConvertPostPayOrderResult(); + explicit ConvertPostPayOrderResult(const std::string &payload); + ~ConvertPostPayOrderResult(); + std::string getMessage()const; + std::string getOrderId()const; + int getCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + std::string orderId_; + int code_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ALIKAFKA_MODEL_CONVERTPOSTPAYORDERRESULT_H_ \ No newline at end of file diff --git a/alikafka/include/alibabacloud/alikafka/model/CreateAclRequest.h b/alikafka/include/alibabacloud/alikafka/model/CreateAclRequest.h new file mode 100644 index 000000000..ed6d96a41 --- /dev/null +++ b/alikafka/include/alibabacloud/alikafka/model/CreateAclRequest.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_ALIKAFKA_MODEL_CREATEACLREQUEST_H_ +#define ALIBABACLOUD_ALIKAFKA_MODEL_CREATEACLREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Alikafka + { + namespace Model + { + class ALIBABACLOUD_ALIKAFKA_EXPORT CreateAclRequest : public RpcServiceRequest + { + + public: + CreateAclRequest(); + ~CreateAclRequest(); + + std::string getAclResourcePatternType()const; + void setAclResourcePatternType(const std::string& aclResourcePatternType); + std::string getAclResourceType()const; + void setAclResourceType(const std::string& aclResourceType); + std::string getAclOperationType()const; + void setAclOperationType(const std::string& aclOperationType); + std::string getAclResourceName()const; + void setAclResourceName(const std::string& aclResourceName); + std::string getInstanceId()const; + void setInstanceId(const std::string& instanceId); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::string getUsername()const; + void setUsername(const std::string& username); + + private: + std::string aclResourcePatternType_; + std::string aclResourceType_; + std::string aclOperationType_; + std::string aclResourceName_; + std::string instanceId_; + std::string regionId_; + std::string username_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ALIKAFKA_MODEL_CREATEACLREQUEST_H_ \ No newline at end of file diff --git a/alikafka/include/alibabacloud/alikafka/model/CreateAclResult.h b/alikafka/include/alibabacloud/alikafka/model/CreateAclResult.h new file mode 100644 index 000000000..44bde282e --- /dev/null +++ b/alikafka/include/alibabacloud/alikafka/model/CreateAclResult.h @@ -0,0 +1,55 @@ +/* + * 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_ALIKAFKA_MODEL_CREATEACLRESULT_H_ +#define ALIBABACLOUD_ALIKAFKA_MODEL_CREATEACLRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Alikafka + { + namespace Model + { + class ALIBABACLOUD_ALIKAFKA_EXPORT CreateAclResult : public ServiceResult + { + public: + + + CreateAclResult(); + explicit CreateAclResult(const std::string &payload); + ~CreateAclResult(); + std::string getMessage()const; + int getCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + int code_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ALIKAFKA_MODEL_CREATEACLRESULT_H_ \ No newline at end of file diff --git a/alikafka/include/alibabacloud/alikafka/model/CreateConsumerGroupRequest.h b/alikafka/include/alibabacloud/alikafka/model/CreateConsumerGroupRequest.h new file mode 100644 index 000000000..91f4e56ee --- /dev/null +++ b/alikafka/include/alibabacloud/alikafka/model/CreateConsumerGroupRequest.h @@ -0,0 +1,57 @@ +/* + * 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_ALIKAFKA_MODEL_CREATECONSUMERGROUPREQUEST_H_ +#define ALIBABACLOUD_ALIKAFKA_MODEL_CREATECONSUMERGROUPREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Alikafka + { + namespace Model + { + class ALIBABACLOUD_ALIKAFKA_EXPORT CreateConsumerGroupRequest : public RpcServiceRequest + { + + public: + CreateConsumerGroupRequest(); + ~CreateConsumerGroupRequest(); + + std::string getConsumerId()const; + void setConsumerId(const std::string& consumerId); + std::string getRemark()const; + void setRemark(const std::string& remark); + std::string getInstanceId()const; + void setInstanceId(const std::string& instanceId); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + + private: + std::string consumerId_; + std::string remark_; + std::string instanceId_; + std::string regionId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ALIKAFKA_MODEL_CREATECONSUMERGROUPREQUEST_H_ \ No newline at end of file diff --git a/alikafka/include/alibabacloud/alikafka/model/CreateConsumerGroupResult.h b/alikafka/include/alibabacloud/alikafka/model/CreateConsumerGroupResult.h new file mode 100644 index 000000000..b3ea0ae43 --- /dev/null +++ b/alikafka/include/alibabacloud/alikafka/model/CreateConsumerGroupResult.h @@ -0,0 +1,55 @@ +/* + * 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_ALIKAFKA_MODEL_CREATECONSUMERGROUPRESULT_H_ +#define ALIBABACLOUD_ALIKAFKA_MODEL_CREATECONSUMERGROUPRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Alikafka + { + namespace Model + { + class ALIBABACLOUD_ALIKAFKA_EXPORT CreateConsumerGroupResult : public ServiceResult + { + public: + + + CreateConsumerGroupResult(); + explicit CreateConsumerGroupResult(const std::string &payload); + ~CreateConsumerGroupResult(); + std::string getMessage()const; + int getCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + int code_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ALIKAFKA_MODEL_CREATECONSUMERGROUPRESULT_H_ \ No newline at end of file diff --git a/alikafka/include/alibabacloud/alikafka/model/CreatePostPayOrderRequest.h b/alikafka/include/alibabacloud/alikafka/model/CreatePostPayOrderRequest.h new file mode 100644 index 000000000..bad12a2c6 --- /dev/null +++ b/alikafka/include/alibabacloud/alikafka/model/CreatePostPayOrderRequest.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_ALIKAFKA_MODEL_CREATEPOSTPAYORDERREQUEST_H_ +#define ALIBABACLOUD_ALIKAFKA_MODEL_CREATEPOSTPAYORDERREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Alikafka + { + namespace Model + { + class ALIBABACLOUD_ALIKAFKA_EXPORT CreatePostPayOrderRequest : public RpcServiceRequest + { + + public: + CreatePostPayOrderRequest(); + ~CreatePostPayOrderRequest(); + + int getPaidType()const; + void setPaidType(int paidType); + int getDiskSize()const; + void setDiskSize(int diskSize); + int getIoMax()const; + void setIoMax(int ioMax); + std::string getIoMaxSpec()const; + void setIoMaxSpec(const std::string& ioMaxSpec); + std::string getDiskType()const; + void setDiskType(const std::string& diskType); + int getTopicQuota()const; + void setTopicQuota(int topicQuota); + int getEipMax()const; + void setEipMax(int eipMax); + std::string getSpecType()const; + void setSpecType(const std::string& specType); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + int getDeployType()const; + void setDeployType(int deployType); + + private: + int paidType_; + int diskSize_; + int ioMax_; + std::string ioMaxSpec_; + std::string diskType_; + int topicQuota_; + int eipMax_; + std::string specType_; + std::string regionId_; + int deployType_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ALIKAFKA_MODEL_CREATEPOSTPAYORDERREQUEST_H_ \ No newline at end of file diff --git a/alikafka/include/alibabacloud/alikafka/model/CreatePostPayOrderResult.h b/alikafka/include/alibabacloud/alikafka/model/CreatePostPayOrderResult.h new file mode 100644 index 000000000..6069aa298 --- /dev/null +++ b/alikafka/include/alibabacloud/alikafka/model/CreatePostPayOrderResult.h @@ -0,0 +1,57 @@ +/* + * 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_ALIKAFKA_MODEL_CREATEPOSTPAYORDERRESULT_H_ +#define ALIBABACLOUD_ALIKAFKA_MODEL_CREATEPOSTPAYORDERRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Alikafka + { + namespace Model + { + class ALIBABACLOUD_ALIKAFKA_EXPORT CreatePostPayOrderResult : public ServiceResult + { + public: + + + CreatePostPayOrderResult(); + explicit CreatePostPayOrderResult(const std::string &payload); + ~CreatePostPayOrderResult(); + std::string getMessage()const; + std::string getOrderId()const; + int getCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + std::string orderId_; + int code_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ALIKAFKA_MODEL_CREATEPOSTPAYORDERRESULT_H_ \ No newline at end of file diff --git a/alikafka/include/alibabacloud/alikafka/model/CreatePrePayOrderRequest.h b/alikafka/include/alibabacloud/alikafka/model/CreatePrePayOrderRequest.h new file mode 100644 index 000000000..74a4db077 --- /dev/null +++ b/alikafka/include/alibabacloud/alikafka/model/CreatePrePayOrderRequest.h @@ -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. + */ + +#ifndef ALIBABACLOUD_ALIKAFKA_MODEL_CREATEPREPAYORDERREQUEST_H_ +#define ALIBABACLOUD_ALIKAFKA_MODEL_CREATEPREPAYORDERREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Alikafka + { + namespace Model + { + class ALIBABACLOUD_ALIKAFKA_EXPORT CreatePrePayOrderRequest : public RpcServiceRequest + { + + public: + CreatePrePayOrderRequest(); + ~CreatePrePayOrderRequest(); + + int getDiskSize()const; + void setDiskSize(int diskSize); + int getIoMax()const; + void setIoMax(int ioMax); + std::string getIoMaxSpec()const; + void setIoMaxSpec(const std::string& ioMaxSpec); + std::string getDiskType()const; + void setDiskType(const std::string& diskType); + int getTopicQuota()const; + void setTopicQuota(int topicQuota); + int getEipMax()const; + void setEipMax(int eipMax); + std::string getSpecType()const; + void setSpecType(const std::string& specType); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + int getDeployType()const; + void setDeployType(int deployType); + + private: + int diskSize_; + int ioMax_; + std::string ioMaxSpec_; + std::string diskType_; + int topicQuota_; + int eipMax_; + std::string specType_; + std::string regionId_; + int deployType_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ALIKAFKA_MODEL_CREATEPREPAYORDERREQUEST_H_ \ No newline at end of file diff --git a/alikafka/include/alibabacloud/alikafka/model/CreatePrePayOrderResult.h b/alikafka/include/alibabacloud/alikafka/model/CreatePrePayOrderResult.h new file mode 100644 index 000000000..14eb2b65c --- /dev/null +++ b/alikafka/include/alibabacloud/alikafka/model/CreatePrePayOrderResult.h @@ -0,0 +1,57 @@ +/* + * 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_ALIKAFKA_MODEL_CREATEPREPAYORDERRESULT_H_ +#define ALIBABACLOUD_ALIKAFKA_MODEL_CREATEPREPAYORDERRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Alikafka + { + namespace Model + { + class ALIBABACLOUD_ALIKAFKA_EXPORT CreatePrePayOrderResult : public ServiceResult + { + public: + + + CreatePrePayOrderResult(); + explicit CreatePrePayOrderResult(const std::string &payload); + ~CreatePrePayOrderResult(); + std::string getMessage()const; + std::string getOrderId()const; + int getCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + std::string orderId_; + int code_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ALIKAFKA_MODEL_CREATEPREPAYORDERRESULT_H_ \ No newline at end of file diff --git a/alikafka/include/alibabacloud/alikafka/model/CreateSaslUserRequest.h b/alikafka/include/alibabacloud/alikafka/model/CreateSaslUserRequest.h new file mode 100644 index 000000000..24b1b7714 --- /dev/null +++ b/alikafka/include/alibabacloud/alikafka/model/CreateSaslUserRequest.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_ALIKAFKA_MODEL_CREATESASLUSERREQUEST_H_ +#define ALIBABACLOUD_ALIKAFKA_MODEL_CREATESASLUSERREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Alikafka + { + namespace Model + { + class ALIBABACLOUD_ALIKAFKA_EXPORT CreateSaslUserRequest : public RpcServiceRequest + { + + public: + CreateSaslUserRequest(); + ~CreateSaslUserRequest(); + + std::string getType()const; + void setType(const std::string& type); + std::string getPassword()const; + void setPassword(const std::string& password); + std::string getInstanceId()const; + void setInstanceId(const std::string& instanceId); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::string getUsername()const; + void setUsername(const std::string& username); + + private: + std::string type_; + std::string password_; + std::string instanceId_; + std::string regionId_; + std::string username_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ALIKAFKA_MODEL_CREATESASLUSERREQUEST_H_ \ No newline at end of file diff --git a/alikafka/include/alibabacloud/alikafka/model/CreateSaslUserResult.h b/alikafka/include/alibabacloud/alikafka/model/CreateSaslUserResult.h new file mode 100644 index 000000000..4371b41a3 --- /dev/null +++ b/alikafka/include/alibabacloud/alikafka/model/CreateSaslUserResult.h @@ -0,0 +1,55 @@ +/* + * 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_ALIKAFKA_MODEL_CREATESASLUSERRESULT_H_ +#define ALIBABACLOUD_ALIKAFKA_MODEL_CREATESASLUSERRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Alikafka + { + namespace Model + { + class ALIBABACLOUD_ALIKAFKA_EXPORT CreateSaslUserResult : public ServiceResult + { + public: + + + CreateSaslUserResult(); + explicit CreateSaslUserResult(const std::string &payload); + ~CreateSaslUserResult(); + std::string getMessage()const; + int getCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + int code_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ALIKAFKA_MODEL_CREATESASLUSERRESULT_H_ \ No newline at end of file diff --git a/alikafka/include/alibabacloud/alikafka/model/CreateTopicRequest.h b/alikafka/include/alibabacloud/alikafka/model/CreateTopicRequest.h new file mode 100644 index 000000000..ecd2d89d6 --- /dev/null +++ b/alikafka/include/alibabacloud/alikafka/model/CreateTopicRequest.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_ALIKAFKA_MODEL_CREATETOPICREQUEST_H_ +#define ALIBABACLOUD_ALIKAFKA_MODEL_CREATETOPICREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Alikafka + { + namespace Model + { + class ALIBABACLOUD_ALIKAFKA_EXPORT CreateTopicRequest : public RpcServiceRequest + { + + public: + CreateTopicRequest(); + ~CreateTopicRequest(); + + std::string getRemark()const; + void setRemark(const std::string& remark); + std::string getInstanceId()const; + void setInstanceId(const std::string& instanceId); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::string getTopic()const; + void setTopic(const std::string& topic); + bool getCompactTopic()const; + void setCompactTopic(bool compactTopic); + std::string getPartitionNum()const; + void setPartitionNum(const std::string& partitionNum); + bool getLocalTopic()const; + void setLocalTopic(bool localTopic); + + private: + std::string remark_; + std::string instanceId_; + std::string regionId_; + std::string topic_; + bool compactTopic_; + std::string partitionNum_; + bool localTopic_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ALIKAFKA_MODEL_CREATETOPICREQUEST_H_ \ No newline at end of file diff --git a/alikafka/include/alibabacloud/alikafka/model/CreateTopicResult.h b/alikafka/include/alibabacloud/alikafka/model/CreateTopicResult.h new file mode 100644 index 000000000..942fa22c6 --- /dev/null +++ b/alikafka/include/alibabacloud/alikafka/model/CreateTopicResult.h @@ -0,0 +1,55 @@ +/* + * 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_ALIKAFKA_MODEL_CREATETOPICRESULT_H_ +#define ALIBABACLOUD_ALIKAFKA_MODEL_CREATETOPICRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Alikafka + { + namespace Model + { + class ALIBABACLOUD_ALIKAFKA_EXPORT CreateTopicResult : public ServiceResult + { + public: + + + CreateTopicResult(); + explicit CreateTopicResult(const std::string &payload); + ~CreateTopicResult(); + std::string getMessage()const; + int getCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + int code_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ALIKAFKA_MODEL_CREATETOPICRESULT_H_ \ No newline at end of file diff --git a/alikafka/include/alibabacloud/alikafka/model/DeleteAclRequest.h b/alikafka/include/alibabacloud/alikafka/model/DeleteAclRequest.h new file mode 100644 index 000000000..f5d9c84d4 --- /dev/null +++ b/alikafka/include/alibabacloud/alikafka/model/DeleteAclRequest.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_ALIKAFKA_MODEL_DELETEACLREQUEST_H_ +#define ALIBABACLOUD_ALIKAFKA_MODEL_DELETEACLREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Alikafka + { + namespace Model + { + class ALIBABACLOUD_ALIKAFKA_EXPORT DeleteAclRequest : public RpcServiceRequest + { + + public: + DeleteAclRequest(); + ~DeleteAclRequest(); + + std::string getAclResourcePatternType()const; + void setAclResourcePatternType(const std::string& aclResourcePatternType); + std::string getAclResourceType()const; + void setAclResourceType(const std::string& aclResourceType); + std::string getAclOperationType()const; + void setAclOperationType(const std::string& aclOperationType); + std::string getAclResourceName()const; + void setAclResourceName(const std::string& aclResourceName); + std::string getInstanceId()const; + void setInstanceId(const std::string& instanceId); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::string getUsername()const; + void setUsername(const std::string& username); + + private: + std::string aclResourcePatternType_; + std::string aclResourceType_; + std::string aclOperationType_; + std::string aclResourceName_; + std::string instanceId_; + std::string regionId_; + std::string username_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ALIKAFKA_MODEL_DELETEACLREQUEST_H_ \ No newline at end of file diff --git a/alikafka/include/alibabacloud/alikafka/model/DeleteAclResult.h b/alikafka/include/alibabacloud/alikafka/model/DeleteAclResult.h new file mode 100644 index 000000000..4b009883e --- /dev/null +++ b/alikafka/include/alibabacloud/alikafka/model/DeleteAclResult.h @@ -0,0 +1,55 @@ +/* + * 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_ALIKAFKA_MODEL_DELETEACLRESULT_H_ +#define ALIBABACLOUD_ALIKAFKA_MODEL_DELETEACLRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Alikafka + { + namespace Model + { + class ALIBABACLOUD_ALIKAFKA_EXPORT DeleteAclResult : public ServiceResult + { + public: + + + DeleteAclResult(); + explicit DeleteAclResult(const std::string &payload); + ~DeleteAclResult(); + std::string getMessage()const; + int getCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + int code_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ALIKAFKA_MODEL_DELETEACLRESULT_H_ \ No newline at end of file diff --git a/alikafka/include/alibabacloud/alikafka/model/DeleteConsumerGroupRequest.h b/alikafka/include/alibabacloud/alikafka/model/DeleteConsumerGroupRequest.h new file mode 100644 index 000000000..2a3451d91 --- /dev/null +++ b/alikafka/include/alibabacloud/alikafka/model/DeleteConsumerGroupRequest.h @@ -0,0 +1,54 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ALIKAFKA_MODEL_DELETECONSUMERGROUPREQUEST_H_ +#define ALIBABACLOUD_ALIKAFKA_MODEL_DELETECONSUMERGROUPREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Alikafka + { + namespace Model + { + class ALIBABACLOUD_ALIKAFKA_EXPORT DeleteConsumerGroupRequest : public RpcServiceRequest + { + + public: + DeleteConsumerGroupRequest(); + ~DeleteConsumerGroupRequest(); + + std::string getConsumerId()const; + void setConsumerId(const std::string& consumerId); + std::string getInstanceId()const; + void setInstanceId(const std::string& instanceId); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + + private: + std::string consumerId_; + std::string instanceId_; + std::string regionId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ALIKAFKA_MODEL_DELETECONSUMERGROUPREQUEST_H_ \ No newline at end of file diff --git a/alikafka/include/alibabacloud/alikafka/model/DeleteConsumerGroupResult.h b/alikafka/include/alibabacloud/alikafka/model/DeleteConsumerGroupResult.h new file mode 100644 index 000000000..204de3651 --- /dev/null +++ b/alikafka/include/alibabacloud/alikafka/model/DeleteConsumerGroupResult.h @@ -0,0 +1,55 @@ +/* + * 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_ALIKAFKA_MODEL_DELETECONSUMERGROUPRESULT_H_ +#define ALIBABACLOUD_ALIKAFKA_MODEL_DELETECONSUMERGROUPRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Alikafka + { + namespace Model + { + class ALIBABACLOUD_ALIKAFKA_EXPORT DeleteConsumerGroupResult : public ServiceResult + { + public: + + + DeleteConsumerGroupResult(); + explicit DeleteConsumerGroupResult(const std::string &payload); + ~DeleteConsumerGroupResult(); + std::string getMessage()const; + int getCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + int code_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ALIKAFKA_MODEL_DELETECONSUMERGROUPRESULT_H_ \ No newline at end of file diff --git a/alikafka/include/alibabacloud/alikafka/model/DeleteInstanceRequest.h b/alikafka/include/alibabacloud/alikafka/model/DeleteInstanceRequest.h new file mode 100644 index 000000000..543643c82 --- /dev/null +++ b/alikafka/include/alibabacloud/alikafka/model/DeleteInstanceRequest.h @@ -0,0 +1,51 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ALIKAFKA_MODEL_DELETEINSTANCEREQUEST_H_ +#define ALIBABACLOUD_ALIKAFKA_MODEL_DELETEINSTANCEREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Alikafka + { + namespace Model + { + class ALIBABACLOUD_ALIKAFKA_EXPORT DeleteInstanceRequest : public RpcServiceRequest + { + + public: + DeleteInstanceRequest(); + ~DeleteInstanceRequest(); + + std::string getInstanceId()const; + void setInstanceId(const std::string& instanceId); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + + private: + std::string instanceId_; + std::string regionId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ALIKAFKA_MODEL_DELETEINSTANCEREQUEST_H_ \ No newline at end of file diff --git a/alikafka/include/alibabacloud/alikafka/model/DeleteInstanceResult.h b/alikafka/include/alibabacloud/alikafka/model/DeleteInstanceResult.h new file mode 100644 index 000000000..c8369a3ec --- /dev/null +++ b/alikafka/include/alibabacloud/alikafka/model/DeleteInstanceResult.h @@ -0,0 +1,55 @@ +/* + * 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_ALIKAFKA_MODEL_DELETEINSTANCERESULT_H_ +#define ALIBABACLOUD_ALIKAFKA_MODEL_DELETEINSTANCERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Alikafka + { + namespace Model + { + class ALIBABACLOUD_ALIKAFKA_EXPORT DeleteInstanceResult : public ServiceResult + { + public: + + + DeleteInstanceResult(); + explicit DeleteInstanceResult(const std::string &payload); + ~DeleteInstanceResult(); + std::string getMessage()const; + int getCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + int code_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ALIKAFKA_MODEL_DELETEINSTANCERESULT_H_ \ No newline at end of file diff --git a/alikafka/include/alibabacloud/alikafka/model/DeleteSaslUserRequest.h b/alikafka/include/alibabacloud/alikafka/model/DeleteSaslUserRequest.h new file mode 100644 index 000000000..d4b06348f --- /dev/null +++ b/alikafka/include/alibabacloud/alikafka/model/DeleteSaslUserRequest.h @@ -0,0 +1,57 @@ +/* + * 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_ALIKAFKA_MODEL_DELETESASLUSERREQUEST_H_ +#define ALIBABACLOUD_ALIKAFKA_MODEL_DELETESASLUSERREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Alikafka + { + namespace Model + { + class ALIBABACLOUD_ALIKAFKA_EXPORT DeleteSaslUserRequest : public RpcServiceRequest + { + + public: + DeleteSaslUserRequest(); + ~DeleteSaslUserRequest(); + + std::string getType()const; + void setType(const std::string& type); + std::string getInstanceId()const; + void setInstanceId(const std::string& instanceId); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::string getUsername()const; + void setUsername(const std::string& username); + + private: + std::string type_; + std::string instanceId_; + std::string regionId_; + std::string username_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ALIKAFKA_MODEL_DELETESASLUSERREQUEST_H_ \ No newline at end of file diff --git a/alikafka/include/alibabacloud/alikafka/model/DeleteSaslUserResult.h b/alikafka/include/alibabacloud/alikafka/model/DeleteSaslUserResult.h new file mode 100644 index 000000000..dbc804ff2 --- /dev/null +++ b/alikafka/include/alibabacloud/alikafka/model/DeleteSaslUserResult.h @@ -0,0 +1,55 @@ +/* + * 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_ALIKAFKA_MODEL_DELETESASLUSERRESULT_H_ +#define ALIBABACLOUD_ALIKAFKA_MODEL_DELETESASLUSERRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Alikafka + { + namespace Model + { + class ALIBABACLOUD_ALIKAFKA_EXPORT DeleteSaslUserResult : public ServiceResult + { + public: + + + DeleteSaslUserResult(); + explicit DeleteSaslUserResult(const std::string &payload); + ~DeleteSaslUserResult(); + std::string getMessage()const; + int getCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + int code_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ALIKAFKA_MODEL_DELETESASLUSERRESULT_H_ \ No newline at end of file diff --git a/alikafka/include/alibabacloud/alikafka/model/DeleteTopicRequest.h b/alikafka/include/alibabacloud/alikafka/model/DeleteTopicRequest.h new file mode 100644 index 000000000..4560904c4 --- /dev/null +++ b/alikafka/include/alibabacloud/alikafka/model/DeleteTopicRequest.h @@ -0,0 +1,54 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ALIKAFKA_MODEL_DELETETOPICREQUEST_H_ +#define ALIBABACLOUD_ALIKAFKA_MODEL_DELETETOPICREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Alikafka + { + namespace Model + { + class ALIBABACLOUD_ALIKAFKA_EXPORT DeleteTopicRequest : public RpcServiceRequest + { + + public: + DeleteTopicRequest(); + ~DeleteTopicRequest(); + + std::string getInstanceId()const; + void setInstanceId(const std::string& instanceId); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::string getTopic()const; + void setTopic(const std::string& topic); + + private: + std::string instanceId_; + std::string regionId_; + std::string topic_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ALIKAFKA_MODEL_DELETETOPICREQUEST_H_ \ No newline at end of file diff --git a/alikafka/include/alibabacloud/alikafka/model/DeleteTopicResult.h b/alikafka/include/alibabacloud/alikafka/model/DeleteTopicResult.h new file mode 100644 index 000000000..40cd3c798 --- /dev/null +++ b/alikafka/include/alibabacloud/alikafka/model/DeleteTopicResult.h @@ -0,0 +1,55 @@ +/* + * 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_ALIKAFKA_MODEL_DELETETOPICRESULT_H_ +#define ALIBABACLOUD_ALIKAFKA_MODEL_DELETETOPICRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Alikafka + { + namespace Model + { + class ALIBABACLOUD_ALIKAFKA_EXPORT DeleteTopicResult : public ServiceResult + { + public: + + + DeleteTopicResult(); + explicit DeleteTopicResult(const std::string &payload); + ~DeleteTopicResult(); + std::string getMessage()const; + int getCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + int code_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ALIKAFKA_MODEL_DELETETOPICRESULT_H_ \ No newline at end of file diff --git a/alikafka/include/alibabacloud/alikafka/model/DescribeAclsRequest.h b/alikafka/include/alibabacloud/alikafka/model/DescribeAclsRequest.h new file mode 100644 index 000000000..5383e0e46 --- /dev/null +++ b/alikafka/include/alibabacloud/alikafka/model/DescribeAclsRequest.h @@ -0,0 +1,63 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ALIKAFKA_MODEL_DESCRIBEACLSREQUEST_H_ +#define ALIBABACLOUD_ALIKAFKA_MODEL_DESCRIBEACLSREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Alikafka + { + namespace Model + { + class ALIBABACLOUD_ALIKAFKA_EXPORT DescribeAclsRequest : public RpcServiceRequest + { + + public: + DescribeAclsRequest(); + ~DescribeAclsRequest(); + + std::string getAclResourcePatternType()const; + void setAclResourcePatternType(const std::string& aclResourcePatternType); + std::string getAclResourceType()const; + void setAclResourceType(const std::string& aclResourceType); + std::string getAclResourceName()const; + void setAclResourceName(const std::string& aclResourceName); + std::string getInstanceId()const; + void setInstanceId(const std::string& instanceId); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::string getUsername()const; + void setUsername(const std::string& username); + + private: + std::string aclResourcePatternType_; + std::string aclResourceType_; + std::string aclResourceName_; + std::string instanceId_; + std::string regionId_; + std::string username_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ALIKAFKA_MODEL_DESCRIBEACLSREQUEST_H_ \ No newline at end of file diff --git a/alikafka/include/alibabacloud/alikafka/model/DescribeAclsResult.h b/alikafka/include/alibabacloud/alikafka/model/DescribeAclsResult.h new file mode 100644 index 000000000..ea58a1789 --- /dev/null +++ b/alikafka/include/alibabacloud/alikafka/model/DescribeAclsResult.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_ALIKAFKA_MODEL_DESCRIBEACLSRESULT_H_ +#define ALIBABACLOUD_ALIKAFKA_MODEL_DESCRIBEACLSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Alikafka + { + namespace Model + { + class ALIBABACLOUD_ALIKAFKA_EXPORT DescribeAclsResult : public ServiceResult + { + public: + struct KafkaAclVO + { + std::string aclResourceName; + std::string username; + std::string aclResourceType; + std::string aclOperationType; + std::string aclResourcePatternType; + std::string host; + }; + + + DescribeAclsResult(); + explicit DescribeAclsResult(const std::string &payload); + ~DescribeAclsResult(); + std::string getMessage()const; + int getCode()const; + bool getSuccess()const; + std::vector getKafkaAclList()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + int code_; + bool success_; + std::vector kafkaAclList_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ALIKAFKA_MODEL_DESCRIBEACLSRESULT_H_ \ No newline at end of file diff --git a/alikafka/include/alibabacloud/alikafka/model/DescribeNodeStatusRequest.h b/alikafka/include/alibabacloud/alikafka/model/DescribeNodeStatusRequest.h new file mode 100644 index 000000000..18a941032 --- /dev/null +++ b/alikafka/include/alibabacloud/alikafka/model/DescribeNodeStatusRequest.h @@ -0,0 +1,51 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ALIKAFKA_MODEL_DESCRIBENODESTATUSREQUEST_H_ +#define ALIBABACLOUD_ALIKAFKA_MODEL_DESCRIBENODESTATUSREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Alikafka + { + namespace Model + { + class ALIBABACLOUD_ALIKAFKA_EXPORT DescribeNodeStatusRequest : public RpcServiceRequest + { + + public: + DescribeNodeStatusRequest(); + ~DescribeNodeStatusRequest(); + + std::string getInstanceId()const; + void setInstanceId(const std::string& instanceId); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + + private: + std::string instanceId_; + std::string regionId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ALIKAFKA_MODEL_DESCRIBENODESTATUSREQUEST_H_ \ No newline at end of file diff --git a/alikafka/include/alibabacloud/alikafka/model/DescribeNodeStatusResult.h b/alikafka/include/alibabacloud/alikafka/model/DescribeNodeStatusResult.h new file mode 100644 index 000000000..1666a7bdb --- /dev/null +++ b/alikafka/include/alibabacloud/alikafka/model/DescribeNodeStatusResult.h @@ -0,0 +1,57 @@ +/* + * 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_ALIKAFKA_MODEL_DESCRIBENODESTATUSRESULT_H_ +#define ALIBABACLOUD_ALIKAFKA_MODEL_DESCRIBENODESTATUSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Alikafka + { + namespace Model + { + class ALIBABACLOUD_ALIKAFKA_EXPORT DescribeNodeStatusResult : public ServiceResult + { + public: + + + DescribeNodeStatusResult(); + explicit DescribeNodeStatusResult(const std::string &payload); + ~DescribeNodeStatusResult(); + std::string getMessage()const; + std::vector getStatusList()const; + int getCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + std::vector statusList_; + int code_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ALIKAFKA_MODEL_DESCRIBENODESTATUSRESULT_H_ \ No newline at end of file diff --git a/alikafka/include/alibabacloud/alikafka/model/DescribeSaslUsersRequest.h b/alikafka/include/alibabacloud/alikafka/model/DescribeSaslUsersRequest.h new file mode 100644 index 000000000..a4260e32d --- /dev/null +++ b/alikafka/include/alibabacloud/alikafka/model/DescribeSaslUsersRequest.h @@ -0,0 +1,51 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ALIKAFKA_MODEL_DESCRIBESASLUSERSREQUEST_H_ +#define ALIBABACLOUD_ALIKAFKA_MODEL_DESCRIBESASLUSERSREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Alikafka + { + namespace Model + { + class ALIBABACLOUD_ALIKAFKA_EXPORT DescribeSaslUsersRequest : public RpcServiceRequest + { + + public: + DescribeSaslUsersRequest(); + ~DescribeSaslUsersRequest(); + + std::string getInstanceId()const; + void setInstanceId(const std::string& instanceId); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + + private: + std::string instanceId_; + std::string regionId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ALIKAFKA_MODEL_DESCRIBESASLUSERSREQUEST_H_ \ No newline at end of file diff --git a/alikafka/include/alibabacloud/alikafka/model/DescribeSaslUsersResult.h b/alikafka/include/alibabacloud/alikafka/model/DescribeSaslUsersResult.h new file mode 100644 index 000000000..73860119f --- /dev/null +++ b/alikafka/include/alibabacloud/alikafka/model/DescribeSaslUsersResult.h @@ -0,0 +1,63 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ALIKAFKA_MODEL_DESCRIBESASLUSERSRESULT_H_ +#define ALIBABACLOUD_ALIKAFKA_MODEL_DESCRIBESASLUSERSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Alikafka + { + namespace Model + { + class ALIBABACLOUD_ALIKAFKA_EXPORT DescribeSaslUsersResult : public ServiceResult + { + public: + struct SaslUserVO + { + std::string type; + std::string username; + std::string password; + }; + + + DescribeSaslUsersResult(); + explicit DescribeSaslUsersResult(const std::string &payload); + ~DescribeSaslUsersResult(); + std::vector getSaslUserList()const; + std::string getMessage()const; + int getCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::vector saslUserList_; + std::string message_; + int code_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ALIKAFKA_MODEL_DESCRIBESASLUSERSRESULT_H_ \ No newline at end of file diff --git a/alikafka/include/alibabacloud/alikafka/model/GetAllowedIpListRequest.h b/alikafka/include/alibabacloud/alikafka/model/GetAllowedIpListRequest.h new file mode 100644 index 000000000..68074868b --- /dev/null +++ b/alikafka/include/alibabacloud/alikafka/model/GetAllowedIpListRequest.h @@ -0,0 +1,51 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ALIKAFKA_MODEL_GETALLOWEDIPLISTREQUEST_H_ +#define ALIBABACLOUD_ALIKAFKA_MODEL_GETALLOWEDIPLISTREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Alikafka + { + namespace Model + { + class ALIBABACLOUD_ALIKAFKA_EXPORT GetAllowedIpListRequest : public RpcServiceRequest + { + + public: + GetAllowedIpListRequest(); + ~GetAllowedIpListRequest(); + + std::string getInstanceId()const; + void setInstanceId(const std::string& instanceId); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + + private: + std::string instanceId_; + std::string regionId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ALIKAFKA_MODEL_GETALLOWEDIPLISTREQUEST_H_ \ No newline at end of file diff --git a/alikafka/include/alibabacloud/alikafka/model/GetAllowedIpListResult.h b/alikafka/include/alibabacloud/alikafka/model/GetAllowedIpListResult.h new file mode 100644 index 000000000..35ded1512 --- /dev/null +++ b/alikafka/include/alibabacloud/alikafka/model/GetAllowedIpListResult.h @@ -0,0 +1,68 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ALIKAFKA_MODEL_GETALLOWEDIPLISTRESULT_H_ +#define ALIBABACLOUD_ALIKAFKA_MODEL_GETALLOWEDIPLISTRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Alikafka + { + namespace Model + { + class ALIBABACLOUD_ALIKAFKA_EXPORT GetAllowedIpListResult : public ServiceResult + { + public: + struct AllowedList + { + struct IPListVO + { + std::string portRange; + std::vector allowedIpList; + }; + int deployType; + std::vector internetList; + std::vector vpcList; + }; + + + GetAllowedIpListResult(); + explicit GetAllowedIpListResult(const std::string &payload); + ~GetAllowedIpListResult(); + AllowedList getAllowedList()const; + std::string getMessage()const; + int getCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + AllowedList allowedList_; + std::string message_; + int code_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ALIKAFKA_MODEL_GETALLOWEDIPLISTRESULT_H_ \ No newline at end of file diff --git a/alikafka/include/alibabacloud/alikafka/model/GetConsumerListRequest.h b/alikafka/include/alibabacloud/alikafka/model/GetConsumerListRequest.h new file mode 100644 index 000000000..d749f9002 --- /dev/null +++ b/alikafka/include/alibabacloud/alikafka/model/GetConsumerListRequest.h @@ -0,0 +1,57 @@ +/* + * 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_ALIKAFKA_MODEL_GETCONSUMERLISTREQUEST_H_ +#define ALIBABACLOUD_ALIKAFKA_MODEL_GETCONSUMERLISTREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Alikafka + { + namespace Model + { + class ALIBABACLOUD_ALIKAFKA_EXPORT GetConsumerListRequest : public RpcServiceRequest + { + + public: + GetConsumerListRequest(); + ~GetConsumerListRequest(); + + int getCurrentPage()const; + void setCurrentPage(int currentPage); + std::string getInstanceId()const; + void setInstanceId(const std::string& instanceId); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + int getPageSize()const; + void setPageSize(int pageSize); + + private: + int currentPage_; + std::string instanceId_; + std::string regionId_; + int pageSize_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ALIKAFKA_MODEL_GETCONSUMERLISTREQUEST_H_ \ No newline at end of file diff --git a/alikafka/include/alibabacloud/alikafka/model/GetConsumerListResult.h b/alikafka/include/alibabacloud/alikafka/model/GetConsumerListResult.h new file mode 100644 index 000000000..4f15193f8 --- /dev/null +++ b/alikafka/include/alibabacloud/alikafka/model/GetConsumerListResult.h @@ -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. + */ + +#ifndef ALIBABACLOUD_ALIKAFKA_MODEL_GETCONSUMERLISTRESULT_H_ +#define ALIBABACLOUD_ALIKAFKA_MODEL_GETCONSUMERLISTRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Alikafka + { + namespace Model + { + class ALIBABACLOUD_ALIKAFKA_EXPORT GetConsumerListResult : public ServiceResult + { + public: + struct ConsumerVO + { + struct TagVO + { + std::string value; + std::string key; + }; + std::string instanceId; + std::string consumerId; + std::string regionId; + std::vector tags; + std::string remark; + }; + + + GetConsumerListResult(); + explicit GetConsumerListResult(const std::string &payload); + ~GetConsumerListResult(); + std::string getMessage()const; + std::vector getConsumerList()const; + int getCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + std::vector consumerList_; + int code_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ALIKAFKA_MODEL_GETCONSUMERLISTRESULT_H_ \ No newline at end of file diff --git a/alikafka/include/alibabacloud/alikafka/model/GetConsumerProgressRequest.h b/alikafka/include/alibabacloud/alikafka/model/GetConsumerProgressRequest.h new file mode 100644 index 000000000..77861b752 --- /dev/null +++ b/alikafka/include/alibabacloud/alikafka/model/GetConsumerProgressRequest.h @@ -0,0 +1,54 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ALIKAFKA_MODEL_GETCONSUMERPROGRESSREQUEST_H_ +#define ALIBABACLOUD_ALIKAFKA_MODEL_GETCONSUMERPROGRESSREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Alikafka + { + namespace Model + { + class ALIBABACLOUD_ALIKAFKA_EXPORT GetConsumerProgressRequest : public RpcServiceRequest + { + + public: + GetConsumerProgressRequest(); + ~GetConsumerProgressRequest(); + + std::string getConsumerId()const; + void setConsumerId(const std::string& consumerId); + std::string getInstanceId()const; + void setInstanceId(const std::string& instanceId); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + + private: + std::string consumerId_; + std::string instanceId_; + std::string regionId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ALIKAFKA_MODEL_GETCONSUMERPROGRESSREQUEST_H_ \ No newline at end of file diff --git a/alikafka/include/alibabacloud/alikafka/model/GetConsumerProgressResult.h b/alikafka/include/alibabacloud/alikafka/model/GetConsumerProgressResult.h new file mode 100644 index 000000000..f8c68a1eb --- /dev/null +++ b/alikafka/include/alibabacloud/alikafka/model/GetConsumerProgressResult.h @@ -0,0 +1,77 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ALIKAFKA_MODEL_GETCONSUMERPROGRESSRESULT_H_ +#define ALIBABACLOUD_ALIKAFKA_MODEL_GETCONSUMERPROGRESSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Alikafka + { + namespace Model + { + class ALIBABACLOUD_ALIKAFKA_EXPORT GetConsumerProgressResult : public ServiceResult + { + public: + struct ConsumerProgress + { + struct TopicListItem + { + struct OffsetListItem + { + int partition; + long consumerOffset; + long lastTimestamp; + long brokerOffset; + }; + std::vector offsetList; + long lastTimestamp; + long totalDiff; + std::string topic; + }; + long lastTimestamp; + std::vector topicList; + long totalDiff; + }; + + + GetConsumerProgressResult(); + explicit GetConsumerProgressResult(const std::string &payload); + ~GetConsumerProgressResult(); + std::string getMessage()const; + ConsumerProgress getConsumerProgress()const; + int getCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + ConsumerProgress consumerProgress_; + int code_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ALIKAFKA_MODEL_GETCONSUMERPROGRESSRESULT_H_ \ No newline at end of file diff --git a/alikafka/include/alibabacloud/alikafka/model/GetInstanceListRequest.h b/alikafka/include/alibabacloud/alikafka/model/GetInstanceListRequest.h new file mode 100644 index 000000000..a73d78f31 --- /dev/null +++ b/alikafka/include/alibabacloud/alikafka/model/GetInstanceListRequest.h @@ -0,0 +1,63 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ALIKAFKA_MODEL_GETINSTANCELISTREQUEST_H_ +#define ALIBABACLOUD_ALIKAFKA_MODEL_GETINSTANCELISTREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Alikafka + { + namespace Model + { + class ALIBABACLOUD_ALIKAFKA_EXPORT GetInstanceListRequest : public RpcServiceRequest + { + public: + struct Tag + { + std::string value; + std::string key; + }; + + public: + GetInstanceListRequest(); + ~GetInstanceListRequest(); + + std::string getOrderId()const; + void setOrderId(const std::string& orderId); + std::vector getInstanceId()const; + void setInstanceId(const std::vector& instanceId); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::vector getTag()const; + void setTag(const std::vector& tag); + + private: + std::string orderId_; + std::vector instanceId_; + std::string regionId_; + std::vector tag_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ALIKAFKA_MODEL_GETINSTANCELISTREQUEST_H_ \ No newline at end of file diff --git a/alikafka/include/alibabacloud/alikafka/model/GetInstanceListResult.h b/alikafka/include/alibabacloud/alikafka/model/GetInstanceListResult.h new file mode 100644 index 000000000..7de987abd --- /dev/null +++ b/alikafka/include/alibabacloud/alikafka/model/GetInstanceListResult.h @@ -0,0 +1,93 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ALIKAFKA_MODEL_GETINSTANCELISTRESULT_H_ +#define ALIBABACLOUD_ALIKAFKA_MODEL_GETINSTANCELISTRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Alikafka + { + namespace Model + { + class ALIBABACLOUD_ALIKAFKA_EXPORT GetInstanceListResult : public ServiceResult + { + public: + struct InstanceVO + { + struct UpgradeServiceDetailInfo + { + std::string current2OpenSourceVersion; + }; + struct TagVO + { + std::string value; + std::string key; + }; + int deployType; + std::string sslEndPoint; + int eipMax; + std::string zoneId; + std::string instanceId; + std::string specType; + int ioMax; + std::string vSwitchId; + long createTime; + std::string allConfig; + std::string endPoint; + UpgradeServiceDetailInfo upgradeServiceDetailInfo; + std::string securityGroup; + std::string name; + int diskType; + std::string vpcId; + int serviceStatus; + int paidType; + long expiredTime; + int msgRetain; + int diskSize; + int topicNumLimit; + std::string regionId; + std::vector tags; + }; + + + GetInstanceListResult(); + explicit GetInstanceListResult(const std::string &payload); + ~GetInstanceListResult(); + std::string getMessage()const; + std::vector getInstanceList()const; + int getCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + std::vector instanceList_; + int code_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ALIKAFKA_MODEL_GETINSTANCELISTRESULT_H_ \ No newline at end of file diff --git a/alikafka/include/alibabacloud/alikafka/model/GetMetaProductListRequest.h b/alikafka/include/alibabacloud/alikafka/model/GetMetaProductListRequest.h new file mode 100644 index 000000000..bca48bf38 --- /dev/null +++ b/alikafka/include/alibabacloud/alikafka/model/GetMetaProductListRequest.h @@ -0,0 +1,51 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ALIKAFKA_MODEL_GETMETAPRODUCTLISTREQUEST_H_ +#define ALIBABACLOUD_ALIKAFKA_MODEL_GETMETAPRODUCTLISTREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Alikafka + { + namespace Model + { + class ALIBABACLOUD_ALIKAFKA_EXPORT GetMetaProductListRequest : public RpcServiceRequest + { + + public: + GetMetaProductListRequest(); + ~GetMetaProductListRequest(); + + std::string getListNormal()const; + void setListNormal(const std::string& listNormal); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + + private: + std::string listNormal_; + std::string regionId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ALIKAFKA_MODEL_GETMETAPRODUCTLISTREQUEST_H_ \ No newline at end of file diff --git a/alikafka/include/alibabacloud/alikafka/model/GetMetaProductListResult.h b/alikafka/include/alibabacloud/alikafka/model/GetMetaProductListResult.h new file mode 100644 index 000000000..d1fa52e98 --- /dev/null +++ b/alikafka/include/alibabacloud/alikafka/model/GetMetaProductListResult.h @@ -0,0 +1,73 @@ +/* + * 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_ALIKAFKA_MODEL_GETMETAPRODUCTLISTRESULT_H_ +#define ALIBABACLOUD_ALIKAFKA_MODEL_GETMETAPRODUCTLISTRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Alikafka + { + namespace Model + { + class ALIBABACLOUD_ALIKAFKA_EXPORT GetMetaProductListResult : public ServiceResult + { + public: + struct MetaData + { + struct SpecVO + { + std::string diskType; + std::string deployType; + std::string specType; + long ioMax; + std::string diskSize; + std::string topicQuota; + std::string regionId; + }; + std::string names; + std::vector productsNormal; + std::vector productsProfessional; + }; + + + GetMetaProductListResult(); + explicit GetMetaProductListResult(const std::string &payload); + ~GetMetaProductListResult(); + std::string getMessage()const; + MetaData getMetaData()const; + int getCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + MetaData metaData_; + int code_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ALIKAFKA_MODEL_GETMETAPRODUCTLISTRESULT_H_ \ No newline at end of file diff --git a/alikafka/include/alibabacloud/alikafka/model/GetTopicListRequest.h b/alikafka/include/alibabacloud/alikafka/model/GetTopicListRequest.h new file mode 100644 index 000000000..e085637ba --- /dev/null +++ b/alikafka/include/alibabacloud/alikafka/model/GetTopicListRequest.h @@ -0,0 +1,57 @@ +/* + * 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_ALIKAFKA_MODEL_GETTOPICLISTREQUEST_H_ +#define ALIBABACLOUD_ALIKAFKA_MODEL_GETTOPICLISTREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Alikafka + { + namespace Model + { + class ALIBABACLOUD_ALIKAFKA_EXPORT GetTopicListRequest : public RpcServiceRequest + { + + public: + GetTopicListRequest(); + ~GetTopicListRequest(); + + std::string getCurrentPage()const; + void setCurrentPage(const std::string& currentPage); + std::string getInstanceId()const; + void setInstanceId(const std::string& instanceId); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::string getPageSize()const; + void setPageSize(const std::string& pageSize); + + private: + std::string currentPage_; + std::string instanceId_; + std::string regionId_; + std::string pageSize_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ALIKAFKA_MODEL_GETTOPICLISTREQUEST_H_ \ No newline at end of file diff --git a/alikafka/include/alibabacloud/alikafka/model/GetTopicListResult.h b/alikafka/include/alibabacloud/alikafka/model/GetTopicListResult.h new file mode 100644 index 000000000..d20c80cbf --- /dev/null +++ b/alikafka/include/alibabacloud/alikafka/model/GetTopicListResult.h @@ -0,0 +1,82 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ALIKAFKA_MODEL_GETTOPICLISTRESULT_H_ +#define ALIBABACLOUD_ALIKAFKA_MODEL_GETTOPICLISTRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Alikafka + { + namespace Model + { + class ALIBABACLOUD_ALIKAFKA_EXPORT GetTopicListResult : public ServiceResult + { + public: + struct TopicVO + { + struct TagVO + { + std::string value; + std::string key; + }; + int status; + int partitionNum; + bool compactTopic; + std::string instanceId; + long createTime; + std::string statusName; + std::string regionId; + std::string topic; + bool localTopic; + std::vector tags; + std::string remark; + }; + + + GetTopicListResult(); + explicit GetTopicListResult(const std::string &payload); + ~GetTopicListResult(); + std::string getMessage()const; + int getPageSize()const; + int getCurrentPage()const; + int getTotal()const; + std::vector getTopicList()const; + int getCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + int pageSize_; + int currentPage_; + int total_; + std::vector topicList_; + int code_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ALIKAFKA_MODEL_GETTOPICLISTRESULT_H_ \ No newline at end of file diff --git a/alikafka/include/alibabacloud/alikafka/model/GetTopicStatusRequest.h b/alikafka/include/alibabacloud/alikafka/model/GetTopicStatusRequest.h new file mode 100644 index 000000000..0b32e5cd6 --- /dev/null +++ b/alikafka/include/alibabacloud/alikafka/model/GetTopicStatusRequest.h @@ -0,0 +1,54 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ALIKAFKA_MODEL_GETTOPICSTATUSREQUEST_H_ +#define ALIBABACLOUD_ALIKAFKA_MODEL_GETTOPICSTATUSREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Alikafka + { + namespace Model + { + class ALIBABACLOUD_ALIKAFKA_EXPORT GetTopicStatusRequest : public RpcServiceRequest + { + + public: + GetTopicStatusRequest(); + ~GetTopicStatusRequest(); + + std::string getInstanceId()const; + void setInstanceId(const std::string& instanceId); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::string getTopic()const; + void setTopic(const std::string& topic); + + private: + std::string instanceId_; + std::string regionId_; + std::string topic_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ALIKAFKA_MODEL_GETTOPICSTATUSREQUEST_H_ \ No newline at end of file diff --git a/alikafka/include/alibabacloud/alikafka/model/GetTopicStatusResult.h b/alikafka/include/alibabacloud/alikafka/model/GetTopicStatusResult.h new file mode 100644 index 000000000..ef0657638 --- /dev/null +++ b/alikafka/include/alibabacloud/alikafka/model/GetTopicStatusResult.h @@ -0,0 +1,71 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ALIKAFKA_MODEL_GETTOPICSTATUSRESULT_H_ +#define ALIBABACLOUD_ALIKAFKA_MODEL_GETTOPICSTATUSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Alikafka + { + namespace Model + { + class ALIBABACLOUD_ALIKAFKA_EXPORT GetTopicStatusResult : public ServiceResult + { + public: + struct TopicStatus + { + struct OffsetTableItem + { + int partition; + long maxOffset; + std::string topic; + long lastUpdateTimestamp; + long minOffset; + }; + long lastTimeStamp; + long totalCount; + std::vector offsetTable; + }; + + + GetTopicStatusResult(); + explicit GetTopicStatusResult(const std::string &payload); + ~GetTopicStatusResult(); + std::string getMessage()const; + TopicStatus getTopicStatus()const; + int getCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + TopicStatus topicStatus_; + int code_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ALIKAFKA_MODEL_GETTOPICSTATUSRESULT_H_ \ No newline at end of file diff --git a/alikafka/include/alibabacloud/alikafka/model/ListTagResourcesRequest.h b/alikafka/include/alibabacloud/alikafka/model/ListTagResourcesRequest.h new file mode 100644 index 000000000..804087718 --- /dev/null +++ b/alikafka/include/alibabacloud/alikafka/model/ListTagResourcesRequest.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_ALIKAFKA_MODEL_LISTTAGRESOURCESREQUEST_H_ +#define ALIBABACLOUD_ALIKAFKA_MODEL_LISTTAGRESOURCESREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Alikafka + { + namespace Model + { + class ALIBABACLOUD_ALIKAFKA_EXPORT ListTagResourcesRequest : public RpcServiceRequest + { + public: + struct Tag + { + std::string value; + std::string key; + }; + + public: + ListTagResourcesRequest(); + ~ListTagResourcesRequest(); + + std::vector getResourceId()const; + void setResourceId(const std::vector& resourceId); + std::string getResourceType()const; + void setResourceType(const std::string& resourceType); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::string getNextToken()const; + void setNextToken(const std::string& nextToken); + std::vector getTag()const; + void setTag(const std::vector& tag); + + private: + std::vector resourceId_; + std::string resourceType_; + std::string regionId_; + std::string nextToken_; + std::vector tag_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ALIKAFKA_MODEL_LISTTAGRESOURCESREQUEST_H_ \ No newline at end of file diff --git a/alikafka/include/alibabacloud/alikafka/model/ListTagResourcesResult.h b/alikafka/include/alibabacloud/alikafka/model/ListTagResourcesResult.h new file mode 100644 index 000000000..d70d5c806 --- /dev/null +++ b/alikafka/include/alibabacloud/alikafka/model/ListTagResourcesResult.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_ALIKAFKA_MODEL_LISTTAGRESOURCESRESULT_H_ +#define ALIBABACLOUD_ALIKAFKA_MODEL_LISTTAGRESOURCESRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Alikafka + { + namespace Model + { + class ALIBABACLOUD_ALIKAFKA_EXPORT ListTagResourcesResult : public ServiceResult + { + public: + struct TagResource + { + std::string resourceId; + std::string tagKey; + std::string resourceType; + std::string tagValue; + }; + + + ListTagResourcesResult(); + explicit ListTagResourcesResult(const std::string &payload); + ~ListTagResourcesResult(); + std::string getNextToken()const; + std::vector getTagResources()const; + + protected: + void parse(const std::string &payload); + private: + std::string nextToken_; + std::vector tagResources_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ALIKAFKA_MODEL_LISTTAGRESOURCESRESULT_H_ \ No newline at end of file diff --git a/alikafka/include/alibabacloud/alikafka/model/ModifyInstanceNameRequest.h b/alikafka/include/alibabacloud/alikafka/model/ModifyInstanceNameRequest.h new file mode 100644 index 000000000..078ff94d5 --- /dev/null +++ b/alikafka/include/alibabacloud/alikafka/model/ModifyInstanceNameRequest.h @@ -0,0 +1,54 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ALIKAFKA_MODEL_MODIFYINSTANCENAMEREQUEST_H_ +#define ALIBABACLOUD_ALIKAFKA_MODEL_MODIFYINSTANCENAMEREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Alikafka + { + namespace Model + { + class ALIBABACLOUD_ALIKAFKA_EXPORT ModifyInstanceNameRequest : public RpcServiceRequest + { + + public: + ModifyInstanceNameRequest(); + ~ModifyInstanceNameRequest(); + + std::string getInstanceId()const; + void setInstanceId(const std::string& instanceId); + std::string getInstanceName()const; + void setInstanceName(const std::string& instanceName); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + + private: + std::string instanceId_; + std::string instanceName_; + std::string regionId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ALIKAFKA_MODEL_MODIFYINSTANCENAMEREQUEST_H_ \ No newline at end of file diff --git a/alikafka/include/alibabacloud/alikafka/model/ModifyInstanceNameResult.h b/alikafka/include/alibabacloud/alikafka/model/ModifyInstanceNameResult.h new file mode 100644 index 000000000..879e62b1f --- /dev/null +++ b/alikafka/include/alibabacloud/alikafka/model/ModifyInstanceNameResult.h @@ -0,0 +1,55 @@ +/* + * 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_ALIKAFKA_MODEL_MODIFYINSTANCENAMERESULT_H_ +#define ALIBABACLOUD_ALIKAFKA_MODEL_MODIFYINSTANCENAMERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Alikafka + { + namespace Model + { + class ALIBABACLOUD_ALIKAFKA_EXPORT ModifyInstanceNameResult : public ServiceResult + { + public: + + + ModifyInstanceNameResult(); + explicit ModifyInstanceNameResult(const std::string &payload); + ~ModifyInstanceNameResult(); + std::string getMessage()const; + int getCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + int code_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ALIKAFKA_MODEL_MODIFYINSTANCENAMERESULT_H_ \ No newline at end of file diff --git a/alikafka/include/alibabacloud/alikafka/model/ModifyPartitionNumRequest.h b/alikafka/include/alibabacloud/alikafka/model/ModifyPartitionNumRequest.h new file mode 100644 index 000000000..47dbceff9 --- /dev/null +++ b/alikafka/include/alibabacloud/alikafka/model/ModifyPartitionNumRequest.h @@ -0,0 +1,57 @@ +/* + * 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_ALIKAFKA_MODEL_MODIFYPARTITIONNUMREQUEST_H_ +#define ALIBABACLOUD_ALIKAFKA_MODEL_MODIFYPARTITIONNUMREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Alikafka + { + namespace Model + { + class ALIBABACLOUD_ALIKAFKA_EXPORT ModifyPartitionNumRequest : public RpcServiceRequest + { + + public: + ModifyPartitionNumRequest(); + ~ModifyPartitionNumRequest(); + + std::string getInstanceId()const; + void setInstanceId(const std::string& instanceId); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::string getTopic()const; + void setTopic(const std::string& topic); + int getAddPartitionNum()const; + void setAddPartitionNum(int addPartitionNum); + + private: + std::string instanceId_; + std::string regionId_; + std::string topic_; + int addPartitionNum_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ALIKAFKA_MODEL_MODIFYPARTITIONNUMREQUEST_H_ \ No newline at end of file diff --git a/alikafka/include/alibabacloud/alikafka/model/ModifyPartitionNumResult.h b/alikafka/include/alibabacloud/alikafka/model/ModifyPartitionNumResult.h new file mode 100644 index 000000000..358a549a2 --- /dev/null +++ b/alikafka/include/alibabacloud/alikafka/model/ModifyPartitionNumResult.h @@ -0,0 +1,55 @@ +/* + * 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_ALIKAFKA_MODEL_MODIFYPARTITIONNUMRESULT_H_ +#define ALIBABACLOUD_ALIKAFKA_MODEL_MODIFYPARTITIONNUMRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Alikafka + { + namespace Model + { + class ALIBABACLOUD_ALIKAFKA_EXPORT ModifyPartitionNumResult : public ServiceResult + { + public: + + + ModifyPartitionNumResult(); + explicit ModifyPartitionNumResult(const std::string &payload); + ~ModifyPartitionNumResult(); + std::string getMessage()const; + int getCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + int code_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ALIKAFKA_MODEL_MODIFYPARTITIONNUMRESULT_H_ \ No newline at end of file diff --git a/alikafka/include/alibabacloud/alikafka/model/ModifyTopicRemarkRequest.h b/alikafka/include/alibabacloud/alikafka/model/ModifyTopicRemarkRequest.h new file mode 100644 index 000000000..9c1a1429e --- /dev/null +++ b/alikafka/include/alibabacloud/alikafka/model/ModifyTopicRemarkRequest.h @@ -0,0 +1,57 @@ +/* + * 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_ALIKAFKA_MODEL_MODIFYTOPICREMARKREQUEST_H_ +#define ALIBABACLOUD_ALIKAFKA_MODEL_MODIFYTOPICREMARKREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Alikafka + { + namespace Model + { + class ALIBABACLOUD_ALIKAFKA_EXPORT ModifyTopicRemarkRequest : public RpcServiceRequest + { + + public: + ModifyTopicRemarkRequest(); + ~ModifyTopicRemarkRequest(); + + std::string getInstanceId()const; + void setInstanceId(const std::string& instanceId); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::string getTopic()const; + void setTopic(const std::string& topic); + std::string getRemark()const; + void setRemark(const std::string& remark); + + private: + std::string instanceId_; + std::string regionId_; + std::string topic_; + std::string remark_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ALIKAFKA_MODEL_MODIFYTOPICREMARKREQUEST_H_ \ No newline at end of file diff --git a/alikafka/include/alibabacloud/alikafka/model/ModifyTopicRemarkResult.h b/alikafka/include/alibabacloud/alikafka/model/ModifyTopicRemarkResult.h new file mode 100644 index 000000000..918b6aeaf --- /dev/null +++ b/alikafka/include/alibabacloud/alikafka/model/ModifyTopicRemarkResult.h @@ -0,0 +1,55 @@ +/* + * 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_ALIKAFKA_MODEL_MODIFYTOPICREMARKRESULT_H_ +#define ALIBABACLOUD_ALIKAFKA_MODEL_MODIFYTOPICREMARKRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Alikafka + { + namespace Model + { + class ALIBABACLOUD_ALIKAFKA_EXPORT ModifyTopicRemarkResult : public ServiceResult + { + public: + + + ModifyTopicRemarkResult(); + explicit ModifyTopicRemarkResult(const std::string &payload); + ~ModifyTopicRemarkResult(); + std::string getMessage()const; + int getCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + int code_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ALIKAFKA_MODEL_MODIFYTOPICREMARKRESULT_H_ \ No newline at end of file diff --git a/alikafka/include/alibabacloud/alikafka/model/ReleaseInstanceRequest.h b/alikafka/include/alibabacloud/alikafka/model/ReleaseInstanceRequest.h new file mode 100644 index 000000000..dc9f7b037 --- /dev/null +++ b/alikafka/include/alibabacloud/alikafka/model/ReleaseInstanceRequest.h @@ -0,0 +1,57 @@ +/* + * 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_ALIKAFKA_MODEL_RELEASEINSTANCEREQUEST_H_ +#define ALIBABACLOUD_ALIKAFKA_MODEL_RELEASEINSTANCEREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Alikafka + { + namespace Model + { + class ALIBABACLOUD_ALIKAFKA_EXPORT ReleaseInstanceRequest : public RpcServiceRequest + { + + public: + ReleaseInstanceRequest(); + ~ReleaseInstanceRequest(); + + bool getForceDeleteInstance()const; + void setForceDeleteInstance(bool forceDeleteInstance); + std::string getInstanceId()const; + void setInstanceId(const std::string& instanceId); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + bool getReleaseIgnoreTime()const; + void setReleaseIgnoreTime(bool releaseIgnoreTime); + + private: + bool forceDeleteInstance_; + std::string instanceId_; + std::string regionId_; + bool releaseIgnoreTime_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ALIKAFKA_MODEL_RELEASEINSTANCEREQUEST_H_ \ No newline at end of file diff --git a/alikafka/include/alibabacloud/alikafka/model/ReleaseInstanceResult.h b/alikafka/include/alibabacloud/alikafka/model/ReleaseInstanceResult.h new file mode 100644 index 000000000..ed711f781 --- /dev/null +++ b/alikafka/include/alibabacloud/alikafka/model/ReleaseInstanceResult.h @@ -0,0 +1,55 @@ +/* + * 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_ALIKAFKA_MODEL_RELEASEINSTANCERESULT_H_ +#define ALIBABACLOUD_ALIKAFKA_MODEL_RELEASEINSTANCERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Alikafka + { + namespace Model + { + class ALIBABACLOUD_ALIKAFKA_EXPORT ReleaseInstanceResult : public ServiceResult + { + public: + + + ReleaseInstanceResult(); + explicit ReleaseInstanceResult(const std::string &payload); + ~ReleaseInstanceResult(); + std::string getMessage()const; + int getCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + int code_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ALIKAFKA_MODEL_RELEASEINSTANCERESULT_H_ \ No newline at end of file diff --git a/alikafka/include/alibabacloud/alikafka/model/StartInstanceRequest.h b/alikafka/include/alibabacloud/alikafka/model/StartInstanceRequest.h new file mode 100644 index 000000000..6a6230333 --- /dev/null +++ b/alikafka/include/alibabacloud/alikafka/model/StartInstanceRequest.h @@ -0,0 +1,93 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ALIKAFKA_MODEL_STARTINSTANCEREQUEST_H_ +#define ALIBABACLOUD_ALIKAFKA_MODEL_STARTINSTANCEREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Alikafka + { + namespace Model + { + class ALIBABACLOUD_ALIKAFKA_EXPORT StartInstanceRequest : public RpcServiceRequest + { + + public: + StartInstanceRequest(); + ~StartInstanceRequest(); + + bool getIsEipInner()const; + void setIsEipInner(bool isEipInner); + std::string getSecurityGroup()const; + void setSecurityGroup(const std::string& securityGroup); + std::string getDeployModule()const; + void setDeployModule(const std::string& deployModule); + bool getIsSetUserAndPassword()const; + void setIsSetUserAndPassword(bool isSetUserAndPassword); + std::string getPassword()const; + void setPassword(const std::string& password); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::string getVSwitchId()const; + void setVSwitchId(const std::string& vSwitchId); + std::string getInstanceId()const; + void setInstanceId(const std::string& instanceId); + std::string getVpcId()const; + void setVpcId(const std::string& vpcId); + bool getCrossZone()const; + void setCrossZone(bool crossZone); + std::string getName()const; + void setName(const std::string& name); + std::string getServiceVersion()const; + void setServiceVersion(const std::string& serviceVersion); + std::string getZoneId()const; + void setZoneId(const std::string& zoneId); + std::string getKMSKeyId()const; + void setKMSKeyId(const std::string& kMSKeyId); + std::string getConfig()const; + void setConfig(const std::string& config); + std::string getUsername()const; + void setUsername(const std::string& username); + + private: + bool isEipInner_; + std::string securityGroup_; + std::string deployModule_; + bool isSetUserAndPassword_; + std::string password_; + std::string regionId_; + std::string vSwitchId_; + std::string instanceId_; + std::string vpcId_; + bool crossZone_; + std::string name_; + std::string serviceVersion_; + std::string zoneId_; + std::string kMSKeyId_; + std::string config_; + std::string username_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ALIKAFKA_MODEL_STARTINSTANCEREQUEST_H_ \ No newline at end of file diff --git a/alikafka/include/alibabacloud/alikafka/model/StartInstanceResult.h b/alikafka/include/alibabacloud/alikafka/model/StartInstanceResult.h new file mode 100644 index 000000000..77def21f6 --- /dev/null +++ b/alikafka/include/alibabacloud/alikafka/model/StartInstanceResult.h @@ -0,0 +1,55 @@ +/* + * 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_ALIKAFKA_MODEL_STARTINSTANCERESULT_H_ +#define ALIBABACLOUD_ALIKAFKA_MODEL_STARTINSTANCERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Alikafka + { + namespace Model + { + class ALIBABACLOUD_ALIKAFKA_EXPORT StartInstanceResult : public ServiceResult + { + public: + + + StartInstanceResult(); + explicit StartInstanceResult(const std::string &payload); + ~StartInstanceResult(); + std::string getMessage()const; + int getCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + int code_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ALIKAFKA_MODEL_STARTINSTANCERESULT_H_ \ No newline at end of file diff --git a/alikafka/include/alibabacloud/alikafka/model/TagResourcesRequest.h b/alikafka/include/alibabacloud/alikafka/model/TagResourcesRequest.h new file mode 100644 index 000000000..fe4f4bb44 --- /dev/null +++ b/alikafka/include/alibabacloud/alikafka/model/TagResourcesRequest.h @@ -0,0 +1,63 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ALIKAFKA_MODEL_TAGRESOURCESREQUEST_H_ +#define ALIBABACLOUD_ALIKAFKA_MODEL_TAGRESOURCESREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Alikafka + { + namespace Model + { + class ALIBABACLOUD_ALIKAFKA_EXPORT TagResourcesRequest : public RpcServiceRequest + { + public: + struct Tag + { + std::string value; + std::string key; + }; + + public: + TagResourcesRequest(); + ~TagResourcesRequest(); + + std::vector getResourceId()const; + void setResourceId(const std::vector& resourceId); + std::string getResourceType()const; + void setResourceType(const std::string& resourceType); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::vector getTag()const; + void setTag(const std::vector& tag); + + private: + std::vector resourceId_; + std::string resourceType_; + std::string regionId_; + std::vector tag_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ALIKAFKA_MODEL_TAGRESOURCESREQUEST_H_ \ No newline at end of file diff --git a/alikafka/include/alibabacloud/alikafka/model/TagResourcesResult.h b/alikafka/include/alibabacloud/alikafka/model/TagResourcesResult.h new file mode 100644 index 000000000..dd0c8d6ea --- /dev/null +++ b/alikafka/include/alibabacloud/alikafka/model/TagResourcesResult.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_ALIKAFKA_MODEL_TAGRESOURCESRESULT_H_ +#define ALIBABACLOUD_ALIKAFKA_MODEL_TAGRESOURCESRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Alikafka + { + namespace Model + { + class ALIBABACLOUD_ALIKAFKA_EXPORT TagResourcesResult : public ServiceResult + { + public: + + + TagResourcesResult(); + explicit TagResourcesResult(const std::string &payload); + ~TagResourcesResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_ALIKAFKA_MODEL_TAGRESOURCESRESULT_H_ \ No newline at end of file diff --git a/alikafka/include/alibabacloud/alikafka/model/UntagResourcesRequest.h b/alikafka/include/alibabacloud/alikafka/model/UntagResourcesRequest.h new file mode 100644 index 000000000..d48cec476 --- /dev/null +++ b/alikafka/include/alibabacloud/alikafka/model/UntagResourcesRequest.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_ALIKAFKA_MODEL_UNTAGRESOURCESREQUEST_H_ +#define ALIBABACLOUD_ALIKAFKA_MODEL_UNTAGRESOURCESREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Alikafka + { + namespace Model + { + class ALIBABACLOUD_ALIKAFKA_EXPORT UntagResourcesRequest : public RpcServiceRequest + { + + public: + UntagResourcesRequest(); + ~UntagResourcesRequest(); + + bool getAll()const; + void setAll(bool all); + std::vector getResourceId()const; + void setResourceId(const std::vector& resourceId); + std::string getResourceType()const; + void setResourceType(const std::string& resourceType); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::vector getTagKey()const; + void setTagKey(const std::vector& tagKey); + + private: + bool all_; + std::vector resourceId_; + std::string resourceType_; + std::string regionId_; + std::vector tagKey_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ALIKAFKA_MODEL_UNTAGRESOURCESREQUEST_H_ \ No newline at end of file diff --git a/alikafka/include/alibabacloud/alikafka/model/UntagResourcesResult.h b/alikafka/include/alibabacloud/alikafka/model/UntagResourcesResult.h new file mode 100644 index 000000000..73969e1e7 --- /dev/null +++ b/alikafka/include/alibabacloud/alikafka/model/UntagResourcesResult.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_ALIKAFKA_MODEL_UNTAGRESOURCESRESULT_H_ +#define ALIBABACLOUD_ALIKAFKA_MODEL_UNTAGRESOURCESRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Alikafka + { + namespace Model + { + class ALIBABACLOUD_ALIKAFKA_EXPORT UntagResourcesResult : public ServiceResult + { + public: + + + UntagResourcesResult(); + explicit UntagResourcesResult(const std::string &payload); + ~UntagResourcesResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_ALIKAFKA_MODEL_UNTAGRESOURCESRESULT_H_ \ No newline at end of file diff --git a/alikafka/include/alibabacloud/alikafka/model/UpdateAllowedIpRequest.h b/alikafka/include/alibabacloud/alikafka/model/UpdateAllowedIpRequest.h new file mode 100644 index 000000000..91d6ca87f --- /dev/null +++ b/alikafka/include/alibabacloud/alikafka/model/UpdateAllowedIpRequest.h @@ -0,0 +1,63 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ALIKAFKA_MODEL_UPDATEALLOWEDIPREQUEST_H_ +#define ALIBABACLOUD_ALIKAFKA_MODEL_UPDATEALLOWEDIPREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Alikafka + { + namespace Model + { + class ALIBABACLOUD_ALIKAFKA_EXPORT UpdateAllowedIpRequest : public RpcServiceRequest + { + + public: + UpdateAllowedIpRequest(); + ~UpdateAllowedIpRequest(); + + std::string getPortRange()const; + void setPortRange(const std::string& portRange); + std::string getAllowedListIp()const; + void setAllowedListIp(const std::string& allowedListIp); + std::string getUpdateType()const; + void setUpdateType(const std::string& updateType); + std::string getAllowedListType()const; + void setAllowedListType(const std::string& allowedListType); + std::string getInstanceId()const; + void setInstanceId(const std::string& instanceId); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + + private: + std::string portRange_; + std::string allowedListIp_; + std::string updateType_; + std::string allowedListType_; + std::string instanceId_; + std::string regionId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ALIKAFKA_MODEL_UPDATEALLOWEDIPREQUEST_H_ \ No newline at end of file diff --git a/alikafka/include/alibabacloud/alikafka/model/UpdateAllowedIpResult.h b/alikafka/include/alibabacloud/alikafka/model/UpdateAllowedIpResult.h new file mode 100644 index 000000000..2f246518a --- /dev/null +++ b/alikafka/include/alibabacloud/alikafka/model/UpdateAllowedIpResult.h @@ -0,0 +1,55 @@ +/* + * 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_ALIKAFKA_MODEL_UPDATEALLOWEDIPRESULT_H_ +#define ALIBABACLOUD_ALIKAFKA_MODEL_UPDATEALLOWEDIPRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Alikafka + { + namespace Model + { + class ALIBABACLOUD_ALIKAFKA_EXPORT UpdateAllowedIpResult : public ServiceResult + { + public: + + + UpdateAllowedIpResult(); + explicit UpdateAllowedIpResult(const std::string &payload); + ~UpdateAllowedIpResult(); + std::string getMessage()const; + int getCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + int code_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ALIKAFKA_MODEL_UPDATEALLOWEDIPRESULT_H_ \ No newline at end of file diff --git a/alikafka/include/alibabacloud/alikafka/model/UpdateInstanceConfigRequest.h b/alikafka/include/alibabacloud/alikafka/model/UpdateInstanceConfigRequest.h new file mode 100644 index 000000000..bdbb6c524 --- /dev/null +++ b/alikafka/include/alibabacloud/alikafka/model/UpdateInstanceConfigRequest.h @@ -0,0 +1,54 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ALIKAFKA_MODEL_UPDATEINSTANCECONFIGREQUEST_H_ +#define ALIBABACLOUD_ALIKAFKA_MODEL_UPDATEINSTANCECONFIGREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Alikafka + { + namespace Model + { + class ALIBABACLOUD_ALIKAFKA_EXPORT UpdateInstanceConfigRequest : public RpcServiceRequest + { + + public: + UpdateInstanceConfigRequest(); + ~UpdateInstanceConfigRequest(); + + std::string getInstanceId()const; + void setInstanceId(const std::string& instanceId); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::string getConfig()const; + void setConfig(const std::string& config); + + private: + std::string instanceId_; + std::string regionId_; + std::string config_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ALIKAFKA_MODEL_UPDATEINSTANCECONFIGREQUEST_H_ \ No newline at end of file diff --git a/alikafka/include/alibabacloud/alikafka/model/UpdateInstanceConfigResult.h b/alikafka/include/alibabacloud/alikafka/model/UpdateInstanceConfigResult.h new file mode 100644 index 000000000..64972294b --- /dev/null +++ b/alikafka/include/alibabacloud/alikafka/model/UpdateInstanceConfigResult.h @@ -0,0 +1,55 @@ +/* + * 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_ALIKAFKA_MODEL_UPDATEINSTANCECONFIGRESULT_H_ +#define ALIBABACLOUD_ALIKAFKA_MODEL_UPDATEINSTANCECONFIGRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Alikafka + { + namespace Model + { + class ALIBABACLOUD_ALIKAFKA_EXPORT UpdateInstanceConfigResult : public ServiceResult + { + public: + + + UpdateInstanceConfigResult(); + explicit UpdateInstanceConfigResult(const std::string &payload); + ~UpdateInstanceConfigResult(); + std::string getMessage()const; + int getCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + int code_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ALIKAFKA_MODEL_UPDATEINSTANCECONFIGRESULT_H_ \ No newline at end of file diff --git a/alikafka/include/alibabacloud/alikafka/model/UpgradeInstanceVersionRequest.h b/alikafka/include/alibabacloud/alikafka/model/UpgradeInstanceVersionRequest.h new file mode 100644 index 000000000..6c34752fc --- /dev/null +++ b/alikafka/include/alibabacloud/alikafka/model/UpgradeInstanceVersionRequest.h @@ -0,0 +1,54 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ALIKAFKA_MODEL_UPGRADEINSTANCEVERSIONREQUEST_H_ +#define ALIBABACLOUD_ALIKAFKA_MODEL_UPGRADEINSTANCEVERSIONREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Alikafka + { + namespace Model + { + class ALIBABACLOUD_ALIKAFKA_EXPORT UpgradeInstanceVersionRequest : public RpcServiceRequest + { + + public: + UpgradeInstanceVersionRequest(); + ~UpgradeInstanceVersionRequest(); + + std::string getTargetVersion()const; + void setTargetVersion(const std::string& targetVersion); + std::string getInstanceId()const; + void setInstanceId(const std::string& instanceId); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + + private: + std::string targetVersion_; + std::string instanceId_; + std::string regionId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ALIKAFKA_MODEL_UPGRADEINSTANCEVERSIONREQUEST_H_ \ No newline at end of file diff --git a/alikafka/include/alibabacloud/alikafka/model/UpgradeInstanceVersionResult.h b/alikafka/include/alibabacloud/alikafka/model/UpgradeInstanceVersionResult.h new file mode 100644 index 000000000..cb9ef979e --- /dev/null +++ b/alikafka/include/alibabacloud/alikafka/model/UpgradeInstanceVersionResult.h @@ -0,0 +1,55 @@ +/* + * 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_ALIKAFKA_MODEL_UPGRADEINSTANCEVERSIONRESULT_H_ +#define ALIBABACLOUD_ALIKAFKA_MODEL_UPGRADEINSTANCEVERSIONRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Alikafka + { + namespace Model + { + class ALIBABACLOUD_ALIKAFKA_EXPORT UpgradeInstanceVersionResult : public ServiceResult + { + public: + + + UpgradeInstanceVersionResult(); + explicit UpgradeInstanceVersionResult(const std::string &payload); + ~UpgradeInstanceVersionResult(); + std::string getMessage()const; + int getCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + int code_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ALIKAFKA_MODEL_UPGRADEINSTANCEVERSIONRESULT_H_ \ No newline at end of file diff --git a/alikafka/include/alibabacloud/alikafka/model/UpgradePostPayOrderRequest.h b/alikafka/include/alibabacloud/alikafka/model/UpgradePostPayOrderRequest.h new file mode 100644 index 000000000..f6d4b507f --- /dev/null +++ b/alikafka/include/alibabacloud/alikafka/model/UpgradePostPayOrderRequest.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_ALIKAFKA_MODEL_UPGRADEPOSTPAYORDERREQUEST_H_ +#define ALIBABACLOUD_ALIKAFKA_MODEL_UPGRADEPOSTPAYORDERREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Alikafka + { + namespace Model + { + class ALIBABACLOUD_ALIKAFKA_EXPORT UpgradePostPayOrderRequest : public RpcServiceRequest + { + + public: + UpgradePostPayOrderRequest(); + ~UpgradePostPayOrderRequest(); + + int getDiskSize()const; + void setDiskSize(int diskSize); + int getIoMax()const; + void setIoMax(int ioMax); + std::string getIoMaxSpec()const; + void setIoMaxSpec(const std::string& ioMaxSpec); + int getTopicQuota()const; + void setTopicQuota(int topicQuota); + int getEipMax()const; + void setEipMax(int eipMax); + std::string getSpecType()const; + void setSpecType(const std::string& specType); + std::string getInstanceId()const; + void setInstanceId(const std::string& instanceId); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + + private: + int diskSize_; + int ioMax_; + std::string ioMaxSpec_; + int topicQuota_; + int eipMax_; + std::string specType_; + std::string instanceId_; + std::string regionId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ALIKAFKA_MODEL_UPGRADEPOSTPAYORDERREQUEST_H_ \ No newline at end of file diff --git a/alikafka/include/alibabacloud/alikafka/model/UpgradePostPayOrderResult.h b/alikafka/include/alibabacloud/alikafka/model/UpgradePostPayOrderResult.h new file mode 100644 index 000000000..bd8635c47 --- /dev/null +++ b/alikafka/include/alibabacloud/alikafka/model/UpgradePostPayOrderResult.h @@ -0,0 +1,55 @@ +/* + * 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_ALIKAFKA_MODEL_UPGRADEPOSTPAYORDERRESULT_H_ +#define ALIBABACLOUD_ALIKAFKA_MODEL_UPGRADEPOSTPAYORDERRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Alikafka + { + namespace Model + { + class ALIBABACLOUD_ALIKAFKA_EXPORT UpgradePostPayOrderResult : public ServiceResult + { + public: + + + UpgradePostPayOrderResult(); + explicit UpgradePostPayOrderResult(const std::string &payload); + ~UpgradePostPayOrderResult(); + std::string getMessage()const; + int getCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + int code_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ALIKAFKA_MODEL_UPGRADEPOSTPAYORDERRESULT_H_ \ No newline at end of file diff --git a/alikafka/include/alibabacloud/alikafka/model/UpgradePrePayOrderRequest.h b/alikafka/include/alibabacloud/alikafka/model/UpgradePrePayOrderRequest.h new file mode 100644 index 000000000..8d7654242 --- /dev/null +++ b/alikafka/include/alibabacloud/alikafka/model/UpgradePrePayOrderRequest.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_ALIKAFKA_MODEL_UPGRADEPREPAYORDERREQUEST_H_ +#define ALIBABACLOUD_ALIKAFKA_MODEL_UPGRADEPREPAYORDERREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Alikafka + { + namespace Model + { + class ALIBABACLOUD_ALIKAFKA_EXPORT UpgradePrePayOrderRequest : public RpcServiceRequest + { + + public: + UpgradePrePayOrderRequest(); + ~UpgradePrePayOrderRequest(); + + int getDiskSize()const; + void setDiskSize(int diskSize); + int getIoMax()const; + void setIoMax(int ioMax); + std::string getIoMaxSpec()const; + void setIoMaxSpec(const std::string& ioMaxSpec); + int getTopicQuota()const; + void setTopicQuota(int topicQuota); + int getEipMax()const; + void setEipMax(int eipMax); + std::string getSpecType()const; + void setSpecType(const std::string& specType); + std::string getInstanceId()const; + void setInstanceId(const std::string& instanceId); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + + private: + int diskSize_; + int ioMax_; + std::string ioMaxSpec_; + int topicQuota_; + int eipMax_; + std::string specType_; + std::string instanceId_; + std::string regionId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ALIKAFKA_MODEL_UPGRADEPREPAYORDERREQUEST_H_ \ No newline at end of file diff --git a/alikafka/include/alibabacloud/alikafka/model/UpgradePrePayOrderResult.h b/alikafka/include/alibabacloud/alikafka/model/UpgradePrePayOrderResult.h new file mode 100644 index 000000000..7b8687e02 --- /dev/null +++ b/alikafka/include/alibabacloud/alikafka/model/UpgradePrePayOrderResult.h @@ -0,0 +1,55 @@ +/* + * 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_ALIKAFKA_MODEL_UPGRADEPREPAYORDERRESULT_H_ +#define ALIBABACLOUD_ALIKAFKA_MODEL_UPGRADEPREPAYORDERRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Alikafka + { + namespace Model + { + class ALIBABACLOUD_ALIKAFKA_EXPORT UpgradePrePayOrderResult : public ServiceResult + { + public: + + + UpgradePrePayOrderResult(); + explicit UpgradePrePayOrderResult(const std::string &payload); + ~UpgradePrePayOrderResult(); + std::string getMessage()const; + int getCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + int code_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ALIKAFKA_MODEL_UPGRADEPREPAYORDERRESULT_H_ \ No newline at end of file diff --git a/alikafka/src/AlikafkaClient.cc b/alikafka/src/AlikafkaClient.cc new file mode 100644 index 000000000..fe62d2453 --- /dev/null +++ b/alikafka/src/AlikafkaClient.cc @@ -0,0 +1,1313 @@ +/* + * 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; +using namespace AlibabaCloud::Location; +using namespace AlibabaCloud::Alikafka; +using namespace AlibabaCloud::Alikafka::Model; + +namespace +{ + const std::string SERVICE_NAME = "alikafka"; +} + +AlikafkaClient::AlikafkaClient(const Credentials &credentials, const ClientConfiguration &configuration) : + RpcServiceClient(SERVICE_NAME, std::make_shared(credentials), configuration) +{ + auto locationClient = std::make_shared(credentials, configuration); + endpointProvider_ = std::make_shared(locationClient, configuration.regionId(), SERVICE_NAME, "alikafka"); +} + +AlikafkaClient::AlikafkaClient(const std::shared_ptr& credentialsProvider, const ClientConfiguration & configuration) : + RpcServiceClient(SERVICE_NAME, credentialsProvider, configuration) +{ + auto locationClient = std::make_shared(credentialsProvider, configuration); + endpointProvider_ = std::make_shared(locationClient, configuration.regionId(), SERVICE_NAME, "alikafka"); +} + +AlikafkaClient::AlikafkaClient(const std::string & accessKeyId, const std::string & accessKeySecret, const ClientConfiguration & configuration) : + RpcServiceClient(SERVICE_NAME, std::make_shared(accessKeyId, accessKeySecret), configuration) +{ + auto locationClient = std::make_shared(accessKeyId, accessKeySecret, configuration); + endpointProvider_ = std::make_shared(locationClient, configuration.regionId(), SERVICE_NAME, "alikafka"); +} + +AlikafkaClient::~AlikafkaClient() +{} + +AlikafkaClient::ConvertPostPayOrderOutcome AlikafkaClient::convertPostPayOrder(const ConvertPostPayOrderRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ConvertPostPayOrderOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ConvertPostPayOrderOutcome(ConvertPostPayOrderResult(outcome.result())); + else + return ConvertPostPayOrderOutcome(outcome.error()); +} + +void AlikafkaClient::convertPostPayOrderAsync(const ConvertPostPayOrderRequest& request, const ConvertPostPayOrderAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, convertPostPayOrder(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +AlikafkaClient::ConvertPostPayOrderOutcomeCallable AlikafkaClient::convertPostPayOrderCallable(const ConvertPostPayOrderRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->convertPostPayOrder(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +AlikafkaClient::CreateAclOutcome AlikafkaClient::createAcl(const CreateAclRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return CreateAclOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return CreateAclOutcome(CreateAclResult(outcome.result())); + else + return CreateAclOutcome(outcome.error()); +} + +void AlikafkaClient::createAclAsync(const CreateAclRequest& request, const CreateAclAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, createAcl(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +AlikafkaClient::CreateAclOutcomeCallable AlikafkaClient::createAclCallable(const CreateAclRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->createAcl(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +AlikafkaClient::CreateConsumerGroupOutcome AlikafkaClient::createConsumerGroup(const CreateConsumerGroupRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return CreateConsumerGroupOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return CreateConsumerGroupOutcome(CreateConsumerGroupResult(outcome.result())); + else + return CreateConsumerGroupOutcome(outcome.error()); +} + +void AlikafkaClient::createConsumerGroupAsync(const CreateConsumerGroupRequest& request, const CreateConsumerGroupAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, createConsumerGroup(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +AlikafkaClient::CreateConsumerGroupOutcomeCallable AlikafkaClient::createConsumerGroupCallable(const CreateConsumerGroupRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->createConsumerGroup(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +AlikafkaClient::CreatePostPayOrderOutcome AlikafkaClient::createPostPayOrder(const CreatePostPayOrderRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return CreatePostPayOrderOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return CreatePostPayOrderOutcome(CreatePostPayOrderResult(outcome.result())); + else + return CreatePostPayOrderOutcome(outcome.error()); +} + +void AlikafkaClient::createPostPayOrderAsync(const CreatePostPayOrderRequest& request, const CreatePostPayOrderAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, createPostPayOrder(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +AlikafkaClient::CreatePostPayOrderOutcomeCallable AlikafkaClient::createPostPayOrderCallable(const CreatePostPayOrderRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->createPostPayOrder(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +AlikafkaClient::CreatePrePayOrderOutcome AlikafkaClient::createPrePayOrder(const CreatePrePayOrderRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return CreatePrePayOrderOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return CreatePrePayOrderOutcome(CreatePrePayOrderResult(outcome.result())); + else + return CreatePrePayOrderOutcome(outcome.error()); +} + +void AlikafkaClient::createPrePayOrderAsync(const CreatePrePayOrderRequest& request, const CreatePrePayOrderAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, createPrePayOrder(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +AlikafkaClient::CreatePrePayOrderOutcomeCallable AlikafkaClient::createPrePayOrderCallable(const CreatePrePayOrderRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->createPrePayOrder(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +AlikafkaClient::CreateSaslUserOutcome AlikafkaClient::createSaslUser(const CreateSaslUserRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return CreateSaslUserOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return CreateSaslUserOutcome(CreateSaslUserResult(outcome.result())); + else + return CreateSaslUserOutcome(outcome.error()); +} + +void AlikafkaClient::createSaslUserAsync(const CreateSaslUserRequest& request, const CreateSaslUserAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, createSaslUser(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +AlikafkaClient::CreateSaslUserOutcomeCallable AlikafkaClient::createSaslUserCallable(const CreateSaslUserRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->createSaslUser(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +AlikafkaClient::CreateTopicOutcome AlikafkaClient::createTopic(const CreateTopicRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return CreateTopicOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return CreateTopicOutcome(CreateTopicResult(outcome.result())); + else + return CreateTopicOutcome(outcome.error()); +} + +void AlikafkaClient::createTopicAsync(const CreateTopicRequest& request, const CreateTopicAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, createTopic(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +AlikafkaClient::CreateTopicOutcomeCallable AlikafkaClient::createTopicCallable(const CreateTopicRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->createTopic(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +AlikafkaClient::DeleteAclOutcome AlikafkaClient::deleteAcl(const DeleteAclRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DeleteAclOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DeleteAclOutcome(DeleteAclResult(outcome.result())); + else + return DeleteAclOutcome(outcome.error()); +} + +void AlikafkaClient::deleteAclAsync(const DeleteAclRequest& request, const DeleteAclAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, deleteAcl(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +AlikafkaClient::DeleteAclOutcomeCallable AlikafkaClient::deleteAclCallable(const DeleteAclRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->deleteAcl(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +AlikafkaClient::DeleteConsumerGroupOutcome AlikafkaClient::deleteConsumerGroup(const DeleteConsumerGroupRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DeleteConsumerGroupOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DeleteConsumerGroupOutcome(DeleteConsumerGroupResult(outcome.result())); + else + return DeleteConsumerGroupOutcome(outcome.error()); +} + +void AlikafkaClient::deleteConsumerGroupAsync(const DeleteConsumerGroupRequest& request, const DeleteConsumerGroupAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, deleteConsumerGroup(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +AlikafkaClient::DeleteConsumerGroupOutcomeCallable AlikafkaClient::deleteConsumerGroupCallable(const DeleteConsumerGroupRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->deleteConsumerGroup(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +AlikafkaClient::DeleteInstanceOutcome AlikafkaClient::deleteInstance(const DeleteInstanceRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DeleteInstanceOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DeleteInstanceOutcome(DeleteInstanceResult(outcome.result())); + else + return DeleteInstanceOutcome(outcome.error()); +} + +void AlikafkaClient::deleteInstanceAsync(const DeleteInstanceRequest& request, const DeleteInstanceAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, deleteInstance(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +AlikafkaClient::DeleteInstanceOutcomeCallable AlikafkaClient::deleteInstanceCallable(const DeleteInstanceRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->deleteInstance(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +AlikafkaClient::DeleteSaslUserOutcome AlikafkaClient::deleteSaslUser(const DeleteSaslUserRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DeleteSaslUserOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DeleteSaslUserOutcome(DeleteSaslUserResult(outcome.result())); + else + return DeleteSaslUserOutcome(outcome.error()); +} + +void AlikafkaClient::deleteSaslUserAsync(const DeleteSaslUserRequest& request, const DeleteSaslUserAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, deleteSaslUser(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +AlikafkaClient::DeleteSaslUserOutcomeCallable AlikafkaClient::deleteSaslUserCallable(const DeleteSaslUserRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->deleteSaslUser(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +AlikafkaClient::DeleteTopicOutcome AlikafkaClient::deleteTopic(const DeleteTopicRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DeleteTopicOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DeleteTopicOutcome(DeleteTopicResult(outcome.result())); + else + return DeleteTopicOutcome(outcome.error()); +} + +void AlikafkaClient::deleteTopicAsync(const DeleteTopicRequest& request, const DeleteTopicAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, deleteTopic(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +AlikafkaClient::DeleteTopicOutcomeCallable AlikafkaClient::deleteTopicCallable(const DeleteTopicRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->deleteTopic(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +AlikafkaClient::DescribeAclsOutcome AlikafkaClient::describeAcls(const DescribeAclsRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeAclsOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeAclsOutcome(DescribeAclsResult(outcome.result())); + else + return DescribeAclsOutcome(outcome.error()); +} + +void AlikafkaClient::describeAclsAsync(const DescribeAclsRequest& request, const DescribeAclsAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeAcls(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +AlikafkaClient::DescribeAclsOutcomeCallable AlikafkaClient::describeAclsCallable(const DescribeAclsRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeAcls(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +AlikafkaClient::DescribeNodeStatusOutcome AlikafkaClient::describeNodeStatus(const DescribeNodeStatusRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeNodeStatusOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeNodeStatusOutcome(DescribeNodeStatusResult(outcome.result())); + else + return DescribeNodeStatusOutcome(outcome.error()); +} + +void AlikafkaClient::describeNodeStatusAsync(const DescribeNodeStatusRequest& request, const DescribeNodeStatusAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeNodeStatus(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +AlikafkaClient::DescribeNodeStatusOutcomeCallable AlikafkaClient::describeNodeStatusCallable(const DescribeNodeStatusRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeNodeStatus(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +AlikafkaClient::DescribeSaslUsersOutcome AlikafkaClient::describeSaslUsers(const DescribeSaslUsersRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeSaslUsersOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeSaslUsersOutcome(DescribeSaslUsersResult(outcome.result())); + else + return DescribeSaslUsersOutcome(outcome.error()); +} + +void AlikafkaClient::describeSaslUsersAsync(const DescribeSaslUsersRequest& request, const DescribeSaslUsersAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeSaslUsers(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +AlikafkaClient::DescribeSaslUsersOutcomeCallable AlikafkaClient::describeSaslUsersCallable(const DescribeSaslUsersRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeSaslUsers(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +AlikafkaClient::GetAllowedIpListOutcome AlikafkaClient::getAllowedIpList(const GetAllowedIpListRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return GetAllowedIpListOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return GetAllowedIpListOutcome(GetAllowedIpListResult(outcome.result())); + else + return GetAllowedIpListOutcome(outcome.error()); +} + +void AlikafkaClient::getAllowedIpListAsync(const GetAllowedIpListRequest& request, const GetAllowedIpListAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, getAllowedIpList(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +AlikafkaClient::GetAllowedIpListOutcomeCallable AlikafkaClient::getAllowedIpListCallable(const GetAllowedIpListRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->getAllowedIpList(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +AlikafkaClient::GetConsumerListOutcome AlikafkaClient::getConsumerList(const GetConsumerListRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return GetConsumerListOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return GetConsumerListOutcome(GetConsumerListResult(outcome.result())); + else + return GetConsumerListOutcome(outcome.error()); +} + +void AlikafkaClient::getConsumerListAsync(const GetConsumerListRequest& request, const GetConsumerListAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, getConsumerList(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +AlikafkaClient::GetConsumerListOutcomeCallable AlikafkaClient::getConsumerListCallable(const GetConsumerListRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->getConsumerList(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +AlikafkaClient::GetConsumerProgressOutcome AlikafkaClient::getConsumerProgress(const GetConsumerProgressRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return GetConsumerProgressOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return GetConsumerProgressOutcome(GetConsumerProgressResult(outcome.result())); + else + return GetConsumerProgressOutcome(outcome.error()); +} + +void AlikafkaClient::getConsumerProgressAsync(const GetConsumerProgressRequest& request, const GetConsumerProgressAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, getConsumerProgress(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +AlikafkaClient::GetConsumerProgressOutcomeCallable AlikafkaClient::getConsumerProgressCallable(const GetConsumerProgressRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->getConsumerProgress(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +AlikafkaClient::GetInstanceListOutcome AlikafkaClient::getInstanceList(const GetInstanceListRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return GetInstanceListOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return GetInstanceListOutcome(GetInstanceListResult(outcome.result())); + else + return GetInstanceListOutcome(outcome.error()); +} + +void AlikafkaClient::getInstanceListAsync(const GetInstanceListRequest& request, const GetInstanceListAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, getInstanceList(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +AlikafkaClient::GetInstanceListOutcomeCallable AlikafkaClient::getInstanceListCallable(const GetInstanceListRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->getInstanceList(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +AlikafkaClient::GetMetaProductListOutcome AlikafkaClient::getMetaProductList(const GetMetaProductListRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return GetMetaProductListOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return GetMetaProductListOutcome(GetMetaProductListResult(outcome.result())); + else + return GetMetaProductListOutcome(outcome.error()); +} + +void AlikafkaClient::getMetaProductListAsync(const GetMetaProductListRequest& request, const GetMetaProductListAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, getMetaProductList(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +AlikafkaClient::GetMetaProductListOutcomeCallable AlikafkaClient::getMetaProductListCallable(const GetMetaProductListRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->getMetaProductList(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +AlikafkaClient::GetTopicListOutcome AlikafkaClient::getTopicList(const GetTopicListRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return GetTopicListOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return GetTopicListOutcome(GetTopicListResult(outcome.result())); + else + return GetTopicListOutcome(outcome.error()); +} + +void AlikafkaClient::getTopicListAsync(const GetTopicListRequest& request, const GetTopicListAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, getTopicList(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +AlikafkaClient::GetTopicListOutcomeCallable AlikafkaClient::getTopicListCallable(const GetTopicListRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->getTopicList(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +AlikafkaClient::GetTopicStatusOutcome AlikafkaClient::getTopicStatus(const GetTopicStatusRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return GetTopicStatusOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return GetTopicStatusOutcome(GetTopicStatusResult(outcome.result())); + else + return GetTopicStatusOutcome(outcome.error()); +} + +void AlikafkaClient::getTopicStatusAsync(const GetTopicStatusRequest& request, const GetTopicStatusAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, getTopicStatus(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +AlikafkaClient::GetTopicStatusOutcomeCallable AlikafkaClient::getTopicStatusCallable(const GetTopicStatusRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->getTopicStatus(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +AlikafkaClient::ListTagResourcesOutcome AlikafkaClient::listTagResources(const ListTagResourcesRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ListTagResourcesOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ListTagResourcesOutcome(ListTagResourcesResult(outcome.result())); + else + return ListTagResourcesOutcome(outcome.error()); +} + +void AlikafkaClient::listTagResourcesAsync(const ListTagResourcesRequest& request, const ListTagResourcesAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, listTagResources(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +AlikafkaClient::ListTagResourcesOutcomeCallable AlikafkaClient::listTagResourcesCallable(const ListTagResourcesRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->listTagResources(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +AlikafkaClient::ModifyInstanceNameOutcome AlikafkaClient::modifyInstanceName(const ModifyInstanceNameRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ModifyInstanceNameOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ModifyInstanceNameOutcome(ModifyInstanceNameResult(outcome.result())); + else + return ModifyInstanceNameOutcome(outcome.error()); +} + +void AlikafkaClient::modifyInstanceNameAsync(const ModifyInstanceNameRequest& request, const ModifyInstanceNameAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, modifyInstanceName(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +AlikafkaClient::ModifyInstanceNameOutcomeCallable AlikafkaClient::modifyInstanceNameCallable(const ModifyInstanceNameRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->modifyInstanceName(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +AlikafkaClient::ModifyPartitionNumOutcome AlikafkaClient::modifyPartitionNum(const ModifyPartitionNumRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ModifyPartitionNumOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ModifyPartitionNumOutcome(ModifyPartitionNumResult(outcome.result())); + else + return ModifyPartitionNumOutcome(outcome.error()); +} + +void AlikafkaClient::modifyPartitionNumAsync(const ModifyPartitionNumRequest& request, const ModifyPartitionNumAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, modifyPartitionNum(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +AlikafkaClient::ModifyPartitionNumOutcomeCallable AlikafkaClient::modifyPartitionNumCallable(const ModifyPartitionNumRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->modifyPartitionNum(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +AlikafkaClient::ModifyTopicRemarkOutcome AlikafkaClient::modifyTopicRemark(const ModifyTopicRemarkRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ModifyTopicRemarkOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ModifyTopicRemarkOutcome(ModifyTopicRemarkResult(outcome.result())); + else + return ModifyTopicRemarkOutcome(outcome.error()); +} + +void AlikafkaClient::modifyTopicRemarkAsync(const ModifyTopicRemarkRequest& request, const ModifyTopicRemarkAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, modifyTopicRemark(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +AlikafkaClient::ModifyTopicRemarkOutcomeCallable AlikafkaClient::modifyTopicRemarkCallable(const ModifyTopicRemarkRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->modifyTopicRemark(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +AlikafkaClient::ReleaseInstanceOutcome AlikafkaClient::releaseInstance(const ReleaseInstanceRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ReleaseInstanceOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ReleaseInstanceOutcome(ReleaseInstanceResult(outcome.result())); + else + return ReleaseInstanceOutcome(outcome.error()); +} + +void AlikafkaClient::releaseInstanceAsync(const ReleaseInstanceRequest& request, const ReleaseInstanceAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, releaseInstance(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +AlikafkaClient::ReleaseInstanceOutcomeCallable AlikafkaClient::releaseInstanceCallable(const ReleaseInstanceRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->releaseInstance(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +AlikafkaClient::StartInstanceOutcome AlikafkaClient::startInstance(const StartInstanceRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return StartInstanceOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return StartInstanceOutcome(StartInstanceResult(outcome.result())); + else + return StartInstanceOutcome(outcome.error()); +} + +void AlikafkaClient::startInstanceAsync(const StartInstanceRequest& request, const StartInstanceAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, startInstance(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +AlikafkaClient::StartInstanceOutcomeCallable AlikafkaClient::startInstanceCallable(const StartInstanceRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->startInstance(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +AlikafkaClient::TagResourcesOutcome AlikafkaClient::tagResources(const TagResourcesRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return TagResourcesOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return TagResourcesOutcome(TagResourcesResult(outcome.result())); + else + return TagResourcesOutcome(outcome.error()); +} + +void AlikafkaClient::tagResourcesAsync(const TagResourcesRequest& request, const TagResourcesAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, tagResources(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +AlikafkaClient::TagResourcesOutcomeCallable AlikafkaClient::tagResourcesCallable(const TagResourcesRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->tagResources(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +AlikafkaClient::UntagResourcesOutcome AlikafkaClient::untagResources(const UntagResourcesRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return UntagResourcesOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return UntagResourcesOutcome(UntagResourcesResult(outcome.result())); + else + return UntagResourcesOutcome(outcome.error()); +} + +void AlikafkaClient::untagResourcesAsync(const UntagResourcesRequest& request, const UntagResourcesAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, untagResources(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +AlikafkaClient::UntagResourcesOutcomeCallable AlikafkaClient::untagResourcesCallable(const UntagResourcesRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->untagResources(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +AlikafkaClient::UpdateAllowedIpOutcome AlikafkaClient::updateAllowedIp(const UpdateAllowedIpRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return UpdateAllowedIpOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return UpdateAllowedIpOutcome(UpdateAllowedIpResult(outcome.result())); + else + return UpdateAllowedIpOutcome(outcome.error()); +} + +void AlikafkaClient::updateAllowedIpAsync(const UpdateAllowedIpRequest& request, const UpdateAllowedIpAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, updateAllowedIp(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +AlikafkaClient::UpdateAllowedIpOutcomeCallable AlikafkaClient::updateAllowedIpCallable(const UpdateAllowedIpRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->updateAllowedIp(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +AlikafkaClient::UpdateInstanceConfigOutcome AlikafkaClient::updateInstanceConfig(const UpdateInstanceConfigRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return UpdateInstanceConfigOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return UpdateInstanceConfigOutcome(UpdateInstanceConfigResult(outcome.result())); + else + return UpdateInstanceConfigOutcome(outcome.error()); +} + +void AlikafkaClient::updateInstanceConfigAsync(const UpdateInstanceConfigRequest& request, const UpdateInstanceConfigAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, updateInstanceConfig(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +AlikafkaClient::UpdateInstanceConfigOutcomeCallable AlikafkaClient::updateInstanceConfigCallable(const UpdateInstanceConfigRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->updateInstanceConfig(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +AlikafkaClient::UpgradeInstanceVersionOutcome AlikafkaClient::upgradeInstanceVersion(const UpgradeInstanceVersionRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return UpgradeInstanceVersionOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return UpgradeInstanceVersionOutcome(UpgradeInstanceVersionResult(outcome.result())); + else + return UpgradeInstanceVersionOutcome(outcome.error()); +} + +void AlikafkaClient::upgradeInstanceVersionAsync(const UpgradeInstanceVersionRequest& request, const UpgradeInstanceVersionAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, upgradeInstanceVersion(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +AlikafkaClient::UpgradeInstanceVersionOutcomeCallable AlikafkaClient::upgradeInstanceVersionCallable(const UpgradeInstanceVersionRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->upgradeInstanceVersion(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +AlikafkaClient::UpgradePostPayOrderOutcome AlikafkaClient::upgradePostPayOrder(const UpgradePostPayOrderRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return UpgradePostPayOrderOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return UpgradePostPayOrderOutcome(UpgradePostPayOrderResult(outcome.result())); + else + return UpgradePostPayOrderOutcome(outcome.error()); +} + +void AlikafkaClient::upgradePostPayOrderAsync(const UpgradePostPayOrderRequest& request, const UpgradePostPayOrderAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, upgradePostPayOrder(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +AlikafkaClient::UpgradePostPayOrderOutcomeCallable AlikafkaClient::upgradePostPayOrderCallable(const UpgradePostPayOrderRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->upgradePostPayOrder(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +AlikafkaClient::UpgradePrePayOrderOutcome AlikafkaClient::upgradePrePayOrder(const UpgradePrePayOrderRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return UpgradePrePayOrderOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return UpgradePrePayOrderOutcome(UpgradePrePayOrderResult(outcome.result())); + else + return UpgradePrePayOrderOutcome(outcome.error()); +} + +void AlikafkaClient::upgradePrePayOrderAsync(const UpgradePrePayOrderRequest& request, const UpgradePrePayOrderAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, upgradePrePayOrder(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +AlikafkaClient::UpgradePrePayOrderOutcomeCallable AlikafkaClient::upgradePrePayOrderCallable(const UpgradePrePayOrderRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->upgradePrePayOrder(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + diff --git a/alikafka/src/model/ConvertPostPayOrderRequest.cc b/alikafka/src/model/ConvertPostPayOrderRequest.cc new file mode 100644 index 000000000..fdd3c3dbc --- /dev/null +++ b/alikafka/src/model/ConvertPostPayOrderRequest.cc @@ -0,0 +1,62 @@ +/* + * 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::Alikafka::Model::ConvertPostPayOrderRequest; + +ConvertPostPayOrderRequest::ConvertPostPayOrderRequest() : + RpcServiceRequest("alikafka", "2019-09-16", "ConvertPostPayOrder") +{ + setMethod(HttpRequest::Method::Post); +} + +ConvertPostPayOrderRequest::~ConvertPostPayOrderRequest() +{} + +int ConvertPostPayOrderRequest::getDuration()const +{ + return duration_; +} + +void ConvertPostPayOrderRequest::setDuration(int duration) +{ + duration_ = duration; + setParameter("Duration", std::to_string(duration)); +} + +std::string ConvertPostPayOrderRequest::getInstanceId()const +{ + return instanceId_; +} + +void ConvertPostPayOrderRequest::setInstanceId(const std::string& instanceId) +{ + instanceId_ = instanceId; + setParameter("InstanceId", instanceId); +} + +std::string ConvertPostPayOrderRequest::getRegionId()const +{ + return regionId_; +} + +void ConvertPostPayOrderRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setParameter("RegionId", regionId); +} + diff --git a/alikafka/src/model/ConvertPostPayOrderResult.cc b/alikafka/src/model/ConvertPostPayOrderResult.cc new file mode 100644 index 000000000..468c7b2e5 --- /dev/null +++ b/alikafka/src/model/ConvertPostPayOrderResult.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::Alikafka; +using namespace AlibabaCloud::Alikafka::Model; + +ConvertPostPayOrderResult::ConvertPostPayOrderResult() : + ServiceResult() +{} + +ConvertPostPayOrderResult::ConvertPostPayOrderResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ConvertPostPayOrderResult::~ConvertPostPayOrderResult() +{} + +void ConvertPostPayOrderResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["Code"].isNull()) + code_ = std::stoi(value["Code"].asString()); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["OrderId"].isNull()) + orderId_ = value["OrderId"].asString(); + +} + +std::string ConvertPostPayOrderResult::getMessage()const +{ + return message_; +} + +std::string ConvertPostPayOrderResult::getOrderId()const +{ + return orderId_; +} + +int ConvertPostPayOrderResult::getCode()const +{ + return code_; +} + +bool ConvertPostPayOrderResult::getSuccess()const +{ + return success_; +} + diff --git a/alikafka/src/model/CreateAclRequest.cc b/alikafka/src/model/CreateAclRequest.cc new file mode 100644 index 000000000..ddd0453e0 --- /dev/null +++ b/alikafka/src/model/CreateAclRequest.cc @@ -0,0 +1,106 @@ +/* + * 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::Alikafka::Model::CreateAclRequest; + +CreateAclRequest::CreateAclRequest() : + RpcServiceRequest("alikafka", "2019-09-16", "CreateAcl") +{ + setMethod(HttpRequest::Method::Post); +} + +CreateAclRequest::~CreateAclRequest() +{} + +std::string CreateAclRequest::getAclResourcePatternType()const +{ + return aclResourcePatternType_; +} + +void CreateAclRequest::setAclResourcePatternType(const std::string& aclResourcePatternType) +{ + aclResourcePatternType_ = aclResourcePatternType; + setParameter("AclResourcePatternType", aclResourcePatternType); +} + +std::string CreateAclRequest::getAclResourceType()const +{ + return aclResourceType_; +} + +void CreateAclRequest::setAclResourceType(const std::string& aclResourceType) +{ + aclResourceType_ = aclResourceType; + setParameter("AclResourceType", aclResourceType); +} + +std::string CreateAclRequest::getAclOperationType()const +{ + return aclOperationType_; +} + +void CreateAclRequest::setAclOperationType(const std::string& aclOperationType) +{ + aclOperationType_ = aclOperationType; + setParameter("AclOperationType", aclOperationType); +} + +std::string CreateAclRequest::getAclResourceName()const +{ + return aclResourceName_; +} + +void CreateAclRequest::setAclResourceName(const std::string& aclResourceName) +{ + aclResourceName_ = aclResourceName; + setParameter("AclResourceName", aclResourceName); +} + +std::string CreateAclRequest::getInstanceId()const +{ + return instanceId_; +} + +void CreateAclRequest::setInstanceId(const std::string& instanceId) +{ + instanceId_ = instanceId; + setParameter("InstanceId", instanceId); +} + +std::string CreateAclRequest::getRegionId()const +{ + return regionId_; +} + +void CreateAclRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setParameter("RegionId", regionId); +} + +std::string CreateAclRequest::getUsername()const +{ + return username_; +} + +void CreateAclRequest::setUsername(const std::string& username) +{ + username_ = username; + setParameter("Username", username); +} + diff --git a/alikafka/src/model/CreateAclResult.cc b/alikafka/src/model/CreateAclResult.cc new file mode 100644 index 000000000..2d5842f7d --- /dev/null +++ b/alikafka/src/model/CreateAclResult.cc @@ -0,0 +1,65 @@ +/* + * 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::Alikafka; +using namespace AlibabaCloud::Alikafka::Model; + +CreateAclResult::CreateAclResult() : + ServiceResult() +{} + +CreateAclResult::CreateAclResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +CreateAclResult::~CreateAclResult() +{} + +void CreateAclResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["Code"].isNull()) + code_ = std::stoi(value["Code"].asString()); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + +} + +std::string CreateAclResult::getMessage()const +{ + return message_; +} + +int CreateAclResult::getCode()const +{ + return code_; +} + +bool CreateAclResult::getSuccess()const +{ + return success_; +} + diff --git a/alikafka/src/model/CreateConsumerGroupRequest.cc b/alikafka/src/model/CreateConsumerGroupRequest.cc new file mode 100644 index 000000000..ec3893212 --- /dev/null +++ b/alikafka/src/model/CreateConsumerGroupRequest.cc @@ -0,0 +1,73 @@ +/* + * 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::Alikafka::Model::CreateConsumerGroupRequest; + +CreateConsumerGroupRequest::CreateConsumerGroupRequest() : + RpcServiceRequest("alikafka", "2019-09-16", "CreateConsumerGroup") +{ + setMethod(HttpRequest::Method::Post); +} + +CreateConsumerGroupRequest::~CreateConsumerGroupRequest() +{} + +std::string CreateConsumerGroupRequest::getConsumerId()const +{ + return consumerId_; +} + +void CreateConsumerGroupRequest::setConsumerId(const std::string& consumerId) +{ + consumerId_ = consumerId; + setParameter("ConsumerId", consumerId); +} + +std::string CreateConsumerGroupRequest::getRemark()const +{ + return remark_; +} + +void CreateConsumerGroupRequest::setRemark(const std::string& remark) +{ + remark_ = remark; + setParameter("Remark", remark); +} + +std::string CreateConsumerGroupRequest::getInstanceId()const +{ + return instanceId_; +} + +void CreateConsumerGroupRequest::setInstanceId(const std::string& instanceId) +{ + instanceId_ = instanceId; + setParameter("InstanceId", instanceId); +} + +std::string CreateConsumerGroupRequest::getRegionId()const +{ + return regionId_; +} + +void CreateConsumerGroupRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setParameter("RegionId", regionId); +} + diff --git a/alikafka/src/model/CreateConsumerGroupResult.cc b/alikafka/src/model/CreateConsumerGroupResult.cc new file mode 100644 index 000000000..836420eb9 --- /dev/null +++ b/alikafka/src/model/CreateConsumerGroupResult.cc @@ -0,0 +1,65 @@ +/* + * 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::Alikafka; +using namespace AlibabaCloud::Alikafka::Model; + +CreateConsumerGroupResult::CreateConsumerGroupResult() : + ServiceResult() +{} + +CreateConsumerGroupResult::CreateConsumerGroupResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +CreateConsumerGroupResult::~CreateConsumerGroupResult() +{} + +void CreateConsumerGroupResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["Code"].isNull()) + code_ = std::stoi(value["Code"].asString()); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + +} + +std::string CreateConsumerGroupResult::getMessage()const +{ + return message_; +} + +int CreateConsumerGroupResult::getCode()const +{ + return code_; +} + +bool CreateConsumerGroupResult::getSuccess()const +{ + return success_; +} + diff --git a/alikafka/src/model/CreatePostPayOrderRequest.cc b/alikafka/src/model/CreatePostPayOrderRequest.cc new file mode 100644 index 000000000..8c793994c --- /dev/null +++ b/alikafka/src/model/CreatePostPayOrderRequest.cc @@ -0,0 +1,139 @@ +/* + * 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::Alikafka::Model::CreatePostPayOrderRequest; + +CreatePostPayOrderRequest::CreatePostPayOrderRequest() : + RpcServiceRequest("alikafka", "2019-09-16", "CreatePostPayOrder") +{ + setMethod(HttpRequest::Method::Post); +} + +CreatePostPayOrderRequest::~CreatePostPayOrderRequest() +{} + +int CreatePostPayOrderRequest::getPaidType()const +{ + return paidType_; +} + +void CreatePostPayOrderRequest::setPaidType(int paidType) +{ + paidType_ = paidType; + setParameter("PaidType", std::to_string(paidType)); +} + +int CreatePostPayOrderRequest::getDiskSize()const +{ + return diskSize_; +} + +void CreatePostPayOrderRequest::setDiskSize(int diskSize) +{ + diskSize_ = diskSize; + setParameter("DiskSize", std::to_string(diskSize)); +} + +int CreatePostPayOrderRequest::getIoMax()const +{ + return ioMax_; +} + +void CreatePostPayOrderRequest::setIoMax(int ioMax) +{ + ioMax_ = ioMax; + setParameter("IoMax", std::to_string(ioMax)); +} + +std::string CreatePostPayOrderRequest::getIoMaxSpec()const +{ + return ioMaxSpec_; +} + +void CreatePostPayOrderRequest::setIoMaxSpec(const std::string& ioMaxSpec) +{ + ioMaxSpec_ = ioMaxSpec; + setParameter("IoMaxSpec", ioMaxSpec); +} + +std::string CreatePostPayOrderRequest::getDiskType()const +{ + return diskType_; +} + +void CreatePostPayOrderRequest::setDiskType(const std::string& diskType) +{ + diskType_ = diskType; + setParameter("DiskType", diskType); +} + +int CreatePostPayOrderRequest::getTopicQuota()const +{ + return topicQuota_; +} + +void CreatePostPayOrderRequest::setTopicQuota(int topicQuota) +{ + topicQuota_ = topicQuota; + setParameter("TopicQuota", std::to_string(topicQuota)); +} + +int CreatePostPayOrderRequest::getEipMax()const +{ + return eipMax_; +} + +void CreatePostPayOrderRequest::setEipMax(int eipMax) +{ + eipMax_ = eipMax; + setParameter("EipMax", std::to_string(eipMax)); +} + +std::string CreatePostPayOrderRequest::getSpecType()const +{ + return specType_; +} + +void CreatePostPayOrderRequest::setSpecType(const std::string& specType) +{ + specType_ = specType; + setParameter("SpecType", specType); +} + +std::string CreatePostPayOrderRequest::getRegionId()const +{ + return regionId_; +} + +void CreatePostPayOrderRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setParameter("RegionId", regionId); +} + +int CreatePostPayOrderRequest::getDeployType()const +{ + return deployType_; +} + +void CreatePostPayOrderRequest::setDeployType(int deployType) +{ + deployType_ = deployType; + setParameter("DeployType", std::to_string(deployType)); +} + diff --git a/alikafka/src/model/CreatePostPayOrderResult.cc b/alikafka/src/model/CreatePostPayOrderResult.cc new file mode 100644 index 000000000..833b361bd --- /dev/null +++ b/alikafka/src/model/CreatePostPayOrderResult.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::Alikafka; +using namespace AlibabaCloud::Alikafka::Model; + +CreatePostPayOrderResult::CreatePostPayOrderResult() : + ServiceResult() +{} + +CreatePostPayOrderResult::CreatePostPayOrderResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +CreatePostPayOrderResult::~CreatePostPayOrderResult() +{} + +void CreatePostPayOrderResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["Code"].isNull()) + code_ = std::stoi(value["Code"].asString()); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["OrderId"].isNull()) + orderId_ = value["OrderId"].asString(); + +} + +std::string CreatePostPayOrderResult::getMessage()const +{ + return message_; +} + +std::string CreatePostPayOrderResult::getOrderId()const +{ + return orderId_; +} + +int CreatePostPayOrderResult::getCode()const +{ + return code_; +} + +bool CreatePostPayOrderResult::getSuccess()const +{ + return success_; +} + diff --git a/alikafka/src/model/CreatePrePayOrderRequest.cc b/alikafka/src/model/CreatePrePayOrderRequest.cc new file mode 100644 index 000000000..690ddb6ce --- /dev/null +++ b/alikafka/src/model/CreatePrePayOrderRequest.cc @@ -0,0 +1,128 @@ +/* + * 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::Alikafka::Model::CreatePrePayOrderRequest; + +CreatePrePayOrderRequest::CreatePrePayOrderRequest() : + RpcServiceRequest("alikafka", "2019-09-16", "CreatePrePayOrder") +{ + setMethod(HttpRequest::Method::Post); +} + +CreatePrePayOrderRequest::~CreatePrePayOrderRequest() +{} + +int CreatePrePayOrderRequest::getDiskSize()const +{ + return diskSize_; +} + +void CreatePrePayOrderRequest::setDiskSize(int diskSize) +{ + diskSize_ = diskSize; + setParameter("DiskSize", std::to_string(diskSize)); +} + +int CreatePrePayOrderRequest::getIoMax()const +{ + return ioMax_; +} + +void CreatePrePayOrderRequest::setIoMax(int ioMax) +{ + ioMax_ = ioMax; + setParameter("IoMax", std::to_string(ioMax)); +} + +std::string CreatePrePayOrderRequest::getIoMaxSpec()const +{ + return ioMaxSpec_; +} + +void CreatePrePayOrderRequest::setIoMaxSpec(const std::string& ioMaxSpec) +{ + ioMaxSpec_ = ioMaxSpec; + setParameter("IoMaxSpec", ioMaxSpec); +} + +std::string CreatePrePayOrderRequest::getDiskType()const +{ + return diskType_; +} + +void CreatePrePayOrderRequest::setDiskType(const std::string& diskType) +{ + diskType_ = diskType; + setParameter("DiskType", diskType); +} + +int CreatePrePayOrderRequest::getTopicQuota()const +{ + return topicQuota_; +} + +void CreatePrePayOrderRequest::setTopicQuota(int topicQuota) +{ + topicQuota_ = topicQuota; + setParameter("TopicQuota", std::to_string(topicQuota)); +} + +int CreatePrePayOrderRequest::getEipMax()const +{ + return eipMax_; +} + +void CreatePrePayOrderRequest::setEipMax(int eipMax) +{ + eipMax_ = eipMax; + setParameter("EipMax", std::to_string(eipMax)); +} + +std::string CreatePrePayOrderRequest::getSpecType()const +{ + return specType_; +} + +void CreatePrePayOrderRequest::setSpecType(const std::string& specType) +{ + specType_ = specType; + setParameter("SpecType", specType); +} + +std::string CreatePrePayOrderRequest::getRegionId()const +{ + return regionId_; +} + +void CreatePrePayOrderRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setParameter("RegionId", regionId); +} + +int CreatePrePayOrderRequest::getDeployType()const +{ + return deployType_; +} + +void CreatePrePayOrderRequest::setDeployType(int deployType) +{ + deployType_ = deployType; + setParameter("DeployType", std::to_string(deployType)); +} + diff --git a/alikafka/src/model/CreatePrePayOrderResult.cc b/alikafka/src/model/CreatePrePayOrderResult.cc new file mode 100644 index 000000000..67b6a4aee --- /dev/null +++ b/alikafka/src/model/CreatePrePayOrderResult.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::Alikafka; +using namespace AlibabaCloud::Alikafka::Model; + +CreatePrePayOrderResult::CreatePrePayOrderResult() : + ServiceResult() +{} + +CreatePrePayOrderResult::CreatePrePayOrderResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +CreatePrePayOrderResult::~CreatePrePayOrderResult() +{} + +void CreatePrePayOrderResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["Code"].isNull()) + code_ = std::stoi(value["Code"].asString()); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["OrderId"].isNull()) + orderId_ = value["OrderId"].asString(); + +} + +std::string CreatePrePayOrderResult::getMessage()const +{ + return message_; +} + +std::string CreatePrePayOrderResult::getOrderId()const +{ + return orderId_; +} + +int CreatePrePayOrderResult::getCode()const +{ + return code_; +} + +bool CreatePrePayOrderResult::getSuccess()const +{ + return success_; +} + diff --git a/alikafka/src/model/CreateSaslUserRequest.cc b/alikafka/src/model/CreateSaslUserRequest.cc new file mode 100644 index 000000000..09ec8a86a --- /dev/null +++ b/alikafka/src/model/CreateSaslUserRequest.cc @@ -0,0 +1,84 @@ +/* + * 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::Alikafka::Model::CreateSaslUserRequest; + +CreateSaslUserRequest::CreateSaslUserRequest() : + RpcServiceRequest("alikafka", "2019-09-16", "CreateSaslUser") +{ + setMethod(HttpRequest::Method::Post); +} + +CreateSaslUserRequest::~CreateSaslUserRequest() +{} + +std::string CreateSaslUserRequest::getType()const +{ + return type_; +} + +void CreateSaslUserRequest::setType(const std::string& type) +{ + type_ = type; + setParameter("Type", type); +} + +std::string CreateSaslUserRequest::getPassword()const +{ + return password_; +} + +void CreateSaslUserRequest::setPassword(const std::string& password) +{ + password_ = password; + setParameter("Password", password); +} + +std::string CreateSaslUserRequest::getInstanceId()const +{ + return instanceId_; +} + +void CreateSaslUserRequest::setInstanceId(const std::string& instanceId) +{ + instanceId_ = instanceId; + setParameter("InstanceId", instanceId); +} + +std::string CreateSaslUserRequest::getRegionId()const +{ + return regionId_; +} + +void CreateSaslUserRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setParameter("RegionId", regionId); +} + +std::string CreateSaslUserRequest::getUsername()const +{ + return username_; +} + +void CreateSaslUserRequest::setUsername(const std::string& username) +{ + username_ = username; + setParameter("Username", username); +} + diff --git a/alikafka/src/model/CreateSaslUserResult.cc b/alikafka/src/model/CreateSaslUserResult.cc new file mode 100644 index 000000000..a9d806a7d --- /dev/null +++ b/alikafka/src/model/CreateSaslUserResult.cc @@ -0,0 +1,65 @@ +/* + * 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::Alikafka; +using namespace AlibabaCloud::Alikafka::Model; + +CreateSaslUserResult::CreateSaslUserResult() : + ServiceResult() +{} + +CreateSaslUserResult::CreateSaslUserResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +CreateSaslUserResult::~CreateSaslUserResult() +{} + +void CreateSaslUserResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["Code"].isNull()) + code_ = std::stoi(value["Code"].asString()); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + +} + +std::string CreateSaslUserResult::getMessage()const +{ + return message_; +} + +int CreateSaslUserResult::getCode()const +{ + return code_; +} + +bool CreateSaslUserResult::getSuccess()const +{ + return success_; +} + diff --git a/alikafka/src/model/CreateTopicRequest.cc b/alikafka/src/model/CreateTopicRequest.cc new file mode 100644 index 000000000..de8423567 --- /dev/null +++ b/alikafka/src/model/CreateTopicRequest.cc @@ -0,0 +1,106 @@ +/* + * 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::Alikafka::Model::CreateTopicRequest; + +CreateTopicRequest::CreateTopicRequest() : + RpcServiceRequest("alikafka", "2019-09-16", "CreateTopic") +{ + setMethod(HttpRequest::Method::Post); +} + +CreateTopicRequest::~CreateTopicRequest() +{} + +std::string CreateTopicRequest::getRemark()const +{ + return remark_; +} + +void CreateTopicRequest::setRemark(const std::string& remark) +{ + remark_ = remark; + setParameter("Remark", remark); +} + +std::string CreateTopicRequest::getInstanceId()const +{ + return instanceId_; +} + +void CreateTopicRequest::setInstanceId(const std::string& instanceId) +{ + instanceId_ = instanceId; + setParameter("InstanceId", instanceId); +} + +std::string CreateTopicRequest::getRegionId()const +{ + return regionId_; +} + +void CreateTopicRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setParameter("RegionId", regionId); +} + +std::string CreateTopicRequest::getTopic()const +{ + return topic_; +} + +void CreateTopicRequest::setTopic(const std::string& topic) +{ + topic_ = topic; + setParameter("Topic", topic); +} + +bool CreateTopicRequest::getCompactTopic()const +{ + return compactTopic_; +} + +void CreateTopicRequest::setCompactTopic(bool compactTopic) +{ + compactTopic_ = compactTopic; + setParameter("CompactTopic", compactTopic ? "true" : "false"); +} + +std::string CreateTopicRequest::getPartitionNum()const +{ + return partitionNum_; +} + +void CreateTopicRequest::setPartitionNum(const std::string& partitionNum) +{ + partitionNum_ = partitionNum; + setParameter("PartitionNum", partitionNum); +} + +bool CreateTopicRequest::getLocalTopic()const +{ + return localTopic_; +} + +void CreateTopicRequest::setLocalTopic(bool localTopic) +{ + localTopic_ = localTopic; + setParameter("LocalTopic", localTopic ? "true" : "false"); +} + diff --git a/alikafka/src/model/CreateTopicResult.cc b/alikafka/src/model/CreateTopicResult.cc new file mode 100644 index 000000000..41988151a --- /dev/null +++ b/alikafka/src/model/CreateTopicResult.cc @@ -0,0 +1,65 @@ +/* + * 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::Alikafka; +using namespace AlibabaCloud::Alikafka::Model; + +CreateTopicResult::CreateTopicResult() : + ServiceResult() +{} + +CreateTopicResult::CreateTopicResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +CreateTopicResult::~CreateTopicResult() +{} + +void CreateTopicResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["Code"].isNull()) + code_ = std::stoi(value["Code"].asString()); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + +} + +std::string CreateTopicResult::getMessage()const +{ + return message_; +} + +int CreateTopicResult::getCode()const +{ + return code_; +} + +bool CreateTopicResult::getSuccess()const +{ + return success_; +} + diff --git a/alikafka/src/model/DeleteAclRequest.cc b/alikafka/src/model/DeleteAclRequest.cc new file mode 100644 index 000000000..abc086d8b --- /dev/null +++ b/alikafka/src/model/DeleteAclRequest.cc @@ -0,0 +1,106 @@ +/* + * 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::Alikafka::Model::DeleteAclRequest; + +DeleteAclRequest::DeleteAclRequest() : + RpcServiceRequest("alikafka", "2019-09-16", "DeleteAcl") +{ + setMethod(HttpRequest::Method::Post); +} + +DeleteAclRequest::~DeleteAclRequest() +{} + +std::string DeleteAclRequest::getAclResourcePatternType()const +{ + return aclResourcePatternType_; +} + +void DeleteAclRequest::setAclResourcePatternType(const std::string& aclResourcePatternType) +{ + aclResourcePatternType_ = aclResourcePatternType; + setParameter("AclResourcePatternType", aclResourcePatternType); +} + +std::string DeleteAclRequest::getAclResourceType()const +{ + return aclResourceType_; +} + +void DeleteAclRequest::setAclResourceType(const std::string& aclResourceType) +{ + aclResourceType_ = aclResourceType; + setParameter("AclResourceType", aclResourceType); +} + +std::string DeleteAclRequest::getAclOperationType()const +{ + return aclOperationType_; +} + +void DeleteAclRequest::setAclOperationType(const std::string& aclOperationType) +{ + aclOperationType_ = aclOperationType; + setParameter("AclOperationType", aclOperationType); +} + +std::string DeleteAclRequest::getAclResourceName()const +{ + return aclResourceName_; +} + +void DeleteAclRequest::setAclResourceName(const std::string& aclResourceName) +{ + aclResourceName_ = aclResourceName; + setParameter("AclResourceName", aclResourceName); +} + +std::string DeleteAclRequest::getInstanceId()const +{ + return instanceId_; +} + +void DeleteAclRequest::setInstanceId(const std::string& instanceId) +{ + instanceId_ = instanceId; + setParameter("InstanceId", instanceId); +} + +std::string DeleteAclRequest::getRegionId()const +{ + return regionId_; +} + +void DeleteAclRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setParameter("RegionId", regionId); +} + +std::string DeleteAclRequest::getUsername()const +{ + return username_; +} + +void DeleteAclRequest::setUsername(const std::string& username) +{ + username_ = username; + setParameter("Username", username); +} + diff --git a/alikafka/src/model/DeleteAclResult.cc b/alikafka/src/model/DeleteAclResult.cc new file mode 100644 index 000000000..22803c548 --- /dev/null +++ b/alikafka/src/model/DeleteAclResult.cc @@ -0,0 +1,65 @@ +/* + * 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::Alikafka; +using namespace AlibabaCloud::Alikafka::Model; + +DeleteAclResult::DeleteAclResult() : + ServiceResult() +{} + +DeleteAclResult::DeleteAclResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DeleteAclResult::~DeleteAclResult() +{} + +void DeleteAclResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["Code"].isNull()) + code_ = std::stoi(value["Code"].asString()); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + +} + +std::string DeleteAclResult::getMessage()const +{ + return message_; +} + +int DeleteAclResult::getCode()const +{ + return code_; +} + +bool DeleteAclResult::getSuccess()const +{ + return success_; +} + diff --git a/alikafka/src/model/DeleteConsumerGroupRequest.cc b/alikafka/src/model/DeleteConsumerGroupRequest.cc new file mode 100644 index 000000000..5ed70b522 --- /dev/null +++ b/alikafka/src/model/DeleteConsumerGroupRequest.cc @@ -0,0 +1,62 @@ +/* + * 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::Alikafka::Model::DeleteConsumerGroupRequest; + +DeleteConsumerGroupRequest::DeleteConsumerGroupRequest() : + RpcServiceRequest("alikafka", "2019-09-16", "DeleteConsumerGroup") +{ + setMethod(HttpRequest::Method::Post); +} + +DeleteConsumerGroupRequest::~DeleteConsumerGroupRequest() +{} + +std::string DeleteConsumerGroupRequest::getConsumerId()const +{ + return consumerId_; +} + +void DeleteConsumerGroupRequest::setConsumerId(const std::string& consumerId) +{ + consumerId_ = consumerId; + setParameter("ConsumerId", consumerId); +} + +std::string DeleteConsumerGroupRequest::getInstanceId()const +{ + return instanceId_; +} + +void DeleteConsumerGroupRequest::setInstanceId(const std::string& instanceId) +{ + instanceId_ = instanceId; + setParameter("InstanceId", instanceId); +} + +std::string DeleteConsumerGroupRequest::getRegionId()const +{ + return regionId_; +} + +void DeleteConsumerGroupRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setParameter("RegionId", regionId); +} + diff --git a/alikafka/src/model/DeleteConsumerGroupResult.cc b/alikafka/src/model/DeleteConsumerGroupResult.cc new file mode 100644 index 000000000..438e1476b --- /dev/null +++ b/alikafka/src/model/DeleteConsumerGroupResult.cc @@ -0,0 +1,65 @@ +/* + * 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::Alikafka; +using namespace AlibabaCloud::Alikafka::Model; + +DeleteConsumerGroupResult::DeleteConsumerGroupResult() : + ServiceResult() +{} + +DeleteConsumerGroupResult::DeleteConsumerGroupResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DeleteConsumerGroupResult::~DeleteConsumerGroupResult() +{} + +void DeleteConsumerGroupResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["Code"].isNull()) + code_ = std::stoi(value["Code"].asString()); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + +} + +std::string DeleteConsumerGroupResult::getMessage()const +{ + return message_; +} + +int DeleteConsumerGroupResult::getCode()const +{ + return code_; +} + +bool DeleteConsumerGroupResult::getSuccess()const +{ + return success_; +} + diff --git a/alikafka/src/model/DeleteInstanceRequest.cc b/alikafka/src/model/DeleteInstanceRequest.cc new file mode 100644 index 000000000..a53670c36 --- /dev/null +++ b/alikafka/src/model/DeleteInstanceRequest.cc @@ -0,0 +1,51 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Alikafka::Model::DeleteInstanceRequest; + +DeleteInstanceRequest::DeleteInstanceRequest() : + RpcServiceRequest("alikafka", "2019-09-16", "DeleteInstance") +{ + setMethod(HttpRequest::Method::Post); +} + +DeleteInstanceRequest::~DeleteInstanceRequest() +{} + +std::string DeleteInstanceRequest::getInstanceId()const +{ + return instanceId_; +} + +void DeleteInstanceRequest::setInstanceId(const std::string& instanceId) +{ + instanceId_ = instanceId; + setParameter("InstanceId", instanceId); +} + +std::string DeleteInstanceRequest::getRegionId()const +{ + return regionId_; +} + +void DeleteInstanceRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setParameter("RegionId", regionId); +} + diff --git a/alikafka/src/model/DeleteInstanceResult.cc b/alikafka/src/model/DeleteInstanceResult.cc new file mode 100644 index 000000000..8b84415d7 --- /dev/null +++ b/alikafka/src/model/DeleteInstanceResult.cc @@ -0,0 +1,65 @@ +/* + * 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::Alikafka; +using namespace AlibabaCloud::Alikafka::Model; + +DeleteInstanceResult::DeleteInstanceResult() : + ServiceResult() +{} + +DeleteInstanceResult::DeleteInstanceResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DeleteInstanceResult::~DeleteInstanceResult() +{} + +void DeleteInstanceResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["Code"].isNull()) + code_ = std::stoi(value["Code"].asString()); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + +} + +std::string DeleteInstanceResult::getMessage()const +{ + return message_; +} + +int DeleteInstanceResult::getCode()const +{ + return code_; +} + +bool DeleteInstanceResult::getSuccess()const +{ + return success_; +} + diff --git a/alikafka/src/model/DeleteSaslUserRequest.cc b/alikafka/src/model/DeleteSaslUserRequest.cc new file mode 100644 index 000000000..b5a2957e8 --- /dev/null +++ b/alikafka/src/model/DeleteSaslUserRequest.cc @@ -0,0 +1,73 @@ +/* + * 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::Alikafka::Model::DeleteSaslUserRequest; + +DeleteSaslUserRequest::DeleteSaslUserRequest() : + RpcServiceRequest("alikafka", "2019-09-16", "DeleteSaslUser") +{ + setMethod(HttpRequest::Method::Post); +} + +DeleteSaslUserRequest::~DeleteSaslUserRequest() +{} + +std::string DeleteSaslUserRequest::getType()const +{ + return type_; +} + +void DeleteSaslUserRequest::setType(const std::string& type) +{ + type_ = type; + setParameter("Type", type); +} + +std::string DeleteSaslUserRequest::getInstanceId()const +{ + return instanceId_; +} + +void DeleteSaslUserRequest::setInstanceId(const std::string& instanceId) +{ + instanceId_ = instanceId; + setParameter("InstanceId", instanceId); +} + +std::string DeleteSaslUserRequest::getRegionId()const +{ + return regionId_; +} + +void DeleteSaslUserRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setParameter("RegionId", regionId); +} + +std::string DeleteSaslUserRequest::getUsername()const +{ + return username_; +} + +void DeleteSaslUserRequest::setUsername(const std::string& username) +{ + username_ = username; + setParameter("Username", username); +} + diff --git a/alikafka/src/model/DeleteSaslUserResult.cc b/alikafka/src/model/DeleteSaslUserResult.cc new file mode 100644 index 000000000..dbcb33317 --- /dev/null +++ b/alikafka/src/model/DeleteSaslUserResult.cc @@ -0,0 +1,65 @@ +/* + * 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::Alikafka; +using namespace AlibabaCloud::Alikafka::Model; + +DeleteSaslUserResult::DeleteSaslUserResult() : + ServiceResult() +{} + +DeleteSaslUserResult::DeleteSaslUserResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DeleteSaslUserResult::~DeleteSaslUserResult() +{} + +void DeleteSaslUserResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["Code"].isNull()) + code_ = std::stoi(value["Code"].asString()); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + +} + +std::string DeleteSaslUserResult::getMessage()const +{ + return message_; +} + +int DeleteSaslUserResult::getCode()const +{ + return code_; +} + +bool DeleteSaslUserResult::getSuccess()const +{ + return success_; +} + diff --git a/alikafka/src/model/DeleteTopicRequest.cc b/alikafka/src/model/DeleteTopicRequest.cc new file mode 100644 index 000000000..cd29ae46f --- /dev/null +++ b/alikafka/src/model/DeleteTopicRequest.cc @@ -0,0 +1,62 @@ +/* + * 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::Alikafka::Model::DeleteTopicRequest; + +DeleteTopicRequest::DeleteTopicRequest() : + RpcServiceRequest("alikafka", "2019-09-16", "DeleteTopic") +{ + setMethod(HttpRequest::Method::Post); +} + +DeleteTopicRequest::~DeleteTopicRequest() +{} + +std::string DeleteTopicRequest::getInstanceId()const +{ + return instanceId_; +} + +void DeleteTopicRequest::setInstanceId(const std::string& instanceId) +{ + instanceId_ = instanceId; + setParameter("InstanceId", instanceId); +} + +std::string DeleteTopicRequest::getRegionId()const +{ + return regionId_; +} + +void DeleteTopicRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setParameter("RegionId", regionId); +} + +std::string DeleteTopicRequest::getTopic()const +{ + return topic_; +} + +void DeleteTopicRequest::setTopic(const std::string& topic) +{ + topic_ = topic; + setParameter("Topic", topic); +} + diff --git a/alikafka/src/model/DeleteTopicResult.cc b/alikafka/src/model/DeleteTopicResult.cc new file mode 100644 index 000000000..df5c5b3f8 --- /dev/null +++ b/alikafka/src/model/DeleteTopicResult.cc @@ -0,0 +1,65 @@ +/* + * 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::Alikafka; +using namespace AlibabaCloud::Alikafka::Model; + +DeleteTopicResult::DeleteTopicResult() : + ServiceResult() +{} + +DeleteTopicResult::DeleteTopicResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DeleteTopicResult::~DeleteTopicResult() +{} + +void DeleteTopicResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["Code"].isNull()) + code_ = std::stoi(value["Code"].asString()); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + +} + +std::string DeleteTopicResult::getMessage()const +{ + return message_; +} + +int DeleteTopicResult::getCode()const +{ + return code_; +} + +bool DeleteTopicResult::getSuccess()const +{ + return success_; +} + diff --git a/alikafka/src/model/DescribeAclsRequest.cc b/alikafka/src/model/DescribeAclsRequest.cc new file mode 100644 index 000000000..73a3763d4 --- /dev/null +++ b/alikafka/src/model/DescribeAclsRequest.cc @@ -0,0 +1,95 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Alikafka::Model::DescribeAclsRequest; + +DescribeAclsRequest::DescribeAclsRequest() : + RpcServiceRequest("alikafka", "2019-09-16", "DescribeAcls") +{ + setMethod(HttpRequest::Method::Post); +} + +DescribeAclsRequest::~DescribeAclsRequest() +{} + +std::string DescribeAclsRequest::getAclResourcePatternType()const +{ + return aclResourcePatternType_; +} + +void DescribeAclsRequest::setAclResourcePatternType(const std::string& aclResourcePatternType) +{ + aclResourcePatternType_ = aclResourcePatternType; + setParameter("AclResourcePatternType", aclResourcePatternType); +} + +std::string DescribeAclsRequest::getAclResourceType()const +{ + return aclResourceType_; +} + +void DescribeAclsRequest::setAclResourceType(const std::string& aclResourceType) +{ + aclResourceType_ = aclResourceType; + setParameter("AclResourceType", aclResourceType); +} + +std::string DescribeAclsRequest::getAclResourceName()const +{ + return aclResourceName_; +} + +void DescribeAclsRequest::setAclResourceName(const std::string& aclResourceName) +{ + aclResourceName_ = aclResourceName; + setParameter("AclResourceName", aclResourceName); +} + +std::string DescribeAclsRequest::getInstanceId()const +{ + return instanceId_; +} + +void DescribeAclsRequest::setInstanceId(const std::string& instanceId) +{ + instanceId_ = instanceId; + setParameter("InstanceId", instanceId); +} + +std::string DescribeAclsRequest::getRegionId()const +{ + return regionId_; +} + +void DescribeAclsRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setParameter("RegionId", regionId); +} + +std::string DescribeAclsRequest::getUsername()const +{ + return username_; +} + +void DescribeAclsRequest::setUsername(const std::string& username) +{ + username_ = username; + setParameter("Username", username); +} + diff --git a/alikafka/src/model/DescribeAclsResult.cc b/alikafka/src/model/DescribeAclsResult.cc new file mode 100644 index 000000000..b96e1a23f --- /dev/null +++ b/alikafka/src/model/DescribeAclsResult.cc @@ -0,0 +1,88 @@ +/* + * 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::Alikafka; +using namespace AlibabaCloud::Alikafka::Model; + +DescribeAclsResult::DescribeAclsResult() : + ServiceResult() +{} + +DescribeAclsResult::DescribeAclsResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeAclsResult::~DescribeAclsResult() +{} + +void DescribeAclsResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allKafkaAclListNode = value["KafkaAclList"]["KafkaAclVO"]; + for (auto valueKafkaAclListKafkaAclVO : allKafkaAclListNode) + { + KafkaAclVO kafkaAclListObject; + if(!valueKafkaAclListKafkaAclVO["Username"].isNull()) + kafkaAclListObject.username = valueKafkaAclListKafkaAclVO["Username"].asString(); + if(!valueKafkaAclListKafkaAclVO["AclResourceType"].isNull()) + kafkaAclListObject.aclResourceType = valueKafkaAclListKafkaAclVO["AclResourceType"].asString(); + if(!valueKafkaAclListKafkaAclVO["AclResourceName"].isNull()) + kafkaAclListObject.aclResourceName = valueKafkaAclListKafkaAclVO["AclResourceName"].asString(); + if(!valueKafkaAclListKafkaAclVO["AclResourcePatternType"].isNull()) + kafkaAclListObject.aclResourcePatternType = valueKafkaAclListKafkaAclVO["AclResourcePatternType"].asString(); + if(!valueKafkaAclListKafkaAclVO["Host"].isNull()) + kafkaAclListObject.host = valueKafkaAclListKafkaAclVO["Host"].asString(); + if(!valueKafkaAclListKafkaAclVO["AclOperationType"].isNull()) + kafkaAclListObject.aclOperationType = valueKafkaAclListKafkaAclVO["AclOperationType"].asString(); + kafkaAclList_.push_back(kafkaAclListObject); + } + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["Code"].isNull()) + code_ = std::stoi(value["Code"].asString()); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + +} + +std::string DescribeAclsResult::getMessage()const +{ + return message_; +} + +int DescribeAclsResult::getCode()const +{ + return code_; +} + +bool DescribeAclsResult::getSuccess()const +{ + return success_; +} + +std::vector DescribeAclsResult::getKafkaAclList()const +{ + return kafkaAclList_; +} + diff --git a/alikafka/src/model/DescribeNodeStatusRequest.cc b/alikafka/src/model/DescribeNodeStatusRequest.cc new file mode 100644 index 000000000..c0057c774 --- /dev/null +++ b/alikafka/src/model/DescribeNodeStatusRequest.cc @@ -0,0 +1,51 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Alikafka::Model::DescribeNodeStatusRequest; + +DescribeNodeStatusRequest::DescribeNodeStatusRequest() : + RpcServiceRequest("alikafka", "2019-09-16", "DescribeNodeStatus") +{ + setMethod(HttpRequest::Method::Post); +} + +DescribeNodeStatusRequest::~DescribeNodeStatusRequest() +{} + +std::string DescribeNodeStatusRequest::getInstanceId()const +{ + return instanceId_; +} + +void DescribeNodeStatusRequest::setInstanceId(const std::string& instanceId) +{ + instanceId_ = instanceId; + setParameter("InstanceId", instanceId); +} + +std::string DescribeNodeStatusRequest::getRegionId()const +{ + return regionId_; +} + +void DescribeNodeStatusRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setParameter("RegionId", regionId); +} + diff --git a/alikafka/src/model/DescribeNodeStatusResult.cc b/alikafka/src/model/DescribeNodeStatusResult.cc new file mode 100644 index 000000000..22b925452 --- /dev/null +++ b/alikafka/src/model/DescribeNodeStatusResult.cc @@ -0,0 +1,73 @@ +/* + * 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::Alikafka; +using namespace AlibabaCloud::Alikafka::Model; + +DescribeNodeStatusResult::DescribeNodeStatusResult() : + ServiceResult() +{} + +DescribeNodeStatusResult::DescribeNodeStatusResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeNodeStatusResult::~DescribeNodeStatusResult() +{} + +void DescribeNodeStatusResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allStatusList = value["StatusList"]["Status"]; + for (const auto &item : allStatusList) + statusList_.push_back(item.asString()); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["Code"].isNull()) + code_ = std::stoi(value["Code"].asString()); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + +} + +std::string DescribeNodeStatusResult::getMessage()const +{ + return message_; +} + +std::vector DescribeNodeStatusResult::getStatusList()const +{ + return statusList_; +} + +int DescribeNodeStatusResult::getCode()const +{ + return code_; +} + +bool DescribeNodeStatusResult::getSuccess()const +{ + return success_; +} + diff --git a/alikafka/src/model/DescribeSaslUsersRequest.cc b/alikafka/src/model/DescribeSaslUsersRequest.cc new file mode 100644 index 000000000..5fa7f72ca --- /dev/null +++ b/alikafka/src/model/DescribeSaslUsersRequest.cc @@ -0,0 +1,51 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Alikafka::Model::DescribeSaslUsersRequest; + +DescribeSaslUsersRequest::DescribeSaslUsersRequest() : + RpcServiceRequest("alikafka", "2019-09-16", "DescribeSaslUsers") +{ + setMethod(HttpRequest::Method::Post); +} + +DescribeSaslUsersRequest::~DescribeSaslUsersRequest() +{} + +std::string DescribeSaslUsersRequest::getInstanceId()const +{ + return instanceId_; +} + +void DescribeSaslUsersRequest::setInstanceId(const std::string& instanceId) +{ + instanceId_ = instanceId; + setParameter("InstanceId", instanceId); +} + +std::string DescribeSaslUsersRequest::getRegionId()const +{ + return regionId_; +} + +void DescribeSaslUsersRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setParameter("RegionId", regionId); +} + diff --git a/alikafka/src/model/DescribeSaslUsersResult.cc b/alikafka/src/model/DescribeSaslUsersResult.cc new file mode 100644 index 000000000..21f1f0394 --- /dev/null +++ b/alikafka/src/model/DescribeSaslUsersResult.cc @@ -0,0 +1,82 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Alikafka; +using namespace AlibabaCloud::Alikafka::Model; + +DescribeSaslUsersResult::DescribeSaslUsersResult() : + ServiceResult() +{} + +DescribeSaslUsersResult::DescribeSaslUsersResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeSaslUsersResult::~DescribeSaslUsersResult() +{} + +void DescribeSaslUsersResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allSaslUserListNode = value["SaslUserList"]["SaslUserVO"]; + for (auto valueSaslUserListSaslUserVO : allSaslUserListNode) + { + SaslUserVO saslUserListObject; + if(!valueSaslUserListSaslUserVO["Username"].isNull()) + saslUserListObject.username = valueSaslUserListSaslUserVO["Username"].asString(); + if(!valueSaslUserListSaslUserVO["Password"].isNull()) + saslUserListObject.password = valueSaslUserListSaslUserVO["Password"].asString(); + if(!valueSaslUserListSaslUserVO["Type"].isNull()) + saslUserListObject.type = valueSaslUserListSaslUserVO["Type"].asString(); + saslUserList_.push_back(saslUserListObject); + } + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["Code"].isNull()) + code_ = std::stoi(value["Code"].asString()); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + +} + +std::vector DescribeSaslUsersResult::getSaslUserList()const +{ + return saslUserList_; +} + +std::string DescribeSaslUsersResult::getMessage()const +{ + return message_; +} + +int DescribeSaslUsersResult::getCode()const +{ + return code_; +} + +bool DescribeSaslUsersResult::getSuccess()const +{ + return success_; +} + diff --git a/alikafka/src/model/GetAllowedIpListRequest.cc b/alikafka/src/model/GetAllowedIpListRequest.cc new file mode 100644 index 000000000..4c6236ec0 --- /dev/null +++ b/alikafka/src/model/GetAllowedIpListRequest.cc @@ -0,0 +1,51 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Alikafka::Model::GetAllowedIpListRequest; + +GetAllowedIpListRequest::GetAllowedIpListRequest() : + RpcServiceRequest("alikafka", "2019-09-16", "GetAllowedIpList") +{ + setMethod(HttpRequest::Method::Post); +} + +GetAllowedIpListRequest::~GetAllowedIpListRequest() +{} + +std::string GetAllowedIpListRequest::getInstanceId()const +{ + return instanceId_; +} + +void GetAllowedIpListRequest::setInstanceId(const std::string& instanceId) +{ + instanceId_ = instanceId; + setParameter("InstanceId", instanceId); +} + +std::string GetAllowedIpListRequest::getRegionId()const +{ + return regionId_; +} + +void GetAllowedIpListRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setParameter("RegionId", regionId); +} + diff --git a/alikafka/src/model/GetAllowedIpListResult.cc b/alikafka/src/model/GetAllowedIpListResult.cc new file mode 100644 index 000000000..d76d8bc97 --- /dev/null +++ b/alikafka/src/model/GetAllowedIpListResult.cc @@ -0,0 +1,95 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Alikafka; +using namespace AlibabaCloud::Alikafka::Model; + +GetAllowedIpListResult::GetAllowedIpListResult() : + ServiceResult() +{} + +GetAllowedIpListResult::GetAllowedIpListResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +GetAllowedIpListResult::~GetAllowedIpListResult() +{} + +void GetAllowedIpListResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allowedListNode = value["AllowedList"]; + if(!allowedListNode["DeployType"].isNull()) + allowedList_.deployType = std::stoi(allowedListNode["DeployType"].asString()); + auto allVpcListNode = allowedListNode["VpcList"]["IPListVO"]; + for (auto allowedListNodeVpcListIPListVO : allVpcListNode) + { + AllowedList::IPListVO iPListVOObject; + if(!allowedListNodeVpcListIPListVO["PortRange"].isNull()) + iPListVOObject.portRange = allowedListNodeVpcListIPListVO["PortRange"].asString(); + auto allAllowedIpList = value["AllowedIpList"]["IPVO"]; + for (auto value : allAllowedIpList) + iPListVOObject.allowedIpList.push_back(value.asString()); + allowedList_.vpcList.push_back(iPListVOObject); + } + auto allInternetListNode = allowedListNode["InternetList"]["IPListVO"]; + for (auto allowedListNodeInternetListIPListVO : allInternetListNode) + { + AllowedList::IPListVO iPListVOObject; + if(!allowedListNodeInternetListIPListVO["PortRange"].isNull()) + iPListVOObject.portRange = allowedListNodeInternetListIPListVO["PortRange"].asString(); + auto allAllowedIpList = value["AllowedIpList"]["IPVO"]; + for (auto value : allAllowedIpList) + iPListVOObject.allowedIpList.push_back(value.asString()); + allowedList_.internetList.push_back(iPListVOObject); + } + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["Code"].isNull()) + code_ = std::stoi(value["Code"].asString()); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + +} + +GetAllowedIpListResult::AllowedList GetAllowedIpListResult::getAllowedList()const +{ + return allowedList_; +} + +std::string GetAllowedIpListResult::getMessage()const +{ + return message_; +} + +int GetAllowedIpListResult::getCode()const +{ + return code_; +} + +bool GetAllowedIpListResult::getSuccess()const +{ + return success_; +} + diff --git a/alikafka/src/model/GetConsumerListRequest.cc b/alikafka/src/model/GetConsumerListRequest.cc new file mode 100644 index 000000000..89dd40672 --- /dev/null +++ b/alikafka/src/model/GetConsumerListRequest.cc @@ -0,0 +1,73 @@ +/* + * 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::Alikafka::Model::GetConsumerListRequest; + +GetConsumerListRequest::GetConsumerListRequest() : + RpcServiceRequest("alikafka", "2019-09-16", "GetConsumerList") +{ + setMethod(HttpRequest::Method::Post); +} + +GetConsumerListRequest::~GetConsumerListRequest() +{} + +int GetConsumerListRequest::getCurrentPage()const +{ + return currentPage_; +} + +void GetConsumerListRequest::setCurrentPage(int currentPage) +{ + currentPage_ = currentPage; + setParameter("CurrentPage", std::to_string(currentPage)); +} + +std::string GetConsumerListRequest::getInstanceId()const +{ + return instanceId_; +} + +void GetConsumerListRequest::setInstanceId(const std::string& instanceId) +{ + instanceId_ = instanceId; + setParameter("InstanceId", instanceId); +} + +std::string GetConsumerListRequest::getRegionId()const +{ + return regionId_; +} + +void GetConsumerListRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setParameter("RegionId", regionId); +} + +int GetConsumerListRequest::getPageSize()const +{ + return pageSize_; +} + +void GetConsumerListRequest::setPageSize(int pageSize) +{ + pageSize_ = pageSize; + setParameter("PageSize", std::to_string(pageSize)); +} + diff --git a/alikafka/src/model/GetConsumerListResult.cc b/alikafka/src/model/GetConsumerListResult.cc new file mode 100644 index 000000000..b78b2ed23 --- /dev/null +++ b/alikafka/src/model/GetConsumerListResult.cc @@ -0,0 +1,94 @@ +/* + * 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::Alikafka; +using namespace AlibabaCloud::Alikafka::Model; + +GetConsumerListResult::GetConsumerListResult() : + ServiceResult() +{} + +GetConsumerListResult::GetConsumerListResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +GetConsumerListResult::~GetConsumerListResult() +{} + +void GetConsumerListResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allConsumerListNode = value["ConsumerList"]["ConsumerVO"]; + for (auto valueConsumerListConsumerVO : allConsumerListNode) + { + ConsumerVO consumerListObject; + if(!valueConsumerListConsumerVO["RegionId"].isNull()) + consumerListObject.regionId = valueConsumerListConsumerVO["RegionId"].asString(); + if(!valueConsumerListConsumerVO["InstanceId"].isNull()) + consumerListObject.instanceId = valueConsumerListConsumerVO["InstanceId"].asString(); + if(!valueConsumerListConsumerVO["ConsumerId"].isNull()) + consumerListObject.consumerId = valueConsumerListConsumerVO["ConsumerId"].asString(); + if(!valueConsumerListConsumerVO["Remark"].isNull()) + consumerListObject.remark = valueConsumerListConsumerVO["Remark"].asString(); + auto allTagsNode = valueConsumerListConsumerVO["Tags"]["TagVO"]; + for (auto valueConsumerListConsumerVOTagsTagVO : allTagsNode) + { + ConsumerVO::TagVO tagsObject; + if(!valueConsumerListConsumerVOTagsTagVO["Key"].isNull()) + tagsObject.key = valueConsumerListConsumerVOTagsTagVO["Key"].asString(); + if(!valueConsumerListConsumerVOTagsTagVO["Value"].isNull()) + tagsObject.value = valueConsumerListConsumerVOTagsTagVO["Value"].asString(); + consumerListObject.tags.push_back(tagsObject); + } + consumerList_.push_back(consumerListObject); + } + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["Code"].isNull()) + code_ = std::stoi(value["Code"].asString()); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + +} + +std::string GetConsumerListResult::getMessage()const +{ + return message_; +} + +std::vector GetConsumerListResult::getConsumerList()const +{ + return consumerList_; +} + +int GetConsumerListResult::getCode()const +{ + return code_; +} + +bool GetConsumerListResult::getSuccess()const +{ + return success_; +} + diff --git a/alikafka/src/model/GetConsumerProgressRequest.cc b/alikafka/src/model/GetConsumerProgressRequest.cc new file mode 100644 index 000000000..a9133e36b --- /dev/null +++ b/alikafka/src/model/GetConsumerProgressRequest.cc @@ -0,0 +1,62 @@ +/* + * 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::Alikafka::Model::GetConsumerProgressRequest; + +GetConsumerProgressRequest::GetConsumerProgressRequest() : + RpcServiceRequest("alikafka", "2019-09-16", "GetConsumerProgress") +{ + setMethod(HttpRequest::Method::Post); +} + +GetConsumerProgressRequest::~GetConsumerProgressRequest() +{} + +std::string GetConsumerProgressRequest::getConsumerId()const +{ + return consumerId_; +} + +void GetConsumerProgressRequest::setConsumerId(const std::string& consumerId) +{ + consumerId_ = consumerId; + setParameter("ConsumerId", consumerId); +} + +std::string GetConsumerProgressRequest::getInstanceId()const +{ + return instanceId_; +} + +void GetConsumerProgressRequest::setInstanceId(const std::string& instanceId) +{ + instanceId_ = instanceId; + setParameter("InstanceId", instanceId); +} + +std::string GetConsumerProgressRequest::getRegionId()const +{ + return regionId_; +} + +void GetConsumerProgressRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setParameter("RegionId", regionId); +} + diff --git a/alikafka/src/model/GetConsumerProgressResult.cc b/alikafka/src/model/GetConsumerProgressResult.cc new file mode 100644 index 000000000..710717e9c --- /dev/null +++ b/alikafka/src/model/GetConsumerProgressResult.cc @@ -0,0 +1,101 @@ +/* + * 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::Alikafka; +using namespace AlibabaCloud::Alikafka::Model; + +GetConsumerProgressResult::GetConsumerProgressResult() : + ServiceResult() +{} + +GetConsumerProgressResult::GetConsumerProgressResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +GetConsumerProgressResult::~GetConsumerProgressResult() +{} + +void GetConsumerProgressResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto consumerProgressNode = value["ConsumerProgress"]; + if(!consumerProgressNode["TotalDiff"].isNull()) + consumerProgress_.totalDiff = std::stol(consumerProgressNode["TotalDiff"].asString()); + if(!consumerProgressNode["LastTimestamp"].isNull()) + consumerProgress_.lastTimestamp = std::stol(consumerProgressNode["LastTimestamp"].asString()); + auto allTopicListNode = consumerProgressNode["TopicList"]["TopicListItem"]; + for (auto consumerProgressNodeTopicListTopicListItem : allTopicListNode) + { + ConsumerProgress::TopicListItem topicListItemObject; + if(!consumerProgressNodeTopicListTopicListItem["Topic"].isNull()) + topicListItemObject.topic = consumerProgressNodeTopicListTopicListItem["Topic"].asString(); + if(!consumerProgressNodeTopicListTopicListItem["TotalDiff"].isNull()) + topicListItemObject.totalDiff = std::stol(consumerProgressNodeTopicListTopicListItem["TotalDiff"].asString()); + if(!consumerProgressNodeTopicListTopicListItem["LastTimestamp"].isNull()) + topicListItemObject.lastTimestamp = std::stol(consumerProgressNodeTopicListTopicListItem["LastTimestamp"].asString()); + auto allOffsetListNode = consumerProgressNodeTopicListTopicListItem["OffsetList"]["OffsetListItem"]; + for (auto consumerProgressNodeTopicListTopicListItemOffsetListOffsetListItem : allOffsetListNode) + { + ConsumerProgress::TopicListItem::OffsetListItem offsetListObject; + if(!consumerProgressNodeTopicListTopicListItemOffsetListOffsetListItem["BrokerOffset"].isNull()) + offsetListObject.brokerOffset = std::stol(consumerProgressNodeTopicListTopicListItemOffsetListOffsetListItem["BrokerOffset"].asString()); + if(!consumerProgressNodeTopicListTopicListItemOffsetListOffsetListItem["ConsumerOffset"].isNull()) + offsetListObject.consumerOffset = std::stol(consumerProgressNodeTopicListTopicListItemOffsetListOffsetListItem["ConsumerOffset"].asString()); + if(!consumerProgressNodeTopicListTopicListItemOffsetListOffsetListItem["LastTimestamp"].isNull()) + offsetListObject.lastTimestamp = std::stol(consumerProgressNodeTopicListTopicListItemOffsetListOffsetListItem["LastTimestamp"].asString()); + if(!consumerProgressNodeTopicListTopicListItemOffsetListOffsetListItem["Partition"].isNull()) + offsetListObject.partition = std::stoi(consumerProgressNodeTopicListTopicListItemOffsetListOffsetListItem["Partition"].asString()); + topicListItemObject.offsetList.push_back(offsetListObject); + } + consumerProgress_.topicList.push_back(topicListItemObject); + } + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["Code"].isNull()) + code_ = std::stoi(value["Code"].asString()); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + +} + +std::string GetConsumerProgressResult::getMessage()const +{ + return message_; +} + +GetConsumerProgressResult::ConsumerProgress GetConsumerProgressResult::getConsumerProgress()const +{ + return consumerProgress_; +} + +int GetConsumerProgressResult::getCode()const +{ + return code_; +} + +bool GetConsumerProgressResult::getSuccess()const +{ + return success_; +} + diff --git a/alikafka/src/model/GetInstanceListRequest.cc b/alikafka/src/model/GetInstanceListRequest.cc new file mode 100644 index 000000000..4897c34a0 --- /dev/null +++ b/alikafka/src/model/GetInstanceListRequest.cc @@ -0,0 +1,80 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Alikafka::Model::GetInstanceListRequest; + +GetInstanceListRequest::GetInstanceListRequest() : + RpcServiceRequest("alikafka", "2019-09-16", "GetInstanceList") +{ + setMethod(HttpRequest::Method::Post); +} + +GetInstanceListRequest::~GetInstanceListRequest() +{} + +std::string GetInstanceListRequest::getOrderId()const +{ + return orderId_; +} + +void GetInstanceListRequest::setOrderId(const std::string& orderId) +{ + orderId_ = orderId; + setParameter("OrderId", orderId); +} + +std::vector GetInstanceListRequest::getInstanceId()const +{ + return instanceId_; +} + +void GetInstanceListRequest::setInstanceId(const std::vector& instanceId) +{ + instanceId_ = instanceId; + for(int dep1 = 0; dep1!= instanceId.size(); dep1++) { + setParameter("InstanceId."+ std::to_string(dep1), instanceId.at(dep1)); + } +} + +std::string GetInstanceListRequest::getRegionId()const +{ + return regionId_; +} + +void GetInstanceListRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setParameter("RegionId", regionId); +} + +std::vector GetInstanceListRequest::getTag()const +{ + return tag_; +} + +void GetInstanceListRequest::setTag(const std::vector& tag) +{ + tag_ = tag; + for(int dep1 = 0; dep1!= tag.size(); dep1++) { + auto tagObj = tag.at(dep1); + std::string tagObjStr = "Tag." + std::to_string(dep1 + 1); + setParameter(tagObjStr + ".Value", tagObj.value); + setParameter(tagObjStr + ".Key", tagObj.key); + } +} + diff --git a/alikafka/src/model/GetInstanceListResult.cc b/alikafka/src/model/GetInstanceListResult.cc new file mode 100644 index 000000000..119289b5d --- /dev/null +++ b/alikafka/src/model/GetInstanceListResult.cc @@ -0,0 +1,133 @@ +/* + * 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::Alikafka; +using namespace AlibabaCloud::Alikafka::Model; + +GetInstanceListResult::GetInstanceListResult() : + ServiceResult() +{} + +GetInstanceListResult::GetInstanceListResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +GetInstanceListResult::~GetInstanceListResult() +{} + +void GetInstanceListResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allInstanceListNode = value["InstanceList"]["InstanceVO"]; + for (auto valueInstanceListInstanceVO : allInstanceListNode) + { + InstanceVO instanceListObject; + if(!valueInstanceListInstanceVO["InstanceId"].isNull()) + instanceListObject.instanceId = valueInstanceListInstanceVO["InstanceId"].asString(); + if(!valueInstanceListInstanceVO["RegionId"].isNull()) + instanceListObject.regionId = valueInstanceListInstanceVO["RegionId"].asString(); + if(!valueInstanceListInstanceVO["ServiceStatus"].isNull()) + instanceListObject.serviceStatus = std::stoi(valueInstanceListInstanceVO["ServiceStatus"].asString()); + if(!valueInstanceListInstanceVO["VpcId"].isNull()) + instanceListObject.vpcId = valueInstanceListInstanceVO["VpcId"].asString(); + if(!valueInstanceListInstanceVO["VSwitchId"].isNull()) + instanceListObject.vSwitchId = valueInstanceListInstanceVO["VSwitchId"].asString(); + if(!valueInstanceListInstanceVO["EndPoint"].isNull()) + instanceListObject.endPoint = valueInstanceListInstanceVO["EndPoint"].asString(); + if(!valueInstanceListInstanceVO["CreateTime"].isNull()) + instanceListObject.createTime = std::stol(valueInstanceListInstanceVO["CreateTime"].asString()); + if(!valueInstanceListInstanceVO["ExpiredTime"].isNull()) + instanceListObject.expiredTime = std::stol(valueInstanceListInstanceVO["ExpiredTime"].asString()); + if(!valueInstanceListInstanceVO["DeployType"].isNull()) + instanceListObject.deployType = std::stoi(valueInstanceListInstanceVO["DeployType"].asString()); + if(!valueInstanceListInstanceVO["SslEndPoint"].isNull()) + instanceListObject.sslEndPoint = valueInstanceListInstanceVO["SslEndPoint"].asString(); + if(!valueInstanceListInstanceVO["Name"].isNull()) + instanceListObject.name = valueInstanceListInstanceVO["Name"].asString(); + if(!valueInstanceListInstanceVO["IoMax"].isNull()) + instanceListObject.ioMax = std::stoi(valueInstanceListInstanceVO["IoMax"].asString()); + if(!valueInstanceListInstanceVO["EipMax"].isNull()) + instanceListObject.eipMax = std::stoi(valueInstanceListInstanceVO["EipMax"].asString()); + if(!valueInstanceListInstanceVO["DiskType"].isNull()) + instanceListObject.diskType = std::stoi(valueInstanceListInstanceVO["DiskType"].asString()); + if(!valueInstanceListInstanceVO["DiskSize"].isNull()) + instanceListObject.diskSize = std::stoi(valueInstanceListInstanceVO["DiskSize"].asString()); + if(!valueInstanceListInstanceVO["MsgRetain"].isNull()) + instanceListObject.msgRetain = std::stoi(valueInstanceListInstanceVO["MsgRetain"].asString()); + if(!valueInstanceListInstanceVO["TopicNumLimit"].isNull()) + instanceListObject.topicNumLimit = std::stoi(valueInstanceListInstanceVO["TopicNumLimit"].asString()); + if(!valueInstanceListInstanceVO["ZoneId"].isNull()) + instanceListObject.zoneId = valueInstanceListInstanceVO["ZoneId"].asString(); + if(!valueInstanceListInstanceVO["PaidType"].isNull()) + instanceListObject.paidType = std::stoi(valueInstanceListInstanceVO["PaidType"].asString()); + if(!valueInstanceListInstanceVO["SpecType"].isNull()) + instanceListObject.specType = valueInstanceListInstanceVO["SpecType"].asString(); + if(!valueInstanceListInstanceVO["SecurityGroup"].isNull()) + instanceListObject.securityGroup = valueInstanceListInstanceVO["SecurityGroup"].asString(); + if(!valueInstanceListInstanceVO["AllConfig"].isNull()) + instanceListObject.allConfig = valueInstanceListInstanceVO["AllConfig"].asString(); + auto allTagsNode = valueInstanceListInstanceVO["Tags"]["TagVO"]; + for (auto valueInstanceListInstanceVOTagsTagVO : allTagsNode) + { + InstanceVO::TagVO tagsObject; + if(!valueInstanceListInstanceVOTagsTagVO["Key"].isNull()) + tagsObject.key = valueInstanceListInstanceVOTagsTagVO["Key"].asString(); + if(!valueInstanceListInstanceVOTagsTagVO["Value"].isNull()) + tagsObject.value = valueInstanceListInstanceVOTagsTagVO["Value"].asString(); + instanceListObject.tags.push_back(tagsObject); + } + auto upgradeServiceDetailInfoNode = value["UpgradeServiceDetailInfo"]; + if(!upgradeServiceDetailInfoNode["Current2OpenSourceVersion"].isNull()) + instanceListObject.upgradeServiceDetailInfo.current2OpenSourceVersion = upgradeServiceDetailInfoNode["Current2OpenSourceVersion"].asString(); + instanceList_.push_back(instanceListObject); + } + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["Code"].isNull()) + code_ = std::stoi(value["Code"].asString()); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + +} + +std::string GetInstanceListResult::getMessage()const +{ + return message_; +} + +std::vector GetInstanceListResult::getInstanceList()const +{ + return instanceList_; +} + +int GetInstanceListResult::getCode()const +{ + return code_; +} + +bool GetInstanceListResult::getSuccess()const +{ + return success_; +} + diff --git a/alikafka/src/model/GetMetaProductListRequest.cc b/alikafka/src/model/GetMetaProductListRequest.cc new file mode 100644 index 000000000..b671cbbba --- /dev/null +++ b/alikafka/src/model/GetMetaProductListRequest.cc @@ -0,0 +1,51 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Alikafka::Model::GetMetaProductListRequest; + +GetMetaProductListRequest::GetMetaProductListRequest() : + RpcServiceRequest("alikafka", "2019-09-16", "GetMetaProductList") +{ + setMethod(HttpRequest::Method::Post); +} + +GetMetaProductListRequest::~GetMetaProductListRequest() +{} + +std::string GetMetaProductListRequest::getListNormal()const +{ + return listNormal_; +} + +void GetMetaProductListRequest::setListNormal(const std::string& listNormal) +{ + listNormal_ = listNormal; + setParameter("ListNormal", listNormal); +} + +std::string GetMetaProductListRequest::getRegionId()const +{ + return regionId_; +} + +void GetMetaProductListRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setParameter("RegionId", regionId); +} + diff --git a/alikafka/src/model/GetMetaProductListResult.cc b/alikafka/src/model/GetMetaProductListResult.cc new file mode 100644 index 000000000..4ea4dcbbe --- /dev/null +++ b/alikafka/src/model/GetMetaProductListResult.cc @@ -0,0 +1,113 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Alikafka; +using namespace AlibabaCloud::Alikafka::Model; + +GetMetaProductListResult::GetMetaProductListResult() : + ServiceResult() +{} + +GetMetaProductListResult::GetMetaProductListResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +GetMetaProductListResult::~GetMetaProductListResult() +{} + +void GetMetaProductListResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto metaDataNode = value["MetaData"]; + if(!metaDataNode["Names"].isNull()) + metaData_.names = metaDataNode["Names"].asString(); + auto allProductsNormalNode = metaDataNode["ProductsNormal"]["SpecVO"]; + for (auto metaDataNodeProductsNormalSpecVO : allProductsNormalNode) + { + MetaData::SpecVO specVOObject; + if(!metaDataNodeProductsNormalSpecVO["RegionId"].isNull()) + specVOObject.regionId = metaDataNodeProductsNormalSpecVO["RegionId"].asString(); + if(!metaDataNodeProductsNormalSpecVO["SpecType"].isNull()) + specVOObject.specType = metaDataNodeProductsNormalSpecVO["SpecType"].asString(); + if(!metaDataNodeProductsNormalSpecVO["IoMax"].isNull()) + specVOObject.ioMax = std::stol(metaDataNodeProductsNormalSpecVO["IoMax"].asString()); + if(!metaDataNodeProductsNormalSpecVO["DiskType"].isNull()) + specVOObject.diskType = metaDataNodeProductsNormalSpecVO["DiskType"].asString(); + if(!metaDataNodeProductsNormalSpecVO["DiskSize"].isNull()) + specVOObject.diskSize = metaDataNodeProductsNormalSpecVO["DiskSize"].asString(); + if(!metaDataNodeProductsNormalSpecVO["TopicQuota"].isNull()) + specVOObject.topicQuota = metaDataNodeProductsNormalSpecVO["TopicQuota"].asString(); + if(!metaDataNodeProductsNormalSpecVO["DeployType"].isNull()) + specVOObject.deployType = metaDataNodeProductsNormalSpecVO["DeployType"].asString(); + metaData_.productsNormal.push_back(specVOObject); + } + auto allProductsProfessionalNode = metaDataNode["ProductsProfessional"]["SpecVO"]; + for (auto metaDataNodeProductsProfessionalSpecVO : allProductsProfessionalNode) + { + MetaData::SpecVO specVOObject; + if(!metaDataNodeProductsProfessionalSpecVO["RegionId"].isNull()) + specVOObject.regionId = metaDataNodeProductsProfessionalSpecVO["RegionId"].asString(); + if(!metaDataNodeProductsProfessionalSpecVO["SpecType"].isNull()) + specVOObject.specType = metaDataNodeProductsProfessionalSpecVO["SpecType"].asString(); + if(!metaDataNodeProductsProfessionalSpecVO["IoMax"].isNull()) + specVOObject.ioMax = std::stol(metaDataNodeProductsProfessionalSpecVO["IoMax"].asString()); + if(!metaDataNodeProductsProfessionalSpecVO["DiskType"].isNull()) + specVOObject.diskType = metaDataNodeProductsProfessionalSpecVO["DiskType"].asString(); + if(!metaDataNodeProductsProfessionalSpecVO["DiskSize"].isNull()) + specVOObject.diskSize = metaDataNodeProductsProfessionalSpecVO["DiskSize"].asString(); + if(!metaDataNodeProductsProfessionalSpecVO["TopicQuota"].isNull()) + specVOObject.topicQuota = metaDataNodeProductsProfessionalSpecVO["TopicQuota"].asString(); + if(!metaDataNodeProductsProfessionalSpecVO["DeployType"].isNull()) + specVOObject.deployType = metaDataNodeProductsProfessionalSpecVO["DeployType"].asString(); + metaData_.productsProfessional.push_back(specVOObject); + } + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["Code"].isNull()) + code_ = std::stoi(value["Code"].asString()); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + +} + +std::string GetMetaProductListResult::getMessage()const +{ + return message_; +} + +GetMetaProductListResult::MetaData GetMetaProductListResult::getMetaData()const +{ + return metaData_; +} + +int GetMetaProductListResult::getCode()const +{ + return code_; +} + +bool GetMetaProductListResult::getSuccess()const +{ + return success_; +} + diff --git a/alikafka/src/model/GetTopicListRequest.cc b/alikafka/src/model/GetTopicListRequest.cc new file mode 100644 index 000000000..49b57ffde --- /dev/null +++ b/alikafka/src/model/GetTopicListRequest.cc @@ -0,0 +1,73 @@ +/* + * 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::Alikafka::Model::GetTopicListRequest; + +GetTopicListRequest::GetTopicListRequest() : + RpcServiceRequest("alikafka", "2019-09-16", "GetTopicList") +{ + setMethod(HttpRequest::Method::Post); +} + +GetTopicListRequest::~GetTopicListRequest() +{} + +std::string GetTopicListRequest::getCurrentPage()const +{ + return currentPage_; +} + +void GetTopicListRequest::setCurrentPage(const std::string& currentPage) +{ + currentPage_ = currentPage; + setParameter("CurrentPage", currentPage); +} + +std::string GetTopicListRequest::getInstanceId()const +{ + return instanceId_; +} + +void GetTopicListRequest::setInstanceId(const std::string& instanceId) +{ + instanceId_ = instanceId; + setParameter("InstanceId", instanceId); +} + +std::string GetTopicListRequest::getRegionId()const +{ + return regionId_; +} + +void GetTopicListRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setParameter("RegionId", regionId); +} + +std::string GetTopicListRequest::getPageSize()const +{ + return pageSize_; +} + +void GetTopicListRequest::setPageSize(const std::string& pageSize) +{ + pageSize_ = pageSize; + setParameter("PageSize", pageSize); +} + diff --git a/alikafka/src/model/GetTopicListResult.cc b/alikafka/src/model/GetTopicListResult.cc new file mode 100644 index 000000000..7b4c50941 --- /dev/null +++ b/alikafka/src/model/GetTopicListResult.cc @@ -0,0 +1,127 @@ +/* + * 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::Alikafka; +using namespace AlibabaCloud::Alikafka::Model; + +GetTopicListResult::GetTopicListResult() : + ServiceResult() +{} + +GetTopicListResult::GetTopicListResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +GetTopicListResult::~GetTopicListResult() +{} + +void GetTopicListResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allTopicListNode = value["TopicList"]["TopicVO"]; + for (auto valueTopicListTopicVO : allTopicListNode) + { + TopicVO topicListObject; + if(!valueTopicListTopicVO["Topic"].isNull()) + topicListObject.topic = valueTopicListTopicVO["Topic"].asString(); + if(!valueTopicListTopicVO["CreateTime"].isNull()) + topicListObject.createTime = std::stol(valueTopicListTopicVO["CreateTime"].asString()); + if(!valueTopicListTopicVO["Remark"].isNull()) + topicListObject.remark = valueTopicListTopicVO["Remark"].asString(); + if(!valueTopicListTopicVO["Status"].isNull()) + topicListObject.status = std::stoi(valueTopicListTopicVO["Status"].asString()); + if(!valueTopicListTopicVO["InstanceId"].isNull()) + topicListObject.instanceId = valueTopicListTopicVO["InstanceId"].asString(); + if(!valueTopicListTopicVO["RegionId"].isNull()) + topicListObject.regionId = valueTopicListTopicVO["RegionId"].asString(); + if(!valueTopicListTopicVO["StatusName"].isNull()) + topicListObject.statusName = valueTopicListTopicVO["StatusName"].asString(); + if(!valueTopicListTopicVO["CompactTopic"].isNull()) + topicListObject.compactTopic = valueTopicListTopicVO["CompactTopic"].asString() == "true"; + if(!valueTopicListTopicVO["LocalTopic"].isNull()) + topicListObject.localTopic = valueTopicListTopicVO["LocalTopic"].asString() == "true"; + if(!valueTopicListTopicVO["PartitionNum"].isNull()) + topicListObject.partitionNum = std::stoi(valueTopicListTopicVO["PartitionNum"].asString()); + auto allTagsNode = valueTopicListTopicVO["Tags"]["TagVO"]; + for (auto valueTopicListTopicVOTagsTagVO : allTagsNode) + { + TopicVO::TagVO tagsObject; + if(!valueTopicListTopicVOTagsTagVO["Key"].isNull()) + tagsObject.key = valueTopicListTopicVOTagsTagVO["Key"].asString(); + if(!valueTopicListTopicVOTagsTagVO["Value"].isNull()) + tagsObject.value = valueTopicListTopicVOTagsTagVO["Value"].asString(); + topicListObject.tags.push_back(tagsObject); + } + topicList_.push_back(topicListObject); + } + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["Code"].isNull()) + code_ = std::stoi(value["Code"].asString()); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["Total"].isNull()) + total_ = std::stoi(value["Total"].asString()); + if(!value["PageSize"].isNull()) + pageSize_ = std::stoi(value["PageSize"].asString()); + if(!value["CurrentPage"].isNull()) + currentPage_ = std::stoi(value["CurrentPage"].asString()); + +} + +std::string GetTopicListResult::getMessage()const +{ + return message_; +} + +int GetTopicListResult::getPageSize()const +{ + return pageSize_; +} + +int GetTopicListResult::getCurrentPage()const +{ + return currentPage_; +} + +int GetTopicListResult::getTotal()const +{ + return total_; +} + +std::vector GetTopicListResult::getTopicList()const +{ + return topicList_; +} + +int GetTopicListResult::getCode()const +{ + return code_; +} + +bool GetTopicListResult::getSuccess()const +{ + return success_; +} + diff --git a/alikafka/src/model/GetTopicStatusRequest.cc b/alikafka/src/model/GetTopicStatusRequest.cc new file mode 100644 index 000000000..a8687122b --- /dev/null +++ b/alikafka/src/model/GetTopicStatusRequest.cc @@ -0,0 +1,62 @@ +/* + * 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::Alikafka::Model::GetTopicStatusRequest; + +GetTopicStatusRequest::GetTopicStatusRequest() : + RpcServiceRequest("alikafka", "2019-09-16", "GetTopicStatus") +{ + setMethod(HttpRequest::Method::Post); +} + +GetTopicStatusRequest::~GetTopicStatusRequest() +{} + +std::string GetTopicStatusRequest::getInstanceId()const +{ + return instanceId_; +} + +void GetTopicStatusRequest::setInstanceId(const std::string& instanceId) +{ + instanceId_ = instanceId; + setParameter("InstanceId", instanceId); +} + +std::string GetTopicStatusRequest::getRegionId()const +{ + return regionId_; +} + +void GetTopicStatusRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setParameter("RegionId", regionId); +} + +std::string GetTopicStatusRequest::getTopic()const +{ + return topic_; +} + +void GetTopicStatusRequest::setTopic(const std::string& topic) +{ + topic_ = topic; + setParameter("Topic", topic); +} + diff --git a/alikafka/src/model/GetTopicStatusResult.cc b/alikafka/src/model/GetTopicStatusResult.cc new file mode 100644 index 000000000..635c5bb6c --- /dev/null +++ b/alikafka/src/model/GetTopicStatusResult.cc @@ -0,0 +1,91 @@ +/* + * 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::Alikafka; +using namespace AlibabaCloud::Alikafka::Model; + +GetTopicStatusResult::GetTopicStatusResult() : + ServiceResult() +{} + +GetTopicStatusResult::GetTopicStatusResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +GetTopicStatusResult::~GetTopicStatusResult() +{} + +void GetTopicStatusResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto topicStatusNode = value["TopicStatus"]; + if(!topicStatusNode["TotalCount"].isNull()) + topicStatus_.totalCount = std::stol(topicStatusNode["TotalCount"].asString()); + if(!topicStatusNode["LastTimeStamp"].isNull()) + topicStatus_.lastTimeStamp = std::stol(topicStatusNode["LastTimeStamp"].asString()); + auto allOffsetTableNode = topicStatusNode["OffsetTable"]["OffsetTableItem"]; + for (auto topicStatusNodeOffsetTableOffsetTableItem : allOffsetTableNode) + { + TopicStatus::OffsetTableItem offsetTableItemObject; + if(!topicStatusNodeOffsetTableOffsetTableItem["MinOffset"].isNull()) + offsetTableItemObject.minOffset = std::stol(topicStatusNodeOffsetTableOffsetTableItem["MinOffset"].asString()); + if(!topicStatusNodeOffsetTableOffsetTableItem["MaxOffset"].isNull()) + offsetTableItemObject.maxOffset = std::stol(topicStatusNodeOffsetTableOffsetTableItem["MaxOffset"].asString()); + if(!topicStatusNodeOffsetTableOffsetTableItem["LastUpdateTimestamp"].isNull()) + offsetTableItemObject.lastUpdateTimestamp = std::stol(topicStatusNodeOffsetTableOffsetTableItem["LastUpdateTimestamp"].asString()); + if(!topicStatusNodeOffsetTableOffsetTableItem["Topic"].isNull()) + offsetTableItemObject.topic = topicStatusNodeOffsetTableOffsetTableItem["Topic"].asString(); + if(!topicStatusNodeOffsetTableOffsetTableItem["Partition"].isNull()) + offsetTableItemObject.partition = std::stoi(topicStatusNodeOffsetTableOffsetTableItem["Partition"].asString()); + topicStatus_.offsetTable.push_back(offsetTableItemObject); + } + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["Code"].isNull()) + code_ = std::stoi(value["Code"].asString()); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + +} + +std::string GetTopicStatusResult::getMessage()const +{ + return message_; +} + +GetTopicStatusResult::TopicStatus GetTopicStatusResult::getTopicStatus()const +{ + return topicStatus_; +} + +int GetTopicStatusResult::getCode()const +{ + return code_; +} + +bool GetTopicStatusResult::getSuccess()const +{ + return success_; +} + diff --git a/alikafka/src/model/ListTagResourcesRequest.cc b/alikafka/src/model/ListTagResourcesRequest.cc new file mode 100644 index 000000000..62e4c59d8 --- /dev/null +++ b/alikafka/src/model/ListTagResourcesRequest.cc @@ -0,0 +1,91 @@ +/* + * 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::Alikafka::Model::ListTagResourcesRequest; + +ListTagResourcesRequest::ListTagResourcesRequest() : + RpcServiceRequest("alikafka", "2019-09-16", "ListTagResources") +{ + setMethod(HttpRequest::Method::Post); +} + +ListTagResourcesRequest::~ListTagResourcesRequest() +{} + +std::vector ListTagResourcesRequest::getResourceId()const +{ + return resourceId_; +} + +void ListTagResourcesRequest::setResourceId(const std::vector& resourceId) +{ + resourceId_ = resourceId; + for(int dep1 = 0; dep1!= resourceId.size(); dep1++) { + setParameter("ResourceId."+ std::to_string(dep1), resourceId.at(dep1)); + } +} + +std::string ListTagResourcesRequest::getResourceType()const +{ + return resourceType_; +} + +void ListTagResourcesRequest::setResourceType(const std::string& resourceType) +{ + resourceType_ = resourceType; + setParameter("ResourceType", resourceType); +} + +std::string ListTagResourcesRequest::getRegionId()const +{ + return regionId_; +} + +void ListTagResourcesRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setParameter("RegionId", regionId); +} + +std::string ListTagResourcesRequest::getNextToken()const +{ + return nextToken_; +} + +void ListTagResourcesRequest::setNextToken(const std::string& nextToken) +{ + nextToken_ = nextToken; + setParameter("NextToken", nextToken); +} + +std::vector ListTagResourcesRequest::getTag()const +{ + return tag_; +} + +void ListTagResourcesRequest::setTag(const std::vector& tag) +{ + tag_ = tag; + for(int dep1 = 0; dep1!= tag.size(); dep1++) { + auto tagObj = tag.at(dep1); + std::string tagObjStr = "Tag." + std::to_string(dep1 + 1); + setParameter(tagObjStr + ".Value", tagObj.value); + setParameter(tagObjStr + ".Key", tagObj.key); + } +} + diff --git a/alikafka/src/model/ListTagResourcesResult.cc b/alikafka/src/model/ListTagResourcesResult.cc new file mode 100644 index 000000000..8ba7c3e20 --- /dev/null +++ b/alikafka/src/model/ListTagResourcesResult.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::Alikafka; +using namespace AlibabaCloud::Alikafka::Model; + +ListTagResourcesResult::ListTagResourcesResult() : + ServiceResult() +{} + +ListTagResourcesResult::ListTagResourcesResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ListTagResourcesResult::~ListTagResourcesResult() +{} + +void ListTagResourcesResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allTagResourcesNode = value["TagResources"]["TagResource"]; + for (auto valueTagResourcesTagResource : allTagResourcesNode) + { + TagResource tagResourcesObject; + if(!valueTagResourcesTagResource["TagKey"].isNull()) + tagResourcesObject.tagKey = valueTagResourcesTagResource["TagKey"].asString(); + if(!valueTagResourcesTagResource["TagValue"].isNull()) + tagResourcesObject.tagValue = valueTagResourcesTagResource["TagValue"].asString(); + if(!valueTagResourcesTagResource["ResourceType"].isNull()) + tagResourcesObject.resourceType = valueTagResourcesTagResource["ResourceType"].asString(); + if(!valueTagResourcesTagResource["ResourceId"].isNull()) + tagResourcesObject.resourceId = valueTagResourcesTagResource["ResourceId"].asString(); + tagResources_.push_back(tagResourcesObject); + } + if(!value["NextToken"].isNull()) + nextToken_ = value["NextToken"].asString(); + +} + +std::string ListTagResourcesResult::getNextToken()const +{ + return nextToken_; +} + +std::vector ListTagResourcesResult::getTagResources()const +{ + return tagResources_; +} + diff --git a/alikafka/src/model/ModifyInstanceNameRequest.cc b/alikafka/src/model/ModifyInstanceNameRequest.cc new file mode 100644 index 000000000..e25d4379f --- /dev/null +++ b/alikafka/src/model/ModifyInstanceNameRequest.cc @@ -0,0 +1,62 @@ +/* + * 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::Alikafka::Model::ModifyInstanceNameRequest; + +ModifyInstanceNameRequest::ModifyInstanceNameRequest() : + RpcServiceRequest("alikafka", "2019-09-16", "ModifyInstanceName") +{ + setMethod(HttpRequest::Method::Post); +} + +ModifyInstanceNameRequest::~ModifyInstanceNameRequest() +{} + +std::string ModifyInstanceNameRequest::getInstanceId()const +{ + return instanceId_; +} + +void ModifyInstanceNameRequest::setInstanceId(const std::string& instanceId) +{ + instanceId_ = instanceId; + setParameter("InstanceId", instanceId); +} + +std::string ModifyInstanceNameRequest::getInstanceName()const +{ + return instanceName_; +} + +void ModifyInstanceNameRequest::setInstanceName(const std::string& instanceName) +{ + instanceName_ = instanceName; + setParameter("InstanceName", instanceName); +} + +std::string ModifyInstanceNameRequest::getRegionId()const +{ + return regionId_; +} + +void ModifyInstanceNameRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setParameter("RegionId", regionId); +} + diff --git a/alikafka/src/model/ModifyInstanceNameResult.cc b/alikafka/src/model/ModifyInstanceNameResult.cc new file mode 100644 index 000000000..d1285f844 --- /dev/null +++ b/alikafka/src/model/ModifyInstanceNameResult.cc @@ -0,0 +1,65 @@ +/* + * 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::Alikafka; +using namespace AlibabaCloud::Alikafka::Model; + +ModifyInstanceNameResult::ModifyInstanceNameResult() : + ServiceResult() +{} + +ModifyInstanceNameResult::ModifyInstanceNameResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ModifyInstanceNameResult::~ModifyInstanceNameResult() +{} + +void ModifyInstanceNameResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["Code"].isNull()) + code_ = std::stoi(value["Code"].asString()); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + +} + +std::string ModifyInstanceNameResult::getMessage()const +{ + return message_; +} + +int ModifyInstanceNameResult::getCode()const +{ + return code_; +} + +bool ModifyInstanceNameResult::getSuccess()const +{ + return success_; +} + diff --git a/alikafka/src/model/ModifyPartitionNumRequest.cc b/alikafka/src/model/ModifyPartitionNumRequest.cc new file mode 100644 index 000000000..033158a85 --- /dev/null +++ b/alikafka/src/model/ModifyPartitionNumRequest.cc @@ -0,0 +1,73 @@ +/* + * 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::Alikafka::Model::ModifyPartitionNumRequest; + +ModifyPartitionNumRequest::ModifyPartitionNumRequest() : + RpcServiceRequest("alikafka", "2019-09-16", "ModifyPartitionNum") +{ + setMethod(HttpRequest::Method::Post); +} + +ModifyPartitionNumRequest::~ModifyPartitionNumRequest() +{} + +std::string ModifyPartitionNumRequest::getInstanceId()const +{ + return instanceId_; +} + +void ModifyPartitionNumRequest::setInstanceId(const std::string& instanceId) +{ + instanceId_ = instanceId; + setParameter("InstanceId", instanceId); +} + +std::string ModifyPartitionNumRequest::getRegionId()const +{ + return regionId_; +} + +void ModifyPartitionNumRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setParameter("RegionId", regionId); +} + +std::string ModifyPartitionNumRequest::getTopic()const +{ + return topic_; +} + +void ModifyPartitionNumRequest::setTopic(const std::string& topic) +{ + topic_ = topic; + setParameter("Topic", topic); +} + +int ModifyPartitionNumRequest::getAddPartitionNum()const +{ + return addPartitionNum_; +} + +void ModifyPartitionNumRequest::setAddPartitionNum(int addPartitionNum) +{ + addPartitionNum_ = addPartitionNum; + setParameter("AddPartitionNum", std::to_string(addPartitionNum)); +} + diff --git a/alikafka/src/model/ModifyPartitionNumResult.cc b/alikafka/src/model/ModifyPartitionNumResult.cc new file mode 100644 index 000000000..b3815bf32 --- /dev/null +++ b/alikafka/src/model/ModifyPartitionNumResult.cc @@ -0,0 +1,65 @@ +/* + * 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::Alikafka; +using namespace AlibabaCloud::Alikafka::Model; + +ModifyPartitionNumResult::ModifyPartitionNumResult() : + ServiceResult() +{} + +ModifyPartitionNumResult::ModifyPartitionNumResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ModifyPartitionNumResult::~ModifyPartitionNumResult() +{} + +void ModifyPartitionNumResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["Code"].isNull()) + code_ = std::stoi(value["Code"].asString()); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + +} + +std::string ModifyPartitionNumResult::getMessage()const +{ + return message_; +} + +int ModifyPartitionNumResult::getCode()const +{ + return code_; +} + +bool ModifyPartitionNumResult::getSuccess()const +{ + return success_; +} + diff --git a/alikafka/src/model/ModifyTopicRemarkRequest.cc b/alikafka/src/model/ModifyTopicRemarkRequest.cc new file mode 100644 index 000000000..6366da0d1 --- /dev/null +++ b/alikafka/src/model/ModifyTopicRemarkRequest.cc @@ -0,0 +1,73 @@ +/* + * 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::Alikafka::Model::ModifyTopicRemarkRequest; + +ModifyTopicRemarkRequest::ModifyTopicRemarkRequest() : + RpcServiceRequest("alikafka", "2019-09-16", "ModifyTopicRemark") +{ + setMethod(HttpRequest::Method::Post); +} + +ModifyTopicRemarkRequest::~ModifyTopicRemarkRequest() +{} + +std::string ModifyTopicRemarkRequest::getInstanceId()const +{ + return instanceId_; +} + +void ModifyTopicRemarkRequest::setInstanceId(const std::string& instanceId) +{ + instanceId_ = instanceId; + setParameter("InstanceId", instanceId); +} + +std::string ModifyTopicRemarkRequest::getRegionId()const +{ + return regionId_; +} + +void ModifyTopicRemarkRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setParameter("RegionId", regionId); +} + +std::string ModifyTopicRemarkRequest::getTopic()const +{ + return topic_; +} + +void ModifyTopicRemarkRequest::setTopic(const std::string& topic) +{ + topic_ = topic; + setParameter("Topic", topic); +} + +std::string ModifyTopicRemarkRequest::getRemark()const +{ + return remark_; +} + +void ModifyTopicRemarkRequest::setRemark(const std::string& remark) +{ + remark_ = remark; + setParameter("Remark", remark); +} + diff --git a/alikafka/src/model/ModifyTopicRemarkResult.cc b/alikafka/src/model/ModifyTopicRemarkResult.cc new file mode 100644 index 000000000..509948741 --- /dev/null +++ b/alikafka/src/model/ModifyTopicRemarkResult.cc @@ -0,0 +1,65 @@ +/* + * 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::Alikafka; +using namespace AlibabaCloud::Alikafka::Model; + +ModifyTopicRemarkResult::ModifyTopicRemarkResult() : + ServiceResult() +{} + +ModifyTopicRemarkResult::ModifyTopicRemarkResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ModifyTopicRemarkResult::~ModifyTopicRemarkResult() +{} + +void ModifyTopicRemarkResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["Code"].isNull()) + code_ = std::stoi(value["Code"].asString()); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + +} + +std::string ModifyTopicRemarkResult::getMessage()const +{ + return message_; +} + +int ModifyTopicRemarkResult::getCode()const +{ + return code_; +} + +bool ModifyTopicRemarkResult::getSuccess()const +{ + return success_; +} + diff --git a/alikafka/src/model/ReleaseInstanceRequest.cc b/alikafka/src/model/ReleaseInstanceRequest.cc new file mode 100644 index 000000000..7ace0c46e --- /dev/null +++ b/alikafka/src/model/ReleaseInstanceRequest.cc @@ -0,0 +1,73 @@ +/* + * 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::Alikafka::Model::ReleaseInstanceRequest; + +ReleaseInstanceRequest::ReleaseInstanceRequest() : + RpcServiceRequest("alikafka", "2019-09-16", "ReleaseInstance") +{ + setMethod(HttpRequest::Method::Post); +} + +ReleaseInstanceRequest::~ReleaseInstanceRequest() +{} + +bool ReleaseInstanceRequest::getForceDeleteInstance()const +{ + return forceDeleteInstance_; +} + +void ReleaseInstanceRequest::setForceDeleteInstance(bool forceDeleteInstance) +{ + forceDeleteInstance_ = forceDeleteInstance; + setParameter("ForceDeleteInstance", forceDeleteInstance ? "true" : "false"); +} + +std::string ReleaseInstanceRequest::getInstanceId()const +{ + return instanceId_; +} + +void ReleaseInstanceRequest::setInstanceId(const std::string& instanceId) +{ + instanceId_ = instanceId; + setParameter("InstanceId", instanceId); +} + +std::string ReleaseInstanceRequest::getRegionId()const +{ + return regionId_; +} + +void ReleaseInstanceRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setParameter("RegionId", regionId); +} + +bool ReleaseInstanceRequest::getReleaseIgnoreTime()const +{ + return releaseIgnoreTime_; +} + +void ReleaseInstanceRequest::setReleaseIgnoreTime(bool releaseIgnoreTime) +{ + releaseIgnoreTime_ = releaseIgnoreTime; + setParameter("ReleaseIgnoreTime", releaseIgnoreTime ? "true" : "false"); +} + diff --git a/alikafka/src/model/ReleaseInstanceResult.cc b/alikafka/src/model/ReleaseInstanceResult.cc new file mode 100644 index 000000000..72cec9e56 --- /dev/null +++ b/alikafka/src/model/ReleaseInstanceResult.cc @@ -0,0 +1,65 @@ +/* + * 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::Alikafka; +using namespace AlibabaCloud::Alikafka::Model; + +ReleaseInstanceResult::ReleaseInstanceResult() : + ServiceResult() +{} + +ReleaseInstanceResult::ReleaseInstanceResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ReleaseInstanceResult::~ReleaseInstanceResult() +{} + +void ReleaseInstanceResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["Code"].isNull()) + code_ = std::stoi(value["Code"].asString()); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + +} + +std::string ReleaseInstanceResult::getMessage()const +{ + return message_; +} + +int ReleaseInstanceResult::getCode()const +{ + return code_; +} + +bool ReleaseInstanceResult::getSuccess()const +{ + return success_; +} + diff --git a/alikafka/src/model/StartInstanceRequest.cc b/alikafka/src/model/StartInstanceRequest.cc new file mode 100644 index 000000000..1f0ff678f --- /dev/null +++ b/alikafka/src/model/StartInstanceRequest.cc @@ -0,0 +1,205 @@ +/* + * 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::Alikafka::Model::StartInstanceRequest; + +StartInstanceRequest::StartInstanceRequest() : + RpcServiceRequest("alikafka", "2019-09-16", "StartInstance") +{ + setMethod(HttpRequest::Method::Post); +} + +StartInstanceRequest::~StartInstanceRequest() +{} + +bool StartInstanceRequest::getIsEipInner()const +{ + return isEipInner_; +} + +void StartInstanceRequest::setIsEipInner(bool isEipInner) +{ + isEipInner_ = isEipInner; + setParameter("IsEipInner", isEipInner ? "true" : "false"); +} + +std::string StartInstanceRequest::getSecurityGroup()const +{ + return securityGroup_; +} + +void StartInstanceRequest::setSecurityGroup(const std::string& securityGroup) +{ + securityGroup_ = securityGroup; + setParameter("SecurityGroup", securityGroup); +} + +std::string StartInstanceRequest::getDeployModule()const +{ + return deployModule_; +} + +void StartInstanceRequest::setDeployModule(const std::string& deployModule) +{ + deployModule_ = deployModule; + setParameter("DeployModule", deployModule); +} + +bool StartInstanceRequest::getIsSetUserAndPassword()const +{ + return isSetUserAndPassword_; +} + +void StartInstanceRequest::setIsSetUserAndPassword(bool isSetUserAndPassword) +{ + isSetUserAndPassword_ = isSetUserAndPassword; + setParameter("IsSetUserAndPassword", isSetUserAndPassword ? "true" : "false"); +} + +std::string StartInstanceRequest::getPassword()const +{ + return password_; +} + +void StartInstanceRequest::setPassword(const std::string& password) +{ + password_ = password; + setParameter("Password", password); +} + +std::string StartInstanceRequest::getRegionId()const +{ + return regionId_; +} + +void StartInstanceRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setParameter("RegionId", regionId); +} + +std::string StartInstanceRequest::getVSwitchId()const +{ + return vSwitchId_; +} + +void StartInstanceRequest::setVSwitchId(const std::string& vSwitchId) +{ + vSwitchId_ = vSwitchId; + setParameter("VSwitchId", vSwitchId); +} + +std::string StartInstanceRequest::getInstanceId()const +{ + return instanceId_; +} + +void StartInstanceRequest::setInstanceId(const std::string& instanceId) +{ + instanceId_ = instanceId; + setParameter("InstanceId", instanceId); +} + +std::string StartInstanceRequest::getVpcId()const +{ + return vpcId_; +} + +void StartInstanceRequest::setVpcId(const std::string& vpcId) +{ + vpcId_ = vpcId; + setParameter("VpcId", vpcId); +} + +bool StartInstanceRequest::getCrossZone()const +{ + return crossZone_; +} + +void StartInstanceRequest::setCrossZone(bool crossZone) +{ + crossZone_ = crossZone; + setParameter("CrossZone", crossZone ? "true" : "false"); +} + +std::string StartInstanceRequest::getName()const +{ + return name_; +} + +void StartInstanceRequest::setName(const std::string& name) +{ + name_ = name; + setParameter("Name", name); +} + +std::string StartInstanceRequest::getServiceVersion()const +{ + return serviceVersion_; +} + +void StartInstanceRequest::setServiceVersion(const std::string& serviceVersion) +{ + serviceVersion_ = serviceVersion; + setParameter("ServiceVersion", serviceVersion); +} + +std::string StartInstanceRequest::getZoneId()const +{ + return zoneId_; +} + +void StartInstanceRequest::setZoneId(const std::string& zoneId) +{ + zoneId_ = zoneId; + setParameter("ZoneId", zoneId); +} + +std::string StartInstanceRequest::getKMSKeyId()const +{ + return kMSKeyId_; +} + +void StartInstanceRequest::setKMSKeyId(const std::string& kMSKeyId) +{ + kMSKeyId_ = kMSKeyId; + setParameter("KMSKeyId", kMSKeyId); +} + +std::string StartInstanceRequest::getConfig()const +{ + return config_; +} + +void StartInstanceRequest::setConfig(const std::string& config) +{ + config_ = config; + setParameter("Config", config); +} + +std::string StartInstanceRequest::getUsername()const +{ + return username_; +} + +void StartInstanceRequest::setUsername(const std::string& username) +{ + username_ = username; + setParameter("Username", username); +} + diff --git a/alikafka/src/model/StartInstanceResult.cc b/alikafka/src/model/StartInstanceResult.cc new file mode 100644 index 000000000..8f7fe63d1 --- /dev/null +++ b/alikafka/src/model/StartInstanceResult.cc @@ -0,0 +1,65 @@ +/* + * 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::Alikafka; +using namespace AlibabaCloud::Alikafka::Model; + +StartInstanceResult::StartInstanceResult() : + ServiceResult() +{} + +StartInstanceResult::StartInstanceResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +StartInstanceResult::~StartInstanceResult() +{} + +void StartInstanceResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["Code"].isNull()) + code_ = std::stoi(value["Code"].asString()); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + +} + +std::string StartInstanceResult::getMessage()const +{ + return message_; +} + +int StartInstanceResult::getCode()const +{ + return code_; +} + +bool StartInstanceResult::getSuccess()const +{ + return success_; +} + diff --git a/alikafka/src/model/TagResourcesRequest.cc b/alikafka/src/model/TagResourcesRequest.cc new file mode 100644 index 000000000..e3d17576a --- /dev/null +++ b/alikafka/src/model/TagResourcesRequest.cc @@ -0,0 +1,80 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Alikafka::Model::TagResourcesRequest; + +TagResourcesRequest::TagResourcesRequest() : + RpcServiceRequest("alikafka", "2019-09-16", "TagResources") +{ + setMethod(HttpRequest::Method::Post); +} + +TagResourcesRequest::~TagResourcesRequest() +{} + +std::vector TagResourcesRequest::getResourceId()const +{ + return resourceId_; +} + +void TagResourcesRequest::setResourceId(const std::vector& resourceId) +{ + resourceId_ = resourceId; + for(int dep1 = 0; dep1!= resourceId.size(); dep1++) { + setParameter("ResourceId."+ std::to_string(dep1), resourceId.at(dep1)); + } +} + +std::string TagResourcesRequest::getResourceType()const +{ + return resourceType_; +} + +void TagResourcesRequest::setResourceType(const std::string& resourceType) +{ + resourceType_ = resourceType; + setParameter("ResourceType", resourceType); +} + +std::string TagResourcesRequest::getRegionId()const +{ + return regionId_; +} + +void TagResourcesRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setParameter("RegionId", regionId); +} + +std::vector TagResourcesRequest::getTag()const +{ + return tag_; +} + +void TagResourcesRequest::setTag(const std::vector& tag) +{ + tag_ = tag; + for(int dep1 = 0; dep1!= tag.size(); dep1++) { + auto tagObj = tag.at(dep1); + std::string tagObjStr = "Tag." + std::to_string(dep1 + 1); + setParameter(tagObjStr + ".Value", tagObj.value); + setParameter(tagObjStr + ".Key", tagObj.key); + } +} + diff --git a/alikafka/src/model/TagResourcesResult.cc b/alikafka/src/model/TagResourcesResult.cc new file mode 100644 index 000000000..1dd9be6ce --- /dev/null +++ b/alikafka/src/model/TagResourcesResult.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::Alikafka; +using namespace AlibabaCloud::Alikafka::Model; + +TagResourcesResult::TagResourcesResult() : + ServiceResult() +{} + +TagResourcesResult::TagResourcesResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +TagResourcesResult::~TagResourcesResult() +{} + +void TagResourcesResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + +} + diff --git a/alikafka/src/model/UntagResourcesRequest.cc b/alikafka/src/model/UntagResourcesRequest.cc new file mode 100644 index 000000000..5d092f3a3 --- /dev/null +++ b/alikafka/src/model/UntagResourcesRequest.cc @@ -0,0 +1,88 @@ +/* + * 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::Alikafka::Model::UntagResourcesRequest; + +UntagResourcesRequest::UntagResourcesRequest() : + RpcServiceRequest("alikafka", "2019-09-16", "UntagResources") +{ + setMethod(HttpRequest::Method::Post); +} + +UntagResourcesRequest::~UntagResourcesRequest() +{} + +bool UntagResourcesRequest::getAll()const +{ + return all_; +} + +void UntagResourcesRequest::setAll(bool all) +{ + all_ = all; + setParameter("All", all ? "true" : "false"); +} + +std::vector UntagResourcesRequest::getResourceId()const +{ + return resourceId_; +} + +void UntagResourcesRequest::setResourceId(const std::vector& resourceId) +{ + resourceId_ = resourceId; + for(int dep1 = 0; dep1!= resourceId.size(); dep1++) { + setParameter("ResourceId."+ std::to_string(dep1), resourceId.at(dep1)); + } +} + +std::string UntagResourcesRequest::getResourceType()const +{ + return resourceType_; +} + +void UntagResourcesRequest::setResourceType(const std::string& resourceType) +{ + resourceType_ = resourceType; + setParameter("ResourceType", resourceType); +} + +std::string UntagResourcesRequest::getRegionId()const +{ + return regionId_; +} + +void UntagResourcesRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setParameter("RegionId", regionId); +} + +std::vector UntagResourcesRequest::getTagKey()const +{ + return tagKey_; +} + +void UntagResourcesRequest::setTagKey(const std::vector& tagKey) +{ + tagKey_ = tagKey; + for(int dep1 = 0; dep1!= tagKey.size(); dep1++) { + setParameter("TagKey."+ std::to_string(dep1), tagKey.at(dep1)); + } +} + diff --git a/alikafka/src/model/UntagResourcesResult.cc b/alikafka/src/model/UntagResourcesResult.cc new file mode 100644 index 000000000..e48c33f4d --- /dev/null +++ b/alikafka/src/model/UntagResourcesResult.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::Alikafka; +using namespace AlibabaCloud::Alikafka::Model; + +UntagResourcesResult::UntagResourcesResult() : + ServiceResult() +{} + +UntagResourcesResult::UntagResourcesResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +UntagResourcesResult::~UntagResourcesResult() +{} + +void UntagResourcesResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + +} + diff --git a/alikafka/src/model/UpdateAllowedIpRequest.cc b/alikafka/src/model/UpdateAllowedIpRequest.cc new file mode 100644 index 000000000..fb062b842 --- /dev/null +++ b/alikafka/src/model/UpdateAllowedIpRequest.cc @@ -0,0 +1,95 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Alikafka::Model::UpdateAllowedIpRequest; + +UpdateAllowedIpRequest::UpdateAllowedIpRequest() : + RpcServiceRequest("alikafka", "2019-09-16", "UpdateAllowedIp") +{ + setMethod(HttpRequest::Method::Post); +} + +UpdateAllowedIpRequest::~UpdateAllowedIpRequest() +{} + +std::string UpdateAllowedIpRequest::getPortRange()const +{ + return portRange_; +} + +void UpdateAllowedIpRequest::setPortRange(const std::string& portRange) +{ + portRange_ = portRange; + setParameter("PortRange", portRange); +} + +std::string UpdateAllowedIpRequest::getAllowedListIp()const +{ + return allowedListIp_; +} + +void UpdateAllowedIpRequest::setAllowedListIp(const std::string& allowedListIp) +{ + allowedListIp_ = allowedListIp; + setParameter("AllowedListIp", allowedListIp); +} + +std::string UpdateAllowedIpRequest::getUpdateType()const +{ + return updateType_; +} + +void UpdateAllowedIpRequest::setUpdateType(const std::string& updateType) +{ + updateType_ = updateType; + setParameter("UpdateType", updateType); +} + +std::string UpdateAllowedIpRequest::getAllowedListType()const +{ + return allowedListType_; +} + +void UpdateAllowedIpRequest::setAllowedListType(const std::string& allowedListType) +{ + allowedListType_ = allowedListType; + setParameter("AllowedListType", allowedListType); +} + +std::string UpdateAllowedIpRequest::getInstanceId()const +{ + return instanceId_; +} + +void UpdateAllowedIpRequest::setInstanceId(const std::string& instanceId) +{ + instanceId_ = instanceId; + setParameter("InstanceId", instanceId); +} + +std::string UpdateAllowedIpRequest::getRegionId()const +{ + return regionId_; +} + +void UpdateAllowedIpRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setParameter("RegionId", regionId); +} + diff --git a/alikafka/src/model/UpdateAllowedIpResult.cc b/alikafka/src/model/UpdateAllowedIpResult.cc new file mode 100644 index 000000000..67f6e7c21 --- /dev/null +++ b/alikafka/src/model/UpdateAllowedIpResult.cc @@ -0,0 +1,65 @@ +/* + * 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::Alikafka; +using namespace AlibabaCloud::Alikafka::Model; + +UpdateAllowedIpResult::UpdateAllowedIpResult() : + ServiceResult() +{} + +UpdateAllowedIpResult::UpdateAllowedIpResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +UpdateAllowedIpResult::~UpdateAllowedIpResult() +{} + +void UpdateAllowedIpResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["Code"].isNull()) + code_ = std::stoi(value["Code"].asString()); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + +} + +std::string UpdateAllowedIpResult::getMessage()const +{ + return message_; +} + +int UpdateAllowedIpResult::getCode()const +{ + return code_; +} + +bool UpdateAllowedIpResult::getSuccess()const +{ + return success_; +} + diff --git a/alikafka/src/model/UpdateInstanceConfigRequest.cc b/alikafka/src/model/UpdateInstanceConfigRequest.cc new file mode 100644 index 000000000..812a3a101 --- /dev/null +++ b/alikafka/src/model/UpdateInstanceConfigRequest.cc @@ -0,0 +1,62 @@ +/* + * 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::Alikafka::Model::UpdateInstanceConfigRequest; + +UpdateInstanceConfigRequest::UpdateInstanceConfigRequest() : + RpcServiceRequest("alikafka", "2019-09-16", "UpdateInstanceConfig") +{ + setMethod(HttpRequest::Method::Post); +} + +UpdateInstanceConfigRequest::~UpdateInstanceConfigRequest() +{} + +std::string UpdateInstanceConfigRequest::getInstanceId()const +{ + return instanceId_; +} + +void UpdateInstanceConfigRequest::setInstanceId(const std::string& instanceId) +{ + instanceId_ = instanceId; + setParameter("InstanceId", instanceId); +} + +std::string UpdateInstanceConfigRequest::getRegionId()const +{ + return regionId_; +} + +void UpdateInstanceConfigRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setParameter("RegionId", regionId); +} + +std::string UpdateInstanceConfigRequest::getConfig()const +{ + return config_; +} + +void UpdateInstanceConfigRequest::setConfig(const std::string& config) +{ + config_ = config; + setParameter("Config", config); +} + diff --git a/alikafka/src/model/UpdateInstanceConfigResult.cc b/alikafka/src/model/UpdateInstanceConfigResult.cc new file mode 100644 index 000000000..f186b7260 --- /dev/null +++ b/alikafka/src/model/UpdateInstanceConfigResult.cc @@ -0,0 +1,65 @@ +/* + * 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::Alikafka; +using namespace AlibabaCloud::Alikafka::Model; + +UpdateInstanceConfigResult::UpdateInstanceConfigResult() : + ServiceResult() +{} + +UpdateInstanceConfigResult::UpdateInstanceConfigResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +UpdateInstanceConfigResult::~UpdateInstanceConfigResult() +{} + +void UpdateInstanceConfigResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["Code"].isNull()) + code_ = std::stoi(value["Code"].asString()); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + +} + +std::string UpdateInstanceConfigResult::getMessage()const +{ + return message_; +} + +int UpdateInstanceConfigResult::getCode()const +{ + return code_; +} + +bool UpdateInstanceConfigResult::getSuccess()const +{ + return success_; +} + diff --git a/alikafka/src/model/UpgradeInstanceVersionRequest.cc b/alikafka/src/model/UpgradeInstanceVersionRequest.cc new file mode 100644 index 000000000..bb1f4ae29 --- /dev/null +++ b/alikafka/src/model/UpgradeInstanceVersionRequest.cc @@ -0,0 +1,62 @@ +/* + * 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::Alikafka::Model::UpgradeInstanceVersionRequest; + +UpgradeInstanceVersionRequest::UpgradeInstanceVersionRequest() : + RpcServiceRequest("alikafka", "2019-09-16", "UpgradeInstanceVersion") +{ + setMethod(HttpRequest::Method::Post); +} + +UpgradeInstanceVersionRequest::~UpgradeInstanceVersionRequest() +{} + +std::string UpgradeInstanceVersionRequest::getTargetVersion()const +{ + return targetVersion_; +} + +void UpgradeInstanceVersionRequest::setTargetVersion(const std::string& targetVersion) +{ + targetVersion_ = targetVersion; + setParameter("TargetVersion", targetVersion); +} + +std::string UpgradeInstanceVersionRequest::getInstanceId()const +{ + return instanceId_; +} + +void UpgradeInstanceVersionRequest::setInstanceId(const std::string& instanceId) +{ + instanceId_ = instanceId; + setParameter("InstanceId", instanceId); +} + +std::string UpgradeInstanceVersionRequest::getRegionId()const +{ + return regionId_; +} + +void UpgradeInstanceVersionRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setParameter("RegionId", regionId); +} + diff --git a/alikafka/src/model/UpgradeInstanceVersionResult.cc b/alikafka/src/model/UpgradeInstanceVersionResult.cc new file mode 100644 index 000000000..a602b01af --- /dev/null +++ b/alikafka/src/model/UpgradeInstanceVersionResult.cc @@ -0,0 +1,65 @@ +/* + * 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::Alikafka; +using namespace AlibabaCloud::Alikafka::Model; + +UpgradeInstanceVersionResult::UpgradeInstanceVersionResult() : + ServiceResult() +{} + +UpgradeInstanceVersionResult::UpgradeInstanceVersionResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +UpgradeInstanceVersionResult::~UpgradeInstanceVersionResult() +{} + +void UpgradeInstanceVersionResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["Code"].isNull()) + code_ = std::stoi(value["Code"].asString()); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + +} + +std::string UpgradeInstanceVersionResult::getMessage()const +{ + return message_; +} + +int UpgradeInstanceVersionResult::getCode()const +{ + return code_; +} + +bool UpgradeInstanceVersionResult::getSuccess()const +{ + return success_; +} + diff --git a/alikafka/src/model/UpgradePostPayOrderRequest.cc b/alikafka/src/model/UpgradePostPayOrderRequest.cc new file mode 100644 index 000000000..599802169 --- /dev/null +++ b/alikafka/src/model/UpgradePostPayOrderRequest.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::Alikafka::Model::UpgradePostPayOrderRequest; + +UpgradePostPayOrderRequest::UpgradePostPayOrderRequest() : + RpcServiceRequest("alikafka", "2019-09-16", "UpgradePostPayOrder") +{ + setMethod(HttpRequest::Method::Post); +} + +UpgradePostPayOrderRequest::~UpgradePostPayOrderRequest() +{} + +int UpgradePostPayOrderRequest::getDiskSize()const +{ + return diskSize_; +} + +void UpgradePostPayOrderRequest::setDiskSize(int diskSize) +{ + diskSize_ = diskSize; + setParameter("DiskSize", std::to_string(diskSize)); +} + +int UpgradePostPayOrderRequest::getIoMax()const +{ + return ioMax_; +} + +void UpgradePostPayOrderRequest::setIoMax(int ioMax) +{ + ioMax_ = ioMax; + setParameter("IoMax", std::to_string(ioMax)); +} + +std::string UpgradePostPayOrderRequest::getIoMaxSpec()const +{ + return ioMaxSpec_; +} + +void UpgradePostPayOrderRequest::setIoMaxSpec(const std::string& ioMaxSpec) +{ + ioMaxSpec_ = ioMaxSpec; + setParameter("IoMaxSpec", ioMaxSpec); +} + +int UpgradePostPayOrderRequest::getTopicQuota()const +{ + return topicQuota_; +} + +void UpgradePostPayOrderRequest::setTopicQuota(int topicQuota) +{ + topicQuota_ = topicQuota; + setParameter("TopicQuota", std::to_string(topicQuota)); +} + +int UpgradePostPayOrderRequest::getEipMax()const +{ + return eipMax_; +} + +void UpgradePostPayOrderRequest::setEipMax(int eipMax) +{ + eipMax_ = eipMax; + setParameter("EipMax", std::to_string(eipMax)); +} + +std::string UpgradePostPayOrderRequest::getSpecType()const +{ + return specType_; +} + +void UpgradePostPayOrderRequest::setSpecType(const std::string& specType) +{ + specType_ = specType; + setParameter("SpecType", specType); +} + +std::string UpgradePostPayOrderRequest::getInstanceId()const +{ + return instanceId_; +} + +void UpgradePostPayOrderRequest::setInstanceId(const std::string& instanceId) +{ + instanceId_ = instanceId; + setParameter("InstanceId", instanceId); +} + +std::string UpgradePostPayOrderRequest::getRegionId()const +{ + return regionId_; +} + +void UpgradePostPayOrderRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setParameter("RegionId", regionId); +} + diff --git a/alikafka/src/model/UpgradePostPayOrderResult.cc b/alikafka/src/model/UpgradePostPayOrderResult.cc new file mode 100644 index 000000000..3c2dfc43f --- /dev/null +++ b/alikafka/src/model/UpgradePostPayOrderResult.cc @@ -0,0 +1,65 @@ +/* + * 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::Alikafka; +using namespace AlibabaCloud::Alikafka::Model; + +UpgradePostPayOrderResult::UpgradePostPayOrderResult() : + ServiceResult() +{} + +UpgradePostPayOrderResult::UpgradePostPayOrderResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +UpgradePostPayOrderResult::~UpgradePostPayOrderResult() +{} + +void UpgradePostPayOrderResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["Code"].isNull()) + code_ = std::stoi(value["Code"].asString()); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + +} + +std::string UpgradePostPayOrderResult::getMessage()const +{ + return message_; +} + +int UpgradePostPayOrderResult::getCode()const +{ + return code_; +} + +bool UpgradePostPayOrderResult::getSuccess()const +{ + return success_; +} + diff --git a/alikafka/src/model/UpgradePrePayOrderRequest.cc b/alikafka/src/model/UpgradePrePayOrderRequest.cc new file mode 100644 index 000000000..a0b27743d --- /dev/null +++ b/alikafka/src/model/UpgradePrePayOrderRequest.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::Alikafka::Model::UpgradePrePayOrderRequest; + +UpgradePrePayOrderRequest::UpgradePrePayOrderRequest() : + RpcServiceRequest("alikafka", "2019-09-16", "UpgradePrePayOrder") +{ + setMethod(HttpRequest::Method::Post); +} + +UpgradePrePayOrderRequest::~UpgradePrePayOrderRequest() +{} + +int UpgradePrePayOrderRequest::getDiskSize()const +{ + return diskSize_; +} + +void UpgradePrePayOrderRequest::setDiskSize(int diskSize) +{ + diskSize_ = diskSize; + setParameter("DiskSize", std::to_string(diskSize)); +} + +int UpgradePrePayOrderRequest::getIoMax()const +{ + return ioMax_; +} + +void UpgradePrePayOrderRequest::setIoMax(int ioMax) +{ + ioMax_ = ioMax; + setParameter("IoMax", std::to_string(ioMax)); +} + +std::string UpgradePrePayOrderRequest::getIoMaxSpec()const +{ + return ioMaxSpec_; +} + +void UpgradePrePayOrderRequest::setIoMaxSpec(const std::string& ioMaxSpec) +{ + ioMaxSpec_ = ioMaxSpec; + setParameter("IoMaxSpec", ioMaxSpec); +} + +int UpgradePrePayOrderRequest::getTopicQuota()const +{ + return topicQuota_; +} + +void UpgradePrePayOrderRequest::setTopicQuota(int topicQuota) +{ + topicQuota_ = topicQuota; + setParameter("TopicQuota", std::to_string(topicQuota)); +} + +int UpgradePrePayOrderRequest::getEipMax()const +{ + return eipMax_; +} + +void UpgradePrePayOrderRequest::setEipMax(int eipMax) +{ + eipMax_ = eipMax; + setParameter("EipMax", std::to_string(eipMax)); +} + +std::string UpgradePrePayOrderRequest::getSpecType()const +{ + return specType_; +} + +void UpgradePrePayOrderRequest::setSpecType(const std::string& specType) +{ + specType_ = specType; + setParameter("SpecType", specType); +} + +std::string UpgradePrePayOrderRequest::getInstanceId()const +{ + return instanceId_; +} + +void UpgradePrePayOrderRequest::setInstanceId(const std::string& instanceId) +{ + instanceId_ = instanceId; + setParameter("InstanceId", instanceId); +} + +std::string UpgradePrePayOrderRequest::getRegionId()const +{ + return regionId_; +} + +void UpgradePrePayOrderRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setParameter("RegionId", regionId); +} + diff --git a/alikafka/src/model/UpgradePrePayOrderResult.cc b/alikafka/src/model/UpgradePrePayOrderResult.cc new file mode 100644 index 000000000..351cf92d5 --- /dev/null +++ b/alikafka/src/model/UpgradePrePayOrderResult.cc @@ -0,0 +1,65 @@ +/* + * 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::Alikafka; +using namespace AlibabaCloud::Alikafka::Model; + +UpgradePrePayOrderResult::UpgradePrePayOrderResult() : + ServiceResult() +{} + +UpgradePrePayOrderResult::UpgradePrePayOrderResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +UpgradePrePayOrderResult::~UpgradePrePayOrderResult() +{} + +void UpgradePrePayOrderResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["Code"].isNull()) + code_ = std::stoi(value["Code"].asString()); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + +} + +std::string UpgradePrePayOrderResult::getMessage()const +{ + return message_; +} + +int UpgradePrePayOrderResult::getCode()const +{ + return code_; +} + +bool UpgradePrePayOrderResult::getSuccess()const +{ + return success_; +} + diff --git a/alikafka/version-2019-09-16.xml b/alikafka/version-2019-09-16.xml new file mode 100644 index 000000000..d1ee6f969 --- /dev/null +++ b/alikafka/version-2019-09-16.xml @@ -0,0 +1 @@ +