Compare commits
49 Commits
multimedia
...
Qualityche
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
f0147b77e3 | ||
|
|
85cb326723 | ||
|
|
ade846346f | ||
|
|
5b311d2af3 | ||
|
|
e94b2e56f0 | ||
|
|
bc50286074 | ||
|
|
3903999f4e | ||
|
|
74be983766 | ||
|
|
1b7a4d81d6 | ||
|
|
ee87d18d06 | ||
|
|
479766d633 | ||
|
|
add2bce016 | ||
|
|
f5705434a9 | ||
|
|
3c00b7ee89 | ||
|
|
8708226a83 | ||
|
|
295143d70a | ||
|
|
990c6f8efd | ||
|
|
b409d3d613 | ||
|
|
74112c6fe7 | ||
|
|
b105496b11 | ||
|
|
f946b7f9f6 | ||
|
|
f726b03be7 | ||
|
|
e2c900c27d | ||
|
|
0abdb3fc36 | ||
|
|
1616774ea6 | ||
|
|
1260ae6f47 | ||
|
|
2acf4250c6 | ||
|
|
423e3b65e3 | ||
|
|
8f21fa7c59 | ||
|
|
cf4cda767c | ||
|
|
818bfd3cf1 | ||
|
|
969a4a2631 | ||
|
|
931a98684d | ||
|
|
357519c7f6 | ||
|
|
d28ae22685 | ||
|
|
d5ce9f9cf5 | ||
|
|
a5a458ce5d | ||
|
|
8fa8ae49c7 | ||
|
|
2e5d882484 | ||
|
|
c867781e78 | ||
|
|
ea23aa89b7 | ||
|
|
423fdd2fe5 | ||
|
|
6e6f773341 | ||
|
|
23c225f501 | ||
|
|
3cba22152a | ||
|
|
f1590ff81a | ||
|
|
032ffdc520 | ||
|
|
61acf6ad90 | ||
|
|
9052652131 |
151
CHANGELOG
151
CHANGELOG
@@ -1,3 +1,154 @@
|
|||||||
|
2020-12-17 Version: patch
|
||||||
|
- Update api.
|
||||||
|
|
||||||
|
2020-12-16 Version: patch
|
||||||
|
- Generated 2019-09-10 for `waf-openapi`.
|
||||||
|
|
||||||
|
2020-12-16 Version: patch
|
||||||
|
- Support show pipeline history.
|
||||||
|
- Support show log details.
|
||||||
|
|
||||||
|
2020-12-16 Version: patch
|
||||||
|
- Add Face Attributes.
|
||||||
|
|
||||||
|
2020-12-15 Version: patch
|
||||||
|
- Update Open API.
|
||||||
|
|
||||||
|
2020-12-15 Version: patch
|
||||||
|
- CDRS First edition.
|
||||||
|
|
||||||
|
2020-12-15 Version: patch
|
||||||
|
- CDRS First edition.
|
||||||
|
|
||||||
|
2020-12-14 Version: patch
|
||||||
|
- Add update task api.
|
||||||
|
|
||||||
|
2020-12-14 Version: patch
|
||||||
|
- Add update task api.
|
||||||
|
|
||||||
|
2020-12-14 Version: patch
|
||||||
|
- CDRS First edition.
|
||||||
|
|
||||||
|
2020-12-14 Version: patch
|
||||||
|
- Add update task api.
|
||||||
|
|
||||||
|
2020-12-11 Version: patch
|
||||||
|
- Add Emon route-API support.
|
||||||
|
|
||||||
|
2020-12-09 Version: patch
|
||||||
|
- Update SegmentCommodity.
|
||||||
|
|
||||||
|
2020-12-07 Version: patch
|
||||||
|
- Remove DescribeSubscriptionObjectModifyStatus.
|
||||||
|
|
||||||
|
2020-12-04 Version: patch
|
||||||
|
- Supported broker demand.
|
||||||
|
|
||||||
|
2020-12-04 Version: patch
|
||||||
|
- Support manual scan interface.
|
||||||
|
|
||||||
|
2020-12-04 Version: patch
|
||||||
|
- ReportInstancesStatus OpenAPI supports IssueCategory parameter.
|
||||||
|
|
||||||
|
2020-12-03 Version: patch
|
||||||
|
- Update DescribeScdnDomainCertificateInfo.
|
||||||
|
|
||||||
|
2020-12-03 Version: patch
|
||||||
|
- Update ModifyDcdnService.
|
||||||
|
|
||||||
|
2020-12-03 Version: patch
|
||||||
|
- Update DescribeDomainMax95BpsData.
|
||||||
|
|
||||||
|
2020-12-03 Version: patch
|
||||||
|
- Update DescribeScdnDomainCertificateInfo.
|
||||||
|
|
||||||
|
2020-12-03 Version: patch
|
||||||
|
- Update DescribeDomainMax95BpsData.
|
||||||
|
|
||||||
|
2020-12-03 Version: patch
|
||||||
|
- Update DescribeScdnDomainCertificateInfo.
|
||||||
|
|
||||||
|
2020-12-03 Version: patch
|
||||||
|
- Update DescribeDomainMax95BpsData.
|
||||||
|
|
||||||
|
2020-12-03 Version: patch
|
||||||
|
- Update ModifyDcdnService.
|
||||||
|
|
||||||
|
2020-12-03 Version: patch
|
||||||
|
- Update DescribeScdnDomainCertificateInfo.
|
||||||
|
|
||||||
|
2020-12-03 Version: patch
|
||||||
|
- Generated 2020-05-18 for `dataworks-public`.
|
||||||
|
|
||||||
|
2020-12-03 Version: patch
|
||||||
|
- Add new api.
|
||||||
|
|
||||||
|
2020-12-03 Version: patch
|
||||||
|
- Supported all language sdk.
|
||||||
|
- Fixed some bugs for polardbx.
|
||||||
|
|
||||||
|
2020-12-03 Version: patch
|
||||||
|
- Update DetectLungNodule.
|
||||||
|
|
||||||
|
2020-12-02 Version: patch
|
||||||
|
- Support CreateDBLink for polardb oracle.
|
||||||
|
- Support DeleteDBLink for polardb oracle.
|
||||||
|
- Support DescribeDBLinks for polardb oracle.
|
||||||
|
|
||||||
|
2020-12-02 Version: patch
|
||||||
|
- Update version.
|
||||||
|
|
||||||
|
2020-12-02 Version: patch
|
||||||
|
- Update version.
|
||||||
|
|
||||||
|
2020-12-02 Version: patch
|
||||||
|
- Support TemplateContent.
|
||||||
|
|
||||||
|
2020-12-02 Version: patch
|
||||||
|
- Supported OpenAPI for SDK.
|
||||||
|
|
||||||
|
2020-12-02 Version: patch
|
||||||
|
- Release ColorizeImage.
|
||||||
|
|
||||||
|
2020-12-02 Version: patch
|
||||||
|
- Release MergeVideoFace EnhanceVideoQuality.
|
||||||
|
|
||||||
|
2020-12-02 Version: patch
|
||||||
|
- Update SegmentHead.
|
||||||
|
|
||||||
|
2020-12-01 Version: patch
|
||||||
|
- Add task api.
|
||||||
|
|
||||||
|
2020-12-01 Version: patch
|
||||||
|
- Add task api.
|
||||||
|
|
||||||
|
2020-12-01 Version: patch
|
||||||
|
- Fixed bugs for CCC.
|
||||||
|
|
||||||
|
2020-12-01 Version: patch
|
||||||
|
- Supported Open Api.
|
||||||
|
|
||||||
|
2020-11-30 Version: patch
|
||||||
|
- Update SetVideoSeekConfig.
|
||||||
|
|
||||||
|
2020-11-30 Version: patch
|
||||||
|
- Update DescribeScdnDomainCertificateInfo.
|
||||||
|
|
||||||
|
2020-11-30 Version: patch
|
||||||
|
- Update SetVideoSeekConfig.
|
||||||
|
|
||||||
|
2020-11-30 Version: patch
|
||||||
|
- Add OpenARMS api.
|
||||||
|
|
||||||
|
2020-11-30 Version: patch
|
||||||
|
- Support autoPtovisioning whth DiskConfigs.
|
||||||
|
|
||||||
|
2020-11-30 Version: patch
|
||||||
|
- Update OpenDcdnService.
|
||||||
|
|
||||||
|
2020-11-30 Version: patch
|
||||||
|
- Add SourceType for severless instance.
|
||||||
|
|
||||||
2020-11-30 Version: patch
|
2020-11-30 Version: patch
|
||||||
- Video Content analytics template introduced to this SDK.
|
- Video Content analytics template introduced to this SDK.
|
||||||
|
|
||||||
|
|||||||
@@ -49,14 +49,20 @@ set(arms_public_header_model
|
|||||||
include/alibabacloud/arms/model/DeleteRetcodeAppResult.h
|
include/alibabacloud/arms/model/DeleteRetcodeAppResult.h
|
||||||
include/alibabacloud/arms/model/DeleteTraceAppRequest.h
|
include/alibabacloud/arms/model/DeleteTraceAppRequest.h
|
||||||
include/alibabacloud/arms/model/DeleteTraceAppResult.h
|
include/alibabacloud/arms/model/DeleteTraceAppResult.h
|
||||||
|
include/alibabacloud/arms/model/DescribeDispatchRuleRequest.h
|
||||||
|
include/alibabacloud/arms/model/DescribeDispatchRuleResult.h
|
||||||
include/alibabacloud/arms/model/DescribeTraceLicenseKeyRequest.h
|
include/alibabacloud/arms/model/DescribeTraceLicenseKeyRequest.h
|
||||||
include/alibabacloud/arms/model/DescribeTraceLicenseKeyResult.h
|
include/alibabacloud/arms/model/DescribeTraceLicenseKeyResult.h
|
||||||
include/alibabacloud/arms/model/DescribeTraceLocationRequest.h
|
include/alibabacloud/arms/model/DescribeTraceLocationRequest.h
|
||||||
include/alibabacloud/arms/model/DescribeTraceLocationResult.h
|
include/alibabacloud/arms/model/DescribeTraceLocationResult.h
|
||||||
|
include/alibabacloud/arms/model/ExportPrometheusRulesRequest.h
|
||||||
|
include/alibabacloud/arms/model/ExportPrometheusRulesResult.h
|
||||||
include/alibabacloud/arms/model/GetAppApiByPageRequest.h
|
include/alibabacloud/arms/model/GetAppApiByPageRequest.h
|
||||||
include/alibabacloud/arms/model/GetAppApiByPageResult.h
|
include/alibabacloud/arms/model/GetAppApiByPageResult.h
|
||||||
include/alibabacloud/arms/model/GetConsistencySnapshotRequest.h
|
include/alibabacloud/arms/model/GetConsistencySnapshotRequest.h
|
||||||
include/alibabacloud/arms/model/GetConsistencySnapshotResult.h
|
include/alibabacloud/arms/model/GetConsistencySnapshotResult.h
|
||||||
|
include/alibabacloud/arms/model/GetIntegrationTokenRequest.h
|
||||||
|
include/alibabacloud/arms/model/GetIntegrationTokenResult.h
|
||||||
include/alibabacloud/arms/model/GetMultipleTraceRequest.h
|
include/alibabacloud/arms/model/GetMultipleTraceRequest.h
|
||||||
include/alibabacloud/arms/model/GetMultipleTraceResult.h
|
include/alibabacloud/arms/model/GetMultipleTraceResult.h
|
||||||
include/alibabacloud/arms/model/GetPrometheusApiTokenRequest.h
|
include/alibabacloud/arms/model/GetPrometheusApiTokenRequest.h
|
||||||
@@ -73,6 +79,8 @@ set(arms_public_header_model
|
|||||||
include/alibabacloud/arms/model/ImportAppAlertRulesResult.h
|
include/alibabacloud/arms/model/ImportAppAlertRulesResult.h
|
||||||
include/alibabacloud/arms/model/ImportCustomAlertRulesRequest.h
|
include/alibabacloud/arms/model/ImportCustomAlertRulesRequest.h
|
||||||
include/alibabacloud/arms/model/ImportCustomAlertRulesResult.h
|
include/alibabacloud/arms/model/ImportCustomAlertRulesResult.h
|
||||||
|
include/alibabacloud/arms/model/ImportPrometheusRulesRequest.h
|
||||||
|
include/alibabacloud/arms/model/ImportPrometheusRulesResult.h
|
||||||
include/alibabacloud/arms/model/ListClusterFromGrafanaRequest.h
|
include/alibabacloud/arms/model/ListClusterFromGrafanaRequest.h
|
||||||
include/alibabacloud/arms/model/ListClusterFromGrafanaResult.h
|
include/alibabacloud/arms/model/ListClusterFromGrafanaResult.h
|
||||||
include/alibabacloud/arms/model/ListDashboardsRequest.h
|
include/alibabacloud/arms/model/ListDashboardsRequest.h
|
||||||
@@ -111,6 +119,10 @@ set(arms_public_header_model
|
|||||||
include/alibabacloud/arms/model/SearchTracesResult.h
|
include/alibabacloud/arms/model/SearchTracesResult.h
|
||||||
include/alibabacloud/arms/model/SearchTracesByPageRequest.h
|
include/alibabacloud/arms/model/SearchTracesByPageRequest.h
|
||||||
include/alibabacloud/arms/model/SearchTracesByPageResult.h
|
include/alibabacloud/arms/model/SearchTracesByPageResult.h
|
||||||
|
include/alibabacloud/arms/model/SendCustomIncidentsRequest.h
|
||||||
|
include/alibabacloud/arms/model/SendCustomIncidentsResult.h
|
||||||
|
include/alibabacloud/arms/model/SendMseIncidentRequest.h
|
||||||
|
include/alibabacloud/arms/model/SendMseIncidentResult.h
|
||||||
include/alibabacloud/arms/model/SetRetcodeShareStatusRequest.h
|
include/alibabacloud/arms/model/SetRetcodeShareStatusRequest.h
|
||||||
include/alibabacloud/arms/model/SetRetcodeShareStatusResult.h
|
include/alibabacloud/arms/model/SetRetcodeShareStatusResult.h
|
||||||
include/alibabacloud/arms/model/StartAlertRequest.h
|
include/alibabacloud/arms/model/StartAlertRequest.h
|
||||||
@@ -156,14 +168,20 @@ set(arms_src
|
|||||||
src/model/DeleteRetcodeAppResult.cc
|
src/model/DeleteRetcodeAppResult.cc
|
||||||
src/model/DeleteTraceAppRequest.cc
|
src/model/DeleteTraceAppRequest.cc
|
||||||
src/model/DeleteTraceAppResult.cc
|
src/model/DeleteTraceAppResult.cc
|
||||||
|
src/model/DescribeDispatchRuleRequest.cc
|
||||||
|
src/model/DescribeDispatchRuleResult.cc
|
||||||
src/model/DescribeTraceLicenseKeyRequest.cc
|
src/model/DescribeTraceLicenseKeyRequest.cc
|
||||||
src/model/DescribeTraceLicenseKeyResult.cc
|
src/model/DescribeTraceLicenseKeyResult.cc
|
||||||
src/model/DescribeTraceLocationRequest.cc
|
src/model/DescribeTraceLocationRequest.cc
|
||||||
src/model/DescribeTraceLocationResult.cc
|
src/model/DescribeTraceLocationResult.cc
|
||||||
|
src/model/ExportPrometheusRulesRequest.cc
|
||||||
|
src/model/ExportPrometheusRulesResult.cc
|
||||||
src/model/GetAppApiByPageRequest.cc
|
src/model/GetAppApiByPageRequest.cc
|
||||||
src/model/GetAppApiByPageResult.cc
|
src/model/GetAppApiByPageResult.cc
|
||||||
src/model/GetConsistencySnapshotRequest.cc
|
src/model/GetConsistencySnapshotRequest.cc
|
||||||
src/model/GetConsistencySnapshotResult.cc
|
src/model/GetConsistencySnapshotResult.cc
|
||||||
|
src/model/GetIntegrationTokenRequest.cc
|
||||||
|
src/model/GetIntegrationTokenResult.cc
|
||||||
src/model/GetMultipleTraceRequest.cc
|
src/model/GetMultipleTraceRequest.cc
|
||||||
src/model/GetMultipleTraceResult.cc
|
src/model/GetMultipleTraceResult.cc
|
||||||
src/model/GetPrometheusApiTokenRequest.cc
|
src/model/GetPrometheusApiTokenRequest.cc
|
||||||
@@ -180,6 +198,8 @@ set(arms_src
|
|||||||
src/model/ImportAppAlertRulesResult.cc
|
src/model/ImportAppAlertRulesResult.cc
|
||||||
src/model/ImportCustomAlertRulesRequest.cc
|
src/model/ImportCustomAlertRulesRequest.cc
|
||||||
src/model/ImportCustomAlertRulesResult.cc
|
src/model/ImportCustomAlertRulesResult.cc
|
||||||
|
src/model/ImportPrometheusRulesRequest.cc
|
||||||
|
src/model/ImportPrometheusRulesResult.cc
|
||||||
src/model/ListClusterFromGrafanaRequest.cc
|
src/model/ListClusterFromGrafanaRequest.cc
|
||||||
src/model/ListClusterFromGrafanaResult.cc
|
src/model/ListClusterFromGrafanaResult.cc
|
||||||
src/model/ListDashboardsRequest.cc
|
src/model/ListDashboardsRequest.cc
|
||||||
@@ -218,6 +238,10 @@ set(arms_src
|
|||||||
src/model/SearchTracesResult.cc
|
src/model/SearchTracesResult.cc
|
||||||
src/model/SearchTracesByPageRequest.cc
|
src/model/SearchTracesByPageRequest.cc
|
||||||
src/model/SearchTracesByPageResult.cc
|
src/model/SearchTracesByPageResult.cc
|
||||||
|
src/model/SendCustomIncidentsRequest.cc
|
||||||
|
src/model/SendCustomIncidentsResult.cc
|
||||||
|
src/model/SendMseIncidentRequest.cc
|
||||||
|
src/model/SendMseIncidentResult.cc
|
||||||
src/model/SetRetcodeShareStatusRequest.cc
|
src/model/SetRetcodeShareStatusRequest.cc
|
||||||
src/model/SetRetcodeShareStatusResult.cc
|
src/model/SetRetcodeShareStatusResult.cc
|
||||||
src/model/StartAlertRequest.cc
|
src/model/StartAlertRequest.cc
|
||||||
|
|||||||
@@ -50,14 +50,20 @@
|
|||||||
#include "model/DeleteRetcodeAppResult.h"
|
#include "model/DeleteRetcodeAppResult.h"
|
||||||
#include "model/DeleteTraceAppRequest.h"
|
#include "model/DeleteTraceAppRequest.h"
|
||||||
#include "model/DeleteTraceAppResult.h"
|
#include "model/DeleteTraceAppResult.h"
|
||||||
|
#include "model/DescribeDispatchRuleRequest.h"
|
||||||
|
#include "model/DescribeDispatchRuleResult.h"
|
||||||
#include "model/DescribeTraceLicenseKeyRequest.h"
|
#include "model/DescribeTraceLicenseKeyRequest.h"
|
||||||
#include "model/DescribeTraceLicenseKeyResult.h"
|
#include "model/DescribeTraceLicenseKeyResult.h"
|
||||||
#include "model/DescribeTraceLocationRequest.h"
|
#include "model/DescribeTraceLocationRequest.h"
|
||||||
#include "model/DescribeTraceLocationResult.h"
|
#include "model/DescribeTraceLocationResult.h"
|
||||||
|
#include "model/ExportPrometheusRulesRequest.h"
|
||||||
|
#include "model/ExportPrometheusRulesResult.h"
|
||||||
#include "model/GetAppApiByPageRequest.h"
|
#include "model/GetAppApiByPageRequest.h"
|
||||||
#include "model/GetAppApiByPageResult.h"
|
#include "model/GetAppApiByPageResult.h"
|
||||||
#include "model/GetConsistencySnapshotRequest.h"
|
#include "model/GetConsistencySnapshotRequest.h"
|
||||||
#include "model/GetConsistencySnapshotResult.h"
|
#include "model/GetConsistencySnapshotResult.h"
|
||||||
|
#include "model/GetIntegrationTokenRequest.h"
|
||||||
|
#include "model/GetIntegrationTokenResult.h"
|
||||||
#include "model/GetMultipleTraceRequest.h"
|
#include "model/GetMultipleTraceRequest.h"
|
||||||
#include "model/GetMultipleTraceResult.h"
|
#include "model/GetMultipleTraceResult.h"
|
||||||
#include "model/GetPrometheusApiTokenRequest.h"
|
#include "model/GetPrometheusApiTokenRequest.h"
|
||||||
@@ -74,6 +80,8 @@
|
|||||||
#include "model/ImportAppAlertRulesResult.h"
|
#include "model/ImportAppAlertRulesResult.h"
|
||||||
#include "model/ImportCustomAlertRulesRequest.h"
|
#include "model/ImportCustomAlertRulesRequest.h"
|
||||||
#include "model/ImportCustomAlertRulesResult.h"
|
#include "model/ImportCustomAlertRulesResult.h"
|
||||||
|
#include "model/ImportPrometheusRulesRequest.h"
|
||||||
|
#include "model/ImportPrometheusRulesResult.h"
|
||||||
#include "model/ListClusterFromGrafanaRequest.h"
|
#include "model/ListClusterFromGrafanaRequest.h"
|
||||||
#include "model/ListClusterFromGrafanaResult.h"
|
#include "model/ListClusterFromGrafanaResult.h"
|
||||||
#include "model/ListDashboardsRequest.h"
|
#include "model/ListDashboardsRequest.h"
|
||||||
@@ -112,6 +120,10 @@
|
|||||||
#include "model/SearchTracesResult.h"
|
#include "model/SearchTracesResult.h"
|
||||||
#include "model/SearchTracesByPageRequest.h"
|
#include "model/SearchTracesByPageRequest.h"
|
||||||
#include "model/SearchTracesByPageResult.h"
|
#include "model/SearchTracesByPageResult.h"
|
||||||
|
#include "model/SendCustomIncidentsRequest.h"
|
||||||
|
#include "model/SendCustomIncidentsResult.h"
|
||||||
|
#include "model/SendMseIncidentRequest.h"
|
||||||
|
#include "model/SendMseIncidentResult.h"
|
||||||
#include "model/SetRetcodeShareStatusRequest.h"
|
#include "model/SetRetcodeShareStatusRequest.h"
|
||||||
#include "model/SetRetcodeShareStatusResult.h"
|
#include "model/SetRetcodeShareStatusResult.h"
|
||||||
#include "model/StartAlertRequest.h"
|
#include "model/StartAlertRequest.h"
|
||||||
@@ -177,18 +189,27 @@ namespace AlibabaCloud
|
|||||||
typedef Outcome<Error, Model::DeleteTraceAppResult> DeleteTraceAppOutcome;
|
typedef Outcome<Error, Model::DeleteTraceAppResult> DeleteTraceAppOutcome;
|
||||||
typedef std::future<DeleteTraceAppOutcome> DeleteTraceAppOutcomeCallable;
|
typedef std::future<DeleteTraceAppOutcome> DeleteTraceAppOutcomeCallable;
|
||||||
typedef std::function<void(const ARMSClient*, const Model::DeleteTraceAppRequest&, const DeleteTraceAppOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DeleteTraceAppAsyncHandler;
|
typedef std::function<void(const ARMSClient*, const Model::DeleteTraceAppRequest&, const DeleteTraceAppOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DeleteTraceAppAsyncHandler;
|
||||||
|
typedef Outcome<Error, Model::DescribeDispatchRuleResult> DescribeDispatchRuleOutcome;
|
||||||
|
typedef std::future<DescribeDispatchRuleOutcome> DescribeDispatchRuleOutcomeCallable;
|
||||||
|
typedef std::function<void(const ARMSClient*, const Model::DescribeDispatchRuleRequest&, const DescribeDispatchRuleOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeDispatchRuleAsyncHandler;
|
||||||
typedef Outcome<Error, Model::DescribeTraceLicenseKeyResult> DescribeTraceLicenseKeyOutcome;
|
typedef Outcome<Error, Model::DescribeTraceLicenseKeyResult> DescribeTraceLicenseKeyOutcome;
|
||||||
typedef std::future<DescribeTraceLicenseKeyOutcome> DescribeTraceLicenseKeyOutcomeCallable;
|
typedef std::future<DescribeTraceLicenseKeyOutcome> DescribeTraceLicenseKeyOutcomeCallable;
|
||||||
typedef std::function<void(const ARMSClient*, const Model::DescribeTraceLicenseKeyRequest&, const DescribeTraceLicenseKeyOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeTraceLicenseKeyAsyncHandler;
|
typedef std::function<void(const ARMSClient*, const Model::DescribeTraceLicenseKeyRequest&, const DescribeTraceLicenseKeyOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeTraceLicenseKeyAsyncHandler;
|
||||||
typedef Outcome<Error, Model::DescribeTraceLocationResult> DescribeTraceLocationOutcome;
|
typedef Outcome<Error, Model::DescribeTraceLocationResult> DescribeTraceLocationOutcome;
|
||||||
typedef std::future<DescribeTraceLocationOutcome> DescribeTraceLocationOutcomeCallable;
|
typedef std::future<DescribeTraceLocationOutcome> DescribeTraceLocationOutcomeCallable;
|
||||||
typedef std::function<void(const ARMSClient*, const Model::DescribeTraceLocationRequest&, const DescribeTraceLocationOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeTraceLocationAsyncHandler;
|
typedef std::function<void(const ARMSClient*, const Model::DescribeTraceLocationRequest&, const DescribeTraceLocationOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeTraceLocationAsyncHandler;
|
||||||
|
typedef Outcome<Error, Model::ExportPrometheusRulesResult> ExportPrometheusRulesOutcome;
|
||||||
|
typedef std::future<ExportPrometheusRulesOutcome> ExportPrometheusRulesOutcomeCallable;
|
||||||
|
typedef std::function<void(const ARMSClient*, const Model::ExportPrometheusRulesRequest&, const ExportPrometheusRulesOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ExportPrometheusRulesAsyncHandler;
|
||||||
typedef Outcome<Error, Model::GetAppApiByPageResult> GetAppApiByPageOutcome;
|
typedef Outcome<Error, Model::GetAppApiByPageResult> GetAppApiByPageOutcome;
|
||||||
typedef std::future<GetAppApiByPageOutcome> GetAppApiByPageOutcomeCallable;
|
typedef std::future<GetAppApiByPageOutcome> GetAppApiByPageOutcomeCallable;
|
||||||
typedef std::function<void(const ARMSClient*, const Model::GetAppApiByPageRequest&, const GetAppApiByPageOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetAppApiByPageAsyncHandler;
|
typedef std::function<void(const ARMSClient*, const Model::GetAppApiByPageRequest&, const GetAppApiByPageOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetAppApiByPageAsyncHandler;
|
||||||
typedef Outcome<Error, Model::GetConsistencySnapshotResult> GetConsistencySnapshotOutcome;
|
typedef Outcome<Error, Model::GetConsistencySnapshotResult> GetConsistencySnapshotOutcome;
|
||||||
typedef std::future<GetConsistencySnapshotOutcome> GetConsistencySnapshotOutcomeCallable;
|
typedef std::future<GetConsistencySnapshotOutcome> GetConsistencySnapshotOutcomeCallable;
|
||||||
typedef std::function<void(const ARMSClient*, const Model::GetConsistencySnapshotRequest&, const GetConsistencySnapshotOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetConsistencySnapshotAsyncHandler;
|
typedef std::function<void(const ARMSClient*, const Model::GetConsistencySnapshotRequest&, const GetConsistencySnapshotOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetConsistencySnapshotAsyncHandler;
|
||||||
|
typedef Outcome<Error, Model::GetIntegrationTokenResult> GetIntegrationTokenOutcome;
|
||||||
|
typedef std::future<GetIntegrationTokenOutcome> GetIntegrationTokenOutcomeCallable;
|
||||||
|
typedef std::function<void(const ARMSClient*, const Model::GetIntegrationTokenRequest&, const GetIntegrationTokenOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetIntegrationTokenAsyncHandler;
|
||||||
typedef Outcome<Error, Model::GetMultipleTraceResult> GetMultipleTraceOutcome;
|
typedef Outcome<Error, Model::GetMultipleTraceResult> GetMultipleTraceOutcome;
|
||||||
typedef std::future<GetMultipleTraceOutcome> GetMultipleTraceOutcomeCallable;
|
typedef std::future<GetMultipleTraceOutcome> GetMultipleTraceOutcomeCallable;
|
||||||
typedef std::function<void(const ARMSClient*, const Model::GetMultipleTraceRequest&, const GetMultipleTraceOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetMultipleTraceAsyncHandler;
|
typedef std::function<void(const ARMSClient*, const Model::GetMultipleTraceRequest&, const GetMultipleTraceOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetMultipleTraceAsyncHandler;
|
||||||
@@ -213,6 +234,9 @@ namespace AlibabaCloud
|
|||||||
typedef Outcome<Error, Model::ImportCustomAlertRulesResult> ImportCustomAlertRulesOutcome;
|
typedef Outcome<Error, Model::ImportCustomAlertRulesResult> ImportCustomAlertRulesOutcome;
|
||||||
typedef std::future<ImportCustomAlertRulesOutcome> ImportCustomAlertRulesOutcomeCallable;
|
typedef std::future<ImportCustomAlertRulesOutcome> ImportCustomAlertRulesOutcomeCallable;
|
||||||
typedef std::function<void(const ARMSClient*, const Model::ImportCustomAlertRulesRequest&, const ImportCustomAlertRulesOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ImportCustomAlertRulesAsyncHandler;
|
typedef std::function<void(const ARMSClient*, const Model::ImportCustomAlertRulesRequest&, const ImportCustomAlertRulesOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ImportCustomAlertRulesAsyncHandler;
|
||||||
|
typedef Outcome<Error, Model::ImportPrometheusRulesResult> ImportPrometheusRulesOutcome;
|
||||||
|
typedef std::future<ImportPrometheusRulesOutcome> ImportPrometheusRulesOutcomeCallable;
|
||||||
|
typedef std::function<void(const ARMSClient*, const Model::ImportPrometheusRulesRequest&, const ImportPrometheusRulesOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ImportPrometheusRulesAsyncHandler;
|
||||||
typedef Outcome<Error, Model::ListClusterFromGrafanaResult> ListClusterFromGrafanaOutcome;
|
typedef Outcome<Error, Model::ListClusterFromGrafanaResult> ListClusterFromGrafanaOutcome;
|
||||||
typedef std::future<ListClusterFromGrafanaOutcome> ListClusterFromGrafanaOutcomeCallable;
|
typedef std::future<ListClusterFromGrafanaOutcome> ListClusterFromGrafanaOutcomeCallable;
|
||||||
typedef std::function<void(const ARMSClient*, const Model::ListClusterFromGrafanaRequest&, const ListClusterFromGrafanaOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ListClusterFromGrafanaAsyncHandler;
|
typedef std::function<void(const ARMSClient*, const Model::ListClusterFromGrafanaRequest&, const ListClusterFromGrafanaOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ListClusterFromGrafanaAsyncHandler;
|
||||||
@@ -270,6 +294,12 @@ namespace AlibabaCloud
|
|||||||
typedef Outcome<Error, Model::SearchTracesByPageResult> SearchTracesByPageOutcome;
|
typedef Outcome<Error, Model::SearchTracesByPageResult> SearchTracesByPageOutcome;
|
||||||
typedef std::future<SearchTracesByPageOutcome> SearchTracesByPageOutcomeCallable;
|
typedef std::future<SearchTracesByPageOutcome> SearchTracesByPageOutcomeCallable;
|
||||||
typedef std::function<void(const ARMSClient*, const Model::SearchTracesByPageRequest&, const SearchTracesByPageOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> SearchTracesByPageAsyncHandler;
|
typedef std::function<void(const ARMSClient*, const Model::SearchTracesByPageRequest&, const SearchTracesByPageOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> SearchTracesByPageAsyncHandler;
|
||||||
|
typedef Outcome<Error, Model::SendCustomIncidentsResult> SendCustomIncidentsOutcome;
|
||||||
|
typedef std::future<SendCustomIncidentsOutcome> SendCustomIncidentsOutcomeCallable;
|
||||||
|
typedef std::function<void(const ARMSClient*, const Model::SendCustomIncidentsRequest&, const SendCustomIncidentsOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> SendCustomIncidentsAsyncHandler;
|
||||||
|
typedef Outcome<Error, Model::SendMseIncidentResult> SendMseIncidentOutcome;
|
||||||
|
typedef std::future<SendMseIncidentOutcome> SendMseIncidentOutcomeCallable;
|
||||||
|
typedef std::function<void(const ARMSClient*, const Model::SendMseIncidentRequest&, const SendMseIncidentOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> SendMseIncidentAsyncHandler;
|
||||||
typedef Outcome<Error, Model::SetRetcodeShareStatusResult> SetRetcodeShareStatusOutcome;
|
typedef Outcome<Error, Model::SetRetcodeShareStatusResult> SetRetcodeShareStatusOutcome;
|
||||||
typedef std::future<SetRetcodeShareStatusOutcome> SetRetcodeShareStatusOutcomeCallable;
|
typedef std::future<SetRetcodeShareStatusOutcome> SetRetcodeShareStatusOutcomeCallable;
|
||||||
typedef std::function<void(const ARMSClient*, const Model::SetRetcodeShareStatusRequest&, const SetRetcodeShareStatusOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> SetRetcodeShareStatusAsyncHandler;
|
typedef std::function<void(const ARMSClient*, const Model::SetRetcodeShareStatusRequest&, const SetRetcodeShareStatusOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> SetRetcodeShareStatusAsyncHandler;
|
||||||
@@ -338,18 +368,27 @@ namespace AlibabaCloud
|
|||||||
DeleteTraceAppOutcome deleteTraceApp(const Model::DeleteTraceAppRequest &request)const;
|
DeleteTraceAppOutcome deleteTraceApp(const Model::DeleteTraceAppRequest &request)const;
|
||||||
void deleteTraceAppAsync(const Model::DeleteTraceAppRequest& request, const DeleteTraceAppAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
void deleteTraceAppAsync(const Model::DeleteTraceAppRequest& request, const DeleteTraceAppAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||||
DeleteTraceAppOutcomeCallable deleteTraceAppCallable(const Model::DeleteTraceAppRequest& request) const;
|
DeleteTraceAppOutcomeCallable deleteTraceAppCallable(const Model::DeleteTraceAppRequest& request) const;
|
||||||
|
DescribeDispatchRuleOutcome describeDispatchRule(const Model::DescribeDispatchRuleRequest &request)const;
|
||||||
|
void describeDispatchRuleAsync(const Model::DescribeDispatchRuleRequest& request, const DescribeDispatchRuleAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||||
|
DescribeDispatchRuleOutcomeCallable describeDispatchRuleCallable(const Model::DescribeDispatchRuleRequest& request) const;
|
||||||
DescribeTraceLicenseKeyOutcome describeTraceLicenseKey(const Model::DescribeTraceLicenseKeyRequest &request)const;
|
DescribeTraceLicenseKeyOutcome describeTraceLicenseKey(const Model::DescribeTraceLicenseKeyRequest &request)const;
|
||||||
void describeTraceLicenseKeyAsync(const Model::DescribeTraceLicenseKeyRequest& request, const DescribeTraceLicenseKeyAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
void describeTraceLicenseKeyAsync(const Model::DescribeTraceLicenseKeyRequest& request, const DescribeTraceLicenseKeyAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||||
DescribeTraceLicenseKeyOutcomeCallable describeTraceLicenseKeyCallable(const Model::DescribeTraceLicenseKeyRequest& request) const;
|
DescribeTraceLicenseKeyOutcomeCallable describeTraceLicenseKeyCallable(const Model::DescribeTraceLicenseKeyRequest& request) const;
|
||||||
DescribeTraceLocationOutcome describeTraceLocation(const Model::DescribeTraceLocationRequest &request)const;
|
DescribeTraceLocationOutcome describeTraceLocation(const Model::DescribeTraceLocationRequest &request)const;
|
||||||
void describeTraceLocationAsync(const Model::DescribeTraceLocationRequest& request, const DescribeTraceLocationAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
void describeTraceLocationAsync(const Model::DescribeTraceLocationRequest& request, const DescribeTraceLocationAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||||
DescribeTraceLocationOutcomeCallable describeTraceLocationCallable(const Model::DescribeTraceLocationRequest& request) const;
|
DescribeTraceLocationOutcomeCallable describeTraceLocationCallable(const Model::DescribeTraceLocationRequest& request) const;
|
||||||
|
ExportPrometheusRulesOutcome exportPrometheusRules(const Model::ExportPrometheusRulesRequest &request)const;
|
||||||
|
void exportPrometheusRulesAsync(const Model::ExportPrometheusRulesRequest& request, const ExportPrometheusRulesAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||||
|
ExportPrometheusRulesOutcomeCallable exportPrometheusRulesCallable(const Model::ExportPrometheusRulesRequest& request) const;
|
||||||
GetAppApiByPageOutcome getAppApiByPage(const Model::GetAppApiByPageRequest &request)const;
|
GetAppApiByPageOutcome getAppApiByPage(const Model::GetAppApiByPageRequest &request)const;
|
||||||
void getAppApiByPageAsync(const Model::GetAppApiByPageRequest& request, const GetAppApiByPageAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
void getAppApiByPageAsync(const Model::GetAppApiByPageRequest& request, const GetAppApiByPageAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||||
GetAppApiByPageOutcomeCallable getAppApiByPageCallable(const Model::GetAppApiByPageRequest& request) const;
|
GetAppApiByPageOutcomeCallable getAppApiByPageCallable(const Model::GetAppApiByPageRequest& request) const;
|
||||||
GetConsistencySnapshotOutcome getConsistencySnapshot(const Model::GetConsistencySnapshotRequest &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;
|
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;
|
GetConsistencySnapshotOutcomeCallable getConsistencySnapshotCallable(const Model::GetConsistencySnapshotRequest& request) const;
|
||||||
|
GetIntegrationTokenOutcome getIntegrationToken(const Model::GetIntegrationTokenRequest &request)const;
|
||||||
|
void getIntegrationTokenAsync(const Model::GetIntegrationTokenRequest& request, const GetIntegrationTokenAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||||
|
GetIntegrationTokenOutcomeCallable getIntegrationTokenCallable(const Model::GetIntegrationTokenRequest& request) const;
|
||||||
GetMultipleTraceOutcome getMultipleTrace(const Model::GetMultipleTraceRequest &request)const;
|
GetMultipleTraceOutcome getMultipleTrace(const Model::GetMultipleTraceRequest &request)const;
|
||||||
void getMultipleTraceAsync(const Model::GetMultipleTraceRequest& request, const GetMultipleTraceAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
void getMultipleTraceAsync(const Model::GetMultipleTraceRequest& request, const GetMultipleTraceAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||||
GetMultipleTraceOutcomeCallable getMultipleTraceCallable(const Model::GetMultipleTraceRequest& request) const;
|
GetMultipleTraceOutcomeCallable getMultipleTraceCallable(const Model::GetMultipleTraceRequest& request) const;
|
||||||
@@ -374,6 +413,9 @@ namespace AlibabaCloud
|
|||||||
ImportCustomAlertRulesOutcome importCustomAlertRules(const Model::ImportCustomAlertRulesRequest &request)const;
|
ImportCustomAlertRulesOutcome importCustomAlertRules(const Model::ImportCustomAlertRulesRequest &request)const;
|
||||||
void importCustomAlertRulesAsync(const Model::ImportCustomAlertRulesRequest& request, const ImportCustomAlertRulesAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
void importCustomAlertRulesAsync(const Model::ImportCustomAlertRulesRequest& request, const ImportCustomAlertRulesAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||||
ImportCustomAlertRulesOutcomeCallable importCustomAlertRulesCallable(const Model::ImportCustomAlertRulesRequest& request) const;
|
ImportCustomAlertRulesOutcomeCallable importCustomAlertRulesCallable(const Model::ImportCustomAlertRulesRequest& request) const;
|
||||||
|
ImportPrometheusRulesOutcome importPrometheusRules(const Model::ImportPrometheusRulesRequest &request)const;
|
||||||
|
void importPrometheusRulesAsync(const Model::ImportPrometheusRulesRequest& request, const ImportPrometheusRulesAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||||
|
ImportPrometheusRulesOutcomeCallable importPrometheusRulesCallable(const Model::ImportPrometheusRulesRequest& request) const;
|
||||||
ListClusterFromGrafanaOutcome listClusterFromGrafana(const Model::ListClusterFromGrafanaRequest &request)const;
|
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;
|
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;
|
ListClusterFromGrafanaOutcomeCallable listClusterFromGrafanaCallable(const Model::ListClusterFromGrafanaRequest& request) const;
|
||||||
@@ -431,6 +473,12 @@ namespace AlibabaCloud
|
|||||||
SearchTracesByPageOutcome searchTracesByPage(const Model::SearchTracesByPageRequest &request)const;
|
SearchTracesByPageOutcome searchTracesByPage(const Model::SearchTracesByPageRequest &request)const;
|
||||||
void searchTracesByPageAsync(const Model::SearchTracesByPageRequest& request, const SearchTracesByPageAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
void searchTracesByPageAsync(const Model::SearchTracesByPageRequest& request, const SearchTracesByPageAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||||
SearchTracesByPageOutcomeCallable searchTracesByPageCallable(const Model::SearchTracesByPageRequest& request) const;
|
SearchTracesByPageOutcomeCallable searchTracesByPageCallable(const Model::SearchTracesByPageRequest& request) const;
|
||||||
|
SendCustomIncidentsOutcome sendCustomIncidents(const Model::SendCustomIncidentsRequest &request)const;
|
||||||
|
void sendCustomIncidentsAsync(const Model::SendCustomIncidentsRequest& request, const SendCustomIncidentsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||||
|
SendCustomIncidentsOutcomeCallable sendCustomIncidentsCallable(const Model::SendCustomIncidentsRequest& request) const;
|
||||||
|
SendMseIncidentOutcome sendMseIncident(const Model::SendMseIncidentRequest &request)const;
|
||||||
|
void sendMseIncidentAsync(const Model::SendMseIncidentRequest& request, const SendMseIncidentAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||||
|
SendMseIncidentOutcomeCallable sendMseIncidentCallable(const Model::SendMseIncidentRequest& request) const;
|
||||||
SetRetcodeShareStatusOutcome setRetcodeShareStatus(const Model::SetRetcodeShareStatusRequest &request)const;
|
SetRetcodeShareStatusOutcome setRetcodeShareStatus(const Model::SetRetcodeShareStatusRequest &request)const;
|
||||||
void setRetcodeShareStatusAsync(const Model::SetRetcodeShareStatusRequest& request, const SetRetcodeShareStatusAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
void setRetcodeShareStatusAsync(const Model::SetRetcodeShareStatusRequest& request, const SetRetcodeShareStatusAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||||
SetRetcodeShareStatusOutcomeCallable setRetcodeShareStatusCallable(const Model::SetRetcodeShareStatusRequest& request) const;
|
SetRetcodeShareStatusOutcomeCallable setRetcodeShareStatusCallable(const Model::SetRetcodeShareStatusRequest& request) const;
|
||||||
|
|||||||
@@ -35,12 +35,12 @@ namespace AlibabaCloud
|
|||||||
CreateWehookRequest();
|
CreateWehookRequest();
|
||||||
~CreateWehookRequest();
|
~CreateWehookRequest();
|
||||||
|
|
||||||
std::string getHeaders()const;
|
std::string getHttpHeaders()const;
|
||||||
void setHeaders(const std::string& headers);
|
void setHttpHeaders(const std::string& httpHeaders);
|
||||||
std::string getMethod()const;
|
std::string getMethod()const;
|
||||||
void setMethod(const std::string& method);
|
void setMethod(const std::string& method);
|
||||||
std::string getParams()const;
|
std::string getHttpParams()const;
|
||||||
void setParams(const std::string& params);
|
void setHttpParams(const std::string& httpParams);
|
||||||
std::string getProxyUserId()const;
|
std::string getProxyUserId()const;
|
||||||
void setProxyUserId(const std::string& proxyUserId);
|
void setProxyUserId(const std::string& proxyUserId);
|
||||||
std::string getBody()const;
|
std::string getBody()const;
|
||||||
@@ -53,9 +53,9 @@ namespace AlibabaCloud
|
|||||||
void setRegionId(const std::string& regionId);
|
void setRegionId(const std::string& regionId);
|
||||||
|
|
||||||
private:
|
private:
|
||||||
std::string headers_;
|
std::string httpHeaders_;
|
||||||
std::string method_;
|
std::string method_;
|
||||||
std::string params_;
|
std::string httpParams_;
|
||||||
std::string proxyUserId_;
|
std::string proxyUserId_;
|
||||||
std::string body_;
|
std::string body_;
|
||||||
std::string url_;
|
std::string url_;
|
||||||
|
|||||||
@@ -14,35 +14,41 @@
|
|||||||
* limitations under the License.
|
* limitations under the License.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifndef ALIBABACLOUD_OPENANALYTICS_OPEN_MODEL_CREATESERVICELINKEDROLEREQUEST_H_
|
#ifndef ALIBABACLOUD_ARMS_MODEL_DESCRIBEDISPATCHRULEREQUEST_H_
|
||||||
#define ALIBABACLOUD_OPENANALYTICS_OPEN_MODEL_CREATESERVICELINKEDROLEREQUEST_H_
|
#define ALIBABACLOUD_ARMS_MODEL_DESCRIBEDISPATCHRULEREQUEST_H_
|
||||||
|
|
||||||
#include <string>
|
#include <string>
|
||||||
#include <vector>
|
#include <vector>
|
||||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||||
#include <alibabacloud/openanalytics-open/Openanalytics_openExport.h>
|
#include <alibabacloud/arms/ARMSExport.h>
|
||||||
|
|
||||||
namespace AlibabaCloud
|
namespace AlibabaCloud
|
||||||
{
|
{
|
||||||
namespace Openanalytics_open
|
namespace ARMS
|
||||||
{
|
{
|
||||||
namespace Model
|
namespace Model
|
||||||
{
|
{
|
||||||
class ALIBABACLOUD_OPENANALYTICS_OPEN_EXPORT CreateServiceLinkedRoleRequest : public RpcServiceRequest
|
class ALIBABACLOUD_ARMS_EXPORT DescribeDispatchRuleRequest : public RpcServiceRequest
|
||||||
{
|
{
|
||||||
|
|
||||||
public:
|
public:
|
||||||
CreateServiceLinkedRoleRequest();
|
DescribeDispatchRuleRequest();
|
||||||
~CreateServiceLinkedRoleRequest();
|
~DescribeDispatchRuleRequest();
|
||||||
|
|
||||||
std::string getRegionId()const;
|
std::string getRegionId()const;
|
||||||
void setRegionId(const std::string& regionId);
|
void setRegionId(const std::string& regionId);
|
||||||
|
std::string getId()const;
|
||||||
|
void setId(const std::string& id);
|
||||||
|
std::string getProxyUserId()const;
|
||||||
|
void setProxyUserId(const std::string& proxyUserId);
|
||||||
|
|
||||||
private:
|
private:
|
||||||
std::string regionId_;
|
std::string regionId_;
|
||||||
|
std::string id_;
|
||||||
|
std::string proxyUserId_;
|
||||||
|
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
#endif // !ALIBABACLOUD_OPENANALYTICS_OPEN_MODEL_CREATESERVICELINKEDROLEREQUEST_H_
|
#endif // !ALIBABACLOUD_ARMS_MODEL_DESCRIBEDISPATCHRULEREQUEST_H_
|
||||||
@@ -0,0 +1,92 @@
|
|||||||
|
/*
|
||||||
|
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||||
|
*
|
||||||
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
|
* you may not use this file except in compliance with the License.
|
||||||
|
* You may obtain a copy of the License at
|
||||||
|
*
|
||||||
|
* http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
*
|
||||||
|
* Unless required by applicable law or agreed to in writing, software
|
||||||
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
|
* WITHOUT 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_DESCRIBEDISPATCHRULERESULT_H_
|
||||||
|
#define ALIBABACLOUD_ARMS_MODEL_DESCRIBEDISPATCHRULERESULT_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 DescribeDispatchRuleResult : public ServiceResult
|
||||||
|
{
|
||||||
|
public:
|
||||||
|
struct DispatchRule
|
||||||
|
{
|
||||||
|
struct LabelMatchExpressionGrid
|
||||||
|
{
|
||||||
|
struct LabelMatchExpressionGroup
|
||||||
|
{
|
||||||
|
struct LabelMatchExpression
|
||||||
|
{
|
||||||
|
std::string value;
|
||||||
|
std::string _operator;
|
||||||
|
std::string key;
|
||||||
|
};
|
||||||
|
std::vector<LabelMatchExpressionGroup::LabelMatchExpression> labelMatchExpressions;
|
||||||
|
};
|
||||||
|
std::vector<LabelMatchExpressionGroup> labelMatchExpressionGroups;
|
||||||
|
};
|
||||||
|
struct GroupRule
|
||||||
|
{
|
||||||
|
long groupInterval;
|
||||||
|
std::vector<std::string> groupingFields;
|
||||||
|
long groupWaitTime;
|
||||||
|
long groupId;
|
||||||
|
};
|
||||||
|
struct NotifyRule
|
||||||
|
{
|
||||||
|
struct NotifyObject
|
||||||
|
{
|
||||||
|
std::string notifyType;
|
||||||
|
std::string notifyObjectId;
|
||||||
|
std::string name;
|
||||||
|
};
|
||||||
|
std::vector<std::string> notifyChannels;
|
||||||
|
std::vector<NotifyRule::NotifyObject> notifyObjects;
|
||||||
|
};
|
||||||
|
std::vector<GroupRule> groupRules;
|
||||||
|
std::string state;
|
||||||
|
long ruleId;
|
||||||
|
LabelMatchExpressionGrid labelMatchExpressionGrid;
|
||||||
|
std::vector<NotifyRule> notifyRules;
|
||||||
|
std::string name;
|
||||||
|
};
|
||||||
|
|
||||||
|
|
||||||
|
DescribeDispatchRuleResult();
|
||||||
|
explicit DescribeDispatchRuleResult(const std::string &payload);
|
||||||
|
~DescribeDispatchRuleResult();
|
||||||
|
DispatchRule getDispatchRule()const;
|
||||||
|
|
||||||
|
protected:
|
||||||
|
void parse(const std::string &payload);
|
||||||
|
private:
|
||||||
|
DispatchRule dispatchRule_;
|
||||||
|
|
||||||
|
};
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
#endif // !ALIBABACLOUD_ARMS_MODEL_DESCRIBEDISPATCHRULERESULT_H_
|
||||||
@@ -14,38 +14,44 @@
|
|||||||
* limitations under the License.
|
* limitations under the License.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifndef ALIBABACLOUD_OPENANALYTICS_OPEN_MODEL_DESCRIBEDATALAKEANALYTICSSERVICEREQUEST_H_
|
#ifndef ALIBABACLOUD_ARMS_MODEL_EXPORTPROMETHEUSRULESREQUEST_H_
|
||||||
#define ALIBABACLOUD_OPENANALYTICS_OPEN_MODEL_DESCRIBEDATALAKEANALYTICSSERVICEREQUEST_H_
|
#define ALIBABACLOUD_ARMS_MODEL_EXPORTPROMETHEUSRULESREQUEST_H_
|
||||||
|
|
||||||
#include <string>
|
#include <string>
|
||||||
#include <vector>
|
#include <vector>
|
||||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||||
#include <alibabacloud/openanalytics-open/Openanalytics_openExport.h>
|
#include <alibabacloud/arms/ARMSExport.h>
|
||||||
|
|
||||||
namespace AlibabaCloud
|
namespace AlibabaCloud
|
||||||
{
|
{
|
||||||
namespace Openanalytics_open
|
namespace ARMS
|
||||||
{
|
{
|
||||||
namespace Model
|
namespace Model
|
||||||
{
|
{
|
||||||
class ALIBABACLOUD_OPENANALYTICS_OPEN_EXPORT DescribeDataLakeAnalyticsServiceRequest : public RpcServiceRequest
|
class ALIBABACLOUD_ARMS_EXPORT ExportPrometheusRulesRequest : public RpcServiceRequest
|
||||||
{
|
{
|
||||||
|
|
||||||
public:
|
public:
|
||||||
DescribeDataLakeAnalyticsServiceRequest();
|
ExportPrometheusRulesRequest();
|
||||||
~DescribeDataLakeAnalyticsServiceRequest();
|
~ExportPrometheusRulesRequest();
|
||||||
|
|
||||||
std::string getRegionId()const;
|
std::string getRegionId()const;
|
||||||
void setRegionId(const std::string& regionId);
|
void setRegionId(const std::string& regionId);
|
||||||
std::string getInternetChargeType()const;
|
std::string get_NameSpace()const;
|
||||||
void setInternetChargeType(const std::string& internetChargeType);
|
void set_NameSpace(const std::string& _nameSpace);
|
||||||
|
std::string getName()const;
|
||||||
|
void setName(const std::string& name);
|
||||||
|
std::string getClusterId()const;
|
||||||
|
void setClusterId(const std::string& clusterId);
|
||||||
|
|
||||||
private:
|
private:
|
||||||
std::string regionId_;
|
std::string regionId_;
|
||||||
std::string internetChargeType_;
|
std::string _nameSpace_;
|
||||||
|
std::string name_;
|
||||||
|
std::string clusterId_;
|
||||||
|
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
#endif // !ALIBABACLOUD_OPENANALYTICS_OPEN_MODEL_DESCRIBEDATALAKEANALYTICSSERVICEREQUEST_H_
|
#endif // !ALIBABACLOUD_ARMS_MODEL_EXPORTPROMETHEUSRULESREQUEST_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_EXPORTPROMETHEUSRULESRESULT_H_
|
||||||
|
#define ALIBABACLOUD_ARMS_MODEL_EXPORTPROMETHEUSRULESRESULT_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 ExportPrometheusRulesResult : public ServiceResult
|
||||||
|
{
|
||||||
|
public:
|
||||||
|
|
||||||
|
|
||||||
|
ExportPrometheusRulesResult();
|
||||||
|
explicit ExportPrometheusRulesResult(const std::string &payload);
|
||||||
|
~ExportPrometheusRulesResult();
|
||||||
|
std::string getData()const;
|
||||||
|
|
||||||
|
protected:
|
||||||
|
void parse(const std::string &payload);
|
||||||
|
private:
|
||||||
|
std::string data_;
|
||||||
|
|
||||||
|
};
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
#endif // !ALIBABACLOUD_ARMS_MODEL_EXPORTPROMETHEUSRULESRESULT_H_
|
||||||
@@ -14,38 +14,41 @@
|
|||||||
* limitations under the License.
|
* limitations under the License.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifndef ALIBABACLOUD_OPENANALYTICS_OPEN_MODEL_DESCRIBECAPACITYREQUEST_H_
|
#ifndef ALIBABACLOUD_ARMS_MODEL_GETINTEGRATIONTOKENREQUEST_H_
|
||||||
#define ALIBABACLOUD_OPENANALYTICS_OPEN_MODEL_DESCRIBECAPACITYREQUEST_H_
|
#define ALIBABACLOUD_ARMS_MODEL_GETINTEGRATIONTOKENREQUEST_H_
|
||||||
|
|
||||||
#include <string>
|
#include <string>
|
||||||
#include <vector>
|
#include <vector>
|
||||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||||
#include <alibabacloud/openanalytics-open/Openanalytics_openExport.h>
|
#include <alibabacloud/arms/ARMSExport.h>
|
||||||
|
|
||||||
namespace AlibabaCloud
|
namespace AlibabaCloud
|
||||||
{
|
{
|
||||||
namespace Openanalytics_open
|
namespace ARMS
|
||||||
{
|
{
|
||||||
namespace Model
|
namespace Model
|
||||||
{
|
{
|
||||||
class ALIBABACLOUD_OPENANALYTICS_OPEN_EXPORT DescribeCapacityRequest : public RpcServiceRequest
|
class ALIBABACLOUD_ARMS_EXPORT GetIntegrationTokenRequest : public RpcServiceRequest
|
||||||
{
|
{
|
||||||
|
|
||||||
public:
|
public:
|
||||||
DescribeCapacityRequest();
|
GetIntegrationTokenRequest();
|
||||||
~DescribeCapacityRequest();
|
~GetIntegrationTokenRequest();
|
||||||
|
|
||||||
std::string getRegionId()const;
|
std::string getRegionId()const;
|
||||||
void setRegionId(const std::string& regionId);
|
void setRegionId(const std::string& regionId);
|
||||||
std::string getExternalBizAliyunId()const;
|
std::string getProxyUserId()const;
|
||||||
void setExternalBizAliyunId(const std::string& externalBizAliyunId);
|
void setProxyUserId(const std::string& proxyUserId);
|
||||||
|
std::string getProductType()const;
|
||||||
|
void setProductType(const std::string& productType);
|
||||||
|
|
||||||
private:
|
private:
|
||||||
std::string regionId_;
|
std::string regionId_;
|
||||||
std::string externalBizAliyunId_;
|
std::string proxyUserId_;
|
||||||
|
std::string productType_;
|
||||||
|
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
#endif // !ALIBABACLOUD_OPENANALYTICS_OPEN_MODEL_DESCRIBECAPACITYREQUEST_H_
|
#endif // !ALIBABACLOUD_ARMS_MODEL_GETINTEGRATIONTOKENREQUEST_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_GETINTEGRATIONTOKENRESULT_H_
|
||||||
|
#define ALIBABACLOUD_ARMS_MODEL_GETINTEGRATIONTOKENRESULT_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 GetIntegrationTokenResult : public ServiceResult
|
||||||
|
{
|
||||||
|
public:
|
||||||
|
|
||||||
|
|
||||||
|
GetIntegrationTokenResult();
|
||||||
|
explicit GetIntegrationTokenResult(const std::string &payload);
|
||||||
|
~GetIntegrationTokenResult();
|
||||||
|
std::string getToken()const;
|
||||||
|
|
||||||
|
protected:
|
||||||
|
void parse(const std::string &payload);
|
||||||
|
private:
|
||||||
|
std::string token_;
|
||||||
|
|
||||||
|
};
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
#endif // !ALIBABACLOUD_ARMS_MODEL_GETINTEGRATIONTOKENRESULT_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_IMPORTPROMETHEUSRULESREQUEST_H_
|
||||||
|
#define ALIBABACLOUD_ARMS_MODEL_IMPORTPROMETHEUSRULESREQUEST_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 ImportPrometheusRulesRequest : public RpcServiceRequest
|
||||||
|
{
|
||||||
|
|
||||||
|
public:
|
||||||
|
ImportPrometheusRulesRequest();
|
||||||
|
~ImportPrometheusRulesRequest();
|
||||||
|
|
||||||
|
std::string getRegionId()const;
|
||||||
|
void setRegionId(const std::string& regionId);
|
||||||
|
std::string get_NameSpace()const;
|
||||||
|
void set_NameSpace(const std::string& _nameSpace);
|
||||||
|
std::string getName()const;
|
||||||
|
void setName(const std::string& name);
|
||||||
|
std::string getClusterId()const;
|
||||||
|
void setClusterId(const std::string& clusterId);
|
||||||
|
std::string getContent()const;
|
||||||
|
void setContent(const std::string& content);
|
||||||
|
|
||||||
|
private:
|
||||||
|
std::string regionId_;
|
||||||
|
std::string _nameSpace_;
|
||||||
|
std::string name_;
|
||||||
|
std::string clusterId_;
|
||||||
|
std::string content_;
|
||||||
|
|
||||||
|
};
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
#endif // !ALIBABACLOUD_ARMS_MODEL_IMPORTPROMETHEUSRULESREQUEST_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_IMPORTPROMETHEUSRULESRESULT_H_
|
||||||
|
#define ALIBABACLOUD_ARMS_MODEL_IMPORTPROMETHEUSRULESRESULT_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 ImportPrometheusRulesResult : public ServiceResult
|
||||||
|
{
|
||||||
|
public:
|
||||||
|
|
||||||
|
|
||||||
|
ImportPrometheusRulesResult();
|
||||||
|
explicit ImportPrometheusRulesResult(const std::string &payload);
|
||||||
|
~ImportPrometheusRulesResult();
|
||||||
|
std::string getData()const;
|
||||||
|
|
||||||
|
protected:
|
||||||
|
void parse(const std::string &payload);
|
||||||
|
private:
|
||||||
|
std::string data_;
|
||||||
|
|
||||||
|
};
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
#endif // !ALIBABACLOUD_ARMS_MODEL_IMPORTPROMETHEUSRULESRESULT_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_ARMS_MODEL_SENDCUSTOMINCIDENTSREQUEST_H_
|
||||||
|
#define ALIBABACLOUD_ARMS_MODEL_SENDCUSTOMINCIDENTSREQUEST_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 SendCustomIncidentsRequest : public RpcServiceRequest
|
||||||
|
{
|
||||||
|
|
||||||
|
public:
|
||||||
|
SendCustomIncidentsRequest();
|
||||||
|
~SendCustomIncidentsRequest();
|
||||||
|
|
||||||
|
std::string getRegionId()const;
|
||||||
|
void setRegionId(const std::string& regionId);
|
||||||
|
std::string getIncidents()const;
|
||||||
|
void setIncidents(const std::string& incidents);
|
||||||
|
std::string getProxyUserId()const;
|
||||||
|
void setProxyUserId(const std::string& proxyUserId);
|
||||||
|
std::string getProductType()const;
|
||||||
|
void setProductType(const std::string& productType);
|
||||||
|
|
||||||
|
private:
|
||||||
|
std::string regionId_;
|
||||||
|
std::string incidents_;
|
||||||
|
std::string proxyUserId_;
|
||||||
|
std::string productType_;
|
||||||
|
|
||||||
|
};
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
#endif // !ALIBABACLOUD_ARMS_MODEL_SENDCUSTOMINCIDENTSREQUEST_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_SENDCUSTOMINCIDENTSRESULT_H_
|
||||||
|
#define ALIBABACLOUD_ARMS_MODEL_SENDCUSTOMINCIDENTSRESULT_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 SendCustomIncidentsResult : public ServiceResult
|
||||||
|
{
|
||||||
|
public:
|
||||||
|
|
||||||
|
|
||||||
|
SendCustomIncidentsResult();
|
||||||
|
explicit SendCustomIncidentsResult(const std::string &payload);
|
||||||
|
~SendCustomIncidentsResult();
|
||||||
|
bool getSuccess()const;
|
||||||
|
|
||||||
|
protected:
|
||||||
|
void parse(const std::string &payload);
|
||||||
|
private:
|
||||||
|
bool success_;
|
||||||
|
|
||||||
|
};
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
#endif // !ALIBABACLOUD_ARMS_MODEL_SENDCUSTOMINCIDENTSRESULT_H_
|
||||||
@@ -14,35 +14,41 @@
|
|||||||
* limitations under the License.
|
* limitations under the License.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifndef ALIBABACLOUD_OPENANALYTICS_OPEN_MODEL_GETCONSOLEPERMISSIONREQUEST_H_
|
#ifndef ALIBABACLOUD_ARMS_MODEL_SENDMSEINCIDENTREQUEST_H_
|
||||||
#define ALIBABACLOUD_OPENANALYTICS_OPEN_MODEL_GETCONSOLEPERMISSIONREQUEST_H_
|
#define ALIBABACLOUD_ARMS_MODEL_SENDMSEINCIDENTREQUEST_H_
|
||||||
|
|
||||||
#include <string>
|
#include <string>
|
||||||
#include <vector>
|
#include <vector>
|
||||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||||
#include <alibabacloud/openanalytics-open/Openanalytics_openExport.h>
|
#include <alibabacloud/arms/ARMSExport.h>
|
||||||
|
|
||||||
namespace AlibabaCloud
|
namespace AlibabaCloud
|
||||||
{
|
{
|
||||||
namespace Openanalytics_open
|
namespace ARMS
|
||||||
{
|
{
|
||||||
namespace Model
|
namespace Model
|
||||||
{
|
{
|
||||||
class ALIBABACLOUD_OPENANALYTICS_OPEN_EXPORT GetConsolePermissionRequest : public RpcServiceRequest
|
class ALIBABACLOUD_ARMS_EXPORT SendMseIncidentRequest : public RpcServiceRequest
|
||||||
{
|
{
|
||||||
|
|
||||||
public:
|
public:
|
||||||
GetConsolePermissionRequest();
|
SendMseIncidentRequest();
|
||||||
~GetConsolePermissionRequest();
|
~SendMseIncidentRequest();
|
||||||
|
|
||||||
std::string getRegionId()const;
|
std::string getRegionId()const;
|
||||||
void setRegionId(const std::string& regionId);
|
void setRegionId(const std::string& regionId);
|
||||||
|
std::string getIncidents()const;
|
||||||
|
void setIncidents(const std::string& incidents);
|
||||||
|
std::string getProxyUserId()const;
|
||||||
|
void setProxyUserId(const std::string& proxyUserId);
|
||||||
|
|
||||||
private:
|
private:
|
||||||
std::string regionId_;
|
std::string regionId_;
|
||||||
|
std::string incidents_;
|
||||||
|
std::string proxyUserId_;
|
||||||
|
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
#endif // !ALIBABACLOUD_OPENANALYTICS_OPEN_MODEL_GETCONSOLEPERMISSIONREQUEST_H_
|
#endif // !ALIBABACLOUD_ARMS_MODEL_SENDMSEINCIDENTREQUEST_H_
|
||||||
@@ -14,36 +14,38 @@
|
|||||||
* limitations under the License.
|
* limitations under the License.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifndef ALIBABACLOUD_VOICENAVIGATOR_MODEL_MOVECATEGORYRESULT_H_
|
#ifndef ALIBABACLOUD_ARMS_MODEL_SENDMSEINCIDENTRESULT_H_
|
||||||
#define ALIBABACLOUD_VOICENAVIGATOR_MODEL_MOVECATEGORYRESULT_H_
|
#define ALIBABACLOUD_ARMS_MODEL_SENDMSEINCIDENTRESULT_H_
|
||||||
|
|
||||||
#include <string>
|
#include <string>
|
||||||
#include <vector>
|
#include <vector>
|
||||||
#include <utility>
|
#include <utility>
|
||||||
#include <alibabacloud/core/ServiceResult.h>
|
#include <alibabacloud/core/ServiceResult.h>
|
||||||
#include <alibabacloud/voicenavigator/VoiceNavigatorExport.h>
|
#include <alibabacloud/arms/ARMSExport.h>
|
||||||
|
|
||||||
namespace AlibabaCloud
|
namespace AlibabaCloud
|
||||||
{
|
{
|
||||||
namespace VoiceNavigator
|
namespace ARMS
|
||||||
{
|
{
|
||||||
namespace Model
|
namespace Model
|
||||||
{
|
{
|
||||||
class ALIBABACLOUD_VOICENAVIGATOR_EXPORT MoveCategoryResult : public ServiceResult
|
class ALIBABACLOUD_ARMS_EXPORT SendMseIncidentResult : public ServiceResult
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
|
|
||||||
|
|
||||||
MoveCategoryResult();
|
SendMseIncidentResult();
|
||||||
explicit MoveCategoryResult(const std::string &payload);
|
explicit SendMseIncidentResult(const std::string &payload);
|
||||||
~MoveCategoryResult();
|
~SendMseIncidentResult();
|
||||||
|
bool getSuccess()const;
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
void parse(const std::string &payload);
|
void parse(const std::string &payload);
|
||||||
private:
|
private:
|
||||||
|
bool success_;
|
||||||
|
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
#endif // !ALIBABACLOUD_VOICENAVIGATOR_MODEL_MOVECATEGORYRESULT_H_
|
#endif // !ALIBABACLOUD_ARMS_MODEL_SENDMSEINCIDENTRESULT_H_
|
||||||
@@ -35,14 +35,14 @@ namespace AlibabaCloud
|
|||||||
UpdateWebhookRequest();
|
UpdateWebhookRequest();
|
||||||
~UpdateWebhookRequest();
|
~UpdateWebhookRequest();
|
||||||
|
|
||||||
std::string getHeaders()const;
|
std::string getHttpHeaders()const;
|
||||||
void setHeaders(const std::string& headers);
|
void setHttpHeaders(const std::string& httpHeaders);
|
||||||
std::string getMethod()const;
|
std::string getMethod()const;
|
||||||
void setMethod(const std::string& method);
|
void setMethod(const std::string& method);
|
||||||
long getContactId()const;
|
long getContactId()const;
|
||||||
void setContactId(long contactId);
|
void setContactId(long contactId);
|
||||||
std::string getParams()const;
|
std::string getHttpParams()const;
|
||||||
void setParams(const std::string& params);
|
void setHttpParams(const std::string& httpParams);
|
||||||
std::string getProxyUserId()const;
|
std::string getProxyUserId()const;
|
||||||
void setProxyUserId(const std::string& proxyUserId);
|
void setProxyUserId(const std::string& proxyUserId);
|
||||||
std::string getBody()const;
|
std::string getBody()const;
|
||||||
@@ -55,10 +55,10 @@ namespace AlibabaCloud
|
|||||||
void setRegionId(const std::string& regionId);
|
void setRegionId(const std::string& regionId);
|
||||||
|
|
||||||
private:
|
private:
|
||||||
std::string headers_;
|
std::string httpHeaders_;
|
||||||
std::string method_;
|
std::string method_;
|
||||||
long contactId_;
|
long contactId_;
|
||||||
std::string params_;
|
std::string httpParams_;
|
||||||
std::string proxyUserId_;
|
std::string proxyUserId_;
|
||||||
std::string body_;
|
std::string body_;
|
||||||
std::string url_;
|
std::string url_;
|
||||||
|
|||||||
@@ -555,6 +555,42 @@ ARMSClient::DeleteTraceAppOutcomeCallable ARMSClient::deleteTraceAppCallable(con
|
|||||||
return task->get_future();
|
return task->get_future();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
ARMSClient::DescribeDispatchRuleOutcome ARMSClient::describeDispatchRule(const DescribeDispatchRuleRequest &request) const
|
||||||
|
{
|
||||||
|
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||||
|
if (!endpointOutcome.isSuccess())
|
||||||
|
return DescribeDispatchRuleOutcome(endpointOutcome.error());
|
||||||
|
|
||||||
|
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||||
|
|
||||||
|
if (outcome.isSuccess())
|
||||||
|
return DescribeDispatchRuleOutcome(DescribeDispatchRuleResult(outcome.result()));
|
||||||
|
else
|
||||||
|
return DescribeDispatchRuleOutcome(outcome.error());
|
||||||
|
}
|
||||||
|
|
||||||
|
void ARMSClient::describeDispatchRuleAsync(const DescribeDispatchRuleRequest& request, const DescribeDispatchRuleAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||||
|
{
|
||||||
|
auto fn = [this, request, handler, context]()
|
||||||
|
{
|
||||||
|
handler(this, request, describeDispatchRule(request), context);
|
||||||
|
};
|
||||||
|
|
||||||
|
asyncExecute(new Runnable(fn));
|
||||||
|
}
|
||||||
|
|
||||||
|
ARMSClient::DescribeDispatchRuleOutcomeCallable ARMSClient::describeDispatchRuleCallable(const DescribeDispatchRuleRequest &request) const
|
||||||
|
{
|
||||||
|
auto task = std::make_shared<std::packaged_task<DescribeDispatchRuleOutcome()>>(
|
||||||
|
[this, request]()
|
||||||
|
{
|
||||||
|
return this->describeDispatchRule(request);
|
||||||
|
});
|
||||||
|
|
||||||
|
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||||
|
return task->get_future();
|
||||||
|
}
|
||||||
|
|
||||||
ARMSClient::DescribeTraceLicenseKeyOutcome ARMSClient::describeTraceLicenseKey(const DescribeTraceLicenseKeyRequest &request) const
|
ARMSClient::DescribeTraceLicenseKeyOutcome ARMSClient::describeTraceLicenseKey(const DescribeTraceLicenseKeyRequest &request) const
|
||||||
{
|
{
|
||||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||||
@@ -627,6 +663,42 @@ ARMSClient::DescribeTraceLocationOutcomeCallable ARMSClient::describeTraceLocati
|
|||||||
return task->get_future();
|
return task->get_future();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
ARMSClient::ExportPrometheusRulesOutcome ARMSClient::exportPrometheusRules(const ExportPrometheusRulesRequest &request) const
|
||||||
|
{
|
||||||
|
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||||
|
if (!endpointOutcome.isSuccess())
|
||||||
|
return ExportPrometheusRulesOutcome(endpointOutcome.error());
|
||||||
|
|
||||||
|
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||||
|
|
||||||
|
if (outcome.isSuccess())
|
||||||
|
return ExportPrometheusRulesOutcome(ExportPrometheusRulesResult(outcome.result()));
|
||||||
|
else
|
||||||
|
return ExportPrometheusRulesOutcome(outcome.error());
|
||||||
|
}
|
||||||
|
|
||||||
|
void ARMSClient::exportPrometheusRulesAsync(const ExportPrometheusRulesRequest& request, const ExportPrometheusRulesAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||||
|
{
|
||||||
|
auto fn = [this, request, handler, context]()
|
||||||
|
{
|
||||||
|
handler(this, request, exportPrometheusRules(request), context);
|
||||||
|
};
|
||||||
|
|
||||||
|
asyncExecute(new Runnable(fn));
|
||||||
|
}
|
||||||
|
|
||||||
|
ARMSClient::ExportPrometheusRulesOutcomeCallable ARMSClient::exportPrometheusRulesCallable(const ExportPrometheusRulesRequest &request) const
|
||||||
|
{
|
||||||
|
auto task = std::make_shared<std::packaged_task<ExportPrometheusRulesOutcome()>>(
|
||||||
|
[this, request]()
|
||||||
|
{
|
||||||
|
return this->exportPrometheusRules(request);
|
||||||
|
});
|
||||||
|
|
||||||
|
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||||
|
return task->get_future();
|
||||||
|
}
|
||||||
|
|
||||||
ARMSClient::GetAppApiByPageOutcome ARMSClient::getAppApiByPage(const GetAppApiByPageRequest &request) const
|
ARMSClient::GetAppApiByPageOutcome ARMSClient::getAppApiByPage(const GetAppApiByPageRequest &request) const
|
||||||
{
|
{
|
||||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||||
@@ -699,6 +771,42 @@ ARMSClient::GetConsistencySnapshotOutcomeCallable ARMSClient::getConsistencySnap
|
|||||||
return task->get_future();
|
return task->get_future();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
ARMSClient::GetIntegrationTokenOutcome ARMSClient::getIntegrationToken(const GetIntegrationTokenRequest &request) const
|
||||||
|
{
|
||||||
|
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||||
|
if (!endpointOutcome.isSuccess())
|
||||||
|
return GetIntegrationTokenOutcome(endpointOutcome.error());
|
||||||
|
|
||||||
|
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||||
|
|
||||||
|
if (outcome.isSuccess())
|
||||||
|
return GetIntegrationTokenOutcome(GetIntegrationTokenResult(outcome.result()));
|
||||||
|
else
|
||||||
|
return GetIntegrationTokenOutcome(outcome.error());
|
||||||
|
}
|
||||||
|
|
||||||
|
void ARMSClient::getIntegrationTokenAsync(const GetIntegrationTokenRequest& request, const GetIntegrationTokenAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||||
|
{
|
||||||
|
auto fn = [this, request, handler, context]()
|
||||||
|
{
|
||||||
|
handler(this, request, getIntegrationToken(request), context);
|
||||||
|
};
|
||||||
|
|
||||||
|
asyncExecute(new Runnable(fn));
|
||||||
|
}
|
||||||
|
|
||||||
|
ARMSClient::GetIntegrationTokenOutcomeCallable ARMSClient::getIntegrationTokenCallable(const GetIntegrationTokenRequest &request) const
|
||||||
|
{
|
||||||
|
auto task = std::make_shared<std::packaged_task<GetIntegrationTokenOutcome()>>(
|
||||||
|
[this, request]()
|
||||||
|
{
|
||||||
|
return this->getIntegrationToken(request);
|
||||||
|
});
|
||||||
|
|
||||||
|
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||||
|
return task->get_future();
|
||||||
|
}
|
||||||
|
|
||||||
ARMSClient::GetMultipleTraceOutcome ARMSClient::getMultipleTrace(const GetMultipleTraceRequest &request) const
|
ARMSClient::GetMultipleTraceOutcome ARMSClient::getMultipleTrace(const GetMultipleTraceRequest &request) const
|
||||||
{
|
{
|
||||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||||
@@ -987,6 +1095,42 @@ ARMSClient::ImportCustomAlertRulesOutcomeCallable ARMSClient::importCustomAlertR
|
|||||||
return task->get_future();
|
return task->get_future();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
ARMSClient::ImportPrometheusRulesOutcome ARMSClient::importPrometheusRules(const ImportPrometheusRulesRequest &request) const
|
||||||
|
{
|
||||||
|
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||||
|
if (!endpointOutcome.isSuccess())
|
||||||
|
return ImportPrometheusRulesOutcome(endpointOutcome.error());
|
||||||
|
|
||||||
|
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||||
|
|
||||||
|
if (outcome.isSuccess())
|
||||||
|
return ImportPrometheusRulesOutcome(ImportPrometheusRulesResult(outcome.result()));
|
||||||
|
else
|
||||||
|
return ImportPrometheusRulesOutcome(outcome.error());
|
||||||
|
}
|
||||||
|
|
||||||
|
void ARMSClient::importPrometheusRulesAsync(const ImportPrometheusRulesRequest& request, const ImportPrometheusRulesAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||||
|
{
|
||||||
|
auto fn = [this, request, handler, context]()
|
||||||
|
{
|
||||||
|
handler(this, request, importPrometheusRules(request), context);
|
||||||
|
};
|
||||||
|
|
||||||
|
asyncExecute(new Runnable(fn));
|
||||||
|
}
|
||||||
|
|
||||||
|
ARMSClient::ImportPrometheusRulesOutcomeCallable ARMSClient::importPrometheusRulesCallable(const ImportPrometheusRulesRequest &request) const
|
||||||
|
{
|
||||||
|
auto task = std::make_shared<std::packaged_task<ImportPrometheusRulesOutcome()>>(
|
||||||
|
[this, request]()
|
||||||
|
{
|
||||||
|
return this->importPrometheusRules(request);
|
||||||
|
});
|
||||||
|
|
||||||
|
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||||
|
return task->get_future();
|
||||||
|
}
|
||||||
|
|
||||||
ARMSClient::ListClusterFromGrafanaOutcome ARMSClient::listClusterFromGrafana(const ListClusterFromGrafanaRequest &request) const
|
ARMSClient::ListClusterFromGrafanaOutcome ARMSClient::listClusterFromGrafana(const ListClusterFromGrafanaRequest &request) const
|
||||||
{
|
{
|
||||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||||
@@ -1671,6 +1815,78 @@ ARMSClient::SearchTracesByPageOutcomeCallable ARMSClient::searchTracesByPageCall
|
|||||||
return task->get_future();
|
return task->get_future();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
ARMSClient::SendCustomIncidentsOutcome ARMSClient::sendCustomIncidents(const SendCustomIncidentsRequest &request) const
|
||||||
|
{
|
||||||
|
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||||
|
if (!endpointOutcome.isSuccess())
|
||||||
|
return SendCustomIncidentsOutcome(endpointOutcome.error());
|
||||||
|
|
||||||
|
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||||
|
|
||||||
|
if (outcome.isSuccess())
|
||||||
|
return SendCustomIncidentsOutcome(SendCustomIncidentsResult(outcome.result()));
|
||||||
|
else
|
||||||
|
return SendCustomIncidentsOutcome(outcome.error());
|
||||||
|
}
|
||||||
|
|
||||||
|
void ARMSClient::sendCustomIncidentsAsync(const SendCustomIncidentsRequest& request, const SendCustomIncidentsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||||
|
{
|
||||||
|
auto fn = [this, request, handler, context]()
|
||||||
|
{
|
||||||
|
handler(this, request, sendCustomIncidents(request), context);
|
||||||
|
};
|
||||||
|
|
||||||
|
asyncExecute(new Runnable(fn));
|
||||||
|
}
|
||||||
|
|
||||||
|
ARMSClient::SendCustomIncidentsOutcomeCallable ARMSClient::sendCustomIncidentsCallable(const SendCustomIncidentsRequest &request) const
|
||||||
|
{
|
||||||
|
auto task = std::make_shared<std::packaged_task<SendCustomIncidentsOutcome()>>(
|
||||||
|
[this, request]()
|
||||||
|
{
|
||||||
|
return this->sendCustomIncidents(request);
|
||||||
|
});
|
||||||
|
|
||||||
|
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||||
|
return task->get_future();
|
||||||
|
}
|
||||||
|
|
||||||
|
ARMSClient::SendMseIncidentOutcome ARMSClient::sendMseIncident(const SendMseIncidentRequest &request) const
|
||||||
|
{
|
||||||
|
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||||
|
if (!endpointOutcome.isSuccess())
|
||||||
|
return SendMseIncidentOutcome(endpointOutcome.error());
|
||||||
|
|
||||||
|
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||||
|
|
||||||
|
if (outcome.isSuccess())
|
||||||
|
return SendMseIncidentOutcome(SendMseIncidentResult(outcome.result()));
|
||||||
|
else
|
||||||
|
return SendMseIncidentOutcome(outcome.error());
|
||||||
|
}
|
||||||
|
|
||||||
|
void ARMSClient::sendMseIncidentAsync(const SendMseIncidentRequest& request, const SendMseIncidentAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||||
|
{
|
||||||
|
auto fn = [this, request, handler, context]()
|
||||||
|
{
|
||||||
|
handler(this, request, sendMseIncident(request), context);
|
||||||
|
};
|
||||||
|
|
||||||
|
asyncExecute(new Runnable(fn));
|
||||||
|
}
|
||||||
|
|
||||||
|
ARMSClient::SendMseIncidentOutcomeCallable ARMSClient::sendMseIncidentCallable(const SendMseIncidentRequest &request) const
|
||||||
|
{
|
||||||
|
auto task = std::make_shared<std::packaged_task<SendMseIncidentOutcome()>>(
|
||||||
|
[this, request]()
|
||||||
|
{
|
||||||
|
return this->sendMseIncident(request);
|
||||||
|
});
|
||||||
|
|
||||||
|
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||||
|
return task->get_future();
|
||||||
|
}
|
||||||
|
|
||||||
ARMSClient::SetRetcodeShareStatusOutcome ARMSClient::setRetcodeShareStatus(const SetRetcodeShareStatusRequest &request) const
|
ARMSClient::SetRetcodeShareStatusOutcome ARMSClient::setRetcodeShareStatus(const SetRetcodeShareStatusRequest &request) const
|
||||||
{
|
{
|
||||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||||
|
|||||||
@@ -27,15 +27,15 @@ CreateWehookRequest::CreateWehookRequest() :
|
|||||||
CreateWehookRequest::~CreateWehookRequest()
|
CreateWehookRequest::~CreateWehookRequest()
|
||||||
{}
|
{}
|
||||||
|
|
||||||
std::string CreateWehookRequest::getHeaders()const
|
std::string CreateWehookRequest::getHttpHeaders()const
|
||||||
{
|
{
|
||||||
return headers_;
|
return httpHeaders_;
|
||||||
}
|
}
|
||||||
|
|
||||||
void CreateWehookRequest::setHeaders(const std::string& headers)
|
void CreateWehookRequest::setHttpHeaders(const std::string& httpHeaders)
|
||||||
{
|
{
|
||||||
headers_ = headers;
|
httpHeaders_ = httpHeaders;
|
||||||
setParameter("Headers", headers);
|
setParameter("HttpHeaders", httpHeaders);
|
||||||
}
|
}
|
||||||
|
|
||||||
std::string CreateWehookRequest::getMethod()const
|
std::string CreateWehookRequest::getMethod()const
|
||||||
@@ -49,15 +49,15 @@ void CreateWehookRequest::setMethod(const std::string& method)
|
|||||||
setParameter("Method", method);
|
setParameter("Method", method);
|
||||||
}
|
}
|
||||||
|
|
||||||
std::string CreateWehookRequest::getParams()const
|
std::string CreateWehookRequest::getHttpParams()const
|
||||||
{
|
{
|
||||||
return params_;
|
return httpParams_;
|
||||||
}
|
}
|
||||||
|
|
||||||
void CreateWehookRequest::setParams(const std::string& params)
|
void CreateWehookRequest::setHttpParams(const std::string& httpParams)
|
||||||
{
|
{
|
||||||
params_ = params;
|
httpParams_ = httpParams;
|
||||||
setParameter("Params", params);
|
setParameter("HttpParams", httpParams);
|
||||||
}
|
}
|
||||||
|
|
||||||
std::string CreateWehookRequest::getProxyUserId()const
|
std::string CreateWehookRequest::getProxyUserId()const
|
||||||
|
|||||||
62
arms/src/model/DescribeDispatchRuleRequest.cc
Normal file
62
arms/src/model/DescribeDispatchRuleRequest.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/DescribeDispatchRuleRequest.h>
|
||||||
|
|
||||||
|
using AlibabaCloud::ARMS::Model::DescribeDispatchRuleRequest;
|
||||||
|
|
||||||
|
DescribeDispatchRuleRequest::DescribeDispatchRuleRequest() :
|
||||||
|
RpcServiceRequest("arms", "2019-08-08", "DescribeDispatchRule")
|
||||||
|
{
|
||||||
|
setMethod(HttpRequest::Method::Post);
|
||||||
|
}
|
||||||
|
|
||||||
|
DescribeDispatchRuleRequest::~DescribeDispatchRuleRequest()
|
||||||
|
{}
|
||||||
|
|
||||||
|
std::string DescribeDispatchRuleRequest::getRegionId()const
|
||||||
|
{
|
||||||
|
return regionId_;
|
||||||
|
}
|
||||||
|
|
||||||
|
void DescribeDispatchRuleRequest::setRegionId(const std::string& regionId)
|
||||||
|
{
|
||||||
|
regionId_ = regionId;
|
||||||
|
setParameter("RegionId", regionId);
|
||||||
|
}
|
||||||
|
|
||||||
|
std::string DescribeDispatchRuleRequest::getId()const
|
||||||
|
{
|
||||||
|
return id_;
|
||||||
|
}
|
||||||
|
|
||||||
|
void DescribeDispatchRuleRequest::setId(const std::string& id)
|
||||||
|
{
|
||||||
|
id_ = id;
|
||||||
|
setParameter("Id", id);
|
||||||
|
}
|
||||||
|
|
||||||
|
std::string DescribeDispatchRuleRequest::getProxyUserId()const
|
||||||
|
{
|
||||||
|
return proxyUserId_;
|
||||||
|
}
|
||||||
|
|
||||||
|
void DescribeDispatchRuleRequest::setProxyUserId(const std::string& proxyUserId)
|
||||||
|
{
|
||||||
|
proxyUserId_ = proxyUserId;
|
||||||
|
setParameter("ProxyUserId", proxyUserId);
|
||||||
|
}
|
||||||
|
|
||||||
111
arms/src/model/DescribeDispatchRuleResult.cc
Normal file
111
arms/src/model/DescribeDispatchRuleResult.cc
Normal file
@@ -0,0 +1,111 @@
|
|||||||
|
/*
|
||||||
|
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||||
|
*
|
||||||
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
|
* you may not use this file except in compliance with the License.
|
||||||
|
* You may obtain a copy of the License at
|
||||||
|
*
|
||||||
|
* http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
*
|
||||||
|
* Unless required by applicable law or agreed to in writing, software
|
||||||
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
|
* WITHOUT 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/DescribeDispatchRuleResult.h>
|
||||||
|
#include <json/json.h>
|
||||||
|
|
||||||
|
using namespace AlibabaCloud::ARMS;
|
||||||
|
using namespace AlibabaCloud::ARMS::Model;
|
||||||
|
|
||||||
|
DescribeDispatchRuleResult::DescribeDispatchRuleResult() :
|
||||||
|
ServiceResult()
|
||||||
|
{}
|
||||||
|
|
||||||
|
DescribeDispatchRuleResult::DescribeDispatchRuleResult(const std::string &payload) :
|
||||||
|
ServiceResult()
|
||||||
|
{
|
||||||
|
parse(payload);
|
||||||
|
}
|
||||||
|
|
||||||
|
DescribeDispatchRuleResult::~DescribeDispatchRuleResult()
|
||||||
|
{}
|
||||||
|
|
||||||
|
void DescribeDispatchRuleResult::parse(const std::string &payload)
|
||||||
|
{
|
||||||
|
Json::Reader reader;
|
||||||
|
Json::Value value;
|
||||||
|
reader.parse(payload, value);
|
||||||
|
setRequestId(value["RequestId"].asString());
|
||||||
|
auto dispatchRuleNode = value["DispatchRule"];
|
||||||
|
if(!dispatchRuleNode["RuleId"].isNull())
|
||||||
|
dispatchRule_.ruleId = std::stol(dispatchRuleNode["RuleId"].asString());
|
||||||
|
if(!dispatchRuleNode["Name"].isNull())
|
||||||
|
dispatchRule_.name = dispatchRuleNode["Name"].asString();
|
||||||
|
if(!dispatchRuleNode["State"].isNull())
|
||||||
|
dispatchRule_.state = dispatchRuleNode["State"].asString();
|
||||||
|
auto allGroupRulesNode = dispatchRuleNode["GroupRules"]["GroupRule"];
|
||||||
|
for (auto dispatchRuleNodeGroupRulesGroupRule : allGroupRulesNode)
|
||||||
|
{
|
||||||
|
DispatchRule::GroupRule groupRuleObject;
|
||||||
|
if(!dispatchRuleNodeGroupRulesGroupRule["GroupId"].isNull())
|
||||||
|
groupRuleObject.groupId = std::stol(dispatchRuleNodeGroupRulesGroupRule["GroupId"].asString());
|
||||||
|
if(!dispatchRuleNodeGroupRulesGroupRule["GroupWaitTime"].isNull())
|
||||||
|
groupRuleObject.groupWaitTime = std::stol(dispatchRuleNodeGroupRulesGroupRule["GroupWaitTime"].asString());
|
||||||
|
if(!dispatchRuleNodeGroupRulesGroupRule["GroupInterval"].isNull())
|
||||||
|
groupRuleObject.groupInterval = std::stol(dispatchRuleNodeGroupRulesGroupRule["GroupInterval"].asString());
|
||||||
|
auto allGroupingFields = value["GroupingFields"]["GroupingField"];
|
||||||
|
for (auto value : allGroupingFields)
|
||||||
|
groupRuleObject.groupingFields.push_back(value.asString());
|
||||||
|
dispatchRule_.groupRules.push_back(groupRuleObject);
|
||||||
|
}
|
||||||
|
auto allNotifyRulesNode = dispatchRuleNode["NotifyRules"]["NotifyRule"];
|
||||||
|
for (auto dispatchRuleNodeNotifyRulesNotifyRule : allNotifyRulesNode)
|
||||||
|
{
|
||||||
|
DispatchRule::NotifyRule notifyRuleObject;
|
||||||
|
auto allNotifyObjectsNode = dispatchRuleNodeNotifyRulesNotifyRule["NotifyObjects"]["NotifyObject"];
|
||||||
|
for (auto dispatchRuleNodeNotifyRulesNotifyRuleNotifyObjectsNotifyObject : allNotifyObjectsNode)
|
||||||
|
{
|
||||||
|
DispatchRule::NotifyRule::NotifyObject notifyObjectsObject;
|
||||||
|
if(!dispatchRuleNodeNotifyRulesNotifyRuleNotifyObjectsNotifyObject["NotifyType"].isNull())
|
||||||
|
notifyObjectsObject.notifyType = dispatchRuleNodeNotifyRulesNotifyRuleNotifyObjectsNotifyObject["NotifyType"].asString();
|
||||||
|
if(!dispatchRuleNodeNotifyRulesNotifyRuleNotifyObjectsNotifyObject["Name"].isNull())
|
||||||
|
notifyObjectsObject.name = dispatchRuleNodeNotifyRulesNotifyRuleNotifyObjectsNotifyObject["Name"].asString();
|
||||||
|
if(!dispatchRuleNodeNotifyRulesNotifyRuleNotifyObjectsNotifyObject["NotifyObjectId"].isNull())
|
||||||
|
notifyObjectsObject.notifyObjectId = dispatchRuleNodeNotifyRulesNotifyRuleNotifyObjectsNotifyObject["NotifyObjectId"].asString();
|
||||||
|
notifyRuleObject.notifyObjects.push_back(notifyObjectsObject);
|
||||||
|
}
|
||||||
|
auto allNotifyChannels = value["NotifyChannels"]["NotifyChannel"];
|
||||||
|
for (auto value : allNotifyChannels)
|
||||||
|
notifyRuleObject.notifyChannels.push_back(value.asString());
|
||||||
|
dispatchRule_.notifyRules.push_back(notifyRuleObject);
|
||||||
|
}
|
||||||
|
auto labelMatchExpressionGridNode = dispatchRuleNode["LabelMatchExpressionGrid"];
|
||||||
|
auto allLabelMatchExpressionGroupsNode = labelMatchExpressionGridNode["LabelMatchExpressionGroups"]["LabelMatchExpressionGroup"];
|
||||||
|
for (auto labelMatchExpressionGridNodeLabelMatchExpressionGroupsLabelMatchExpressionGroup : allLabelMatchExpressionGroupsNode)
|
||||||
|
{
|
||||||
|
DispatchRule::LabelMatchExpressionGrid::LabelMatchExpressionGroup labelMatchExpressionGroupObject;
|
||||||
|
auto allLabelMatchExpressionsNode = labelMatchExpressionGridNodeLabelMatchExpressionGroupsLabelMatchExpressionGroup["LabelMatchExpressions"]["LabelMatchExpression"];
|
||||||
|
for (auto labelMatchExpressionGridNodeLabelMatchExpressionGroupsLabelMatchExpressionGroupLabelMatchExpressionsLabelMatchExpression : allLabelMatchExpressionsNode)
|
||||||
|
{
|
||||||
|
DispatchRule::LabelMatchExpressionGrid::LabelMatchExpressionGroup::LabelMatchExpression labelMatchExpressionsObject;
|
||||||
|
if(!labelMatchExpressionGridNodeLabelMatchExpressionGroupsLabelMatchExpressionGroupLabelMatchExpressionsLabelMatchExpression["Key"].isNull())
|
||||||
|
labelMatchExpressionsObject.key = labelMatchExpressionGridNodeLabelMatchExpressionGroupsLabelMatchExpressionGroupLabelMatchExpressionsLabelMatchExpression["Key"].asString();
|
||||||
|
if(!labelMatchExpressionGridNodeLabelMatchExpressionGroupsLabelMatchExpressionGroupLabelMatchExpressionsLabelMatchExpression["Value"].isNull())
|
||||||
|
labelMatchExpressionsObject.value = labelMatchExpressionGridNodeLabelMatchExpressionGroupsLabelMatchExpressionGroupLabelMatchExpressionsLabelMatchExpression["Value"].asString();
|
||||||
|
if(!labelMatchExpressionGridNodeLabelMatchExpressionGroupsLabelMatchExpressionGroupLabelMatchExpressionsLabelMatchExpression["Operator"].isNull())
|
||||||
|
labelMatchExpressionsObject._operator = labelMatchExpressionGridNodeLabelMatchExpressionGroupsLabelMatchExpressionGroupLabelMatchExpressionsLabelMatchExpression["Operator"].asString();
|
||||||
|
labelMatchExpressionGroupObject.labelMatchExpressions.push_back(labelMatchExpressionsObject);
|
||||||
|
}
|
||||||
|
dispatchRule_.labelMatchExpressionGrid.labelMatchExpressionGroups.push_back(labelMatchExpressionGroupObject);
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
DescribeDispatchRuleResult::DispatchRule DescribeDispatchRuleResult::getDispatchRule()const
|
||||||
|
{
|
||||||
|
return dispatchRule_;
|
||||||
|
}
|
||||||
|
|
||||||
73
arms/src/model/ExportPrometheusRulesRequest.cc
Normal file
73
arms/src/model/ExportPrometheusRulesRequest.cc
Normal file
@@ -0,0 +1,73 @@
|
|||||||
|
/*
|
||||||
|
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||||
|
*
|
||||||
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
|
* you may not use this file except in compliance with the License.
|
||||||
|
* You may obtain a copy of the License at
|
||||||
|
*
|
||||||
|
* http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
*
|
||||||
|
* Unless required by applicable law or agreed to in writing, software
|
||||||
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
|
* See the License for the specific language governing permissions and
|
||||||
|
* limitations under the License.
|
||||||
|
*/
|
||||||
|
|
||||||
|
#include <alibabacloud/arms/model/ExportPrometheusRulesRequest.h>
|
||||||
|
|
||||||
|
using AlibabaCloud::ARMS::Model::ExportPrometheusRulesRequest;
|
||||||
|
|
||||||
|
ExportPrometheusRulesRequest::ExportPrometheusRulesRequest() :
|
||||||
|
RpcServiceRequest("arms", "2019-08-08", "ExportPrometheusRules")
|
||||||
|
{
|
||||||
|
setMethod(HttpRequest::Method::Post);
|
||||||
|
}
|
||||||
|
|
||||||
|
ExportPrometheusRulesRequest::~ExportPrometheusRulesRequest()
|
||||||
|
{}
|
||||||
|
|
||||||
|
std::string ExportPrometheusRulesRequest::getRegionId()const
|
||||||
|
{
|
||||||
|
return regionId_;
|
||||||
|
}
|
||||||
|
|
||||||
|
void ExportPrometheusRulesRequest::setRegionId(const std::string& regionId)
|
||||||
|
{
|
||||||
|
regionId_ = regionId;
|
||||||
|
setParameter("RegionId", regionId);
|
||||||
|
}
|
||||||
|
|
||||||
|
std::string ExportPrometheusRulesRequest::get_NameSpace()const
|
||||||
|
{
|
||||||
|
return _nameSpace_;
|
||||||
|
}
|
||||||
|
|
||||||
|
void ExportPrometheusRulesRequest::set_NameSpace(const std::string& _nameSpace)
|
||||||
|
{
|
||||||
|
_nameSpace_ = _nameSpace;
|
||||||
|
setParameter("_NameSpace", _nameSpace);
|
||||||
|
}
|
||||||
|
|
||||||
|
std::string ExportPrometheusRulesRequest::getName()const
|
||||||
|
{
|
||||||
|
return name_;
|
||||||
|
}
|
||||||
|
|
||||||
|
void ExportPrometheusRulesRequest::setName(const std::string& name)
|
||||||
|
{
|
||||||
|
name_ = name;
|
||||||
|
setParameter("Name", name);
|
||||||
|
}
|
||||||
|
|
||||||
|
std::string ExportPrometheusRulesRequest::getClusterId()const
|
||||||
|
{
|
||||||
|
return clusterId_;
|
||||||
|
}
|
||||||
|
|
||||||
|
void ExportPrometheusRulesRequest::setClusterId(const std::string& clusterId)
|
||||||
|
{
|
||||||
|
clusterId_ = clusterId;
|
||||||
|
setParameter("ClusterId", clusterId);
|
||||||
|
}
|
||||||
|
|
||||||
@@ -14,31 +14,38 @@
|
|||||||
* limitations under the License.
|
* limitations under the License.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <alibabacloud/voicenavigator/model/ModifyRepeatingConfigResult.h>
|
#include <alibabacloud/arms/model/ExportPrometheusRulesResult.h>
|
||||||
#include <json/json.h>
|
#include <json/json.h>
|
||||||
|
|
||||||
using namespace AlibabaCloud::VoiceNavigator;
|
using namespace AlibabaCloud::ARMS;
|
||||||
using namespace AlibabaCloud::VoiceNavigator::Model;
|
using namespace AlibabaCloud::ARMS::Model;
|
||||||
|
|
||||||
ModifyRepeatingConfigResult::ModifyRepeatingConfigResult() :
|
ExportPrometheusRulesResult::ExportPrometheusRulesResult() :
|
||||||
ServiceResult()
|
ServiceResult()
|
||||||
{}
|
{}
|
||||||
|
|
||||||
ModifyRepeatingConfigResult::ModifyRepeatingConfigResult(const std::string &payload) :
|
ExportPrometheusRulesResult::ExportPrometheusRulesResult(const std::string &payload) :
|
||||||
ServiceResult()
|
ServiceResult()
|
||||||
{
|
{
|
||||||
parse(payload);
|
parse(payload);
|
||||||
}
|
}
|
||||||
|
|
||||||
ModifyRepeatingConfigResult::~ModifyRepeatingConfigResult()
|
ExportPrometheusRulesResult::~ExportPrometheusRulesResult()
|
||||||
{}
|
{}
|
||||||
|
|
||||||
void ModifyRepeatingConfigResult::parse(const std::string &payload)
|
void ExportPrometheusRulesResult::parse(const std::string &payload)
|
||||||
{
|
{
|
||||||
Json::Reader reader;
|
Json::Reader reader;
|
||||||
Json::Value value;
|
Json::Value value;
|
||||||
reader.parse(payload, value);
|
reader.parse(payload, value);
|
||||||
setRequestId(value["RequestId"].asString());
|
setRequestId(value["RequestId"].asString());
|
||||||
|
if(!value["Data"].isNull())
|
||||||
|
data_ = value["Data"].asString();
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
std::string ExportPrometheusRulesResult::getData()const
|
||||||
|
{
|
||||||
|
return data_;
|
||||||
|
}
|
||||||
|
|
||||||
62
arms/src/model/GetIntegrationTokenRequest.cc
Normal file
62
arms/src/model/GetIntegrationTokenRequest.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/GetIntegrationTokenRequest.h>
|
||||||
|
|
||||||
|
using AlibabaCloud::ARMS::Model::GetIntegrationTokenRequest;
|
||||||
|
|
||||||
|
GetIntegrationTokenRequest::GetIntegrationTokenRequest() :
|
||||||
|
RpcServiceRequest("arms", "2019-08-08", "GetIntegrationToken")
|
||||||
|
{
|
||||||
|
setMethod(HttpRequest::Method::Post);
|
||||||
|
}
|
||||||
|
|
||||||
|
GetIntegrationTokenRequest::~GetIntegrationTokenRequest()
|
||||||
|
{}
|
||||||
|
|
||||||
|
std::string GetIntegrationTokenRequest::getRegionId()const
|
||||||
|
{
|
||||||
|
return regionId_;
|
||||||
|
}
|
||||||
|
|
||||||
|
void GetIntegrationTokenRequest::setRegionId(const std::string& regionId)
|
||||||
|
{
|
||||||
|
regionId_ = regionId;
|
||||||
|
setParameter("RegionId", regionId);
|
||||||
|
}
|
||||||
|
|
||||||
|
std::string GetIntegrationTokenRequest::getProxyUserId()const
|
||||||
|
{
|
||||||
|
return proxyUserId_;
|
||||||
|
}
|
||||||
|
|
||||||
|
void GetIntegrationTokenRequest::setProxyUserId(const std::string& proxyUserId)
|
||||||
|
{
|
||||||
|
proxyUserId_ = proxyUserId;
|
||||||
|
setParameter("ProxyUserId", proxyUserId);
|
||||||
|
}
|
||||||
|
|
||||||
|
std::string GetIntegrationTokenRequest::getProductType()const
|
||||||
|
{
|
||||||
|
return productType_;
|
||||||
|
}
|
||||||
|
|
||||||
|
void GetIntegrationTokenRequest::setProductType(const std::string& productType)
|
||||||
|
{
|
||||||
|
productType_ = productType;
|
||||||
|
setParameter("ProductType", productType);
|
||||||
|
}
|
||||||
|
|
||||||
@@ -14,31 +14,38 @@
|
|||||||
* limitations under the License.
|
* limitations under the License.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <alibabacloud/openanalytics-open/model/StartVirtualClusterResult.h>
|
#include <alibabacloud/arms/model/GetIntegrationTokenResult.h>
|
||||||
#include <json/json.h>
|
#include <json/json.h>
|
||||||
|
|
||||||
using namespace AlibabaCloud::Openanalytics_open;
|
using namespace AlibabaCloud::ARMS;
|
||||||
using namespace AlibabaCloud::Openanalytics_open::Model;
|
using namespace AlibabaCloud::ARMS::Model;
|
||||||
|
|
||||||
StartVirtualClusterResult::StartVirtualClusterResult() :
|
GetIntegrationTokenResult::GetIntegrationTokenResult() :
|
||||||
ServiceResult()
|
ServiceResult()
|
||||||
{}
|
{}
|
||||||
|
|
||||||
StartVirtualClusterResult::StartVirtualClusterResult(const std::string &payload) :
|
GetIntegrationTokenResult::GetIntegrationTokenResult(const std::string &payload) :
|
||||||
ServiceResult()
|
ServiceResult()
|
||||||
{
|
{
|
||||||
parse(payload);
|
parse(payload);
|
||||||
}
|
}
|
||||||
|
|
||||||
StartVirtualClusterResult::~StartVirtualClusterResult()
|
GetIntegrationTokenResult::~GetIntegrationTokenResult()
|
||||||
{}
|
{}
|
||||||
|
|
||||||
void StartVirtualClusterResult::parse(const std::string &payload)
|
void GetIntegrationTokenResult::parse(const std::string &payload)
|
||||||
{
|
{
|
||||||
Json::Reader reader;
|
Json::Reader reader;
|
||||||
Json::Value value;
|
Json::Value value;
|
||||||
reader.parse(payload, value);
|
reader.parse(payload, value);
|
||||||
setRequestId(value["RequestId"].asString());
|
setRequestId(value["RequestId"].asString());
|
||||||
|
if(!value["Token"].isNull())
|
||||||
|
token_ = value["Token"].asString();
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
std::string GetIntegrationTokenResult::getToken()const
|
||||||
|
{
|
||||||
|
return token_;
|
||||||
|
}
|
||||||
|
|
||||||
@@ -45,54 +45,54 @@ void GetMultipleTraceResult::parse(const std::string &payload)
|
|||||||
MultiCallChainInfo multiCallChainInfosObject;
|
MultiCallChainInfo multiCallChainInfosObject;
|
||||||
if(!valueMultiCallChainInfosMultiCallChainInfo["TraceID"].isNull())
|
if(!valueMultiCallChainInfosMultiCallChainInfo["TraceID"].isNull())
|
||||||
multiCallChainInfosObject.traceID = valueMultiCallChainInfosMultiCallChainInfo["TraceID"].asString();
|
multiCallChainInfosObject.traceID = valueMultiCallChainInfosMultiCallChainInfo["TraceID"].asString();
|
||||||
auto allSpansNode = allMultiCallChainInfosNode["Spans"]["Span"];
|
auto allSpansNode = valueMultiCallChainInfosMultiCallChainInfo["Spans"]["Span"];
|
||||||
for (auto allMultiCallChainInfosNodeSpansSpan : allSpansNode)
|
for (auto valueMultiCallChainInfosMultiCallChainInfoSpansSpan : allSpansNode)
|
||||||
{
|
{
|
||||||
MultiCallChainInfo::Span spansObject;
|
MultiCallChainInfo::Span spansObject;
|
||||||
if(!allMultiCallChainInfosNodeSpansSpan["TraceID"].isNull())
|
if(!valueMultiCallChainInfosMultiCallChainInfoSpansSpan["TraceID"].isNull())
|
||||||
spansObject.traceID = allMultiCallChainInfosNodeSpansSpan["TraceID"].asString();
|
spansObject.traceID = valueMultiCallChainInfosMultiCallChainInfoSpansSpan["TraceID"].asString();
|
||||||
if(!allMultiCallChainInfosNodeSpansSpan["OperationName"].isNull())
|
if(!valueMultiCallChainInfosMultiCallChainInfoSpansSpan["OperationName"].isNull())
|
||||||
spansObject.operationName = allMultiCallChainInfosNodeSpansSpan["OperationName"].asString();
|
spansObject.operationName = valueMultiCallChainInfosMultiCallChainInfoSpansSpan["OperationName"].asString();
|
||||||
if(!allMultiCallChainInfosNodeSpansSpan["Duration"].isNull())
|
if(!valueMultiCallChainInfosMultiCallChainInfoSpansSpan["Duration"].isNull())
|
||||||
spansObject.duration = std::stol(allMultiCallChainInfosNodeSpansSpan["Duration"].asString());
|
spansObject.duration = std::stol(valueMultiCallChainInfosMultiCallChainInfoSpansSpan["Duration"].asString());
|
||||||
if(!allMultiCallChainInfosNodeSpansSpan["ServiceName"].isNull())
|
if(!valueMultiCallChainInfosMultiCallChainInfoSpansSpan["ServiceName"].isNull())
|
||||||
spansObject.serviceName = allMultiCallChainInfosNodeSpansSpan["ServiceName"].asString();
|
spansObject.serviceName = valueMultiCallChainInfosMultiCallChainInfoSpansSpan["ServiceName"].asString();
|
||||||
if(!allMultiCallChainInfosNodeSpansSpan["ServiceIp"].isNull())
|
if(!valueMultiCallChainInfosMultiCallChainInfoSpansSpan["ServiceIp"].isNull())
|
||||||
spansObject.serviceIp = allMultiCallChainInfosNodeSpansSpan["ServiceIp"].asString();
|
spansObject.serviceIp = valueMultiCallChainInfosMultiCallChainInfoSpansSpan["ServiceIp"].asString();
|
||||||
if(!allMultiCallChainInfosNodeSpansSpan["Timestamp"].isNull())
|
if(!valueMultiCallChainInfosMultiCallChainInfoSpansSpan["Timestamp"].isNull())
|
||||||
spansObject.timestamp = std::stol(allMultiCallChainInfosNodeSpansSpan["Timestamp"].asString());
|
spansObject.timestamp = std::stol(valueMultiCallChainInfosMultiCallChainInfoSpansSpan["Timestamp"].asString());
|
||||||
if(!allMultiCallChainInfosNodeSpansSpan["RpcId"].isNull())
|
if(!valueMultiCallChainInfosMultiCallChainInfoSpansSpan["RpcId"].isNull())
|
||||||
spansObject.rpcId = allMultiCallChainInfosNodeSpansSpan["RpcId"].asString();
|
spansObject.rpcId = valueMultiCallChainInfosMultiCallChainInfoSpansSpan["RpcId"].asString();
|
||||||
if(!allMultiCallChainInfosNodeSpansSpan["ResultCode"].isNull())
|
if(!valueMultiCallChainInfosMultiCallChainInfoSpansSpan["ResultCode"].isNull())
|
||||||
spansObject.resultCode = allMultiCallChainInfosNodeSpansSpan["ResultCode"].asString();
|
spansObject.resultCode = valueMultiCallChainInfosMultiCallChainInfoSpansSpan["ResultCode"].asString();
|
||||||
if(!allMultiCallChainInfosNodeSpansSpan["HaveStack"].isNull())
|
if(!valueMultiCallChainInfosMultiCallChainInfoSpansSpan["HaveStack"].isNull())
|
||||||
spansObject.haveStack = allMultiCallChainInfosNodeSpansSpan["HaveStack"].asString() == "true";
|
spansObject.haveStack = valueMultiCallChainInfosMultiCallChainInfoSpansSpan["HaveStack"].asString() == "true";
|
||||||
if(!allMultiCallChainInfosNodeSpansSpan["RpcType"].isNull())
|
if(!valueMultiCallChainInfosMultiCallChainInfoSpansSpan["RpcType"].isNull())
|
||||||
spansObject.rpcType = std::stoi(allMultiCallChainInfosNodeSpansSpan["RpcType"].asString());
|
spansObject.rpcType = std::stoi(valueMultiCallChainInfosMultiCallChainInfoSpansSpan["RpcType"].asString());
|
||||||
auto allTagEntryListNode = allSpansNode["TagEntryList"]["TagEntry"];
|
auto allTagEntryListNode = valueMultiCallChainInfosMultiCallChainInfoSpansSpan["TagEntryList"]["TagEntry"];
|
||||||
for (auto allSpansNodeTagEntryListTagEntry : allTagEntryListNode)
|
for (auto valueMultiCallChainInfosMultiCallChainInfoSpansSpanTagEntryListTagEntry : allTagEntryListNode)
|
||||||
{
|
{
|
||||||
MultiCallChainInfo::Span::TagEntry tagEntryListObject;
|
MultiCallChainInfo::Span::TagEntry tagEntryListObject;
|
||||||
if(!allSpansNodeTagEntryListTagEntry["Key"].isNull())
|
if(!valueMultiCallChainInfosMultiCallChainInfoSpansSpanTagEntryListTagEntry["Key"].isNull())
|
||||||
tagEntryListObject.key = allSpansNodeTagEntryListTagEntry["Key"].asString();
|
tagEntryListObject.key = valueMultiCallChainInfosMultiCallChainInfoSpansSpanTagEntryListTagEntry["Key"].asString();
|
||||||
if(!allSpansNodeTagEntryListTagEntry["Value"].isNull())
|
if(!valueMultiCallChainInfosMultiCallChainInfoSpansSpanTagEntryListTagEntry["Value"].isNull())
|
||||||
tagEntryListObject.value = allSpansNodeTagEntryListTagEntry["Value"].asString();
|
tagEntryListObject.value = valueMultiCallChainInfosMultiCallChainInfoSpansSpanTagEntryListTagEntry["Value"].asString();
|
||||||
spansObject.tagEntryList.push_back(tagEntryListObject);
|
spansObject.tagEntryList.push_back(tagEntryListObject);
|
||||||
}
|
}
|
||||||
auto allLogEventListNode = allSpansNode["LogEventList"]["LogEvent"];
|
auto allLogEventListNode = valueMultiCallChainInfosMultiCallChainInfoSpansSpan["LogEventList"]["LogEvent"];
|
||||||
for (auto allSpansNodeLogEventListLogEvent : allLogEventListNode)
|
for (auto valueMultiCallChainInfosMultiCallChainInfoSpansSpanLogEventListLogEvent : allLogEventListNode)
|
||||||
{
|
{
|
||||||
MultiCallChainInfo::Span::LogEvent logEventListObject;
|
MultiCallChainInfo::Span::LogEvent logEventListObject;
|
||||||
if(!allSpansNodeLogEventListLogEvent["Timestamp"].isNull())
|
if(!valueMultiCallChainInfosMultiCallChainInfoSpansSpanLogEventListLogEvent["Timestamp"].isNull())
|
||||||
logEventListObject.timestamp = std::stol(allSpansNodeLogEventListLogEvent["Timestamp"].asString());
|
logEventListObject.timestamp = std::stol(valueMultiCallChainInfosMultiCallChainInfoSpansSpanLogEventListLogEvent["Timestamp"].asString());
|
||||||
auto allTagEntryList1Node = allLogEventListNode["TagEntryList"]["TagEntry"];
|
auto allTagEntryList1Node = valueMultiCallChainInfosMultiCallChainInfoSpansSpanLogEventListLogEvent["TagEntryList"]["TagEntry"];
|
||||||
for (auto allLogEventListNodeTagEntryListTagEntry : allTagEntryList1Node)
|
for (auto valueMultiCallChainInfosMultiCallChainInfoSpansSpanLogEventListLogEventTagEntryListTagEntry : allTagEntryList1Node)
|
||||||
{
|
{
|
||||||
MultiCallChainInfo::Span::LogEvent::TagEntry2 tagEntryList1Object;
|
MultiCallChainInfo::Span::LogEvent::TagEntry2 tagEntryList1Object;
|
||||||
if(!allLogEventListNodeTagEntryListTagEntry["Key"].isNull())
|
if(!valueMultiCallChainInfosMultiCallChainInfoSpansSpanLogEventListLogEventTagEntryListTagEntry["Key"].isNull())
|
||||||
tagEntryList1Object.key = allLogEventListNodeTagEntryListTagEntry["Key"].asString();
|
tagEntryList1Object.key = valueMultiCallChainInfosMultiCallChainInfoSpansSpanLogEventListLogEventTagEntryListTagEntry["Key"].asString();
|
||||||
if(!allLogEventListNodeTagEntryListTagEntry["Value"].isNull())
|
if(!valueMultiCallChainInfosMultiCallChainInfoSpansSpanLogEventListLogEventTagEntryListTagEntry["Value"].isNull())
|
||||||
tagEntryList1Object.value = allLogEventListNodeTagEntryListTagEntry["Value"].asString();
|
tagEntryList1Object.value = valueMultiCallChainInfosMultiCallChainInfoSpansSpanLogEventListLogEventTagEntryListTagEntry["Value"].asString();
|
||||||
logEventListObject.tagEntryList1.push_back(tagEntryList1Object);
|
logEventListObject.tagEntryList1.push_back(tagEntryList1Object);
|
||||||
}
|
}
|
||||||
spansObject.logEventList.push_back(logEventListObject);
|
spansObject.logEventList.push_back(logEventListObject);
|
||||||
|
|||||||
@@ -63,30 +63,30 @@ void GetTraceResult::parse(const std::string &payload)
|
|||||||
spansObject.haveStack = valueSpansSpan["HaveStack"].asString() == "true";
|
spansObject.haveStack = valueSpansSpan["HaveStack"].asString() == "true";
|
||||||
if(!valueSpansSpan["RpcType"].isNull())
|
if(!valueSpansSpan["RpcType"].isNull())
|
||||||
spansObject.rpcType = std::stoi(valueSpansSpan["RpcType"].asString());
|
spansObject.rpcType = std::stoi(valueSpansSpan["RpcType"].asString());
|
||||||
auto allTagEntryListNode = allSpansNode["TagEntryList"]["TagEntry"];
|
auto allTagEntryListNode = valueSpansSpan["TagEntryList"]["TagEntry"];
|
||||||
for (auto allSpansNodeTagEntryListTagEntry : allTagEntryListNode)
|
for (auto valueSpansSpanTagEntryListTagEntry : allTagEntryListNode)
|
||||||
{
|
{
|
||||||
Span::TagEntry tagEntryListObject;
|
Span::TagEntry tagEntryListObject;
|
||||||
if(!allSpansNodeTagEntryListTagEntry["Key"].isNull())
|
if(!valueSpansSpanTagEntryListTagEntry["Key"].isNull())
|
||||||
tagEntryListObject.key = allSpansNodeTagEntryListTagEntry["Key"].asString();
|
tagEntryListObject.key = valueSpansSpanTagEntryListTagEntry["Key"].asString();
|
||||||
if(!allSpansNodeTagEntryListTagEntry["Value"].isNull())
|
if(!valueSpansSpanTagEntryListTagEntry["Value"].isNull())
|
||||||
tagEntryListObject.value = allSpansNodeTagEntryListTagEntry["Value"].asString();
|
tagEntryListObject.value = valueSpansSpanTagEntryListTagEntry["Value"].asString();
|
||||||
spansObject.tagEntryList.push_back(tagEntryListObject);
|
spansObject.tagEntryList.push_back(tagEntryListObject);
|
||||||
}
|
}
|
||||||
auto allLogEventListNode = allSpansNode["LogEventList"]["LogEvent"];
|
auto allLogEventListNode = valueSpansSpan["LogEventList"]["LogEvent"];
|
||||||
for (auto allSpansNodeLogEventListLogEvent : allLogEventListNode)
|
for (auto valueSpansSpanLogEventListLogEvent : allLogEventListNode)
|
||||||
{
|
{
|
||||||
Span::LogEvent logEventListObject;
|
Span::LogEvent logEventListObject;
|
||||||
if(!allSpansNodeLogEventListLogEvent["Timestamp"].isNull())
|
if(!valueSpansSpanLogEventListLogEvent["Timestamp"].isNull())
|
||||||
logEventListObject.timestamp = std::stol(allSpansNodeLogEventListLogEvent["Timestamp"].asString());
|
logEventListObject.timestamp = std::stol(valueSpansSpanLogEventListLogEvent["Timestamp"].asString());
|
||||||
auto allTagEntryList1Node = allLogEventListNode["TagEntryList"]["TagEntry"];
|
auto allTagEntryList1Node = valueSpansSpanLogEventListLogEvent["TagEntryList"]["TagEntry"];
|
||||||
for (auto allLogEventListNodeTagEntryListTagEntry : allTagEntryList1Node)
|
for (auto valueSpansSpanLogEventListLogEventTagEntryListTagEntry : allTagEntryList1Node)
|
||||||
{
|
{
|
||||||
Span::LogEvent::TagEntry2 tagEntryList1Object;
|
Span::LogEvent::TagEntry2 tagEntryList1Object;
|
||||||
if(!allLogEventListNodeTagEntryListTagEntry["Key"].isNull())
|
if(!valueSpansSpanLogEventListLogEventTagEntryListTagEntry["Key"].isNull())
|
||||||
tagEntryList1Object.key = allLogEventListNodeTagEntryListTagEntry["Key"].asString();
|
tagEntryList1Object.key = valueSpansSpanLogEventListLogEventTagEntryListTagEntry["Key"].asString();
|
||||||
if(!allLogEventListNodeTagEntryListTagEntry["Value"].isNull())
|
if(!valueSpansSpanLogEventListLogEventTagEntryListTagEntry["Value"].isNull())
|
||||||
tagEntryList1Object.value = allLogEventListNodeTagEntryListTagEntry["Value"].asString();
|
tagEntryList1Object.value = valueSpansSpanLogEventListLogEventTagEntryListTagEntry["Value"].asString();
|
||||||
logEventListObject.tagEntryList1.push_back(tagEntryList1Object);
|
logEventListObject.tagEntryList1.push_back(tagEntryList1Object);
|
||||||
}
|
}
|
||||||
spansObject.logEventList.push_back(logEventListObject);
|
spansObject.logEventList.push_back(logEventListObject);
|
||||||
|
|||||||
84
arms/src/model/ImportPrometheusRulesRequest.cc
Normal file
84
arms/src/model/ImportPrometheusRulesRequest.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/ImportPrometheusRulesRequest.h>
|
||||||
|
|
||||||
|
using AlibabaCloud::ARMS::Model::ImportPrometheusRulesRequest;
|
||||||
|
|
||||||
|
ImportPrometheusRulesRequest::ImportPrometheusRulesRequest() :
|
||||||
|
RpcServiceRequest("arms", "2019-08-08", "ImportPrometheusRules")
|
||||||
|
{
|
||||||
|
setMethod(HttpRequest::Method::Post);
|
||||||
|
}
|
||||||
|
|
||||||
|
ImportPrometheusRulesRequest::~ImportPrometheusRulesRequest()
|
||||||
|
{}
|
||||||
|
|
||||||
|
std::string ImportPrometheusRulesRequest::getRegionId()const
|
||||||
|
{
|
||||||
|
return regionId_;
|
||||||
|
}
|
||||||
|
|
||||||
|
void ImportPrometheusRulesRequest::setRegionId(const std::string& regionId)
|
||||||
|
{
|
||||||
|
regionId_ = regionId;
|
||||||
|
setParameter("RegionId", regionId);
|
||||||
|
}
|
||||||
|
|
||||||
|
std::string ImportPrometheusRulesRequest::get_NameSpace()const
|
||||||
|
{
|
||||||
|
return _nameSpace_;
|
||||||
|
}
|
||||||
|
|
||||||
|
void ImportPrometheusRulesRequest::set_NameSpace(const std::string& _nameSpace)
|
||||||
|
{
|
||||||
|
_nameSpace_ = _nameSpace;
|
||||||
|
setParameter("_NameSpace", _nameSpace);
|
||||||
|
}
|
||||||
|
|
||||||
|
std::string ImportPrometheusRulesRequest::getName()const
|
||||||
|
{
|
||||||
|
return name_;
|
||||||
|
}
|
||||||
|
|
||||||
|
void ImportPrometheusRulesRequest::setName(const std::string& name)
|
||||||
|
{
|
||||||
|
name_ = name;
|
||||||
|
setParameter("Name", name);
|
||||||
|
}
|
||||||
|
|
||||||
|
std::string ImportPrometheusRulesRequest::getClusterId()const
|
||||||
|
{
|
||||||
|
return clusterId_;
|
||||||
|
}
|
||||||
|
|
||||||
|
void ImportPrometheusRulesRequest::setClusterId(const std::string& clusterId)
|
||||||
|
{
|
||||||
|
clusterId_ = clusterId;
|
||||||
|
setParameter("ClusterId", clusterId);
|
||||||
|
}
|
||||||
|
|
||||||
|
std::string ImportPrometheusRulesRequest::getContent()const
|
||||||
|
{
|
||||||
|
return content_;
|
||||||
|
}
|
||||||
|
|
||||||
|
void ImportPrometheusRulesRequest::setContent(const std::string& content)
|
||||||
|
{
|
||||||
|
content_ = content;
|
||||||
|
setParameter("Content", content);
|
||||||
|
}
|
||||||
|
|
||||||
@@ -14,31 +14,38 @@
|
|||||||
* limitations under the License.
|
* limitations under the License.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <alibabacloud/openanalytics-open/model/DestroyVirtualClusterResult.h>
|
#include <alibabacloud/arms/model/ImportPrometheusRulesResult.h>
|
||||||
#include <json/json.h>
|
#include <json/json.h>
|
||||||
|
|
||||||
using namespace AlibabaCloud::Openanalytics_open;
|
using namespace AlibabaCloud::ARMS;
|
||||||
using namespace AlibabaCloud::Openanalytics_open::Model;
|
using namespace AlibabaCloud::ARMS::Model;
|
||||||
|
|
||||||
DestroyVirtualClusterResult::DestroyVirtualClusterResult() :
|
ImportPrometheusRulesResult::ImportPrometheusRulesResult() :
|
||||||
ServiceResult()
|
ServiceResult()
|
||||||
{}
|
{}
|
||||||
|
|
||||||
DestroyVirtualClusterResult::DestroyVirtualClusterResult(const std::string &payload) :
|
ImportPrometheusRulesResult::ImportPrometheusRulesResult(const std::string &payload) :
|
||||||
ServiceResult()
|
ServiceResult()
|
||||||
{
|
{
|
||||||
parse(payload);
|
parse(payload);
|
||||||
}
|
}
|
||||||
|
|
||||||
DestroyVirtualClusterResult::~DestroyVirtualClusterResult()
|
ImportPrometheusRulesResult::~ImportPrometheusRulesResult()
|
||||||
{}
|
{}
|
||||||
|
|
||||||
void DestroyVirtualClusterResult::parse(const std::string &payload)
|
void ImportPrometheusRulesResult::parse(const std::string &payload)
|
||||||
{
|
{
|
||||||
Json::Reader reader;
|
Json::Reader reader;
|
||||||
Json::Value value;
|
Json::Value value;
|
||||||
reader.parse(payload, value);
|
reader.parse(payload, value);
|
||||||
setRequestId(value["RequestId"].asString());
|
setRequestId(value["RequestId"].asString());
|
||||||
|
if(!value["Data"].isNull())
|
||||||
|
data_ = value["Data"].asString();
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
std::string ImportPrometheusRulesResult::getData()const
|
||||||
|
{
|
||||||
|
return data_;
|
||||||
|
}
|
||||||
|
|
||||||
@@ -53,28 +53,28 @@ void SearchAlertContactGroupResult::parse(const std::string &payload)
|
|||||||
contactGroupsObject.createTime = std::stol(valueContactGroupsContactGroup["CreateTime"].asString());
|
contactGroupsObject.createTime = std::stol(valueContactGroupsContactGroup["CreateTime"].asString());
|
||||||
if(!valueContactGroupsContactGroup["UpdateTime"].isNull())
|
if(!valueContactGroupsContactGroup["UpdateTime"].isNull())
|
||||||
contactGroupsObject.updateTime = std::stol(valueContactGroupsContactGroup["UpdateTime"].asString());
|
contactGroupsObject.updateTime = std::stol(valueContactGroupsContactGroup["UpdateTime"].asString());
|
||||||
auto allContactsNode = allContactGroupsNode["Contacts"]["Contact"];
|
auto allContactsNode = valueContactGroupsContactGroup["Contacts"]["Contact"];
|
||||||
for (auto allContactGroupsNodeContactsContact : allContactsNode)
|
for (auto valueContactGroupsContactGroupContactsContact : allContactsNode)
|
||||||
{
|
{
|
||||||
ContactGroup::Contact contactsObject;
|
ContactGroup::Contact contactsObject;
|
||||||
if(!allContactGroupsNodeContactsContact["ContactId"].isNull())
|
if(!valueContactGroupsContactGroupContactsContact["ContactId"].isNull())
|
||||||
contactsObject.contactId = std::stol(allContactGroupsNodeContactsContact["ContactId"].asString());
|
contactsObject.contactId = std::stol(valueContactGroupsContactGroupContactsContact["ContactId"].asString());
|
||||||
if(!allContactGroupsNodeContactsContact["ContactName"].isNull())
|
if(!valueContactGroupsContactGroupContactsContact["ContactName"].isNull())
|
||||||
contactsObject.contactName = allContactGroupsNodeContactsContact["ContactName"].asString();
|
contactsObject.contactName = valueContactGroupsContactGroupContactsContact["ContactName"].asString();
|
||||||
if(!allContactGroupsNodeContactsContact["Phone"].isNull())
|
if(!valueContactGroupsContactGroupContactsContact["Phone"].isNull())
|
||||||
contactsObject.phone = allContactGroupsNodeContactsContact["Phone"].asString();
|
contactsObject.phone = valueContactGroupsContactGroupContactsContact["Phone"].asString();
|
||||||
if(!allContactGroupsNodeContactsContact["Email"].isNull())
|
if(!valueContactGroupsContactGroupContactsContact["Email"].isNull())
|
||||||
contactsObject.email = allContactGroupsNodeContactsContact["Email"].asString();
|
contactsObject.email = valueContactGroupsContactGroupContactsContact["Email"].asString();
|
||||||
if(!allContactGroupsNodeContactsContact["UserId"].isNull())
|
if(!valueContactGroupsContactGroupContactsContact["UserId"].isNull())
|
||||||
contactsObject.userId = allContactGroupsNodeContactsContact["UserId"].asString();
|
contactsObject.userId = valueContactGroupsContactGroupContactsContact["UserId"].asString();
|
||||||
if(!allContactGroupsNodeContactsContact["DingRobot"].isNull())
|
if(!valueContactGroupsContactGroupContactsContact["DingRobot"].isNull())
|
||||||
contactsObject.dingRobot = allContactGroupsNodeContactsContact["DingRobot"].asString();
|
contactsObject.dingRobot = valueContactGroupsContactGroupContactsContact["DingRobot"].asString();
|
||||||
if(!allContactGroupsNodeContactsContact["CreateTime"].isNull())
|
if(!valueContactGroupsContactGroupContactsContact["CreateTime"].isNull())
|
||||||
contactsObject.createTime = std::stol(allContactGroupsNodeContactsContact["CreateTime"].asString());
|
contactsObject.createTime = std::stol(valueContactGroupsContactGroupContactsContact["CreateTime"].asString());
|
||||||
if(!allContactGroupsNodeContactsContact["UpdateTime"].isNull())
|
if(!valueContactGroupsContactGroupContactsContact["UpdateTime"].isNull())
|
||||||
contactsObject.updateTime = std::stol(allContactGroupsNodeContactsContact["UpdateTime"].asString());
|
contactsObject.updateTime = std::stol(valueContactGroupsContactGroupContactsContact["UpdateTime"].asString());
|
||||||
if(!allContactGroupsNodeContactsContact["SystemNoc"].isNull())
|
if(!valueContactGroupsContactGroupContactsContact["SystemNoc"].isNull())
|
||||||
contactsObject.systemNoc = allContactGroupsNodeContactsContact["SystemNoc"].asString() == "true";
|
contactsObject.systemNoc = valueContactGroupsContactGroupContactsContact["SystemNoc"].asString() == "true";
|
||||||
contactGroupsObject.contacts.push_back(contactsObject);
|
contactGroupsObject.contacts.push_back(contactsObject);
|
||||||
}
|
}
|
||||||
contactGroups_.push_back(contactGroupsObject);
|
contactGroups_.push_back(contactGroupsObject);
|
||||||
|
|||||||
73
arms/src/model/SendCustomIncidentsRequest.cc
Normal file
73
arms/src/model/SendCustomIncidentsRequest.cc
Normal file
@@ -0,0 +1,73 @@
|
|||||||
|
/*
|
||||||
|
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||||
|
*
|
||||||
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
|
* you may not use this file except in compliance with the License.
|
||||||
|
* You may obtain a copy of the License at
|
||||||
|
*
|
||||||
|
* http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
*
|
||||||
|
* Unless required by applicable law or agreed to in writing, software
|
||||||
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
|
* See the License for the specific language governing permissions and
|
||||||
|
* limitations under the License.
|
||||||
|
*/
|
||||||
|
|
||||||
|
#include <alibabacloud/arms/model/SendCustomIncidentsRequest.h>
|
||||||
|
|
||||||
|
using AlibabaCloud::ARMS::Model::SendCustomIncidentsRequest;
|
||||||
|
|
||||||
|
SendCustomIncidentsRequest::SendCustomIncidentsRequest() :
|
||||||
|
RpcServiceRequest("arms", "2019-08-08", "SendCustomIncidents")
|
||||||
|
{
|
||||||
|
setMethod(HttpRequest::Method::Post);
|
||||||
|
}
|
||||||
|
|
||||||
|
SendCustomIncidentsRequest::~SendCustomIncidentsRequest()
|
||||||
|
{}
|
||||||
|
|
||||||
|
std::string SendCustomIncidentsRequest::getRegionId()const
|
||||||
|
{
|
||||||
|
return regionId_;
|
||||||
|
}
|
||||||
|
|
||||||
|
void SendCustomIncidentsRequest::setRegionId(const std::string& regionId)
|
||||||
|
{
|
||||||
|
regionId_ = regionId;
|
||||||
|
setParameter("RegionId", regionId);
|
||||||
|
}
|
||||||
|
|
||||||
|
std::string SendCustomIncidentsRequest::getIncidents()const
|
||||||
|
{
|
||||||
|
return incidents_;
|
||||||
|
}
|
||||||
|
|
||||||
|
void SendCustomIncidentsRequest::setIncidents(const std::string& incidents)
|
||||||
|
{
|
||||||
|
incidents_ = incidents;
|
||||||
|
setParameter("Incidents", incidents);
|
||||||
|
}
|
||||||
|
|
||||||
|
std::string SendCustomIncidentsRequest::getProxyUserId()const
|
||||||
|
{
|
||||||
|
return proxyUserId_;
|
||||||
|
}
|
||||||
|
|
||||||
|
void SendCustomIncidentsRequest::setProxyUserId(const std::string& proxyUserId)
|
||||||
|
{
|
||||||
|
proxyUserId_ = proxyUserId;
|
||||||
|
setParameter("ProxyUserId", proxyUserId);
|
||||||
|
}
|
||||||
|
|
||||||
|
std::string SendCustomIncidentsRequest::getProductType()const
|
||||||
|
{
|
||||||
|
return productType_;
|
||||||
|
}
|
||||||
|
|
||||||
|
void SendCustomIncidentsRequest::setProductType(const std::string& productType)
|
||||||
|
{
|
||||||
|
productType_ = productType;
|
||||||
|
setParameter("ProductType", productType);
|
||||||
|
}
|
||||||
|
|
||||||
51
arms/src/model/SendCustomIncidentsResult.cc
Normal file
51
arms/src/model/SendCustomIncidentsResult.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/SendCustomIncidentsResult.h>
|
||||||
|
#include <json/json.h>
|
||||||
|
|
||||||
|
using namespace AlibabaCloud::ARMS;
|
||||||
|
using namespace AlibabaCloud::ARMS::Model;
|
||||||
|
|
||||||
|
SendCustomIncidentsResult::SendCustomIncidentsResult() :
|
||||||
|
ServiceResult()
|
||||||
|
{}
|
||||||
|
|
||||||
|
SendCustomIncidentsResult::SendCustomIncidentsResult(const std::string &payload) :
|
||||||
|
ServiceResult()
|
||||||
|
{
|
||||||
|
parse(payload);
|
||||||
|
}
|
||||||
|
|
||||||
|
SendCustomIncidentsResult::~SendCustomIncidentsResult()
|
||||||
|
{}
|
||||||
|
|
||||||
|
void SendCustomIncidentsResult::parse(const std::string &payload)
|
||||||
|
{
|
||||||
|
Json::Reader reader;
|
||||||
|
Json::Value value;
|
||||||
|
reader.parse(payload, value);
|
||||||
|
setRequestId(value["RequestId"].asString());
|
||||||
|
if(!value["Success"].isNull())
|
||||||
|
success_ = value["Success"].asString() == "true";
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
bool SendCustomIncidentsResult::getSuccess()const
|
||||||
|
{
|
||||||
|
return success_;
|
||||||
|
}
|
||||||
|
|
||||||
62
arms/src/model/SendMseIncidentRequest.cc
Normal file
62
arms/src/model/SendMseIncidentRequest.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/SendMseIncidentRequest.h>
|
||||||
|
|
||||||
|
using AlibabaCloud::ARMS::Model::SendMseIncidentRequest;
|
||||||
|
|
||||||
|
SendMseIncidentRequest::SendMseIncidentRequest() :
|
||||||
|
RpcServiceRequest("arms", "2019-08-08", "SendMseIncident")
|
||||||
|
{
|
||||||
|
setMethod(HttpRequest::Method::Post);
|
||||||
|
}
|
||||||
|
|
||||||
|
SendMseIncidentRequest::~SendMseIncidentRequest()
|
||||||
|
{}
|
||||||
|
|
||||||
|
std::string SendMseIncidentRequest::getRegionId()const
|
||||||
|
{
|
||||||
|
return regionId_;
|
||||||
|
}
|
||||||
|
|
||||||
|
void SendMseIncidentRequest::setRegionId(const std::string& regionId)
|
||||||
|
{
|
||||||
|
regionId_ = regionId;
|
||||||
|
setParameter("RegionId", regionId);
|
||||||
|
}
|
||||||
|
|
||||||
|
std::string SendMseIncidentRequest::getIncidents()const
|
||||||
|
{
|
||||||
|
return incidents_;
|
||||||
|
}
|
||||||
|
|
||||||
|
void SendMseIncidentRequest::setIncidents(const std::string& incidents)
|
||||||
|
{
|
||||||
|
incidents_ = incidents;
|
||||||
|
setParameter("Incidents", incidents);
|
||||||
|
}
|
||||||
|
|
||||||
|
std::string SendMseIncidentRequest::getProxyUserId()const
|
||||||
|
{
|
||||||
|
return proxyUserId_;
|
||||||
|
}
|
||||||
|
|
||||||
|
void SendMseIncidentRequest::setProxyUserId(const std::string& proxyUserId)
|
||||||
|
{
|
||||||
|
proxyUserId_ = proxyUserId;
|
||||||
|
setParameter("ProxyUserId", proxyUserId);
|
||||||
|
}
|
||||||
|
|
||||||
@@ -14,31 +14,38 @@
|
|||||||
* limitations under the License.
|
* limitations under the License.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <alibabacloud/openanalytics-open/model/StopVirtualClusterResult.h>
|
#include <alibabacloud/arms/model/SendMseIncidentResult.h>
|
||||||
#include <json/json.h>
|
#include <json/json.h>
|
||||||
|
|
||||||
using namespace AlibabaCloud::Openanalytics_open;
|
using namespace AlibabaCloud::ARMS;
|
||||||
using namespace AlibabaCloud::Openanalytics_open::Model;
|
using namespace AlibabaCloud::ARMS::Model;
|
||||||
|
|
||||||
StopVirtualClusterResult::StopVirtualClusterResult() :
|
SendMseIncidentResult::SendMseIncidentResult() :
|
||||||
ServiceResult()
|
ServiceResult()
|
||||||
{}
|
{}
|
||||||
|
|
||||||
StopVirtualClusterResult::StopVirtualClusterResult(const std::string &payload) :
|
SendMseIncidentResult::SendMseIncidentResult(const std::string &payload) :
|
||||||
ServiceResult()
|
ServiceResult()
|
||||||
{
|
{
|
||||||
parse(payload);
|
parse(payload);
|
||||||
}
|
}
|
||||||
|
|
||||||
StopVirtualClusterResult::~StopVirtualClusterResult()
|
SendMseIncidentResult::~SendMseIncidentResult()
|
||||||
{}
|
{}
|
||||||
|
|
||||||
void StopVirtualClusterResult::parse(const std::string &payload)
|
void SendMseIncidentResult::parse(const std::string &payload)
|
||||||
{
|
{
|
||||||
Json::Reader reader;
|
Json::Reader reader;
|
||||||
Json::Value value;
|
Json::Value value;
|
||||||
reader.parse(payload, value);
|
reader.parse(payload, value);
|
||||||
setRequestId(value["RequestId"].asString());
|
setRequestId(value["RequestId"].asString());
|
||||||
|
if(!value["Success"].isNull())
|
||||||
|
success_ = value["Success"].asString() == "true";
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
bool SendMseIncidentResult::getSuccess()const
|
||||||
|
{
|
||||||
|
return success_;
|
||||||
|
}
|
||||||
|
|
||||||
@@ -27,15 +27,15 @@ UpdateWebhookRequest::UpdateWebhookRequest() :
|
|||||||
UpdateWebhookRequest::~UpdateWebhookRequest()
|
UpdateWebhookRequest::~UpdateWebhookRequest()
|
||||||
{}
|
{}
|
||||||
|
|
||||||
std::string UpdateWebhookRequest::getHeaders()const
|
std::string UpdateWebhookRequest::getHttpHeaders()const
|
||||||
{
|
{
|
||||||
return headers_;
|
return httpHeaders_;
|
||||||
}
|
}
|
||||||
|
|
||||||
void UpdateWebhookRequest::setHeaders(const std::string& headers)
|
void UpdateWebhookRequest::setHttpHeaders(const std::string& httpHeaders)
|
||||||
{
|
{
|
||||||
headers_ = headers;
|
httpHeaders_ = httpHeaders;
|
||||||
setParameter("Headers", headers);
|
setParameter("HttpHeaders", httpHeaders);
|
||||||
}
|
}
|
||||||
|
|
||||||
std::string UpdateWebhookRequest::getMethod()const
|
std::string UpdateWebhookRequest::getMethod()const
|
||||||
@@ -60,15 +60,15 @@ void UpdateWebhookRequest::setContactId(long contactId)
|
|||||||
setParameter("ContactId", std::to_string(contactId));
|
setParameter("ContactId", std::to_string(contactId));
|
||||||
}
|
}
|
||||||
|
|
||||||
std::string UpdateWebhookRequest::getParams()const
|
std::string UpdateWebhookRequest::getHttpParams()const
|
||||||
{
|
{
|
||||||
return params_;
|
return httpParams_;
|
||||||
}
|
}
|
||||||
|
|
||||||
void UpdateWebhookRequest::setParams(const std::string& params)
|
void UpdateWebhookRequest::setHttpParams(const std::string& httpParams)
|
||||||
{
|
{
|
||||||
params_ = params;
|
httpParams_ = httpParams;
|
||||||
setParameter("Params", params);
|
setParameter("HttpParams", httpParams);
|
||||||
}
|
}
|
||||||
|
|
||||||
std::string UpdateWebhookRequest::getProxyUserId()const
|
std::string UpdateWebhookRequest::getProxyUserId()const
|
||||||
|
|||||||
@@ -83,6 +83,8 @@ set(ccc_public_header_model
|
|||||||
include/alibabacloud/ccc/model/DialExResult.h
|
include/alibabacloud/ccc/model/DialExResult.h
|
||||||
include/alibabacloud/ccc/model/DialogueRequest.h
|
include/alibabacloud/ccc/model/DialogueRequest.h
|
||||||
include/alibabacloud/ccc/model/DialogueResult.h
|
include/alibabacloud/ccc/model/DialogueResult.h
|
||||||
|
include/alibabacloud/ccc/model/DisableTrunkProvidersRequest.h
|
||||||
|
include/alibabacloud/ccc/model/DisableTrunkProvidersResult.h
|
||||||
include/alibabacloud/ccc/model/DownloadAllTypeRecordingRequest.h
|
include/alibabacloud/ccc/model/DownloadAllTypeRecordingRequest.h
|
||||||
include/alibabacloud/ccc/model/DownloadAllTypeRecordingResult.h
|
include/alibabacloud/ccc/model/DownloadAllTypeRecordingResult.h
|
||||||
include/alibabacloud/ccc/model/DownloadCabRecordingRequest.h
|
include/alibabacloud/ccc/model/DownloadCabRecordingRequest.h
|
||||||
@@ -151,6 +153,8 @@ set(ccc_public_header_model
|
|||||||
include/alibabacloud/ccc/model/GetTaskListResult.h
|
include/alibabacloud/ccc/model/GetTaskListResult.h
|
||||||
include/alibabacloud/ccc/model/GetUserRequest.h
|
include/alibabacloud/ccc/model/GetUserRequest.h
|
||||||
include/alibabacloud/ccc/model/GetUserResult.h
|
include/alibabacloud/ccc/model/GetUserResult.h
|
||||||
|
include/alibabacloud/ccc/model/GetUserByExtensionRequest.h
|
||||||
|
include/alibabacloud/ccc/model/GetUserByExtensionResult.h
|
||||||
include/alibabacloud/ccc/model/InflightTaskTimeoutRequest.h
|
include/alibabacloud/ccc/model/InflightTaskTimeoutRequest.h
|
||||||
include/alibabacloud/ccc/model/InflightTaskTimeoutResult.h
|
include/alibabacloud/ccc/model/InflightTaskTimeoutResult.h
|
||||||
include/alibabacloud/ccc/model/LaunchAppraiseRequest.h
|
include/alibabacloud/ccc/model/LaunchAppraiseRequest.h
|
||||||
@@ -161,6 +165,8 @@ set(ccc_public_header_model
|
|||||||
include/alibabacloud/ccc/model/ListAgentDevicesResult.h
|
include/alibabacloud/ccc/model/ListAgentDevicesResult.h
|
||||||
include/alibabacloud/ccc/model/ListAgentEventsRequest.h
|
include/alibabacloud/ccc/model/ListAgentEventsRequest.h
|
||||||
include/alibabacloud/ccc/model/ListAgentEventsResult.h
|
include/alibabacloud/ccc/model/ListAgentEventsResult.h
|
||||||
|
include/alibabacloud/ccc/model/ListAgentStateLogsRequest.h
|
||||||
|
include/alibabacloud/ccc/model/ListAgentStateLogsResult.h
|
||||||
include/alibabacloud/ccc/model/ListAgentStatesRequest.h
|
include/alibabacloud/ccc/model/ListAgentStatesRequest.h
|
||||||
include/alibabacloud/ccc/model/ListAgentStatesResult.h
|
include/alibabacloud/ccc/model/ListAgentStatesResult.h
|
||||||
include/alibabacloud/ccc/model/ListAgentSummaryReportsRequest.h
|
include/alibabacloud/ccc/model/ListAgentSummaryReportsRequest.h
|
||||||
@@ -229,6 +235,12 @@ set(ccc_public_header_model
|
|||||||
include/alibabacloud/ccc/model/ListSkillGroupsOfUserResult.h
|
include/alibabacloud/ccc/model/ListSkillGroupsOfUserResult.h
|
||||||
include/alibabacloud/ccc/model/ListSurveysRequest.h
|
include/alibabacloud/ccc/model/ListSurveysRequest.h
|
||||||
include/alibabacloud/ccc/model/ListSurveysResult.h
|
include/alibabacloud/ccc/model/ListSurveysResult.h
|
||||||
|
include/alibabacloud/ccc/model/ListTransferableSkillGroupsRequest.h
|
||||||
|
include/alibabacloud/ccc/model/ListTransferableSkillGroupsResult.h
|
||||||
|
include/alibabacloud/ccc/model/ListTrunkProvidersRequest.h
|
||||||
|
include/alibabacloud/ccc/model/ListTrunkProvidersResult.h
|
||||||
|
include/alibabacloud/ccc/model/ListTrunksOfSkillGroupRequest.h
|
||||||
|
include/alibabacloud/ccc/model/ListTrunksOfSkillGroupResult.h
|
||||||
include/alibabacloud/ccc/model/ListUnreachableContactsRequest.h
|
include/alibabacloud/ccc/model/ListUnreachableContactsRequest.h
|
||||||
include/alibabacloud/ccc/model/ListUnreachableContactsResult.h
|
include/alibabacloud/ccc/model/ListUnreachableContactsResult.h
|
||||||
include/alibabacloud/ccc/model/ListUsersRequest.h
|
include/alibabacloud/ccc/model/ListUsersRequest.h
|
||||||
@@ -245,6 +257,8 @@ set(ccc_public_header_model
|
|||||||
include/alibabacloud/ccc/model/ModifyPhoneNumberResult.h
|
include/alibabacloud/ccc/model/ModifyPhoneNumberResult.h
|
||||||
include/alibabacloud/ccc/model/ModifyPhoneTagsRequest.h
|
include/alibabacloud/ccc/model/ModifyPhoneTagsRequest.h
|
||||||
include/alibabacloud/ccc/model/ModifyPhoneTagsResult.h
|
include/alibabacloud/ccc/model/ModifyPhoneTagsResult.h
|
||||||
|
include/alibabacloud/ccc/model/ModifyPrimaryTrunksOfSkillGroupRequest.h
|
||||||
|
include/alibabacloud/ccc/model/ModifyPrimaryTrunksOfSkillGroupResult.h
|
||||||
include/alibabacloud/ccc/model/ModifyPrivacyNumberCallDetailRequest.h
|
include/alibabacloud/ccc/model/ModifyPrivacyNumberCallDetailRequest.h
|
||||||
include/alibabacloud/ccc/model/ModifyPrivacyNumberCallDetailResult.h
|
include/alibabacloud/ccc/model/ModifyPrivacyNumberCallDetailResult.h
|
||||||
include/alibabacloud/ccc/model/ModifyScenarioRequest.h
|
include/alibabacloud/ccc/model/ModifyScenarioRequest.h
|
||||||
@@ -366,6 +380,8 @@ set(ccc_src
|
|||||||
src/model/DialExResult.cc
|
src/model/DialExResult.cc
|
||||||
src/model/DialogueRequest.cc
|
src/model/DialogueRequest.cc
|
||||||
src/model/DialogueResult.cc
|
src/model/DialogueResult.cc
|
||||||
|
src/model/DisableTrunkProvidersRequest.cc
|
||||||
|
src/model/DisableTrunkProvidersResult.cc
|
||||||
src/model/DownloadAllTypeRecordingRequest.cc
|
src/model/DownloadAllTypeRecordingRequest.cc
|
||||||
src/model/DownloadAllTypeRecordingResult.cc
|
src/model/DownloadAllTypeRecordingResult.cc
|
||||||
src/model/DownloadCabRecordingRequest.cc
|
src/model/DownloadCabRecordingRequest.cc
|
||||||
@@ -434,6 +450,8 @@ set(ccc_src
|
|||||||
src/model/GetTaskListResult.cc
|
src/model/GetTaskListResult.cc
|
||||||
src/model/GetUserRequest.cc
|
src/model/GetUserRequest.cc
|
||||||
src/model/GetUserResult.cc
|
src/model/GetUserResult.cc
|
||||||
|
src/model/GetUserByExtensionRequest.cc
|
||||||
|
src/model/GetUserByExtensionResult.cc
|
||||||
src/model/InflightTaskTimeoutRequest.cc
|
src/model/InflightTaskTimeoutRequest.cc
|
||||||
src/model/InflightTaskTimeoutResult.cc
|
src/model/InflightTaskTimeoutResult.cc
|
||||||
src/model/LaunchAppraiseRequest.cc
|
src/model/LaunchAppraiseRequest.cc
|
||||||
@@ -444,6 +462,8 @@ set(ccc_src
|
|||||||
src/model/ListAgentDevicesResult.cc
|
src/model/ListAgentDevicesResult.cc
|
||||||
src/model/ListAgentEventsRequest.cc
|
src/model/ListAgentEventsRequest.cc
|
||||||
src/model/ListAgentEventsResult.cc
|
src/model/ListAgentEventsResult.cc
|
||||||
|
src/model/ListAgentStateLogsRequest.cc
|
||||||
|
src/model/ListAgentStateLogsResult.cc
|
||||||
src/model/ListAgentStatesRequest.cc
|
src/model/ListAgentStatesRequest.cc
|
||||||
src/model/ListAgentStatesResult.cc
|
src/model/ListAgentStatesResult.cc
|
||||||
src/model/ListAgentSummaryReportsRequest.cc
|
src/model/ListAgentSummaryReportsRequest.cc
|
||||||
@@ -512,6 +532,12 @@ set(ccc_src
|
|||||||
src/model/ListSkillGroupsOfUserResult.cc
|
src/model/ListSkillGroupsOfUserResult.cc
|
||||||
src/model/ListSurveysRequest.cc
|
src/model/ListSurveysRequest.cc
|
||||||
src/model/ListSurveysResult.cc
|
src/model/ListSurveysResult.cc
|
||||||
|
src/model/ListTransferableSkillGroupsRequest.cc
|
||||||
|
src/model/ListTransferableSkillGroupsResult.cc
|
||||||
|
src/model/ListTrunkProvidersRequest.cc
|
||||||
|
src/model/ListTrunkProvidersResult.cc
|
||||||
|
src/model/ListTrunksOfSkillGroupRequest.cc
|
||||||
|
src/model/ListTrunksOfSkillGroupResult.cc
|
||||||
src/model/ListUnreachableContactsRequest.cc
|
src/model/ListUnreachableContactsRequest.cc
|
||||||
src/model/ListUnreachableContactsResult.cc
|
src/model/ListUnreachableContactsResult.cc
|
||||||
src/model/ListUsersRequest.cc
|
src/model/ListUsersRequest.cc
|
||||||
@@ -528,6 +554,8 @@ set(ccc_src
|
|||||||
src/model/ModifyPhoneNumberResult.cc
|
src/model/ModifyPhoneNumberResult.cc
|
||||||
src/model/ModifyPhoneTagsRequest.cc
|
src/model/ModifyPhoneTagsRequest.cc
|
||||||
src/model/ModifyPhoneTagsResult.cc
|
src/model/ModifyPhoneTagsResult.cc
|
||||||
|
src/model/ModifyPrimaryTrunksOfSkillGroupRequest.cc
|
||||||
|
src/model/ModifyPrimaryTrunksOfSkillGroupResult.cc
|
||||||
src/model/ModifyPrivacyNumberCallDetailRequest.cc
|
src/model/ModifyPrivacyNumberCallDetailRequest.cc
|
||||||
src/model/ModifyPrivacyNumberCallDetailResult.cc
|
src/model/ModifyPrivacyNumberCallDetailResult.cc
|
||||||
src/model/ModifyScenarioRequest.cc
|
src/model/ModifyScenarioRequest.cc
|
||||||
|
|||||||
@@ -84,6 +84,8 @@
|
|||||||
#include "model/DialExResult.h"
|
#include "model/DialExResult.h"
|
||||||
#include "model/DialogueRequest.h"
|
#include "model/DialogueRequest.h"
|
||||||
#include "model/DialogueResult.h"
|
#include "model/DialogueResult.h"
|
||||||
|
#include "model/DisableTrunkProvidersRequest.h"
|
||||||
|
#include "model/DisableTrunkProvidersResult.h"
|
||||||
#include "model/DownloadAllTypeRecordingRequest.h"
|
#include "model/DownloadAllTypeRecordingRequest.h"
|
||||||
#include "model/DownloadAllTypeRecordingResult.h"
|
#include "model/DownloadAllTypeRecordingResult.h"
|
||||||
#include "model/DownloadCabRecordingRequest.h"
|
#include "model/DownloadCabRecordingRequest.h"
|
||||||
@@ -152,6 +154,8 @@
|
|||||||
#include "model/GetTaskListResult.h"
|
#include "model/GetTaskListResult.h"
|
||||||
#include "model/GetUserRequest.h"
|
#include "model/GetUserRequest.h"
|
||||||
#include "model/GetUserResult.h"
|
#include "model/GetUserResult.h"
|
||||||
|
#include "model/GetUserByExtensionRequest.h"
|
||||||
|
#include "model/GetUserByExtensionResult.h"
|
||||||
#include "model/InflightTaskTimeoutRequest.h"
|
#include "model/InflightTaskTimeoutRequest.h"
|
||||||
#include "model/InflightTaskTimeoutResult.h"
|
#include "model/InflightTaskTimeoutResult.h"
|
||||||
#include "model/LaunchAppraiseRequest.h"
|
#include "model/LaunchAppraiseRequest.h"
|
||||||
@@ -162,6 +166,8 @@
|
|||||||
#include "model/ListAgentDevicesResult.h"
|
#include "model/ListAgentDevicesResult.h"
|
||||||
#include "model/ListAgentEventsRequest.h"
|
#include "model/ListAgentEventsRequest.h"
|
||||||
#include "model/ListAgentEventsResult.h"
|
#include "model/ListAgentEventsResult.h"
|
||||||
|
#include "model/ListAgentStateLogsRequest.h"
|
||||||
|
#include "model/ListAgentStateLogsResult.h"
|
||||||
#include "model/ListAgentStatesRequest.h"
|
#include "model/ListAgentStatesRequest.h"
|
||||||
#include "model/ListAgentStatesResult.h"
|
#include "model/ListAgentStatesResult.h"
|
||||||
#include "model/ListAgentSummaryReportsRequest.h"
|
#include "model/ListAgentSummaryReportsRequest.h"
|
||||||
@@ -230,6 +236,12 @@
|
|||||||
#include "model/ListSkillGroupsOfUserResult.h"
|
#include "model/ListSkillGroupsOfUserResult.h"
|
||||||
#include "model/ListSurveysRequest.h"
|
#include "model/ListSurveysRequest.h"
|
||||||
#include "model/ListSurveysResult.h"
|
#include "model/ListSurveysResult.h"
|
||||||
|
#include "model/ListTransferableSkillGroupsRequest.h"
|
||||||
|
#include "model/ListTransferableSkillGroupsResult.h"
|
||||||
|
#include "model/ListTrunkProvidersRequest.h"
|
||||||
|
#include "model/ListTrunkProvidersResult.h"
|
||||||
|
#include "model/ListTrunksOfSkillGroupRequest.h"
|
||||||
|
#include "model/ListTrunksOfSkillGroupResult.h"
|
||||||
#include "model/ListUnreachableContactsRequest.h"
|
#include "model/ListUnreachableContactsRequest.h"
|
||||||
#include "model/ListUnreachableContactsResult.h"
|
#include "model/ListUnreachableContactsResult.h"
|
||||||
#include "model/ListUsersRequest.h"
|
#include "model/ListUsersRequest.h"
|
||||||
@@ -246,6 +258,8 @@
|
|||||||
#include "model/ModifyPhoneNumberResult.h"
|
#include "model/ModifyPhoneNumberResult.h"
|
||||||
#include "model/ModifyPhoneTagsRequest.h"
|
#include "model/ModifyPhoneTagsRequest.h"
|
||||||
#include "model/ModifyPhoneTagsResult.h"
|
#include "model/ModifyPhoneTagsResult.h"
|
||||||
|
#include "model/ModifyPrimaryTrunksOfSkillGroupRequest.h"
|
||||||
|
#include "model/ModifyPrimaryTrunksOfSkillGroupResult.h"
|
||||||
#include "model/ModifyPrivacyNumberCallDetailRequest.h"
|
#include "model/ModifyPrivacyNumberCallDetailRequest.h"
|
||||||
#include "model/ModifyPrivacyNumberCallDetailResult.h"
|
#include "model/ModifyPrivacyNumberCallDetailResult.h"
|
||||||
#include "model/ModifyScenarioRequest.h"
|
#include "model/ModifyScenarioRequest.h"
|
||||||
@@ -404,6 +418,9 @@ namespace AlibabaCloud
|
|||||||
typedef Outcome<Error, Model::DialogueResult> DialogueOutcome;
|
typedef Outcome<Error, Model::DialogueResult> DialogueOutcome;
|
||||||
typedef std::future<DialogueOutcome> DialogueOutcomeCallable;
|
typedef std::future<DialogueOutcome> DialogueOutcomeCallable;
|
||||||
typedef std::function<void(const CCCClient*, const Model::DialogueRequest&, const DialogueOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DialogueAsyncHandler;
|
typedef std::function<void(const CCCClient*, const Model::DialogueRequest&, const DialogueOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DialogueAsyncHandler;
|
||||||
|
typedef Outcome<Error, Model::DisableTrunkProvidersResult> DisableTrunkProvidersOutcome;
|
||||||
|
typedef std::future<DisableTrunkProvidersOutcome> DisableTrunkProvidersOutcomeCallable;
|
||||||
|
typedef std::function<void(const CCCClient*, const Model::DisableTrunkProvidersRequest&, const DisableTrunkProvidersOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DisableTrunkProvidersAsyncHandler;
|
||||||
typedef Outcome<Error, Model::DownloadAllTypeRecordingResult> DownloadAllTypeRecordingOutcome;
|
typedef Outcome<Error, Model::DownloadAllTypeRecordingResult> DownloadAllTypeRecordingOutcome;
|
||||||
typedef std::future<DownloadAllTypeRecordingOutcome> DownloadAllTypeRecordingOutcomeCallable;
|
typedef std::future<DownloadAllTypeRecordingOutcome> DownloadAllTypeRecordingOutcomeCallable;
|
||||||
typedef std::function<void(const CCCClient*, const Model::DownloadAllTypeRecordingRequest&, const DownloadAllTypeRecordingOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DownloadAllTypeRecordingAsyncHandler;
|
typedef std::function<void(const CCCClient*, const Model::DownloadAllTypeRecordingRequest&, const DownloadAllTypeRecordingOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DownloadAllTypeRecordingAsyncHandler;
|
||||||
@@ -506,6 +523,9 @@ namespace AlibabaCloud
|
|||||||
typedef Outcome<Error, Model::GetUserResult> GetUserOutcome;
|
typedef Outcome<Error, Model::GetUserResult> GetUserOutcome;
|
||||||
typedef std::future<GetUserOutcome> GetUserOutcomeCallable;
|
typedef std::future<GetUserOutcome> GetUserOutcomeCallable;
|
||||||
typedef std::function<void(const CCCClient*, const Model::GetUserRequest&, const GetUserOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetUserAsyncHandler;
|
typedef std::function<void(const CCCClient*, const Model::GetUserRequest&, const GetUserOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetUserAsyncHandler;
|
||||||
|
typedef Outcome<Error, Model::GetUserByExtensionResult> GetUserByExtensionOutcome;
|
||||||
|
typedef std::future<GetUserByExtensionOutcome> GetUserByExtensionOutcomeCallable;
|
||||||
|
typedef std::function<void(const CCCClient*, const Model::GetUserByExtensionRequest&, const GetUserByExtensionOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetUserByExtensionAsyncHandler;
|
||||||
typedef Outcome<Error, Model::InflightTaskTimeoutResult> InflightTaskTimeoutOutcome;
|
typedef Outcome<Error, Model::InflightTaskTimeoutResult> InflightTaskTimeoutOutcome;
|
||||||
typedef std::future<InflightTaskTimeoutOutcome> InflightTaskTimeoutOutcomeCallable;
|
typedef std::future<InflightTaskTimeoutOutcome> InflightTaskTimeoutOutcomeCallable;
|
||||||
typedef std::function<void(const CCCClient*, const Model::InflightTaskTimeoutRequest&, const InflightTaskTimeoutOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> InflightTaskTimeoutAsyncHandler;
|
typedef std::function<void(const CCCClient*, const Model::InflightTaskTimeoutRequest&, const InflightTaskTimeoutOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> InflightTaskTimeoutAsyncHandler;
|
||||||
@@ -521,6 +541,9 @@ namespace AlibabaCloud
|
|||||||
typedef Outcome<Error, Model::ListAgentEventsResult> ListAgentEventsOutcome;
|
typedef Outcome<Error, Model::ListAgentEventsResult> ListAgentEventsOutcome;
|
||||||
typedef std::future<ListAgentEventsOutcome> ListAgentEventsOutcomeCallable;
|
typedef std::future<ListAgentEventsOutcome> ListAgentEventsOutcomeCallable;
|
||||||
typedef std::function<void(const CCCClient*, const Model::ListAgentEventsRequest&, const ListAgentEventsOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ListAgentEventsAsyncHandler;
|
typedef std::function<void(const CCCClient*, const Model::ListAgentEventsRequest&, const ListAgentEventsOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ListAgentEventsAsyncHandler;
|
||||||
|
typedef Outcome<Error, Model::ListAgentStateLogsResult> ListAgentStateLogsOutcome;
|
||||||
|
typedef std::future<ListAgentStateLogsOutcome> ListAgentStateLogsOutcomeCallable;
|
||||||
|
typedef std::function<void(const CCCClient*, const Model::ListAgentStateLogsRequest&, const ListAgentStateLogsOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ListAgentStateLogsAsyncHandler;
|
||||||
typedef Outcome<Error, Model::ListAgentStatesResult> ListAgentStatesOutcome;
|
typedef Outcome<Error, Model::ListAgentStatesResult> ListAgentStatesOutcome;
|
||||||
typedef std::future<ListAgentStatesOutcome> ListAgentStatesOutcomeCallable;
|
typedef std::future<ListAgentStatesOutcome> ListAgentStatesOutcomeCallable;
|
||||||
typedef std::function<void(const CCCClient*, const Model::ListAgentStatesRequest&, const ListAgentStatesOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ListAgentStatesAsyncHandler;
|
typedef std::function<void(const CCCClient*, const Model::ListAgentStatesRequest&, const ListAgentStatesOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ListAgentStatesAsyncHandler;
|
||||||
@@ -623,6 +646,15 @@ namespace AlibabaCloud
|
|||||||
typedef Outcome<Error, Model::ListSurveysResult> ListSurveysOutcome;
|
typedef Outcome<Error, Model::ListSurveysResult> ListSurveysOutcome;
|
||||||
typedef std::future<ListSurveysOutcome> ListSurveysOutcomeCallable;
|
typedef std::future<ListSurveysOutcome> ListSurveysOutcomeCallable;
|
||||||
typedef std::function<void(const CCCClient*, const Model::ListSurveysRequest&, const ListSurveysOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ListSurveysAsyncHandler;
|
typedef std::function<void(const CCCClient*, const Model::ListSurveysRequest&, const ListSurveysOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ListSurveysAsyncHandler;
|
||||||
|
typedef Outcome<Error, Model::ListTransferableSkillGroupsResult> ListTransferableSkillGroupsOutcome;
|
||||||
|
typedef std::future<ListTransferableSkillGroupsOutcome> ListTransferableSkillGroupsOutcomeCallable;
|
||||||
|
typedef std::function<void(const CCCClient*, const Model::ListTransferableSkillGroupsRequest&, const ListTransferableSkillGroupsOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ListTransferableSkillGroupsAsyncHandler;
|
||||||
|
typedef Outcome<Error, Model::ListTrunkProvidersResult> ListTrunkProvidersOutcome;
|
||||||
|
typedef std::future<ListTrunkProvidersOutcome> ListTrunkProvidersOutcomeCallable;
|
||||||
|
typedef std::function<void(const CCCClient*, const Model::ListTrunkProvidersRequest&, const ListTrunkProvidersOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ListTrunkProvidersAsyncHandler;
|
||||||
|
typedef Outcome<Error, Model::ListTrunksOfSkillGroupResult> ListTrunksOfSkillGroupOutcome;
|
||||||
|
typedef std::future<ListTrunksOfSkillGroupOutcome> ListTrunksOfSkillGroupOutcomeCallable;
|
||||||
|
typedef std::function<void(const CCCClient*, const Model::ListTrunksOfSkillGroupRequest&, const ListTrunksOfSkillGroupOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ListTrunksOfSkillGroupAsyncHandler;
|
||||||
typedef Outcome<Error, Model::ListUnreachableContactsResult> ListUnreachableContactsOutcome;
|
typedef Outcome<Error, Model::ListUnreachableContactsResult> ListUnreachableContactsOutcome;
|
||||||
typedef std::future<ListUnreachableContactsOutcome> ListUnreachableContactsOutcomeCallable;
|
typedef std::future<ListUnreachableContactsOutcome> ListUnreachableContactsOutcomeCallable;
|
||||||
typedef std::function<void(const CCCClient*, const Model::ListUnreachableContactsRequest&, const ListUnreachableContactsOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ListUnreachableContactsAsyncHandler;
|
typedef std::function<void(const CCCClient*, const Model::ListUnreachableContactsRequest&, const ListUnreachableContactsOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ListUnreachableContactsAsyncHandler;
|
||||||
@@ -647,6 +679,9 @@ namespace AlibabaCloud
|
|||||||
typedef Outcome<Error, Model::ModifyPhoneTagsResult> ModifyPhoneTagsOutcome;
|
typedef Outcome<Error, Model::ModifyPhoneTagsResult> ModifyPhoneTagsOutcome;
|
||||||
typedef std::future<ModifyPhoneTagsOutcome> ModifyPhoneTagsOutcomeCallable;
|
typedef std::future<ModifyPhoneTagsOutcome> ModifyPhoneTagsOutcomeCallable;
|
||||||
typedef std::function<void(const CCCClient*, const Model::ModifyPhoneTagsRequest&, const ModifyPhoneTagsOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ModifyPhoneTagsAsyncHandler;
|
typedef std::function<void(const CCCClient*, const Model::ModifyPhoneTagsRequest&, const ModifyPhoneTagsOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ModifyPhoneTagsAsyncHandler;
|
||||||
|
typedef Outcome<Error, Model::ModifyPrimaryTrunksOfSkillGroupResult> ModifyPrimaryTrunksOfSkillGroupOutcome;
|
||||||
|
typedef std::future<ModifyPrimaryTrunksOfSkillGroupOutcome> ModifyPrimaryTrunksOfSkillGroupOutcomeCallable;
|
||||||
|
typedef std::function<void(const CCCClient*, const Model::ModifyPrimaryTrunksOfSkillGroupRequest&, const ModifyPrimaryTrunksOfSkillGroupOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ModifyPrimaryTrunksOfSkillGroupAsyncHandler;
|
||||||
typedef Outcome<Error, Model::ModifyPrivacyNumberCallDetailResult> ModifyPrivacyNumberCallDetailOutcome;
|
typedef Outcome<Error, Model::ModifyPrivacyNumberCallDetailResult> ModifyPrivacyNumberCallDetailOutcome;
|
||||||
typedef std::future<ModifyPrivacyNumberCallDetailOutcome> ModifyPrivacyNumberCallDetailOutcomeCallable;
|
typedef std::future<ModifyPrivacyNumberCallDetailOutcome> ModifyPrivacyNumberCallDetailOutcomeCallable;
|
||||||
typedef std::function<void(const CCCClient*, const Model::ModifyPrivacyNumberCallDetailRequest&, const ModifyPrivacyNumberCallDetailOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ModifyPrivacyNumberCallDetailAsyncHandler;
|
typedef std::function<void(const CCCClient*, const Model::ModifyPrivacyNumberCallDetailRequest&, const ModifyPrivacyNumberCallDetailOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ModifyPrivacyNumberCallDetailAsyncHandler;
|
||||||
@@ -829,6 +864,9 @@ namespace AlibabaCloud
|
|||||||
DialogueOutcome dialogue(const Model::DialogueRequest &request)const;
|
DialogueOutcome dialogue(const Model::DialogueRequest &request)const;
|
||||||
void dialogueAsync(const Model::DialogueRequest& request, const DialogueAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
void dialogueAsync(const Model::DialogueRequest& request, const DialogueAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||||
DialogueOutcomeCallable dialogueCallable(const Model::DialogueRequest& request) const;
|
DialogueOutcomeCallable dialogueCallable(const Model::DialogueRequest& request) const;
|
||||||
|
DisableTrunkProvidersOutcome disableTrunkProviders(const Model::DisableTrunkProvidersRequest &request)const;
|
||||||
|
void disableTrunkProvidersAsync(const Model::DisableTrunkProvidersRequest& request, const DisableTrunkProvidersAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||||
|
DisableTrunkProvidersOutcomeCallable disableTrunkProvidersCallable(const Model::DisableTrunkProvidersRequest& request) const;
|
||||||
DownloadAllTypeRecordingOutcome downloadAllTypeRecording(const Model::DownloadAllTypeRecordingRequest &request)const;
|
DownloadAllTypeRecordingOutcome downloadAllTypeRecording(const Model::DownloadAllTypeRecordingRequest &request)const;
|
||||||
void downloadAllTypeRecordingAsync(const Model::DownloadAllTypeRecordingRequest& request, const DownloadAllTypeRecordingAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
void downloadAllTypeRecordingAsync(const Model::DownloadAllTypeRecordingRequest& request, const DownloadAllTypeRecordingAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||||
DownloadAllTypeRecordingOutcomeCallable downloadAllTypeRecordingCallable(const Model::DownloadAllTypeRecordingRequest& request) const;
|
DownloadAllTypeRecordingOutcomeCallable downloadAllTypeRecordingCallable(const Model::DownloadAllTypeRecordingRequest& request) const;
|
||||||
@@ -931,6 +969,9 @@ namespace AlibabaCloud
|
|||||||
GetUserOutcome getUser(const Model::GetUserRequest &request)const;
|
GetUserOutcome getUser(const Model::GetUserRequest &request)const;
|
||||||
void getUserAsync(const Model::GetUserRequest& request, const GetUserAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
void getUserAsync(const Model::GetUserRequest& request, const GetUserAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||||
GetUserOutcomeCallable getUserCallable(const Model::GetUserRequest& request) const;
|
GetUserOutcomeCallable getUserCallable(const Model::GetUserRequest& request) const;
|
||||||
|
GetUserByExtensionOutcome getUserByExtension(const Model::GetUserByExtensionRequest &request)const;
|
||||||
|
void getUserByExtensionAsync(const Model::GetUserByExtensionRequest& request, const GetUserByExtensionAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||||
|
GetUserByExtensionOutcomeCallable getUserByExtensionCallable(const Model::GetUserByExtensionRequest& request) const;
|
||||||
InflightTaskTimeoutOutcome inflightTaskTimeout(const Model::InflightTaskTimeoutRequest &request)const;
|
InflightTaskTimeoutOutcome inflightTaskTimeout(const Model::InflightTaskTimeoutRequest &request)const;
|
||||||
void inflightTaskTimeoutAsync(const Model::InflightTaskTimeoutRequest& request, const InflightTaskTimeoutAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
void inflightTaskTimeoutAsync(const Model::InflightTaskTimeoutRequest& request, const InflightTaskTimeoutAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||||
InflightTaskTimeoutOutcomeCallable inflightTaskTimeoutCallable(const Model::InflightTaskTimeoutRequest& request) const;
|
InflightTaskTimeoutOutcomeCallable inflightTaskTimeoutCallable(const Model::InflightTaskTimeoutRequest& request) const;
|
||||||
@@ -946,6 +987,9 @@ namespace AlibabaCloud
|
|||||||
ListAgentEventsOutcome listAgentEvents(const Model::ListAgentEventsRequest &request)const;
|
ListAgentEventsOutcome listAgentEvents(const Model::ListAgentEventsRequest &request)const;
|
||||||
void listAgentEventsAsync(const Model::ListAgentEventsRequest& request, const ListAgentEventsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
void listAgentEventsAsync(const Model::ListAgentEventsRequest& request, const ListAgentEventsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||||
ListAgentEventsOutcomeCallable listAgentEventsCallable(const Model::ListAgentEventsRequest& request) const;
|
ListAgentEventsOutcomeCallable listAgentEventsCallable(const Model::ListAgentEventsRequest& request) const;
|
||||||
|
ListAgentStateLogsOutcome listAgentStateLogs(const Model::ListAgentStateLogsRequest &request)const;
|
||||||
|
void listAgentStateLogsAsync(const Model::ListAgentStateLogsRequest& request, const ListAgentStateLogsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||||
|
ListAgentStateLogsOutcomeCallable listAgentStateLogsCallable(const Model::ListAgentStateLogsRequest& request) const;
|
||||||
ListAgentStatesOutcome listAgentStates(const Model::ListAgentStatesRequest &request)const;
|
ListAgentStatesOutcome listAgentStates(const Model::ListAgentStatesRequest &request)const;
|
||||||
void listAgentStatesAsync(const Model::ListAgentStatesRequest& request, const ListAgentStatesAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
void listAgentStatesAsync(const Model::ListAgentStatesRequest& request, const ListAgentStatesAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||||
ListAgentStatesOutcomeCallable listAgentStatesCallable(const Model::ListAgentStatesRequest& request) const;
|
ListAgentStatesOutcomeCallable listAgentStatesCallable(const Model::ListAgentStatesRequest& request) const;
|
||||||
@@ -1048,6 +1092,15 @@ namespace AlibabaCloud
|
|||||||
ListSurveysOutcome listSurveys(const Model::ListSurveysRequest &request)const;
|
ListSurveysOutcome listSurveys(const Model::ListSurveysRequest &request)const;
|
||||||
void listSurveysAsync(const Model::ListSurveysRequest& request, const ListSurveysAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
void listSurveysAsync(const Model::ListSurveysRequest& request, const ListSurveysAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||||
ListSurveysOutcomeCallable listSurveysCallable(const Model::ListSurveysRequest& request) const;
|
ListSurveysOutcomeCallable listSurveysCallable(const Model::ListSurveysRequest& request) const;
|
||||||
|
ListTransferableSkillGroupsOutcome listTransferableSkillGroups(const Model::ListTransferableSkillGroupsRequest &request)const;
|
||||||
|
void listTransferableSkillGroupsAsync(const Model::ListTransferableSkillGroupsRequest& request, const ListTransferableSkillGroupsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||||
|
ListTransferableSkillGroupsOutcomeCallable listTransferableSkillGroupsCallable(const Model::ListTransferableSkillGroupsRequest& request) const;
|
||||||
|
ListTrunkProvidersOutcome listTrunkProviders(const Model::ListTrunkProvidersRequest &request)const;
|
||||||
|
void listTrunkProvidersAsync(const Model::ListTrunkProvidersRequest& request, const ListTrunkProvidersAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||||
|
ListTrunkProvidersOutcomeCallable listTrunkProvidersCallable(const Model::ListTrunkProvidersRequest& request) const;
|
||||||
|
ListTrunksOfSkillGroupOutcome listTrunksOfSkillGroup(const Model::ListTrunksOfSkillGroupRequest &request)const;
|
||||||
|
void listTrunksOfSkillGroupAsync(const Model::ListTrunksOfSkillGroupRequest& request, const ListTrunksOfSkillGroupAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||||
|
ListTrunksOfSkillGroupOutcomeCallable listTrunksOfSkillGroupCallable(const Model::ListTrunksOfSkillGroupRequest& request) const;
|
||||||
ListUnreachableContactsOutcome listUnreachableContacts(const Model::ListUnreachableContactsRequest &request)const;
|
ListUnreachableContactsOutcome listUnreachableContacts(const Model::ListUnreachableContactsRequest &request)const;
|
||||||
void listUnreachableContactsAsync(const Model::ListUnreachableContactsRequest& request, const ListUnreachableContactsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
void listUnreachableContactsAsync(const Model::ListUnreachableContactsRequest& request, const ListUnreachableContactsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||||
ListUnreachableContactsOutcomeCallable listUnreachableContactsCallable(const Model::ListUnreachableContactsRequest& request) const;
|
ListUnreachableContactsOutcomeCallable listUnreachableContactsCallable(const Model::ListUnreachableContactsRequest& request) const;
|
||||||
@@ -1072,6 +1125,9 @@ namespace AlibabaCloud
|
|||||||
ModifyPhoneTagsOutcome modifyPhoneTags(const Model::ModifyPhoneTagsRequest &request)const;
|
ModifyPhoneTagsOutcome modifyPhoneTags(const Model::ModifyPhoneTagsRequest &request)const;
|
||||||
void modifyPhoneTagsAsync(const Model::ModifyPhoneTagsRequest& request, const ModifyPhoneTagsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
void modifyPhoneTagsAsync(const Model::ModifyPhoneTagsRequest& request, const ModifyPhoneTagsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||||
ModifyPhoneTagsOutcomeCallable modifyPhoneTagsCallable(const Model::ModifyPhoneTagsRequest& request) const;
|
ModifyPhoneTagsOutcomeCallable modifyPhoneTagsCallable(const Model::ModifyPhoneTagsRequest& request) const;
|
||||||
|
ModifyPrimaryTrunksOfSkillGroupOutcome modifyPrimaryTrunksOfSkillGroup(const Model::ModifyPrimaryTrunksOfSkillGroupRequest &request)const;
|
||||||
|
void modifyPrimaryTrunksOfSkillGroupAsync(const Model::ModifyPrimaryTrunksOfSkillGroupRequest& request, const ModifyPrimaryTrunksOfSkillGroupAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||||
|
ModifyPrimaryTrunksOfSkillGroupOutcomeCallable modifyPrimaryTrunksOfSkillGroupCallable(const Model::ModifyPrimaryTrunksOfSkillGroupRequest& request) const;
|
||||||
ModifyPrivacyNumberCallDetailOutcome modifyPrivacyNumberCallDetail(const Model::ModifyPrivacyNumberCallDetailRequest &request)const;
|
ModifyPrivacyNumberCallDetailOutcome modifyPrivacyNumberCallDetail(const Model::ModifyPrivacyNumberCallDetailRequest &request)const;
|
||||||
void modifyPrivacyNumberCallDetailAsync(const Model::ModifyPrivacyNumberCallDetailRequest& request, const ModifyPrivacyNumberCallDetailAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
void modifyPrivacyNumberCallDetailAsync(const Model::ModifyPrivacyNumberCallDetailRequest& request, const ModifyPrivacyNumberCallDetailAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||||
ModifyPrivacyNumberCallDetailOutcomeCallable modifyPrivacyNumberCallDetailCallable(const Model::ModifyPrivacyNumberCallDetailRequest& request) const;
|
ModifyPrivacyNumberCallDetailOutcomeCallable modifyPrivacyNumberCallDetailCallable(const Model::ModifyPrivacyNumberCallDetailRequest& request) const;
|
||||||
|
|||||||
@@ -51,6 +51,8 @@ namespace AlibabaCloud
|
|||||||
void setPhoneNumberList(const std::vector<std::string>& phoneNumberList);
|
void setPhoneNumberList(const std::vector<std::string>& phoneNumberList);
|
||||||
std::string getServiceTag()const;
|
std::string getServiceTag()const;
|
||||||
void setServiceTag(const std::string& serviceTag);
|
void setServiceTag(const std::string& serviceTag);
|
||||||
|
std::string getSipTag()const;
|
||||||
|
void setSipTag(const std::string& sipTag);
|
||||||
std::string getRegionNameCity()const;
|
std::string getRegionNameCity()const;
|
||||||
void setRegionNameCity(const std::string& regionNameCity);
|
void setRegionNameCity(const std::string& regionNameCity);
|
||||||
|
|
||||||
@@ -63,6 +65,7 @@ namespace AlibabaCloud
|
|||||||
std::string provider_;
|
std::string provider_;
|
||||||
std::vector<std::string> phoneNumberList_;
|
std::vector<std::string> phoneNumberList_;
|
||||||
std::string serviceTag_;
|
std::string serviceTag_;
|
||||||
|
std::string sipTag_;
|
||||||
std::string regionNameCity_;
|
std::string regionNameCity_;
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -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_CCC_MODEL_DISABLETRUNKPROVIDERSREQUEST_H_
|
||||||
|
#define ALIBABACLOUD_CCC_MODEL_DISABLETRUNKPROVIDERSREQUEST_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 DisableTrunkProvidersRequest : public RpcServiceRequest
|
||||||
|
{
|
||||||
|
|
||||||
|
public:
|
||||||
|
DisableTrunkProvidersRequest();
|
||||||
|
~DisableTrunkProvidersRequest();
|
||||||
|
|
||||||
|
std::vector<std::string> getProviderName()const;
|
||||||
|
void setProviderName(const std::vector<std::string>& providerName);
|
||||||
|
std::string getAccessKeyId()const;
|
||||||
|
void setAccessKeyId(const std::string& accessKeyId);
|
||||||
|
|
||||||
|
private:
|
||||||
|
std::vector<std::string> providerName_;
|
||||||
|
std::string accessKeyId_;
|
||||||
|
|
||||||
|
};
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
#endif // !ALIBABACLOUD_CCC_MODEL_DISABLETRUNKPROVIDERSREQUEST_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_CCC_MODEL_DISABLETRUNKPROVIDERSRESULT_H_
|
||||||
|
#define ALIBABACLOUD_CCC_MODEL_DISABLETRUNKPROVIDERSRESULT_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 DisableTrunkProvidersResult : public ServiceResult
|
||||||
|
{
|
||||||
|
public:
|
||||||
|
|
||||||
|
|
||||||
|
DisableTrunkProvidersResult();
|
||||||
|
explicit DisableTrunkProvidersResult(const std::string &payload);
|
||||||
|
~DisableTrunkProvidersResult();
|
||||||
|
std::string getMessage()const;
|
||||||
|
int getHttpStatusCode()const;
|
||||||
|
std::string getCode()const;
|
||||||
|
bool getSuccess()const;
|
||||||
|
|
||||||
|
protected:
|
||||||
|
void parse(const std::string &payload);
|
||||||
|
private:
|
||||||
|
std::string message_;
|
||||||
|
int httpStatusCode_;
|
||||||
|
std::string code_;
|
||||||
|
bool success_;
|
||||||
|
|
||||||
|
};
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
#endif // !ALIBABACLOUD_CCC_MODEL_DISABLETRUNKPROVIDERSRESULT_H_
|
||||||
@@ -14,35 +14,38 @@
|
|||||||
* limitations under the License.
|
* limitations under the License.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifndef ALIBABACLOUD_VOICENAVIGATOR_MODEL_DUPLICATEINSTANCEREQUEST_H_
|
#ifndef ALIBABACLOUD_CCC_MODEL_GETUSERBYEXTENSIONREQUEST_H_
|
||||||
#define ALIBABACLOUD_VOICENAVIGATOR_MODEL_DUPLICATEINSTANCEREQUEST_H_
|
#define ALIBABACLOUD_CCC_MODEL_GETUSERBYEXTENSIONREQUEST_H_
|
||||||
|
|
||||||
#include <string>
|
#include <string>
|
||||||
#include <vector>
|
#include <vector>
|
||||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||||
#include <alibabacloud/voicenavigator/VoiceNavigatorExport.h>
|
#include <alibabacloud/ccc/CCCExport.h>
|
||||||
|
|
||||||
namespace AlibabaCloud
|
namespace AlibabaCloud
|
||||||
{
|
{
|
||||||
namespace VoiceNavigator
|
namespace CCC
|
||||||
{
|
{
|
||||||
namespace Model
|
namespace Model
|
||||||
{
|
{
|
||||||
class ALIBABACLOUD_VOICENAVIGATOR_EXPORT DuplicateInstanceRequest : public RpcServiceRequest
|
class ALIBABACLOUD_CCC_EXPORT GetUserByExtensionRequest : public RpcServiceRequest
|
||||||
{
|
{
|
||||||
|
|
||||||
public:
|
public:
|
||||||
DuplicateInstanceRequest();
|
GetUserByExtensionRequest();
|
||||||
~DuplicateInstanceRequest();
|
~GetUserByExtensionRequest();
|
||||||
|
|
||||||
|
std::string getExtension()const;
|
||||||
|
void setExtension(const std::string& extension);
|
||||||
std::string getInstanceId()const;
|
std::string getInstanceId()const;
|
||||||
void setInstanceId(const std::string& instanceId);
|
void setInstanceId(const std::string& instanceId);
|
||||||
|
|
||||||
private:
|
private:
|
||||||
|
std::string extension_;
|
||||||
std::string instanceId_;
|
std::string instanceId_;
|
||||||
|
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
#endif // !ALIBABACLOUD_VOICENAVIGATOR_MODEL_DUPLICATEINSTANCEREQUEST_H_
|
#endif // !ALIBABACLOUD_CCC_MODEL_GETUSERBYEXTENSIONREQUEST_H_
|
||||||
@@ -0,0 +1,97 @@
|
|||||||
|
/*
|
||||||
|
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||||
|
*
|
||||||
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
|
* you may not use this file except in compliance with the License.
|
||||||
|
* You may obtain a copy of the License at
|
||||||
|
*
|
||||||
|
* http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
*
|
||||||
|
* Unless required by applicable law or agreed to in writing, software
|
||||||
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
|
* WITHOUT 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_GETUSERBYEXTENSIONRESULT_H_
|
||||||
|
#define ALIBABACLOUD_CCC_MODEL_GETUSERBYEXTENSIONRESULT_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 GetUserByExtensionResult : public ServiceResult
|
||||||
|
{
|
||||||
|
public:
|
||||||
|
struct User
|
||||||
|
{
|
||||||
|
struct Detail
|
||||||
|
{
|
||||||
|
std::string extension;
|
||||||
|
std::string loginName;
|
||||||
|
std::string department;
|
||||||
|
std::string email;
|
||||||
|
std::string phone;
|
||||||
|
std::string displayName;
|
||||||
|
};
|
||||||
|
struct Role
|
||||||
|
{
|
||||||
|
std::string roleName;
|
||||||
|
std::string instanceId;
|
||||||
|
std::string roleDescription;
|
||||||
|
std::string roleId;
|
||||||
|
};
|
||||||
|
struct SkillLevel
|
||||||
|
{
|
||||||
|
struct Skill
|
||||||
|
{
|
||||||
|
std::string skillGroupName;
|
||||||
|
std::string instanceId;
|
||||||
|
std::string skillGroupId;
|
||||||
|
std::string skillGroupDescription;
|
||||||
|
};
|
||||||
|
Skill skill;
|
||||||
|
std::string skillLevelId;
|
||||||
|
int level;
|
||||||
|
};
|
||||||
|
std::vector<SkillLevel> skillLevels;
|
||||||
|
std::string instanceId;
|
||||||
|
std::string userId;
|
||||||
|
std::string ramId;
|
||||||
|
std::vector<Role> roles;
|
||||||
|
Detail detail;
|
||||||
|
};
|
||||||
|
|
||||||
|
|
||||||
|
GetUserByExtensionResult();
|
||||||
|
explicit GetUserByExtensionResult(const std::string &payload);
|
||||||
|
~GetUserByExtensionResult();
|
||||||
|
User getUser()const;
|
||||||
|
std::string getMessage()const;
|
||||||
|
int getHttpStatusCode()const;
|
||||||
|
std::string getCode()const;
|
||||||
|
bool getSuccess()const;
|
||||||
|
|
||||||
|
protected:
|
||||||
|
void parse(const std::string &payload);
|
||||||
|
private:
|
||||||
|
User user_;
|
||||||
|
std::string message_;
|
||||||
|
int httpStatusCode_;
|
||||||
|
std::string code_;
|
||||||
|
bool success_;
|
||||||
|
|
||||||
|
};
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
#endif // !ALIBABACLOUD_CCC_MODEL_GETUSERBYEXTENSIONRESULT_H_
|
||||||
@@ -14,33 +14,37 @@
|
|||||||
* limitations under the License.
|
* limitations under the License.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifndef ALIBABACLOUD_OUTBOUNDBOT_MODEL_LISTJOBGROUPSWITHSCENARIOREQUEST_H_
|
#ifndef ALIBABACLOUD_CCC_MODEL_LISTAGENTSTATELOGSREQUEST_H_
|
||||||
#define ALIBABACLOUD_OUTBOUNDBOT_MODEL_LISTJOBGROUPSWITHSCENARIOREQUEST_H_
|
#define ALIBABACLOUD_CCC_MODEL_LISTAGENTSTATELOGSREQUEST_H_
|
||||||
|
|
||||||
#include <string>
|
#include <string>
|
||||||
#include <vector>
|
#include <vector>
|
||||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||||
#include <alibabacloud/outboundbot/OutboundBotExport.h>
|
#include <alibabacloud/ccc/CCCExport.h>
|
||||||
|
|
||||||
namespace AlibabaCloud
|
namespace AlibabaCloud
|
||||||
{
|
{
|
||||||
namespace OutboundBot
|
namespace CCC
|
||||||
{
|
{
|
||||||
namespace Model
|
namespace Model
|
||||||
{
|
{
|
||||||
class ALIBABACLOUD_OUTBOUNDBOT_EXPORT ListJobGroupsWithScenarioRequest : public RpcServiceRequest
|
class ALIBABACLOUD_CCC_EXPORT ListAgentStateLogsRequest : public RpcServiceRequest
|
||||||
{
|
{
|
||||||
|
|
||||||
public:
|
public:
|
||||||
ListJobGroupsWithScenarioRequest();
|
ListAgentStateLogsRequest();
|
||||||
~ListJobGroupsWithScenarioRequest();
|
~ListAgentStateLogsRequest();
|
||||||
|
|
||||||
long getEndTime()const;
|
long getEndTime()const;
|
||||||
void setEndTime(long endTime);
|
void setEndTime(long endTime);
|
||||||
long getStartTime()const;
|
long getStartTime()const;
|
||||||
void setStartTime(long startTime);
|
void setStartTime(long startTime);
|
||||||
|
long getRamId()const;
|
||||||
|
void setRamId(long ramId);
|
||||||
int getPageNumber()const;
|
int getPageNumber()const;
|
||||||
void setPageNumber(int pageNumber);
|
void setPageNumber(int pageNumber);
|
||||||
|
std::string getAccessKeyId()const;
|
||||||
|
void setAccessKeyId(const std::string& accessKeyId);
|
||||||
std::string getInstanceId()const;
|
std::string getInstanceId()const;
|
||||||
void setInstanceId(const std::string& instanceId);
|
void setInstanceId(const std::string& instanceId);
|
||||||
int getPageSize()const;
|
int getPageSize()const;
|
||||||
@@ -49,7 +53,9 @@ namespace AlibabaCloud
|
|||||||
private:
|
private:
|
||||||
long endTime_;
|
long endTime_;
|
||||||
long startTime_;
|
long startTime_;
|
||||||
|
long ramId_;
|
||||||
int pageNumber_;
|
int pageNumber_;
|
||||||
|
std::string accessKeyId_;
|
||||||
std::string instanceId_;
|
std::string instanceId_;
|
||||||
int pageSize_;
|
int pageSize_;
|
||||||
|
|
||||||
@@ -57,4 +63,4 @@ namespace AlibabaCloud
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
#endif // !ALIBABACLOUD_OUTBOUNDBOT_MODEL_LISTJOBGROUPSWITHSCENARIOREQUEST_H_
|
#endif // !ALIBABACLOUD_CCC_MODEL_LISTAGENTSTATELOGSREQUEST_H_
|
||||||
@@ -14,48 +14,52 @@
|
|||||||
* limitations under the License.
|
* limitations under the License.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifndef ALIBABACLOUD_OUTBOUNDBOT_MODEL_LISTUNRECOGNIZEDINTENTSRESULT_H_
|
#ifndef ALIBABACLOUD_CCC_MODEL_LISTAGENTSTATELOGSRESULT_H_
|
||||||
#define ALIBABACLOUD_OUTBOUNDBOT_MODEL_LISTUNRECOGNIZEDINTENTSRESULT_H_
|
#define ALIBABACLOUD_CCC_MODEL_LISTAGENTSTATELOGSRESULT_H_
|
||||||
|
|
||||||
#include <string>
|
#include <string>
|
||||||
#include <vector>
|
#include <vector>
|
||||||
#include <utility>
|
#include <utility>
|
||||||
#include <alibabacloud/core/ServiceResult.h>
|
#include <alibabacloud/core/ServiceResult.h>
|
||||||
#include <alibabacloud/outboundbot/OutboundBotExport.h>
|
#include <alibabacloud/ccc/CCCExport.h>
|
||||||
|
|
||||||
namespace AlibabaCloud
|
namespace AlibabaCloud
|
||||||
{
|
{
|
||||||
namespace OutboundBot
|
namespace CCC
|
||||||
{
|
{
|
||||||
namespace Model
|
namespace Model
|
||||||
{
|
{
|
||||||
class ALIBABACLOUD_OUTBOUNDBOT_EXPORT ListUnrecognizedIntentsResult : public ServiceResult
|
class ALIBABACLOUD_CCC_EXPORT ListAgentStateLogsResult : public ServiceResult
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
struct UnrecognizedIntents
|
struct AgentStateLogPage
|
||||||
{
|
{
|
||||||
struct UnrecognizedIntent
|
struct AgentStateLog
|
||||||
{
|
{
|
||||||
int unrecognizedPercentage;
|
std::string skillGroupIds;
|
||||||
int totalCount;
|
std::string counterParty;
|
||||||
std::string nodeId;
|
long stateTime;
|
||||||
std::string question;
|
std::string instanceId;
|
||||||
int unrecognizedCount;
|
std::string state;
|
||||||
|
long ramId;
|
||||||
|
std::string stateCode;
|
||||||
|
std::string connectId;
|
||||||
|
std::string contactId;
|
||||||
};
|
};
|
||||||
int totalCount;
|
int totalCount;
|
||||||
int pageSize;
|
int pageSize;
|
||||||
int pageNumber;
|
int pageNumber;
|
||||||
std::vector<UnrecognizedIntent> list;
|
std::vector<AgentStateLog> list;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
ListUnrecognizedIntentsResult();
|
ListAgentStateLogsResult();
|
||||||
explicit ListUnrecognizedIntentsResult(const std::string &payload);
|
explicit ListAgentStateLogsResult(const std::string &payload);
|
||||||
~ListUnrecognizedIntentsResult();
|
~ListAgentStateLogsResult();
|
||||||
std::string getMessage()const;
|
std::string getMessage()const;
|
||||||
int getHttpStatusCode()const;
|
int getHttpStatusCode()const;
|
||||||
UnrecognizedIntents getUnrecognizedIntents()const;
|
|
||||||
std::string getCode()const;
|
std::string getCode()const;
|
||||||
|
AgentStateLogPage getAgentStateLogPage()const;
|
||||||
bool getSuccess()const;
|
bool getSuccess()const;
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
@@ -63,12 +67,12 @@ namespace AlibabaCloud
|
|||||||
private:
|
private:
|
||||||
std::string message_;
|
std::string message_;
|
||||||
int httpStatusCode_;
|
int httpStatusCode_;
|
||||||
UnrecognizedIntents unrecognizedIntents_;
|
|
||||||
std::string code_;
|
std::string code_;
|
||||||
|
AgentStateLogPage agentStateLogPage_;
|
||||||
bool success_;
|
bool success_;
|
||||||
|
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
#endif // !ALIBABACLOUD_OUTBOUNDBOT_MODEL_LISTUNRECOGNIZEDINTENTSRESULT_H_
|
#endif // !ALIBABACLOUD_CCC_MODEL_LISTAGENTSTATELOGSRESULT_H_
|
||||||
@@ -48,8 +48,10 @@ namespace AlibabaCloud
|
|||||||
long oneTransferCalls;
|
long oneTransferCalls;
|
||||||
float satisfactionIndex;
|
float satisfactionIndex;
|
||||||
long satisfactionSurveysResponded;
|
long satisfactionSurveysResponded;
|
||||||
|
std::string lastLogOutTime;
|
||||||
long totalTalkTime;
|
long totalTalkTime;
|
||||||
long averageReadyTime;
|
long averageReadyTime;
|
||||||
|
std::string firstLogInTime;
|
||||||
long totalLoggedInTime;
|
long totalLoggedInTime;
|
||||||
long maxTalkTime;
|
long maxTalkTime;
|
||||||
long maxReadyTime;
|
long maxReadyTime;
|
||||||
|
|||||||
@@ -46,8 +46,10 @@ namespace AlibabaCloud
|
|||||||
long oneTransferCalls;
|
long oneTransferCalls;
|
||||||
float satisfactionIndex;
|
float satisfactionIndex;
|
||||||
long satisfactionSurveysResponded;
|
long satisfactionSurveysResponded;
|
||||||
|
std::string lastLogOutTime;
|
||||||
long totalTalkTime;
|
long totalTalkTime;
|
||||||
long averageReadyTime;
|
long averageReadyTime;
|
||||||
|
std::string firstLogInTime;
|
||||||
long totalLoggedInTime;
|
long totalLoggedInTime;
|
||||||
long maxTalkTime;
|
long maxTalkTime;
|
||||||
long maxReadyTime;
|
long maxReadyTime;
|
||||||
|
|||||||
@@ -14,38 +14,38 @@
|
|||||||
* limitations under the License.
|
* limitations under the License.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifndef ALIBABACLOUD_VOICENAVIGATOR_MODEL_ROLLBACKINSTANCEREQUEST_H_
|
#ifndef ALIBABACLOUD_CCC_MODEL_LISTTRANSFERABLESKILLGROUPSREQUEST_H_
|
||||||
#define ALIBABACLOUD_VOICENAVIGATOR_MODEL_ROLLBACKINSTANCEREQUEST_H_
|
#define ALIBABACLOUD_CCC_MODEL_LISTTRANSFERABLESKILLGROUPSREQUEST_H_
|
||||||
|
|
||||||
#include <string>
|
#include <string>
|
||||||
#include <vector>
|
#include <vector>
|
||||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||||
#include <alibabacloud/voicenavigator/VoiceNavigatorExport.h>
|
#include <alibabacloud/ccc/CCCExport.h>
|
||||||
|
|
||||||
namespace AlibabaCloud
|
namespace AlibabaCloud
|
||||||
{
|
{
|
||||||
namespace VoiceNavigator
|
namespace CCC
|
||||||
{
|
{
|
||||||
namespace Model
|
namespace Model
|
||||||
{
|
{
|
||||||
class ALIBABACLOUD_VOICENAVIGATOR_EXPORT RollbackInstanceRequest : public RpcServiceRequest
|
class ALIBABACLOUD_CCC_EXPORT ListTransferableSkillGroupsRequest : public RpcServiceRequest
|
||||||
{
|
{
|
||||||
|
|
||||||
public:
|
public:
|
||||||
RollbackInstanceRequest();
|
ListTransferableSkillGroupsRequest();
|
||||||
~RollbackInstanceRequest();
|
~ListTransferableSkillGroupsRequest();
|
||||||
|
|
||||||
std::string getTargetVersion()const;
|
|
||||||
void setTargetVersion(const std::string& targetVersion);
|
|
||||||
std::string getInstanceId()const;
|
std::string getInstanceId()const;
|
||||||
void setInstanceId(const std::string& instanceId);
|
void setInstanceId(const std::string& instanceId);
|
||||||
|
std::string getAccessKeyId()const;
|
||||||
|
void setAccessKeyId(const std::string& accessKeyId);
|
||||||
|
|
||||||
private:
|
private:
|
||||||
std::string targetVersion_;
|
|
||||||
std::string instanceId_;
|
std::string instanceId_;
|
||||||
|
std::string accessKeyId_;
|
||||||
|
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
#endif // !ALIBABACLOUD_VOICENAVIGATOR_MODEL_ROLLBACKINSTANCEREQUEST_H_
|
#endif // !ALIBABACLOUD_CCC_MODEL_LISTTRANSFERABLESKILLGROUPSREQUEST_H_
|
||||||
@@ -14,46 +14,44 @@
|
|||||||
* limitations under the License.
|
* limitations under the License.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifndef ALIBABACLOUD_OUTBOUNDBOT_MODEL_GETTAGHITSSUMMARYRESULT_H_
|
#ifndef ALIBABACLOUD_CCC_MODEL_LISTTRANSFERABLESKILLGROUPSRESULT_H_
|
||||||
#define ALIBABACLOUD_OUTBOUNDBOT_MODEL_GETTAGHITSSUMMARYRESULT_H_
|
#define ALIBABACLOUD_CCC_MODEL_LISTTRANSFERABLESKILLGROUPSRESULT_H_
|
||||||
|
|
||||||
#include <string>
|
#include <string>
|
||||||
#include <vector>
|
#include <vector>
|
||||||
#include <utility>
|
#include <utility>
|
||||||
#include <alibabacloud/core/ServiceResult.h>
|
#include <alibabacloud/core/ServiceResult.h>
|
||||||
#include <alibabacloud/outboundbot/OutboundBotExport.h>
|
#include <alibabacloud/ccc/CCCExport.h>
|
||||||
|
|
||||||
namespace AlibabaCloud
|
namespace AlibabaCloud
|
||||||
{
|
{
|
||||||
namespace OutboundBot
|
namespace CCC
|
||||||
{
|
{
|
||||||
namespace Model
|
namespace Model
|
||||||
{
|
{
|
||||||
class ALIBABACLOUD_OUTBOUNDBOT_EXPORT GetTagHitsSummaryResult : public ServiceResult
|
class ALIBABACLOUD_CCC_EXPORT ListTransferableSkillGroupsResult : public ServiceResult
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
struct TagHits
|
struct SkillGroup
|
||||||
{
|
{
|
||||||
std::string tagName;
|
bool allowPrivateOutboundNumber;
|
||||||
int hitCount;
|
std::string skillGroupName;
|
||||||
std::string tagGroup;
|
std::string accSkillGroupName;
|
||||||
};
|
std::string instanceId;
|
||||||
struct TagGroup
|
int userCount;
|
||||||
{
|
std::string routingStrategy;
|
||||||
int tagGroupIndex;
|
std::string skillGroupId;
|
||||||
std::string tagGroup;
|
std::string accQueueName;
|
||||||
std::string scriptId;
|
std::string skillGroupDescription;
|
||||||
std::string id;
|
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
GetTagHitsSummaryResult();
|
ListTransferableSkillGroupsResult();
|
||||||
explicit GetTagHitsSummaryResult(const std::string &payload);
|
explicit ListTransferableSkillGroupsResult(const std::string &payload);
|
||||||
~GetTagHitsSummaryResult();
|
~ListTransferableSkillGroupsResult();
|
||||||
std::string getMessage()const;
|
std::string getMessage()const;
|
||||||
std::vector<TagGroup> getTagGroups()const;
|
|
||||||
int getHttpStatusCode()const;
|
int getHttpStatusCode()const;
|
||||||
std::vector<TagHits> getTagHitsList()const;
|
std::vector<SkillGroup> getSkillGroups()const;
|
||||||
std::string getCode()const;
|
std::string getCode()const;
|
||||||
bool getSuccess()const;
|
bool getSuccess()const;
|
||||||
|
|
||||||
@@ -61,9 +59,8 @@ namespace AlibabaCloud
|
|||||||
void parse(const std::string &payload);
|
void parse(const std::string &payload);
|
||||||
private:
|
private:
|
||||||
std::string message_;
|
std::string message_;
|
||||||
std::vector<TagGroup> tagGroups_;
|
|
||||||
int httpStatusCode_;
|
int httpStatusCode_;
|
||||||
std::vector<TagHits> tagHitsList_;
|
std::vector<SkillGroup> skillGroups_;
|
||||||
std::string code_;
|
std::string code_;
|
||||||
bool success_;
|
bool success_;
|
||||||
|
|
||||||
@@ -71,4 +68,4 @@ namespace AlibabaCloud
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
#endif // !ALIBABACLOUD_OUTBOUNDBOT_MODEL_GETTAGHITSSUMMARYRESULT_H_
|
#endif // !ALIBABACLOUD_CCC_MODEL_LISTTRANSFERABLESKILLGROUPSRESULT_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_CCC_MODEL_LISTTRUNKPROVIDERSREQUEST_H_
|
||||||
|
#define ALIBABACLOUD_CCC_MODEL_LISTTRUNKPROVIDERSREQUEST_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 ListTrunkProvidersRequest : public RpcServiceRequest
|
||||||
|
{
|
||||||
|
|
||||||
|
public:
|
||||||
|
ListTrunkProvidersRequest();
|
||||||
|
~ListTrunkProvidersRequest();
|
||||||
|
|
||||||
|
std::string getAccessKeyId()const;
|
||||||
|
void setAccessKeyId(const std::string& accessKeyId);
|
||||||
|
|
||||||
|
private:
|
||||||
|
std::string accessKeyId_;
|
||||||
|
|
||||||
|
};
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
#endif // !ALIBABACLOUD_CCC_MODEL_LISTTRUNKPROVIDERSREQUEST_H_
|
||||||
@@ -14,45 +14,46 @@
|
|||||||
* limitations under the License.
|
* limitations under the License.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifndef ALIBABACLOUD_OUTBOUNDBOT_MODEL_DOWNLOADUNREACHABLECONTACTSRESULT_H_
|
#ifndef ALIBABACLOUD_CCC_MODEL_LISTTRUNKPROVIDERSRESULT_H_
|
||||||
#define ALIBABACLOUD_OUTBOUNDBOT_MODEL_DOWNLOADUNREACHABLECONTACTSRESULT_H_
|
#define ALIBABACLOUD_CCC_MODEL_LISTTRUNKPROVIDERSRESULT_H_
|
||||||
|
|
||||||
#include <string>
|
#include <string>
|
||||||
#include <vector>
|
#include <vector>
|
||||||
#include <utility>
|
#include <utility>
|
||||||
#include <alibabacloud/core/ServiceResult.h>
|
#include <alibabacloud/core/ServiceResult.h>
|
||||||
#include <alibabacloud/outboundbot/OutboundBotExport.h>
|
#include <alibabacloud/ccc/CCCExport.h>
|
||||||
|
|
||||||
namespace AlibabaCloud
|
namespace AlibabaCloud
|
||||||
{
|
{
|
||||||
namespace OutboundBot
|
namespace CCC
|
||||||
{
|
{
|
||||||
namespace Model
|
namespace Model
|
||||||
{
|
{
|
||||||
class ALIBABACLOUD_OUTBOUNDBOT_EXPORT DownloadUnreachableContactsResult : public ServiceResult
|
class ALIBABACLOUD_CCC_EXPORT ListTrunkProvidersResult : public ServiceResult
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
struct DownloadParams
|
struct TrunkProvider
|
||||||
{
|
{
|
||||||
std::string signatureUrl;
|
std::string status;
|
||||||
|
std::string providerName;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
DownloadUnreachableContactsResult();
|
ListTrunkProvidersResult();
|
||||||
explicit DownloadUnreachableContactsResult(const std::string &payload);
|
explicit ListTrunkProvidersResult(const std::string &payload);
|
||||||
~DownloadUnreachableContactsResult();
|
~ListTrunkProvidersResult();
|
||||||
DownloadParams getDownloadParams()const;
|
|
||||||
std::string getMessage()const;
|
std::string getMessage()const;
|
||||||
int getHttpStatusCode()const;
|
int getHttpStatusCode()const;
|
||||||
|
std::vector<TrunkProvider> getTrunkProviders()const;
|
||||||
std::string getCode()const;
|
std::string getCode()const;
|
||||||
bool getSuccess()const;
|
bool getSuccess()const;
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
void parse(const std::string &payload);
|
void parse(const std::string &payload);
|
||||||
private:
|
private:
|
||||||
DownloadParams downloadParams_;
|
|
||||||
std::string message_;
|
std::string message_;
|
||||||
int httpStatusCode_;
|
int httpStatusCode_;
|
||||||
|
std::vector<TrunkProvider> trunkProviders_;
|
||||||
std::string code_;
|
std::string code_;
|
||||||
bool success_;
|
bool success_;
|
||||||
|
|
||||||
@@ -60,4 +61,4 @@ namespace AlibabaCloud
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
#endif // !ALIBABACLOUD_OUTBOUNDBOT_MODEL_DOWNLOADUNREACHABLECONTACTSRESULT_H_
|
#endif // !ALIBABACLOUD_CCC_MODEL_LISTTRUNKPROVIDERSRESULT_H_
|
||||||
@@ -14,38 +14,41 @@
|
|||||||
* limitations under the License.
|
* limitations under the License.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifndef ALIBABACLOUD_OUTBOUNDBOT_MODEL_DOWNLOADCONVERSATIONDETAILSREQUEST_H_
|
#ifndef ALIBABACLOUD_CCC_MODEL_LISTTRUNKSOFSKILLGROUPREQUEST_H_
|
||||||
#define ALIBABACLOUD_OUTBOUNDBOT_MODEL_DOWNLOADCONVERSATIONDETAILSREQUEST_H_
|
#define ALIBABACLOUD_CCC_MODEL_LISTTRUNKSOFSKILLGROUPREQUEST_H_
|
||||||
|
|
||||||
#include <string>
|
#include <string>
|
||||||
#include <vector>
|
#include <vector>
|
||||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||||
#include <alibabacloud/outboundbot/OutboundBotExport.h>
|
#include <alibabacloud/ccc/CCCExport.h>
|
||||||
|
|
||||||
namespace AlibabaCloud
|
namespace AlibabaCloud
|
||||||
{
|
{
|
||||||
namespace OutboundBot
|
namespace CCC
|
||||||
{
|
{
|
||||||
namespace Model
|
namespace Model
|
||||||
{
|
{
|
||||||
class ALIBABACLOUD_OUTBOUNDBOT_EXPORT DownloadConversationDetailsRequest : public RpcServiceRequest
|
class ALIBABACLOUD_CCC_EXPORT ListTrunksOfSkillGroupRequest : public RpcServiceRequest
|
||||||
{
|
{
|
||||||
|
|
||||||
public:
|
public:
|
||||||
DownloadConversationDetailsRequest();
|
ListTrunksOfSkillGroupRequest();
|
||||||
~DownloadConversationDetailsRequest();
|
~ListTrunksOfSkillGroupRequest();
|
||||||
|
|
||||||
std::string getInstanceId()const;
|
std::string getInstanceId()const;
|
||||||
void setInstanceId(const std::string& instanceId);
|
void setInstanceId(const std::string& instanceId);
|
||||||
std::string getJobGroupId()const;
|
std::string getSkillGroupId()const;
|
||||||
void setJobGroupId(const std::string& jobGroupId);
|
void setSkillGroupId(const std::string& skillGroupId);
|
||||||
|
std::string getAccessKeyId()const;
|
||||||
|
void setAccessKeyId(const std::string& accessKeyId);
|
||||||
|
|
||||||
private:
|
private:
|
||||||
std::string instanceId_;
|
std::string instanceId_;
|
||||||
std::string jobGroupId_;
|
std::string skillGroupId_;
|
||||||
|
std::string accessKeyId_;
|
||||||
|
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
#endif // !ALIBABACLOUD_OUTBOUNDBOT_MODEL_DOWNLOADCONVERSATIONDETAILSREQUEST_H_
|
#endif // !ALIBABACLOUD_CCC_MODEL_LISTTRUNKSOFSKILLGROUPREQUEST_H_
|
||||||
@@ -14,45 +14,46 @@
|
|||||||
* limitations under the License.
|
* limitations under the License.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifndef ALIBABACLOUD_OUTBOUNDBOT_MODEL_DOWNLOADBASICSTATISTICSREPORTRESULT_H_
|
#ifndef ALIBABACLOUD_CCC_MODEL_LISTTRUNKSOFSKILLGROUPRESULT_H_
|
||||||
#define ALIBABACLOUD_OUTBOUNDBOT_MODEL_DOWNLOADBASICSTATISTICSREPORTRESULT_H_
|
#define ALIBABACLOUD_CCC_MODEL_LISTTRUNKSOFSKILLGROUPRESULT_H_
|
||||||
|
|
||||||
#include <string>
|
#include <string>
|
||||||
#include <vector>
|
#include <vector>
|
||||||
#include <utility>
|
#include <utility>
|
||||||
#include <alibabacloud/core/ServiceResult.h>
|
#include <alibabacloud/core/ServiceResult.h>
|
||||||
#include <alibabacloud/outboundbot/OutboundBotExport.h>
|
#include <alibabacloud/ccc/CCCExport.h>
|
||||||
|
|
||||||
namespace AlibabaCloud
|
namespace AlibabaCloud
|
||||||
{
|
{
|
||||||
namespace OutboundBot
|
namespace CCC
|
||||||
{
|
{
|
||||||
namespace Model
|
namespace Model
|
||||||
{
|
{
|
||||||
class ALIBABACLOUD_OUTBOUNDBOT_EXPORT DownloadBasicStatisticsReportResult : public ServiceResult
|
class ALIBABACLOUD_CCC_EXPORT ListTrunksOfSkillGroupResult : public ServiceResult
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
struct DownloadParams
|
struct TrunkConfig
|
||||||
{
|
{
|
||||||
std::string signatureUrl;
|
std::string providerName;
|
||||||
|
bool primary;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
DownloadBasicStatisticsReportResult();
|
ListTrunksOfSkillGroupResult();
|
||||||
explicit DownloadBasicStatisticsReportResult(const std::string &payload);
|
explicit ListTrunksOfSkillGroupResult(const std::string &payload);
|
||||||
~DownloadBasicStatisticsReportResult();
|
~ListTrunksOfSkillGroupResult();
|
||||||
DownloadParams getDownloadParams()const;
|
|
||||||
std::string getMessage()const;
|
std::string getMessage()const;
|
||||||
int getHttpStatusCode()const;
|
int getHttpStatusCode()const;
|
||||||
|
std::vector<TrunkConfig> getTrunkConfigs()const;
|
||||||
std::string getCode()const;
|
std::string getCode()const;
|
||||||
bool getSuccess()const;
|
bool getSuccess()const;
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
void parse(const std::string &payload);
|
void parse(const std::string &payload);
|
||||||
private:
|
private:
|
||||||
DownloadParams downloadParams_;
|
|
||||||
std::string message_;
|
std::string message_;
|
||||||
int httpStatusCode_;
|
int httpStatusCode_;
|
||||||
|
std::vector<TrunkConfig> trunkConfigs_;
|
||||||
std::string code_;
|
std::string code_;
|
||||||
bool success_;
|
bool success_;
|
||||||
|
|
||||||
@@ -60,4 +61,4 @@ namespace AlibabaCloud
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
#endif // !ALIBABACLOUD_OUTBOUNDBOT_MODEL_DOWNLOADBASICSTATISTICSREPORTRESULT_H_
|
#endif // !ALIBABACLOUD_CCC_MODEL_LISTTRUNKSOFSKILLGROUPRESULT_H_
|
||||||
@@ -14,44 +14,44 @@
|
|||||||
* limitations under the License.
|
* limitations under the License.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifndef ALIBABACLOUD_OUTBOUNDBOT_MODEL_LISTUNRECOGNIZEDINTENTSREQUEST_H_
|
#ifndef ALIBABACLOUD_CCC_MODEL_MODIFYPRIMARYTRUNKSOFSKILLGROUPREQUEST_H_
|
||||||
#define ALIBABACLOUD_OUTBOUNDBOT_MODEL_LISTUNRECOGNIZEDINTENTSREQUEST_H_
|
#define ALIBABACLOUD_CCC_MODEL_MODIFYPRIMARYTRUNKSOFSKILLGROUPREQUEST_H_
|
||||||
|
|
||||||
#include <string>
|
#include <string>
|
||||||
#include <vector>
|
#include <vector>
|
||||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||||
#include <alibabacloud/outboundbot/OutboundBotExport.h>
|
#include <alibabacloud/ccc/CCCExport.h>
|
||||||
|
|
||||||
namespace AlibabaCloud
|
namespace AlibabaCloud
|
||||||
{
|
{
|
||||||
namespace OutboundBot
|
namespace CCC
|
||||||
{
|
{
|
||||||
namespace Model
|
namespace Model
|
||||||
{
|
{
|
||||||
class ALIBABACLOUD_OUTBOUNDBOT_EXPORT ListUnrecognizedIntentsRequest : public RpcServiceRequest
|
class ALIBABACLOUD_CCC_EXPORT ModifyPrimaryTrunksOfSkillGroupRequest : public RpcServiceRequest
|
||||||
{
|
{
|
||||||
|
|
||||||
public:
|
public:
|
||||||
ListUnrecognizedIntentsRequest();
|
ModifyPrimaryTrunksOfSkillGroupRequest();
|
||||||
~ListUnrecognizedIntentsRequest();
|
~ModifyPrimaryTrunksOfSkillGroupRequest();
|
||||||
|
|
||||||
int getPageNumber()const;
|
std::string getAccessKeyId()const;
|
||||||
void setPageNumber(int pageNumber);
|
void setAccessKeyId(const std::string& accessKeyId);
|
||||||
|
std::vector<std::string> getPrimaryProviderName()const;
|
||||||
|
void setPrimaryProviderName(const std::vector<std::string>& primaryProviderName);
|
||||||
std::string getInstanceId()const;
|
std::string getInstanceId()const;
|
||||||
void setInstanceId(const std::string& instanceId);
|
void setInstanceId(const std::string& instanceId);
|
||||||
std::string getJobGroupId()const;
|
std::string getSkillGroupId()const;
|
||||||
void setJobGroupId(const std::string& jobGroupId);
|
void setSkillGroupId(const std::string& skillGroupId);
|
||||||
int getPageSize()const;
|
|
||||||
void setPageSize(int pageSize);
|
|
||||||
|
|
||||||
private:
|
private:
|
||||||
int pageNumber_;
|
std::string accessKeyId_;
|
||||||
|
std::vector<std::string> primaryProviderName_;
|
||||||
std::string instanceId_;
|
std::string instanceId_;
|
||||||
std::string jobGroupId_;
|
std::string skillGroupId_;
|
||||||
int pageSize_;
|
|
||||||
|
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
#endif // !ALIBABACLOUD_OUTBOUNDBOT_MODEL_LISTUNRECOGNIZEDINTENTSREQUEST_H_
|
#endif // !ALIBABACLOUD_CCC_MODEL_MODIFYPRIMARYTRUNKSOFSKILLGROUPREQUEST_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_CCC_MODEL_MODIFYPRIMARYTRUNKSOFSKILLGROUPRESULT_H_
|
||||||
|
#define ALIBABACLOUD_CCC_MODEL_MODIFYPRIMARYTRUNKSOFSKILLGROUPRESULT_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 ModifyPrimaryTrunksOfSkillGroupResult : public ServiceResult
|
||||||
|
{
|
||||||
|
public:
|
||||||
|
|
||||||
|
|
||||||
|
ModifyPrimaryTrunksOfSkillGroupResult();
|
||||||
|
explicit ModifyPrimaryTrunksOfSkillGroupResult(const std::string &payload);
|
||||||
|
~ModifyPrimaryTrunksOfSkillGroupResult();
|
||||||
|
std::string getMessage()const;
|
||||||
|
int getHttpStatusCode()const;
|
||||||
|
std::string getCode()const;
|
||||||
|
bool getSuccess()const;
|
||||||
|
|
||||||
|
protected:
|
||||||
|
void parse(const std::string &payload);
|
||||||
|
private:
|
||||||
|
std::string message_;
|
||||||
|
int httpStatusCode_;
|
||||||
|
std::string code_;
|
||||||
|
bool success_;
|
||||||
|
|
||||||
|
};
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
#endif // !ALIBABACLOUD_CCC_MODEL_MODIFYPRIMARYTRUNKSOFSKILLGROUPRESULT_H_
|
||||||
@@ -37,11 +37,14 @@ namespace AlibabaCloud
|
|||||||
|
|
||||||
std::string getInstanceId()const;
|
std::string getInstanceId()const;
|
||||||
void setInstanceId(const std::string& instanceId);
|
void setInstanceId(const std::string& instanceId);
|
||||||
|
std::string getUserId()const;
|
||||||
|
void setUserId(const std::string& userId);
|
||||||
std::string getAccessKeyId()const;
|
std::string getAccessKeyId()const;
|
||||||
void setAccessKeyId(const std::string& accessKeyId);
|
void setAccessKeyId(const std::string& accessKeyId);
|
||||||
|
|
||||||
private:
|
private:
|
||||||
std::string instanceId_;
|
std::string instanceId_;
|
||||||
|
std::string userId_;
|
||||||
std::string accessKeyId_;
|
std::string accessKeyId_;
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -37,11 +37,14 @@ namespace AlibabaCloud
|
|||||||
|
|
||||||
std::string getInstanceId()const;
|
std::string getInstanceId()const;
|
||||||
void setInstanceId(const std::string& instanceId);
|
void setInstanceId(const std::string& instanceId);
|
||||||
|
std::vector<long> getRamIdList()const;
|
||||||
|
void setRamIdList(const std::vector<long>& ramIdList);
|
||||||
std::string getAccessKeyId()const;
|
std::string getAccessKeyId()const;
|
||||||
void setAccessKeyId(const std::string& accessKeyId);
|
void setAccessKeyId(const std::string& accessKeyId);
|
||||||
|
|
||||||
private:
|
private:
|
||||||
std::string instanceId_;
|
std::string instanceId_;
|
||||||
|
std::vector<long> ramIdList_;
|
||||||
std::string accessKeyId_;
|
std::string accessKeyId_;
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -1167,6 +1167,42 @@ CCCClient::DialogueOutcomeCallable CCCClient::dialogueCallable(const DialogueReq
|
|||||||
return task->get_future();
|
return task->get_future();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
CCCClient::DisableTrunkProvidersOutcome CCCClient::disableTrunkProviders(const DisableTrunkProvidersRequest &request) const
|
||||||
|
{
|
||||||
|
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||||
|
if (!endpointOutcome.isSuccess())
|
||||||
|
return DisableTrunkProvidersOutcome(endpointOutcome.error());
|
||||||
|
|
||||||
|
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||||
|
|
||||||
|
if (outcome.isSuccess())
|
||||||
|
return DisableTrunkProvidersOutcome(DisableTrunkProvidersResult(outcome.result()));
|
||||||
|
else
|
||||||
|
return DisableTrunkProvidersOutcome(outcome.error());
|
||||||
|
}
|
||||||
|
|
||||||
|
void CCCClient::disableTrunkProvidersAsync(const DisableTrunkProvidersRequest& request, const DisableTrunkProvidersAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||||
|
{
|
||||||
|
auto fn = [this, request, handler, context]()
|
||||||
|
{
|
||||||
|
handler(this, request, disableTrunkProviders(request), context);
|
||||||
|
};
|
||||||
|
|
||||||
|
asyncExecute(new Runnable(fn));
|
||||||
|
}
|
||||||
|
|
||||||
|
CCCClient::DisableTrunkProvidersOutcomeCallable CCCClient::disableTrunkProvidersCallable(const DisableTrunkProvidersRequest &request) const
|
||||||
|
{
|
||||||
|
auto task = std::make_shared<std::packaged_task<DisableTrunkProvidersOutcome()>>(
|
||||||
|
[this, request]()
|
||||||
|
{
|
||||||
|
return this->disableTrunkProviders(request);
|
||||||
|
});
|
||||||
|
|
||||||
|
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||||
|
return task->get_future();
|
||||||
|
}
|
||||||
|
|
||||||
CCCClient::DownloadAllTypeRecordingOutcome CCCClient::downloadAllTypeRecording(const DownloadAllTypeRecordingRequest &request) const
|
CCCClient::DownloadAllTypeRecordingOutcome CCCClient::downloadAllTypeRecording(const DownloadAllTypeRecordingRequest &request) const
|
||||||
{
|
{
|
||||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||||
@@ -2391,6 +2427,42 @@ CCCClient::GetUserOutcomeCallable CCCClient::getUserCallable(const GetUserReques
|
|||||||
return task->get_future();
|
return task->get_future();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
CCCClient::GetUserByExtensionOutcome CCCClient::getUserByExtension(const GetUserByExtensionRequest &request) const
|
||||||
|
{
|
||||||
|
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||||
|
if (!endpointOutcome.isSuccess())
|
||||||
|
return GetUserByExtensionOutcome(endpointOutcome.error());
|
||||||
|
|
||||||
|
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||||
|
|
||||||
|
if (outcome.isSuccess())
|
||||||
|
return GetUserByExtensionOutcome(GetUserByExtensionResult(outcome.result()));
|
||||||
|
else
|
||||||
|
return GetUserByExtensionOutcome(outcome.error());
|
||||||
|
}
|
||||||
|
|
||||||
|
void CCCClient::getUserByExtensionAsync(const GetUserByExtensionRequest& request, const GetUserByExtensionAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||||
|
{
|
||||||
|
auto fn = [this, request, handler, context]()
|
||||||
|
{
|
||||||
|
handler(this, request, getUserByExtension(request), context);
|
||||||
|
};
|
||||||
|
|
||||||
|
asyncExecute(new Runnable(fn));
|
||||||
|
}
|
||||||
|
|
||||||
|
CCCClient::GetUserByExtensionOutcomeCallable CCCClient::getUserByExtensionCallable(const GetUserByExtensionRequest &request) const
|
||||||
|
{
|
||||||
|
auto task = std::make_shared<std::packaged_task<GetUserByExtensionOutcome()>>(
|
||||||
|
[this, request]()
|
||||||
|
{
|
||||||
|
return this->getUserByExtension(request);
|
||||||
|
});
|
||||||
|
|
||||||
|
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||||
|
return task->get_future();
|
||||||
|
}
|
||||||
|
|
||||||
CCCClient::InflightTaskTimeoutOutcome CCCClient::inflightTaskTimeout(const InflightTaskTimeoutRequest &request) const
|
CCCClient::InflightTaskTimeoutOutcome CCCClient::inflightTaskTimeout(const InflightTaskTimeoutRequest &request) const
|
||||||
{
|
{
|
||||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||||
@@ -2571,6 +2643,42 @@ CCCClient::ListAgentEventsOutcomeCallable CCCClient::listAgentEventsCallable(con
|
|||||||
return task->get_future();
|
return task->get_future();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
CCCClient::ListAgentStateLogsOutcome CCCClient::listAgentStateLogs(const ListAgentStateLogsRequest &request) const
|
||||||
|
{
|
||||||
|
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||||
|
if (!endpointOutcome.isSuccess())
|
||||||
|
return ListAgentStateLogsOutcome(endpointOutcome.error());
|
||||||
|
|
||||||
|
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||||
|
|
||||||
|
if (outcome.isSuccess())
|
||||||
|
return ListAgentStateLogsOutcome(ListAgentStateLogsResult(outcome.result()));
|
||||||
|
else
|
||||||
|
return ListAgentStateLogsOutcome(outcome.error());
|
||||||
|
}
|
||||||
|
|
||||||
|
void CCCClient::listAgentStateLogsAsync(const ListAgentStateLogsRequest& request, const ListAgentStateLogsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||||
|
{
|
||||||
|
auto fn = [this, request, handler, context]()
|
||||||
|
{
|
||||||
|
handler(this, request, listAgentStateLogs(request), context);
|
||||||
|
};
|
||||||
|
|
||||||
|
asyncExecute(new Runnable(fn));
|
||||||
|
}
|
||||||
|
|
||||||
|
CCCClient::ListAgentStateLogsOutcomeCallable CCCClient::listAgentStateLogsCallable(const ListAgentStateLogsRequest &request) const
|
||||||
|
{
|
||||||
|
auto task = std::make_shared<std::packaged_task<ListAgentStateLogsOutcome()>>(
|
||||||
|
[this, request]()
|
||||||
|
{
|
||||||
|
return this->listAgentStateLogs(request);
|
||||||
|
});
|
||||||
|
|
||||||
|
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||||
|
return task->get_future();
|
||||||
|
}
|
||||||
|
|
||||||
CCCClient::ListAgentStatesOutcome CCCClient::listAgentStates(const ListAgentStatesRequest &request) const
|
CCCClient::ListAgentStatesOutcome CCCClient::listAgentStates(const ListAgentStatesRequest &request) const
|
||||||
{
|
{
|
||||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||||
@@ -3795,6 +3903,114 @@ CCCClient::ListSurveysOutcomeCallable CCCClient::listSurveysCallable(const ListS
|
|||||||
return task->get_future();
|
return task->get_future();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
CCCClient::ListTransferableSkillGroupsOutcome CCCClient::listTransferableSkillGroups(const ListTransferableSkillGroupsRequest &request) const
|
||||||
|
{
|
||||||
|
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||||
|
if (!endpointOutcome.isSuccess())
|
||||||
|
return ListTransferableSkillGroupsOutcome(endpointOutcome.error());
|
||||||
|
|
||||||
|
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||||
|
|
||||||
|
if (outcome.isSuccess())
|
||||||
|
return ListTransferableSkillGroupsOutcome(ListTransferableSkillGroupsResult(outcome.result()));
|
||||||
|
else
|
||||||
|
return ListTransferableSkillGroupsOutcome(outcome.error());
|
||||||
|
}
|
||||||
|
|
||||||
|
void CCCClient::listTransferableSkillGroupsAsync(const ListTransferableSkillGroupsRequest& request, const ListTransferableSkillGroupsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||||
|
{
|
||||||
|
auto fn = [this, request, handler, context]()
|
||||||
|
{
|
||||||
|
handler(this, request, listTransferableSkillGroups(request), context);
|
||||||
|
};
|
||||||
|
|
||||||
|
asyncExecute(new Runnable(fn));
|
||||||
|
}
|
||||||
|
|
||||||
|
CCCClient::ListTransferableSkillGroupsOutcomeCallable CCCClient::listTransferableSkillGroupsCallable(const ListTransferableSkillGroupsRequest &request) const
|
||||||
|
{
|
||||||
|
auto task = std::make_shared<std::packaged_task<ListTransferableSkillGroupsOutcome()>>(
|
||||||
|
[this, request]()
|
||||||
|
{
|
||||||
|
return this->listTransferableSkillGroups(request);
|
||||||
|
});
|
||||||
|
|
||||||
|
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||||
|
return task->get_future();
|
||||||
|
}
|
||||||
|
|
||||||
|
CCCClient::ListTrunkProvidersOutcome CCCClient::listTrunkProviders(const ListTrunkProvidersRequest &request) const
|
||||||
|
{
|
||||||
|
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||||
|
if (!endpointOutcome.isSuccess())
|
||||||
|
return ListTrunkProvidersOutcome(endpointOutcome.error());
|
||||||
|
|
||||||
|
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||||
|
|
||||||
|
if (outcome.isSuccess())
|
||||||
|
return ListTrunkProvidersOutcome(ListTrunkProvidersResult(outcome.result()));
|
||||||
|
else
|
||||||
|
return ListTrunkProvidersOutcome(outcome.error());
|
||||||
|
}
|
||||||
|
|
||||||
|
void CCCClient::listTrunkProvidersAsync(const ListTrunkProvidersRequest& request, const ListTrunkProvidersAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||||
|
{
|
||||||
|
auto fn = [this, request, handler, context]()
|
||||||
|
{
|
||||||
|
handler(this, request, listTrunkProviders(request), context);
|
||||||
|
};
|
||||||
|
|
||||||
|
asyncExecute(new Runnable(fn));
|
||||||
|
}
|
||||||
|
|
||||||
|
CCCClient::ListTrunkProvidersOutcomeCallable CCCClient::listTrunkProvidersCallable(const ListTrunkProvidersRequest &request) const
|
||||||
|
{
|
||||||
|
auto task = std::make_shared<std::packaged_task<ListTrunkProvidersOutcome()>>(
|
||||||
|
[this, request]()
|
||||||
|
{
|
||||||
|
return this->listTrunkProviders(request);
|
||||||
|
});
|
||||||
|
|
||||||
|
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||||
|
return task->get_future();
|
||||||
|
}
|
||||||
|
|
||||||
|
CCCClient::ListTrunksOfSkillGroupOutcome CCCClient::listTrunksOfSkillGroup(const ListTrunksOfSkillGroupRequest &request) const
|
||||||
|
{
|
||||||
|
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||||
|
if (!endpointOutcome.isSuccess())
|
||||||
|
return ListTrunksOfSkillGroupOutcome(endpointOutcome.error());
|
||||||
|
|
||||||
|
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||||
|
|
||||||
|
if (outcome.isSuccess())
|
||||||
|
return ListTrunksOfSkillGroupOutcome(ListTrunksOfSkillGroupResult(outcome.result()));
|
||||||
|
else
|
||||||
|
return ListTrunksOfSkillGroupOutcome(outcome.error());
|
||||||
|
}
|
||||||
|
|
||||||
|
void CCCClient::listTrunksOfSkillGroupAsync(const ListTrunksOfSkillGroupRequest& request, const ListTrunksOfSkillGroupAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||||
|
{
|
||||||
|
auto fn = [this, request, handler, context]()
|
||||||
|
{
|
||||||
|
handler(this, request, listTrunksOfSkillGroup(request), context);
|
||||||
|
};
|
||||||
|
|
||||||
|
asyncExecute(new Runnable(fn));
|
||||||
|
}
|
||||||
|
|
||||||
|
CCCClient::ListTrunksOfSkillGroupOutcomeCallable CCCClient::listTrunksOfSkillGroupCallable(const ListTrunksOfSkillGroupRequest &request) const
|
||||||
|
{
|
||||||
|
auto task = std::make_shared<std::packaged_task<ListTrunksOfSkillGroupOutcome()>>(
|
||||||
|
[this, request]()
|
||||||
|
{
|
||||||
|
return this->listTrunksOfSkillGroup(request);
|
||||||
|
});
|
||||||
|
|
||||||
|
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||||
|
return task->get_future();
|
||||||
|
}
|
||||||
|
|
||||||
CCCClient::ListUnreachableContactsOutcome CCCClient::listUnreachableContacts(const ListUnreachableContactsRequest &request) const
|
CCCClient::ListUnreachableContactsOutcome CCCClient::listUnreachableContacts(const ListUnreachableContactsRequest &request) const
|
||||||
{
|
{
|
||||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||||
@@ -4083,6 +4299,42 @@ CCCClient::ModifyPhoneTagsOutcomeCallable CCCClient::modifyPhoneTagsCallable(con
|
|||||||
return task->get_future();
|
return task->get_future();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
CCCClient::ModifyPrimaryTrunksOfSkillGroupOutcome CCCClient::modifyPrimaryTrunksOfSkillGroup(const ModifyPrimaryTrunksOfSkillGroupRequest &request) const
|
||||||
|
{
|
||||||
|
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||||
|
if (!endpointOutcome.isSuccess())
|
||||||
|
return ModifyPrimaryTrunksOfSkillGroupOutcome(endpointOutcome.error());
|
||||||
|
|
||||||
|
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||||
|
|
||||||
|
if (outcome.isSuccess())
|
||||||
|
return ModifyPrimaryTrunksOfSkillGroupOutcome(ModifyPrimaryTrunksOfSkillGroupResult(outcome.result()));
|
||||||
|
else
|
||||||
|
return ModifyPrimaryTrunksOfSkillGroupOutcome(outcome.error());
|
||||||
|
}
|
||||||
|
|
||||||
|
void CCCClient::modifyPrimaryTrunksOfSkillGroupAsync(const ModifyPrimaryTrunksOfSkillGroupRequest& request, const ModifyPrimaryTrunksOfSkillGroupAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||||
|
{
|
||||||
|
auto fn = [this, request, handler, context]()
|
||||||
|
{
|
||||||
|
handler(this, request, modifyPrimaryTrunksOfSkillGroup(request), context);
|
||||||
|
};
|
||||||
|
|
||||||
|
asyncExecute(new Runnable(fn));
|
||||||
|
}
|
||||||
|
|
||||||
|
CCCClient::ModifyPrimaryTrunksOfSkillGroupOutcomeCallable CCCClient::modifyPrimaryTrunksOfSkillGroupCallable(const ModifyPrimaryTrunksOfSkillGroupRequest &request) const
|
||||||
|
{
|
||||||
|
auto task = std::make_shared<std::packaged_task<ModifyPrimaryTrunksOfSkillGroupOutcome()>>(
|
||||||
|
[this, request]()
|
||||||
|
{
|
||||||
|
return this->modifyPrimaryTrunksOfSkillGroup(request);
|
||||||
|
});
|
||||||
|
|
||||||
|
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||||
|
return task->get_future();
|
||||||
|
}
|
||||||
|
|
||||||
CCCClient::ModifyPrivacyNumberCallDetailOutcome CCCClient::modifyPrivacyNumberCallDetail(const ModifyPrivacyNumberCallDetailRequest &request) const
|
CCCClient::ModifyPrivacyNumberCallDetailOutcome CCCClient::modifyPrivacyNumberCallDetail(const ModifyPrivacyNumberCallDetailRequest &request) const
|
||||||
{
|
{
|
||||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||||
|
|||||||
@@ -61,14 +61,14 @@ void AddBulkPhoneNumbersResult::parse(const std::string &payload)
|
|||||||
phoneNumbersObject.usage = valuePhoneNumbersPhoneNumber["Usage"].asString();
|
phoneNumbersObject.usage = valuePhoneNumbersPhoneNumber["Usage"].asString();
|
||||||
if(!valuePhoneNumbersPhoneNumber["Trunks"].isNull())
|
if(!valuePhoneNumbersPhoneNumber["Trunks"].isNull())
|
||||||
phoneNumbersObject.trunks = std::stoi(valuePhoneNumbersPhoneNumber["Trunks"].asString());
|
phoneNumbersObject.trunks = std::stoi(valuePhoneNumbersPhoneNumber["Trunks"].asString());
|
||||||
auto allSkillGroupsNode = allPhoneNumbersNode["SkillGroups"]["SkillGroup"];
|
auto allSkillGroupsNode = valuePhoneNumbersPhoneNumber["SkillGroups"]["SkillGroup"];
|
||||||
for (auto allPhoneNumbersNodeSkillGroupsSkillGroup : allSkillGroupsNode)
|
for (auto valuePhoneNumbersPhoneNumberSkillGroupsSkillGroup : allSkillGroupsNode)
|
||||||
{
|
{
|
||||||
PhoneNumber::SkillGroup skillGroupsObject;
|
PhoneNumber::SkillGroup skillGroupsObject;
|
||||||
if(!allPhoneNumbersNodeSkillGroupsSkillGroup["SkillGroupId"].isNull())
|
if(!valuePhoneNumbersPhoneNumberSkillGroupsSkillGroup["SkillGroupId"].isNull())
|
||||||
skillGroupsObject.skillGroupId = allPhoneNumbersNodeSkillGroupsSkillGroup["SkillGroupId"].asString();
|
skillGroupsObject.skillGroupId = valuePhoneNumbersPhoneNumberSkillGroupsSkillGroup["SkillGroupId"].asString();
|
||||||
if(!allPhoneNumbersNodeSkillGroupsSkillGroup["SkillGroupName"].isNull())
|
if(!valuePhoneNumbersPhoneNumberSkillGroupsSkillGroup["SkillGroupName"].isNull())
|
||||||
skillGroupsObject.skillGroupName = allPhoneNumbersNodeSkillGroupsSkillGroup["SkillGroupName"].asString();
|
skillGroupsObject.skillGroupName = valuePhoneNumbersPhoneNumberSkillGroupsSkillGroup["SkillGroupName"].asString();
|
||||||
phoneNumbersObject.skillGroups.push_back(skillGroupsObject);
|
phoneNumbersObject.skillGroups.push_back(skillGroupsObject);
|
||||||
}
|
}
|
||||||
auto contactFlowNode = value["ContactFlow"];
|
auto contactFlowNode = value["ContactFlow"];
|
||||||
|
|||||||
@@ -117,6 +117,17 @@ void AddPhoneTagsRequest::setServiceTag(const std::string& serviceTag)
|
|||||||
setParameter("ServiceTag", serviceTag);
|
setParameter("ServiceTag", serviceTag);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
std::string AddPhoneTagsRequest::getSipTag()const
|
||||||
|
{
|
||||||
|
return sipTag_;
|
||||||
|
}
|
||||||
|
|
||||||
|
void AddPhoneTagsRequest::setSipTag(const std::string& sipTag)
|
||||||
|
{
|
||||||
|
sipTag_ = sipTag;
|
||||||
|
setParameter("SipTag", sipTag);
|
||||||
|
}
|
||||||
|
|
||||||
std::string AddPhoneTagsRequest::getRegionNameCity()const
|
std::string AddPhoneTagsRequest::getRegionNameCity()const
|
||||||
{
|
{
|
||||||
return regionNameCity_;
|
return regionNameCity_;
|
||||||
|
|||||||
@@ -66,14 +66,14 @@ void CreateScenarioFromTemplateResult::parse(const std::string &payload)
|
|||||||
surveyObject.round = std::stoi(scenarioNodeSurveysSurvey["Round"].asString());
|
surveyObject.round = std::stoi(scenarioNodeSurveysSurvey["Round"].asString());
|
||||||
if(!scenarioNodeSurveysSurvey["BeebotId"].isNull())
|
if(!scenarioNodeSurveysSurvey["BeebotId"].isNull())
|
||||||
surveyObject.beebotId = scenarioNodeSurveysSurvey["BeebotId"].asString();
|
surveyObject.beebotId = scenarioNodeSurveysSurvey["BeebotId"].asString();
|
||||||
auto allIntentsNode = allSurveysNode["Intents"]["IntentNode"];
|
auto allIntentsNode = scenarioNodeSurveysSurvey["Intents"]["IntentNode"];
|
||||||
for (auto allSurveysNodeIntentsIntentNode : allIntentsNode)
|
for (auto scenarioNodeSurveysSurveyIntentsIntentNode : allIntentsNode)
|
||||||
{
|
{
|
||||||
Scenario::Survey::IntentNode intentsObject;
|
Scenario::Survey::IntentNode intentsObject;
|
||||||
if(!allSurveysNodeIntentsIntentNode["NodeId"].isNull())
|
if(!scenarioNodeSurveysSurveyIntentsIntentNode["NodeId"].isNull())
|
||||||
intentsObject.nodeId = allSurveysNodeIntentsIntentNode["NodeId"].asString();
|
intentsObject.nodeId = scenarioNodeSurveysSurveyIntentsIntentNode["NodeId"].asString();
|
||||||
if(!allSurveysNodeIntentsIntentNode["IntentId"].isNull())
|
if(!scenarioNodeSurveysSurveyIntentsIntentNode["IntentId"].isNull())
|
||||||
intentsObject.intentId = allSurveysNodeIntentsIntentNode["IntentId"].asString();
|
intentsObject.intentId = scenarioNodeSurveysSurveyIntentsIntentNode["IntentId"].asString();
|
||||||
surveyObject.intents.push_back(intentsObject);
|
surveyObject.intents.push_back(intentsObject);
|
||||||
}
|
}
|
||||||
scenario_.surveys.push_back(surveyObject);
|
scenario_.surveys.push_back(surveyObject);
|
||||||
|
|||||||
@@ -66,14 +66,14 @@ void CreateScenarioResult::parse(const std::string &payload)
|
|||||||
surveyObject.round = std::stoi(scenarioNodeSurveysSurvey["Round"].asString());
|
surveyObject.round = std::stoi(scenarioNodeSurveysSurvey["Round"].asString());
|
||||||
if(!scenarioNodeSurveysSurvey["BeebotId"].isNull())
|
if(!scenarioNodeSurveysSurvey["BeebotId"].isNull())
|
||||||
surveyObject.beebotId = scenarioNodeSurveysSurvey["BeebotId"].asString();
|
surveyObject.beebotId = scenarioNodeSurveysSurvey["BeebotId"].asString();
|
||||||
auto allIntentsNode = allSurveysNode["Intents"]["IntentNode"];
|
auto allIntentsNode = scenarioNodeSurveysSurvey["Intents"]["IntentNode"];
|
||||||
for (auto allSurveysNodeIntentsIntentNode : allIntentsNode)
|
for (auto scenarioNodeSurveysSurveyIntentsIntentNode : allIntentsNode)
|
||||||
{
|
{
|
||||||
Scenario::Survey::IntentNode intentsObject;
|
Scenario::Survey::IntentNode intentsObject;
|
||||||
if(!allSurveysNodeIntentsIntentNode["NodeId"].isNull())
|
if(!scenarioNodeSurveysSurveyIntentsIntentNode["NodeId"].isNull())
|
||||||
intentsObject.nodeId = allSurveysNodeIntentsIntentNode["NodeId"].asString();
|
intentsObject.nodeId = scenarioNodeSurveysSurveyIntentsIntentNode["NodeId"].asString();
|
||||||
if(!allSurveysNodeIntentsIntentNode["IntentId"].isNull())
|
if(!scenarioNodeSurveysSurveyIntentsIntentNode["IntentId"].isNull())
|
||||||
intentsObject.intentId = allSurveysNodeIntentsIntentNode["IntentId"].asString();
|
intentsObject.intentId = scenarioNodeSurveysSurveyIntentsIntentNode["IntentId"].asString();
|
||||||
surveyObject.intents.push_back(intentsObject);
|
surveyObject.intents.push_back(intentsObject);
|
||||||
}
|
}
|
||||||
scenario_.surveys.push_back(surveyObject);
|
scenario_.surveys.push_back(surveyObject);
|
||||||
|
|||||||
53
ccc/src/model/DisableTrunkProvidersRequest.cc
Normal file
53
ccc/src/model/DisableTrunkProvidersRequest.cc
Normal file
@@ -0,0 +1,53 @@
|
|||||||
|
/*
|
||||||
|
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||||
|
*
|
||||||
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
|
* you may not use this file except in compliance with the License.
|
||||||
|
* You may obtain a copy of the License at
|
||||||
|
*
|
||||||
|
* http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
*
|
||||||
|
* Unless required by applicable law or agreed to in writing, software
|
||||||
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
|
* WITHOUT 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/ccc/model/DisableTrunkProvidersRequest.h>
|
||||||
|
|
||||||
|
using AlibabaCloud::CCC::Model::DisableTrunkProvidersRequest;
|
||||||
|
|
||||||
|
DisableTrunkProvidersRequest::DisableTrunkProvidersRequest() :
|
||||||
|
RpcServiceRequest("ccc", "2017-07-05", "DisableTrunkProviders")
|
||||||
|
{
|
||||||
|
setMethod(HttpRequest::Method::Post);
|
||||||
|
}
|
||||||
|
|
||||||
|
DisableTrunkProvidersRequest::~DisableTrunkProvidersRequest()
|
||||||
|
{}
|
||||||
|
|
||||||
|
std::vector<std::string> DisableTrunkProvidersRequest::getProviderName()const
|
||||||
|
{
|
||||||
|
return providerName_;
|
||||||
|
}
|
||||||
|
|
||||||
|
void DisableTrunkProvidersRequest::setProviderName(const std::vector<std::string>& providerName)
|
||||||
|
{
|
||||||
|
providerName_ = providerName;
|
||||||
|
for(int dep1 = 0; dep1!= providerName.size(); dep1++) {
|
||||||
|
setParameter("ProviderName."+ std::to_string(dep1), providerName.at(dep1));
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
std::string DisableTrunkProvidersRequest::getAccessKeyId()const
|
||||||
|
{
|
||||||
|
return accessKeyId_;
|
||||||
|
}
|
||||||
|
|
||||||
|
void DisableTrunkProvidersRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||||
|
{
|
||||||
|
accessKeyId_ = accessKeyId;
|
||||||
|
setParameter("AccessKeyId", accessKeyId);
|
||||||
|
}
|
||||||
|
|
||||||
@@ -14,34 +14,31 @@
|
|||||||
* limitations under the License.
|
* limitations under the License.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <alibabacloud/outboundbot/model/DownloadUnreachableContactsResult.h>
|
#include <alibabacloud/ccc/model/DisableTrunkProvidersResult.h>
|
||||||
#include <json/json.h>
|
#include <json/json.h>
|
||||||
|
|
||||||
using namespace AlibabaCloud::OutboundBot;
|
using namespace AlibabaCloud::CCC;
|
||||||
using namespace AlibabaCloud::OutboundBot::Model;
|
using namespace AlibabaCloud::CCC::Model;
|
||||||
|
|
||||||
DownloadUnreachableContactsResult::DownloadUnreachableContactsResult() :
|
DisableTrunkProvidersResult::DisableTrunkProvidersResult() :
|
||||||
ServiceResult()
|
ServiceResult()
|
||||||
{}
|
{}
|
||||||
|
|
||||||
DownloadUnreachableContactsResult::DownloadUnreachableContactsResult(const std::string &payload) :
|
DisableTrunkProvidersResult::DisableTrunkProvidersResult(const std::string &payload) :
|
||||||
ServiceResult()
|
ServiceResult()
|
||||||
{
|
{
|
||||||
parse(payload);
|
parse(payload);
|
||||||
}
|
}
|
||||||
|
|
||||||
DownloadUnreachableContactsResult::~DownloadUnreachableContactsResult()
|
DisableTrunkProvidersResult::~DisableTrunkProvidersResult()
|
||||||
{}
|
{}
|
||||||
|
|
||||||
void DownloadUnreachableContactsResult::parse(const std::string &payload)
|
void DisableTrunkProvidersResult::parse(const std::string &payload)
|
||||||
{
|
{
|
||||||
Json::Reader reader;
|
Json::Reader reader;
|
||||||
Json::Value value;
|
Json::Value value;
|
||||||
reader.parse(payload, value);
|
reader.parse(payload, value);
|
||||||
setRequestId(value["RequestId"].asString());
|
setRequestId(value["RequestId"].asString());
|
||||||
auto downloadParamsNode = value["DownloadParams"];
|
|
||||||
if(!downloadParamsNode["SignatureUrl"].isNull())
|
|
||||||
downloadParams_.signatureUrl = downloadParamsNode["SignatureUrl"].asString();
|
|
||||||
if(!value["Success"].isNull())
|
if(!value["Success"].isNull())
|
||||||
success_ = value["Success"].asString() == "true";
|
success_ = value["Success"].asString() == "true";
|
||||||
if(!value["Code"].isNull())
|
if(!value["Code"].isNull())
|
||||||
@@ -53,27 +50,22 @@ void DownloadUnreachableContactsResult::parse(const std::string &payload)
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
DownloadUnreachableContactsResult::DownloadParams DownloadUnreachableContactsResult::getDownloadParams()const
|
std::string DisableTrunkProvidersResult::getMessage()const
|
||||||
{
|
|
||||||
return downloadParams_;
|
|
||||||
}
|
|
||||||
|
|
||||||
std::string DownloadUnreachableContactsResult::getMessage()const
|
|
||||||
{
|
{
|
||||||
return message_;
|
return message_;
|
||||||
}
|
}
|
||||||
|
|
||||||
int DownloadUnreachableContactsResult::getHttpStatusCode()const
|
int DisableTrunkProvidersResult::getHttpStatusCode()const
|
||||||
{
|
{
|
||||||
return httpStatusCode_;
|
return httpStatusCode_;
|
||||||
}
|
}
|
||||||
|
|
||||||
std::string DownloadUnreachableContactsResult::getCode()const
|
std::string DisableTrunkProvidersResult::getCode()const
|
||||||
{
|
{
|
||||||
return code_;
|
return code_;
|
||||||
}
|
}
|
||||||
|
|
||||||
bool DownloadUnreachableContactsResult::getSuccess()const
|
bool DisableTrunkProvidersResult::getSuccess()const
|
||||||
{
|
{
|
||||||
return success_;
|
return success_;
|
||||||
}
|
}
|
||||||
@@ -58,28 +58,28 @@ void FindUsersResult::parse(const std::string &payload)
|
|||||||
userObject.instanceId = usersNodeListUser["InstanceId"].asString();
|
userObject.instanceId = usersNodeListUser["InstanceId"].asString();
|
||||||
if(!usersNodeListUser["PrivateOutboundNumberId"].isNull())
|
if(!usersNodeListUser["PrivateOutboundNumberId"].isNull())
|
||||||
userObject.privateOutboundNumberId = usersNodeListUser["PrivateOutboundNumberId"].asString();
|
userObject.privateOutboundNumberId = usersNodeListUser["PrivateOutboundNumberId"].asString();
|
||||||
auto allRolesNode = allListNode["Roles"]["Role"];
|
auto allRolesNode = usersNodeListUser["Roles"]["Role"];
|
||||||
for (auto allListNodeRolesRole : allRolesNode)
|
for (auto usersNodeListUserRolesRole : allRolesNode)
|
||||||
{
|
{
|
||||||
Users::User::Role rolesObject;
|
Users::User::Role rolesObject;
|
||||||
if(!allListNodeRolesRole["RoleId"].isNull())
|
if(!usersNodeListUserRolesRole["RoleId"].isNull())
|
||||||
rolesObject.roleId = allListNodeRolesRole["RoleId"].asString();
|
rolesObject.roleId = usersNodeListUserRolesRole["RoleId"].asString();
|
||||||
if(!allListNodeRolesRole["InstanceId"].isNull())
|
if(!usersNodeListUserRolesRole["InstanceId"].isNull())
|
||||||
rolesObject.instanceId = allListNodeRolesRole["InstanceId"].asString();
|
rolesObject.instanceId = usersNodeListUserRolesRole["InstanceId"].asString();
|
||||||
if(!allListNodeRolesRole["RoleName"].isNull())
|
if(!usersNodeListUserRolesRole["RoleName"].isNull())
|
||||||
rolesObject.roleName = allListNodeRolesRole["RoleName"].asString();
|
rolesObject.roleName = usersNodeListUserRolesRole["RoleName"].asString();
|
||||||
if(!allListNodeRolesRole["RoleDescription"].isNull())
|
if(!usersNodeListUserRolesRole["RoleDescription"].isNull())
|
||||||
rolesObject.roleDescription = allListNodeRolesRole["RoleDescription"].asString();
|
rolesObject.roleDescription = usersNodeListUserRolesRole["RoleDescription"].asString();
|
||||||
userObject.roles.push_back(rolesObject);
|
userObject.roles.push_back(rolesObject);
|
||||||
}
|
}
|
||||||
auto allSkillLevelsNode = allListNode["SkillLevels"]["SkillLevel"];
|
auto allSkillLevelsNode = usersNodeListUser["SkillLevels"]["SkillLevel"];
|
||||||
for (auto allListNodeSkillLevelsSkillLevel : allSkillLevelsNode)
|
for (auto usersNodeListUserSkillLevelsSkillLevel : allSkillLevelsNode)
|
||||||
{
|
{
|
||||||
Users::User::SkillLevel skillLevelsObject;
|
Users::User::SkillLevel skillLevelsObject;
|
||||||
if(!allListNodeSkillLevelsSkillLevel["SkillLevelId"].isNull())
|
if(!usersNodeListUserSkillLevelsSkillLevel["SkillLevelId"].isNull())
|
||||||
skillLevelsObject.skillLevelId = allListNodeSkillLevelsSkillLevel["SkillLevelId"].asString();
|
skillLevelsObject.skillLevelId = usersNodeListUserSkillLevelsSkillLevel["SkillLevelId"].asString();
|
||||||
if(!allListNodeSkillLevelsSkillLevel["Level"].isNull())
|
if(!usersNodeListUserSkillLevelsSkillLevel["Level"].isNull())
|
||||||
skillLevelsObject.level = std::stoi(allListNodeSkillLevelsSkillLevel["Level"].asString());
|
skillLevelsObject.level = std::stoi(usersNodeListUserSkillLevelsSkillLevel["Level"].asString());
|
||||||
auto skillNode = value["Skill"];
|
auto skillNode = value["Skill"];
|
||||||
if(!skillNode["SkillGroupId"].isNull())
|
if(!skillNode["SkillGroupId"].isNull())
|
||||||
skillLevelsObject.skill.skillGroupId = skillNode["SkillGroupId"].asString();
|
skillLevelsObject.skill.skillGroupId = skillNode["SkillGroupId"].asString();
|
||||||
|
|||||||
@@ -49,16 +49,16 @@ void GetConversationListResult::parse(const std::string &payload)
|
|||||||
conversationsObject.speaker = valueConversationsConversationDetail["Speaker"].asString();
|
conversationsObject.speaker = valueConversationsConversationDetail["Speaker"].asString();
|
||||||
if(!valueConversationsConversationDetail["Script"].isNull())
|
if(!valueConversationsConversationDetail["Script"].isNull())
|
||||||
conversationsObject.script = valueConversationsConversationDetail["Script"].asString();
|
conversationsObject.script = valueConversationsConversationDetail["Script"].asString();
|
||||||
auto allSummaryNode = allConversationsNode["Summary"]["SummaryItem"];
|
auto allSummaryNode = valueConversationsConversationDetail["Summary"]["SummaryItem"];
|
||||||
for (auto allConversationsNodeSummarySummaryItem : allSummaryNode)
|
for (auto valueConversationsConversationDetailSummarySummaryItem : allSummaryNode)
|
||||||
{
|
{
|
||||||
ConversationDetail::SummaryItem summaryObject;
|
ConversationDetail::SummaryItem summaryObject;
|
||||||
if(!allConversationsNodeSummarySummaryItem["Category"].isNull())
|
if(!valueConversationsConversationDetailSummarySummaryItem["Category"].isNull())
|
||||||
summaryObject.category = allConversationsNodeSummarySummaryItem["Category"].asString();
|
summaryObject.category = valueConversationsConversationDetailSummarySummaryItem["Category"].asString();
|
||||||
if(!allConversationsNodeSummarySummaryItem["SummaryName"].isNull())
|
if(!valueConversationsConversationDetailSummarySummaryItem["SummaryName"].isNull())
|
||||||
summaryObject.summaryName = allConversationsNodeSummarySummaryItem["SummaryName"].asString();
|
summaryObject.summaryName = valueConversationsConversationDetailSummarySummaryItem["SummaryName"].asString();
|
||||||
if(!allConversationsNodeSummarySummaryItem["Content"].isNull())
|
if(!valueConversationsConversationDetailSummarySummaryItem["Content"].isNull())
|
||||||
summaryObject.content = allConversationsNodeSummarySummaryItem["Content"].asString();
|
summaryObject.content = valueConversationsConversationDetailSummarySummaryItem["Content"].asString();
|
||||||
conversationsObject.summary.push_back(summaryObject);
|
conversationsObject.summary.push_back(summaryObject);
|
||||||
}
|
}
|
||||||
conversations_.push_back(conversationsObject);
|
conversations_.push_back(conversationsObject);
|
||||||
|
|||||||
@@ -68,58 +68,58 @@ void GetJobListResult::parse(const std::string &payload)
|
|||||||
jobObject.referenceId = jobsNodeListJob["ReferenceId"].asString();
|
jobObject.referenceId = jobsNodeListJob["ReferenceId"].asString();
|
||||||
if(!jobsNodeListJob["FailureReason"].isNull())
|
if(!jobsNodeListJob["FailureReason"].isNull())
|
||||||
jobObject.failureReason = jobsNodeListJob["FailureReason"].asString();
|
jobObject.failureReason = jobsNodeListJob["FailureReason"].asString();
|
||||||
auto allContactsNode = allListNode["Contacts"]["Contact"];
|
auto allContactsNode = jobsNodeListJob["Contacts"]["Contact"];
|
||||||
for (auto allListNodeContactsContact : allContactsNode)
|
for (auto jobsNodeListJobContactsContact : allContactsNode)
|
||||||
{
|
{
|
||||||
Jobs::Job::Contact contactsObject;
|
Jobs::Job::Contact contactsObject;
|
||||||
if(!allListNodeContactsContact["ContactId"].isNull())
|
if(!jobsNodeListJobContactsContact["ContactId"].isNull())
|
||||||
contactsObject.contactId = allListNodeContactsContact["ContactId"].asString();
|
contactsObject.contactId = jobsNodeListJobContactsContact["ContactId"].asString();
|
||||||
if(!allListNodeContactsContact["ContactName"].isNull())
|
if(!jobsNodeListJobContactsContact["ContactName"].isNull())
|
||||||
contactsObject.contactName = allListNodeContactsContact["ContactName"].asString();
|
contactsObject.contactName = jobsNodeListJobContactsContact["ContactName"].asString();
|
||||||
if(!allListNodeContactsContact["Honorific"].isNull())
|
if(!jobsNodeListJobContactsContact["Honorific"].isNull())
|
||||||
contactsObject.honorific = allListNodeContactsContact["Honorific"].asString();
|
contactsObject.honorific = jobsNodeListJobContactsContact["Honorific"].asString();
|
||||||
if(!allListNodeContactsContact["Role"].isNull())
|
if(!jobsNodeListJobContactsContact["Role"].isNull())
|
||||||
contactsObject.role = allListNodeContactsContact["Role"].asString();
|
contactsObject.role = jobsNodeListJobContactsContact["Role"].asString();
|
||||||
if(!allListNodeContactsContact["PhoneNumber"].isNull())
|
if(!jobsNodeListJobContactsContact["PhoneNumber"].isNull())
|
||||||
contactsObject.phoneNumber = allListNodeContactsContact["PhoneNumber"].asString();
|
contactsObject.phoneNumber = jobsNodeListJobContactsContact["PhoneNumber"].asString();
|
||||||
if(!allListNodeContactsContact["State"].isNull())
|
if(!jobsNodeListJobContactsContact["State"].isNull())
|
||||||
contactsObject.state = allListNodeContactsContact["State"].asString();
|
contactsObject.state = jobsNodeListJobContactsContact["State"].asString();
|
||||||
if(!allListNodeContactsContact["ReferenceId"].isNull())
|
if(!jobsNodeListJobContactsContact["ReferenceId"].isNull())
|
||||||
contactsObject.referenceId = allListNodeContactsContact["ReferenceId"].asString();
|
contactsObject.referenceId = jobsNodeListJobContactsContact["ReferenceId"].asString();
|
||||||
if(!allListNodeContactsContact["JobId"].isNull())
|
if(!jobsNodeListJobContactsContact["JobId"].isNull())
|
||||||
contactsObject.jobId = allListNodeContactsContact["JobId"].asString();
|
contactsObject.jobId = jobsNodeListJobContactsContact["JobId"].asString();
|
||||||
jobObject.contacts.push_back(contactsObject);
|
jobObject.contacts.push_back(contactsObject);
|
||||||
}
|
}
|
||||||
auto allExtrasNode = allListNode["Extras"]["KeyValuePair"];
|
auto allExtrasNode = jobsNodeListJob["Extras"]["KeyValuePair"];
|
||||||
for (auto allListNodeExtrasKeyValuePair : allExtrasNode)
|
for (auto jobsNodeListJobExtrasKeyValuePair : allExtrasNode)
|
||||||
{
|
{
|
||||||
Jobs::Job::KeyValuePair extrasObject;
|
Jobs::Job::KeyValuePair extrasObject;
|
||||||
if(!allListNodeExtrasKeyValuePair["Key"].isNull())
|
if(!jobsNodeListJobExtrasKeyValuePair["Key"].isNull())
|
||||||
extrasObject.key = allListNodeExtrasKeyValuePair["Key"].asString();
|
extrasObject.key = jobsNodeListJobExtrasKeyValuePair["Key"].asString();
|
||||||
if(!allListNodeExtrasKeyValuePair["Value"].isNull())
|
if(!jobsNodeListJobExtrasKeyValuePair["Value"].isNull())
|
||||||
extrasObject.value = allListNodeExtrasKeyValuePair["Value"].asString();
|
extrasObject.value = jobsNodeListJobExtrasKeyValuePair["Value"].asString();
|
||||||
jobObject.extras.push_back(extrasObject);
|
jobObject.extras.push_back(extrasObject);
|
||||||
}
|
}
|
||||||
auto allSummaryNode = allListNode["Summary"]["SummaryItem"];
|
auto allSummaryNode = jobsNodeListJob["Summary"]["SummaryItem"];
|
||||||
for (auto allListNodeSummarySummaryItem : allSummaryNode)
|
for (auto jobsNodeListJobSummarySummaryItem : allSummaryNode)
|
||||||
{
|
{
|
||||||
Jobs::Job::SummaryItem summaryObject;
|
Jobs::Job::SummaryItem summaryObject;
|
||||||
if(!allListNodeSummarySummaryItem["SummaryId"].isNull())
|
if(!jobsNodeListJobSummarySummaryItem["SummaryId"].isNull())
|
||||||
summaryObject.summaryId = allListNodeSummarySummaryItem["SummaryId"].asString();
|
summaryObject.summaryId = jobsNodeListJobSummarySummaryItem["SummaryId"].asString();
|
||||||
if(!allListNodeSummarySummaryItem["GroupId"].isNull())
|
if(!jobsNodeListJobSummarySummaryItem["GroupId"].isNull())
|
||||||
summaryObject.groupId = allListNodeSummarySummaryItem["GroupId"].asString();
|
summaryObject.groupId = jobsNodeListJobSummarySummaryItem["GroupId"].asString();
|
||||||
if(!allListNodeSummarySummaryItem["JobId"].isNull())
|
if(!jobsNodeListJobSummarySummaryItem["JobId"].isNull())
|
||||||
summaryObject.jobId = allListNodeSummarySummaryItem["JobId"].asString();
|
summaryObject.jobId = jobsNodeListJobSummarySummaryItem["JobId"].asString();
|
||||||
if(!allListNodeSummarySummaryItem["TaskId"].isNull())
|
if(!jobsNodeListJobSummarySummaryItem["TaskId"].isNull())
|
||||||
summaryObject.taskId = allListNodeSummarySummaryItem["TaskId"].asString();
|
summaryObject.taskId = jobsNodeListJobSummarySummaryItem["TaskId"].asString();
|
||||||
if(!allListNodeSummarySummaryItem["ConversationDetailId"].isNull())
|
if(!jobsNodeListJobSummarySummaryItem["ConversationDetailId"].isNull())
|
||||||
summaryObject.conversationDetailId = allListNodeSummarySummaryItem["ConversationDetailId"].asString();
|
summaryObject.conversationDetailId = jobsNodeListJobSummarySummaryItem["ConversationDetailId"].asString();
|
||||||
if(!allListNodeSummarySummaryItem["Category"].isNull())
|
if(!jobsNodeListJobSummarySummaryItem["Category"].isNull())
|
||||||
summaryObject.category = allListNodeSummarySummaryItem["Category"].asString();
|
summaryObject.category = jobsNodeListJobSummarySummaryItem["Category"].asString();
|
||||||
if(!allListNodeSummarySummaryItem["SummaryName"].isNull())
|
if(!jobsNodeListJobSummarySummaryItem["SummaryName"].isNull())
|
||||||
summaryObject.summaryName = allListNodeSummarySummaryItem["SummaryName"].asString();
|
summaryObject.summaryName = jobsNodeListJobSummarySummaryItem["SummaryName"].asString();
|
||||||
if(!allListNodeSummarySummaryItem["Content"].isNull())
|
if(!jobsNodeListJobSummarySummaryItem["Content"].isNull())
|
||||||
summaryObject.content = allListNodeSummarySummaryItem["Content"].asString();
|
summaryObject.content = jobsNodeListJobSummarySummaryItem["Content"].asString();
|
||||||
jobObject.summary.push_back(summaryObject);
|
jobObject.summary.push_back(summaryObject);
|
||||||
}
|
}
|
||||||
auto allCallingNumbers = value["CallingNumbers"]["String"];
|
auto allCallingNumbers = value["CallingNumbers"]["String"];
|
||||||
|
|||||||
@@ -116,26 +116,26 @@ void GetJobResult::parse(const std::string &payload)
|
|||||||
taskObject.brief = jobNodeTasksTask["Brief"].asString();
|
taskObject.brief = jobNodeTasksTask["Brief"].asString();
|
||||||
if(!jobNodeTasksTask["Duration"].isNull())
|
if(!jobNodeTasksTask["Duration"].isNull())
|
||||||
taskObject.duration = std::stoi(jobNodeTasksTask["Duration"].asString());
|
taskObject.duration = std::stoi(jobNodeTasksTask["Duration"].asString());
|
||||||
auto allConversationNode = allTasksNode["Conversation"]["ConversationDetail"];
|
auto allConversationNode = jobNodeTasksTask["Conversation"]["ConversationDetail"];
|
||||||
for (auto allTasksNodeConversationConversationDetail : allConversationNode)
|
for (auto jobNodeTasksTaskConversationConversationDetail : allConversationNode)
|
||||||
{
|
{
|
||||||
Job::Task::ConversationDetail conversationObject;
|
Job::Task::ConversationDetail conversationObject;
|
||||||
if(!allTasksNodeConversationConversationDetail["Timestamp"].isNull())
|
if(!jobNodeTasksTaskConversationConversationDetail["Timestamp"].isNull())
|
||||||
conversationObject.timestamp = std::stol(allTasksNodeConversationConversationDetail["Timestamp"].asString());
|
conversationObject.timestamp = std::stol(jobNodeTasksTaskConversationConversationDetail["Timestamp"].asString());
|
||||||
if(!allTasksNodeConversationConversationDetail["Speaker"].isNull())
|
if(!jobNodeTasksTaskConversationConversationDetail["Speaker"].isNull())
|
||||||
conversationObject.speaker = allTasksNodeConversationConversationDetail["Speaker"].asString();
|
conversationObject.speaker = jobNodeTasksTaskConversationConversationDetail["Speaker"].asString();
|
||||||
if(!allTasksNodeConversationConversationDetail["Script"].isNull())
|
if(!jobNodeTasksTaskConversationConversationDetail["Script"].isNull())
|
||||||
conversationObject.script = allTasksNodeConversationConversationDetail["Script"].asString();
|
conversationObject.script = jobNodeTasksTaskConversationConversationDetail["Script"].asString();
|
||||||
auto allSummary1Node = allConversationNode["Summary"]["SummaryItem"];
|
auto allSummary1Node = jobNodeTasksTaskConversationConversationDetail["Summary"]["SummaryItem"];
|
||||||
for (auto allConversationNodeSummarySummaryItem : allSummary1Node)
|
for (auto jobNodeTasksTaskConversationConversationDetailSummarySummaryItem : allSummary1Node)
|
||||||
{
|
{
|
||||||
Job::Task::ConversationDetail::SummaryItem summary1Object;
|
Job::Task::ConversationDetail::SummaryItem summary1Object;
|
||||||
if(!allConversationNodeSummarySummaryItem["Category"].isNull())
|
if(!jobNodeTasksTaskConversationConversationDetailSummarySummaryItem["Category"].isNull())
|
||||||
summary1Object.category = allConversationNodeSummarySummaryItem["Category"].asString();
|
summary1Object.category = jobNodeTasksTaskConversationConversationDetailSummarySummaryItem["Category"].asString();
|
||||||
if(!allConversationNodeSummarySummaryItem["SummaryName"].isNull())
|
if(!jobNodeTasksTaskConversationConversationDetailSummarySummaryItem["SummaryName"].isNull())
|
||||||
summary1Object.summaryName = allConversationNodeSummarySummaryItem["SummaryName"].asString();
|
summary1Object.summaryName = jobNodeTasksTaskConversationConversationDetailSummarySummaryItem["SummaryName"].asString();
|
||||||
if(!allConversationNodeSummarySummaryItem["Content"].isNull())
|
if(!jobNodeTasksTaskConversationConversationDetailSummarySummaryItem["Content"].isNull())
|
||||||
summary1Object.content = allConversationNodeSummarySummaryItem["Content"].asString();
|
summary1Object.content = jobNodeTasksTaskConversationConversationDetailSummarySummaryItem["Content"].asString();
|
||||||
conversationObject.summary1.push_back(summary1Object);
|
conversationObject.summary1.push_back(summary1Object);
|
||||||
}
|
}
|
||||||
taskObject.conversation.push_back(conversationObject);
|
taskObject.conversation.push_back(conversationObject);
|
||||||
|
|||||||
@@ -118,32 +118,32 @@ void GetJobStatusByCallIdResult::parse(const std::string &payload)
|
|||||||
taskObject.brief = jobNodeTasksTask["Brief"].asString();
|
taskObject.brief = jobNodeTasksTask["Brief"].asString();
|
||||||
if(!jobNodeTasksTask["Duration"].isNull())
|
if(!jobNodeTasksTask["Duration"].isNull())
|
||||||
taskObject.duration = std::stoi(jobNodeTasksTask["Duration"].asString());
|
taskObject.duration = std::stoi(jobNodeTasksTask["Duration"].asString());
|
||||||
auto allConversationNode = allTasksNode["Conversation"]["ConversationDetail"];
|
auto allConversationNode = jobNodeTasksTask["Conversation"]["ConversationDetail"];
|
||||||
for (auto allTasksNodeConversationConversationDetail : allConversationNode)
|
for (auto jobNodeTasksTaskConversationConversationDetail : allConversationNode)
|
||||||
{
|
{
|
||||||
Job::Task::ConversationDetail conversationObject;
|
Job::Task::ConversationDetail conversationObject;
|
||||||
if(!allTasksNodeConversationConversationDetail["ConversationDetailId"].isNull())
|
if(!jobNodeTasksTaskConversationConversationDetail["ConversationDetailId"].isNull())
|
||||||
conversationObject.conversationDetailId = allTasksNodeConversationConversationDetail["ConversationDetailId"].asString();
|
conversationObject.conversationDetailId = jobNodeTasksTaskConversationConversationDetail["ConversationDetailId"].asString();
|
||||||
if(!allTasksNodeConversationConversationDetail["TaskId"].isNull())
|
if(!jobNodeTasksTaskConversationConversationDetail["TaskId"].isNull())
|
||||||
conversationObject.taskId = allTasksNodeConversationConversationDetail["TaskId"].asString();
|
conversationObject.taskId = jobNodeTasksTaskConversationConversationDetail["TaskId"].asString();
|
||||||
if(!allTasksNodeConversationConversationDetail["Timestamp"].isNull())
|
if(!jobNodeTasksTaskConversationConversationDetail["Timestamp"].isNull())
|
||||||
conversationObject.timestamp = std::stol(allTasksNodeConversationConversationDetail["Timestamp"].asString());
|
conversationObject.timestamp = std::stol(jobNodeTasksTaskConversationConversationDetail["Timestamp"].asString());
|
||||||
if(!allTasksNodeConversationConversationDetail["Speaker"].isNull())
|
if(!jobNodeTasksTaskConversationConversationDetail["Speaker"].isNull())
|
||||||
conversationObject.speaker = allTasksNodeConversationConversationDetail["Speaker"].asString();
|
conversationObject.speaker = jobNodeTasksTaskConversationConversationDetail["Speaker"].asString();
|
||||||
if(!allTasksNodeConversationConversationDetail["Script"].isNull())
|
if(!jobNodeTasksTaskConversationConversationDetail["Script"].isNull())
|
||||||
conversationObject.script = allTasksNodeConversationConversationDetail["Script"].asString();
|
conversationObject.script = jobNodeTasksTaskConversationConversationDetail["Script"].asString();
|
||||||
auto allSummary1Node = allConversationNode["Summary"]["SummaryItem"];
|
auto allSummary1Node = jobNodeTasksTaskConversationConversationDetail["Summary"]["SummaryItem"];
|
||||||
for (auto allConversationNodeSummarySummaryItem : allSummary1Node)
|
for (auto jobNodeTasksTaskConversationConversationDetailSummarySummaryItem : allSummary1Node)
|
||||||
{
|
{
|
||||||
Job::Task::ConversationDetail::SummaryItem summary1Object;
|
Job::Task::ConversationDetail::SummaryItem summary1Object;
|
||||||
if(!allConversationNodeSummarySummaryItem["SummaryId"].isNull())
|
if(!jobNodeTasksTaskConversationConversationDetailSummarySummaryItem["SummaryId"].isNull())
|
||||||
summary1Object.summaryId = allConversationNodeSummarySummaryItem["SummaryId"].asString();
|
summary1Object.summaryId = jobNodeTasksTaskConversationConversationDetailSummarySummaryItem["SummaryId"].asString();
|
||||||
if(!allConversationNodeSummarySummaryItem["Category"].isNull())
|
if(!jobNodeTasksTaskConversationConversationDetailSummarySummaryItem["Category"].isNull())
|
||||||
summary1Object.category = allConversationNodeSummarySummaryItem["Category"].asString();
|
summary1Object.category = jobNodeTasksTaskConversationConversationDetailSummarySummaryItem["Category"].asString();
|
||||||
if(!allConversationNodeSummarySummaryItem["SummaryName"].isNull())
|
if(!jobNodeTasksTaskConversationConversationDetailSummarySummaryItem["SummaryName"].isNull())
|
||||||
summary1Object.summaryName = allConversationNodeSummarySummaryItem["SummaryName"].asString();
|
summary1Object.summaryName = jobNodeTasksTaskConversationConversationDetailSummarySummaryItem["SummaryName"].asString();
|
||||||
if(!allConversationNodeSummarySummaryItem["Content"].isNull())
|
if(!jobNodeTasksTaskConversationConversationDetailSummarySummaryItem["Content"].isNull())
|
||||||
summary1Object.content = allConversationNodeSummarySummaryItem["Content"].asString();
|
summary1Object.content = jobNodeTasksTaskConversationConversationDetailSummarySummaryItem["Content"].asString();
|
||||||
conversationObject.summary1.push_back(summary1Object);
|
conversationObject.summary1.push_back(summary1Object);
|
||||||
}
|
}
|
||||||
taskObject.conversation.push_back(conversationObject);
|
taskObject.conversation.push_back(conversationObject);
|
||||||
|
|||||||
@@ -66,14 +66,14 @@ void GetScenarioResult::parse(const std::string &payload)
|
|||||||
surveyObject.round = std::stoi(scenarioNodeSurveysSurvey["Round"].asString());
|
surveyObject.round = std::stoi(scenarioNodeSurveysSurvey["Round"].asString());
|
||||||
if(!scenarioNodeSurveysSurvey["BeebotId"].isNull())
|
if(!scenarioNodeSurveysSurvey["BeebotId"].isNull())
|
||||||
surveyObject.beebotId = scenarioNodeSurveysSurvey["BeebotId"].asString();
|
surveyObject.beebotId = scenarioNodeSurveysSurvey["BeebotId"].asString();
|
||||||
auto allIntentsNode = allSurveysNode["Intents"]["IntentNode"];
|
auto allIntentsNode = scenarioNodeSurveysSurvey["Intents"]["IntentNode"];
|
||||||
for (auto allSurveysNodeIntentsIntentNode : allIntentsNode)
|
for (auto scenarioNodeSurveysSurveyIntentsIntentNode : allIntentsNode)
|
||||||
{
|
{
|
||||||
Scenario::Survey::IntentNode intentsObject;
|
Scenario::Survey::IntentNode intentsObject;
|
||||||
if(!allSurveysNodeIntentsIntentNode["NodeId"].isNull())
|
if(!scenarioNodeSurveysSurveyIntentsIntentNode["NodeId"].isNull())
|
||||||
intentsObject.nodeId = allSurveysNodeIntentsIntentNode["NodeId"].asString();
|
intentsObject.nodeId = scenarioNodeSurveysSurveyIntentsIntentNode["NodeId"].asString();
|
||||||
if(!allSurveysNodeIntentsIntentNode["IntentId"].isNull())
|
if(!scenarioNodeSurveysSurveyIntentsIntentNode["IntentId"].isNull())
|
||||||
intentsObject.intentId = allSurveysNodeIntentsIntentNode["IntentId"].asString();
|
intentsObject.intentId = scenarioNodeSurveysSurveyIntentsIntentNode["IntentId"].asString();
|
||||||
surveyObject.intents.push_back(intentsObject);
|
surveyObject.intents.push_back(intentsObject);
|
||||||
}
|
}
|
||||||
scenario_.surveys.push_back(surveyObject);
|
scenario_.surveys.push_back(surveyObject);
|
||||||
|
|||||||
@@ -67,26 +67,26 @@ void GetTaskListResult::parse(const std::string &payload)
|
|||||||
tasksObject.brief = valueTasksTask["Brief"].asString();
|
tasksObject.brief = valueTasksTask["Brief"].asString();
|
||||||
if(!valueTasksTask["Duration"].isNull())
|
if(!valueTasksTask["Duration"].isNull())
|
||||||
tasksObject.duration = std::stoi(valueTasksTask["Duration"].asString());
|
tasksObject.duration = std::stoi(valueTasksTask["Duration"].asString());
|
||||||
auto allConversationNode = allTasksNode["Conversation"]["ConversationDetail"];
|
auto allConversationNode = valueTasksTask["Conversation"]["ConversationDetail"];
|
||||||
for (auto allTasksNodeConversationConversationDetail : allConversationNode)
|
for (auto valueTasksTaskConversationConversationDetail : allConversationNode)
|
||||||
{
|
{
|
||||||
Task::ConversationDetail conversationObject;
|
Task::ConversationDetail conversationObject;
|
||||||
if(!allTasksNodeConversationConversationDetail["Timestamp"].isNull())
|
if(!valueTasksTaskConversationConversationDetail["Timestamp"].isNull())
|
||||||
conversationObject.timestamp = std::stol(allTasksNodeConversationConversationDetail["Timestamp"].asString());
|
conversationObject.timestamp = std::stol(valueTasksTaskConversationConversationDetail["Timestamp"].asString());
|
||||||
if(!allTasksNodeConversationConversationDetail["Speaker"].isNull())
|
if(!valueTasksTaskConversationConversationDetail["Speaker"].isNull())
|
||||||
conversationObject.speaker = allTasksNodeConversationConversationDetail["Speaker"].asString();
|
conversationObject.speaker = valueTasksTaskConversationConversationDetail["Speaker"].asString();
|
||||||
if(!allTasksNodeConversationConversationDetail["Script"].isNull())
|
if(!valueTasksTaskConversationConversationDetail["Script"].isNull())
|
||||||
conversationObject.script = allTasksNodeConversationConversationDetail["Script"].asString();
|
conversationObject.script = valueTasksTaskConversationConversationDetail["Script"].asString();
|
||||||
auto allSummaryNode = allConversationNode["Summary"]["SummaryItem"];
|
auto allSummaryNode = valueTasksTaskConversationConversationDetail["Summary"]["SummaryItem"];
|
||||||
for (auto allConversationNodeSummarySummaryItem : allSummaryNode)
|
for (auto valueTasksTaskConversationConversationDetailSummarySummaryItem : allSummaryNode)
|
||||||
{
|
{
|
||||||
Task::ConversationDetail::SummaryItem summaryObject;
|
Task::ConversationDetail::SummaryItem summaryObject;
|
||||||
if(!allConversationNodeSummarySummaryItem["Category"].isNull())
|
if(!valueTasksTaskConversationConversationDetailSummarySummaryItem["Category"].isNull())
|
||||||
summaryObject.category = allConversationNodeSummarySummaryItem["Category"].asString();
|
summaryObject.category = valueTasksTaskConversationConversationDetailSummarySummaryItem["Category"].asString();
|
||||||
if(!allConversationNodeSummarySummaryItem["SummaryName"].isNull())
|
if(!valueTasksTaskConversationConversationDetailSummarySummaryItem["SummaryName"].isNull())
|
||||||
summaryObject.summaryName = allConversationNodeSummarySummaryItem["SummaryName"].asString();
|
summaryObject.summaryName = valueTasksTaskConversationConversationDetailSummarySummaryItem["SummaryName"].asString();
|
||||||
if(!allConversationNodeSummarySummaryItem["Content"].isNull())
|
if(!valueTasksTaskConversationConversationDetailSummarySummaryItem["Content"].isNull())
|
||||||
summaryObject.content = allConversationNodeSummarySummaryItem["Content"].asString();
|
summaryObject.content = valueTasksTaskConversationConversationDetailSummarySummaryItem["Content"].asString();
|
||||||
conversationObject.summary.push_back(summaryObject);
|
conversationObject.summary.push_back(summaryObject);
|
||||||
}
|
}
|
||||||
tasksObject.conversation.push_back(conversationObject);
|
tasksObject.conversation.push_back(conversationObject);
|
||||||
|
|||||||
@@ -14,36 +14,36 @@
|
|||||||
* limitations under the License.
|
* limitations under the License.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <alibabacloud/outboundbot/model/WithdrawScriptRequest.h>
|
#include <alibabacloud/ccc/model/GetUserByExtensionRequest.h>
|
||||||
|
|
||||||
using AlibabaCloud::OutboundBot::Model::WithdrawScriptRequest;
|
using AlibabaCloud::CCC::Model::GetUserByExtensionRequest;
|
||||||
|
|
||||||
WithdrawScriptRequest::WithdrawScriptRequest() :
|
GetUserByExtensionRequest::GetUserByExtensionRequest() :
|
||||||
RpcServiceRequest("outboundbot", "2019-12-26", "WithdrawScript")
|
RpcServiceRequest("ccc", "2017-07-05", "GetUserByExtension")
|
||||||
{
|
{
|
||||||
setMethod(HttpRequest::Method::Post);
|
setMethod(HttpRequest::Method::Post);
|
||||||
}
|
}
|
||||||
|
|
||||||
WithdrawScriptRequest::~WithdrawScriptRequest()
|
GetUserByExtensionRequest::~GetUserByExtensionRequest()
|
||||||
{}
|
{}
|
||||||
|
|
||||||
std::string WithdrawScriptRequest::getScriptId()const
|
std::string GetUserByExtensionRequest::getExtension()const
|
||||||
{
|
{
|
||||||
return scriptId_;
|
return extension_;
|
||||||
}
|
}
|
||||||
|
|
||||||
void WithdrawScriptRequest::setScriptId(const std::string& scriptId)
|
void GetUserByExtensionRequest::setExtension(const std::string& extension)
|
||||||
{
|
{
|
||||||
scriptId_ = scriptId;
|
extension_ = extension;
|
||||||
setParameter("ScriptId", scriptId);
|
setParameter("Extension", extension);
|
||||||
}
|
}
|
||||||
|
|
||||||
std::string WithdrawScriptRequest::getInstanceId()const
|
std::string GetUserByExtensionRequest::getInstanceId()const
|
||||||
{
|
{
|
||||||
return instanceId_;
|
return instanceId_;
|
||||||
}
|
}
|
||||||
|
|
||||||
void WithdrawScriptRequest::setInstanceId(const std::string& instanceId)
|
void GetUserByExtensionRequest::setInstanceId(const std::string& instanceId)
|
||||||
{
|
{
|
||||||
instanceId_ = instanceId;
|
instanceId_ = instanceId;
|
||||||
setParameter("InstanceId", instanceId);
|
setParameter("InstanceId", instanceId);
|
||||||
130
ccc/src/model/GetUserByExtensionResult.cc
Normal file
130
ccc/src/model/GetUserByExtensionResult.cc
Normal file
@@ -0,0 +1,130 @@
|
|||||||
|
/*
|
||||||
|
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||||
|
*
|
||||||
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
|
* you may not use this file except in compliance with the License.
|
||||||
|
* You may obtain a copy of the License at
|
||||||
|
*
|
||||||
|
* http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
*
|
||||||
|
* Unless required by applicable law or agreed to in writing, software
|
||||||
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
|
* WITHOUT 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/ccc/model/GetUserByExtensionResult.h>
|
||||||
|
#include <json/json.h>
|
||||||
|
|
||||||
|
using namespace AlibabaCloud::CCC;
|
||||||
|
using namespace AlibabaCloud::CCC::Model;
|
||||||
|
|
||||||
|
GetUserByExtensionResult::GetUserByExtensionResult() :
|
||||||
|
ServiceResult()
|
||||||
|
{}
|
||||||
|
|
||||||
|
GetUserByExtensionResult::GetUserByExtensionResult(const std::string &payload) :
|
||||||
|
ServiceResult()
|
||||||
|
{
|
||||||
|
parse(payload);
|
||||||
|
}
|
||||||
|
|
||||||
|
GetUserByExtensionResult::~GetUserByExtensionResult()
|
||||||
|
{}
|
||||||
|
|
||||||
|
void GetUserByExtensionResult::parse(const std::string &payload)
|
||||||
|
{
|
||||||
|
Json::Reader reader;
|
||||||
|
Json::Value value;
|
||||||
|
reader.parse(payload, value);
|
||||||
|
setRequestId(value["RequestId"].asString());
|
||||||
|
auto userNode = value["User"];
|
||||||
|
if(!userNode["UserId"].isNull())
|
||||||
|
user_.userId = userNode["UserId"].asString();
|
||||||
|
if(!userNode["RamId"].isNull())
|
||||||
|
user_.ramId = userNode["RamId"].asString();
|
||||||
|
if(!userNode["InstanceId"].isNull())
|
||||||
|
user_.instanceId = userNode["InstanceId"].asString();
|
||||||
|
auto allRolesNode = userNode["Roles"]["Role"];
|
||||||
|
for (auto userNodeRolesRole : allRolesNode)
|
||||||
|
{
|
||||||
|
User::Role roleObject;
|
||||||
|
if(!userNodeRolesRole["RoleId"].isNull())
|
||||||
|
roleObject.roleId = userNodeRolesRole["RoleId"].asString();
|
||||||
|
if(!userNodeRolesRole["InstanceId"].isNull())
|
||||||
|
roleObject.instanceId = userNodeRolesRole["InstanceId"].asString();
|
||||||
|
if(!userNodeRolesRole["RoleName"].isNull())
|
||||||
|
roleObject.roleName = userNodeRolesRole["RoleName"].asString();
|
||||||
|
if(!userNodeRolesRole["RoleDescription"].isNull())
|
||||||
|
roleObject.roleDescription = userNodeRolesRole["RoleDescription"].asString();
|
||||||
|
user_.roles.push_back(roleObject);
|
||||||
|
}
|
||||||
|
auto allSkillLevelsNode = userNode["SkillLevels"]["SkillLevel"];
|
||||||
|
for (auto userNodeSkillLevelsSkillLevel : allSkillLevelsNode)
|
||||||
|
{
|
||||||
|
User::SkillLevel skillLevelObject;
|
||||||
|
if(!userNodeSkillLevelsSkillLevel["SkillLevelId"].isNull())
|
||||||
|
skillLevelObject.skillLevelId = userNodeSkillLevelsSkillLevel["SkillLevelId"].asString();
|
||||||
|
if(!userNodeSkillLevelsSkillLevel["Level"].isNull())
|
||||||
|
skillLevelObject.level = std::stoi(userNodeSkillLevelsSkillLevel["Level"].asString());
|
||||||
|
auto skillNode = value["Skill"];
|
||||||
|
if(!skillNode["SkillGroupId"].isNull())
|
||||||
|
skillLevelObject.skill.skillGroupId = skillNode["SkillGroupId"].asString();
|
||||||
|
if(!skillNode["InstanceId"].isNull())
|
||||||
|
skillLevelObject.skill.instanceId = skillNode["InstanceId"].asString();
|
||||||
|
if(!skillNode["SkillGroupName"].isNull())
|
||||||
|
skillLevelObject.skill.skillGroupName = skillNode["SkillGroupName"].asString();
|
||||||
|
if(!skillNode["SkillGroupDescription"].isNull())
|
||||||
|
skillLevelObject.skill.skillGroupDescription = skillNode["SkillGroupDescription"].asString();
|
||||||
|
user_.skillLevels.push_back(skillLevelObject);
|
||||||
|
}
|
||||||
|
auto detailNode = userNode["Detail"];
|
||||||
|
if(!detailNode["LoginName"].isNull())
|
||||||
|
user_.detail.loginName = detailNode["LoginName"].asString();
|
||||||
|
if(!detailNode["DisplayName"].isNull())
|
||||||
|
user_.detail.displayName = detailNode["DisplayName"].asString();
|
||||||
|
if(!detailNode["Phone"].isNull())
|
||||||
|
user_.detail.phone = detailNode["Phone"].asString();
|
||||||
|
if(!detailNode["Email"].isNull())
|
||||||
|
user_.detail.email = detailNode["Email"].asString();
|
||||||
|
if(!detailNode["Department"].isNull())
|
||||||
|
user_.detail.department = detailNode["Department"].asString();
|
||||||
|
if(!detailNode["Extension"].isNull())
|
||||||
|
user_.detail.extension = detailNode["Extension"].asString();
|
||||||
|
if(!value["Success"].isNull())
|
||||||
|
success_ = value["Success"].asString() == "true";
|
||||||
|
if(!value["Code"].isNull())
|
||||||
|
code_ = value["Code"].asString();
|
||||||
|
if(!value["Message"].isNull())
|
||||||
|
message_ = value["Message"].asString();
|
||||||
|
if(!value["HttpStatusCode"].isNull())
|
||||||
|
httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString());
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
GetUserByExtensionResult::User GetUserByExtensionResult::getUser()const
|
||||||
|
{
|
||||||
|
return user_;
|
||||||
|
}
|
||||||
|
|
||||||
|
std::string GetUserByExtensionResult::getMessage()const
|
||||||
|
{
|
||||||
|
return message_;
|
||||||
|
}
|
||||||
|
|
||||||
|
int GetUserByExtensionResult::getHttpStatusCode()const
|
||||||
|
{
|
||||||
|
return httpStatusCode_;
|
||||||
|
}
|
||||||
|
|
||||||
|
std::string GetUserByExtensionResult::getCode()const
|
||||||
|
{
|
||||||
|
return code_;
|
||||||
|
}
|
||||||
|
|
||||||
|
bool GetUserByExtensionResult::getSuccess()const
|
||||||
|
{
|
||||||
|
return success_;
|
||||||
|
}
|
||||||
|
|
||||||
@@ -53,14 +53,14 @@ void ListAgentEventsResult::parse(const std::string &payload)
|
|||||||
agentEventListObject.event = valueAgentEventListAgentEvent["Event"].asString();
|
agentEventListObject.event = valueAgentEventListAgentEvent["Event"].asString();
|
||||||
if(!valueAgentEventListAgentEvent["EventTime"].isNull())
|
if(!valueAgentEventListAgentEvent["EventTime"].isNull())
|
||||||
agentEventListObject.eventTime = std::stol(valueAgentEventListAgentEvent["EventTime"].asString());
|
agentEventListObject.eventTime = std::stol(valueAgentEventListAgentEvent["EventTime"].asString());
|
||||||
auto allSkillGroupIdsNode = allAgentEventListNode["SkillGroupIds"]["SkillGroup"];
|
auto allSkillGroupIdsNode = valueAgentEventListAgentEvent["SkillGroupIds"]["SkillGroup"];
|
||||||
for (auto allAgentEventListNodeSkillGroupIdsSkillGroup : allSkillGroupIdsNode)
|
for (auto valueAgentEventListAgentEventSkillGroupIdsSkillGroup : allSkillGroupIdsNode)
|
||||||
{
|
{
|
||||||
AgentEvent::SkillGroup skillGroupIdsObject;
|
AgentEvent::SkillGroup skillGroupIdsObject;
|
||||||
if(!allAgentEventListNodeSkillGroupIdsSkillGroup["SkillGroupId"].isNull())
|
if(!valueAgentEventListAgentEventSkillGroupIdsSkillGroup["SkillGroupId"].isNull())
|
||||||
skillGroupIdsObject.skillGroupId = allAgentEventListNodeSkillGroupIdsSkillGroup["SkillGroupId"].asString();
|
skillGroupIdsObject.skillGroupId = valueAgentEventListAgentEventSkillGroupIdsSkillGroup["SkillGroupId"].asString();
|
||||||
if(!allAgentEventListNodeSkillGroupIdsSkillGroup["SkillGroupName"].isNull())
|
if(!valueAgentEventListAgentEventSkillGroupIdsSkillGroup["SkillGroupName"].isNull())
|
||||||
skillGroupIdsObject.skillGroupName = allAgentEventListNodeSkillGroupIdsSkillGroup["SkillGroupName"].asString();
|
skillGroupIdsObject.skillGroupName = valueAgentEventListAgentEventSkillGroupIdsSkillGroup["SkillGroupName"].asString();
|
||||||
agentEventListObject.skillGroupIds.push_back(skillGroupIdsObject);
|
agentEventListObject.skillGroupIds.push_back(skillGroupIdsObject);
|
||||||
}
|
}
|
||||||
agentEventList_.push_back(agentEventListObject);
|
agentEventList_.push_back(agentEventListObject);
|
||||||
|
|||||||
106
ccc/src/model/ListAgentStateLogsRequest.cc
Normal file
106
ccc/src/model/ListAgentStateLogsRequest.cc
Normal file
@@ -0,0 +1,106 @@
|
|||||||
|
/*
|
||||||
|
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||||
|
*
|
||||||
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
|
* you may not use this file except in compliance with the License.
|
||||||
|
* You may obtain a copy of the License at
|
||||||
|
*
|
||||||
|
* http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
*
|
||||||
|
* Unless required by applicable law or agreed to in writing, software
|
||||||
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
|
* See the License for the specific language governing permissions and
|
||||||
|
* limitations under the License.
|
||||||
|
*/
|
||||||
|
|
||||||
|
#include <alibabacloud/ccc/model/ListAgentStateLogsRequest.h>
|
||||||
|
|
||||||
|
using AlibabaCloud::CCC::Model::ListAgentStateLogsRequest;
|
||||||
|
|
||||||
|
ListAgentStateLogsRequest::ListAgentStateLogsRequest() :
|
||||||
|
RpcServiceRequest("ccc", "2017-07-05", "ListAgentStateLogs")
|
||||||
|
{
|
||||||
|
setMethod(HttpRequest::Method::Post);
|
||||||
|
}
|
||||||
|
|
||||||
|
ListAgentStateLogsRequest::~ListAgentStateLogsRequest()
|
||||||
|
{}
|
||||||
|
|
||||||
|
long ListAgentStateLogsRequest::getEndTime()const
|
||||||
|
{
|
||||||
|
return endTime_;
|
||||||
|
}
|
||||||
|
|
||||||
|
void ListAgentStateLogsRequest::setEndTime(long endTime)
|
||||||
|
{
|
||||||
|
endTime_ = endTime;
|
||||||
|
setParameter("EndTime", std::to_string(endTime));
|
||||||
|
}
|
||||||
|
|
||||||
|
long ListAgentStateLogsRequest::getStartTime()const
|
||||||
|
{
|
||||||
|
return startTime_;
|
||||||
|
}
|
||||||
|
|
||||||
|
void ListAgentStateLogsRequest::setStartTime(long startTime)
|
||||||
|
{
|
||||||
|
startTime_ = startTime;
|
||||||
|
setParameter("StartTime", std::to_string(startTime));
|
||||||
|
}
|
||||||
|
|
||||||
|
long ListAgentStateLogsRequest::getRamId()const
|
||||||
|
{
|
||||||
|
return ramId_;
|
||||||
|
}
|
||||||
|
|
||||||
|
void ListAgentStateLogsRequest::setRamId(long ramId)
|
||||||
|
{
|
||||||
|
ramId_ = ramId;
|
||||||
|
setParameter("RamId", std::to_string(ramId));
|
||||||
|
}
|
||||||
|
|
||||||
|
int ListAgentStateLogsRequest::getPageNumber()const
|
||||||
|
{
|
||||||
|
return pageNumber_;
|
||||||
|
}
|
||||||
|
|
||||||
|
void ListAgentStateLogsRequest::setPageNumber(int pageNumber)
|
||||||
|
{
|
||||||
|
pageNumber_ = pageNumber;
|
||||||
|
setParameter("PageNumber", std::to_string(pageNumber));
|
||||||
|
}
|
||||||
|
|
||||||
|
std::string ListAgentStateLogsRequest::getAccessKeyId()const
|
||||||
|
{
|
||||||
|
return accessKeyId_;
|
||||||
|
}
|
||||||
|
|
||||||
|
void ListAgentStateLogsRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||||
|
{
|
||||||
|
accessKeyId_ = accessKeyId;
|
||||||
|
setParameter("AccessKeyId", accessKeyId);
|
||||||
|
}
|
||||||
|
|
||||||
|
std::string ListAgentStateLogsRequest::getInstanceId()const
|
||||||
|
{
|
||||||
|
return instanceId_;
|
||||||
|
}
|
||||||
|
|
||||||
|
void ListAgentStateLogsRequest::setInstanceId(const std::string& instanceId)
|
||||||
|
{
|
||||||
|
instanceId_ = instanceId;
|
||||||
|
setParameter("InstanceId", instanceId);
|
||||||
|
}
|
||||||
|
|
||||||
|
int ListAgentStateLogsRequest::getPageSize()const
|
||||||
|
{
|
||||||
|
return pageSize_;
|
||||||
|
}
|
||||||
|
|
||||||
|
void ListAgentStateLogsRequest::setPageSize(int pageSize)
|
||||||
|
{
|
||||||
|
pageSize_ = pageSize;
|
||||||
|
setParameter("PageSize", std::to_string(pageSize));
|
||||||
|
}
|
||||||
|
|
||||||
108
ccc/src/model/ListAgentStateLogsResult.cc
Normal file
108
ccc/src/model/ListAgentStateLogsResult.cc
Normal file
@@ -0,0 +1,108 @@
|
|||||||
|
/*
|
||||||
|
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||||
|
*
|
||||||
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
|
* you may not use this file except in compliance with the License.
|
||||||
|
* You may obtain a copy of the License at
|
||||||
|
*
|
||||||
|
* http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
*
|
||||||
|
* Unless required by applicable law or agreed to in writing, software
|
||||||
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
|
* See the License for the specific language governing permissions and
|
||||||
|
* limitations under the License.
|
||||||
|
*/
|
||||||
|
|
||||||
|
#include <alibabacloud/ccc/model/ListAgentStateLogsResult.h>
|
||||||
|
#include <json/json.h>
|
||||||
|
|
||||||
|
using namespace AlibabaCloud::CCC;
|
||||||
|
using namespace AlibabaCloud::CCC::Model;
|
||||||
|
|
||||||
|
ListAgentStateLogsResult::ListAgentStateLogsResult() :
|
||||||
|
ServiceResult()
|
||||||
|
{}
|
||||||
|
|
||||||
|
ListAgentStateLogsResult::ListAgentStateLogsResult(const std::string &payload) :
|
||||||
|
ServiceResult()
|
||||||
|
{
|
||||||
|
parse(payload);
|
||||||
|
}
|
||||||
|
|
||||||
|
ListAgentStateLogsResult::~ListAgentStateLogsResult()
|
||||||
|
{}
|
||||||
|
|
||||||
|
void ListAgentStateLogsResult::parse(const std::string &payload)
|
||||||
|
{
|
||||||
|
Json::Reader reader;
|
||||||
|
Json::Value value;
|
||||||
|
reader.parse(payload, value);
|
||||||
|
setRequestId(value["RequestId"].asString());
|
||||||
|
auto agentStateLogPageNode = value["AgentStateLogPage"];
|
||||||
|
if(!agentStateLogPageNode["TotalCount"].isNull())
|
||||||
|
agentStateLogPage_.totalCount = std::stoi(agentStateLogPageNode["TotalCount"].asString());
|
||||||
|
if(!agentStateLogPageNode["PageNumber"].isNull())
|
||||||
|
agentStateLogPage_.pageNumber = std::stoi(agentStateLogPageNode["PageNumber"].asString());
|
||||||
|
if(!agentStateLogPageNode["PageSize"].isNull())
|
||||||
|
agentStateLogPage_.pageSize = std::stoi(agentStateLogPageNode["PageSize"].asString());
|
||||||
|
auto allListNode = agentStateLogPageNode["List"]["AgentStateLog"];
|
||||||
|
for (auto agentStateLogPageNodeListAgentStateLog : allListNode)
|
||||||
|
{
|
||||||
|
AgentStateLogPage::AgentStateLog agentStateLogObject;
|
||||||
|
if(!agentStateLogPageNodeListAgentStateLog["InstanceId"].isNull())
|
||||||
|
agentStateLogObject.instanceId = agentStateLogPageNodeListAgentStateLog["InstanceId"].asString();
|
||||||
|
if(!agentStateLogPageNodeListAgentStateLog["RamId"].isNull())
|
||||||
|
agentStateLogObject.ramId = std::stol(agentStateLogPageNodeListAgentStateLog["RamId"].asString());
|
||||||
|
if(!agentStateLogPageNodeListAgentStateLog["State"].isNull())
|
||||||
|
agentStateLogObject.state = agentStateLogPageNodeListAgentStateLog["State"].asString();
|
||||||
|
if(!agentStateLogPageNodeListAgentStateLog["StateCode"].isNull())
|
||||||
|
agentStateLogObject.stateCode = agentStateLogPageNodeListAgentStateLog["StateCode"].asString();
|
||||||
|
if(!agentStateLogPageNodeListAgentStateLog["StateTime"].isNull())
|
||||||
|
agentStateLogObject.stateTime = std::stol(agentStateLogPageNodeListAgentStateLog["StateTime"].asString());
|
||||||
|
if(!agentStateLogPageNodeListAgentStateLog["ContactId"].isNull())
|
||||||
|
agentStateLogObject.contactId = agentStateLogPageNodeListAgentStateLog["ContactId"].asString();
|
||||||
|
if(!agentStateLogPageNodeListAgentStateLog["ConnectId"].isNull())
|
||||||
|
agentStateLogObject.connectId = agentStateLogPageNodeListAgentStateLog["ConnectId"].asString();
|
||||||
|
if(!agentStateLogPageNodeListAgentStateLog["SkillGroupIds"].isNull())
|
||||||
|
agentStateLogObject.skillGroupIds = agentStateLogPageNodeListAgentStateLog["SkillGroupIds"].asString();
|
||||||
|
if(!agentStateLogPageNodeListAgentStateLog["CounterParty"].isNull())
|
||||||
|
agentStateLogObject.counterParty = agentStateLogPageNodeListAgentStateLog["CounterParty"].asString();
|
||||||
|
agentStateLogPage_.list.push_back(agentStateLogObject);
|
||||||
|
}
|
||||||
|
if(!value["Success"].isNull())
|
||||||
|
success_ = value["Success"].asString() == "true";
|
||||||
|
if(!value["Code"].isNull())
|
||||||
|
code_ = value["Code"].asString();
|
||||||
|
if(!value["Message"].isNull())
|
||||||
|
message_ = value["Message"].asString();
|
||||||
|
if(!value["HttpStatusCode"].isNull())
|
||||||
|
httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString());
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
std::string ListAgentStateLogsResult::getMessage()const
|
||||||
|
{
|
||||||
|
return message_;
|
||||||
|
}
|
||||||
|
|
||||||
|
int ListAgentStateLogsResult::getHttpStatusCode()const
|
||||||
|
{
|
||||||
|
return httpStatusCode_;
|
||||||
|
}
|
||||||
|
|
||||||
|
std::string ListAgentStateLogsResult::getCode()const
|
||||||
|
{
|
||||||
|
return code_;
|
||||||
|
}
|
||||||
|
|
||||||
|
ListAgentStateLogsResult::AgentStateLogPage ListAgentStateLogsResult::getAgentStateLogPage()const
|
||||||
|
{
|
||||||
|
return agentStateLogPage_;
|
||||||
|
}
|
||||||
|
|
||||||
|
bool ListAgentStateLogsResult::getSuccess()const
|
||||||
|
{
|
||||||
|
return success_;
|
||||||
|
}
|
||||||
|
|
||||||
@@ -52,24 +52,24 @@ void ListAgentSummaryReportsByIntervalResult::parse(const std::string &payload)
|
|||||||
PagedAgentSummaryReport::AgentTimeIntervalReport agentTimeIntervalReportObject;
|
PagedAgentSummaryReport::AgentTimeIntervalReport agentTimeIntervalReportObject;
|
||||||
if(!pagedAgentSummaryReportNodeListAgentTimeIntervalReport["AgentId"].isNull())
|
if(!pagedAgentSummaryReportNodeListAgentTimeIntervalReport["AgentId"].isNull())
|
||||||
agentTimeIntervalReportObject.agentId = pagedAgentSummaryReportNodeListAgentTimeIntervalReport["AgentId"].asString();
|
agentTimeIntervalReportObject.agentId = pagedAgentSummaryReportNodeListAgentTimeIntervalReport["AgentId"].asString();
|
||||||
auto allIntervalListNode = allListNode["IntervalList"]["AgentSummaryReport"];
|
auto allIntervalListNode = pagedAgentSummaryReportNodeListAgentTimeIntervalReport["IntervalList"]["AgentSummaryReport"];
|
||||||
for (auto allListNodeIntervalListAgentSummaryReport : allIntervalListNode)
|
for (auto pagedAgentSummaryReportNodeListAgentTimeIntervalReportIntervalListAgentSummaryReport : allIntervalListNode)
|
||||||
{
|
{
|
||||||
PagedAgentSummaryReport::AgentTimeIntervalReport::AgentSummaryReport intervalListObject;
|
PagedAgentSummaryReport::AgentTimeIntervalReport::AgentSummaryReport intervalListObject;
|
||||||
if(!allListNodeIntervalListAgentSummaryReport["Timestamp"].isNull())
|
if(!pagedAgentSummaryReportNodeListAgentTimeIntervalReportIntervalListAgentSummaryReport["Timestamp"].isNull())
|
||||||
intervalListObject.timestamp = allListNodeIntervalListAgentSummaryReport["Timestamp"].asString();
|
intervalListObject.timestamp = pagedAgentSummaryReportNodeListAgentTimeIntervalReportIntervalListAgentSummaryReport["Timestamp"].asString();
|
||||||
if(!allListNodeIntervalListAgentSummaryReport["InstanceId"].isNull())
|
if(!pagedAgentSummaryReportNodeListAgentTimeIntervalReportIntervalListAgentSummaryReport["InstanceId"].isNull())
|
||||||
intervalListObject.instanceId = allListNodeIntervalListAgentSummaryReport["InstanceId"].asString();
|
intervalListObject.instanceId = pagedAgentSummaryReportNodeListAgentTimeIntervalReportIntervalListAgentSummaryReport["InstanceId"].asString();
|
||||||
if(!allListNodeIntervalListAgentSummaryReport["AgentId"].isNull())
|
if(!pagedAgentSummaryReportNodeListAgentTimeIntervalReportIntervalListAgentSummaryReport["AgentId"].isNull())
|
||||||
intervalListObject.agentId = allListNodeIntervalListAgentSummaryReport["AgentId"].asString();
|
intervalListObject.agentId = pagedAgentSummaryReportNodeListAgentTimeIntervalReportIntervalListAgentSummaryReport["AgentId"].asString();
|
||||||
if(!allListNodeIntervalListAgentSummaryReport["LoginName"].isNull())
|
if(!pagedAgentSummaryReportNodeListAgentTimeIntervalReportIntervalListAgentSummaryReport["LoginName"].isNull())
|
||||||
intervalListObject.loginName = allListNodeIntervalListAgentSummaryReport["LoginName"].asString();
|
intervalListObject.loginName = pagedAgentSummaryReportNodeListAgentTimeIntervalReportIntervalListAgentSummaryReport["LoginName"].asString();
|
||||||
if(!allListNodeIntervalListAgentSummaryReport["AgentName"].isNull())
|
if(!pagedAgentSummaryReportNodeListAgentTimeIntervalReportIntervalListAgentSummaryReport["AgentName"].isNull())
|
||||||
intervalListObject.agentName = allListNodeIntervalListAgentSummaryReport["AgentName"].asString();
|
intervalListObject.agentName = pagedAgentSummaryReportNodeListAgentTimeIntervalReportIntervalListAgentSummaryReport["AgentName"].asString();
|
||||||
if(!allListNodeIntervalListAgentSummaryReport["SkillGroupIds"].isNull())
|
if(!pagedAgentSummaryReportNodeListAgentTimeIntervalReportIntervalListAgentSummaryReport["SkillGroupIds"].isNull())
|
||||||
intervalListObject.skillGroupIds = allListNodeIntervalListAgentSummaryReport["SkillGroupIds"].asString();
|
intervalListObject.skillGroupIds = pagedAgentSummaryReportNodeListAgentTimeIntervalReportIntervalListAgentSummaryReport["SkillGroupIds"].asString();
|
||||||
if(!allListNodeIntervalListAgentSummaryReport["SkillGroupNames"].isNull())
|
if(!pagedAgentSummaryReportNodeListAgentTimeIntervalReportIntervalListAgentSummaryReport["SkillGroupNames"].isNull())
|
||||||
intervalListObject.skillGroupNames = allListNodeIntervalListAgentSummaryReport["SkillGroupNames"].asString();
|
intervalListObject.skillGroupNames = pagedAgentSummaryReportNodeListAgentTimeIntervalReportIntervalListAgentSummaryReport["SkillGroupNames"].asString();
|
||||||
auto overallNode = value["Overall"];
|
auto overallNode = value["Overall"];
|
||||||
if(!overallNode["TotalCalls"].isNull())
|
if(!overallNode["TotalCalls"].isNull())
|
||||||
intervalListObject.overall.totalCalls = std::stol(overallNode["TotalCalls"].asString());
|
intervalListObject.overall.totalCalls = std::stol(overallNode["TotalCalls"].asString());
|
||||||
@@ -105,6 +105,10 @@ void ListAgentSummaryReportsByIntervalResult::parse(const std::string &payload)
|
|||||||
intervalListObject.overall.satisfactionSurveysResponded = std::stol(overallNode["SatisfactionSurveysResponded"].asString());
|
intervalListObject.overall.satisfactionSurveysResponded = std::stol(overallNode["SatisfactionSurveysResponded"].asString());
|
||||||
if(!overallNode["OneTransferCalls"].isNull())
|
if(!overallNode["OneTransferCalls"].isNull())
|
||||||
intervalListObject.overall.oneTransferCalls = std::stol(overallNode["OneTransferCalls"].asString());
|
intervalListObject.overall.oneTransferCalls = std::stol(overallNode["OneTransferCalls"].asString());
|
||||||
|
if(!overallNode["FirstLogInTime"].isNull())
|
||||||
|
intervalListObject.overall.firstLogInTime = overallNode["FirstLogInTime"].asString();
|
||||||
|
if(!overallNode["LastLogOutTime"].isNull())
|
||||||
|
intervalListObject.overall.lastLogOutTime = overallNode["LastLogOutTime"].asString();
|
||||||
auto inboundNode = value["Inbound"];
|
auto inboundNode = value["Inbound"];
|
||||||
if(!inboundNode["CallsOffered"].isNull())
|
if(!inboundNode["CallsOffered"].isNull())
|
||||||
intervalListObject.inbound.callsOffered = std::stol(inboundNode["CallsOffered"].asString());
|
intervalListObject.inbound.callsOffered = std::stol(inboundNode["CallsOffered"].asString());
|
||||||
|
|||||||
@@ -97,6 +97,10 @@ void ListAgentSummaryReportsResult::parse(const std::string &payload)
|
|||||||
agentSummaryReportObject.overall.satisfactionSurveysResponded = std::stol(overallNode["SatisfactionSurveysResponded"].asString());
|
agentSummaryReportObject.overall.satisfactionSurveysResponded = std::stol(overallNode["SatisfactionSurveysResponded"].asString());
|
||||||
if(!overallNode["OneTransferCalls"].isNull())
|
if(!overallNode["OneTransferCalls"].isNull())
|
||||||
agentSummaryReportObject.overall.oneTransferCalls = std::stol(overallNode["OneTransferCalls"].asString());
|
agentSummaryReportObject.overall.oneTransferCalls = std::stol(overallNode["OneTransferCalls"].asString());
|
||||||
|
if(!overallNode["FirstLogInTime"].isNull())
|
||||||
|
agentSummaryReportObject.overall.firstLogInTime = overallNode["FirstLogInTime"].asString();
|
||||||
|
if(!overallNode["LastLogOutTime"].isNull())
|
||||||
|
agentSummaryReportObject.overall.lastLogOutTime = overallNode["LastLogOutTime"].asString();
|
||||||
auto inboundNode = value["Inbound"];
|
auto inboundNode = value["Inbound"];
|
||||||
if(!inboundNode["CallsOffered"].isNull())
|
if(!inboundNode["CallsOffered"].isNull())
|
||||||
agentSummaryReportObject.inbound.callsOffered = std::stol(inboundNode["CallsOffered"].asString());
|
agentSummaryReportObject.inbound.callsOffered = std::stol(inboundNode["CallsOffered"].asString());
|
||||||
|
|||||||
@@ -58,14 +58,14 @@ void ListBasicStatisticsReportSubItemsResult::parse(const std::string &payload)
|
|||||||
basicStatisticsReportSubItemObject.count = std::stoi(subItemsNodeListBasicStatisticsReportSubItem["Count"].asString());
|
basicStatisticsReportSubItemObject.count = std::stoi(subItemsNodeListBasicStatisticsReportSubItem["Count"].asString());
|
||||||
if(!subItemsNodeListBasicStatisticsReportSubItem["Percentage"].isNull())
|
if(!subItemsNodeListBasicStatisticsReportSubItem["Percentage"].isNull())
|
||||||
basicStatisticsReportSubItemObject.percentage = std::stoi(subItemsNodeListBasicStatisticsReportSubItem["Percentage"].asString());
|
basicStatisticsReportSubItemObject.percentage = std::stoi(subItemsNodeListBasicStatisticsReportSubItem["Percentage"].asString());
|
||||||
auto allRowNode = allListNode["Row"]["KeyValuePair"];
|
auto allRowNode = subItemsNodeListBasicStatisticsReportSubItem["Row"]["KeyValuePair"];
|
||||||
for (auto allListNodeRowKeyValuePair : allRowNode)
|
for (auto subItemsNodeListBasicStatisticsReportSubItemRowKeyValuePair : allRowNode)
|
||||||
{
|
{
|
||||||
SubItems::BasicStatisticsReportSubItem::KeyValuePair rowObject;
|
SubItems::BasicStatisticsReportSubItem::KeyValuePair rowObject;
|
||||||
if(!allListNodeRowKeyValuePair["Key"].isNull())
|
if(!subItemsNodeListBasicStatisticsReportSubItemRowKeyValuePair["Key"].isNull())
|
||||||
rowObject.key = allListNodeRowKeyValuePair["Key"].asString();
|
rowObject.key = subItemsNodeListBasicStatisticsReportSubItemRowKeyValuePair["Key"].asString();
|
||||||
if(!allListNodeRowKeyValuePair["Value"].isNull())
|
if(!subItemsNodeListBasicStatisticsReportSubItemRowKeyValuePair["Value"].isNull())
|
||||||
rowObject.value = allListNodeRowKeyValuePair["Value"].asString();
|
rowObject.value = subItemsNodeListBasicStatisticsReportSubItemRowKeyValuePair["Value"].asString();
|
||||||
basicStatisticsReportSubItemObject.row.push_back(rowObject);
|
basicStatisticsReportSubItemObject.row.push_back(rowObject);
|
||||||
}
|
}
|
||||||
subItems_.list.push_back(basicStatisticsReportSubItemObject);
|
subItems_.list.push_back(basicStatisticsReportSubItemObject);
|
||||||
|
|||||||
@@ -78,40 +78,40 @@ void ListCallDetailRecordsResult::parse(const std::string &payload)
|
|||||||
callDetailRecordObject.instanceId = callDetailRecordsNodeListCallDetailRecord["InstanceId"].asString();
|
callDetailRecordObject.instanceId = callDetailRecordsNodeListCallDetailRecord["InstanceId"].asString();
|
||||||
if(!callDetailRecordsNodeListCallDetailRecord["SkillGroupIdList"].isNull())
|
if(!callDetailRecordsNodeListCallDetailRecord["SkillGroupIdList"].isNull())
|
||||||
callDetailRecordObject.skillGroupIdList = callDetailRecordsNodeListCallDetailRecord["SkillGroupIdList"].asString();
|
callDetailRecordObject.skillGroupIdList = callDetailRecordsNodeListCallDetailRecord["SkillGroupIdList"].asString();
|
||||||
auto allAgentsNode = allListNode["Agents"]["CallDetailAgent"];
|
auto allAgentsNode = callDetailRecordsNodeListCallDetailRecord["Agents"]["CallDetailAgent"];
|
||||||
for (auto allListNodeAgentsCallDetailAgent : allAgentsNode)
|
for (auto callDetailRecordsNodeListCallDetailRecordAgentsCallDetailAgent : allAgentsNode)
|
||||||
{
|
{
|
||||||
CallDetailRecords::CallDetailRecord::CallDetailAgent agentsObject;
|
CallDetailRecords::CallDetailRecord::CallDetailAgent agentsObject;
|
||||||
if(!allListNodeAgentsCallDetailAgent["AgentId"].isNull())
|
if(!callDetailRecordsNodeListCallDetailRecordAgentsCallDetailAgent["AgentId"].isNull())
|
||||||
agentsObject.agentId = allListNodeAgentsCallDetailAgent["AgentId"].asString();
|
agentsObject.agentId = callDetailRecordsNodeListCallDetailRecordAgentsCallDetailAgent["AgentId"].asString();
|
||||||
if(!allListNodeAgentsCallDetailAgent["Satisfaction"].isNull())
|
if(!callDetailRecordsNodeListCallDetailRecordAgentsCallDetailAgent["Satisfaction"].isNull())
|
||||||
agentsObject.satisfaction = allListNodeAgentsCallDetailAgent["Satisfaction"].asString();
|
agentsObject.satisfaction = callDetailRecordsNodeListCallDetailRecordAgentsCallDetailAgent["Satisfaction"].asString();
|
||||||
if(!allListNodeAgentsCallDetailAgent["Feedback"].isNull())
|
if(!callDetailRecordsNodeListCallDetailRecordAgentsCallDetailAgent["Feedback"].isNull())
|
||||||
agentsObject.feedback = allListNodeAgentsCallDetailAgent["Feedback"].asString();
|
agentsObject.feedback = callDetailRecordsNodeListCallDetailRecordAgentsCallDetailAgent["Feedback"].asString();
|
||||||
callDetailRecordObject.agents.push_back(agentsObject);
|
callDetailRecordObject.agents.push_back(agentsObject);
|
||||||
}
|
}
|
||||||
auto allRecordingsNode = allListNode["Recordings"]["Recording"];
|
auto allRecordingsNode = callDetailRecordsNodeListCallDetailRecord["Recordings"]["Recording"];
|
||||||
for (auto allListNodeRecordingsRecording : allRecordingsNode)
|
for (auto callDetailRecordsNodeListCallDetailRecordRecordingsRecording : allRecordingsNode)
|
||||||
{
|
{
|
||||||
CallDetailRecords::CallDetailRecord::Recording recordingsObject;
|
CallDetailRecords::CallDetailRecord::Recording recordingsObject;
|
||||||
if(!allListNodeRecordingsRecording["ContactId"].isNull())
|
if(!callDetailRecordsNodeListCallDetailRecordRecordingsRecording["ContactId"].isNull())
|
||||||
recordingsObject.contactId = allListNodeRecordingsRecording["ContactId"].asString();
|
recordingsObject.contactId = callDetailRecordsNodeListCallDetailRecordRecordingsRecording["ContactId"].asString();
|
||||||
if(!allListNodeRecordingsRecording["AgentId"].isNull())
|
if(!callDetailRecordsNodeListCallDetailRecordRecordingsRecording["AgentId"].isNull())
|
||||||
recordingsObject.agentId = allListNodeRecordingsRecording["AgentId"].asString();
|
recordingsObject.agentId = callDetailRecordsNodeListCallDetailRecordRecordingsRecording["AgentId"].asString();
|
||||||
if(!allListNodeRecordingsRecording["AgentName"].isNull())
|
if(!callDetailRecordsNodeListCallDetailRecordRecordingsRecording["AgentName"].isNull())
|
||||||
recordingsObject.agentName = allListNodeRecordingsRecording["AgentName"].asString();
|
recordingsObject.agentName = callDetailRecordsNodeListCallDetailRecordRecordingsRecording["AgentName"].asString();
|
||||||
if(!allListNodeRecordingsRecording["StartTime"].isNull())
|
if(!callDetailRecordsNodeListCallDetailRecordRecordingsRecording["StartTime"].isNull())
|
||||||
recordingsObject.startTime = std::stol(allListNodeRecordingsRecording["StartTime"].asString());
|
recordingsObject.startTime = std::stol(callDetailRecordsNodeListCallDetailRecordRecordingsRecording["StartTime"].asString());
|
||||||
if(!allListNodeRecordingsRecording["Duration"].isNull())
|
if(!callDetailRecordsNodeListCallDetailRecordRecordingsRecording["Duration"].isNull())
|
||||||
recordingsObject.duration = std::stoi(allListNodeRecordingsRecording["Duration"].asString());
|
recordingsObject.duration = std::stoi(callDetailRecordsNodeListCallDetailRecordRecordingsRecording["Duration"].asString());
|
||||||
if(!allListNodeRecordingsRecording["FileName"].isNull())
|
if(!callDetailRecordsNodeListCallDetailRecordRecordingsRecording["FileName"].isNull())
|
||||||
recordingsObject.fileName = allListNodeRecordingsRecording["FileName"].asString();
|
recordingsObject.fileName = callDetailRecordsNodeListCallDetailRecordRecordingsRecording["FileName"].asString();
|
||||||
if(!allListNodeRecordingsRecording["FileDescription"].isNull())
|
if(!callDetailRecordsNodeListCallDetailRecordRecordingsRecording["FileDescription"].isNull())
|
||||||
recordingsObject.fileDescription = allListNodeRecordingsRecording["FileDescription"].asString();
|
recordingsObject.fileDescription = callDetailRecordsNodeListCallDetailRecordRecordingsRecording["FileDescription"].asString();
|
||||||
if(!allListNodeRecordingsRecording["QualityCheckTid"].isNull())
|
if(!callDetailRecordsNodeListCallDetailRecordRecordingsRecording["QualityCheckTid"].isNull())
|
||||||
recordingsObject.qualityCheckTid = allListNodeRecordingsRecording["QualityCheckTid"].asString();
|
recordingsObject.qualityCheckTid = callDetailRecordsNodeListCallDetailRecordRecordingsRecording["QualityCheckTid"].asString();
|
||||||
if(!allListNodeRecordingsRecording["QualityCheckTaskId"].isNull())
|
if(!callDetailRecordsNodeListCallDetailRecordRecordingsRecording["QualityCheckTaskId"].isNull())
|
||||||
recordingsObject.qualityCheckTaskId = allListNodeRecordingsRecording["QualityCheckTaskId"].asString();
|
recordingsObject.qualityCheckTaskId = callDetailRecordsNodeListCallDetailRecordRecordingsRecording["QualityCheckTaskId"].asString();
|
||||||
callDetailRecordObject.recordings.push_back(recordingsObject);
|
callDetailRecordObject.recordings.push_back(recordingsObject);
|
||||||
}
|
}
|
||||||
callDetailRecords_.list.push_back(callDetailRecordObject);
|
callDetailRecords_.list.push_back(callDetailRecordObject);
|
||||||
|
|||||||
@@ -55,48 +55,48 @@ void ListContactFlowsResult::parse(const std::string &payload)
|
|||||||
contactFlowsObject.type = valueContactFlowsContactFlow["Type"].asString();
|
contactFlowsObject.type = valueContactFlowsContactFlow["Type"].asString();
|
||||||
if(!valueContactFlowsContactFlow["AppliedVersion"].isNull())
|
if(!valueContactFlowsContactFlow["AppliedVersion"].isNull())
|
||||||
contactFlowsObject.appliedVersion = valueContactFlowsContactFlow["AppliedVersion"].asString();
|
contactFlowsObject.appliedVersion = valueContactFlowsContactFlow["AppliedVersion"].asString();
|
||||||
auto allVersionsNode = allContactFlowsNode["Versions"]["ContactFlowVersion"];
|
auto allVersionsNode = valueContactFlowsContactFlow["Versions"]["ContactFlowVersion"];
|
||||||
for (auto allContactFlowsNodeVersionsContactFlowVersion : allVersionsNode)
|
for (auto valueContactFlowsContactFlowVersionsContactFlowVersion : allVersionsNode)
|
||||||
{
|
{
|
||||||
ContactFlow::ContactFlowVersion versionsObject;
|
ContactFlow::ContactFlowVersion versionsObject;
|
||||||
if(!allContactFlowsNodeVersionsContactFlowVersion["ContactFlowVersionId"].isNull())
|
if(!valueContactFlowsContactFlowVersionsContactFlowVersion["ContactFlowVersionId"].isNull())
|
||||||
versionsObject.contactFlowVersionId = allContactFlowsNodeVersionsContactFlowVersion["ContactFlowVersionId"].asString();
|
versionsObject.contactFlowVersionId = valueContactFlowsContactFlowVersionsContactFlowVersion["ContactFlowVersionId"].asString();
|
||||||
if(!allContactFlowsNodeVersionsContactFlowVersion["Version"].isNull())
|
if(!valueContactFlowsContactFlowVersionsContactFlowVersion["Version"].isNull())
|
||||||
versionsObject.version = allContactFlowsNodeVersionsContactFlowVersion["Version"].asString();
|
versionsObject.version = valueContactFlowsContactFlowVersionsContactFlowVersion["Version"].asString();
|
||||||
if(!allContactFlowsNodeVersionsContactFlowVersion["ContactFlowVersionDescription"].isNull())
|
if(!valueContactFlowsContactFlowVersionsContactFlowVersion["ContactFlowVersionDescription"].isNull())
|
||||||
versionsObject.contactFlowVersionDescription = allContactFlowsNodeVersionsContactFlowVersion["ContactFlowVersionDescription"].asString();
|
versionsObject.contactFlowVersionDescription = valueContactFlowsContactFlowVersionsContactFlowVersion["ContactFlowVersionDescription"].asString();
|
||||||
if(!allContactFlowsNodeVersionsContactFlowVersion["LastModified"].isNull())
|
if(!valueContactFlowsContactFlowVersionsContactFlowVersion["LastModified"].isNull())
|
||||||
versionsObject.lastModified = allContactFlowsNodeVersionsContactFlowVersion["LastModified"].asString();
|
versionsObject.lastModified = valueContactFlowsContactFlowVersionsContactFlowVersion["LastModified"].asString();
|
||||||
if(!allContactFlowsNodeVersionsContactFlowVersion["LastModifiedBy"].isNull())
|
if(!valueContactFlowsContactFlowVersionsContactFlowVersion["LastModifiedBy"].isNull())
|
||||||
versionsObject.lastModifiedBy = allContactFlowsNodeVersionsContactFlowVersion["LastModifiedBy"].asString();
|
versionsObject.lastModifiedBy = valueContactFlowsContactFlowVersionsContactFlowVersion["LastModifiedBy"].asString();
|
||||||
if(!allContactFlowsNodeVersionsContactFlowVersion["LockedBy"].isNull())
|
if(!valueContactFlowsContactFlowVersionsContactFlowVersion["LockedBy"].isNull())
|
||||||
versionsObject.lockedBy = allContactFlowsNodeVersionsContactFlowVersion["LockedBy"].asString();
|
versionsObject.lockedBy = valueContactFlowsContactFlowVersionsContactFlowVersion["LockedBy"].asString();
|
||||||
if(!allContactFlowsNodeVersionsContactFlowVersion["Status"].isNull())
|
if(!valueContactFlowsContactFlowVersionsContactFlowVersion["Status"].isNull())
|
||||||
versionsObject.status = allContactFlowsNodeVersionsContactFlowVersion["Status"].asString();
|
versionsObject.status = valueContactFlowsContactFlowVersionsContactFlowVersion["Status"].asString();
|
||||||
contactFlowsObject.versions.push_back(versionsObject);
|
contactFlowsObject.versions.push_back(versionsObject);
|
||||||
}
|
}
|
||||||
auto allPhoneNumbersNode = allContactFlowsNode["PhoneNumbers"]["PhoneNumber"];
|
auto allPhoneNumbersNode = valueContactFlowsContactFlow["PhoneNumbers"]["PhoneNumber"];
|
||||||
for (auto allContactFlowsNodePhoneNumbersPhoneNumber : allPhoneNumbersNode)
|
for (auto valueContactFlowsContactFlowPhoneNumbersPhoneNumber : allPhoneNumbersNode)
|
||||||
{
|
{
|
||||||
ContactFlow::PhoneNumber phoneNumbersObject;
|
ContactFlow::PhoneNumber phoneNumbersObject;
|
||||||
if(!allContactFlowsNodePhoneNumbersPhoneNumber["PhoneNumberId"].isNull())
|
if(!valueContactFlowsContactFlowPhoneNumbersPhoneNumber["PhoneNumberId"].isNull())
|
||||||
phoneNumbersObject.phoneNumberId = allContactFlowsNodePhoneNumbersPhoneNumber["PhoneNumberId"].asString();
|
phoneNumbersObject.phoneNumberId = valueContactFlowsContactFlowPhoneNumbersPhoneNumber["PhoneNumberId"].asString();
|
||||||
if(!allContactFlowsNodePhoneNumbersPhoneNumber["InstanceId"].isNull())
|
if(!valueContactFlowsContactFlowPhoneNumbersPhoneNumber["InstanceId"].isNull())
|
||||||
phoneNumbersObject.instanceId = allContactFlowsNodePhoneNumbersPhoneNumber["InstanceId"].asString();
|
phoneNumbersObject.instanceId = valueContactFlowsContactFlowPhoneNumbersPhoneNumber["InstanceId"].asString();
|
||||||
if(!allContactFlowsNodePhoneNumbersPhoneNumber["Number"].isNull())
|
if(!valueContactFlowsContactFlowPhoneNumbersPhoneNumber["Number"].isNull())
|
||||||
phoneNumbersObject.number = allContactFlowsNodePhoneNumbersPhoneNumber["Number"].asString();
|
phoneNumbersObject.number = valueContactFlowsContactFlowPhoneNumbersPhoneNumber["Number"].asString();
|
||||||
if(!allContactFlowsNodePhoneNumbersPhoneNumber["PhoneNumberDescription"].isNull())
|
if(!valueContactFlowsContactFlowPhoneNumbersPhoneNumber["PhoneNumberDescription"].isNull())
|
||||||
phoneNumbersObject.phoneNumberDescription = allContactFlowsNodePhoneNumbersPhoneNumber["PhoneNumberDescription"].asString();
|
phoneNumbersObject.phoneNumberDescription = valueContactFlowsContactFlowPhoneNumbersPhoneNumber["PhoneNumberDescription"].asString();
|
||||||
if(!allContactFlowsNodePhoneNumbersPhoneNumber["TestOnly"].isNull())
|
if(!valueContactFlowsContactFlowPhoneNumbersPhoneNumber["TestOnly"].isNull())
|
||||||
phoneNumbersObject.testOnly = allContactFlowsNodePhoneNumbersPhoneNumber["TestOnly"].asString() == "true";
|
phoneNumbersObject.testOnly = valueContactFlowsContactFlowPhoneNumbersPhoneNumber["TestOnly"].asString() == "true";
|
||||||
if(!allContactFlowsNodePhoneNumbersPhoneNumber["RemainingTime"].isNull())
|
if(!valueContactFlowsContactFlowPhoneNumbersPhoneNumber["RemainingTime"].isNull())
|
||||||
phoneNumbersObject.remainingTime = std::stoi(allContactFlowsNodePhoneNumbersPhoneNumber["RemainingTime"].asString());
|
phoneNumbersObject.remainingTime = std::stoi(valueContactFlowsContactFlowPhoneNumbersPhoneNumber["RemainingTime"].asString());
|
||||||
if(!allContactFlowsNodePhoneNumbersPhoneNumber["AllowOutbound"].isNull())
|
if(!valueContactFlowsContactFlowPhoneNumbersPhoneNumber["AllowOutbound"].isNull())
|
||||||
phoneNumbersObject.allowOutbound = allContactFlowsNodePhoneNumbersPhoneNumber["AllowOutbound"].asString() == "true";
|
phoneNumbersObject.allowOutbound = valueContactFlowsContactFlowPhoneNumbersPhoneNumber["AllowOutbound"].asString() == "true";
|
||||||
if(!allContactFlowsNodePhoneNumbersPhoneNumber["Usage"].isNull())
|
if(!valueContactFlowsContactFlowPhoneNumbersPhoneNumber["Usage"].isNull())
|
||||||
phoneNumbersObject.usage = allContactFlowsNodePhoneNumbersPhoneNumber["Usage"].asString();
|
phoneNumbersObject.usage = valueContactFlowsContactFlowPhoneNumbersPhoneNumber["Usage"].asString();
|
||||||
if(!allContactFlowsNodePhoneNumbersPhoneNumber["Trunks"].isNull())
|
if(!valueContactFlowsContactFlowPhoneNumbersPhoneNumber["Trunks"].isNull())
|
||||||
phoneNumbersObject.trunks = std::stoi(allContactFlowsNodePhoneNumbersPhoneNumber["Trunks"].asString());
|
phoneNumbersObject.trunks = std::stoi(valueContactFlowsContactFlowPhoneNumbersPhoneNumber["Trunks"].asString());
|
||||||
contactFlowsObject.phoneNumbers.push_back(phoneNumbersObject);
|
contactFlowsObject.phoneNumbers.push_back(phoneNumbersObject);
|
||||||
}
|
}
|
||||||
contactFlows_.push_back(contactFlowsObject);
|
contactFlows_.push_back(contactFlowsObject);
|
||||||
|
|||||||
@@ -71,16 +71,16 @@ void ListInstancesOfUserResult::parse(const std::string &payload)
|
|||||||
instancesObject.createdTime = std::stol(valueInstancesCallCenterInstance["CreatedTime"].asString());
|
instancesObject.createdTime = std::stol(valueInstancesCallCenterInstance["CreatedTime"].asString());
|
||||||
if(!valueInstancesCallCenterInstance["Owner"].isNull())
|
if(!valueInstancesCallCenterInstance["Owner"].isNull())
|
||||||
instancesObject.owner = valueInstancesCallCenterInstance["Owner"].asString();
|
instancesObject.owner = valueInstancesCallCenterInstance["Owner"].asString();
|
||||||
auto allAdminNode = allInstancesNode["Admin"]["User"];
|
auto allAdminNode = valueInstancesCallCenterInstance["Admin"]["User"];
|
||||||
for (auto allInstancesNodeAdminUser : allAdminNode)
|
for (auto valueInstancesCallCenterInstanceAdminUser : allAdminNode)
|
||||||
{
|
{
|
||||||
CallCenterInstance::User adminObject;
|
CallCenterInstance::User adminObject;
|
||||||
if(!allInstancesNodeAdminUser["UserId"].isNull())
|
if(!valueInstancesCallCenterInstanceAdminUser["UserId"].isNull())
|
||||||
adminObject.userId = allInstancesNodeAdminUser["UserId"].asString();
|
adminObject.userId = valueInstancesCallCenterInstanceAdminUser["UserId"].asString();
|
||||||
if(!allInstancesNodeAdminUser["RamId"].isNull())
|
if(!valueInstancesCallCenterInstanceAdminUser["RamId"].isNull())
|
||||||
adminObject.ramId = allInstancesNodeAdminUser["RamId"].asString();
|
adminObject.ramId = valueInstancesCallCenterInstanceAdminUser["RamId"].asString();
|
||||||
if(!allInstancesNodeAdminUser["InstanceId"].isNull())
|
if(!valueInstancesCallCenterInstanceAdminUser["InstanceId"].isNull())
|
||||||
adminObject.instanceId = allInstancesNodeAdminUser["InstanceId"].asString();
|
adminObject.instanceId = valueInstancesCallCenterInstanceAdminUser["InstanceId"].asString();
|
||||||
auto detailNode = value["Detail"];
|
auto detailNode = value["Detail"];
|
||||||
if(!detailNode["LoginName"].isNull())
|
if(!detailNode["LoginName"].isNull())
|
||||||
adminObject.detail.loginName = detailNode["LoginName"].asString();
|
adminObject.detail.loginName = detailNode["LoginName"].asString();
|
||||||
@@ -94,28 +94,28 @@ void ListInstancesOfUserResult::parse(const std::string &payload)
|
|||||||
adminObject.detail.department = detailNode["Department"].asString();
|
adminObject.detail.department = detailNode["Department"].asString();
|
||||||
instancesObject.admin.push_back(adminObject);
|
instancesObject.admin.push_back(adminObject);
|
||||||
}
|
}
|
||||||
auto allPhoneNumbersNode = allInstancesNode["PhoneNumbers"]["PhoneNumber"];
|
auto allPhoneNumbersNode = valueInstancesCallCenterInstance["PhoneNumbers"]["PhoneNumber"];
|
||||||
for (auto allInstancesNodePhoneNumbersPhoneNumber : allPhoneNumbersNode)
|
for (auto valueInstancesCallCenterInstancePhoneNumbersPhoneNumber : allPhoneNumbersNode)
|
||||||
{
|
{
|
||||||
CallCenterInstance::PhoneNumber phoneNumbersObject;
|
CallCenterInstance::PhoneNumber phoneNumbersObject;
|
||||||
if(!allInstancesNodePhoneNumbersPhoneNumber["PhoneNumberId"].isNull())
|
if(!valueInstancesCallCenterInstancePhoneNumbersPhoneNumber["PhoneNumberId"].isNull())
|
||||||
phoneNumbersObject.phoneNumberId = allInstancesNodePhoneNumbersPhoneNumber["PhoneNumberId"].asString();
|
phoneNumbersObject.phoneNumberId = valueInstancesCallCenterInstancePhoneNumbersPhoneNumber["PhoneNumberId"].asString();
|
||||||
if(!allInstancesNodePhoneNumbersPhoneNumber["InstanceId"].isNull())
|
if(!valueInstancesCallCenterInstancePhoneNumbersPhoneNumber["InstanceId"].isNull())
|
||||||
phoneNumbersObject.instanceId = allInstancesNodePhoneNumbersPhoneNumber["InstanceId"].asString();
|
phoneNumbersObject.instanceId = valueInstancesCallCenterInstancePhoneNumbersPhoneNumber["InstanceId"].asString();
|
||||||
if(!allInstancesNodePhoneNumbersPhoneNumber["Number"].isNull())
|
if(!valueInstancesCallCenterInstancePhoneNumbersPhoneNumber["Number"].isNull())
|
||||||
phoneNumbersObject.number = allInstancesNodePhoneNumbersPhoneNumber["Number"].asString();
|
phoneNumbersObject.number = valueInstancesCallCenterInstancePhoneNumbersPhoneNumber["Number"].asString();
|
||||||
if(!allInstancesNodePhoneNumbersPhoneNumber["PhoneNumberDescription"].isNull())
|
if(!valueInstancesCallCenterInstancePhoneNumbersPhoneNumber["PhoneNumberDescription"].isNull())
|
||||||
phoneNumbersObject.phoneNumberDescription = allInstancesNodePhoneNumbersPhoneNumber["PhoneNumberDescription"].asString();
|
phoneNumbersObject.phoneNumberDescription = valueInstancesCallCenterInstancePhoneNumbersPhoneNumber["PhoneNumberDescription"].asString();
|
||||||
if(!allInstancesNodePhoneNumbersPhoneNumber["TestOnly"].isNull())
|
if(!valueInstancesCallCenterInstancePhoneNumbersPhoneNumber["TestOnly"].isNull())
|
||||||
phoneNumbersObject.testOnly = allInstancesNodePhoneNumbersPhoneNumber["TestOnly"].asString() == "true";
|
phoneNumbersObject.testOnly = valueInstancesCallCenterInstancePhoneNumbersPhoneNumber["TestOnly"].asString() == "true";
|
||||||
if(!allInstancesNodePhoneNumbersPhoneNumber["RemainingTime"].isNull())
|
if(!valueInstancesCallCenterInstancePhoneNumbersPhoneNumber["RemainingTime"].isNull())
|
||||||
phoneNumbersObject.remainingTime = std::stoi(allInstancesNodePhoneNumbersPhoneNumber["RemainingTime"].asString());
|
phoneNumbersObject.remainingTime = std::stoi(valueInstancesCallCenterInstancePhoneNumbersPhoneNumber["RemainingTime"].asString());
|
||||||
if(!allInstancesNodePhoneNumbersPhoneNumber["AllowOutbound"].isNull())
|
if(!valueInstancesCallCenterInstancePhoneNumbersPhoneNumber["AllowOutbound"].isNull())
|
||||||
phoneNumbersObject.allowOutbound = allInstancesNodePhoneNumbersPhoneNumber["AllowOutbound"].asString() == "true";
|
phoneNumbersObject.allowOutbound = valueInstancesCallCenterInstancePhoneNumbersPhoneNumber["AllowOutbound"].asString() == "true";
|
||||||
if(!allInstancesNodePhoneNumbersPhoneNumber["Usage"].isNull())
|
if(!valueInstancesCallCenterInstancePhoneNumbersPhoneNumber["Usage"].isNull())
|
||||||
phoneNumbersObject.usage = allInstancesNodePhoneNumbersPhoneNumber["Usage"].asString();
|
phoneNumbersObject.usage = valueInstancesCallCenterInstancePhoneNumbersPhoneNumber["Usage"].asString();
|
||||||
if(!allInstancesNodePhoneNumbersPhoneNumber["Trunks"].isNull())
|
if(!valueInstancesCallCenterInstancePhoneNumbersPhoneNumber["Trunks"].isNull())
|
||||||
phoneNumbersObject.trunks = std::stoi(allInstancesNodePhoneNumbersPhoneNumber["Trunks"].asString());
|
phoneNumbersObject.trunks = std::stoi(valueInstancesCallCenterInstancePhoneNumbersPhoneNumber["Trunks"].asString());
|
||||||
instancesObject.phoneNumbers.push_back(phoneNumbersObject);
|
instancesObject.phoneNumbers.push_back(phoneNumbersObject);
|
||||||
}
|
}
|
||||||
instances_.push_back(instancesObject);
|
instances_.push_back(instancesObject);
|
||||||
|
|||||||
@@ -66,66 +66,66 @@ void ListJobStatusResult::parse(const std::string &payload)
|
|||||||
jobObject.referenceId = jobsNodeListJob["ReferenceId"].asString();
|
jobObject.referenceId = jobsNodeListJob["ReferenceId"].asString();
|
||||||
if(!jobsNodeListJob["FailureReason"].isNull())
|
if(!jobsNodeListJob["FailureReason"].isNull())
|
||||||
jobObject.failureReason = jobsNodeListJob["FailureReason"].asString();
|
jobObject.failureReason = jobsNodeListJob["FailureReason"].asString();
|
||||||
auto allContactsNode = allListNode["Contacts"]["Contact"];
|
auto allContactsNode = jobsNodeListJob["Contacts"]["Contact"];
|
||||||
for (auto allListNodeContactsContact : allContactsNode)
|
for (auto jobsNodeListJobContactsContact : allContactsNode)
|
||||||
{
|
{
|
||||||
Jobs::Job::Contact contactsObject;
|
Jobs::Job::Contact contactsObject;
|
||||||
if(!allListNodeContactsContact["ContactId"].isNull())
|
if(!jobsNodeListJobContactsContact["ContactId"].isNull())
|
||||||
contactsObject.contactId = allListNodeContactsContact["ContactId"].asString();
|
contactsObject.contactId = jobsNodeListJobContactsContact["ContactId"].asString();
|
||||||
if(!allListNodeContactsContact["ContactName"].isNull())
|
if(!jobsNodeListJobContactsContact["ContactName"].isNull())
|
||||||
contactsObject.contactName = allListNodeContactsContact["ContactName"].asString();
|
contactsObject.contactName = jobsNodeListJobContactsContact["ContactName"].asString();
|
||||||
if(!allListNodeContactsContact["Honorific"].isNull())
|
if(!jobsNodeListJobContactsContact["Honorific"].isNull())
|
||||||
contactsObject.honorific = allListNodeContactsContact["Honorific"].asString();
|
contactsObject.honorific = jobsNodeListJobContactsContact["Honorific"].asString();
|
||||||
if(!allListNodeContactsContact["Role"].isNull())
|
if(!jobsNodeListJobContactsContact["Role"].isNull())
|
||||||
contactsObject.role = allListNodeContactsContact["Role"].asString();
|
contactsObject.role = jobsNodeListJobContactsContact["Role"].asString();
|
||||||
if(!allListNodeContactsContact["PhoneNumber"].isNull())
|
if(!jobsNodeListJobContactsContact["PhoneNumber"].isNull())
|
||||||
contactsObject.phoneNumber = allListNodeContactsContact["PhoneNumber"].asString();
|
contactsObject.phoneNumber = jobsNodeListJobContactsContact["PhoneNumber"].asString();
|
||||||
if(!allListNodeContactsContact["State"].isNull())
|
if(!jobsNodeListJobContactsContact["State"].isNull())
|
||||||
contactsObject.state = allListNodeContactsContact["State"].asString();
|
contactsObject.state = jobsNodeListJobContactsContact["State"].asString();
|
||||||
if(!allListNodeContactsContact["ReferenceId"].isNull())
|
if(!jobsNodeListJobContactsContact["ReferenceId"].isNull())
|
||||||
contactsObject.referenceId = allListNodeContactsContact["ReferenceId"].asString();
|
contactsObject.referenceId = jobsNodeListJobContactsContact["ReferenceId"].asString();
|
||||||
if(!allListNodeContactsContact["JobId"].isNull())
|
if(!jobsNodeListJobContactsContact["JobId"].isNull())
|
||||||
contactsObject.jobId = allListNodeContactsContact["JobId"].asString();
|
contactsObject.jobId = jobsNodeListJobContactsContact["JobId"].asString();
|
||||||
jobObject.contacts.push_back(contactsObject);
|
jobObject.contacts.push_back(contactsObject);
|
||||||
}
|
}
|
||||||
auto allExtrasNode = allListNode["Extras"]["KeyValuePair"];
|
auto allExtrasNode = jobsNodeListJob["Extras"]["KeyValuePair"];
|
||||||
for (auto allListNodeExtrasKeyValuePair : allExtrasNode)
|
for (auto jobsNodeListJobExtrasKeyValuePair : allExtrasNode)
|
||||||
{
|
{
|
||||||
Jobs::Job::KeyValuePair extrasObject;
|
Jobs::Job::KeyValuePair extrasObject;
|
||||||
if(!allListNodeExtrasKeyValuePair["Key"].isNull())
|
if(!jobsNodeListJobExtrasKeyValuePair["Key"].isNull())
|
||||||
extrasObject.key = allListNodeExtrasKeyValuePair["Key"].asString();
|
extrasObject.key = jobsNodeListJobExtrasKeyValuePair["Key"].asString();
|
||||||
if(!allListNodeExtrasKeyValuePair["Value"].isNull())
|
if(!jobsNodeListJobExtrasKeyValuePair["Value"].isNull())
|
||||||
extrasObject.value = allListNodeExtrasKeyValuePair["Value"].asString();
|
extrasObject.value = jobsNodeListJobExtrasKeyValuePair["Value"].asString();
|
||||||
jobObject.extras.push_back(extrasObject);
|
jobObject.extras.push_back(extrasObject);
|
||||||
}
|
}
|
||||||
auto allTasksNode = allListNode["Tasks"]["Task"];
|
auto allTasksNode = jobsNodeListJob["Tasks"]["Task"];
|
||||||
for (auto allListNodeTasksTask : allTasksNode)
|
for (auto jobsNodeListJobTasksTask : allTasksNode)
|
||||||
{
|
{
|
||||||
Jobs::Job::Task tasksObject;
|
Jobs::Job::Task tasksObject;
|
||||||
if(!allListNodeTasksTask["TaskId"].isNull())
|
if(!jobsNodeListJobTasksTask["TaskId"].isNull())
|
||||||
tasksObject.taskId = allListNodeTasksTask["TaskId"].asString();
|
tasksObject.taskId = jobsNodeListJobTasksTask["TaskId"].asString();
|
||||||
if(!allListNodeTasksTask["JobId"].isNull())
|
if(!jobsNodeListJobTasksTask["JobId"].isNull())
|
||||||
tasksObject.jobId = allListNodeTasksTask["JobId"].asString();
|
tasksObject.jobId = jobsNodeListJobTasksTask["JobId"].asString();
|
||||||
if(!allListNodeTasksTask["ScenarioId"].isNull())
|
if(!jobsNodeListJobTasksTask["ScenarioId"].isNull())
|
||||||
tasksObject.scenarioId = allListNodeTasksTask["ScenarioId"].asString();
|
tasksObject.scenarioId = jobsNodeListJobTasksTask["ScenarioId"].asString();
|
||||||
if(!allListNodeTasksTask["ChatbotId"].isNull())
|
if(!jobsNodeListJobTasksTask["ChatbotId"].isNull())
|
||||||
tasksObject.chatbotId = allListNodeTasksTask["ChatbotId"].asString();
|
tasksObject.chatbotId = jobsNodeListJobTasksTask["ChatbotId"].asString();
|
||||||
if(!allListNodeTasksTask["PlanedTime"].isNull())
|
if(!jobsNodeListJobTasksTask["PlanedTime"].isNull())
|
||||||
tasksObject.planedTime = std::stol(allListNodeTasksTask["PlanedTime"].asString());
|
tasksObject.planedTime = std::stol(jobsNodeListJobTasksTask["PlanedTime"].asString());
|
||||||
if(!allListNodeTasksTask["ActualTime"].isNull())
|
if(!jobsNodeListJobTasksTask["ActualTime"].isNull())
|
||||||
tasksObject.actualTime = std::stol(allListNodeTasksTask["ActualTime"].asString());
|
tasksObject.actualTime = std::stol(jobsNodeListJobTasksTask["ActualTime"].asString());
|
||||||
if(!allListNodeTasksTask["CallingNumber"].isNull())
|
if(!jobsNodeListJobTasksTask["CallingNumber"].isNull())
|
||||||
tasksObject.callingNumber = allListNodeTasksTask["CallingNumber"].asString();
|
tasksObject.callingNumber = jobsNodeListJobTasksTask["CallingNumber"].asString();
|
||||||
if(!allListNodeTasksTask["CalledNumber"].isNull())
|
if(!jobsNodeListJobTasksTask["CalledNumber"].isNull())
|
||||||
tasksObject.calledNumber = allListNodeTasksTask["CalledNumber"].asString();
|
tasksObject.calledNumber = jobsNodeListJobTasksTask["CalledNumber"].asString();
|
||||||
if(!allListNodeTasksTask["CallId"].isNull())
|
if(!jobsNodeListJobTasksTask["CallId"].isNull())
|
||||||
tasksObject.callId = allListNodeTasksTask["CallId"].asString();
|
tasksObject.callId = jobsNodeListJobTasksTask["CallId"].asString();
|
||||||
if(!allListNodeTasksTask["Status"].isNull())
|
if(!jobsNodeListJobTasksTask["Status"].isNull())
|
||||||
tasksObject.status = allListNodeTasksTask["Status"].asString();
|
tasksObject.status = jobsNodeListJobTasksTask["Status"].asString();
|
||||||
if(!allListNodeTasksTask["Brief"].isNull())
|
if(!jobsNodeListJobTasksTask["Brief"].isNull())
|
||||||
tasksObject.brief = allListNodeTasksTask["Brief"].asString();
|
tasksObject.brief = jobsNodeListJobTasksTask["Brief"].asString();
|
||||||
if(!allListNodeTasksTask["Duration"].isNull())
|
if(!jobsNodeListJobTasksTask["Duration"].isNull())
|
||||||
tasksObject.duration = std::stoi(allListNodeTasksTask["Duration"].asString());
|
tasksObject.duration = std::stoi(jobsNodeListJobTasksTask["Duration"].asString());
|
||||||
auto contact1Node = value["Contact"];
|
auto contact1Node = value["Contact"];
|
||||||
if(!contact1Node["ContactId"].isNull())
|
if(!contact1Node["ContactId"].isNull())
|
||||||
tasksObject.contact1.contactId = contact1Node["ContactId"].asString();
|
tasksObject.contact1.contactId = contact1Node["ContactId"].asString();
|
||||||
@@ -145,26 +145,26 @@ void ListJobStatusResult::parse(const std::string &payload)
|
|||||||
tasksObject.contact1.jobId = contact1Node["JobId"].asString();
|
tasksObject.contact1.jobId = contact1Node["JobId"].asString();
|
||||||
jobObject.tasks.push_back(tasksObject);
|
jobObject.tasks.push_back(tasksObject);
|
||||||
}
|
}
|
||||||
auto allSummaryNode = allListNode["Summary"]["SummaryItem"];
|
auto allSummaryNode = jobsNodeListJob["Summary"]["SummaryItem"];
|
||||||
for (auto allListNodeSummarySummaryItem : allSummaryNode)
|
for (auto jobsNodeListJobSummarySummaryItem : allSummaryNode)
|
||||||
{
|
{
|
||||||
Jobs::Job::SummaryItem summaryObject;
|
Jobs::Job::SummaryItem summaryObject;
|
||||||
if(!allListNodeSummarySummaryItem["SummaryId"].isNull())
|
if(!jobsNodeListJobSummarySummaryItem["SummaryId"].isNull())
|
||||||
summaryObject.summaryId = allListNodeSummarySummaryItem["SummaryId"].asString();
|
summaryObject.summaryId = jobsNodeListJobSummarySummaryItem["SummaryId"].asString();
|
||||||
if(!allListNodeSummarySummaryItem["GroupId"].isNull())
|
if(!jobsNodeListJobSummarySummaryItem["GroupId"].isNull())
|
||||||
summaryObject.groupId = allListNodeSummarySummaryItem["GroupId"].asString();
|
summaryObject.groupId = jobsNodeListJobSummarySummaryItem["GroupId"].asString();
|
||||||
if(!allListNodeSummarySummaryItem["JobId"].isNull())
|
if(!jobsNodeListJobSummarySummaryItem["JobId"].isNull())
|
||||||
summaryObject.jobId = allListNodeSummarySummaryItem["JobId"].asString();
|
summaryObject.jobId = jobsNodeListJobSummarySummaryItem["JobId"].asString();
|
||||||
if(!allListNodeSummarySummaryItem["TaskId"].isNull())
|
if(!jobsNodeListJobSummarySummaryItem["TaskId"].isNull())
|
||||||
summaryObject.taskId = allListNodeSummarySummaryItem["TaskId"].asString();
|
summaryObject.taskId = jobsNodeListJobSummarySummaryItem["TaskId"].asString();
|
||||||
if(!allListNodeSummarySummaryItem["ConversationDetailId"].isNull())
|
if(!jobsNodeListJobSummarySummaryItem["ConversationDetailId"].isNull())
|
||||||
summaryObject.conversationDetailId = allListNodeSummarySummaryItem["ConversationDetailId"].asString();
|
summaryObject.conversationDetailId = jobsNodeListJobSummarySummaryItem["ConversationDetailId"].asString();
|
||||||
if(!allListNodeSummarySummaryItem["Category"].isNull())
|
if(!jobsNodeListJobSummarySummaryItem["Category"].isNull())
|
||||||
summaryObject.category = allListNodeSummarySummaryItem["Category"].asString();
|
summaryObject.category = jobsNodeListJobSummarySummaryItem["Category"].asString();
|
||||||
if(!allListNodeSummarySummaryItem["SummaryName"].isNull())
|
if(!jobsNodeListJobSummarySummaryItem["SummaryName"].isNull())
|
||||||
summaryObject.summaryName = allListNodeSummarySummaryItem["SummaryName"].asString();
|
summaryObject.summaryName = jobsNodeListJobSummarySummaryItem["SummaryName"].asString();
|
||||||
if(!allListNodeSummarySummaryItem["Content"].isNull())
|
if(!jobsNodeListJobSummarySummaryItem["Content"].isNull())
|
||||||
summaryObject.content = allListNodeSummarySummaryItem["Content"].asString();
|
summaryObject.content = jobsNodeListJobSummarySummaryItem["Content"].asString();
|
||||||
jobObject.summary.push_back(summaryObject);
|
jobObject.summary.push_back(summaryObject);
|
||||||
}
|
}
|
||||||
auto allCallingNumbers = value["CallingNumbers"]["String"];
|
auto allCallingNumbers = value["CallingNumbers"]["String"];
|
||||||
|
|||||||
@@ -68,58 +68,58 @@ void ListJobsByGroupResult::parse(const std::string &payload)
|
|||||||
jobObject.referenceId = jobsNodeListJob["ReferenceId"].asString();
|
jobObject.referenceId = jobsNodeListJob["ReferenceId"].asString();
|
||||||
if(!jobsNodeListJob["FailureReason"].isNull())
|
if(!jobsNodeListJob["FailureReason"].isNull())
|
||||||
jobObject.failureReason = jobsNodeListJob["FailureReason"].asString();
|
jobObject.failureReason = jobsNodeListJob["FailureReason"].asString();
|
||||||
auto allContactsNode = allListNode["Contacts"]["Contact"];
|
auto allContactsNode = jobsNodeListJob["Contacts"]["Contact"];
|
||||||
for (auto allListNodeContactsContact : allContactsNode)
|
for (auto jobsNodeListJobContactsContact : allContactsNode)
|
||||||
{
|
{
|
||||||
Jobs::Job::Contact contactsObject;
|
Jobs::Job::Contact contactsObject;
|
||||||
if(!allListNodeContactsContact["ContactId"].isNull())
|
if(!jobsNodeListJobContactsContact["ContactId"].isNull())
|
||||||
contactsObject.contactId = allListNodeContactsContact["ContactId"].asString();
|
contactsObject.contactId = jobsNodeListJobContactsContact["ContactId"].asString();
|
||||||
if(!allListNodeContactsContact["ContactName"].isNull())
|
if(!jobsNodeListJobContactsContact["ContactName"].isNull())
|
||||||
contactsObject.contactName = allListNodeContactsContact["ContactName"].asString();
|
contactsObject.contactName = jobsNodeListJobContactsContact["ContactName"].asString();
|
||||||
if(!allListNodeContactsContact["Honorific"].isNull())
|
if(!jobsNodeListJobContactsContact["Honorific"].isNull())
|
||||||
contactsObject.honorific = allListNodeContactsContact["Honorific"].asString();
|
contactsObject.honorific = jobsNodeListJobContactsContact["Honorific"].asString();
|
||||||
if(!allListNodeContactsContact["Role"].isNull())
|
if(!jobsNodeListJobContactsContact["Role"].isNull())
|
||||||
contactsObject.role = allListNodeContactsContact["Role"].asString();
|
contactsObject.role = jobsNodeListJobContactsContact["Role"].asString();
|
||||||
if(!allListNodeContactsContact["PhoneNumber"].isNull())
|
if(!jobsNodeListJobContactsContact["PhoneNumber"].isNull())
|
||||||
contactsObject.phoneNumber = allListNodeContactsContact["PhoneNumber"].asString();
|
contactsObject.phoneNumber = jobsNodeListJobContactsContact["PhoneNumber"].asString();
|
||||||
if(!allListNodeContactsContact["State"].isNull())
|
if(!jobsNodeListJobContactsContact["State"].isNull())
|
||||||
contactsObject.state = allListNodeContactsContact["State"].asString();
|
contactsObject.state = jobsNodeListJobContactsContact["State"].asString();
|
||||||
if(!allListNodeContactsContact["ReferenceId"].isNull())
|
if(!jobsNodeListJobContactsContact["ReferenceId"].isNull())
|
||||||
contactsObject.referenceId = allListNodeContactsContact["ReferenceId"].asString();
|
contactsObject.referenceId = jobsNodeListJobContactsContact["ReferenceId"].asString();
|
||||||
if(!allListNodeContactsContact["JobId"].isNull())
|
if(!jobsNodeListJobContactsContact["JobId"].isNull())
|
||||||
contactsObject.jobId = allListNodeContactsContact["JobId"].asString();
|
contactsObject.jobId = jobsNodeListJobContactsContact["JobId"].asString();
|
||||||
jobObject.contacts.push_back(contactsObject);
|
jobObject.contacts.push_back(contactsObject);
|
||||||
}
|
}
|
||||||
auto allExtrasNode = allListNode["Extras"]["KeyValuePair"];
|
auto allExtrasNode = jobsNodeListJob["Extras"]["KeyValuePair"];
|
||||||
for (auto allListNodeExtrasKeyValuePair : allExtrasNode)
|
for (auto jobsNodeListJobExtrasKeyValuePair : allExtrasNode)
|
||||||
{
|
{
|
||||||
Jobs::Job::KeyValuePair extrasObject;
|
Jobs::Job::KeyValuePair extrasObject;
|
||||||
if(!allListNodeExtrasKeyValuePair["Key"].isNull())
|
if(!jobsNodeListJobExtrasKeyValuePair["Key"].isNull())
|
||||||
extrasObject.key = allListNodeExtrasKeyValuePair["Key"].asString();
|
extrasObject.key = jobsNodeListJobExtrasKeyValuePair["Key"].asString();
|
||||||
if(!allListNodeExtrasKeyValuePair["Value"].isNull())
|
if(!jobsNodeListJobExtrasKeyValuePair["Value"].isNull())
|
||||||
extrasObject.value = allListNodeExtrasKeyValuePair["Value"].asString();
|
extrasObject.value = jobsNodeListJobExtrasKeyValuePair["Value"].asString();
|
||||||
jobObject.extras.push_back(extrasObject);
|
jobObject.extras.push_back(extrasObject);
|
||||||
}
|
}
|
||||||
auto allSummaryNode = allListNode["Summary"]["SummaryItem"];
|
auto allSummaryNode = jobsNodeListJob["Summary"]["SummaryItem"];
|
||||||
for (auto allListNodeSummarySummaryItem : allSummaryNode)
|
for (auto jobsNodeListJobSummarySummaryItem : allSummaryNode)
|
||||||
{
|
{
|
||||||
Jobs::Job::SummaryItem summaryObject;
|
Jobs::Job::SummaryItem summaryObject;
|
||||||
if(!allListNodeSummarySummaryItem["SummaryId"].isNull())
|
if(!jobsNodeListJobSummarySummaryItem["SummaryId"].isNull())
|
||||||
summaryObject.summaryId = allListNodeSummarySummaryItem["SummaryId"].asString();
|
summaryObject.summaryId = jobsNodeListJobSummarySummaryItem["SummaryId"].asString();
|
||||||
if(!allListNodeSummarySummaryItem["GroupId"].isNull())
|
if(!jobsNodeListJobSummarySummaryItem["GroupId"].isNull())
|
||||||
summaryObject.groupId = allListNodeSummarySummaryItem["GroupId"].asString();
|
summaryObject.groupId = jobsNodeListJobSummarySummaryItem["GroupId"].asString();
|
||||||
if(!allListNodeSummarySummaryItem["JobId"].isNull())
|
if(!jobsNodeListJobSummarySummaryItem["JobId"].isNull())
|
||||||
summaryObject.jobId = allListNodeSummarySummaryItem["JobId"].asString();
|
summaryObject.jobId = jobsNodeListJobSummarySummaryItem["JobId"].asString();
|
||||||
if(!allListNodeSummarySummaryItem["TaskId"].isNull())
|
if(!jobsNodeListJobSummarySummaryItem["TaskId"].isNull())
|
||||||
summaryObject.taskId = allListNodeSummarySummaryItem["TaskId"].asString();
|
summaryObject.taskId = jobsNodeListJobSummarySummaryItem["TaskId"].asString();
|
||||||
if(!allListNodeSummarySummaryItem["ConversationDetailId"].isNull())
|
if(!jobsNodeListJobSummarySummaryItem["ConversationDetailId"].isNull())
|
||||||
summaryObject.conversationDetailId = allListNodeSummarySummaryItem["ConversationDetailId"].asString();
|
summaryObject.conversationDetailId = jobsNodeListJobSummarySummaryItem["ConversationDetailId"].asString();
|
||||||
if(!allListNodeSummarySummaryItem["Category"].isNull())
|
if(!jobsNodeListJobSummarySummaryItem["Category"].isNull())
|
||||||
summaryObject.category = allListNodeSummarySummaryItem["Category"].asString();
|
summaryObject.category = jobsNodeListJobSummarySummaryItem["Category"].asString();
|
||||||
if(!allListNodeSummarySummaryItem["SummaryName"].isNull())
|
if(!jobsNodeListJobSummarySummaryItem["SummaryName"].isNull())
|
||||||
summaryObject.summaryName = allListNodeSummarySummaryItem["SummaryName"].asString();
|
summaryObject.summaryName = jobsNodeListJobSummarySummaryItem["SummaryName"].asString();
|
||||||
if(!allListNodeSummarySummaryItem["Content"].isNull())
|
if(!jobsNodeListJobSummarySummaryItem["Content"].isNull())
|
||||||
summaryObject.content = allListNodeSummarySummaryItem["Content"].asString();
|
summaryObject.content = jobsNodeListJobSummarySummaryItem["Content"].asString();
|
||||||
jobObject.summary.push_back(summaryObject);
|
jobObject.summary.push_back(summaryObject);
|
||||||
}
|
}
|
||||||
auto allCallingNumbers = value["CallingNumbers"]["String"];
|
auto allCallingNumbers = value["CallingNumbers"]["String"];
|
||||||
|
|||||||
@@ -71,14 +71,14 @@ void ListPhoneNumbersResult::parse(const std::string &payload)
|
|||||||
phoneNumbersObject.numberCommodityStatus = std::stoi(valuePhoneNumbersPhoneNumber["NumberCommodityStatus"].asString());
|
phoneNumbersObject.numberCommodityStatus = std::stoi(valuePhoneNumbersPhoneNumber["NumberCommodityStatus"].asString());
|
||||||
if(!valuePhoneNumbersPhoneNumber["SipTelX"].isNull())
|
if(!valuePhoneNumbersPhoneNumber["SipTelX"].isNull())
|
||||||
phoneNumbersObject.sipTelX = valuePhoneNumbersPhoneNumber["SipTelX"].asString();
|
phoneNumbersObject.sipTelX = valuePhoneNumbersPhoneNumber["SipTelX"].asString();
|
||||||
auto allSkillGroupsNode = allPhoneNumbersNode["SkillGroups"]["SkillGroup"];
|
auto allSkillGroupsNode = valuePhoneNumbersPhoneNumber["SkillGroups"]["SkillGroup"];
|
||||||
for (auto allPhoneNumbersNodeSkillGroupsSkillGroup : allSkillGroupsNode)
|
for (auto valuePhoneNumbersPhoneNumberSkillGroupsSkillGroup : allSkillGroupsNode)
|
||||||
{
|
{
|
||||||
PhoneNumber::SkillGroup skillGroupsObject;
|
PhoneNumber::SkillGroup skillGroupsObject;
|
||||||
if(!allPhoneNumbersNodeSkillGroupsSkillGroup["SkillGroupId"].isNull())
|
if(!valuePhoneNumbersPhoneNumberSkillGroupsSkillGroup["SkillGroupId"].isNull())
|
||||||
skillGroupsObject.skillGroupId = allPhoneNumbersNodeSkillGroupsSkillGroup["SkillGroupId"].asString();
|
skillGroupsObject.skillGroupId = valuePhoneNumbersPhoneNumberSkillGroupsSkillGroup["SkillGroupId"].asString();
|
||||||
if(!allPhoneNumbersNodeSkillGroupsSkillGroup["SkillGroupName"].isNull())
|
if(!valuePhoneNumbersPhoneNumberSkillGroupsSkillGroup["SkillGroupName"].isNull())
|
||||||
skillGroupsObject.skillGroupName = allPhoneNumbersNodeSkillGroupsSkillGroup["SkillGroupName"].asString();
|
skillGroupsObject.skillGroupName = valuePhoneNumbersPhoneNumberSkillGroupsSkillGroup["SkillGroupName"].asString();
|
||||||
phoneNumbersObject.skillGroups.push_back(skillGroupsObject);
|
phoneNumbersObject.skillGroups.push_back(skillGroupsObject);
|
||||||
}
|
}
|
||||||
auto contactFlowNode = value["ContactFlow"];
|
auto contactFlowNode = value["ContactFlow"];
|
||||||
|
|||||||
@@ -55,14 +55,14 @@ void ListRealTimeAgentResult::parse(const std::string &payload)
|
|||||||
dataObject.state = valueDataUser["State"].asString();
|
dataObject.state = valueDataUser["State"].asString();
|
||||||
if(!valueDataUser["StateDesc"].isNull())
|
if(!valueDataUser["StateDesc"].isNull())
|
||||||
dataObject.stateDesc = valueDataUser["StateDesc"].asString();
|
dataObject.stateDesc = valueDataUser["StateDesc"].asString();
|
||||||
auto allSkillLevelsNode = allDataNode["SkillLevels"]["SkillLevel"];
|
auto allSkillLevelsNode = valueDataUser["SkillLevels"]["SkillLevel"];
|
||||||
for (auto allDataNodeSkillLevelsSkillLevel : allSkillLevelsNode)
|
for (auto valueDataUserSkillLevelsSkillLevel : allSkillLevelsNode)
|
||||||
{
|
{
|
||||||
User::SkillLevel skillLevelsObject;
|
User::SkillLevel skillLevelsObject;
|
||||||
if(!allDataNodeSkillLevelsSkillLevel["SkillLevelId"].isNull())
|
if(!valueDataUserSkillLevelsSkillLevel["SkillLevelId"].isNull())
|
||||||
skillLevelsObject.skillLevelId = allDataNodeSkillLevelsSkillLevel["SkillLevelId"].asString();
|
skillLevelsObject.skillLevelId = valueDataUserSkillLevelsSkillLevel["SkillLevelId"].asString();
|
||||||
if(!allDataNodeSkillLevelsSkillLevel["Level"].isNull())
|
if(!valueDataUserSkillLevelsSkillLevel["Level"].isNull())
|
||||||
skillLevelsObject.level = std::stoi(allDataNodeSkillLevelsSkillLevel["Level"].asString());
|
skillLevelsObject.level = std::stoi(valueDataUserSkillLevelsSkillLevel["Level"].asString());
|
||||||
auto skillNode = value["Skill"];
|
auto skillNode = value["Skill"];
|
||||||
if(!skillNode["SkillGroupId"].isNull())
|
if(!skillNode["SkillGroupId"].isNull())
|
||||||
skillLevelsObject.skill.skillGroupId = skillNode["SkillGroupId"].asString();
|
skillLevelsObject.skill.skillGroupId = skillNode["SkillGroupId"].asString();
|
||||||
|
|||||||
@@ -80,66 +80,66 @@ void ListRecentCallRecordsResult::parse(const std::string &payload)
|
|||||||
callDetailRecordObject.satisfactionDesc = callDetailRecordsNodeListCallDetailRecord["SatisfactionDesc"].asString();
|
callDetailRecordObject.satisfactionDesc = callDetailRecordsNodeListCallDetailRecord["SatisfactionDesc"].asString();
|
||||||
if(!callDetailRecordsNodeListCallDetailRecord["Feedback"].isNull())
|
if(!callDetailRecordsNodeListCallDetailRecord["Feedback"].isNull())
|
||||||
callDetailRecordObject.feedback = callDetailRecordsNodeListCallDetailRecord["Feedback"].asString();
|
callDetailRecordObject.feedback = callDetailRecordsNodeListCallDetailRecord["Feedback"].asString();
|
||||||
auto allAgentsNode = allListNode["Agents"]["CallDetailAgent"];
|
auto allAgentsNode = callDetailRecordsNodeListCallDetailRecord["Agents"]["CallDetailAgent"];
|
||||||
for (auto allListNodeAgentsCallDetailAgent : allAgentsNode)
|
for (auto callDetailRecordsNodeListCallDetailRecordAgentsCallDetailAgent : allAgentsNode)
|
||||||
{
|
{
|
||||||
CallDetailRecords::CallDetailRecord::CallDetailAgent agentsObject;
|
CallDetailRecords::CallDetailRecord::CallDetailAgent agentsObject;
|
||||||
if(!allListNodeAgentsCallDetailAgent["ContactId"].isNull())
|
if(!callDetailRecordsNodeListCallDetailRecordAgentsCallDetailAgent["ContactId"].isNull())
|
||||||
agentsObject.contactId = allListNodeAgentsCallDetailAgent["ContactId"].asString();
|
agentsObject.contactId = callDetailRecordsNodeListCallDetailRecordAgentsCallDetailAgent["ContactId"].asString();
|
||||||
if(!allListNodeAgentsCallDetailAgent["AgentId"].isNull())
|
if(!callDetailRecordsNodeListCallDetailRecordAgentsCallDetailAgent["AgentId"].isNull())
|
||||||
agentsObject.agentId = allListNodeAgentsCallDetailAgent["AgentId"].asString();
|
agentsObject.agentId = callDetailRecordsNodeListCallDetailRecordAgentsCallDetailAgent["AgentId"].asString();
|
||||||
if(!allListNodeAgentsCallDetailAgent["AgentName"].isNull())
|
if(!callDetailRecordsNodeListCallDetailRecordAgentsCallDetailAgent["AgentName"].isNull())
|
||||||
agentsObject.agentName = allListNodeAgentsCallDetailAgent["AgentName"].asString();
|
agentsObject.agentName = callDetailRecordsNodeListCallDetailRecordAgentsCallDetailAgent["AgentName"].asString();
|
||||||
if(!allListNodeAgentsCallDetailAgent["SkillGroupName"].isNull())
|
if(!callDetailRecordsNodeListCallDetailRecordAgentsCallDetailAgent["SkillGroupName"].isNull())
|
||||||
agentsObject.skillGroupName = allListNodeAgentsCallDetailAgent["SkillGroupName"].asString();
|
agentsObject.skillGroupName = callDetailRecordsNodeListCallDetailRecordAgentsCallDetailAgent["SkillGroupName"].asString();
|
||||||
if(!allListNodeAgentsCallDetailAgent["QueueTime"].isNull())
|
if(!callDetailRecordsNodeListCallDetailRecordAgentsCallDetailAgent["QueueTime"].isNull())
|
||||||
agentsObject.queueTime = std::stoi(allListNodeAgentsCallDetailAgent["QueueTime"].asString());
|
agentsObject.queueTime = std::stoi(callDetailRecordsNodeListCallDetailRecordAgentsCallDetailAgent["QueueTime"].asString());
|
||||||
if(!allListNodeAgentsCallDetailAgent["RingTime"].isNull())
|
if(!callDetailRecordsNodeListCallDetailRecordAgentsCallDetailAgent["RingTime"].isNull())
|
||||||
agentsObject.ringTime = std::stoi(allListNodeAgentsCallDetailAgent["RingTime"].asString());
|
agentsObject.ringTime = std::stoi(callDetailRecordsNodeListCallDetailRecordAgentsCallDetailAgent["RingTime"].asString());
|
||||||
if(!allListNodeAgentsCallDetailAgent["StartTime"].isNull())
|
if(!callDetailRecordsNodeListCallDetailRecordAgentsCallDetailAgent["StartTime"].isNull())
|
||||||
agentsObject.startTime = std::stol(allListNodeAgentsCallDetailAgent["StartTime"].asString());
|
agentsObject.startTime = std::stol(callDetailRecordsNodeListCallDetailRecordAgentsCallDetailAgent["StartTime"].asString());
|
||||||
if(!allListNodeAgentsCallDetailAgent["TalkTime"].isNull())
|
if(!callDetailRecordsNodeListCallDetailRecordAgentsCallDetailAgent["TalkTime"].isNull())
|
||||||
agentsObject.talkTime = std::stoi(allListNodeAgentsCallDetailAgent["TalkTime"].asString());
|
agentsObject.talkTime = std::stoi(callDetailRecordsNodeListCallDetailRecordAgentsCallDetailAgent["TalkTime"].asString());
|
||||||
if(!allListNodeAgentsCallDetailAgent["HoldTime"].isNull())
|
if(!callDetailRecordsNodeListCallDetailRecordAgentsCallDetailAgent["HoldTime"].isNull())
|
||||||
agentsObject.holdTime = std::stoi(allListNodeAgentsCallDetailAgent["HoldTime"].asString());
|
agentsObject.holdTime = std::stoi(callDetailRecordsNodeListCallDetailRecordAgentsCallDetailAgent["HoldTime"].asString());
|
||||||
if(!allListNodeAgentsCallDetailAgent["WorkTime"].isNull())
|
if(!callDetailRecordsNodeListCallDetailRecordAgentsCallDetailAgent["WorkTime"].isNull())
|
||||||
agentsObject.workTime = std::stoi(allListNodeAgentsCallDetailAgent["WorkTime"].asString());
|
agentsObject.workTime = std::stoi(callDetailRecordsNodeListCallDetailRecordAgentsCallDetailAgent["WorkTime"].asString());
|
||||||
if(!allListNodeAgentsCallDetailAgent["Satisfaction"].isNull())
|
if(!callDetailRecordsNodeListCallDetailRecordAgentsCallDetailAgent["Satisfaction"].isNull())
|
||||||
agentsObject.satisfaction = allListNodeAgentsCallDetailAgent["Satisfaction"].asString();
|
agentsObject.satisfaction = callDetailRecordsNodeListCallDetailRecordAgentsCallDetailAgent["Satisfaction"].asString();
|
||||||
if(!allListNodeAgentsCallDetailAgent["Feedback"].isNull())
|
if(!callDetailRecordsNodeListCallDetailRecordAgentsCallDetailAgent["Feedback"].isNull())
|
||||||
agentsObject.feedback = allListNodeAgentsCallDetailAgent["Feedback"].asString();
|
agentsObject.feedback = callDetailRecordsNodeListCallDetailRecordAgentsCallDetailAgent["Feedback"].asString();
|
||||||
callDetailRecordObject.agents.push_back(agentsObject);
|
callDetailRecordObject.agents.push_back(agentsObject);
|
||||||
}
|
}
|
||||||
auto allRecordingsNode = allListNode["Recordings"]["Recording"];
|
auto allRecordingsNode = callDetailRecordsNodeListCallDetailRecord["Recordings"]["Recording"];
|
||||||
for (auto allListNodeRecordingsRecording : allRecordingsNode)
|
for (auto callDetailRecordsNodeListCallDetailRecordRecordingsRecording : allRecordingsNode)
|
||||||
{
|
{
|
||||||
CallDetailRecords::CallDetailRecord::Recording recordingsObject;
|
CallDetailRecords::CallDetailRecord::Recording recordingsObject;
|
||||||
if(!allListNodeRecordingsRecording["ContactId"].isNull())
|
if(!callDetailRecordsNodeListCallDetailRecordRecordingsRecording["ContactId"].isNull())
|
||||||
recordingsObject.contactId = allListNodeRecordingsRecording["ContactId"].asString();
|
recordingsObject.contactId = callDetailRecordsNodeListCallDetailRecordRecordingsRecording["ContactId"].asString();
|
||||||
if(!allListNodeRecordingsRecording["ContactType"].isNull())
|
if(!callDetailRecordsNodeListCallDetailRecordRecordingsRecording["ContactType"].isNull())
|
||||||
recordingsObject.contactType = allListNodeRecordingsRecording["ContactType"].asString();
|
recordingsObject.contactType = callDetailRecordsNodeListCallDetailRecordRecordingsRecording["ContactType"].asString();
|
||||||
if(!allListNodeRecordingsRecording["AgentId"].isNull())
|
if(!callDetailRecordsNodeListCallDetailRecordRecordingsRecording["AgentId"].isNull())
|
||||||
recordingsObject.agentId = allListNodeRecordingsRecording["AgentId"].asString();
|
recordingsObject.agentId = callDetailRecordsNodeListCallDetailRecordRecordingsRecording["AgentId"].asString();
|
||||||
if(!allListNodeRecordingsRecording["AgentName"].isNull())
|
if(!callDetailRecordsNodeListCallDetailRecordRecordingsRecording["AgentName"].isNull())
|
||||||
recordingsObject.agentName = allListNodeRecordingsRecording["AgentName"].asString();
|
recordingsObject.agentName = callDetailRecordsNodeListCallDetailRecordRecordingsRecording["AgentName"].asString();
|
||||||
if(!allListNodeRecordingsRecording["CallingNumber"].isNull())
|
if(!callDetailRecordsNodeListCallDetailRecordRecordingsRecording["CallingNumber"].isNull())
|
||||||
recordingsObject.callingNumber = allListNodeRecordingsRecording["CallingNumber"].asString();
|
recordingsObject.callingNumber = callDetailRecordsNodeListCallDetailRecordRecordingsRecording["CallingNumber"].asString();
|
||||||
if(!allListNodeRecordingsRecording["CalledNumber"].isNull())
|
if(!callDetailRecordsNodeListCallDetailRecordRecordingsRecording["CalledNumber"].isNull())
|
||||||
recordingsObject.calledNumber = allListNodeRecordingsRecording["CalledNumber"].asString();
|
recordingsObject.calledNumber = callDetailRecordsNodeListCallDetailRecordRecordingsRecording["CalledNumber"].asString();
|
||||||
if(!allListNodeRecordingsRecording["StartTime"].isNull())
|
if(!callDetailRecordsNodeListCallDetailRecordRecordingsRecording["StartTime"].isNull())
|
||||||
recordingsObject.startTime = std::stol(allListNodeRecordingsRecording["StartTime"].asString());
|
recordingsObject.startTime = std::stol(callDetailRecordsNodeListCallDetailRecordRecordingsRecording["StartTime"].asString());
|
||||||
if(!allListNodeRecordingsRecording["Duration"].isNull())
|
if(!callDetailRecordsNodeListCallDetailRecordRecordingsRecording["Duration"].isNull())
|
||||||
recordingsObject.duration = std::stoi(allListNodeRecordingsRecording["Duration"].asString());
|
recordingsObject.duration = std::stoi(callDetailRecordsNodeListCallDetailRecordRecordingsRecording["Duration"].asString());
|
||||||
if(!allListNodeRecordingsRecording["FileName"].isNull())
|
if(!callDetailRecordsNodeListCallDetailRecordRecordingsRecording["FileName"].isNull())
|
||||||
recordingsObject.fileName = allListNodeRecordingsRecording["FileName"].asString();
|
recordingsObject.fileName = callDetailRecordsNodeListCallDetailRecordRecordingsRecording["FileName"].asString();
|
||||||
if(!allListNodeRecordingsRecording["FilePath"].isNull())
|
if(!callDetailRecordsNodeListCallDetailRecordRecordingsRecording["FilePath"].isNull())
|
||||||
recordingsObject.filePath = allListNodeRecordingsRecording["FilePath"].asString();
|
recordingsObject.filePath = callDetailRecordsNodeListCallDetailRecordRecordingsRecording["FilePath"].asString();
|
||||||
if(!allListNodeRecordingsRecording["FileDescription"].isNull())
|
if(!callDetailRecordsNodeListCallDetailRecordRecordingsRecording["FileDescription"].isNull())
|
||||||
recordingsObject.fileDescription = allListNodeRecordingsRecording["FileDescription"].asString();
|
recordingsObject.fileDescription = callDetailRecordsNodeListCallDetailRecordRecordingsRecording["FileDescription"].asString();
|
||||||
if(!allListNodeRecordingsRecording["Channel"].isNull())
|
if(!callDetailRecordsNodeListCallDetailRecordRecordingsRecording["Channel"].isNull())
|
||||||
recordingsObject.channel = allListNodeRecordingsRecording["Channel"].asString();
|
recordingsObject.channel = callDetailRecordsNodeListCallDetailRecordRecordingsRecording["Channel"].asString();
|
||||||
if(!allListNodeRecordingsRecording["InstanceId"].isNull())
|
if(!callDetailRecordsNodeListCallDetailRecordRecordingsRecording["InstanceId"].isNull())
|
||||||
recordingsObject.instanceId = allListNodeRecordingsRecording["InstanceId"].asString();
|
recordingsObject.instanceId = callDetailRecordsNodeListCallDetailRecordRecordingsRecording["InstanceId"].asString();
|
||||||
callDetailRecordObject.recordings.push_back(recordingsObject);
|
callDetailRecordObject.recordings.push_back(recordingsObject);
|
||||||
}
|
}
|
||||||
callDetailRecords_.list.push_back(callDetailRecordObject);
|
callDetailRecords_.list.push_back(callDetailRecordObject);
|
||||||
|
|||||||
@@ -53,32 +53,32 @@ void ListScenarioTemplatesResult::parse(const std::string &payload)
|
|||||||
scenarioTemplatesObject.type = valueScenarioTemplatesScenario["Type"].asString();
|
scenarioTemplatesObject.type = valueScenarioTemplatesScenario["Type"].asString();
|
||||||
if(!valueScenarioTemplatesScenario["IsTemplate"].isNull())
|
if(!valueScenarioTemplatesScenario["IsTemplate"].isNull())
|
||||||
scenarioTemplatesObject.isTemplate = valueScenarioTemplatesScenario["IsTemplate"].asString() == "true";
|
scenarioTemplatesObject.isTemplate = valueScenarioTemplatesScenario["IsTemplate"].asString() == "true";
|
||||||
auto allSurveysNode = allScenarioTemplatesNode["Surveys"]["Survey"];
|
auto allSurveysNode = valueScenarioTemplatesScenario["Surveys"]["Survey"];
|
||||||
for (auto allScenarioTemplatesNodeSurveysSurvey : allSurveysNode)
|
for (auto valueScenarioTemplatesScenarioSurveysSurvey : allSurveysNode)
|
||||||
{
|
{
|
||||||
Scenario::Survey surveysObject;
|
Scenario::Survey surveysObject;
|
||||||
if(!allScenarioTemplatesNodeSurveysSurvey["Id"].isNull())
|
if(!valueScenarioTemplatesScenarioSurveysSurvey["Id"].isNull())
|
||||||
surveysObject.id = allScenarioTemplatesNodeSurveysSurvey["Id"].asString();
|
surveysObject.id = valueScenarioTemplatesScenarioSurveysSurvey["Id"].asString();
|
||||||
if(!allScenarioTemplatesNodeSurveysSurvey["Name"].isNull())
|
if(!valueScenarioTemplatesScenarioSurveysSurvey["Name"].isNull())
|
||||||
surveysObject.name = allScenarioTemplatesNodeSurveysSurvey["Name"].asString();
|
surveysObject.name = valueScenarioTemplatesScenarioSurveysSurvey["Name"].asString();
|
||||||
if(!allScenarioTemplatesNodeSurveysSurvey["Description"].isNull())
|
if(!valueScenarioTemplatesScenarioSurveysSurvey["Description"].isNull())
|
||||||
surveysObject.description = allScenarioTemplatesNodeSurveysSurvey["Description"].asString();
|
surveysObject.description = valueScenarioTemplatesScenarioSurveysSurvey["Description"].asString();
|
||||||
if(!allScenarioTemplatesNodeSurveysSurvey["Role"].isNull())
|
if(!valueScenarioTemplatesScenarioSurveysSurvey["Role"].isNull())
|
||||||
surveysObject.role = allScenarioTemplatesNodeSurveysSurvey["Role"].asString();
|
surveysObject.role = valueScenarioTemplatesScenarioSurveysSurvey["Role"].asString();
|
||||||
if(!allScenarioTemplatesNodeSurveysSurvey["Round"].isNull())
|
if(!valueScenarioTemplatesScenarioSurveysSurvey["Round"].isNull())
|
||||||
surveysObject.round = std::stoi(allScenarioTemplatesNodeSurveysSurvey["Round"].asString());
|
surveysObject.round = std::stoi(valueScenarioTemplatesScenarioSurveysSurvey["Round"].asString());
|
||||||
if(!allScenarioTemplatesNodeSurveysSurvey["BeebotId"].isNull())
|
if(!valueScenarioTemplatesScenarioSurveysSurvey["BeebotId"].isNull())
|
||||||
surveysObject.beebotId = allScenarioTemplatesNodeSurveysSurvey["BeebotId"].asString();
|
surveysObject.beebotId = valueScenarioTemplatesScenarioSurveysSurvey["BeebotId"].asString();
|
||||||
if(!allScenarioTemplatesNodeSurveysSurvey["GlobalQuestions"].isNull())
|
if(!valueScenarioTemplatesScenarioSurveysSurvey["GlobalQuestions"].isNull())
|
||||||
surveysObject.globalQuestions = allScenarioTemplatesNodeSurveysSurvey["GlobalQuestions"].asString();
|
surveysObject.globalQuestions = valueScenarioTemplatesScenarioSurveysSurvey["GlobalQuestions"].asString();
|
||||||
auto allIntentsNode = allSurveysNode["Intents"]["IntentNode"];
|
auto allIntentsNode = valueScenarioTemplatesScenarioSurveysSurvey["Intents"]["IntentNode"];
|
||||||
for (auto allSurveysNodeIntentsIntentNode : allIntentsNode)
|
for (auto valueScenarioTemplatesScenarioSurveysSurveyIntentsIntentNode : allIntentsNode)
|
||||||
{
|
{
|
||||||
Scenario::Survey::IntentNode intentsObject;
|
Scenario::Survey::IntentNode intentsObject;
|
||||||
if(!allSurveysNodeIntentsIntentNode["NodeId"].isNull())
|
if(!valueScenarioTemplatesScenarioSurveysSurveyIntentsIntentNode["NodeId"].isNull())
|
||||||
intentsObject.nodeId = allSurveysNodeIntentsIntentNode["NodeId"].asString();
|
intentsObject.nodeId = valueScenarioTemplatesScenarioSurveysSurveyIntentsIntentNode["NodeId"].asString();
|
||||||
if(!allSurveysNodeIntentsIntentNode["IntentId"].isNull())
|
if(!valueScenarioTemplatesScenarioSurveysSurveyIntentsIntentNode["IntentId"].isNull())
|
||||||
intentsObject.intentId = allSurveysNodeIntentsIntentNode["IntentId"].asString();
|
intentsObject.intentId = valueScenarioTemplatesScenarioSurveysSurveyIntentsIntentNode["IntentId"].asString();
|
||||||
surveysObject.intents.push_back(intentsObject);
|
surveysObject.intents.push_back(intentsObject);
|
||||||
}
|
}
|
||||||
auto flowNode = value["Flow"];
|
auto flowNode = value["Flow"];
|
||||||
@@ -90,14 +90,14 @@ void ListScenarioTemplatesResult::parse(const std::string &payload)
|
|||||||
surveysObject.flow.flowJson = flowNode["FlowJson"].asString();
|
surveysObject.flow.flowJson = flowNode["FlowJson"].asString();
|
||||||
scenarioTemplatesObject.surveys.push_back(surveysObject);
|
scenarioTemplatesObject.surveys.push_back(surveysObject);
|
||||||
}
|
}
|
||||||
auto allVariablesNode = allScenarioTemplatesNode["Variables"]["KeyValuePair"];
|
auto allVariablesNode = valueScenarioTemplatesScenario["Variables"]["KeyValuePair"];
|
||||||
for (auto allScenarioTemplatesNodeVariablesKeyValuePair : allVariablesNode)
|
for (auto valueScenarioTemplatesScenarioVariablesKeyValuePair : allVariablesNode)
|
||||||
{
|
{
|
||||||
Scenario::KeyValuePair variablesObject;
|
Scenario::KeyValuePair variablesObject;
|
||||||
if(!allScenarioTemplatesNodeVariablesKeyValuePair["Key"].isNull())
|
if(!valueScenarioTemplatesScenarioVariablesKeyValuePair["Key"].isNull())
|
||||||
variablesObject.key = allScenarioTemplatesNodeVariablesKeyValuePair["Key"].asString();
|
variablesObject.key = valueScenarioTemplatesScenarioVariablesKeyValuePair["Key"].asString();
|
||||||
if(!allScenarioTemplatesNodeVariablesKeyValuePair["Value"].isNull())
|
if(!valueScenarioTemplatesScenarioVariablesKeyValuePair["Value"].isNull())
|
||||||
variablesObject.value = allScenarioTemplatesNodeVariablesKeyValuePair["Value"].asString();
|
variablesObject.value = valueScenarioTemplatesScenarioVariablesKeyValuePair["Value"].asString();
|
||||||
scenarioTemplatesObject.variables.push_back(variablesObject);
|
scenarioTemplatesObject.variables.push_back(variablesObject);
|
||||||
}
|
}
|
||||||
scenarioTemplates_.push_back(scenarioTemplatesObject);
|
scenarioTemplates_.push_back(scenarioTemplatesObject);
|
||||||
|
|||||||
@@ -53,42 +53,42 @@ void ListScenariosResult::parse(const std::string &payload)
|
|||||||
scenariosObject.type = valueScenariosScenario["Type"].asString();
|
scenariosObject.type = valueScenariosScenario["Type"].asString();
|
||||||
if(!valueScenariosScenario["IsTemplate"].isNull())
|
if(!valueScenariosScenario["IsTemplate"].isNull())
|
||||||
scenariosObject.isTemplate = valueScenariosScenario["IsTemplate"].asString() == "true";
|
scenariosObject.isTemplate = valueScenariosScenario["IsTemplate"].asString() == "true";
|
||||||
auto allSurveysNode = allScenariosNode["Surveys"]["Survey"];
|
auto allSurveysNode = valueScenariosScenario["Surveys"]["Survey"];
|
||||||
for (auto allScenariosNodeSurveysSurvey : allSurveysNode)
|
for (auto valueScenariosScenarioSurveysSurvey : allSurveysNode)
|
||||||
{
|
{
|
||||||
Scenario::Survey surveysObject;
|
Scenario::Survey surveysObject;
|
||||||
if(!allScenariosNodeSurveysSurvey["Id"].isNull())
|
if(!valueScenariosScenarioSurveysSurvey["Id"].isNull())
|
||||||
surveysObject.id = allScenariosNodeSurveysSurvey["Id"].asString();
|
surveysObject.id = valueScenariosScenarioSurveysSurvey["Id"].asString();
|
||||||
if(!allScenariosNodeSurveysSurvey["Name"].isNull())
|
if(!valueScenariosScenarioSurveysSurvey["Name"].isNull())
|
||||||
surveysObject.name = allScenariosNodeSurveysSurvey["Name"].asString();
|
surveysObject.name = valueScenariosScenarioSurveysSurvey["Name"].asString();
|
||||||
if(!allScenariosNodeSurveysSurvey["Description"].isNull())
|
if(!valueScenariosScenarioSurveysSurvey["Description"].isNull())
|
||||||
surveysObject.description = allScenariosNodeSurveysSurvey["Description"].asString();
|
surveysObject.description = valueScenariosScenarioSurveysSurvey["Description"].asString();
|
||||||
if(!allScenariosNodeSurveysSurvey["Role"].isNull())
|
if(!valueScenariosScenarioSurveysSurvey["Role"].isNull())
|
||||||
surveysObject.role = allScenariosNodeSurveysSurvey["Role"].asString();
|
surveysObject.role = valueScenariosScenarioSurveysSurvey["Role"].asString();
|
||||||
if(!allScenariosNodeSurveysSurvey["Round"].isNull())
|
if(!valueScenariosScenarioSurveysSurvey["Round"].isNull())
|
||||||
surveysObject.round = std::stoi(allScenariosNodeSurveysSurvey["Round"].asString());
|
surveysObject.round = std::stoi(valueScenariosScenarioSurveysSurvey["Round"].asString());
|
||||||
if(!allScenariosNodeSurveysSurvey["BeebotId"].isNull())
|
if(!valueScenariosScenarioSurveysSurvey["BeebotId"].isNull())
|
||||||
surveysObject.beebotId = allScenariosNodeSurveysSurvey["BeebotId"].asString();
|
surveysObject.beebotId = valueScenariosScenarioSurveysSurvey["BeebotId"].asString();
|
||||||
auto allIntentsNode = allSurveysNode["Intents"]["IntentNode"];
|
auto allIntentsNode = valueScenariosScenarioSurveysSurvey["Intents"]["IntentNode"];
|
||||||
for (auto allSurveysNodeIntentsIntentNode : allIntentsNode)
|
for (auto valueScenariosScenarioSurveysSurveyIntentsIntentNode : allIntentsNode)
|
||||||
{
|
{
|
||||||
Scenario::Survey::IntentNode intentsObject;
|
Scenario::Survey::IntentNode intentsObject;
|
||||||
if(!allSurveysNodeIntentsIntentNode["NodeId"].isNull())
|
if(!valueScenariosScenarioSurveysSurveyIntentsIntentNode["NodeId"].isNull())
|
||||||
intentsObject.nodeId = allSurveysNodeIntentsIntentNode["NodeId"].asString();
|
intentsObject.nodeId = valueScenariosScenarioSurveysSurveyIntentsIntentNode["NodeId"].asString();
|
||||||
if(!allSurveysNodeIntentsIntentNode["IntentId"].isNull())
|
if(!valueScenariosScenarioSurveysSurveyIntentsIntentNode["IntentId"].isNull())
|
||||||
intentsObject.intentId = allSurveysNodeIntentsIntentNode["IntentId"].asString();
|
intentsObject.intentId = valueScenariosScenarioSurveysSurveyIntentsIntentNode["IntentId"].asString();
|
||||||
surveysObject.intents.push_back(intentsObject);
|
surveysObject.intents.push_back(intentsObject);
|
||||||
}
|
}
|
||||||
scenariosObject.surveys.push_back(surveysObject);
|
scenariosObject.surveys.push_back(surveysObject);
|
||||||
}
|
}
|
||||||
auto allVariablesNode = allScenariosNode["Variables"]["KeyValuePair"];
|
auto allVariablesNode = valueScenariosScenario["Variables"]["KeyValuePair"];
|
||||||
for (auto allScenariosNodeVariablesKeyValuePair : allVariablesNode)
|
for (auto valueScenariosScenarioVariablesKeyValuePair : allVariablesNode)
|
||||||
{
|
{
|
||||||
Scenario::KeyValuePair variablesObject;
|
Scenario::KeyValuePair variablesObject;
|
||||||
if(!allScenariosNodeVariablesKeyValuePair["Key"].isNull())
|
if(!valueScenariosScenarioVariablesKeyValuePair["Key"].isNull())
|
||||||
variablesObject.key = allScenariosNodeVariablesKeyValuePair["Key"].asString();
|
variablesObject.key = valueScenariosScenarioVariablesKeyValuePair["Key"].asString();
|
||||||
if(!allScenariosNodeVariablesKeyValuePair["Value"].isNull())
|
if(!valueScenariosScenarioVariablesKeyValuePair["Value"].isNull())
|
||||||
variablesObject.value = allScenariosNodeVariablesKeyValuePair["Value"].asString();
|
variablesObject.value = valueScenariosScenarioVariablesKeyValuePair["Value"].asString();
|
||||||
scenariosObject.variables.push_back(variablesObject);
|
scenariosObject.variables.push_back(variablesObject);
|
||||||
}
|
}
|
||||||
auto strategyNode = value["Strategy"];
|
auto strategyNode = value["Strategy"];
|
||||||
|
|||||||
@@ -52,18 +52,18 @@ void ListSkillGroupSummaryReportsByIntervalResult::parse(const std::string &payl
|
|||||||
PagedSkillGroupSummaryReport::SkillGroupTimeIntervalReport skillGroupTimeIntervalReportObject;
|
PagedSkillGroupSummaryReport::SkillGroupTimeIntervalReport skillGroupTimeIntervalReportObject;
|
||||||
if(!pagedSkillGroupSummaryReportNodeListSkillGroupTimeIntervalReport["SkillGroupId"].isNull())
|
if(!pagedSkillGroupSummaryReportNodeListSkillGroupTimeIntervalReport["SkillGroupId"].isNull())
|
||||||
skillGroupTimeIntervalReportObject.skillGroupId = pagedSkillGroupSummaryReportNodeListSkillGroupTimeIntervalReport["SkillGroupId"].asString();
|
skillGroupTimeIntervalReportObject.skillGroupId = pagedSkillGroupSummaryReportNodeListSkillGroupTimeIntervalReport["SkillGroupId"].asString();
|
||||||
auto allIntervalListNode = allListNode["IntervalList"]["SkillGroupSummaryReport"];
|
auto allIntervalListNode = pagedSkillGroupSummaryReportNodeListSkillGroupTimeIntervalReport["IntervalList"]["SkillGroupSummaryReport"];
|
||||||
for (auto allListNodeIntervalListSkillGroupSummaryReport : allIntervalListNode)
|
for (auto pagedSkillGroupSummaryReportNodeListSkillGroupTimeIntervalReportIntervalListSkillGroupSummaryReport : allIntervalListNode)
|
||||||
{
|
{
|
||||||
PagedSkillGroupSummaryReport::SkillGroupTimeIntervalReport::SkillGroupSummaryReport intervalListObject;
|
PagedSkillGroupSummaryReport::SkillGroupTimeIntervalReport::SkillGroupSummaryReport intervalListObject;
|
||||||
if(!allListNodeIntervalListSkillGroupSummaryReport["Timestamp"].isNull())
|
if(!pagedSkillGroupSummaryReportNodeListSkillGroupTimeIntervalReportIntervalListSkillGroupSummaryReport["Timestamp"].isNull())
|
||||||
intervalListObject.timestamp = allListNodeIntervalListSkillGroupSummaryReport["Timestamp"].asString();
|
intervalListObject.timestamp = pagedSkillGroupSummaryReportNodeListSkillGroupTimeIntervalReportIntervalListSkillGroupSummaryReport["Timestamp"].asString();
|
||||||
if(!allListNodeIntervalListSkillGroupSummaryReport["InstanceId"].isNull())
|
if(!pagedSkillGroupSummaryReportNodeListSkillGroupTimeIntervalReportIntervalListSkillGroupSummaryReport["InstanceId"].isNull())
|
||||||
intervalListObject.instanceId = allListNodeIntervalListSkillGroupSummaryReport["InstanceId"].asString();
|
intervalListObject.instanceId = pagedSkillGroupSummaryReportNodeListSkillGroupTimeIntervalReportIntervalListSkillGroupSummaryReport["InstanceId"].asString();
|
||||||
if(!allListNodeIntervalListSkillGroupSummaryReport["SkillGroupId"].isNull())
|
if(!pagedSkillGroupSummaryReportNodeListSkillGroupTimeIntervalReportIntervalListSkillGroupSummaryReport["SkillGroupId"].isNull())
|
||||||
intervalListObject.skillGroupId = allListNodeIntervalListSkillGroupSummaryReport["SkillGroupId"].asString();
|
intervalListObject.skillGroupId = pagedSkillGroupSummaryReportNodeListSkillGroupTimeIntervalReportIntervalListSkillGroupSummaryReport["SkillGroupId"].asString();
|
||||||
if(!allListNodeIntervalListSkillGroupSummaryReport["SkillGroupName"].isNull())
|
if(!pagedSkillGroupSummaryReportNodeListSkillGroupTimeIntervalReportIntervalListSkillGroupSummaryReport["SkillGroupName"].isNull())
|
||||||
intervalListObject.skillGroupName = allListNodeIntervalListSkillGroupSummaryReport["SkillGroupName"].asString();
|
intervalListObject.skillGroupName = pagedSkillGroupSummaryReportNodeListSkillGroupTimeIntervalReportIntervalListSkillGroupSummaryReport["SkillGroupName"].asString();
|
||||||
auto overallNode = value["Overall"];
|
auto overallNode = value["Overall"];
|
||||||
if(!overallNode["TotalCalls"].isNull())
|
if(!overallNode["TotalCalls"].isNull())
|
||||||
intervalListObject.overall.totalCalls = std::stol(overallNode["TotalCalls"].asString());
|
intervalListObject.overall.totalCalls = std::stol(overallNode["TotalCalls"].asString());
|
||||||
|
|||||||
@@ -59,28 +59,28 @@ void ListSkillGroupsResult::parse(const std::string &payload)
|
|||||||
skillGroupsObject.routingStrategy = valueSkillGroupsSkillGroup["RoutingStrategy"].asString();
|
skillGroupsObject.routingStrategy = valueSkillGroupsSkillGroup["RoutingStrategy"].asString();
|
||||||
if(!valueSkillGroupsSkillGroup["UserCount"].isNull())
|
if(!valueSkillGroupsSkillGroup["UserCount"].isNull())
|
||||||
skillGroupsObject.userCount = std::stoi(valueSkillGroupsSkillGroup["UserCount"].asString());
|
skillGroupsObject.userCount = std::stoi(valueSkillGroupsSkillGroup["UserCount"].asString());
|
||||||
auto allOutboundPhoneNumbersNode = allSkillGroupsNode["OutboundPhoneNumbers"]["PhoneNumber"];
|
auto allOutboundPhoneNumbersNode = valueSkillGroupsSkillGroup["OutboundPhoneNumbers"]["PhoneNumber"];
|
||||||
for (auto allSkillGroupsNodeOutboundPhoneNumbersPhoneNumber : allOutboundPhoneNumbersNode)
|
for (auto valueSkillGroupsSkillGroupOutboundPhoneNumbersPhoneNumber : allOutboundPhoneNumbersNode)
|
||||||
{
|
{
|
||||||
SkillGroup::PhoneNumber outboundPhoneNumbersObject;
|
SkillGroup::PhoneNumber outboundPhoneNumbersObject;
|
||||||
if(!allSkillGroupsNodeOutboundPhoneNumbersPhoneNumber["PhoneNumberId"].isNull())
|
if(!valueSkillGroupsSkillGroupOutboundPhoneNumbersPhoneNumber["PhoneNumberId"].isNull())
|
||||||
outboundPhoneNumbersObject.phoneNumberId = allSkillGroupsNodeOutboundPhoneNumbersPhoneNumber["PhoneNumberId"].asString();
|
outboundPhoneNumbersObject.phoneNumberId = valueSkillGroupsSkillGroupOutboundPhoneNumbersPhoneNumber["PhoneNumberId"].asString();
|
||||||
if(!allSkillGroupsNodeOutboundPhoneNumbersPhoneNumber["InstanceId"].isNull())
|
if(!valueSkillGroupsSkillGroupOutboundPhoneNumbersPhoneNumber["InstanceId"].isNull())
|
||||||
outboundPhoneNumbersObject.instanceId = allSkillGroupsNodeOutboundPhoneNumbersPhoneNumber["InstanceId"].asString();
|
outboundPhoneNumbersObject.instanceId = valueSkillGroupsSkillGroupOutboundPhoneNumbersPhoneNumber["InstanceId"].asString();
|
||||||
if(!allSkillGroupsNodeOutboundPhoneNumbersPhoneNumber["Number"].isNull())
|
if(!valueSkillGroupsSkillGroupOutboundPhoneNumbersPhoneNumber["Number"].isNull())
|
||||||
outboundPhoneNumbersObject.number = allSkillGroupsNodeOutboundPhoneNumbersPhoneNumber["Number"].asString();
|
outboundPhoneNumbersObject.number = valueSkillGroupsSkillGroupOutboundPhoneNumbersPhoneNumber["Number"].asString();
|
||||||
if(!allSkillGroupsNodeOutboundPhoneNumbersPhoneNumber["PhoneNumberDescription"].isNull())
|
if(!valueSkillGroupsSkillGroupOutboundPhoneNumbersPhoneNumber["PhoneNumberDescription"].isNull())
|
||||||
outboundPhoneNumbersObject.phoneNumberDescription = allSkillGroupsNodeOutboundPhoneNumbersPhoneNumber["PhoneNumberDescription"].asString();
|
outboundPhoneNumbersObject.phoneNumberDescription = valueSkillGroupsSkillGroupOutboundPhoneNumbersPhoneNumber["PhoneNumberDescription"].asString();
|
||||||
if(!allSkillGroupsNodeOutboundPhoneNumbersPhoneNumber["TestOnly"].isNull())
|
if(!valueSkillGroupsSkillGroupOutboundPhoneNumbersPhoneNumber["TestOnly"].isNull())
|
||||||
outboundPhoneNumbersObject.testOnly = allSkillGroupsNodeOutboundPhoneNumbersPhoneNumber["TestOnly"].asString() == "true";
|
outboundPhoneNumbersObject.testOnly = valueSkillGroupsSkillGroupOutboundPhoneNumbersPhoneNumber["TestOnly"].asString() == "true";
|
||||||
if(!allSkillGroupsNodeOutboundPhoneNumbersPhoneNumber["RemainingTime"].isNull())
|
if(!valueSkillGroupsSkillGroupOutboundPhoneNumbersPhoneNumber["RemainingTime"].isNull())
|
||||||
outboundPhoneNumbersObject.remainingTime = std::stoi(allSkillGroupsNodeOutboundPhoneNumbersPhoneNumber["RemainingTime"].asString());
|
outboundPhoneNumbersObject.remainingTime = std::stoi(valueSkillGroupsSkillGroupOutboundPhoneNumbersPhoneNumber["RemainingTime"].asString());
|
||||||
if(!allSkillGroupsNodeOutboundPhoneNumbersPhoneNumber["AllowOutbound"].isNull())
|
if(!valueSkillGroupsSkillGroupOutboundPhoneNumbersPhoneNumber["AllowOutbound"].isNull())
|
||||||
outboundPhoneNumbersObject.allowOutbound = allSkillGroupsNodeOutboundPhoneNumbersPhoneNumber["AllowOutbound"].asString() == "true";
|
outboundPhoneNumbersObject.allowOutbound = valueSkillGroupsSkillGroupOutboundPhoneNumbersPhoneNumber["AllowOutbound"].asString() == "true";
|
||||||
if(!allSkillGroupsNodeOutboundPhoneNumbersPhoneNumber["Usage"].isNull())
|
if(!valueSkillGroupsSkillGroupOutboundPhoneNumbersPhoneNumber["Usage"].isNull())
|
||||||
outboundPhoneNumbersObject.usage = allSkillGroupsNodeOutboundPhoneNumbersPhoneNumber["Usage"].asString();
|
outboundPhoneNumbersObject.usage = valueSkillGroupsSkillGroupOutboundPhoneNumbersPhoneNumber["Usage"].asString();
|
||||||
if(!allSkillGroupsNodeOutboundPhoneNumbersPhoneNumber["Trunks"].isNull())
|
if(!valueSkillGroupsSkillGroupOutboundPhoneNumbersPhoneNumber["Trunks"].isNull())
|
||||||
outboundPhoneNumbersObject.trunks = std::stoi(allSkillGroupsNodeOutboundPhoneNumbersPhoneNumber["Trunks"].asString());
|
outboundPhoneNumbersObject.trunks = std::stoi(valueSkillGroupsSkillGroupOutboundPhoneNumbersPhoneNumber["Trunks"].asString());
|
||||||
skillGroupsObject.outboundPhoneNumbers.push_back(outboundPhoneNumbersObject);
|
skillGroupsObject.outboundPhoneNumbers.push_back(outboundPhoneNumbersObject);
|
||||||
}
|
}
|
||||||
skillGroups_.push_back(skillGroupsObject);
|
skillGroups_.push_back(skillGroupsObject);
|
||||||
|
|||||||
@@ -14,38 +14,38 @@
|
|||||||
* limitations under the License.
|
* limitations under the License.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <alibabacloud/outboundbot/model/DownloadUnreachableContactsRequest.h>
|
#include <alibabacloud/ccc/model/ListTransferableSkillGroupsRequest.h>
|
||||||
|
|
||||||
using AlibabaCloud::OutboundBot::Model::DownloadUnreachableContactsRequest;
|
using AlibabaCloud::CCC::Model::ListTransferableSkillGroupsRequest;
|
||||||
|
|
||||||
DownloadUnreachableContactsRequest::DownloadUnreachableContactsRequest() :
|
ListTransferableSkillGroupsRequest::ListTransferableSkillGroupsRequest() :
|
||||||
RpcServiceRequest("outboundbot", "2019-12-26", "DownloadUnreachableContacts")
|
RpcServiceRequest("ccc", "2017-07-05", "ListTransferableSkillGroups")
|
||||||
{
|
{
|
||||||
setMethod(HttpRequest::Method::Post);
|
setMethod(HttpRequest::Method::Post);
|
||||||
}
|
}
|
||||||
|
|
||||||
DownloadUnreachableContactsRequest::~DownloadUnreachableContactsRequest()
|
ListTransferableSkillGroupsRequest::~ListTransferableSkillGroupsRequest()
|
||||||
{}
|
{}
|
||||||
|
|
||||||
std::string DownloadUnreachableContactsRequest::getInstanceId()const
|
std::string ListTransferableSkillGroupsRequest::getInstanceId()const
|
||||||
{
|
{
|
||||||
return instanceId_;
|
return instanceId_;
|
||||||
}
|
}
|
||||||
|
|
||||||
void DownloadUnreachableContactsRequest::setInstanceId(const std::string& instanceId)
|
void ListTransferableSkillGroupsRequest::setInstanceId(const std::string& instanceId)
|
||||||
{
|
{
|
||||||
instanceId_ = instanceId;
|
instanceId_ = instanceId;
|
||||||
setParameter("InstanceId", instanceId);
|
setParameter("InstanceId", instanceId);
|
||||||
}
|
}
|
||||||
|
|
||||||
std::string DownloadUnreachableContactsRequest::getJobGroupId()const
|
std::string ListTransferableSkillGroupsRequest::getAccessKeyId()const
|
||||||
{
|
{
|
||||||
return jobGroupId_;
|
return accessKeyId_;
|
||||||
}
|
}
|
||||||
|
|
||||||
void DownloadUnreachableContactsRequest::setJobGroupId(const std::string& jobGroupId)
|
void ListTransferableSkillGroupsRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||||
{
|
{
|
||||||
jobGroupId_ = jobGroupId;
|
accessKeyId_ = accessKeyId;
|
||||||
setParameter("JobGroupId", jobGroupId);
|
setParameter("AccessKeyId", accessKeyId);
|
||||||
}
|
}
|
||||||
|
|
||||||
101
ccc/src/model/ListTransferableSkillGroupsResult.cc
Normal file
101
ccc/src/model/ListTransferableSkillGroupsResult.cc
Normal file
@@ -0,0 +1,101 @@
|
|||||||
|
/*
|
||||||
|
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||||
|
*
|
||||||
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
|
* you may not use this file except in compliance with the License.
|
||||||
|
* You may obtain a copy of the License at
|
||||||
|
*
|
||||||
|
* http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
*
|
||||||
|
* Unless required by applicable law or agreed to in writing, software
|
||||||
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
|
* See the License for the specific language governing permissions and
|
||||||
|
* limitations under the License.
|
||||||
|
*/
|
||||||
|
|
||||||
|
#include <alibabacloud/ccc/model/ListTransferableSkillGroupsResult.h>
|
||||||
|
#include <json/json.h>
|
||||||
|
|
||||||
|
using namespace AlibabaCloud::CCC;
|
||||||
|
using namespace AlibabaCloud::CCC::Model;
|
||||||
|
|
||||||
|
ListTransferableSkillGroupsResult::ListTransferableSkillGroupsResult() :
|
||||||
|
ServiceResult()
|
||||||
|
{}
|
||||||
|
|
||||||
|
ListTransferableSkillGroupsResult::ListTransferableSkillGroupsResult(const std::string &payload) :
|
||||||
|
ServiceResult()
|
||||||
|
{
|
||||||
|
parse(payload);
|
||||||
|
}
|
||||||
|
|
||||||
|
ListTransferableSkillGroupsResult::~ListTransferableSkillGroupsResult()
|
||||||
|
{}
|
||||||
|
|
||||||
|
void ListTransferableSkillGroupsResult::parse(const std::string &payload)
|
||||||
|
{
|
||||||
|
Json::Reader reader;
|
||||||
|
Json::Value value;
|
||||||
|
reader.parse(payload, value);
|
||||||
|
setRequestId(value["RequestId"].asString());
|
||||||
|
auto allSkillGroupsNode = value["SkillGroups"]["SkillGroup"];
|
||||||
|
for (auto valueSkillGroupsSkillGroup : allSkillGroupsNode)
|
||||||
|
{
|
||||||
|
SkillGroup skillGroupsObject;
|
||||||
|
if(!valueSkillGroupsSkillGroup["SkillGroupId"].isNull())
|
||||||
|
skillGroupsObject.skillGroupId = valueSkillGroupsSkillGroup["SkillGroupId"].asString();
|
||||||
|
if(!valueSkillGroupsSkillGroup["InstanceId"].isNull())
|
||||||
|
skillGroupsObject.instanceId = valueSkillGroupsSkillGroup["InstanceId"].asString();
|
||||||
|
if(!valueSkillGroupsSkillGroup["SkillGroupName"].isNull())
|
||||||
|
skillGroupsObject.skillGroupName = valueSkillGroupsSkillGroup["SkillGroupName"].asString();
|
||||||
|
if(!valueSkillGroupsSkillGroup["AccSkillGroupName"].isNull())
|
||||||
|
skillGroupsObject.accSkillGroupName = valueSkillGroupsSkillGroup["AccSkillGroupName"].asString();
|
||||||
|
if(!valueSkillGroupsSkillGroup["AccQueueName"].isNull())
|
||||||
|
skillGroupsObject.accQueueName = valueSkillGroupsSkillGroup["AccQueueName"].asString();
|
||||||
|
if(!valueSkillGroupsSkillGroup["SkillGroupDescription"].isNull())
|
||||||
|
skillGroupsObject.skillGroupDescription = valueSkillGroupsSkillGroup["SkillGroupDescription"].asString();
|
||||||
|
if(!valueSkillGroupsSkillGroup["RoutingStrategy"].isNull())
|
||||||
|
skillGroupsObject.routingStrategy = valueSkillGroupsSkillGroup["RoutingStrategy"].asString();
|
||||||
|
if(!valueSkillGroupsSkillGroup["AllowPrivateOutboundNumber"].isNull())
|
||||||
|
skillGroupsObject.allowPrivateOutboundNumber = valueSkillGroupsSkillGroup["AllowPrivateOutboundNumber"].asString() == "true";
|
||||||
|
if(!valueSkillGroupsSkillGroup["UserCount"].isNull())
|
||||||
|
skillGroupsObject.userCount = std::stoi(valueSkillGroupsSkillGroup["UserCount"].asString());
|
||||||
|
skillGroups_.push_back(skillGroupsObject);
|
||||||
|
}
|
||||||
|
if(!value["Success"].isNull())
|
||||||
|
success_ = value["Success"].asString() == "true";
|
||||||
|
if(!value["Code"].isNull())
|
||||||
|
code_ = value["Code"].asString();
|
||||||
|
if(!value["Message"].isNull())
|
||||||
|
message_ = value["Message"].asString();
|
||||||
|
if(!value["HttpStatusCode"].isNull())
|
||||||
|
httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString());
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
std::string ListTransferableSkillGroupsResult::getMessage()const
|
||||||
|
{
|
||||||
|
return message_;
|
||||||
|
}
|
||||||
|
|
||||||
|
int ListTransferableSkillGroupsResult::getHttpStatusCode()const
|
||||||
|
{
|
||||||
|
return httpStatusCode_;
|
||||||
|
}
|
||||||
|
|
||||||
|
std::vector<ListTransferableSkillGroupsResult::SkillGroup> ListTransferableSkillGroupsResult::getSkillGroups()const
|
||||||
|
{
|
||||||
|
return skillGroups_;
|
||||||
|
}
|
||||||
|
|
||||||
|
std::string ListTransferableSkillGroupsResult::getCode()const
|
||||||
|
{
|
||||||
|
return code_;
|
||||||
|
}
|
||||||
|
|
||||||
|
bool ListTransferableSkillGroupsResult::getSuccess()const
|
||||||
|
{
|
||||||
|
return success_;
|
||||||
|
}
|
||||||
|
|
||||||
@@ -14,27 +14,27 @@
|
|||||||
* limitations under the License.
|
* limitations under the License.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <alibabacloud/openanalytics-open/model/DeleteUserNetConfigRequest.h>
|
#include <alibabacloud/ccc/model/ListTrunkProvidersRequest.h>
|
||||||
|
|
||||||
using AlibabaCloud::Openanalytics_open::Model::DeleteUserNetConfigRequest;
|
using AlibabaCloud::CCC::Model::ListTrunkProvidersRequest;
|
||||||
|
|
||||||
DeleteUserNetConfigRequest::DeleteUserNetConfigRequest() :
|
ListTrunkProvidersRequest::ListTrunkProvidersRequest() :
|
||||||
RpcServiceRequest("openanalytics-open", "2018-06-19", "DeleteUserNetConfig")
|
RpcServiceRequest("ccc", "2017-07-05", "ListTrunkProviders")
|
||||||
{
|
{
|
||||||
setMethod(HttpRequest::Method::Post);
|
setMethod(HttpRequest::Method::Post);
|
||||||
}
|
}
|
||||||
|
|
||||||
DeleteUserNetConfigRequest::~DeleteUserNetConfigRequest()
|
ListTrunkProvidersRequest::~ListTrunkProvidersRequest()
|
||||||
{}
|
{}
|
||||||
|
|
||||||
std::string DeleteUserNetConfigRequest::getName()const
|
std::string ListTrunkProvidersRequest::getAccessKeyId()const
|
||||||
{
|
{
|
||||||
return name_;
|
return accessKeyId_;
|
||||||
}
|
}
|
||||||
|
|
||||||
void DeleteUserNetConfigRequest::setName(const std::string& name)
|
void ListTrunkProvidersRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||||
{
|
{
|
||||||
name_ = name;
|
accessKeyId_ = accessKeyId;
|
||||||
setBodyParameter("Name", name);
|
setParameter("AccessKeyId", accessKeyId);
|
||||||
}
|
}
|
||||||
|
|
||||||
87
ccc/src/model/ListTrunkProvidersResult.cc
Normal file
87
ccc/src/model/ListTrunkProvidersResult.cc
Normal file
@@ -0,0 +1,87 @@
|
|||||||
|
/*
|
||||||
|
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||||
|
*
|
||||||
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
|
* you may not use this file except in compliance with the License.
|
||||||
|
* You may obtain a copy of the License at
|
||||||
|
*
|
||||||
|
* http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
*
|
||||||
|
* Unless required by applicable law or agreed to in writing, software
|
||||||
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
|
* WITHOUT 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/ccc/model/ListTrunkProvidersResult.h>
|
||||||
|
#include <json/json.h>
|
||||||
|
|
||||||
|
using namespace AlibabaCloud::CCC;
|
||||||
|
using namespace AlibabaCloud::CCC::Model;
|
||||||
|
|
||||||
|
ListTrunkProvidersResult::ListTrunkProvidersResult() :
|
||||||
|
ServiceResult()
|
||||||
|
{}
|
||||||
|
|
||||||
|
ListTrunkProvidersResult::ListTrunkProvidersResult(const std::string &payload) :
|
||||||
|
ServiceResult()
|
||||||
|
{
|
||||||
|
parse(payload);
|
||||||
|
}
|
||||||
|
|
||||||
|
ListTrunkProvidersResult::~ListTrunkProvidersResult()
|
||||||
|
{}
|
||||||
|
|
||||||
|
void ListTrunkProvidersResult::parse(const std::string &payload)
|
||||||
|
{
|
||||||
|
Json::Reader reader;
|
||||||
|
Json::Value value;
|
||||||
|
reader.parse(payload, value);
|
||||||
|
setRequestId(value["RequestId"].asString());
|
||||||
|
auto allTrunkProvidersNode = value["TrunkProviders"]["TrunkProvider"];
|
||||||
|
for (auto valueTrunkProvidersTrunkProvider : allTrunkProvidersNode)
|
||||||
|
{
|
||||||
|
TrunkProvider trunkProvidersObject;
|
||||||
|
if(!valueTrunkProvidersTrunkProvider["ProviderName"].isNull())
|
||||||
|
trunkProvidersObject.providerName = valueTrunkProvidersTrunkProvider["ProviderName"].asString();
|
||||||
|
if(!valueTrunkProvidersTrunkProvider["Status"].isNull())
|
||||||
|
trunkProvidersObject.status = valueTrunkProvidersTrunkProvider["Status"].asString();
|
||||||
|
trunkProviders_.push_back(trunkProvidersObject);
|
||||||
|
}
|
||||||
|
if(!value["Success"].isNull())
|
||||||
|
success_ = value["Success"].asString() == "true";
|
||||||
|
if(!value["Code"].isNull())
|
||||||
|
code_ = value["Code"].asString();
|
||||||
|
if(!value["Message"].isNull())
|
||||||
|
message_ = value["Message"].asString();
|
||||||
|
if(!value["HttpStatusCode"].isNull())
|
||||||
|
httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString());
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
std::string ListTrunkProvidersResult::getMessage()const
|
||||||
|
{
|
||||||
|
return message_;
|
||||||
|
}
|
||||||
|
|
||||||
|
int ListTrunkProvidersResult::getHttpStatusCode()const
|
||||||
|
{
|
||||||
|
return httpStatusCode_;
|
||||||
|
}
|
||||||
|
|
||||||
|
std::vector<ListTrunkProvidersResult::TrunkProvider> ListTrunkProvidersResult::getTrunkProviders()const
|
||||||
|
{
|
||||||
|
return trunkProviders_;
|
||||||
|
}
|
||||||
|
|
||||||
|
std::string ListTrunkProvidersResult::getCode()const
|
||||||
|
{
|
||||||
|
return code_;
|
||||||
|
}
|
||||||
|
|
||||||
|
bool ListTrunkProvidersResult::getSuccess()const
|
||||||
|
{
|
||||||
|
return success_;
|
||||||
|
}
|
||||||
|
|
||||||
62
ccc/src/model/ListTrunksOfSkillGroupRequest.cc
Normal file
62
ccc/src/model/ListTrunksOfSkillGroupRequest.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/ccc/model/ListTrunksOfSkillGroupRequest.h>
|
||||||
|
|
||||||
|
using AlibabaCloud::CCC::Model::ListTrunksOfSkillGroupRequest;
|
||||||
|
|
||||||
|
ListTrunksOfSkillGroupRequest::ListTrunksOfSkillGroupRequest() :
|
||||||
|
RpcServiceRequest("ccc", "2017-07-05", "ListTrunksOfSkillGroup")
|
||||||
|
{
|
||||||
|
setMethod(HttpRequest::Method::Post);
|
||||||
|
}
|
||||||
|
|
||||||
|
ListTrunksOfSkillGroupRequest::~ListTrunksOfSkillGroupRequest()
|
||||||
|
{}
|
||||||
|
|
||||||
|
std::string ListTrunksOfSkillGroupRequest::getInstanceId()const
|
||||||
|
{
|
||||||
|
return instanceId_;
|
||||||
|
}
|
||||||
|
|
||||||
|
void ListTrunksOfSkillGroupRequest::setInstanceId(const std::string& instanceId)
|
||||||
|
{
|
||||||
|
instanceId_ = instanceId;
|
||||||
|
setParameter("InstanceId", instanceId);
|
||||||
|
}
|
||||||
|
|
||||||
|
std::string ListTrunksOfSkillGroupRequest::getSkillGroupId()const
|
||||||
|
{
|
||||||
|
return skillGroupId_;
|
||||||
|
}
|
||||||
|
|
||||||
|
void ListTrunksOfSkillGroupRequest::setSkillGroupId(const std::string& skillGroupId)
|
||||||
|
{
|
||||||
|
skillGroupId_ = skillGroupId;
|
||||||
|
setParameter("SkillGroupId", skillGroupId);
|
||||||
|
}
|
||||||
|
|
||||||
|
std::string ListTrunksOfSkillGroupRequest::getAccessKeyId()const
|
||||||
|
{
|
||||||
|
return accessKeyId_;
|
||||||
|
}
|
||||||
|
|
||||||
|
void ListTrunksOfSkillGroupRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||||
|
{
|
||||||
|
accessKeyId_ = accessKeyId;
|
||||||
|
setParameter("AccessKeyId", accessKeyId);
|
||||||
|
}
|
||||||
|
|
||||||
87
ccc/src/model/ListTrunksOfSkillGroupResult.cc
Normal file
87
ccc/src/model/ListTrunksOfSkillGroupResult.cc
Normal file
@@ -0,0 +1,87 @@
|
|||||||
|
/*
|
||||||
|
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||||
|
*
|
||||||
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
|
* you may not use this file except in compliance with the License.
|
||||||
|
* You may obtain a copy of the License at
|
||||||
|
*
|
||||||
|
* http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
*
|
||||||
|
* Unless required by applicable law or agreed to in writing, software
|
||||||
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
|
* WITHOUT 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/ccc/model/ListTrunksOfSkillGroupResult.h>
|
||||||
|
#include <json/json.h>
|
||||||
|
|
||||||
|
using namespace AlibabaCloud::CCC;
|
||||||
|
using namespace AlibabaCloud::CCC::Model;
|
||||||
|
|
||||||
|
ListTrunksOfSkillGroupResult::ListTrunksOfSkillGroupResult() :
|
||||||
|
ServiceResult()
|
||||||
|
{}
|
||||||
|
|
||||||
|
ListTrunksOfSkillGroupResult::ListTrunksOfSkillGroupResult(const std::string &payload) :
|
||||||
|
ServiceResult()
|
||||||
|
{
|
||||||
|
parse(payload);
|
||||||
|
}
|
||||||
|
|
||||||
|
ListTrunksOfSkillGroupResult::~ListTrunksOfSkillGroupResult()
|
||||||
|
{}
|
||||||
|
|
||||||
|
void ListTrunksOfSkillGroupResult::parse(const std::string &payload)
|
||||||
|
{
|
||||||
|
Json::Reader reader;
|
||||||
|
Json::Value value;
|
||||||
|
reader.parse(payload, value);
|
||||||
|
setRequestId(value["RequestId"].asString());
|
||||||
|
auto allTrunkConfigsNode = value["TrunkConfigs"]["TrunkConfig"];
|
||||||
|
for (auto valueTrunkConfigsTrunkConfig : allTrunkConfigsNode)
|
||||||
|
{
|
||||||
|
TrunkConfig trunkConfigsObject;
|
||||||
|
if(!valueTrunkConfigsTrunkConfig["ProviderName"].isNull())
|
||||||
|
trunkConfigsObject.providerName = valueTrunkConfigsTrunkConfig["ProviderName"].asString();
|
||||||
|
if(!valueTrunkConfigsTrunkConfig["Primary"].isNull())
|
||||||
|
trunkConfigsObject.primary = valueTrunkConfigsTrunkConfig["Primary"].asString() == "true";
|
||||||
|
trunkConfigs_.push_back(trunkConfigsObject);
|
||||||
|
}
|
||||||
|
if(!value["Success"].isNull())
|
||||||
|
success_ = value["Success"].asString() == "true";
|
||||||
|
if(!value["Code"].isNull())
|
||||||
|
code_ = value["Code"].asString();
|
||||||
|
if(!value["Message"].isNull())
|
||||||
|
message_ = value["Message"].asString();
|
||||||
|
if(!value["HttpStatusCode"].isNull())
|
||||||
|
httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString());
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
std::string ListTrunksOfSkillGroupResult::getMessage()const
|
||||||
|
{
|
||||||
|
return message_;
|
||||||
|
}
|
||||||
|
|
||||||
|
int ListTrunksOfSkillGroupResult::getHttpStatusCode()const
|
||||||
|
{
|
||||||
|
return httpStatusCode_;
|
||||||
|
}
|
||||||
|
|
||||||
|
std::vector<ListTrunksOfSkillGroupResult::TrunkConfig> ListTrunksOfSkillGroupResult::getTrunkConfigs()const
|
||||||
|
{
|
||||||
|
return trunkConfigs_;
|
||||||
|
}
|
||||||
|
|
||||||
|
std::string ListTrunksOfSkillGroupResult::getCode()const
|
||||||
|
{
|
||||||
|
return code_;
|
||||||
|
}
|
||||||
|
|
||||||
|
bool ListTrunksOfSkillGroupResult::getSuccess()const
|
||||||
|
{
|
||||||
|
return success_;
|
||||||
|
}
|
||||||
|
|
||||||
@@ -52,22 +52,22 @@ void ListUnreachableContactsResult::parse(const std::string &payload)
|
|||||||
UnreachableContacts::UnreachableContact unreachableContactObject;
|
UnreachableContacts::UnreachableContact unreachableContactObject;
|
||||||
if(!unreachableContactsNodeListUnreachableContact["TotalAttempts"].isNull())
|
if(!unreachableContactsNodeListUnreachableContact["TotalAttempts"].isNull())
|
||||||
unreachableContactObject.totalAttempts = std::stoi(unreachableContactsNodeListUnreachableContact["TotalAttempts"].asString());
|
unreachableContactObject.totalAttempts = std::stoi(unreachableContactsNodeListUnreachableContact["TotalAttempts"].asString());
|
||||||
auto allContactsNode = allListNode["Contacts"]["Contact"];
|
auto allContactsNode = unreachableContactsNodeListUnreachableContact["Contacts"]["Contact"];
|
||||||
for (auto allListNodeContactsContact : allContactsNode)
|
for (auto unreachableContactsNodeListUnreachableContactContactsContact : allContactsNode)
|
||||||
{
|
{
|
||||||
UnreachableContacts::UnreachableContact::Contact contactsObject;
|
UnreachableContacts::UnreachableContact::Contact contactsObject;
|
||||||
if(!allListNodeContactsContact["ContactId"].isNull())
|
if(!unreachableContactsNodeListUnreachableContactContactsContact["ContactId"].isNull())
|
||||||
contactsObject.contactId = allListNodeContactsContact["ContactId"].asString();
|
contactsObject.contactId = unreachableContactsNodeListUnreachableContactContactsContact["ContactId"].asString();
|
||||||
if(!allListNodeContactsContact["ContactName"].isNull())
|
if(!unreachableContactsNodeListUnreachableContactContactsContact["ContactName"].isNull())
|
||||||
contactsObject.contactName = allListNodeContactsContact["ContactName"].asString();
|
contactsObject.contactName = unreachableContactsNodeListUnreachableContactContactsContact["ContactName"].asString();
|
||||||
if(!allListNodeContactsContact["Role"].isNull())
|
if(!unreachableContactsNodeListUnreachableContactContactsContact["Role"].isNull())
|
||||||
contactsObject.role = allListNodeContactsContact["Role"].asString();
|
contactsObject.role = unreachableContactsNodeListUnreachableContactContactsContact["Role"].asString();
|
||||||
if(!allListNodeContactsContact["PhoneNumber"].isNull())
|
if(!unreachableContactsNodeListUnreachableContactContactsContact["PhoneNumber"].isNull())
|
||||||
contactsObject.phoneNumber = allListNodeContactsContact["PhoneNumber"].asString();
|
contactsObject.phoneNumber = unreachableContactsNodeListUnreachableContactContactsContact["PhoneNumber"].asString();
|
||||||
if(!allListNodeContactsContact["State"].isNull())
|
if(!unreachableContactsNodeListUnreachableContactContactsContact["State"].isNull())
|
||||||
contactsObject.state = allListNodeContactsContact["State"].asString();
|
contactsObject.state = unreachableContactsNodeListUnreachableContactContactsContact["State"].asString();
|
||||||
if(!allListNodeContactsContact["ReferenceId"].isNull())
|
if(!unreachableContactsNodeListUnreachableContactContactsContact["ReferenceId"].isNull())
|
||||||
contactsObject.referenceId = allListNodeContactsContact["ReferenceId"].asString();
|
contactsObject.referenceId = unreachableContactsNodeListUnreachableContactContactsContact["ReferenceId"].asString();
|
||||||
unreachableContactObject.contacts.push_back(contactsObject);
|
unreachableContactObject.contacts.push_back(contactsObject);
|
||||||
}
|
}
|
||||||
unreachableContacts_.list.push_back(unreachableContactObject);
|
unreachableContacts_.list.push_back(unreachableContactObject);
|
||||||
|
|||||||
@@ -56,42 +56,42 @@ void ListUsersOfSkillGroupResult::parse(const std::string &payload)
|
|||||||
userObject.ramId = usersNodeListUser["RamId"].asString();
|
userObject.ramId = usersNodeListUser["RamId"].asString();
|
||||||
if(!usersNodeListUser["InstanceId"].isNull())
|
if(!usersNodeListUser["InstanceId"].isNull())
|
||||||
userObject.instanceId = usersNodeListUser["InstanceId"].asString();
|
userObject.instanceId = usersNodeListUser["InstanceId"].asString();
|
||||||
auto allRolesNode = allListNode["Roles"]["Role"];
|
auto allRolesNode = usersNodeListUser["Roles"]["Role"];
|
||||||
for (auto allListNodeRolesRole : allRolesNode)
|
for (auto usersNodeListUserRolesRole : allRolesNode)
|
||||||
{
|
{
|
||||||
Users::User::Role rolesObject;
|
Users::User::Role rolesObject;
|
||||||
if(!allListNodeRolesRole["RoleId"].isNull())
|
if(!usersNodeListUserRolesRole["RoleId"].isNull())
|
||||||
rolesObject.roleId = allListNodeRolesRole["RoleId"].asString();
|
rolesObject.roleId = usersNodeListUserRolesRole["RoleId"].asString();
|
||||||
if(!allListNodeRolesRole["InstanceId"].isNull())
|
if(!usersNodeListUserRolesRole["InstanceId"].isNull())
|
||||||
rolesObject.instanceId = allListNodeRolesRole["InstanceId"].asString();
|
rolesObject.instanceId = usersNodeListUserRolesRole["InstanceId"].asString();
|
||||||
if(!allListNodeRolesRole["RoleName"].isNull())
|
if(!usersNodeListUserRolesRole["RoleName"].isNull())
|
||||||
rolesObject.roleName = allListNodeRolesRole["RoleName"].asString();
|
rolesObject.roleName = usersNodeListUserRolesRole["RoleName"].asString();
|
||||||
if(!allListNodeRolesRole["RoleDescription"].isNull())
|
if(!usersNodeListUserRolesRole["RoleDescription"].isNull())
|
||||||
rolesObject.roleDescription = allListNodeRolesRole["RoleDescription"].asString();
|
rolesObject.roleDescription = usersNodeListUserRolesRole["RoleDescription"].asString();
|
||||||
if(!allListNodeRolesRole["UserCount"].isNull())
|
if(!usersNodeListUserRolesRole["UserCount"].isNull())
|
||||||
rolesObject.userCount = std::stoi(allListNodeRolesRole["UserCount"].asString());
|
rolesObject.userCount = std::stoi(usersNodeListUserRolesRole["UserCount"].asString());
|
||||||
auto allPrivilegesNode = allRolesNode["Privileges"]["Privilege"];
|
auto allPrivilegesNode = usersNodeListUserRolesRole["Privileges"]["Privilege"];
|
||||||
for (auto allRolesNodePrivilegesPrivilege : allPrivilegesNode)
|
for (auto usersNodeListUserRolesRolePrivilegesPrivilege : allPrivilegesNode)
|
||||||
{
|
{
|
||||||
Users::User::Role::Privilege privilegesObject;
|
Users::User::Role::Privilege privilegesObject;
|
||||||
if(!allRolesNodePrivilegesPrivilege["PrivilegeId"].isNull())
|
if(!usersNodeListUserRolesRolePrivilegesPrivilege["PrivilegeId"].isNull())
|
||||||
privilegesObject.privilegeId = allRolesNodePrivilegesPrivilege["PrivilegeId"].asString();
|
privilegesObject.privilegeId = usersNodeListUserRolesRolePrivilegesPrivilege["PrivilegeId"].asString();
|
||||||
if(!allRolesNodePrivilegesPrivilege["PrivilegeName"].isNull())
|
if(!usersNodeListUserRolesRolePrivilegesPrivilege["PrivilegeName"].isNull())
|
||||||
privilegesObject.privilegeName = allRolesNodePrivilegesPrivilege["PrivilegeName"].asString();
|
privilegesObject.privilegeName = usersNodeListUserRolesRolePrivilegesPrivilege["PrivilegeName"].asString();
|
||||||
if(!allRolesNodePrivilegesPrivilege["PrivilegeDescription"].isNull())
|
if(!usersNodeListUserRolesRolePrivilegesPrivilege["PrivilegeDescription"].isNull())
|
||||||
privilegesObject.privilegeDescription = allRolesNodePrivilegesPrivilege["PrivilegeDescription"].asString();
|
privilegesObject.privilegeDescription = usersNodeListUserRolesRolePrivilegesPrivilege["PrivilegeDescription"].asString();
|
||||||
rolesObject.privileges.push_back(privilegesObject);
|
rolesObject.privileges.push_back(privilegesObject);
|
||||||
}
|
}
|
||||||
userObject.roles.push_back(rolesObject);
|
userObject.roles.push_back(rolesObject);
|
||||||
}
|
}
|
||||||
auto allSkillLevelsNode = allListNode["SkillLevels"]["SkillLevel"];
|
auto allSkillLevelsNode = usersNodeListUser["SkillLevels"]["SkillLevel"];
|
||||||
for (auto allListNodeSkillLevelsSkillLevel : allSkillLevelsNode)
|
for (auto usersNodeListUserSkillLevelsSkillLevel : allSkillLevelsNode)
|
||||||
{
|
{
|
||||||
Users::User::SkillLevel skillLevelsObject;
|
Users::User::SkillLevel skillLevelsObject;
|
||||||
if(!allListNodeSkillLevelsSkillLevel["SkillLevelId"].isNull())
|
if(!usersNodeListUserSkillLevelsSkillLevel["SkillLevelId"].isNull())
|
||||||
skillLevelsObject.skillLevelId = allListNodeSkillLevelsSkillLevel["SkillLevelId"].asString();
|
skillLevelsObject.skillLevelId = usersNodeListUserSkillLevelsSkillLevel["SkillLevelId"].asString();
|
||||||
if(!allListNodeSkillLevelsSkillLevel["Level"].isNull())
|
if(!usersNodeListUserSkillLevelsSkillLevel["Level"].isNull())
|
||||||
skillLevelsObject.level = std::stoi(allListNodeSkillLevelsSkillLevel["Level"].asString());
|
skillLevelsObject.level = std::stoi(usersNodeListUserSkillLevelsSkillLevel["Level"].asString());
|
||||||
auto skillNode = value["Skill"];
|
auto skillNode = value["Skill"];
|
||||||
if(!skillNode["SkillGroupId"].isNull())
|
if(!skillNode["SkillGroupId"].isNull())
|
||||||
skillLevelsObject.skill.skillGroupId = skillNode["SkillGroupId"].asString();
|
skillLevelsObject.skill.skillGroupId = skillNode["SkillGroupId"].asString();
|
||||||
|
|||||||
@@ -60,28 +60,28 @@ void ListUsersResult::parse(const std::string &payload)
|
|||||||
userObject.primary = usersNodeListUser["Primary"].asString() == "true";
|
userObject.primary = usersNodeListUser["Primary"].asString() == "true";
|
||||||
if(!usersNodeListUser["PrivateOutboundNumberId"].isNull())
|
if(!usersNodeListUser["PrivateOutboundNumberId"].isNull())
|
||||||
userObject.privateOutboundNumberId = usersNodeListUser["PrivateOutboundNumberId"].asString();
|
userObject.privateOutboundNumberId = usersNodeListUser["PrivateOutboundNumberId"].asString();
|
||||||
auto allRolesNode = allListNode["Roles"]["Role"];
|
auto allRolesNode = usersNodeListUser["Roles"]["Role"];
|
||||||
for (auto allListNodeRolesRole : allRolesNode)
|
for (auto usersNodeListUserRolesRole : allRolesNode)
|
||||||
{
|
{
|
||||||
Users::User::Role rolesObject;
|
Users::User::Role rolesObject;
|
||||||
if(!allListNodeRolesRole["RoleId"].isNull())
|
if(!usersNodeListUserRolesRole["RoleId"].isNull())
|
||||||
rolesObject.roleId = allListNodeRolesRole["RoleId"].asString();
|
rolesObject.roleId = usersNodeListUserRolesRole["RoleId"].asString();
|
||||||
if(!allListNodeRolesRole["InstanceId"].isNull())
|
if(!usersNodeListUserRolesRole["InstanceId"].isNull())
|
||||||
rolesObject.instanceId = allListNodeRolesRole["InstanceId"].asString();
|
rolesObject.instanceId = usersNodeListUserRolesRole["InstanceId"].asString();
|
||||||
if(!allListNodeRolesRole["RoleName"].isNull())
|
if(!usersNodeListUserRolesRole["RoleName"].isNull())
|
||||||
rolesObject.roleName = allListNodeRolesRole["RoleName"].asString();
|
rolesObject.roleName = usersNodeListUserRolesRole["RoleName"].asString();
|
||||||
if(!allListNodeRolesRole["RoleDescription"].isNull())
|
if(!usersNodeListUserRolesRole["RoleDescription"].isNull())
|
||||||
rolesObject.roleDescription = allListNodeRolesRole["RoleDescription"].asString();
|
rolesObject.roleDescription = usersNodeListUserRolesRole["RoleDescription"].asString();
|
||||||
userObject.roles.push_back(rolesObject);
|
userObject.roles.push_back(rolesObject);
|
||||||
}
|
}
|
||||||
auto allSkillLevelsNode = allListNode["SkillLevels"]["SkillLevel"];
|
auto allSkillLevelsNode = usersNodeListUser["SkillLevels"]["SkillLevel"];
|
||||||
for (auto allListNodeSkillLevelsSkillLevel : allSkillLevelsNode)
|
for (auto usersNodeListUserSkillLevelsSkillLevel : allSkillLevelsNode)
|
||||||
{
|
{
|
||||||
Users::User::SkillLevel skillLevelsObject;
|
Users::User::SkillLevel skillLevelsObject;
|
||||||
if(!allListNodeSkillLevelsSkillLevel["SkillLevelId"].isNull())
|
if(!usersNodeListUserSkillLevelsSkillLevel["SkillLevelId"].isNull())
|
||||||
skillLevelsObject.skillLevelId = allListNodeSkillLevelsSkillLevel["SkillLevelId"].asString();
|
skillLevelsObject.skillLevelId = usersNodeListUserSkillLevelsSkillLevel["SkillLevelId"].asString();
|
||||||
if(!allListNodeSkillLevelsSkillLevel["Level"].isNull())
|
if(!usersNodeListUserSkillLevelsSkillLevel["Level"].isNull())
|
||||||
skillLevelsObject.level = std::stoi(allListNodeSkillLevelsSkillLevel["Level"].asString());
|
skillLevelsObject.level = std::stoi(usersNodeListUserSkillLevelsSkillLevel["Level"].asString());
|
||||||
auto skillNode = value["Skill"];
|
auto skillNode = value["Skill"];
|
||||||
if(!skillNode["SkillGroupId"].isNull())
|
if(!skillNode["SkillGroupId"].isNull())
|
||||||
skillLevelsObject.skill.skillGroupId = skillNode["SkillGroupId"].asString();
|
skillLevelsObject.skill.skillGroupId = skillNode["SkillGroupId"].asString();
|
||||||
|
|||||||
75
ccc/src/model/ModifyPrimaryTrunksOfSkillGroupRequest.cc
Normal file
75
ccc/src/model/ModifyPrimaryTrunksOfSkillGroupRequest.cc
Normal file
@@ -0,0 +1,75 @@
|
|||||||
|
/*
|
||||||
|
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||||
|
*
|
||||||
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
|
* you may not use this file except in compliance with the License.
|
||||||
|
* You may obtain a copy of the License at
|
||||||
|
*
|
||||||
|
* http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
*
|
||||||
|
* Unless required by applicable law or agreed to in writing, software
|
||||||
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
|
* See the License for the specific language governing permissions and
|
||||||
|
* limitations under the License.
|
||||||
|
*/
|
||||||
|
|
||||||
|
#include <alibabacloud/ccc/model/ModifyPrimaryTrunksOfSkillGroupRequest.h>
|
||||||
|
|
||||||
|
using AlibabaCloud::CCC::Model::ModifyPrimaryTrunksOfSkillGroupRequest;
|
||||||
|
|
||||||
|
ModifyPrimaryTrunksOfSkillGroupRequest::ModifyPrimaryTrunksOfSkillGroupRequest() :
|
||||||
|
RpcServiceRequest("ccc", "2017-07-05", "ModifyPrimaryTrunksOfSkillGroup")
|
||||||
|
{
|
||||||
|
setMethod(HttpRequest::Method::Post);
|
||||||
|
}
|
||||||
|
|
||||||
|
ModifyPrimaryTrunksOfSkillGroupRequest::~ModifyPrimaryTrunksOfSkillGroupRequest()
|
||||||
|
{}
|
||||||
|
|
||||||
|
std::string ModifyPrimaryTrunksOfSkillGroupRequest::getAccessKeyId()const
|
||||||
|
{
|
||||||
|
return accessKeyId_;
|
||||||
|
}
|
||||||
|
|
||||||
|
void ModifyPrimaryTrunksOfSkillGroupRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||||
|
{
|
||||||
|
accessKeyId_ = accessKeyId;
|
||||||
|
setParameter("AccessKeyId", accessKeyId);
|
||||||
|
}
|
||||||
|
|
||||||
|
std::vector<std::string> ModifyPrimaryTrunksOfSkillGroupRequest::getPrimaryProviderName()const
|
||||||
|
{
|
||||||
|
return primaryProviderName_;
|
||||||
|
}
|
||||||
|
|
||||||
|
void ModifyPrimaryTrunksOfSkillGroupRequest::setPrimaryProviderName(const std::vector<std::string>& primaryProviderName)
|
||||||
|
{
|
||||||
|
primaryProviderName_ = primaryProviderName;
|
||||||
|
for(int dep1 = 0; dep1!= primaryProviderName.size(); dep1++) {
|
||||||
|
setParameter("PrimaryProviderName."+ std::to_string(dep1), primaryProviderName.at(dep1));
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
std::string ModifyPrimaryTrunksOfSkillGroupRequest::getInstanceId()const
|
||||||
|
{
|
||||||
|
return instanceId_;
|
||||||
|
}
|
||||||
|
|
||||||
|
void ModifyPrimaryTrunksOfSkillGroupRequest::setInstanceId(const std::string& instanceId)
|
||||||
|
{
|
||||||
|
instanceId_ = instanceId;
|
||||||
|
setParameter("InstanceId", instanceId);
|
||||||
|
}
|
||||||
|
|
||||||
|
std::string ModifyPrimaryTrunksOfSkillGroupRequest::getSkillGroupId()const
|
||||||
|
{
|
||||||
|
return skillGroupId_;
|
||||||
|
}
|
||||||
|
|
||||||
|
void ModifyPrimaryTrunksOfSkillGroupRequest::setSkillGroupId(const std::string& skillGroupId)
|
||||||
|
{
|
||||||
|
skillGroupId_ = skillGroupId;
|
||||||
|
setParameter("SkillGroupId", skillGroupId);
|
||||||
|
}
|
||||||
|
|
||||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user