Compare commits
99 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
3611eea277 | ||
|
|
c4b557376c | ||
|
|
24b001f51b | ||
|
|
15e8858e41 | ||
|
|
116e803463 | ||
|
|
dcf6a32ce9 | ||
|
|
8ea981fec3 | ||
|
|
f5798365ea | ||
|
|
aa08d51cee | ||
|
|
42e485b31a | ||
|
|
52cbb112ba | ||
|
|
85b4b44446 | ||
|
|
b7f51abaa3 | ||
|
|
3a799926cc | ||
|
|
f640148ecc | ||
|
|
541be1be3e | ||
|
|
706b0f8216 | ||
|
|
892c369789 | ||
|
|
f9c588487c | ||
|
|
feb2350da9 | ||
|
|
0c4ce878a8 | ||
|
|
7fa4a0d0a5 | ||
|
|
269c197a87 | ||
|
|
6aa3c65c39 | ||
|
|
1d2cdfa39f | ||
|
|
e2c355f334 | ||
|
|
669f7e68c2 | ||
|
|
4604ad2323 | ||
|
|
fe60cca404 | ||
|
|
288efa5b1f | ||
|
|
660dacf04d | ||
|
|
fde408fe24 | ||
|
|
f78ca8c724 | ||
|
|
6f8b83d17e | ||
|
|
9b5da5d494 | ||
|
|
ba890b6d6c | ||
|
|
6bdc46aefb | ||
|
|
e2a8813a1b | ||
|
|
37dde26ac1 | ||
|
|
cf984bbcfc | ||
|
|
fe11ae7d12 | ||
|
|
4095ec22b9 | ||
|
|
2829dacfb2 | ||
|
|
051e0b3a92 | ||
|
|
d85d6f6494 | ||
|
|
353bb56a9b | ||
|
|
c1390eb44e | ||
|
|
e39d422408 | ||
|
|
6c4aa68089 | ||
|
|
de92956a15 | ||
|
|
befec9ee53 | ||
|
|
9ca2a7694b | ||
|
|
caafbf0de9 | ||
|
|
1c7304d44c | ||
|
|
a34003466f | ||
|
|
14dc74bf6a | ||
|
|
2373071165 | ||
|
|
13d4cbf2f9 | ||
|
|
650feae280 | ||
|
|
d1aee32108 | ||
|
|
607556b08a | ||
|
|
28afe651a7 | ||
|
|
096a349c41 | ||
|
|
191dc8eb68 | ||
|
|
7a98ea847f | ||
|
|
d2e8acabaa | ||
|
|
fdda25160a | ||
|
|
96f811507e | ||
|
|
cf62272b5b | ||
|
|
75a15fd95e | ||
|
|
4dea18972d | ||
|
|
a6a706f7bd | ||
|
|
ba89b8f5b6 | ||
|
|
602862cc5e | ||
|
|
914402ac4e | ||
|
|
3a7cca96e3 | ||
|
|
3d527e15e0 | ||
|
|
54a8427771 | ||
|
|
5f1578fdbe | ||
|
|
e4fc46970b | ||
|
|
a6fdb87ef4 | ||
|
|
754add8798 | ||
|
|
1044402e1d | ||
|
|
8cc78b3a3e | ||
|
|
0cf5861ece | ||
|
|
524b68ac01 | ||
|
|
e6902accf9 | ||
|
|
eda4d09d82 | ||
|
|
537988875e | ||
|
|
d6278ad8a3 | ||
|
|
c0e3f6e782 | ||
|
|
8778009aff | ||
|
|
7b81c413a1 | ||
|
|
27a39a83b5 | ||
|
|
c132dd86ae | ||
|
|
f73358f7e8 | ||
|
|
23c07a12a3 | ||
|
|
8e7691c351 | ||
|
|
a5a5b1c4eb |
310
CHANGELOG
310
CHANGELOG
@@ -1,3 +1,313 @@
|
||||
2021-12-27 Version: 1.36.996
|
||||
- Update DeleteFCTrigger.
|
||||
|
||||
2021-12-27 Version: 1.36.995
|
||||
- Add CreateDcdnSubTask.
|
||||
|
||||
2021-12-27 Version: 1.36.994
|
||||
- Add DescribeScdnDomainCcInfo.
|
||||
|
||||
2021-12-24 Version: 1.36.993
|
||||
- Supported CheckBlockVolumeName api for Checking the volume name has been already used by the OSS bucket folder.
|
||||
|
||||
2021-12-23 Version: 1.36.992
|
||||
- Fix array params.
|
||||
|
||||
2021-12-22 Version: 1.36.991
|
||||
- Add return fields to UploadStreamByURL.
|
||||
- Set DescribeVodDomainSrcTrafficData pulic.
|
||||
|
||||
2021-12-21 Version: 1.36.990
|
||||
- Support Darabonba API.
|
||||
|
||||
2021-12-21 Version: 1.36.989
|
||||
- Add RAM ID in resonse of listUsers API.
|
||||
|
||||
2021-12-21 Version: 1.36.988
|
||||
- Fix array params.
|
||||
|
||||
2021-12-21 Version: 1.36.987
|
||||
- Supported Designate Workers.
|
||||
- Supported Get WorkFlow.
|
||||
|
||||
2021-12-20 Version: 1.36.986
|
||||
- Add Request Param Ipv6AddressCount For API CreateLaunchTemplate AND CreateLaunchTemplateVersion.
|
||||
- Add Response Data Ipv6AddressCount For API DescribeLaunchTemplateVersions.
|
||||
|
||||
2021-12-20 Version: 1.36.985
|
||||
- Generated 2016-04-08 for `Emr`.
|
||||
|
||||
2021-12-17 Version: 1.36.984
|
||||
- Support Endpoint Protect.
|
||||
|
||||
2021-12-17 Version: 1.36.983
|
||||
- Supported ACL for SMB.
|
||||
|
||||
2021-12-16 Version: 1.36.982
|
||||
- Release for sprint 2_2_0.
|
||||
|
||||
2021-12-16 Version: 1.36.981
|
||||
- Update OTA API, including CreateOTADynamicUpgradeJob,CreateOTAStaticUpgradeJob,QueryOTAJob.
|
||||
|
||||
2021-12-14 Version: 1.36.980
|
||||
- Support query resourceType.
|
||||
|
||||
2021-12-14 Version: 1.36.979
|
||||
- Generated 2019-09-10 for `waf-openapi`.
|
||||
|
||||
2021-12-13 Version: 1.36.978
|
||||
- CreateServerlessDBInstance Add CapacityUnit.
|
||||
|
||||
2021-12-13 Version: 1.36.977
|
||||
- Openapi support querydisplay.
|
||||
|
||||
2021-12-13 Version: 1.36.976
|
||||
- Support query resourceType.
|
||||
|
||||
2021-12-13 Version: 1.36.975
|
||||
- Support query resourceType.
|
||||
|
||||
2021-12-13 Version: 1.36.974
|
||||
- Support query resourceType.
|
||||
|
||||
2021-12-09 Version: 1.36.973
|
||||
- Support ACR EE, OSS, EIP for deploy.
|
||||
|
||||
2021-12-08 Version: 1.36.972
|
||||
- Add API for New Features.
|
||||
|
||||
2021-12-08 Version: 1.36.971
|
||||
- Fixed bugs for UnbindSubscription API.
|
||||
|
||||
2021-12-07 Version: 1.36.970
|
||||
- Fix DescribeInstances clusterId.
|
||||
|
||||
2021-12-07 Version: 1.36.969
|
||||
- Add MetaTag APIs.
|
||||
|
||||
2021-12-07 Version: 1.36.968
|
||||
- Add MetaTag APIs.
|
||||
|
||||
2021-12-06 Version: 1.36.967
|
||||
- Support Bond Eni.
|
||||
|
||||
2021-12-06 Version: 1.36.966
|
||||
- Support Bond Eni.
|
||||
|
||||
2021-12-06 Version: 1.36.965
|
||||
- Generated 2020-05-18 for `dataworks-public`.
|
||||
|
||||
2021-12-06 Version: 1.36.964
|
||||
- Modify the input parameter Action of DescribeCenInterRegionBandwidthLimits to be required.
|
||||
|
||||
2021-12-03 Version: 1.36.963
|
||||
- Add EventRule Content Filter.
|
||||
- Add MetricRule Labels.
|
||||
|
||||
2021-12-03 Version: 1.36.962
|
||||
- Support EndpointType and ServiceType.
|
||||
|
||||
2021-12-02 Version: 1.36.961
|
||||
- Update MergeImageFace QueryFaceImageTemplate AddFaceImageTemplate DeleteFaceImageTemplate.
|
||||
|
||||
2021-12-01 Version: 1.36.960
|
||||
- Support not switching routes when VBR health check fails.
|
||||
- Support order type when cross-account authorization and display.
|
||||
|
||||
2021-12-01 Version: 1.36.959
|
||||
- Supported RequestDecision For YN.
|
||||
|
||||
2021-11-30 Version: 1.36.958
|
||||
- Support health check paging.
|
||||
|
||||
2021-11-30 Version: 1.36.957
|
||||
- Support health check paging.
|
||||
|
||||
2021-11-29 Version: 1.36.956
|
||||
- Add API for unregister sip phone device, masked callee, etc.
|
||||
|
||||
2021-11-29 Version: 1.36.955
|
||||
- Update DescribeCdnSMCertificateDetail.
|
||||
|
||||
2021-11-29 Version: 1.36.954
|
||||
- Update SetDcdnDomainSMCertificate.
|
||||
|
||||
2021-11-29 Version: 1.36.953
|
||||
- Generated 2016-11-01 for `live`.
|
||||
|
||||
2021-11-26 Version: 1.36.952
|
||||
- Support CEN Qos Apis.
|
||||
- Support TransitRouter Latest Apis.
|
||||
|
||||
2021-11-26 Version: 1.36.951
|
||||
- Update GetSyncResult.
|
||||
|
||||
2021-11-25 Version: 1.36.950
|
||||
- Supported new features etc.
|
||||
|
||||
2021-11-25 Version: 1.36.949
|
||||
- Supported new features etc.
|
||||
|
||||
2021-11-25 Version: 1.36.948
|
||||
- Supported new features for outbound.
|
||||
|
||||
2021-11-25 Version: 1.36.947
|
||||
- Delete some abandoned interface.
|
||||
- Add some interfaces.
|
||||
|
||||
2021-11-25 Version: 1.36.946
|
||||
- Minor changes.
|
||||
|
||||
2021-11-24 Version: 1.36.945
|
||||
- Delete some abandoned interface in SDK.
|
||||
|
||||
2021-11-24 Version: 1.36.944
|
||||
- Set API DescribeVodDomainSrcBpsData to public.
|
||||
|
||||
2021-11-23 Version: 1.36.943
|
||||
- Delete some abandoned interface in SDK.
|
||||
- Add AutoLiveStream series interfaces.
|
||||
- Add UpdateMPUTask, CreateRecordIndexFile interfaces.
|
||||
|
||||
2021-11-23 Version: 1.36.942
|
||||
- Update RecognizeCharacter.
|
||||
|
||||
2021-11-23 Version: 1.36.941
|
||||
- Generated 2016-04-08 for `Emr`.
|
||||
|
||||
2021-11-23 Version: 1.36.940
|
||||
- Fix BdsColdStorage.
|
||||
|
||||
2021-11-23 Version: 1.36.939
|
||||
- Support the IP restrictions in ram policy.
|
||||
|
||||
2021-11-19 Version: 1.36.938
|
||||
- Add site monitoring dial DNS_ match_ rule.
|
||||
|
||||
2021-11-17 Version: 1.36.937
|
||||
- Update apm interface parameter.
|
||||
|
||||
2021-11-16 Version: 1.36.936
|
||||
- Add parameter type HDRType.
|
||||
|
||||
2021-11-16 Version: 1.36.935
|
||||
- Update apm interface parameter.
|
||||
|
||||
2021-11-16 Version: 1.36.934
|
||||
- Update apm interface parameter.
|
||||
|
||||
2021-11-16 Version: 1.36.933
|
||||
- Generated 2017-12-28 for `ddoscoo`.
|
||||
|
||||
2021-11-16 Version: 1.36.932
|
||||
- Update SetCdnDomainSMCertificate.
|
||||
|
||||
2021-11-16 Version: 1.36.931
|
||||
- Update apm interface parameter.
|
||||
|
||||
2021-11-15 Version: 1.36.930
|
||||
- Generated 2020-01-01 for `ddoscoo`.
|
||||
|
||||
2021-11-15 Version: 1.36.929
|
||||
- Add Ext parameter to image translation API.
|
||||
|
||||
2021-11-15 Version: 1.36.928
|
||||
- Update DetectVehicleICongestion DetectVehicleIllegalParking.
|
||||
|
||||
2021-11-12 Version: 1.36.927
|
||||
- Update by sdk platform.
|
||||
|
||||
2021-11-12 Version: 1.36.926
|
||||
- Optimize the API for querying storage package information.
|
||||
|
||||
2021-11-08 Version: 1.36.925
|
||||
- Supported apm restful api.
|
||||
|
||||
2021-11-05 Version: 1.36.924
|
||||
- Add SetDcdnDomainSMCertificate.
|
||||
|
||||
2021-11-05 Version: 1.36.923
|
||||
- Add SetCdnDomainSMCertificate.
|
||||
|
||||
2021-11-05 Version: 1.36.922
|
||||
- Update OTA API, including CreateOTAVerifyJob.
|
||||
|
||||
2021-11-04 Version: 1.36.921
|
||||
- Adjust some param.
|
||||
|
||||
2021-11-02 Version: 1.36.920
|
||||
- Add GetVideoPlayAuth API parameter.
|
||||
|
||||
2021-11-02 Version: 1.36.919
|
||||
- Add GetVideoPlayAuth API parameter.
|
||||
|
||||
2021-11-02 Version: 1.36.918
|
||||
- Support multi language.
|
||||
|
||||
2021-11-02 Version: 1.36.917
|
||||
- Add API UploadStreamByURL.
|
||||
|
||||
2021-11-02 Version: 1.36.916
|
||||
- Fixed SDK update delay.
|
||||
|
||||
2021-11-01 Version: 1.36.915
|
||||
- Release DetectKitchenAnimals DetectWorkwear.
|
||||
|
||||
2021-10-28 Version: 1.36.914
|
||||
- Add no data alarm processing.
|
||||
|
||||
2021-10-28 Version: 1.36.913
|
||||
- Updated tag api.
|
||||
- Updated DescribeTask api to get relatedResourceId info.
|
||||
|
||||
2021-10-27 Version: 1.36.912
|
||||
- Fix ModifyInstanceName.
|
||||
|
||||
2021-10-26 Version: 1.36.911
|
||||
- Add QueryEmbedTokenInfo,DeleteEmbedToken,CreateEmbedToken,DelayEmbedToken,BuildSignatureUrl, and update QueryDatasetInfo,AuthorizeMenu,AddUserTagMeta,AddUser.
|
||||
|
||||
2021-10-26 Version: 1.36.910
|
||||
- Update Dyvmsapi SDK.
|
||||
|
||||
2021-10-25 Version: 1.36.909
|
||||
- DescribeDtsJobs api, delay filed change from int to long.
|
||||
|
||||
2021-10-25 Version: 1.36.908
|
||||
- Generated 2016-04-08 for `Emr`.
|
||||
|
||||
2021-10-25 Version: 1.36.907
|
||||
- Generated 2016-11-01 for `live`.
|
||||
|
||||
2021-10-21 Version: 1.36.906
|
||||
- Update Open API.
|
||||
|
||||
2021-10-21 Version: 1.36.905
|
||||
- Generated 2020-05-18 for `dataworks-public`.
|
||||
|
||||
2021-10-21 Version: 1.36.904
|
||||
- Release AddQualityScore.
|
||||
|
||||
2021-10-21 Version: 1.36.903
|
||||
- Generated 2020-05-18 for `dataworks-public`.
|
||||
|
||||
2021-10-20 Version: 1.36.902
|
||||
- Add DeviceCenter API, including CreateDeviceDynamicGroup, DeleteDeviceDynamicGroup, QueryDynamicGroupDevices.
|
||||
- Update DeviceCenter API, including SetDeviceGroupTags, QueryDeviceGroupByFuzzyName, QueryDeviceGroupByDevice, QueryDeviceGroupTagList, UpdateDeviceGroup, QueryDeviceGroupList, QueryDeviceGroupInfo.
|
||||
- Update OTA API, including CreateOTADynamicUpgradeJob, CreateOTAStaticUpgradeJob, QueryOTAJob.
|
||||
|
||||
2021-10-19 Version: 1.36.901
|
||||
- Supported ScaleApp totalPartitions.
|
||||
|
||||
2021-10-18 Version: 1.36.900
|
||||
- Generated 2019-09-10, 2018-01-17 for `waf-openapi`.
|
||||
|
||||
2021-10-18 Version: 1.36.899
|
||||
- Adjust ecs openapi endpoint.
|
||||
- Fix SDK array format.
|
||||
|
||||
2021-10-15 Version: 1.36.898
|
||||
- Added audit status.
|
||||
|
||||
2021-10-15 Version: 1.36.897
|
||||
- Generated 2020-02-01 for `cloudesl`.
|
||||
|
||||
|
||||
@@ -25,10 +25,14 @@ set(alb_public_header_model
|
||||
include/alibabacloud/alb/model/AddEntriesToAclResult.h
|
||||
include/alibabacloud/alb/model/AddServersToServerGroupRequest.h
|
||||
include/alibabacloud/alb/model/AddServersToServerGroupResult.h
|
||||
include/alibabacloud/alb/model/ApplyHealthCheckTemplateToServerGroupRequest.h
|
||||
include/alibabacloud/alb/model/ApplyHealthCheckTemplateToServerGroupResult.h
|
||||
include/alibabacloud/alb/model/AssociateAclsWithListenerRequest.h
|
||||
include/alibabacloud/alb/model/AssociateAclsWithListenerResult.h
|
||||
include/alibabacloud/alb/model/AssociateAdditionalCertificatesWithListenerRequest.h
|
||||
include/alibabacloud/alb/model/AssociateAdditionalCertificatesWithListenerResult.h
|
||||
include/alibabacloud/alb/model/AttachCommonBandwidthPackageToLoadBalancerRequest.h
|
||||
include/alibabacloud/alb/model/AttachCommonBandwidthPackageToLoadBalancerResult.h
|
||||
include/alibabacloud/alb/model/CreateAclRequest.h
|
||||
include/alibabacloud/alb/model/CreateAclResult.h
|
||||
include/alibabacloud/alb/model/CreateHealthCheckTemplateRequest.h
|
||||
@@ -65,6 +69,8 @@ set(alb_public_header_model
|
||||
include/alibabacloud/alb/model/DescribeRegionsResult.h
|
||||
include/alibabacloud/alb/model/DescribeZonesRequest.h
|
||||
include/alibabacloud/alb/model/DescribeZonesResult.h
|
||||
include/alibabacloud/alb/model/DetachCommonBandwidthPackageFromLoadBalancerRequest.h
|
||||
include/alibabacloud/alb/model/DetachCommonBandwidthPackageFromLoadBalancerResult.h
|
||||
include/alibabacloud/alb/model/DisableDeletionProtectionRequest.h
|
||||
include/alibabacloud/alb/model/DisableDeletionProtectionResult.h
|
||||
include/alibabacloud/alb/model/DisableLoadBalancerAccessLogRequest.h
|
||||
@@ -81,6 +87,8 @@ set(alb_public_header_model
|
||||
include/alibabacloud/alb/model/GetHealthCheckTemplateAttributeResult.h
|
||||
include/alibabacloud/alb/model/GetListenerAttributeRequest.h
|
||||
include/alibabacloud/alb/model/GetListenerAttributeResult.h
|
||||
include/alibabacloud/alb/model/GetListenerHealthStatusRequest.h
|
||||
include/alibabacloud/alb/model/GetListenerHealthStatusResult.h
|
||||
include/alibabacloud/alb/model/GetLoadBalancerAttributeRequest.h
|
||||
include/alibabacloud/alb/model/GetLoadBalancerAttributeResult.h
|
||||
include/alibabacloud/alb/model/ListAclEntriesRequest.h
|
||||
@@ -145,6 +153,8 @@ set(alb_public_header_model
|
||||
include/alibabacloud/alb/model/UpdateLoadBalancerAttributeResult.h
|
||||
include/alibabacloud/alb/model/UpdateLoadBalancerEditionRequest.h
|
||||
include/alibabacloud/alb/model/UpdateLoadBalancerEditionResult.h
|
||||
include/alibabacloud/alb/model/UpdateLoadBalancerZonesRequest.h
|
||||
include/alibabacloud/alb/model/UpdateLoadBalancerZonesResult.h
|
||||
include/alibabacloud/alb/model/UpdateRuleAttributeRequest.h
|
||||
include/alibabacloud/alb/model/UpdateRuleAttributeResult.h
|
||||
include/alibabacloud/alb/model/UpdateRulesAttributeRequest.h
|
||||
@@ -162,10 +172,14 @@ set(alb_src
|
||||
src/model/AddEntriesToAclResult.cc
|
||||
src/model/AddServersToServerGroupRequest.cc
|
||||
src/model/AddServersToServerGroupResult.cc
|
||||
src/model/ApplyHealthCheckTemplateToServerGroupRequest.cc
|
||||
src/model/ApplyHealthCheckTemplateToServerGroupResult.cc
|
||||
src/model/AssociateAclsWithListenerRequest.cc
|
||||
src/model/AssociateAclsWithListenerResult.cc
|
||||
src/model/AssociateAdditionalCertificatesWithListenerRequest.cc
|
||||
src/model/AssociateAdditionalCertificatesWithListenerResult.cc
|
||||
src/model/AttachCommonBandwidthPackageToLoadBalancerRequest.cc
|
||||
src/model/AttachCommonBandwidthPackageToLoadBalancerResult.cc
|
||||
src/model/CreateAclRequest.cc
|
||||
src/model/CreateAclResult.cc
|
||||
src/model/CreateHealthCheckTemplateRequest.cc
|
||||
@@ -202,6 +216,8 @@ set(alb_src
|
||||
src/model/DescribeRegionsResult.cc
|
||||
src/model/DescribeZonesRequest.cc
|
||||
src/model/DescribeZonesResult.cc
|
||||
src/model/DetachCommonBandwidthPackageFromLoadBalancerRequest.cc
|
||||
src/model/DetachCommonBandwidthPackageFromLoadBalancerResult.cc
|
||||
src/model/DisableDeletionProtectionRequest.cc
|
||||
src/model/DisableDeletionProtectionResult.cc
|
||||
src/model/DisableLoadBalancerAccessLogRequest.cc
|
||||
@@ -218,6 +234,8 @@ set(alb_src
|
||||
src/model/GetHealthCheckTemplateAttributeResult.cc
|
||||
src/model/GetListenerAttributeRequest.cc
|
||||
src/model/GetListenerAttributeResult.cc
|
||||
src/model/GetListenerHealthStatusRequest.cc
|
||||
src/model/GetListenerHealthStatusResult.cc
|
||||
src/model/GetLoadBalancerAttributeRequest.cc
|
||||
src/model/GetLoadBalancerAttributeResult.cc
|
||||
src/model/ListAclEntriesRequest.cc
|
||||
@@ -282,6 +300,8 @@ set(alb_src
|
||||
src/model/UpdateLoadBalancerAttributeResult.cc
|
||||
src/model/UpdateLoadBalancerEditionRequest.cc
|
||||
src/model/UpdateLoadBalancerEditionResult.cc
|
||||
src/model/UpdateLoadBalancerZonesRequest.cc
|
||||
src/model/UpdateLoadBalancerZonesResult.cc
|
||||
src/model/UpdateRuleAttributeRequest.cc
|
||||
src/model/UpdateRuleAttributeResult.cc
|
||||
src/model/UpdateRulesAttributeRequest.cc
|
||||
|
||||
@@ -26,10 +26,14 @@
|
||||
#include "model/AddEntriesToAclResult.h"
|
||||
#include "model/AddServersToServerGroupRequest.h"
|
||||
#include "model/AddServersToServerGroupResult.h"
|
||||
#include "model/ApplyHealthCheckTemplateToServerGroupRequest.h"
|
||||
#include "model/ApplyHealthCheckTemplateToServerGroupResult.h"
|
||||
#include "model/AssociateAclsWithListenerRequest.h"
|
||||
#include "model/AssociateAclsWithListenerResult.h"
|
||||
#include "model/AssociateAdditionalCertificatesWithListenerRequest.h"
|
||||
#include "model/AssociateAdditionalCertificatesWithListenerResult.h"
|
||||
#include "model/AttachCommonBandwidthPackageToLoadBalancerRequest.h"
|
||||
#include "model/AttachCommonBandwidthPackageToLoadBalancerResult.h"
|
||||
#include "model/CreateAclRequest.h"
|
||||
#include "model/CreateAclResult.h"
|
||||
#include "model/CreateHealthCheckTemplateRequest.h"
|
||||
@@ -66,6 +70,8 @@
|
||||
#include "model/DescribeRegionsResult.h"
|
||||
#include "model/DescribeZonesRequest.h"
|
||||
#include "model/DescribeZonesResult.h"
|
||||
#include "model/DetachCommonBandwidthPackageFromLoadBalancerRequest.h"
|
||||
#include "model/DetachCommonBandwidthPackageFromLoadBalancerResult.h"
|
||||
#include "model/DisableDeletionProtectionRequest.h"
|
||||
#include "model/DisableDeletionProtectionResult.h"
|
||||
#include "model/DisableLoadBalancerAccessLogRequest.h"
|
||||
@@ -82,6 +88,8 @@
|
||||
#include "model/GetHealthCheckTemplateAttributeResult.h"
|
||||
#include "model/GetListenerAttributeRequest.h"
|
||||
#include "model/GetListenerAttributeResult.h"
|
||||
#include "model/GetListenerHealthStatusRequest.h"
|
||||
#include "model/GetListenerHealthStatusResult.h"
|
||||
#include "model/GetLoadBalancerAttributeRequest.h"
|
||||
#include "model/GetLoadBalancerAttributeResult.h"
|
||||
#include "model/ListAclEntriesRequest.h"
|
||||
@@ -146,6 +154,8 @@
|
||||
#include "model/UpdateLoadBalancerAttributeResult.h"
|
||||
#include "model/UpdateLoadBalancerEditionRequest.h"
|
||||
#include "model/UpdateLoadBalancerEditionResult.h"
|
||||
#include "model/UpdateLoadBalancerZonesRequest.h"
|
||||
#include "model/UpdateLoadBalancerZonesResult.h"
|
||||
#include "model/UpdateRuleAttributeRequest.h"
|
||||
#include "model/UpdateRuleAttributeResult.h"
|
||||
#include "model/UpdateRulesAttributeRequest.h"
|
||||
@@ -171,12 +181,18 @@ namespace AlibabaCloud
|
||||
typedef Outcome<Error, Model::AddServersToServerGroupResult> AddServersToServerGroupOutcome;
|
||||
typedef std::future<AddServersToServerGroupOutcome> AddServersToServerGroupOutcomeCallable;
|
||||
typedef std::function<void(const AlbClient*, const Model::AddServersToServerGroupRequest&, const AddServersToServerGroupOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> AddServersToServerGroupAsyncHandler;
|
||||
typedef Outcome<Error, Model::ApplyHealthCheckTemplateToServerGroupResult> ApplyHealthCheckTemplateToServerGroupOutcome;
|
||||
typedef std::future<ApplyHealthCheckTemplateToServerGroupOutcome> ApplyHealthCheckTemplateToServerGroupOutcomeCallable;
|
||||
typedef std::function<void(const AlbClient*, const Model::ApplyHealthCheckTemplateToServerGroupRequest&, const ApplyHealthCheckTemplateToServerGroupOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ApplyHealthCheckTemplateToServerGroupAsyncHandler;
|
||||
typedef Outcome<Error, Model::AssociateAclsWithListenerResult> AssociateAclsWithListenerOutcome;
|
||||
typedef std::future<AssociateAclsWithListenerOutcome> AssociateAclsWithListenerOutcomeCallable;
|
||||
typedef std::function<void(const AlbClient*, const Model::AssociateAclsWithListenerRequest&, const AssociateAclsWithListenerOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> AssociateAclsWithListenerAsyncHandler;
|
||||
typedef Outcome<Error, Model::AssociateAdditionalCertificatesWithListenerResult> AssociateAdditionalCertificatesWithListenerOutcome;
|
||||
typedef std::future<AssociateAdditionalCertificatesWithListenerOutcome> AssociateAdditionalCertificatesWithListenerOutcomeCallable;
|
||||
typedef std::function<void(const AlbClient*, const Model::AssociateAdditionalCertificatesWithListenerRequest&, const AssociateAdditionalCertificatesWithListenerOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> AssociateAdditionalCertificatesWithListenerAsyncHandler;
|
||||
typedef Outcome<Error, Model::AttachCommonBandwidthPackageToLoadBalancerResult> AttachCommonBandwidthPackageToLoadBalancerOutcome;
|
||||
typedef std::future<AttachCommonBandwidthPackageToLoadBalancerOutcome> AttachCommonBandwidthPackageToLoadBalancerOutcomeCallable;
|
||||
typedef std::function<void(const AlbClient*, const Model::AttachCommonBandwidthPackageToLoadBalancerRequest&, const AttachCommonBandwidthPackageToLoadBalancerOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> AttachCommonBandwidthPackageToLoadBalancerAsyncHandler;
|
||||
typedef Outcome<Error, Model::CreateAclResult> CreateAclOutcome;
|
||||
typedef std::future<CreateAclOutcome> CreateAclOutcomeCallable;
|
||||
typedef std::function<void(const AlbClient*, const Model::CreateAclRequest&, const CreateAclOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> CreateAclAsyncHandler;
|
||||
@@ -231,6 +247,9 @@ namespace AlibabaCloud
|
||||
typedef Outcome<Error, Model::DescribeZonesResult> DescribeZonesOutcome;
|
||||
typedef std::future<DescribeZonesOutcome> DescribeZonesOutcomeCallable;
|
||||
typedef std::function<void(const AlbClient*, const Model::DescribeZonesRequest&, const DescribeZonesOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeZonesAsyncHandler;
|
||||
typedef Outcome<Error, Model::DetachCommonBandwidthPackageFromLoadBalancerResult> DetachCommonBandwidthPackageFromLoadBalancerOutcome;
|
||||
typedef std::future<DetachCommonBandwidthPackageFromLoadBalancerOutcome> DetachCommonBandwidthPackageFromLoadBalancerOutcomeCallable;
|
||||
typedef std::function<void(const AlbClient*, const Model::DetachCommonBandwidthPackageFromLoadBalancerRequest&, const DetachCommonBandwidthPackageFromLoadBalancerOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DetachCommonBandwidthPackageFromLoadBalancerAsyncHandler;
|
||||
typedef Outcome<Error, Model::DisableDeletionProtectionResult> DisableDeletionProtectionOutcome;
|
||||
typedef std::future<DisableDeletionProtectionOutcome> DisableDeletionProtectionOutcomeCallable;
|
||||
typedef std::function<void(const AlbClient*, const Model::DisableDeletionProtectionRequest&, const DisableDeletionProtectionOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DisableDeletionProtectionAsyncHandler;
|
||||
@@ -255,6 +274,9 @@ namespace AlibabaCloud
|
||||
typedef Outcome<Error, Model::GetListenerAttributeResult> GetListenerAttributeOutcome;
|
||||
typedef std::future<GetListenerAttributeOutcome> GetListenerAttributeOutcomeCallable;
|
||||
typedef std::function<void(const AlbClient*, const Model::GetListenerAttributeRequest&, const GetListenerAttributeOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetListenerAttributeAsyncHandler;
|
||||
typedef Outcome<Error, Model::GetListenerHealthStatusResult> GetListenerHealthStatusOutcome;
|
||||
typedef std::future<GetListenerHealthStatusOutcome> GetListenerHealthStatusOutcomeCallable;
|
||||
typedef std::function<void(const AlbClient*, const Model::GetListenerHealthStatusRequest&, const GetListenerHealthStatusOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetListenerHealthStatusAsyncHandler;
|
||||
typedef Outcome<Error, Model::GetLoadBalancerAttributeResult> GetLoadBalancerAttributeOutcome;
|
||||
typedef std::future<GetLoadBalancerAttributeOutcome> GetLoadBalancerAttributeOutcomeCallable;
|
||||
typedef std::function<void(const AlbClient*, const Model::GetLoadBalancerAttributeRequest&, const GetLoadBalancerAttributeOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetLoadBalancerAttributeAsyncHandler;
|
||||
@@ -351,6 +373,9 @@ namespace AlibabaCloud
|
||||
typedef Outcome<Error, Model::UpdateLoadBalancerEditionResult> UpdateLoadBalancerEditionOutcome;
|
||||
typedef std::future<UpdateLoadBalancerEditionOutcome> UpdateLoadBalancerEditionOutcomeCallable;
|
||||
typedef std::function<void(const AlbClient*, const Model::UpdateLoadBalancerEditionRequest&, const UpdateLoadBalancerEditionOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> UpdateLoadBalancerEditionAsyncHandler;
|
||||
typedef Outcome<Error, Model::UpdateLoadBalancerZonesResult> UpdateLoadBalancerZonesOutcome;
|
||||
typedef std::future<UpdateLoadBalancerZonesOutcome> UpdateLoadBalancerZonesOutcomeCallable;
|
||||
typedef std::function<void(const AlbClient*, const Model::UpdateLoadBalancerZonesRequest&, const UpdateLoadBalancerZonesOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> UpdateLoadBalancerZonesAsyncHandler;
|
||||
typedef Outcome<Error, Model::UpdateRuleAttributeResult> UpdateRuleAttributeOutcome;
|
||||
typedef std::future<UpdateRuleAttributeOutcome> UpdateRuleAttributeOutcomeCallable;
|
||||
typedef std::function<void(const AlbClient*, const Model::UpdateRuleAttributeRequest&, const UpdateRuleAttributeOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> UpdateRuleAttributeAsyncHandler;
|
||||
@@ -377,12 +402,18 @@ namespace AlibabaCloud
|
||||
AddServersToServerGroupOutcome addServersToServerGroup(const Model::AddServersToServerGroupRequest &request)const;
|
||||
void addServersToServerGroupAsync(const Model::AddServersToServerGroupRequest& request, const AddServersToServerGroupAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
AddServersToServerGroupOutcomeCallable addServersToServerGroupCallable(const Model::AddServersToServerGroupRequest& request) const;
|
||||
ApplyHealthCheckTemplateToServerGroupOutcome applyHealthCheckTemplateToServerGroup(const Model::ApplyHealthCheckTemplateToServerGroupRequest &request)const;
|
||||
void applyHealthCheckTemplateToServerGroupAsync(const Model::ApplyHealthCheckTemplateToServerGroupRequest& request, const ApplyHealthCheckTemplateToServerGroupAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
ApplyHealthCheckTemplateToServerGroupOutcomeCallable applyHealthCheckTemplateToServerGroupCallable(const Model::ApplyHealthCheckTemplateToServerGroupRequest& request) const;
|
||||
AssociateAclsWithListenerOutcome associateAclsWithListener(const Model::AssociateAclsWithListenerRequest &request)const;
|
||||
void associateAclsWithListenerAsync(const Model::AssociateAclsWithListenerRequest& request, const AssociateAclsWithListenerAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
AssociateAclsWithListenerOutcomeCallable associateAclsWithListenerCallable(const Model::AssociateAclsWithListenerRequest& request) const;
|
||||
AssociateAdditionalCertificatesWithListenerOutcome associateAdditionalCertificatesWithListener(const Model::AssociateAdditionalCertificatesWithListenerRequest &request)const;
|
||||
void associateAdditionalCertificatesWithListenerAsync(const Model::AssociateAdditionalCertificatesWithListenerRequest& request, const AssociateAdditionalCertificatesWithListenerAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
AssociateAdditionalCertificatesWithListenerOutcomeCallable associateAdditionalCertificatesWithListenerCallable(const Model::AssociateAdditionalCertificatesWithListenerRequest& request) const;
|
||||
AttachCommonBandwidthPackageToLoadBalancerOutcome attachCommonBandwidthPackageToLoadBalancer(const Model::AttachCommonBandwidthPackageToLoadBalancerRequest &request)const;
|
||||
void attachCommonBandwidthPackageToLoadBalancerAsync(const Model::AttachCommonBandwidthPackageToLoadBalancerRequest& request, const AttachCommonBandwidthPackageToLoadBalancerAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
AttachCommonBandwidthPackageToLoadBalancerOutcomeCallable attachCommonBandwidthPackageToLoadBalancerCallable(const Model::AttachCommonBandwidthPackageToLoadBalancerRequest& request) const;
|
||||
CreateAclOutcome createAcl(const Model::CreateAclRequest &request)const;
|
||||
void createAclAsync(const Model::CreateAclRequest& request, const CreateAclAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
CreateAclOutcomeCallable createAclCallable(const Model::CreateAclRequest& request) const;
|
||||
@@ -437,6 +468,9 @@ namespace AlibabaCloud
|
||||
DescribeZonesOutcome describeZones(const Model::DescribeZonesRequest &request)const;
|
||||
void describeZonesAsync(const Model::DescribeZonesRequest& request, const DescribeZonesAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DescribeZonesOutcomeCallable describeZonesCallable(const Model::DescribeZonesRequest& request) const;
|
||||
DetachCommonBandwidthPackageFromLoadBalancerOutcome detachCommonBandwidthPackageFromLoadBalancer(const Model::DetachCommonBandwidthPackageFromLoadBalancerRequest &request)const;
|
||||
void detachCommonBandwidthPackageFromLoadBalancerAsync(const Model::DetachCommonBandwidthPackageFromLoadBalancerRequest& request, const DetachCommonBandwidthPackageFromLoadBalancerAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DetachCommonBandwidthPackageFromLoadBalancerOutcomeCallable detachCommonBandwidthPackageFromLoadBalancerCallable(const Model::DetachCommonBandwidthPackageFromLoadBalancerRequest& request) const;
|
||||
DisableDeletionProtectionOutcome disableDeletionProtection(const Model::DisableDeletionProtectionRequest &request)const;
|
||||
void disableDeletionProtectionAsync(const Model::DisableDeletionProtectionRequest& request, const DisableDeletionProtectionAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DisableDeletionProtectionOutcomeCallable disableDeletionProtectionCallable(const Model::DisableDeletionProtectionRequest& request) const;
|
||||
@@ -461,6 +495,9 @@ namespace AlibabaCloud
|
||||
GetListenerAttributeOutcome getListenerAttribute(const Model::GetListenerAttributeRequest &request)const;
|
||||
void getListenerAttributeAsync(const Model::GetListenerAttributeRequest& request, const GetListenerAttributeAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
GetListenerAttributeOutcomeCallable getListenerAttributeCallable(const Model::GetListenerAttributeRequest& request) const;
|
||||
GetListenerHealthStatusOutcome getListenerHealthStatus(const Model::GetListenerHealthStatusRequest &request)const;
|
||||
void getListenerHealthStatusAsync(const Model::GetListenerHealthStatusRequest& request, const GetListenerHealthStatusAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
GetListenerHealthStatusOutcomeCallable getListenerHealthStatusCallable(const Model::GetListenerHealthStatusRequest& request) const;
|
||||
GetLoadBalancerAttributeOutcome getLoadBalancerAttribute(const Model::GetLoadBalancerAttributeRequest &request)const;
|
||||
void getLoadBalancerAttributeAsync(const Model::GetLoadBalancerAttributeRequest& request, const GetLoadBalancerAttributeAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
GetLoadBalancerAttributeOutcomeCallable getLoadBalancerAttributeCallable(const Model::GetLoadBalancerAttributeRequest& request) const;
|
||||
@@ -557,6 +594,9 @@ namespace AlibabaCloud
|
||||
UpdateLoadBalancerEditionOutcome updateLoadBalancerEdition(const Model::UpdateLoadBalancerEditionRequest &request)const;
|
||||
void updateLoadBalancerEditionAsync(const Model::UpdateLoadBalancerEditionRequest& request, const UpdateLoadBalancerEditionAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
UpdateLoadBalancerEditionOutcomeCallable updateLoadBalancerEditionCallable(const Model::UpdateLoadBalancerEditionRequest& request) const;
|
||||
UpdateLoadBalancerZonesOutcome updateLoadBalancerZones(const Model::UpdateLoadBalancerZonesRequest &request)const;
|
||||
void updateLoadBalancerZonesAsync(const Model::UpdateLoadBalancerZonesRequest& request, const UpdateLoadBalancerZonesAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
UpdateLoadBalancerZonesOutcomeCallable updateLoadBalancerZonesCallable(const Model::UpdateLoadBalancerZonesRequest& request) const;
|
||||
UpdateRuleAttributeOutcome updateRuleAttribute(const Model::UpdateRuleAttributeRequest &request)const;
|
||||
void updateRuleAttributeAsync(const Model::UpdateRuleAttributeRequest& request, const UpdateRuleAttributeAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
UpdateRuleAttributeOutcomeCallable updateRuleAttributeCallable(const Model::UpdateRuleAttributeRequest& request) const;
|
||||
|
||||
@@ -29,6 +29,7 @@ namespace Model {
|
||||
class ALIBABACLOUD_ALB_EXPORT AddServersToServerGroupRequest : public RpcServiceRequest {
|
||||
public:
|
||||
struct Servers {
|
||||
bool remoteIpEnabled;
|
||||
std::string serverType;
|
||||
int port;
|
||||
std::string description;
|
||||
|
||||
@@ -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_ALB_MODEL_APPLYHEALTHCHECKTEMPLATETOSERVERGROUPREQUEST_H_
|
||||
#define ALIBABACLOUD_ALB_MODEL_APPLYHEALTHCHECKTEMPLATETOSERVERGROUPREQUEST_H_
|
||||
|
||||
#include <alibabacloud/alb/AlbExport.h>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <map>
|
||||
|
||||
namespace AlibabaCloud {
|
||||
namespace Alb {
|
||||
namespace Model {
|
||||
class ALIBABACLOUD_ALB_EXPORT ApplyHealthCheckTemplateToServerGroupRequest : public RpcServiceRequest {
|
||||
public:
|
||||
ApplyHealthCheckTemplateToServerGroupRequest();
|
||||
~ApplyHealthCheckTemplateToServerGroupRequest();
|
||||
std::string getClientToken() const;
|
||||
void setClientToken(const std::string &clientToken);
|
||||
std::string getServerGroupId() const;
|
||||
void setServerGroupId(const std::string &serverGroupId);
|
||||
bool getDryRun() const;
|
||||
void setDryRun(bool dryRun);
|
||||
std::string getHealthCheckTemplateId() const;
|
||||
void setHealthCheckTemplateId(const std::string &healthCheckTemplateId);
|
||||
|
||||
private:
|
||||
std::string clientToken_;
|
||||
std::string serverGroupId_;
|
||||
bool dryRun_;
|
||||
std::string healthCheckTemplateId_;
|
||||
};
|
||||
} // namespace Model
|
||||
} // namespace Alb
|
||||
} // namespace AlibabaCloud
|
||||
#endif // !ALIBABACLOUD_ALB_MODEL_APPLYHEALTHCHECKTEMPLATETOSERVERGROUPREQUEST_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_ALB_MODEL_APPLYHEALTHCHECKTEMPLATETOSERVERGROUPRESULT_H_
|
||||
#define ALIBABACLOUD_ALB_MODEL_APPLYHEALTHCHECKTEMPLATETOSERVERGROUPRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/alb/AlbExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Alb
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_ALB_EXPORT ApplyHealthCheckTemplateToServerGroupResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
|
||||
|
||||
ApplyHealthCheckTemplateToServerGroupResult();
|
||||
explicit ApplyHealthCheckTemplateToServerGroupResult(const std::string &payload);
|
||||
~ApplyHealthCheckTemplateToServerGroupResult();
|
||||
std::string getJobId()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::string jobId_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_ALB_MODEL_APPLYHEALTHCHECKTEMPLATETOSERVERGROUPRESULT_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_ALB_MODEL_ATTACHCOMMONBANDWIDTHPACKAGETOLOADBALANCERREQUEST_H_
|
||||
#define ALIBABACLOUD_ALB_MODEL_ATTACHCOMMONBANDWIDTHPACKAGETOLOADBALANCERREQUEST_H_
|
||||
|
||||
#include <alibabacloud/alb/AlbExport.h>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <map>
|
||||
|
||||
namespace AlibabaCloud {
|
||||
namespace Alb {
|
||||
namespace Model {
|
||||
class ALIBABACLOUD_ALB_EXPORT AttachCommonBandwidthPackageToLoadBalancerRequest : public RpcServiceRequest {
|
||||
public:
|
||||
AttachCommonBandwidthPackageToLoadBalancerRequest();
|
||||
~AttachCommonBandwidthPackageToLoadBalancerRequest();
|
||||
std::string getClientToken() const;
|
||||
void setClientToken(const std::string &clientToken);
|
||||
std::string getRegionId() const;
|
||||
void setRegionId(const std::string ®ionId);
|
||||
std::string getBandwidthPackageId() const;
|
||||
void setBandwidthPackageId(const std::string &bandwidthPackageId);
|
||||
bool getDryRun() const;
|
||||
void setDryRun(bool dryRun);
|
||||
std::string getLoadBalancerId() const;
|
||||
void setLoadBalancerId(const std::string &loadBalancerId);
|
||||
|
||||
private:
|
||||
std::string clientToken_;
|
||||
std::string regionId_;
|
||||
std::string bandwidthPackageId_;
|
||||
bool dryRun_;
|
||||
std::string loadBalancerId_;
|
||||
};
|
||||
} // namespace Model
|
||||
} // namespace Alb
|
||||
} // namespace AlibabaCloud
|
||||
#endif // !ALIBABACLOUD_ALB_MODEL_ATTACHCOMMONBANDWIDTHPACKAGETOLOADBALANCERREQUEST_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_ALB_MODEL_ATTACHCOMMONBANDWIDTHPACKAGETOLOADBALANCERRESULT_H_
|
||||
#define ALIBABACLOUD_ALB_MODEL_ATTACHCOMMONBANDWIDTHPACKAGETOLOADBALANCERRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/alb/AlbExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Alb
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_ALB_EXPORT AttachCommonBandwidthPackageToLoadBalancerResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
|
||||
|
||||
AttachCommonBandwidthPackageToLoadBalancerResult();
|
||||
explicit AttachCommonBandwidthPackageToLoadBalancerResult(const std::string &payload);
|
||||
~AttachCommonBandwidthPackageToLoadBalancerResult();
|
||||
std::string getJobId()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::string jobId_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_ALB_MODEL_ATTACHCOMMONBANDWIDTHPACKAGETOLOADBALANCERRESULT_H_
|
||||
@@ -33,6 +33,7 @@ public:
|
||||
std::string status;
|
||||
};
|
||||
struct LoadBalancerBillingConfig {
|
||||
std::string bandwidthPackageId;
|
||||
std::string internetChargeType;
|
||||
int internetBandwidth;
|
||||
std::string payType;
|
||||
@@ -40,6 +41,7 @@ public:
|
||||
struct ZoneMappings {
|
||||
std::string vSwitchId;
|
||||
std::string zoneId;
|
||||
std::string allocationId;
|
||||
};
|
||||
CreateLoadBalancerRequest();
|
||||
~CreateLoadBalancerRequest();
|
||||
@@ -51,6 +53,8 @@ public:
|
||||
void setModificationProtectionConfig(const ModificationProtectionConfig &modificationProtectionConfig);
|
||||
LoadBalancerBillingConfig getLoadBalancerBillingConfig() const;
|
||||
void setLoadBalancerBillingConfig(const LoadBalancerBillingConfig &loadBalancerBillingConfig);
|
||||
std::string getAddressIpVersion() const;
|
||||
void setAddressIpVersion(const std::string &addressIpVersion);
|
||||
bool getDeletionProtectionEnabled() const;
|
||||
void setDeletionProtectionEnabled(bool deletionProtectionEnabled);
|
||||
std::string getResourceGroupId() const;
|
||||
@@ -73,6 +77,7 @@ private:
|
||||
std::string clientToken_;
|
||||
ModificationProtectionConfig modificationProtectionConfig_;
|
||||
LoadBalancerBillingConfig loadBalancerBillingConfig_;
|
||||
std::string addressIpVersion_;
|
||||
bool deletionProtectionEnabled_;
|
||||
std::string resourceGroupId_;
|
||||
std::string loadBalancerName_;
|
||||
|
||||
@@ -66,10 +66,14 @@ public:
|
||||
void setResourceGroupId(const std::string &resourceGroupId);
|
||||
std::string getProtocol() const;
|
||||
void setProtocol(const std::string &protocol);
|
||||
bool getUpstreamKeepaliveEnabled() const;
|
||||
void setUpstreamKeepaliveEnabled(bool upstreamKeepaliveEnabled);
|
||||
StickySessionConfig getStickySessionConfig() const;
|
||||
void setStickySessionConfig(const StickySessionConfig &stickySessionConfig);
|
||||
bool getDryRun() const;
|
||||
void setDryRun(bool dryRun);
|
||||
bool getIpv6Enabled() const;
|
||||
void setIpv6Enabled(bool ipv6Enabled);
|
||||
std::string getServerGroupType() const;
|
||||
void setServerGroupType(const std::string &serverGroupType);
|
||||
std::string getVpcId() const;
|
||||
@@ -82,8 +86,10 @@ private:
|
||||
std::string scheduler_;
|
||||
std::string resourceGroupId_;
|
||||
std::string protocol_;
|
||||
bool upstreamKeepaliveEnabled_;
|
||||
StickySessionConfig stickySessionConfig_;
|
||||
bool dryRun_;
|
||||
bool ipv6Enabled_;
|
||||
std::string serverGroupType_;
|
||||
std::string vpcId_;
|
||||
};
|
||||
|
||||
@@ -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_ALB_MODEL_DETACHCOMMONBANDWIDTHPACKAGEFROMLOADBALANCERREQUEST_H_
|
||||
#define ALIBABACLOUD_ALB_MODEL_DETACHCOMMONBANDWIDTHPACKAGEFROMLOADBALANCERREQUEST_H_
|
||||
|
||||
#include <alibabacloud/alb/AlbExport.h>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <map>
|
||||
|
||||
namespace AlibabaCloud {
|
||||
namespace Alb {
|
||||
namespace Model {
|
||||
class ALIBABACLOUD_ALB_EXPORT DetachCommonBandwidthPackageFromLoadBalancerRequest : public RpcServiceRequest {
|
||||
public:
|
||||
DetachCommonBandwidthPackageFromLoadBalancerRequest();
|
||||
~DetachCommonBandwidthPackageFromLoadBalancerRequest();
|
||||
std::string getClientToken() const;
|
||||
void setClientToken(const std::string &clientToken);
|
||||
std::string getRegionId() const;
|
||||
void setRegionId(const std::string ®ionId);
|
||||
std::string getBandwidthPackageId() const;
|
||||
void setBandwidthPackageId(const std::string &bandwidthPackageId);
|
||||
bool getDryRun() const;
|
||||
void setDryRun(bool dryRun);
|
||||
std::string getLoadBalancerId() const;
|
||||
void setLoadBalancerId(const std::string &loadBalancerId);
|
||||
|
||||
private:
|
||||
std::string clientToken_;
|
||||
std::string regionId_;
|
||||
std::string bandwidthPackageId_;
|
||||
bool dryRun_;
|
||||
std::string loadBalancerId_;
|
||||
};
|
||||
} // namespace Model
|
||||
} // namespace Alb
|
||||
} // namespace AlibabaCloud
|
||||
#endif // !ALIBABACLOUD_ALB_MODEL_DETACHCOMMONBANDWIDTHPACKAGEFROMLOADBALANCERREQUEST_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_ALB_MODEL_DETACHCOMMONBANDWIDTHPACKAGEFROMLOADBALANCERRESULT_H_
|
||||
#define ALIBABACLOUD_ALB_MODEL_DETACHCOMMONBANDWIDTHPACKAGEFROMLOADBALANCERRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/alb/AlbExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Alb
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_ALB_EXPORT DetachCommonBandwidthPackageFromLoadBalancerResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
|
||||
|
||||
DetachCommonBandwidthPackageFromLoadBalancerResult();
|
||||
explicit DetachCommonBandwidthPackageFromLoadBalancerResult(const std::string &payload);
|
||||
~DetachCommonBandwidthPackageFromLoadBalancerResult();
|
||||
std::string getJobId()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::string jobId_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_ALB_MODEL_DETACHCOMMONBANDWIDTHPACKAGEFROMLOADBALANCERRESULT_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_ALB_MODEL_GETLISTENERHEALTHSTATUSREQUEST_H_
|
||||
#define ALIBABACLOUD_ALB_MODEL_GETLISTENERHEALTHSTATUSREQUEST_H_
|
||||
|
||||
#include <alibabacloud/alb/AlbExport.h>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <map>
|
||||
|
||||
namespace AlibabaCloud {
|
||||
namespace Alb {
|
||||
namespace Model {
|
||||
class ALIBABACLOUD_ALB_EXPORT GetListenerHealthStatusRequest : public RpcServiceRequest {
|
||||
public:
|
||||
GetListenerHealthStatusRequest();
|
||||
~GetListenerHealthStatusRequest();
|
||||
bool getIncludeRule() const;
|
||||
void setIncludeRule(bool includeRule);
|
||||
std::string getListenerId() const;
|
||||
void setListenerId(const std::string &listenerId);
|
||||
std::string getNextToken() const;
|
||||
void setNextToken(const std::string &nextToken);
|
||||
long getMaxResults() const;
|
||||
void setMaxResults(long maxResults);
|
||||
|
||||
private:
|
||||
bool includeRule_;
|
||||
std::string listenerId_;
|
||||
std::string nextToken_;
|
||||
long maxResults_;
|
||||
};
|
||||
} // namespace Model
|
||||
} // namespace Alb
|
||||
} // namespace AlibabaCloud
|
||||
#endif // !ALIBABACLOUD_ALB_MODEL_GETLISTENERHEALTHSTATUSREQUEST_H_
|
||||
@@ -0,0 +1,109 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT 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_ALB_MODEL_GETLISTENERHEALTHSTATUSRESULT_H_
|
||||
#define ALIBABACLOUD_ALB_MODEL_GETLISTENERHEALTHSTATUSRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/alb/AlbExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Alb
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_ALB_EXPORT GetListenerHealthStatusResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct ListenerHealthStatusModel
|
||||
{
|
||||
struct ServerGroupHealthStatusModel
|
||||
{
|
||||
struct BackendServerHealthStatusModel
|
||||
{
|
||||
struct Reason
|
||||
{
|
||||
std::string expectedResponse;
|
||||
std::string actualResponse;
|
||||
std::string reasonCode;
|
||||
};
|
||||
std::string status;
|
||||
std::string serverId;
|
||||
int port;
|
||||
std::string serverIp;
|
||||
Reason reason;
|
||||
};
|
||||
std::string actionType;
|
||||
std::vector<ServerGroupHealthStatusModel::BackendServerHealthStatusModel> nonNormalServers;
|
||||
std::string serverGroupId;
|
||||
std::string healthCheckEnabled;
|
||||
};
|
||||
int listenerPort;
|
||||
std::vector<ListenerHealthStatusModel::ServerGroupHealthStatusModel> serverGroupInfos;
|
||||
std::string listenerProtocol;
|
||||
std::string listenerId;
|
||||
};
|
||||
struct RuleHealthStatusModel
|
||||
{
|
||||
struct ServerGroupHealthStatusModel2
|
||||
{
|
||||
struct NonNormalServer
|
||||
{
|
||||
struct Reason4
|
||||
{
|
||||
std::string expectedResponse;
|
||||
std::string actualResponse;
|
||||
std::string reasonCode;
|
||||
};
|
||||
std::string status;
|
||||
std::string serverId;
|
||||
Reason4 reason4;
|
||||
int port;
|
||||
std::string serverIp;
|
||||
};
|
||||
std::string actionType;
|
||||
std::string serverGroupId;
|
||||
std::string healthCheckEnabled;
|
||||
std::vector<ServerGroupHealthStatusModel2::NonNormalServer> nonNormalServers3;
|
||||
};
|
||||
std::vector<RuleHealthStatusModel::ServerGroupHealthStatusModel2> serverGroupInfos1;
|
||||
std::string ruleId;
|
||||
};
|
||||
|
||||
|
||||
GetListenerHealthStatusResult();
|
||||
explicit GetListenerHealthStatusResult(const std::string &payload);
|
||||
~GetListenerHealthStatusResult();
|
||||
std::vector<RuleHealthStatusModel> getRuleHealthStatus()const;
|
||||
std::vector<ListenerHealthStatusModel> getListenerHealthStatus()const;
|
||||
std::string getNextToken()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::vector<RuleHealthStatusModel> ruleHealthStatus_;
|
||||
std::vector<ListenerHealthStatusModel> listenerHealthStatus_;
|
||||
std::string nextToken_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_ALB_MODEL_GETLISTENERHEALTHSTATUSRESULT_H_
|
||||
@@ -68,6 +68,7 @@ namespace AlibabaCloud
|
||||
struct LoadBalancerAddress
|
||||
{
|
||||
std::string address;
|
||||
std::string ipv6Address;
|
||||
};
|
||||
std::string zoneId;
|
||||
std::string vSwitchId;
|
||||
@@ -79,56 +80,62 @@ namespace AlibabaCloud
|
||||
explicit GetLoadBalancerAttributeResult(const std::string &payload);
|
||||
~GetLoadBalancerAttributeResult();
|
||||
bool getServiceManagedEnabled()const;
|
||||
std::string getLoadBalancerEdition()const;
|
||||
std::string getAddressIpVersion()const;
|
||||
std::string getResourceGroupId()const;
|
||||
LoadBalancerBillingConfig getLoadBalancerBillingConfig()const;
|
||||
std::vector<std::string> getFeatureLabels()const;
|
||||
std::string getCreateTime()const;
|
||||
std::string getLoadBalancerId()const;
|
||||
std::vector<ZoneMapping> getZoneMappings()const;
|
||||
std::string getDNSName()const;
|
||||
std::string getIpv6AddressType()const;
|
||||
int getBandwidthCapacity()const;
|
||||
DeletionProtectionConfig getDeletionProtectionConfig()const;
|
||||
std::string getServiceManagedMode()const;
|
||||
std::string getBandwidthPackageId()const;
|
||||
std::vector<Tag> getTags()const;
|
||||
std::string getLoadBalancerEdition()const;
|
||||
LoadBalancerBillingConfig getLoadBalancerBillingConfig()const;
|
||||
std::string getCreateTime()const;
|
||||
ModificationProtectionConfig getModificationProtectionConfig()const;
|
||||
std::string getLoadBalancerName()const;
|
||||
AccessLogConfig getAccessLogConfig()const;
|
||||
int getBandwidthCapacity()const;
|
||||
DeletionProtectionConfig getDeletionProtectionConfig()const;
|
||||
bool getConfigManagedEnabled()const;
|
||||
std::string getLoadBalancerBussinessStatus()const;
|
||||
std::string getVpcId()const;
|
||||
std::string getServiceManagedMode()const;
|
||||
std::string getBandwidthPackageId()const;
|
||||
std::string getRegionId()const;
|
||||
std::string getAddressAllocatedMode()const;
|
||||
std::string getAddressType()const;
|
||||
std::string getLoadBalancerStatus()const;
|
||||
std::vector<Tag> getTags()const;
|
||||
std::vector<LoadBalancerOperationLock> getLoadBalancerOperationLocks()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
bool serviceManagedEnabled_;
|
||||
std::string loadBalancerEdition_;
|
||||
std::string addressIpVersion_;
|
||||
std::string resourceGroupId_;
|
||||
LoadBalancerBillingConfig loadBalancerBillingConfig_;
|
||||
std::vector<std::string> featureLabels_;
|
||||
std::string createTime_;
|
||||
std::string loadBalancerId_;
|
||||
std::vector<ZoneMapping> zoneMappings_;
|
||||
std::string dNSName_;
|
||||
std::string ipv6AddressType_;
|
||||
int bandwidthCapacity_;
|
||||
DeletionProtectionConfig deletionProtectionConfig_;
|
||||
std::string serviceManagedMode_;
|
||||
std::string bandwidthPackageId_;
|
||||
std::vector<Tag> tags_;
|
||||
std::string loadBalancerEdition_;
|
||||
LoadBalancerBillingConfig loadBalancerBillingConfig_;
|
||||
std::string createTime_;
|
||||
ModificationProtectionConfig modificationProtectionConfig_;
|
||||
std::string loadBalancerName_;
|
||||
AccessLogConfig accessLogConfig_;
|
||||
int bandwidthCapacity_;
|
||||
DeletionProtectionConfig deletionProtectionConfig_;
|
||||
bool configManagedEnabled_;
|
||||
std::string loadBalancerBussinessStatus_;
|
||||
std::string vpcId_;
|
||||
std::string serviceManagedMode_;
|
||||
std::string bandwidthPackageId_;
|
||||
std::string regionId_;
|
||||
std::string addressAllocatedMode_;
|
||||
std::string addressType_;
|
||||
std::string loadBalancerStatus_;
|
||||
std::vector<Tag> tags_;
|
||||
std::vector<LoadBalancerOperationLock> loadBalancerOperationLocks_;
|
||||
|
||||
};
|
||||
|
||||
@@ -35,6 +35,7 @@ namespace AlibabaCloud
|
||||
struct Acl
|
||||
{
|
||||
bool serviceManagedEnabled;
|
||||
bool configManagedEnabled;
|
||||
std::string aclStatus;
|
||||
std::string resourceGroupId;
|
||||
std::string aclId;
|
||||
|
||||
@@ -38,6 +38,8 @@ public:
|
||||
void setLoadBalancerNames(const std::vector<std::string> &loadBalancerNames);
|
||||
std::vector<std::string> getLoadBalancerIds() const;
|
||||
void setLoadBalancerIds(const std::vector<std::string> &loadBalancerIds);
|
||||
std::string getAddressIpVersion() const;
|
||||
void setAddressIpVersion(const std::string &addressIpVersion);
|
||||
std::string getResourceGroupId() const;
|
||||
void setResourceGroupId(const std::string &resourceGroupId);
|
||||
std::string getNextToken() const;
|
||||
@@ -60,12 +62,15 @@ public:
|
||||
void setMaxResults(int maxResults);
|
||||
std::string getZoneId() const;
|
||||
void setZoneId(const std::string &zoneId);
|
||||
std::string getIpv6AddressType() const;
|
||||
void setIpv6AddressType(const std::string &ipv6AddressType);
|
||||
std::string getPayType() const;
|
||||
void setPayType(const std::string &payType);
|
||||
|
||||
private:
|
||||
std::vector<std::string> loadBalancerNames_;
|
||||
std::vector<std::string> loadBalancerIds_;
|
||||
std::string addressIpVersion_;
|
||||
std::string resourceGroupId_;
|
||||
std::string nextToken_;
|
||||
std::string loadBalancerBussinessStatus_;
|
||||
@@ -77,6 +82,7 @@ private:
|
||||
std::string internetChargeType_;
|
||||
int maxResults_;
|
||||
std::string zoneId_;
|
||||
std::string ipv6AddressType_;
|
||||
std::string payType_;
|
||||
};
|
||||
} // namespace Model
|
||||
|
||||
@@ -67,15 +67,18 @@ namespace AlibabaCloud
|
||||
};
|
||||
bool serviceManagedEnabled;
|
||||
std::string loadBalancerEdition;
|
||||
std::string addressIpVersion;
|
||||
std::string resourceGroupId;
|
||||
LoadBalancerBillingConfig loadBalancerBillingConfig;
|
||||
std::string createTime;
|
||||
std::string loadBalancerId;
|
||||
std::string dNSName;
|
||||
ModificationProtectionConfig modificationProtectionConfig;
|
||||
std::string ipv6AddressType;
|
||||
std::string loadBalancerName;
|
||||
AccessLogConfig accessLogConfig;
|
||||
int bandwidthCapacity;
|
||||
bool configManagedEnabled;
|
||||
DeletionProtectionConfig deletionProtectionConfig;
|
||||
std::string loadBalancerBussinessStatus;
|
||||
std::string vpcId;
|
||||
|
||||
@@ -40,6 +40,7 @@ namespace AlibabaCloud
|
||||
std::string serverId;
|
||||
int port;
|
||||
std::string serverIp;
|
||||
bool remoteIpEnabled;
|
||||
std::string serverGroupId;
|
||||
int weight;
|
||||
};
|
||||
|
||||
@@ -67,10 +67,14 @@ namespace AlibabaCloud
|
||||
std::vector<std::string> relatedLoadBalancerIds;
|
||||
std::string resourceGroupId;
|
||||
std::string scheduler;
|
||||
bool upstreamKeepaliveEnabled;
|
||||
StickySessionConfig stickySessionConfig;
|
||||
std::string serverGroupId;
|
||||
int serverCount;
|
||||
std::string serverGroupType;
|
||||
std::string serverGroupStatus;
|
||||
bool ipv6Enabled;
|
||||
bool configManagedEnabled;
|
||||
std::string vpcId;
|
||||
std::string serviceManagedMode;
|
||||
HealthCheckConfig healthCheckConfig;
|
||||
|
||||
@@ -29,6 +29,7 @@ namespace Model {
|
||||
class ALIBABACLOUD_ALB_EXPORT ReplaceServersInServerGroupRequest : public RpcServiceRequest {
|
||||
public:
|
||||
struct AddedServers {
|
||||
bool remoteIpEnabled;
|
||||
std::string serverType;
|
||||
int port;
|
||||
std::string description;
|
||||
|
||||
@@ -0,0 +1,56 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_ALB_MODEL_UPDATELOADBALANCERZONESREQUEST_H_
|
||||
#define ALIBABACLOUD_ALB_MODEL_UPDATELOADBALANCERZONESREQUEST_H_
|
||||
|
||||
#include <alibabacloud/alb/AlbExport.h>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <map>
|
||||
|
||||
namespace AlibabaCloud {
|
||||
namespace Alb {
|
||||
namespace Model {
|
||||
class ALIBABACLOUD_ALB_EXPORT UpdateLoadBalancerZonesRequest : public RpcServiceRequest {
|
||||
public:
|
||||
struct ZoneMappings {
|
||||
std::string vSwitchId;
|
||||
std::string zoneId;
|
||||
std::string allocationId;
|
||||
};
|
||||
UpdateLoadBalancerZonesRequest();
|
||||
~UpdateLoadBalancerZonesRequest();
|
||||
std::string getClientToken() const;
|
||||
void setClientToken(const std::string &clientToken);
|
||||
bool getDryRun() const;
|
||||
void setDryRun(bool dryRun);
|
||||
std::vector<ZoneMappings> getZoneMappings() const;
|
||||
void setZoneMappings(const std::vector<ZoneMappings> &zoneMappings);
|
||||
std::string getLoadBalancerId() const;
|
||||
void setLoadBalancerId(const std::string &loadBalancerId);
|
||||
|
||||
private:
|
||||
std::string clientToken_;
|
||||
bool dryRun_;
|
||||
std::vector<ZoneMappings> zoneMappings_;
|
||||
std::string loadBalancerId_;
|
||||
};
|
||||
} // namespace Model
|
||||
} // namespace Alb
|
||||
} // namespace AlibabaCloud
|
||||
#endif // !ALIBABACLOUD_ALB_MODEL_UPDATELOADBALANCERZONESREQUEST_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_ALB_MODEL_UPDATELOADBALANCERZONESRESULT_H_
|
||||
#define ALIBABACLOUD_ALB_MODEL_UPDATELOADBALANCERZONESRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/alb/AlbExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Alb
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_ALB_EXPORT UpdateLoadBalancerZonesResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
|
||||
|
||||
UpdateLoadBalancerZonesResult();
|
||||
explicit UpdateLoadBalancerZonesResult(const std::string &payload);
|
||||
~UpdateLoadBalancerZonesResult();
|
||||
std::string getJobId()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::string jobId_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_ALB_MODEL_UPDATELOADBALANCERZONESRESULT_H_
|
||||
@@ -64,6 +64,8 @@ public:
|
||||
void setScheduler(const std::string &scheduler);
|
||||
std::string getServerGroupId() const;
|
||||
void setServerGroupId(const std::string &serverGroupId);
|
||||
bool getUpstreamKeepaliveEnabled() const;
|
||||
void setUpstreamKeepaliveEnabled(bool upstreamKeepaliveEnabled);
|
||||
StickySessionConfig getStickySessionConfig() const;
|
||||
void setStickySessionConfig(const StickySessionConfig &stickySessionConfig);
|
||||
bool getDryRun() const;
|
||||
@@ -75,6 +77,7 @@ private:
|
||||
HealthCheckConfig healthCheckConfig_;
|
||||
std::string scheduler_;
|
||||
std::string serverGroupId_;
|
||||
bool upstreamKeepaliveEnabled_;
|
||||
StickySessionConfig stickySessionConfig_;
|
||||
bool dryRun_;
|
||||
};
|
||||
|
||||
@@ -123,6 +123,42 @@ AlbClient::AddServersToServerGroupOutcomeCallable AlbClient::addServersToServerG
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
AlbClient::ApplyHealthCheckTemplateToServerGroupOutcome AlbClient::applyHealthCheckTemplateToServerGroup(const ApplyHealthCheckTemplateToServerGroupRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return ApplyHealthCheckTemplateToServerGroupOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return ApplyHealthCheckTemplateToServerGroupOutcome(ApplyHealthCheckTemplateToServerGroupResult(outcome.result()));
|
||||
else
|
||||
return ApplyHealthCheckTemplateToServerGroupOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void AlbClient::applyHealthCheckTemplateToServerGroupAsync(const ApplyHealthCheckTemplateToServerGroupRequest& request, const ApplyHealthCheckTemplateToServerGroupAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, applyHealthCheckTemplateToServerGroup(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
AlbClient::ApplyHealthCheckTemplateToServerGroupOutcomeCallable AlbClient::applyHealthCheckTemplateToServerGroupCallable(const ApplyHealthCheckTemplateToServerGroupRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<ApplyHealthCheckTemplateToServerGroupOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->applyHealthCheckTemplateToServerGroup(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
AlbClient::AssociateAclsWithListenerOutcome AlbClient::associateAclsWithListener(const AssociateAclsWithListenerRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -195,6 +231,42 @@ AlbClient::AssociateAdditionalCertificatesWithListenerOutcomeCallable AlbClient:
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
AlbClient::AttachCommonBandwidthPackageToLoadBalancerOutcome AlbClient::attachCommonBandwidthPackageToLoadBalancer(const AttachCommonBandwidthPackageToLoadBalancerRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return AttachCommonBandwidthPackageToLoadBalancerOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return AttachCommonBandwidthPackageToLoadBalancerOutcome(AttachCommonBandwidthPackageToLoadBalancerResult(outcome.result()));
|
||||
else
|
||||
return AttachCommonBandwidthPackageToLoadBalancerOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void AlbClient::attachCommonBandwidthPackageToLoadBalancerAsync(const AttachCommonBandwidthPackageToLoadBalancerRequest& request, const AttachCommonBandwidthPackageToLoadBalancerAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, attachCommonBandwidthPackageToLoadBalancer(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
AlbClient::AttachCommonBandwidthPackageToLoadBalancerOutcomeCallable AlbClient::attachCommonBandwidthPackageToLoadBalancerCallable(const AttachCommonBandwidthPackageToLoadBalancerRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<AttachCommonBandwidthPackageToLoadBalancerOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->attachCommonBandwidthPackageToLoadBalancer(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
AlbClient::CreateAclOutcome AlbClient::createAcl(const CreateAclRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -843,6 +915,42 @@ AlbClient::DescribeZonesOutcomeCallable AlbClient::describeZonesCallable(const D
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
AlbClient::DetachCommonBandwidthPackageFromLoadBalancerOutcome AlbClient::detachCommonBandwidthPackageFromLoadBalancer(const DetachCommonBandwidthPackageFromLoadBalancerRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return DetachCommonBandwidthPackageFromLoadBalancerOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return DetachCommonBandwidthPackageFromLoadBalancerOutcome(DetachCommonBandwidthPackageFromLoadBalancerResult(outcome.result()));
|
||||
else
|
||||
return DetachCommonBandwidthPackageFromLoadBalancerOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void AlbClient::detachCommonBandwidthPackageFromLoadBalancerAsync(const DetachCommonBandwidthPackageFromLoadBalancerRequest& request, const DetachCommonBandwidthPackageFromLoadBalancerAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, detachCommonBandwidthPackageFromLoadBalancer(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
AlbClient::DetachCommonBandwidthPackageFromLoadBalancerOutcomeCallable AlbClient::detachCommonBandwidthPackageFromLoadBalancerCallable(const DetachCommonBandwidthPackageFromLoadBalancerRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<DetachCommonBandwidthPackageFromLoadBalancerOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->detachCommonBandwidthPackageFromLoadBalancer(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
AlbClient::DisableDeletionProtectionOutcome AlbClient::disableDeletionProtection(const DisableDeletionProtectionRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -1131,6 +1239,42 @@ AlbClient::GetListenerAttributeOutcomeCallable AlbClient::getListenerAttributeCa
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
AlbClient::GetListenerHealthStatusOutcome AlbClient::getListenerHealthStatus(const GetListenerHealthStatusRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return GetListenerHealthStatusOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return GetListenerHealthStatusOutcome(GetListenerHealthStatusResult(outcome.result()));
|
||||
else
|
||||
return GetListenerHealthStatusOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void AlbClient::getListenerHealthStatusAsync(const GetListenerHealthStatusRequest& request, const GetListenerHealthStatusAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, getListenerHealthStatus(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
AlbClient::GetListenerHealthStatusOutcomeCallable AlbClient::getListenerHealthStatusCallable(const GetListenerHealthStatusRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<GetListenerHealthStatusOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->getListenerHealthStatus(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
AlbClient::GetLoadBalancerAttributeOutcome AlbClient::getLoadBalancerAttribute(const GetLoadBalancerAttributeRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -2283,6 +2427,42 @@ AlbClient::UpdateLoadBalancerEditionOutcomeCallable AlbClient::updateLoadBalance
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
AlbClient::UpdateLoadBalancerZonesOutcome AlbClient::updateLoadBalancerZones(const UpdateLoadBalancerZonesRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return UpdateLoadBalancerZonesOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return UpdateLoadBalancerZonesOutcome(UpdateLoadBalancerZonesResult(outcome.result()));
|
||||
else
|
||||
return UpdateLoadBalancerZonesOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void AlbClient::updateLoadBalancerZonesAsync(const UpdateLoadBalancerZonesRequest& request, const UpdateLoadBalancerZonesAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, updateLoadBalancerZones(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
AlbClient::UpdateLoadBalancerZonesOutcomeCallable AlbClient::updateLoadBalancerZonesCallable(const UpdateLoadBalancerZonesRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<UpdateLoadBalancerZonesOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->updateLoadBalancerZones(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
AlbClient::UpdateRuleAttributeOutcome AlbClient::updateRuleAttribute(const UpdateRuleAttributeRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
|
||||
@@ -50,6 +50,7 @@ std::vector<AddServersToServerGroupRequest::Servers> AddServersToServerGroupRequ
|
||||
void AddServersToServerGroupRequest::setServers(const std::vector<AddServersToServerGroupRequest::Servers> &servers) {
|
||||
servers_ = servers;
|
||||
for(int dep1 = 0; dep1 != servers.size(); dep1++) {
|
||||
setParameter(std::string("Servers") + "." + std::to_string(dep1 + 1) + ".RemoteIpEnabled", servers[dep1].remoteIpEnabled ? "true" : "false");
|
||||
setParameter(std::string("Servers") + "." + std::to_string(dep1 + 1) + ".ServerType", servers[dep1].serverType);
|
||||
setParameter(std::string("Servers") + "." + std::to_string(dep1 + 1) + ".Port", std::to_string(servers[dep1].port));
|
||||
setParameter(std::string("Servers") + "." + std::to_string(dep1 + 1) + ".Description", servers[dep1].description);
|
||||
|
||||
@@ -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.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/alb/model/ApplyHealthCheckTemplateToServerGroupRequest.h>
|
||||
|
||||
using AlibabaCloud::Alb::Model::ApplyHealthCheckTemplateToServerGroupRequest;
|
||||
|
||||
ApplyHealthCheckTemplateToServerGroupRequest::ApplyHealthCheckTemplateToServerGroupRequest()
|
||||
: RpcServiceRequest("alb", "2020-06-16", "ApplyHealthCheckTemplateToServerGroup") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
ApplyHealthCheckTemplateToServerGroupRequest::~ApplyHealthCheckTemplateToServerGroupRequest() {}
|
||||
|
||||
std::string ApplyHealthCheckTemplateToServerGroupRequest::getClientToken() const {
|
||||
return clientToken_;
|
||||
}
|
||||
|
||||
void ApplyHealthCheckTemplateToServerGroupRequest::setClientToken(const std::string &clientToken) {
|
||||
clientToken_ = clientToken;
|
||||
setParameter(std::string("ClientToken"), clientToken);
|
||||
}
|
||||
|
||||
std::string ApplyHealthCheckTemplateToServerGroupRequest::getServerGroupId() const {
|
||||
return serverGroupId_;
|
||||
}
|
||||
|
||||
void ApplyHealthCheckTemplateToServerGroupRequest::setServerGroupId(const std::string &serverGroupId) {
|
||||
serverGroupId_ = serverGroupId;
|
||||
setParameter(std::string("ServerGroupId"), serverGroupId);
|
||||
}
|
||||
|
||||
bool ApplyHealthCheckTemplateToServerGroupRequest::getDryRun() const {
|
||||
return dryRun_;
|
||||
}
|
||||
|
||||
void ApplyHealthCheckTemplateToServerGroupRequest::setDryRun(bool dryRun) {
|
||||
dryRun_ = dryRun;
|
||||
setParameter(std::string("DryRun"), dryRun ? "true" : "false");
|
||||
}
|
||||
|
||||
std::string ApplyHealthCheckTemplateToServerGroupRequest::getHealthCheckTemplateId() const {
|
||||
return healthCheckTemplateId_;
|
||||
}
|
||||
|
||||
void ApplyHealthCheckTemplateToServerGroupRequest::setHealthCheckTemplateId(const std::string &healthCheckTemplateId) {
|
||||
healthCheckTemplateId_ = healthCheckTemplateId;
|
||||
setParameter(std::string("HealthCheckTemplateId"), healthCheckTemplateId);
|
||||
}
|
||||
|
||||
51
alb/src/model/ApplyHealthCheckTemplateToServerGroupResult.cc
Normal file
51
alb/src/model/ApplyHealthCheckTemplateToServerGroupResult.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/alb/model/ApplyHealthCheckTemplateToServerGroupResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Alb;
|
||||
using namespace AlibabaCloud::Alb::Model;
|
||||
|
||||
ApplyHealthCheckTemplateToServerGroupResult::ApplyHealthCheckTemplateToServerGroupResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
ApplyHealthCheckTemplateToServerGroupResult::ApplyHealthCheckTemplateToServerGroupResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
ApplyHealthCheckTemplateToServerGroupResult::~ApplyHealthCheckTemplateToServerGroupResult()
|
||||
{}
|
||||
|
||||
void ApplyHealthCheckTemplateToServerGroupResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["JobId"].isNull())
|
||||
jobId_ = value["JobId"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string ApplyHealthCheckTemplateToServerGroupResult::getJobId()const
|
||||
{
|
||||
return jobId_;
|
||||
}
|
||||
|
||||
@@ -0,0 +1,72 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/alb/model/AttachCommonBandwidthPackageToLoadBalancerRequest.h>
|
||||
|
||||
using AlibabaCloud::Alb::Model::AttachCommonBandwidthPackageToLoadBalancerRequest;
|
||||
|
||||
AttachCommonBandwidthPackageToLoadBalancerRequest::AttachCommonBandwidthPackageToLoadBalancerRequest()
|
||||
: RpcServiceRequest("alb", "2020-06-16", "AttachCommonBandwidthPackageToLoadBalancer") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
AttachCommonBandwidthPackageToLoadBalancerRequest::~AttachCommonBandwidthPackageToLoadBalancerRequest() {}
|
||||
|
||||
std::string AttachCommonBandwidthPackageToLoadBalancerRequest::getClientToken() const {
|
||||
return clientToken_;
|
||||
}
|
||||
|
||||
void AttachCommonBandwidthPackageToLoadBalancerRequest::setClientToken(const std::string &clientToken) {
|
||||
clientToken_ = clientToken;
|
||||
setParameter(std::string("ClientToken"), clientToken);
|
||||
}
|
||||
|
||||
std::string AttachCommonBandwidthPackageToLoadBalancerRequest::getRegionId() const {
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void AttachCommonBandwidthPackageToLoadBalancerRequest::setRegionId(const std::string ®ionId) {
|
||||
regionId_ = regionId;
|
||||
setParameter(std::string("RegionId"), regionId);
|
||||
}
|
||||
|
||||
std::string AttachCommonBandwidthPackageToLoadBalancerRequest::getBandwidthPackageId() const {
|
||||
return bandwidthPackageId_;
|
||||
}
|
||||
|
||||
void AttachCommonBandwidthPackageToLoadBalancerRequest::setBandwidthPackageId(const std::string &bandwidthPackageId) {
|
||||
bandwidthPackageId_ = bandwidthPackageId;
|
||||
setParameter(std::string("BandwidthPackageId"), bandwidthPackageId);
|
||||
}
|
||||
|
||||
bool AttachCommonBandwidthPackageToLoadBalancerRequest::getDryRun() const {
|
||||
return dryRun_;
|
||||
}
|
||||
|
||||
void AttachCommonBandwidthPackageToLoadBalancerRequest::setDryRun(bool dryRun) {
|
||||
dryRun_ = dryRun;
|
||||
setParameter(std::string("DryRun"), dryRun ? "true" : "false");
|
||||
}
|
||||
|
||||
std::string AttachCommonBandwidthPackageToLoadBalancerRequest::getLoadBalancerId() const {
|
||||
return loadBalancerId_;
|
||||
}
|
||||
|
||||
void AttachCommonBandwidthPackageToLoadBalancerRequest::setLoadBalancerId(const std::string &loadBalancerId) {
|
||||
loadBalancerId_ = loadBalancerId;
|
||||
setParameter(std::string("LoadBalancerId"), loadBalancerId);
|
||||
}
|
||||
|
||||
@@ -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/alb/model/AttachCommonBandwidthPackageToLoadBalancerResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Alb;
|
||||
using namespace AlibabaCloud::Alb::Model;
|
||||
|
||||
AttachCommonBandwidthPackageToLoadBalancerResult::AttachCommonBandwidthPackageToLoadBalancerResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
AttachCommonBandwidthPackageToLoadBalancerResult::AttachCommonBandwidthPackageToLoadBalancerResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
AttachCommonBandwidthPackageToLoadBalancerResult::~AttachCommonBandwidthPackageToLoadBalancerResult()
|
||||
{}
|
||||
|
||||
void AttachCommonBandwidthPackageToLoadBalancerResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["JobId"].isNull())
|
||||
jobId_ = value["JobId"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string AttachCommonBandwidthPackageToLoadBalancerResult::getJobId()const
|
||||
{
|
||||
return jobId_;
|
||||
}
|
||||
|
||||
@@ -59,11 +59,21 @@ CreateLoadBalancerRequest::LoadBalancerBillingConfig CreateLoadBalancerRequest::
|
||||
|
||||
void CreateLoadBalancerRequest::setLoadBalancerBillingConfig(const CreateLoadBalancerRequest::LoadBalancerBillingConfig &loadBalancerBillingConfig) {
|
||||
loadBalancerBillingConfig_ = loadBalancerBillingConfig;
|
||||
setParameter(std::string("LoadBalancerBillingConfig") + ".BandwidthPackageId", loadBalancerBillingConfig.bandwidthPackageId);
|
||||
setParameter(std::string("LoadBalancerBillingConfig") + ".InternetChargeType", loadBalancerBillingConfig.internetChargeType);
|
||||
setParameter(std::string("LoadBalancerBillingConfig") + ".InternetBandwidth", std::to_string(loadBalancerBillingConfig.internetBandwidth));
|
||||
setParameter(std::string("LoadBalancerBillingConfig") + ".PayType", loadBalancerBillingConfig.payType);
|
||||
}
|
||||
|
||||
std::string CreateLoadBalancerRequest::getAddressIpVersion() const {
|
||||
return addressIpVersion_;
|
||||
}
|
||||
|
||||
void CreateLoadBalancerRequest::setAddressIpVersion(const std::string &addressIpVersion) {
|
||||
addressIpVersion_ = addressIpVersion;
|
||||
setParameter(std::string("AddressIpVersion"), addressIpVersion);
|
||||
}
|
||||
|
||||
bool CreateLoadBalancerRequest::getDeletionProtectionEnabled() const {
|
||||
return deletionProtectionEnabled_;
|
||||
}
|
||||
@@ -127,6 +137,7 @@ void CreateLoadBalancerRequest::setZoneMappings(const std::vector<CreateLoadBala
|
||||
for(int dep1 = 0; dep1 != zoneMappings.size(); dep1++) {
|
||||
setParameter(std::string("ZoneMappings") + "." + std::to_string(dep1 + 1) + ".VSwitchId", zoneMappings[dep1].vSwitchId);
|
||||
setParameter(std::string("ZoneMappings") + "." + std::to_string(dep1 + 1) + ".ZoneId", zoneMappings[dep1].zoneId);
|
||||
setParameter(std::string("ZoneMappings") + "." + std::to_string(dep1 + 1) + ".AllocationId", zoneMappings[dep1].allocationId);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -96,6 +96,15 @@ void CreateServerGroupRequest::setProtocol(const std::string &protocol) {
|
||||
setParameter(std::string("Protocol"), protocol);
|
||||
}
|
||||
|
||||
bool CreateServerGroupRequest::getUpstreamKeepaliveEnabled() const {
|
||||
return upstreamKeepaliveEnabled_;
|
||||
}
|
||||
|
||||
void CreateServerGroupRequest::setUpstreamKeepaliveEnabled(bool upstreamKeepaliveEnabled) {
|
||||
upstreamKeepaliveEnabled_ = upstreamKeepaliveEnabled;
|
||||
setParameter(std::string("UpstreamKeepaliveEnabled"), upstreamKeepaliveEnabled ? "true" : "false");
|
||||
}
|
||||
|
||||
CreateServerGroupRequest::StickySessionConfig CreateServerGroupRequest::getStickySessionConfig() const {
|
||||
return stickySessionConfig_;
|
||||
}
|
||||
@@ -117,6 +126,15 @@ void CreateServerGroupRequest::setDryRun(bool dryRun) {
|
||||
setParameter(std::string("DryRun"), dryRun ? "true" : "false");
|
||||
}
|
||||
|
||||
bool CreateServerGroupRequest::getIpv6Enabled() const {
|
||||
return ipv6Enabled_;
|
||||
}
|
||||
|
||||
void CreateServerGroupRequest::setIpv6Enabled(bool ipv6Enabled) {
|
||||
ipv6Enabled_ = ipv6Enabled;
|
||||
setParameter(std::string("Ipv6Enabled"), ipv6Enabled ? "true" : "false");
|
||||
}
|
||||
|
||||
std::string CreateServerGroupRequest::getServerGroupType() const {
|
||||
return serverGroupType_;
|
||||
}
|
||||
|
||||
@@ -0,0 +1,72 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/alb/model/DetachCommonBandwidthPackageFromLoadBalancerRequest.h>
|
||||
|
||||
using AlibabaCloud::Alb::Model::DetachCommonBandwidthPackageFromLoadBalancerRequest;
|
||||
|
||||
DetachCommonBandwidthPackageFromLoadBalancerRequest::DetachCommonBandwidthPackageFromLoadBalancerRequest()
|
||||
: RpcServiceRequest("alb", "2020-06-16", "DetachCommonBandwidthPackageFromLoadBalancer") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DetachCommonBandwidthPackageFromLoadBalancerRequest::~DetachCommonBandwidthPackageFromLoadBalancerRequest() {}
|
||||
|
||||
std::string DetachCommonBandwidthPackageFromLoadBalancerRequest::getClientToken() const {
|
||||
return clientToken_;
|
||||
}
|
||||
|
||||
void DetachCommonBandwidthPackageFromLoadBalancerRequest::setClientToken(const std::string &clientToken) {
|
||||
clientToken_ = clientToken;
|
||||
setParameter(std::string("ClientToken"), clientToken);
|
||||
}
|
||||
|
||||
std::string DetachCommonBandwidthPackageFromLoadBalancerRequest::getRegionId() const {
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void DetachCommonBandwidthPackageFromLoadBalancerRequest::setRegionId(const std::string ®ionId) {
|
||||
regionId_ = regionId;
|
||||
setParameter(std::string("RegionId"), regionId);
|
||||
}
|
||||
|
||||
std::string DetachCommonBandwidthPackageFromLoadBalancerRequest::getBandwidthPackageId() const {
|
||||
return bandwidthPackageId_;
|
||||
}
|
||||
|
||||
void DetachCommonBandwidthPackageFromLoadBalancerRequest::setBandwidthPackageId(const std::string &bandwidthPackageId) {
|
||||
bandwidthPackageId_ = bandwidthPackageId;
|
||||
setParameter(std::string("BandwidthPackageId"), bandwidthPackageId);
|
||||
}
|
||||
|
||||
bool DetachCommonBandwidthPackageFromLoadBalancerRequest::getDryRun() const {
|
||||
return dryRun_;
|
||||
}
|
||||
|
||||
void DetachCommonBandwidthPackageFromLoadBalancerRequest::setDryRun(bool dryRun) {
|
||||
dryRun_ = dryRun;
|
||||
setParameter(std::string("DryRun"), dryRun ? "true" : "false");
|
||||
}
|
||||
|
||||
std::string DetachCommonBandwidthPackageFromLoadBalancerRequest::getLoadBalancerId() const {
|
||||
return loadBalancerId_;
|
||||
}
|
||||
|
||||
void DetachCommonBandwidthPackageFromLoadBalancerRequest::setLoadBalancerId(const std::string &loadBalancerId) {
|
||||
loadBalancerId_ = loadBalancerId;
|
||||
setParameter(std::string("LoadBalancerId"), loadBalancerId);
|
||||
}
|
||||
|
||||
@@ -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/alb/model/DetachCommonBandwidthPackageFromLoadBalancerResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Alb;
|
||||
using namespace AlibabaCloud::Alb::Model;
|
||||
|
||||
DetachCommonBandwidthPackageFromLoadBalancerResult::DetachCommonBandwidthPackageFromLoadBalancerResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DetachCommonBandwidthPackageFromLoadBalancerResult::DetachCommonBandwidthPackageFromLoadBalancerResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DetachCommonBandwidthPackageFromLoadBalancerResult::~DetachCommonBandwidthPackageFromLoadBalancerResult()
|
||||
{}
|
||||
|
||||
void DetachCommonBandwidthPackageFromLoadBalancerResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["JobId"].isNull())
|
||||
jobId_ = value["JobId"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string DetachCommonBandwidthPackageFromLoadBalancerResult::getJobId()const
|
||||
{
|
||||
return jobId_;
|
||||
}
|
||||
|
||||
63
alb/src/model/GetListenerHealthStatusRequest.cc
Normal file
63
alb/src/model/GetListenerHealthStatusRequest.cc
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.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/alb/model/GetListenerHealthStatusRequest.h>
|
||||
|
||||
using AlibabaCloud::Alb::Model::GetListenerHealthStatusRequest;
|
||||
|
||||
GetListenerHealthStatusRequest::GetListenerHealthStatusRequest()
|
||||
: RpcServiceRequest("alb", "2020-06-16", "GetListenerHealthStatus") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
GetListenerHealthStatusRequest::~GetListenerHealthStatusRequest() {}
|
||||
|
||||
bool GetListenerHealthStatusRequest::getIncludeRule() const {
|
||||
return includeRule_;
|
||||
}
|
||||
|
||||
void GetListenerHealthStatusRequest::setIncludeRule(bool includeRule) {
|
||||
includeRule_ = includeRule;
|
||||
setParameter(std::string("IncludeRule"), includeRule ? "true" : "false");
|
||||
}
|
||||
|
||||
std::string GetListenerHealthStatusRequest::getListenerId() const {
|
||||
return listenerId_;
|
||||
}
|
||||
|
||||
void GetListenerHealthStatusRequest::setListenerId(const std::string &listenerId) {
|
||||
listenerId_ = listenerId;
|
||||
setParameter(std::string("ListenerId"), listenerId);
|
||||
}
|
||||
|
||||
std::string GetListenerHealthStatusRequest::getNextToken() const {
|
||||
return nextToken_;
|
||||
}
|
||||
|
||||
void GetListenerHealthStatusRequest::setNextToken(const std::string &nextToken) {
|
||||
nextToken_ = nextToken;
|
||||
setParameter(std::string("NextToken"), nextToken);
|
||||
}
|
||||
|
||||
long GetListenerHealthStatusRequest::getMaxResults() const {
|
||||
return maxResults_;
|
||||
}
|
||||
|
||||
void GetListenerHealthStatusRequest::setMaxResults(long maxResults) {
|
||||
maxResults_ = maxResults;
|
||||
setParameter(std::string("MaxResults"), std::to_string(maxResults));
|
||||
}
|
||||
|
||||
147
alb/src/model/GetListenerHealthStatusResult.cc
Normal file
147
alb/src/model/GetListenerHealthStatusResult.cc
Normal file
@@ -0,0 +1,147 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT 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/alb/model/GetListenerHealthStatusResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Alb;
|
||||
using namespace AlibabaCloud::Alb::Model;
|
||||
|
||||
GetListenerHealthStatusResult::GetListenerHealthStatusResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
GetListenerHealthStatusResult::GetListenerHealthStatusResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
GetListenerHealthStatusResult::~GetListenerHealthStatusResult()
|
||||
{}
|
||||
|
||||
void GetListenerHealthStatusResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allListenerHealthStatusNode = value["ListenerHealthStatus"]["ListenerHealthStatusModel"];
|
||||
for (auto valueListenerHealthStatusListenerHealthStatusModel : allListenerHealthStatusNode)
|
||||
{
|
||||
ListenerHealthStatusModel listenerHealthStatusObject;
|
||||
if(!valueListenerHealthStatusListenerHealthStatusModel["ListenerId"].isNull())
|
||||
listenerHealthStatusObject.listenerId = valueListenerHealthStatusListenerHealthStatusModel["ListenerId"].asString();
|
||||
if(!valueListenerHealthStatusListenerHealthStatusModel["ListenerPort"].isNull())
|
||||
listenerHealthStatusObject.listenerPort = std::stoi(valueListenerHealthStatusListenerHealthStatusModel["ListenerPort"].asString());
|
||||
if(!valueListenerHealthStatusListenerHealthStatusModel["ListenerProtocol"].isNull())
|
||||
listenerHealthStatusObject.listenerProtocol = valueListenerHealthStatusListenerHealthStatusModel["ListenerProtocol"].asString();
|
||||
auto allServerGroupInfosNode = valueListenerHealthStatusListenerHealthStatusModel["ServerGroupInfos"]["ServerGroupHealthStatusModel"];
|
||||
for (auto valueListenerHealthStatusListenerHealthStatusModelServerGroupInfosServerGroupHealthStatusModel : allServerGroupInfosNode)
|
||||
{
|
||||
ListenerHealthStatusModel::ServerGroupHealthStatusModel serverGroupInfosObject;
|
||||
if(!valueListenerHealthStatusListenerHealthStatusModelServerGroupInfosServerGroupHealthStatusModel["HealthCheckEnabled"].isNull())
|
||||
serverGroupInfosObject.healthCheckEnabled = valueListenerHealthStatusListenerHealthStatusModelServerGroupInfosServerGroupHealthStatusModel["HealthCheckEnabled"].asString();
|
||||
if(!valueListenerHealthStatusListenerHealthStatusModelServerGroupInfosServerGroupHealthStatusModel["ServerGroupId"].isNull())
|
||||
serverGroupInfosObject.serverGroupId = valueListenerHealthStatusListenerHealthStatusModelServerGroupInfosServerGroupHealthStatusModel["ServerGroupId"].asString();
|
||||
if(!valueListenerHealthStatusListenerHealthStatusModelServerGroupInfosServerGroupHealthStatusModel["ActionType"].isNull())
|
||||
serverGroupInfosObject.actionType = valueListenerHealthStatusListenerHealthStatusModelServerGroupInfosServerGroupHealthStatusModel["ActionType"].asString();
|
||||
auto allNonNormalServersNode = valueListenerHealthStatusListenerHealthStatusModelServerGroupInfosServerGroupHealthStatusModel["NonNormalServers"]["BackendServerHealthStatusModel"];
|
||||
for (auto valueListenerHealthStatusListenerHealthStatusModelServerGroupInfosServerGroupHealthStatusModelNonNormalServersBackendServerHealthStatusModel : allNonNormalServersNode)
|
||||
{
|
||||
ListenerHealthStatusModel::ServerGroupHealthStatusModel::BackendServerHealthStatusModel nonNormalServersObject;
|
||||
if(!valueListenerHealthStatusListenerHealthStatusModelServerGroupInfosServerGroupHealthStatusModelNonNormalServersBackendServerHealthStatusModel["Port"].isNull())
|
||||
nonNormalServersObject.port = std::stoi(valueListenerHealthStatusListenerHealthStatusModelServerGroupInfosServerGroupHealthStatusModelNonNormalServersBackendServerHealthStatusModel["Port"].asString());
|
||||
if(!valueListenerHealthStatusListenerHealthStatusModelServerGroupInfosServerGroupHealthStatusModelNonNormalServersBackendServerHealthStatusModel["ServerId"].isNull())
|
||||
nonNormalServersObject.serverId = valueListenerHealthStatusListenerHealthStatusModelServerGroupInfosServerGroupHealthStatusModelNonNormalServersBackendServerHealthStatusModel["ServerId"].asString();
|
||||
if(!valueListenerHealthStatusListenerHealthStatusModelServerGroupInfosServerGroupHealthStatusModelNonNormalServersBackendServerHealthStatusModel["ServerIp"].isNull())
|
||||
nonNormalServersObject.serverIp = valueListenerHealthStatusListenerHealthStatusModelServerGroupInfosServerGroupHealthStatusModelNonNormalServersBackendServerHealthStatusModel["ServerIp"].asString();
|
||||
if(!valueListenerHealthStatusListenerHealthStatusModelServerGroupInfosServerGroupHealthStatusModelNonNormalServersBackendServerHealthStatusModel["Status"].isNull())
|
||||
nonNormalServersObject.status = valueListenerHealthStatusListenerHealthStatusModelServerGroupInfosServerGroupHealthStatusModelNonNormalServersBackendServerHealthStatusModel["Status"].asString();
|
||||
auto reasonNode = value["Reason"];
|
||||
if(!reasonNode["ActualResponse"].isNull())
|
||||
nonNormalServersObject.reason.actualResponse = reasonNode["ActualResponse"].asString();
|
||||
if(!reasonNode["ExpectedResponse"].isNull())
|
||||
nonNormalServersObject.reason.expectedResponse = reasonNode["ExpectedResponse"].asString();
|
||||
if(!reasonNode["ReasonCode"].isNull())
|
||||
nonNormalServersObject.reason.reasonCode = reasonNode["ReasonCode"].asString();
|
||||
serverGroupInfosObject.nonNormalServers.push_back(nonNormalServersObject);
|
||||
}
|
||||
listenerHealthStatusObject.serverGroupInfos.push_back(serverGroupInfosObject);
|
||||
}
|
||||
listenerHealthStatus_.push_back(listenerHealthStatusObject);
|
||||
}
|
||||
auto allRuleHealthStatusNode = value["RuleHealthStatus"]["RuleHealthStatusModel"];
|
||||
for (auto valueRuleHealthStatusRuleHealthStatusModel : allRuleHealthStatusNode)
|
||||
{
|
||||
RuleHealthStatusModel ruleHealthStatusObject;
|
||||
if(!valueRuleHealthStatusRuleHealthStatusModel["RuleId"].isNull())
|
||||
ruleHealthStatusObject.ruleId = valueRuleHealthStatusRuleHealthStatusModel["RuleId"].asString();
|
||||
auto allServerGroupInfos1Node = valueRuleHealthStatusRuleHealthStatusModel["ServerGroupInfos"]["ServerGroupHealthStatusModel"];
|
||||
for (auto valueRuleHealthStatusRuleHealthStatusModelServerGroupInfosServerGroupHealthStatusModel : allServerGroupInfos1Node)
|
||||
{
|
||||
RuleHealthStatusModel::ServerGroupHealthStatusModel2 serverGroupInfos1Object;
|
||||
if(!valueRuleHealthStatusRuleHealthStatusModelServerGroupInfosServerGroupHealthStatusModel["HealthCheckEnabled"].isNull())
|
||||
serverGroupInfos1Object.healthCheckEnabled = valueRuleHealthStatusRuleHealthStatusModelServerGroupInfosServerGroupHealthStatusModel["HealthCheckEnabled"].asString();
|
||||
if(!valueRuleHealthStatusRuleHealthStatusModelServerGroupInfosServerGroupHealthStatusModel["ServerGroupId"].isNull())
|
||||
serverGroupInfos1Object.serverGroupId = valueRuleHealthStatusRuleHealthStatusModelServerGroupInfosServerGroupHealthStatusModel["ServerGroupId"].asString();
|
||||
if(!valueRuleHealthStatusRuleHealthStatusModelServerGroupInfosServerGroupHealthStatusModel["ActionType"].isNull())
|
||||
serverGroupInfos1Object.actionType = valueRuleHealthStatusRuleHealthStatusModelServerGroupInfosServerGroupHealthStatusModel["ActionType"].asString();
|
||||
auto allNonNormalServers3Node = valueRuleHealthStatusRuleHealthStatusModelServerGroupInfosServerGroupHealthStatusModel["NonNormalServers"]["NonNormalServer"];
|
||||
for (auto valueRuleHealthStatusRuleHealthStatusModelServerGroupInfosServerGroupHealthStatusModelNonNormalServersNonNormalServer : allNonNormalServers3Node)
|
||||
{
|
||||
RuleHealthStatusModel::ServerGroupHealthStatusModel2::NonNormalServer nonNormalServers3Object;
|
||||
if(!valueRuleHealthStatusRuleHealthStatusModelServerGroupInfosServerGroupHealthStatusModelNonNormalServersNonNormalServer["Port"].isNull())
|
||||
nonNormalServers3Object.port = std::stoi(valueRuleHealthStatusRuleHealthStatusModelServerGroupInfosServerGroupHealthStatusModelNonNormalServersNonNormalServer["Port"].asString());
|
||||
if(!valueRuleHealthStatusRuleHealthStatusModelServerGroupInfosServerGroupHealthStatusModelNonNormalServersNonNormalServer["ServerId"].isNull())
|
||||
nonNormalServers3Object.serverId = valueRuleHealthStatusRuleHealthStatusModelServerGroupInfosServerGroupHealthStatusModelNonNormalServersNonNormalServer["ServerId"].asString();
|
||||
if(!valueRuleHealthStatusRuleHealthStatusModelServerGroupInfosServerGroupHealthStatusModelNonNormalServersNonNormalServer["ServerIp"].isNull())
|
||||
nonNormalServers3Object.serverIp = valueRuleHealthStatusRuleHealthStatusModelServerGroupInfosServerGroupHealthStatusModelNonNormalServersNonNormalServer["ServerIp"].asString();
|
||||
if(!valueRuleHealthStatusRuleHealthStatusModelServerGroupInfosServerGroupHealthStatusModelNonNormalServersNonNormalServer["Status"].isNull())
|
||||
nonNormalServers3Object.status = valueRuleHealthStatusRuleHealthStatusModelServerGroupInfosServerGroupHealthStatusModelNonNormalServersNonNormalServer["Status"].asString();
|
||||
auto reason4Node = value["Reason"];
|
||||
if(!reason4Node["ActualResponse"].isNull())
|
||||
nonNormalServers3Object.reason4.actualResponse = reason4Node["ActualResponse"].asString();
|
||||
if(!reason4Node["ExpectedResponse"].isNull())
|
||||
nonNormalServers3Object.reason4.expectedResponse = reason4Node["ExpectedResponse"].asString();
|
||||
if(!reason4Node["ReasonCode"].isNull())
|
||||
nonNormalServers3Object.reason4.reasonCode = reason4Node["ReasonCode"].asString();
|
||||
serverGroupInfos1Object.nonNormalServers3.push_back(nonNormalServers3Object);
|
||||
}
|
||||
ruleHealthStatusObject.serverGroupInfos1.push_back(serverGroupInfos1Object);
|
||||
}
|
||||
ruleHealthStatus_.push_back(ruleHealthStatusObject);
|
||||
}
|
||||
if(!value["NextToken"].isNull())
|
||||
nextToken_ = value["NextToken"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::vector<GetListenerHealthStatusResult::RuleHealthStatusModel> GetListenerHealthStatusResult::getRuleHealthStatus()const
|
||||
{
|
||||
return ruleHealthStatus_;
|
||||
}
|
||||
|
||||
std::vector<GetListenerHealthStatusResult::ListenerHealthStatusModel> GetListenerHealthStatusResult::getListenerHealthStatus()const
|
||||
{
|
||||
return listenerHealthStatus_;
|
||||
}
|
||||
|
||||
std::string GetListenerHealthStatusResult::getNextToken()const
|
||||
{
|
||||
return nextToken_;
|
||||
}
|
||||
|
||||
@@ -73,6 +73,8 @@ void GetLoadBalancerAttributeResult::parse(const std::string &payload)
|
||||
ZoneMapping::LoadBalancerAddress loadBalancerAddressesObject;
|
||||
if(!valueZoneMappingsZoneMappingLoadBalancerAddressesLoadBalancerAddress["Address"].isNull())
|
||||
loadBalancerAddressesObject.address = valueZoneMappingsZoneMappingLoadBalancerAddressesLoadBalancerAddress["Address"].asString();
|
||||
if(!valueZoneMappingsZoneMappingLoadBalancerAddressesLoadBalancerAddress["Ipv6Address"].isNull())
|
||||
loadBalancerAddressesObject.ipv6Address = valueZoneMappingsZoneMappingLoadBalancerAddressesLoadBalancerAddress["Ipv6Address"].asString();
|
||||
zoneMappingsObject.loadBalancerAddresses.push_back(loadBalancerAddressesObject);
|
||||
}
|
||||
zoneMappings_.push_back(zoneMappingsObject);
|
||||
@@ -134,6 +136,12 @@ void GetLoadBalancerAttributeResult::parse(const std::string &payload)
|
||||
resourceGroupId_ = value["ResourceGroupId"].asString();
|
||||
if(!value["VpcId"].isNull())
|
||||
vpcId_ = value["VpcId"].asString();
|
||||
if(!value["ConfigManagedEnabled"].isNull())
|
||||
configManagedEnabled_ = value["ConfigManagedEnabled"].asString() == "true";
|
||||
if(!value["AddressIpVersion"].isNull())
|
||||
addressIpVersion_ = value["AddressIpVersion"].asString();
|
||||
if(!value["Ipv6AddressType"].isNull())
|
||||
ipv6AddressType_ = value["Ipv6AddressType"].asString();
|
||||
|
||||
}
|
||||
|
||||
@@ -142,9 +150,9 @@ bool GetLoadBalancerAttributeResult::getServiceManagedEnabled()const
|
||||
return serviceManagedEnabled_;
|
||||
}
|
||||
|
||||
std::string GetLoadBalancerAttributeResult::getLoadBalancerEdition()const
|
||||
std::string GetLoadBalancerAttributeResult::getAddressIpVersion()const
|
||||
{
|
||||
return loadBalancerEdition_;
|
||||
return addressIpVersion_;
|
||||
}
|
||||
|
||||
std::string GetLoadBalancerAttributeResult::getResourceGroupId()const
|
||||
@@ -152,21 +160,11 @@ std::string GetLoadBalancerAttributeResult::getResourceGroupId()const
|
||||
return resourceGroupId_;
|
||||
}
|
||||
|
||||
GetLoadBalancerAttributeResult::LoadBalancerBillingConfig GetLoadBalancerAttributeResult::getLoadBalancerBillingConfig()const
|
||||
{
|
||||
return loadBalancerBillingConfig_;
|
||||
}
|
||||
|
||||
std::vector<std::string> GetLoadBalancerAttributeResult::getFeatureLabels()const
|
||||
{
|
||||
return featureLabels_;
|
||||
}
|
||||
|
||||
std::string GetLoadBalancerAttributeResult::getCreateTime()const
|
||||
{
|
||||
return createTime_;
|
||||
}
|
||||
|
||||
std::string GetLoadBalancerAttributeResult::getLoadBalancerId()const
|
||||
{
|
||||
return loadBalancerId_;
|
||||
@@ -182,6 +180,51 @@ std::string GetLoadBalancerAttributeResult::getDNSName()const
|
||||
return dNSName_;
|
||||
}
|
||||
|
||||
std::string GetLoadBalancerAttributeResult::getIpv6AddressType()const
|
||||
{
|
||||
return ipv6AddressType_;
|
||||
}
|
||||
|
||||
int GetLoadBalancerAttributeResult::getBandwidthCapacity()const
|
||||
{
|
||||
return bandwidthCapacity_;
|
||||
}
|
||||
|
||||
GetLoadBalancerAttributeResult::DeletionProtectionConfig GetLoadBalancerAttributeResult::getDeletionProtectionConfig()const
|
||||
{
|
||||
return deletionProtectionConfig_;
|
||||
}
|
||||
|
||||
std::string GetLoadBalancerAttributeResult::getServiceManagedMode()const
|
||||
{
|
||||
return serviceManagedMode_;
|
||||
}
|
||||
|
||||
std::string GetLoadBalancerAttributeResult::getBandwidthPackageId()const
|
||||
{
|
||||
return bandwidthPackageId_;
|
||||
}
|
||||
|
||||
std::vector<GetLoadBalancerAttributeResult::Tag> GetLoadBalancerAttributeResult::getTags()const
|
||||
{
|
||||
return tags_;
|
||||
}
|
||||
|
||||
std::string GetLoadBalancerAttributeResult::getLoadBalancerEdition()const
|
||||
{
|
||||
return loadBalancerEdition_;
|
||||
}
|
||||
|
||||
GetLoadBalancerAttributeResult::LoadBalancerBillingConfig GetLoadBalancerAttributeResult::getLoadBalancerBillingConfig()const
|
||||
{
|
||||
return loadBalancerBillingConfig_;
|
||||
}
|
||||
|
||||
std::string GetLoadBalancerAttributeResult::getCreateTime()const
|
||||
{
|
||||
return createTime_;
|
||||
}
|
||||
|
||||
GetLoadBalancerAttributeResult::ModificationProtectionConfig GetLoadBalancerAttributeResult::getModificationProtectionConfig()const
|
||||
{
|
||||
return modificationProtectionConfig_;
|
||||
@@ -197,14 +240,9 @@ GetLoadBalancerAttributeResult::AccessLogConfig GetLoadBalancerAttributeResult::
|
||||
return accessLogConfig_;
|
||||
}
|
||||
|
||||
int GetLoadBalancerAttributeResult::getBandwidthCapacity()const
|
||||
bool GetLoadBalancerAttributeResult::getConfigManagedEnabled()const
|
||||
{
|
||||
return bandwidthCapacity_;
|
||||
}
|
||||
|
||||
GetLoadBalancerAttributeResult::DeletionProtectionConfig GetLoadBalancerAttributeResult::getDeletionProtectionConfig()const
|
||||
{
|
||||
return deletionProtectionConfig_;
|
||||
return configManagedEnabled_;
|
||||
}
|
||||
|
||||
std::string GetLoadBalancerAttributeResult::getLoadBalancerBussinessStatus()const
|
||||
@@ -217,16 +255,6 @@ std::string GetLoadBalancerAttributeResult::getVpcId()const
|
||||
return vpcId_;
|
||||
}
|
||||
|
||||
std::string GetLoadBalancerAttributeResult::getServiceManagedMode()const
|
||||
{
|
||||
return serviceManagedMode_;
|
||||
}
|
||||
|
||||
std::string GetLoadBalancerAttributeResult::getBandwidthPackageId()const
|
||||
{
|
||||
return bandwidthPackageId_;
|
||||
}
|
||||
|
||||
std::string GetLoadBalancerAttributeResult::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
@@ -247,11 +275,6 @@ std::string GetLoadBalancerAttributeResult::getLoadBalancerStatus()const
|
||||
return loadBalancerStatus_;
|
||||
}
|
||||
|
||||
std::vector<GetLoadBalancerAttributeResult::Tag> GetLoadBalancerAttributeResult::getTags()const
|
||||
{
|
||||
return tags_;
|
||||
}
|
||||
|
||||
std::vector<GetLoadBalancerAttributeResult::LoadBalancerOperationLock> GetLoadBalancerAttributeResult::getLoadBalancerOperationLocks()const
|
||||
{
|
||||
return loadBalancerOperationLocks_;
|
||||
|
||||
@@ -57,6 +57,8 @@ void ListAclsResult::parse(const std::string &payload)
|
||||
aclsObject.serviceManagedEnabled = valueAclsAcl["ServiceManagedEnabled"].asString() == "true";
|
||||
if(!valueAclsAcl["ServiceManagedMode"].isNull())
|
||||
aclsObject.serviceManagedMode = valueAclsAcl["ServiceManagedMode"].asString();
|
||||
if(!valueAclsAcl["ConfigManagedEnabled"].isNull())
|
||||
aclsObject.configManagedEnabled = valueAclsAcl["ConfigManagedEnabled"].asString() == "true";
|
||||
acls_.push_back(aclsObject);
|
||||
}
|
||||
if(!value["MaxResults"].isNull())
|
||||
|
||||
@@ -47,6 +47,15 @@ void ListLoadBalancersRequest::setLoadBalancerIds(const std::vector<ListLoadBala
|
||||
}
|
||||
}
|
||||
|
||||
std::string ListLoadBalancersRequest::getAddressIpVersion() const {
|
||||
return addressIpVersion_;
|
||||
}
|
||||
|
||||
void ListLoadBalancersRequest::setAddressIpVersion(const std::string &addressIpVersion) {
|
||||
addressIpVersion_ = addressIpVersion;
|
||||
setParameter(std::string("AddressIpVersion"), addressIpVersion);
|
||||
}
|
||||
|
||||
std::string ListLoadBalancersRequest::getResourceGroupId() const {
|
||||
return resourceGroupId_;
|
||||
}
|
||||
@@ -151,6 +160,15 @@ void ListLoadBalancersRequest::setZoneId(const std::string &zoneId) {
|
||||
setParameter(std::string("ZoneId"), zoneId);
|
||||
}
|
||||
|
||||
std::string ListLoadBalancersRequest::getIpv6AddressType() const {
|
||||
return ipv6AddressType_;
|
||||
}
|
||||
|
||||
void ListLoadBalancersRequest::setIpv6AddressType(const std::string &ipv6AddressType) {
|
||||
ipv6AddressType_ = ipv6AddressType;
|
||||
setParameter(std::string("Ipv6AddressType"), ipv6AddressType);
|
||||
}
|
||||
|
||||
std::string ListLoadBalancersRequest::getPayType() const {
|
||||
return payType_;
|
||||
}
|
||||
|
||||
@@ -73,6 +73,12 @@ void ListLoadBalancersResult::parse(const std::string &payload)
|
||||
loadBalancersObject.resourceGroupId = valueLoadBalancersloadBalancer["ResourceGroupId"].asString();
|
||||
if(!valueLoadBalancersloadBalancer["VpcId"].isNull())
|
||||
loadBalancersObject.vpcId = valueLoadBalancersloadBalancer["VpcId"].asString();
|
||||
if(!valueLoadBalancersloadBalancer["ConfigManagedEnabled"].isNull())
|
||||
loadBalancersObject.configManagedEnabled = valueLoadBalancersloadBalancer["ConfigManagedEnabled"].asString() == "true";
|
||||
if(!valueLoadBalancersloadBalancer["AddressIpVersion"].isNull())
|
||||
loadBalancersObject.addressIpVersion = valueLoadBalancersloadBalancer["AddressIpVersion"].asString();
|
||||
if(!valueLoadBalancersloadBalancer["Ipv6AddressType"].isNull())
|
||||
loadBalancersObject.ipv6AddressType = valueLoadBalancersloadBalancer["Ipv6AddressType"].asString();
|
||||
auto allLoadBalancerOperationLocksNode = valueLoadBalancersloadBalancer["LoadBalancerOperationLocks"]["LoadBalancerOperationLock"];
|
||||
for (auto valueLoadBalancersloadBalancerLoadBalancerOperationLocksLoadBalancerOperationLock : allLoadBalancerOperationLocksNode)
|
||||
{
|
||||
|
||||
@@ -59,6 +59,8 @@ void ListServerGroupServersResult::parse(const std::string &payload)
|
||||
serversObject.weight = std::stoi(valueServersBackendServer["Weight"].asString());
|
||||
if(!valueServersBackendServer["ServerGroupId"].isNull())
|
||||
serversObject.serverGroupId = valueServersBackendServer["ServerGroupId"].asString();
|
||||
if(!valueServersBackendServer["RemoteIpEnabled"].isNull())
|
||||
serversObject.remoteIpEnabled = valueServersBackendServer["RemoteIpEnabled"].asString() == "true";
|
||||
servers_.push_back(serversObject);
|
||||
}
|
||||
if(!value["MaxResults"].isNull())
|
||||
|
||||
@@ -63,6 +63,14 @@ void ListServerGroupsResult::parse(const std::string &payload)
|
||||
serverGroupsObject.serviceManagedEnabled = valueServerGroupsServerGroup["ServiceManagedEnabled"].asString() == "true";
|
||||
if(!valueServerGroupsServerGroup["ServiceManagedMode"].isNull())
|
||||
serverGroupsObject.serviceManagedMode = valueServerGroupsServerGroup["ServiceManagedMode"].asString();
|
||||
if(!valueServerGroupsServerGroup["ConfigManagedEnabled"].isNull())
|
||||
serverGroupsObject.configManagedEnabled = valueServerGroupsServerGroup["ConfigManagedEnabled"].asString() == "true";
|
||||
if(!valueServerGroupsServerGroup["UpstreamKeepaliveEnabled"].isNull())
|
||||
serverGroupsObject.upstreamKeepaliveEnabled = valueServerGroupsServerGroup["UpstreamKeepaliveEnabled"].asString() == "true";
|
||||
if(!valueServerGroupsServerGroup["Ipv6Enabled"].isNull())
|
||||
serverGroupsObject.ipv6Enabled = valueServerGroupsServerGroup["Ipv6Enabled"].asString() == "true";
|
||||
if(!valueServerGroupsServerGroup["ServerCount"].isNull())
|
||||
serverGroupsObject.serverCount = std::stoi(valueServerGroupsServerGroup["ServerCount"].asString());
|
||||
auto allTagsNode = valueServerGroupsServerGroup["Tags"]["Tag"];
|
||||
for (auto valueServerGroupsServerGroupTagsTag : allTagsNode)
|
||||
{
|
||||
|
||||
@@ -50,6 +50,7 @@ std::vector<ReplaceServersInServerGroupRequest::AddedServers> ReplaceServersInSe
|
||||
void ReplaceServersInServerGroupRequest::setAddedServers(const std::vector<ReplaceServersInServerGroupRequest::AddedServers> &addedServers) {
|
||||
addedServers_ = addedServers;
|
||||
for(int dep1 = 0; dep1 != addedServers.size(); dep1++) {
|
||||
setParameter(std::string("AddedServers") + "." + std::to_string(dep1 + 1) + ".RemoteIpEnabled", addedServers[dep1].remoteIpEnabled ? "true" : "false");
|
||||
setParameter(std::string("AddedServers") + "." + std::to_string(dep1 + 1) + ".ServerType", addedServers[dep1].serverType);
|
||||
setParameter(std::string("AddedServers") + "." + std::to_string(dep1 + 1) + ".Port", std::to_string(addedServers[dep1].port));
|
||||
setParameter(std::string("AddedServers") + "." + std::to_string(dep1 + 1) + ".Description", addedServers[dep1].description);
|
||||
|
||||
67
alb/src/model/UpdateLoadBalancerZonesRequest.cc
Normal file
67
alb/src/model/UpdateLoadBalancerZonesRequest.cc
Normal file
@@ -0,0 +1,67 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/alb/model/UpdateLoadBalancerZonesRequest.h>
|
||||
|
||||
using AlibabaCloud::Alb::Model::UpdateLoadBalancerZonesRequest;
|
||||
|
||||
UpdateLoadBalancerZonesRequest::UpdateLoadBalancerZonesRequest()
|
||||
: RpcServiceRequest("alb", "2020-06-16", "UpdateLoadBalancerZones") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
UpdateLoadBalancerZonesRequest::~UpdateLoadBalancerZonesRequest() {}
|
||||
|
||||
std::string UpdateLoadBalancerZonesRequest::getClientToken() const {
|
||||
return clientToken_;
|
||||
}
|
||||
|
||||
void UpdateLoadBalancerZonesRequest::setClientToken(const std::string &clientToken) {
|
||||
clientToken_ = clientToken;
|
||||
setParameter(std::string("ClientToken"), clientToken);
|
||||
}
|
||||
|
||||
bool UpdateLoadBalancerZonesRequest::getDryRun() const {
|
||||
return dryRun_;
|
||||
}
|
||||
|
||||
void UpdateLoadBalancerZonesRequest::setDryRun(bool dryRun) {
|
||||
dryRun_ = dryRun;
|
||||
setParameter(std::string("DryRun"), dryRun ? "true" : "false");
|
||||
}
|
||||
|
||||
std::vector<UpdateLoadBalancerZonesRequest::ZoneMappings> UpdateLoadBalancerZonesRequest::getZoneMappings() const {
|
||||
return zoneMappings_;
|
||||
}
|
||||
|
||||
void UpdateLoadBalancerZonesRequest::setZoneMappings(const std::vector<UpdateLoadBalancerZonesRequest::ZoneMappings> &zoneMappings) {
|
||||
zoneMappings_ = zoneMappings;
|
||||
for(int dep1 = 0; dep1 != zoneMappings.size(); dep1++) {
|
||||
setParameter(std::string("ZoneMappings") + "." + std::to_string(dep1 + 1) + ".VSwitchId", zoneMappings[dep1].vSwitchId);
|
||||
setParameter(std::string("ZoneMappings") + "." + std::to_string(dep1 + 1) + ".ZoneId", zoneMappings[dep1].zoneId);
|
||||
setParameter(std::string("ZoneMappings") + "." + std::to_string(dep1 + 1) + ".AllocationId", zoneMappings[dep1].allocationId);
|
||||
}
|
||||
}
|
||||
|
||||
std::string UpdateLoadBalancerZonesRequest::getLoadBalancerId() const {
|
||||
return loadBalancerId_;
|
||||
}
|
||||
|
||||
void UpdateLoadBalancerZonesRequest::setLoadBalancerId(const std::string &loadBalancerId) {
|
||||
loadBalancerId_ = loadBalancerId;
|
||||
setParameter(std::string("LoadBalancerId"), loadBalancerId);
|
||||
}
|
||||
|
||||
51
alb/src/model/UpdateLoadBalancerZonesResult.cc
Normal file
51
alb/src/model/UpdateLoadBalancerZonesResult.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/alb/model/UpdateLoadBalancerZonesResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Alb;
|
||||
using namespace AlibabaCloud::Alb::Model;
|
||||
|
||||
UpdateLoadBalancerZonesResult::UpdateLoadBalancerZonesResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
UpdateLoadBalancerZonesResult::UpdateLoadBalancerZonesResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
UpdateLoadBalancerZonesResult::~UpdateLoadBalancerZonesResult()
|
||||
{}
|
||||
|
||||
void UpdateLoadBalancerZonesResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["JobId"].isNull())
|
||||
jobId_ = value["JobId"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string UpdateLoadBalancerZonesResult::getJobId()const
|
||||
{
|
||||
return jobId_;
|
||||
}
|
||||
|
||||
@@ -87,6 +87,15 @@ void UpdateServerGroupAttributeRequest::setServerGroupId(const std::string &serv
|
||||
setParameter(std::string("ServerGroupId"), serverGroupId);
|
||||
}
|
||||
|
||||
bool UpdateServerGroupAttributeRequest::getUpstreamKeepaliveEnabled() const {
|
||||
return upstreamKeepaliveEnabled_;
|
||||
}
|
||||
|
||||
void UpdateServerGroupAttributeRequest::setUpstreamKeepaliveEnabled(bool upstreamKeepaliveEnabled) {
|
||||
upstreamKeepaliveEnabled_ = upstreamKeepaliveEnabled;
|
||||
setParameter(std::string("UpstreamKeepaliveEnabled"), upstreamKeepaliveEnabled ? "true" : "false");
|
||||
}
|
||||
|
||||
UpdateServerGroupAttributeRequest::StickySessionConfig UpdateServerGroupAttributeRequest::getStickySessionConfig() const {
|
||||
return stickySessionConfig_;
|
||||
}
|
||||
|
||||
@@ -43,6 +43,10 @@ set(alimt_public_header_model
|
||||
include/alibabacloud/alimt/model/GetTitleGenerateResult.h
|
||||
include/alibabacloud/alimt/model/GetTitleIntelligenceRequest.h
|
||||
include/alibabacloud/alimt/model/GetTitleIntelligenceResult.h
|
||||
include/alibabacloud/alimt/model/GetTranslateReportRequest.h
|
||||
include/alibabacloud/alimt/model/GetTranslateReportResult.h
|
||||
include/alibabacloud/alimt/model/GetUserRequest.h
|
||||
include/alibabacloud/alimt/model/GetUserResult.h
|
||||
include/alibabacloud/alimt/model/OpenAlimtServiceRequest.h
|
||||
include/alibabacloud/alimt/model/OpenAlimtServiceResult.h
|
||||
include/alibabacloud/alimt/model/TranslateRequest.h
|
||||
@@ -52,7 +56,9 @@ set(alimt_public_header_model
|
||||
include/alibabacloud/alimt/model/TranslateECommerceRequest.h
|
||||
include/alibabacloud/alimt/model/TranslateECommerceResult.h
|
||||
include/alibabacloud/alimt/model/TranslateGeneralRequest.h
|
||||
include/alibabacloud/alimt/model/TranslateGeneralResult.h )
|
||||
include/alibabacloud/alimt/model/TranslateGeneralResult.h
|
||||
include/alibabacloud/alimt/model/TranslateImageRequest.h
|
||||
include/alibabacloud/alimt/model/TranslateImageResult.h )
|
||||
|
||||
set(alimt_src
|
||||
src/AlimtClient.cc
|
||||
@@ -78,6 +84,10 @@ set(alimt_src
|
||||
src/model/GetTitleGenerateResult.cc
|
||||
src/model/GetTitleIntelligenceRequest.cc
|
||||
src/model/GetTitleIntelligenceResult.cc
|
||||
src/model/GetTranslateReportRequest.cc
|
||||
src/model/GetTranslateReportResult.cc
|
||||
src/model/GetUserRequest.cc
|
||||
src/model/GetUserResult.cc
|
||||
src/model/OpenAlimtServiceRequest.cc
|
||||
src/model/OpenAlimtServiceResult.cc
|
||||
src/model/TranslateRequest.cc
|
||||
@@ -87,7 +97,9 @@ set(alimt_src
|
||||
src/model/TranslateECommerceRequest.cc
|
||||
src/model/TranslateECommerceResult.cc
|
||||
src/model/TranslateGeneralRequest.cc
|
||||
src/model/TranslateGeneralResult.cc )
|
||||
src/model/TranslateGeneralResult.cc
|
||||
src/model/TranslateImageRequest.cc
|
||||
src/model/TranslateImageResult.cc )
|
||||
|
||||
add_library(alimt ${LIB_TYPE}
|
||||
${alimt_public_header}
|
||||
|
||||
@@ -44,6 +44,10 @@
|
||||
#include "model/GetTitleGenerateResult.h"
|
||||
#include "model/GetTitleIntelligenceRequest.h"
|
||||
#include "model/GetTitleIntelligenceResult.h"
|
||||
#include "model/GetTranslateReportRequest.h"
|
||||
#include "model/GetTranslateReportResult.h"
|
||||
#include "model/GetUserRequest.h"
|
||||
#include "model/GetUserResult.h"
|
||||
#include "model/OpenAlimtServiceRequest.h"
|
||||
#include "model/OpenAlimtServiceResult.h"
|
||||
#include "model/TranslateRequest.h"
|
||||
@@ -54,6 +58,8 @@
|
||||
#include "model/TranslateECommerceResult.h"
|
||||
#include "model/TranslateGeneralRequest.h"
|
||||
#include "model/TranslateGeneralResult.h"
|
||||
#include "model/TranslateImageRequest.h"
|
||||
#include "model/TranslateImageResult.h"
|
||||
|
||||
|
||||
namespace AlibabaCloud
|
||||
@@ -96,6 +102,12 @@ namespace AlibabaCloud
|
||||
typedef Outcome<Error, Model::GetTitleIntelligenceResult> GetTitleIntelligenceOutcome;
|
||||
typedef std::future<GetTitleIntelligenceOutcome> GetTitleIntelligenceOutcomeCallable;
|
||||
typedef std::function<void(const AlimtClient*, const Model::GetTitleIntelligenceRequest&, const GetTitleIntelligenceOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetTitleIntelligenceAsyncHandler;
|
||||
typedef Outcome<Error, Model::GetTranslateReportResult> GetTranslateReportOutcome;
|
||||
typedef std::future<GetTranslateReportOutcome> GetTranslateReportOutcomeCallable;
|
||||
typedef std::function<void(const AlimtClient*, const Model::GetTranslateReportRequest&, const GetTranslateReportOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetTranslateReportAsyncHandler;
|
||||
typedef Outcome<Error, Model::GetUserResult> GetUserOutcome;
|
||||
typedef std::future<GetUserOutcome> GetUserOutcomeCallable;
|
||||
typedef std::function<void(const AlimtClient*, const Model::GetUserRequest&, const GetUserOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetUserAsyncHandler;
|
||||
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;
|
||||
@@ -111,6 +123,9 @@ namespace AlibabaCloud
|
||||
typedef Outcome<Error, Model::TranslateGeneralResult> TranslateGeneralOutcome;
|
||||
typedef std::future<TranslateGeneralOutcome> TranslateGeneralOutcomeCallable;
|
||||
typedef std::function<void(const AlimtClient*, const Model::TranslateGeneralRequest&, const TranslateGeneralOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> TranslateGeneralAsyncHandler;
|
||||
typedef Outcome<Error, Model::TranslateImageResult> TranslateImageOutcome;
|
||||
typedef std::future<TranslateImageOutcome> TranslateImageOutcomeCallable;
|
||||
typedef std::function<void(const AlimtClient*, const Model::TranslateImageRequest&, const TranslateImageOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> TranslateImageAsyncHandler;
|
||||
|
||||
AlimtClient(const Credentials &credentials, const ClientConfiguration &configuration);
|
||||
AlimtClient(const std::shared_ptr<CredentialsProvider> &credentialsProvider, const ClientConfiguration &configuration);
|
||||
@@ -149,6 +164,12 @@ namespace AlibabaCloud
|
||||
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;
|
||||
GetTitleIntelligenceOutcomeCallable getTitleIntelligenceCallable(const Model::GetTitleIntelligenceRequest& request) const;
|
||||
GetTranslateReportOutcome getTranslateReport(const Model::GetTranslateReportRequest &request)const;
|
||||
void getTranslateReportAsync(const Model::GetTranslateReportRequest& request, const GetTranslateReportAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
GetTranslateReportOutcomeCallable getTranslateReportCallable(const Model::GetTranslateReportRequest& request) const;
|
||||
GetUserOutcome getUser(const Model::GetUserRequest &request)const;
|
||||
void getUserAsync(const Model::GetUserRequest& request, const GetUserAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
GetUserOutcomeCallable getUserCallable(const Model::GetUserRequest& 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;
|
||||
@@ -164,6 +185,9 @@ namespace AlibabaCloud
|
||||
TranslateGeneralOutcome translateGeneral(const Model::TranslateGeneralRequest &request)const;
|
||||
void translateGeneralAsync(const Model::TranslateGeneralRequest& request, const TranslateGeneralAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
TranslateGeneralOutcomeCallable translateGeneralCallable(const Model::TranslateGeneralRequest& request) const;
|
||||
TranslateImageOutcome translateImage(const Model::TranslateImageRequest &request)const;
|
||||
void translateImageAsync(const Model::TranslateImageRequest& request, const TranslateImageAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
TranslateImageOutcomeCallable translateImageCallable(const Model::TranslateImageRequest& request) const;
|
||||
|
||||
private:
|
||||
std::shared_ptr<EndpointProvider> endpointProvider_;
|
||||
|
||||
@@ -1,63 +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_ALIMT_MODEL_CREATEDOCTRANSLATETASKREQUEST_H_
|
||||
#define ALIBABACLOUD_ALIMT_MODEL_CREATEDOCTRANSLATETASKREQUEST_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 CreateDocTranslateTaskRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
CreateDocTranslateTaskRequest();
|
||||
~CreateDocTranslateTaskRequest();
|
||||
|
||||
std::string getSourceLanguage()const;
|
||||
void setSourceLanguage(const std::string& sourceLanguage);
|
||||
std::string getClientToken()const;
|
||||
void setClientToken(const std::string& clientToken);
|
||||
std::string getScene()const;
|
||||
void setScene(const std::string& scene);
|
||||
std::string getFileUrl()const;
|
||||
void setFileUrl(const std::string& fileUrl);
|
||||
std::string getTargetLanguage()const;
|
||||
void setTargetLanguage(const std::string& targetLanguage);
|
||||
std::string getCallbackUrl()const;
|
||||
void setCallbackUrl(const std::string& callbackUrl);
|
||||
|
||||
private:
|
||||
std::string sourceLanguage_;
|
||||
std::string clientToken_;
|
||||
std::string scene_;
|
||||
std::string fileUrl_;
|
||||
std::string targetLanguage_;
|
||||
std::string callbackUrl_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_ALIMT_MODEL_CREATEDOCTRANSLATETASKREQUEST_H_
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_ALIMT_MODEL_CREATEDOCTRANSLATETASKREQUEST_H_
|
||||
#define ALIBABACLOUD_ALIMT_MODEL_CREATEDOCTRANSLATETASKREQUEST_H_
|
||||
|
||||
#include <alibabacloud/alimt/AlimtExport.h>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <map>
|
||||
|
||||
namespace AlibabaCloud {
|
||||
namespace Alimt {
|
||||
namespace Model {
|
||||
class ALIBABACLOUD_ALIMT_EXPORT CreateDocTranslateTaskRequest : public RpcServiceRequest {
|
||||
public:
|
||||
CreateDocTranslateTaskRequest();
|
||||
~CreateDocTranslateTaskRequest();
|
||||
std::string getSourceLanguage() const;
|
||||
void setSourceLanguage(const std::string &sourceLanguage);
|
||||
std::string getClientToken() const;
|
||||
void setClientToken(const std::string &clientToken);
|
||||
std::string getScene() const;
|
||||
void setScene(const std::string &scene);
|
||||
std::string getFileUrl() const;
|
||||
void setFileUrl(const std::string &fileUrl);
|
||||
std::string getTargetLanguage() const;
|
||||
void setTargetLanguage(const std::string &targetLanguage);
|
||||
std::string getCallbackUrl() const;
|
||||
void setCallbackUrl(const std::string &callbackUrl);
|
||||
|
||||
private:
|
||||
std::string sourceLanguage_;
|
||||
std::string clientToken_;
|
||||
std::string scene_;
|
||||
std::string fileUrl_;
|
||||
std::string targetLanguage_;
|
||||
std::string callbackUrl_;
|
||||
};
|
||||
} // namespace Model
|
||||
} // namespace Alimt
|
||||
} // namespace AlibabaCloud
|
||||
#endif // !ALIBABACLOUD_ALIMT_MODEL_CREATEDOCTRANSLATETASKREQUEST_H_
|
||||
|
||||
@@ -1,60 +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_ALIMT_MODEL_CREATEIMAGETRANSLATETASKREQUEST_H_
|
||||
#define ALIBABACLOUD_ALIMT_MODEL_CREATEIMAGETRANSLATETASKREQUEST_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 CreateImageTranslateTaskRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
CreateImageTranslateTaskRequest();
|
||||
~CreateImageTranslateTaskRequest();
|
||||
|
||||
std::string getSourceLanguage()const;
|
||||
void setSourceLanguage(const std::string& sourceLanguage);
|
||||
std::string getClientToken()const;
|
||||
void setClientToken(const std::string& clientToken);
|
||||
std::string getUrlList()const;
|
||||
void setUrlList(const std::string& urlList);
|
||||
std::string getExtra()const;
|
||||
void setExtra(const std::string& extra);
|
||||
std::string getTargetLanguage()const;
|
||||
void setTargetLanguage(const std::string& targetLanguage);
|
||||
|
||||
private:
|
||||
std::string sourceLanguage_;
|
||||
std::string clientToken_;
|
||||
std::string urlList_;
|
||||
std::string extra_;
|
||||
std::string targetLanguage_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_ALIMT_MODEL_CREATEIMAGETRANSLATETASKREQUEST_H_
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_ALIMT_MODEL_CREATEIMAGETRANSLATETASKREQUEST_H_
|
||||
#define ALIBABACLOUD_ALIMT_MODEL_CREATEIMAGETRANSLATETASKREQUEST_H_
|
||||
|
||||
#include <alibabacloud/alimt/AlimtExport.h>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <map>
|
||||
|
||||
namespace AlibabaCloud {
|
||||
namespace Alimt {
|
||||
namespace Model {
|
||||
class ALIBABACLOUD_ALIMT_EXPORT CreateImageTranslateTaskRequest : public RpcServiceRequest {
|
||||
public:
|
||||
CreateImageTranslateTaskRequest();
|
||||
~CreateImageTranslateTaskRequest();
|
||||
std::string getSourceLanguage() const;
|
||||
void setSourceLanguage(const std::string &sourceLanguage);
|
||||
std::string getClientToken() const;
|
||||
void setClientToken(const std::string &clientToken);
|
||||
std::string getUrlList() const;
|
||||
void setUrlList(const std::string &urlList);
|
||||
std::string getExtra() const;
|
||||
void setExtra(const std::string &extra);
|
||||
std::string getTargetLanguage() const;
|
||||
void setTargetLanguage(const std::string &targetLanguage);
|
||||
|
||||
private:
|
||||
std::string sourceLanguage_;
|
||||
std::string clientToken_;
|
||||
std::string urlList_;
|
||||
std::string extra_;
|
||||
std::string targetLanguage_;
|
||||
};
|
||||
} // namespace Model
|
||||
} // namespace Alimt
|
||||
} // namespace AlibabaCloud
|
||||
#endif // !ALIBABACLOUD_ALIMT_MODEL_CREATEIMAGETRANSLATETASKREQUEST_H_
|
||||
|
||||
@@ -1,63 +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_ALIMT_MODEL_GETBATCHTRANSLATEREQUEST_H_
|
||||
#define ALIBABACLOUD_ALIMT_MODEL_GETBATCHTRANSLATEREQUEST_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 GetBatchTranslateRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
GetBatchTranslateRequest();
|
||||
~GetBatchTranslateRequest();
|
||||
|
||||
std::string getSourceLanguage()const;
|
||||
void setSourceLanguage(const std::string& sourceLanguage);
|
||||
std::string getSourceText()const;
|
||||
void setSourceText(const std::string& sourceText);
|
||||
std::string getFormatType()const;
|
||||
void setFormatType(const std::string& formatType);
|
||||
std::string getApiType()const;
|
||||
void setApiType(const std::string& apiType);
|
||||
std::string getScene()const;
|
||||
void setScene(const std::string& scene);
|
||||
std::string getTargetLanguage()const;
|
||||
void setTargetLanguage(const std::string& targetLanguage);
|
||||
|
||||
private:
|
||||
std::string sourceLanguage_;
|
||||
std::string sourceText_;
|
||||
std::string formatType_;
|
||||
std::string apiType_;
|
||||
std::string scene_;
|
||||
std::string targetLanguage_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_ALIMT_MODEL_GETBATCHTRANSLATEREQUEST_H_
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_ALIMT_MODEL_GETBATCHTRANSLATEREQUEST_H_
|
||||
#define ALIBABACLOUD_ALIMT_MODEL_GETBATCHTRANSLATEREQUEST_H_
|
||||
|
||||
#include <alibabacloud/alimt/AlimtExport.h>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <map>
|
||||
|
||||
namespace AlibabaCloud {
|
||||
namespace Alimt {
|
||||
namespace Model {
|
||||
class ALIBABACLOUD_ALIMT_EXPORT GetBatchTranslateRequest : public RpcServiceRequest {
|
||||
public:
|
||||
GetBatchTranslateRequest();
|
||||
~GetBatchTranslateRequest();
|
||||
std::string getSourceLanguage() const;
|
||||
void setSourceLanguage(const std::string &sourceLanguage);
|
||||
std::string getSourceText() const;
|
||||
void setSourceText(const std::string &sourceText);
|
||||
std::string getFormatType() const;
|
||||
void setFormatType(const std::string &formatType);
|
||||
std::string getApiType() const;
|
||||
void setApiType(const std::string &apiType);
|
||||
std::string getScene() const;
|
||||
void setScene(const std::string &scene);
|
||||
std::string getTargetLanguage() const;
|
||||
void setTargetLanguage(const std::string &targetLanguage);
|
||||
|
||||
private:
|
||||
std::string sourceLanguage_;
|
||||
std::string sourceText_;
|
||||
std::string formatType_;
|
||||
std::string apiType_;
|
||||
std::string scene_;
|
||||
std::string targetLanguage_;
|
||||
};
|
||||
} // namespace Model
|
||||
} // namespace Alimt
|
||||
} // namespace AlibabaCloud
|
||||
#endif // !ALIBABACLOUD_ALIMT_MODEL_GETBATCHTRANSLATEREQUEST_H_
|
||||
|
||||
@@ -1,48 +1,42 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT 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_GETDETECTLANGUAGEREQUEST_H_
|
||||
#define ALIBABACLOUD_ALIMT_MODEL_GETDETECTLANGUAGEREQUEST_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 GetDetectLanguageRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
GetDetectLanguageRequest();
|
||||
~GetDetectLanguageRequest();
|
||||
|
||||
std::string getSourceText()const;
|
||||
void setSourceText(const std::string& sourceText);
|
||||
|
||||
private:
|
||||
std::string sourceText_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_ALIMT_MODEL_GETDETECTLANGUAGEREQUEST_H_
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_ALIMT_MODEL_GETDETECTLANGUAGEREQUEST_H_
|
||||
#define ALIBABACLOUD_ALIMT_MODEL_GETDETECTLANGUAGEREQUEST_H_
|
||||
|
||||
#include <alibabacloud/alimt/AlimtExport.h>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <map>
|
||||
|
||||
namespace AlibabaCloud {
|
||||
namespace Alimt {
|
||||
namespace Model {
|
||||
class ALIBABACLOUD_ALIMT_EXPORT GetDetectLanguageRequest : public RpcServiceRequest {
|
||||
public:
|
||||
GetDetectLanguageRequest();
|
||||
~GetDetectLanguageRequest();
|
||||
std::string getSourceText() const;
|
||||
void setSourceText(const std::string &sourceText);
|
||||
|
||||
private:
|
||||
std::string sourceText_;
|
||||
};
|
||||
} // namespace Model
|
||||
} // namespace Alimt
|
||||
} // namespace AlibabaCloud
|
||||
#endif // !ALIBABACLOUD_ALIMT_MODEL_GETDETECTLANGUAGEREQUEST_H_
|
||||
|
||||
@@ -1,48 +1,42 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT 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_GETDOCTRANSLATETASKREQUEST_H_
|
||||
#define ALIBABACLOUD_ALIMT_MODEL_GETDOCTRANSLATETASKREQUEST_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 GetDocTranslateTaskRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
GetDocTranslateTaskRequest();
|
||||
~GetDocTranslateTaskRequest();
|
||||
|
||||
std::string getTaskId()const;
|
||||
void setTaskId(const std::string& taskId);
|
||||
|
||||
private:
|
||||
std::string taskId_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_ALIMT_MODEL_GETDOCTRANSLATETASKREQUEST_H_
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_ALIMT_MODEL_GETDOCTRANSLATETASKREQUEST_H_
|
||||
#define ALIBABACLOUD_ALIMT_MODEL_GETDOCTRANSLATETASKREQUEST_H_
|
||||
|
||||
#include <alibabacloud/alimt/AlimtExport.h>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <map>
|
||||
|
||||
namespace AlibabaCloud {
|
||||
namespace Alimt {
|
||||
namespace Model {
|
||||
class ALIBABACLOUD_ALIMT_EXPORT GetDocTranslateTaskRequest : public RpcServiceRequest {
|
||||
public:
|
||||
GetDocTranslateTaskRequest();
|
||||
~GetDocTranslateTaskRequest();
|
||||
std::string getTaskId() const;
|
||||
void setTaskId(const std::string &taskId);
|
||||
|
||||
private:
|
||||
std::string taskId_;
|
||||
};
|
||||
} // namespace Model
|
||||
} // namespace Alimt
|
||||
} // namespace AlibabaCloud
|
||||
#endif // !ALIBABACLOUD_ALIMT_MODEL_GETDOCTRANSLATETASKREQUEST_H_
|
||||
|
||||
@@ -1,51 +1,45 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT 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_GETIMAGEDIAGNOSEREQUEST_H_
|
||||
#define ALIBABACLOUD_ALIMT_MODEL_GETIMAGEDIAGNOSEREQUEST_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 GetImageDiagnoseRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
GetImageDiagnoseRequest();
|
||||
~GetImageDiagnoseRequest();
|
||||
|
||||
std::string getUrl()const;
|
||||
void setUrl(const std::string& url);
|
||||
std::string getExtra()const;
|
||||
void setExtra(const std::string& extra);
|
||||
|
||||
private:
|
||||
std::string url_;
|
||||
std::string extra_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_ALIMT_MODEL_GETIMAGEDIAGNOSEREQUEST_H_
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_ALIMT_MODEL_GETIMAGEDIAGNOSEREQUEST_H_
|
||||
#define ALIBABACLOUD_ALIMT_MODEL_GETIMAGEDIAGNOSEREQUEST_H_
|
||||
|
||||
#include <alibabacloud/alimt/AlimtExport.h>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <map>
|
||||
|
||||
namespace AlibabaCloud {
|
||||
namespace Alimt {
|
||||
namespace Model {
|
||||
class ALIBABACLOUD_ALIMT_EXPORT GetImageDiagnoseRequest : public RpcServiceRequest {
|
||||
public:
|
||||
GetImageDiagnoseRequest();
|
||||
~GetImageDiagnoseRequest();
|
||||
std::string getUrl() const;
|
||||
void setUrl(const std::string &url);
|
||||
std::string getExtra() const;
|
||||
void setExtra(const std::string &extra);
|
||||
|
||||
private:
|
||||
std::string url_;
|
||||
std::string extra_;
|
||||
};
|
||||
} // namespace Model
|
||||
} // namespace Alimt
|
||||
} // namespace AlibabaCloud
|
||||
#endif // !ALIBABACLOUD_ALIMT_MODEL_GETIMAGEDIAGNOSEREQUEST_H_
|
||||
|
||||
@@ -1,57 +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_GETIMAGETRANSLATEREQUEST_H_
|
||||
#define ALIBABACLOUD_ALIMT_MODEL_GETIMAGETRANSLATEREQUEST_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 GetImageTranslateRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
GetImageTranslateRequest();
|
||||
~GetImageTranslateRequest();
|
||||
|
||||
std::string getSourceLanguage()const;
|
||||
void setSourceLanguage(const std::string& sourceLanguage);
|
||||
std::string getUrl()const;
|
||||
void setUrl(const std::string& url);
|
||||
std::string getExtra()const;
|
||||
void setExtra(const std::string& extra);
|
||||
std::string getTargetLanguage()const;
|
||||
void setTargetLanguage(const std::string& targetLanguage);
|
||||
|
||||
private:
|
||||
std::string sourceLanguage_;
|
||||
std::string url_;
|
||||
std::string extra_;
|
||||
std::string targetLanguage_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_ALIMT_MODEL_GETIMAGETRANSLATEREQUEST_H_
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_ALIMT_MODEL_GETIMAGETRANSLATEREQUEST_H_
|
||||
#define ALIBABACLOUD_ALIMT_MODEL_GETIMAGETRANSLATEREQUEST_H_
|
||||
|
||||
#include <alibabacloud/alimt/AlimtExport.h>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <map>
|
||||
|
||||
namespace AlibabaCloud {
|
||||
namespace Alimt {
|
||||
namespace Model {
|
||||
class ALIBABACLOUD_ALIMT_EXPORT GetImageTranslateRequest : public RpcServiceRequest {
|
||||
public:
|
||||
GetImageTranslateRequest();
|
||||
~GetImageTranslateRequest();
|
||||
std::string getSourceLanguage() const;
|
||||
void setSourceLanguage(const std::string &sourceLanguage);
|
||||
std::string getUrl() const;
|
||||
void setUrl(const std::string &url);
|
||||
std::string getExtra() const;
|
||||
void setExtra(const std::string &extra);
|
||||
std::string getTargetLanguage() const;
|
||||
void setTargetLanguage(const std::string &targetLanguage);
|
||||
|
||||
private:
|
||||
std::string sourceLanguage_;
|
||||
std::string url_;
|
||||
std::string extra_;
|
||||
std::string targetLanguage_;
|
||||
};
|
||||
} // namespace Model
|
||||
} // namespace Alimt
|
||||
} // namespace AlibabaCloud
|
||||
#endif // !ALIBABACLOUD_ALIMT_MODEL_GETIMAGETRANSLATEREQUEST_H_
|
||||
|
||||
@@ -1,48 +1,42 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT 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_GETIMAGETRANSLATETASKREQUEST_H_
|
||||
#define ALIBABACLOUD_ALIMT_MODEL_GETIMAGETRANSLATETASKREQUEST_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 GetImageTranslateTaskRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
GetImageTranslateTaskRequest();
|
||||
~GetImageTranslateTaskRequest();
|
||||
|
||||
std::string getTaskId()const;
|
||||
void setTaskId(const std::string& taskId);
|
||||
|
||||
private:
|
||||
std::string taskId_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_ALIMT_MODEL_GETIMAGETRANSLATETASKREQUEST_H_
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_ALIMT_MODEL_GETIMAGETRANSLATETASKREQUEST_H_
|
||||
#define ALIBABACLOUD_ALIMT_MODEL_GETIMAGETRANSLATETASKREQUEST_H_
|
||||
|
||||
#include <alibabacloud/alimt/AlimtExport.h>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <map>
|
||||
|
||||
namespace AlibabaCloud {
|
||||
namespace Alimt {
|
||||
namespace Model {
|
||||
class ALIBABACLOUD_ALIMT_EXPORT GetImageTranslateTaskRequest : public RpcServiceRequest {
|
||||
public:
|
||||
GetImageTranslateTaskRequest();
|
||||
~GetImageTranslateTaskRequest();
|
||||
std::string getTaskId() const;
|
||||
void setTaskId(const std::string &taskId);
|
||||
|
||||
private:
|
||||
std::string taskId_;
|
||||
};
|
||||
} // namespace Model
|
||||
} // namespace Alimt
|
||||
} // namespace AlibabaCloud
|
||||
#endif // !ALIBABACLOUD_ALIMT_MODEL_GETIMAGETRANSLATETASKREQUEST_H_
|
||||
|
||||
@@ -1,60 +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_ALIMT_MODEL_GETTITLEDIAGNOSEREQUEST_H_
|
||||
#define ALIBABACLOUD_ALIMT_MODEL_GETTITLEDIAGNOSEREQUEST_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 GetTitleDiagnoseRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
GetTitleDiagnoseRequest();
|
||||
~GetTitleDiagnoseRequest();
|
||||
|
||||
std::string getLanguage()const;
|
||||
void setLanguage(const std::string& language);
|
||||
std::string getTitle()const;
|
||||
void setTitle(const std::string& title);
|
||||
std::string getPlatform()const;
|
||||
void setPlatform(const std::string& platform);
|
||||
std::string getExtra()const;
|
||||
void setExtra(const std::string& extra);
|
||||
std::string getCategoryId()const;
|
||||
void setCategoryId(const std::string& categoryId);
|
||||
|
||||
private:
|
||||
std::string language_;
|
||||
std::string title_;
|
||||
std::string platform_;
|
||||
std::string extra_;
|
||||
std::string categoryId_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_ALIMT_MODEL_GETTITLEDIAGNOSEREQUEST_H_
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_ALIMT_MODEL_GETTITLEDIAGNOSEREQUEST_H_
|
||||
#define ALIBABACLOUD_ALIMT_MODEL_GETTITLEDIAGNOSEREQUEST_H_
|
||||
|
||||
#include <alibabacloud/alimt/AlimtExport.h>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <map>
|
||||
|
||||
namespace AlibabaCloud {
|
||||
namespace Alimt {
|
||||
namespace Model {
|
||||
class ALIBABACLOUD_ALIMT_EXPORT GetTitleDiagnoseRequest : public RpcServiceRequest {
|
||||
public:
|
||||
GetTitleDiagnoseRequest();
|
||||
~GetTitleDiagnoseRequest();
|
||||
std::string getLanguage() const;
|
||||
void setLanguage(const std::string &language);
|
||||
std::string getTitle() const;
|
||||
void setTitle(const std::string &title);
|
||||
std::string getPlatform() const;
|
||||
void setPlatform(const std::string &platform);
|
||||
std::string getExtra() const;
|
||||
void setExtra(const std::string &extra);
|
||||
std::string getCategoryId() const;
|
||||
void setCategoryId(const std::string &categoryId);
|
||||
|
||||
private:
|
||||
std::string language_;
|
||||
std::string title_;
|
||||
std::string platform_;
|
||||
std::string extra_;
|
||||
std::string categoryId_;
|
||||
};
|
||||
} // namespace Model
|
||||
} // namespace Alimt
|
||||
} // namespace AlibabaCloud
|
||||
#endif // !ALIBABACLOUD_ALIMT_MODEL_GETTITLEDIAGNOSEREQUEST_H_
|
||||
|
||||
@@ -41,9 +41,9 @@ namespace AlibabaCloud
|
||||
std::string overLengthLimit;
|
||||
std::string totalScore;
|
||||
std::string duplicateWords;
|
||||
std::string wordSpelledCorrectError;
|
||||
std::string allUppercaseWords;
|
||||
std::string languageQualityScore;
|
||||
std::string allUppercaseWords;
|
||||
std::string wordSpelledCorrectError;
|
||||
};
|
||||
|
||||
|
||||
|
||||
@@ -1,66 +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_ALIMT_MODEL_GETTITLEGENERATEREQUEST_H_
|
||||
#define ALIBABACLOUD_ALIMT_MODEL_GETTITLEGENERATEREQUEST_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 GetTitleGenerateRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
GetTitleGenerateRequest();
|
||||
~GetTitleGenerateRequest();
|
||||
|
||||
std::string getLanguage()const;
|
||||
void setLanguage(const std::string& language);
|
||||
std::string getTitle()const;
|
||||
void setTitle(const std::string& title);
|
||||
std::string getPlatform()const;
|
||||
void setPlatform(const std::string& platform);
|
||||
std::string getExtra()const;
|
||||
void setExtra(const std::string& extra);
|
||||
std::string getAttributes()const;
|
||||
void setAttributes(const std::string& attributes);
|
||||
std::string getHotWords()const;
|
||||
void setHotWords(const std::string& hotWords);
|
||||
std::string getCategoryId()const;
|
||||
void setCategoryId(const std::string& categoryId);
|
||||
|
||||
private:
|
||||
std::string language_;
|
||||
std::string title_;
|
||||
std::string platform_;
|
||||
std::string extra_;
|
||||
std::string attributes_;
|
||||
std::string hotWords_;
|
||||
std::string categoryId_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_ALIMT_MODEL_GETTITLEGENERATEREQUEST_H_
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_ALIMT_MODEL_GETTITLEGENERATEREQUEST_H_
|
||||
#define ALIBABACLOUD_ALIMT_MODEL_GETTITLEGENERATEREQUEST_H_
|
||||
|
||||
#include <alibabacloud/alimt/AlimtExport.h>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <map>
|
||||
|
||||
namespace AlibabaCloud {
|
||||
namespace Alimt {
|
||||
namespace Model {
|
||||
class ALIBABACLOUD_ALIMT_EXPORT GetTitleGenerateRequest : public RpcServiceRequest {
|
||||
public:
|
||||
GetTitleGenerateRequest();
|
||||
~GetTitleGenerateRequest();
|
||||
std::string getLanguage() const;
|
||||
void setLanguage(const std::string &language);
|
||||
std::string getTitle() const;
|
||||
void setTitle(const std::string &title);
|
||||
std::string getPlatform() const;
|
||||
void setPlatform(const std::string &platform);
|
||||
std::string getExtra() const;
|
||||
void setExtra(const std::string &extra);
|
||||
std::string getAttributes() const;
|
||||
void setAttributes(const std::string &attributes);
|
||||
std::string getHotWords() const;
|
||||
void setHotWords(const std::string &hotWords);
|
||||
std::string getCategoryId() const;
|
||||
void setCategoryId(const std::string &categoryId);
|
||||
|
||||
private:
|
||||
std::string language_;
|
||||
std::string title_;
|
||||
std::string platform_;
|
||||
std::string extra_;
|
||||
std::string attributes_;
|
||||
std::string hotWords_;
|
||||
std::string categoryId_;
|
||||
};
|
||||
} // namespace Model
|
||||
} // namespace Alimt
|
||||
} // namespace AlibabaCloud
|
||||
#endif // !ALIBABACLOUD_ALIMT_MODEL_GETTITLEGENERATEREQUEST_H_
|
||||
|
||||
@@ -1,60 +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_ALIMT_MODEL_GETTITLEINTELLIGENCEREQUEST_H_
|
||||
#define ALIBABACLOUD_ALIMT_MODEL_GETTITLEINTELLIGENCEREQUEST_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 GetTitleIntelligenceRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
GetTitleIntelligenceRequest();
|
||||
~GetTitleIntelligenceRequest();
|
||||
|
||||
long getCatLevelThreeId()const;
|
||||
void setCatLevelThreeId(long catLevelThreeId);
|
||||
long getCatLevelTwoId()const;
|
||||
void setCatLevelTwoId(long catLevelTwoId);
|
||||
std::string getKeywords()const;
|
||||
void setKeywords(const std::string& keywords);
|
||||
std::string getPlatform()const;
|
||||
void setPlatform(const std::string& platform);
|
||||
std::string getExtra()const;
|
||||
void setExtra(const std::string& extra);
|
||||
|
||||
private:
|
||||
long catLevelThreeId_;
|
||||
long catLevelTwoId_;
|
||||
std::string keywords_;
|
||||
std::string platform_;
|
||||
std::string extra_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_ALIMT_MODEL_GETTITLEINTELLIGENCEREQUEST_H_
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_ALIMT_MODEL_GETTITLEINTELLIGENCEREQUEST_H_
|
||||
#define ALIBABACLOUD_ALIMT_MODEL_GETTITLEINTELLIGENCEREQUEST_H_
|
||||
|
||||
#include <alibabacloud/alimt/AlimtExport.h>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <map>
|
||||
|
||||
namespace AlibabaCloud {
|
||||
namespace Alimt {
|
||||
namespace Model {
|
||||
class ALIBABACLOUD_ALIMT_EXPORT GetTitleIntelligenceRequest : public RpcServiceRequest {
|
||||
public:
|
||||
GetTitleIntelligenceRequest();
|
||||
~GetTitleIntelligenceRequest();
|
||||
long getCatLevelThreeId() const;
|
||||
void setCatLevelThreeId(long catLevelThreeId);
|
||||
long getCatLevelTwoId() const;
|
||||
void setCatLevelTwoId(long catLevelTwoId);
|
||||
std::string getKeywords() const;
|
||||
void setKeywords(const std::string &keywords);
|
||||
std::string getPlatform() const;
|
||||
void setPlatform(const std::string &platform);
|
||||
std::string getExtra() const;
|
||||
void setExtra(const std::string &extra);
|
||||
|
||||
private:
|
||||
long catLevelThreeId_;
|
||||
long catLevelTwoId_;
|
||||
std::string keywords_;
|
||||
std::string platform_;
|
||||
std::string extra_;
|
||||
};
|
||||
} // namespace Model
|
||||
} // namespace Alimt
|
||||
} // namespace AlibabaCloud
|
||||
#endif // !ALIBABACLOUD_ALIMT_MODEL_GETTITLEINTELLIGENCEREQUEST_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_GETTRANSLATEREPORTREQUEST_H_
|
||||
#define ALIBABACLOUD_ALIMT_MODEL_GETTRANSLATEREPORTREQUEST_H_
|
||||
|
||||
#include <alibabacloud/alimt/AlimtExport.h>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <map>
|
||||
|
||||
namespace AlibabaCloud {
|
||||
namespace Alimt {
|
||||
namespace Model {
|
||||
class ALIBABACLOUD_ALIMT_EXPORT GetTranslateReportRequest : public RpcServiceRequest {
|
||||
public:
|
||||
GetTranslateReportRequest();
|
||||
~GetTranslateReportRequest();
|
||||
std::string getEndTime() const;
|
||||
void setEndTime(const std::string &endTime);
|
||||
std::string getBeginTime() const;
|
||||
void setBeginTime(const std::string &beginTime);
|
||||
std::string getApiName() const;
|
||||
void setApiName(const std::string &apiName);
|
||||
std::string getGroup() const;
|
||||
void setGroup(const std::string &group);
|
||||
|
||||
private:
|
||||
std::string endTime_;
|
||||
std::string beginTime_;
|
||||
std::string apiName_;
|
||||
std::string group_;
|
||||
};
|
||||
} // namespace Model
|
||||
} // namespace Alimt
|
||||
} // namespace AlibabaCloud
|
||||
#endif // !ALIBABACLOUD_ALIMT_MODEL_GETTRANSLATEREPORTREQUEST_H_
|
||||
@@ -0,0 +1,55 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_ALIMT_MODEL_GETTRANSLATEREPORTRESULT_H_
|
||||
#define ALIBABACLOUD_ALIMT_MODEL_GETTRANSLATEREPORTRESULT_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 GetTranslateReportResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
|
||||
|
||||
GetTranslateReportResult();
|
||||
explicit GetTranslateReportResult(const std::string &payload);
|
||||
~GetTranslateReportResult();
|
||||
std::string getMessage()const;
|
||||
std::string getData()const;
|
||||
int getCode()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::string message_;
|
||||
std::string data_;
|
||||
int code_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_ALIMT_MODEL_GETTRANSLATEREPORTRESULT_H_
|
||||
39
alimt/include/alibabacloud/alimt/model/GetUserRequest.h
Normal file
39
alimt/include/alibabacloud/alimt/model/GetUserRequest.h
Normal file
@@ -0,0 +1,39 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT 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_GETUSERREQUEST_H_
|
||||
#define ALIBABACLOUD_ALIMT_MODEL_GETUSERREQUEST_H_
|
||||
|
||||
#include <alibabacloud/alimt/AlimtExport.h>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <map>
|
||||
|
||||
namespace AlibabaCloud {
|
||||
namespace Alimt {
|
||||
namespace Model {
|
||||
class ALIBABACLOUD_ALIMT_EXPORT GetUserRequest : public RpcServiceRequest {
|
||||
public:
|
||||
GetUserRequest();
|
||||
~GetUserRequest();
|
||||
|
||||
private:
|
||||
};
|
||||
} // namespace Model
|
||||
} // namespace Alimt
|
||||
} // namespace AlibabaCloud
|
||||
#endif // !ALIBABACLOUD_ALIMT_MODEL_GETUSERREQUEST_H_
|
||||
55
alimt/include/alibabacloud/alimt/model/GetUserResult.h
Normal file
55
alimt/include/alibabacloud/alimt/model/GetUserResult.h
Normal file
@@ -0,0 +1,55 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_ALIMT_MODEL_GETUSERRESULT_H_
|
||||
#define ALIBABACLOUD_ALIMT_MODEL_GETUSERRESULT_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 GetUserResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
|
||||
|
||||
GetUserResult();
|
||||
explicit GetUserResult(const std::string &payload);
|
||||
~GetUserResult();
|
||||
std::string getMessage()const;
|
||||
std::string getData()const;
|
||||
int getCode()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::string message_;
|
||||
std::string data_;
|
||||
int code_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_ALIMT_MODEL_GETUSERRESULT_H_
|
||||
@@ -1,51 +1,45 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT 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_
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_ALIMT_MODEL_OPENALIMTSERVICEREQUEST_H_
|
||||
#define ALIBABACLOUD_ALIMT_MODEL_OPENALIMTSERVICEREQUEST_H_
|
||||
|
||||
#include <alibabacloud/alimt/AlimtExport.h>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <map>
|
||||
|
||||
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_;
|
||||
};
|
||||
} // namespace Model
|
||||
} // namespace Alimt
|
||||
} // namespace AlibabaCloud
|
||||
#endif // !ALIBABACLOUD_ALIMT_MODEL_OPENALIMTSERVICEREQUEST_H_
|
||||
|
||||
@@ -1,60 +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_ALIMT_MODEL_TRANSLATECERTIFICATEREQUEST_H_
|
||||
#define ALIBABACLOUD_ALIMT_MODEL_TRANSLATECERTIFICATEREQUEST_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 TranslateCertificateRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
TranslateCertificateRequest();
|
||||
~TranslateCertificateRequest();
|
||||
|
||||
std::string getSourceLanguage()const;
|
||||
void setSourceLanguage(const std::string& sourceLanguage);
|
||||
std::string getCertificateType()const;
|
||||
void setCertificateType(const std::string& certificateType);
|
||||
std::string getResultType()const;
|
||||
void setResultType(const std::string& resultType);
|
||||
std::string getImageUrl()const;
|
||||
void setImageUrl(const std::string& imageUrl);
|
||||
std::string getTargetLanguage()const;
|
||||
void setTargetLanguage(const std::string& targetLanguage);
|
||||
|
||||
private:
|
||||
std::string sourceLanguage_;
|
||||
std::string certificateType_;
|
||||
std::string resultType_;
|
||||
std::string imageUrl_;
|
||||
std::string targetLanguage_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_ALIMT_MODEL_TRANSLATECERTIFICATEREQUEST_H_
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_ALIMT_MODEL_TRANSLATECERTIFICATEREQUEST_H_
|
||||
#define ALIBABACLOUD_ALIMT_MODEL_TRANSLATECERTIFICATEREQUEST_H_
|
||||
|
||||
#include <alibabacloud/alimt/AlimtExport.h>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <map>
|
||||
|
||||
namespace AlibabaCloud {
|
||||
namespace Alimt {
|
||||
namespace Model {
|
||||
class ALIBABACLOUD_ALIMT_EXPORT TranslateCertificateRequest : public RpcServiceRequest {
|
||||
public:
|
||||
TranslateCertificateRequest();
|
||||
~TranslateCertificateRequest();
|
||||
std::string getExt() const;
|
||||
void setExt(const std::string &ext);
|
||||
std::string getSourceLanguage() const;
|
||||
void setSourceLanguage(const std::string &sourceLanguage);
|
||||
std::string getCertificateType() const;
|
||||
void setCertificateType(const std::string &certificateType);
|
||||
std::string getResultType() const;
|
||||
void setResultType(const std::string &resultType);
|
||||
std::string getImageUrl() const;
|
||||
void setImageUrl(const std::string &imageUrl);
|
||||
std::string getTargetLanguage() const;
|
||||
void setTargetLanguage(const std::string &targetLanguage);
|
||||
|
||||
private:
|
||||
std::string ext_;
|
||||
std::string sourceLanguage_;
|
||||
std::string certificateType_;
|
||||
std::string resultType_;
|
||||
std::string imageUrl_;
|
||||
std::string targetLanguage_;
|
||||
};
|
||||
} // namespace Model
|
||||
} // namespace Alimt
|
||||
} // namespace AlibabaCloud
|
||||
#endif // !ALIBABACLOUD_ALIMT_MODEL_TRANSLATECERTIFICATEREQUEST_H_
|
||||
|
||||
@@ -1,60 +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_ALIMT_MODEL_TRANSLATEECOMMERCEREQUEST_H_
|
||||
#define ALIBABACLOUD_ALIMT_MODEL_TRANSLATEECOMMERCEREQUEST_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 TranslateECommerceRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
TranslateECommerceRequest();
|
||||
~TranslateECommerceRequest();
|
||||
|
||||
std::string getSourceLanguage()const;
|
||||
void setSourceLanguage(const std::string& sourceLanguage);
|
||||
std::string getSourceText()const;
|
||||
void setSourceText(const std::string& sourceText);
|
||||
std::string getFormatType()const;
|
||||
void setFormatType(const std::string& formatType);
|
||||
std::string getScene()const;
|
||||
void setScene(const std::string& scene);
|
||||
std::string getTargetLanguage()const;
|
||||
void setTargetLanguage(const std::string& targetLanguage);
|
||||
|
||||
private:
|
||||
std::string sourceLanguage_;
|
||||
std::string sourceText_;
|
||||
std::string formatType_;
|
||||
std::string scene_;
|
||||
std::string targetLanguage_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_ALIMT_MODEL_TRANSLATEECOMMERCEREQUEST_H_
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_ALIMT_MODEL_TRANSLATEECOMMERCEREQUEST_H_
|
||||
#define ALIBABACLOUD_ALIMT_MODEL_TRANSLATEECOMMERCEREQUEST_H_
|
||||
|
||||
#include <alibabacloud/alimt/AlimtExport.h>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <map>
|
||||
|
||||
namespace AlibabaCloud {
|
||||
namespace Alimt {
|
||||
namespace Model {
|
||||
class ALIBABACLOUD_ALIMT_EXPORT TranslateECommerceRequest : public RpcServiceRequest {
|
||||
public:
|
||||
TranslateECommerceRequest();
|
||||
~TranslateECommerceRequest();
|
||||
std::string getSourceLanguage() const;
|
||||
void setSourceLanguage(const std::string &sourceLanguage);
|
||||
std::string getSourceText() const;
|
||||
void setSourceText(const std::string &sourceText);
|
||||
std::string getFormatType() const;
|
||||
void setFormatType(const std::string &formatType);
|
||||
std::string getScene() const;
|
||||
void setScene(const std::string &scene);
|
||||
std::string getTargetLanguage() const;
|
||||
void setTargetLanguage(const std::string &targetLanguage);
|
||||
|
||||
private:
|
||||
std::string sourceLanguage_;
|
||||
std::string sourceText_;
|
||||
std::string formatType_;
|
||||
std::string scene_;
|
||||
std::string targetLanguage_;
|
||||
};
|
||||
} // namespace Model
|
||||
} // namespace Alimt
|
||||
} // namespace AlibabaCloud
|
||||
#endif // !ALIBABACLOUD_ALIMT_MODEL_TRANSLATEECOMMERCEREQUEST_H_
|
||||
|
||||
@@ -1,60 +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_ALIMT_MODEL_TRANSLATEGENERALREQUEST_H_
|
||||
#define ALIBABACLOUD_ALIMT_MODEL_TRANSLATEGENERALREQUEST_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 TranslateGeneralRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
TranslateGeneralRequest();
|
||||
~TranslateGeneralRequest();
|
||||
|
||||
std::string getSourceLanguage()const;
|
||||
void setSourceLanguage(const std::string& sourceLanguage);
|
||||
std::string getSourceText()const;
|
||||
void setSourceText(const std::string& sourceText);
|
||||
std::string getFormatType()const;
|
||||
void setFormatType(const std::string& formatType);
|
||||
std::string getScene()const;
|
||||
void setScene(const std::string& scene);
|
||||
std::string getTargetLanguage()const;
|
||||
void setTargetLanguage(const std::string& targetLanguage);
|
||||
|
||||
private:
|
||||
std::string sourceLanguage_;
|
||||
std::string sourceText_;
|
||||
std::string formatType_;
|
||||
std::string scene_;
|
||||
std::string targetLanguage_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_ALIMT_MODEL_TRANSLATEGENERALREQUEST_H_
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_ALIMT_MODEL_TRANSLATEGENERALREQUEST_H_
|
||||
#define ALIBABACLOUD_ALIMT_MODEL_TRANSLATEGENERALREQUEST_H_
|
||||
|
||||
#include <alibabacloud/alimt/AlimtExport.h>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <map>
|
||||
|
||||
namespace AlibabaCloud {
|
||||
namespace Alimt {
|
||||
namespace Model {
|
||||
class ALIBABACLOUD_ALIMT_EXPORT TranslateGeneralRequest : public RpcServiceRequest {
|
||||
public:
|
||||
TranslateGeneralRequest();
|
||||
~TranslateGeneralRequest();
|
||||
std::string getSourceLanguage() const;
|
||||
void setSourceLanguage(const std::string &sourceLanguage);
|
||||
std::string getSourceText() const;
|
||||
void setSourceText(const std::string &sourceText);
|
||||
std::string getFormatType() const;
|
||||
void setFormatType(const std::string &formatType);
|
||||
std::string getScene() const;
|
||||
void setScene(const std::string &scene);
|
||||
std::string getTargetLanguage() const;
|
||||
void setTargetLanguage(const std::string &targetLanguage);
|
||||
|
||||
private:
|
||||
std::string sourceLanguage_;
|
||||
std::string sourceText_;
|
||||
std::string formatType_;
|
||||
std::string scene_;
|
||||
std::string targetLanguage_;
|
||||
};
|
||||
} // namespace Model
|
||||
} // namespace Alimt
|
||||
} // namespace AlibabaCloud
|
||||
#endif // !ALIBABACLOUD_ALIMT_MODEL_TRANSLATEGENERALREQUEST_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_ALIMT_MODEL_TRANSLATEIMAGEREQUEST_H_
|
||||
#define ALIBABACLOUD_ALIMT_MODEL_TRANSLATEIMAGEREQUEST_H_
|
||||
|
||||
#include <alibabacloud/alimt/AlimtExport.h>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <map>
|
||||
|
||||
namespace AlibabaCloud {
|
||||
namespace Alimt {
|
||||
namespace Model {
|
||||
class ALIBABACLOUD_ALIMT_EXPORT TranslateImageRequest : public RpcServiceRequest {
|
||||
public:
|
||||
TranslateImageRequest();
|
||||
~TranslateImageRequest();
|
||||
std::string getExt() const;
|
||||
void setExt(const std::string &ext);
|
||||
std::string getSourceLanguage() const;
|
||||
void setSourceLanguage(const std::string &sourceLanguage);
|
||||
std::string getField() const;
|
||||
void setField(const std::string &field);
|
||||
std::string getImageUrl() const;
|
||||
void setImageUrl(const std::string &imageUrl);
|
||||
std::string getTargetLanguage() const;
|
||||
void setTargetLanguage(const std::string &targetLanguage);
|
||||
std::string getImageBase64() const;
|
||||
void setImageBase64(const std::string &imageBase64);
|
||||
|
||||
private:
|
||||
std::string ext_;
|
||||
std::string sourceLanguage_;
|
||||
std::string field_;
|
||||
std::string imageUrl_;
|
||||
std::string targetLanguage_;
|
||||
std::string imageBase64_;
|
||||
};
|
||||
} // namespace Model
|
||||
} // namespace Alimt
|
||||
} // namespace AlibabaCloud
|
||||
#endif // !ALIBABACLOUD_ALIMT_MODEL_TRANSLATEIMAGEREQUEST_H_
|
||||
@@ -0,0 +1,61 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_ALIMT_MODEL_TRANSLATEIMAGERESULT_H_
|
||||
#define ALIBABACLOUD_ALIMT_MODEL_TRANSLATEIMAGERESULT_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 TranslateImageResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct Data
|
||||
{
|
||||
std::string inPaintingUrl;
|
||||
std::string templateJson;
|
||||
std::string finalImageUrl;
|
||||
};
|
||||
|
||||
|
||||
TranslateImageResult();
|
||||
explicit TranslateImageResult(const std::string &payload);
|
||||
~TranslateImageResult();
|
||||
std::string getMessage()const;
|
||||
Data getData()const;
|
||||
int getCode()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::string message_;
|
||||
Data data_;
|
||||
int code_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_ALIMT_MODEL_TRANSLATEIMAGERESULT_H_
|
||||
@@ -1,60 +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_ALIMT_MODEL_TRANSLATEREQUEST_H_
|
||||
#define ALIBABACLOUD_ALIMT_MODEL_TRANSLATEREQUEST_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 TranslateRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
TranslateRequest();
|
||||
~TranslateRequest();
|
||||
|
||||
std::string getSourceLanguage()const;
|
||||
void setSourceLanguage(const std::string& sourceLanguage);
|
||||
std::string getSourceText()const;
|
||||
void setSourceText(const std::string& sourceText);
|
||||
std::string getFormatType()const;
|
||||
void setFormatType(const std::string& formatType);
|
||||
std::string getScene()const;
|
||||
void setScene(const std::string& scene);
|
||||
std::string getTargetLanguage()const;
|
||||
void setTargetLanguage(const std::string& targetLanguage);
|
||||
|
||||
private:
|
||||
std::string sourceLanguage_;
|
||||
std::string sourceText_;
|
||||
std::string formatType_;
|
||||
std::string scene_;
|
||||
std::string targetLanguage_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_ALIMT_MODEL_TRANSLATEREQUEST_H_
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_ALIMT_MODEL_TRANSLATEREQUEST_H_
|
||||
#define ALIBABACLOUD_ALIMT_MODEL_TRANSLATEREQUEST_H_
|
||||
|
||||
#include <alibabacloud/alimt/AlimtExport.h>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <map>
|
||||
|
||||
namespace AlibabaCloud {
|
||||
namespace Alimt {
|
||||
namespace Model {
|
||||
class ALIBABACLOUD_ALIMT_EXPORT TranslateRequest : public RpcServiceRequest {
|
||||
public:
|
||||
TranslateRequest();
|
||||
~TranslateRequest();
|
||||
std::string getSourceLanguage() const;
|
||||
void setSourceLanguage(const std::string &sourceLanguage);
|
||||
std::string getSourceText() const;
|
||||
void setSourceText(const std::string &sourceText);
|
||||
std::string getFormatType() const;
|
||||
void setFormatType(const std::string &formatType);
|
||||
std::string getScene() const;
|
||||
void setScene(const std::string &scene);
|
||||
std::string getTargetLanguage() const;
|
||||
void setTargetLanguage(const std::string &targetLanguage);
|
||||
|
||||
private:
|
||||
std::string sourceLanguage_;
|
||||
std::string sourceText_;
|
||||
std::string formatType_;
|
||||
std::string scene_;
|
||||
std::string targetLanguage_;
|
||||
};
|
||||
} // namespace Model
|
||||
} // namespace Alimt
|
||||
} // namespace AlibabaCloud
|
||||
#endif // !ALIBABACLOUD_ALIMT_MODEL_TRANSLATEREQUEST_H_
|
||||
|
||||
@@ -31,21 +31,21 @@ AlimtClient::AlimtClient(const Credentials &credentials, const ClientConfigurati
|
||||
RpcServiceClient(SERVICE_NAME, std::make_shared<SimpleCredentialsProvider>(credentials), configuration)
|
||||
{
|
||||
auto locationClient = std::make_shared<LocationClient>(credentials, configuration);
|
||||
endpointProvider_ = std::make_shared<EndpointProvider>(locationClient, configuration.regionId(), SERVICE_NAME, "alimt");
|
||||
endpointProvider_ = std::make_shared<EndpointProvider>(locationClient, configuration.regionId(), SERVICE_NAME, "");
|
||||
}
|
||||
|
||||
AlimtClient::AlimtClient(const std::shared_ptr<CredentialsProvider>& credentialsProvider, const ClientConfiguration & configuration) :
|
||||
RpcServiceClient(SERVICE_NAME, credentialsProvider, configuration)
|
||||
{
|
||||
auto locationClient = std::make_shared<LocationClient>(credentialsProvider, configuration);
|
||||
endpointProvider_ = std::make_shared<EndpointProvider>(locationClient, configuration.regionId(), SERVICE_NAME, "alimt");
|
||||
endpointProvider_ = std::make_shared<EndpointProvider>(locationClient, configuration.regionId(), SERVICE_NAME, "");
|
||||
}
|
||||
|
||||
AlimtClient::AlimtClient(const std::string & accessKeyId, const std::string & accessKeySecret, const ClientConfiguration & configuration) :
|
||||
RpcServiceClient(SERVICE_NAME, std::make_shared<SimpleCredentialsProvider>(accessKeyId, accessKeySecret), configuration)
|
||||
{
|
||||
auto locationClient = std::make_shared<LocationClient>(accessKeyId, accessKeySecret, configuration);
|
||||
endpointProvider_ = std::make_shared<EndpointProvider>(locationClient, configuration.regionId(), SERVICE_NAME, "alimt");
|
||||
endpointProvider_ = std::make_shared<EndpointProvider>(locationClient, configuration.regionId(), SERVICE_NAME, "");
|
||||
}
|
||||
|
||||
AlimtClient::~AlimtClient()
|
||||
@@ -447,6 +447,78 @@ AlimtClient::GetTitleIntelligenceOutcomeCallable AlimtClient::getTitleIntelligen
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
AlimtClient::GetTranslateReportOutcome AlimtClient::getTranslateReport(const GetTranslateReportRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return GetTranslateReportOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return GetTranslateReportOutcome(GetTranslateReportResult(outcome.result()));
|
||||
else
|
||||
return GetTranslateReportOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void AlimtClient::getTranslateReportAsync(const GetTranslateReportRequest& request, const GetTranslateReportAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, getTranslateReport(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
AlimtClient::GetTranslateReportOutcomeCallable AlimtClient::getTranslateReportCallable(const GetTranslateReportRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<GetTranslateReportOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->getTranslateReport(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
AlimtClient::GetUserOutcome AlimtClient::getUser(const GetUserRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return GetUserOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return GetUserOutcome(GetUserResult(outcome.result()));
|
||||
else
|
||||
return GetUserOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void AlimtClient::getUserAsync(const GetUserRequest& request, const GetUserAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, getUser(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
AlimtClient::GetUserOutcomeCallable AlimtClient::getUserCallable(const GetUserRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<GetUserOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->getUser(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
AlimtClient::OpenAlimtServiceOutcome AlimtClient::openAlimtService(const OpenAlimtServiceRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -627,3 +699,39 @@ AlimtClient::TranslateGeneralOutcomeCallable AlimtClient::translateGeneralCallab
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
AlimtClient::TranslateImageOutcome AlimtClient::translateImage(const TranslateImageRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return TranslateImageOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return TranslateImageOutcome(TranslateImageResult(outcome.result()));
|
||||
else
|
||||
return TranslateImageOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void AlimtClient::translateImageAsync(const TranslateImageRequest& request, const TranslateImageAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, translateImage(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
AlimtClient::TranslateImageOutcomeCallable AlimtClient::translateImageCallable(const TranslateImageRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<TranslateImageOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->translateImage(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
|
||||
@@ -1,95 +1,81 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/alimt/model/CreateDocTranslateTaskRequest.h>
|
||||
|
||||
using AlibabaCloud::Alimt::Model::CreateDocTranslateTaskRequest;
|
||||
|
||||
CreateDocTranslateTaskRequest::CreateDocTranslateTaskRequest() :
|
||||
RpcServiceRequest("alimt", "2018-10-12", "CreateDocTranslateTask")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
CreateDocTranslateTaskRequest::~CreateDocTranslateTaskRequest()
|
||||
{}
|
||||
|
||||
std::string CreateDocTranslateTaskRequest::getSourceLanguage()const
|
||||
{
|
||||
return sourceLanguage_;
|
||||
*/
|
||||
|
||||
#include <alibabacloud/alimt/model/CreateDocTranslateTaskRequest.h>
|
||||
|
||||
using AlibabaCloud::Alimt::Model::CreateDocTranslateTaskRequest;
|
||||
|
||||
CreateDocTranslateTaskRequest::CreateDocTranslateTaskRequest()
|
||||
: RpcServiceRequest("alimt", "2018-10-12", "CreateDocTranslateTask") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
void CreateDocTranslateTaskRequest::setSourceLanguage(const std::string& sourceLanguage)
|
||||
{
|
||||
sourceLanguage_ = sourceLanguage;
|
||||
setBodyParameter("SourceLanguage", sourceLanguage);
|
||||
CreateDocTranslateTaskRequest::~CreateDocTranslateTaskRequest() {}
|
||||
|
||||
std::string CreateDocTranslateTaskRequest::getSourceLanguage() const {
|
||||
return sourceLanguage_;
|
||||
}
|
||||
|
||||
std::string CreateDocTranslateTaskRequest::getClientToken()const
|
||||
{
|
||||
return clientToken_;
|
||||
void CreateDocTranslateTaskRequest::setSourceLanguage(const std::string &sourceLanguage) {
|
||||
sourceLanguage_ = sourceLanguage;
|
||||
setBodyParameter(std::string("SourceLanguage"), sourceLanguage);
|
||||
}
|
||||
|
||||
void CreateDocTranslateTaskRequest::setClientToken(const std::string& clientToken)
|
||||
{
|
||||
clientToken_ = clientToken;
|
||||
setBodyParameter("ClientToken", clientToken);
|
||||
std::string CreateDocTranslateTaskRequest::getClientToken() const {
|
||||
return clientToken_;
|
||||
}
|
||||
|
||||
std::string CreateDocTranslateTaskRequest::getScene()const
|
||||
{
|
||||
return scene_;
|
||||
void CreateDocTranslateTaskRequest::setClientToken(const std::string &clientToken) {
|
||||
clientToken_ = clientToken;
|
||||
setBodyParameter(std::string("ClientToken"), clientToken);
|
||||
}
|
||||
|
||||
void CreateDocTranslateTaskRequest::setScene(const std::string& scene)
|
||||
{
|
||||
scene_ = scene;
|
||||
setBodyParameter("Scene", scene);
|
||||
std::string CreateDocTranslateTaskRequest::getScene() const {
|
||||
return scene_;
|
||||
}
|
||||
|
||||
std::string CreateDocTranslateTaskRequest::getFileUrl()const
|
||||
{
|
||||
return fileUrl_;
|
||||
void CreateDocTranslateTaskRequest::setScene(const std::string &scene) {
|
||||
scene_ = scene;
|
||||
setBodyParameter(std::string("Scene"), scene);
|
||||
}
|
||||
|
||||
void CreateDocTranslateTaskRequest::setFileUrl(const std::string& fileUrl)
|
||||
{
|
||||
fileUrl_ = fileUrl;
|
||||
setBodyParameter("FileUrl", fileUrl);
|
||||
std::string CreateDocTranslateTaskRequest::getFileUrl() const {
|
||||
return fileUrl_;
|
||||
}
|
||||
|
||||
std::string CreateDocTranslateTaskRequest::getTargetLanguage()const
|
||||
{
|
||||
return targetLanguage_;
|
||||
void CreateDocTranslateTaskRequest::setFileUrl(const std::string &fileUrl) {
|
||||
fileUrl_ = fileUrl;
|
||||
setBodyParameter(std::string("FileUrl"), fileUrl);
|
||||
}
|
||||
|
||||
void CreateDocTranslateTaskRequest::setTargetLanguage(const std::string& targetLanguage)
|
||||
{
|
||||
targetLanguage_ = targetLanguage;
|
||||
setBodyParameter("TargetLanguage", targetLanguage);
|
||||
std::string CreateDocTranslateTaskRequest::getTargetLanguage() const {
|
||||
return targetLanguage_;
|
||||
}
|
||||
|
||||
std::string CreateDocTranslateTaskRequest::getCallbackUrl()const
|
||||
{
|
||||
return callbackUrl_;
|
||||
void CreateDocTranslateTaskRequest::setTargetLanguage(const std::string &targetLanguage) {
|
||||
targetLanguage_ = targetLanguage;
|
||||
setBodyParameter(std::string("TargetLanguage"), targetLanguage);
|
||||
}
|
||||
|
||||
void CreateDocTranslateTaskRequest::setCallbackUrl(const std::string& callbackUrl)
|
||||
{
|
||||
callbackUrl_ = callbackUrl;
|
||||
setBodyParameter("CallbackUrl", callbackUrl);
|
||||
std::string CreateDocTranslateTaskRequest::getCallbackUrl() const {
|
||||
return callbackUrl_;
|
||||
}
|
||||
|
||||
void CreateDocTranslateTaskRequest::setCallbackUrl(const std::string &callbackUrl) {
|
||||
callbackUrl_ = callbackUrl;
|
||||
setBodyParameter(std::string("CallbackUrl"), callbackUrl);
|
||||
}
|
||||
|
||||
|
||||
@@ -39,10 +39,10 @@ void CreateDocTranslateTaskResult::parse(const std::string &payload)
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["TaskId"].isNull())
|
||||
taskId_ = value["TaskId"].asString();
|
||||
if(!value["Status"].isNull())
|
||||
status_ = value["Status"].asString();
|
||||
if(!value["TaskId"].isNull())
|
||||
taskId_ = value["TaskId"].asString();
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -1,84 +1,72 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/alimt/model/CreateImageTranslateTaskRequest.h>
|
||||
|
||||
using AlibabaCloud::Alimt::Model::CreateImageTranslateTaskRequest;
|
||||
|
||||
CreateImageTranslateTaskRequest::CreateImageTranslateTaskRequest() :
|
||||
RpcServiceRequest("alimt", "2018-10-12", "CreateImageTranslateTask")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
CreateImageTranslateTaskRequest::~CreateImageTranslateTaskRequest()
|
||||
{}
|
||||
|
||||
std::string CreateImageTranslateTaskRequest::getSourceLanguage()const
|
||||
{
|
||||
return sourceLanguage_;
|
||||
*/
|
||||
|
||||
#include <alibabacloud/alimt/model/CreateImageTranslateTaskRequest.h>
|
||||
|
||||
using AlibabaCloud::Alimt::Model::CreateImageTranslateTaskRequest;
|
||||
|
||||
CreateImageTranslateTaskRequest::CreateImageTranslateTaskRequest()
|
||||
: RpcServiceRequest("alimt", "2018-10-12", "CreateImageTranslateTask") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
void CreateImageTranslateTaskRequest::setSourceLanguage(const std::string& sourceLanguage)
|
||||
{
|
||||
sourceLanguage_ = sourceLanguage;
|
||||
setBodyParameter("SourceLanguage", sourceLanguage);
|
||||
CreateImageTranslateTaskRequest::~CreateImageTranslateTaskRequest() {}
|
||||
|
||||
std::string CreateImageTranslateTaskRequest::getSourceLanguage() const {
|
||||
return sourceLanguage_;
|
||||
}
|
||||
|
||||
std::string CreateImageTranslateTaskRequest::getClientToken()const
|
||||
{
|
||||
return clientToken_;
|
||||
void CreateImageTranslateTaskRequest::setSourceLanguage(const std::string &sourceLanguage) {
|
||||
sourceLanguage_ = sourceLanguage;
|
||||
setBodyParameter(std::string("SourceLanguage"), sourceLanguage);
|
||||
}
|
||||
|
||||
void CreateImageTranslateTaskRequest::setClientToken(const std::string& clientToken)
|
||||
{
|
||||
clientToken_ = clientToken;
|
||||
setBodyParameter("ClientToken", clientToken);
|
||||
std::string CreateImageTranslateTaskRequest::getClientToken() const {
|
||||
return clientToken_;
|
||||
}
|
||||
|
||||
std::string CreateImageTranslateTaskRequest::getUrlList()const
|
||||
{
|
||||
return urlList_;
|
||||
void CreateImageTranslateTaskRequest::setClientToken(const std::string &clientToken) {
|
||||
clientToken_ = clientToken;
|
||||
setBodyParameter(std::string("ClientToken"), clientToken);
|
||||
}
|
||||
|
||||
void CreateImageTranslateTaskRequest::setUrlList(const std::string& urlList)
|
||||
{
|
||||
urlList_ = urlList;
|
||||
setBodyParameter("UrlList", urlList);
|
||||
std::string CreateImageTranslateTaskRequest::getUrlList() const {
|
||||
return urlList_;
|
||||
}
|
||||
|
||||
std::string CreateImageTranslateTaskRequest::getExtra()const
|
||||
{
|
||||
return extra_;
|
||||
void CreateImageTranslateTaskRequest::setUrlList(const std::string &urlList) {
|
||||
urlList_ = urlList;
|
||||
setBodyParameter(std::string("UrlList"), urlList);
|
||||
}
|
||||
|
||||
void CreateImageTranslateTaskRequest::setExtra(const std::string& extra)
|
||||
{
|
||||
extra_ = extra;
|
||||
setBodyParameter("Extra", extra);
|
||||
std::string CreateImageTranslateTaskRequest::getExtra() const {
|
||||
return extra_;
|
||||
}
|
||||
|
||||
std::string CreateImageTranslateTaskRequest::getTargetLanguage()const
|
||||
{
|
||||
return targetLanguage_;
|
||||
void CreateImageTranslateTaskRequest::setExtra(const std::string &extra) {
|
||||
extra_ = extra;
|
||||
setBodyParameter(std::string("Extra"), extra);
|
||||
}
|
||||
|
||||
void CreateImageTranslateTaskRequest::setTargetLanguage(const std::string& targetLanguage)
|
||||
{
|
||||
targetLanguage_ = targetLanguage;
|
||||
setBodyParameter("TargetLanguage", targetLanguage);
|
||||
std::string CreateImageTranslateTaskRequest::getTargetLanguage() const {
|
||||
return targetLanguage_;
|
||||
}
|
||||
|
||||
void CreateImageTranslateTaskRequest::setTargetLanguage(const std::string &targetLanguage) {
|
||||
targetLanguage_ = targetLanguage;
|
||||
setBodyParameter(std::string("TargetLanguage"), targetLanguage);
|
||||
}
|
||||
|
||||
|
||||
@@ -1,95 +1,81 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/alimt/model/GetBatchTranslateRequest.h>
|
||||
|
||||
using AlibabaCloud::Alimt::Model::GetBatchTranslateRequest;
|
||||
|
||||
GetBatchTranslateRequest::GetBatchTranslateRequest() :
|
||||
RpcServiceRequest("alimt", "2018-10-12", "GetBatchTranslate")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
GetBatchTranslateRequest::~GetBatchTranslateRequest()
|
||||
{}
|
||||
|
||||
std::string GetBatchTranslateRequest::getSourceLanguage()const
|
||||
{
|
||||
return sourceLanguage_;
|
||||
*/
|
||||
|
||||
#include <alibabacloud/alimt/model/GetBatchTranslateRequest.h>
|
||||
|
||||
using AlibabaCloud::Alimt::Model::GetBatchTranslateRequest;
|
||||
|
||||
GetBatchTranslateRequest::GetBatchTranslateRequest()
|
||||
: RpcServiceRequest("alimt", "2018-10-12", "GetBatchTranslate") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
void GetBatchTranslateRequest::setSourceLanguage(const std::string& sourceLanguage)
|
||||
{
|
||||
sourceLanguage_ = sourceLanguage;
|
||||
setBodyParameter("SourceLanguage", sourceLanguage);
|
||||
GetBatchTranslateRequest::~GetBatchTranslateRequest() {}
|
||||
|
||||
std::string GetBatchTranslateRequest::getSourceLanguage() const {
|
||||
return sourceLanguage_;
|
||||
}
|
||||
|
||||
std::string GetBatchTranslateRequest::getSourceText()const
|
||||
{
|
||||
return sourceText_;
|
||||
void GetBatchTranslateRequest::setSourceLanguage(const std::string &sourceLanguage) {
|
||||
sourceLanguage_ = sourceLanguage;
|
||||
setBodyParameter(std::string("SourceLanguage"), sourceLanguage);
|
||||
}
|
||||
|
||||
void GetBatchTranslateRequest::setSourceText(const std::string& sourceText)
|
||||
{
|
||||
sourceText_ = sourceText;
|
||||
setBodyParameter("SourceText", sourceText);
|
||||
std::string GetBatchTranslateRequest::getSourceText() const {
|
||||
return sourceText_;
|
||||
}
|
||||
|
||||
std::string GetBatchTranslateRequest::getFormatType()const
|
||||
{
|
||||
return formatType_;
|
||||
void GetBatchTranslateRequest::setSourceText(const std::string &sourceText) {
|
||||
sourceText_ = sourceText;
|
||||
setBodyParameter(std::string("SourceText"), sourceText);
|
||||
}
|
||||
|
||||
void GetBatchTranslateRequest::setFormatType(const std::string& formatType)
|
||||
{
|
||||
formatType_ = formatType;
|
||||
setBodyParameter("FormatType", formatType);
|
||||
std::string GetBatchTranslateRequest::getFormatType() const {
|
||||
return formatType_;
|
||||
}
|
||||
|
||||
std::string GetBatchTranslateRequest::getApiType()const
|
||||
{
|
||||
return apiType_;
|
||||
void GetBatchTranslateRequest::setFormatType(const std::string &formatType) {
|
||||
formatType_ = formatType;
|
||||
setBodyParameter(std::string("FormatType"), formatType);
|
||||
}
|
||||
|
||||
void GetBatchTranslateRequest::setApiType(const std::string& apiType)
|
||||
{
|
||||
apiType_ = apiType;
|
||||
setBodyParameter("ApiType", apiType);
|
||||
std::string GetBatchTranslateRequest::getApiType() const {
|
||||
return apiType_;
|
||||
}
|
||||
|
||||
std::string GetBatchTranslateRequest::getScene()const
|
||||
{
|
||||
return scene_;
|
||||
void GetBatchTranslateRequest::setApiType(const std::string &apiType) {
|
||||
apiType_ = apiType;
|
||||
setBodyParameter(std::string("ApiType"), apiType);
|
||||
}
|
||||
|
||||
void GetBatchTranslateRequest::setScene(const std::string& scene)
|
||||
{
|
||||
scene_ = scene;
|
||||
setBodyParameter("Scene", scene);
|
||||
std::string GetBatchTranslateRequest::getScene() const {
|
||||
return scene_;
|
||||
}
|
||||
|
||||
std::string GetBatchTranslateRequest::getTargetLanguage()const
|
||||
{
|
||||
return targetLanguage_;
|
||||
void GetBatchTranslateRequest::setScene(const std::string &scene) {
|
||||
scene_ = scene;
|
||||
setBodyParameter(std::string("Scene"), scene);
|
||||
}
|
||||
|
||||
void GetBatchTranslateRequest::setTargetLanguage(const std::string& targetLanguage)
|
||||
{
|
||||
targetLanguage_ = targetLanguage;
|
||||
setBodyParameter("TargetLanguage", targetLanguage);
|
||||
std::string GetBatchTranslateRequest::getTargetLanguage() const {
|
||||
return targetLanguage_;
|
||||
}
|
||||
|
||||
void GetBatchTranslateRequest::setTargetLanguage(const std::string &targetLanguage) {
|
||||
targetLanguage_ = targetLanguage;
|
||||
setBodyParameter(std::string("TargetLanguage"), targetLanguage);
|
||||
}
|
||||
|
||||
|
||||
@@ -1,40 +1,36 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT 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/GetDetectLanguageRequest.h>
|
||||
|
||||
using AlibabaCloud::Alimt::Model::GetDetectLanguageRequest;
|
||||
|
||||
GetDetectLanguageRequest::GetDetectLanguageRequest() :
|
||||
RpcServiceRequest("alimt", "2018-10-12", "GetDetectLanguage")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
GetDetectLanguageRequest::~GetDetectLanguageRequest()
|
||||
{}
|
||||
|
||||
std::string GetDetectLanguageRequest::getSourceText()const
|
||||
{
|
||||
return sourceText_;
|
||||
*/
|
||||
|
||||
#include <alibabacloud/alimt/model/GetDetectLanguageRequest.h>
|
||||
|
||||
using AlibabaCloud::Alimt::Model::GetDetectLanguageRequest;
|
||||
|
||||
GetDetectLanguageRequest::GetDetectLanguageRequest()
|
||||
: RpcServiceRequest("alimt", "2018-10-12", "GetDetectLanguage") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
void GetDetectLanguageRequest::setSourceText(const std::string& sourceText)
|
||||
{
|
||||
sourceText_ = sourceText;
|
||||
setBodyParameter("SourceText", sourceText);
|
||||
GetDetectLanguageRequest::~GetDetectLanguageRequest() {}
|
||||
|
||||
std::string GetDetectLanguageRequest::getSourceText() const {
|
||||
return sourceText_;
|
||||
}
|
||||
|
||||
void GetDetectLanguageRequest::setSourceText(const std::string &sourceText) {
|
||||
sourceText_ = sourceText;
|
||||
setBodyParameter(std::string("SourceText"), sourceText);
|
||||
}
|
||||
|
||||
|
||||
@@ -1,40 +1,36 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT 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/GetDocTranslateTaskRequest.h>
|
||||
|
||||
using AlibabaCloud::Alimt::Model::GetDocTranslateTaskRequest;
|
||||
|
||||
GetDocTranslateTaskRequest::GetDocTranslateTaskRequest() :
|
||||
RpcServiceRequest("alimt", "2018-10-12", "GetDocTranslateTask")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Get);
|
||||
}
|
||||
|
||||
GetDocTranslateTaskRequest::~GetDocTranslateTaskRequest()
|
||||
{}
|
||||
|
||||
std::string GetDocTranslateTaskRequest::getTaskId()const
|
||||
{
|
||||
return taskId_;
|
||||
*/
|
||||
|
||||
#include <alibabacloud/alimt/model/GetDocTranslateTaskRequest.h>
|
||||
|
||||
using AlibabaCloud::Alimt::Model::GetDocTranslateTaskRequest;
|
||||
|
||||
GetDocTranslateTaskRequest::GetDocTranslateTaskRequest()
|
||||
: RpcServiceRequest("alimt", "2018-10-12", "GetDocTranslateTask") {
|
||||
setMethod(HttpRequest::Method::Get);
|
||||
}
|
||||
|
||||
void GetDocTranslateTaskRequest::setTaskId(const std::string& taskId)
|
||||
{
|
||||
taskId_ = taskId;
|
||||
setParameter("TaskId", taskId);
|
||||
GetDocTranslateTaskRequest::~GetDocTranslateTaskRequest() {}
|
||||
|
||||
std::string GetDocTranslateTaskRequest::getTaskId() const {
|
||||
return taskId_;
|
||||
}
|
||||
|
||||
void GetDocTranslateTaskRequest::setTaskId(const std::string &taskId) {
|
||||
taskId_ = taskId;
|
||||
setParameter(std::string("TaskId"), taskId);
|
||||
}
|
||||
|
||||
|
||||
@@ -39,18 +39,18 @@ void GetDocTranslateTaskResult::parse(const std::string &payload)
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["TaskId"].isNull())
|
||||
taskId_ = value["TaskId"].asString();
|
||||
if(!value["Status"].isNull())
|
||||
status_ = value["Status"].asString();
|
||||
if(!value["TranslateFileUrl"].isNull())
|
||||
translateFileUrl_ = value["TranslateFileUrl"].asString();
|
||||
if(!value["TranslateErrorCode"].isNull())
|
||||
translateErrorCode_ = value["TranslateErrorCode"].asString();
|
||||
if(!value["TranslateErrorMessage"].isNull())
|
||||
translateErrorMessage_ = value["TranslateErrorMessage"].asString();
|
||||
if(!value["PageCount"].isNull())
|
||||
pageCount_ = std::stoi(value["PageCount"].asString());
|
||||
if(!value["TaskId"].isNull())
|
||||
taskId_ = value["TaskId"].asString();
|
||||
if(!value["TranslateErrorMessage"].isNull())
|
||||
translateErrorMessage_ = value["TranslateErrorMessage"].asString();
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -1,51 +1,45 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT 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/GetImageDiagnoseRequest.h>
|
||||
|
||||
using AlibabaCloud::Alimt::Model::GetImageDiagnoseRequest;
|
||||
|
||||
GetImageDiagnoseRequest::GetImageDiagnoseRequest() :
|
||||
RpcServiceRequest("alimt", "2018-10-12", "GetImageDiagnose")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
GetImageDiagnoseRequest::~GetImageDiagnoseRequest()
|
||||
{}
|
||||
|
||||
std::string GetImageDiagnoseRequest::getUrl()const
|
||||
{
|
||||
return url_;
|
||||
*/
|
||||
|
||||
#include <alibabacloud/alimt/model/GetImageDiagnoseRequest.h>
|
||||
|
||||
using AlibabaCloud::Alimt::Model::GetImageDiagnoseRequest;
|
||||
|
||||
GetImageDiagnoseRequest::GetImageDiagnoseRequest()
|
||||
: RpcServiceRequest("alimt", "2018-10-12", "GetImageDiagnose") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
void GetImageDiagnoseRequest::setUrl(const std::string& url)
|
||||
{
|
||||
url_ = url;
|
||||
setBodyParameter("Url", url);
|
||||
GetImageDiagnoseRequest::~GetImageDiagnoseRequest() {}
|
||||
|
||||
std::string GetImageDiagnoseRequest::getUrl() const {
|
||||
return url_;
|
||||
}
|
||||
|
||||
std::string GetImageDiagnoseRequest::getExtra()const
|
||||
{
|
||||
return extra_;
|
||||
void GetImageDiagnoseRequest::setUrl(const std::string &url) {
|
||||
url_ = url;
|
||||
setBodyParameter(std::string("Url"), url);
|
||||
}
|
||||
|
||||
void GetImageDiagnoseRequest::setExtra(const std::string& extra)
|
||||
{
|
||||
extra_ = extra;
|
||||
setBodyParameter("Extra", extra);
|
||||
std::string GetImageDiagnoseRequest::getExtra() const {
|
||||
return extra_;
|
||||
}
|
||||
|
||||
void GetImageDiagnoseRequest::setExtra(const std::string &extra) {
|
||||
extra_ = extra;
|
||||
setBodyParameter(std::string("Extra"), extra);
|
||||
}
|
||||
|
||||
|
||||
@@ -1,73 +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.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/alimt/model/GetImageTranslateRequest.h>
|
||||
|
||||
using AlibabaCloud::Alimt::Model::GetImageTranslateRequest;
|
||||
|
||||
GetImageTranslateRequest::GetImageTranslateRequest() :
|
||||
RpcServiceRequest("alimt", "2018-10-12", "GetImageTranslate")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
GetImageTranslateRequest::~GetImageTranslateRequest()
|
||||
{}
|
||||
|
||||
std::string GetImageTranslateRequest::getSourceLanguage()const
|
||||
{
|
||||
return sourceLanguage_;
|
||||
*/
|
||||
|
||||
#include <alibabacloud/alimt/model/GetImageTranslateRequest.h>
|
||||
|
||||
using AlibabaCloud::Alimt::Model::GetImageTranslateRequest;
|
||||
|
||||
GetImageTranslateRequest::GetImageTranslateRequest()
|
||||
: RpcServiceRequest("alimt", "2018-10-12", "GetImageTranslate") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
void GetImageTranslateRequest::setSourceLanguage(const std::string& sourceLanguage)
|
||||
{
|
||||
sourceLanguage_ = sourceLanguage;
|
||||
setBodyParameter("SourceLanguage", sourceLanguage);
|
||||
GetImageTranslateRequest::~GetImageTranslateRequest() {}
|
||||
|
||||
std::string GetImageTranslateRequest::getSourceLanguage() const {
|
||||
return sourceLanguage_;
|
||||
}
|
||||
|
||||
std::string GetImageTranslateRequest::getUrl()const
|
||||
{
|
||||
return url_;
|
||||
void GetImageTranslateRequest::setSourceLanguage(const std::string &sourceLanguage) {
|
||||
sourceLanguage_ = sourceLanguage;
|
||||
setBodyParameter(std::string("SourceLanguage"), sourceLanguage);
|
||||
}
|
||||
|
||||
void GetImageTranslateRequest::setUrl(const std::string& url)
|
||||
{
|
||||
url_ = url;
|
||||
setBodyParameter("Url", url);
|
||||
std::string GetImageTranslateRequest::getUrl() const {
|
||||
return url_;
|
||||
}
|
||||
|
||||
std::string GetImageTranslateRequest::getExtra()const
|
||||
{
|
||||
return extra_;
|
||||
void GetImageTranslateRequest::setUrl(const std::string &url) {
|
||||
url_ = url;
|
||||
setBodyParameter(std::string("Url"), url);
|
||||
}
|
||||
|
||||
void GetImageTranslateRequest::setExtra(const std::string& extra)
|
||||
{
|
||||
extra_ = extra;
|
||||
setBodyParameter("Extra", extra);
|
||||
std::string GetImageTranslateRequest::getExtra() const {
|
||||
return extra_;
|
||||
}
|
||||
|
||||
std::string GetImageTranslateRequest::getTargetLanguage()const
|
||||
{
|
||||
return targetLanguage_;
|
||||
void GetImageTranslateRequest::setExtra(const std::string &extra) {
|
||||
extra_ = extra;
|
||||
setBodyParameter(std::string("Extra"), extra);
|
||||
}
|
||||
|
||||
void GetImageTranslateRequest::setTargetLanguage(const std::string& targetLanguage)
|
||||
{
|
||||
targetLanguage_ = targetLanguage;
|
||||
setBodyParameter("TargetLanguage", targetLanguage);
|
||||
std::string GetImageTranslateRequest::getTargetLanguage() const {
|
||||
return targetLanguage_;
|
||||
}
|
||||
|
||||
void GetImageTranslateRequest::setTargetLanguage(const std::string &targetLanguage) {
|
||||
targetLanguage_ = targetLanguage;
|
||||
setBodyParameter(std::string("TargetLanguage"), targetLanguage);
|
||||
}
|
||||
|
||||
|
||||
@@ -1,40 +1,36 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT 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/GetImageTranslateTaskRequest.h>
|
||||
|
||||
using AlibabaCloud::Alimt::Model::GetImageTranslateTaskRequest;
|
||||
|
||||
GetImageTranslateTaskRequest::GetImageTranslateTaskRequest() :
|
||||
RpcServiceRequest("alimt", "2018-10-12", "GetImageTranslateTask")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
GetImageTranslateTaskRequest::~GetImageTranslateTaskRequest()
|
||||
{}
|
||||
|
||||
std::string GetImageTranslateTaskRequest::getTaskId()const
|
||||
{
|
||||
return taskId_;
|
||||
*/
|
||||
|
||||
#include <alibabacloud/alimt/model/GetImageTranslateTaskRequest.h>
|
||||
|
||||
using AlibabaCloud::Alimt::Model::GetImageTranslateTaskRequest;
|
||||
|
||||
GetImageTranslateTaskRequest::GetImageTranslateTaskRequest()
|
||||
: RpcServiceRequest("alimt", "2018-10-12", "GetImageTranslateTask") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
void GetImageTranslateTaskRequest::setTaskId(const std::string& taskId)
|
||||
{
|
||||
taskId_ = taskId;
|
||||
setBodyParameter("TaskId", taskId);
|
||||
GetImageTranslateTaskRequest::~GetImageTranslateTaskRequest() {}
|
||||
|
||||
std::string GetImageTranslateTaskRequest::getTaskId() const {
|
||||
return taskId_;
|
||||
}
|
||||
|
||||
void GetImageTranslateTaskRequest::setTaskId(const std::string &taskId) {
|
||||
taskId_ = taskId;
|
||||
setBodyParameter(std::string("TaskId"), taskId);
|
||||
}
|
||||
|
||||
|
||||
@@ -1,84 +1,72 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/alimt/model/GetTitleDiagnoseRequest.h>
|
||||
|
||||
using AlibabaCloud::Alimt::Model::GetTitleDiagnoseRequest;
|
||||
|
||||
GetTitleDiagnoseRequest::GetTitleDiagnoseRequest() :
|
||||
RpcServiceRequest("alimt", "2018-10-12", "GetTitleDiagnose")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
GetTitleDiagnoseRequest::~GetTitleDiagnoseRequest()
|
||||
{}
|
||||
|
||||
std::string GetTitleDiagnoseRequest::getLanguage()const
|
||||
{
|
||||
return language_;
|
||||
*/
|
||||
|
||||
#include <alibabacloud/alimt/model/GetTitleDiagnoseRequest.h>
|
||||
|
||||
using AlibabaCloud::Alimt::Model::GetTitleDiagnoseRequest;
|
||||
|
||||
GetTitleDiagnoseRequest::GetTitleDiagnoseRequest()
|
||||
: RpcServiceRequest("alimt", "2018-10-12", "GetTitleDiagnose") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
void GetTitleDiagnoseRequest::setLanguage(const std::string& language)
|
||||
{
|
||||
language_ = language;
|
||||
setBodyParameter("Language", language);
|
||||
GetTitleDiagnoseRequest::~GetTitleDiagnoseRequest() {}
|
||||
|
||||
std::string GetTitleDiagnoseRequest::getLanguage() const {
|
||||
return language_;
|
||||
}
|
||||
|
||||
std::string GetTitleDiagnoseRequest::getTitle()const
|
||||
{
|
||||
return title_;
|
||||
void GetTitleDiagnoseRequest::setLanguage(const std::string &language) {
|
||||
language_ = language;
|
||||
setBodyParameter(std::string("Language"), language);
|
||||
}
|
||||
|
||||
void GetTitleDiagnoseRequest::setTitle(const std::string& title)
|
||||
{
|
||||
title_ = title;
|
||||
setBodyParameter("Title", title);
|
||||
std::string GetTitleDiagnoseRequest::getTitle() const {
|
||||
return title_;
|
||||
}
|
||||
|
||||
std::string GetTitleDiagnoseRequest::getPlatform()const
|
||||
{
|
||||
return platform_;
|
||||
void GetTitleDiagnoseRequest::setTitle(const std::string &title) {
|
||||
title_ = title;
|
||||
setBodyParameter(std::string("Title"), title);
|
||||
}
|
||||
|
||||
void GetTitleDiagnoseRequest::setPlatform(const std::string& platform)
|
||||
{
|
||||
platform_ = platform;
|
||||
setBodyParameter("Platform", platform);
|
||||
std::string GetTitleDiagnoseRequest::getPlatform() const {
|
||||
return platform_;
|
||||
}
|
||||
|
||||
std::string GetTitleDiagnoseRequest::getExtra()const
|
||||
{
|
||||
return extra_;
|
||||
void GetTitleDiagnoseRequest::setPlatform(const std::string &platform) {
|
||||
platform_ = platform;
|
||||
setBodyParameter(std::string("Platform"), platform);
|
||||
}
|
||||
|
||||
void GetTitleDiagnoseRequest::setExtra(const std::string& extra)
|
||||
{
|
||||
extra_ = extra;
|
||||
setBodyParameter("Extra", extra);
|
||||
std::string GetTitleDiagnoseRequest::getExtra() const {
|
||||
return extra_;
|
||||
}
|
||||
|
||||
std::string GetTitleDiagnoseRequest::getCategoryId()const
|
||||
{
|
||||
return categoryId_;
|
||||
void GetTitleDiagnoseRequest::setExtra(const std::string &extra) {
|
||||
extra_ = extra;
|
||||
setBodyParameter(std::string("Extra"), extra);
|
||||
}
|
||||
|
||||
void GetTitleDiagnoseRequest::setCategoryId(const std::string& categoryId)
|
||||
{
|
||||
categoryId_ = categoryId;
|
||||
setBodyParameter("CategoryId", categoryId);
|
||||
std::string GetTitleDiagnoseRequest::getCategoryId() const {
|
||||
return categoryId_;
|
||||
}
|
||||
|
||||
void GetTitleDiagnoseRequest::setCategoryId(const std::string &categoryId) {
|
||||
categoryId_ = categoryId;
|
||||
setBodyParameter(std::string("CategoryId"), categoryId);
|
||||
}
|
||||
|
||||
|
||||
@@ -40,26 +40,26 @@ void GetTitleDiagnoseResult::parse(const std::string &payload)
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto dataNode = value["Data"];
|
||||
if(!dataNode["ContainCoreClasses"].isNull())
|
||||
data_.containCoreClasses = dataNode["ContainCoreClasses"].asString();
|
||||
if(!dataNode["OverLengthLimit"].isNull())
|
||||
data_.overLengthLimit = dataNode["OverLengthLimit"].asString();
|
||||
if(!dataNode["WordSpelledCorrectError"].isNull())
|
||||
data_.wordSpelledCorrectError = dataNode["WordSpelledCorrectError"].asString();
|
||||
if(!dataNode["AllUppercaseWords"].isNull())
|
||||
data_.allUppercaseWords = dataNode["AllUppercaseWords"].asString();
|
||||
if(!dataNode["NoFirstUppercaseList"].isNull())
|
||||
data_.noFirstUppercaseList = dataNode["NoFirstUppercaseList"].asString();
|
||||
if(!dataNode["DuplicateWords"].isNull())
|
||||
data_.duplicateWords = dataNode["DuplicateWords"].asString();
|
||||
if(!dataNode["DisableWords"].isNull())
|
||||
data_.disableWords = dataNode["DisableWords"].asString();
|
||||
if(!dataNode["ContainCoreClasses"].isNull())
|
||||
data_.containCoreClasses = dataNode["ContainCoreClasses"].asString();
|
||||
if(!dataNode["WordCount"].isNull())
|
||||
data_.wordCount = dataNode["WordCount"].asString();
|
||||
if(!dataNode["TotalScore"].isNull())
|
||||
data_.totalScore = dataNode["TotalScore"].asString();
|
||||
if(!dataNode["LanguageQualityScore"].isNull())
|
||||
data_.languageQualityScore = dataNode["LanguageQualityScore"].asString();
|
||||
if(!dataNode["AllUppercaseWords"].isNull())
|
||||
data_.allUppercaseWords = dataNode["AllUppercaseWords"].asString();
|
||||
if(!dataNode["OverLengthLimit"].isNull())
|
||||
data_.overLengthLimit = dataNode["OverLengthLimit"].asString();
|
||||
if(!dataNode["DisableWords"].isNull())
|
||||
data_.disableWords = dataNode["DisableWords"].asString();
|
||||
if(!dataNode["NoFirstUppercaseList"].isNull())
|
||||
data_.noFirstUppercaseList = dataNode["NoFirstUppercaseList"].asString();
|
||||
if(!dataNode["TotalScore"].isNull())
|
||||
data_.totalScore = dataNode["TotalScore"].asString();
|
||||
if(!dataNode["WordSpelledCorrectError"].isNull())
|
||||
data_.wordSpelledCorrectError = dataNode["WordSpelledCorrectError"].asString();
|
||||
if(!value["Code"].isNull())
|
||||
code_ = std::stoi(value["Code"].asString());
|
||||
if(!value["Message"].isNull())
|
||||
|
||||
@@ -1,106 +1,90 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT 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/GetTitleGenerateRequest.h>
|
||||
|
||||
using AlibabaCloud::Alimt::Model::GetTitleGenerateRequest;
|
||||
|
||||
GetTitleGenerateRequest::GetTitleGenerateRequest() :
|
||||
RpcServiceRequest("alimt", "2018-10-12", "GetTitleGenerate")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
GetTitleGenerateRequest::~GetTitleGenerateRequest()
|
||||
{}
|
||||
|
||||
std::string GetTitleGenerateRequest::getLanguage()const
|
||||
{
|
||||
return language_;
|
||||
*/
|
||||
|
||||
#include <alibabacloud/alimt/model/GetTitleGenerateRequest.h>
|
||||
|
||||
using AlibabaCloud::Alimt::Model::GetTitleGenerateRequest;
|
||||
|
||||
GetTitleGenerateRequest::GetTitleGenerateRequest()
|
||||
: RpcServiceRequest("alimt", "2018-10-12", "GetTitleGenerate") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
void GetTitleGenerateRequest::setLanguage(const std::string& language)
|
||||
{
|
||||
language_ = language;
|
||||
setBodyParameter("Language", language);
|
||||
GetTitleGenerateRequest::~GetTitleGenerateRequest() {}
|
||||
|
||||
std::string GetTitleGenerateRequest::getLanguage() const {
|
||||
return language_;
|
||||
}
|
||||
|
||||
std::string GetTitleGenerateRequest::getTitle()const
|
||||
{
|
||||
return title_;
|
||||
void GetTitleGenerateRequest::setLanguage(const std::string &language) {
|
||||
language_ = language;
|
||||
setBodyParameter(std::string("Language"), language);
|
||||
}
|
||||
|
||||
void GetTitleGenerateRequest::setTitle(const std::string& title)
|
||||
{
|
||||
title_ = title;
|
||||
setBodyParameter("Title", title);
|
||||
std::string GetTitleGenerateRequest::getTitle() const {
|
||||
return title_;
|
||||
}
|
||||
|
||||
std::string GetTitleGenerateRequest::getPlatform()const
|
||||
{
|
||||
return platform_;
|
||||
void GetTitleGenerateRequest::setTitle(const std::string &title) {
|
||||
title_ = title;
|
||||
setBodyParameter(std::string("Title"), title);
|
||||
}
|
||||
|
||||
void GetTitleGenerateRequest::setPlatform(const std::string& platform)
|
||||
{
|
||||
platform_ = platform;
|
||||
setBodyParameter("Platform", platform);
|
||||
std::string GetTitleGenerateRequest::getPlatform() const {
|
||||
return platform_;
|
||||
}
|
||||
|
||||
std::string GetTitleGenerateRequest::getExtra()const
|
||||
{
|
||||
return extra_;
|
||||
void GetTitleGenerateRequest::setPlatform(const std::string &platform) {
|
||||
platform_ = platform;
|
||||
setBodyParameter(std::string("Platform"), platform);
|
||||
}
|
||||
|
||||
void GetTitleGenerateRequest::setExtra(const std::string& extra)
|
||||
{
|
||||
extra_ = extra;
|
||||
setBodyParameter("Extra", extra);
|
||||
std::string GetTitleGenerateRequest::getExtra() const {
|
||||
return extra_;
|
||||
}
|
||||
|
||||
std::string GetTitleGenerateRequest::getAttributes()const
|
||||
{
|
||||
return attributes_;
|
||||
void GetTitleGenerateRequest::setExtra(const std::string &extra) {
|
||||
extra_ = extra;
|
||||
setBodyParameter(std::string("Extra"), extra);
|
||||
}
|
||||
|
||||
void GetTitleGenerateRequest::setAttributes(const std::string& attributes)
|
||||
{
|
||||
attributes_ = attributes;
|
||||
setBodyParameter("Attributes", attributes);
|
||||
std::string GetTitleGenerateRequest::getAttributes() const {
|
||||
return attributes_;
|
||||
}
|
||||
|
||||
std::string GetTitleGenerateRequest::getHotWords()const
|
||||
{
|
||||
return hotWords_;
|
||||
void GetTitleGenerateRequest::setAttributes(const std::string &attributes) {
|
||||
attributes_ = attributes;
|
||||
setBodyParameter(std::string("Attributes"), attributes);
|
||||
}
|
||||
|
||||
void GetTitleGenerateRequest::setHotWords(const std::string& hotWords)
|
||||
{
|
||||
hotWords_ = hotWords;
|
||||
setBodyParameter("HotWords", hotWords);
|
||||
std::string GetTitleGenerateRequest::getHotWords() const {
|
||||
return hotWords_;
|
||||
}
|
||||
|
||||
std::string GetTitleGenerateRequest::getCategoryId()const
|
||||
{
|
||||
return categoryId_;
|
||||
void GetTitleGenerateRequest::setHotWords(const std::string &hotWords) {
|
||||
hotWords_ = hotWords;
|
||||
setBodyParameter(std::string("HotWords"), hotWords);
|
||||
}
|
||||
|
||||
void GetTitleGenerateRequest::setCategoryId(const std::string& categoryId)
|
||||
{
|
||||
categoryId_ = categoryId;
|
||||
setBodyParameter("CategoryId", categoryId);
|
||||
std::string GetTitleGenerateRequest::getCategoryId() const {
|
||||
return categoryId_;
|
||||
}
|
||||
|
||||
void GetTitleGenerateRequest::setCategoryId(const std::string &categoryId) {
|
||||
categoryId_ = categoryId;
|
||||
setBodyParameter(std::string("CategoryId"), categoryId);
|
||||
}
|
||||
|
||||
|
||||
@@ -1,84 +1,72 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/alimt/model/GetTitleIntelligenceRequest.h>
|
||||
|
||||
using AlibabaCloud::Alimt::Model::GetTitleIntelligenceRequest;
|
||||
|
||||
GetTitleIntelligenceRequest::GetTitleIntelligenceRequest() :
|
||||
RpcServiceRequest("alimt", "2018-10-12", "GetTitleIntelligence")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
GetTitleIntelligenceRequest::~GetTitleIntelligenceRequest()
|
||||
{}
|
||||
|
||||
long GetTitleIntelligenceRequest::getCatLevelThreeId()const
|
||||
{
|
||||
return catLevelThreeId_;
|
||||
*/
|
||||
|
||||
#include <alibabacloud/alimt/model/GetTitleIntelligenceRequest.h>
|
||||
|
||||
using AlibabaCloud::Alimt::Model::GetTitleIntelligenceRequest;
|
||||
|
||||
GetTitleIntelligenceRequest::GetTitleIntelligenceRequest()
|
||||
: RpcServiceRequest("alimt", "2018-10-12", "GetTitleIntelligence") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
void GetTitleIntelligenceRequest::setCatLevelThreeId(long catLevelThreeId)
|
||||
{
|
||||
catLevelThreeId_ = catLevelThreeId;
|
||||
setBodyParameter("CatLevelThreeId", std::to_string(catLevelThreeId));
|
||||
GetTitleIntelligenceRequest::~GetTitleIntelligenceRequest() {}
|
||||
|
||||
long GetTitleIntelligenceRequest::getCatLevelThreeId() const {
|
||||
return catLevelThreeId_;
|
||||
}
|
||||
|
||||
long GetTitleIntelligenceRequest::getCatLevelTwoId()const
|
||||
{
|
||||
return catLevelTwoId_;
|
||||
void GetTitleIntelligenceRequest::setCatLevelThreeId(long catLevelThreeId) {
|
||||
catLevelThreeId_ = catLevelThreeId;
|
||||
setBodyParameter(std::string("CatLevelThreeId"), std::to_string(catLevelThreeId));
|
||||
}
|
||||
|
||||
void GetTitleIntelligenceRequest::setCatLevelTwoId(long catLevelTwoId)
|
||||
{
|
||||
catLevelTwoId_ = catLevelTwoId;
|
||||
setBodyParameter("CatLevelTwoId", std::to_string(catLevelTwoId));
|
||||
long GetTitleIntelligenceRequest::getCatLevelTwoId() const {
|
||||
return catLevelTwoId_;
|
||||
}
|
||||
|
||||
std::string GetTitleIntelligenceRequest::getKeywords()const
|
||||
{
|
||||
return keywords_;
|
||||
void GetTitleIntelligenceRequest::setCatLevelTwoId(long catLevelTwoId) {
|
||||
catLevelTwoId_ = catLevelTwoId;
|
||||
setBodyParameter(std::string("CatLevelTwoId"), std::to_string(catLevelTwoId));
|
||||
}
|
||||
|
||||
void GetTitleIntelligenceRequest::setKeywords(const std::string& keywords)
|
||||
{
|
||||
keywords_ = keywords;
|
||||
setBodyParameter("Keywords", keywords);
|
||||
std::string GetTitleIntelligenceRequest::getKeywords() const {
|
||||
return keywords_;
|
||||
}
|
||||
|
||||
std::string GetTitleIntelligenceRequest::getPlatform()const
|
||||
{
|
||||
return platform_;
|
||||
void GetTitleIntelligenceRequest::setKeywords(const std::string &keywords) {
|
||||
keywords_ = keywords;
|
||||
setBodyParameter(std::string("Keywords"), keywords);
|
||||
}
|
||||
|
||||
void GetTitleIntelligenceRequest::setPlatform(const std::string& platform)
|
||||
{
|
||||
platform_ = platform;
|
||||
setBodyParameter("Platform", platform);
|
||||
std::string GetTitleIntelligenceRequest::getPlatform() const {
|
||||
return platform_;
|
||||
}
|
||||
|
||||
std::string GetTitleIntelligenceRequest::getExtra()const
|
||||
{
|
||||
return extra_;
|
||||
void GetTitleIntelligenceRequest::setPlatform(const std::string &platform) {
|
||||
platform_ = platform;
|
||||
setBodyParameter(std::string("Platform"), platform);
|
||||
}
|
||||
|
||||
void GetTitleIntelligenceRequest::setExtra(const std::string& extra)
|
||||
{
|
||||
extra_ = extra;
|
||||
setBodyParameter("Extra", extra);
|
||||
std::string GetTitleIntelligenceRequest::getExtra() const {
|
||||
return extra_;
|
||||
}
|
||||
|
||||
void GetTitleIntelligenceRequest::setExtra(const std::string &extra) {
|
||||
extra_ = extra;
|
||||
setBodyParameter(std::string("Extra"), extra);
|
||||
}
|
||||
|
||||
|
||||
63
alimt/src/model/GetTranslateReportRequest.cc
Normal file
63
alimt/src/model/GetTranslateReportRequest.cc
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.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/alimt/model/GetTranslateReportRequest.h>
|
||||
|
||||
using AlibabaCloud::Alimt::Model::GetTranslateReportRequest;
|
||||
|
||||
GetTranslateReportRequest::GetTranslateReportRequest()
|
||||
: RpcServiceRequest("alimt", "2018-10-12", "GetTranslateReport") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
GetTranslateReportRequest::~GetTranslateReportRequest() {}
|
||||
|
||||
std::string GetTranslateReportRequest::getEndTime() const {
|
||||
return endTime_;
|
||||
}
|
||||
|
||||
void GetTranslateReportRequest::setEndTime(const std::string &endTime) {
|
||||
endTime_ = endTime;
|
||||
setParameter(std::string("EndTime"), endTime);
|
||||
}
|
||||
|
||||
std::string GetTranslateReportRequest::getBeginTime() const {
|
||||
return beginTime_;
|
||||
}
|
||||
|
||||
void GetTranslateReportRequest::setBeginTime(const std::string &beginTime) {
|
||||
beginTime_ = beginTime;
|
||||
setParameter(std::string("BeginTime"), beginTime);
|
||||
}
|
||||
|
||||
std::string GetTranslateReportRequest::getApiName() const {
|
||||
return apiName_;
|
||||
}
|
||||
|
||||
void GetTranslateReportRequest::setApiName(const std::string &apiName) {
|
||||
apiName_ = apiName;
|
||||
setParameter(std::string("ApiName"), apiName);
|
||||
}
|
||||
|
||||
std::string GetTranslateReportRequest::getGroup() const {
|
||||
return group_;
|
||||
}
|
||||
|
||||
void GetTranslateReportRequest::setGroup(const std::string &group) {
|
||||
group_ = group;
|
||||
setParameter(std::string("Group"), group);
|
||||
}
|
||||
|
||||
65
alimt/src/model/GetTranslateReportResult.cc
Normal file
65
alimt/src/model/GetTranslateReportResult.cc
Normal file
@@ -0,0 +1,65 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/alimt/model/GetTranslateReportResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Alimt;
|
||||
using namespace AlibabaCloud::Alimt::Model;
|
||||
|
||||
GetTranslateReportResult::GetTranslateReportResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
GetTranslateReportResult::GetTranslateReportResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
GetTranslateReportResult::~GetTranslateReportResult()
|
||||
{}
|
||||
|
||||
void GetTranslateReportResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["Code"].isNull())
|
||||
code_ = std::stoi(value["Code"].asString());
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
if(!value["Data"].isNull())
|
||||
data_ = value["Data"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string GetTranslateReportResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
std::string GetTranslateReportResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
int GetTranslateReportResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
27
alimt/src/model/GetUserRequest.cc
Normal file
27
alimt/src/model/GetUserRequest.cc
Normal file
@@ -0,0 +1,27 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT 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/GetUserRequest.h>
|
||||
|
||||
using AlibabaCloud::Alimt::Model::GetUserRequest;
|
||||
|
||||
GetUserRequest::GetUserRequest()
|
||||
: RpcServiceRequest("alimt", "2018-10-12", "GetUser") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
GetUserRequest::~GetUserRequest() {}
|
||||
|
||||
65
alimt/src/model/GetUserResult.cc
Normal file
65
alimt/src/model/GetUserResult.cc
Normal file
@@ -0,0 +1,65 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/alimt/model/GetUserResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Alimt;
|
||||
using namespace AlibabaCloud::Alimt::Model;
|
||||
|
||||
GetUserResult::GetUserResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
GetUserResult::GetUserResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
GetUserResult::~GetUserResult()
|
||||
{}
|
||||
|
||||
void GetUserResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["Code"].isNull())
|
||||
code_ = std::stoi(value["Code"].asString());
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
if(!value["Data"].isNull())
|
||||
data_ = value["Data"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string GetUserResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
std::string GetUserResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
int GetUserResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
@@ -1,51 +1,45 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT 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_;
|
||||
*/
|
||||
|
||||
#include <alibabacloud/alimt/model/OpenAlimtServiceRequest.h>
|
||||
|
||||
using AlibabaCloud::Alimt::Model::OpenAlimtServiceRequest;
|
||||
|
||||
OpenAlimtServiceRequest::OpenAlimtServiceRequest()
|
||||
: RpcServiceRequest("alimt", "2018-10-12", "OpenAlimtService") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
void OpenAlimtServiceRequest::setOwnerId(long ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setParameter("OwnerId", std::to_string(ownerId));
|
||||
OpenAlimtServiceRequest::~OpenAlimtServiceRequest() {}
|
||||
|
||||
long OpenAlimtServiceRequest::getOwnerId() const {
|
||||
return ownerId_;
|
||||
}
|
||||
|
||||
std::string OpenAlimtServiceRequest::getType()const
|
||||
{
|
||||
return type_;
|
||||
void OpenAlimtServiceRequest::setOwnerId(long ownerId) {
|
||||
ownerId_ = ownerId;
|
||||
setParameter(std::string("OwnerId"), std::to_string(ownerId));
|
||||
}
|
||||
|
||||
void OpenAlimtServiceRequest::setType(const std::string& type)
|
||||
{
|
||||
type_ = type;
|
||||
setParameter("Type", type);
|
||||
std::string OpenAlimtServiceRequest::getType() const {
|
||||
return type_;
|
||||
}
|
||||
|
||||
void OpenAlimtServiceRequest::setType(const std::string &type) {
|
||||
type_ = type;
|
||||
setParameter(std::string("Type"), type);
|
||||
}
|
||||
|
||||
|
||||
@@ -1,84 +1,81 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/alimt/model/TranslateCertificateRequest.h>
|
||||
|
||||
using AlibabaCloud::Alimt::Model::TranslateCertificateRequest;
|
||||
|
||||
TranslateCertificateRequest::TranslateCertificateRequest() :
|
||||
RpcServiceRequest("alimt", "2018-10-12", "TranslateCertificate")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
TranslateCertificateRequest::~TranslateCertificateRequest()
|
||||
{}
|
||||
|
||||
std::string TranslateCertificateRequest::getSourceLanguage()const
|
||||
{
|
||||
return sourceLanguage_;
|
||||
*/
|
||||
|
||||
#include <alibabacloud/alimt/model/TranslateCertificateRequest.h>
|
||||
|
||||
using AlibabaCloud::Alimt::Model::TranslateCertificateRequest;
|
||||
|
||||
TranslateCertificateRequest::TranslateCertificateRequest()
|
||||
: RpcServiceRequest("alimt", "2018-10-12", "TranslateCertificate") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
void TranslateCertificateRequest::setSourceLanguage(const std::string& sourceLanguage)
|
||||
{
|
||||
sourceLanguage_ = sourceLanguage;
|
||||
setBodyParameter("SourceLanguage", sourceLanguage);
|
||||
TranslateCertificateRequest::~TranslateCertificateRequest() {}
|
||||
|
||||
std::string TranslateCertificateRequest::getExt() const {
|
||||
return ext_;
|
||||
}
|
||||
|
||||
std::string TranslateCertificateRequest::getCertificateType()const
|
||||
{
|
||||
return certificateType_;
|
||||
void TranslateCertificateRequest::setExt(const std::string &ext) {
|
||||
ext_ = ext;
|
||||
setBodyParameter(std::string("Ext"), ext);
|
||||
}
|
||||
|
||||
void TranslateCertificateRequest::setCertificateType(const std::string& certificateType)
|
||||
{
|
||||
certificateType_ = certificateType;
|
||||
setBodyParameter("CertificateType", certificateType);
|
||||
std::string TranslateCertificateRequest::getSourceLanguage() const {
|
||||
return sourceLanguage_;
|
||||
}
|
||||
|
||||
std::string TranslateCertificateRequest::getResultType()const
|
||||
{
|
||||
return resultType_;
|
||||
void TranslateCertificateRequest::setSourceLanguage(const std::string &sourceLanguage) {
|
||||
sourceLanguage_ = sourceLanguage;
|
||||
setBodyParameter(std::string("SourceLanguage"), sourceLanguage);
|
||||
}
|
||||
|
||||
void TranslateCertificateRequest::setResultType(const std::string& resultType)
|
||||
{
|
||||
resultType_ = resultType;
|
||||
setBodyParameter("ResultType", resultType);
|
||||
std::string TranslateCertificateRequest::getCertificateType() const {
|
||||
return certificateType_;
|
||||
}
|
||||
|
||||
std::string TranslateCertificateRequest::getImageUrl()const
|
||||
{
|
||||
return imageUrl_;
|
||||
void TranslateCertificateRequest::setCertificateType(const std::string &certificateType) {
|
||||
certificateType_ = certificateType;
|
||||
setBodyParameter(std::string("CertificateType"), certificateType);
|
||||
}
|
||||
|
||||
void TranslateCertificateRequest::setImageUrl(const std::string& imageUrl)
|
||||
{
|
||||
imageUrl_ = imageUrl;
|
||||
setBodyParameter("ImageUrl", imageUrl);
|
||||
std::string TranslateCertificateRequest::getResultType() const {
|
||||
return resultType_;
|
||||
}
|
||||
|
||||
std::string TranslateCertificateRequest::getTargetLanguage()const
|
||||
{
|
||||
return targetLanguage_;
|
||||
void TranslateCertificateRequest::setResultType(const std::string &resultType) {
|
||||
resultType_ = resultType;
|
||||
setBodyParameter(std::string("ResultType"), resultType);
|
||||
}
|
||||
|
||||
void TranslateCertificateRequest::setTargetLanguage(const std::string& targetLanguage)
|
||||
{
|
||||
targetLanguage_ = targetLanguage;
|
||||
setBodyParameter("TargetLanguage", targetLanguage);
|
||||
std::string TranslateCertificateRequest::getImageUrl() const {
|
||||
return imageUrl_;
|
||||
}
|
||||
|
||||
void TranslateCertificateRequest::setImageUrl(const std::string &imageUrl) {
|
||||
imageUrl_ = imageUrl;
|
||||
setBodyParameter(std::string("ImageUrl"), imageUrl);
|
||||
}
|
||||
|
||||
std::string TranslateCertificateRequest::getTargetLanguage() const {
|
||||
return targetLanguage_;
|
||||
}
|
||||
|
||||
void TranslateCertificateRequest::setTargetLanguage(const std::string &targetLanguage) {
|
||||
targetLanguage_ = targetLanguage;
|
||||
setBodyParameter(std::string("TargetLanguage"), targetLanguage);
|
||||
}
|
||||
|
||||
|
||||
@@ -44,14 +44,14 @@ void TranslateCertificateResult::parse(const std::string &payload)
|
||||
for (auto dataNodeTranslatedValuesCertificateTranslateItemDTO : allTranslatedValuesNode)
|
||||
{
|
||||
Data::CertificateTranslateItemDTO certificateTranslateItemDTOObject;
|
||||
if(!dataNodeTranslatedValuesCertificateTranslateItemDTO["KeyTranslation"].isNull())
|
||||
certificateTranslateItemDTOObject.keyTranslation = dataNodeTranslatedValuesCertificateTranslateItemDTO["KeyTranslation"].asString();
|
||||
if(!dataNodeTranslatedValuesCertificateTranslateItemDTO["Key"].isNull())
|
||||
certificateTranslateItemDTOObject.key = dataNodeTranslatedValuesCertificateTranslateItemDTO["Key"].asString();
|
||||
if(!dataNodeTranslatedValuesCertificateTranslateItemDTO["Value"].isNull())
|
||||
certificateTranslateItemDTOObject.value = dataNodeTranslatedValuesCertificateTranslateItemDTO["Value"].asString();
|
||||
if(!dataNodeTranslatedValuesCertificateTranslateItemDTO["ValueTranslation"].isNull())
|
||||
certificateTranslateItemDTOObject.valueTranslation = dataNodeTranslatedValuesCertificateTranslateItemDTO["ValueTranslation"].asString();
|
||||
if(!dataNodeTranslatedValuesCertificateTranslateItemDTO["KeyTranslation"].isNull())
|
||||
certificateTranslateItemDTOObject.keyTranslation = dataNodeTranslatedValuesCertificateTranslateItemDTO["KeyTranslation"].asString();
|
||||
data_.translatedValues.push_back(certificateTranslateItemDTOObject);
|
||||
}
|
||||
|
||||
|
||||
@@ -1,84 +1,72 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/alimt/model/TranslateECommerceRequest.h>
|
||||
|
||||
using AlibabaCloud::Alimt::Model::TranslateECommerceRequest;
|
||||
|
||||
TranslateECommerceRequest::TranslateECommerceRequest() :
|
||||
RpcServiceRequest("alimt", "2018-10-12", "TranslateECommerce")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
TranslateECommerceRequest::~TranslateECommerceRequest()
|
||||
{}
|
||||
|
||||
std::string TranslateECommerceRequest::getSourceLanguage()const
|
||||
{
|
||||
return sourceLanguage_;
|
||||
*/
|
||||
|
||||
#include <alibabacloud/alimt/model/TranslateECommerceRequest.h>
|
||||
|
||||
using AlibabaCloud::Alimt::Model::TranslateECommerceRequest;
|
||||
|
||||
TranslateECommerceRequest::TranslateECommerceRequest()
|
||||
: RpcServiceRequest("alimt", "2018-10-12", "TranslateECommerce") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
void TranslateECommerceRequest::setSourceLanguage(const std::string& sourceLanguage)
|
||||
{
|
||||
sourceLanguage_ = sourceLanguage;
|
||||
setBodyParameter("SourceLanguage", sourceLanguage);
|
||||
TranslateECommerceRequest::~TranslateECommerceRequest() {}
|
||||
|
||||
std::string TranslateECommerceRequest::getSourceLanguage() const {
|
||||
return sourceLanguage_;
|
||||
}
|
||||
|
||||
std::string TranslateECommerceRequest::getSourceText()const
|
||||
{
|
||||
return sourceText_;
|
||||
void TranslateECommerceRequest::setSourceLanguage(const std::string &sourceLanguage) {
|
||||
sourceLanguage_ = sourceLanguage;
|
||||
setBodyParameter(std::string("SourceLanguage"), sourceLanguage);
|
||||
}
|
||||
|
||||
void TranslateECommerceRequest::setSourceText(const std::string& sourceText)
|
||||
{
|
||||
sourceText_ = sourceText;
|
||||
setBodyParameter("SourceText", sourceText);
|
||||
std::string TranslateECommerceRequest::getSourceText() const {
|
||||
return sourceText_;
|
||||
}
|
||||
|
||||
std::string TranslateECommerceRequest::getFormatType()const
|
||||
{
|
||||
return formatType_;
|
||||
void TranslateECommerceRequest::setSourceText(const std::string &sourceText) {
|
||||
sourceText_ = sourceText;
|
||||
setBodyParameter(std::string("SourceText"), sourceText);
|
||||
}
|
||||
|
||||
void TranslateECommerceRequest::setFormatType(const std::string& formatType)
|
||||
{
|
||||
formatType_ = formatType;
|
||||
setBodyParameter("FormatType", formatType);
|
||||
std::string TranslateECommerceRequest::getFormatType() const {
|
||||
return formatType_;
|
||||
}
|
||||
|
||||
std::string TranslateECommerceRequest::getScene()const
|
||||
{
|
||||
return scene_;
|
||||
void TranslateECommerceRequest::setFormatType(const std::string &formatType) {
|
||||
formatType_ = formatType;
|
||||
setBodyParameter(std::string("FormatType"), formatType);
|
||||
}
|
||||
|
||||
void TranslateECommerceRequest::setScene(const std::string& scene)
|
||||
{
|
||||
scene_ = scene;
|
||||
setBodyParameter("Scene", scene);
|
||||
std::string TranslateECommerceRequest::getScene() const {
|
||||
return scene_;
|
||||
}
|
||||
|
||||
std::string TranslateECommerceRequest::getTargetLanguage()const
|
||||
{
|
||||
return targetLanguage_;
|
||||
void TranslateECommerceRequest::setScene(const std::string &scene) {
|
||||
scene_ = scene;
|
||||
setBodyParameter(std::string("Scene"), scene);
|
||||
}
|
||||
|
||||
void TranslateECommerceRequest::setTargetLanguage(const std::string& targetLanguage)
|
||||
{
|
||||
targetLanguage_ = targetLanguage;
|
||||
setBodyParameter("TargetLanguage", targetLanguage);
|
||||
std::string TranslateECommerceRequest::getTargetLanguage() const {
|
||||
return targetLanguage_;
|
||||
}
|
||||
|
||||
void TranslateECommerceRequest::setTargetLanguage(const std::string &targetLanguage) {
|
||||
targetLanguage_ = targetLanguage;
|
||||
setBodyParameter(std::string("TargetLanguage"), targetLanguage);
|
||||
}
|
||||
|
||||
|
||||
@@ -1,84 +1,72 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/alimt/model/TranslateGeneralRequest.h>
|
||||
|
||||
using AlibabaCloud::Alimt::Model::TranslateGeneralRequest;
|
||||
|
||||
TranslateGeneralRequest::TranslateGeneralRequest() :
|
||||
RpcServiceRequest("alimt", "2018-10-12", "TranslateGeneral")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
TranslateGeneralRequest::~TranslateGeneralRequest()
|
||||
{}
|
||||
|
||||
std::string TranslateGeneralRequest::getSourceLanguage()const
|
||||
{
|
||||
return sourceLanguage_;
|
||||
*/
|
||||
|
||||
#include <alibabacloud/alimt/model/TranslateGeneralRequest.h>
|
||||
|
||||
using AlibabaCloud::Alimt::Model::TranslateGeneralRequest;
|
||||
|
||||
TranslateGeneralRequest::TranslateGeneralRequest()
|
||||
: RpcServiceRequest("alimt", "2018-10-12", "TranslateGeneral") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
void TranslateGeneralRequest::setSourceLanguage(const std::string& sourceLanguage)
|
||||
{
|
||||
sourceLanguage_ = sourceLanguage;
|
||||
setBodyParameter("SourceLanguage", sourceLanguage);
|
||||
TranslateGeneralRequest::~TranslateGeneralRequest() {}
|
||||
|
||||
std::string TranslateGeneralRequest::getSourceLanguage() const {
|
||||
return sourceLanguage_;
|
||||
}
|
||||
|
||||
std::string TranslateGeneralRequest::getSourceText()const
|
||||
{
|
||||
return sourceText_;
|
||||
void TranslateGeneralRequest::setSourceLanguage(const std::string &sourceLanguage) {
|
||||
sourceLanguage_ = sourceLanguage;
|
||||
setBodyParameter(std::string("SourceLanguage"), sourceLanguage);
|
||||
}
|
||||
|
||||
void TranslateGeneralRequest::setSourceText(const std::string& sourceText)
|
||||
{
|
||||
sourceText_ = sourceText;
|
||||
setBodyParameter("SourceText", sourceText);
|
||||
std::string TranslateGeneralRequest::getSourceText() const {
|
||||
return sourceText_;
|
||||
}
|
||||
|
||||
std::string TranslateGeneralRequest::getFormatType()const
|
||||
{
|
||||
return formatType_;
|
||||
void TranslateGeneralRequest::setSourceText(const std::string &sourceText) {
|
||||
sourceText_ = sourceText;
|
||||
setBodyParameter(std::string("SourceText"), sourceText);
|
||||
}
|
||||
|
||||
void TranslateGeneralRequest::setFormatType(const std::string& formatType)
|
||||
{
|
||||
formatType_ = formatType;
|
||||
setBodyParameter("FormatType", formatType);
|
||||
std::string TranslateGeneralRequest::getFormatType() const {
|
||||
return formatType_;
|
||||
}
|
||||
|
||||
std::string TranslateGeneralRequest::getScene()const
|
||||
{
|
||||
return scene_;
|
||||
void TranslateGeneralRequest::setFormatType(const std::string &formatType) {
|
||||
formatType_ = formatType;
|
||||
setBodyParameter(std::string("FormatType"), formatType);
|
||||
}
|
||||
|
||||
void TranslateGeneralRequest::setScene(const std::string& scene)
|
||||
{
|
||||
scene_ = scene;
|
||||
setBodyParameter("Scene", scene);
|
||||
std::string TranslateGeneralRequest::getScene() const {
|
||||
return scene_;
|
||||
}
|
||||
|
||||
std::string TranslateGeneralRequest::getTargetLanguage()const
|
||||
{
|
||||
return targetLanguage_;
|
||||
void TranslateGeneralRequest::setScene(const std::string &scene) {
|
||||
scene_ = scene;
|
||||
setBodyParameter(std::string("Scene"), scene);
|
||||
}
|
||||
|
||||
void TranslateGeneralRequest::setTargetLanguage(const std::string& targetLanguage)
|
||||
{
|
||||
targetLanguage_ = targetLanguage;
|
||||
setBodyParameter("TargetLanguage", targetLanguage);
|
||||
std::string TranslateGeneralRequest::getTargetLanguage() const {
|
||||
return targetLanguage_;
|
||||
}
|
||||
|
||||
void TranslateGeneralRequest::setTargetLanguage(const std::string &targetLanguage) {
|
||||
targetLanguage_ = targetLanguage;
|
||||
setBodyParameter(std::string("TargetLanguage"), targetLanguage);
|
||||
}
|
||||
|
||||
|
||||
81
alimt/src/model/TranslateImageRequest.cc
Normal file
81
alimt/src/model/TranslateImageRequest.cc
Normal file
@@ -0,0 +1,81 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/alimt/model/TranslateImageRequest.h>
|
||||
|
||||
using AlibabaCloud::Alimt::Model::TranslateImageRequest;
|
||||
|
||||
TranslateImageRequest::TranslateImageRequest()
|
||||
: RpcServiceRequest("alimt", "2018-10-12", "TranslateImage") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
TranslateImageRequest::~TranslateImageRequest() {}
|
||||
|
||||
std::string TranslateImageRequest::getExt() const {
|
||||
return ext_;
|
||||
}
|
||||
|
||||
void TranslateImageRequest::setExt(const std::string &ext) {
|
||||
ext_ = ext;
|
||||
setBodyParameter(std::string("Ext"), ext);
|
||||
}
|
||||
|
||||
std::string TranslateImageRequest::getSourceLanguage() const {
|
||||
return sourceLanguage_;
|
||||
}
|
||||
|
||||
void TranslateImageRequest::setSourceLanguage(const std::string &sourceLanguage) {
|
||||
sourceLanguage_ = sourceLanguage;
|
||||
setBodyParameter(std::string("SourceLanguage"), sourceLanguage);
|
||||
}
|
||||
|
||||
std::string TranslateImageRequest::getField() const {
|
||||
return field_;
|
||||
}
|
||||
|
||||
void TranslateImageRequest::setField(const std::string &field) {
|
||||
field_ = field;
|
||||
setBodyParameter(std::string("Field"), field);
|
||||
}
|
||||
|
||||
std::string TranslateImageRequest::getImageUrl() const {
|
||||
return imageUrl_;
|
||||
}
|
||||
|
||||
void TranslateImageRequest::setImageUrl(const std::string &imageUrl) {
|
||||
imageUrl_ = imageUrl;
|
||||
setBodyParameter(std::string("ImageUrl"), imageUrl);
|
||||
}
|
||||
|
||||
std::string TranslateImageRequest::getTargetLanguage() const {
|
||||
return targetLanguage_;
|
||||
}
|
||||
|
||||
void TranslateImageRequest::setTargetLanguage(const std::string &targetLanguage) {
|
||||
targetLanguage_ = targetLanguage;
|
||||
setBodyParameter(std::string("TargetLanguage"), targetLanguage);
|
||||
}
|
||||
|
||||
std::string TranslateImageRequest::getImageBase64() const {
|
||||
return imageBase64_;
|
||||
}
|
||||
|
||||
void TranslateImageRequest::setImageBase64(const std::string &imageBase64) {
|
||||
imageBase64_ = imageBase64;
|
||||
setBodyParameter(std::string("ImageBase64"), imageBase64);
|
||||
}
|
||||
|
||||
70
alimt/src/model/TranslateImageResult.cc
Normal file
70
alimt/src/model/TranslateImageResult.cc
Normal file
@@ -0,0 +1,70 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/alimt/model/TranslateImageResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Alimt;
|
||||
using namespace AlibabaCloud::Alimt::Model;
|
||||
|
||||
TranslateImageResult::TranslateImageResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
TranslateImageResult::TranslateImageResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
TranslateImageResult::~TranslateImageResult()
|
||||
{}
|
||||
|
||||
void TranslateImageResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto dataNode = value["Data"];
|
||||
if(!dataNode["InPaintingUrl"].isNull())
|
||||
data_.inPaintingUrl = dataNode["InPaintingUrl"].asString();
|
||||
if(!dataNode["TemplateJson"].isNull())
|
||||
data_.templateJson = dataNode["TemplateJson"].asString();
|
||||
if(!dataNode["FinalImageUrl"].isNull())
|
||||
data_.finalImageUrl = dataNode["FinalImageUrl"].asString();
|
||||
if(!value["Code"].isNull())
|
||||
code_ = std::stoi(value["Code"].asString());
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string TranslateImageResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
TranslateImageResult::Data TranslateImageResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
int TranslateImageResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
@@ -1,84 +1,72 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/alimt/model/TranslateRequest.h>
|
||||
|
||||
using AlibabaCloud::Alimt::Model::TranslateRequest;
|
||||
|
||||
TranslateRequest::TranslateRequest() :
|
||||
RpcServiceRequest("alimt", "2018-10-12", "Translate")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
TranslateRequest::~TranslateRequest()
|
||||
{}
|
||||
|
||||
std::string TranslateRequest::getSourceLanguage()const
|
||||
{
|
||||
return sourceLanguage_;
|
||||
*/
|
||||
|
||||
#include <alibabacloud/alimt/model/TranslateRequest.h>
|
||||
|
||||
using AlibabaCloud::Alimt::Model::TranslateRequest;
|
||||
|
||||
TranslateRequest::TranslateRequest()
|
||||
: RpcServiceRequest("alimt", "2018-10-12", "Translate") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
void TranslateRequest::setSourceLanguage(const std::string& sourceLanguage)
|
||||
{
|
||||
sourceLanguage_ = sourceLanguage;
|
||||
setBodyParameter("SourceLanguage", sourceLanguage);
|
||||
TranslateRequest::~TranslateRequest() {}
|
||||
|
||||
std::string TranslateRequest::getSourceLanguage() const {
|
||||
return sourceLanguage_;
|
||||
}
|
||||
|
||||
std::string TranslateRequest::getSourceText()const
|
||||
{
|
||||
return sourceText_;
|
||||
void TranslateRequest::setSourceLanguage(const std::string &sourceLanguage) {
|
||||
sourceLanguage_ = sourceLanguage;
|
||||
setBodyParameter(std::string("SourceLanguage"), sourceLanguage);
|
||||
}
|
||||
|
||||
void TranslateRequest::setSourceText(const std::string& sourceText)
|
||||
{
|
||||
sourceText_ = sourceText;
|
||||
setBodyParameter("SourceText", sourceText);
|
||||
std::string TranslateRequest::getSourceText() const {
|
||||
return sourceText_;
|
||||
}
|
||||
|
||||
std::string TranslateRequest::getFormatType()const
|
||||
{
|
||||
return formatType_;
|
||||
void TranslateRequest::setSourceText(const std::string &sourceText) {
|
||||
sourceText_ = sourceText;
|
||||
setBodyParameter(std::string("SourceText"), sourceText);
|
||||
}
|
||||
|
||||
void TranslateRequest::setFormatType(const std::string& formatType)
|
||||
{
|
||||
formatType_ = formatType;
|
||||
setBodyParameter("FormatType", formatType);
|
||||
std::string TranslateRequest::getFormatType() const {
|
||||
return formatType_;
|
||||
}
|
||||
|
||||
std::string TranslateRequest::getScene()const
|
||||
{
|
||||
return scene_;
|
||||
void TranslateRequest::setFormatType(const std::string &formatType) {
|
||||
formatType_ = formatType;
|
||||
setBodyParameter(std::string("FormatType"), formatType);
|
||||
}
|
||||
|
||||
void TranslateRequest::setScene(const std::string& scene)
|
||||
{
|
||||
scene_ = scene;
|
||||
setBodyParameter("Scene", scene);
|
||||
std::string TranslateRequest::getScene() const {
|
||||
return scene_;
|
||||
}
|
||||
|
||||
std::string TranslateRequest::getTargetLanguage()const
|
||||
{
|
||||
return targetLanguage_;
|
||||
void TranslateRequest::setScene(const std::string &scene) {
|
||||
scene_ = scene;
|
||||
setBodyParameter(std::string("Scene"), scene);
|
||||
}
|
||||
|
||||
void TranslateRequest::setTargetLanguage(const std::string& targetLanguage)
|
||||
{
|
||||
targetLanguage_ = targetLanguage;
|
||||
setBodyParameter("TargetLanguage", targetLanguage);
|
||||
std::string TranslateRequest::getTargetLanguage() const {
|
||||
return targetLanguage_;
|
||||
}
|
||||
|
||||
void TranslateRequest::setTargetLanguage(const std::string &targetLanguage) {
|
||||
targetLanguage_ = targetLanguage;
|
||||
setBodyParameter(std::string("TargetLanguage"), targetLanguage);
|
||||
}
|
||||
|
||||
|
||||
@@ -23,22 +23,32 @@ set(cbn_public_header
|
||||
set(cbn_public_header_model
|
||||
include/alibabacloud/cbn/model/ActiveFlowLogRequest.h
|
||||
include/alibabacloud/cbn/model/ActiveFlowLogResult.h
|
||||
include/alibabacloud/cbn/model/AddTraficMatchRuleToTrafficMarkingPolicyRequest.h
|
||||
include/alibabacloud/cbn/model/AddTraficMatchRuleToTrafficMarkingPolicyResult.h
|
||||
include/alibabacloud/cbn/model/AssociateCenBandwidthPackageRequest.h
|
||||
include/alibabacloud/cbn/model/AssociateCenBandwidthPackageResult.h
|
||||
include/alibabacloud/cbn/model/AssociateTransitRouterAttachmentWithRouteTableRequest.h
|
||||
include/alibabacloud/cbn/model/AssociateTransitRouterAttachmentWithRouteTableResult.h
|
||||
include/alibabacloud/cbn/model/AttachCenChildInstanceRequest.h
|
||||
include/alibabacloud/cbn/model/AttachCenChildInstanceResult.h
|
||||
include/alibabacloud/cbn/model/CheckTransitRouterServiceRequest.h
|
||||
include/alibabacloud/cbn/model/CheckTransitRouterServiceResult.h
|
||||
include/alibabacloud/cbn/model/CreateCenRequest.h
|
||||
include/alibabacloud/cbn/model/CreateCenResult.h
|
||||
include/alibabacloud/cbn/model/CreateCenBandwidthPackageRequest.h
|
||||
include/alibabacloud/cbn/model/CreateCenBandwidthPackageResult.h
|
||||
include/alibabacloud/cbn/model/CreateCenChildInstanceRouteEntryToAttachmentRequest.h
|
||||
include/alibabacloud/cbn/model/CreateCenChildInstanceRouteEntryToAttachmentResult.h
|
||||
include/alibabacloud/cbn/model/CreateCenChildInstanceRouteEntryToCenRequest.h
|
||||
include/alibabacloud/cbn/model/CreateCenChildInstanceRouteEntryToCenResult.h
|
||||
include/alibabacloud/cbn/model/CreateCenInterRegionTrafficQosPolicyRequest.h
|
||||
include/alibabacloud/cbn/model/CreateCenInterRegionTrafficQosPolicyResult.h
|
||||
include/alibabacloud/cbn/model/CreateCenRouteMapRequest.h
|
||||
include/alibabacloud/cbn/model/CreateCenRouteMapResult.h
|
||||
include/alibabacloud/cbn/model/CreateFlowlogRequest.h
|
||||
include/alibabacloud/cbn/model/CreateFlowlogResult.h
|
||||
include/alibabacloud/cbn/model/CreateTrafficMarkingPolicyRequest.h
|
||||
include/alibabacloud/cbn/model/CreateTrafficMarkingPolicyResult.h
|
||||
include/alibabacloud/cbn/model/CreateTransitRouterRequest.h
|
||||
include/alibabacloud/cbn/model/CreateTransitRouterResult.h
|
||||
include/alibabacloud/cbn/model/CreateTransitRouterPeerAttachmentRequest.h
|
||||
@@ -57,14 +67,22 @@ set(cbn_public_header_model
|
||||
include/alibabacloud/cbn/model/DeleteCenResult.h
|
||||
include/alibabacloud/cbn/model/DeleteCenBandwidthPackageRequest.h
|
||||
include/alibabacloud/cbn/model/DeleteCenBandwidthPackageResult.h
|
||||
include/alibabacloud/cbn/model/DeleteCenChildInstanceRouteEntryToAttachmentRequest.h
|
||||
include/alibabacloud/cbn/model/DeleteCenChildInstanceRouteEntryToAttachmentResult.h
|
||||
include/alibabacloud/cbn/model/DeleteCenChildInstanceRouteEntryToCenRequest.h
|
||||
include/alibabacloud/cbn/model/DeleteCenChildInstanceRouteEntryToCenResult.h
|
||||
include/alibabacloud/cbn/model/DeleteCenInterRegionTrafficQosPolicyRequest.h
|
||||
include/alibabacloud/cbn/model/DeleteCenInterRegionTrafficQosPolicyResult.h
|
||||
include/alibabacloud/cbn/model/DeleteCenInterRegionTrafficQosQueueRequest.h
|
||||
include/alibabacloud/cbn/model/DeleteCenInterRegionTrafficQosQueueResult.h
|
||||
include/alibabacloud/cbn/model/DeleteCenRouteMapRequest.h
|
||||
include/alibabacloud/cbn/model/DeleteCenRouteMapResult.h
|
||||
include/alibabacloud/cbn/model/DeleteFlowlogRequest.h
|
||||
include/alibabacloud/cbn/model/DeleteFlowlogResult.h
|
||||
include/alibabacloud/cbn/model/DeleteRouteServiceInCenRequest.h
|
||||
include/alibabacloud/cbn/model/DeleteRouteServiceInCenResult.h
|
||||
include/alibabacloud/cbn/model/DeleteTrafficMarkingPolicyRequest.h
|
||||
include/alibabacloud/cbn/model/DeleteTrafficMarkingPolicyResult.h
|
||||
include/alibabacloud/cbn/model/DeleteTransitRouterPeerAttachmentRequest.h
|
||||
include/alibabacloud/cbn/model/DeleteTransitRouterPeerAttachmentResult.h
|
||||
include/alibabacloud/cbn/model/DeleteTransitRouterRouteEntryRequest.h
|
||||
@@ -125,8 +143,16 @@ set(cbn_public_header_model
|
||||
include/alibabacloud/cbn/model/EnableCenVbrHealthCheckResult.h
|
||||
include/alibabacloud/cbn/model/EnableTransitRouterRouteTablePropagationRequest.h
|
||||
include/alibabacloud/cbn/model/EnableTransitRouterRouteTablePropagationResult.h
|
||||
include/alibabacloud/cbn/model/GrantInstanceToTransitRouterRequest.h
|
||||
include/alibabacloud/cbn/model/GrantInstanceToTransitRouterResult.h
|
||||
include/alibabacloud/cbn/model/ListCenInterRegionTrafficQosPoliciesRequest.h
|
||||
include/alibabacloud/cbn/model/ListCenInterRegionTrafficQosPoliciesResult.h
|
||||
include/alibabacloud/cbn/model/ListGrantVSwitchesToCenRequest.h
|
||||
include/alibabacloud/cbn/model/ListGrantVSwitchesToCenResult.h
|
||||
include/alibabacloud/cbn/model/ListTagResourcesRequest.h
|
||||
include/alibabacloud/cbn/model/ListTagResourcesResult.h
|
||||
include/alibabacloud/cbn/model/ListTrafficMarkingPoliciesRequest.h
|
||||
include/alibabacloud/cbn/model/ListTrafficMarkingPoliciesResult.h
|
||||
include/alibabacloud/cbn/model/ListTransitRouterAvailableResourceRequest.h
|
||||
include/alibabacloud/cbn/model/ListTransitRouterAvailableResourceResult.h
|
||||
include/alibabacloud/cbn/model/ListTransitRouterPeerAttachmentsRequest.h
|
||||
@@ -155,10 +181,20 @@ set(cbn_public_header_model
|
||||
include/alibabacloud/cbn/model/ModifyCenRouteMapResult.h
|
||||
include/alibabacloud/cbn/model/ModifyFlowLogAttributeRequest.h
|
||||
include/alibabacloud/cbn/model/ModifyFlowLogAttributeResult.h
|
||||
include/alibabacloud/cbn/model/MoveResourceGroupRequest.h
|
||||
include/alibabacloud/cbn/model/MoveResourceGroupResult.h
|
||||
include/alibabacloud/cbn/model/OpenTransitRouterServiceRequest.h
|
||||
include/alibabacloud/cbn/model/OpenTransitRouterServiceResult.h
|
||||
include/alibabacloud/cbn/model/PublishRouteEntriesRequest.h
|
||||
include/alibabacloud/cbn/model/PublishRouteEntriesResult.h
|
||||
include/alibabacloud/cbn/model/RemoveTraficMatchRuleFromTrafficMarkingPolicyRequest.h
|
||||
include/alibabacloud/cbn/model/RemoveTraficMatchRuleFromTrafficMarkingPolicyResult.h
|
||||
include/alibabacloud/cbn/model/ReplaceTransitRouterRouteTableAssociationRequest.h
|
||||
include/alibabacloud/cbn/model/ReplaceTransitRouterRouteTableAssociationResult.h
|
||||
include/alibabacloud/cbn/model/ResolveAndRouteServiceInCenRequest.h
|
||||
include/alibabacloud/cbn/model/ResolveAndRouteServiceInCenResult.h
|
||||
include/alibabacloud/cbn/model/RevokeInstanceFromTransitRouterRequest.h
|
||||
include/alibabacloud/cbn/model/RevokeInstanceFromTransitRouterResult.h
|
||||
include/alibabacloud/cbn/model/RoutePrivateZoneInCenToVpcRequest.h
|
||||
include/alibabacloud/cbn/model/RoutePrivateZoneInCenToVpcResult.h
|
||||
include/alibabacloud/cbn/model/SetCenInterRegionBandwidthLimitRequest.h
|
||||
@@ -173,6 +209,12 @@ set(cbn_public_header_model
|
||||
include/alibabacloud/cbn/model/UnroutePrivateZoneInCenToVpcResult.h
|
||||
include/alibabacloud/cbn/model/UntagResourcesRequest.h
|
||||
include/alibabacloud/cbn/model/UntagResourcesResult.h
|
||||
include/alibabacloud/cbn/model/UpdateCenInterRegionTrafficQosPolicyAttributeRequest.h
|
||||
include/alibabacloud/cbn/model/UpdateCenInterRegionTrafficQosPolicyAttributeResult.h
|
||||
include/alibabacloud/cbn/model/UpdateCenInterRegionTrafficQosQueueAttributeRequest.h
|
||||
include/alibabacloud/cbn/model/UpdateCenInterRegionTrafficQosQueueAttributeResult.h
|
||||
include/alibabacloud/cbn/model/UpdateTrafficMarkingPolicyAttributeRequest.h
|
||||
include/alibabacloud/cbn/model/UpdateTrafficMarkingPolicyAttributeResult.h
|
||||
include/alibabacloud/cbn/model/UpdateTransitRouterRequest.h
|
||||
include/alibabacloud/cbn/model/UpdateTransitRouterResult.h
|
||||
include/alibabacloud/cbn/model/UpdateTransitRouterPeerAttachmentAttributeRequest.h
|
||||
@@ -192,22 +234,32 @@ set(cbn_src
|
||||
src/CbnClient.cc
|
||||
src/model/ActiveFlowLogRequest.cc
|
||||
src/model/ActiveFlowLogResult.cc
|
||||
src/model/AddTraficMatchRuleToTrafficMarkingPolicyRequest.cc
|
||||
src/model/AddTraficMatchRuleToTrafficMarkingPolicyResult.cc
|
||||
src/model/AssociateCenBandwidthPackageRequest.cc
|
||||
src/model/AssociateCenBandwidthPackageResult.cc
|
||||
src/model/AssociateTransitRouterAttachmentWithRouteTableRequest.cc
|
||||
src/model/AssociateTransitRouterAttachmentWithRouteTableResult.cc
|
||||
src/model/AttachCenChildInstanceRequest.cc
|
||||
src/model/AttachCenChildInstanceResult.cc
|
||||
src/model/CheckTransitRouterServiceRequest.cc
|
||||
src/model/CheckTransitRouterServiceResult.cc
|
||||
src/model/CreateCenRequest.cc
|
||||
src/model/CreateCenResult.cc
|
||||
src/model/CreateCenBandwidthPackageRequest.cc
|
||||
src/model/CreateCenBandwidthPackageResult.cc
|
||||
src/model/CreateCenChildInstanceRouteEntryToAttachmentRequest.cc
|
||||
src/model/CreateCenChildInstanceRouteEntryToAttachmentResult.cc
|
||||
src/model/CreateCenChildInstanceRouteEntryToCenRequest.cc
|
||||
src/model/CreateCenChildInstanceRouteEntryToCenResult.cc
|
||||
src/model/CreateCenInterRegionTrafficQosPolicyRequest.cc
|
||||
src/model/CreateCenInterRegionTrafficQosPolicyResult.cc
|
||||
src/model/CreateCenRouteMapRequest.cc
|
||||
src/model/CreateCenRouteMapResult.cc
|
||||
src/model/CreateFlowlogRequest.cc
|
||||
src/model/CreateFlowlogResult.cc
|
||||
src/model/CreateTrafficMarkingPolicyRequest.cc
|
||||
src/model/CreateTrafficMarkingPolicyResult.cc
|
||||
src/model/CreateTransitRouterRequest.cc
|
||||
src/model/CreateTransitRouterResult.cc
|
||||
src/model/CreateTransitRouterPeerAttachmentRequest.cc
|
||||
@@ -226,14 +278,22 @@ set(cbn_src
|
||||
src/model/DeleteCenResult.cc
|
||||
src/model/DeleteCenBandwidthPackageRequest.cc
|
||||
src/model/DeleteCenBandwidthPackageResult.cc
|
||||
src/model/DeleteCenChildInstanceRouteEntryToAttachmentRequest.cc
|
||||
src/model/DeleteCenChildInstanceRouteEntryToAttachmentResult.cc
|
||||
src/model/DeleteCenChildInstanceRouteEntryToCenRequest.cc
|
||||
src/model/DeleteCenChildInstanceRouteEntryToCenResult.cc
|
||||
src/model/DeleteCenInterRegionTrafficQosPolicyRequest.cc
|
||||
src/model/DeleteCenInterRegionTrafficQosPolicyResult.cc
|
||||
src/model/DeleteCenInterRegionTrafficQosQueueRequest.cc
|
||||
src/model/DeleteCenInterRegionTrafficQosQueueResult.cc
|
||||
src/model/DeleteCenRouteMapRequest.cc
|
||||
src/model/DeleteCenRouteMapResult.cc
|
||||
src/model/DeleteFlowlogRequest.cc
|
||||
src/model/DeleteFlowlogResult.cc
|
||||
src/model/DeleteRouteServiceInCenRequest.cc
|
||||
src/model/DeleteRouteServiceInCenResult.cc
|
||||
src/model/DeleteTrafficMarkingPolicyRequest.cc
|
||||
src/model/DeleteTrafficMarkingPolicyResult.cc
|
||||
src/model/DeleteTransitRouterPeerAttachmentRequest.cc
|
||||
src/model/DeleteTransitRouterPeerAttachmentResult.cc
|
||||
src/model/DeleteTransitRouterRouteEntryRequest.cc
|
||||
@@ -294,8 +354,16 @@ set(cbn_src
|
||||
src/model/EnableCenVbrHealthCheckResult.cc
|
||||
src/model/EnableTransitRouterRouteTablePropagationRequest.cc
|
||||
src/model/EnableTransitRouterRouteTablePropagationResult.cc
|
||||
src/model/GrantInstanceToTransitRouterRequest.cc
|
||||
src/model/GrantInstanceToTransitRouterResult.cc
|
||||
src/model/ListCenInterRegionTrafficQosPoliciesRequest.cc
|
||||
src/model/ListCenInterRegionTrafficQosPoliciesResult.cc
|
||||
src/model/ListGrantVSwitchesToCenRequest.cc
|
||||
src/model/ListGrantVSwitchesToCenResult.cc
|
||||
src/model/ListTagResourcesRequest.cc
|
||||
src/model/ListTagResourcesResult.cc
|
||||
src/model/ListTrafficMarkingPoliciesRequest.cc
|
||||
src/model/ListTrafficMarkingPoliciesResult.cc
|
||||
src/model/ListTransitRouterAvailableResourceRequest.cc
|
||||
src/model/ListTransitRouterAvailableResourceResult.cc
|
||||
src/model/ListTransitRouterPeerAttachmentsRequest.cc
|
||||
@@ -324,10 +392,20 @@ set(cbn_src
|
||||
src/model/ModifyCenRouteMapResult.cc
|
||||
src/model/ModifyFlowLogAttributeRequest.cc
|
||||
src/model/ModifyFlowLogAttributeResult.cc
|
||||
src/model/MoveResourceGroupRequest.cc
|
||||
src/model/MoveResourceGroupResult.cc
|
||||
src/model/OpenTransitRouterServiceRequest.cc
|
||||
src/model/OpenTransitRouterServiceResult.cc
|
||||
src/model/PublishRouteEntriesRequest.cc
|
||||
src/model/PublishRouteEntriesResult.cc
|
||||
src/model/RemoveTraficMatchRuleFromTrafficMarkingPolicyRequest.cc
|
||||
src/model/RemoveTraficMatchRuleFromTrafficMarkingPolicyResult.cc
|
||||
src/model/ReplaceTransitRouterRouteTableAssociationRequest.cc
|
||||
src/model/ReplaceTransitRouterRouteTableAssociationResult.cc
|
||||
src/model/ResolveAndRouteServiceInCenRequest.cc
|
||||
src/model/ResolveAndRouteServiceInCenResult.cc
|
||||
src/model/RevokeInstanceFromTransitRouterRequest.cc
|
||||
src/model/RevokeInstanceFromTransitRouterResult.cc
|
||||
src/model/RoutePrivateZoneInCenToVpcRequest.cc
|
||||
src/model/RoutePrivateZoneInCenToVpcResult.cc
|
||||
src/model/SetCenInterRegionBandwidthLimitRequest.cc
|
||||
@@ -342,6 +420,12 @@ set(cbn_src
|
||||
src/model/UnroutePrivateZoneInCenToVpcResult.cc
|
||||
src/model/UntagResourcesRequest.cc
|
||||
src/model/UntagResourcesResult.cc
|
||||
src/model/UpdateCenInterRegionTrafficQosPolicyAttributeRequest.cc
|
||||
src/model/UpdateCenInterRegionTrafficQosPolicyAttributeResult.cc
|
||||
src/model/UpdateCenInterRegionTrafficQosQueueAttributeRequest.cc
|
||||
src/model/UpdateCenInterRegionTrafficQosQueueAttributeResult.cc
|
||||
src/model/UpdateTrafficMarkingPolicyAttributeRequest.cc
|
||||
src/model/UpdateTrafficMarkingPolicyAttributeResult.cc
|
||||
src/model/UpdateTransitRouterRequest.cc
|
||||
src/model/UpdateTransitRouterResult.cc
|
||||
src/model/UpdateTransitRouterPeerAttachmentAttributeRequest.cc
|
||||
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user