Compare commits
70 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
23a40fc487 | ||
|
|
03fb512456 | ||
|
|
56c516a238 | ||
|
|
2fd4ebc0a8 | ||
|
|
735c64063a | ||
|
|
bb7f64aeb3 | ||
|
|
396541400e | ||
|
|
e312177cd9 | ||
|
|
f60556764e | ||
|
|
6c1dbc8b06 | ||
|
|
ab7e92063b | ||
|
|
92d767384b | ||
|
|
32e4dafba9 | ||
|
|
9f2fb5a595 | ||
|
|
590e1bdfaf | ||
|
|
bde21ef594 | ||
|
|
7a8130ffb0 | ||
|
|
4bb1852f8a | ||
|
|
b1e2187ca5 | ||
|
|
92be79728f | ||
|
|
e1097547c2 | ||
|
|
87957e1677 | ||
|
|
8ef38637d2 | ||
|
|
7041b32dc4 | ||
|
|
d3ae1f02a3 | ||
|
|
87fc3376cb | ||
|
|
f6ec6326cb | ||
|
|
bd43e54271 | ||
|
|
f16150baca | ||
|
|
a51834c8d0 | ||
|
|
23bea0505a | ||
|
|
8c15acf5c8 | ||
|
|
00cb41817f | ||
|
|
f90eac2a6c | ||
|
|
f69779be3f | ||
|
|
feab9dcc06 | ||
|
|
d1c3599e3d | ||
|
|
f1483f8582 | ||
|
|
d005611f56 | ||
|
|
7e80260525 | ||
|
|
4aa00d49d1 | ||
|
|
a1dd7e1dbd | ||
|
|
e6cff897c5 | ||
|
|
4d493b157c | ||
|
|
8a1c79417e | ||
|
|
ad02a00036 | ||
|
|
3dd38f70c2 | ||
|
|
cc6cea96e4 | ||
|
|
f819d8866c | ||
|
|
d53a27c55f | ||
|
|
112b1d25da | ||
|
|
f51d79f1b9 | ||
|
|
e53482d9c6 | ||
|
|
b004f4b9fa | ||
|
|
c9cf723562 | ||
|
|
b1020d412c | ||
|
|
c4d6cb06f1 | ||
|
|
eeaeed4023 | ||
|
|
d7e14e0c1b | ||
|
|
18dc3cd7d9 | ||
|
|
2dbb76d303 | ||
|
|
ae65dcf4c3 | ||
|
|
1c5ad6a48c | ||
|
|
1a13b03f29 | ||
|
|
c1e07be47e | ||
|
|
8fdb5cc851 | ||
|
|
20774ebe3a | ||
|
|
485d712ddd | ||
|
|
abfdc41f3b | ||
|
|
093332279d |
236
CHANGELOG
236
CHANGELOG
@@ -1,3 +1,239 @@
|
||||
2020-05-14 Version: 1.36.413
|
||||
- Generated 2015-01-01 for `R-kvstore`.
|
||||
- Fix DescribeCacheAnalysisReport return empty BigKeys because of wrong type defination.
|
||||
|
||||
2020-05-14 Version: 1.36.412
|
||||
- Supported Grant Permission.
|
||||
- Supported Revoke Permission.
|
||||
|
||||
2020-05-14 Version: 1.36.411
|
||||
- Add demo edition auth.
|
||||
|
||||
2020-05-13 Version: 1.36.410
|
||||
- Add ListDevicesImages DescribeIpcLiveAddress.
|
||||
- Modify DescribeDevices.
|
||||
|
||||
2020-05-13 Version: 1.36.409
|
||||
- Add ExportTas apis.
|
||||
|
||||
2020-05-13 Version: 1.36.408
|
||||
- Generated 2019-09-10 for `waf-openapi`.
|
||||
|
||||
2020-05-13 Version: 1.36.407
|
||||
- Supported AAA for BBB.
|
||||
- Fixed bugs for CCC.
|
||||
|
||||
2020-05-13 Version: 1.36.406
|
||||
- Add ExportTas apis.
|
||||
|
||||
2020-05-13 Version: 1.36.405
|
||||
- About 2019-03-07 and 2018-09-16 Version.
|
||||
|
||||
2020-05-12 Version: 1.36.404
|
||||
- Supported DRM.
|
||||
|
||||
2020-05-11 Version: 1.36.403
|
||||
- Add new openapi ApplyNodes.
|
||||
|
||||
2020-05-11 Version: 1.36.402
|
||||
- Support CreationCategory for CreateDBCluster.
|
||||
|
||||
2020-05-09 Version: 1.36.401
|
||||
- Generated 2019-01-01 for `Cassandra`.
|
||||
|
||||
2020-05-09 Version: 1.36.400
|
||||
- VideoSearch deploy SDK.
|
||||
|
||||
2020-05-08 Version: 1.36.399
|
||||
- Support sg for region.
|
||||
|
||||
2020-05-06 Version: 1.36.398
|
||||
- Describe describeAvailableResource.
|
||||
|
||||
2020-04-30 Version: 1.36.397
|
||||
- Add prometheus ListDashboards api.
|
||||
|
||||
2020-04-29 Version: 1.36.396
|
||||
- Add prometheus ListDashboards api.
|
||||
|
||||
2020-04-29 Version: 1.36.395
|
||||
- Add prometheus ListDashboards api.
|
||||
|
||||
2020-04-29 Version: 1.36.394
|
||||
- Supported VideoProduce.
|
||||
|
||||
2020-04-29 Version: 1.36.393
|
||||
- Supported VideoProduce.
|
||||
|
||||
2020-04-29 Version: 1.36.392
|
||||
- Supported VideoProduce.
|
||||
|
||||
2020-04-29 Version: 1.36.391
|
||||
- Add ListTemplateVersions API.
|
||||
- GenerateExecutionPolicy supports TemplateVersion.
|
||||
- CreateTemplate and UpdateTemplate support VersionName.
|
||||
|
||||
|
||||
2020-04-29 Version: 1.36.390
|
||||
- Support groupId operations.
|
||||
|
||||
2020-04-29 Version: 1.36.389
|
||||
- Add ExportTas apis.
|
||||
|
||||
2020-04-29 Version: 1.36.388
|
||||
- Support Document Translation.
|
||||
- Support Lanuage Detection.
|
||||
|
||||
2020-04-29 Version: 1.36.387
|
||||
- Sync cdn APIs.
|
||||
|
||||
2020-04-29 Version: 1.36.386
|
||||
- Add Scdn APIS.
|
||||
- Sync cdn APIS.
|
||||
|
||||
2020-04-28 Version: 1.36.385
|
||||
- Generated 2019-03-15 for `fnf`.
|
||||
|
||||
2020-04-28 Version: 1.36.384
|
||||
- Add CompareFaceVerify API.
|
||||
|
||||
2020-04-27 Version: 1.36.383
|
||||
- Support watermark.
|
||||
|
||||
2020-04-27 Version: 1.36.382
|
||||
- Describe describeAvailableResource.
|
||||
|
||||
2020-04-27 Version: 1.36.381
|
||||
- ContrastFaceVerify Return SubCode.
|
||||
|
||||
2020-04-27 Version: 1.36.380
|
||||
- Generated 2019-01-01 for `Cassandra`.
|
||||
|
||||
2020-04-26 Version: 1.36.379
|
||||
- New api publish.
|
||||
|
||||
2020-04-25 Version: 1.36.378
|
||||
- Generated 2015-01-01 for `R-kvstore`.
|
||||
- Add RestoreTime for CreateInstance API.
|
||||
|
||||
2020-04-24 Version: 1.36.377
|
||||
- Publish apis for ledger instances.
|
||||
- Publish apis for members.
|
||||
- Publish apis for time anchors.
|
||||
- Publish apis for endpoints.
|
||||
|
||||
2020-04-24 Version: 1.36.376
|
||||
- Publish apis for ledger instances.
|
||||
- Publish apis for members.
|
||||
- Publish apis for time anchors.
|
||||
- Publish apis for endpoints.
|
||||
|
||||
2020-04-23 Version: 1.36.375
|
||||
- GetUser API return user execute query count information.
|
||||
|
||||
2020-04-23 Version: 1.36.374
|
||||
- Fixed bugs for MassPush API.
|
||||
|
||||
2020-04-23 Version: 1.36.373
|
||||
- Add location info.
|
||||
|
||||
2020-04-23 Version: 1.36.372
|
||||
- Support groupId operations.
|
||||
|
||||
2020-04-22 Version: 1.36.371
|
||||
- Generated 2019-01-01 for `Cassandra`.
|
||||
|
||||
2020-04-21 Version: 1.36.370
|
||||
- Supported API for DescribeTags.
|
||||
- Supported API for ListTagResources.
|
||||
- Supported API for TagResources.
|
||||
- Supported API for UntagResources.
|
||||
|
||||
2020-04-21 Version: 1.36.369
|
||||
- Supported PackageDesign Apis.
|
||||
- Supported Api ListPackageDesignModelTypes.
|
||||
- Supported Api PreviewModelForPackageDesign.
|
||||
- Supported Api RenderImageForPackageDesign.
|
||||
- Supported Api GetRenderResult.
|
||||
|
||||
2020-04-21 Version: 1.36.368
|
||||
- Add Statistics API.
|
||||
|
||||
2020-04-20 Version: 1.36.367
|
||||
- Add TemplateId.
|
||||
|
||||
2020-04-20 Version: 1.36.366
|
||||
- Fix FaceContrastPicture.
|
||||
|
||||
2020-04-20 Version: 1.36.365
|
||||
- Add kibana network white Ips.
|
||||
|
||||
2020-04-19 Version: 1.36.364
|
||||
- Multimedia poc modified.
|
||||
|
||||
2020-04-17 Version: 1.36.363
|
||||
- DescribeInstanceTypes support TotalEniQueueQuantity.
|
||||
|
||||
2020-04-16 Version: 1.36.362
|
||||
- Modify `SubmitSmarttagJob`.
|
||||
|
||||
2020-04-16 Version: 1.36.361
|
||||
- Add ModifyWhiteIps.
|
||||
|
||||
2020-04-16 Version: 1.36.360
|
||||
- Add BatchOptimization param in Stop and Start Instances.
|
||||
- Add RemoveSymbols in GetInstanceConsoleOutput.
|
||||
- Add ImageFamily in ModifyImageAttribute.
|
||||
- Customize InstanceType on DedicatedHosts is supported.
|
||||
- Add StorageCapacityUnit interfaces.
|
||||
- Add param Tag in CreateAutoSnapshotPolicy.
|
||||
|
||||
2020-04-16 Version: 1.36.359
|
||||
- Add features for open api.
|
||||
|
||||
2020-04-15 Version: 1.36.358
|
||||
- Add pre train service api.
|
||||
|
||||
2020-04-15 Version: 1.36.357
|
||||
- CreateNode API add return NodeId.
|
||||
|
||||
2020-04-15 Version: 1.36.356
|
||||
- Vision-poc response modified.
|
||||
|
||||
2020-04-14 Version: 1.36.355
|
||||
- Support ListSensitiveColumns, ListSensitiveColumnsDetail API.
|
||||
- ListUsers API return user execute query count information.
|
||||
- Fix ListWorkFlowTemplates to return create user information.
|
||||
- UpdateUser API support to update user max execute query count.
|
||||
|
||||
2020-04-14 Version: 1.36.354
|
||||
- Supported CreateSegmentBodyJob.
|
||||
|
||||
2020-04-13 Version: 1.36.353
|
||||
- Fix ListTaskExecutions SDK error.
|
||||
|
||||
2020-04-10 Version: 1.36.352
|
||||
- Generated 2017-05-25 for `Dypnsapi`.
|
||||
|
||||
2020-04-10 Version: 1.36.351
|
||||
- Support GetOfficeEditURL.
|
||||
- Support RefreshOfficeEditToken.
|
||||
|
||||
2020-04-10 Version: 1.36.350
|
||||
- Generated 2019-01-01 for `Cassandra`.
|
||||
|
||||
2020-04-10 Version: 1.36.349
|
||||
- Support DescribeIpv4Location.
|
||||
|
||||
2020-04-09 Version: 1.36.348
|
||||
- Add prometheus api AddGrafana and AddIntegration.
|
||||
|
||||
2020-04-09 Version: 1.36.347
|
||||
- Generated 2018-03-13 for `retailcloud`.
|
||||
|
||||
2020-04-09 Version: 1.36.346
|
||||
- Add DescribePrice API.
|
||||
|
||||
2020-04-09 Version: 1.36.345
|
||||
- WAF OpenApi SDK Release.
|
||||
|
||||
|
||||
@@ -9,12 +9,14 @@ project(alibabacloud-sdk VERSION ${version})
|
||||
message(STATUS "Project version: ${PROJECT_VERSION}")
|
||||
|
||||
set(TARGET_OUTPUT_NAME_PREFIX "alibabacloud-sdk-" CACHE STRING "The target's output name prefix")
|
||||
set(BUILD_PRODUCT "" CACHE STRING "Build by lower name of product")
|
||||
|
||||
option(BUILD_SHARED_LIBS "Enable shared library" ON)
|
||||
option(BUILD_UNIT_TESTS "Enable unit tests" OFF)
|
||||
option(BUILD_FUNCTION_TESTS "Enable function test" OFF)
|
||||
option(BUILD_PRODUCT "Build by lower name of product" OFF)
|
||||
|
||||
set(LIB_TYPE STATIC)
|
||||
|
||||
if(BUILD_SHARED_LIBS)
|
||||
set(LIB_TYPE SHARED)
|
||||
add_definitions(-DALIBABACLOUD_SHARED)
|
||||
@@ -57,9 +59,10 @@ if(BUILD_FUNCTION_TESTS)
|
||||
add_subdirectory(test/function_test/vpc)
|
||||
endif()
|
||||
|
||||
if(NOT BUILD_PRODUCT)
|
||||
message(WARNING "INVALID FOLDER 'BUILD_PRODUCT'=${BUILD_PRODUCT}")
|
||||
if(BUILD_PRODUCT STREQUAL "")
|
||||
message(WARNING "Please set the value of 'BUILD_PRODUCT'")
|
||||
else()
|
||||
add_subdirectory(core)
|
||||
add_subdirectory(${BUILD_PRODUCT})
|
||||
message(STATUS "'BUILD_PRODUCT'=${BUILD_PRODUCT}")
|
||||
endif()
|
||||
|
||||
@@ -103,6 +103,7 @@ sudo sh easyinstall.sh ecs
|
||||
* 选择 `Browse Source` 为 `源代码目录(aliyun-openapi-cpp-sdk)`
|
||||
* 选择 `Browse build` 为 `构建目录(sdk_build)`
|
||||
* 点击 `configure`
|
||||
* 使用小写的产品名称,设置 `BUILD_PRODUCT` 参数的值
|
||||
* 点击 `generate`, 构建 VS 解决方案。
|
||||
|
||||
4. 编译安装 C++ SDK
|
||||
|
||||
@@ -109,6 +109,8 @@ git clone https://github.com/aliyun/aliyun-openapi-cpp-sdk.git
|
||||
|
||||
- `Configure`
|
||||
|
||||
- use the lower name of product to set the value of `BUILD_PRODUCT`
|
||||
|
||||
- `Generate`
|
||||
|
||||
4. Build and Install C++ SDK
|
||||
|
||||
@@ -141,6 +141,8 @@ set(alidns_public_header_model
|
||||
include/alibabacloud/alidns/model/DescribeSubDomainRecordsResult.h
|
||||
include/alibabacloud/alidns/model/DescribeSupportLinesRequest.h
|
||||
include/alibabacloud/alidns/model/DescribeSupportLinesResult.h
|
||||
include/alibabacloud/alidns/model/DescribeTagsRequest.h
|
||||
include/alibabacloud/alidns/model/DescribeTagsResult.h
|
||||
include/alibabacloud/alidns/model/DescribeTransferDomainsRequest.h
|
||||
include/alibabacloud/alidns/model/DescribeTransferDomainsResult.h
|
||||
include/alibabacloud/alidns/model/ExecuteGtmRecoveryPlanRequest.h
|
||||
@@ -149,6 +151,8 @@ set(alidns_public_header_model
|
||||
include/alibabacloud/alidns/model/GetMainDomainNameResult.h
|
||||
include/alibabacloud/alidns/model/GetTxtRecordForVerifyRequest.h
|
||||
include/alibabacloud/alidns/model/GetTxtRecordForVerifyResult.h
|
||||
include/alibabacloud/alidns/model/ListTagResourcesRequest.h
|
||||
include/alibabacloud/alidns/model/ListTagResourcesResult.h
|
||||
include/alibabacloud/alidns/model/ModifyHichinaDomainDNSRequest.h
|
||||
include/alibabacloud/alidns/model/ModifyHichinaDomainDNSResult.h
|
||||
include/alibabacloud/alidns/model/OperateBatchDomainRequest.h
|
||||
@@ -169,10 +173,14 @@ set(alidns_public_header_model
|
||||
include/alibabacloud/alidns/model/SetGtmAccessModeResult.h
|
||||
include/alibabacloud/alidns/model/SetGtmMonitorStatusRequest.h
|
||||
include/alibabacloud/alidns/model/SetGtmMonitorStatusResult.h
|
||||
include/alibabacloud/alidns/model/TagResourcesRequest.h
|
||||
include/alibabacloud/alidns/model/TagResourcesResult.h
|
||||
include/alibabacloud/alidns/model/TransferDomainRequest.h
|
||||
include/alibabacloud/alidns/model/TransferDomainResult.h
|
||||
include/alibabacloud/alidns/model/UnbindInstanceDomainsRequest.h
|
||||
include/alibabacloud/alidns/model/UnbindInstanceDomainsResult.h
|
||||
include/alibabacloud/alidns/model/UntagResourcesRequest.h
|
||||
include/alibabacloud/alidns/model/UntagResourcesResult.h
|
||||
include/alibabacloud/alidns/model/UpdateCustomLineRequest.h
|
||||
include/alibabacloud/alidns/model/UpdateCustomLineResult.h
|
||||
include/alibabacloud/alidns/model/UpdateDNSSLBWeightRequest.h
|
||||
@@ -318,6 +326,8 @@ set(alidns_src
|
||||
src/model/DescribeSubDomainRecordsResult.cc
|
||||
src/model/DescribeSupportLinesRequest.cc
|
||||
src/model/DescribeSupportLinesResult.cc
|
||||
src/model/DescribeTagsRequest.cc
|
||||
src/model/DescribeTagsResult.cc
|
||||
src/model/DescribeTransferDomainsRequest.cc
|
||||
src/model/DescribeTransferDomainsResult.cc
|
||||
src/model/ExecuteGtmRecoveryPlanRequest.cc
|
||||
@@ -326,6 +336,8 @@ set(alidns_src
|
||||
src/model/GetMainDomainNameResult.cc
|
||||
src/model/GetTxtRecordForVerifyRequest.cc
|
||||
src/model/GetTxtRecordForVerifyResult.cc
|
||||
src/model/ListTagResourcesRequest.cc
|
||||
src/model/ListTagResourcesResult.cc
|
||||
src/model/ModifyHichinaDomainDNSRequest.cc
|
||||
src/model/ModifyHichinaDomainDNSResult.cc
|
||||
src/model/OperateBatchDomainRequest.cc
|
||||
@@ -346,10 +358,14 @@ set(alidns_src
|
||||
src/model/SetGtmAccessModeResult.cc
|
||||
src/model/SetGtmMonitorStatusRequest.cc
|
||||
src/model/SetGtmMonitorStatusResult.cc
|
||||
src/model/TagResourcesRequest.cc
|
||||
src/model/TagResourcesResult.cc
|
||||
src/model/TransferDomainRequest.cc
|
||||
src/model/TransferDomainResult.cc
|
||||
src/model/UnbindInstanceDomainsRequest.cc
|
||||
src/model/UnbindInstanceDomainsResult.cc
|
||||
src/model/UntagResourcesRequest.cc
|
||||
src/model/UntagResourcesResult.cc
|
||||
src/model/UpdateCustomLineRequest.cc
|
||||
src/model/UpdateCustomLineResult.cc
|
||||
src/model/UpdateDNSSLBWeightRequest.cc
|
||||
|
||||
@@ -142,6 +142,8 @@
|
||||
#include "model/DescribeSubDomainRecordsResult.h"
|
||||
#include "model/DescribeSupportLinesRequest.h"
|
||||
#include "model/DescribeSupportLinesResult.h"
|
||||
#include "model/DescribeTagsRequest.h"
|
||||
#include "model/DescribeTagsResult.h"
|
||||
#include "model/DescribeTransferDomainsRequest.h"
|
||||
#include "model/DescribeTransferDomainsResult.h"
|
||||
#include "model/ExecuteGtmRecoveryPlanRequest.h"
|
||||
@@ -150,6 +152,8 @@
|
||||
#include "model/GetMainDomainNameResult.h"
|
||||
#include "model/GetTxtRecordForVerifyRequest.h"
|
||||
#include "model/GetTxtRecordForVerifyResult.h"
|
||||
#include "model/ListTagResourcesRequest.h"
|
||||
#include "model/ListTagResourcesResult.h"
|
||||
#include "model/ModifyHichinaDomainDNSRequest.h"
|
||||
#include "model/ModifyHichinaDomainDNSResult.h"
|
||||
#include "model/OperateBatchDomainRequest.h"
|
||||
@@ -170,10 +174,14 @@
|
||||
#include "model/SetGtmAccessModeResult.h"
|
||||
#include "model/SetGtmMonitorStatusRequest.h"
|
||||
#include "model/SetGtmMonitorStatusResult.h"
|
||||
#include "model/TagResourcesRequest.h"
|
||||
#include "model/TagResourcesResult.h"
|
||||
#include "model/TransferDomainRequest.h"
|
||||
#include "model/TransferDomainResult.h"
|
||||
#include "model/UnbindInstanceDomainsRequest.h"
|
||||
#include "model/UnbindInstanceDomainsResult.h"
|
||||
#include "model/UntagResourcesRequest.h"
|
||||
#include "model/UntagResourcesResult.h"
|
||||
#include "model/UpdateCustomLineRequest.h"
|
||||
#include "model/UpdateCustomLineResult.h"
|
||||
#include "model/UpdateDNSSLBWeightRequest.h"
|
||||
@@ -385,6 +393,9 @@ namespace AlibabaCloud
|
||||
typedef Outcome<Error, Model::DescribeSupportLinesResult> DescribeSupportLinesOutcome;
|
||||
typedef std::future<DescribeSupportLinesOutcome> DescribeSupportLinesOutcomeCallable;
|
||||
typedef std::function<void(const AlidnsClient*, const Model::DescribeSupportLinesRequest&, const DescribeSupportLinesOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeSupportLinesAsyncHandler;
|
||||
typedef Outcome<Error, Model::DescribeTagsResult> DescribeTagsOutcome;
|
||||
typedef std::future<DescribeTagsOutcome> DescribeTagsOutcomeCallable;
|
||||
typedef std::function<void(const AlidnsClient*, const Model::DescribeTagsRequest&, const DescribeTagsOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeTagsAsyncHandler;
|
||||
typedef Outcome<Error, Model::DescribeTransferDomainsResult> DescribeTransferDomainsOutcome;
|
||||
typedef std::future<DescribeTransferDomainsOutcome> DescribeTransferDomainsOutcomeCallable;
|
||||
typedef std::function<void(const AlidnsClient*, const Model::DescribeTransferDomainsRequest&, const DescribeTransferDomainsOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeTransferDomainsAsyncHandler;
|
||||
@@ -397,6 +408,9 @@ namespace AlibabaCloud
|
||||
typedef Outcome<Error, Model::GetTxtRecordForVerifyResult> GetTxtRecordForVerifyOutcome;
|
||||
typedef std::future<GetTxtRecordForVerifyOutcome> GetTxtRecordForVerifyOutcomeCallable;
|
||||
typedef std::function<void(const AlidnsClient*, const Model::GetTxtRecordForVerifyRequest&, const GetTxtRecordForVerifyOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetTxtRecordForVerifyAsyncHandler;
|
||||
typedef Outcome<Error, Model::ListTagResourcesResult> ListTagResourcesOutcome;
|
||||
typedef std::future<ListTagResourcesOutcome> ListTagResourcesOutcomeCallable;
|
||||
typedef std::function<void(const AlidnsClient*, const Model::ListTagResourcesRequest&, const ListTagResourcesOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ListTagResourcesAsyncHandler;
|
||||
typedef Outcome<Error, Model::ModifyHichinaDomainDNSResult> ModifyHichinaDomainDNSOutcome;
|
||||
typedef std::future<ModifyHichinaDomainDNSOutcome> ModifyHichinaDomainDNSOutcomeCallable;
|
||||
typedef std::function<void(const AlidnsClient*, const Model::ModifyHichinaDomainDNSRequest&, const ModifyHichinaDomainDNSOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ModifyHichinaDomainDNSAsyncHandler;
|
||||
@@ -427,12 +441,18 @@ namespace AlibabaCloud
|
||||
typedef Outcome<Error, Model::SetGtmMonitorStatusResult> SetGtmMonitorStatusOutcome;
|
||||
typedef std::future<SetGtmMonitorStatusOutcome> SetGtmMonitorStatusOutcomeCallable;
|
||||
typedef std::function<void(const AlidnsClient*, const Model::SetGtmMonitorStatusRequest&, const SetGtmMonitorStatusOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> SetGtmMonitorStatusAsyncHandler;
|
||||
typedef Outcome<Error, Model::TagResourcesResult> TagResourcesOutcome;
|
||||
typedef std::future<TagResourcesOutcome> TagResourcesOutcomeCallable;
|
||||
typedef std::function<void(const AlidnsClient*, const Model::TagResourcesRequest&, const TagResourcesOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> TagResourcesAsyncHandler;
|
||||
typedef Outcome<Error, Model::TransferDomainResult> TransferDomainOutcome;
|
||||
typedef std::future<TransferDomainOutcome> TransferDomainOutcomeCallable;
|
||||
typedef std::function<void(const AlidnsClient*, const Model::TransferDomainRequest&, const TransferDomainOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> TransferDomainAsyncHandler;
|
||||
typedef Outcome<Error, Model::UnbindInstanceDomainsResult> UnbindInstanceDomainsOutcome;
|
||||
typedef std::future<UnbindInstanceDomainsOutcome> UnbindInstanceDomainsOutcomeCallable;
|
||||
typedef std::function<void(const AlidnsClient*, const Model::UnbindInstanceDomainsRequest&, const UnbindInstanceDomainsOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> UnbindInstanceDomainsAsyncHandler;
|
||||
typedef Outcome<Error, Model::UntagResourcesResult> UntagResourcesOutcome;
|
||||
typedef std::future<UntagResourcesOutcome> UntagResourcesOutcomeCallable;
|
||||
typedef std::function<void(const AlidnsClient*, const Model::UntagResourcesRequest&, const UntagResourcesOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> UntagResourcesAsyncHandler;
|
||||
typedef Outcome<Error, Model::UpdateCustomLineResult> UpdateCustomLineOutcome;
|
||||
typedef std::future<UpdateCustomLineOutcome> UpdateCustomLineOutcomeCallable;
|
||||
typedef std::function<void(const AlidnsClient*, const Model::UpdateCustomLineRequest&, const UpdateCustomLineOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> UpdateCustomLineAsyncHandler;
|
||||
@@ -651,6 +671,9 @@ namespace AlibabaCloud
|
||||
DescribeSupportLinesOutcome describeSupportLines(const Model::DescribeSupportLinesRequest &request)const;
|
||||
void describeSupportLinesAsync(const Model::DescribeSupportLinesRequest& request, const DescribeSupportLinesAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DescribeSupportLinesOutcomeCallable describeSupportLinesCallable(const Model::DescribeSupportLinesRequest& request) const;
|
||||
DescribeTagsOutcome describeTags(const Model::DescribeTagsRequest &request)const;
|
||||
void describeTagsAsync(const Model::DescribeTagsRequest& request, const DescribeTagsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DescribeTagsOutcomeCallable describeTagsCallable(const Model::DescribeTagsRequest& request) const;
|
||||
DescribeTransferDomainsOutcome describeTransferDomains(const Model::DescribeTransferDomainsRequest &request)const;
|
||||
void describeTransferDomainsAsync(const Model::DescribeTransferDomainsRequest& request, const DescribeTransferDomainsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DescribeTransferDomainsOutcomeCallable describeTransferDomainsCallable(const Model::DescribeTransferDomainsRequest& request) const;
|
||||
@@ -663,6 +686,9 @@ namespace AlibabaCloud
|
||||
GetTxtRecordForVerifyOutcome getTxtRecordForVerify(const Model::GetTxtRecordForVerifyRequest &request)const;
|
||||
void getTxtRecordForVerifyAsync(const Model::GetTxtRecordForVerifyRequest& request, const GetTxtRecordForVerifyAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
GetTxtRecordForVerifyOutcomeCallable getTxtRecordForVerifyCallable(const Model::GetTxtRecordForVerifyRequest& request) const;
|
||||
ListTagResourcesOutcome listTagResources(const Model::ListTagResourcesRequest &request)const;
|
||||
void listTagResourcesAsync(const Model::ListTagResourcesRequest& request, const ListTagResourcesAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
ListTagResourcesOutcomeCallable listTagResourcesCallable(const Model::ListTagResourcesRequest& request) const;
|
||||
ModifyHichinaDomainDNSOutcome modifyHichinaDomainDNS(const Model::ModifyHichinaDomainDNSRequest &request)const;
|
||||
void modifyHichinaDomainDNSAsync(const Model::ModifyHichinaDomainDNSRequest& request, const ModifyHichinaDomainDNSAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
ModifyHichinaDomainDNSOutcomeCallable modifyHichinaDomainDNSCallable(const Model::ModifyHichinaDomainDNSRequest& request) const;
|
||||
@@ -693,12 +719,18 @@ namespace AlibabaCloud
|
||||
SetGtmMonitorStatusOutcome setGtmMonitorStatus(const Model::SetGtmMonitorStatusRequest &request)const;
|
||||
void setGtmMonitorStatusAsync(const Model::SetGtmMonitorStatusRequest& request, const SetGtmMonitorStatusAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
SetGtmMonitorStatusOutcomeCallable setGtmMonitorStatusCallable(const Model::SetGtmMonitorStatusRequest& request) const;
|
||||
TagResourcesOutcome tagResources(const Model::TagResourcesRequest &request)const;
|
||||
void tagResourcesAsync(const Model::TagResourcesRequest& request, const TagResourcesAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
TagResourcesOutcomeCallable tagResourcesCallable(const Model::TagResourcesRequest& request) const;
|
||||
TransferDomainOutcome transferDomain(const Model::TransferDomainRequest &request)const;
|
||||
void transferDomainAsync(const Model::TransferDomainRequest& request, const TransferDomainAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
TransferDomainOutcomeCallable transferDomainCallable(const Model::TransferDomainRequest& request) const;
|
||||
UnbindInstanceDomainsOutcome unbindInstanceDomains(const Model::UnbindInstanceDomainsRequest &request)const;
|
||||
void unbindInstanceDomainsAsync(const Model::UnbindInstanceDomainsRequest& request, const UnbindInstanceDomainsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
UnbindInstanceDomainsOutcomeCallable unbindInstanceDomainsCallable(const Model::UnbindInstanceDomainsRequest& request) const;
|
||||
UntagResourcesOutcome untagResources(const Model::UntagResourcesRequest &request)const;
|
||||
void untagResourcesAsync(const Model::UntagResourcesRequest& request, const UntagResourcesAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
UntagResourcesOutcomeCallable untagResourcesCallable(const Model::UntagResourcesRequest& request) const;
|
||||
UpdateCustomLineOutcome updateCustomLine(const Model::UpdateCustomLineRequest &request)const;
|
||||
void updateCustomLineAsync(const Model::UpdateCustomLineRequest& request, const UpdateCustomLineAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
UpdateCustomLineOutcomeCallable updateCustomLineCallable(const Model::UpdateCustomLineRequest& request) const;
|
||||
|
||||
@@ -30,6 +30,12 @@ namespace AlibabaCloud
|
||||
{
|
||||
class ALIBABACLOUD_ALIDNS_EXPORT DescribeDomainsRequest : public RpcServiceRequest
|
||||
{
|
||||
public:
|
||||
struct Tag
|
||||
{
|
||||
std::string value;
|
||||
std::string key;
|
||||
};
|
||||
|
||||
public:
|
||||
DescribeDomainsRequest();
|
||||
@@ -43,6 +49,8 @@ namespace AlibabaCloud
|
||||
void setResourceGroupId(const std::string& resourceGroupId);
|
||||
long getPageSize()const;
|
||||
void setPageSize(long pageSize);
|
||||
std::vector<Tag> getTag()const;
|
||||
void setTag(const std::vector<Tag>& tag);
|
||||
std::string getLang()const;
|
||||
void setLang(const std::string& lang);
|
||||
std::string getKeyWord()const;
|
||||
@@ -67,6 +75,7 @@ namespace AlibabaCloud
|
||||
long pageNumber_;
|
||||
std::string resourceGroupId_;
|
||||
long pageSize_;
|
||||
std::vector<Tag> tag_;
|
||||
std::string lang_;
|
||||
std::string keyWord_;
|
||||
std::string direction_;
|
||||
|
||||
@@ -34,6 +34,11 @@ namespace AlibabaCloud
|
||||
public:
|
||||
struct Domain
|
||||
{
|
||||
struct Tag
|
||||
{
|
||||
std::string value;
|
||||
std::string key;
|
||||
};
|
||||
std::string groupName;
|
||||
bool aliDomain;
|
||||
std::string domainName;
|
||||
@@ -52,6 +57,7 @@ namespace AlibabaCloud
|
||||
bool instanceExpired;
|
||||
long recordCount;
|
||||
long createTimestamp;
|
||||
std::vector<Domain::Tag> tags;
|
||||
};
|
||||
|
||||
|
||||
|
||||
@@ -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_ALIDNS_MODEL_DESCRIBETAGSREQUEST_H_
|
||||
#define ALIBABACLOUD_ALIDNS_MODEL_DESCRIBETAGSREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/alidns/AlidnsExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Alidns
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_ALIDNS_EXPORT DescribeTagsRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
DescribeTagsRequest();
|
||||
~DescribeTagsRequest();
|
||||
|
||||
std::string getResourceType()const;
|
||||
void setResourceType(const std::string& resourceType);
|
||||
long getPageNumber()const;
|
||||
void setPageNumber(long pageNumber);
|
||||
std::string getUserClientIp()const;
|
||||
void setUserClientIp(const std::string& userClientIp);
|
||||
long getPageSize()const;
|
||||
void setPageSize(long pageSize);
|
||||
std::string getLang()const;
|
||||
void setLang(const std::string& lang);
|
||||
|
||||
private:
|
||||
std::string resourceType_;
|
||||
long pageNumber_;
|
||||
std::string userClientIp_;
|
||||
long pageSize_;
|
||||
std::string lang_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_ALIDNS_MODEL_DESCRIBETAGSREQUEST_H_
|
||||
@@ -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.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_ALIDNS_MODEL_DESCRIBETAGSRESULT_H_
|
||||
#define ALIBABACLOUD_ALIDNS_MODEL_DESCRIBETAGSRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/alidns/AlidnsExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Alidns
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_ALIDNS_EXPORT DescribeTagsResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct Tag
|
||||
{
|
||||
std::vector<std::string> values;
|
||||
std::string key;
|
||||
};
|
||||
|
||||
|
||||
DescribeTagsResult();
|
||||
explicit DescribeTagsResult(const std::string &payload);
|
||||
~DescribeTagsResult();
|
||||
long getTotalCount()const;
|
||||
long getPageSize()const;
|
||||
long getPageNumber()const;
|
||||
std::vector<Tag> getTags()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
long totalCount_;
|
||||
long pageSize_;
|
||||
long pageNumber_;
|
||||
std::vector<Tag> tags_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_ALIDNS_MODEL_DESCRIBETAGSRESULT_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_ALIDNS_MODEL_LISTTAGRESOURCESREQUEST_H_
|
||||
#define ALIBABACLOUD_ALIDNS_MODEL_LISTTAGRESOURCESREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/alidns/AlidnsExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Alidns
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_ALIDNS_EXPORT ListTagResourcesRequest : public RpcServiceRequest
|
||||
{
|
||||
public:
|
||||
struct Tag
|
||||
{
|
||||
std::string value;
|
||||
std::string key;
|
||||
};
|
||||
|
||||
public:
|
||||
ListTagResourcesRequest();
|
||||
~ListTagResourcesRequest();
|
||||
|
||||
std::vector<std::string> getResourceId()const;
|
||||
void setResourceId(const std::vector<std::string>& resourceId);
|
||||
std::string getResourceType()const;
|
||||
void setResourceType(const std::string& resourceType);
|
||||
int getSize()const;
|
||||
void setSize(int size);
|
||||
std::string getNextToken()const;
|
||||
void setNextToken(const std::string& nextToken);
|
||||
std::string getUserClientIp()const;
|
||||
void setUserClientIp(const std::string& userClientIp);
|
||||
std::vector<Tag> getTag()const;
|
||||
void setTag(const std::vector<Tag>& tag);
|
||||
std::string getLang()const;
|
||||
void setLang(const std::string& lang);
|
||||
|
||||
private:
|
||||
std::vector<std::string> resourceId_;
|
||||
std::string resourceType_;
|
||||
int size_;
|
||||
std::string nextToken_;
|
||||
std::string userClientIp_;
|
||||
std::vector<Tag> tag_;
|
||||
std::string lang_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_ALIDNS_MODEL_LISTTAGRESOURCESREQUEST_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_ALIDNS_MODEL_LISTTAGRESOURCESRESULT_H_
|
||||
#define ALIBABACLOUD_ALIDNS_MODEL_LISTTAGRESOURCESRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/alidns/AlidnsExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Alidns
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_ALIDNS_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<TagResource> getTagResources()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::string nextToken_;
|
||||
std::vector<TagResource> tagResources_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_ALIDNS_MODEL_LISTTAGRESOURCESRESULT_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_ALIDNS_MODEL_TAGRESOURCESREQUEST_H_
|
||||
#define ALIBABACLOUD_ALIDNS_MODEL_TAGRESOURCESREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/alidns/AlidnsExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Alidns
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_ALIDNS_EXPORT TagResourcesRequest : public RpcServiceRequest
|
||||
{
|
||||
public:
|
||||
struct Tag
|
||||
{
|
||||
std::string value;
|
||||
std::string key;
|
||||
};
|
||||
|
||||
public:
|
||||
TagResourcesRequest();
|
||||
~TagResourcesRequest();
|
||||
|
||||
std::vector<std::string> getResourceId()const;
|
||||
void setResourceId(const std::vector<std::string>& resourceId);
|
||||
std::string getResourceType()const;
|
||||
void setResourceType(const std::string& resourceType);
|
||||
std::string getUserClientIp()const;
|
||||
void setUserClientIp(const std::string& userClientIp);
|
||||
std::vector<Tag> getTag()const;
|
||||
void setTag(const std::vector<Tag>& tag);
|
||||
std::string getLang()const;
|
||||
void setLang(const std::string& lang);
|
||||
bool getOverWrite()const;
|
||||
void setOverWrite(bool overWrite);
|
||||
|
||||
private:
|
||||
std::vector<std::string> resourceId_;
|
||||
std::string resourceType_;
|
||||
std::string userClientIp_;
|
||||
std::vector<Tag> tag_;
|
||||
std::string lang_;
|
||||
bool overWrite_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_ALIDNS_MODEL_TAGRESOURCESREQUEST_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_ALIDNS_MODEL_TAGRESOURCESRESULT_H_
|
||||
#define ALIBABACLOUD_ALIDNS_MODEL_TAGRESOURCESRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/alidns/AlidnsExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Alidns
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_ALIDNS_EXPORT TagResourcesResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
|
||||
|
||||
TagResourcesResult();
|
||||
explicit TagResourcesResult(const std::string &payload);
|
||||
~TagResourcesResult();
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_ALIDNS_MODEL_TAGRESOURCESRESULT_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_ALIDNS_MODEL_UNTAGRESOURCESREQUEST_H_
|
||||
#define ALIBABACLOUD_ALIDNS_MODEL_UNTAGRESOURCESREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/alidns/AlidnsExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Alidns
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_ALIDNS_EXPORT UntagResourcesRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
UntagResourcesRequest();
|
||||
~UntagResourcesRequest();
|
||||
|
||||
bool getAll()const;
|
||||
void setAll(bool all);
|
||||
std::vector<std::string> getResourceId()const;
|
||||
void setResourceId(const std::vector<std::string>& resourceId);
|
||||
std::string getResourceType()const;
|
||||
void setResourceType(const std::string& resourceType);
|
||||
std::string getUserClientIp()const;
|
||||
void setUserClientIp(const std::string& userClientIp);
|
||||
std::string getLang()const;
|
||||
void setLang(const std::string& lang);
|
||||
std::vector<std::string> getTagKey()const;
|
||||
void setTagKey(const std::vector<std::string>& tagKey);
|
||||
|
||||
private:
|
||||
bool all_;
|
||||
std::vector<std::string> resourceId_;
|
||||
std::string resourceType_;
|
||||
std::string userClientIp_;
|
||||
std::string lang_;
|
||||
std::vector<std::string> tagKey_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_ALIDNS_MODEL_UNTAGRESOURCESREQUEST_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_ALIDNS_MODEL_UNTAGRESOURCESRESULT_H_
|
||||
#define ALIBABACLOUD_ALIDNS_MODEL_UNTAGRESOURCESRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/alidns/AlidnsExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Alidns
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_ALIDNS_EXPORT UntagResourcesResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
|
||||
|
||||
UntagResourcesResult();
|
||||
explicit UntagResourcesResult(const std::string &payload);
|
||||
~UntagResourcesResult();
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_ALIDNS_MODEL_UNTAGRESOURCESRESULT_H_
|
||||
@@ -2211,6 +2211,42 @@ AlidnsClient::DescribeSupportLinesOutcomeCallable AlidnsClient::describeSupportL
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
AlidnsClient::DescribeTagsOutcome AlidnsClient::describeTags(const DescribeTagsRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return DescribeTagsOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return DescribeTagsOutcome(DescribeTagsResult(outcome.result()));
|
||||
else
|
||||
return DescribeTagsOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void AlidnsClient::describeTagsAsync(const DescribeTagsRequest& request, const DescribeTagsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, describeTags(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
AlidnsClient::DescribeTagsOutcomeCallable AlidnsClient::describeTagsCallable(const DescribeTagsRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<DescribeTagsOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->describeTags(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
AlidnsClient::DescribeTransferDomainsOutcome AlidnsClient::describeTransferDomains(const DescribeTransferDomainsRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -2355,6 +2391,42 @@ AlidnsClient::GetTxtRecordForVerifyOutcomeCallable AlidnsClient::getTxtRecordFor
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
AlidnsClient::ListTagResourcesOutcome AlidnsClient::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 AlidnsClient::listTagResourcesAsync(const ListTagResourcesRequest& request, const ListTagResourcesAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, listTagResources(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
AlidnsClient::ListTagResourcesOutcomeCallable AlidnsClient::listTagResourcesCallable(const ListTagResourcesRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<ListTagResourcesOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->listTagResources(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
AlidnsClient::ModifyHichinaDomainDNSOutcome AlidnsClient::modifyHichinaDomainDNS(const ModifyHichinaDomainDNSRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -2715,6 +2787,42 @@ AlidnsClient::SetGtmMonitorStatusOutcomeCallable AlidnsClient::setGtmMonitorStat
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
AlidnsClient::TagResourcesOutcome AlidnsClient::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 AlidnsClient::tagResourcesAsync(const TagResourcesRequest& request, const TagResourcesAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, tagResources(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
AlidnsClient::TagResourcesOutcomeCallable AlidnsClient::tagResourcesCallable(const TagResourcesRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<TagResourcesOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->tagResources(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
AlidnsClient::TransferDomainOutcome AlidnsClient::transferDomain(const TransferDomainRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -2787,6 +2895,42 @@ AlidnsClient::UnbindInstanceDomainsOutcomeCallable AlidnsClient::unbindInstanceD
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
AlidnsClient::UntagResourcesOutcome AlidnsClient::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 AlidnsClient::untagResourcesAsync(const UntagResourcesRequest& request, const UntagResourcesAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, untagResources(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
AlidnsClient::UntagResourcesOutcomeCallable AlidnsClient::untagResourcesCallable(const UntagResourcesRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<UntagResourcesOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->untagResources(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
AlidnsClient::UpdateCustomLineOutcome AlidnsClient::updateCustomLine(const UpdateCustomLineRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
|
||||
@@ -71,6 +71,22 @@ void DescribeDomainsRequest::setPageSize(long pageSize)
|
||||
setParameter("PageSize", std::to_string(pageSize));
|
||||
}
|
||||
|
||||
std::vector<DescribeDomainsRequest::Tag> DescribeDomainsRequest::getTag()const
|
||||
{
|
||||
return tag_;
|
||||
}
|
||||
|
||||
void DescribeDomainsRequest::setTag(const std::vector<Tag>& tag)
|
||||
{
|
||||
tag_ = tag;
|
||||
for(int dep1 = 0; dep1!= tag.size(); dep1++) {
|
||||
auto tagObj = tag.at(dep1);
|
||||
std::string tagObjStr = "Tag." + std::to_string(dep1 + 1);
|
||||
setParameter(tagObjStr + ".Value", tagObj.value);
|
||||
setParameter(tagObjStr + ".Key", tagObj.key);
|
||||
}
|
||||
}
|
||||
|
||||
std::string DescribeDomainsRequest::getLang()const
|
||||
{
|
||||
return lang_;
|
||||
|
||||
@@ -77,6 +77,16 @@ void DescribeDomainsResult::parse(const std::string &payload)
|
||||
domainsObject.createTime = valueDomainsDomain["CreateTime"].asString();
|
||||
if(!valueDomainsDomain["CreateTimestamp"].isNull())
|
||||
domainsObject.createTimestamp = std::stol(valueDomainsDomain["CreateTimestamp"].asString());
|
||||
auto allTagsNode = allDomainsNode["Tags"]["Tag"];
|
||||
for (auto allDomainsNodeTagsTag : allTagsNode)
|
||||
{
|
||||
Domain::Tag tagsObject;
|
||||
if(!allDomainsNodeTagsTag["Key"].isNull())
|
||||
tagsObject.key = allDomainsNodeTagsTag["Key"].asString();
|
||||
if(!allDomainsNodeTagsTag["Value"].isNull())
|
||||
tagsObject.value = allDomainsNodeTagsTag["Value"].asString();
|
||||
domainsObject.tags.push_back(tagsObject);
|
||||
}
|
||||
auto allDnsServers = value["DnsServers"]["DnsServer"];
|
||||
for (auto value : allDnsServers)
|
||||
domainsObject.dnsServers.push_back(value.asString());
|
||||
|
||||
84
alidns/src/model/DescribeTagsRequest.cc
Normal file
84
alidns/src/model/DescribeTagsRequest.cc
Normal file
@@ -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 <alibabacloud/alidns/model/DescribeTagsRequest.h>
|
||||
|
||||
using AlibabaCloud::Alidns::Model::DescribeTagsRequest;
|
||||
|
||||
DescribeTagsRequest::DescribeTagsRequest() :
|
||||
RpcServiceRequest("alidns", "2015-01-09", "DescribeTags")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DescribeTagsRequest::~DescribeTagsRequest()
|
||||
{}
|
||||
|
||||
std::string DescribeTagsRequest::getResourceType()const
|
||||
{
|
||||
return resourceType_;
|
||||
}
|
||||
|
||||
void DescribeTagsRequest::setResourceType(const std::string& resourceType)
|
||||
{
|
||||
resourceType_ = resourceType;
|
||||
setParameter("ResourceType", resourceType);
|
||||
}
|
||||
|
||||
long DescribeTagsRequest::getPageNumber()const
|
||||
{
|
||||
return pageNumber_;
|
||||
}
|
||||
|
||||
void DescribeTagsRequest::setPageNumber(long pageNumber)
|
||||
{
|
||||
pageNumber_ = pageNumber;
|
||||
setParameter("PageNumber", std::to_string(pageNumber));
|
||||
}
|
||||
|
||||
std::string DescribeTagsRequest::getUserClientIp()const
|
||||
{
|
||||
return userClientIp_;
|
||||
}
|
||||
|
||||
void DescribeTagsRequest::setUserClientIp(const std::string& userClientIp)
|
||||
{
|
||||
userClientIp_ = userClientIp;
|
||||
setParameter("UserClientIp", userClientIp);
|
||||
}
|
||||
|
||||
long DescribeTagsRequest::getPageSize()const
|
||||
{
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
void DescribeTagsRequest::setPageSize(long pageSize)
|
||||
{
|
||||
pageSize_ = pageSize;
|
||||
setParameter("PageSize", std::to_string(pageSize));
|
||||
}
|
||||
|
||||
std::string DescribeTagsRequest::getLang()const
|
||||
{
|
||||
return lang_;
|
||||
}
|
||||
|
||||
void DescribeTagsRequest::setLang(const std::string& lang)
|
||||
{
|
||||
lang_ = lang;
|
||||
setParameter("Lang", lang);
|
||||
}
|
||||
|
||||
81
alidns/src/model/DescribeTagsResult.cc
Normal file
81
alidns/src/model/DescribeTagsResult.cc
Normal file
@@ -0,0 +1,81 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/alidns/model/DescribeTagsResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Alidns;
|
||||
using namespace AlibabaCloud::Alidns::Model;
|
||||
|
||||
DescribeTagsResult::DescribeTagsResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DescribeTagsResult::DescribeTagsResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DescribeTagsResult::~DescribeTagsResult()
|
||||
{}
|
||||
|
||||
void DescribeTagsResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allTagsNode = value["Tags"]["Tag"];
|
||||
for (auto valueTagsTag : allTagsNode)
|
||||
{
|
||||
Tag tagsObject;
|
||||
if(!valueTagsTag["Key"].isNull())
|
||||
tagsObject.key = valueTagsTag["Key"].asString();
|
||||
auto allValues = value["Values"]["Value"];
|
||||
for (auto value : allValues)
|
||||
tagsObject.values.push_back(value.asString());
|
||||
tags_.push_back(tagsObject);
|
||||
}
|
||||
if(!value["TotalCount"].isNull())
|
||||
totalCount_ = std::stol(value["TotalCount"].asString());
|
||||
if(!value["PageNumber"].isNull())
|
||||
pageNumber_ = std::stol(value["PageNumber"].asString());
|
||||
if(!value["PageSize"].isNull())
|
||||
pageSize_ = std::stol(value["PageSize"].asString());
|
||||
|
||||
}
|
||||
|
||||
long DescribeTagsResult::getTotalCount()const
|
||||
{
|
||||
return totalCount_;
|
||||
}
|
||||
|
||||
long DescribeTagsResult::getPageSize()const
|
||||
{
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
long DescribeTagsResult::getPageNumber()const
|
||||
{
|
||||
return pageNumber_;
|
||||
}
|
||||
|
||||
std::vector<DescribeTagsResult::Tag> DescribeTagsResult::getTags()const
|
||||
{
|
||||
return tags_;
|
||||
}
|
||||
|
||||
113
alidns/src/model/ListTagResourcesRequest.cc
Normal file
113
alidns/src/model/ListTagResourcesRequest.cc
Normal file
@@ -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 <alibabacloud/alidns/model/ListTagResourcesRequest.h>
|
||||
|
||||
using AlibabaCloud::Alidns::Model::ListTagResourcesRequest;
|
||||
|
||||
ListTagResourcesRequest::ListTagResourcesRequest() :
|
||||
RpcServiceRequest("alidns", "2015-01-09", "ListTagResources")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
ListTagResourcesRequest::~ListTagResourcesRequest()
|
||||
{}
|
||||
|
||||
std::vector<std::string> ListTagResourcesRequest::getResourceId()const
|
||||
{
|
||||
return resourceId_;
|
||||
}
|
||||
|
||||
void ListTagResourcesRequest::setResourceId(const std::vector<std::string>& 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);
|
||||
}
|
||||
|
||||
int ListTagResourcesRequest::getSize()const
|
||||
{
|
||||
return size_;
|
||||
}
|
||||
|
||||
void ListTagResourcesRequest::setSize(int size)
|
||||
{
|
||||
size_ = size;
|
||||
setParameter("Size", std::to_string(size));
|
||||
}
|
||||
|
||||
std::string ListTagResourcesRequest::getNextToken()const
|
||||
{
|
||||
return nextToken_;
|
||||
}
|
||||
|
||||
void ListTagResourcesRequest::setNextToken(const std::string& nextToken)
|
||||
{
|
||||
nextToken_ = nextToken;
|
||||
setParameter("NextToken", nextToken);
|
||||
}
|
||||
|
||||
std::string ListTagResourcesRequest::getUserClientIp()const
|
||||
{
|
||||
return userClientIp_;
|
||||
}
|
||||
|
||||
void ListTagResourcesRequest::setUserClientIp(const std::string& userClientIp)
|
||||
{
|
||||
userClientIp_ = userClientIp;
|
||||
setParameter("UserClientIp", userClientIp);
|
||||
}
|
||||
|
||||
std::vector<ListTagResourcesRequest::Tag> ListTagResourcesRequest::getTag()const
|
||||
{
|
||||
return tag_;
|
||||
}
|
||||
|
||||
void ListTagResourcesRequest::setTag(const std::vector<Tag>& tag)
|
||||
{
|
||||
tag_ = tag;
|
||||
for(int dep1 = 0; dep1!= tag.size(); dep1++) {
|
||||
auto tagObj = tag.at(dep1);
|
||||
std::string tagObjStr = "Tag." + std::to_string(dep1 + 1);
|
||||
setParameter(tagObjStr + ".Value", tagObj.value);
|
||||
setParameter(tagObjStr + ".Key", tagObj.key);
|
||||
}
|
||||
}
|
||||
|
||||
std::string ListTagResourcesRequest::getLang()const
|
||||
{
|
||||
return lang_;
|
||||
}
|
||||
|
||||
void ListTagResourcesRequest::setLang(const std::string& lang)
|
||||
{
|
||||
lang_ = lang;
|
||||
setParameter("Lang", lang);
|
||||
}
|
||||
|
||||
70
alidns/src/model/ListTagResourcesResult.cc
Normal file
70
alidns/src/model/ListTagResourcesResult.cc
Normal file
@@ -0,0 +1,70 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/alidns/model/ListTagResourcesResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Alidns;
|
||||
using namespace AlibabaCloud::Alidns::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["ResourceId"].isNull())
|
||||
tagResourcesObject.resourceId = valueTagResourcesTagResource["ResourceId"].asString();
|
||||
if(!valueTagResourcesTagResource["ResourceType"].isNull())
|
||||
tagResourcesObject.resourceType = valueTagResourcesTagResource["ResourceType"].asString();
|
||||
tagResources_.push_back(tagResourcesObject);
|
||||
}
|
||||
if(!value["NextToken"].isNull())
|
||||
nextToken_ = value["NextToken"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string ListTagResourcesResult::getNextToken()const
|
||||
{
|
||||
return nextToken_;
|
||||
}
|
||||
|
||||
std::vector<ListTagResourcesResult::TagResource> ListTagResourcesResult::getTagResources()const
|
||||
{
|
||||
return tagResources_;
|
||||
}
|
||||
|
||||
102
alidns/src/model/TagResourcesRequest.cc
Normal file
102
alidns/src/model/TagResourcesRequest.cc
Normal file
@@ -0,0 +1,102 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/alidns/model/TagResourcesRequest.h>
|
||||
|
||||
using AlibabaCloud::Alidns::Model::TagResourcesRequest;
|
||||
|
||||
TagResourcesRequest::TagResourcesRequest() :
|
||||
RpcServiceRequest("alidns", "2015-01-09", "TagResources")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
TagResourcesRequest::~TagResourcesRequest()
|
||||
{}
|
||||
|
||||
std::vector<std::string> TagResourcesRequest::getResourceId()const
|
||||
{
|
||||
return resourceId_;
|
||||
}
|
||||
|
||||
void TagResourcesRequest::setResourceId(const std::vector<std::string>& 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::getUserClientIp()const
|
||||
{
|
||||
return userClientIp_;
|
||||
}
|
||||
|
||||
void TagResourcesRequest::setUserClientIp(const std::string& userClientIp)
|
||||
{
|
||||
userClientIp_ = userClientIp;
|
||||
setParameter("UserClientIp", userClientIp);
|
||||
}
|
||||
|
||||
std::vector<TagResourcesRequest::Tag> TagResourcesRequest::getTag()const
|
||||
{
|
||||
return tag_;
|
||||
}
|
||||
|
||||
void TagResourcesRequest::setTag(const std::vector<Tag>& tag)
|
||||
{
|
||||
tag_ = tag;
|
||||
for(int dep1 = 0; dep1!= tag.size(); dep1++) {
|
||||
auto tagObj = tag.at(dep1);
|
||||
std::string tagObjStr = "Tag." + std::to_string(dep1 + 1);
|
||||
setParameter(tagObjStr + ".Value", tagObj.value);
|
||||
setParameter(tagObjStr + ".Key", tagObj.key);
|
||||
}
|
||||
}
|
||||
|
||||
std::string TagResourcesRequest::getLang()const
|
||||
{
|
||||
return lang_;
|
||||
}
|
||||
|
||||
void TagResourcesRequest::setLang(const std::string& lang)
|
||||
{
|
||||
lang_ = lang;
|
||||
setParameter("Lang", lang);
|
||||
}
|
||||
|
||||
bool TagResourcesRequest::getOverWrite()const
|
||||
{
|
||||
return overWrite_;
|
||||
}
|
||||
|
||||
void TagResourcesRequest::setOverWrite(bool overWrite)
|
||||
{
|
||||
overWrite_ = overWrite;
|
||||
setParameter("OverWrite", overWrite ? "true" : "false");
|
||||
}
|
||||
|
||||
44
alidns/src/model/TagResourcesResult.cc
Normal file
44
alidns/src/model/TagResourcesResult.cc
Normal file
@@ -0,0 +1,44 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/alidns/model/TagResourcesResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Alidns;
|
||||
using namespace AlibabaCloud::Alidns::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());
|
||||
|
||||
}
|
||||
|
||||
99
alidns/src/model/UntagResourcesRequest.cc
Normal file
99
alidns/src/model/UntagResourcesRequest.cc
Normal file
@@ -0,0 +1,99 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/alidns/model/UntagResourcesRequest.h>
|
||||
|
||||
using AlibabaCloud::Alidns::Model::UntagResourcesRequest;
|
||||
|
||||
UntagResourcesRequest::UntagResourcesRequest() :
|
||||
RpcServiceRequest("alidns", "2015-01-09", "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<std::string> UntagResourcesRequest::getResourceId()const
|
||||
{
|
||||
return resourceId_;
|
||||
}
|
||||
|
||||
void UntagResourcesRequest::setResourceId(const std::vector<std::string>& 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::getUserClientIp()const
|
||||
{
|
||||
return userClientIp_;
|
||||
}
|
||||
|
||||
void UntagResourcesRequest::setUserClientIp(const std::string& userClientIp)
|
||||
{
|
||||
userClientIp_ = userClientIp;
|
||||
setParameter("UserClientIp", userClientIp);
|
||||
}
|
||||
|
||||
std::string UntagResourcesRequest::getLang()const
|
||||
{
|
||||
return lang_;
|
||||
}
|
||||
|
||||
void UntagResourcesRequest::setLang(const std::string& lang)
|
||||
{
|
||||
lang_ = lang;
|
||||
setParameter("Lang", lang);
|
||||
}
|
||||
|
||||
std::vector<std::string> UntagResourcesRequest::getTagKey()const
|
||||
{
|
||||
return tagKey_;
|
||||
}
|
||||
|
||||
void UntagResourcesRequest::setTagKey(const std::vector<std::string>& tagKey)
|
||||
{
|
||||
tagKey_ = tagKey;
|
||||
for(int dep1 = 0; dep1!= tagKey.size(); dep1++) {
|
||||
setParameter("TagKey."+ std::to_string(dep1), tagKey.at(dep1));
|
||||
}
|
||||
}
|
||||
|
||||
44
alidns/src/model/UntagResourcesResult.cc
Normal file
44
alidns/src/model/UntagResourcesResult.cc
Normal file
@@ -0,0 +1,44 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/alidns/model/UntagResourcesResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Alidns;
|
||||
using namespace AlibabaCloud::Alidns::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());
|
||||
|
||||
}
|
||||
|
||||
@@ -31,21 +31,21 @@ AlimtClient::AlimtClient(const Credentials &credentials, const ClientConfigurati
|
||||
RpcServiceClient(SERVICE_NAME, std::make_shared<SimpleCredentialsProvider>(credentials), configuration)
|
||||
{
|
||||
auto locationClient = std::make_shared<LocationClient>(credentials, configuration);
|
||||
endpointProvider_ = std::make_shared<EndpointProvider>(locationClient, configuration.regionId(), SERVICE_NAME, "alimtct");
|
||||
endpointProvider_ = std::make_shared<EndpointProvider>(locationClient, configuration.regionId(), SERVICE_NAME, "alimt");
|
||||
}
|
||||
|
||||
AlimtClient::AlimtClient(const std::shared_ptr<CredentialsProvider>& credentialsProvider, const ClientConfiguration & configuration) :
|
||||
RpcServiceClient(SERVICE_NAME, credentialsProvider, configuration)
|
||||
{
|
||||
auto locationClient = std::make_shared<LocationClient>(credentialsProvider, configuration);
|
||||
endpointProvider_ = std::make_shared<EndpointProvider>(locationClient, configuration.regionId(), SERVICE_NAME, "alimtct");
|
||||
endpointProvider_ = std::make_shared<EndpointProvider>(locationClient, configuration.regionId(), SERVICE_NAME, "alimt");
|
||||
}
|
||||
|
||||
AlimtClient::AlimtClient(const std::string & accessKeyId, const std::string & accessKeySecret, const ClientConfiguration & configuration) :
|
||||
RpcServiceClient(SERVICE_NAME, std::make_shared<SimpleCredentialsProvider>(accessKeyId, accessKeySecret), configuration)
|
||||
{
|
||||
auto locationClient = std::make_shared<LocationClient>(accessKeyId, accessKeySecret, configuration);
|
||||
endpointProvider_ = std::make_shared<EndpointProvider>(locationClient, configuration.regionId(), SERVICE_NAME, "alimtct");
|
||||
endpointProvider_ = std::make_shared<EndpointProvider>(locationClient, configuration.regionId(), SERVICE_NAME, "alimt");
|
||||
}
|
||||
|
||||
AlimtClient::~AlimtClient()
|
||||
|
||||
@@ -21,6 +21,12 @@ set(arms_public_header
|
||||
include/alibabacloud/arms/ARMSExport.h )
|
||||
|
||||
set(arms_public_header_model
|
||||
include/alibabacloud/arms/model/AddGrafanaRequest.h
|
||||
include/alibabacloud/arms/model/AddGrafanaResult.h
|
||||
include/alibabacloud/arms/model/AddIntegrationRequest.h
|
||||
include/alibabacloud/arms/model/AddIntegrationResult.h
|
||||
include/alibabacloud/arms/model/CheckDataConsistencyRequest.h
|
||||
include/alibabacloud/arms/model/CheckDataConsistencyResult.h
|
||||
include/alibabacloud/arms/model/CreateAlertContactRequest.h
|
||||
include/alibabacloud/arms/model/CreateAlertContactResult.h
|
||||
include/alibabacloud/arms/model/CreateAlertContactGroupRequest.h
|
||||
@@ -35,6 +41,8 @@ set(arms_public_header_model
|
||||
include/alibabacloud/arms/model/DeleteAlertRulesResult.h
|
||||
include/alibabacloud/arms/model/DeleteRetcodeAppRequest.h
|
||||
include/alibabacloud/arms/model/DeleteRetcodeAppResult.h
|
||||
include/alibabacloud/arms/model/GetConsistencySnapshotRequest.h
|
||||
include/alibabacloud/arms/model/GetConsistencySnapshotResult.h
|
||||
include/alibabacloud/arms/model/GetPrometheusApiTokenRequest.h
|
||||
include/alibabacloud/arms/model/GetPrometheusApiTokenResult.h
|
||||
include/alibabacloud/arms/model/GetRetcodeShareUrlRequest.h
|
||||
@@ -47,6 +55,8 @@ set(arms_public_header_model
|
||||
include/alibabacloud/arms/model/ImportCustomAlertRulesResult.h
|
||||
include/alibabacloud/arms/model/ListClusterFromGrafanaRequest.h
|
||||
include/alibabacloud/arms/model/ListClusterFromGrafanaResult.h
|
||||
include/alibabacloud/arms/model/ListDashboardsRequest.h
|
||||
include/alibabacloud/arms/model/ListDashboardsResult.h
|
||||
include/alibabacloud/arms/model/ListPromClustersRequest.h
|
||||
include/alibabacloud/arms/model/ListPromClustersResult.h
|
||||
include/alibabacloud/arms/model/ListRetcodeAppsRequest.h
|
||||
@@ -90,6 +100,12 @@ set(arms_public_header_model
|
||||
|
||||
set(arms_src
|
||||
src/ARMSClient.cc
|
||||
src/model/AddGrafanaRequest.cc
|
||||
src/model/AddGrafanaResult.cc
|
||||
src/model/AddIntegrationRequest.cc
|
||||
src/model/AddIntegrationResult.cc
|
||||
src/model/CheckDataConsistencyRequest.cc
|
||||
src/model/CheckDataConsistencyResult.cc
|
||||
src/model/CreateAlertContactRequest.cc
|
||||
src/model/CreateAlertContactResult.cc
|
||||
src/model/CreateAlertContactGroupRequest.cc
|
||||
@@ -104,6 +120,8 @@ set(arms_src
|
||||
src/model/DeleteAlertRulesResult.cc
|
||||
src/model/DeleteRetcodeAppRequest.cc
|
||||
src/model/DeleteRetcodeAppResult.cc
|
||||
src/model/GetConsistencySnapshotRequest.cc
|
||||
src/model/GetConsistencySnapshotResult.cc
|
||||
src/model/GetPrometheusApiTokenRequest.cc
|
||||
src/model/GetPrometheusApiTokenResult.cc
|
||||
src/model/GetRetcodeShareUrlRequest.cc
|
||||
@@ -116,6 +134,8 @@ set(arms_src
|
||||
src/model/ImportCustomAlertRulesResult.cc
|
||||
src/model/ListClusterFromGrafanaRequest.cc
|
||||
src/model/ListClusterFromGrafanaResult.cc
|
||||
src/model/ListDashboardsRequest.cc
|
||||
src/model/ListDashboardsResult.cc
|
||||
src/model/ListPromClustersRequest.cc
|
||||
src/model/ListPromClustersResult.cc
|
||||
src/model/ListRetcodeAppsRequest.cc
|
||||
|
||||
@@ -22,6 +22,12 @@
|
||||
#include <alibabacloud/core/EndpointProvider.h>
|
||||
#include <alibabacloud/core/RpcServiceClient.h>
|
||||
#include "ARMSExport.h"
|
||||
#include "model/AddGrafanaRequest.h"
|
||||
#include "model/AddGrafanaResult.h"
|
||||
#include "model/AddIntegrationRequest.h"
|
||||
#include "model/AddIntegrationResult.h"
|
||||
#include "model/CheckDataConsistencyRequest.h"
|
||||
#include "model/CheckDataConsistencyResult.h"
|
||||
#include "model/CreateAlertContactRequest.h"
|
||||
#include "model/CreateAlertContactResult.h"
|
||||
#include "model/CreateAlertContactGroupRequest.h"
|
||||
@@ -36,6 +42,8 @@
|
||||
#include "model/DeleteAlertRulesResult.h"
|
||||
#include "model/DeleteRetcodeAppRequest.h"
|
||||
#include "model/DeleteRetcodeAppResult.h"
|
||||
#include "model/GetConsistencySnapshotRequest.h"
|
||||
#include "model/GetConsistencySnapshotResult.h"
|
||||
#include "model/GetPrometheusApiTokenRequest.h"
|
||||
#include "model/GetPrometheusApiTokenResult.h"
|
||||
#include "model/GetRetcodeShareUrlRequest.h"
|
||||
@@ -48,6 +56,8 @@
|
||||
#include "model/ImportCustomAlertRulesResult.h"
|
||||
#include "model/ListClusterFromGrafanaRequest.h"
|
||||
#include "model/ListClusterFromGrafanaResult.h"
|
||||
#include "model/ListDashboardsRequest.h"
|
||||
#include "model/ListDashboardsResult.h"
|
||||
#include "model/ListPromClustersRequest.h"
|
||||
#include "model/ListPromClustersResult.h"
|
||||
#include "model/ListRetcodeAppsRequest.h"
|
||||
@@ -97,6 +107,15 @@ namespace AlibabaCloud
|
||||
class ALIBABACLOUD_ARMS_EXPORT ARMSClient : public RpcServiceClient
|
||||
{
|
||||
public:
|
||||
typedef Outcome<Error, Model::AddGrafanaResult> AddGrafanaOutcome;
|
||||
typedef std::future<AddGrafanaOutcome> AddGrafanaOutcomeCallable;
|
||||
typedef std::function<void(const ARMSClient*, const Model::AddGrafanaRequest&, const AddGrafanaOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> AddGrafanaAsyncHandler;
|
||||
typedef Outcome<Error, Model::AddIntegrationResult> AddIntegrationOutcome;
|
||||
typedef std::future<AddIntegrationOutcome> AddIntegrationOutcomeCallable;
|
||||
typedef std::function<void(const ARMSClient*, const Model::AddIntegrationRequest&, const AddIntegrationOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> AddIntegrationAsyncHandler;
|
||||
typedef Outcome<Error, Model::CheckDataConsistencyResult> CheckDataConsistencyOutcome;
|
||||
typedef std::future<CheckDataConsistencyOutcome> CheckDataConsistencyOutcomeCallable;
|
||||
typedef std::function<void(const ARMSClient*, const Model::CheckDataConsistencyRequest&, const CheckDataConsistencyOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> CheckDataConsistencyAsyncHandler;
|
||||
typedef Outcome<Error, Model::CreateAlertContactResult> CreateAlertContactOutcome;
|
||||
typedef std::future<CreateAlertContactOutcome> CreateAlertContactOutcomeCallable;
|
||||
typedef std::function<void(const ARMSClient*, const Model::CreateAlertContactRequest&, const CreateAlertContactOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> CreateAlertContactAsyncHandler;
|
||||
@@ -118,6 +137,9 @@ namespace AlibabaCloud
|
||||
typedef Outcome<Error, Model::DeleteRetcodeAppResult> DeleteRetcodeAppOutcome;
|
||||
typedef std::future<DeleteRetcodeAppOutcome> DeleteRetcodeAppOutcomeCallable;
|
||||
typedef std::function<void(const ARMSClient*, const Model::DeleteRetcodeAppRequest&, const DeleteRetcodeAppOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DeleteRetcodeAppAsyncHandler;
|
||||
typedef Outcome<Error, Model::GetConsistencySnapshotResult> GetConsistencySnapshotOutcome;
|
||||
typedef std::future<GetConsistencySnapshotOutcome> GetConsistencySnapshotOutcomeCallable;
|
||||
typedef std::function<void(const ARMSClient*, const Model::GetConsistencySnapshotRequest&, const GetConsistencySnapshotOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetConsistencySnapshotAsyncHandler;
|
||||
typedef Outcome<Error, Model::GetPrometheusApiTokenResult> GetPrometheusApiTokenOutcome;
|
||||
typedef std::future<GetPrometheusApiTokenOutcome> GetPrometheusApiTokenOutcomeCallable;
|
||||
typedef std::function<void(const ARMSClient*, const Model::GetPrometheusApiTokenRequest&, const GetPrometheusApiTokenOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetPrometheusApiTokenAsyncHandler;
|
||||
@@ -136,6 +158,9 @@ namespace AlibabaCloud
|
||||
typedef Outcome<Error, Model::ListClusterFromGrafanaResult> ListClusterFromGrafanaOutcome;
|
||||
typedef std::future<ListClusterFromGrafanaOutcome> ListClusterFromGrafanaOutcomeCallable;
|
||||
typedef std::function<void(const ARMSClient*, const Model::ListClusterFromGrafanaRequest&, const ListClusterFromGrafanaOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ListClusterFromGrafanaAsyncHandler;
|
||||
typedef Outcome<Error, Model::ListDashboardsResult> ListDashboardsOutcome;
|
||||
typedef std::future<ListDashboardsOutcome> ListDashboardsOutcomeCallable;
|
||||
typedef std::function<void(const ARMSClient*, const Model::ListDashboardsRequest&, const ListDashboardsOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ListDashboardsAsyncHandler;
|
||||
typedef Outcome<Error, Model::ListPromClustersResult> ListPromClustersOutcome;
|
||||
typedef std::future<ListPromClustersOutcome> ListPromClustersOutcomeCallable;
|
||||
typedef std::function<void(const ARMSClient*, const Model::ListPromClustersRequest&, const ListPromClustersOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ListPromClustersAsyncHandler;
|
||||
@@ -201,6 +226,15 @@ namespace AlibabaCloud
|
||||
ARMSClient(const std::shared_ptr<CredentialsProvider> &credentialsProvider, const ClientConfiguration &configuration);
|
||||
ARMSClient(const std::string &accessKeyId, const std::string &accessKeySecret, const ClientConfiguration &configuration);
|
||||
~ARMSClient();
|
||||
AddGrafanaOutcome addGrafana(const Model::AddGrafanaRequest &request)const;
|
||||
void addGrafanaAsync(const Model::AddGrafanaRequest& request, const AddGrafanaAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
AddGrafanaOutcomeCallable addGrafanaCallable(const Model::AddGrafanaRequest& request) const;
|
||||
AddIntegrationOutcome addIntegration(const Model::AddIntegrationRequest &request)const;
|
||||
void addIntegrationAsync(const Model::AddIntegrationRequest& request, const AddIntegrationAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
AddIntegrationOutcomeCallable addIntegrationCallable(const Model::AddIntegrationRequest& request) const;
|
||||
CheckDataConsistencyOutcome checkDataConsistency(const Model::CheckDataConsistencyRequest &request)const;
|
||||
void checkDataConsistencyAsync(const Model::CheckDataConsistencyRequest& request, const CheckDataConsistencyAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
CheckDataConsistencyOutcomeCallable checkDataConsistencyCallable(const Model::CheckDataConsistencyRequest& request) const;
|
||||
CreateAlertContactOutcome createAlertContact(const Model::CreateAlertContactRequest &request)const;
|
||||
void createAlertContactAsync(const Model::CreateAlertContactRequest& request, const CreateAlertContactAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
CreateAlertContactOutcomeCallable createAlertContactCallable(const Model::CreateAlertContactRequest& request) const;
|
||||
@@ -222,6 +256,9 @@ namespace AlibabaCloud
|
||||
DeleteRetcodeAppOutcome deleteRetcodeApp(const Model::DeleteRetcodeAppRequest &request)const;
|
||||
void deleteRetcodeAppAsync(const Model::DeleteRetcodeAppRequest& request, const DeleteRetcodeAppAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DeleteRetcodeAppOutcomeCallable deleteRetcodeAppCallable(const Model::DeleteRetcodeAppRequest& request) const;
|
||||
GetConsistencySnapshotOutcome getConsistencySnapshot(const Model::GetConsistencySnapshotRequest &request)const;
|
||||
void getConsistencySnapshotAsync(const Model::GetConsistencySnapshotRequest& request, const GetConsistencySnapshotAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
GetConsistencySnapshotOutcomeCallable getConsistencySnapshotCallable(const Model::GetConsistencySnapshotRequest& request) const;
|
||||
GetPrometheusApiTokenOutcome getPrometheusApiToken(const Model::GetPrometheusApiTokenRequest &request)const;
|
||||
void getPrometheusApiTokenAsync(const Model::GetPrometheusApiTokenRequest& request, const GetPrometheusApiTokenAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
GetPrometheusApiTokenOutcomeCallable getPrometheusApiTokenCallable(const Model::GetPrometheusApiTokenRequest& request) const;
|
||||
@@ -240,6 +277,9 @@ namespace AlibabaCloud
|
||||
ListClusterFromGrafanaOutcome listClusterFromGrafana(const Model::ListClusterFromGrafanaRequest &request)const;
|
||||
void listClusterFromGrafanaAsync(const Model::ListClusterFromGrafanaRequest& request, const ListClusterFromGrafanaAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
ListClusterFromGrafanaOutcomeCallable listClusterFromGrafanaCallable(const Model::ListClusterFromGrafanaRequest& request) const;
|
||||
ListDashboardsOutcome listDashboards(const Model::ListDashboardsRequest &request)const;
|
||||
void listDashboardsAsync(const Model::ListDashboardsRequest& request, const ListDashboardsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
ListDashboardsOutcomeCallable listDashboardsCallable(const Model::ListDashboardsRequest& request) const;
|
||||
ListPromClustersOutcome listPromClusters(const Model::ListPromClustersRequest &request)const;
|
||||
void listPromClustersAsync(const Model::ListPromClustersRequest& request, const ListPromClustersAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
ListPromClustersOutcomeCallable listPromClustersCallable(const Model::ListPromClustersRequest& request) const;
|
||||
|
||||
54
arms/include/alibabacloud/arms/model/AddGrafanaRequest.h
Normal file
54
arms/include/alibabacloud/arms/model/AddGrafanaRequest.h
Normal file
@@ -0,0 +1,54 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_ARMS_MODEL_ADDGRAFANAREQUEST_H_
|
||||
#define ALIBABACLOUD_ARMS_MODEL_ADDGRAFANAREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/arms/ARMSExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace ARMS
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_ARMS_EXPORT AddGrafanaRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
AddGrafanaRequest();
|
||||
~AddGrafanaRequest();
|
||||
|
||||
std::string getRegionId()const;
|
||||
void setRegionId(const std::string& regionId);
|
||||
std::string getIntegration()const;
|
||||
void setIntegration(const std::string& integration);
|
||||
std::string getClusterId()const;
|
||||
void setClusterId(const std::string& clusterId);
|
||||
|
||||
private:
|
||||
std::string regionId_;
|
||||
std::string integration_;
|
||||
std::string clusterId_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_ARMS_MODEL_ADDGRAFANAREQUEST_H_
|
||||
51
arms/include/alibabacloud/arms/model/AddGrafanaResult.h
Normal file
51
arms/include/alibabacloud/arms/model/AddGrafanaResult.h
Normal file
@@ -0,0 +1,51 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_ARMS_MODEL_ADDGRAFANARESULT_H_
|
||||
#define ALIBABACLOUD_ARMS_MODEL_ADDGRAFANARESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/arms/ARMSExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace ARMS
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_ARMS_EXPORT AddGrafanaResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
|
||||
|
||||
AddGrafanaResult();
|
||||
explicit AddGrafanaResult(const std::string &payload);
|
||||
~AddGrafanaResult();
|
||||
std::string getData()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::string data_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_ARMS_MODEL_ADDGRAFANARESULT_H_
|
||||
54
arms/include/alibabacloud/arms/model/AddIntegrationRequest.h
Normal file
54
arms/include/alibabacloud/arms/model/AddIntegrationRequest.h
Normal file
@@ -0,0 +1,54 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_ARMS_MODEL_ADDINTEGRATIONREQUEST_H_
|
||||
#define ALIBABACLOUD_ARMS_MODEL_ADDINTEGRATIONREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/arms/ARMSExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace ARMS
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_ARMS_EXPORT AddIntegrationRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
AddIntegrationRequest();
|
||||
~AddIntegrationRequest();
|
||||
|
||||
std::string getRegionId()const;
|
||||
void setRegionId(const std::string& regionId);
|
||||
std::string getIntegration()const;
|
||||
void setIntegration(const std::string& integration);
|
||||
std::string getClusterId()const;
|
||||
void setClusterId(const std::string& clusterId);
|
||||
|
||||
private:
|
||||
std::string regionId_;
|
||||
std::string integration_;
|
||||
std::string clusterId_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_ARMS_MODEL_ADDINTEGRATIONREQUEST_H_
|
||||
51
arms/include/alibabacloud/arms/model/AddIntegrationResult.h
Normal file
51
arms/include/alibabacloud/arms/model/AddIntegrationResult.h
Normal file
@@ -0,0 +1,51 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_ARMS_MODEL_ADDINTEGRATIONRESULT_H_
|
||||
#define ALIBABACLOUD_ARMS_MODEL_ADDINTEGRATIONRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/arms/ARMSExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace ARMS
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_ARMS_EXPORT AddIntegrationResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
|
||||
|
||||
AddIntegrationResult();
|
||||
explicit AddIntegrationResult(const std::string &payload);
|
||||
~AddIntegrationResult();
|
||||
std::string getData()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::string data_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_ARMS_MODEL_ADDINTEGRATIONRESULT_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_ARMS_MODEL_CHECKDATACONSISTENCYREQUEST_H_
|
||||
#define ALIBABACLOUD_ARMS_MODEL_CHECKDATACONSISTENCYREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/arms/ARMSExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace ARMS
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_ARMS_EXPORT CheckDataConsistencyRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
CheckDataConsistencyRequest();
|
||||
~CheckDataConsistencyRequest();
|
||||
|
||||
long getCurrentTimestamp()const;
|
||||
void setCurrentTimestamp(long currentTimestamp);
|
||||
std::string getRegionId()const;
|
||||
void setRegionId(const std::string& regionId);
|
||||
std::string getAppType()const;
|
||||
void setAppType(const std::string& appType);
|
||||
std::string getPid()const;
|
||||
void setPid(const std::string& pid);
|
||||
std::string getProxyUserId()const;
|
||||
void setProxyUserId(const std::string& proxyUserId);
|
||||
|
||||
private:
|
||||
long currentTimestamp_;
|
||||
std::string regionId_;
|
||||
std::string appType_;
|
||||
std::string pid_;
|
||||
std::string proxyUserId_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_ARMS_MODEL_CHECKDATACONSISTENCYREQUEST_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_ARMS_MODEL_CHECKDATACONSISTENCYRESULT_H_
|
||||
#define ALIBABACLOUD_ARMS_MODEL_CHECKDATACONSISTENCYRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/arms/ARMSExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace ARMS
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_ARMS_EXPORT CheckDataConsistencyResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
|
||||
|
||||
CheckDataConsistencyResult();
|
||||
explicit CheckDataConsistencyResult(const std::string &payload);
|
||||
~CheckDataConsistencyResult();
|
||||
bool getIsDataConsistency()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
bool isDataConsistency_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_ARMS_MODEL_CHECKDATACONSISTENCYRESULT_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_ARMS_MODEL_GETCONSISTENCYSNAPSHOTREQUEST_H_
|
||||
#define ALIBABACLOUD_ARMS_MODEL_GETCONSISTENCYSNAPSHOTREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/arms/ARMSExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace ARMS
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_ARMS_EXPORT GetConsistencySnapshotRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
GetConsistencySnapshotRequest();
|
||||
~GetConsistencySnapshotRequest();
|
||||
|
||||
long getCurrentTimestamp()const;
|
||||
void setCurrentTimestamp(long currentTimestamp);
|
||||
std::string getRegionId()const;
|
||||
void setRegionId(const std::string& regionId);
|
||||
std::string getAppType()const;
|
||||
void setAppType(const std::string& appType);
|
||||
std::string getPid()const;
|
||||
void setPid(const std::string& pid);
|
||||
std::string getProxyUserId()const;
|
||||
void setProxyUserId(const std::string& proxyUserId);
|
||||
|
||||
private:
|
||||
long currentTimestamp_;
|
||||
std::string regionId_;
|
||||
std::string appType_;
|
||||
std::string pid_;
|
||||
std::string proxyUserId_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_ARMS_MODEL_GETCONSISTENCYSNAPSHOTREQUEST_H_
|
||||
@@ -0,0 +1,89 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT 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_ARMS_MODEL_GETCONSISTENCYSNAPSHOTRESULT_H_
|
||||
#define ALIBABACLOUD_ARMS_MODEL_GETCONSISTENCYSNAPSHOTRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/arms/ARMSExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace ARMS
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_ARMS_EXPORT GetConsistencySnapshotResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct ConsistencyResult
|
||||
{
|
||||
struct SlsShardWatermarkBean
|
||||
{
|
||||
struct CheckPointResponse
|
||||
{
|
||||
std::string consumer;
|
||||
long updateTime;
|
||||
int shard;
|
||||
std::string checkPoint;
|
||||
};
|
||||
std::string userId;
|
||||
std::vector<CheckPointResponse> checkPointResponses;
|
||||
std::string pid;
|
||||
std::vector<std::string> cursorUpdateTimes;
|
||||
std::string regionId;
|
||||
std::string appType;
|
||||
};
|
||||
struct AgentHeartbeatInfo
|
||||
{
|
||||
long startTimestamp;
|
||||
std::string agentVersion;
|
||||
std::string ip;
|
||||
std::string hostname;
|
||||
long lastHeartbeatTime;
|
||||
std::string pid;
|
||||
std::string regionId;
|
||||
std::string appType;
|
||||
std::string procId;
|
||||
};
|
||||
long lastSlsShardWatermarkTimestamp;
|
||||
long lastAgentInfoTimestamp;
|
||||
long judgeTimestamp;
|
||||
SlsShardWatermarkBean slsShardWatermarkBean;
|
||||
std::string barrierPointsLastTimestampMap;
|
||||
long lastBarrierTimestamp;
|
||||
std::vector<AgentHeartbeatInfo> agentHeartbeatInfos;
|
||||
};
|
||||
|
||||
|
||||
GetConsistencySnapshotResult();
|
||||
explicit GetConsistencySnapshotResult(const std::string &payload);
|
||||
~GetConsistencySnapshotResult();
|
||||
ConsistencyResult getConsistencyResult()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
ConsistencyResult consistencyResult_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_ARMS_MODEL_GETCONSISTENCYSNAPSHOTRESULT_H_
|
||||
51
arms/include/alibabacloud/arms/model/ListDashboardsRequest.h
Normal file
51
arms/include/alibabacloud/arms/model/ListDashboardsRequest.h
Normal file
@@ -0,0 +1,51 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_ARMS_MODEL_LISTDASHBOARDSREQUEST_H_
|
||||
#define ALIBABACLOUD_ARMS_MODEL_LISTDASHBOARDSREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/arms/ARMSExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace ARMS
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_ARMS_EXPORT ListDashboardsRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
ListDashboardsRequest();
|
||||
~ListDashboardsRequest();
|
||||
|
||||
std::string getRegionId()const;
|
||||
void setRegionId(const std::string& regionId);
|
||||
std::string getClusterId()const;
|
||||
void setClusterId(const std::string& clusterId);
|
||||
|
||||
private:
|
||||
std::string regionId_;
|
||||
std::string clusterId_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_ARMS_MODEL_LISTDASHBOARDSREQUEST_H_
|
||||
@@ -14,55 +14,50 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_PUSH_MODEL_QUERYPUSHLISTRESULT_H_
|
||||
#define ALIBABACLOUD_PUSH_MODEL_QUERYPUSHLISTRESULT_H_
|
||||
#ifndef ALIBABACLOUD_ARMS_MODEL_LISTDASHBOARDSRESULT_H_
|
||||
#define ALIBABACLOUD_ARMS_MODEL_LISTDASHBOARDSRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/push/PushExport.h>
|
||||
#include <alibabacloud/arms/ARMSExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Push
|
||||
namespace ARMS
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_PUSH_EXPORT QueryPushListResult : public ServiceResult
|
||||
class ALIBABACLOUD_ARMS_EXPORT ListDashboardsResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct PushMessageInfo
|
||||
struct DashboardVosItem
|
||||
{
|
||||
std::string deviceType;
|
||||
std::string uid;
|
||||
std::string type;
|
||||
std::string pushTime;
|
||||
long appKey;
|
||||
std::string title;
|
||||
std::string body;
|
||||
std::string appName;
|
||||
std::string messageId;
|
||||
std::string time;
|
||||
std::string id;
|
||||
std::string exporter;
|
||||
std::string url;
|
||||
std::vector<std::string> tags;
|
||||
bool isArmsExporter;
|
||||
};
|
||||
|
||||
|
||||
QueryPushListResult();
|
||||
explicit QueryPushListResult(const std::string &payload);
|
||||
~QueryPushListResult();
|
||||
int getPageSize()const;
|
||||
int getPage()const;
|
||||
std::vector<PushMessageInfo> getPushMessageInfos()const;
|
||||
bool getHasNext()const;
|
||||
ListDashboardsResult();
|
||||
explicit ListDashboardsResult(const std::string &payload);
|
||||
~ListDashboardsResult();
|
||||
std::vector<DashboardVosItem> getDashboardVos()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
int pageSize_;
|
||||
int page_;
|
||||
std::vector<PushMessageInfo> pushMessageInfos_;
|
||||
bool hasNext_;
|
||||
std::vector<DashboardVosItem> dashboardVos_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_PUSH_MODEL_QUERYPUSHLISTRESULT_H_
|
||||
#endif // !ALIBABACLOUD_ARMS_MODEL_LISTDASHBOARDSRESULT_H_
|
||||
@@ -41,6 +41,8 @@ namespace AlibabaCloud
|
||||
QueryMetricRequest();
|
||||
~QueryMetricRequest();
|
||||
|
||||
std::string getConsistencyQueryStrategy()const;
|
||||
void setConsistencyQueryStrategy(const std::string& consistencyQueryStrategy);
|
||||
long getEndTime()const;
|
||||
void setEndTime(long endTime);
|
||||
std::string getOrderBy()const;
|
||||
@@ -49,6 +51,8 @@ namespace AlibabaCloud
|
||||
void setStartTime(long startTime);
|
||||
std::vector<Filters> getFilters()const;
|
||||
void setFilters(const std::vector<Filters>& filters);
|
||||
std::string getConsistencyDataKey()const;
|
||||
void setConsistencyDataKey(const std::string& consistencyDataKey);
|
||||
std::string getProxyUserId()const;
|
||||
void setProxyUserId(const std::string& proxyUserId);
|
||||
std::vector<std::string> getMeasures()const;
|
||||
@@ -65,10 +69,12 @@ namespace AlibabaCloud
|
||||
void setOrder(const std::string& order);
|
||||
|
||||
private:
|
||||
std::string consistencyQueryStrategy_;
|
||||
long endTime_;
|
||||
std::string orderBy_;
|
||||
long startTime_;
|
||||
std::vector<Filters> filters_;
|
||||
std::string consistencyDataKey_;
|
||||
std::string proxyUserId_;
|
||||
std::vector<std::string> measures_;
|
||||
int intervalInSec_;
|
||||
|
||||
@@ -34,14 +34,14 @@ namespace AlibabaCloud
|
||||
public:
|
||||
struct PageBean
|
||||
{
|
||||
struct AlertRule
|
||||
struct AlertRuleEntity
|
||||
{
|
||||
struct AlarmContext
|
||||
{
|
||||
std::string alarmContentTemplate;
|
||||
std::string alarmContentSubTitle;
|
||||
};
|
||||
struct AlertRule1
|
||||
struct AlertRule
|
||||
{
|
||||
struct Rule
|
||||
{
|
||||
@@ -89,16 +89,16 @@ namespace AlibabaCloud
|
||||
std::string contactGroupIdList;
|
||||
Notice notice;
|
||||
std::string userId;
|
||||
AlertRule1 alertRule1;
|
||||
std::string alertTitle;
|
||||
long updateTime;
|
||||
std::string alertLevel;
|
||||
long id;
|
||||
std::string regionId;
|
||||
AlertRule alertRule;
|
||||
};
|
||||
int totalCount;
|
||||
int pageSize;
|
||||
std::vector<AlertRule> alertRules;
|
||||
std::vector<AlertRuleEntity> alertRules;
|
||||
int pageNumber;
|
||||
};
|
||||
|
||||
|
||||
@@ -51,6 +51,114 @@ ARMSClient::ARMSClient(const std::string & accessKeyId, const std::string & acce
|
||||
ARMSClient::~ARMSClient()
|
||||
{}
|
||||
|
||||
ARMSClient::AddGrafanaOutcome ARMSClient::addGrafana(const AddGrafanaRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return AddGrafanaOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return AddGrafanaOutcome(AddGrafanaResult(outcome.result()));
|
||||
else
|
||||
return AddGrafanaOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void ARMSClient::addGrafanaAsync(const AddGrafanaRequest& request, const AddGrafanaAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, addGrafana(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
ARMSClient::AddGrafanaOutcomeCallable ARMSClient::addGrafanaCallable(const AddGrafanaRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<AddGrafanaOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->addGrafana(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
ARMSClient::AddIntegrationOutcome ARMSClient::addIntegration(const AddIntegrationRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return AddIntegrationOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return AddIntegrationOutcome(AddIntegrationResult(outcome.result()));
|
||||
else
|
||||
return AddIntegrationOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void ARMSClient::addIntegrationAsync(const AddIntegrationRequest& request, const AddIntegrationAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, addIntegration(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
ARMSClient::AddIntegrationOutcomeCallable ARMSClient::addIntegrationCallable(const AddIntegrationRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<AddIntegrationOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->addIntegration(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
ARMSClient::CheckDataConsistencyOutcome ARMSClient::checkDataConsistency(const CheckDataConsistencyRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return CheckDataConsistencyOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return CheckDataConsistencyOutcome(CheckDataConsistencyResult(outcome.result()));
|
||||
else
|
||||
return CheckDataConsistencyOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void ARMSClient::checkDataConsistencyAsync(const CheckDataConsistencyRequest& request, const CheckDataConsistencyAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, checkDataConsistency(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
ARMSClient::CheckDataConsistencyOutcomeCallable ARMSClient::checkDataConsistencyCallable(const CheckDataConsistencyRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<CheckDataConsistencyOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->checkDataConsistency(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
ARMSClient::CreateAlertContactOutcome ARMSClient::createAlertContact(const CreateAlertContactRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -303,6 +411,42 @@ ARMSClient::DeleteRetcodeAppOutcomeCallable ARMSClient::deleteRetcodeAppCallable
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
ARMSClient::GetConsistencySnapshotOutcome ARMSClient::getConsistencySnapshot(const GetConsistencySnapshotRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return GetConsistencySnapshotOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return GetConsistencySnapshotOutcome(GetConsistencySnapshotResult(outcome.result()));
|
||||
else
|
||||
return GetConsistencySnapshotOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void ARMSClient::getConsistencySnapshotAsync(const GetConsistencySnapshotRequest& request, const GetConsistencySnapshotAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, getConsistencySnapshot(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
ARMSClient::GetConsistencySnapshotOutcomeCallable ARMSClient::getConsistencySnapshotCallable(const GetConsistencySnapshotRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<GetConsistencySnapshotOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->getConsistencySnapshot(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
ARMSClient::GetPrometheusApiTokenOutcome ARMSClient::getPrometheusApiToken(const GetPrometheusApiTokenRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -519,6 +663,42 @@ ARMSClient::ListClusterFromGrafanaOutcomeCallable ARMSClient::listClusterFromGra
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
ARMSClient::ListDashboardsOutcome ARMSClient::listDashboards(const ListDashboardsRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return ListDashboardsOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return ListDashboardsOutcome(ListDashboardsResult(outcome.result()));
|
||||
else
|
||||
return ListDashboardsOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void ARMSClient::listDashboardsAsync(const ListDashboardsRequest& request, const ListDashboardsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, listDashboards(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
ARMSClient::ListDashboardsOutcomeCallable ARMSClient::listDashboardsCallable(const ListDashboardsRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<ListDashboardsOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->listDashboards(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
ARMSClient::ListPromClustersOutcome ARMSClient::listPromClusters(const ListPromClustersRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
|
||||
62
arms/src/model/AddGrafanaRequest.cc
Normal file
62
arms/src/model/AddGrafanaRequest.cc
Normal file
@@ -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 <alibabacloud/arms/model/AddGrafanaRequest.h>
|
||||
|
||||
using AlibabaCloud::ARMS::Model::AddGrafanaRequest;
|
||||
|
||||
AddGrafanaRequest::AddGrafanaRequest() :
|
||||
RpcServiceRequest("arms", "2019-08-08", "AddGrafana")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
AddGrafanaRequest::~AddGrafanaRequest()
|
||||
{}
|
||||
|
||||
std::string AddGrafanaRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void AddGrafanaRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
std::string AddGrafanaRequest::getIntegration()const
|
||||
{
|
||||
return integration_;
|
||||
}
|
||||
|
||||
void AddGrafanaRequest::setIntegration(const std::string& integration)
|
||||
{
|
||||
integration_ = integration;
|
||||
setParameter("Integration", integration);
|
||||
}
|
||||
|
||||
std::string AddGrafanaRequest::getClusterId()const
|
||||
{
|
||||
return clusterId_;
|
||||
}
|
||||
|
||||
void AddGrafanaRequest::setClusterId(const std::string& clusterId)
|
||||
{
|
||||
clusterId_ = clusterId;
|
||||
setParameter("ClusterId", clusterId);
|
||||
}
|
||||
|
||||
51
arms/src/model/AddGrafanaResult.cc
Normal file
51
arms/src/model/AddGrafanaResult.cc
Normal file
@@ -0,0 +1,51 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/arms/model/AddGrafanaResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::ARMS;
|
||||
using namespace AlibabaCloud::ARMS::Model;
|
||||
|
||||
AddGrafanaResult::AddGrafanaResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
AddGrafanaResult::AddGrafanaResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
AddGrafanaResult::~AddGrafanaResult()
|
||||
{}
|
||||
|
||||
void AddGrafanaResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["Data"].isNull())
|
||||
data_ = value["Data"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string AddGrafanaResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
62
arms/src/model/AddIntegrationRequest.cc
Normal file
62
arms/src/model/AddIntegrationRequest.cc
Normal file
@@ -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 <alibabacloud/arms/model/AddIntegrationRequest.h>
|
||||
|
||||
using AlibabaCloud::ARMS::Model::AddIntegrationRequest;
|
||||
|
||||
AddIntegrationRequest::AddIntegrationRequest() :
|
||||
RpcServiceRequest("arms", "2019-08-08", "AddIntegration")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
AddIntegrationRequest::~AddIntegrationRequest()
|
||||
{}
|
||||
|
||||
std::string AddIntegrationRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void AddIntegrationRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
std::string AddIntegrationRequest::getIntegration()const
|
||||
{
|
||||
return integration_;
|
||||
}
|
||||
|
||||
void AddIntegrationRequest::setIntegration(const std::string& integration)
|
||||
{
|
||||
integration_ = integration;
|
||||
setParameter("Integration", integration);
|
||||
}
|
||||
|
||||
std::string AddIntegrationRequest::getClusterId()const
|
||||
{
|
||||
return clusterId_;
|
||||
}
|
||||
|
||||
void AddIntegrationRequest::setClusterId(const std::string& clusterId)
|
||||
{
|
||||
clusterId_ = clusterId;
|
||||
setParameter("ClusterId", clusterId);
|
||||
}
|
||||
|
||||
51
arms/src/model/AddIntegrationResult.cc
Normal file
51
arms/src/model/AddIntegrationResult.cc
Normal file
@@ -0,0 +1,51 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/arms/model/AddIntegrationResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::ARMS;
|
||||
using namespace AlibabaCloud::ARMS::Model;
|
||||
|
||||
AddIntegrationResult::AddIntegrationResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
AddIntegrationResult::AddIntegrationResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
AddIntegrationResult::~AddIntegrationResult()
|
||||
{}
|
||||
|
||||
void AddIntegrationResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["Data"].isNull())
|
||||
data_ = value["Data"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string AddIntegrationResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
84
arms/src/model/CheckDataConsistencyRequest.cc
Normal file
84
arms/src/model/CheckDataConsistencyRequest.cc
Normal file
@@ -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 <alibabacloud/arms/model/CheckDataConsistencyRequest.h>
|
||||
|
||||
using AlibabaCloud::ARMS::Model::CheckDataConsistencyRequest;
|
||||
|
||||
CheckDataConsistencyRequest::CheckDataConsistencyRequest() :
|
||||
RpcServiceRequest("arms", "2019-08-08", "CheckDataConsistency")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
CheckDataConsistencyRequest::~CheckDataConsistencyRequest()
|
||||
{}
|
||||
|
||||
long CheckDataConsistencyRequest::getCurrentTimestamp()const
|
||||
{
|
||||
return currentTimestamp_;
|
||||
}
|
||||
|
||||
void CheckDataConsistencyRequest::setCurrentTimestamp(long currentTimestamp)
|
||||
{
|
||||
currentTimestamp_ = currentTimestamp;
|
||||
setParameter("CurrentTimestamp", std::to_string(currentTimestamp));
|
||||
}
|
||||
|
||||
std::string CheckDataConsistencyRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void CheckDataConsistencyRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
std::string CheckDataConsistencyRequest::getAppType()const
|
||||
{
|
||||
return appType_;
|
||||
}
|
||||
|
||||
void CheckDataConsistencyRequest::setAppType(const std::string& appType)
|
||||
{
|
||||
appType_ = appType;
|
||||
setParameter("AppType", appType);
|
||||
}
|
||||
|
||||
std::string CheckDataConsistencyRequest::getPid()const
|
||||
{
|
||||
return pid_;
|
||||
}
|
||||
|
||||
void CheckDataConsistencyRequest::setPid(const std::string& pid)
|
||||
{
|
||||
pid_ = pid;
|
||||
setParameter("Pid", pid);
|
||||
}
|
||||
|
||||
std::string CheckDataConsistencyRequest::getProxyUserId()const
|
||||
{
|
||||
return proxyUserId_;
|
||||
}
|
||||
|
||||
void CheckDataConsistencyRequest::setProxyUserId(const std::string& proxyUserId)
|
||||
{
|
||||
proxyUserId_ = proxyUserId;
|
||||
setParameter("ProxyUserId", proxyUserId);
|
||||
}
|
||||
|
||||
51
arms/src/model/CheckDataConsistencyResult.cc
Normal file
51
arms/src/model/CheckDataConsistencyResult.cc
Normal file
@@ -0,0 +1,51 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/arms/model/CheckDataConsistencyResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::ARMS;
|
||||
using namespace AlibabaCloud::ARMS::Model;
|
||||
|
||||
CheckDataConsistencyResult::CheckDataConsistencyResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
CheckDataConsistencyResult::CheckDataConsistencyResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
CheckDataConsistencyResult::~CheckDataConsistencyResult()
|
||||
{}
|
||||
|
||||
void CheckDataConsistencyResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["IsDataConsistency"].isNull())
|
||||
isDataConsistency_ = value["IsDataConsistency"].asString() == "true";
|
||||
|
||||
}
|
||||
|
||||
bool CheckDataConsistencyResult::getIsDataConsistency()const
|
||||
{
|
||||
return isDataConsistency_;
|
||||
}
|
||||
|
||||
84
arms/src/model/GetConsistencySnapshotRequest.cc
Normal file
84
arms/src/model/GetConsistencySnapshotRequest.cc
Normal file
@@ -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 <alibabacloud/arms/model/GetConsistencySnapshotRequest.h>
|
||||
|
||||
using AlibabaCloud::ARMS::Model::GetConsistencySnapshotRequest;
|
||||
|
||||
GetConsistencySnapshotRequest::GetConsistencySnapshotRequest() :
|
||||
RpcServiceRequest("arms", "2019-08-08", "GetConsistencySnapshot")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
GetConsistencySnapshotRequest::~GetConsistencySnapshotRequest()
|
||||
{}
|
||||
|
||||
long GetConsistencySnapshotRequest::getCurrentTimestamp()const
|
||||
{
|
||||
return currentTimestamp_;
|
||||
}
|
||||
|
||||
void GetConsistencySnapshotRequest::setCurrentTimestamp(long currentTimestamp)
|
||||
{
|
||||
currentTimestamp_ = currentTimestamp;
|
||||
setParameter("CurrentTimestamp", std::to_string(currentTimestamp));
|
||||
}
|
||||
|
||||
std::string GetConsistencySnapshotRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void GetConsistencySnapshotRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
std::string GetConsistencySnapshotRequest::getAppType()const
|
||||
{
|
||||
return appType_;
|
||||
}
|
||||
|
||||
void GetConsistencySnapshotRequest::setAppType(const std::string& appType)
|
||||
{
|
||||
appType_ = appType;
|
||||
setParameter("AppType", appType);
|
||||
}
|
||||
|
||||
std::string GetConsistencySnapshotRequest::getPid()const
|
||||
{
|
||||
return pid_;
|
||||
}
|
||||
|
||||
void GetConsistencySnapshotRequest::setPid(const std::string& pid)
|
||||
{
|
||||
pid_ = pid;
|
||||
setParameter("Pid", pid);
|
||||
}
|
||||
|
||||
std::string GetConsistencySnapshotRequest::getProxyUserId()const
|
||||
{
|
||||
return proxyUserId_;
|
||||
}
|
||||
|
||||
void GetConsistencySnapshotRequest::setProxyUserId(const std::string& proxyUserId)
|
||||
{
|
||||
proxyUserId_ = proxyUserId;
|
||||
setParameter("ProxyUserId", proxyUserId);
|
||||
}
|
||||
|
||||
110
arms/src/model/GetConsistencySnapshotResult.cc
Normal file
110
arms/src/model/GetConsistencySnapshotResult.cc
Normal file
@@ -0,0 +1,110 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/arms/model/GetConsistencySnapshotResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::ARMS;
|
||||
using namespace AlibabaCloud::ARMS::Model;
|
||||
|
||||
GetConsistencySnapshotResult::GetConsistencySnapshotResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
GetConsistencySnapshotResult::GetConsistencySnapshotResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
GetConsistencySnapshotResult::~GetConsistencySnapshotResult()
|
||||
{}
|
||||
|
||||
void GetConsistencySnapshotResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto consistencyResultNode = value["ConsistencyResult"];
|
||||
if(!consistencyResultNode["JudgeTimestamp"].isNull())
|
||||
consistencyResult_.judgeTimestamp = std::stol(consistencyResultNode["JudgeTimestamp"].asString());
|
||||
if(!consistencyResultNode["LastSlsShardWatermarkTimestamp"].isNull())
|
||||
consistencyResult_.lastSlsShardWatermarkTimestamp = std::stol(consistencyResultNode["LastSlsShardWatermarkTimestamp"].asString());
|
||||
if(!consistencyResultNode["LastAgentInfoTimestamp"].isNull())
|
||||
consistencyResult_.lastAgentInfoTimestamp = std::stol(consistencyResultNode["LastAgentInfoTimestamp"].asString());
|
||||
if(!consistencyResultNode["BarrierPointsLastTimestampMap"].isNull())
|
||||
consistencyResult_.barrierPointsLastTimestampMap = consistencyResultNode["BarrierPointsLastTimestampMap"].asString();
|
||||
if(!consistencyResultNode["LastBarrierTimestamp"].isNull())
|
||||
consistencyResult_.lastBarrierTimestamp = std::stol(consistencyResultNode["LastBarrierTimestamp"].asString());
|
||||
auto allAgentHeartbeatInfosNode = consistencyResultNode["AgentHeartbeatInfos"]["AgentHeartbeatInfo"];
|
||||
for (auto consistencyResultNodeAgentHeartbeatInfosAgentHeartbeatInfo : allAgentHeartbeatInfosNode)
|
||||
{
|
||||
ConsistencyResult::AgentHeartbeatInfo agentHeartbeatInfoObject;
|
||||
if(!consistencyResultNodeAgentHeartbeatInfosAgentHeartbeatInfo["RegionId"].isNull())
|
||||
agentHeartbeatInfoObject.regionId = consistencyResultNodeAgentHeartbeatInfosAgentHeartbeatInfo["RegionId"].asString();
|
||||
if(!consistencyResultNodeAgentHeartbeatInfosAgentHeartbeatInfo["AppType"].isNull())
|
||||
agentHeartbeatInfoObject.appType = consistencyResultNodeAgentHeartbeatInfosAgentHeartbeatInfo["AppType"].asString();
|
||||
if(!consistencyResultNodeAgentHeartbeatInfosAgentHeartbeatInfo["Pid"].isNull())
|
||||
agentHeartbeatInfoObject.pid = consistencyResultNodeAgentHeartbeatInfosAgentHeartbeatInfo["Pid"].asString();
|
||||
if(!consistencyResultNodeAgentHeartbeatInfosAgentHeartbeatInfo["Ip"].isNull())
|
||||
agentHeartbeatInfoObject.ip = consistencyResultNodeAgentHeartbeatInfosAgentHeartbeatInfo["Ip"].asString();
|
||||
if(!consistencyResultNodeAgentHeartbeatInfosAgentHeartbeatInfo["StartTimestamp"].isNull())
|
||||
agentHeartbeatInfoObject.startTimestamp = std::stol(consistencyResultNodeAgentHeartbeatInfosAgentHeartbeatInfo["StartTimestamp"].asString());
|
||||
if(!consistencyResultNodeAgentHeartbeatInfosAgentHeartbeatInfo["Hostname"].isNull())
|
||||
agentHeartbeatInfoObject.hostname = consistencyResultNodeAgentHeartbeatInfosAgentHeartbeatInfo["Hostname"].asString();
|
||||
if(!consistencyResultNodeAgentHeartbeatInfosAgentHeartbeatInfo["ProcId"].isNull())
|
||||
agentHeartbeatInfoObject.procId = consistencyResultNodeAgentHeartbeatInfosAgentHeartbeatInfo["ProcId"].asString();
|
||||
if(!consistencyResultNodeAgentHeartbeatInfosAgentHeartbeatInfo["AgentVersion"].isNull())
|
||||
agentHeartbeatInfoObject.agentVersion = consistencyResultNodeAgentHeartbeatInfosAgentHeartbeatInfo["AgentVersion"].asString();
|
||||
if(!consistencyResultNodeAgentHeartbeatInfosAgentHeartbeatInfo["LastHeartbeatTime"].isNull())
|
||||
agentHeartbeatInfoObject.lastHeartbeatTime = std::stol(consistencyResultNodeAgentHeartbeatInfosAgentHeartbeatInfo["LastHeartbeatTime"].asString());
|
||||
consistencyResult_.agentHeartbeatInfos.push_back(agentHeartbeatInfoObject);
|
||||
}
|
||||
auto slsShardWatermarkBeanNode = consistencyResultNode["SlsShardWatermarkBean"];
|
||||
if(!slsShardWatermarkBeanNode["Pid"].isNull())
|
||||
consistencyResult_.slsShardWatermarkBean.pid = slsShardWatermarkBeanNode["Pid"].asString();
|
||||
if(!slsShardWatermarkBeanNode["UserId"].isNull())
|
||||
consistencyResult_.slsShardWatermarkBean.userId = slsShardWatermarkBeanNode["UserId"].asString();
|
||||
if(!slsShardWatermarkBeanNode["RegionId"].isNull())
|
||||
consistencyResult_.slsShardWatermarkBean.regionId = slsShardWatermarkBeanNode["RegionId"].asString();
|
||||
if(!slsShardWatermarkBeanNode["AppType"].isNull())
|
||||
consistencyResult_.slsShardWatermarkBean.appType = slsShardWatermarkBeanNode["AppType"].asString();
|
||||
auto allCheckPointResponsesNode = slsShardWatermarkBeanNode["CheckPointResponses"]["CheckPointResponse"];
|
||||
for (auto slsShardWatermarkBeanNodeCheckPointResponsesCheckPointResponse : allCheckPointResponsesNode)
|
||||
{
|
||||
ConsistencyResult::SlsShardWatermarkBean::CheckPointResponse checkPointResponseObject;
|
||||
if(!slsShardWatermarkBeanNodeCheckPointResponsesCheckPointResponse["Shard"].isNull())
|
||||
checkPointResponseObject.shard = std::stoi(slsShardWatermarkBeanNodeCheckPointResponsesCheckPointResponse["Shard"].asString());
|
||||
if(!slsShardWatermarkBeanNodeCheckPointResponsesCheckPointResponse["CheckPoint"].isNull())
|
||||
checkPointResponseObject.checkPoint = slsShardWatermarkBeanNodeCheckPointResponsesCheckPointResponse["CheckPoint"].asString();
|
||||
if(!slsShardWatermarkBeanNodeCheckPointResponsesCheckPointResponse["UpdateTime"].isNull())
|
||||
checkPointResponseObject.updateTime = std::stol(slsShardWatermarkBeanNodeCheckPointResponsesCheckPointResponse["UpdateTime"].asString());
|
||||
if(!slsShardWatermarkBeanNodeCheckPointResponsesCheckPointResponse["Consumer"].isNull())
|
||||
checkPointResponseObject.consumer = slsShardWatermarkBeanNodeCheckPointResponsesCheckPointResponse["Consumer"].asString();
|
||||
consistencyResult_.slsShardWatermarkBean.checkPointResponses.push_back(checkPointResponseObject);
|
||||
}
|
||||
auto allCursorUpdateTimes = slsShardWatermarkBeanNode["CursorUpdateTimes"]["CursorUpdateTime"];
|
||||
for (auto value : allCursorUpdateTimes)
|
||||
consistencyResult_.slsShardWatermarkBean.cursorUpdateTimes.push_back(value.asString());
|
||||
|
||||
}
|
||||
|
||||
GetConsistencySnapshotResult::ConsistencyResult GetConsistencySnapshotResult::getConsistencyResult()const
|
||||
{
|
||||
return consistencyResult_;
|
||||
}
|
||||
|
||||
51
arms/src/model/ListDashboardsRequest.cc
Normal file
51
arms/src/model/ListDashboardsRequest.cc
Normal file
@@ -0,0 +1,51 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/arms/model/ListDashboardsRequest.h>
|
||||
|
||||
using AlibabaCloud::ARMS::Model::ListDashboardsRequest;
|
||||
|
||||
ListDashboardsRequest::ListDashboardsRequest() :
|
||||
RpcServiceRequest("arms", "2019-08-08", "ListDashboards")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
ListDashboardsRequest::~ListDashboardsRequest()
|
||||
{}
|
||||
|
||||
std::string ListDashboardsRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void ListDashboardsRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
std::string ListDashboardsRequest::getClusterId()const
|
||||
{
|
||||
return clusterId_;
|
||||
}
|
||||
|
||||
void ListDashboardsRequest::setClusterId(const std::string& clusterId)
|
||||
{
|
||||
clusterId_ = clusterId;
|
||||
setParameter("ClusterId", clusterId);
|
||||
}
|
||||
|
||||
74
arms/src/model/ListDashboardsResult.cc
Normal file
74
arms/src/model/ListDashboardsResult.cc
Normal file
@@ -0,0 +1,74 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/arms/model/ListDashboardsResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::ARMS;
|
||||
using namespace AlibabaCloud::ARMS::Model;
|
||||
|
||||
ListDashboardsResult::ListDashboardsResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
ListDashboardsResult::ListDashboardsResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
ListDashboardsResult::~ListDashboardsResult()
|
||||
{}
|
||||
|
||||
void ListDashboardsResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allDashboardVosNode = value["DashboardVos"]["DashboardVosItem"];
|
||||
for (auto valueDashboardVosDashboardVosItem : allDashboardVosNode)
|
||||
{
|
||||
DashboardVosItem dashboardVosObject;
|
||||
if(!valueDashboardVosDashboardVosItem["Id"].isNull())
|
||||
dashboardVosObject.id = valueDashboardVosDashboardVosItem["Id"].asString();
|
||||
if(!valueDashboardVosDashboardVosItem["Uid"].isNull())
|
||||
dashboardVosObject.uid = valueDashboardVosDashboardVosItem["Uid"].asString();
|
||||
if(!valueDashboardVosDashboardVosItem["Title"].isNull())
|
||||
dashboardVosObject.title = valueDashboardVosDashboardVosItem["Title"].asString();
|
||||
if(!valueDashboardVosDashboardVosItem["Time"].isNull())
|
||||
dashboardVosObject.time = valueDashboardVosDashboardVosItem["Time"].asString();
|
||||
if(!valueDashboardVosDashboardVosItem["Url"].isNull())
|
||||
dashboardVosObject.url = valueDashboardVosDashboardVosItem["Url"].asString();
|
||||
if(!valueDashboardVosDashboardVosItem["Type"].isNull())
|
||||
dashboardVosObject.type = valueDashboardVosDashboardVosItem["Type"].asString();
|
||||
if(!valueDashboardVosDashboardVosItem["Exporter"].isNull())
|
||||
dashboardVosObject.exporter = valueDashboardVosDashboardVosItem["Exporter"].asString();
|
||||
if(!valueDashboardVosDashboardVosItem["IsArmsExporter"].isNull())
|
||||
dashboardVosObject.isArmsExporter = valueDashboardVosDashboardVosItem["IsArmsExporter"].asString() == "true";
|
||||
auto allTags = value["Tags"]["Tags"];
|
||||
for (auto value : allTags)
|
||||
dashboardVosObject.tags.push_back(value.asString());
|
||||
dashboardVos_.push_back(dashboardVosObject);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
std::vector<ListDashboardsResult::DashboardVosItem> ListDashboardsResult::getDashboardVos()const
|
||||
{
|
||||
return dashboardVos_;
|
||||
}
|
||||
|
||||
@@ -27,6 +27,17 @@ QueryMetricRequest::QueryMetricRequest() :
|
||||
QueryMetricRequest::~QueryMetricRequest()
|
||||
{}
|
||||
|
||||
std::string QueryMetricRequest::getConsistencyQueryStrategy()const
|
||||
{
|
||||
return consistencyQueryStrategy_;
|
||||
}
|
||||
|
||||
void QueryMetricRequest::setConsistencyQueryStrategy(const std::string& consistencyQueryStrategy)
|
||||
{
|
||||
consistencyQueryStrategy_ = consistencyQueryStrategy;
|
||||
setParameter("ConsistencyQueryStrategy", consistencyQueryStrategy);
|
||||
}
|
||||
|
||||
long QueryMetricRequest::getEndTime()const
|
||||
{
|
||||
return endTime_;
|
||||
@@ -76,6 +87,17 @@ void QueryMetricRequest::setFilters(const std::vector<Filters>& filters)
|
||||
}
|
||||
}
|
||||
|
||||
std::string QueryMetricRequest::getConsistencyDataKey()const
|
||||
{
|
||||
return consistencyDataKey_;
|
||||
}
|
||||
|
||||
void QueryMetricRequest::setConsistencyDataKey(const std::string& consistencyDataKey)
|
||||
{
|
||||
consistencyDataKey_ = consistencyDataKey;
|
||||
setParameter("ConsistencyDataKey", consistencyDataKey);
|
||||
}
|
||||
|
||||
std::string QueryMetricRequest::getProxyUserId()const
|
||||
{
|
||||
return proxyUserId_;
|
||||
|
||||
@@ -46,98 +46,98 @@ void SearchAlertRulesResult::parse(const std::string &payload)
|
||||
pageBean_.pageNumber = std::stoi(pageBeanNode["PageNumber"].asString());
|
||||
if(!pageBeanNode["PageSize"].isNull())
|
||||
pageBean_.pageSize = std::stoi(pageBeanNode["PageSize"].asString());
|
||||
auto allAlertRulesNode = pageBeanNode["AlertRules"]["AlertRule"];
|
||||
for (auto pageBeanNodeAlertRulesAlertRule : allAlertRulesNode)
|
||||
auto allAlertRulesNode = pageBeanNode["AlertRules"]["AlertRuleEntity"];
|
||||
for (auto pageBeanNodeAlertRulesAlertRuleEntity : allAlertRulesNode)
|
||||
{
|
||||
PageBean::AlertRule alertRuleObject;
|
||||
if(!pageBeanNodeAlertRulesAlertRule["AlertTitle"].isNull())
|
||||
alertRuleObject.alertTitle = pageBeanNodeAlertRulesAlertRule["AlertTitle"].asString();
|
||||
if(!pageBeanNodeAlertRulesAlertRule["AlertLevel"].isNull())
|
||||
alertRuleObject.alertLevel = pageBeanNodeAlertRulesAlertRule["AlertLevel"].asString();
|
||||
if(!pageBeanNodeAlertRulesAlertRule["AlertType"].isNull())
|
||||
alertRuleObject.alertType = std::stoi(pageBeanNodeAlertRulesAlertRule["AlertType"].asString());
|
||||
if(!pageBeanNodeAlertRulesAlertRule["AlertVersion"].isNull())
|
||||
alertRuleObject.alertVersion = std::stoi(pageBeanNodeAlertRulesAlertRule["AlertVersion"].asString());
|
||||
if(!pageBeanNodeAlertRulesAlertRule["Config"].isNull())
|
||||
alertRuleObject.config = pageBeanNodeAlertRulesAlertRule["Config"].asString();
|
||||
if(!pageBeanNodeAlertRulesAlertRule["ContactGroupIdList"].isNull())
|
||||
alertRuleObject.contactGroupIdList = pageBeanNodeAlertRulesAlertRule["ContactGroupIdList"].asString();
|
||||
if(!pageBeanNodeAlertRulesAlertRule["CreateTime"].isNull())
|
||||
alertRuleObject.createTime = std::stol(pageBeanNodeAlertRulesAlertRule["CreateTime"].asString());
|
||||
if(!pageBeanNodeAlertRulesAlertRule["Id"].isNull())
|
||||
alertRuleObject.id = std::stol(pageBeanNodeAlertRulesAlertRule["Id"].asString());
|
||||
if(!pageBeanNodeAlertRulesAlertRule["RegionId"].isNull())
|
||||
alertRuleObject.regionId = pageBeanNodeAlertRulesAlertRule["RegionId"].asString();
|
||||
if(!pageBeanNodeAlertRulesAlertRule["Status"].isNull())
|
||||
alertRuleObject.status = pageBeanNodeAlertRulesAlertRule["Status"].asString();
|
||||
if(!pageBeanNodeAlertRulesAlertRule["TaskId"].isNull())
|
||||
alertRuleObject.taskId = std::stol(pageBeanNodeAlertRulesAlertRule["TaskId"].asString());
|
||||
if(!pageBeanNodeAlertRulesAlertRule["TaskStatus"].isNull())
|
||||
alertRuleObject.taskStatus = pageBeanNodeAlertRulesAlertRule["TaskStatus"].asString();
|
||||
if(!pageBeanNodeAlertRulesAlertRule["UpdateTime"].isNull())
|
||||
alertRuleObject.updateTime = std::stol(pageBeanNodeAlertRulesAlertRule["UpdateTime"].asString());
|
||||
if(!pageBeanNodeAlertRulesAlertRule["UserId"].isNull())
|
||||
alertRuleObject.userId = pageBeanNodeAlertRulesAlertRule["UserId"].asString();
|
||||
PageBean::AlertRuleEntity alertRuleEntityObject;
|
||||
if(!pageBeanNodeAlertRulesAlertRuleEntity["AlertTitle"].isNull())
|
||||
alertRuleEntityObject.alertTitle = pageBeanNodeAlertRulesAlertRuleEntity["AlertTitle"].asString();
|
||||
if(!pageBeanNodeAlertRulesAlertRuleEntity["AlertLevel"].isNull())
|
||||
alertRuleEntityObject.alertLevel = pageBeanNodeAlertRulesAlertRuleEntity["AlertLevel"].asString();
|
||||
if(!pageBeanNodeAlertRulesAlertRuleEntity["AlertType"].isNull())
|
||||
alertRuleEntityObject.alertType = std::stoi(pageBeanNodeAlertRulesAlertRuleEntity["AlertType"].asString());
|
||||
if(!pageBeanNodeAlertRulesAlertRuleEntity["AlertVersion"].isNull())
|
||||
alertRuleEntityObject.alertVersion = std::stoi(pageBeanNodeAlertRulesAlertRuleEntity["AlertVersion"].asString());
|
||||
if(!pageBeanNodeAlertRulesAlertRuleEntity["Config"].isNull())
|
||||
alertRuleEntityObject.config = pageBeanNodeAlertRulesAlertRuleEntity["Config"].asString();
|
||||
if(!pageBeanNodeAlertRulesAlertRuleEntity["ContactGroupIdList"].isNull())
|
||||
alertRuleEntityObject.contactGroupIdList = pageBeanNodeAlertRulesAlertRuleEntity["ContactGroupIdList"].asString();
|
||||
if(!pageBeanNodeAlertRulesAlertRuleEntity["CreateTime"].isNull())
|
||||
alertRuleEntityObject.createTime = std::stol(pageBeanNodeAlertRulesAlertRuleEntity["CreateTime"].asString());
|
||||
if(!pageBeanNodeAlertRulesAlertRuleEntity["Id"].isNull())
|
||||
alertRuleEntityObject.id = std::stol(pageBeanNodeAlertRulesAlertRuleEntity["Id"].asString());
|
||||
if(!pageBeanNodeAlertRulesAlertRuleEntity["RegionId"].isNull())
|
||||
alertRuleEntityObject.regionId = pageBeanNodeAlertRulesAlertRuleEntity["RegionId"].asString();
|
||||
if(!pageBeanNodeAlertRulesAlertRuleEntity["Status"].isNull())
|
||||
alertRuleEntityObject.status = pageBeanNodeAlertRulesAlertRuleEntity["Status"].asString();
|
||||
if(!pageBeanNodeAlertRulesAlertRuleEntity["TaskId"].isNull())
|
||||
alertRuleEntityObject.taskId = std::stol(pageBeanNodeAlertRulesAlertRuleEntity["TaskId"].asString());
|
||||
if(!pageBeanNodeAlertRulesAlertRuleEntity["TaskStatus"].isNull())
|
||||
alertRuleEntityObject.taskStatus = pageBeanNodeAlertRulesAlertRuleEntity["TaskStatus"].asString();
|
||||
if(!pageBeanNodeAlertRulesAlertRuleEntity["UpdateTime"].isNull())
|
||||
alertRuleEntityObject.updateTime = std::stol(pageBeanNodeAlertRulesAlertRuleEntity["UpdateTime"].asString());
|
||||
if(!pageBeanNodeAlertRulesAlertRuleEntity["UserId"].isNull())
|
||||
alertRuleEntityObject.userId = pageBeanNodeAlertRulesAlertRuleEntity["UserId"].asString();
|
||||
auto alarmContextNode = value["AlarmContext"];
|
||||
if(!alarmContextNode["AlarmContentTemplate"].isNull())
|
||||
alertRuleObject.alarmContext.alarmContentTemplate = alarmContextNode["AlarmContentTemplate"].asString();
|
||||
alertRuleEntityObject.alarmContext.alarmContentTemplate = alarmContextNode["AlarmContentTemplate"].asString();
|
||||
if(!alarmContextNode["AlarmContentSubTitle"].isNull())
|
||||
alertRuleObject.alarmContext.alarmContentSubTitle = alarmContextNode["AlarmContentSubTitle"].asString();
|
||||
auto alertRule1Node = value["AlertRule"];
|
||||
if(!alertRule1Node["Operator"].isNull())
|
||||
alertRuleObject.alertRule1._operator = alertRule1Node["Operator"].asString();
|
||||
auto allRulesNode = alertRule1Node["Rules"]["Rule"];
|
||||
for (auto alertRule1NodeRulesRule : allRulesNode)
|
||||
alertRuleEntityObject.alarmContext.alarmContentSubTitle = alarmContextNode["AlarmContentSubTitle"].asString();
|
||||
auto alertRuleNode = value["AlertRule"];
|
||||
if(!alertRuleNode["Operator"].isNull())
|
||||
alertRuleEntityObject.alertRule._operator = alertRuleNode["Operator"].asString();
|
||||
auto allRulesNode = alertRuleNode["Rules"]["Rule"];
|
||||
for (auto alertRuleNodeRulesRule : allRulesNode)
|
||||
{
|
||||
PageBean::AlertRule::AlertRule1::Rule ruleObject;
|
||||
if(!alertRule1NodeRulesRule["Aggregates"].isNull())
|
||||
ruleObject.aggregates = alertRule1NodeRulesRule["Aggregates"].asString();
|
||||
if(!alertRule1NodeRulesRule["Alias"].isNull())
|
||||
ruleObject.alias = alertRule1NodeRulesRule["Alias"].asString();
|
||||
if(!alertRule1NodeRulesRule["Measure"].isNull())
|
||||
ruleObject.measure = alertRule1NodeRulesRule["Measure"].asString();
|
||||
if(!alertRule1NodeRulesRule["NValue"].isNull())
|
||||
ruleObject.nValue = std::stoi(alertRule1NodeRulesRule["NValue"].asString());
|
||||
if(!alertRule1NodeRulesRule["Operator"].isNull())
|
||||
ruleObject._operator = alertRule1NodeRulesRule["Operator"].asString();
|
||||
if(!alertRule1NodeRulesRule["Value"].isNull())
|
||||
ruleObject.value = std::stof(alertRule1NodeRulesRule["Value"].asString());
|
||||
alertRuleObject.alertRule1.rules.push_back(ruleObject);
|
||||
PageBean::AlertRuleEntity::AlertRule::Rule ruleObject;
|
||||
if(!alertRuleNodeRulesRule["Aggregates"].isNull())
|
||||
ruleObject.aggregates = alertRuleNodeRulesRule["Aggregates"].asString();
|
||||
if(!alertRuleNodeRulesRule["Alias"].isNull())
|
||||
ruleObject.alias = alertRuleNodeRulesRule["Alias"].asString();
|
||||
if(!alertRuleNodeRulesRule["Measure"].isNull())
|
||||
ruleObject.measure = alertRuleNodeRulesRule["Measure"].asString();
|
||||
if(!alertRuleNodeRulesRule["NValue"].isNull())
|
||||
ruleObject.nValue = std::stoi(alertRuleNodeRulesRule["NValue"].asString());
|
||||
if(!alertRuleNodeRulesRule["Operator"].isNull())
|
||||
ruleObject._operator = alertRuleNodeRulesRule["Operator"].asString();
|
||||
if(!alertRuleNodeRulesRule["Value"].isNull())
|
||||
ruleObject.value = std::stof(alertRuleNodeRulesRule["Value"].asString());
|
||||
alertRuleEntityObject.alertRule.rules.push_back(ruleObject);
|
||||
}
|
||||
auto metricParamNode = value["MetricParam"];
|
||||
if(!metricParamNode["AppGroupId"].isNull())
|
||||
alertRuleObject.metricParam.appGroupId = metricParamNode["AppGroupId"].asString();
|
||||
alertRuleEntityObject.metricParam.appGroupId = metricParamNode["AppGroupId"].asString();
|
||||
if(!metricParamNode["AppId"].isNull())
|
||||
alertRuleObject.metricParam.appId = metricParamNode["AppId"].asString();
|
||||
alertRuleEntityObject.metricParam.appId = metricParamNode["AppId"].asString();
|
||||
if(!metricParamNode["Pid"].isNull())
|
||||
alertRuleObject.metricParam.pid = metricParamNode["Pid"].asString();
|
||||
alertRuleEntityObject.metricParam.pid = metricParamNode["Pid"].asString();
|
||||
if(!metricParamNode["Type"].isNull())
|
||||
alertRuleObject.metricParam.type = metricParamNode["Type"].asString();
|
||||
alertRuleEntityObject.metricParam.type = metricParamNode["Type"].asString();
|
||||
auto allDimensionsNode = metricParamNode["Dimensions"]["Dimension"];
|
||||
for (auto metricParamNodeDimensionsDimension : allDimensionsNode)
|
||||
{
|
||||
PageBean::AlertRule::MetricParam::Dimension dimensionObject;
|
||||
PageBean::AlertRuleEntity::MetricParam::Dimension dimensionObject;
|
||||
if(!metricParamNodeDimensionsDimension["Key"].isNull())
|
||||
dimensionObject.key = metricParamNodeDimensionsDimension["Key"].asString();
|
||||
if(!metricParamNodeDimensionsDimension["Type"].isNull())
|
||||
dimensionObject.type = metricParamNodeDimensionsDimension["Type"].asString();
|
||||
if(!metricParamNodeDimensionsDimension["Value"].isNull())
|
||||
dimensionObject.value = metricParamNodeDimensionsDimension["Value"].asString();
|
||||
alertRuleObject.metricParam.dimensions.push_back(dimensionObject);
|
||||
alertRuleEntityObject.metricParam.dimensions.push_back(dimensionObject);
|
||||
}
|
||||
auto noticeNode = value["Notice"];
|
||||
if(!noticeNode["EndTime"].isNull())
|
||||
alertRuleObject.notice.endTime = std::stol(noticeNode["EndTime"].asString());
|
||||
alertRuleEntityObject.notice.endTime = std::stol(noticeNode["EndTime"].asString());
|
||||
if(!noticeNode["NoticeEndTime"].isNull())
|
||||
alertRuleObject.notice.noticeEndTime = std::stol(noticeNode["NoticeEndTime"].asString());
|
||||
alertRuleEntityObject.notice.noticeEndTime = std::stol(noticeNode["NoticeEndTime"].asString());
|
||||
if(!noticeNode["NoticeStartTime"].isNull())
|
||||
alertRuleObject.notice.noticeStartTime = std::stol(noticeNode["NoticeStartTime"].asString());
|
||||
alertRuleEntityObject.notice.noticeStartTime = std::stol(noticeNode["NoticeStartTime"].asString());
|
||||
if(!noticeNode["StartTime"].isNull())
|
||||
alertRuleObject.notice.startTime = std::stol(noticeNode["StartTime"].asString());
|
||||
alertRuleEntityObject.notice.startTime = std::stol(noticeNode["StartTime"].asString());
|
||||
auto allAlertWays = value["AlertWays"]["AlertWay"];
|
||||
for (auto value : allAlertWays)
|
||||
alertRuleObject.alertWays.push_back(value.asString());
|
||||
pageBean_.alertRules.push_back(alertRuleObject);
|
||||
alertRuleEntityObject.alertWays.push_back(value.asString());
|
||||
pageBean_.alertRules.push_back(alertRuleEntityObject);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -57,6 +57,8 @@ set(cassandra_public_header_model
|
||||
include/alibabacloud/cassandra/model/DescribeClustersResult.h
|
||||
include/alibabacloud/cassandra/model/DescribeContactPointsRequest.h
|
||||
include/alibabacloud/cassandra/model/DescribeContactPointsResult.h
|
||||
include/alibabacloud/cassandra/model/DescribeDataCenterRequest.h
|
||||
include/alibabacloud/cassandra/model/DescribeDataCenterResult.h
|
||||
include/alibabacloud/cassandra/model/DescribeDataCentersRequest.h
|
||||
include/alibabacloud/cassandra/model/DescribeDataCentersResult.h
|
||||
include/alibabacloud/cassandra/model/DescribeDeletedClustersRequest.h
|
||||
@@ -81,6 +83,10 @@ set(cassandra_public_header_model
|
||||
include/alibabacloud/cassandra/model/ExecuteNodeToolResult.h
|
||||
include/alibabacloud/cassandra/model/GetCmsUrlRequest.h
|
||||
include/alibabacloud/cassandra/model/GetCmsUrlResult.h
|
||||
include/alibabacloud/cassandra/model/ListTagResourcesRequest.h
|
||||
include/alibabacloud/cassandra/model/ListTagResourcesResult.h
|
||||
include/alibabacloud/cassandra/model/ListTagsRequest.h
|
||||
include/alibabacloud/cassandra/model/ListTagsResult.h
|
||||
include/alibabacloud/cassandra/model/ModifyAccountPasswordRequest.h
|
||||
include/alibabacloud/cassandra/model/ModifyAccountPasswordResult.h
|
||||
include/alibabacloud/cassandra/model/ModifyBackupPlanRequest.h
|
||||
@@ -111,6 +117,10 @@ set(cassandra_public_header_model
|
||||
include/alibabacloud/cassandra/model/ResizeDiskSizeResult.h
|
||||
include/alibabacloud/cassandra/model/ResizeNodeCountRequest.h
|
||||
include/alibabacloud/cassandra/model/ResizeNodeCountResult.h
|
||||
include/alibabacloud/cassandra/model/TagResourcesRequest.h
|
||||
include/alibabacloud/cassandra/model/TagResourcesResult.h
|
||||
include/alibabacloud/cassandra/model/UnTagResourcesRequest.h
|
||||
include/alibabacloud/cassandra/model/UnTagResourcesResult.h
|
||||
include/alibabacloud/cassandra/model/UpgradeClusterVersionRequest.h
|
||||
include/alibabacloud/cassandra/model/UpgradeClusterVersionResult.h )
|
||||
|
||||
@@ -152,6 +162,8 @@ set(cassandra_src
|
||||
src/model/DescribeClustersResult.cc
|
||||
src/model/DescribeContactPointsRequest.cc
|
||||
src/model/DescribeContactPointsResult.cc
|
||||
src/model/DescribeDataCenterRequest.cc
|
||||
src/model/DescribeDataCenterResult.cc
|
||||
src/model/DescribeDataCentersRequest.cc
|
||||
src/model/DescribeDataCentersResult.cc
|
||||
src/model/DescribeDeletedClustersRequest.cc
|
||||
@@ -176,6 +188,10 @@ set(cassandra_src
|
||||
src/model/ExecuteNodeToolResult.cc
|
||||
src/model/GetCmsUrlRequest.cc
|
||||
src/model/GetCmsUrlResult.cc
|
||||
src/model/ListTagResourcesRequest.cc
|
||||
src/model/ListTagResourcesResult.cc
|
||||
src/model/ListTagsRequest.cc
|
||||
src/model/ListTagsResult.cc
|
||||
src/model/ModifyAccountPasswordRequest.cc
|
||||
src/model/ModifyAccountPasswordResult.cc
|
||||
src/model/ModifyBackupPlanRequest.cc
|
||||
@@ -206,6 +222,10 @@ set(cassandra_src
|
||||
src/model/ResizeDiskSizeResult.cc
|
||||
src/model/ResizeNodeCountRequest.cc
|
||||
src/model/ResizeNodeCountResult.cc
|
||||
src/model/TagResourcesRequest.cc
|
||||
src/model/TagResourcesResult.cc
|
||||
src/model/UnTagResourcesRequest.cc
|
||||
src/model/UnTagResourcesResult.cc
|
||||
src/model/UpgradeClusterVersionRequest.cc
|
||||
src/model/UpgradeClusterVersionResult.cc )
|
||||
|
||||
|
||||
@@ -58,6 +58,8 @@
|
||||
#include "model/DescribeClustersResult.h"
|
||||
#include "model/DescribeContactPointsRequest.h"
|
||||
#include "model/DescribeContactPointsResult.h"
|
||||
#include "model/DescribeDataCenterRequest.h"
|
||||
#include "model/DescribeDataCenterResult.h"
|
||||
#include "model/DescribeDataCentersRequest.h"
|
||||
#include "model/DescribeDataCentersResult.h"
|
||||
#include "model/DescribeDeletedClustersRequest.h"
|
||||
@@ -82,6 +84,10 @@
|
||||
#include "model/ExecuteNodeToolResult.h"
|
||||
#include "model/GetCmsUrlRequest.h"
|
||||
#include "model/GetCmsUrlResult.h"
|
||||
#include "model/ListTagResourcesRequest.h"
|
||||
#include "model/ListTagResourcesResult.h"
|
||||
#include "model/ListTagsRequest.h"
|
||||
#include "model/ListTagsResult.h"
|
||||
#include "model/ModifyAccountPasswordRequest.h"
|
||||
#include "model/ModifyAccountPasswordResult.h"
|
||||
#include "model/ModifyBackupPlanRequest.h"
|
||||
@@ -112,6 +118,10 @@
|
||||
#include "model/ResizeDiskSizeResult.h"
|
||||
#include "model/ResizeNodeCountRequest.h"
|
||||
#include "model/ResizeNodeCountResult.h"
|
||||
#include "model/TagResourcesRequest.h"
|
||||
#include "model/TagResourcesResult.h"
|
||||
#include "model/UnTagResourcesRequest.h"
|
||||
#include "model/UnTagResourcesResult.h"
|
||||
#include "model/UpgradeClusterVersionRequest.h"
|
||||
#include "model/UpgradeClusterVersionResult.h"
|
||||
|
||||
@@ -177,6 +187,9 @@ namespace AlibabaCloud
|
||||
typedef Outcome<Error, Model::DescribeContactPointsResult> DescribeContactPointsOutcome;
|
||||
typedef std::future<DescribeContactPointsOutcome> DescribeContactPointsOutcomeCallable;
|
||||
typedef std::function<void(const CassandraClient*, const Model::DescribeContactPointsRequest&, const DescribeContactPointsOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeContactPointsAsyncHandler;
|
||||
typedef Outcome<Error, Model::DescribeDataCenterResult> DescribeDataCenterOutcome;
|
||||
typedef std::future<DescribeDataCenterOutcome> DescribeDataCenterOutcomeCallable;
|
||||
typedef std::function<void(const CassandraClient*, const Model::DescribeDataCenterRequest&, const DescribeDataCenterOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeDataCenterAsyncHandler;
|
||||
typedef Outcome<Error, Model::DescribeDataCentersResult> DescribeDataCentersOutcome;
|
||||
typedef std::future<DescribeDataCentersOutcome> DescribeDataCentersOutcomeCallable;
|
||||
typedef std::function<void(const CassandraClient*, const Model::DescribeDataCentersRequest&, const DescribeDataCentersOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeDataCentersAsyncHandler;
|
||||
@@ -213,6 +226,12 @@ namespace AlibabaCloud
|
||||
typedef Outcome<Error, Model::GetCmsUrlResult> GetCmsUrlOutcome;
|
||||
typedef std::future<GetCmsUrlOutcome> GetCmsUrlOutcomeCallable;
|
||||
typedef std::function<void(const CassandraClient*, const Model::GetCmsUrlRequest&, const GetCmsUrlOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetCmsUrlAsyncHandler;
|
||||
typedef Outcome<Error, Model::ListTagResourcesResult> ListTagResourcesOutcome;
|
||||
typedef std::future<ListTagResourcesOutcome> ListTagResourcesOutcomeCallable;
|
||||
typedef std::function<void(const CassandraClient*, const Model::ListTagResourcesRequest&, const ListTagResourcesOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ListTagResourcesAsyncHandler;
|
||||
typedef Outcome<Error, Model::ListTagsResult> ListTagsOutcome;
|
||||
typedef std::future<ListTagsOutcome> ListTagsOutcomeCallable;
|
||||
typedef std::function<void(const CassandraClient*, const Model::ListTagsRequest&, const ListTagsOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ListTagsAsyncHandler;
|
||||
typedef Outcome<Error, Model::ModifyAccountPasswordResult> ModifyAccountPasswordOutcome;
|
||||
typedef std::future<ModifyAccountPasswordOutcome> ModifyAccountPasswordOutcomeCallable;
|
||||
typedef std::function<void(const CassandraClient*, const Model::ModifyAccountPasswordRequest&, const ModifyAccountPasswordOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ModifyAccountPasswordAsyncHandler;
|
||||
@@ -258,6 +277,12 @@ namespace AlibabaCloud
|
||||
typedef Outcome<Error, Model::ResizeNodeCountResult> ResizeNodeCountOutcome;
|
||||
typedef std::future<ResizeNodeCountOutcome> ResizeNodeCountOutcomeCallable;
|
||||
typedef std::function<void(const CassandraClient*, const Model::ResizeNodeCountRequest&, const ResizeNodeCountOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ResizeNodeCountAsyncHandler;
|
||||
typedef Outcome<Error, Model::TagResourcesResult> TagResourcesOutcome;
|
||||
typedef std::future<TagResourcesOutcome> TagResourcesOutcomeCallable;
|
||||
typedef std::function<void(const CassandraClient*, const Model::TagResourcesRequest&, const TagResourcesOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> TagResourcesAsyncHandler;
|
||||
typedef Outcome<Error, Model::UnTagResourcesResult> UnTagResourcesOutcome;
|
||||
typedef std::future<UnTagResourcesOutcome> UnTagResourcesOutcomeCallable;
|
||||
typedef std::function<void(const CassandraClient*, const Model::UnTagResourcesRequest&, const UnTagResourcesOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> UnTagResourcesAsyncHandler;
|
||||
typedef Outcome<Error, Model::UpgradeClusterVersionResult> UpgradeClusterVersionOutcome;
|
||||
typedef std::future<UpgradeClusterVersionOutcome> UpgradeClusterVersionOutcomeCallable;
|
||||
typedef std::function<void(const CassandraClient*, const Model::UpgradeClusterVersionRequest&, const UpgradeClusterVersionOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> UpgradeClusterVersionAsyncHandler;
|
||||
@@ -320,6 +345,9 @@ namespace AlibabaCloud
|
||||
DescribeContactPointsOutcome describeContactPoints(const Model::DescribeContactPointsRequest &request)const;
|
||||
void describeContactPointsAsync(const Model::DescribeContactPointsRequest& request, const DescribeContactPointsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DescribeContactPointsOutcomeCallable describeContactPointsCallable(const Model::DescribeContactPointsRequest& request) const;
|
||||
DescribeDataCenterOutcome describeDataCenter(const Model::DescribeDataCenterRequest &request)const;
|
||||
void describeDataCenterAsync(const Model::DescribeDataCenterRequest& request, const DescribeDataCenterAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DescribeDataCenterOutcomeCallable describeDataCenterCallable(const Model::DescribeDataCenterRequest& request) const;
|
||||
DescribeDataCentersOutcome describeDataCenters(const Model::DescribeDataCentersRequest &request)const;
|
||||
void describeDataCentersAsync(const Model::DescribeDataCentersRequest& request, const DescribeDataCentersAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DescribeDataCentersOutcomeCallable describeDataCentersCallable(const Model::DescribeDataCentersRequest& request) const;
|
||||
@@ -356,6 +384,12 @@ namespace AlibabaCloud
|
||||
GetCmsUrlOutcome getCmsUrl(const Model::GetCmsUrlRequest &request)const;
|
||||
void getCmsUrlAsync(const Model::GetCmsUrlRequest& request, const GetCmsUrlAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
GetCmsUrlOutcomeCallable getCmsUrlCallable(const Model::GetCmsUrlRequest& request) const;
|
||||
ListTagResourcesOutcome listTagResources(const Model::ListTagResourcesRequest &request)const;
|
||||
void listTagResourcesAsync(const Model::ListTagResourcesRequest& request, const ListTagResourcesAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
ListTagResourcesOutcomeCallable listTagResourcesCallable(const Model::ListTagResourcesRequest& request) const;
|
||||
ListTagsOutcome listTags(const Model::ListTagsRequest &request)const;
|
||||
void listTagsAsync(const Model::ListTagsRequest& request, const ListTagsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
ListTagsOutcomeCallable listTagsCallable(const Model::ListTagsRequest& request) const;
|
||||
ModifyAccountPasswordOutcome modifyAccountPassword(const Model::ModifyAccountPasswordRequest &request)const;
|
||||
void modifyAccountPasswordAsync(const Model::ModifyAccountPasswordRequest& request, const ModifyAccountPasswordAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
ModifyAccountPasswordOutcomeCallable modifyAccountPasswordCallable(const Model::ModifyAccountPasswordRequest& request) const;
|
||||
@@ -401,6 +435,12 @@ namespace AlibabaCloud
|
||||
ResizeNodeCountOutcome resizeNodeCount(const Model::ResizeNodeCountRequest &request)const;
|
||||
void resizeNodeCountAsync(const Model::ResizeNodeCountRequest& request, const ResizeNodeCountAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
ResizeNodeCountOutcomeCallable resizeNodeCountCallable(const Model::ResizeNodeCountRequest& request) const;
|
||||
TagResourcesOutcome tagResources(const Model::TagResourcesRequest &request)const;
|
||||
void tagResourcesAsync(const Model::TagResourcesRequest& request, const TagResourcesAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& 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<const AsyncCallerContext>& context = nullptr) const;
|
||||
UnTagResourcesOutcomeCallable unTagResourcesCallable(const Model::UnTagResourcesRequest& request) const;
|
||||
UpgradeClusterVersionOutcome upgradeClusterVersion(const Model::UpgradeClusterVersionRequest &request)const;
|
||||
void upgradeClusterVersionAsync(const Model::UpgradeClusterVersionRequest& request, const UpgradeClusterVersionAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
UpgradeClusterVersionOutcomeCallable upgradeClusterVersionCallable(const Model::UpgradeClusterVersionRequest& request) const;
|
||||
|
||||
@@ -34,6 +34,11 @@ namespace AlibabaCloud
|
||||
public:
|
||||
struct Cluster
|
||||
{
|
||||
struct Tag
|
||||
{
|
||||
std::string value;
|
||||
std::string key;
|
||||
};
|
||||
std::string status;
|
||||
std::string majorVersion;
|
||||
std::string createdTime;
|
||||
@@ -46,6 +51,7 @@ namespace AlibabaCloud
|
||||
int dataCenterCount;
|
||||
std::string clusterName;
|
||||
std::string expireTime;
|
||||
std::vector<Tag> tags;
|
||||
std::string maintainStartTime;
|
||||
};
|
||||
|
||||
|
||||
@@ -30,22 +30,34 @@ namespace AlibabaCloud
|
||||
{
|
||||
class ALIBABACLOUD_CASSANDRA_EXPORT DescribeClustersRequest : public RpcServiceRequest
|
||||
{
|
||||
public:
|
||||
struct Tag
|
||||
{
|
||||
std::string value;
|
||||
std::string key;
|
||||
};
|
||||
|
||||
public:
|
||||
DescribeClustersRequest();
|
||||
~DescribeClustersRequest();
|
||||
|
||||
std::string getClusterName()const;
|
||||
void setClusterName(const std::string& clusterName);
|
||||
int getPageNumber()const;
|
||||
void setPageNumber(int pageNumber);
|
||||
std::string getRegionId()const;
|
||||
void setRegionId(const std::string& regionId);
|
||||
int getPageSize()const;
|
||||
void setPageSize(int pageSize);
|
||||
std::vector<Tag> getTag()const;
|
||||
void setTag(const std::vector<Tag>& tag);
|
||||
|
||||
private:
|
||||
std::string clusterName_;
|
||||
int pageNumber_;
|
||||
std::string regionId_;
|
||||
int pageSize_;
|
||||
std::vector<Tag> tag_;
|
||||
|
||||
};
|
||||
}
|
||||
|
||||
@@ -34,6 +34,11 @@ namespace AlibabaCloud
|
||||
public:
|
||||
struct Cluster
|
||||
{
|
||||
struct Tag
|
||||
{
|
||||
std::string value;
|
||||
std::string key;
|
||||
};
|
||||
std::string status;
|
||||
std::string majorVersion;
|
||||
std::string createdTime;
|
||||
@@ -44,6 +49,7 @@ namespace AlibabaCloud
|
||||
std::string payType;
|
||||
std::string lockMode;
|
||||
std::string expireTime;
|
||||
std::vector<Cluster::Tag> tags;
|
||||
};
|
||||
|
||||
|
||||
|
||||
@@ -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_CASSANDRA_MODEL_DESCRIBEDATACENTERREQUEST_H_
|
||||
#define ALIBABACLOUD_CASSANDRA_MODEL_DESCRIBEDATACENTERREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/cassandra/CassandraExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Cassandra
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_CASSANDRA_EXPORT DescribeDataCenterRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
DescribeDataCenterRequest();
|
||||
~DescribeDataCenterRequest();
|
||||
|
||||
std::string getDataCenterId()const;
|
||||
void setDataCenterId(const std::string& dataCenterId);
|
||||
std::string getClusterId()const;
|
||||
void setClusterId(const std::string& clusterId);
|
||||
|
||||
private:
|
||||
std::string dataCenterId_;
|
||||
std::string clusterId_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_CASSANDRA_MODEL_DESCRIBEDATACENTERREQUEST_H_
|
||||
@@ -0,0 +1,83 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_CASSANDRA_MODEL_DESCRIBEDATACENTERRESULT_H_
|
||||
#define ALIBABACLOUD_CASSANDRA_MODEL_DESCRIBEDATACENTERRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/cassandra/CassandraExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Cassandra
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_CASSANDRA_EXPORT DescribeDataCenterResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
|
||||
|
||||
DescribeDataCenterResult();
|
||||
explicit DescribeDataCenterResult(const std::string &payload);
|
||||
~DescribeDataCenterResult();
|
||||
std::string getStatus()const;
|
||||
std::string getDataCenterId()const;
|
||||
std::string getCreatedTime()const;
|
||||
std::string getCommodityInstance()const;
|
||||
std::string getZoneId()const;
|
||||
int getNodeCount()const;
|
||||
std::string getClusterId()const;
|
||||
std::string getPayType()const;
|
||||
std::string getLockMode()const;
|
||||
std::string getDataCenterName()const;
|
||||
std::string getVswitchId()const;
|
||||
std::string getDiskType()const;
|
||||
std::string getVpcId()const;
|
||||
int getDiskSize()const;
|
||||
std::string getRegionId()const;
|
||||
std::string getInstanceType()const;
|
||||
std::string getExpireTime()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::string status_;
|
||||
std::string dataCenterId_;
|
||||
std::string createdTime_;
|
||||
std::string commodityInstance_;
|
||||
std::string zoneId_;
|
||||
int nodeCount_;
|
||||
std::string clusterId_;
|
||||
std::string payType_;
|
||||
std::string lockMode_;
|
||||
std::string dataCenterName_;
|
||||
std::string vswitchId_;
|
||||
std::string diskType_;
|
||||
std::string vpcId_;
|
||||
int diskSize_;
|
||||
std::string regionId_;
|
||||
std::string instanceType_;
|
||||
std::string expireTime_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_CASSANDRA_MODEL_DESCRIBEDATACENTERRESULT_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_CASSANDRA_MODEL_LISTTAGRESOURCESREQUEST_H_
|
||||
#define ALIBABACLOUD_CASSANDRA_MODEL_LISTTAGRESOURCESREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/cassandra/CassandraExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Cassandra
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_CASSANDRA_EXPORT ListTagResourcesRequest : public RpcServiceRequest
|
||||
{
|
||||
public:
|
||||
struct Tag
|
||||
{
|
||||
std::string value;
|
||||
std::string key;
|
||||
};
|
||||
|
||||
public:
|
||||
ListTagResourcesRequest();
|
||||
~ListTagResourcesRequest();
|
||||
|
||||
std::string getRegionId()const;
|
||||
void setRegionId(const std::string& regionId);
|
||||
std::string getNextToken()const;
|
||||
void setNextToken(const std::string& nextToken);
|
||||
std::vector<Tag> getTag()const;
|
||||
void setTag(const std::vector<Tag>& tag);
|
||||
std::vector<std::string> getResourceId()const;
|
||||
void setResourceId(const std::vector<std::string>& resourceId);
|
||||
|
||||
private:
|
||||
std::string regionId_;
|
||||
std::string nextToken_;
|
||||
std::vector<Tag> tag_;
|
||||
std::vector<std::string> resourceId_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_CASSANDRA_MODEL_LISTTAGRESOURCESREQUEST_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_CASSANDRA_MODEL_LISTTAGRESOURCESRESULT_H_
|
||||
#define ALIBABACLOUD_CASSANDRA_MODEL_LISTTAGRESOURCESRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/cassandra/CassandraExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Cassandra
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_CASSANDRA_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<TagResource> getTagResources()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::string nextToken_;
|
||||
std::vector<TagResource> tagResources_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_CASSANDRA_MODEL_LISTTAGRESOURCESRESULT_H_
|
||||
@@ -0,0 +1,48 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT 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_CASSANDRA_MODEL_LISTTAGSREQUEST_H_
|
||||
#define ALIBABACLOUD_CASSANDRA_MODEL_LISTTAGSREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/cassandra/CassandraExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Cassandra
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_CASSANDRA_EXPORT ListTagsRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
ListTagsRequest();
|
||||
~ListTagsRequest();
|
||||
|
||||
std::string getRegionId()const;
|
||||
void setRegionId(const std::string& regionId);
|
||||
|
||||
private:
|
||||
std::string regionId_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_CASSANDRA_MODEL_LISTTAGSREQUEST_H_
|
||||
@@ -0,0 +1,56 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT 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_CASSANDRA_MODEL_LISTTAGSRESULT_H_
|
||||
#define ALIBABACLOUD_CASSANDRA_MODEL_LISTTAGSRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/cassandra/CassandraExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Cassandra
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_CASSANDRA_EXPORT ListTagsResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct Tag
|
||||
{
|
||||
std::string tagKey;
|
||||
std::string tagValue;
|
||||
};
|
||||
|
||||
|
||||
ListTagsResult();
|
||||
explicit ListTagsResult(const std::string &payload);
|
||||
~ListTagsResult();
|
||||
std::vector<Tag> getTags()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::vector<Tag> tags_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_CASSANDRA_MODEL_LISTTAGSRESULT_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_CASSANDRA_MODEL_TAGRESOURCESREQUEST_H_
|
||||
#define ALIBABACLOUD_CASSANDRA_MODEL_TAGRESOURCESREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/cassandra/CassandraExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Cassandra
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_CASSANDRA_EXPORT TagResourcesRequest : public RpcServiceRequest
|
||||
{
|
||||
public:
|
||||
struct Tag
|
||||
{
|
||||
std::string value;
|
||||
std::string key;
|
||||
};
|
||||
|
||||
public:
|
||||
TagResourcesRequest();
|
||||
~TagResourcesRequest();
|
||||
|
||||
std::vector<std::string> getResourceId()const;
|
||||
void setResourceId(const std::vector<std::string>& resourceId);
|
||||
std::string getRegionId()const;
|
||||
void setRegionId(const std::string& regionId);
|
||||
std::vector<Tag> getTag()const;
|
||||
void setTag(const std::vector<Tag>& tag);
|
||||
|
||||
private:
|
||||
std::vector<std::string> resourceId_;
|
||||
std::string regionId_;
|
||||
std::vector<Tag> tag_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_CASSANDRA_MODEL_TAGRESOURCESREQUEST_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_CASSANDRA_MODEL_TAGRESOURCESRESULT_H_
|
||||
#define ALIBABACLOUD_CASSANDRA_MODEL_TAGRESOURCESRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/cassandra/CassandraExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Cassandra
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_CASSANDRA_EXPORT TagResourcesResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
|
||||
|
||||
TagResourcesResult();
|
||||
explicit TagResourcesResult(const std::string &payload);
|
||||
~TagResourcesResult();
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_CASSANDRA_MODEL_TAGRESOURCESRESULT_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_CASSANDRA_MODEL_UNTAGRESOURCESREQUEST_H_
|
||||
#define ALIBABACLOUD_CASSANDRA_MODEL_UNTAGRESOURCESREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/cassandra/CassandraExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Cassandra
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_CASSANDRA_EXPORT UnTagResourcesRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
UnTagResourcesRequest();
|
||||
~UnTagResourcesRequest();
|
||||
|
||||
std::string getRegionId()const;
|
||||
void setRegionId(const std::string& regionId);
|
||||
bool getAll()const;
|
||||
void setAll(bool all);
|
||||
std::vector<std::string> getResourceId()const;
|
||||
void setResourceId(const std::vector<std::string>& resourceId);
|
||||
std::vector<std::string> getTagKey()const;
|
||||
void setTagKey(const std::vector<std::string>& tagKey);
|
||||
|
||||
private:
|
||||
std::string regionId_;
|
||||
bool all_;
|
||||
std::vector<std::string> resourceId_;
|
||||
std::vector<std::string> tagKey_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_CASSANDRA_MODEL_UNTAGRESOURCESREQUEST_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_CASSANDRA_MODEL_UNTAGRESOURCESRESULT_H_
|
||||
#define ALIBABACLOUD_CASSANDRA_MODEL_UNTAGRESOURCESRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/cassandra/CassandraExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Cassandra
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_CASSANDRA_EXPORT UnTagResourcesResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
|
||||
|
||||
UnTagResourcesResult();
|
||||
explicit UnTagResourcesResult(const std::string &payload);
|
||||
~UnTagResourcesResult();
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_CASSANDRA_MODEL_UNTAGRESOURCESRESULT_H_
|
||||
@@ -699,6 +699,42 @@ CassandraClient::DescribeContactPointsOutcomeCallable CassandraClient::describeC
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
CassandraClient::DescribeDataCenterOutcome CassandraClient::describeDataCenter(const DescribeDataCenterRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return DescribeDataCenterOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return DescribeDataCenterOutcome(DescribeDataCenterResult(outcome.result()));
|
||||
else
|
||||
return DescribeDataCenterOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void CassandraClient::describeDataCenterAsync(const DescribeDataCenterRequest& request, const DescribeDataCenterAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, describeDataCenter(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
CassandraClient::DescribeDataCenterOutcomeCallable CassandraClient::describeDataCenterCallable(const DescribeDataCenterRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<DescribeDataCenterOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->describeDataCenter(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
CassandraClient::DescribeDataCentersOutcome CassandraClient::describeDataCenters(const DescribeDataCentersRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -1131,6 +1167,78 @@ CassandraClient::GetCmsUrlOutcomeCallable CassandraClient::getCmsUrlCallable(con
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
CassandraClient::ListTagResourcesOutcome CassandraClient::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 CassandraClient::listTagResourcesAsync(const ListTagResourcesRequest& request, const ListTagResourcesAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, listTagResources(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
CassandraClient::ListTagResourcesOutcomeCallable CassandraClient::listTagResourcesCallable(const ListTagResourcesRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<ListTagResourcesOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->listTagResources(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
CassandraClient::ListTagsOutcome CassandraClient::listTags(const ListTagsRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return ListTagsOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return ListTagsOutcome(ListTagsResult(outcome.result()));
|
||||
else
|
||||
return ListTagsOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void CassandraClient::listTagsAsync(const ListTagsRequest& request, const ListTagsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, listTags(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
CassandraClient::ListTagsOutcomeCallable CassandraClient::listTagsCallable(const ListTagsRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<ListTagsOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->listTags(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
CassandraClient::ModifyAccountPasswordOutcome CassandraClient::modifyAccountPassword(const ModifyAccountPasswordRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -1671,6 +1779,78 @@ CassandraClient::ResizeNodeCountOutcomeCallable CassandraClient::resizeNodeCount
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
CassandraClient::TagResourcesOutcome CassandraClient::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 CassandraClient::tagResourcesAsync(const TagResourcesRequest& request, const TagResourcesAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, tagResources(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
CassandraClient::TagResourcesOutcomeCallable CassandraClient::tagResourcesCallable(const TagResourcesRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<TagResourcesOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->tagResources(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
CassandraClient::UnTagResourcesOutcome CassandraClient::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 CassandraClient::unTagResourcesAsync(const UnTagResourcesRequest& request, const UnTagResourcesAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, unTagResources(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
CassandraClient::UnTagResourcesOutcomeCallable CassandraClient::unTagResourcesCallable(const UnTagResourcesRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<UnTagResourcesOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->unTagResources(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
CassandraClient::UpgradeClusterVersionOutcome CassandraClient::upgradeClusterVersion(const UpgradeClusterVersionRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
|
||||
@@ -66,6 +66,16 @@ void DescribeClusterResult::parse(const std::string &payload)
|
||||
cluster_.maintainEndTime = clusterNode["MaintainEndTime"].asString();
|
||||
if(!clusterNode["LockMode"].isNull())
|
||||
cluster_.lockMode = clusterNode["LockMode"].asString();
|
||||
auto allTagsNode = clusterNode["Tags"]["Tag"];
|
||||
for (auto clusterNodeTagsTag : allTagsNode)
|
||||
{
|
||||
Cluster::Tag tagObject;
|
||||
if(!clusterNodeTagsTag["Key"].isNull())
|
||||
tagObject.key = clusterNodeTagsTag["Key"].asString();
|
||||
if(!clusterNodeTagsTag["Value"].isNull())
|
||||
tagObject.value = clusterNodeTagsTag["Value"].asString();
|
||||
cluster_.tags.push_back(tagObject);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -27,6 +27,17 @@ DescribeClustersRequest::DescribeClustersRequest() :
|
||||
DescribeClustersRequest::~DescribeClustersRequest()
|
||||
{}
|
||||
|
||||
std::string DescribeClustersRequest::getClusterName()const
|
||||
{
|
||||
return clusterName_;
|
||||
}
|
||||
|
||||
void DescribeClustersRequest::setClusterName(const std::string& clusterName)
|
||||
{
|
||||
clusterName_ = clusterName;
|
||||
setParameter("ClusterName", clusterName);
|
||||
}
|
||||
|
||||
int DescribeClustersRequest::getPageNumber()const
|
||||
{
|
||||
return pageNumber_;
|
||||
@@ -60,3 +71,19 @@ void DescribeClustersRequest::setPageSize(int pageSize)
|
||||
setParameter("PageSize", std::to_string(pageSize));
|
||||
}
|
||||
|
||||
std::vector<DescribeClustersRequest::Tag> DescribeClustersRequest::getTag()const
|
||||
{
|
||||
return tag_;
|
||||
}
|
||||
|
||||
void DescribeClustersRequest::setTag(const std::vector<Tag>& tag)
|
||||
{
|
||||
tag_ = tag;
|
||||
for(int dep1 = 0; dep1!= tag.size(); dep1++) {
|
||||
auto tagObj = tag.at(dep1);
|
||||
std::string tagObjStr = "Tag." + std::to_string(dep1 + 1);
|
||||
setParameter(tagObjStr + ".Value", tagObj.value);
|
||||
setParameter(tagObjStr + ".Key", tagObj.key);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -63,6 +63,16 @@ void DescribeClustersResult::parse(const std::string &payload)
|
||||
clustersObject.dataCenterCount = std::stoi(valueClustersCluster["DataCenterCount"].asString());
|
||||
if(!valueClustersCluster["LockMode"].isNull())
|
||||
clustersObject.lockMode = valueClustersCluster["LockMode"].asString();
|
||||
auto allTagsNode = allClustersNode["Tags"]["Tag"];
|
||||
for (auto allClustersNodeTagsTag : allTagsNode)
|
||||
{
|
||||
Cluster::Tag tagsObject;
|
||||
if(!allClustersNodeTagsTag["Key"].isNull())
|
||||
tagsObject.key = allClustersNodeTagsTag["Key"].asString();
|
||||
if(!allClustersNodeTagsTag["Value"].isNull())
|
||||
tagsObject.value = allClustersNodeTagsTag["Value"].asString();
|
||||
clustersObject.tags.push_back(tagsObject);
|
||||
}
|
||||
clusters_.push_back(clustersObject);
|
||||
}
|
||||
if(!value["TotalCount"].isNull())
|
||||
|
||||
51
cassandra/src/model/DescribeDataCenterRequest.cc
Normal file
51
cassandra/src/model/DescribeDataCenterRequest.cc
Normal file
@@ -0,0 +1,51 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/cassandra/model/DescribeDataCenterRequest.h>
|
||||
|
||||
using AlibabaCloud::Cassandra::Model::DescribeDataCenterRequest;
|
||||
|
||||
DescribeDataCenterRequest::DescribeDataCenterRequest() :
|
||||
RpcServiceRequest("cassandra", "2019-01-01", "DescribeDataCenter")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DescribeDataCenterRequest::~DescribeDataCenterRequest()
|
||||
{}
|
||||
|
||||
std::string DescribeDataCenterRequest::getDataCenterId()const
|
||||
{
|
||||
return dataCenterId_;
|
||||
}
|
||||
|
||||
void DescribeDataCenterRequest::setDataCenterId(const std::string& dataCenterId)
|
||||
{
|
||||
dataCenterId_ = dataCenterId;
|
||||
setParameter("DataCenterId", dataCenterId);
|
||||
}
|
||||
|
||||
std::string DescribeDataCenterRequest::getClusterId()const
|
||||
{
|
||||
return clusterId_;
|
||||
}
|
||||
|
||||
void DescribeDataCenterRequest::setClusterId(const std::string& clusterId)
|
||||
{
|
||||
clusterId_ = clusterId;
|
||||
setParameter("ClusterId", clusterId);
|
||||
}
|
||||
|
||||
163
cassandra/src/model/DescribeDataCenterResult.cc
Normal file
163
cassandra/src/model/DescribeDataCenterResult.cc
Normal file
@@ -0,0 +1,163 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/cassandra/model/DescribeDataCenterResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Cassandra;
|
||||
using namespace AlibabaCloud::Cassandra::Model;
|
||||
|
||||
DescribeDataCenterResult::DescribeDataCenterResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DescribeDataCenterResult::DescribeDataCenterResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DescribeDataCenterResult::~DescribeDataCenterResult()
|
||||
{}
|
||||
|
||||
void DescribeDataCenterResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["DataCenterId"].isNull())
|
||||
dataCenterId_ = value["DataCenterId"].asString();
|
||||
if(!value["RegionId"].isNull())
|
||||
regionId_ = value["RegionId"].asString();
|
||||
if(!value["ZoneId"].isNull())
|
||||
zoneId_ = value["ZoneId"].asString();
|
||||
if(!value["ClusterId"].isNull())
|
||||
clusterId_ = value["ClusterId"].asString();
|
||||
if(!value["DataCenterName"].isNull())
|
||||
dataCenterName_ = value["DataCenterName"].asString();
|
||||
if(!value["Status"].isNull())
|
||||
status_ = value["Status"].asString();
|
||||
if(!value["CreatedTime"].isNull())
|
||||
createdTime_ = value["CreatedTime"].asString();
|
||||
if(!value["InstanceType"].isNull())
|
||||
instanceType_ = value["InstanceType"].asString();
|
||||
if(!value["NodeCount"].isNull())
|
||||
nodeCount_ = std::stoi(value["NodeCount"].asString());
|
||||
if(!value["DiskType"].isNull())
|
||||
diskType_ = value["DiskType"].asString();
|
||||
if(!value["DiskSize"].isNull())
|
||||
diskSize_ = std::stoi(value["DiskSize"].asString());
|
||||
if(!value["VpcId"].isNull())
|
||||
vpcId_ = value["VpcId"].asString();
|
||||
if(!value["VswitchId"].isNull())
|
||||
vswitchId_ = value["VswitchId"].asString();
|
||||
if(!value["PayType"].isNull())
|
||||
payType_ = value["PayType"].asString();
|
||||
if(!value["CommodityInstance"].isNull())
|
||||
commodityInstance_ = value["CommodityInstance"].asString();
|
||||
if(!value["ExpireTime"].isNull())
|
||||
expireTime_ = value["ExpireTime"].asString();
|
||||
if(!value["LockMode"].isNull())
|
||||
lockMode_ = value["LockMode"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string DescribeDataCenterResult::getStatus()const
|
||||
{
|
||||
return status_;
|
||||
}
|
||||
|
||||
std::string DescribeDataCenterResult::getDataCenterId()const
|
||||
{
|
||||
return dataCenterId_;
|
||||
}
|
||||
|
||||
std::string DescribeDataCenterResult::getCreatedTime()const
|
||||
{
|
||||
return createdTime_;
|
||||
}
|
||||
|
||||
std::string DescribeDataCenterResult::getCommodityInstance()const
|
||||
{
|
||||
return commodityInstance_;
|
||||
}
|
||||
|
||||
std::string DescribeDataCenterResult::getZoneId()const
|
||||
{
|
||||
return zoneId_;
|
||||
}
|
||||
|
||||
int DescribeDataCenterResult::getNodeCount()const
|
||||
{
|
||||
return nodeCount_;
|
||||
}
|
||||
|
||||
std::string DescribeDataCenterResult::getClusterId()const
|
||||
{
|
||||
return clusterId_;
|
||||
}
|
||||
|
||||
std::string DescribeDataCenterResult::getPayType()const
|
||||
{
|
||||
return payType_;
|
||||
}
|
||||
|
||||
std::string DescribeDataCenterResult::getLockMode()const
|
||||
{
|
||||
return lockMode_;
|
||||
}
|
||||
|
||||
std::string DescribeDataCenterResult::getDataCenterName()const
|
||||
{
|
||||
return dataCenterName_;
|
||||
}
|
||||
|
||||
std::string DescribeDataCenterResult::getVswitchId()const
|
||||
{
|
||||
return vswitchId_;
|
||||
}
|
||||
|
||||
std::string DescribeDataCenterResult::getDiskType()const
|
||||
{
|
||||
return diskType_;
|
||||
}
|
||||
|
||||
std::string DescribeDataCenterResult::getVpcId()const
|
||||
{
|
||||
return vpcId_;
|
||||
}
|
||||
|
||||
int DescribeDataCenterResult::getDiskSize()const
|
||||
{
|
||||
return diskSize_;
|
||||
}
|
||||
|
||||
std::string DescribeDataCenterResult::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
std::string DescribeDataCenterResult::getInstanceType()const
|
||||
{
|
||||
return instanceType_;
|
||||
}
|
||||
|
||||
std::string DescribeDataCenterResult::getExpireTime()const
|
||||
{
|
||||
return expireTime_;
|
||||
}
|
||||
|
||||
80
cassandra/src/model/ListTagResourcesRequest.cc
Normal file
80
cassandra/src/model/ListTagResourcesRequest.cc
Normal file
@@ -0,0 +1,80 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/cassandra/model/ListTagResourcesRequest.h>
|
||||
|
||||
using AlibabaCloud::Cassandra::Model::ListTagResourcesRequest;
|
||||
|
||||
ListTagResourcesRequest::ListTagResourcesRequest() :
|
||||
RpcServiceRequest("cassandra", "2019-01-01", "ListTagResources")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
ListTagResourcesRequest::~ListTagResourcesRequest()
|
||||
{}
|
||||
|
||||
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::Tag> ListTagResourcesRequest::getTag()const
|
||||
{
|
||||
return tag_;
|
||||
}
|
||||
|
||||
void ListTagResourcesRequest::setTag(const std::vector<Tag>& tag)
|
||||
{
|
||||
tag_ = tag;
|
||||
for(int dep1 = 0; dep1!= tag.size(); dep1++) {
|
||||
auto tagObj = tag.at(dep1);
|
||||
std::string tagObjStr = "Tag." + std::to_string(dep1 + 1);
|
||||
setParameter(tagObjStr + ".Value", tagObj.value);
|
||||
setParameter(tagObjStr + ".Key", tagObj.key);
|
||||
}
|
||||
}
|
||||
|
||||
std::vector<std::string> ListTagResourcesRequest::getResourceId()const
|
||||
{
|
||||
return resourceId_;
|
||||
}
|
||||
|
||||
void ListTagResourcesRequest::setResourceId(const std::vector<std::string>& resourceId)
|
||||
{
|
||||
resourceId_ = resourceId;
|
||||
for(int dep1 = 0; dep1!= resourceId.size(); dep1++) {
|
||||
setParameter("ResourceId."+ std::to_string(dep1), resourceId.at(dep1));
|
||||
}
|
||||
}
|
||||
|
||||
70
cassandra/src/model/ListTagResourcesResult.cc
Normal file
70
cassandra/src/model/ListTagResourcesResult.cc
Normal file
@@ -0,0 +1,70 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/cassandra/model/ListTagResourcesResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Cassandra;
|
||||
using namespace AlibabaCloud::Cassandra::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::TagResource> ListTagResourcesResult::getTagResources()const
|
||||
{
|
||||
return tagResources_;
|
||||
}
|
||||
|
||||
@@ -14,25 +14,27 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/ccc/model/CreateCCCPostOrderRequest.h>
|
||||
#include <alibabacloud/cassandra/model/ListTagsRequest.h>
|
||||
|
||||
using AlibabaCloud::CCC::Model::CreateCCCPostOrderRequest;
|
||||
using AlibabaCloud::Cassandra::Model::ListTagsRequest;
|
||||
|
||||
CreateCCCPostOrderRequest::CreateCCCPostOrderRequest() :
|
||||
RpcServiceRequest("ccc", "2017-07-05", "CreateCCCPostOrder")
|
||||
ListTagsRequest::ListTagsRequest() :
|
||||
RpcServiceRequest("cassandra", "2019-01-01", "ListTags")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
ListTagsRequest::~ListTagsRequest()
|
||||
{}
|
||||
|
||||
CreateCCCPostOrderRequest::~CreateCCCPostOrderRequest()
|
||||
{}
|
||||
|
||||
std::string CreateCCCPostOrderRequest::getOwnerId()const
|
||||
std::string ListTagsRequest::getRegionId()const
|
||||
{
|
||||
return ownerId_;
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void CreateCCCPostOrderRequest::setOwnerId(const std::string& ownerId)
|
||||
void ListTagsRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setCoreParameter("OwnerId", ownerId);
|
||||
regionId_ = regionId;
|
||||
setParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
59
cassandra/src/model/ListTagsResult.cc
Normal file
59
cassandra/src/model/ListTagsResult.cc
Normal file
@@ -0,0 +1,59 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/cassandra/model/ListTagsResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Cassandra;
|
||||
using namespace AlibabaCloud::Cassandra::Model;
|
||||
|
||||
ListTagsResult::ListTagsResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
ListTagsResult::ListTagsResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
ListTagsResult::~ListTagsResult()
|
||||
{}
|
||||
|
||||
void ListTagsResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allTagsNode = value["Tags"]["Tag"];
|
||||
for (auto valueTagsTag : allTagsNode)
|
||||
{
|
||||
Tag tagsObject;
|
||||
if(!valueTagsTag["TagKey"].isNull())
|
||||
tagsObject.tagKey = valueTagsTag["TagKey"].asString();
|
||||
if(!valueTagsTag["TagValue"].isNull())
|
||||
tagsObject.tagValue = valueTagsTag["TagValue"].asString();
|
||||
tags_.push_back(tagsObject);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
std::vector<ListTagsResult::Tag> ListTagsResult::getTags()const
|
||||
{
|
||||
return tags_;
|
||||
}
|
||||
|
||||
69
cassandra/src/model/TagResourcesRequest.cc
Normal file
69
cassandra/src/model/TagResourcesRequest.cc
Normal file
@@ -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.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/cassandra/model/TagResourcesRequest.h>
|
||||
|
||||
using AlibabaCloud::Cassandra::Model::TagResourcesRequest;
|
||||
|
||||
TagResourcesRequest::TagResourcesRequest() :
|
||||
RpcServiceRequest("cassandra", "2019-01-01", "TagResources")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
TagResourcesRequest::~TagResourcesRequest()
|
||||
{}
|
||||
|
||||
std::vector<std::string> TagResourcesRequest::getResourceId()const
|
||||
{
|
||||
return resourceId_;
|
||||
}
|
||||
|
||||
void TagResourcesRequest::setResourceId(const std::vector<std::string>& resourceId)
|
||||
{
|
||||
resourceId_ = resourceId;
|
||||
for(int dep1 = 0; dep1!= resourceId.size(); dep1++) {
|
||||
setParameter("ResourceId."+ std::to_string(dep1), resourceId.at(dep1));
|
||||
}
|
||||
}
|
||||
|
||||
std::string TagResourcesRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void TagResourcesRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
std::vector<TagResourcesRequest::Tag> TagResourcesRequest::getTag()const
|
||||
{
|
||||
return tag_;
|
||||
}
|
||||
|
||||
void TagResourcesRequest::setTag(const std::vector<Tag>& tag)
|
||||
{
|
||||
tag_ = tag;
|
||||
for(int dep1 = 0; dep1!= tag.size(); dep1++) {
|
||||
auto tagObj = tag.at(dep1);
|
||||
std::string tagObjStr = "Tag." + std::to_string(dep1 + 1);
|
||||
setParameter(tagObjStr + ".Value", tagObj.value);
|
||||
setParameter(tagObjStr + ".Key", tagObj.key);
|
||||
}
|
||||
}
|
||||
|
||||
44
cassandra/src/model/TagResourcesResult.cc
Normal file
44
cassandra/src/model/TagResourcesResult.cc
Normal file
@@ -0,0 +1,44 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/cassandra/model/TagResourcesResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Cassandra;
|
||||
using namespace AlibabaCloud::Cassandra::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());
|
||||
|
||||
}
|
||||
|
||||
77
cassandra/src/model/UnTagResourcesRequest.cc
Normal file
77
cassandra/src/model/UnTagResourcesRequest.cc
Normal file
@@ -0,0 +1,77 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/cassandra/model/UnTagResourcesRequest.h>
|
||||
|
||||
using AlibabaCloud::Cassandra::Model::UnTagResourcesRequest;
|
||||
|
||||
UnTagResourcesRequest::UnTagResourcesRequest() :
|
||||
RpcServiceRequest("cassandra", "2019-01-01", "UnTagResources")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
UnTagResourcesRequest::~UnTagResourcesRequest()
|
||||
{}
|
||||
|
||||
std::string UnTagResourcesRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void UnTagResourcesRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
bool UnTagResourcesRequest::getAll()const
|
||||
{
|
||||
return all_;
|
||||
}
|
||||
|
||||
void UnTagResourcesRequest::setAll(bool all)
|
||||
{
|
||||
all_ = all;
|
||||
setParameter("All", all ? "true" : "false");
|
||||
}
|
||||
|
||||
std::vector<std::string> UnTagResourcesRequest::getResourceId()const
|
||||
{
|
||||
return resourceId_;
|
||||
}
|
||||
|
||||
void UnTagResourcesRequest::setResourceId(const std::vector<std::string>& resourceId)
|
||||
{
|
||||
resourceId_ = resourceId;
|
||||
for(int dep1 = 0; dep1!= resourceId.size(); dep1++) {
|
||||
setParameter("ResourceId."+ std::to_string(dep1), resourceId.at(dep1));
|
||||
}
|
||||
}
|
||||
|
||||
std::vector<std::string> UnTagResourcesRequest::getTagKey()const
|
||||
{
|
||||
return tagKey_;
|
||||
}
|
||||
|
||||
void UnTagResourcesRequest::setTagKey(const std::vector<std::string>& tagKey)
|
||||
{
|
||||
tagKey_ = tagKey;
|
||||
for(int dep1 = 0; dep1!= tagKey.size(); dep1++) {
|
||||
setParameter("TagKey."+ std::to_string(dep1), tagKey.at(dep1));
|
||||
}
|
||||
}
|
||||
|
||||
44
cassandra/src/model/UnTagResourcesResult.cc
Normal file
44
cassandra/src/model/UnTagResourcesResult.cc
Normal file
@@ -0,0 +1,44 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/cassandra/model/UnTagResourcesResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Cassandra;
|
||||
using namespace AlibabaCloud::Cassandra::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());
|
||||
|
||||
}
|
||||
|
||||
@@ -25,8 +25,6 @@ set(ccc_public_header_model
|
||||
include/alibabacloud/ccc/model/AddAgentDeviceResult.h
|
||||
include/alibabacloud/ccc/model/AddBulkPhoneNumbersRequest.h
|
||||
include/alibabacloud/ccc/model/AddBulkPhoneNumbersResult.h
|
||||
include/alibabacloud/ccc/model/AddNumberToSkillGroupRequest.h
|
||||
include/alibabacloud/ccc/model/AddNumberToSkillGroupResult.h
|
||||
include/alibabacloud/ccc/model/AddPhoneNumberRequest.h
|
||||
include/alibabacloud/ccc/model/AddPhoneNumberResult.h
|
||||
include/alibabacloud/ccc/model/AddPhoneTagsRequest.h
|
||||
@@ -39,16 +37,12 @@ set(ccc_public_header_model
|
||||
include/alibabacloud/ccc/model/CallOnlinePrivacyNumberResult.h
|
||||
include/alibabacloud/ccc/model/CancelJobsRequest.h
|
||||
include/alibabacloud/ccc/model/CancelJobsResult.h
|
||||
include/alibabacloud/ccc/model/CancelPredictiveJobsRequest.h
|
||||
include/alibabacloud/ccc/model/CancelPredictiveJobsResult.h
|
||||
include/alibabacloud/ccc/model/CheckNumberAvaliableRequest.h
|
||||
include/alibabacloud/ccc/model/CheckNumberAvaliableResult.h
|
||||
include/alibabacloud/ccc/model/CommitContactFlowVersionModificationRequest.h
|
||||
include/alibabacloud/ccc/model/CommitContactFlowVersionModificationResult.h
|
||||
include/alibabacloud/ccc/model/CreateBatchJobsRequest.h
|
||||
include/alibabacloud/ccc/model/CreateBatchJobsResult.h
|
||||
include/alibabacloud/ccc/model/CreateCCCPostOrderRequest.h
|
||||
include/alibabacloud/ccc/model/CreateCCCPostOrderResult.h
|
||||
include/alibabacloud/ccc/model/CreateCabInstanceRequest.h
|
||||
include/alibabacloud/ccc/model/CreateCabInstanceResult.h
|
||||
include/alibabacloud/ccc/model/CreateContactFlowRequest.h
|
||||
@@ -61,10 +55,6 @@ set(ccc_public_header_model
|
||||
include/alibabacloud/ccc/model/CreateJobGroupResult.h
|
||||
include/alibabacloud/ccc/model/CreateMediaRequest.h
|
||||
include/alibabacloud/ccc/model/CreateMediaResult.h
|
||||
include/alibabacloud/ccc/model/CreatePredictiveJobGroupRequest.h
|
||||
include/alibabacloud/ccc/model/CreatePredictiveJobGroupResult.h
|
||||
include/alibabacloud/ccc/model/CreatePredictiveJobsRequest.h
|
||||
include/alibabacloud/ccc/model/CreatePredictiveJobsResult.h
|
||||
include/alibabacloud/ccc/model/CreateScenarioRequest.h
|
||||
include/alibabacloud/ccc/model/CreateScenarioResult.h
|
||||
include/alibabacloud/ccc/model/CreateScenarioFromTemplateRequest.h
|
||||
@@ -109,16 +99,10 @@ set(ccc_public_header_model
|
||||
include/alibabacloud/ccc/model/GenerateAgentStatisticReportResult.h
|
||||
include/alibabacloud/ccc/model/GetAgentDataRequest.h
|
||||
include/alibabacloud/ccc/model/GetAgentDataResult.h
|
||||
include/alibabacloud/ccc/model/GetAgentStateRequest.h
|
||||
include/alibabacloud/ccc/model/GetAgentStateResult.h
|
||||
include/alibabacloud/ccc/model/GetCallMeasureSummaryReportRequest.h
|
||||
include/alibabacloud/ccc/model/GetCallMeasureSummaryReportResult.h
|
||||
include/alibabacloud/ccc/model/GetConfigRequest.h
|
||||
include/alibabacloud/ccc/model/GetConfigResult.h
|
||||
include/alibabacloud/ccc/model/GetContactIdentifyByOutBoundTaskIdRequest.h
|
||||
include/alibabacloud/ccc/model/GetContactIdentifyByOutBoundTaskIdResult.h
|
||||
include/alibabacloud/ccc/model/GetContactInfoByOutboundTaskIdRequest.h
|
||||
include/alibabacloud/ccc/model/GetContactInfoByOutboundTaskIdResult.h
|
||||
include/alibabacloud/ccc/model/GetConversationDetailByContactIdRequest.h
|
||||
include/alibabacloud/ccc/model/GetConversationDetailByContactIdResult.h
|
||||
include/alibabacloud/ccc/model/GetConversationListRequest.h
|
||||
@@ -137,8 +121,6 @@ set(ccc_public_header_model
|
||||
include/alibabacloud/ccc/model/GetJobResult.h
|
||||
include/alibabacloud/ccc/model/GetJobDataUploadParamsRequest.h
|
||||
include/alibabacloud/ccc/model/GetJobDataUploadParamsResult.h
|
||||
include/alibabacloud/ccc/model/GetJobFileUploadUrlRequest.h
|
||||
include/alibabacloud/ccc/model/GetJobFileUploadUrlResult.h
|
||||
include/alibabacloud/ccc/model/GetJobGroupRequest.h
|
||||
include/alibabacloud/ccc/model/GetJobGroupResult.h
|
||||
include/alibabacloud/ccc/model/GetJobListRequest.h
|
||||
@@ -147,12 +129,8 @@ set(ccc_public_header_model
|
||||
include/alibabacloud/ccc/model/GetJobStatusByCallIdResult.h
|
||||
include/alibabacloud/ccc/model/GetJobTemplateDownloadParamsRequest.h
|
||||
include/alibabacloud/ccc/model/GetJobTemplateDownloadParamsResult.h
|
||||
include/alibabacloud/ccc/model/GetJobsProgressRequest.h
|
||||
include/alibabacloud/ccc/model/GetJobsProgressResult.h
|
||||
include/alibabacloud/ccc/model/GetNumberRegionInfoRequest.h
|
||||
include/alibabacloud/ccc/model/GetNumberRegionInfoResult.h
|
||||
include/alibabacloud/ccc/model/GetPredictiveJobRequest.h
|
||||
include/alibabacloud/ccc/model/GetPredictiveJobResult.h
|
||||
include/alibabacloud/ccc/model/GetRecordOssUploadParamRequest.h
|
||||
include/alibabacloud/ccc/model/GetRecordOssUploadParamResult.h
|
||||
include/alibabacloud/ccc/model/GetRoutePointRequest.h
|
||||
@@ -221,14 +199,6 @@ set(ccc_public_header_model
|
||||
include/alibabacloud/ccc/model/ListPhoneNumbersResult.h
|
||||
include/alibabacloud/ccc/model/ListPhoneTagsRequest.h
|
||||
include/alibabacloud/ccc/model/ListPhoneTagsResult.h
|
||||
include/alibabacloud/ccc/model/ListPredictiveJobGroupsRequest.h
|
||||
include/alibabacloud/ccc/model/ListPredictiveJobGroupsResult.h
|
||||
include/alibabacloud/ccc/model/ListPredictiveJobStatusRequest.h
|
||||
include/alibabacloud/ccc/model/ListPredictiveJobStatusResult.h
|
||||
include/alibabacloud/ccc/model/ListPrivacyNumberCallDetailsRequest.h
|
||||
include/alibabacloud/ccc/model/ListPrivacyNumberCallDetailsResult.h
|
||||
include/alibabacloud/ccc/model/ListPrivilegesOfUserRequest.h
|
||||
include/alibabacloud/ccc/model/ListPrivilegesOfUserResult.h
|
||||
include/alibabacloud/ccc/model/ListRealTimeAgentRequest.h
|
||||
include/alibabacloud/ccc/model/ListRealTimeAgentResult.h
|
||||
include/alibabacloud/ccc/model/ListRecentCallRecordsRequest.h
|
||||
@@ -271,10 +241,6 @@ set(ccc_public_header_model
|
||||
include/alibabacloud/ccc/model/ModifyAgentDeviceResult.h
|
||||
include/alibabacloud/ccc/model/ModifyCabInstanceRequest.h
|
||||
include/alibabacloud/ccc/model/ModifyCabInstanceResult.h
|
||||
include/alibabacloud/ccc/model/ModifyMediaRequest.h
|
||||
include/alibabacloud/ccc/model/ModifyMediaResult.h
|
||||
include/alibabacloud/ccc/model/ModifyNotificationConfigRequest.h
|
||||
include/alibabacloud/ccc/model/ModifyNotificationConfigResult.h
|
||||
include/alibabacloud/ccc/model/ModifyPhoneNumberRequest.h
|
||||
include/alibabacloud/ccc/model/ModifyPhoneNumberResult.h
|
||||
include/alibabacloud/ccc/model/ModifyPhoneTagsRequest.h
|
||||
@@ -299,28 +265,12 @@ set(ccc_public_header_model
|
||||
include/alibabacloud/ccc/model/PickLocalNumberResult.h
|
||||
include/alibabacloud/ccc/model/PickOutboundNumbersRequest.h
|
||||
include/alibabacloud/ccc/model/PickOutboundNumbersResult.h
|
||||
include/alibabacloud/ccc/model/PickOutboundNumbersByTagsRequest.h
|
||||
include/alibabacloud/ccc/model/PickOutboundNumbersByTagsResult.h
|
||||
include/alibabacloud/ccc/model/PreCreateMediaRequest.h
|
||||
include/alibabacloud/ccc/model/PreCreateMediaResult.h
|
||||
include/alibabacloud/ccc/model/PreModifyMediaRequest.h
|
||||
include/alibabacloud/ccc/model/PreModifyMediaResult.h
|
||||
include/alibabacloud/ccc/model/PredictiveRecordFailureRequest.h
|
||||
include/alibabacloud/ccc/model/PredictiveRecordFailureResult.h
|
||||
include/alibabacloud/ccc/model/PredictiveRecordSuccessRequest.h
|
||||
include/alibabacloud/ccc/model/PredictiveRecordSuccessResult.h
|
||||
include/alibabacloud/ccc/model/PublishContactFlowVersionRequest.h
|
||||
include/alibabacloud/ccc/model/PublishContactFlowVersionResult.h
|
||||
include/alibabacloud/ccc/model/PublishPredictiveJobGroupRequest.h
|
||||
include/alibabacloud/ccc/model/PublishPredictiveJobGroupResult.h
|
||||
include/alibabacloud/ccc/model/PublishSurveyRequest.h
|
||||
include/alibabacloud/ccc/model/PublishSurveyResult.h
|
||||
include/alibabacloud/ccc/model/QueryRedialIndicatorRequest.h
|
||||
include/alibabacloud/ccc/model/QueryRedialIndicatorResult.h
|
||||
include/alibabacloud/ccc/model/RefreshTokenRequest.h
|
||||
include/alibabacloud/ccc/model/RefreshTokenResult.h
|
||||
include/alibabacloud/ccc/model/RemoveNumberFromSkillGroupRequest.h
|
||||
include/alibabacloud/ccc/model/RemoveNumberFromSkillGroupResult.h
|
||||
include/alibabacloud/ccc/model/RemovePhoneNumberRequest.h
|
||||
include/alibabacloud/ccc/model/RemovePhoneNumberResult.h
|
||||
include/alibabacloud/ccc/model/RemoveUsersRequest.h
|
||||
@@ -339,8 +289,6 @@ set(ccc_public_header_model
|
||||
include/alibabacloud/ccc/model/SaveWebRTCStatsResult.h
|
||||
include/alibabacloud/ccc/model/SendPredefinedShortMessageRequest.h
|
||||
include/alibabacloud/ccc/model/SendPredefinedShortMessageResult.h
|
||||
include/alibabacloud/ccc/model/SimpleDialRequest.h
|
||||
include/alibabacloud/ccc/model/SimpleDialResult.h
|
||||
include/alibabacloud/ccc/model/StartBack2BackCallRequest.h
|
||||
include/alibabacloud/ccc/model/StartBack2BackCallResult.h
|
||||
include/alibabacloud/ccc/model/StartJobRequest.h
|
||||
@@ -352,9 +300,7 @@ set(ccc_public_header_model
|
||||
include/alibabacloud/ccc/model/SuspendJobsRequest.h
|
||||
include/alibabacloud/ccc/model/SuspendJobsResult.h
|
||||
include/alibabacloud/ccc/model/TaskPreparingRequest.h
|
||||
include/alibabacloud/ccc/model/TaskPreparingResult.h
|
||||
include/alibabacloud/ccc/model/TwoPartiesCallRequest.h
|
||||
include/alibabacloud/ccc/model/TwoPartiesCallResult.h )
|
||||
include/alibabacloud/ccc/model/TaskPreparingResult.h )
|
||||
|
||||
set(ccc_src
|
||||
src/CCCClient.cc
|
||||
@@ -362,8 +308,6 @@ set(ccc_src
|
||||
src/model/AddAgentDeviceResult.cc
|
||||
src/model/AddBulkPhoneNumbersRequest.cc
|
||||
src/model/AddBulkPhoneNumbersResult.cc
|
||||
src/model/AddNumberToSkillGroupRequest.cc
|
||||
src/model/AddNumberToSkillGroupResult.cc
|
||||
src/model/AddPhoneNumberRequest.cc
|
||||
src/model/AddPhoneNumberResult.cc
|
||||
src/model/AddPhoneTagsRequest.cc
|
||||
@@ -376,16 +320,12 @@ set(ccc_src
|
||||
src/model/CallOnlinePrivacyNumberResult.cc
|
||||
src/model/CancelJobsRequest.cc
|
||||
src/model/CancelJobsResult.cc
|
||||
src/model/CancelPredictiveJobsRequest.cc
|
||||
src/model/CancelPredictiveJobsResult.cc
|
||||
src/model/CheckNumberAvaliableRequest.cc
|
||||
src/model/CheckNumberAvaliableResult.cc
|
||||
src/model/CommitContactFlowVersionModificationRequest.cc
|
||||
src/model/CommitContactFlowVersionModificationResult.cc
|
||||
src/model/CreateBatchJobsRequest.cc
|
||||
src/model/CreateBatchJobsResult.cc
|
||||
src/model/CreateCCCPostOrderRequest.cc
|
||||
src/model/CreateCCCPostOrderResult.cc
|
||||
src/model/CreateCabInstanceRequest.cc
|
||||
src/model/CreateCabInstanceResult.cc
|
||||
src/model/CreateContactFlowRequest.cc
|
||||
@@ -398,10 +338,6 @@ set(ccc_src
|
||||
src/model/CreateJobGroupResult.cc
|
||||
src/model/CreateMediaRequest.cc
|
||||
src/model/CreateMediaResult.cc
|
||||
src/model/CreatePredictiveJobGroupRequest.cc
|
||||
src/model/CreatePredictiveJobGroupResult.cc
|
||||
src/model/CreatePredictiveJobsRequest.cc
|
||||
src/model/CreatePredictiveJobsResult.cc
|
||||
src/model/CreateScenarioRequest.cc
|
||||
src/model/CreateScenarioResult.cc
|
||||
src/model/CreateScenarioFromTemplateRequest.cc
|
||||
@@ -446,16 +382,10 @@ set(ccc_src
|
||||
src/model/GenerateAgentStatisticReportResult.cc
|
||||
src/model/GetAgentDataRequest.cc
|
||||
src/model/GetAgentDataResult.cc
|
||||
src/model/GetAgentStateRequest.cc
|
||||
src/model/GetAgentStateResult.cc
|
||||
src/model/GetCallMeasureSummaryReportRequest.cc
|
||||
src/model/GetCallMeasureSummaryReportResult.cc
|
||||
src/model/GetConfigRequest.cc
|
||||
src/model/GetConfigResult.cc
|
||||
src/model/GetContactIdentifyByOutBoundTaskIdRequest.cc
|
||||
src/model/GetContactIdentifyByOutBoundTaskIdResult.cc
|
||||
src/model/GetContactInfoByOutboundTaskIdRequest.cc
|
||||
src/model/GetContactInfoByOutboundTaskIdResult.cc
|
||||
src/model/GetConversationDetailByContactIdRequest.cc
|
||||
src/model/GetConversationDetailByContactIdResult.cc
|
||||
src/model/GetConversationListRequest.cc
|
||||
@@ -474,8 +404,6 @@ set(ccc_src
|
||||
src/model/GetJobResult.cc
|
||||
src/model/GetJobDataUploadParamsRequest.cc
|
||||
src/model/GetJobDataUploadParamsResult.cc
|
||||
src/model/GetJobFileUploadUrlRequest.cc
|
||||
src/model/GetJobFileUploadUrlResult.cc
|
||||
src/model/GetJobGroupRequest.cc
|
||||
src/model/GetJobGroupResult.cc
|
||||
src/model/GetJobListRequest.cc
|
||||
@@ -484,12 +412,8 @@ set(ccc_src
|
||||
src/model/GetJobStatusByCallIdResult.cc
|
||||
src/model/GetJobTemplateDownloadParamsRequest.cc
|
||||
src/model/GetJobTemplateDownloadParamsResult.cc
|
||||
src/model/GetJobsProgressRequest.cc
|
||||
src/model/GetJobsProgressResult.cc
|
||||
src/model/GetNumberRegionInfoRequest.cc
|
||||
src/model/GetNumberRegionInfoResult.cc
|
||||
src/model/GetPredictiveJobRequest.cc
|
||||
src/model/GetPredictiveJobResult.cc
|
||||
src/model/GetRecordOssUploadParamRequest.cc
|
||||
src/model/GetRecordOssUploadParamResult.cc
|
||||
src/model/GetRoutePointRequest.cc
|
||||
@@ -558,14 +482,6 @@ set(ccc_src
|
||||
src/model/ListPhoneNumbersResult.cc
|
||||
src/model/ListPhoneTagsRequest.cc
|
||||
src/model/ListPhoneTagsResult.cc
|
||||
src/model/ListPredictiveJobGroupsRequest.cc
|
||||
src/model/ListPredictiveJobGroupsResult.cc
|
||||
src/model/ListPredictiveJobStatusRequest.cc
|
||||
src/model/ListPredictiveJobStatusResult.cc
|
||||
src/model/ListPrivacyNumberCallDetailsRequest.cc
|
||||
src/model/ListPrivacyNumberCallDetailsResult.cc
|
||||
src/model/ListPrivilegesOfUserRequest.cc
|
||||
src/model/ListPrivilegesOfUserResult.cc
|
||||
src/model/ListRealTimeAgentRequest.cc
|
||||
src/model/ListRealTimeAgentResult.cc
|
||||
src/model/ListRecentCallRecordsRequest.cc
|
||||
@@ -608,10 +524,6 @@ set(ccc_src
|
||||
src/model/ModifyAgentDeviceResult.cc
|
||||
src/model/ModifyCabInstanceRequest.cc
|
||||
src/model/ModifyCabInstanceResult.cc
|
||||
src/model/ModifyMediaRequest.cc
|
||||
src/model/ModifyMediaResult.cc
|
||||
src/model/ModifyNotificationConfigRequest.cc
|
||||
src/model/ModifyNotificationConfigResult.cc
|
||||
src/model/ModifyPhoneNumberRequest.cc
|
||||
src/model/ModifyPhoneNumberResult.cc
|
||||
src/model/ModifyPhoneTagsRequest.cc
|
||||
@@ -636,28 +548,12 @@ set(ccc_src
|
||||
src/model/PickLocalNumberResult.cc
|
||||
src/model/PickOutboundNumbersRequest.cc
|
||||
src/model/PickOutboundNumbersResult.cc
|
||||
src/model/PickOutboundNumbersByTagsRequest.cc
|
||||
src/model/PickOutboundNumbersByTagsResult.cc
|
||||
src/model/PreCreateMediaRequest.cc
|
||||
src/model/PreCreateMediaResult.cc
|
||||
src/model/PreModifyMediaRequest.cc
|
||||
src/model/PreModifyMediaResult.cc
|
||||
src/model/PredictiveRecordFailureRequest.cc
|
||||
src/model/PredictiveRecordFailureResult.cc
|
||||
src/model/PredictiveRecordSuccessRequest.cc
|
||||
src/model/PredictiveRecordSuccessResult.cc
|
||||
src/model/PublishContactFlowVersionRequest.cc
|
||||
src/model/PublishContactFlowVersionResult.cc
|
||||
src/model/PublishPredictiveJobGroupRequest.cc
|
||||
src/model/PublishPredictiveJobGroupResult.cc
|
||||
src/model/PublishSurveyRequest.cc
|
||||
src/model/PublishSurveyResult.cc
|
||||
src/model/QueryRedialIndicatorRequest.cc
|
||||
src/model/QueryRedialIndicatorResult.cc
|
||||
src/model/RefreshTokenRequest.cc
|
||||
src/model/RefreshTokenResult.cc
|
||||
src/model/RemoveNumberFromSkillGroupRequest.cc
|
||||
src/model/RemoveNumberFromSkillGroupResult.cc
|
||||
src/model/RemovePhoneNumberRequest.cc
|
||||
src/model/RemovePhoneNumberResult.cc
|
||||
src/model/RemoveUsersRequest.cc
|
||||
@@ -676,8 +572,6 @@ set(ccc_src
|
||||
src/model/SaveWebRTCStatsResult.cc
|
||||
src/model/SendPredefinedShortMessageRequest.cc
|
||||
src/model/SendPredefinedShortMessageResult.cc
|
||||
src/model/SimpleDialRequest.cc
|
||||
src/model/SimpleDialResult.cc
|
||||
src/model/StartBack2BackCallRequest.cc
|
||||
src/model/StartBack2BackCallResult.cc
|
||||
src/model/StartJobRequest.cc
|
||||
@@ -689,9 +583,7 @@ set(ccc_src
|
||||
src/model/SuspendJobsRequest.cc
|
||||
src/model/SuspendJobsResult.cc
|
||||
src/model/TaskPreparingRequest.cc
|
||||
src/model/TaskPreparingResult.cc
|
||||
src/model/TwoPartiesCallRequest.cc
|
||||
src/model/TwoPartiesCallResult.cc )
|
||||
src/model/TaskPreparingResult.cc )
|
||||
|
||||
add_library(ccc ${LIB_TYPE}
|
||||
${ccc_public_header}
|
||||
|
||||
@@ -26,8 +26,6 @@
|
||||
#include "model/AddAgentDeviceResult.h"
|
||||
#include "model/AddBulkPhoneNumbersRequest.h"
|
||||
#include "model/AddBulkPhoneNumbersResult.h"
|
||||
#include "model/AddNumberToSkillGroupRequest.h"
|
||||
#include "model/AddNumberToSkillGroupResult.h"
|
||||
#include "model/AddPhoneNumberRequest.h"
|
||||
#include "model/AddPhoneNumberResult.h"
|
||||
#include "model/AddPhoneTagsRequest.h"
|
||||
@@ -40,16 +38,12 @@
|
||||
#include "model/CallOnlinePrivacyNumberResult.h"
|
||||
#include "model/CancelJobsRequest.h"
|
||||
#include "model/CancelJobsResult.h"
|
||||
#include "model/CancelPredictiveJobsRequest.h"
|
||||
#include "model/CancelPredictiveJobsResult.h"
|
||||
#include "model/CheckNumberAvaliableRequest.h"
|
||||
#include "model/CheckNumberAvaliableResult.h"
|
||||
#include "model/CommitContactFlowVersionModificationRequest.h"
|
||||
#include "model/CommitContactFlowVersionModificationResult.h"
|
||||
#include "model/CreateBatchJobsRequest.h"
|
||||
#include "model/CreateBatchJobsResult.h"
|
||||
#include "model/CreateCCCPostOrderRequest.h"
|
||||
#include "model/CreateCCCPostOrderResult.h"
|
||||
#include "model/CreateCabInstanceRequest.h"
|
||||
#include "model/CreateCabInstanceResult.h"
|
||||
#include "model/CreateContactFlowRequest.h"
|
||||
@@ -62,10 +56,6 @@
|
||||
#include "model/CreateJobGroupResult.h"
|
||||
#include "model/CreateMediaRequest.h"
|
||||
#include "model/CreateMediaResult.h"
|
||||
#include "model/CreatePredictiveJobGroupRequest.h"
|
||||
#include "model/CreatePredictiveJobGroupResult.h"
|
||||
#include "model/CreatePredictiveJobsRequest.h"
|
||||
#include "model/CreatePredictiveJobsResult.h"
|
||||
#include "model/CreateScenarioRequest.h"
|
||||
#include "model/CreateScenarioResult.h"
|
||||
#include "model/CreateScenarioFromTemplateRequest.h"
|
||||
@@ -110,16 +100,10 @@
|
||||
#include "model/GenerateAgentStatisticReportResult.h"
|
||||
#include "model/GetAgentDataRequest.h"
|
||||
#include "model/GetAgentDataResult.h"
|
||||
#include "model/GetAgentStateRequest.h"
|
||||
#include "model/GetAgentStateResult.h"
|
||||
#include "model/GetCallMeasureSummaryReportRequest.h"
|
||||
#include "model/GetCallMeasureSummaryReportResult.h"
|
||||
#include "model/GetConfigRequest.h"
|
||||
#include "model/GetConfigResult.h"
|
||||
#include "model/GetContactIdentifyByOutBoundTaskIdRequest.h"
|
||||
#include "model/GetContactIdentifyByOutBoundTaskIdResult.h"
|
||||
#include "model/GetContactInfoByOutboundTaskIdRequest.h"
|
||||
#include "model/GetContactInfoByOutboundTaskIdResult.h"
|
||||
#include "model/GetConversationDetailByContactIdRequest.h"
|
||||
#include "model/GetConversationDetailByContactIdResult.h"
|
||||
#include "model/GetConversationListRequest.h"
|
||||
@@ -138,8 +122,6 @@
|
||||
#include "model/GetJobResult.h"
|
||||
#include "model/GetJobDataUploadParamsRequest.h"
|
||||
#include "model/GetJobDataUploadParamsResult.h"
|
||||
#include "model/GetJobFileUploadUrlRequest.h"
|
||||
#include "model/GetJobFileUploadUrlResult.h"
|
||||
#include "model/GetJobGroupRequest.h"
|
||||
#include "model/GetJobGroupResult.h"
|
||||
#include "model/GetJobListRequest.h"
|
||||
@@ -148,12 +130,8 @@
|
||||
#include "model/GetJobStatusByCallIdResult.h"
|
||||
#include "model/GetJobTemplateDownloadParamsRequest.h"
|
||||
#include "model/GetJobTemplateDownloadParamsResult.h"
|
||||
#include "model/GetJobsProgressRequest.h"
|
||||
#include "model/GetJobsProgressResult.h"
|
||||
#include "model/GetNumberRegionInfoRequest.h"
|
||||
#include "model/GetNumberRegionInfoResult.h"
|
||||
#include "model/GetPredictiveJobRequest.h"
|
||||
#include "model/GetPredictiveJobResult.h"
|
||||
#include "model/GetRecordOssUploadParamRequest.h"
|
||||
#include "model/GetRecordOssUploadParamResult.h"
|
||||
#include "model/GetRoutePointRequest.h"
|
||||
@@ -222,14 +200,6 @@
|
||||
#include "model/ListPhoneNumbersResult.h"
|
||||
#include "model/ListPhoneTagsRequest.h"
|
||||
#include "model/ListPhoneTagsResult.h"
|
||||
#include "model/ListPredictiveJobGroupsRequest.h"
|
||||
#include "model/ListPredictiveJobGroupsResult.h"
|
||||
#include "model/ListPredictiveJobStatusRequest.h"
|
||||
#include "model/ListPredictiveJobStatusResult.h"
|
||||
#include "model/ListPrivacyNumberCallDetailsRequest.h"
|
||||
#include "model/ListPrivacyNumberCallDetailsResult.h"
|
||||
#include "model/ListPrivilegesOfUserRequest.h"
|
||||
#include "model/ListPrivilegesOfUserResult.h"
|
||||
#include "model/ListRealTimeAgentRequest.h"
|
||||
#include "model/ListRealTimeAgentResult.h"
|
||||
#include "model/ListRecentCallRecordsRequest.h"
|
||||
@@ -272,10 +242,6 @@
|
||||
#include "model/ModifyAgentDeviceResult.h"
|
||||
#include "model/ModifyCabInstanceRequest.h"
|
||||
#include "model/ModifyCabInstanceResult.h"
|
||||
#include "model/ModifyMediaRequest.h"
|
||||
#include "model/ModifyMediaResult.h"
|
||||
#include "model/ModifyNotificationConfigRequest.h"
|
||||
#include "model/ModifyNotificationConfigResult.h"
|
||||
#include "model/ModifyPhoneNumberRequest.h"
|
||||
#include "model/ModifyPhoneNumberResult.h"
|
||||
#include "model/ModifyPhoneTagsRequest.h"
|
||||
@@ -300,28 +266,12 @@
|
||||
#include "model/PickLocalNumberResult.h"
|
||||
#include "model/PickOutboundNumbersRequest.h"
|
||||
#include "model/PickOutboundNumbersResult.h"
|
||||
#include "model/PickOutboundNumbersByTagsRequest.h"
|
||||
#include "model/PickOutboundNumbersByTagsResult.h"
|
||||
#include "model/PreCreateMediaRequest.h"
|
||||
#include "model/PreCreateMediaResult.h"
|
||||
#include "model/PreModifyMediaRequest.h"
|
||||
#include "model/PreModifyMediaResult.h"
|
||||
#include "model/PredictiveRecordFailureRequest.h"
|
||||
#include "model/PredictiveRecordFailureResult.h"
|
||||
#include "model/PredictiveRecordSuccessRequest.h"
|
||||
#include "model/PredictiveRecordSuccessResult.h"
|
||||
#include "model/PublishContactFlowVersionRequest.h"
|
||||
#include "model/PublishContactFlowVersionResult.h"
|
||||
#include "model/PublishPredictiveJobGroupRequest.h"
|
||||
#include "model/PublishPredictiveJobGroupResult.h"
|
||||
#include "model/PublishSurveyRequest.h"
|
||||
#include "model/PublishSurveyResult.h"
|
||||
#include "model/QueryRedialIndicatorRequest.h"
|
||||
#include "model/QueryRedialIndicatorResult.h"
|
||||
#include "model/RefreshTokenRequest.h"
|
||||
#include "model/RefreshTokenResult.h"
|
||||
#include "model/RemoveNumberFromSkillGroupRequest.h"
|
||||
#include "model/RemoveNumberFromSkillGroupResult.h"
|
||||
#include "model/RemovePhoneNumberRequest.h"
|
||||
#include "model/RemovePhoneNumberResult.h"
|
||||
#include "model/RemoveUsersRequest.h"
|
||||
@@ -340,8 +290,6 @@
|
||||
#include "model/SaveWebRTCStatsResult.h"
|
||||
#include "model/SendPredefinedShortMessageRequest.h"
|
||||
#include "model/SendPredefinedShortMessageResult.h"
|
||||
#include "model/SimpleDialRequest.h"
|
||||
#include "model/SimpleDialResult.h"
|
||||
#include "model/StartBack2BackCallRequest.h"
|
||||
#include "model/StartBack2BackCallResult.h"
|
||||
#include "model/StartJobRequest.h"
|
||||
@@ -354,8 +302,6 @@
|
||||
#include "model/SuspendJobsResult.h"
|
||||
#include "model/TaskPreparingRequest.h"
|
||||
#include "model/TaskPreparingResult.h"
|
||||
#include "model/TwoPartiesCallRequest.h"
|
||||
#include "model/TwoPartiesCallResult.h"
|
||||
|
||||
|
||||
namespace AlibabaCloud
|
||||
@@ -371,9 +317,6 @@ namespace AlibabaCloud
|
||||
typedef Outcome<Error, Model::AddBulkPhoneNumbersResult> AddBulkPhoneNumbersOutcome;
|
||||
typedef std::future<AddBulkPhoneNumbersOutcome> AddBulkPhoneNumbersOutcomeCallable;
|
||||
typedef std::function<void(const CCCClient*, const Model::AddBulkPhoneNumbersRequest&, const AddBulkPhoneNumbersOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> AddBulkPhoneNumbersAsyncHandler;
|
||||
typedef Outcome<Error, Model::AddNumberToSkillGroupResult> AddNumberToSkillGroupOutcome;
|
||||
typedef std::future<AddNumberToSkillGroupOutcome> AddNumberToSkillGroupOutcomeCallable;
|
||||
typedef std::function<void(const CCCClient*, const Model::AddNumberToSkillGroupRequest&, const AddNumberToSkillGroupOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> AddNumberToSkillGroupAsyncHandler;
|
||||
typedef Outcome<Error, Model::AddPhoneNumberResult> AddPhoneNumberOutcome;
|
||||
typedef std::future<AddPhoneNumberOutcome> AddPhoneNumberOutcomeCallable;
|
||||
typedef std::function<void(const CCCClient*, const Model::AddPhoneNumberRequest&, const AddPhoneNumberOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> AddPhoneNumberAsyncHandler;
|
||||
@@ -392,9 +335,6 @@ namespace AlibabaCloud
|
||||
typedef Outcome<Error, Model::CancelJobsResult> CancelJobsOutcome;
|
||||
typedef std::future<CancelJobsOutcome> CancelJobsOutcomeCallable;
|
||||
typedef std::function<void(const CCCClient*, const Model::CancelJobsRequest&, const CancelJobsOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> CancelJobsAsyncHandler;
|
||||
typedef Outcome<Error, Model::CancelPredictiveJobsResult> CancelPredictiveJobsOutcome;
|
||||
typedef std::future<CancelPredictiveJobsOutcome> CancelPredictiveJobsOutcomeCallable;
|
||||
typedef std::function<void(const CCCClient*, const Model::CancelPredictiveJobsRequest&, const CancelPredictiveJobsOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> CancelPredictiveJobsAsyncHandler;
|
||||
typedef Outcome<Error, Model::CheckNumberAvaliableResult> CheckNumberAvaliableOutcome;
|
||||
typedef std::future<CheckNumberAvaliableOutcome> CheckNumberAvaliableOutcomeCallable;
|
||||
typedef std::function<void(const CCCClient*, const Model::CheckNumberAvaliableRequest&, const CheckNumberAvaliableOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> CheckNumberAvaliableAsyncHandler;
|
||||
@@ -404,9 +344,6 @@ namespace AlibabaCloud
|
||||
typedef Outcome<Error, Model::CreateBatchJobsResult> CreateBatchJobsOutcome;
|
||||
typedef std::future<CreateBatchJobsOutcome> CreateBatchJobsOutcomeCallable;
|
||||
typedef std::function<void(const CCCClient*, const Model::CreateBatchJobsRequest&, const CreateBatchJobsOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> CreateBatchJobsAsyncHandler;
|
||||
typedef Outcome<Error, Model::CreateCCCPostOrderResult> CreateCCCPostOrderOutcome;
|
||||
typedef std::future<CreateCCCPostOrderOutcome> CreateCCCPostOrderOutcomeCallable;
|
||||
typedef std::function<void(const CCCClient*, const Model::CreateCCCPostOrderRequest&, const CreateCCCPostOrderOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> CreateCCCPostOrderAsyncHandler;
|
||||
typedef Outcome<Error, Model::CreateCabInstanceResult> CreateCabInstanceOutcome;
|
||||
typedef std::future<CreateCabInstanceOutcome> CreateCabInstanceOutcomeCallable;
|
||||
typedef std::function<void(const CCCClient*, const Model::CreateCabInstanceRequest&, const CreateCabInstanceOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> CreateCabInstanceAsyncHandler;
|
||||
@@ -425,12 +362,6 @@ namespace AlibabaCloud
|
||||
typedef Outcome<Error, Model::CreateMediaResult> CreateMediaOutcome;
|
||||
typedef std::future<CreateMediaOutcome> CreateMediaOutcomeCallable;
|
||||
typedef std::function<void(const CCCClient*, const Model::CreateMediaRequest&, const CreateMediaOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> CreateMediaAsyncHandler;
|
||||
typedef Outcome<Error, Model::CreatePredictiveJobGroupResult> CreatePredictiveJobGroupOutcome;
|
||||
typedef std::future<CreatePredictiveJobGroupOutcome> CreatePredictiveJobGroupOutcomeCallable;
|
||||
typedef std::function<void(const CCCClient*, const Model::CreatePredictiveJobGroupRequest&, const CreatePredictiveJobGroupOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> CreatePredictiveJobGroupAsyncHandler;
|
||||
typedef Outcome<Error, Model::CreatePredictiveJobsResult> CreatePredictiveJobsOutcome;
|
||||
typedef std::future<CreatePredictiveJobsOutcome> CreatePredictiveJobsOutcomeCallable;
|
||||
typedef std::function<void(const CCCClient*, const Model::CreatePredictiveJobsRequest&, const CreatePredictiveJobsOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> CreatePredictiveJobsAsyncHandler;
|
||||
typedef Outcome<Error, Model::CreateScenarioResult> CreateScenarioOutcome;
|
||||
typedef std::future<CreateScenarioOutcome> CreateScenarioOutcomeCallable;
|
||||
typedef std::function<void(const CCCClient*, const Model::CreateScenarioRequest&, const CreateScenarioOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> CreateScenarioAsyncHandler;
|
||||
@@ -497,21 +428,12 @@ namespace AlibabaCloud
|
||||
typedef Outcome<Error, Model::GetAgentDataResult> GetAgentDataOutcome;
|
||||
typedef std::future<GetAgentDataOutcome> GetAgentDataOutcomeCallable;
|
||||
typedef std::function<void(const CCCClient*, const Model::GetAgentDataRequest&, const GetAgentDataOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetAgentDataAsyncHandler;
|
||||
typedef Outcome<Error, Model::GetAgentStateResult> GetAgentStateOutcome;
|
||||
typedef std::future<GetAgentStateOutcome> GetAgentStateOutcomeCallable;
|
||||
typedef std::function<void(const CCCClient*, const Model::GetAgentStateRequest&, const GetAgentStateOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetAgentStateAsyncHandler;
|
||||
typedef Outcome<Error, Model::GetCallMeasureSummaryReportResult> GetCallMeasureSummaryReportOutcome;
|
||||
typedef std::future<GetCallMeasureSummaryReportOutcome> GetCallMeasureSummaryReportOutcomeCallable;
|
||||
typedef std::function<void(const CCCClient*, const Model::GetCallMeasureSummaryReportRequest&, const GetCallMeasureSummaryReportOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetCallMeasureSummaryReportAsyncHandler;
|
||||
typedef Outcome<Error, Model::GetConfigResult> GetConfigOutcome;
|
||||
typedef std::future<GetConfigOutcome> GetConfigOutcomeCallable;
|
||||
typedef std::function<void(const CCCClient*, const Model::GetConfigRequest&, const GetConfigOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetConfigAsyncHandler;
|
||||
typedef Outcome<Error, Model::GetContactIdentifyByOutBoundTaskIdResult> GetContactIdentifyByOutBoundTaskIdOutcome;
|
||||
typedef std::future<GetContactIdentifyByOutBoundTaskIdOutcome> GetContactIdentifyByOutBoundTaskIdOutcomeCallable;
|
||||
typedef std::function<void(const CCCClient*, const Model::GetContactIdentifyByOutBoundTaskIdRequest&, const GetContactIdentifyByOutBoundTaskIdOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetContactIdentifyByOutBoundTaskIdAsyncHandler;
|
||||
typedef Outcome<Error, Model::GetContactInfoByOutboundTaskIdResult> GetContactInfoByOutboundTaskIdOutcome;
|
||||
typedef std::future<GetContactInfoByOutboundTaskIdOutcome> GetContactInfoByOutboundTaskIdOutcomeCallable;
|
||||
typedef std::function<void(const CCCClient*, const Model::GetContactInfoByOutboundTaskIdRequest&, const GetContactInfoByOutboundTaskIdOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetContactInfoByOutboundTaskIdAsyncHandler;
|
||||
typedef Outcome<Error, Model::GetConversationDetailByContactIdResult> GetConversationDetailByContactIdOutcome;
|
||||
typedef std::future<GetConversationDetailByContactIdOutcome> GetConversationDetailByContactIdOutcomeCallable;
|
||||
typedef std::function<void(const CCCClient*, const Model::GetConversationDetailByContactIdRequest&, const GetConversationDetailByContactIdOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetConversationDetailByContactIdAsyncHandler;
|
||||
@@ -539,9 +461,6 @@ namespace AlibabaCloud
|
||||
typedef Outcome<Error, Model::GetJobDataUploadParamsResult> GetJobDataUploadParamsOutcome;
|
||||
typedef std::future<GetJobDataUploadParamsOutcome> GetJobDataUploadParamsOutcomeCallable;
|
||||
typedef std::function<void(const CCCClient*, const Model::GetJobDataUploadParamsRequest&, const GetJobDataUploadParamsOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetJobDataUploadParamsAsyncHandler;
|
||||
typedef Outcome<Error, Model::GetJobFileUploadUrlResult> GetJobFileUploadUrlOutcome;
|
||||
typedef std::future<GetJobFileUploadUrlOutcome> GetJobFileUploadUrlOutcomeCallable;
|
||||
typedef std::function<void(const CCCClient*, const Model::GetJobFileUploadUrlRequest&, const GetJobFileUploadUrlOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetJobFileUploadUrlAsyncHandler;
|
||||
typedef Outcome<Error, Model::GetJobGroupResult> GetJobGroupOutcome;
|
||||
typedef std::future<GetJobGroupOutcome> GetJobGroupOutcomeCallable;
|
||||
typedef std::function<void(const CCCClient*, const Model::GetJobGroupRequest&, const GetJobGroupOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetJobGroupAsyncHandler;
|
||||
@@ -554,15 +473,9 @@ namespace AlibabaCloud
|
||||
typedef Outcome<Error, Model::GetJobTemplateDownloadParamsResult> GetJobTemplateDownloadParamsOutcome;
|
||||
typedef std::future<GetJobTemplateDownloadParamsOutcome> GetJobTemplateDownloadParamsOutcomeCallable;
|
||||
typedef std::function<void(const CCCClient*, const Model::GetJobTemplateDownloadParamsRequest&, const GetJobTemplateDownloadParamsOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetJobTemplateDownloadParamsAsyncHandler;
|
||||
typedef Outcome<Error, Model::GetJobsProgressResult> GetJobsProgressOutcome;
|
||||
typedef std::future<GetJobsProgressOutcome> GetJobsProgressOutcomeCallable;
|
||||
typedef std::function<void(const CCCClient*, const Model::GetJobsProgressRequest&, const GetJobsProgressOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetJobsProgressAsyncHandler;
|
||||
typedef Outcome<Error, Model::GetNumberRegionInfoResult> GetNumberRegionInfoOutcome;
|
||||
typedef std::future<GetNumberRegionInfoOutcome> GetNumberRegionInfoOutcomeCallable;
|
||||
typedef std::function<void(const CCCClient*, const Model::GetNumberRegionInfoRequest&, const GetNumberRegionInfoOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetNumberRegionInfoAsyncHandler;
|
||||
typedef Outcome<Error, Model::GetPredictiveJobResult> GetPredictiveJobOutcome;
|
||||
typedef std::future<GetPredictiveJobOutcome> GetPredictiveJobOutcomeCallable;
|
||||
typedef std::function<void(const CCCClient*, const Model::GetPredictiveJobRequest&, const GetPredictiveJobOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetPredictiveJobAsyncHandler;
|
||||
typedef Outcome<Error, Model::GetRecordOssUploadParamResult> GetRecordOssUploadParamOutcome;
|
||||
typedef std::future<GetRecordOssUploadParamOutcome> GetRecordOssUploadParamOutcomeCallable;
|
||||
typedef std::function<void(const CCCClient*, const Model::GetRecordOssUploadParamRequest&, const GetRecordOssUploadParamOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetRecordOssUploadParamAsyncHandler;
|
||||
@@ -665,18 +578,6 @@ namespace AlibabaCloud
|
||||
typedef Outcome<Error, Model::ListPhoneTagsResult> ListPhoneTagsOutcome;
|
||||
typedef std::future<ListPhoneTagsOutcome> ListPhoneTagsOutcomeCallable;
|
||||
typedef std::function<void(const CCCClient*, const Model::ListPhoneTagsRequest&, const ListPhoneTagsOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ListPhoneTagsAsyncHandler;
|
||||
typedef Outcome<Error, Model::ListPredictiveJobGroupsResult> ListPredictiveJobGroupsOutcome;
|
||||
typedef std::future<ListPredictiveJobGroupsOutcome> ListPredictiveJobGroupsOutcomeCallable;
|
||||
typedef std::function<void(const CCCClient*, const Model::ListPredictiveJobGroupsRequest&, const ListPredictiveJobGroupsOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ListPredictiveJobGroupsAsyncHandler;
|
||||
typedef Outcome<Error, Model::ListPredictiveJobStatusResult> ListPredictiveJobStatusOutcome;
|
||||
typedef std::future<ListPredictiveJobStatusOutcome> ListPredictiveJobStatusOutcomeCallable;
|
||||
typedef std::function<void(const CCCClient*, const Model::ListPredictiveJobStatusRequest&, const ListPredictiveJobStatusOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ListPredictiveJobStatusAsyncHandler;
|
||||
typedef Outcome<Error, Model::ListPrivacyNumberCallDetailsResult> ListPrivacyNumberCallDetailsOutcome;
|
||||
typedef std::future<ListPrivacyNumberCallDetailsOutcome> ListPrivacyNumberCallDetailsOutcomeCallable;
|
||||
typedef std::function<void(const CCCClient*, const Model::ListPrivacyNumberCallDetailsRequest&, const ListPrivacyNumberCallDetailsOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ListPrivacyNumberCallDetailsAsyncHandler;
|
||||
typedef Outcome<Error, Model::ListPrivilegesOfUserResult> ListPrivilegesOfUserOutcome;
|
||||
typedef std::future<ListPrivilegesOfUserOutcome> ListPrivilegesOfUserOutcomeCallable;
|
||||
typedef std::function<void(const CCCClient*, const Model::ListPrivilegesOfUserRequest&, const ListPrivilegesOfUserOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ListPrivilegesOfUserAsyncHandler;
|
||||
typedef Outcome<Error, Model::ListRealTimeAgentResult> ListRealTimeAgentOutcome;
|
||||
typedef std::future<ListRealTimeAgentOutcome> ListRealTimeAgentOutcomeCallable;
|
||||
typedef std::function<void(const CCCClient*, const Model::ListRealTimeAgentRequest&, const ListRealTimeAgentOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ListRealTimeAgentAsyncHandler;
|
||||
@@ -740,12 +641,6 @@ namespace AlibabaCloud
|
||||
typedef Outcome<Error, Model::ModifyCabInstanceResult> ModifyCabInstanceOutcome;
|
||||
typedef std::future<ModifyCabInstanceOutcome> ModifyCabInstanceOutcomeCallable;
|
||||
typedef std::function<void(const CCCClient*, const Model::ModifyCabInstanceRequest&, const ModifyCabInstanceOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ModifyCabInstanceAsyncHandler;
|
||||
typedef Outcome<Error, Model::ModifyMediaResult> ModifyMediaOutcome;
|
||||
typedef std::future<ModifyMediaOutcome> ModifyMediaOutcomeCallable;
|
||||
typedef std::function<void(const CCCClient*, const Model::ModifyMediaRequest&, const ModifyMediaOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ModifyMediaAsyncHandler;
|
||||
typedef Outcome<Error, Model::ModifyNotificationConfigResult> ModifyNotificationConfigOutcome;
|
||||
typedef std::future<ModifyNotificationConfigOutcome> ModifyNotificationConfigOutcomeCallable;
|
||||
typedef std::function<void(const CCCClient*, const Model::ModifyNotificationConfigRequest&, const ModifyNotificationConfigOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ModifyNotificationConfigAsyncHandler;
|
||||
typedef Outcome<Error, Model::ModifyPhoneNumberResult> ModifyPhoneNumberOutcome;
|
||||
typedef std::future<ModifyPhoneNumberOutcome> ModifyPhoneNumberOutcomeCallable;
|
||||
typedef std::function<void(const CCCClient*, const Model::ModifyPhoneNumberRequest&, const ModifyPhoneNumberOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ModifyPhoneNumberAsyncHandler;
|
||||
@@ -782,39 +677,15 @@ namespace AlibabaCloud
|
||||
typedef Outcome<Error, Model::PickOutboundNumbersResult> PickOutboundNumbersOutcome;
|
||||
typedef std::future<PickOutboundNumbersOutcome> PickOutboundNumbersOutcomeCallable;
|
||||
typedef std::function<void(const CCCClient*, const Model::PickOutboundNumbersRequest&, const PickOutboundNumbersOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> PickOutboundNumbersAsyncHandler;
|
||||
typedef Outcome<Error, Model::PickOutboundNumbersByTagsResult> PickOutboundNumbersByTagsOutcome;
|
||||
typedef std::future<PickOutboundNumbersByTagsOutcome> PickOutboundNumbersByTagsOutcomeCallable;
|
||||
typedef std::function<void(const CCCClient*, const Model::PickOutboundNumbersByTagsRequest&, const PickOutboundNumbersByTagsOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> PickOutboundNumbersByTagsAsyncHandler;
|
||||
typedef Outcome<Error, Model::PreCreateMediaResult> PreCreateMediaOutcome;
|
||||
typedef std::future<PreCreateMediaOutcome> PreCreateMediaOutcomeCallable;
|
||||
typedef std::function<void(const CCCClient*, const Model::PreCreateMediaRequest&, const PreCreateMediaOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> PreCreateMediaAsyncHandler;
|
||||
typedef Outcome<Error, Model::PreModifyMediaResult> PreModifyMediaOutcome;
|
||||
typedef std::future<PreModifyMediaOutcome> PreModifyMediaOutcomeCallable;
|
||||
typedef std::function<void(const CCCClient*, const Model::PreModifyMediaRequest&, const PreModifyMediaOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> PreModifyMediaAsyncHandler;
|
||||
typedef Outcome<Error, Model::PredictiveRecordFailureResult> PredictiveRecordFailureOutcome;
|
||||
typedef std::future<PredictiveRecordFailureOutcome> PredictiveRecordFailureOutcomeCallable;
|
||||
typedef std::function<void(const CCCClient*, const Model::PredictiveRecordFailureRequest&, const PredictiveRecordFailureOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> PredictiveRecordFailureAsyncHandler;
|
||||
typedef Outcome<Error, Model::PredictiveRecordSuccessResult> PredictiveRecordSuccessOutcome;
|
||||
typedef std::future<PredictiveRecordSuccessOutcome> PredictiveRecordSuccessOutcomeCallable;
|
||||
typedef std::function<void(const CCCClient*, const Model::PredictiveRecordSuccessRequest&, const PredictiveRecordSuccessOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> PredictiveRecordSuccessAsyncHandler;
|
||||
typedef Outcome<Error, Model::PublishContactFlowVersionResult> PublishContactFlowVersionOutcome;
|
||||
typedef std::future<PublishContactFlowVersionOutcome> PublishContactFlowVersionOutcomeCallable;
|
||||
typedef std::function<void(const CCCClient*, const Model::PublishContactFlowVersionRequest&, const PublishContactFlowVersionOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> PublishContactFlowVersionAsyncHandler;
|
||||
typedef Outcome<Error, Model::PublishPredictiveJobGroupResult> PublishPredictiveJobGroupOutcome;
|
||||
typedef std::future<PublishPredictiveJobGroupOutcome> PublishPredictiveJobGroupOutcomeCallable;
|
||||
typedef std::function<void(const CCCClient*, const Model::PublishPredictiveJobGroupRequest&, const PublishPredictiveJobGroupOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> PublishPredictiveJobGroupAsyncHandler;
|
||||
typedef Outcome<Error, Model::PublishSurveyResult> PublishSurveyOutcome;
|
||||
typedef std::future<PublishSurveyOutcome> PublishSurveyOutcomeCallable;
|
||||
typedef std::function<void(const CCCClient*, const Model::PublishSurveyRequest&, const PublishSurveyOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> PublishSurveyAsyncHandler;
|
||||
typedef Outcome<Error, Model::QueryRedialIndicatorResult> QueryRedialIndicatorOutcome;
|
||||
typedef std::future<QueryRedialIndicatorOutcome> QueryRedialIndicatorOutcomeCallable;
|
||||
typedef std::function<void(const CCCClient*, const Model::QueryRedialIndicatorRequest&, const QueryRedialIndicatorOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> QueryRedialIndicatorAsyncHandler;
|
||||
typedef Outcome<Error, Model::RefreshTokenResult> RefreshTokenOutcome;
|
||||
typedef std::future<RefreshTokenOutcome> RefreshTokenOutcomeCallable;
|
||||
typedef std::function<void(const CCCClient*, const Model::RefreshTokenRequest&, const RefreshTokenOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> RefreshTokenAsyncHandler;
|
||||
typedef Outcome<Error, Model::RemoveNumberFromSkillGroupResult> RemoveNumberFromSkillGroupOutcome;
|
||||
typedef std::future<RemoveNumberFromSkillGroupOutcome> RemoveNumberFromSkillGroupOutcomeCallable;
|
||||
typedef std::function<void(const CCCClient*, const Model::RemoveNumberFromSkillGroupRequest&, const RemoveNumberFromSkillGroupOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> RemoveNumberFromSkillGroupAsyncHandler;
|
||||
typedef Outcome<Error, Model::RemovePhoneNumberResult> RemovePhoneNumberOutcome;
|
||||
typedef std::future<RemovePhoneNumberOutcome> RemovePhoneNumberOutcomeCallable;
|
||||
typedef std::function<void(const CCCClient*, const Model::RemovePhoneNumberRequest&, const RemovePhoneNumberOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> RemovePhoneNumberAsyncHandler;
|
||||
@@ -842,9 +713,6 @@ namespace AlibabaCloud
|
||||
typedef Outcome<Error, Model::SendPredefinedShortMessageResult> SendPredefinedShortMessageOutcome;
|
||||
typedef std::future<SendPredefinedShortMessageOutcome> SendPredefinedShortMessageOutcomeCallable;
|
||||
typedef std::function<void(const CCCClient*, const Model::SendPredefinedShortMessageRequest&, const SendPredefinedShortMessageOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> SendPredefinedShortMessageAsyncHandler;
|
||||
typedef Outcome<Error, Model::SimpleDialResult> SimpleDialOutcome;
|
||||
typedef std::future<SimpleDialOutcome> SimpleDialOutcomeCallable;
|
||||
typedef std::function<void(const CCCClient*, const Model::SimpleDialRequest&, const SimpleDialOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> SimpleDialAsyncHandler;
|
||||
typedef Outcome<Error, Model::StartBack2BackCallResult> StartBack2BackCallOutcome;
|
||||
typedef std::future<StartBack2BackCallOutcome> StartBack2BackCallOutcomeCallable;
|
||||
typedef std::function<void(const CCCClient*, const Model::StartBack2BackCallRequest&, const StartBack2BackCallOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> StartBack2BackCallAsyncHandler;
|
||||
@@ -863,9 +731,6 @@ namespace AlibabaCloud
|
||||
typedef Outcome<Error, Model::TaskPreparingResult> TaskPreparingOutcome;
|
||||
typedef std::future<TaskPreparingOutcome> TaskPreparingOutcomeCallable;
|
||||
typedef std::function<void(const CCCClient*, const Model::TaskPreparingRequest&, const TaskPreparingOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> TaskPreparingAsyncHandler;
|
||||
typedef Outcome<Error, Model::TwoPartiesCallResult> TwoPartiesCallOutcome;
|
||||
typedef std::future<TwoPartiesCallOutcome> TwoPartiesCallOutcomeCallable;
|
||||
typedef std::function<void(const CCCClient*, const Model::TwoPartiesCallRequest&, const TwoPartiesCallOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> TwoPartiesCallAsyncHandler;
|
||||
|
||||
CCCClient(const Credentials &credentials, const ClientConfiguration &configuration);
|
||||
CCCClient(const std::shared_ptr<CredentialsProvider> &credentialsProvider, const ClientConfiguration &configuration);
|
||||
@@ -877,9 +742,6 @@ namespace AlibabaCloud
|
||||
AddBulkPhoneNumbersOutcome addBulkPhoneNumbers(const Model::AddBulkPhoneNumbersRequest &request)const;
|
||||
void addBulkPhoneNumbersAsync(const Model::AddBulkPhoneNumbersRequest& request, const AddBulkPhoneNumbersAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
AddBulkPhoneNumbersOutcomeCallable addBulkPhoneNumbersCallable(const Model::AddBulkPhoneNumbersRequest& request) const;
|
||||
AddNumberToSkillGroupOutcome addNumberToSkillGroup(const Model::AddNumberToSkillGroupRequest &request)const;
|
||||
void addNumberToSkillGroupAsync(const Model::AddNumberToSkillGroupRequest& request, const AddNumberToSkillGroupAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
AddNumberToSkillGroupOutcomeCallable addNumberToSkillGroupCallable(const Model::AddNumberToSkillGroupRequest& request) const;
|
||||
AddPhoneNumberOutcome addPhoneNumber(const Model::AddPhoneNumberRequest &request)const;
|
||||
void addPhoneNumberAsync(const Model::AddPhoneNumberRequest& request, const AddPhoneNumberAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
AddPhoneNumberOutcomeCallable addPhoneNumberCallable(const Model::AddPhoneNumberRequest& request) const;
|
||||
@@ -898,9 +760,6 @@ namespace AlibabaCloud
|
||||
CancelJobsOutcome cancelJobs(const Model::CancelJobsRequest &request)const;
|
||||
void cancelJobsAsync(const Model::CancelJobsRequest& request, const CancelJobsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
CancelJobsOutcomeCallable cancelJobsCallable(const Model::CancelJobsRequest& request) const;
|
||||
CancelPredictiveJobsOutcome cancelPredictiveJobs(const Model::CancelPredictiveJobsRequest &request)const;
|
||||
void cancelPredictiveJobsAsync(const Model::CancelPredictiveJobsRequest& request, const CancelPredictiveJobsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
CancelPredictiveJobsOutcomeCallable cancelPredictiveJobsCallable(const Model::CancelPredictiveJobsRequest& request) const;
|
||||
CheckNumberAvaliableOutcome checkNumberAvaliable(const Model::CheckNumberAvaliableRequest &request)const;
|
||||
void checkNumberAvaliableAsync(const Model::CheckNumberAvaliableRequest& request, const CheckNumberAvaliableAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
CheckNumberAvaliableOutcomeCallable checkNumberAvaliableCallable(const Model::CheckNumberAvaliableRequest& request) const;
|
||||
@@ -910,9 +769,6 @@ namespace AlibabaCloud
|
||||
CreateBatchJobsOutcome createBatchJobs(const Model::CreateBatchJobsRequest &request)const;
|
||||
void createBatchJobsAsync(const Model::CreateBatchJobsRequest& request, const CreateBatchJobsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
CreateBatchJobsOutcomeCallable createBatchJobsCallable(const Model::CreateBatchJobsRequest& request) const;
|
||||
CreateCCCPostOrderOutcome createCCCPostOrder(const Model::CreateCCCPostOrderRequest &request)const;
|
||||
void createCCCPostOrderAsync(const Model::CreateCCCPostOrderRequest& request, const CreateCCCPostOrderAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
CreateCCCPostOrderOutcomeCallable createCCCPostOrderCallable(const Model::CreateCCCPostOrderRequest& request) const;
|
||||
CreateCabInstanceOutcome createCabInstance(const Model::CreateCabInstanceRequest &request)const;
|
||||
void createCabInstanceAsync(const Model::CreateCabInstanceRequest& request, const CreateCabInstanceAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
CreateCabInstanceOutcomeCallable createCabInstanceCallable(const Model::CreateCabInstanceRequest& request) const;
|
||||
@@ -931,12 +787,6 @@ namespace AlibabaCloud
|
||||
CreateMediaOutcome createMedia(const Model::CreateMediaRequest &request)const;
|
||||
void createMediaAsync(const Model::CreateMediaRequest& request, const CreateMediaAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
CreateMediaOutcomeCallable createMediaCallable(const Model::CreateMediaRequest& request) const;
|
||||
CreatePredictiveJobGroupOutcome createPredictiveJobGroup(const Model::CreatePredictiveJobGroupRequest &request)const;
|
||||
void createPredictiveJobGroupAsync(const Model::CreatePredictiveJobGroupRequest& request, const CreatePredictiveJobGroupAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
CreatePredictiveJobGroupOutcomeCallable createPredictiveJobGroupCallable(const Model::CreatePredictiveJobGroupRequest& request) const;
|
||||
CreatePredictiveJobsOutcome createPredictiveJobs(const Model::CreatePredictiveJobsRequest &request)const;
|
||||
void createPredictiveJobsAsync(const Model::CreatePredictiveJobsRequest& request, const CreatePredictiveJobsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
CreatePredictiveJobsOutcomeCallable createPredictiveJobsCallable(const Model::CreatePredictiveJobsRequest& request) const;
|
||||
CreateScenarioOutcome createScenario(const Model::CreateScenarioRequest &request)const;
|
||||
void createScenarioAsync(const Model::CreateScenarioRequest& request, const CreateScenarioAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
CreateScenarioOutcomeCallable createScenarioCallable(const Model::CreateScenarioRequest& request) const;
|
||||
@@ -1003,21 +853,12 @@ namespace AlibabaCloud
|
||||
GetAgentDataOutcome getAgentData(const Model::GetAgentDataRequest &request)const;
|
||||
void getAgentDataAsync(const Model::GetAgentDataRequest& request, const GetAgentDataAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
GetAgentDataOutcomeCallable getAgentDataCallable(const Model::GetAgentDataRequest& request) const;
|
||||
GetAgentStateOutcome getAgentState(const Model::GetAgentStateRequest &request)const;
|
||||
void getAgentStateAsync(const Model::GetAgentStateRequest& request, const GetAgentStateAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
GetAgentStateOutcomeCallable getAgentStateCallable(const Model::GetAgentStateRequest& request) const;
|
||||
GetCallMeasureSummaryReportOutcome getCallMeasureSummaryReport(const Model::GetCallMeasureSummaryReportRequest &request)const;
|
||||
void getCallMeasureSummaryReportAsync(const Model::GetCallMeasureSummaryReportRequest& request, const GetCallMeasureSummaryReportAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
GetCallMeasureSummaryReportOutcomeCallable getCallMeasureSummaryReportCallable(const Model::GetCallMeasureSummaryReportRequest& request) const;
|
||||
GetConfigOutcome getConfig(const Model::GetConfigRequest &request)const;
|
||||
void getConfigAsync(const Model::GetConfigRequest& request, const GetConfigAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
GetConfigOutcomeCallable getConfigCallable(const Model::GetConfigRequest& request) const;
|
||||
GetContactIdentifyByOutBoundTaskIdOutcome getContactIdentifyByOutBoundTaskId(const Model::GetContactIdentifyByOutBoundTaskIdRequest &request)const;
|
||||
void getContactIdentifyByOutBoundTaskIdAsync(const Model::GetContactIdentifyByOutBoundTaskIdRequest& request, const GetContactIdentifyByOutBoundTaskIdAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
GetContactIdentifyByOutBoundTaskIdOutcomeCallable getContactIdentifyByOutBoundTaskIdCallable(const Model::GetContactIdentifyByOutBoundTaskIdRequest& request) const;
|
||||
GetContactInfoByOutboundTaskIdOutcome getContactInfoByOutboundTaskId(const Model::GetContactInfoByOutboundTaskIdRequest &request)const;
|
||||
void getContactInfoByOutboundTaskIdAsync(const Model::GetContactInfoByOutboundTaskIdRequest& request, const GetContactInfoByOutboundTaskIdAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
GetContactInfoByOutboundTaskIdOutcomeCallable getContactInfoByOutboundTaskIdCallable(const Model::GetContactInfoByOutboundTaskIdRequest& request) const;
|
||||
GetConversationDetailByContactIdOutcome getConversationDetailByContactId(const Model::GetConversationDetailByContactIdRequest &request)const;
|
||||
void getConversationDetailByContactIdAsync(const Model::GetConversationDetailByContactIdRequest& request, const GetConversationDetailByContactIdAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
GetConversationDetailByContactIdOutcomeCallable getConversationDetailByContactIdCallable(const Model::GetConversationDetailByContactIdRequest& request) const;
|
||||
@@ -1045,9 +886,6 @@ namespace AlibabaCloud
|
||||
GetJobDataUploadParamsOutcome getJobDataUploadParams(const Model::GetJobDataUploadParamsRequest &request)const;
|
||||
void getJobDataUploadParamsAsync(const Model::GetJobDataUploadParamsRequest& request, const GetJobDataUploadParamsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
GetJobDataUploadParamsOutcomeCallable getJobDataUploadParamsCallable(const Model::GetJobDataUploadParamsRequest& request) const;
|
||||
GetJobFileUploadUrlOutcome getJobFileUploadUrl(const Model::GetJobFileUploadUrlRequest &request)const;
|
||||
void getJobFileUploadUrlAsync(const Model::GetJobFileUploadUrlRequest& request, const GetJobFileUploadUrlAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
GetJobFileUploadUrlOutcomeCallable getJobFileUploadUrlCallable(const Model::GetJobFileUploadUrlRequest& request) const;
|
||||
GetJobGroupOutcome getJobGroup(const Model::GetJobGroupRequest &request)const;
|
||||
void getJobGroupAsync(const Model::GetJobGroupRequest& request, const GetJobGroupAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
GetJobGroupOutcomeCallable getJobGroupCallable(const Model::GetJobGroupRequest& request) const;
|
||||
@@ -1060,15 +898,9 @@ namespace AlibabaCloud
|
||||
GetJobTemplateDownloadParamsOutcome getJobTemplateDownloadParams(const Model::GetJobTemplateDownloadParamsRequest &request)const;
|
||||
void getJobTemplateDownloadParamsAsync(const Model::GetJobTemplateDownloadParamsRequest& request, const GetJobTemplateDownloadParamsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
GetJobTemplateDownloadParamsOutcomeCallable getJobTemplateDownloadParamsCallable(const Model::GetJobTemplateDownloadParamsRequest& request) const;
|
||||
GetJobsProgressOutcome getJobsProgress(const Model::GetJobsProgressRequest &request)const;
|
||||
void getJobsProgressAsync(const Model::GetJobsProgressRequest& request, const GetJobsProgressAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
GetJobsProgressOutcomeCallable getJobsProgressCallable(const Model::GetJobsProgressRequest& request) const;
|
||||
GetNumberRegionInfoOutcome getNumberRegionInfo(const Model::GetNumberRegionInfoRequest &request)const;
|
||||
void getNumberRegionInfoAsync(const Model::GetNumberRegionInfoRequest& request, const GetNumberRegionInfoAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
GetNumberRegionInfoOutcomeCallable getNumberRegionInfoCallable(const Model::GetNumberRegionInfoRequest& request) const;
|
||||
GetPredictiveJobOutcome getPredictiveJob(const Model::GetPredictiveJobRequest &request)const;
|
||||
void getPredictiveJobAsync(const Model::GetPredictiveJobRequest& request, const GetPredictiveJobAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
GetPredictiveJobOutcomeCallable getPredictiveJobCallable(const Model::GetPredictiveJobRequest& request) const;
|
||||
GetRecordOssUploadParamOutcome getRecordOssUploadParam(const Model::GetRecordOssUploadParamRequest &request)const;
|
||||
void getRecordOssUploadParamAsync(const Model::GetRecordOssUploadParamRequest& request, const GetRecordOssUploadParamAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
GetRecordOssUploadParamOutcomeCallable getRecordOssUploadParamCallable(const Model::GetRecordOssUploadParamRequest& request) const;
|
||||
@@ -1171,18 +1003,6 @@ namespace AlibabaCloud
|
||||
ListPhoneTagsOutcome listPhoneTags(const Model::ListPhoneTagsRequest &request)const;
|
||||
void listPhoneTagsAsync(const Model::ListPhoneTagsRequest& request, const ListPhoneTagsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
ListPhoneTagsOutcomeCallable listPhoneTagsCallable(const Model::ListPhoneTagsRequest& request) const;
|
||||
ListPredictiveJobGroupsOutcome listPredictiveJobGroups(const Model::ListPredictiveJobGroupsRequest &request)const;
|
||||
void listPredictiveJobGroupsAsync(const Model::ListPredictiveJobGroupsRequest& request, const ListPredictiveJobGroupsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
ListPredictiveJobGroupsOutcomeCallable listPredictiveJobGroupsCallable(const Model::ListPredictiveJobGroupsRequest& request) const;
|
||||
ListPredictiveJobStatusOutcome listPredictiveJobStatus(const Model::ListPredictiveJobStatusRequest &request)const;
|
||||
void listPredictiveJobStatusAsync(const Model::ListPredictiveJobStatusRequest& request, const ListPredictiveJobStatusAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
ListPredictiveJobStatusOutcomeCallable listPredictiveJobStatusCallable(const Model::ListPredictiveJobStatusRequest& request) const;
|
||||
ListPrivacyNumberCallDetailsOutcome listPrivacyNumberCallDetails(const Model::ListPrivacyNumberCallDetailsRequest &request)const;
|
||||
void listPrivacyNumberCallDetailsAsync(const Model::ListPrivacyNumberCallDetailsRequest& request, const ListPrivacyNumberCallDetailsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
ListPrivacyNumberCallDetailsOutcomeCallable listPrivacyNumberCallDetailsCallable(const Model::ListPrivacyNumberCallDetailsRequest& request) const;
|
||||
ListPrivilegesOfUserOutcome listPrivilegesOfUser(const Model::ListPrivilegesOfUserRequest &request)const;
|
||||
void listPrivilegesOfUserAsync(const Model::ListPrivilegesOfUserRequest& request, const ListPrivilegesOfUserAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
ListPrivilegesOfUserOutcomeCallable listPrivilegesOfUserCallable(const Model::ListPrivilegesOfUserRequest& request) const;
|
||||
ListRealTimeAgentOutcome listRealTimeAgent(const Model::ListRealTimeAgentRequest &request)const;
|
||||
void listRealTimeAgentAsync(const Model::ListRealTimeAgentRequest& request, const ListRealTimeAgentAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
ListRealTimeAgentOutcomeCallable listRealTimeAgentCallable(const Model::ListRealTimeAgentRequest& request) const;
|
||||
@@ -1246,12 +1066,6 @@ namespace AlibabaCloud
|
||||
ModifyCabInstanceOutcome modifyCabInstance(const Model::ModifyCabInstanceRequest &request)const;
|
||||
void modifyCabInstanceAsync(const Model::ModifyCabInstanceRequest& request, const ModifyCabInstanceAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
ModifyCabInstanceOutcomeCallable modifyCabInstanceCallable(const Model::ModifyCabInstanceRequest& request) const;
|
||||
ModifyMediaOutcome modifyMedia(const Model::ModifyMediaRequest &request)const;
|
||||
void modifyMediaAsync(const Model::ModifyMediaRequest& request, const ModifyMediaAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
ModifyMediaOutcomeCallable modifyMediaCallable(const Model::ModifyMediaRequest& request) const;
|
||||
ModifyNotificationConfigOutcome modifyNotificationConfig(const Model::ModifyNotificationConfigRequest &request)const;
|
||||
void modifyNotificationConfigAsync(const Model::ModifyNotificationConfigRequest& request, const ModifyNotificationConfigAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
ModifyNotificationConfigOutcomeCallable modifyNotificationConfigCallable(const Model::ModifyNotificationConfigRequest& request) const;
|
||||
ModifyPhoneNumberOutcome modifyPhoneNumber(const Model::ModifyPhoneNumberRequest &request)const;
|
||||
void modifyPhoneNumberAsync(const Model::ModifyPhoneNumberRequest& request, const ModifyPhoneNumberAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
ModifyPhoneNumberOutcomeCallable modifyPhoneNumberCallable(const Model::ModifyPhoneNumberRequest& request) const;
|
||||
@@ -1288,39 +1102,15 @@ namespace AlibabaCloud
|
||||
PickOutboundNumbersOutcome pickOutboundNumbers(const Model::PickOutboundNumbersRequest &request)const;
|
||||
void pickOutboundNumbersAsync(const Model::PickOutboundNumbersRequest& request, const PickOutboundNumbersAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
PickOutboundNumbersOutcomeCallable pickOutboundNumbersCallable(const Model::PickOutboundNumbersRequest& request) const;
|
||||
PickOutboundNumbersByTagsOutcome pickOutboundNumbersByTags(const Model::PickOutboundNumbersByTagsRequest &request)const;
|
||||
void pickOutboundNumbersByTagsAsync(const Model::PickOutboundNumbersByTagsRequest& request, const PickOutboundNumbersByTagsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
PickOutboundNumbersByTagsOutcomeCallable pickOutboundNumbersByTagsCallable(const Model::PickOutboundNumbersByTagsRequest& request) const;
|
||||
PreCreateMediaOutcome preCreateMedia(const Model::PreCreateMediaRequest &request)const;
|
||||
void preCreateMediaAsync(const Model::PreCreateMediaRequest& request, const PreCreateMediaAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
PreCreateMediaOutcomeCallable preCreateMediaCallable(const Model::PreCreateMediaRequest& request) const;
|
||||
PreModifyMediaOutcome preModifyMedia(const Model::PreModifyMediaRequest &request)const;
|
||||
void preModifyMediaAsync(const Model::PreModifyMediaRequest& request, const PreModifyMediaAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
PreModifyMediaOutcomeCallable preModifyMediaCallable(const Model::PreModifyMediaRequest& request) const;
|
||||
PredictiveRecordFailureOutcome predictiveRecordFailure(const Model::PredictiveRecordFailureRequest &request)const;
|
||||
void predictiveRecordFailureAsync(const Model::PredictiveRecordFailureRequest& request, const PredictiveRecordFailureAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
PredictiveRecordFailureOutcomeCallable predictiveRecordFailureCallable(const Model::PredictiveRecordFailureRequest& request) const;
|
||||
PredictiveRecordSuccessOutcome predictiveRecordSuccess(const Model::PredictiveRecordSuccessRequest &request)const;
|
||||
void predictiveRecordSuccessAsync(const Model::PredictiveRecordSuccessRequest& request, const PredictiveRecordSuccessAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
PredictiveRecordSuccessOutcomeCallable predictiveRecordSuccessCallable(const Model::PredictiveRecordSuccessRequest& request) const;
|
||||
PublishContactFlowVersionOutcome publishContactFlowVersion(const Model::PublishContactFlowVersionRequest &request)const;
|
||||
void publishContactFlowVersionAsync(const Model::PublishContactFlowVersionRequest& request, const PublishContactFlowVersionAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
PublishContactFlowVersionOutcomeCallable publishContactFlowVersionCallable(const Model::PublishContactFlowVersionRequest& request) const;
|
||||
PublishPredictiveJobGroupOutcome publishPredictiveJobGroup(const Model::PublishPredictiveJobGroupRequest &request)const;
|
||||
void publishPredictiveJobGroupAsync(const Model::PublishPredictiveJobGroupRequest& request, const PublishPredictiveJobGroupAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
PublishPredictiveJobGroupOutcomeCallable publishPredictiveJobGroupCallable(const Model::PublishPredictiveJobGroupRequest& request) const;
|
||||
PublishSurveyOutcome publishSurvey(const Model::PublishSurveyRequest &request)const;
|
||||
void publishSurveyAsync(const Model::PublishSurveyRequest& request, const PublishSurveyAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
PublishSurveyOutcomeCallable publishSurveyCallable(const Model::PublishSurveyRequest& request) const;
|
||||
QueryRedialIndicatorOutcome queryRedialIndicator(const Model::QueryRedialIndicatorRequest &request)const;
|
||||
void queryRedialIndicatorAsync(const Model::QueryRedialIndicatorRequest& request, const QueryRedialIndicatorAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
QueryRedialIndicatorOutcomeCallable queryRedialIndicatorCallable(const Model::QueryRedialIndicatorRequest& request) const;
|
||||
RefreshTokenOutcome refreshToken(const Model::RefreshTokenRequest &request)const;
|
||||
void refreshTokenAsync(const Model::RefreshTokenRequest& request, const RefreshTokenAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
RefreshTokenOutcomeCallable refreshTokenCallable(const Model::RefreshTokenRequest& request) const;
|
||||
RemoveNumberFromSkillGroupOutcome removeNumberFromSkillGroup(const Model::RemoveNumberFromSkillGroupRequest &request)const;
|
||||
void removeNumberFromSkillGroupAsync(const Model::RemoveNumberFromSkillGroupRequest& request, const RemoveNumberFromSkillGroupAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
RemoveNumberFromSkillGroupOutcomeCallable removeNumberFromSkillGroupCallable(const Model::RemoveNumberFromSkillGroupRequest& request) const;
|
||||
RemovePhoneNumberOutcome removePhoneNumber(const Model::RemovePhoneNumberRequest &request)const;
|
||||
void removePhoneNumberAsync(const Model::RemovePhoneNumberRequest& request, const RemovePhoneNumberAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
RemovePhoneNumberOutcomeCallable removePhoneNumberCallable(const Model::RemovePhoneNumberRequest& request) const;
|
||||
@@ -1348,9 +1138,6 @@ namespace AlibabaCloud
|
||||
SendPredefinedShortMessageOutcome sendPredefinedShortMessage(const Model::SendPredefinedShortMessageRequest &request)const;
|
||||
void sendPredefinedShortMessageAsync(const Model::SendPredefinedShortMessageRequest& request, const SendPredefinedShortMessageAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
SendPredefinedShortMessageOutcomeCallable sendPredefinedShortMessageCallable(const Model::SendPredefinedShortMessageRequest& request) const;
|
||||
SimpleDialOutcome simpleDial(const Model::SimpleDialRequest &request)const;
|
||||
void simpleDialAsync(const Model::SimpleDialRequest& request, const SimpleDialAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
SimpleDialOutcomeCallable simpleDialCallable(const Model::SimpleDialRequest& request) const;
|
||||
StartBack2BackCallOutcome startBack2BackCall(const Model::StartBack2BackCallRequest &request)const;
|
||||
void startBack2BackCallAsync(const Model::StartBack2BackCallRequest& request, const StartBack2BackCallAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
StartBack2BackCallOutcomeCallable startBack2BackCallCallable(const Model::StartBack2BackCallRequest& request) const;
|
||||
@@ -1369,9 +1156,6 @@ namespace AlibabaCloud
|
||||
TaskPreparingOutcome taskPreparing(const Model::TaskPreparingRequest &request)const;
|
||||
void taskPreparingAsync(const Model::TaskPreparingRequest& request, const TaskPreparingAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
TaskPreparingOutcomeCallable taskPreparingCallable(const Model::TaskPreparingRequest& request) const;
|
||||
TwoPartiesCallOutcome twoPartiesCall(const Model::TwoPartiesCallRequest &request)const;
|
||||
void twoPartiesCallAsync(const Model::TwoPartiesCallRequest& request, const TwoPartiesCallAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
TwoPartiesCallOutcomeCallable twoPartiesCallCallable(const Model::TwoPartiesCallRequest& request) const;
|
||||
|
||||
private:
|
||||
std::shared_ptr<EndpointProvider> endpointProvider_;
|
||||
|
||||
@@ -1,72 +0,0 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_CCC_MODEL_CREATEPREDICTIVEJOBGROUPREQUEST_H_
|
||||
#define ALIBABACLOUD_CCC_MODEL_CREATEPREDICTIVEJOBGROUPREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/ccc/CCCExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace CCC
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_CCC_EXPORT CreatePredictiveJobGroupRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
CreatePredictiveJobGroupRequest();
|
||||
~CreatePredictiveJobGroupRequest();
|
||||
|
||||
std::string getDescription()const;
|
||||
void setDescription(const std::string& description);
|
||||
bool getTimingSchedule()const;
|
||||
void setTimingSchedule(bool timingSchedule);
|
||||
std::vector<std::string> getJobsJson()const;
|
||||
void setJobsJson(const std::vector<std::string>& jobsJson);
|
||||
std::string getJobFilePath()const;
|
||||
void setJobFilePath(const std::string& jobFilePath);
|
||||
std::string getInstanceId()const;
|
||||
void setInstanceId(const std::string& instanceId);
|
||||
bool getIsDraft()const;
|
||||
void setIsDraft(bool isDraft);
|
||||
std::string getSkillGroupId()const;
|
||||
void setSkillGroupId(const std::string& skillGroupId);
|
||||
std::string getStrategyJson()const;
|
||||
void setStrategyJson(const std::string& strategyJson);
|
||||
std::string getName()const;
|
||||
void setName(const std::string& name);
|
||||
|
||||
private:
|
||||
std::string description_;
|
||||
bool timingSchedule_;
|
||||
std::vector<std::string> jobsJson_;
|
||||
std::string jobFilePath_;
|
||||
std::string instanceId_;
|
||||
bool isDraft_;
|
||||
std::string skillGroupId_;
|
||||
std::string strategyJson_;
|
||||
std::string name_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_CCC_MODEL_CREATEPREDICTIVEJOBGROUPREQUEST_H_
|
||||
@@ -1,57 +0,0 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_CCC_MODEL_CREATEPREDICTIVEJOBSREQUEST_H_
|
||||
#define ALIBABACLOUD_CCC_MODEL_CREATEPREDICTIVEJOBSREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/ccc/CCCExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace CCC
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_CCC_EXPORT CreatePredictiveJobsRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
CreatePredictiveJobsRequest();
|
||||
~CreatePredictiveJobsRequest();
|
||||
|
||||
std::vector<std::string> getJobsJson()const;
|
||||
void setJobsJson(const std::vector<std::string>& jobsJson);
|
||||
std::string getInstanceId()const;
|
||||
void setInstanceId(const std::string& instanceId);
|
||||
std::string getSkillGroupId()const;
|
||||
void setSkillGroupId(const std::string& skillGroupId);
|
||||
std::string getStrategyJson()const;
|
||||
void setStrategyJson(const std::string& strategyJson);
|
||||
|
||||
private:
|
||||
std::vector<std::string> jobsJson_;
|
||||
std::string instanceId_;
|
||||
std::string skillGroupId_;
|
||||
std::string strategyJson_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_CCC_MODEL_CREATEPREDICTIVEJOBSREQUEST_H_
|
||||
@@ -1,61 +0,0 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_CCC_MODEL_GETJOBFILEUPLOADURLRESULT_H_
|
||||
#define ALIBABACLOUD_CCC_MODEL_GETJOBFILEUPLOADURLRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/ccc/CCCExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace CCC
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_CCC_EXPORT GetJobFileUploadUrlResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
|
||||
|
||||
GetJobFileUploadUrlResult();
|
||||
explicit GetJobFileUploadUrlResult(const std::string &payload);
|
||||
~GetJobFileUploadUrlResult();
|
||||
std::string getFilePath()const;
|
||||
std::string getUploadUrl()const;
|
||||
std::string getMessage()const;
|
||||
int getHttpStatusCode()const;
|
||||
std::string getCode()const;
|
||||
bool getSuccess()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::string filePath_;
|
||||
std::string uploadUrl_;
|
||||
std::string message_;
|
||||
int httpStatusCode_;
|
||||
std::string code_;
|
||||
bool success_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_CCC_MODEL_GETJOBFILEUPLOADURLRESULT_H_
|
||||
@@ -1,112 +0,0 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_CCC_MODEL_GETPREDICTIVEJOBRESULT_H_
|
||||
#define ALIBABACLOUD_CCC_MODEL_GETPREDICTIVEJOBRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/ccc/CCCExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace CCC
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_CCC_EXPORT GetPredictiveJobResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct Job
|
||||
{
|
||||
struct Contact
|
||||
{
|
||||
std::string role;
|
||||
std::string honorific;
|
||||
std::string referenceId;
|
||||
std::string state;
|
||||
std::string phoneNumber;
|
||||
std::string contactId;
|
||||
std::string contactName;
|
||||
std::string jobId;
|
||||
};
|
||||
struct Task
|
||||
{
|
||||
struct Contact1
|
||||
{
|
||||
std::string role;
|
||||
std::string honorific;
|
||||
std::string referenceId;
|
||||
std::string state;
|
||||
std::string phoneNumber;
|
||||
std::string contactId;
|
||||
std::string contactName;
|
||||
std::string jobId;
|
||||
};
|
||||
std::string status;
|
||||
std::string chatbotId;
|
||||
long planedTime;
|
||||
std::string calledNumber;
|
||||
std::string taskId;
|
||||
std::string scenarioId;
|
||||
long actualTime;
|
||||
std::string callId;
|
||||
int duration;
|
||||
std::string brief;
|
||||
std::string callingNumber;
|
||||
Contact1 contact1;
|
||||
std::string jobId;
|
||||
};
|
||||
std::string status;
|
||||
std::string jobGroupId;
|
||||
std::vector<Task> tasks;
|
||||
std::string scenarioId;
|
||||
std::vector<Contact> contacts;
|
||||
std::string referenceId;
|
||||
int priority;
|
||||
int systemPriority;
|
||||
std::string failureReason;
|
||||
std::string strategyId;
|
||||
std::string jobId;
|
||||
std::vector<std::string> callingNumbers;
|
||||
};
|
||||
|
||||
|
||||
GetPredictiveJobResult();
|
||||
explicit GetPredictiveJobResult(const std::string &payload);
|
||||
~GetPredictiveJobResult();
|
||||
std::string getMessage()const;
|
||||
int getHttpStatusCode()const;
|
||||
Job getJob()const;
|
||||
std::string getCode()const;
|
||||
bool getSuccess()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::string message_;
|
||||
int httpStatusCode_;
|
||||
Job job_;
|
||||
std::string code_;
|
||||
bool success_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_CCC_MODEL_GETPREDICTIVEJOBRESULT_H_
|
||||
@@ -35,17 +35,23 @@ namespace AlibabaCloud
|
||||
ListOutboundPhoneNumberOfUserRequest();
|
||||
~ListOutboundPhoneNumberOfUserRequest();
|
||||
|
||||
std::string getInstanceId()const;
|
||||
void setInstanceId(const std::string& instanceId);
|
||||
std::string getUserId()const;
|
||||
void setUserId(const std::string& userId);
|
||||
int getPageNumber()const;
|
||||
void setPageNumber(int pageNumber);
|
||||
std::string getAccessKeyId()const;
|
||||
void setAccessKeyId(const std::string& accessKeyId);
|
||||
std::string getInstanceId()const;
|
||||
void setInstanceId(const std::string& instanceId);
|
||||
int getPageSize()const;
|
||||
void setPageSize(int pageSize);
|
||||
|
||||
private:
|
||||
std::string instanceId_;
|
||||
std::string userId_;
|
||||
int pageNumber_;
|
||||
std::string accessKeyId_;
|
||||
std::string instanceId_;
|
||||
int pageSize_;
|
||||
|
||||
};
|
||||
}
|
||||
|
||||
@@ -68,6 +68,7 @@ namespace AlibabaCloud
|
||||
~ListOutboundPhoneNumberOfUserResult();
|
||||
std::string getMessage()const;
|
||||
int getHttpStatusCode()const;
|
||||
std::vector<std::string> getNumberList()const;
|
||||
std::vector<PhoneNumber> getOutboundPhoneNumbers()const;
|
||||
std::string getCode()const;
|
||||
bool getSuccess()const;
|
||||
@@ -77,6 +78,7 @@ namespace AlibabaCloud
|
||||
private:
|
||||
std::string message_;
|
||||
int httpStatusCode_;
|
||||
std::vector<std::string> numberList_;
|
||||
std::vector<PhoneNumber> outboundPhoneNumbers_;
|
||||
std::string code_;
|
||||
bool success_;
|
||||
|
||||
@@ -36,55 +36,20 @@ namespace AlibabaCloud
|
||||
{
|
||||
struct PhoneNumber
|
||||
{
|
||||
struct ContactFlow
|
||||
{
|
||||
std::string type;
|
||||
std::string contactFlowId;
|
||||
std::string instanceId;
|
||||
std::string contactFlowName;
|
||||
std::string contactFlowDescription;
|
||||
};
|
||||
struct PrivacyNumber
|
||||
{
|
||||
std::string regionNameCity;
|
||||
std::string type;
|
||||
std::string subId;
|
||||
std::string poolId;
|
||||
std::string extra;
|
||||
std::string poolName;
|
||||
std::string phoneNumber;
|
||||
std::string telX;
|
||||
std::string bizId;
|
||||
};
|
||||
struct SkillGroup
|
||||
{
|
||||
std::string skillGroupName;
|
||||
std::string skillGroupId;
|
||||
};
|
||||
std::string assignee;
|
||||
std::string usage;
|
||||
bool testOnly;
|
||||
bool allowOutbound;
|
||||
std::string numberGroupId;
|
||||
std::string instanceId;
|
||||
std::string contactFlowId;
|
||||
std::string serviceTag;
|
||||
long createTime;
|
||||
int remainingTime;
|
||||
std::vector<PhoneNumber::SkillGroup> skillGroups;
|
||||
int trunks;
|
||||
std::string city;
|
||||
std::string phoneNumberId;
|
||||
std::string province;
|
||||
std::string phoneNumberDescription;
|
||||
std::string provider;
|
||||
int type;
|
||||
std::string sipTelX;
|
||||
std::string number;
|
||||
int concurrency;
|
||||
PrivacyNumber privacyNumber;
|
||||
int numberCommodityStatus;
|
||||
ContactFlow contactFlow;
|
||||
std::string numberGroupName;
|
||||
std::vector<std::string> skillGroupIdList;
|
||||
};
|
||||
int totalCount;
|
||||
int pageSize;
|
||||
|
||||
@@ -1,111 +0,0 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_CCC_MODEL_LISTPREDICTIVEJOBGROUPSRESULT_H_
|
||||
#define ALIBABACLOUD_CCC_MODEL_LISTPREDICTIVEJOBGROUPSRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/ccc/CCCExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace CCC
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_CCC_EXPORT ListPredictiveJobGroupsResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct JobGroups
|
||||
{
|
||||
struct JobGroup
|
||||
{
|
||||
struct Strategy
|
||||
{
|
||||
struct TimeFrame
|
||||
{
|
||||
std::string endTime;
|
||||
std::string beginTime;
|
||||
};
|
||||
std::vector<TimeFrame> workingTime;
|
||||
int minAttemptInterval;
|
||||
long endTime;
|
||||
std::string strategyId;
|
||||
long startTime;
|
||||
int maxAttemptsPerDay;
|
||||
};
|
||||
struct Progress
|
||||
{
|
||||
struct KeyValuePair
|
||||
{
|
||||
std::string value;
|
||||
std::string key;
|
||||
};
|
||||
std::string status;
|
||||
std::vector<KeyValuePair> categories;
|
||||
long startTime;
|
||||
int duration;
|
||||
int totalCompleted;
|
||||
int totalNotAnswered;
|
||||
int totalJobs;
|
||||
};
|
||||
Progress progress;
|
||||
std::string description;
|
||||
std::string endTime;
|
||||
std::string instanceId;
|
||||
std::string startTime;
|
||||
std::string skillGroupId;
|
||||
std::string name;
|
||||
std::string jobGroupId;
|
||||
std::string skillGroupName;
|
||||
std::string taskType;
|
||||
long creationTime;
|
||||
Strategy strategy;
|
||||
std::string occupancyRate;
|
||||
};
|
||||
int totalCount;
|
||||
int pageSize;
|
||||
int pageNumber;
|
||||
std::vector<JobGroup> list;
|
||||
};
|
||||
|
||||
|
||||
ListPredictiveJobGroupsResult();
|
||||
explicit ListPredictiveJobGroupsResult(const std::string &payload);
|
||||
~ListPredictiveJobGroupsResult();
|
||||
std::string getMessage()const;
|
||||
int getHttpStatusCode()const;
|
||||
std::string getCode()const;
|
||||
JobGroups getJobGroups()const;
|
||||
bool getSuccess()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::string message_;
|
||||
int httpStatusCode_;
|
||||
std::string code_;
|
||||
JobGroups jobGroups_;
|
||||
bool success_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_CCC_MODEL_LISTPREDICTIVEJOBGROUPSRESULT_H_
|
||||
@@ -1,72 +0,0 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_CCC_MODEL_LISTPREDICTIVEJOBSTATUSREQUEST_H_
|
||||
#define ALIBABACLOUD_CCC_MODEL_LISTPREDICTIVEJOBSTATUSREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/ccc/CCCExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace CCC
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_CCC_EXPORT ListPredictiveJobStatusRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
ListPredictiveJobStatusRequest();
|
||||
~ListPredictiveJobStatusRequest();
|
||||
|
||||
std::string getTimeAlignment()const;
|
||||
void setTimeAlignment(const std::string& timeAlignment);
|
||||
std::string getPhoneNumber()const;
|
||||
void setPhoneNumber(const std::string& phoneNumber);
|
||||
long getEndTime()const;
|
||||
void setEndTime(long endTime);
|
||||
long getStartTime()const;
|
||||
void setStartTime(long startTime);
|
||||
int getPageNumber()const;
|
||||
void setPageNumber(int pageNumber);
|
||||
std::string getContactName()const;
|
||||
void setContactName(const std::string& contactName);
|
||||
std::string getInstanceId()const;
|
||||
void setInstanceId(const std::string& instanceId);
|
||||
std::string getJobGroupId()const;
|
||||
void setJobGroupId(const std::string& jobGroupId);
|
||||
int getPageSize()const;
|
||||
void setPageSize(int pageSize);
|
||||
|
||||
private:
|
||||
std::string timeAlignment_;
|
||||
std::string phoneNumber_;
|
||||
long endTime_;
|
||||
long startTime_;
|
||||
int pageNumber_;
|
||||
std::string contactName_;
|
||||
std::string instanceId_;
|
||||
std::string jobGroupId_;
|
||||
int pageSize_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_CCC_MODEL_LISTPREDICTIVEJOBSTATUSREQUEST_H_
|
||||
@@ -1,91 +0,0 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_CCC_MODEL_LISTPREDICTIVEJOBSTATUSRESULT_H_
|
||||
#define ALIBABACLOUD_CCC_MODEL_LISTPREDICTIVEJOBSTATUSRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/ccc/CCCExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace CCC
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_CCC_EXPORT ListPredictiveJobStatusResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct Jobs
|
||||
{
|
||||
struct Job
|
||||
{
|
||||
struct Contact
|
||||
{
|
||||
std::string role;
|
||||
std::string honorific;
|
||||
std::string referenceId;
|
||||
std::string state;
|
||||
std::string phoneNumber;
|
||||
std::string contactId;
|
||||
std::string contactName;
|
||||
std::string jobId;
|
||||
};
|
||||
std::string status;
|
||||
std::string jobGroupId;
|
||||
std::string scenarioId;
|
||||
std::vector<Job::Contact> contacts;
|
||||
std::string referenceId;
|
||||
int priority;
|
||||
int systemPriority;
|
||||
std::string failureReason;
|
||||
std::string strategyId;
|
||||
std::string jobId;
|
||||
std::vector<std::string> callingNumbers;
|
||||
};
|
||||
int totalCount;
|
||||
int pageSize;
|
||||
int pageNumber;
|
||||
std::vector<Job> list;
|
||||
};
|
||||
|
||||
|
||||
ListPredictiveJobStatusResult();
|
||||
explicit ListPredictiveJobStatusResult(const std::string &payload);
|
||||
~ListPredictiveJobStatusResult();
|
||||
std::string getMessage()const;
|
||||
Jobs getJobs()const;
|
||||
int getHttpStatusCode()const;
|
||||
std::string getCode()const;
|
||||
bool getSuccess()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::string message_;
|
||||
Jobs jobs_;
|
||||
int httpStatusCode_;
|
||||
std::string code_;
|
||||
bool success_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_CCC_MODEL_LISTPREDICTIVEJOBSTATUSRESULT_H_
|
||||
@@ -1,72 +0,0 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_CCC_MODEL_LISTPRIVACYNUMBERCALLDETAILSREQUEST_H_
|
||||
#define ALIBABACLOUD_CCC_MODEL_LISTPRIVACYNUMBERCALLDETAILSREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/ccc/CCCExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace CCC
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_CCC_EXPORT ListPrivacyNumberCallDetailsRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
ListPrivacyNumberCallDetailsRequest();
|
||||
~ListPrivacyNumberCallDetailsRequest();
|
||||
|
||||
std::string getAgentId()const;
|
||||
void setAgentId(const std::string& agentId);
|
||||
std::string getContactId()const;
|
||||
void setContactId(const std::string& contactId);
|
||||
long getEndTime()const;
|
||||
void setEndTime(long endTime);
|
||||
long getStartTime()const;
|
||||
void setStartTime(long startTime);
|
||||
int getPageNumber()const;
|
||||
void setPageNumber(int pageNumber);
|
||||
std::string getAccessKeyId()const;
|
||||
void setAccessKeyId(const std::string& accessKeyId);
|
||||
std::string getInstanceId()const;
|
||||
void setInstanceId(const std::string& instanceId);
|
||||
std::string getAgentName()const;
|
||||
void setAgentName(const std::string& agentName);
|
||||
int getPageSize()const;
|
||||
void setPageSize(int pageSize);
|
||||
|
||||
private:
|
||||
std::string agentId_;
|
||||
std::string contactId_;
|
||||
long endTime_;
|
||||
long startTime_;
|
||||
int pageNumber_;
|
||||
std::string accessKeyId_;
|
||||
std::string instanceId_;
|
||||
std::string agentName_;
|
||||
int pageSize_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_CCC_MODEL_LISTPRIVACYNUMBERCALLDETAILSREQUEST_H_
|
||||
@@ -1,80 +0,0 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_CCC_MODEL_LISTPRIVACYNUMBERCALLDETAILSRESULT_H_
|
||||
#define ALIBABACLOUD_CCC_MODEL_LISTPRIVACYNUMBERCALLDETAILSRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/ccc/CCCExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace CCC
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_CCC_EXPORT ListPrivacyNumberCallDetailsResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct PrivacyNumberCallDetails
|
||||
{
|
||||
struct PrivacyNumberCallDetail
|
||||
{
|
||||
std::string status;
|
||||
std::string calledNumber;
|
||||
std::string contactType;
|
||||
std::string description;
|
||||
std::string privacyNumber;
|
||||
std::string agentId;
|
||||
std::string agentName;
|
||||
std::string contactId;
|
||||
long callTime;
|
||||
std::string callingNumber;
|
||||
std::string result;
|
||||
};
|
||||
int totalCount;
|
||||
int pageSize;
|
||||
int pageNumber;
|
||||
std::vector<PrivacyNumberCallDetail> list;
|
||||
};
|
||||
|
||||
|
||||
ListPrivacyNumberCallDetailsResult();
|
||||
explicit ListPrivacyNumberCallDetailsResult(const std::string &payload);
|
||||
~ListPrivacyNumberCallDetailsResult();
|
||||
PrivacyNumberCallDetails getPrivacyNumberCallDetails()const;
|
||||
std::string getMessage()const;
|
||||
int getHttpStatusCode()const;
|
||||
std::string getCode()const;
|
||||
bool getSuccess()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
PrivacyNumberCallDetails privacyNumberCallDetails_;
|
||||
std::string message_;
|
||||
int httpStatusCode_;
|
||||
std::string code_;
|
||||
bool success_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_CCC_MODEL_LISTPRIVACYNUMBERCALLDETAILSRESULT_H_
|
||||
@@ -1,75 +0,0 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_CCC_MODEL_MODIFYMEDIAREQUEST_H_
|
||||
#define ALIBABACLOUD_CCC_MODEL_MODIFYMEDIAREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/ccc/CCCExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace CCC
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_CCC_EXPORT ModifyMediaRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
ModifyMediaRequest();
|
||||
~ModifyMediaRequest();
|
||||
|
||||
std::string getDescription()const;
|
||||
void setDescription(const std::string& description);
|
||||
std::string getOssFilePath()const;
|
||||
void setOssFilePath(const std::string& ossFilePath);
|
||||
std::string getUploadResult()const;
|
||||
void setUploadResult(const std::string& uploadResult);
|
||||
std::string getType()const;
|
||||
void setType(const std::string& type);
|
||||
std::string getContent()const;
|
||||
void setContent(const std::string& content);
|
||||
std::string getAccessKeyId()const;
|
||||
void setAccessKeyId(const std::string& accessKeyId);
|
||||
std::string getOssFileName()const;
|
||||
void setOssFileName(const std::string& ossFileName);
|
||||
std::string getInstanceId()const;
|
||||
void setInstanceId(const std::string& instanceId);
|
||||
std::string getFileName()const;
|
||||
void setFileName(const std::string& fileName);
|
||||
std::string getName()const;
|
||||
void setName(const std::string& name);
|
||||
|
||||
private:
|
||||
std::string description_;
|
||||
std::string ossFilePath_;
|
||||
std::string uploadResult_;
|
||||
std::string type_;
|
||||
std::string content_;
|
||||
std::string accessKeyId_;
|
||||
std::string ossFileName_;
|
||||
std::string instanceId_;
|
||||
std::string fileName_;
|
||||
std::string name_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_CCC_MODEL_MODIFYMEDIAREQUEST_H_
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user