Compare commits
154 Commits
Actiontrai
...
EHPC-patch
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
4e8da023b8 | ||
|
|
34b35e8f02 | ||
|
|
3387ef3a68 | ||
|
|
b1f19958a7 | ||
|
|
c5062df7f5 | ||
|
|
f9b117f5a6 | ||
|
|
2a6631ce12 | ||
|
|
639137bd27 | ||
|
|
8a601bc5ae | ||
|
|
0a08e77127 | ||
|
|
46971a81db | ||
|
|
5bde791941 | ||
|
|
0793ffd5d4 | ||
|
|
92791badbf | ||
|
|
fbd8bebfed | ||
|
|
15efd0abf3 | ||
|
|
ec2fdb4ecb | ||
|
|
505b8e2062 | ||
|
|
55c2e91e9f | ||
|
|
e70f8f2d10 | ||
|
|
196b891ec3 | ||
|
|
58b398b978 | ||
|
|
13693fecae | ||
|
|
a4f63bc75f | ||
|
|
6dd27ba3df | ||
|
|
cf63bd74d6 | ||
|
|
4b1cbc0461 | ||
|
|
49feb2bedd | ||
|
|
45daf26fac | ||
|
|
a9e22f8d11 | ||
|
|
38d18cec8b | ||
|
|
041b9c9999 | ||
|
|
279ad33425 | ||
|
|
e990580a3e | ||
|
|
6da72af809 | ||
|
|
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 | ||
|
|
934e283efb | ||
|
|
c9bc61a9df | ||
|
|
e12cedf04a | ||
|
|
843a2c0be7 | ||
|
|
060788e017 | ||
|
|
49a237e426 | ||
|
|
9663b548cf | ||
|
|
c68f639be4 | ||
|
|
3c991c9ca9 | ||
|
|
8fdebda354 | ||
|
|
b176afa994 | ||
|
|
2f2b5d5ffe | ||
|
|
ddc7e6e035 | ||
|
|
f937d7b2e5 | ||
|
|
5ae199177a | ||
|
|
17a893fab4 | ||
|
|
59fadb7eb2 | ||
|
|
efdcf35422 | ||
|
|
4a101f7934 | ||
|
|
0e8ddb7c12 | ||
|
|
830db8c54b | ||
|
|
497a6c2290 | ||
|
|
133087387b | ||
|
|
df2d0d89e1 | ||
|
|
42b2b25562 | ||
|
|
c2e912302d | ||
|
|
70ddae4685 | ||
|
|
b1e826e6d7 | ||
|
|
aca0a3efa8 | ||
|
|
98c36e9bab | ||
|
|
b84d1c59fa | ||
|
|
c2dc12f92b | ||
|
|
efb0804bf2 | ||
|
|
0e778cd17c | ||
|
|
78d79a3d5b | ||
|
|
5a1415f6e3 | ||
|
|
7f24d410fd | ||
|
|
de9c7e0bd2 | ||
|
|
9d2395215f | ||
|
|
757d3d8922 | ||
|
|
a0af363375 | ||
|
|
a76d21c518 | ||
|
|
b04b7f6033 | ||
|
|
a3f2125666 | ||
|
|
2a0fc860e2 | ||
|
|
4dea5b58b8 | ||
|
|
d6ea0cf35d | ||
|
|
f66ec181b6 | ||
|
|
db4cdcbeb0 | ||
|
|
80fbf35ea7 | ||
|
|
5c14e9a77f | ||
|
|
528d90a5e0 | ||
|
|
fb8137a8d3 | ||
|
|
e54c1961cb | ||
|
|
e7b81546c4 | ||
|
|
7f711be94a | ||
|
|
b5e667c1d7 | ||
|
|
2d9dc66719 | ||
|
|
97fa00faef | ||
|
|
630656ce24 | ||
|
|
f3b00eade0 | ||
|
|
02122aa7ea | ||
|
|
67d6a5f9d4 | ||
|
|
a15a171b2d | ||
|
|
9d980b6731 | ||
|
|
d6aeb545bc | ||
|
|
6217773578 | ||
|
|
cb2d0e9b5d | ||
|
|
2ee11b248a | ||
|
|
28e491ccfd |
476
CHANGELOG
476
CHANGELOG
@@ -1,3 +1,479 @@
|
|||||||
|
2020-12-29 Version: patch
|
||||||
|
- ListNodesNoPaging return with instance type.
|
||||||
|
|
||||||
|
2020-12-28 Version: patch
|
||||||
|
- Generated 2020-05-18 for `dataworks-public`.
|
||||||
|
|
||||||
|
2020-12-28 Version: patch
|
||||||
|
- Release InterpolateVideoFrame ToneSdrVideo ConvertHdrVideo.
|
||||||
|
|
||||||
|
2020-12-28 Version: patch
|
||||||
|
- Release GenRealPersonVerificationToken GetRealPersonVerificationResult.
|
||||||
|
|
||||||
|
2020-12-28 Version: patch
|
||||||
|
- Add CommodityCode For QueryOrderAPI.
|
||||||
|
|
||||||
|
2020-12-28 Version: patch
|
||||||
|
- Add some console API operations.
|
||||||
|
|
||||||
|
2020-12-25 Version: patch
|
||||||
|
- Generated 2016-04-08 for `Emr`.
|
||||||
|
|
||||||
|
2020-12-25 Version: patch
|
||||||
|
- Supported for weboffice edit.
|
||||||
|
|
||||||
|
2020-12-24 Version: patch
|
||||||
|
- Modify ConfigureBackupPlan.
|
||||||
|
|
||||||
|
2020-12-24 Version: patch
|
||||||
|
- Update Open API.
|
||||||
|
|
||||||
|
2020-12-23 Version: patch
|
||||||
|
- CDRS First edition.
|
||||||
|
|
||||||
|
2020-12-23 Version: patch
|
||||||
|
- Add 2019 openapi.
|
||||||
|
|
||||||
|
2020-12-23 Version: patch
|
||||||
|
- Release DetectPedestrianIntrusion.
|
||||||
|
|
||||||
|
2020-12-23 Version: patch
|
||||||
|
- Create Lindorm Open api.
|
||||||
|
|
||||||
|
2020-12-23 Version: patch
|
||||||
|
- Create TSDB Open api.
|
||||||
|
|
||||||
|
2020-12-22 Version: patch
|
||||||
|
- Minor chagnes.
|
||||||
|
|
||||||
|
2020-12-22 Version: patch
|
||||||
|
- Update SegmentAnimal SegmentCommonImage.
|
||||||
|
|
||||||
|
2020-12-22 Version: patch
|
||||||
|
- Support SLB latest OpenAPIs.
|
||||||
|
|
||||||
|
2020-12-22 Version: patch
|
||||||
|
- Release InterpolateVideoFrame ToneSdrVideo ConvertHdrVideo.
|
||||||
|
|
||||||
|
2020-12-22 Version: patch
|
||||||
|
- Release InterpolateVideoFrame.
|
||||||
|
|
||||||
|
2020-12-22 Version: patch
|
||||||
|
- Release DetectRibFracture.
|
||||||
|
|
||||||
|
2020-12-22 Version: patch
|
||||||
|
- Minor chagnes.
|
||||||
|
|
||||||
|
2020-12-22 Version: patch
|
||||||
|
- Generated 2020-05-18 for `dataworks-public`.
|
||||||
|
|
||||||
|
2020-12-21 Version: patch
|
||||||
|
- Support Device of LaunchConfiguration_DataDisk.
|
||||||
|
|
||||||
|
2020-12-21 Version: patch
|
||||||
|
- Support DescribeDatabases for page query.
|
||||||
|
- Support DescribeAccounts for page query.
|
||||||
|
|
||||||
|
2020-12-18 Version: patch
|
||||||
|
- Support ListRepositories, ListOrganizations, GetUserInfo, ListRepositoryWebhook, DeleteRepositoryWebhook api.
|
||||||
|
- AddWebhook api support SecretToken.
|
||||||
|
|
||||||
|
2020-12-18 Version: patch
|
||||||
|
- Add GetAgentDownloadUrl api.
|
||||||
|
|
||||||
|
2020-12-18 Version: patch
|
||||||
|
- Release EvaluateCertificateQuality.
|
||||||
|
|
||||||
|
2020-12-18 Version: patch
|
||||||
|
- Generated 2020-05-18 for `dataworks-public`.
|
||||||
|
|
||||||
|
2020-12-17 Version: patch
|
||||||
|
- Update SegmentFood.
|
||||||
|
|
||||||
|
2020-12-17 Version: patch
|
||||||
|
- Update DeleteScdnDomain.
|
||||||
|
|
||||||
|
2020-12-17 Version: patch
|
||||||
|
- Generated 2014-05-26 for `Ecs`.
|
||||||
|
|
||||||
|
2020-12-17 Version: patch
|
||||||
|
- Update DeleteDcdnDomain.
|
||||||
|
|
||||||
|
2020-12-17 Version: patch
|
||||||
|
- Update DeleteCdnDomain.
|
||||||
|
|
||||||
|
2020-12-17 Version: patch
|
||||||
|
- Generated 2020-01-11 for `servicemesh`.
|
||||||
|
|
||||||
|
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
|
||||||
|
- Video Content analytics template introduced to this SDK.
|
||||||
|
|
||||||
|
2020-11-30 Version: patch
|
||||||
|
- Supported all language sdk.
|
||||||
|
- Fixed some bugs for polardbx.
|
||||||
|
|
||||||
|
2020-11-30 Version: patch
|
||||||
|
- Update OpenDcdnService.
|
||||||
|
|
||||||
|
2020-11-29 Version: patch
|
||||||
|
- Support CPP and Go and PHP.
|
||||||
|
|
||||||
|
2020-11-28 Version: patch
|
||||||
|
- Public.
|
||||||
|
|
||||||
|
2020-11-27 Version: patch
|
||||||
|
- Supported all language sdk.
|
||||||
|
- Fixed some bugs for polardbx.
|
||||||
|
|
||||||
|
2020-11-27 Version: patch
|
||||||
|
- Supported all language sdk.
|
||||||
|
- Fixed some bugs for polardbx.
|
||||||
|
|
||||||
|
2020-11-27 Version: patch
|
||||||
|
- Generated 2018-01-11 for `rtc`.
|
||||||
|
|
||||||
|
2020-11-27 Version: patch
|
||||||
|
- Add Certificate Manager Api.
|
||||||
|
|
||||||
|
2020-11-27 Version: patch
|
||||||
|
- Support taskList.
|
||||||
|
|
||||||
|
2020-11-26 Version: patch
|
||||||
|
- ContrastFaceVerify Support Video.
|
||||||
|
|
||||||
|
2020-11-26 Version: patch
|
||||||
|
- Generated 2020-07-06, 2017-12-04 for `Actiontrail`.
|
||||||
|
|
||||||
|
2020-11-26 Version: patch
|
||||||
|
- Generated 2020-07-06 for `Actiontrail`.
|
||||||
|
|
||||||
|
2020-11-26 Version: patch
|
||||||
|
- Add tags api, include GetRepositoryTag, ListRepositoryTags, DeleteRepositoryTag.
|
||||||
|
|
||||||
|
2020-11-25 Version: patch
|
||||||
|
- Update DescribeScdnDomainCertificateInfo.
|
||||||
|
|
||||||
|
2020-11-25 Version: patch
|
||||||
|
- Update SetVideoSeekConfig.
|
||||||
|
|
||||||
|
2020-11-25 Version: patch
|
||||||
|
- Support DescribeDBClusterVersion.
|
||||||
|
|
||||||
|
2020-11-25 Version: patch
|
||||||
|
- Add extension field for image translation.
|
||||||
|
|
||||||
|
2020-11-25 Version: patch
|
||||||
|
- Supported Primary NetworkInterface IP for API DescribeInstances.
|
||||||
|
|
||||||
|
2020-11-24 Version: patch
|
||||||
|
- Create TSDB Open api.
|
||||||
|
|
||||||
|
2020-11-24 Version: patch
|
||||||
|
- Create TSDB Open api.
|
||||||
|
|
||||||
|
2020-11-24 Version: patch
|
||||||
|
- Create lindorm Open api.
|
||||||
|
|
||||||
|
2020-11-24 Version: patch
|
||||||
|
- Create lindorm Open api.
|
||||||
|
|
||||||
|
2020-11-24 Version: patch
|
||||||
|
- Update SearchFace.
|
||||||
|
|
||||||
|
2020-11-24 Version: patch
|
||||||
|
- Generated 2020-01-01 for `ddoscoo`.
|
||||||
|
|
||||||
|
2020-11-23 Version: patch
|
||||||
|
- Supported multiple Language.
|
||||||
|
|
||||||
|
2020-11-23 Version: patch
|
||||||
|
- Add LivenessDetect API.
|
||||||
|
|
||||||
|
2020-11-22 Version: patch
|
||||||
|
- DescribeClusterConnection.
|
||||||
|
|
||||||
|
2020-11-20 Version: patch
|
||||||
|
- Support ListExecutions with filter functionality.
|
||||||
|
|
||||||
|
2020-11-20 Version: patch
|
||||||
|
- Public beta version.
|
||||||
|
- Add Api Overseas.
|
||||||
|
|
||||||
|
2020-11-20 Version: patch
|
||||||
|
- Update DetectFace.
|
||||||
|
- Update RecognizeFace.
|
||||||
|
|
||||||
|
2020-11-20 Version: patch
|
||||||
|
- Add a new interface for asynchronous image translation.
|
||||||
|
|
||||||
|
2020-11-20 Version: patch
|
||||||
|
- Generated 2019-09-10 for `waf-openapi`.
|
||||||
|
|
||||||
|
2020-11-19 Version: patch
|
||||||
|
- Update DescribeDedicatedClusterInstanceList return data.
|
||||||
|
|
||||||
|
2020-11-19 Version: patch
|
||||||
|
- Update data API.
|
||||||
|
|
||||||
|
2020-11-19 Version: patch
|
||||||
|
- Update data API.
|
||||||
|
|
||||||
|
2020-11-19 Version: patch
|
||||||
|
- Update GenerateHumanAnimeStyle.
|
||||||
|
|
||||||
|
2020-11-19 Version: patch
|
||||||
|
- Update SegmentBody.
|
||||||
|
|
||||||
|
2020-11-19 Version: patch
|
||||||
|
- Supported backend interface for ICBU.
|
||||||
|
|
||||||
|
2020-11-18 Version: patch
|
||||||
|
- DescribeInstance support coldStorageSize.
|
||||||
|
|
||||||
|
2020-11-18 Version: patch
|
||||||
|
- Update DescribeDedicatedClusterInstanceList InstanceStatus type.
|
||||||
|
|
||||||
|
2020-11-18 Version: patch
|
||||||
|
- Generated 2018-01-11 for `rtc`.
|
||||||
|
|
||||||
|
2020-11-18 Version: patch
|
||||||
|
- Supported webpage scan.
|
||||||
|
|
||||||
|
2020-11-17 Version: patch
|
||||||
|
- Support event type in timeline of resource properties.
|
||||||
|
- Support resourceOwnerId in evaluation result.
|
||||||
|
- Support resource directory in config rule scene.
|
||||||
|
- Fix terraform related bugs.
|
||||||
|
|
||||||
|
2020-11-17 Version: patch
|
||||||
|
- Support ModifyDBClusterPrimaryZone.
|
||||||
|
- Support DescribeGlobalDatabaseNetworks.
|
||||||
|
|
||||||
|
2020-11-17 Version: patch
|
||||||
|
- Supported International-26888 Sites Region Endpoints.
|
||||||
|
|
||||||
|
2020-11-17 Version: patch
|
||||||
|
- Supported International-26888 Sites Region Endpoints.
|
||||||
|
|
||||||
|
2020-11-16 Version: patch
|
||||||
|
- Nat public IP supports the ISP attribute.
|
||||||
|
|
||||||
|
2020-11-16 Version: patch
|
||||||
|
- Add a new interface for asynchronous image translation.
|
||||||
|
|
||||||
|
2020-11-16 Version: patch
|
||||||
|
- Update videoenhan.
|
||||||
|
|
||||||
|
2020-11-16 Version: patch
|
||||||
|
- Update videoseg.
|
||||||
|
|
||||||
|
2020-11-16 Version: patch
|
||||||
|
- Update videorecog.
|
||||||
|
|
||||||
|
2020-11-16 Version: patch
|
||||||
|
- Update objectdet.
|
||||||
|
|
||||||
|
2020-11-16 Version: patch
|
||||||
|
- Update imgsearch.
|
||||||
|
|
||||||
|
2020-11-16 Version: patch
|
||||||
|
- Update imagerecog.
|
||||||
|
|
||||||
|
2020-11-16 Version: patch
|
||||||
|
- Update goodstech.
|
||||||
|
|
||||||
|
2020-11-13 Version: patch
|
||||||
|
- Update Imageaudit.
|
||||||
|
|
||||||
|
2020-11-13 Version: patch
|
||||||
|
- Add DeccribeEngineVersion DescribeTasks DescribeInstanceConfig and more APIs.
|
||||||
|
|
||||||
|
2020-11-13 Version: patch
|
||||||
|
- Fix GetBranchInfo and DeleteBranch API 404 error.
|
||||||
|
- Add ListRepositoryBranches and GetGroupDetail API.
|
||||||
|
|
||||||
|
2020-11-13 Version: patch
|
||||||
|
- Release ErasePerson.
|
||||||
|
|
||||||
|
2020-11-13 Version: patch
|
||||||
|
- Release DetectCardScreenshot RecognizePoiName.
|
||||||
|
|
||||||
|
2020-11-13 Version: patch
|
||||||
|
- Release GenerateHumanAnimeStyle CountCrowd.
|
||||||
|
|
||||||
|
2020-11-13 Version: patch
|
||||||
|
- Release SegmentHDSky SegmentHDCommonImage.
|
||||||
|
|
||||||
|
2020-11-12 Version: patch
|
||||||
|
- Support drm.
|
||||||
|
|
||||||
|
2020-11-12 Version: patch
|
||||||
|
- Generated 2019-06-01 for `smc`.
|
||||||
|
|
||||||
|
2020-11-12 Version: patch
|
||||||
|
- Update new version.
|
||||||
|
|
||||||
|
2020-11-12 Version: patch
|
||||||
|
- Support DescribeDBClusterTDE.
|
||||||
|
- Support ModifyDBClusterTDE.
|
||||||
|
|
||||||
|
2020-11-12 Version: patch
|
||||||
|
- Supported Open Api.
|
||||||
|
|
||||||
|
2020-11-12 Version: patch
|
||||||
|
- Support OpenAPI.
|
||||||
|
|
||||||
2020-11-12 Version: patch
|
2020-11-12 Version: patch
|
||||||
- Update DescribeTrails Response.
|
- Update DescribeTrails Response.
|
||||||
|
|
||||||
|
|||||||
@@ -21,8 +21,12 @@ set(actiontrail_public_header
|
|||||||
include/alibabacloud/actiontrail/ActiontrailExport.h )
|
include/alibabacloud/actiontrail/ActiontrailExport.h )
|
||||||
|
|
||||||
set(actiontrail_public_header_model
|
set(actiontrail_public_header_model
|
||||||
|
include/alibabacloud/actiontrail/model/CreateDeliveryHistoryJobRequest.h
|
||||||
|
include/alibabacloud/actiontrail/model/CreateDeliveryHistoryJobResult.h
|
||||||
include/alibabacloud/actiontrail/model/CreateTrailRequest.h
|
include/alibabacloud/actiontrail/model/CreateTrailRequest.h
|
||||||
include/alibabacloud/actiontrail/model/CreateTrailResult.h
|
include/alibabacloud/actiontrail/model/CreateTrailResult.h
|
||||||
|
include/alibabacloud/actiontrail/model/DeleteDeliveryHistoryJobRequest.h
|
||||||
|
include/alibabacloud/actiontrail/model/DeleteDeliveryHistoryJobResult.h
|
||||||
include/alibabacloud/actiontrail/model/DeleteTrailRequest.h
|
include/alibabacloud/actiontrail/model/DeleteTrailRequest.h
|
||||||
include/alibabacloud/actiontrail/model/DeleteTrailResult.h
|
include/alibabacloud/actiontrail/model/DeleteTrailResult.h
|
||||||
include/alibabacloud/actiontrail/model/DescribeRegionsRequest.h
|
include/alibabacloud/actiontrail/model/DescribeRegionsRequest.h
|
||||||
@@ -31,6 +35,8 @@ set(actiontrail_public_header_model
|
|||||||
include/alibabacloud/actiontrail/model/DescribeTrailsResult.h
|
include/alibabacloud/actiontrail/model/DescribeTrailsResult.h
|
||||||
include/alibabacloud/actiontrail/model/GetTrailStatusRequest.h
|
include/alibabacloud/actiontrail/model/GetTrailStatusRequest.h
|
||||||
include/alibabacloud/actiontrail/model/GetTrailStatusResult.h
|
include/alibabacloud/actiontrail/model/GetTrailStatusResult.h
|
||||||
|
include/alibabacloud/actiontrail/model/ListDeliveryHistoryJobsRequest.h
|
||||||
|
include/alibabacloud/actiontrail/model/ListDeliveryHistoryJobsResult.h
|
||||||
include/alibabacloud/actiontrail/model/LookupEventsRequest.h
|
include/alibabacloud/actiontrail/model/LookupEventsRequest.h
|
||||||
include/alibabacloud/actiontrail/model/LookupEventsResult.h
|
include/alibabacloud/actiontrail/model/LookupEventsResult.h
|
||||||
include/alibabacloud/actiontrail/model/StartLoggingRequest.h
|
include/alibabacloud/actiontrail/model/StartLoggingRequest.h
|
||||||
@@ -42,8 +48,12 @@ set(actiontrail_public_header_model
|
|||||||
|
|
||||||
set(actiontrail_src
|
set(actiontrail_src
|
||||||
src/ActiontrailClient.cc
|
src/ActiontrailClient.cc
|
||||||
|
src/model/CreateDeliveryHistoryJobRequest.cc
|
||||||
|
src/model/CreateDeliveryHistoryJobResult.cc
|
||||||
src/model/CreateTrailRequest.cc
|
src/model/CreateTrailRequest.cc
|
||||||
src/model/CreateTrailResult.cc
|
src/model/CreateTrailResult.cc
|
||||||
|
src/model/DeleteDeliveryHistoryJobRequest.cc
|
||||||
|
src/model/DeleteDeliveryHistoryJobResult.cc
|
||||||
src/model/DeleteTrailRequest.cc
|
src/model/DeleteTrailRequest.cc
|
||||||
src/model/DeleteTrailResult.cc
|
src/model/DeleteTrailResult.cc
|
||||||
src/model/DescribeRegionsRequest.cc
|
src/model/DescribeRegionsRequest.cc
|
||||||
@@ -52,6 +62,8 @@ set(actiontrail_src
|
|||||||
src/model/DescribeTrailsResult.cc
|
src/model/DescribeTrailsResult.cc
|
||||||
src/model/GetTrailStatusRequest.cc
|
src/model/GetTrailStatusRequest.cc
|
||||||
src/model/GetTrailStatusResult.cc
|
src/model/GetTrailStatusResult.cc
|
||||||
|
src/model/ListDeliveryHistoryJobsRequest.cc
|
||||||
|
src/model/ListDeliveryHistoryJobsResult.cc
|
||||||
src/model/LookupEventsRequest.cc
|
src/model/LookupEventsRequest.cc
|
||||||
src/model/LookupEventsResult.cc
|
src/model/LookupEventsResult.cc
|
||||||
src/model/StartLoggingRequest.cc
|
src/model/StartLoggingRequest.cc
|
||||||
|
|||||||
@@ -22,8 +22,12 @@
|
|||||||
#include <alibabacloud/core/EndpointProvider.h>
|
#include <alibabacloud/core/EndpointProvider.h>
|
||||||
#include <alibabacloud/core/RpcServiceClient.h>
|
#include <alibabacloud/core/RpcServiceClient.h>
|
||||||
#include "ActiontrailExport.h"
|
#include "ActiontrailExport.h"
|
||||||
|
#include "model/CreateDeliveryHistoryJobRequest.h"
|
||||||
|
#include "model/CreateDeliveryHistoryJobResult.h"
|
||||||
#include "model/CreateTrailRequest.h"
|
#include "model/CreateTrailRequest.h"
|
||||||
#include "model/CreateTrailResult.h"
|
#include "model/CreateTrailResult.h"
|
||||||
|
#include "model/DeleteDeliveryHistoryJobRequest.h"
|
||||||
|
#include "model/DeleteDeliveryHistoryJobResult.h"
|
||||||
#include "model/DeleteTrailRequest.h"
|
#include "model/DeleteTrailRequest.h"
|
||||||
#include "model/DeleteTrailResult.h"
|
#include "model/DeleteTrailResult.h"
|
||||||
#include "model/DescribeRegionsRequest.h"
|
#include "model/DescribeRegionsRequest.h"
|
||||||
@@ -32,6 +36,8 @@
|
|||||||
#include "model/DescribeTrailsResult.h"
|
#include "model/DescribeTrailsResult.h"
|
||||||
#include "model/GetTrailStatusRequest.h"
|
#include "model/GetTrailStatusRequest.h"
|
||||||
#include "model/GetTrailStatusResult.h"
|
#include "model/GetTrailStatusResult.h"
|
||||||
|
#include "model/ListDeliveryHistoryJobsRequest.h"
|
||||||
|
#include "model/ListDeliveryHistoryJobsResult.h"
|
||||||
#include "model/LookupEventsRequest.h"
|
#include "model/LookupEventsRequest.h"
|
||||||
#include "model/LookupEventsResult.h"
|
#include "model/LookupEventsResult.h"
|
||||||
#include "model/StartLoggingRequest.h"
|
#include "model/StartLoggingRequest.h"
|
||||||
@@ -49,9 +55,15 @@ namespace AlibabaCloud
|
|||||||
class ALIBABACLOUD_ACTIONTRAIL_EXPORT ActiontrailClient : public RpcServiceClient
|
class ALIBABACLOUD_ACTIONTRAIL_EXPORT ActiontrailClient : public RpcServiceClient
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
|
typedef Outcome<Error, Model::CreateDeliveryHistoryJobResult> CreateDeliveryHistoryJobOutcome;
|
||||||
|
typedef std::future<CreateDeliveryHistoryJobOutcome> CreateDeliveryHistoryJobOutcomeCallable;
|
||||||
|
typedef std::function<void(const ActiontrailClient*, const Model::CreateDeliveryHistoryJobRequest&, const CreateDeliveryHistoryJobOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> CreateDeliveryHistoryJobAsyncHandler;
|
||||||
typedef Outcome<Error, Model::CreateTrailResult> CreateTrailOutcome;
|
typedef Outcome<Error, Model::CreateTrailResult> CreateTrailOutcome;
|
||||||
typedef std::future<CreateTrailOutcome> CreateTrailOutcomeCallable;
|
typedef std::future<CreateTrailOutcome> CreateTrailOutcomeCallable;
|
||||||
typedef std::function<void(const ActiontrailClient*, const Model::CreateTrailRequest&, const CreateTrailOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> CreateTrailAsyncHandler;
|
typedef std::function<void(const ActiontrailClient*, const Model::CreateTrailRequest&, const CreateTrailOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> CreateTrailAsyncHandler;
|
||||||
|
typedef Outcome<Error, Model::DeleteDeliveryHistoryJobResult> DeleteDeliveryHistoryJobOutcome;
|
||||||
|
typedef std::future<DeleteDeliveryHistoryJobOutcome> DeleteDeliveryHistoryJobOutcomeCallable;
|
||||||
|
typedef std::function<void(const ActiontrailClient*, const Model::DeleteDeliveryHistoryJobRequest&, const DeleteDeliveryHistoryJobOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DeleteDeliveryHistoryJobAsyncHandler;
|
||||||
typedef Outcome<Error, Model::DeleteTrailResult> DeleteTrailOutcome;
|
typedef Outcome<Error, Model::DeleteTrailResult> DeleteTrailOutcome;
|
||||||
typedef std::future<DeleteTrailOutcome> DeleteTrailOutcomeCallable;
|
typedef std::future<DeleteTrailOutcome> DeleteTrailOutcomeCallable;
|
||||||
typedef std::function<void(const ActiontrailClient*, const Model::DeleteTrailRequest&, const DeleteTrailOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DeleteTrailAsyncHandler;
|
typedef std::function<void(const ActiontrailClient*, const Model::DeleteTrailRequest&, const DeleteTrailOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DeleteTrailAsyncHandler;
|
||||||
@@ -64,6 +76,9 @@ namespace AlibabaCloud
|
|||||||
typedef Outcome<Error, Model::GetTrailStatusResult> GetTrailStatusOutcome;
|
typedef Outcome<Error, Model::GetTrailStatusResult> GetTrailStatusOutcome;
|
||||||
typedef std::future<GetTrailStatusOutcome> GetTrailStatusOutcomeCallable;
|
typedef std::future<GetTrailStatusOutcome> GetTrailStatusOutcomeCallable;
|
||||||
typedef std::function<void(const ActiontrailClient*, const Model::GetTrailStatusRequest&, const GetTrailStatusOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetTrailStatusAsyncHandler;
|
typedef std::function<void(const ActiontrailClient*, const Model::GetTrailStatusRequest&, const GetTrailStatusOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetTrailStatusAsyncHandler;
|
||||||
|
typedef Outcome<Error, Model::ListDeliveryHistoryJobsResult> ListDeliveryHistoryJobsOutcome;
|
||||||
|
typedef std::future<ListDeliveryHistoryJobsOutcome> ListDeliveryHistoryJobsOutcomeCallable;
|
||||||
|
typedef std::function<void(const ActiontrailClient*, const Model::ListDeliveryHistoryJobsRequest&, const ListDeliveryHistoryJobsOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ListDeliveryHistoryJobsAsyncHandler;
|
||||||
typedef Outcome<Error, Model::LookupEventsResult> LookupEventsOutcome;
|
typedef Outcome<Error, Model::LookupEventsResult> LookupEventsOutcome;
|
||||||
typedef std::future<LookupEventsOutcome> LookupEventsOutcomeCallable;
|
typedef std::future<LookupEventsOutcome> LookupEventsOutcomeCallable;
|
||||||
typedef std::function<void(const ActiontrailClient*, const Model::LookupEventsRequest&, const LookupEventsOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> LookupEventsAsyncHandler;
|
typedef std::function<void(const ActiontrailClient*, const Model::LookupEventsRequest&, const LookupEventsOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> LookupEventsAsyncHandler;
|
||||||
@@ -81,9 +96,15 @@ namespace AlibabaCloud
|
|||||||
ActiontrailClient(const std::shared_ptr<CredentialsProvider> &credentialsProvider, const ClientConfiguration &configuration);
|
ActiontrailClient(const std::shared_ptr<CredentialsProvider> &credentialsProvider, const ClientConfiguration &configuration);
|
||||||
ActiontrailClient(const std::string &accessKeyId, const std::string &accessKeySecret, const ClientConfiguration &configuration);
|
ActiontrailClient(const std::string &accessKeyId, const std::string &accessKeySecret, const ClientConfiguration &configuration);
|
||||||
~ActiontrailClient();
|
~ActiontrailClient();
|
||||||
|
CreateDeliveryHistoryJobOutcome createDeliveryHistoryJob(const Model::CreateDeliveryHistoryJobRequest &request)const;
|
||||||
|
void createDeliveryHistoryJobAsync(const Model::CreateDeliveryHistoryJobRequest& request, const CreateDeliveryHistoryJobAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||||
|
CreateDeliveryHistoryJobOutcomeCallable createDeliveryHistoryJobCallable(const Model::CreateDeliveryHistoryJobRequest& request) const;
|
||||||
CreateTrailOutcome createTrail(const Model::CreateTrailRequest &request)const;
|
CreateTrailOutcome createTrail(const Model::CreateTrailRequest &request)const;
|
||||||
void createTrailAsync(const Model::CreateTrailRequest& request, const CreateTrailAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
void createTrailAsync(const Model::CreateTrailRequest& request, const CreateTrailAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||||
CreateTrailOutcomeCallable createTrailCallable(const Model::CreateTrailRequest& request) const;
|
CreateTrailOutcomeCallable createTrailCallable(const Model::CreateTrailRequest& request) const;
|
||||||
|
DeleteDeliveryHistoryJobOutcome deleteDeliveryHistoryJob(const Model::DeleteDeliveryHistoryJobRequest &request)const;
|
||||||
|
void deleteDeliveryHistoryJobAsync(const Model::DeleteDeliveryHistoryJobRequest& request, const DeleteDeliveryHistoryJobAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||||
|
DeleteDeliveryHistoryJobOutcomeCallable deleteDeliveryHistoryJobCallable(const Model::DeleteDeliveryHistoryJobRequest& request) const;
|
||||||
DeleteTrailOutcome deleteTrail(const Model::DeleteTrailRequest &request)const;
|
DeleteTrailOutcome deleteTrail(const Model::DeleteTrailRequest &request)const;
|
||||||
void deleteTrailAsync(const Model::DeleteTrailRequest& request, const DeleteTrailAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
void deleteTrailAsync(const Model::DeleteTrailRequest& request, const DeleteTrailAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||||
DeleteTrailOutcomeCallable deleteTrailCallable(const Model::DeleteTrailRequest& request) const;
|
DeleteTrailOutcomeCallable deleteTrailCallable(const Model::DeleteTrailRequest& request) const;
|
||||||
@@ -96,6 +117,9 @@ namespace AlibabaCloud
|
|||||||
GetTrailStatusOutcome getTrailStatus(const Model::GetTrailStatusRequest &request)const;
|
GetTrailStatusOutcome getTrailStatus(const Model::GetTrailStatusRequest &request)const;
|
||||||
void getTrailStatusAsync(const Model::GetTrailStatusRequest& request, const GetTrailStatusAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
void getTrailStatusAsync(const Model::GetTrailStatusRequest& request, const GetTrailStatusAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||||
GetTrailStatusOutcomeCallable getTrailStatusCallable(const Model::GetTrailStatusRequest& request) const;
|
GetTrailStatusOutcomeCallable getTrailStatusCallable(const Model::GetTrailStatusRequest& request) const;
|
||||||
|
ListDeliveryHistoryJobsOutcome listDeliveryHistoryJobs(const Model::ListDeliveryHistoryJobsRequest &request)const;
|
||||||
|
void listDeliveryHistoryJobsAsync(const Model::ListDeliveryHistoryJobsRequest& request, const ListDeliveryHistoryJobsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||||
|
ListDeliveryHistoryJobsOutcomeCallable listDeliveryHistoryJobsCallable(const Model::ListDeliveryHistoryJobsRequest& request) const;
|
||||||
LookupEventsOutcome lookupEvents(const Model::LookupEventsRequest &request)const;
|
LookupEventsOutcome lookupEvents(const Model::LookupEventsRequest &request)const;
|
||||||
void lookupEventsAsync(const Model::LookupEventsRequest& request, const LookupEventsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
void lookupEventsAsync(const Model::LookupEventsRequest& request, const LookupEventsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||||
LookupEventsOutcomeCallable lookupEventsCallable(const Model::LookupEventsRequest& request) const;
|
LookupEventsOutcomeCallable lookupEventsCallable(const Model::LookupEventsRequest& request) const;
|
||||||
|
|||||||
@@ -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_ACTIONTRAIL_MODEL_CREATEDELIVERYHISTORYJOBREQUEST_H_
|
||||||
|
#define ALIBABACLOUD_ACTIONTRAIL_MODEL_CREATEDELIVERYHISTORYJOBREQUEST_H_
|
||||||
|
|
||||||
|
#include <string>
|
||||||
|
#include <vector>
|
||||||
|
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||||
|
#include <alibabacloud/actiontrail/ActiontrailExport.h>
|
||||||
|
|
||||||
|
namespace AlibabaCloud
|
||||||
|
{
|
||||||
|
namespace Actiontrail
|
||||||
|
{
|
||||||
|
namespace Model
|
||||||
|
{
|
||||||
|
class ALIBABACLOUD_ACTIONTRAIL_EXPORT CreateDeliveryHistoryJobRequest : public RpcServiceRequest
|
||||||
|
{
|
||||||
|
|
||||||
|
public:
|
||||||
|
CreateDeliveryHistoryJobRequest();
|
||||||
|
~CreateDeliveryHistoryJobRequest();
|
||||||
|
|
||||||
|
std::string getClientToken()const;
|
||||||
|
void setClientToken(const std::string& clientToken);
|
||||||
|
std::string getTrailName()const;
|
||||||
|
void setTrailName(const std::string& trailName);
|
||||||
|
|
||||||
|
private:
|
||||||
|
std::string clientToken_;
|
||||||
|
std::string trailName_;
|
||||||
|
|
||||||
|
};
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
#endif // !ALIBABACLOUD_ACTIONTRAIL_MODEL_CREATEDELIVERYHISTORYJOBREQUEST_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_ACTIONTRAIL_MODEL_CREATEDELIVERYHISTORYJOBRESULT_H_
|
||||||
|
#define ALIBABACLOUD_ACTIONTRAIL_MODEL_CREATEDELIVERYHISTORYJOBRESULT_H_
|
||||||
|
|
||||||
|
#include <string>
|
||||||
|
#include <vector>
|
||||||
|
#include <utility>
|
||||||
|
#include <alibabacloud/core/ServiceResult.h>
|
||||||
|
#include <alibabacloud/actiontrail/ActiontrailExport.h>
|
||||||
|
|
||||||
|
namespace AlibabaCloud
|
||||||
|
{
|
||||||
|
namespace Actiontrail
|
||||||
|
{
|
||||||
|
namespace Model
|
||||||
|
{
|
||||||
|
class ALIBABACLOUD_ACTIONTRAIL_EXPORT CreateDeliveryHistoryJobResult : public ServiceResult
|
||||||
|
{
|
||||||
|
public:
|
||||||
|
|
||||||
|
|
||||||
|
CreateDeliveryHistoryJobResult();
|
||||||
|
explicit CreateDeliveryHistoryJobResult(const std::string &payload);
|
||||||
|
~CreateDeliveryHistoryJobResult();
|
||||||
|
int getJobId()const;
|
||||||
|
|
||||||
|
protected:
|
||||||
|
void parse(const std::string &payload);
|
||||||
|
private:
|
||||||
|
int jobId_;
|
||||||
|
|
||||||
|
};
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
#endif // !ALIBABACLOUD_ACTIONTRAIL_MODEL_CREATEDELIVERYHISTORYJOBRESULT_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_ACTIONTRAIL_MODEL_DELETEDELIVERYHISTORYJOBREQUEST_H_
|
||||||
|
#define ALIBABACLOUD_ACTIONTRAIL_MODEL_DELETEDELIVERYHISTORYJOBREQUEST_H_
|
||||||
|
|
||||||
|
#include <string>
|
||||||
|
#include <vector>
|
||||||
|
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||||
|
#include <alibabacloud/actiontrail/ActiontrailExport.h>
|
||||||
|
|
||||||
|
namespace AlibabaCloud
|
||||||
|
{
|
||||||
|
namespace Actiontrail
|
||||||
|
{
|
||||||
|
namespace Model
|
||||||
|
{
|
||||||
|
class ALIBABACLOUD_ACTIONTRAIL_EXPORT DeleteDeliveryHistoryJobRequest : public RpcServiceRequest
|
||||||
|
{
|
||||||
|
|
||||||
|
public:
|
||||||
|
DeleteDeliveryHistoryJobRequest();
|
||||||
|
~DeleteDeliveryHistoryJobRequest();
|
||||||
|
|
||||||
|
int getJobId()const;
|
||||||
|
void setJobId(int jobId);
|
||||||
|
|
||||||
|
private:
|
||||||
|
int jobId_;
|
||||||
|
|
||||||
|
};
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
#endif // !ALIBABACLOUD_ACTIONTRAIL_MODEL_DELETEDELIVERYHISTORYJOBREQUEST_H_
|
||||||
@@ -0,0 +1,49 @@
|
|||||||
|
/*
|
||||||
|
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||||
|
*
|
||||||
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
|
* you may not use this file except in compliance with the License.
|
||||||
|
* You may obtain a copy of the License at
|
||||||
|
*
|
||||||
|
* http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
*
|
||||||
|
* Unless required by applicable law or agreed to in writing, software
|
||||||
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
|
* See the License for the specific language governing permissions and
|
||||||
|
* limitations under the License.
|
||||||
|
*/
|
||||||
|
|
||||||
|
#ifndef ALIBABACLOUD_ACTIONTRAIL_MODEL_DELETEDELIVERYHISTORYJOBRESULT_H_
|
||||||
|
#define ALIBABACLOUD_ACTIONTRAIL_MODEL_DELETEDELIVERYHISTORYJOBRESULT_H_
|
||||||
|
|
||||||
|
#include <string>
|
||||||
|
#include <vector>
|
||||||
|
#include <utility>
|
||||||
|
#include <alibabacloud/core/ServiceResult.h>
|
||||||
|
#include <alibabacloud/actiontrail/ActiontrailExport.h>
|
||||||
|
|
||||||
|
namespace AlibabaCloud
|
||||||
|
{
|
||||||
|
namespace Actiontrail
|
||||||
|
{
|
||||||
|
namespace Model
|
||||||
|
{
|
||||||
|
class ALIBABACLOUD_ACTIONTRAIL_EXPORT DeleteDeliveryHistoryJobResult : public ServiceResult
|
||||||
|
{
|
||||||
|
public:
|
||||||
|
|
||||||
|
|
||||||
|
DeleteDeliveryHistoryJobResult();
|
||||||
|
explicit DeleteDeliveryHistoryJobResult(const std::string &payload);
|
||||||
|
~DeleteDeliveryHistoryJobResult();
|
||||||
|
|
||||||
|
protected:
|
||||||
|
void parse(const std::string &payload);
|
||||||
|
private:
|
||||||
|
|
||||||
|
};
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
#endif // !ALIBABACLOUD_ACTIONTRAIL_MODEL_DELETEDELIVERYHISTORYJOBRESULT_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_ACTIONTRAIL_MODEL_LISTDELIVERYHISTORYJOBSREQUEST_H_
|
||||||
|
#define ALIBABACLOUD_ACTIONTRAIL_MODEL_LISTDELIVERYHISTORYJOBSREQUEST_H_
|
||||||
|
|
||||||
|
#include <string>
|
||||||
|
#include <vector>
|
||||||
|
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||||
|
#include <alibabacloud/actiontrail/ActiontrailExport.h>
|
||||||
|
|
||||||
|
namespace AlibabaCloud
|
||||||
|
{
|
||||||
|
namespace Actiontrail
|
||||||
|
{
|
||||||
|
namespace Model
|
||||||
|
{
|
||||||
|
class ALIBABACLOUD_ACTIONTRAIL_EXPORT ListDeliveryHistoryJobsRequest : public RpcServiceRequest
|
||||||
|
{
|
||||||
|
|
||||||
|
public:
|
||||||
|
ListDeliveryHistoryJobsRequest();
|
||||||
|
~ListDeliveryHistoryJobsRequest();
|
||||||
|
|
||||||
|
int getPageNumber()const;
|
||||||
|
void setPageNumber(int pageNumber);
|
||||||
|
int getPageSize()const;
|
||||||
|
void setPageSize(int pageSize);
|
||||||
|
|
||||||
|
private:
|
||||||
|
int pageNumber_;
|
||||||
|
int pageSize_;
|
||||||
|
|
||||||
|
};
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
#endif // !ALIBABACLOUD_ACTIONTRAIL_MODEL_LISTDELIVERYHISTORYJOBSREQUEST_H_
|
||||||
@@ -0,0 +1,68 @@
|
|||||||
|
/*
|
||||||
|
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||||
|
*
|
||||||
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
|
* you may not use this file except in compliance with the License.
|
||||||
|
* You may obtain a copy of the License at
|
||||||
|
*
|
||||||
|
* http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
*
|
||||||
|
* Unless required by applicable law or agreed to in writing, software
|
||||||
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
|
* See the License for the specific language governing permissions and
|
||||||
|
* limitations under the License.
|
||||||
|
*/
|
||||||
|
|
||||||
|
#ifndef ALIBABACLOUD_ACTIONTRAIL_MODEL_LISTDELIVERYHISTORYJOBSRESULT_H_
|
||||||
|
#define ALIBABACLOUD_ACTIONTRAIL_MODEL_LISTDELIVERYHISTORYJOBSRESULT_H_
|
||||||
|
|
||||||
|
#include <string>
|
||||||
|
#include <vector>
|
||||||
|
#include <utility>
|
||||||
|
#include <alibabacloud/core/ServiceResult.h>
|
||||||
|
#include <alibabacloud/actiontrail/ActiontrailExport.h>
|
||||||
|
|
||||||
|
namespace AlibabaCloud
|
||||||
|
{
|
||||||
|
namespace Actiontrail
|
||||||
|
{
|
||||||
|
namespace Model
|
||||||
|
{
|
||||||
|
class ALIBABACLOUD_ACTIONTRAIL_EXPORT ListDeliveryHistoryJobsResult : public ServiceResult
|
||||||
|
{
|
||||||
|
public:
|
||||||
|
struct DeliveryHistoryJob
|
||||||
|
{
|
||||||
|
int jobStatus;
|
||||||
|
std::string createdTime;
|
||||||
|
std::string endTime;
|
||||||
|
std::string homeRegion;
|
||||||
|
std::string startTime;
|
||||||
|
std::string trailName;
|
||||||
|
std::string updatedTime;
|
||||||
|
long jobId;
|
||||||
|
};
|
||||||
|
|
||||||
|
|
||||||
|
ListDeliveryHistoryJobsResult();
|
||||||
|
explicit ListDeliveryHistoryJobsResult(const std::string &payload);
|
||||||
|
~ListDeliveryHistoryJobsResult();
|
||||||
|
int getTotalCount()const;
|
||||||
|
int getPageSize()const;
|
||||||
|
int getPageNumber()const;
|
||||||
|
std::vector<DeliveryHistoryJob> getDeliveryHistoryJobs()const;
|
||||||
|
|
||||||
|
protected:
|
||||||
|
void parse(const std::string &payload);
|
||||||
|
private:
|
||||||
|
int totalCount_;
|
||||||
|
int pageSize_;
|
||||||
|
int pageNumber_;
|
||||||
|
std::vector<DeliveryHistoryJob> deliveryHistoryJobs_;
|
||||||
|
|
||||||
|
};
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
#endif // !ALIBABACLOUD_ACTIONTRAIL_MODEL_LISTDELIVERYHISTORYJOBSRESULT_H_
|
||||||
@@ -51,6 +51,42 @@ ActiontrailClient::ActiontrailClient(const std::string & accessKeyId, const std:
|
|||||||
ActiontrailClient::~ActiontrailClient()
|
ActiontrailClient::~ActiontrailClient()
|
||||||
{}
|
{}
|
||||||
|
|
||||||
|
ActiontrailClient::CreateDeliveryHistoryJobOutcome ActiontrailClient::createDeliveryHistoryJob(const CreateDeliveryHistoryJobRequest &request) const
|
||||||
|
{
|
||||||
|
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||||
|
if (!endpointOutcome.isSuccess())
|
||||||
|
return CreateDeliveryHistoryJobOutcome(endpointOutcome.error());
|
||||||
|
|
||||||
|
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||||
|
|
||||||
|
if (outcome.isSuccess())
|
||||||
|
return CreateDeliveryHistoryJobOutcome(CreateDeliveryHistoryJobResult(outcome.result()));
|
||||||
|
else
|
||||||
|
return CreateDeliveryHistoryJobOutcome(outcome.error());
|
||||||
|
}
|
||||||
|
|
||||||
|
void ActiontrailClient::createDeliveryHistoryJobAsync(const CreateDeliveryHistoryJobRequest& request, const CreateDeliveryHistoryJobAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||||
|
{
|
||||||
|
auto fn = [this, request, handler, context]()
|
||||||
|
{
|
||||||
|
handler(this, request, createDeliveryHistoryJob(request), context);
|
||||||
|
};
|
||||||
|
|
||||||
|
asyncExecute(new Runnable(fn));
|
||||||
|
}
|
||||||
|
|
||||||
|
ActiontrailClient::CreateDeliveryHistoryJobOutcomeCallable ActiontrailClient::createDeliveryHistoryJobCallable(const CreateDeliveryHistoryJobRequest &request) const
|
||||||
|
{
|
||||||
|
auto task = std::make_shared<std::packaged_task<CreateDeliveryHistoryJobOutcome()>>(
|
||||||
|
[this, request]()
|
||||||
|
{
|
||||||
|
return this->createDeliveryHistoryJob(request);
|
||||||
|
});
|
||||||
|
|
||||||
|
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||||
|
return task->get_future();
|
||||||
|
}
|
||||||
|
|
||||||
ActiontrailClient::CreateTrailOutcome ActiontrailClient::createTrail(const CreateTrailRequest &request) const
|
ActiontrailClient::CreateTrailOutcome ActiontrailClient::createTrail(const CreateTrailRequest &request) const
|
||||||
{
|
{
|
||||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||||
@@ -87,6 +123,42 @@ ActiontrailClient::CreateTrailOutcomeCallable ActiontrailClient::createTrailCall
|
|||||||
return task->get_future();
|
return task->get_future();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
ActiontrailClient::DeleteDeliveryHistoryJobOutcome ActiontrailClient::deleteDeliveryHistoryJob(const DeleteDeliveryHistoryJobRequest &request) const
|
||||||
|
{
|
||||||
|
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||||
|
if (!endpointOutcome.isSuccess())
|
||||||
|
return DeleteDeliveryHistoryJobOutcome(endpointOutcome.error());
|
||||||
|
|
||||||
|
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||||
|
|
||||||
|
if (outcome.isSuccess())
|
||||||
|
return DeleteDeliveryHistoryJobOutcome(DeleteDeliveryHistoryJobResult(outcome.result()));
|
||||||
|
else
|
||||||
|
return DeleteDeliveryHistoryJobOutcome(outcome.error());
|
||||||
|
}
|
||||||
|
|
||||||
|
void ActiontrailClient::deleteDeliveryHistoryJobAsync(const DeleteDeliveryHistoryJobRequest& request, const DeleteDeliveryHistoryJobAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||||
|
{
|
||||||
|
auto fn = [this, request, handler, context]()
|
||||||
|
{
|
||||||
|
handler(this, request, deleteDeliveryHistoryJob(request), context);
|
||||||
|
};
|
||||||
|
|
||||||
|
asyncExecute(new Runnable(fn));
|
||||||
|
}
|
||||||
|
|
||||||
|
ActiontrailClient::DeleteDeliveryHistoryJobOutcomeCallable ActiontrailClient::deleteDeliveryHistoryJobCallable(const DeleteDeliveryHistoryJobRequest &request) const
|
||||||
|
{
|
||||||
|
auto task = std::make_shared<std::packaged_task<DeleteDeliveryHistoryJobOutcome()>>(
|
||||||
|
[this, request]()
|
||||||
|
{
|
||||||
|
return this->deleteDeliveryHistoryJob(request);
|
||||||
|
});
|
||||||
|
|
||||||
|
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||||
|
return task->get_future();
|
||||||
|
}
|
||||||
|
|
||||||
ActiontrailClient::DeleteTrailOutcome ActiontrailClient::deleteTrail(const DeleteTrailRequest &request) const
|
ActiontrailClient::DeleteTrailOutcome ActiontrailClient::deleteTrail(const DeleteTrailRequest &request) const
|
||||||
{
|
{
|
||||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||||
@@ -231,6 +303,42 @@ ActiontrailClient::GetTrailStatusOutcomeCallable ActiontrailClient::getTrailStat
|
|||||||
return task->get_future();
|
return task->get_future();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
ActiontrailClient::ListDeliveryHistoryJobsOutcome ActiontrailClient::listDeliveryHistoryJobs(const ListDeliveryHistoryJobsRequest &request) const
|
||||||
|
{
|
||||||
|
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||||
|
if (!endpointOutcome.isSuccess())
|
||||||
|
return ListDeliveryHistoryJobsOutcome(endpointOutcome.error());
|
||||||
|
|
||||||
|
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||||
|
|
||||||
|
if (outcome.isSuccess())
|
||||||
|
return ListDeliveryHistoryJobsOutcome(ListDeliveryHistoryJobsResult(outcome.result()));
|
||||||
|
else
|
||||||
|
return ListDeliveryHistoryJobsOutcome(outcome.error());
|
||||||
|
}
|
||||||
|
|
||||||
|
void ActiontrailClient::listDeliveryHistoryJobsAsync(const ListDeliveryHistoryJobsRequest& request, const ListDeliveryHistoryJobsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||||
|
{
|
||||||
|
auto fn = [this, request, handler, context]()
|
||||||
|
{
|
||||||
|
handler(this, request, listDeliveryHistoryJobs(request), context);
|
||||||
|
};
|
||||||
|
|
||||||
|
asyncExecute(new Runnable(fn));
|
||||||
|
}
|
||||||
|
|
||||||
|
ActiontrailClient::ListDeliveryHistoryJobsOutcomeCallable ActiontrailClient::listDeliveryHistoryJobsCallable(const ListDeliveryHistoryJobsRequest &request) const
|
||||||
|
{
|
||||||
|
auto task = std::make_shared<std::packaged_task<ListDeliveryHistoryJobsOutcome()>>(
|
||||||
|
[this, request]()
|
||||||
|
{
|
||||||
|
return this->listDeliveryHistoryJobs(request);
|
||||||
|
});
|
||||||
|
|
||||||
|
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||||
|
return task->get_future();
|
||||||
|
}
|
||||||
|
|
||||||
ActiontrailClient::LookupEventsOutcome ActiontrailClient::lookupEvents(const LookupEventsRequest &request) const
|
ActiontrailClient::LookupEventsOutcome ActiontrailClient::lookupEvents(const LookupEventsRequest &request) const
|
||||||
{
|
{
|
||||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||||
|
|||||||
51
actiontrail/src/model/CreateDeliveryHistoryJobRequest.cc
Normal file
51
actiontrail/src/model/CreateDeliveryHistoryJobRequest.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/actiontrail/model/CreateDeliveryHistoryJobRequest.h>
|
||||||
|
|
||||||
|
using AlibabaCloud::Actiontrail::Model::CreateDeliveryHistoryJobRequest;
|
||||||
|
|
||||||
|
CreateDeliveryHistoryJobRequest::CreateDeliveryHistoryJobRequest() :
|
||||||
|
RpcServiceRequest("actiontrail", "2020-07-06", "CreateDeliveryHistoryJob")
|
||||||
|
{
|
||||||
|
setMethod(HttpRequest::Method::Post);
|
||||||
|
}
|
||||||
|
|
||||||
|
CreateDeliveryHistoryJobRequest::~CreateDeliveryHistoryJobRequest()
|
||||||
|
{}
|
||||||
|
|
||||||
|
std::string CreateDeliveryHistoryJobRequest::getClientToken()const
|
||||||
|
{
|
||||||
|
return clientToken_;
|
||||||
|
}
|
||||||
|
|
||||||
|
void CreateDeliveryHistoryJobRequest::setClientToken(const std::string& clientToken)
|
||||||
|
{
|
||||||
|
clientToken_ = clientToken;
|
||||||
|
setParameter("ClientToken", clientToken);
|
||||||
|
}
|
||||||
|
|
||||||
|
std::string CreateDeliveryHistoryJobRequest::getTrailName()const
|
||||||
|
{
|
||||||
|
return trailName_;
|
||||||
|
}
|
||||||
|
|
||||||
|
void CreateDeliveryHistoryJobRequest::setTrailName(const std::string& trailName)
|
||||||
|
{
|
||||||
|
trailName_ = trailName;
|
||||||
|
setParameter("TrailName", trailName);
|
||||||
|
}
|
||||||
|
|
||||||
51
actiontrail/src/model/CreateDeliveryHistoryJobResult.cc
Normal file
51
actiontrail/src/model/CreateDeliveryHistoryJobResult.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/actiontrail/model/CreateDeliveryHistoryJobResult.h>
|
||||||
|
#include <json/json.h>
|
||||||
|
|
||||||
|
using namespace AlibabaCloud::Actiontrail;
|
||||||
|
using namespace AlibabaCloud::Actiontrail::Model;
|
||||||
|
|
||||||
|
CreateDeliveryHistoryJobResult::CreateDeliveryHistoryJobResult() :
|
||||||
|
ServiceResult()
|
||||||
|
{}
|
||||||
|
|
||||||
|
CreateDeliveryHistoryJobResult::CreateDeliveryHistoryJobResult(const std::string &payload) :
|
||||||
|
ServiceResult()
|
||||||
|
{
|
||||||
|
parse(payload);
|
||||||
|
}
|
||||||
|
|
||||||
|
CreateDeliveryHistoryJobResult::~CreateDeliveryHistoryJobResult()
|
||||||
|
{}
|
||||||
|
|
||||||
|
void CreateDeliveryHistoryJobResult::parse(const std::string &payload)
|
||||||
|
{
|
||||||
|
Json::Reader reader;
|
||||||
|
Json::Value value;
|
||||||
|
reader.parse(payload, value);
|
||||||
|
setRequestId(value["RequestId"].asString());
|
||||||
|
if(!value["JobId"].isNull())
|
||||||
|
jobId_ = std::stoi(value["JobId"].asString());
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
int CreateDeliveryHistoryJobResult::getJobId()const
|
||||||
|
{
|
||||||
|
return jobId_;
|
||||||
|
}
|
||||||
|
|
||||||
40
actiontrail/src/model/DeleteDeliveryHistoryJobRequest.cc
Normal file
40
actiontrail/src/model/DeleteDeliveryHistoryJobRequest.cc
Normal file
@@ -0,0 +1,40 @@
|
|||||||
|
/*
|
||||||
|
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||||
|
*
|
||||||
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
|
* you may not use this file except in compliance with the License.
|
||||||
|
* You may obtain a copy of the License at
|
||||||
|
*
|
||||||
|
* http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
*
|
||||||
|
* Unless required by applicable law or agreed to in writing, software
|
||||||
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
|
* WITHOUT 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/actiontrail/model/DeleteDeliveryHistoryJobRequest.h>
|
||||||
|
|
||||||
|
using AlibabaCloud::Actiontrail::Model::DeleteDeliveryHistoryJobRequest;
|
||||||
|
|
||||||
|
DeleteDeliveryHistoryJobRequest::DeleteDeliveryHistoryJobRequest() :
|
||||||
|
RpcServiceRequest("actiontrail", "2020-07-06", "DeleteDeliveryHistoryJob")
|
||||||
|
{
|
||||||
|
setMethod(HttpRequest::Method::Post);
|
||||||
|
}
|
||||||
|
|
||||||
|
DeleteDeliveryHistoryJobRequest::~DeleteDeliveryHistoryJobRequest()
|
||||||
|
{}
|
||||||
|
|
||||||
|
int DeleteDeliveryHistoryJobRequest::getJobId()const
|
||||||
|
{
|
||||||
|
return jobId_;
|
||||||
|
}
|
||||||
|
|
||||||
|
void DeleteDeliveryHistoryJobRequest::setJobId(int jobId)
|
||||||
|
{
|
||||||
|
jobId_ = jobId;
|
||||||
|
setParameter("JobId", std::to_string(jobId));
|
||||||
|
}
|
||||||
|
|
||||||
44
actiontrail/src/model/DeleteDeliveryHistoryJobResult.cc
Normal file
44
actiontrail/src/model/DeleteDeliveryHistoryJobResult.cc
Normal file
@@ -0,0 +1,44 @@
|
|||||||
|
/*
|
||||||
|
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||||
|
*
|
||||||
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
|
* you may not use this file except in compliance with the License.
|
||||||
|
* You may obtain a copy of the License at
|
||||||
|
*
|
||||||
|
* http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
*
|
||||||
|
* Unless required by applicable law or agreed to in writing, software
|
||||||
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
|
* See the License for the specific language governing permissions and
|
||||||
|
* limitations under the License.
|
||||||
|
*/
|
||||||
|
|
||||||
|
#include <alibabacloud/actiontrail/model/DeleteDeliveryHistoryJobResult.h>
|
||||||
|
#include <json/json.h>
|
||||||
|
|
||||||
|
using namespace AlibabaCloud::Actiontrail;
|
||||||
|
using namespace AlibabaCloud::Actiontrail::Model;
|
||||||
|
|
||||||
|
DeleteDeliveryHistoryJobResult::DeleteDeliveryHistoryJobResult() :
|
||||||
|
ServiceResult()
|
||||||
|
{}
|
||||||
|
|
||||||
|
DeleteDeliveryHistoryJobResult::DeleteDeliveryHistoryJobResult(const std::string &payload) :
|
||||||
|
ServiceResult()
|
||||||
|
{
|
||||||
|
parse(payload);
|
||||||
|
}
|
||||||
|
|
||||||
|
DeleteDeliveryHistoryJobResult::~DeleteDeliveryHistoryJobResult()
|
||||||
|
{}
|
||||||
|
|
||||||
|
void DeleteDeliveryHistoryJobResult::parse(const std::string &payload)
|
||||||
|
{
|
||||||
|
Json::Reader reader;
|
||||||
|
Json::Value value;
|
||||||
|
reader.parse(payload, value);
|
||||||
|
setRequestId(value["RequestId"].asString());
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
51
actiontrail/src/model/ListDeliveryHistoryJobsRequest.cc
Normal file
51
actiontrail/src/model/ListDeliveryHistoryJobsRequest.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/actiontrail/model/ListDeliveryHistoryJobsRequest.h>
|
||||||
|
|
||||||
|
using AlibabaCloud::Actiontrail::Model::ListDeliveryHistoryJobsRequest;
|
||||||
|
|
||||||
|
ListDeliveryHistoryJobsRequest::ListDeliveryHistoryJobsRequest() :
|
||||||
|
RpcServiceRequest("actiontrail", "2020-07-06", "ListDeliveryHistoryJobs")
|
||||||
|
{
|
||||||
|
setMethod(HttpRequest::Method::Post);
|
||||||
|
}
|
||||||
|
|
||||||
|
ListDeliveryHistoryJobsRequest::~ListDeliveryHistoryJobsRequest()
|
||||||
|
{}
|
||||||
|
|
||||||
|
int ListDeliveryHistoryJobsRequest::getPageNumber()const
|
||||||
|
{
|
||||||
|
return pageNumber_;
|
||||||
|
}
|
||||||
|
|
||||||
|
void ListDeliveryHistoryJobsRequest::setPageNumber(int pageNumber)
|
||||||
|
{
|
||||||
|
pageNumber_ = pageNumber;
|
||||||
|
setParameter("PageNumber", std::to_string(pageNumber));
|
||||||
|
}
|
||||||
|
|
||||||
|
int ListDeliveryHistoryJobsRequest::getPageSize()const
|
||||||
|
{
|
||||||
|
return pageSize_;
|
||||||
|
}
|
||||||
|
|
||||||
|
void ListDeliveryHistoryJobsRequest::setPageSize(int pageSize)
|
||||||
|
{
|
||||||
|
pageSize_ = pageSize;
|
||||||
|
setParameter("PageSize", std::to_string(pageSize));
|
||||||
|
}
|
||||||
|
|
||||||
92
actiontrail/src/model/ListDeliveryHistoryJobsResult.cc
Normal file
92
actiontrail/src/model/ListDeliveryHistoryJobsResult.cc
Normal file
@@ -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.
|
||||||
|
*/
|
||||||
|
|
||||||
|
#include <alibabacloud/actiontrail/model/ListDeliveryHistoryJobsResult.h>
|
||||||
|
#include <json/json.h>
|
||||||
|
|
||||||
|
using namespace AlibabaCloud::Actiontrail;
|
||||||
|
using namespace AlibabaCloud::Actiontrail::Model;
|
||||||
|
|
||||||
|
ListDeliveryHistoryJobsResult::ListDeliveryHistoryJobsResult() :
|
||||||
|
ServiceResult()
|
||||||
|
{}
|
||||||
|
|
||||||
|
ListDeliveryHistoryJobsResult::ListDeliveryHistoryJobsResult(const std::string &payload) :
|
||||||
|
ServiceResult()
|
||||||
|
{
|
||||||
|
parse(payload);
|
||||||
|
}
|
||||||
|
|
||||||
|
ListDeliveryHistoryJobsResult::~ListDeliveryHistoryJobsResult()
|
||||||
|
{}
|
||||||
|
|
||||||
|
void ListDeliveryHistoryJobsResult::parse(const std::string &payload)
|
||||||
|
{
|
||||||
|
Json::Reader reader;
|
||||||
|
Json::Value value;
|
||||||
|
reader.parse(payload, value);
|
||||||
|
setRequestId(value["RequestId"].asString());
|
||||||
|
auto allDeliveryHistoryJobsNode = value["DeliveryHistoryJobs"]["DeliveryHistoryJob"];
|
||||||
|
for (auto valueDeliveryHistoryJobsDeliveryHistoryJob : allDeliveryHistoryJobsNode)
|
||||||
|
{
|
||||||
|
DeliveryHistoryJob deliveryHistoryJobsObject;
|
||||||
|
if(!valueDeliveryHistoryJobsDeliveryHistoryJob["TrailName"].isNull())
|
||||||
|
deliveryHistoryJobsObject.trailName = valueDeliveryHistoryJobsDeliveryHistoryJob["TrailName"].asString();
|
||||||
|
if(!valueDeliveryHistoryJobsDeliveryHistoryJob["CreatedTime"].isNull())
|
||||||
|
deliveryHistoryJobsObject.createdTime = valueDeliveryHistoryJobsDeliveryHistoryJob["CreatedTime"].asString();
|
||||||
|
if(!valueDeliveryHistoryJobsDeliveryHistoryJob["UpdatedTime"].isNull())
|
||||||
|
deliveryHistoryJobsObject.updatedTime = valueDeliveryHistoryJobsDeliveryHistoryJob["UpdatedTime"].asString();
|
||||||
|
if(!valueDeliveryHistoryJobsDeliveryHistoryJob["HomeRegion"].isNull())
|
||||||
|
deliveryHistoryJobsObject.homeRegion = valueDeliveryHistoryJobsDeliveryHistoryJob["HomeRegion"].asString();
|
||||||
|
if(!valueDeliveryHistoryJobsDeliveryHistoryJob["StartTime"].isNull())
|
||||||
|
deliveryHistoryJobsObject.startTime = valueDeliveryHistoryJobsDeliveryHistoryJob["StartTime"].asString();
|
||||||
|
if(!valueDeliveryHistoryJobsDeliveryHistoryJob["EndTime"].isNull())
|
||||||
|
deliveryHistoryJobsObject.endTime = valueDeliveryHistoryJobsDeliveryHistoryJob["EndTime"].asString();
|
||||||
|
if(!valueDeliveryHistoryJobsDeliveryHistoryJob["JobId"].isNull())
|
||||||
|
deliveryHistoryJobsObject.jobId = std::stol(valueDeliveryHistoryJobsDeliveryHistoryJob["JobId"].asString());
|
||||||
|
if(!valueDeliveryHistoryJobsDeliveryHistoryJob["JobStatus"].isNull())
|
||||||
|
deliveryHistoryJobsObject.jobStatus = std::stoi(valueDeliveryHistoryJobsDeliveryHistoryJob["JobStatus"].asString());
|
||||||
|
deliveryHistoryJobs_.push_back(deliveryHistoryJobsObject);
|
||||||
|
}
|
||||||
|
if(!value["TotalCount"].isNull())
|
||||||
|
totalCount_ = std::stoi(value["TotalCount"].asString());
|
||||||
|
if(!value["PageNumber"].isNull())
|
||||||
|
pageNumber_ = std::stoi(value["PageNumber"].asString());
|
||||||
|
if(!value["PageSize"].isNull())
|
||||||
|
pageSize_ = std::stoi(value["PageSize"].asString());
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
int ListDeliveryHistoryJobsResult::getTotalCount()const
|
||||||
|
{
|
||||||
|
return totalCount_;
|
||||||
|
}
|
||||||
|
|
||||||
|
int ListDeliveryHistoryJobsResult::getPageSize()const
|
||||||
|
{
|
||||||
|
return pageSize_;
|
||||||
|
}
|
||||||
|
|
||||||
|
int ListDeliveryHistoryJobsResult::getPageNumber()const
|
||||||
|
{
|
||||||
|
return pageNumber_;
|
||||||
|
}
|
||||||
|
|
||||||
|
std::vector<ListDeliveryHistoryJobsResult::DeliveryHistoryJob> ListDeliveryHistoryJobsResult::getDeliveryHistoryJobs()const
|
||||||
|
{
|
||||||
|
return deliveryHistoryJobs_;
|
||||||
|
}
|
||||||
|
|
||||||
@@ -41,6 +41,8 @@ set(alimt_public_header_model
|
|||||||
include/alibabacloud/alimt/model/GetTitleGenerateResult.h
|
include/alibabacloud/alimt/model/GetTitleGenerateResult.h
|
||||||
include/alibabacloud/alimt/model/GetTitleIntelligenceRequest.h
|
include/alibabacloud/alimt/model/GetTitleIntelligenceRequest.h
|
||||||
include/alibabacloud/alimt/model/GetTitleIntelligenceResult.h
|
include/alibabacloud/alimt/model/GetTitleIntelligenceResult.h
|
||||||
|
include/alibabacloud/alimt/model/OpenAlimtServiceRequest.h
|
||||||
|
include/alibabacloud/alimt/model/OpenAlimtServiceResult.h
|
||||||
include/alibabacloud/alimt/model/TranslateRequest.h
|
include/alibabacloud/alimt/model/TranslateRequest.h
|
||||||
include/alibabacloud/alimt/model/TranslateResult.h
|
include/alibabacloud/alimt/model/TranslateResult.h
|
||||||
include/alibabacloud/alimt/model/TranslateCertificateRequest.h
|
include/alibabacloud/alimt/model/TranslateCertificateRequest.h
|
||||||
@@ -72,6 +74,8 @@ set(alimt_src
|
|||||||
src/model/GetTitleGenerateResult.cc
|
src/model/GetTitleGenerateResult.cc
|
||||||
src/model/GetTitleIntelligenceRequest.cc
|
src/model/GetTitleIntelligenceRequest.cc
|
||||||
src/model/GetTitleIntelligenceResult.cc
|
src/model/GetTitleIntelligenceResult.cc
|
||||||
|
src/model/OpenAlimtServiceRequest.cc
|
||||||
|
src/model/OpenAlimtServiceResult.cc
|
||||||
src/model/TranslateRequest.cc
|
src/model/TranslateRequest.cc
|
||||||
src/model/TranslateResult.cc
|
src/model/TranslateResult.cc
|
||||||
src/model/TranslateCertificateRequest.cc
|
src/model/TranslateCertificateRequest.cc
|
||||||
|
|||||||
@@ -42,6 +42,8 @@
|
|||||||
#include "model/GetTitleGenerateResult.h"
|
#include "model/GetTitleGenerateResult.h"
|
||||||
#include "model/GetTitleIntelligenceRequest.h"
|
#include "model/GetTitleIntelligenceRequest.h"
|
||||||
#include "model/GetTitleIntelligenceResult.h"
|
#include "model/GetTitleIntelligenceResult.h"
|
||||||
|
#include "model/OpenAlimtServiceRequest.h"
|
||||||
|
#include "model/OpenAlimtServiceResult.h"
|
||||||
#include "model/TranslateRequest.h"
|
#include "model/TranslateRequest.h"
|
||||||
#include "model/TranslateResult.h"
|
#include "model/TranslateResult.h"
|
||||||
#include "model/TranslateCertificateRequest.h"
|
#include "model/TranslateCertificateRequest.h"
|
||||||
@@ -89,6 +91,9 @@ namespace AlibabaCloud
|
|||||||
typedef Outcome<Error, Model::GetTitleIntelligenceResult> GetTitleIntelligenceOutcome;
|
typedef Outcome<Error, Model::GetTitleIntelligenceResult> GetTitleIntelligenceOutcome;
|
||||||
typedef std::future<GetTitleIntelligenceOutcome> GetTitleIntelligenceOutcomeCallable;
|
typedef std::future<GetTitleIntelligenceOutcome> GetTitleIntelligenceOutcomeCallable;
|
||||||
typedef std::function<void(const AlimtClient*, const Model::GetTitleIntelligenceRequest&, const GetTitleIntelligenceOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetTitleIntelligenceAsyncHandler;
|
typedef std::function<void(const AlimtClient*, const Model::GetTitleIntelligenceRequest&, const GetTitleIntelligenceOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetTitleIntelligenceAsyncHandler;
|
||||||
|
typedef Outcome<Error, Model::OpenAlimtServiceResult> OpenAlimtServiceOutcome;
|
||||||
|
typedef std::future<OpenAlimtServiceOutcome> OpenAlimtServiceOutcomeCallable;
|
||||||
|
typedef std::function<void(const AlimtClient*, const Model::OpenAlimtServiceRequest&, const OpenAlimtServiceOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> OpenAlimtServiceAsyncHandler;
|
||||||
typedef Outcome<Error, Model::TranslateResult> TranslateOutcome;
|
typedef Outcome<Error, Model::TranslateResult> TranslateOutcome;
|
||||||
typedef std::future<TranslateOutcome> TranslateOutcomeCallable;
|
typedef std::future<TranslateOutcome> TranslateOutcomeCallable;
|
||||||
typedef std::function<void(const AlimtClient*, const Model::TranslateRequest&, const TranslateOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> TranslateAsyncHandler;
|
typedef std::function<void(const AlimtClient*, const Model::TranslateRequest&, const TranslateOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> TranslateAsyncHandler;
|
||||||
@@ -136,6 +141,9 @@ namespace AlibabaCloud
|
|||||||
GetTitleIntelligenceOutcome getTitleIntelligence(const Model::GetTitleIntelligenceRequest &request)const;
|
GetTitleIntelligenceOutcome getTitleIntelligence(const Model::GetTitleIntelligenceRequest &request)const;
|
||||||
void getTitleIntelligenceAsync(const Model::GetTitleIntelligenceRequest& request, const GetTitleIntelligenceAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
void getTitleIntelligenceAsync(const Model::GetTitleIntelligenceRequest& request, const GetTitleIntelligenceAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||||
GetTitleIntelligenceOutcomeCallable getTitleIntelligenceCallable(const Model::GetTitleIntelligenceRequest& request) const;
|
GetTitleIntelligenceOutcomeCallable getTitleIntelligenceCallable(const Model::GetTitleIntelligenceRequest& request) const;
|
||||||
|
OpenAlimtServiceOutcome openAlimtService(const Model::OpenAlimtServiceRequest &request)const;
|
||||||
|
void openAlimtServiceAsync(const Model::OpenAlimtServiceRequest& request, const OpenAlimtServiceAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||||
|
OpenAlimtServiceOutcomeCallable openAlimtServiceCallable(const Model::OpenAlimtServiceRequest& request) const;
|
||||||
TranslateOutcome translate(const Model::TranslateRequest &request)const;
|
TranslateOutcome translate(const Model::TranslateRequest &request)const;
|
||||||
void translateAsync(const Model::TranslateRequest& request, const TranslateAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
void translateAsync(const Model::TranslateRequest& request, const TranslateAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||||
TranslateOutcomeCallable translateCallable(const Model::TranslateRequest& request) const;
|
TranslateOutcomeCallable translateCallable(const Model::TranslateRequest& request) const;
|
||||||
|
|||||||
@@ -35,6 +35,7 @@ namespace AlibabaCloud
|
|||||||
struct Data
|
struct Data
|
||||||
{
|
{
|
||||||
std::string orc;
|
std::string orc;
|
||||||
|
std::string pictureEditor;
|
||||||
std::string url;
|
std::string url;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
@@ -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_ALIMT_MODEL_OPENALIMTSERVICEREQUEST_H_
|
||||||
|
#define ALIBABACLOUD_ALIMT_MODEL_OPENALIMTSERVICEREQUEST_H_
|
||||||
|
|
||||||
|
#include <string>
|
||||||
|
#include <vector>
|
||||||
|
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||||
|
#include <alibabacloud/alimt/AlimtExport.h>
|
||||||
|
|
||||||
|
namespace AlibabaCloud
|
||||||
|
{
|
||||||
|
namespace Alimt
|
||||||
|
{
|
||||||
|
namespace Model
|
||||||
|
{
|
||||||
|
class ALIBABACLOUD_ALIMT_EXPORT OpenAlimtServiceRequest : public RpcServiceRequest
|
||||||
|
{
|
||||||
|
|
||||||
|
public:
|
||||||
|
OpenAlimtServiceRequest();
|
||||||
|
~OpenAlimtServiceRequest();
|
||||||
|
|
||||||
|
long getOwnerId()const;
|
||||||
|
void setOwnerId(long ownerId);
|
||||||
|
std::string getType()const;
|
||||||
|
void setType(const std::string& type);
|
||||||
|
|
||||||
|
private:
|
||||||
|
long ownerId_;
|
||||||
|
std::string type_;
|
||||||
|
|
||||||
|
};
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
#endif // !ALIBABACLOUD_ALIMT_MODEL_OPENALIMTSERVICEREQUEST_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_ALIMT_MODEL_OPENALIMTSERVICERESULT_H_
|
||||||
|
#define ALIBABACLOUD_ALIMT_MODEL_OPENALIMTSERVICERESULT_H_
|
||||||
|
|
||||||
|
#include <string>
|
||||||
|
#include <vector>
|
||||||
|
#include <utility>
|
||||||
|
#include <alibabacloud/core/ServiceResult.h>
|
||||||
|
#include <alibabacloud/alimt/AlimtExport.h>
|
||||||
|
|
||||||
|
namespace AlibabaCloud
|
||||||
|
{
|
||||||
|
namespace Alimt
|
||||||
|
{
|
||||||
|
namespace Model
|
||||||
|
{
|
||||||
|
class ALIBABACLOUD_ALIMT_EXPORT OpenAlimtServiceResult : public ServiceResult
|
||||||
|
{
|
||||||
|
public:
|
||||||
|
|
||||||
|
|
||||||
|
OpenAlimtServiceResult();
|
||||||
|
explicit OpenAlimtServiceResult(const std::string &payload);
|
||||||
|
~OpenAlimtServiceResult();
|
||||||
|
std::string getOrderId()const;
|
||||||
|
|
||||||
|
protected:
|
||||||
|
void parse(const std::string &payload);
|
||||||
|
private:
|
||||||
|
std::string orderId_;
|
||||||
|
|
||||||
|
};
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
#endif // !ALIBABACLOUD_ALIMT_MODEL_OPENALIMTSERVICERESULT_H_
|
||||||
@@ -411,6 +411,42 @@ AlimtClient::GetTitleIntelligenceOutcomeCallable AlimtClient::getTitleIntelligen
|
|||||||
return task->get_future();
|
return task->get_future();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
AlimtClient::OpenAlimtServiceOutcome AlimtClient::openAlimtService(const OpenAlimtServiceRequest &request) const
|
||||||
|
{
|
||||||
|
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||||
|
if (!endpointOutcome.isSuccess())
|
||||||
|
return OpenAlimtServiceOutcome(endpointOutcome.error());
|
||||||
|
|
||||||
|
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||||
|
|
||||||
|
if (outcome.isSuccess())
|
||||||
|
return OpenAlimtServiceOutcome(OpenAlimtServiceResult(outcome.result()));
|
||||||
|
else
|
||||||
|
return OpenAlimtServiceOutcome(outcome.error());
|
||||||
|
}
|
||||||
|
|
||||||
|
void AlimtClient::openAlimtServiceAsync(const OpenAlimtServiceRequest& request, const OpenAlimtServiceAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||||
|
{
|
||||||
|
auto fn = [this, request, handler, context]()
|
||||||
|
{
|
||||||
|
handler(this, request, openAlimtService(request), context);
|
||||||
|
};
|
||||||
|
|
||||||
|
asyncExecute(new Runnable(fn));
|
||||||
|
}
|
||||||
|
|
||||||
|
AlimtClient::OpenAlimtServiceOutcomeCallable AlimtClient::openAlimtServiceCallable(const OpenAlimtServiceRequest &request) const
|
||||||
|
{
|
||||||
|
auto task = std::make_shared<std::packaged_task<OpenAlimtServiceOutcome()>>(
|
||||||
|
[this, request]()
|
||||||
|
{
|
||||||
|
return this->openAlimtService(request);
|
||||||
|
});
|
||||||
|
|
||||||
|
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||||
|
return task->get_future();
|
||||||
|
}
|
||||||
|
|
||||||
AlimtClient::TranslateOutcome AlimtClient::translate(const TranslateRequest &request) const
|
AlimtClient::TranslateOutcome AlimtClient::translate(const TranslateRequest &request) const
|
||||||
{
|
{
|
||||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||||
|
|||||||
@@ -44,6 +44,8 @@ void GetImageTranslateResult::parse(const std::string &payload)
|
|||||||
data_.url = dataNode["Url"].asString();
|
data_.url = dataNode["Url"].asString();
|
||||||
if(!dataNode["Orc"].isNull())
|
if(!dataNode["Orc"].isNull())
|
||||||
data_.orc = dataNode["Orc"].asString();
|
data_.orc = dataNode["Orc"].asString();
|
||||||
|
if(!dataNode["PictureEditor"].isNull())
|
||||||
|
data_.pictureEditor = dataNode["PictureEditor"].asString();
|
||||||
if(!value["Code"].isNull())
|
if(!value["Code"].isNull())
|
||||||
code_ = std::stoi(value["Code"].asString());
|
code_ = std::stoi(value["Code"].asString());
|
||||||
if(!value["Message"].isNull())
|
if(!value["Message"].isNull())
|
||||||
|
|||||||
51
alimt/src/model/OpenAlimtServiceRequest.cc
Normal file
51
alimt/src/model/OpenAlimtServiceRequest.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/alimt/model/OpenAlimtServiceRequest.h>
|
||||||
|
|
||||||
|
using AlibabaCloud::Alimt::Model::OpenAlimtServiceRequest;
|
||||||
|
|
||||||
|
OpenAlimtServiceRequest::OpenAlimtServiceRequest() :
|
||||||
|
RpcServiceRequest("alimt", "2018-10-12", "OpenAlimtService")
|
||||||
|
{
|
||||||
|
setMethod(HttpRequest::Method::Post);
|
||||||
|
}
|
||||||
|
|
||||||
|
OpenAlimtServiceRequest::~OpenAlimtServiceRequest()
|
||||||
|
{}
|
||||||
|
|
||||||
|
long OpenAlimtServiceRequest::getOwnerId()const
|
||||||
|
{
|
||||||
|
return ownerId_;
|
||||||
|
}
|
||||||
|
|
||||||
|
void OpenAlimtServiceRequest::setOwnerId(long ownerId)
|
||||||
|
{
|
||||||
|
ownerId_ = ownerId;
|
||||||
|
setParameter("OwnerId", std::to_string(ownerId));
|
||||||
|
}
|
||||||
|
|
||||||
|
std::string OpenAlimtServiceRequest::getType()const
|
||||||
|
{
|
||||||
|
return type_;
|
||||||
|
}
|
||||||
|
|
||||||
|
void OpenAlimtServiceRequest::setType(const std::string& type)
|
||||||
|
{
|
||||||
|
type_ = type;
|
||||||
|
setParameter("Type", type);
|
||||||
|
}
|
||||||
|
|
||||||
51
alimt/src/model/OpenAlimtServiceResult.cc
Normal file
51
alimt/src/model/OpenAlimtServiceResult.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/alimt/model/OpenAlimtServiceResult.h>
|
||||||
|
#include <json/json.h>
|
||||||
|
|
||||||
|
using namespace AlibabaCloud::Alimt;
|
||||||
|
using namespace AlibabaCloud::Alimt::Model;
|
||||||
|
|
||||||
|
OpenAlimtServiceResult::OpenAlimtServiceResult() :
|
||||||
|
ServiceResult()
|
||||||
|
{}
|
||||||
|
|
||||||
|
OpenAlimtServiceResult::OpenAlimtServiceResult(const std::string &payload) :
|
||||||
|
ServiceResult()
|
||||||
|
{
|
||||||
|
parse(payload);
|
||||||
|
}
|
||||||
|
|
||||||
|
OpenAlimtServiceResult::~OpenAlimtServiceResult()
|
||||||
|
{}
|
||||||
|
|
||||||
|
void OpenAlimtServiceResult::parse(const std::string &payload)
|
||||||
|
{
|
||||||
|
Json::Reader reader;
|
||||||
|
Json::Value value;
|
||||||
|
reader.parse(payload, value);
|
||||||
|
setRequestId(value["RequestId"].asString());
|
||||||
|
if(!value["OrderId"].isNull())
|
||||||
|
orderId_ = value["OrderId"].asString();
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
std::string OpenAlimtServiceResult::getOrderId()const
|
||||||
|
{
|
||||||
|
return orderId_;
|
||||||
|
}
|
||||||
|
|
||||||
@@ -25,6 +25,8 @@ set(arms_public_header_model
|
|||||||
include/alibabacloud/arms/model/AddGrafanaResult.h
|
include/alibabacloud/arms/model/AddGrafanaResult.h
|
||||||
include/alibabacloud/arms/model/AddIntegrationRequest.h
|
include/alibabacloud/arms/model/AddIntegrationRequest.h
|
||||||
include/alibabacloud/arms/model/AddIntegrationResult.h
|
include/alibabacloud/arms/model/AddIntegrationResult.h
|
||||||
|
include/alibabacloud/arms/model/ApplyScenarioRequest.h
|
||||||
|
include/alibabacloud/arms/model/ApplyScenarioResult.h
|
||||||
include/alibabacloud/arms/model/CheckDataConsistencyRequest.h
|
include/alibabacloud/arms/model/CheckDataConsistencyRequest.h
|
||||||
include/alibabacloud/arms/model/CheckDataConsistencyResult.h
|
include/alibabacloud/arms/model/CheckDataConsistencyResult.h
|
||||||
include/alibabacloud/arms/model/CheckServiceLinkedRoleForDeletingRequest.h
|
include/alibabacloud/arms/model/CheckServiceLinkedRoleForDeletingRequest.h
|
||||||
@@ -47,16 +49,26 @@ set(arms_public_header_model
|
|||||||
include/alibabacloud/arms/model/DeleteAlertRulesResult.h
|
include/alibabacloud/arms/model/DeleteAlertRulesResult.h
|
||||||
include/alibabacloud/arms/model/DeleteRetcodeAppRequest.h
|
include/alibabacloud/arms/model/DeleteRetcodeAppRequest.h
|
||||||
include/alibabacloud/arms/model/DeleteRetcodeAppResult.h
|
include/alibabacloud/arms/model/DeleteRetcodeAppResult.h
|
||||||
|
include/alibabacloud/arms/model/DeleteScenarioRequest.h
|
||||||
|
include/alibabacloud/arms/model/DeleteScenarioResult.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/GetAgentDownloadUrlRequest.h
|
||||||
|
include/alibabacloud/arms/model/GetAgentDownloadUrlResult.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 +85,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
|
||||||
@@ -81,8 +95,12 @@ set(arms_public_header_model
|
|||||||
include/alibabacloud/arms/model/ListPromClustersResult.h
|
include/alibabacloud/arms/model/ListPromClustersResult.h
|
||||||
include/alibabacloud/arms/model/ListRetcodeAppsRequest.h
|
include/alibabacloud/arms/model/ListRetcodeAppsRequest.h
|
||||||
include/alibabacloud/arms/model/ListRetcodeAppsResult.h
|
include/alibabacloud/arms/model/ListRetcodeAppsResult.h
|
||||||
|
include/alibabacloud/arms/model/ListScenarioRequest.h
|
||||||
|
include/alibabacloud/arms/model/ListScenarioResult.h
|
||||||
include/alibabacloud/arms/model/ListTraceAppsRequest.h
|
include/alibabacloud/arms/model/ListTraceAppsRequest.h
|
||||||
include/alibabacloud/arms/model/ListTraceAppsResult.h
|
include/alibabacloud/arms/model/ListTraceAppsResult.h
|
||||||
|
include/alibabacloud/arms/model/OpenArmsServiceRequest.h
|
||||||
|
include/alibabacloud/arms/model/OpenArmsServiceResult.h
|
||||||
include/alibabacloud/arms/model/QueryDatasetRequest.h
|
include/alibabacloud/arms/model/QueryDatasetRequest.h
|
||||||
include/alibabacloud/arms/model/QueryDatasetResult.h
|
include/alibabacloud/arms/model/QueryDatasetResult.h
|
||||||
include/alibabacloud/arms/model/QueryMetricRequest.h
|
include/alibabacloud/arms/model/QueryMetricRequest.h
|
||||||
@@ -111,6 +129,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
|
||||||
@@ -132,6 +154,8 @@ set(arms_src
|
|||||||
src/model/AddGrafanaResult.cc
|
src/model/AddGrafanaResult.cc
|
||||||
src/model/AddIntegrationRequest.cc
|
src/model/AddIntegrationRequest.cc
|
||||||
src/model/AddIntegrationResult.cc
|
src/model/AddIntegrationResult.cc
|
||||||
|
src/model/ApplyScenarioRequest.cc
|
||||||
|
src/model/ApplyScenarioResult.cc
|
||||||
src/model/CheckDataConsistencyRequest.cc
|
src/model/CheckDataConsistencyRequest.cc
|
||||||
src/model/CheckDataConsistencyResult.cc
|
src/model/CheckDataConsistencyResult.cc
|
||||||
src/model/CheckServiceLinkedRoleForDeletingRequest.cc
|
src/model/CheckServiceLinkedRoleForDeletingRequest.cc
|
||||||
@@ -154,16 +178,26 @@ set(arms_src
|
|||||||
src/model/DeleteAlertRulesResult.cc
|
src/model/DeleteAlertRulesResult.cc
|
||||||
src/model/DeleteRetcodeAppRequest.cc
|
src/model/DeleteRetcodeAppRequest.cc
|
||||||
src/model/DeleteRetcodeAppResult.cc
|
src/model/DeleteRetcodeAppResult.cc
|
||||||
|
src/model/DeleteScenarioRequest.cc
|
||||||
|
src/model/DeleteScenarioResult.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/GetAgentDownloadUrlRequest.cc
|
||||||
|
src/model/GetAgentDownloadUrlResult.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 +214,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
|
||||||
@@ -188,8 +224,12 @@ set(arms_src
|
|||||||
src/model/ListPromClustersResult.cc
|
src/model/ListPromClustersResult.cc
|
||||||
src/model/ListRetcodeAppsRequest.cc
|
src/model/ListRetcodeAppsRequest.cc
|
||||||
src/model/ListRetcodeAppsResult.cc
|
src/model/ListRetcodeAppsResult.cc
|
||||||
|
src/model/ListScenarioRequest.cc
|
||||||
|
src/model/ListScenarioResult.cc
|
||||||
src/model/ListTraceAppsRequest.cc
|
src/model/ListTraceAppsRequest.cc
|
||||||
src/model/ListTraceAppsResult.cc
|
src/model/ListTraceAppsResult.cc
|
||||||
|
src/model/OpenArmsServiceRequest.cc
|
||||||
|
src/model/OpenArmsServiceResult.cc
|
||||||
src/model/QueryDatasetRequest.cc
|
src/model/QueryDatasetRequest.cc
|
||||||
src/model/QueryDatasetResult.cc
|
src/model/QueryDatasetResult.cc
|
||||||
src/model/QueryMetricRequest.cc
|
src/model/QueryMetricRequest.cc
|
||||||
@@ -218,6 +258,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
|
||||||
|
|||||||
@@ -26,6 +26,8 @@
|
|||||||
#include "model/AddGrafanaResult.h"
|
#include "model/AddGrafanaResult.h"
|
||||||
#include "model/AddIntegrationRequest.h"
|
#include "model/AddIntegrationRequest.h"
|
||||||
#include "model/AddIntegrationResult.h"
|
#include "model/AddIntegrationResult.h"
|
||||||
|
#include "model/ApplyScenarioRequest.h"
|
||||||
|
#include "model/ApplyScenarioResult.h"
|
||||||
#include "model/CheckDataConsistencyRequest.h"
|
#include "model/CheckDataConsistencyRequest.h"
|
||||||
#include "model/CheckDataConsistencyResult.h"
|
#include "model/CheckDataConsistencyResult.h"
|
||||||
#include "model/CheckServiceLinkedRoleForDeletingRequest.h"
|
#include "model/CheckServiceLinkedRoleForDeletingRequest.h"
|
||||||
@@ -48,16 +50,26 @@
|
|||||||
#include "model/DeleteAlertRulesResult.h"
|
#include "model/DeleteAlertRulesResult.h"
|
||||||
#include "model/DeleteRetcodeAppRequest.h"
|
#include "model/DeleteRetcodeAppRequest.h"
|
||||||
#include "model/DeleteRetcodeAppResult.h"
|
#include "model/DeleteRetcodeAppResult.h"
|
||||||
|
#include "model/DeleteScenarioRequest.h"
|
||||||
|
#include "model/DeleteScenarioResult.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/GetAgentDownloadUrlRequest.h"
|
||||||
|
#include "model/GetAgentDownloadUrlResult.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 +86,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"
|
||||||
@@ -82,8 +96,12 @@
|
|||||||
#include "model/ListPromClustersResult.h"
|
#include "model/ListPromClustersResult.h"
|
||||||
#include "model/ListRetcodeAppsRequest.h"
|
#include "model/ListRetcodeAppsRequest.h"
|
||||||
#include "model/ListRetcodeAppsResult.h"
|
#include "model/ListRetcodeAppsResult.h"
|
||||||
|
#include "model/ListScenarioRequest.h"
|
||||||
|
#include "model/ListScenarioResult.h"
|
||||||
#include "model/ListTraceAppsRequest.h"
|
#include "model/ListTraceAppsRequest.h"
|
||||||
#include "model/ListTraceAppsResult.h"
|
#include "model/ListTraceAppsResult.h"
|
||||||
|
#include "model/OpenArmsServiceRequest.h"
|
||||||
|
#include "model/OpenArmsServiceResult.h"
|
||||||
#include "model/QueryDatasetRequest.h"
|
#include "model/QueryDatasetRequest.h"
|
||||||
#include "model/QueryDatasetResult.h"
|
#include "model/QueryDatasetResult.h"
|
||||||
#include "model/QueryMetricRequest.h"
|
#include "model/QueryMetricRequest.h"
|
||||||
@@ -112,6 +130,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"
|
||||||
@@ -141,6 +163,9 @@ namespace AlibabaCloud
|
|||||||
typedef Outcome<Error, Model::AddIntegrationResult> AddIntegrationOutcome;
|
typedef Outcome<Error, Model::AddIntegrationResult> AddIntegrationOutcome;
|
||||||
typedef std::future<AddIntegrationOutcome> AddIntegrationOutcomeCallable;
|
typedef std::future<AddIntegrationOutcome> AddIntegrationOutcomeCallable;
|
||||||
typedef std::function<void(const ARMSClient*, const Model::AddIntegrationRequest&, const AddIntegrationOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> AddIntegrationAsyncHandler;
|
typedef std::function<void(const ARMSClient*, const Model::AddIntegrationRequest&, const AddIntegrationOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> AddIntegrationAsyncHandler;
|
||||||
|
typedef Outcome<Error, Model::ApplyScenarioResult> ApplyScenarioOutcome;
|
||||||
|
typedef std::future<ApplyScenarioOutcome> ApplyScenarioOutcomeCallable;
|
||||||
|
typedef std::function<void(const ARMSClient*, const Model::ApplyScenarioRequest&, const ApplyScenarioOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ApplyScenarioAsyncHandler;
|
||||||
typedef Outcome<Error, Model::CheckDataConsistencyResult> CheckDataConsistencyOutcome;
|
typedef Outcome<Error, Model::CheckDataConsistencyResult> CheckDataConsistencyOutcome;
|
||||||
typedef std::future<CheckDataConsistencyOutcome> CheckDataConsistencyOutcomeCallable;
|
typedef std::future<CheckDataConsistencyOutcome> CheckDataConsistencyOutcomeCallable;
|
||||||
typedef std::function<void(const ARMSClient*, const Model::CheckDataConsistencyRequest&, const CheckDataConsistencyOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> CheckDataConsistencyAsyncHandler;
|
typedef std::function<void(const ARMSClient*, const Model::CheckDataConsistencyRequest&, const CheckDataConsistencyOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> CheckDataConsistencyAsyncHandler;
|
||||||
@@ -174,21 +199,36 @@ namespace AlibabaCloud
|
|||||||
typedef Outcome<Error, Model::DeleteRetcodeAppResult> DeleteRetcodeAppOutcome;
|
typedef Outcome<Error, Model::DeleteRetcodeAppResult> DeleteRetcodeAppOutcome;
|
||||||
typedef std::future<DeleteRetcodeAppOutcome> DeleteRetcodeAppOutcomeCallable;
|
typedef std::future<DeleteRetcodeAppOutcome> DeleteRetcodeAppOutcomeCallable;
|
||||||
typedef std::function<void(const ARMSClient*, const Model::DeleteRetcodeAppRequest&, const DeleteRetcodeAppOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DeleteRetcodeAppAsyncHandler;
|
typedef std::function<void(const ARMSClient*, const Model::DeleteRetcodeAppRequest&, const DeleteRetcodeAppOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DeleteRetcodeAppAsyncHandler;
|
||||||
|
typedef Outcome<Error, Model::DeleteScenarioResult> DeleteScenarioOutcome;
|
||||||
|
typedef std::future<DeleteScenarioOutcome> DeleteScenarioOutcomeCallable;
|
||||||
|
typedef std::function<void(const ARMSClient*, const Model::DeleteScenarioRequest&, const DeleteScenarioOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DeleteScenarioAsyncHandler;
|
||||||
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::GetAgentDownloadUrlResult> GetAgentDownloadUrlOutcome;
|
||||||
|
typedef std::future<GetAgentDownloadUrlOutcome> GetAgentDownloadUrlOutcomeCallable;
|
||||||
|
typedef std::function<void(const ARMSClient*, const Model::GetAgentDownloadUrlRequest&, const GetAgentDownloadUrlOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetAgentDownloadUrlAsyncHandler;
|
||||||
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 +253,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;
|
||||||
@@ -225,9 +268,15 @@ namespace AlibabaCloud
|
|||||||
typedef Outcome<Error, Model::ListRetcodeAppsResult> ListRetcodeAppsOutcome;
|
typedef Outcome<Error, Model::ListRetcodeAppsResult> ListRetcodeAppsOutcome;
|
||||||
typedef std::future<ListRetcodeAppsOutcome> ListRetcodeAppsOutcomeCallable;
|
typedef std::future<ListRetcodeAppsOutcome> ListRetcodeAppsOutcomeCallable;
|
||||||
typedef std::function<void(const ARMSClient*, const Model::ListRetcodeAppsRequest&, const ListRetcodeAppsOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ListRetcodeAppsAsyncHandler;
|
typedef std::function<void(const ARMSClient*, const Model::ListRetcodeAppsRequest&, const ListRetcodeAppsOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ListRetcodeAppsAsyncHandler;
|
||||||
|
typedef Outcome<Error, Model::ListScenarioResult> ListScenarioOutcome;
|
||||||
|
typedef std::future<ListScenarioOutcome> ListScenarioOutcomeCallable;
|
||||||
|
typedef std::function<void(const ARMSClient*, const Model::ListScenarioRequest&, const ListScenarioOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ListScenarioAsyncHandler;
|
||||||
typedef Outcome<Error, Model::ListTraceAppsResult> ListTraceAppsOutcome;
|
typedef Outcome<Error, Model::ListTraceAppsResult> ListTraceAppsOutcome;
|
||||||
typedef std::future<ListTraceAppsOutcome> ListTraceAppsOutcomeCallable;
|
typedef std::future<ListTraceAppsOutcome> ListTraceAppsOutcomeCallable;
|
||||||
typedef std::function<void(const ARMSClient*, const Model::ListTraceAppsRequest&, const ListTraceAppsOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ListTraceAppsAsyncHandler;
|
typedef std::function<void(const ARMSClient*, const Model::ListTraceAppsRequest&, const ListTraceAppsOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ListTraceAppsAsyncHandler;
|
||||||
|
typedef Outcome<Error, Model::OpenArmsServiceResult> OpenArmsServiceOutcome;
|
||||||
|
typedef std::future<OpenArmsServiceOutcome> OpenArmsServiceOutcomeCallable;
|
||||||
|
typedef std::function<void(const ARMSClient*, const Model::OpenArmsServiceRequest&, const OpenArmsServiceOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> OpenArmsServiceAsyncHandler;
|
||||||
typedef Outcome<Error, Model::QueryDatasetResult> QueryDatasetOutcome;
|
typedef Outcome<Error, Model::QueryDatasetResult> QueryDatasetOutcome;
|
||||||
typedef std::future<QueryDatasetOutcome> QueryDatasetOutcomeCallable;
|
typedef std::future<QueryDatasetOutcome> QueryDatasetOutcomeCallable;
|
||||||
typedef std::function<void(const ARMSClient*, const Model::QueryDatasetRequest&, const QueryDatasetOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> QueryDatasetAsyncHandler;
|
typedef std::function<void(const ARMSClient*, const Model::QueryDatasetRequest&, const QueryDatasetOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> QueryDatasetAsyncHandler;
|
||||||
@@ -270,6 +319,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;
|
||||||
@@ -302,6 +357,9 @@ namespace AlibabaCloud
|
|||||||
AddIntegrationOutcome addIntegration(const Model::AddIntegrationRequest &request)const;
|
AddIntegrationOutcome addIntegration(const Model::AddIntegrationRequest &request)const;
|
||||||
void addIntegrationAsync(const Model::AddIntegrationRequest& request, const AddIntegrationAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
void addIntegrationAsync(const Model::AddIntegrationRequest& request, const AddIntegrationAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||||
AddIntegrationOutcomeCallable addIntegrationCallable(const Model::AddIntegrationRequest& request) const;
|
AddIntegrationOutcomeCallable addIntegrationCallable(const Model::AddIntegrationRequest& request) const;
|
||||||
|
ApplyScenarioOutcome applyScenario(const Model::ApplyScenarioRequest &request)const;
|
||||||
|
void applyScenarioAsync(const Model::ApplyScenarioRequest& request, const ApplyScenarioAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||||
|
ApplyScenarioOutcomeCallable applyScenarioCallable(const Model::ApplyScenarioRequest& request) const;
|
||||||
CheckDataConsistencyOutcome checkDataConsistency(const Model::CheckDataConsistencyRequest &request)const;
|
CheckDataConsistencyOutcome checkDataConsistency(const Model::CheckDataConsistencyRequest &request)const;
|
||||||
void checkDataConsistencyAsync(const Model::CheckDataConsistencyRequest& request, const CheckDataConsistencyAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
void checkDataConsistencyAsync(const Model::CheckDataConsistencyRequest& request, const CheckDataConsistencyAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||||
CheckDataConsistencyOutcomeCallable checkDataConsistencyCallable(const Model::CheckDataConsistencyRequest& request) const;
|
CheckDataConsistencyOutcomeCallable checkDataConsistencyCallable(const Model::CheckDataConsistencyRequest& request) const;
|
||||||
@@ -335,21 +393,36 @@ namespace AlibabaCloud
|
|||||||
DeleteRetcodeAppOutcome deleteRetcodeApp(const Model::DeleteRetcodeAppRequest &request)const;
|
DeleteRetcodeAppOutcome deleteRetcodeApp(const Model::DeleteRetcodeAppRequest &request)const;
|
||||||
void deleteRetcodeAppAsync(const Model::DeleteRetcodeAppRequest& request, const DeleteRetcodeAppAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
void deleteRetcodeAppAsync(const Model::DeleteRetcodeAppRequest& request, const DeleteRetcodeAppAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||||
DeleteRetcodeAppOutcomeCallable deleteRetcodeAppCallable(const Model::DeleteRetcodeAppRequest& request) const;
|
DeleteRetcodeAppOutcomeCallable deleteRetcodeAppCallable(const Model::DeleteRetcodeAppRequest& request) const;
|
||||||
|
DeleteScenarioOutcome deleteScenario(const Model::DeleteScenarioRequest &request)const;
|
||||||
|
void deleteScenarioAsync(const Model::DeleteScenarioRequest& request, const DeleteScenarioAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||||
|
DeleteScenarioOutcomeCallable deleteScenarioCallable(const Model::DeleteScenarioRequest& request) const;
|
||||||
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;
|
||||||
|
GetAgentDownloadUrlOutcome getAgentDownloadUrl(const Model::GetAgentDownloadUrlRequest &request)const;
|
||||||
|
void getAgentDownloadUrlAsync(const Model::GetAgentDownloadUrlRequest& request, const GetAgentDownloadUrlAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||||
|
GetAgentDownloadUrlOutcomeCallable getAgentDownloadUrlCallable(const Model::GetAgentDownloadUrlRequest& 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 +447,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;
|
||||||
@@ -386,9 +462,15 @@ namespace AlibabaCloud
|
|||||||
ListRetcodeAppsOutcome listRetcodeApps(const Model::ListRetcodeAppsRequest &request)const;
|
ListRetcodeAppsOutcome listRetcodeApps(const Model::ListRetcodeAppsRequest &request)const;
|
||||||
void listRetcodeAppsAsync(const Model::ListRetcodeAppsRequest& request, const ListRetcodeAppsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
void listRetcodeAppsAsync(const Model::ListRetcodeAppsRequest& request, const ListRetcodeAppsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||||
ListRetcodeAppsOutcomeCallable listRetcodeAppsCallable(const Model::ListRetcodeAppsRequest& request) const;
|
ListRetcodeAppsOutcomeCallable listRetcodeAppsCallable(const Model::ListRetcodeAppsRequest& request) const;
|
||||||
|
ListScenarioOutcome listScenario(const Model::ListScenarioRequest &request)const;
|
||||||
|
void listScenarioAsync(const Model::ListScenarioRequest& request, const ListScenarioAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||||
|
ListScenarioOutcomeCallable listScenarioCallable(const Model::ListScenarioRequest& request) const;
|
||||||
ListTraceAppsOutcome listTraceApps(const Model::ListTraceAppsRequest &request)const;
|
ListTraceAppsOutcome listTraceApps(const Model::ListTraceAppsRequest &request)const;
|
||||||
void listTraceAppsAsync(const Model::ListTraceAppsRequest& request, const ListTraceAppsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
void listTraceAppsAsync(const Model::ListTraceAppsRequest& request, const ListTraceAppsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||||
ListTraceAppsOutcomeCallable listTraceAppsCallable(const Model::ListTraceAppsRequest& request) const;
|
ListTraceAppsOutcomeCallable listTraceAppsCallable(const Model::ListTraceAppsRequest& request) const;
|
||||||
|
OpenArmsServiceOutcome openArmsService(const Model::OpenArmsServiceRequest &request)const;
|
||||||
|
void openArmsServiceAsync(const Model::OpenArmsServiceRequest& request, const OpenArmsServiceAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||||
|
OpenArmsServiceOutcomeCallable openArmsServiceCallable(const Model::OpenArmsServiceRequest& request) const;
|
||||||
QueryDatasetOutcome queryDataset(const Model::QueryDatasetRequest &request)const;
|
QueryDatasetOutcome queryDataset(const Model::QueryDatasetRequest &request)const;
|
||||||
void queryDatasetAsync(const Model::QueryDatasetRequest& request, const QueryDatasetAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
void queryDatasetAsync(const Model::QueryDatasetRequest& request, const QueryDatasetAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||||
QueryDatasetOutcomeCallable queryDatasetCallable(const Model::QueryDatasetRequest& request) const;
|
QueryDatasetOutcomeCallable queryDatasetCallable(const Model::QueryDatasetRequest& request) const;
|
||||||
@@ -431,6 +513,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;
|
||||||
|
|||||||
78
arms/include/alibabacloud/arms/model/ApplyScenarioRequest.h
Normal file
78
arms/include/alibabacloud/arms/model/ApplyScenarioRequest.h
Normal file
@@ -0,0 +1,78 @@
|
|||||||
|
/*
|
||||||
|
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||||
|
*
|
||||||
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
|
* you may not use this file except in compliance with the License.
|
||||||
|
* You may obtain a copy of the License at
|
||||||
|
*
|
||||||
|
* http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
*
|
||||||
|
* Unless required by applicable law or agreed to in writing, software
|
||||||
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
|
* See the License for the specific language governing permissions and
|
||||||
|
* limitations under the License.
|
||||||
|
*/
|
||||||
|
|
||||||
|
#ifndef ALIBABACLOUD_ARMS_MODEL_APPLYSCENARIOREQUEST_H_
|
||||||
|
#define ALIBABACLOUD_ARMS_MODEL_APPLYSCENARIOREQUEST_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 ApplyScenarioRequest : public RpcServiceRequest
|
||||||
|
{
|
||||||
|
|
||||||
|
public:
|
||||||
|
ApplyScenarioRequest();
|
||||||
|
~ApplyScenarioRequest();
|
||||||
|
|
||||||
|
bool getSnForce()const;
|
||||||
|
void setSnForce(bool snForce);
|
||||||
|
std::string getSign()const;
|
||||||
|
void setSign(const std::string& sign);
|
||||||
|
bool getSnStat()const;
|
||||||
|
void setSnStat(bool snStat);
|
||||||
|
std::string getRegionId()const;
|
||||||
|
void setRegionId(const std::string& regionId);
|
||||||
|
std::string getScenario()const;
|
||||||
|
void setScenario(const std::string& scenario);
|
||||||
|
bool getSnDump()const;
|
||||||
|
void setSnDump(bool snDump);
|
||||||
|
std::string getAppId()const;
|
||||||
|
void setAppId(const std::string& appId);
|
||||||
|
std::string getName()const;
|
||||||
|
void setName(const std::string& name);
|
||||||
|
bool getSnTransfer()const;
|
||||||
|
void setSnTransfer(bool snTransfer);
|
||||||
|
bool getUpdateOption()const;
|
||||||
|
void setUpdateOption(bool updateOption);
|
||||||
|
std::string getConfig()const;
|
||||||
|
void setConfig(const std::string& config);
|
||||||
|
|
||||||
|
private:
|
||||||
|
bool snForce_;
|
||||||
|
std::string sign_;
|
||||||
|
bool snStat_;
|
||||||
|
std::string regionId_;
|
||||||
|
std::string scenario_;
|
||||||
|
bool snDump_;
|
||||||
|
std::string appId_;
|
||||||
|
std::string name_;
|
||||||
|
bool snTransfer_;
|
||||||
|
bool updateOption_;
|
||||||
|
std::string config_;
|
||||||
|
|
||||||
|
};
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
#endif // !ALIBABACLOUD_ARMS_MODEL_APPLYSCENARIOREQUEST_H_
|
||||||
51
arms/include/alibabacloud/arms/model/ApplyScenarioResult.h
Normal file
51
arms/include/alibabacloud/arms/model/ApplyScenarioResult.h
Normal file
@@ -0,0 +1,51 @@
|
|||||||
|
/*
|
||||||
|
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||||
|
*
|
||||||
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
|
* you may not use this file except in compliance with the License.
|
||||||
|
* You may obtain a copy of the License at
|
||||||
|
*
|
||||||
|
* http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
*
|
||||||
|
* Unless required by applicable law or agreed to in writing, software
|
||||||
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
|
* See the License for the specific language governing permissions and
|
||||||
|
* limitations under the License.
|
||||||
|
*/
|
||||||
|
|
||||||
|
#ifndef ALIBABACLOUD_ARMS_MODEL_APPLYSCENARIORESULT_H_
|
||||||
|
#define ALIBABACLOUD_ARMS_MODEL_APPLYSCENARIORESULT_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 ApplyScenarioResult : public ServiceResult
|
||||||
|
{
|
||||||
|
public:
|
||||||
|
|
||||||
|
|
||||||
|
ApplyScenarioResult();
|
||||||
|
explicit ApplyScenarioResult(const std::string &payload);
|
||||||
|
~ApplyScenarioResult();
|
||||||
|
std::string getResult()const;
|
||||||
|
|
||||||
|
protected:
|
||||||
|
void parse(const std::string &payload);
|
||||||
|
private:
|
||||||
|
std::string result_;
|
||||||
|
|
||||||
|
};
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
#endif // !ALIBABACLOUD_ARMS_MODEL_APPLYSCENARIORESULT_H_
|
||||||
@@ -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_;
|
||||||
|
|||||||
48
arms/include/alibabacloud/arms/model/DeleteScenarioRequest.h
Normal file
48
arms/include/alibabacloud/arms/model/DeleteScenarioRequest.h
Normal file
@@ -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_ARMS_MODEL_DELETESCENARIOREQUEST_H_
|
||||||
|
#define ALIBABACLOUD_ARMS_MODEL_DELETESCENARIOREQUEST_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 DeleteScenarioRequest : public RpcServiceRequest
|
||||||
|
{
|
||||||
|
|
||||||
|
public:
|
||||||
|
DeleteScenarioRequest();
|
||||||
|
~DeleteScenarioRequest();
|
||||||
|
|
||||||
|
long getScenarioId()const;
|
||||||
|
void setScenarioId(long scenarioId);
|
||||||
|
|
||||||
|
private:
|
||||||
|
long scenarioId_;
|
||||||
|
|
||||||
|
};
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
#endif // !ALIBABACLOUD_ARMS_MODEL_DELETESCENARIOREQUEST_H_
|
||||||
51
arms/include/alibabacloud/arms/model/DeleteScenarioResult.h
Normal file
51
arms/include/alibabacloud/arms/model/DeleteScenarioResult.h
Normal file
@@ -0,0 +1,51 @@
|
|||||||
|
/*
|
||||||
|
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||||
|
*
|
||||||
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
|
* you may not use this file except in compliance with the License.
|
||||||
|
* You may obtain a copy of the License at
|
||||||
|
*
|
||||||
|
* http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
*
|
||||||
|
* Unless required by applicable law or agreed to in writing, software
|
||||||
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
|
* See the License for the specific language governing permissions and
|
||||||
|
* limitations under the License.
|
||||||
|
*/
|
||||||
|
|
||||||
|
#ifndef ALIBABACLOUD_ARMS_MODEL_DELETESCENARIORESULT_H_
|
||||||
|
#define ALIBABACLOUD_ARMS_MODEL_DELETESCENARIORESULT_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 DeleteScenarioResult : public ServiceResult
|
||||||
|
{
|
||||||
|
public:
|
||||||
|
|
||||||
|
|
||||||
|
DeleteScenarioResult();
|
||||||
|
explicit DeleteScenarioResult(const std::string &payload);
|
||||||
|
~DeleteScenarioResult();
|
||||||
|
bool getResult()const;
|
||||||
|
|
||||||
|
protected:
|
||||||
|
void parse(const std::string &payload);
|
||||||
|
private:
|
||||||
|
bool result_;
|
||||||
|
|
||||||
|
};
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
#endif // !ALIBABACLOUD_ARMS_MODEL_DELETESCENARIORESULT_H_
|
||||||
@@ -0,0 +1,54 @@
|
|||||||
|
/*
|
||||||
|
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||||
|
*
|
||||||
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
|
* you may not use this file except in compliance with the License.
|
||||||
|
* You may obtain a copy of the License at
|
||||||
|
*
|
||||||
|
* http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
*
|
||||||
|
* Unless required by applicable law or agreed to in writing, software
|
||||||
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
|
* See the License for the specific language governing permissions and
|
||||||
|
* limitations under the License.
|
||||||
|
*/
|
||||||
|
|
||||||
|
#ifndef ALIBABACLOUD_ARMS_MODEL_DESCRIBEDISPATCHRULEREQUEST_H_
|
||||||
|
#define ALIBABACLOUD_ARMS_MODEL_DESCRIBEDISPATCHRULEREQUEST_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 DescribeDispatchRuleRequest : public RpcServiceRequest
|
||||||
|
{
|
||||||
|
|
||||||
|
public:
|
||||||
|
DescribeDispatchRuleRequest();
|
||||||
|
~DescribeDispatchRuleRequest();
|
||||||
|
|
||||||
|
std::string getRegionId()const;
|
||||||
|
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:
|
||||||
|
std::string regionId_;
|
||||||
|
std::string id_;
|
||||||
|
std::string proxyUserId_;
|
||||||
|
|
||||||
|
};
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
#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_
|
||||||
@@ -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_EXPORTPROMETHEUSRULESREQUEST_H_
|
||||||
|
#define ALIBABACLOUD_ARMS_MODEL_EXPORTPROMETHEUSRULESREQUEST_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 ExportPrometheusRulesRequest : public RpcServiceRequest
|
||||||
|
{
|
||||||
|
|
||||||
|
public:
|
||||||
|
ExportPrometheusRulesRequest();
|
||||||
|
~ExportPrometheusRulesRequest();
|
||||||
|
|
||||||
|
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);
|
||||||
|
|
||||||
|
private:
|
||||||
|
std::string regionId_;
|
||||||
|
std::string _nameSpace_;
|
||||||
|
std::string name_;
|
||||||
|
std::string clusterId_;
|
||||||
|
|
||||||
|
};
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
#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_
|
||||||
@@ -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_ARMS_MODEL_GETAGENTDOWNLOADURLREQUEST_H_
|
||||||
|
#define ALIBABACLOUD_ARMS_MODEL_GETAGENTDOWNLOADURLREQUEST_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 GetAgentDownloadUrlRequest : public RpcServiceRequest
|
||||||
|
{
|
||||||
|
|
||||||
|
public:
|
||||||
|
GetAgentDownloadUrlRequest();
|
||||||
|
~GetAgentDownloadUrlRequest();
|
||||||
|
|
||||||
|
std::string getRegionId()const;
|
||||||
|
void setRegionId(const std::string& regionId);
|
||||||
|
|
||||||
|
private:
|
||||||
|
std::string regionId_;
|
||||||
|
|
||||||
|
};
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
#endif // !ALIBABACLOUD_ARMS_MODEL_GETAGENTDOWNLOADURLREQUEST_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_GETAGENTDOWNLOADURLRESULT_H_
|
||||||
|
#define ALIBABACLOUD_ARMS_MODEL_GETAGENTDOWNLOADURLRESULT_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 GetAgentDownloadUrlResult : public ServiceResult
|
||||||
|
{
|
||||||
|
public:
|
||||||
|
|
||||||
|
|
||||||
|
GetAgentDownloadUrlResult();
|
||||||
|
explicit GetAgentDownloadUrlResult(const std::string &payload);
|
||||||
|
~GetAgentDownloadUrlResult();
|
||||||
|
std::string getArmsAgentDownloadUrl()const;
|
||||||
|
|
||||||
|
protected:
|
||||||
|
void parse(const std::string &payload);
|
||||||
|
private:
|
||||||
|
std::string armsAgentDownloadUrl_;
|
||||||
|
|
||||||
|
};
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
#endif // !ALIBABACLOUD_ARMS_MODEL_GETAGENTDOWNLOADURLRESULT_H_
|
||||||
@@ -0,0 +1,54 @@
|
|||||||
|
/*
|
||||||
|
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||||
|
*
|
||||||
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
|
* you may not use this file except in compliance with the License.
|
||||||
|
* You may obtain a copy of the License at
|
||||||
|
*
|
||||||
|
* http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
*
|
||||||
|
* Unless required by applicable law or agreed to in writing, software
|
||||||
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
|
* See the License for the specific language governing permissions and
|
||||||
|
* limitations under the License.
|
||||||
|
*/
|
||||||
|
|
||||||
|
#ifndef ALIBABACLOUD_ARMS_MODEL_GETINTEGRATIONTOKENREQUEST_H_
|
||||||
|
#define ALIBABACLOUD_ARMS_MODEL_GETINTEGRATIONTOKENREQUEST_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 GetIntegrationTokenRequest : public RpcServiceRequest
|
||||||
|
{
|
||||||
|
|
||||||
|
public:
|
||||||
|
GetIntegrationTokenRequest();
|
||||||
|
~GetIntegrationTokenRequest();
|
||||||
|
|
||||||
|
std::string getRegionId()const;
|
||||||
|
void setRegionId(const std::string& regionId);
|
||||||
|
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 proxyUserId_;
|
||||||
|
std::string productType_;
|
||||||
|
|
||||||
|
};
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
#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_
|
||||||
@@ -35,14 +35,20 @@ namespace AlibabaCloud
|
|||||||
ListDashboardsRequest();
|
ListDashboardsRequest();
|
||||||
~ListDashboardsRequest();
|
~ListDashboardsRequest();
|
||||||
|
|
||||||
|
std::string getClusterType()const;
|
||||||
|
void setClusterType(const std::string& clusterType);
|
||||||
std::string getRegionId()const;
|
std::string getRegionId()const;
|
||||||
void setRegionId(const std::string& regionId);
|
void setRegionId(const std::string& regionId);
|
||||||
std::string getClusterId()const;
|
std::string getClusterId()const;
|
||||||
void setClusterId(const std::string& clusterId);
|
void setClusterId(const std::string& clusterId);
|
||||||
|
std::string getTitle()const;
|
||||||
|
void setTitle(const std::string& title);
|
||||||
|
|
||||||
private:
|
private:
|
||||||
|
std::string clusterType_;
|
||||||
std::string regionId_;
|
std::string regionId_;
|
||||||
std::string clusterId_;
|
std::string clusterId_;
|
||||||
|
std::string title_;
|
||||||
|
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
60
arms/include/alibabacloud/arms/model/ListScenarioRequest.h
Normal file
60
arms/include/alibabacloud/arms/model/ListScenarioRequest.h
Normal file
@@ -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_LISTSCENARIOREQUEST_H_
|
||||||
|
#define ALIBABACLOUD_ARMS_MODEL_LISTSCENARIOREQUEST_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 ListScenarioRequest : public RpcServiceRequest
|
||||||
|
{
|
||||||
|
|
||||||
|
public:
|
||||||
|
ListScenarioRequest();
|
||||||
|
~ListScenarioRequest();
|
||||||
|
|
||||||
|
std::string getRegionId()const;
|
||||||
|
void setRegionId(const std::string& regionId);
|
||||||
|
std::string getScenario()const;
|
||||||
|
void setScenario(const std::string& scenario);
|
||||||
|
std::string getAppId()const;
|
||||||
|
void setAppId(const std::string& appId);
|
||||||
|
std::string getName()const;
|
||||||
|
void setName(const std::string& name);
|
||||||
|
std::string getSign()const;
|
||||||
|
void setSign(const std::string& sign);
|
||||||
|
|
||||||
|
private:
|
||||||
|
std::string regionId_;
|
||||||
|
std::string scenario_;
|
||||||
|
std::string appId_;
|
||||||
|
std::string name_;
|
||||||
|
std::string sign_;
|
||||||
|
|
||||||
|
};
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
#endif // !ALIBABACLOUD_ARMS_MODEL_LISTSCENARIOREQUEST_H_
|
||||||
63
arms/include/alibabacloud/arms/model/ListScenarioResult.h
Normal file
63
arms/include/alibabacloud/arms/model/ListScenarioResult.h
Normal file
@@ -0,0 +1,63 @@
|
|||||||
|
/*
|
||||||
|
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||||
|
*
|
||||||
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
|
* you may not use this file except in compliance with the License.
|
||||||
|
* You may obtain a copy of the License at
|
||||||
|
*
|
||||||
|
* http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
*
|
||||||
|
* Unless required by applicable law or agreed to in writing, software
|
||||||
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
|
* See the License for the specific language governing permissions and
|
||||||
|
* limitations under the License.
|
||||||
|
*/
|
||||||
|
|
||||||
|
#ifndef ALIBABACLOUD_ARMS_MODEL_LISTSCENARIORESULT_H_
|
||||||
|
#define ALIBABACLOUD_ARMS_MODEL_LISTSCENARIORESULT_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 ListScenarioResult : public ServiceResult
|
||||||
|
{
|
||||||
|
public:
|
||||||
|
struct ArmsScenariosItem
|
||||||
|
{
|
||||||
|
std::string appId;
|
||||||
|
std::string userId;
|
||||||
|
std::string createTime;
|
||||||
|
std::string updateTime;
|
||||||
|
std::string sign;
|
||||||
|
long id;
|
||||||
|
std::string regionId;
|
||||||
|
std::string extensions;
|
||||||
|
std::string name;
|
||||||
|
};
|
||||||
|
|
||||||
|
|
||||||
|
ListScenarioResult();
|
||||||
|
explicit ListScenarioResult(const std::string &payload);
|
||||||
|
~ListScenarioResult();
|
||||||
|
std::vector<ArmsScenariosItem> getArmsScenarios()const;
|
||||||
|
|
||||||
|
protected:
|
||||||
|
void parse(const std::string &payload);
|
||||||
|
private:
|
||||||
|
std::vector<ArmsScenariosItem> armsScenarios_;
|
||||||
|
|
||||||
|
};
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
#endif // !ALIBABACLOUD_ARMS_MODEL_LISTSCENARIORESULT_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_OPENARMSSERVICEREQUEST_H_
|
||||||
|
#define ALIBABACLOUD_ARMS_MODEL_OPENARMSSERVICEREQUEST_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 OpenArmsServiceRequest : public RpcServiceRequest
|
||||||
|
{
|
||||||
|
|
||||||
|
public:
|
||||||
|
OpenArmsServiceRequest();
|
||||||
|
~OpenArmsServiceRequest();
|
||||||
|
|
||||||
|
long getOwnerId()const;
|
||||||
|
void setOwnerId(long ownerId);
|
||||||
|
std::string getType()const;
|
||||||
|
void setType(const std::string& type);
|
||||||
|
|
||||||
|
private:
|
||||||
|
long ownerId_;
|
||||||
|
std::string type_;
|
||||||
|
|
||||||
|
};
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
#endif // !ALIBABACLOUD_ARMS_MODEL_OPENARMSSERVICEREQUEST_H_
|
||||||
51
arms/include/alibabacloud/arms/model/OpenArmsServiceResult.h
Normal file
51
arms/include/alibabacloud/arms/model/OpenArmsServiceResult.h
Normal file
@@ -0,0 +1,51 @@
|
|||||||
|
/*
|
||||||
|
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||||
|
*
|
||||||
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
|
* you may not use this file except in compliance with the License.
|
||||||
|
* You may obtain a copy of the License at
|
||||||
|
*
|
||||||
|
* http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
*
|
||||||
|
* Unless required by applicable law or agreed to in writing, software
|
||||||
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
|
* See the License for the specific language governing permissions and
|
||||||
|
* limitations under the License.
|
||||||
|
*/
|
||||||
|
|
||||||
|
#ifndef ALIBABACLOUD_ARMS_MODEL_OPENARMSSERVICERESULT_H_
|
||||||
|
#define ALIBABACLOUD_ARMS_MODEL_OPENARMSSERVICERESULT_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 OpenArmsServiceResult : public ServiceResult
|
||||||
|
{
|
||||||
|
public:
|
||||||
|
|
||||||
|
|
||||||
|
OpenArmsServiceResult();
|
||||||
|
explicit OpenArmsServiceResult(const std::string &payload);
|
||||||
|
~OpenArmsServiceResult();
|
||||||
|
std::string getOrderId()const;
|
||||||
|
|
||||||
|
protected:
|
||||||
|
void parse(const std::string &payload);
|
||||||
|
private:
|
||||||
|
std::string orderId_;
|
||||||
|
|
||||||
|
};
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
#endif // !ALIBABACLOUD_ARMS_MODEL_OPENARMSSERVICERESULT_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_
|
||||||
@@ -0,0 +1,54 @@
|
|||||||
|
/*
|
||||||
|
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||||
|
*
|
||||||
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
|
* you may not use this file except in compliance with the License.
|
||||||
|
* You may obtain a copy of the License at
|
||||||
|
*
|
||||||
|
* http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
*
|
||||||
|
* Unless required by applicable law or agreed to in writing, software
|
||||||
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
|
* See the License for the specific language governing permissions and
|
||||||
|
* limitations under the License.
|
||||||
|
*/
|
||||||
|
|
||||||
|
#ifndef ALIBABACLOUD_ARMS_MODEL_SENDMSEINCIDENTREQUEST_H_
|
||||||
|
#define ALIBABACLOUD_ARMS_MODEL_SENDMSEINCIDENTREQUEST_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 SendMseIncidentRequest : public RpcServiceRequest
|
||||||
|
{
|
||||||
|
|
||||||
|
public:
|
||||||
|
SendMseIncidentRequest();
|
||||||
|
~SendMseIncidentRequest();
|
||||||
|
|
||||||
|
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);
|
||||||
|
|
||||||
|
private:
|
||||||
|
std::string regionId_;
|
||||||
|
std::string incidents_;
|
||||||
|
std::string proxyUserId_;
|
||||||
|
|
||||||
|
};
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
#endif // !ALIBABACLOUD_ARMS_MODEL_SENDMSEINCIDENTREQUEST_H_
|
||||||
51
arms/include/alibabacloud/arms/model/SendMseIncidentResult.h
Normal file
51
arms/include/alibabacloud/arms/model/SendMseIncidentResult.h
Normal file
@@ -0,0 +1,51 @@
|
|||||||
|
/*
|
||||||
|
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||||
|
*
|
||||||
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
|
* you may not use this file except in compliance with the License.
|
||||||
|
* You may obtain a copy of the License at
|
||||||
|
*
|
||||||
|
* http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
*
|
||||||
|
* Unless required by applicable law or agreed to in writing, software
|
||||||
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
|
* See the License for the specific language governing permissions and
|
||||||
|
* limitations under the License.
|
||||||
|
*/
|
||||||
|
|
||||||
|
#ifndef ALIBABACLOUD_ARMS_MODEL_SENDMSEINCIDENTRESULT_H_
|
||||||
|
#define ALIBABACLOUD_ARMS_MODEL_SENDMSEINCIDENTRESULT_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 SendMseIncidentResult : public ServiceResult
|
||||||
|
{
|
||||||
|
public:
|
||||||
|
|
||||||
|
|
||||||
|
SendMseIncidentResult();
|
||||||
|
explicit SendMseIncidentResult(const std::string &payload);
|
||||||
|
~SendMseIncidentResult();
|
||||||
|
bool getSuccess()const;
|
||||||
|
|
||||||
|
protected:
|
||||||
|
void parse(const std::string &payload);
|
||||||
|
private:
|
||||||
|
bool success_;
|
||||||
|
|
||||||
|
};
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
#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_;
|
||||||
|
|||||||
@@ -123,6 +123,42 @@ ARMSClient::AddIntegrationOutcomeCallable ARMSClient::addIntegrationCallable(con
|
|||||||
return task->get_future();
|
return task->get_future();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
ARMSClient::ApplyScenarioOutcome ARMSClient::applyScenario(const ApplyScenarioRequest &request) const
|
||||||
|
{
|
||||||
|
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||||
|
if (!endpointOutcome.isSuccess())
|
||||||
|
return ApplyScenarioOutcome(endpointOutcome.error());
|
||||||
|
|
||||||
|
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||||
|
|
||||||
|
if (outcome.isSuccess())
|
||||||
|
return ApplyScenarioOutcome(ApplyScenarioResult(outcome.result()));
|
||||||
|
else
|
||||||
|
return ApplyScenarioOutcome(outcome.error());
|
||||||
|
}
|
||||||
|
|
||||||
|
void ARMSClient::applyScenarioAsync(const ApplyScenarioRequest& request, const ApplyScenarioAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||||
|
{
|
||||||
|
auto fn = [this, request, handler, context]()
|
||||||
|
{
|
||||||
|
handler(this, request, applyScenario(request), context);
|
||||||
|
};
|
||||||
|
|
||||||
|
asyncExecute(new Runnable(fn));
|
||||||
|
}
|
||||||
|
|
||||||
|
ARMSClient::ApplyScenarioOutcomeCallable ARMSClient::applyScenarioCallable(const ApplyScenarioRequest &request) const
|
||||||
|
{
|
||||||
|
auto task = std::make_shared<std::packaged_task<ApplyScenarioOutcome()>>(
|
||||||
|
[this, request]()
|
||||||
|
{
|
||||||
|
return this->applyScenario(request);
|
||||||
|
});
|
||||||
|
|
||||||
|
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||||
|
return task->get_future();
|
||||||
|
}
|
||||||
|
|
||||||
ARMSClient::CheckDataConsistencyOutcome ARMSClient::checkDataConsistency(const CheckDataConsistencyRequest &request) const
|
ARMSClient::CheckDataConsistencyOutcome ARMSClient::checkDataConsistency(const CheckDataConsistencyRequest &request) const
|
||||||
{
|
{
|
||||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||||
@@ -519,6 +555,42 @@ ARMSClient::DeleteRetcodeAppOutcomeCallable ARMSClient::deleteRetcodeAppCallable
|
|||||||
return task->get_future();
|
return task->get_future();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
ARMSClient::DeleteScenarioOutcome ARMSClient::deleteScenario(const DeleteScenarioRequest &request) const
|
||||||
|
{
|
||||||
|
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||||
|
if (!endpointOutcome.isSuccess())
|
||||||
|
return DeleteScenarioOutcome(endpointOutcome.error());
|
||||||
|
|
||||||
|
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||||
|
|
||||||
|
if (outcome.isSuccess())
|
||||||
|
return DeleteScenarioOutcome(DeleteScenarioResult(outcome.result()));
|
||||||
|
else
|
||||||
|
return DeleteScenarioOutcome(outcome.error());
|
||||||
|
}
|
||||||
|
|
||||||
|
void ARMSClient::deleteScenarioAsync(const DeleteScenarioRequest& request, const DeleteScenarioAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||||
|
{
|
||||||
|
auto fn = [this, request, handler, context]()
|
||||||
|
{
|
||||||
|
handler(this, request, deleteScenario(request), context);
|
||||||
|
};
|
||||||
|
|
||||||
|
asyncExecute(new Runnable(fn));
|
||||||
|
}
|
||||||
|
|
||||||
|
ARMSClient::DeleteScenarioOutcomeCallable ARMSClient::deleteScenarioCallable(const DeleteScenarioRequest &request) const
|
||||||
|
{
|
||||||
|
auto task = std::make_shared<std::packaged_task<DeleteScenarioOutcome()>>(
|
||||||
|
[this, request]()
|
||||||
|
{
|
||||||
|
return this->deleteScenario(request);
|
||||||
|
});
|
||||||
|
|
||||||
|
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||||
|
return task->get_future();
|
||||||
|
}
|
||||||
|
|
||||||
ARMSClient::DeleteTraceAppOutcome ARMSClient::deleteTraceApp(const DeleteTraceAppRequest &request) const
|
ARMSClient::DeleteTraceAppOutcome ARMSClient::deleteTraceApp(const DeleteTraceAppRequest &request) const
|
||||||
{
|
{
|
||||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||||
@@ -555,6 +627,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 +735,78 @@ 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::GetAgentDownloadUrlOutcome ARMSClient::getAgentDownloadUrl(const GetAgentDownloadUrlRequest &request) const
|
||||||
|
{
|
||||||
|
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||||
|
if (!endpointOutcome.isSuccess())
|
||||||
|
return GetAgentDownloadUrlOutcome(endpointOutcome.error());
|
||||||
|
|
||||||
|
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||||
|
|
||||||
|
if (outcome.isSuccess())
|
||||||
|
return GetAgentDownloadUrlOutcome(GetAgentDownloadUrlResult(outcome.result()));
|
||||||
|
else
|
||||||
|
return GetAgentDownloadUrlOutcome(outcome.error());
|
||||||
|
}
|
||||||
|
|
||||||
|
void ARMSClient::getAgentDownloadUrlAsync(const GetAgentDownloadUrlRequest& request, const GetAgentDownloadUrlAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||||
|
{
|
||||||
|
auto fn = [this, request, handler, context]()
|
||||||
|
{
|
||||||
|
handler(this, request, getAgentDownloadUrl(request), context);
|
||||||
|
};
|
||||||
|
|
||||||
|
asyncExecute(new Runnable(fn));
|
||||||
|
}
|
||||||
|
|
||||||
|
ARMSClient::GetAgentDownloadUrlOutcomeCallable ARMSClient::getAgentDownloadUrlCallable(const GetAgentDownloadUrlRequest &request) const
|
||||||
|
{
|
||||||
|
auto task = std::make_shared<std::packaged_task<GetAgentDownloadUrlOutcome()>>(
|
||||||
|
[this, request]()
|
||||||
|
{
|
||||||
|
return this->getAgentDownloadUrl(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 +879,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 +1203,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();
|
||||||
@@ -1131,6 +1383,42 @@ ARMSClient::ListRetcodeAppsOutcomeCallable ARMSClient::listRetcodeAppsCallable(c
|
|||||||
return task->get_future();
|
return task->get_future();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
ARMSClient::ListScenarioOutcome ARMSClient::listScenario(const ListScenarioRequest &request) const
|
||||||
|
{
|
||||||
|
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||||
|
if (!endpointOutcome.isSuccess())
|
||||||
|
return ListScenarioOutcome(endpointOutcome.error());
|
||||||
|
|
||||||
|
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||||
|
|
||||||
|
if (outcome.isSuccess())
|
||||||
|
return ListScenarioOutcome(ListScenarioResult(outcome.result()));
|
||||||
|
else
|
||||||
|
return ListScenarioOutcome(outcome.error());
|
||||||
|
}
|
||||||
|
|
||||||
|
void ARMSClient::listScenarioAsync(const ListScenarioRequest& request, const ListScenarioAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||||
|
{
|
||||||
|
auto fn = [this, request, handler, context]()
|
||||||
|
{
|
||||||
|
handler(this, request, listScenario(request), context);
|
||||||
|
};
|
||||||
|
|
||||||
|
asyncExecute(new Runnable(fn));
|
||||||
|
}
|
||||||
|
|
||||||
|
ARMSClient::ListScenarioOutcomeCallable ARMSClient::listScenarioCallable(const ListScenarioRequest &request) const
|
||||||
|
{
|
||||||
|
auto task = std::make_shared<std::packaged_task<ListScenarioOutcome()>>(
|
||||||
|
[this, request]()
|
||||||
|
{
|
||||||
|
return this->listScenario(request);
|
||||||
|
});
|
||||||
|
|
||||||
|
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||||
|
return task->get_future();
|
||||||
|
}
|
||||||
|
|
||||||
ARMSClient::ListTraceAppsOutcome ARMSClient::listTraceApps(const ListTraceAppsRequest &request) const
|
ARMSClient::ListTraceAppsOutcome ARMSClient::listTraceApps(const ListTraceAppsRequest &request) const
|
||||||
{
|
{
|
||||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||||
@@ -1167,6 +1455,42 @@ ARMSClient::ListTraceAppsOutcomeCallable ARMSClient::listTraceAppsCallable(const
|
|||||||
return task->get_future();
|
return task->get_future();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
ARMSClient::OpenArmsServiceOutcome ARMSClient::openArmsService(const OpenArmsServiceRequest &request) const
|
||||||
|
{
|
||||||
|
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||||
|
if (!endpointOutcome.isSuccess())
|
||||||
|
return OpenArmsServiceOutcome(endpointOutcome.error());
|
||||||
|
|
||||||
|
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||||
|
|
||||||
|
if (outcome.isSuccess())
|
||||||
|
return OpenArmsServiceOutcome(OpenArmsServiceResult(outcome.result()));
|
||||||
|
else
|
||||||
|
return OpenArmsServiceOutcome(outcome.error());
|
||||||
|
}
|
||||||
|
|
||||||
|
void ARMSClient::openArmsServiceAsync(const OpenArmsServiceRequest& request, const OpenArmsServiceAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||||
|
{
|
||||||
|
auto fn = [this, request, handler, context]()
|
||||||
|
{
|
||||||
|
handler(this, request, openArmsService(request), context);
|
||||||
|
};
|
||||||
|
|
||||||
|
asyncExecute(new Runnable(fn));
|
||||||
|
}
|
||||||
|
|
||||||
|
ARMSClient::OpenArmsServiceOutcomeCallable ARMSClient::openArmsServiceCallable(const OpenArmsServiceRequest &request) const
|
||||||
|
{
|
||||||
|
auto task = std::make_shared<std::packaged_task<OpenArmsServiceOutcome()>>(
|
||||||
|
[this, request]()
|
||||||
|
{
|
||||||
|
return this->openArmsService(request);
|
||||||
|
});
|
||||||
|
|
||||||
|
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||||
|
return task->get_future();
|
||||||
|
}
|
||||||
|
|
||||||
ARMSClient::QueryDatasetOutcome ARMSClient::queryDataset(const QueryDatasetRequest &request) const
|
ARMSClient::QueryDatasetOutcome ARMSClient::queryDataset(const QueryDatasetRequest &request) const
|
||||||
{
|
{
|
||||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||||
@@ -1671,6 +1995,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();
|
||||||
|
|||||||
150
arms/src/model/ApplyScenarioRequest.cc
Normal file
150
arms/src/model/ApplyScenarioRequest.cc
Normal file
@@ -0,0 +1,150 @@
|
|||||||
|
/*
|
||||||
|
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||||
|
*
|
||||||
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
|
* you may not use this file except in compliance with the License.
|
||||||
|
* You may obtain a copy of the License at
|
||||||
|
*
|
||||||
|
* http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
*
|
||||||
|
* Unless required by applicable law or agreed to in writing, software
|
||||||
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
|
* WITHOUT 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/ApplyScenarioRequest.h>
|
||||||
|
|
||||||
|
using AlibabaCloud::ARMS::Model::ApplyScenarioRequest;
|
||||||
|
|
||||||
|
ApplyScenarioRequest::ApplyScenarioRequest() :
|
||||||
|
RpcServiceRequest("arms", "2019-08-08", "ApplyScenario")
|
||||||
|
{
|
||||||
|
setMethod(HttpRequest::Method::Post);
|
||||||
|
}
|
||||||
|
|
||||||
|
ApplyScenarioRequest::~ApplyScenarioRequest()
|
||||||
|
{}
|
||||||
|
|
||||||
|
bool ApplyScenarioRequest::getSnForce()const
|
||||||
|
{
|
||||||
|
return snForce_;
|
||||||
|
}
|
||||||
|
|
||||||
|
void ApplyScenarioRequest::setSnForce(bool snForce)
|
||||||
|
{
|
||||||
|
snForce_ = snForce;
|
||||||
|
setParameter("SnForce", snForce ? "true" : "false");
|
||||||
|
}
|
||||||
|
|
||||||
|
std::string ApplyScenarioRequest::getSign()const
|
||||||
|
{
|
||||||
|
return sign_;
|
||||||
|
}
|
||||||
|
|
||||||
|
void ApplyScenarioRequest::setSign(const std::string& sign)
|
||||||
|
{
|
||||||
|
sign_ = sign;
|
||||||
|
setParameter("Sign", sign);
|
||||||
|
}
|
||||||
|
|
||||||
|
bool ApplyScenarioRequest::getSnStat()const
|
||||||
|
{
|
||||||
|
return snStat_;
|
||||||
|
}
|
||||||
|
|
||||||
|
void ApplyScenarioRequest::setSnStat(bool snStat)
|
||||||
|
{
|
||||||
|
snStat_ = snStat;
|
||||||
|
setParameter("SnStat", snStat ? "true" : "false");
|
||||||
|
}
|
||||||
|
|
||||||
|
std::string ApplyScenarioRequest::getRegionId()const
|
||||||
|
{
|
||||||
|
return regionId_;
|
||||||
|
}
|
||||||
|
|
||||||
|
void ApplyScenarioRequest::setRegionId(const std::string& regionId)
|
||||||
|
{
|
||||||
|
regionId_ = regionId;
|
||||||
|
setParameter("RegionId", regionId);
|
||||||
|
}
|
||||||
|
|
||||||
|
std::string ApplyScenarioRequest::getScenario()const
|
||||||
|
{
|
||||||
|
return scenario_;
|
||||||
|
}
|
||||||
|
|
||||||
|
void ApplyScenarioRequest::setScenario(const std::string& scenario)
|
||||||
|
{
|
||||||
|
scenario_ = scenario;
|
||||||
|
setParameter("Scenario", scenario);
|
||||||
|
}
|
||||||
|
|
||||||
|
bool ApplyScenarioRequest::getSnDump()const
|
||||||
|
{
|
||||||
|
return snDump_;
|
||||||
|
}
|
||||||
|
|
||||||
|
void ApplyScenarioRequest::setSnDump(bool snDump)
|
||||||
|
{
|
||||||
|
snDump_ = snDump;
|
||||||
|
setParameter("SnDump", snDump ? "true" : "false");
|
||||||
|
}
|
||||||
|
|
||||||
|
std::string ApplyScenarioRequest::getAppId()const
|
||||||
|
{
|
||||||
|
return appId_;
|
||||||
|
}
|
||||||
|
|
||||||
|
void ApplyScenarioRequest::setAppId(const std::string& appId)
|
||||||
|
{
|
||||||
|
appId_ = appId;
|
||||||
|
setParameter("AppId", appId);
|
||||||
|
}
|
||||||
|
|
||||||
|
std::string ApplyScenarioRequest::getName()const
|
||||||
|
{
|
||||||
|
return name_;
|
||||||
|
}
|
||||||
|
|
||||||
|
void ApplyScenarioRequest::setName(const std::string& name)
|
||||||
|
{
|
||||||
|
name_ = name;
|
||||||
|
setParameter("Name", name);
|
||||||
|
}
|
||||||
|
|
||||||
|
bool ApplyScenarioRequest::getSnTransfer()const
|
||||||
|
{
|
||||||
|
return snTransfer_;
|
||||||
|
}
|
||||||
|
|
||||||
|
void ApplyScenarioRequest::setSnTransfer(bool snTransfer)
|
||||||
|
{
|
||||||
|
snTransfer_ = snTransfer;
|
||||||
|
setParameter("SnTransfer", snTransfer ? "true" : "false");
|
||||||
|
}
|
||||||
|
|
||||||
|
bool ApplyScenarioRequest::getUpdateOption()const
|
||||||
|
{
|
||||||
|
return updateOption_;
|
||||||
|
}
|
||||||
|
|
||||||
|
void ApplyScenarioRequest::setUpdateOption(bool updateOption)
|
||||||
|
{
|
||||||
|
updateOption_ = updateOption;
|
||||||
|
setParameter("UpdateOption", updateOption ? "true" : "false");
|
||||||
|
}
|
||||||
|
|
||||||
|
std::string ApplyScenarioRequest::getConfig()const
|
||||||
|
{
|
||||||
|
return config_;
|
||||||
|
}
|
||||||
|
|
||||||
|
void ApplyScenarioRequest::setConfig(const std::string& config)
|
||||||
|
{
|
||||||
|
config_ = config;
|
||||||
|
setParameter("Config", config);
|
||||||
|
}
|
||||||
|
|
||||||
51
arms/src/model/ApplyScenarioResult.cc
Normal file
51
arms/src/model/ApplyScenarioResult.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/ApplyScenarioResult.h>
|
||||||
|
#include <json/json.h>
|
||||||
|
|
||||||
|
using namespace AlibabaCloud::ARMS;
|
||||||
|
using namespace AlibabaCloud::ARMS::Model;
|
||||||
|
|
||||||
|
ApplyScenarioResult::ApplyScenarioResult() :
|
||||||
|
ServiceResult()
|
||||||
|
{}
|
||||||
|
|
||||||
|
ApplyScenarioResult::ApplyScenarioResult(const std::string &payload) :
|
||||||
|
ServiceResult()
|
||||||
|
{
|
||||||
|
parse(payload);
|
||||||
|
}
|
||||||
|
|
||||||
|
ApplyScenarioResult::~ApplyScenarioResult()
|
||||||
|
{}
|
||||||
|
|
||||||
|
void ApplyScenarioResult::parse(const std::string &payload)
|
||||||
|
{
|
||||||
|
Json::Reader reader;
|
||||||
|
Json::Value value;
|
||||||
|
reader.parse(payload, value);
|
||||||
|
setRequestId(value["RequestId"].asString());
|
||||||
|
if(!value["Result"].isNull())
|
||||||
|
result_ = value["Result"].asString();
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
std::string ApplyScenarioResult::getResult()const
|
||||||
|
{
|
||||||
|
return result_;
|
||||||
|
}
|
||||||
|
|
||||||
@@ -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
|
||||||
|
|||||||
40
arms/src/model/DeleteScenarioRequest.cc
Normal file
40
arms/src/model/DeleteScenarioRequest.cc
Normal file
@@ -0,0 +1,40 @@
|
|||||||
|
/*
|
||||||
|
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||||
|
*
|
||||||
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
|
* you may not use this file except in compliance with the License.
|
||||||
|
* You may obtain a copy of the License at
|
||||||
|
*
|
||||||
|
* http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
*
|
||||||
|
* Unless required by applicable law or agreed to in writing, software
|
||||||
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
|
* WITHOUT 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/DeleteScenarioRequest.h>
|
||||||
|
|
||||||
|
using AlibabaCloud::ARMS::Model::DeleteScenarioRequest;
|
||||||
|
|
||||||
|
DeleteScenarioRequest::DeleteScenarioRequest() :
|
||||||
|
RpcServiceRequest("arms", "2019-08-08", "DeleteScenario")
|
||||||
|
{
|
||||||
|
setMethod(HttpRequest::Method::Post);
|
||||||
|
}
|
||||||
|
|
||||||
|
DeleteScenarioRequest::~DeleteScenarioRequest()
|
||||||
|
{}
|
||||||
|
|
||||||
|
long DeleteScenarioRequest::getScenarioId()const
|
||||||
|
{
|
||||||
|
return scenarioId_;
|
||||||
|
}
|
||||||
|
|
||||||
|
void DeleteScenarioRequest::setScenarioId(long scenarioId)
|
||||||
|
{
|
||||||
|
scenarioId_ = scenarioId;
|
||||||
|
setParameter("ScenarioId", std::to_string(scenarioId));
|
||||||
|
}
|
||||||
|
|
||||||
51
arms/src/model/DeleteScenarioResult.cc
Normal file
51
arms/src/model/DeleteScenarioResult.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/DeleteScenarioResult.h>
|
||||||
|
#include <json/json.h>
|
||||||
|
|
||||||
|
using namespace AlibabaCloud::ARMS;
|
||||||
|
using namespace AlibabaCloud::ARMS::Model;
|
||||||
|
|
||||||
|
DeleteScenarioResult::DeleteScenarioResult() :
|
||||||
|
ServiceResult()
|
||||||
|
{}
|
||||||
|
|
||||||
|
DeleteScenarioResult::DeleteScenarioResult(const std::string &payload) :
|
||||||
|
ServiceResult()
|
||||||
|
{
|
||||||
|
parse(payload);
|
||||||
|
}
|
||||||
|
|
||||||
|
DeleteScenarioResult::~DeleteScenarioResult()
|
||||||
|
{}
|
||||||
|
|
||||||
|
void DeleteScenarioResult::parse(const std::string &payload)
|
||||||
|
{
|
||||||
|
Json::Reader reader;
|
||||||
|
Json::Value value;
|
||||||
|
reader.parse(payload, value);
|
||||||
|
setRequestId(value["RequestId"].asString());
|
||||||
|
if(!value["Result"].isNull())
|
||||||
|
result_ = value["Result"].asString() == "true";
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
bool DeleteScenarioResult::getResult()const
|
||||||
|
{
|
||||||
|
return result_;
|
||||||
|
}
|
||||||
|
|
||||||
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);
|
||||||
|
}
|
||||||
|
|
||||||
51
arms/src/model/ExportPrometheusRulesResult.cc
Normal file
51
arms/src/model/ExportPrometheusRulesResult.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/ExportPrometheusRulesResult.h>
|
||||||
|
#include <json/json.h>
|
||||||
|
|
||||||
|
using namespace AlibabaCloud::ARMS;
|
||||||
|
using namespace AlibabaCloud::ARMS::Model;
|
||||||
|
|
||||||
|
ExportPrometheusRulesResult::ExportPrometheusRulesResult() :
|
||||||
|
ServiceResult()
|
||||||
|
{}
|
||||||
|
|
||||||
|
ExportPrometheusRulesResult::ExportPrometheusRulesResult(const std::string &payload) :
|
||||||
|
ServiceResult()
|
||||||
|
{
|
||||||
|
parse(payload);
|
||||||
|
}
|
||||||
|
|
||||||
|
ExportPrometheusRulesResult::~ExportPrometheusRulesResult()
|
||||||
|
{}
|
||||||
|
|
||||||
|
void ExportPrometheusRulesResult::parse(const std::string &payload)
|
||||||
|
{
|
||||||
|
Json::Reader reader;
|
||||||
|
Json::Value value;
|
||||||
|
reader.parse(payload, value);
|
||||||
|
setRequestId(value["RequestId"].asString());
|
||||||
|
if(!value["Data"].isNull())
|
||||||
|
data_ = value["Data"].asString();
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
std::string ExportPrometheusRulesResult::getData()const
|
||||||
|
{
|
||||||
|
return data_;
|
||||||
|
}
|
||||||
|
|
||||||
40
arms/src/model/GetAgentDownloadUrlRequest.cc
Normal file
40
arms/src/model/GetAgentDownloadUrlRequest.cc
Normal file
@@ -0,0 +1,40 @@
|
|||||||
|
/*
|
||||||
|
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||||
|
*
|
||||||
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
|
* you may not use this file except in compliance with the License.
|
||||||
|
* You may obtain a copy of the License at
|
||||||
|
*
|
||||||
|
* http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
*
|
||||||
|
* Unless required by applicable law or agreed to in writing, software
|
||||||
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
|
* WITHOUT 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/GetAgentDownloadUrlRequest.h>
|
||||||
|
|
||||||
|
using AlibabaCloud::ARMS::Model::GetAgentDownloadUrlRequest;
|
||||||
|
|
||||||
|
GetAgentDownloadUrlRequest::GetAgentDownloadUrlRequest() :
|
||||||
|
RpcServiceRequest("arms", "2019-08-08", "GetAgentDownloadUrl")
|
||||||
|
{
|
||||||
|
setMethod(HttpRequest::Method::Get);
|
||||||
|
}
|
||||||
|
|
||||||
|
GetAgentDownloadUrlRequest::~GetAgentDownloadUrlRequest()
|
||||||
|
{}
|
||||||
|
|
||||||
|
std::string GetAgentDownloadUrlRequest::getRegionId()const
|
||||||
|
{
|
||||||
|
return regionId_;
|
||||||
|
}
|
||||||
|
|
||||||
|
void GetAgentDownloadUrlRequest::setRegionId(const std::string& regionId)
|
||||||
|
{
|
||||||
|
regionId_ = regionId;
|
||||||
|
setParameter("RegionId", regionId);
|
||||||
|
}
|
||||||
|
|
||||||
51
arms/src/model/GetAgentDownloadUrlResult.cc
Normal file
51
arms/src/model/GetAgentDownloadUrlResult.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/GetAgentDownloadUrlResult.h>
|
||||||
|
#include <json/json.h>
|
||||||
|
|
||||||
|
using namespace AlibabaCloud::ARMS;
|
||||||
|
using namespace AlibabaCloud::ARMS::Model;
|
||||||
|
|
||||||
|
GetAgentDownloadUrlResult::GetAgentDownloadUrlResult() :
|
||||||
|
ServiceResult()
|
||||||
|
{}
|
||||||
|
|
||||||
|
GetAgentDownloadUrlResult::GetAgentDownloadUrlResult(const std::string &payload) :
|
||||||
|
ServiceResult()
|
||||||
|
{
|
||||||
|
parse(payload);
|
||||||
|
}
|
||||||
|
|
||||||
|
GetAgentDownloadUrlResult::~GetAgentDownloadUrlResult()
|
||||||
|
{}
|
||||||
|
|
||||||
|
void GetAgentDownloadUrlResult::parse(const std::string &payload)
|
||||||
|
{
|
||||||
|
Json::Reader reader;
|
||||||
|
Json::Value value;
|
||||||
|
reader.parse(payload, value);
|
||||||
|
setRequestId(value["RequestId"].asString());
|
||||||
|
if(!value["ArmsAgentDownloadUrl"].isNull())
|
||||||
|
armsAgentDownloadUrl_ = value["ArmsAgentDownloadUrl"].asString();
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
std::string GetAgentDownloadUrlResult::getArmsAgentDownloadUrl()const
|
||||||
|
{
|
||||||
|
return armsAgentDownloadUrl_;
|
||||||
|
}
|
||||||
|
|
||||||
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);
|
||||||
|
}
|
||||||
|
|
||||||
51
arms/src/model/GetIntegrationTokenResult.cc
Normal file
51
arms/src/model/GetIntegrationTokenResult.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/GetIntegrationTokenResult.h>
|
||||||
|
#include <json/json.h>
|
||||||
|
|
||||||
|
using namespace AlibabaCloud::ARMS;
|
||||||
|
using namespace AlibabaCloud::ARMS::Model;
|
||||||
|
|
||||||
|
GetIntegrationTokenResult::GetIntegrationTokenResult() :
|
||||||
|
ServiceResult()
|
||||||
|
{}
|
||||||
|
|
||||||
|
GetIntegrationTokenResult::GetIntegrationTokenResult(const std::string &payload) :
|
||||||
|
ServiceResult()
|
||||||
|
{
|
||||||
|
parse(payload);
|
||||||
|
}
|
||||||
|
|
||||||
|
GetIntegrationTokenResult::~GetIntegrationTokenResult()
|
||||||
|
{}
|
||||||
|
|
||||||
|
void GetIntegrationTokenResult::parse(const std::string &payload)
|
||||||
|
{
|
||||||
|
Json::Reader reader;
|
||||||
|
Json::Value value;
|
||||||
|
reader.parse(payload, value);
|
||||||
|
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);
|
||||||
|
}
|
||||||
|
|
||||||
51
arms/src/model/ImportPrometheusRulesResult.cc
Normal file
51
arms/src/model/ImportPrometheusRulesResult.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/ImportPrometheusRulesResult.h>
|
||||||
|
#include <json/json.h>
|
||||||
|
|
||||||
|
using namespace AlibabaCloud::ARMS;
|
||||||
|
using namespace AlibabaCloud::ARMS::Model;
|
||||||
|
|
||||||
|
ImportPrometheusRulesResult::ImportPrometheusRulesResult() :
|
||||||
|
ServiceResult()
|
||||||
|
{}
|
||||||
|
|
||||||
|
ImportPrometheusRulesResult::ImportPrometheusRulesResult(const std::string &payload) :
|
||||||
|
ServiceResult()
|
||||||
|
{
|
||||||
|
parse(payload);
|
||||||
|
}
|
||||||
|
|
||||||
|
ImportPrometheusRulesResult::~ImportPrometheusRulesResult()
|
||||||
|
{}
|
||||||
|
|
||||||
|
void ImportPrometheusRulesResult::parse(const std::string &payload)
|
||||||
|
{
|
||||||
|
Json::Reader reader;
|
||||||
|
Json::Value value;
|
||||||
|
reader.parse(payload, value);
|
||||||
|
setRequestId(value["RequestId"].asString());
|
||||||
|
if(!value["Data"].isNull())
|
||||||
|
data_ = value["Data"].asString();
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
std::string ImportPrometheusRulesResult::getData()const
|
||||||
|
{
|
||||||
|
return data_;
|
||||||
|
}
|
||||||
|
|
||||||
@@ -27,6 +27,17 @@ ListDashboardsRequest::ListDashboardsRequest() :
|
|||||||
ListDashboardsRequest::~ListDashboardsRequest()
|
ListDashboardsRequest::~ListDashboardsRequest()
|
||||||
{}
|
{}
|
||||||
|
|
||||||
|
std::string ListDashboardsRequest::getClusterType()const
|
||||||
|
{
|
||||||
|
return clusterType_;
|
||||||
|
}
|
||||||
|
|
||||||
|
void ListDashboardsRequest::setClusterType(const std::string& clusterType)
|
||||||
|
{
|
||||||
|
clusterType_ = clusterType;
|
||||||
|
setParameter("ClusterType", clusterType);
|
||||||
|
}
|
||||||
|
|
||||||
std::string ListDashboardsRequest::getRegionId()const
|
std::string ListDashboardsRequest::getRegionId()const
|
||||||
{
|
{
|
||||||
return regionId_;
|
return regionId_;
|
||||||
@@ -49,3 +60,14 @@ void ListDashboardsRequest::setClusterId(const std::string& clusterId)
|
|||||||
setParameter("ClusterId", clusterId);
|
setParameter("ClusterId", clusterId);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
std::string ListDashboardsRequest::getTitle()const
|
||||||
|
{
|
||||||
|
return title_;
|
||||||
|
}
|
||||||
|
|
||||||
|
void ListDashboardsRequest::setTitle(const std::string& title)
|
||||||
|
{
|
||||||
|
title_ = title;
|
||||||
|
setParameter("Title", title);
|
||||||
|
}
|
||||||
|
|
||||||
|
|||||||
84
arms/src/model/ListScenarioRequest.cc
Normal file
84
arms/src/model/ListScenarioRequest.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/ListScenarioRequest.h>
|
||||||
|
|
||||||
|
using AlibabaCloud::ARMS::Model::ListScenarioRequest;
|
||||||
|
|
||||||
|
ListScenarioRequest::ListScenarioRequest() :
|
||||||
|
RpcServiceRequest("arms", "2019-08-08", "ListScenario")
|
||||||
|
{
|
||||||
|
setMethod(HttpRequest::Method::Post);
|
||||||
|
}
|
||||||
|
|
||||||
|
ListScenarioRequest::~ListScenarioRequest()
|
||||||
|
{}
|
||||||
|
|
||||||
|
std::string ListScenarioRequest::getRegionId()const
|
||||||
|
{
|
||||||
|
return regionId_;
|
||||||
|
}
|
||||||
|
|
||||||
|
void ListScenarioRequest::setRegionId(const std::string& regionId)
|
||||||
|
{
|
||||||
|
regionId_ = regionId;
|
||||||
|
setParameter("RegionId", regionId);
|
||||||
|
}
|
||||||
|
|
||||||
|
std::string ListScenarioRequest::getScenario()const
|
||||||
|
{
|
||||||
|
return scenario_;
|
||||||
|
}
|
||||||
|
|
||||||
|
void ListScenarioRequest::setScenario(const std::string& scenario)
|
||||||
|
{
|
||||||
|
scenario_ = scenario;
|
||||||
|
setParameter("Scenario", scenario);
|
||||||
|
}
|
||||||
|
|
||||||
|
std::string ListScenarioRequest::getAppId()const
|
||||||
|
{
|
||||||
|
return appId_;
|
||||||
|
}
|
||||||
|
|
||||||
|
void ListScenarioRequest::setAppId(const std::string& appId)
|
||||||
|
{
|
||||||
|
appId_ = appId;
|
||||||
|
setParameter("AppId", appId);
|
||||||
|
}
|
||||||
|
|
||||||
|
std::string ListScenarioRequest::getName()const
|
||||||
|
{
|
||||||
|
return name_;
|
||||||
|
}
|
||||||
|
|
||||||
|
void ListScenarioRequest::setName(const std::string& name)
|
||||||
|
{
|
||||||
|
name_ = name;
|
||||||
|
setParameter("Name", name);
|
||||||
|
}
|
||||||
|
|
||||||
|
std::string ListScenarioRequest::getSign()const
|
||||||
|
{
|
||||||
|
return sign_;
|
||||||
|
}
|
||||||
|
|
||||||
|
void ListScenarioRequest::setSign(const std::string& sign)
|
||||||
|
{
|
||||||
|
sign_ = sign;
|
||||||
|
setParameter("Sign", sign);
|
||||||
|
}
|
||||||
|
|
||||||
73
arms/src/model/ListScenarioResult.cc
Normal file
73
arms/src/model/ListScenarioResult.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/ListScenarioResult.h>
|
||||||
|
#include <json/json.h>
|
||||||
|
|
||||||
|
using namespace AlibabaCloud::ARMS;
|
||||||
|
using namespace AlibabaCloud::ARMS::Model;
|
||||||
|
|
||||||
|
ListScenarioResult::ListScenarioResult() :
|
||||||
|
ServiceResult()
|
||||||
|
{}
|
||||||
|
|
||||||
|
ListScenarioResult::ListScenarioResult(const std::string &payload) :
|
||||||
|
ServiceResult()
|
||||||
|
{
|
||||||
|
parse(payload);
|
||||||
|
}
|
||||||
|
|
||||||
|
ListScenarioResult::~ListScenarioResult()
|
||||||
|
{}
|
||||||
|
|
||||||
|
void ListScenarioResult::parse(const std::string &payload)
|
||||||
|
{
|
||||||
|
Json::Reader reader;
|
||||||
|
Json::Value value;
|
||||||
|
reader.parse(payload, value);
|
||||||
|
setRequestId(value["RequestId"].asString());
|
||||||
|
auto allArmsScenariosNode = value["ArmsScenarios"]["ArmsScenariosItem"];
|
||||||
|
for (auto valueArmsScenariosArmsScenariosItem : allArmsScenariosNode)
|
||||||
|
{
|
||||||
|
ArmsScenariosItem armsScenariosObject;
|
||||||
|
if(!valueArmsScenariosArmsScenariosItem["Id"].isNull())
|
||||||
|
armsScenariosObject.id = std::stol(valueArmsScenariosArmsScenariosItem["Id"].asString());
|
||||||
|
if(!valueArmsScenariosArmsScenariosItem["CreateTime"].isNull())
|
||||||
|
armsScenariosObject.createTime = valueArmsScenariosArmsScenariosItem["CreateTime"].asString();
|
||||||
|
if(!valueArmsScenariosArmsScenariosItem["UpdateTime"].isNull())
|
||||||
|
armsScenariosObject.updateTime = valueArmsScenariosArmsScenariosItem["UpdateTime"].asString();
|
||||||
|
if(!valueArmsScenariosArmsScenariosItem["Name"].isNull())
|
||||||
|
armsScenariosObject.name = valueArmsScenariosArmsScenariosItem["Name"].asString();
|
||||||
|
if(!valueArmsScenariosArmsScenariosItem["Sign"].isNull())
|
||||||
|
armsScenariosObject.sign = valueArmsScenariosArmsScenariosItem["Sign"].asString();
|
||||||
|
if(!valueArmsScenariosArmsScenariosItem["UserId"].isNull())
|
||||||
|
armsScenariosObject.userId = valueArmsScenariosArmsScenariosItem["UserId"].asString();
|
||||||
|
if(!valueArmsScenariosArmsScenariosItem["RegionId"].isNull())
|
||||||
|
armsScenariosObject.regionId = valueArmsScenariosArmsScenariosItem["RegionId"].asString();
|
||||||
|
if(!valueArmsScenariosArmsScenariosItem["AppId"].isNull())
|
||||||
|
armsScenariosObject.appId = valueArmsScenariosArmsScenariosItem["AppId"].asString();
|
||||||
|
if(!valueArmsScenariosArmsScenariosItem["Extensions"].isNull())
|
||||||
|
armsScenariosObject.extensions = valueArmsScenariosArmsScenariosItem["Extensions"].asString();
|
||||||
|
armsScenarios_.push_back(armsScenariosObject);
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
std::vector<ListScenarioResult::ArmsScenariosItem> ListScenarioResult::getArmsScenarios()const
|
||||||
|
{
|
||||||
|
return armsScenarios_;
|
||||||
|
}
|
||||||
|
|
||||||
51
arms/src/model/OpenArmsServiceRequest.cc
Normal file
51
arms/src/model/OpenArmsServiceRequest.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/OpenArmsServiceRequest.h>
|
||||||
|
|
||||||
|
using AlibabaCloud::ARMS::Model::OpenArmsServiceRequest;
|
||||||
|
|
||||||
|
OpenArmsServiceRequest::OpenArmsServiceRequest() :
|
||||||
|
RpcServiceRequest("arms", "2019-08-08", "OpenArmsService")
|
||||||
|
{
|
||||||
|
setMethod(HttpRequest::Method::Post);
|
||||||
|
}
|
||||||
|
|
||||||
|
OpenArmsServiceRequest::~OpenArmsServiceRequest()
|
||||||
|
{}
|
||||||
|
|
||||||
|
long OpenArmsServiceRequest::getOwnerId()const
|
||||||
|
{
|
||||||
|
return ownerId_;
|
||||||
|
}
|
||||||
|
|
||||||
|
void OpenArmsServiceRequest::setOwnerId(long ownerId)
|
||||||
|
{
|
||||||
|
ownerId_ = ownerId;
|
||||||
|
setParameter("OwnerId", std::to_string(ownerId));
|
||||||
|
}
|
||||||
|
|
||||||
|
std::string OpenArmsServiceRequest::getType()const
|
||||||
|
{
|
||||||
|
return type_;
|
||||||
|
}
|
||||||
|
|
||||||
|
void OpenArmsServiceRequest::setType(const std::string& type)
|
||||||
|
{
|
||||||
|
type_ = type;
|
||||||
|
setParameter("Type", type);
|
||||||
|
}
|
||||||
|
|
||||||
51
arms/src/model/OpenArmsServiceResult.cc
Normal file
51
arms/src/model/OpenArmsServiceResult.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/OpenArmsServiceResult.h>
|
||||||
|
#include <json/json.h>
|
||||||
|
|
||||||
|
using namespace AlibabaCloud::ARMS;
|
||||||
|
using namespace AlibabaCloud::ARMS::Model;
|
||||||
|
|
||||||
|
OpenArmsServiceResult::OpenArmsServiceResult() :
|
||||||
|
ServiceResult()
|
||||||
|
{}
|
||||||
|
|
||||||
|
OpenArmsServiceResult::OpenArmsServiceResult(const std::string &payload) :
|
||||||
|
ServiceResult()
|
||||||
|
{
|
||||||
|
parse(payload);
|
||||||
|
}
|
||||||
|
|
||||||
|
OpenArmsServiceResult::~OpenArmsServiceResult()
|
||||||
|
{}
|
||||||
|
|
||||||
|
void OpenArmsServiceResult::parse(const std::string &payload)
|
||||||
|
{
|
||||||
|
Json::Reader reader;
|
||||||
|
Json::Value value;
|
||||||
|
reader.parse(payload, value);
|
||||||
|
setRequestId(value["RequestId"].asString());
|
||||||
|
if(!value["OrderId"].isNull())
|
||||||
|
orderId_ = value["OrderId"].asString();
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
std::string OpenArmsServiceResult::getOrderId()const
|
||||||
|
{
|
||||||
|
return orderId_;
|
||||||
|
}
|
||||||
|
|
||||||
@@ -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);
|
||||||
|
}
|
||||||
|
|
||||||
51
arms/src/model/SendMseIncidentResult.cc
Normal file
51
arms/src/model/SendMseIncidentResult.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/SendMseIncidentResult.h>
|
||||||
|
#include <json/json.h>
|
||||||
|
|
||||||
|
using namespace AlibabaCloud::ARMS;
|
||||||
|
using namespace AlibabaCloud::ARMS::Model;
|
||||||
|
|
||||||
|
SendMseIncidentResult::SendMseIncidentResult() :
|
||||||
|
ServiceResult()
|
||||||
|
{}
|
||||||
|
|
||||||
|
SendMseIncidentResult::SendMseIncidentResult(const std::string &payload) :
|
||||||
|
ServiceResult()
|
||||||
|
{
|
||||||
|
parse(payload);
|
||||||
|
}
|
||||||
|
|
||||||
|
SendMseIncidentResult::~SendMseIncidentResult()
|
||||||
|
{}
|
||||||
|
|
||||||
|
void SendMseIncidentResult::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 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
|
||||||
|
|||||||
@@ -69,6 +69,8 @@ set(bssopenapi_public_header_model
|
|||||||
include/alibabacloud/bssopenapi/model/QueryAccountBalanceResult.h
|
include/alibabacloud/bssopenapi/model/QueryAccountBalanceResult.h
|
||||||
include/alibabacloud/bssopenapi/model/QueryAccountBillRequest.h
|
include/alibabacloud/bssopenapi/model/QueryAccountBillRequest.h
|
||||||
include/alibabacloud/bssopenapi/model/QueryAccountBillResult.h
|
include/alibabacloud/bssopenapi/model/QueryAccountBillResult.h
|
||||||
|
include/alibabacloud/bssopenapi/model/QueryAccountTransactionDetailsRequest.h
|
||||||
|
include/alibabacloud/bssopenapi/model/QueryAccountTransactionDetailsResult.h
|
||||||
include/alibabacloud/bssopenapi/model/QueryAccountTransactionsRequest.h
|
include/alibabacloud/bssopenapi/model/QueryAccountTransactionsRequest.h
|
||||||
include/alibabacloud/bssopenapi/model/QueryAccountTransactionsResult.h
|
include/alibabacloud/bssopenapi/model/QueryAccountTransactionsResult.h
|
||||||
include/alibabacloud/bssopenapi/model/QueryAvailableInstancesRequest.h
|
include/alibabacloud/bssopenapi/model/QueryAvailableInstancesRequest.h
|
||||||
@@ -190,6 +192,8 @@ set(bssopenapi_src
|
|||||||
src/model/QueryAccountBalanceResult.cc
|
src/model/QueryAccountBalanceResult.cc
|
||||||
src/model/QueryAccountBillRequest.cc
|
src/model/QueryAccountBillRequest.cc
|
||||||
src/model/QueryAccountBillResult.cc
|
src/model/QueryAccountBillResult.cc
|
||||||
|
src/model/QueryAccountTransactionDetailsRequest.cc
|
||||||
|
src/model/QueryAccountTransactionDetailsResult.cc
|
||||||
src/model/QueryAccountTransactionsRequest.cc
|
src/model/QueryAccountTransactionsRequest.cc
|
||||||
src/model/QueryAccountTransactionsResult.cc
|
src/model/QueryAccountTransactionsResult.cc
|
||||||
src/model/QueryAvailableInstancesRequest.cc
|
src/model/QueryAvailableInstancesRequest.cc
|
||||||
|
|||||||
@@ -70,6 +70,8 @@
|
|||||||
#include "model/QueryAccountBalanceResult.h"
|
#include "model/QueryAccountBalanceResult.h"
|
||||||
#include "model/QueryAccountBillRequest.h"
|
#include "model/QueryAccountBillRequest.h"
|
||||||
#include "model/QueryAccountBillResult.h"
|
#include "model/QueryAccountBillResult.h"
|
||||||
|
#include "model/QueryAccountTransactionDetailsRequest.h"
|
||||||
|
#include "model/QueryAccountTransactionDetailsResult.h"
|
||||||
#include "model/QueryAccountTransactionsRequest.h"
|
#include "model/QueryAccountTransactionsRequest.h"
|
||||||
#include "model/QueryAccountTransactionsResult.h"
|
#include "model/QueryAccountTransactionsResult.h"
|
||||||
#include "model/QueryAvailableInstancesRequest.h"
|
#include "model/QueryAvailableInstancesRequest.h"
|
||||||
@@ -221,6 +223,9 @@ namespace AlibabaCloud
|
|||||||
typedef Outcome<Error, Model::QueryAccountBillResult> QueryAccountBillOutcome;
|
typedef Outcome<Error, Model::QueryAccountBillResult> QueryAccountBillOutcome;
|
||||||
typedef std::future<QueryAccountBillOutcome> QueryAccountBillOutcomeCallable;
|
typedef std::future<QueryAccountBillOutcome> QueryAccountBillOutcomeCallable;
|
||||||
typedef std::function<void(const BssOpenApiClient*, const Model::QueryAccountBillRequest&, const QueryAccountBillOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> QueryAccountBillAsyncHandler;
|
typedef std::function<void(const BssOpenApiClient*, const Model::QueryAccountBillRequest&, const QueryAccountBillOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> QueryAccountBillAsyncHandler;
|
||||||
|
typedef Outcome<Error, Model::QueryAccountTransactionDetailsResult> QueryAccountTransactionDetailsOutcome;
|
||||||
|
typedef std::future<QueryAccountTransactionDetailsOutcome> QueryAccountTransactionDetailsOutcomeCallable;
|
||||||
|
typedef std::function<void(const BssOpenApiClient*, const Model::QueryAccountTransactionDetailsRequest&, const QueryAccountTransactionDetailsOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> QueryAccountTransactionDetailsAsyncHandler;
|
||||||
typedef Outcome<Error, Model::QueryAccountTransactionsResult> QueryAccountTransactionsOutcome;
|
typedef Outcome<Error, Model::QueryAccountTransactionsResult> QueryAccountTransactionsOutcome;
|
||||||
typedef std::future<QueryAccountTransactionsOutcome> QueryAccountTransactionsOutcomeCallable;
|
typedef std::future<QueryAccountTransactionsOutcome> QueryAccountTransactionsOutcomeCallable;
|
||||||
typedef std::function<void(const BssOpenApiClient*, const Model::QueryAccountTransactionsRequest&, const QueryAccountTransactionsOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> QueryAccountTransactionsAsyncHandler;
|
typedef std::function<void(const BssOpenApiClient*, const Model::QueryAccountTransactionsRequest&, const QueryAccountTransactionsOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> QueryAccountTransactionsAsyncHandler;
|
||||||
@@ -403,6 +408,9 @@ namespace AlibabaCloud
|
|||||||
QueryAccountBillOutcome queryAccountBill(const Model::QueryAccountBillRequest &request)const;
|
QueryAccountBillOutcome queryAccountBill(const Model::QueryAccountBillRequest &request)const;
|
||||||
void queryAccountBillAsync(const Model::QueryAccountBillRequest& request, const QueryAccountBillAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
void queryAccountBillAsync(const Model::QueryAccountBillRequest& request, const QueryAccountBillAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||||
QueryAccountBillOutcomeCallable queryAccountBillCallable(const Model::QueryAccountBillRequest& request) const;
|
QueryAccountBillOutcomeCallable queryAccountBillCallable(const Model::QueryAccountBillRequest& request) const;
|
||||||
|
QueryAccountTransactionDetailsOutcome queryAccountTransactionDetails(const Model::QueryAccountTransactionDetailsRequest &request)const;
|
||||||
|
void queryAccountTransactionDetailsAsync(const Model::QueryAccountTransactionDetailsRequest& request, const QueryAccountTransactionDetailsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||||
|
QueryAccountTransactionDetailsOutcomeCallable queryAccountTransactionDetailsCallable(const Model::QueryAccountTransactionDetailsRequest& request) const;
|
||||||
QueryAccountTransactionsOutcome queryAccountTransactions(const Model::QueryAccountTransactionsRequest &request)const;
|
QueryAccountTransactionsOutcome queryAccountTransactions(const Model::QueryAccountTransactionsRequest &request)const;
|
||||||
void queryAccountTransactionsAsync(const Model::QueryAccountTransactionsRequest& request, const QueryAccountTransactionsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
void queryAccountTransactionsAsync(const Model::QueryAccountTransactionsRequest& request, const QueryAccountTransactionsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||||
QueryAccountTransactionsOutcomeCallable queryAccountTransactionsCallable(const Model::QueryAccountTransactionsRequest& request) const;
|
QueryAccountTransactionsOutcomeCallable queryAccountTransactionsCallable(const Model::QueryAccountTransactionsRequest& request) const;
|
||||||
|
|||||||
@@ -35,8 +35,8 @@ namespace AlibabaCloud
|
|||||||
{
|
{
|
||||||
std::string resourceId;
|
std::string resourceId;
|
||||||
std::string commodityCode;
|
std::string commodityCode;
|
||||||
long resourceUserId;
|
|
||||||
std::string apportionCode;
|
std::string apportionCode;
|
||||||
|
long resourceUserId;
|
||||||
};
|
};
|
||||||
|
|
||||||
public:
|
public:
|
||||||
|
|||||||
@@ -37,8 +37,8 @@ namespace AlibabaCloud
|
|||||||
struct CostUnitDtoListItem
|
struct CostUnitDtoListItem
|
||||||
{
|
{
|
||||||
long unitId;
|
long unitId;
|
||||||
long ownerUid;
|
|
||||||
long parentUnitId;
|
long parentUnitId;
|
||||||
|
long ownerUid;
|
||||||
std::string unitName;
|
std::string unitName;
|
||||||
};
|
};
|
||||||
std::vector<CostUnitDtoListItem> costUnitDtoList;
|
std::vector<CostUnitDtoListItem> costUnitDtoList;
|
||||||
|
|||||||
@@ -39,23 +39,24 @@ namespace AlibabaCloud
|
|||||||
std::string afterTaxAmount;
|
std::string afterTaxAmount;
|
||||||
std::string subOrderId;
|
std::string subOrderId;
|
||||||
std::string config;
|
std::string config;
|
||||||
std::string paymentTime;
|
|
||||||
std::string tax;
|
|
||||||
std::string paymentCurrency;
|
|
||||||
std::string _operator;
|
std::string _operator;
|
||||||
|
std::string tax;
|
||||||
|
std::string paymentTime;
|
||||||
|
std::string paymentCurrency;
|
||||||
std::string usageEndTime;
|
std::string usageEndTime;
|
||||||
std::string subscriptionType;
|
std::string subscriptionType;
|
||||||
std::string pretaxGrossAmount;
|
std::string pretaxGrossAmount;
|
||||||
std::string orderType;
|
std::string orderType;
|
||||||
std::string currency;
|
std::string currency;
|
||||||
|
std::string commodityCode;
|
||||||
std::string usageStartTime;
|
std::string usageStartTime;
|
||||||
std::string originalConfig;
|
std::string originalConfig;
|
||||||
std::string paymentStatus;
|
std::string paymentStatus;
|
||||||
std::string productCode;
|
std::string productCode;
|
||||||
std::string createTime;
|
std::string createTime;
|
||||||
std::string productType;
|
std::string productType;
|
||||||
std::string quantity;
|
|
||||||
std::string relatedOrderId;
|
std::string relatedOrderId;
|
||||||
|
std::string quantity;
|
||||||
std::string orderId;
|
std::string orderId;
|
||||||
std::string pretaxAmount;
|
std::string pretaxAmount;
|
||||||
std::string orderSubType;
|
std::string orderSubType;
|
||||||
@@ -64,8 +65,8 @@ namespace AlibabaCloud
|
|||||||
std::string pretaxAmountLocal;
|
std::string pretaxAmountLocal;
|
||||||
};
|
};
|
||||||
int totalCount;
|
int totalCount;
|
||||||
int pageNum;
|
|
||||||
int pageSize;
|
int pageSize;
|
||||||
|
int pageNum;
|
||||||
std::vector<Order> orderList;
|
std::vector<Order> orderList;
|
||||||
std::string hostName;
|
std::string hostName;
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -0,0 +1,72 @@
|
|||||||
|
/*
|
||||||
|
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||||
|
*
|
||||||
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
|
* you may not use this file except in compliance with the License.
|
||||||
|
* You may obtain a copy of the License at
|
||||||
|
*
|
||||||
|
* http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
*
|
||||||
|
* Unless required by applicable law or agreed to in writing, software
|
||||||
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
|
* See the License for the specific language governing permissions and
|
||||||
|
* limitations under the License.
|
||||||
|
*/
|
||||||
|
|
||||||
|
#ifndef ALIBABACLOUD_BSSOPENAPI_MODEL_QUERYACCOUNTTRANSACTIONDETAILSREQUEST_H_
|
||||||
|
#define ALIBABACLOUD_BSSOPENAPI_MODEL_QUERYACCOUNTTRANSACTIONDETAILSREQUEST_H_
|
||||||
|
|
||||||
|
#include <string>
|
||||||
|
#include <vector>
|
||||||
|
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||||
|
#include <alibabacloud/bssopenapi/BssOpenApiExport.h>
|
||||||
|
|
||||||
|
namespace AlibabaCloud
|
||||||
|
{
|
||||||
|
namespace BssOpenApi
|
||||||
|
{
|
||||||
|
namespace Model
|
||||||
|
{
|
||||||
|
class ALIBABACLOUD_BSSOPENAPI_EXPORT QueryAccountTransactionDetailsRequest : public RpcServiceRequest
|
||||||
|
{
|
||||||
|
|
||||||
|
public:
|
||||||
|
QueryAccountTransactionDetailsRequest();
|
||||||
|
~QueryAccountTransactionDetailsRequest();
|
||||||
|
|
||||||
|
std::string getTransactionType()const;
|
||||||
|
void setTransactionType(const std::string& transactionType);
|
||||||
|
std::string getCreateTimeEnd()const;
|
||||||
|
void setCreateTimeEnd(const std::string& createTimeEnd);
|
||||||
|
std::string getRecordID()const;
|
||||||
|
void setRecordID(const std::string& recordID);
|
||||||
|
std::string getNextToken()const;
|
||||||
|
void setNextToken(const std::string& nextToken);
|
||||||
|
int getMaxResults()const;
|
||||||
|
void setMaxResults(int maxResults);
|
||||||
|
std::string getTransactionChannel()const;
|
||||||
|
void setTransactionChannel(const std::string& transactionChannel);
|
||||||
|
std::string getTransactionChannelSN()const;
|
||||||
|
void setTransactionChannelSN(const std::string& transactionChannelSN);
|
||||||
|
std::string getCreateTimeStart()const;
|
||||||
|
void setCreateTimeStart(const std::string& createTimeStart);
|
||||||
|
std::string getTransactionNumber()const;
|
||||||
|
void setTransactionNumber(const std::string& transactionNumber);
|
||||||
|
|
||||||
|
private:
|
||||||
|
std::string transactionType_;
|
||||||
|
std::string createTimeEnd_;
|
||||||
|
std::string recordID_;
|
||||||
|
std::string nextToken_;
|
||||||
|
int maxResults_;
|
||||||
|
std::string transactionChannel_;
|
||||||
|
std::string transactionChannelSN_;
|
||||||
|
std::string createTimeStart_;
|
||||||
|
std::string transactionNumber_;
|
||||||
|
|
||||||
|
};
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
#endif // !ALIBABACLOUD_BSSOPENAPI_MODEL_QUERYACCOUNTTRANSACTIONDETAILSREQUEST_H_
|
||||||
@@ -0,0 +1,81 @@
|
|||||||
|
/*
|
||||||
|
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||||
|
*
|
||||||
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
|
* you may not use this file except in compliance with the License.
|
||||||
|
* You may obtain a copy of the License at
|
||||||
|
*
|
||||||
|
* http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
*
|
||||||
|
* Unless required by applicable law or agreed to in writing, software
|
||||||
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
|
* See the License for the specific language governing permissions and
|
||||||
|
* limitations under the License.
|
||||||
|
*/
|
||||||
|
|
||||||
|
#ifndef ALIBABACLOUD_BSSOPENAPI_MODEL_QUERYACCOUNTTRANSACTIONDETAILSRESULT_H_
|
||||||
|
#define ALIBABACLOUD_BSSOPENAPI_MODEL_QUERYACCOUNTTRANSACTIONDETAILSRESULT_H_
|
||||||
|
|
||||||
|
#include <string>
|
||||||
|
#include <vector>
|
||||||
|
#include <utility>
|
||||||
|
#include <alibabacloud/core/ServiceResult.h>
|
||||||
|
#include <alibabacloud/bssopenapi/BssOpenApiExport.h>
|
||||||
|
|
||||||
|
namespace AlibabaCloud
|
||||||
|
{
|
||||||
|
namespace BssOpenApi
|
||||||
|
{
|
||||||
|
namespace Model
|
||||||
|
{
|
||||||
|
class ALIBABACLOUD_BSSOPENAPI_EXPORT QueryAccountTransactionDetailsResult : public ServiceResult
|
||||||
|
{
|
||||||
|
public:
|
||||||
|
struct Data
|
||||||
|
{
|
||||||
|
struct AccountTransactionsListItem
|
||||||
|
{
|
||||||
|
std::string transactionType;
|
||||||
|
std::string billingCycle;
|
||||||
|
std::string transactionNumber;
|
||||||
|
std::string amount;
|
||||||
|
std::string transactionAccount;
|
||||||
|
std::string transactionTime;
|
||||||
|
std::string transactionChannelSN;
|
||||||
|
std::string remarks;
|
||||||
|
std::string fundType;
|
||||||
|
std::string transactionFlow;
|
||||||
|
std::string recordID;
|
||||||
|
std::string balance;
|
||||||
|
std::string transactionChannel;
|
||||||
|
};
|
||||||
|
int totalCount;
|
||||||
|
std::string nextToken;
|
||||||
|
int maxResults;
|
||||||
|
std::vector<AccountTransactionsListItem> accountTransactionsList;
|
||||||
|
std::string accountName;
|
||||||
|
};
|
||||||
|
|
||||||
|
|
||||||
|
QueryAccountTransactionDetailsResult();
|
||||||
|
explicit QueryAccountTransactionDetailsResult(const std::string &payload);
|
||||||
|
~QueryAccountTransactionDetailsResult();
|
||||||
|
std::string getMessage()const;
|
||||||
|
Data getData()const;
|
||||||
|
std::string getCode()const;
|
||||||
|
bool getSuccess()const;
|
||||||
|
|
||||||
|
protected:
|
||||||
|
void parse(const std::string &payload);
|
||||||
|
private:
|
||||||
|
std::string message_;
|
||||||
|
Data data_;
|
||||||
|
std::string code_;
|
||||||
|
bool success_;
|
||||||
|
|
||||||
|
};
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
#endif // !ALIBABACLOUD_BSSOPENAPI_MODEL_QUERYACCOUNTTRANSACTIONDETAILSRESULT_H_
|
||||||
@@ -37,15 +37,15 @@ namespace AlibabaCloud
|
|||||||
struct CostUnit
|
struct CostUnit
|
||||||
{
|
{
|
||||||
long unitId;
|
long unitId;
|
||||||
long ownerUid;
|
|
||||||
long parentUnitId;
|
long parentUnitId;
|
||||||
|
long ownerUid;
|
||||||
std::string unitName;
|
std::string unitName;
|
||||||
};
|
};
|
||||||
struct CostUnitStatisInfo
|
struct CostUnitStatisInfo
|
||||||
{
|
{
|
||||||
long subUnitCount;
|
long subUnitCount;
|
||||||
long totalResourceCount;
|
|
||||||
long totalResourceGroupCount;
|
long totalResourceGroupCount;
|
||||||
|
long totalResourceCount;
|
||||||
long userCount;
|
long userCount;
|
||||||
long resourceCount;
|
long resourceCount;
|
||||||
long totalUserCount;
|
long totalUserCount;
|
||||||
@@ -64,12 +64,12 @@ namespace AlibabaCloud
|
|||||||
std::string commodityCode;
|
std::string commodityCode;
|
||||||
std::string resourceStatus;
|
std::string resourceStatus;
|
||||||
std::string resourceUserName;
|
std::string resourceUserName;
|
||||||
std::string commodityName;
|
|
||||||
std::string resourceGroup;
|
std::string resourceGroup;
|
||||||
|
std::string commodityName;
|
||||||
};
|
};
|
||||||
int totalCount;
|
int totalCount;
|
||||||
int pageNum;
|
|
||||||
int pageSize;
|
int pageSize;
|
||||||
|
int pageNum;
|
||||||
CostUnit costUnit;
|
CostUnit costUnit;
|
||||||
std::vector<ResourceInstanceList> resourceInstanceDtoList;
|
std::vector<ResourceInstanceList> resourceInstanceDtoList;
|
||||||
CostUnitStatisInfo costUnitStatisInfo;
|
CostUnitStatisInfo costUnitStatisInfo;
|
||||||
|
|||||||
@@ -37,13 +37,13 @@ namespace AlibabaCloud
|
|||||||
struct CostUnitDtoListItem
|
struct CostUnitDtoListItem
|
||||||
{
|
{
|
||||||
long unitId;
|
long unitId;
|
||||||
long ownerUid;
|
|
||||||
long parentUnitId;
|
long parentUnitId;
|
||||||
|
long ownerUid;
|
||||||
std::string unitName;
|
std::string unitName;
|
||||||
};
|
};
|
||||||
int totalCount;
|
int totalCount;
|
||||||
int pageNum;
|
|
||||||
int pageSize;
|
int pageSize;
|
||||||
|
int pageNum;
|
||||||
std::vector<CostUnitDtoListItem> costUnitDtoList;
|
std::vector<CostUnitDtoListItem> costUnitDtoList;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
@@ -50,6 +50,7 @@ namespace AlibabaCloud
|
|||||||
std::string orderType;
|
std::string orderType;
|
||||||
std::string pretaxAmount;
|
std::string pretaxAmount;
|
||||||
std::string currency;
|
std::string currency;
|
||||||
|
std::string commodityCode;
|
||||||
std::string paymentStatus;
|
std::string paymentStatus;
|
||||||
std::string pretaxAmountLocal;
|
std::string pretaxAmountLocal;
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -915,6 +915,42 @@ BssOpenApiClient::QueryAccountBillOutcomeCallable BssOpenApiClient::queryAccount
|
|||||||
return task->get_future();
|
return task->get_future();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
BssOpenApiClient::QueryAccountTransactionDetailsOutcome BssOpenApiClient::queryAccountTransactionDetails(const QueryAccountTransactionDetailsRequest &request) const
|
||||||
|
{
|
||||||
|
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||||
|
if (!endpointOutcome.isSuccess())
|
||||||
|
return QueryAccountTransactionDetailsOutcome(endpointOutcome.error());
|
||||||
|
|
||||||
|
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||||
|
|
||||||
|
if (outcome.isSuccess())
|
||||||
|
return QueryAccountTransactionDetailsOutcome(QueryAccountTransactionDetailsResult(outcome.result()));
|
||||||
|
else
|
||||||
|
return QueryAccountTransactionDetailsOutcome(outcome.error());
|
||||||
|
}
|
||||||
|
|
||||||
|
void BssOpenApiClient::queryAccountTransactionDetailsAsync(const QueryAccountTransactionDetailsRequest& request, const QueryAccountTransactionDetailsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||||
|
{
|
||||||
|
auto fn = [this, request, handler, context]()
|
||||||
|
{
|
||||||
|
handler(this, request, queryAccountTransactionDetails(request), context);
|
||||||
|
};
|
||||||
|
|
||||||
|
asyncExecute(new Runnable(fn));
|
||||||
|
}
|
||||||
|
|
||||||
|
BssOpenApiClient::QueryAccountTransactionDetailsOutcomeCallable BssOpenApiClient::queryAccountTransactionDetailsCallable(const QueryAccountTransactionDetailsRequest &request) const
|
||||||
|
{
|
||||||
|
auto task = std::make_shared<std::packaged_task<QueryAccountTransactionDetailsOutcome()>>(
|
||||||
|
[this, request]()
|
||||||
|
{
|
||||||
|
return this->queryAccountTransactionDetails(request);
|
||||||
|
});
|
||||||
|
|
||||||
|
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||||
|
return task->get_future();
|
||||||
|
}
|
||||||
|
|
||||||
BssOpenApiClient::QueryAccountTransactionsOutcome BssOpenApiClient::queryAccountTransactions(const QueryAccountTransactionsRequest &request) const
|
BssOpenApiClient::QueryAccountTransactionsOutcome BssOpenApiClient::queryAccountTransactions(const QueryAccountTransactionsRequest &request) const
|
||||||
{
|
{
|
||||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||||
|
|||||||
@@ -40,8 +40,8 @@ void AllocateCostUnitResourceRequest::setResourceInstanceList(const std::vector<
|
|||||||
std::string resourceInstanceListObjStr = "ResourceInstanceList." + std::to_string(dep1 + 1);
|
std::string resourceInstanceListObjStr = "ResourceInstanceList." + std::to_string(dep1 + 1);
|
||||||
setParameter(resourceInstanceListObjStr + ".ResourceId", resourceInstanceListObj.resourceId);
|
setParameter(resourceInstanceListObjStr + ".ResourceId", resourceInstanceListObj.resourceId);
|
||||||
setParameter(resourceInstanceListObjStr + ".CommodityCode", resourceInstanceListObj.commodityCode);
|
setParameter(resourceInstanceListObjStr + ".CommodityCode", resourceInstanceListObj.commodityCode);
|
||||||
setParameter(resourceInstanceListObjStr + ".ResourceUserId", std::to_string(resourceInstanceListObj.resourceUserId));
|
|
||||||
setParameter(resourceInstanceListObjStr + ".ApportionCode", resourceInstanceListObj.apportionCode);
|
setParameter(resourceInstanceListObjStr + ".ApportionCode", resourceInstanceListObj.apportionCode);
|
||||||
|
setParameter(resourceInstanceListObjStr + ".ResourceUserId", std::to_string(resourceInstanceListObj.resourceUserId));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -40,18 +40,18 @@ void AllocateCostUnitResourceResult::parse(const std::string &payload)
|
|||||||
reader.parse(payload, value);
|
reader.parse(payload, value);
|
||||||
setRequestId(value["RequestId"].asString());
|
setRequestId(value["RequestId"].asString());
|
||||||
auto dataNode = value["Data"];
|
auto dataNode = value["Data"];
|
||||||
|
if(!dataNode["IsSuccess"].isNull())
|
||||||
|
data_.isSuccess = dataNode["IsSuccess"].asString() == "true";
|
||||||
if(!dataNode["ToUnitUserId"].isNull())
|
if(!dataNode["ToUnitUserId"].isNull())
|
||||||
data_.toUnitUserId = std::stol(dataNode["ToUnitUserId"].asString());
|
data_.toUnitUserId = std::stol(dataNode["ToUnitUserId"].asString());
|
||||||
if(!dataNode["ToUnitId"].isNull())
|
if(!dataNode["ToUnitId"].isNull())
|
||||||
data_.toUnitId = std::stol(dataNode["ToUnitId"].asString());
|
data_.toUnitId = std::stol(dataNode["ToUnitId"].asString());
|
||||||
if(!dataNode["IsSuccess"].isNull())
|
|
||||||
data_.isSuccess = dataNode["IsSuccess"].asString() == "true";
|
|
||||||
if(!value["Success"].isNull())
|
|
||||||
success_ = value["Success"].asString() == "true";
|
|
||||||
if(!value["Code"].isNull())
|
|
||||||
code_ = value["Code"].asString();
|
|
||||||
if(!value["Message"].isNull())
|
if(!value["Message"].isNull())
|
||||||
message_ = value["Message"].asString();
|
message_ = value["Message"].asString();
|
||||||
|
if(!value["Code"].isNull())
|
||||||
|
code_ = value["Code"].asString();
|
||||||
|
if(!value["Success"].isNull())
|
||||||
|
success_ = value["Success"].asString() == "true";
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -44,22 +44,22 @@ void CreateCostUnitResult::parse(const std::string &payload)
|
|||||||
for (auto dataNodeCostUnitDtoListCostUnitDtoListItem : allCostUnitDtoListNode)
|
for (auto dataNodeCostUnitDtoListCostUnitDtoListItem : allCostUnitDtoListNode)
|
||||||
{
|
{
|
||||||
Data::CostUnitDtoListItem costUnitDtoListItemObject;
|
Data::CostUnitDtoListItem costUnitDtoListItemObject;
|
||||||
if(!dataNodeCostUnitDtoListCostUnitDtoListItem["OwnerUid"].isNull())
|
|
||||||
costUnitDtoListItemObject.ownerUid = std::stol(dataNodeCostUnitDtoListCostUnitDtoListItem["OwnerUid"].asString());
|
|
||||||
if(!dataNodeCostUnitDtoListCostUnitDtoListItem["ParentUnitId"].isNull())
|
|
||||||
costUnitDtoListItemObject.parentUnitId = std::stol(dataNodeCostUnitDtoListCostUnitDtoListItem["ParentUnitId"].asString());
|
|
||||||
if(!dataNodeCostUnitDtoListCostUnitDtoListItem["UnitId"].isNull())
|
if(!dataNodeCostUnitDtoListCostUnitDtoListItem["UnitId"].isNull())
|
||||||
costUnitDtoListItemObject.unitId = std::stol(dataNodeCostUnitDtoListCostUnitDtoListItem["UnitId"].asString());
|
costUnitDtoListItemObject.unitId = std::stol(dataNodeCostUnitDtoListCostUnitDtoListItem["UnitId"].asString());
|
||||||
|
if(!dataNodeCostUnitDtoListCostUnitDtoListItem["ParentUnitId"].isNull())
|
||||||
|
costUnitDtoListItemObject.parentUnitId = std::stol(dataNodeCostUnitDtoListCostUnitDtoListItem["ParentUnitId"].asString());
|
||||||
|
if(!dataNodeCostUnitDtoListCostUnitDtoListItem["OwnerUid"].isNull())
|
||||||
|
costUnitDtoListItemObject.ownerUid = std::stol(dataNodeCostUnitDtoListCostUnitDtoListItem["OwnerUid"].asString());
|
||||||
if(!dataNodeCostUnitDtoListCostUnitDtoListItem["UnitName"].isNull())
|
if(!dataNodeCostUnitDtoListCostUnitDtoListItem["UnitName"].isNull())
|
||||||
costUnitDtoListItemObject.unitName = dataNodeCostUnitDtoListCostUnitDtoListItem["UnitName"].asString();
|
costUnitDtoListItemObject.unitName = dataNodeCostUnitDtoListCostUnitDtoListItem["UnitName"].asString();
|
||||||
data_.costUnitDtoList.push_back(costUnitDtoListItemObject);
|
data_.costUnitDtoList.push_back(costUnitDtoListItemObject);
|
||||||
}
|
}
|
||||||
if(!value["Success"].isNull())
|
|
||||||
success_ = value["Success"].asString() == "true";
|
|
||||||
if(!value["Code"].isNull())
|
|
||||||
code_ = value["Code"].asString();
|
|
||||||
if(!value["Message"].isNull())
|
if(!value["Message"].isNull())
|
||||||
message_ = value["Message"].asString();
|
message_ = value["Message"].asString();
|
||||||
|
if(!value["Code"].isNull())
|
||||||
|
code_ = value["Code"].asString();
|
||||||
|
if(!value["Success"].isNull())
|
||||||
|
success_ = value["Success"].asString() == "true";
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -40,18 +40,18 @@ void DeleteCostUnitResult::parse(const std::string &payload)
|
|||||||
reader.parse(payload, value);
|
reader.parse(payload, value);
|
||||||
setRequestId(value["RequestId"].asString());
|
setRequestId(value["RequestId"].asString());
|
||||||
auto dataNode = value["Data"];
|
auto dataNode = value["Data"];
|
||||||
if(!dataNode["OwnerUid"].isNull())
|
|
||||||
data_.ownerUid = std::stol(dataNode["OwnerUid"].asString());
|
|
||||||
if(!dataNode["UnitId"].isNull())
|
|
||||||
data_.unitId = std::stol(dataNode["UnitId"].asString());
|
|
||||||
if(!dataNode["IsSuccess"].isNull())
|
if(!dataNode["IsSuccess"].isNull())
|
||||||
data_.isSuccess = dataNode["IsSuccess"].asString() == "true";
|
data_.isSuccess = dataNode["IsSuccess"].asString() == "true";
|
||||||
if(!value["Success"].isNull())
|
if(!dataNode["UnitId"].isNull())
|
||||||
success_ = value["Success"].asString() == "true";
|
data_.unitId = std::stol(dataNode["UnitId"].asString());
|
||||||
if(!value["Code"].isNull())
|
if(!dataNode["OwnerUid"].isNull())
|
||||||
code_ = value["Code"].asString();
|
data_.ownerUid = std::stol(dataNode["OwnerUid"].asString());
|
||||||
if(!value["Message"].isNull())
|
if(!value["Message"].isNull())
|
||||||
message_ = value["Message"].asString();
|
message_ = value["Message"].asString();
|
||||||
|
if(!value["Code"].isNull())
|
||||||
|
code_ = value["Code"].asString();
|
||||||
|
if(!value["Success"].isNull())
|
||||||
|
success_ = value["Success"].asString() == "true";
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -67,18 +67,18 @@ void DescribePricingModuleResult::parse(const std::string &payload)
|
|||||||
attributeObject.name = dataNodeAttributeListAttribute["Name"].asString();
|
attributeObject.name = dataNodeAttributeListAttribute["Name"].asString();
|
||||||
if(!dataNodeAttributeListAttribute["Unit"].isNull())
|
if(!dataNodeAttributeListAttribute["Unit"].isNull())
|
||||||
attributeObject.unit = dataNodeAttributeListAttribute["Unit"].asString();
|
attributeObject.unit = dataNodeAttributeListAttribute["Unit"].asString();
|
||||||
auto allValuesNode = allAttributeListNode["Values"]["AttributeValue"];
|
auto allValuesNode = dataNodeAttributeListAttribute["Values"]["AttributeValue"];
|
||||||
for (auto allAttributeListNodeValuesAttributeValue : allValuesNode)
|
for (auto dataNodeAttributeListAttributeValuesAttributeValue : allValuesNode)
|
||||||
{
|
{
|
||||||
Data::Attribute::AttributeValue valuesObject;
|
Data::Attribute::AttributeValue valuesObject;
|
||||||
if(!allAttributeListNodeValuesAttributeValue["Type"].isNull())
|
if(!dataNodeAttributeListAttributeValuesAttributeValue["Type"].isNull())
|
||||||
valuesObject.type = allAttributeListNodeValuesAttributeValue["Type"].asString();
|
valuesObject.type = dataNodeAttributeListAttributeValuesAttributeValue["Type"].asString();
|
||||||
if(!allAttributeListNodeValuesAttributeValue["Name"].isNull())
|
if(!dataNodeAttributeListAttributeValuesAttributeValue["Name"].isNull())
|
||||||
valuesObject.name = allAttributeListNodeValuesAttributeValue["Name"].asString();
|
valuesObject.name = dataNodeAttributeListAttributeValuesAttributeValue["Name"].asString();
|
||||||
if(!allAttributeListNodeValuesAttributeValue["Value"].isNull())
|
if(!dataNodeAttributeListAttributeValuesAttributeValue["Value"].isNull())
|
||||||
valuesObject.value = allAttributeListNodeValuesAttributeValue["Value"].asString();
|
valuesObject.value = dataNodeAttributeListAttributeValuesAttributeValue["Value"].asString();
|
||||||
if(!allAttributeListNodeValuesAttributeValue["Remark"].isNull())
|
if(!dataNodeAttributeListAttributeValuesAttributeValue["Remark"].isNull())
|
||||||
valuesObject.remark = allAttributeListNodeValuesAttributeValue["Remark"].asString();
|
valuesObject.remark = dataNodeAttributeListAttributeValuesAttributeValue["Remark"].asString();
|
||||||
attributeObject.values.push_back(valuesObject);
|
attributeObject.values.push_back(valuesObject);
|
||||||
}
|
}
|
||||||
data_.attributeList.push_back(attributeObject);
|
data_.attributeList.push_back(attributeObject);
|
||||||
|
|||||||
@@ -50,42 +50,42 @@ void DescribeResourcePackageProductResult::parse(const std::string &payload)
|
|||||||
resourcePackageObject.productType = dataNodeResourcePackagesResourcePackage["ProductType"].asString();
|
resourcePackageObject.productType = dataNodeResourcePackagesResourcePackage["ProductType"].asString();
|
||||||
if(!dataNodeResourcePackagesResourcePackage["Name"].isNull())
|
if(!dataNodeResourcePackagesResourcePackage["Name"].isNull())
|
||||||
resourcePackageObject.name = dataNodeResourcePackagesResourcePackage["Name"].asString();
|
resourcePackageObject.name = dataNodeResourcePackagesResourcePackage["Name"].asString();
|
||||||
auto allPackageTypesNode = allResourcePackagesNode["PackageTypes"]["PackageType"];
|
auto allPackageTypesNode = dataNodeResourcePackagesResourcePackage["PackageTypes"]["PackageType"];
|
||||||
for (auto allResourcePackagesNodePackageTypesPackageType : allPackageTypesNode)
|
for (auto dataNodeResourcePackagesResourcePackagePackageTypesPackageType : allPackageTypesNode)
|
||||||
{
|
{
|
||||||
Data::ResourcePackage::PackageType packageTypesObject;
|
Data::ResourcePackage::PackageType packageTypesObject;
|
||||||
if(!allResourcePackagesNodePackageTypesPackageType["Name"].isNull())
|
if(!dataNodeResourcePackagesResourcePackagePackageTypesPackageType["Name"].isNull())
|
||||||
packageTypesObject.name = allResourcePackagesNodePackageTypesPackageType["Name"].asString();
|
packageTypesObject.name = dataNodeResourcePackagesResourcePackagePackageTypesPackageType["Name"].asString();
|
||||||
if(!allResourcePackagesNodePackageTypesPackageType["Code"].isNull())
|
if(!dataNodeResourcePackagesResourcePackagePackageTypesPackageType["Code"].isNull())
|
||||||
packageTypesObject.code = allResourcePackagesNodePackageTypesPackageType["Code"].asString();
|
packageTypesObject.code = dataNodeResourcePackagesResourcePackagePackageTypesPackageType["Code"].asString();
|
||||||
auto allPropertiesNode = allPackageTypesNode["Properties"]["Property"];
|
auto allPropertiesNode = dataNodeResourcePackagesResourcePackagePackageTypesPackageType["Properties"]["Property"];
|
||||||
for (auto allPackageTypesNodePropertiesProperty : allPropertiesNode)
|
for (auto dataNodeResourcePackagesResourcePackagePackageTypesPackageTypePropertiesProperty : allPropertiesNode)
|
||||||
{
|
{
|
||||||
Data::ResourcePackage::PackageType::Property propertiesObject;
|
Data::ResourcePackage::PackageType::Property propertiesObject;
|
||||||
if(!allPackageTypesNodePropertiesProperty["Name"].isNull())
|
if(!dataNodeResourcePackagesResourcePackagePackageTypesPackageTypePropertiesProperty["Name"].isNull())
|
||||||
propertiesObject.name = allPackageTypesNodePropertiesProperty["Name"].asString();
|
propertiesObject.name = dataNodeResourcePackagesResourcePackagePackageTypesPackageTypePropertiesProperty["Name"].asString();
|
||||||
if(!allPackageTypesNodePropertiesProperty["Value"].isNull())
|
if(!dataNodeResourcePackagesResourcePackagePackageTypesPackageTypePropertiesProperty["Value"].isNull())
|
||||||
propertiesObject.value = allPackageTypesNodePropertiesProperty["Value"].asString();
|
propertiesObject.value = dataNodeResourcePackagesResourcePackagePackageTypesPackageTypePropertiesProperty["Value"].asString();
|
||||||
packageTypesObject.properties.push_back(propertiesObject);
|
packageTypesObject.properties.push_back(propertiesObject);
|
||||||
}
|
}
|
||||||
auto allSpecificationsNode = allPackageTypesNode["Specifications"]["Specification"];
|
auto allSpecificationsNode = dataNodeResourcePackagesResourcePackagePackageTypesPackageType["Specifications"]["Specification"];
|
||||||
for (auto allPackageTypesNodeSpecificationsSpecification : allSpecificationsNode)
|
for (auto dataNodeResourcePackagesResourcePackagePackageTypesPackageTypeSpecificationsSpecification : allSpecificationsNode)
|
||||||
{
|
{
|
||||||
Data::ResourcePackage::PackageType::Specification specificationsObject;
|
Data::ResourcePackage::PackageType::Specification specificationsObject;
|
||||||
if(!allPackageTypesNodeSpecificationsSpecification["Name"].isNull())
|
if(!dataNodeResourcePackagesResourcePackagePackageTypesPackageTypeSpecificationsSpecification["Name"].isNull())
|
||||||
specificationsObject.name = allPackageTypesNodeSpecificationsSpecification["Name"].asString();
|
specificationsObject.name = dataNodeResourcePackagesResourcePackagePackageTypesPackageTypeSpecificationsSpecification["Name"].asString();
|
||||||
if(!allPackageTypesNodeSpecificationsSpecification["Value"].isNull())
|
if(!dataNodeResourcePackagesResourcePackagePackageTypesPackageTypeSpecificationsSpecification["Value"].isNull())
|
||||||
specificationsObject.value = allPackageTypesNodeSpecificationsSpecification["Value"].asString();
|
specificationsObject.value = dataNodeResourcePackagesResourcePackagePackageTypesPackageTypeSpecificationsSpecification["Value"].asString();
|
||||||
auto allAvailableDurationsNode = allSpecificationsNode["AvailableDurations"]["AvailableDuration"];
|
auto allAvailableDurationsNode = dataNodeResourcePackagesResourcePackagePackageTypesPackageTypeSpecificationsSpecification["AvailableDurations"]["AvailableDuration"];
|
||||||
for (auto allSpecificationsNodeAvailableDurationsAvailableDuration : allAvailableDurationsNode)
|
for (auto dataNodeResourcePackagesResourcePackagePackageTypesPackageTypeSpecificationsSpecificationAvailableDurationsAvailableDuration : allAvailableDurationsNode)
|
||||||
{
|
{
|
||||||
Data::ResourcePackage::PackageType::Specification::AvailableDuration availableDurationsObject;
|
Data::ResourcePackage::PackageType::Specification::AvailableDuration availableDurationsObject;
|
||||||
if(!allSpecificationsNodeAvailableDurationsAvailableDuration["Name"].isNull())
|
if(!dataNodeResourcePackagesResourcePackagePackageTypesPackageTypeSpecificationsSpecificationAvailableDurationsAvailableDuration["Name"].isNull())
|
||||||
availableDurationsObject.name = allSpecificationsNodeAvailableDurationsAvailableDuration["Name"].asString();
|
availableDurationsObject.name = dataNodeResourcePackagesResourcePackagePackageTypesPackageTypeSpecificationsSpecificationAvailableDurationsAvailableDuration["Name"].asString();
|
||||||
if(!allSpecificationsNodeAvailableDurationsAvailableDuration["Value"].isNull())
|
if(!dataNodeResourcePackagesResourcePackagePackageTypesPackageTypeSpecificationsSpecificationAvailableDurationsAvailableDuration["Value"].isNull())
|
||||||
availableDurationsObject.value = std::stoi(allSpecificationsNodeAvailableDurationsAvailableDuration["Value"].asString());
|
availableDurationsObject.value = std::stoi(dataNodeResourcePackagesResourcePackagePackageTypesPackageTypeSpecificationsSpecificationAvailableDurationsAvailableDuration["Value"].asString());
|
||||||
if(!allSpecificationsNodeAvailableDurationsAvailableDuration["Unit"].isNull())
|
if(!dataNodeResourcePackagesResourcePackagePackageTypesPackageTypeSpecificationsSpecificationAvailableDurationsAvailableDuration["Unit"].isNull())
|
||||||
availableDurationsObject.unit = allSpecificationsNodeAvailableDurationsAvailableDuration["Unit"].asString();
|
availableDurationsObject.unit = dataNodeResourcePackagesResourcePackagePackageTypesPackageTypeSpecificationsSpecificationAvailableDurationsAvailableDuration["Unit"].asString();
|
||||||
specificationsObject.availableDurations.push_back(availableDurationsObject);
|
specificationsObject.availableDurations.push_back(availableDurationsObject);
|
||||||
}
|
}
|
||||||
packageTypesObject.specifications.push_back(specificationsObject);
|
packageTypesObject.specifications.push_back(specificationsObject);
|
||||||
|
|||||||
@@ -40,78 +40,80 @@ void GetOrderDetailResult::parse(const std::string &payload)
|
|||||||
reader.parse(payload, value);
|
reader.parse(payload, value);
|
||||||
setRequestId(value["RequestId"].asString());
|
setRequestId(value["RequestId"].asString());
|
||||||
auto dataNode = value["Data"];
|
auto dataNode = value["Data"];
|
||||||
if(!dataNode["HostName"].isNull())
|
|
||||||
data_.hostName = dataNode["HostName"].asString();
|
|
||||||
if(!dataNode["PageNum"].isNull())
|
|
||||||
data_.pageNum = std::stoi(dataNode["PageNum"].asString());
|
|
||||||
if(!dataNode["PageSize"].isNull())
|
|
||||||
data_.pageSize = std::stoi(dataNode["PageSize"].asString());
|
|
||||||
if(!dataNode["TotalCount"].isNull())
|
if(!dataNode["TotalCount"].isNull())
|
||||||
data_.totalCount = std::stoi(dataNode["TotalCount"].asString());
|
data_.totalCount = std::stoi(dataNode["TotalCount"].asString());
|
||||||
|
if(!dataNode["PageSize"].isNull())
|
||||||
|
data_.pageSize = std::stoi(dataNode["PageSize"].asString());
|
||||||
|
if(!dataNode["PageNum"].isNull())
|
||||||
|
data_.pageNum = std::stoi(dataNode["PageNum"].asString());
|
||||||
|
if(!dataNode["HostName"].isNull())
|
||||||
|
data_.hostName = dataNode["HostName"].asString();
|
||||||
auto allOrderListNode = dataNode["OrderList"]["Order"];
|
auto allOrderListNode = dataNode["OrderList"]["Order"];
|
||||||
for (auto dataNodeOrderListOrder : allOrderListNode)
|
for (auto dataNodeOrderListOrder : allOrderListNode)
|
||||||
{
|
{
|
||||||
Data::Order orderObject;
|
Data::Order orderObject;
|
||||||
if(!dataNodeOrderListOrder["OrderId"].isNull())
|
|
||||||
orderObject.orderId = dataNodeOrderListOrder["OrderId"].asString();
|
|
||||||
if(!dataNodeOrderListOrder["SubOrderId"].isNull())
|
|
||||||
orderObject.subOrderId = dataNodeOrderListOrder["SubOrderId"].asString();
|
|
||||||
if(!dataNodeOrderListOrder["ProductCode"].isNull())
|
|
||||||
orderObject.productCode = dataNodeOrderListOrder["ProductCode"].asString();
|
|
||||||
if(!dataNodeOrderListOrder["ProductType"].isNull())
|
|
||||||
orderObject.productType = dataNodeOrderListOrder["ProductType"].asString();
|
|
||||||
if(!dataNodeOrderListOrder["SubscriptionType"].isNull())
|
|
||||||
orderObject.subscriptionType = dataNodeOrderListOrder["SubscriptionType"].asString();
|
|
||||||
if(!dataNodeOrderListOrder["OrderType"].isNull())
|
|
||||||
orderObject.orderType = dataNodeOrderListOrder["OrderType"].asString();
|
|
||||||
if(!dataNodeOrderListOrder["CreateTime"].isNull())
|
|
||||||
orderObject.createTime = dataNodeOrderListOrder["CreateTime"].asString();
|
|
||||||
if(!dataNodeOrderListOrder["PaymentTime"].isNull())
|
|
||||||
orderObject.paymentTime = dataNodeOrderListOrder["PaymentTime"].asString();
|
|
||||||
if(!dataNodeOrderListOrder["PaymentStatus"].isNull())
|
|
||||||
orderObject.paymentStatus = dataNodeOrderListOrder["PaymentStatus"].asString();
|
|
||||||
if(!dataNodeOrderListOrder["Region"].isNull())
|
|
||||||
orderObject.region = dataNodeOrderListOrder["Region"].asString();
|
|
||||||
if(!dataNodeOrderListOrder["Config"].isNull())
|
|
||||||
orderObject.config = dataNodeOrderListOrder["Config"].asString();
|
|
||||||
if(!dataNodeOrderListOrder["Quantity"].isNull())
|
|
||||||
orderObject.quantity = dataNodeOrderListOrder["Quantity"].asString();
|
|
||||||
if(!dataNodeOrderListOrder["UsageStartTime"].isNull())
|
|
||||||
orderObject.usageStartTime = dataNodeOrderListOrder["UsageStartTime"].asString();
|
|
||||||
if(!dataNodeOrderListOrder["UsageEndTime"].isNull())
|
|
||||||
orderObject.usageEndTime = dataNodeOrderListOrder["UsageEndTime"].asString();
|
|
||||||
if(!dataNodeOrderListOrder["InstanceIDs"].isNull())
|
|
||||||
orderObject.instanceIDs = dataNodeOrderListOrder["InstanceIDs"].asString();
|
|
||||||
if(!dataNodeOrderListOrder["PretaxGrossAmount"].isNull())
|
|
||||||
orderObject.pretaxGrossAmount = dataNodeOrderListOrder["PretaxGrossAmount"].asString();
|
|
||||||
if(!dataNodeOrderListOrder["PretaxAmount"].isNull())
|
|
||||||
orderObject.pretaxAmount = dataNodeOrderListOrder["PretaxAmount"].asString();
|
|
||||||
if(!dataNodeOrderListOrder["Currency"].isNull())
|
|
||||||
orderObject.currency = dataNodeOrderListOrder["Currency"].asString();
|
|
||||||
if(!dataNodeOrderListOrder["PretaxAmountLocal"].isNull())
|
|
||||||
orderObject.pretaxAmountLocal = dataNodeOrderListOrder["PretaxAmountLocal"].asString();
|
|
||||||
if(!dataNodeOrderListOrder["Tax"].isNull())
|
|
||||||
orderObject.tax = dataNodeOrderListOrder["Tax"].asString();
|
|
||||||
if(!dataNodeOrderListOrder["AfterTaxAmount"].isNull())
|
|
||||||
orderObject.afterTaxAmount = dataNodeOrderListOrder["AfterTaxAmount"].asString();
|
|
||||||
if(!dataNodeOrderListOrder["PaymentCurrency"].isNull())
|
|
||||||
orderObject.paymentCurrency = dataNodeOrderListOrder["PaymentCurrency"].asString();
|
|
||||||
if(!dataNodeOrderListOrder["Operator"].isNull())
|
if(!dataNodeOrderListOrder["Operator"].isNull())
|
||||||
orderObject._operator = dataNodeOrderListOrder["Operator"].asString();
|
orderObject._operator = dataNodeOrderListOrder["Operator"].asString();
|
||||||
if(!dataNodeOrderListOrder["RelatedOrderId"].isNull())
|
if(!dataNodeOrderListOrder["AfterTaxAmount"].isNull())
|
||||||
orderObject.relatedOrderId = dataNodeOrderListOrder["RelatedOrderId"].asString();
|
orderObject.afterTaxAmount = dataNodeOrderListOrder["AfterTaxAmount"].asString();
|
||||||
if(!dataNodeOrderListOrder["OrderSubType"].isNull())
|
if(!dataNodeOrderListOrder["SubOrderId"].isNull())
|
||||||
orderObject.orderSubType = dataNodeOrderListOrder["OrderSubType"].asString();
|
orderObject.subOrderId = dataNodeOrderListOrder["SubOrderId"].asString();
|
||||||
|
if(!dataNodeOrderListOrder["Config"].isNull())
|
||||||
|
orderObject.config = dataNodeOrderListOrder["Config"].asString();
|
||||||
|
if(!dataNodeOrderListOrder["Tax"].isNull())
|
||||||
|
orderObject.tax = dataNodeOrderListOrder["Tax"].asString();
|
||||||
|
if(!dataNodeOrderListOrder["PaymentTime"].isNull())
|
||||||
|
orderObject.paymentTime = dataNodeOrderListOrder["PaymentTime"].asString();
|
||||||
|
if(!dataNodeOrderListOrder["PaymentCurrency"].isNull())
|
||||||
|
orderObject.paymentCurrency = dataNodeOrderListOrder["PaymentCurrency"].asString();
|
||||||
|
if(!dataNodeOrderListOrder["UsageEndTime"].isNull())
|
||||||
|
orderObject.usageEndTime = dataNodeOrderListOrder["UsageEndTime"].asString();
|
||||||
|
if(!dataNodeOrderListOrder["SubscriptionType"].isNull())
|
||||||
|
orderObject.subscriptionType = dataNodeOrderListOrder["SubscriptionType"].asString();
|
||||||
|
if(!dataNodeOrderListOrder["PretaxGrossAmount"].isNull())
|
||||||
|
orderObject.pretaxGrossAmount = dataNodeOrderListOrder["PretaxGrossAmount"].asString();
|
||||||
|
if(!dataNodeOrderListOrder["OrderType"].isNull())
|
||||||
|
orderObject.orderType = dataNodeOrderListOrder["OrderType"].asString();
|
||||||
|
if(!dataNodeOrderListOrder["Currency"].isNull())
|
||||||
|
orderObject.currency = dataNodeOrderListOrder["Currency"].asString();
|
||||||
|
if(!dataNodeOrderListOrder["UsageStartTime"].isNull())
|
||||||
|
orderObject.usageStartTime = dataNodeOrderListOrder["UsageStartTime"].asString();
|
||||||
if(!dataNodeOrderListOrder["OriginalConfig"].isNull())
|
if(!dataNodeOrderListOrder["OriginalConfig"].isNull())
|
||||||
orderObject.originalConfig = dataNodeOrderListOrder["OriginalConfig"].asString();
|
orderObject.originalConfig = dataNodeOrderListOrder["OriginalConfig"].asString();
|
||||||
|
if(!dataNodeOrderListOrder["PaymentStatus"].isNull())
|
||||||
|
orderObject.paymentStatus = dataNodeOrderListOrder["PaymentStatus"].asString();
|
||||||
|
if(!dataNodeOrderListOrder["ProductCode"].isNull())
|
||||||
|
orderObject.productCode = dataNodeOrderListOrder["ProductCode"].asString();
|
||||||
|
if(!dataNodeOrderListOrder["CreateTime"].isNull())
|
||||||
|
orderObject.createTime = dataNodeOrderListOrder["CreateTime"].asString();
|
||||||
|
if(!dataNodeOrderListOrder["ProductType"].isNull())
|
||||||
|
orderObject.productType = dataNodeOrderListOrder["ProductType"].asString();
|
||||||
|
if(!dataNodeOrderListOrder["RelatedOrderId"].isNull())
|
||||||
|
orderObject.relatedOrderId = dataNodeOrderListOrder["RelatedOrderId"].asString();
|
||||||
|
if(!dataNodeOrderListOrder["Quantity"].isNull())
|
||||||
|
orderObject.quantity = dataNodeOrderListOrder["Quantity"].asString();
|
||||||
|
if(!dataNodeOrderListOrder["OrderId"].isNull())
|
||||||
|
orderObject.orderId = dataNodeOrderListOrder["OrderId"].asString();
|
||||||
|
if(!dataNodeOrderListOrder["PretaxAmount"].isNull())
|
||||||
|
orderObject.pretaxAmount = dataNodeOrderListOrder["PretaxAmount"].asString();
|
||||||
|
if(!dataNodeOrderListOrder["OrderSubType"].isNull())
|
||||||
|
orderObject.orderSubType = dataNodeOrderListOrder["OrderSubType"].asString();
|
||||||
|
if(!dataNodeOrderListOrder["Region"].isNull())
|
||||||
|
orderObject.region = dataNodeOrderListOrder["Region"].asString();
|
||||||
|
if(!dataNodeOrderListOrder["InstanceIDs"].isNull())
|
||||||
|
orderObject.instanceIDs = dataNodeOrderListOrder["InstanceIDs"].asString();
|
||||||
|
if(!dataNodeOrderListOrder["PretaxAmountLocal"].isNull())
|
||||||
|
orderObject.pretaxAmountLocal = dataNodeOrderListOrder["PretaxAmountLocal"].asString();
|
||||||
|
if(!dataNodeOrderListOrder["CommodityCode"].isNull())
|
||||||
|
orderObject.commodityCode = dataNodeOrderListOrder["CommodityCode"].asString();
|
||||||
data_.orderList.push_back(orderObject);
|
data_.orderList.push_back(orderObject);
|
||||||
}
|
}
|
||||||
if(!value["Success"].isNull())
|
|
||||||
success_ = value["Success"].asString() == "true";
|
|
||||||
if(!value["Code"].isNull())
|
|
||||||
code_ = value["Code"].asString();
|
|
||||||
if(!value["Message"].isNull())
|
if(!value["Message"].isNull())
|
||||||
message_ = value["Message"].asString();
|
message_ = value["Message"].asString();
|
||||||
|
if(!value["Code"].isNull())
|
||||||
|
code_ = value["Code"].asString();
|
||||||
|
if(!value["Success"].isNull())
|
||||||
|
success_ = value["Success"].asString() == "true";
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -43,20 +43,20 @@ void ModifyCostUnitResult::parse(const std::string &payload)
|
|||||||
for (auto valueDataDataItem : allDataNode)
|
for (auto valueDataDataItem : allDataNode)
|
||||||
{
|
{
|
||||||
DataItem dataObject;
|
DataItem dataObject;
|
||||||
if(!valueDataDataItem["OwnerUid"].isNull())
|
|
||||||
dataObject.ownerUid = std::stol(valueDataDataItem["OwnerUid"].asString());
|
|
||||||
if(!valueDataDataItem["UnitId"].isNull())
|
|
||||||
dataObject.unitId = std::stol(valueDataDataItem["UnitId"].asString());
|
|
||||||
if(!valueDataDataItem["IsSuccess"].isNull())
|
if(!valueDataDataItem["IsSuccess"].isNull())
|
||||||
dataObject.isSuccess = valueDataDataItem["IsSuccess"].asString() == "true";
|
dataObject.isSuccess = valueDataDataItem["IsSuccess"].asString() == "true";
|
||||||
|
if(!valueDataDataItem["UnitId"].isNull())
|
||||||
|
dataObject.unitId = std::stol(valueDataDataItem["UnitId"].asString());
|
||||||
|
if(!valueDataDataItem["OwnerUid"].isNull())
|
||||||
|
dataObject.ownerUid = std::stol(valueDataDataItem["OwnerUid"].asString());
|
||||||
data_.push_back(dataObject);
|
data_.push_back(dataObject);
|
||||||
}
|
}
|
||||||
if(!value["Success"].isNull())
|
|
||||||
success_ = value["Success"].asString() == "true";
|
|
||||||
if(!value["Code"].isNull())
|
|
||||||
code_ = value["Code"].asString();
|
|
||||||
if(!value["Message"].isNull())
|
if(!value["Message"].isNull())
|
||||||
message_ = value["Message"].asString();
|
message_ = value["Message"].asString();
|
||||||
|
if(!value["Code"].isNull())
|
||||||
|
code_ = value["Code"].asString();
|
||||||
|
if(!value["Success"].isNull())
|
||||||
|
success_ = value["Success"].asString() == "true";
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user