Compare commits
115 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
9f2fb5a595 | ||
|
|
590e1bdfaf | ||
|
|
bde21ef594 | ||
|
|
7a8130ffb0 | ||
|
|
4bb1852f8a | ||
|
|
b1e2187ca5 | ||
|
|
92be79728f | ||
|
|
e1097547c2 | ||
|
|
87957e1677 | ||
|
|
8ef38637d2 | ||
|
|
7041b32dc4 | ||
|
|
d3ae1f02a3 | ||
|
|
87fc3376cb | ||
|
|
f6ec6326cb | ||
|
|
bd43e54271 | ||
|
|
f16150baca | ||
|
|
a51834c8d0 | ||
|
|
23bea0505a | ||
|
|
8c15acf5c8 | ||
|
|
00cb41817f | ||
|
|
f90eac2a6c | ||
|
|
f69779be3f | ||
|
|
feab9dcc06 | ||
|
|
d1c3599e3d | ||
|
|
f1483f8582 | ||
|
|
d005611f56 | ||
|
|
7e80260525 | ||
|
|
4aa00d49d1 | ||
|
|
a1dd7e1dbd | ||
|
|
e6cff897c5 | ||
|
|
4d493b157c | ||
|
|
8a1c79417e | ||
|
|
ad02a00036 | ||
|
|
3dd38f70c2 | ||
|
|
cc6cea96e4 | ||
|
|
f819d8866c | ||
|
|
d53a27c55f | ||
|
|
112b1d25da | ||
|
|
f51d79f1b9 | ||
|
|
e53482d9c6 | ||
|
|
b004f4b9fa | ||
|
|
c9cf723562 | ||
|
|
b1020d412c | ||
|
|
c4d6cb06f1 | ||
|
|
eeaeed4023 | ||
|
|
d7e14e0c1b | ||
|
|
18dc3cd7d9 | ||
|
|
2dbb76d303 | ||
|
|
ae65dcf4c3 | ||
|
|
1c5ad6a48c | ||
|
|
1a13b03f29 | ||
|
|
c1e07be47e | ||
|
|
8fdb5cc851 | ||
|
|
20774ebe3a | ||
|
|
485d712ddd | ||
|
|
abfdc41f3b | ||
|
|
093332279d | ||
|
|
85daa7c446 | ||
|
|
2e465b8b77 | ||
|
|
c58d7b0968 | ||
|
|
528c5282a8 | ||
|
|
ec000a3be6 | ||
|
|
636e24a33f | ||
|
|
cc1b078ff1 | ||
|
|
30fd9f48a0 | ||
|
|
c911315170 | ||
|
|
26e49b09e1 | ||
|
|
677473908b | ||
|
|
99a35f493e | ||
|
|
2efc5c0610 | ||
|
|
773c9d68dd | ||
|
|
dab595d041 | ||
|
|
361993f224 | ||
|
|
31f2c5d410 | ||
|
|
f0c2600a26 | ||
|
|
cba94f2119 | ||
|
|
b0e4c8f705 | ||
|
|
9e1e045351 | ||
|
|
9b0cec3ab7 | ||
|
|
fe66f8ca3b | ||
|
|
0913a08114 | ||
|
|
96f48bb607 | ||
|
|
94441decf0 | ||
|
|
ee987049b6 | ||
|
|
f0971eaa34 | ||
|
|
fce43d94b7 | ||
|
|
510f0daad9 | ||
|
|
11638e1197 | ||
|
|
8cc0896ed4 | ||
|
|
b5434b7d6d | ||
|
|
24f68932a7 | ||
|
|
54883f36c2 | ||
|
|
232aaddd7b | ||
|
|
fd11db8bf9 | ||
|
|
61c44f91cc | ||
|
|
dacb2ef983 | ||
|
|
f41733beaa | ||
|
|
c419c6e933 | ||
|
|
a3026e6a85 | ||
|
|
320af597ca | ||
|
|
0f47a4c427 | ||
|
|
51fa053ec1 | ||
|
|
ec33c109fe | ||
|
|
773cabb9d7 | ||
|
|
5de44fa4bd | ||
|
|
eaa895f02e | ||
|
|
be58d3d198 | ||
|
|
f8ce42a726 | ||
|
|
68261f0c8d | ||
|
|
45a3be8c65 | ||
|
|
66519a1f90 | ||
|
|
ef02e7707e | ||
|
|
82ce70d07f | ||
|
|
2c8cadba25 | ||
|
|
f90c2115c9 |
358
CHANGELOG
358
CHANGELOG
@@ -1,3 +1,361 @@
|
||||
2020-05-09 Version: 1.36.400
|
||||
- VideoSearch deploy SDK.
|
||||
|
||||
2020-05-08 Version: 1.36.399
|
||||
- Support sg for region.
|
||||
|
||||
2020-05-06 Version: 1.36.398
|
||||
- Describe describeAvailableResource.
|
||||
|
||||
2020-04-30 Version: 1.36.397
|
||||
- Add prometheus ListDashboards api.
|
||||
|
||||
2020-04-29 Version: 1.36.396
|
||||
- Add prometheus ListDashboards api.
|
||||
|
||||
2020-04-29 Version: 1.36.395
|
||||
- Add prometheus ListDashboards api.
|
||||
|
||||
2020-04-29 Version: 1.36.394
|
||||
- Supported VideoProduce.
|
||||
|
||||
2020-04-29 Version: 1.36.393
|
||||
- Supported VideoProduce.
|
||||
|
||||
2020-04-29 Version: 1.36.392
|
||||
- Supported VideoProduce.
|
||||
|
||||
2020-04-29 Version: 1.36.391
|
||||
- Add ListTemplateVersions API.
|
||||
- GenerateExecutionPolicy supports TemplateVersion.
|
||||
- CreateTemplate and UpdateTemplate support VersionName.
|
||||
|
||||
|
||||
2020-04-29 Version: 1.36.390
|
||||
- Support groupId operations.
|
||||
|
||||
2020-04-29 Version: 1.36.389
|
||||
- Add ExportTas apis.
|
||||
|
||||
2020-04-29 Version: 1.36.388
|
||||
- Support Document Translation.
|
||||
- Support Lanuage Detection.
|
||||
|
||||
2020-04-29 Version: 1.36.387
|
||||
- Sync cdn APIs.
|
||||
|
||||
2020-04-29 Version: 1.36.386
|
||||
- Add Scdn APIS.
|
||||
- Sync cdn APIS.
|
||||
|
||||
2020-04-28 Version: 1.36.385
|
||||
- Generated 2019-03-15 for `fnf`.
|
||||
|
||||
2020-04-28 Version: 1.36.384
|
||||
- Add CompareFaceVerify API.
|
||||
|
||||
2020-04-27 Version: 1.36.383
|
||||
- Support watermark.
|
||||
|
||||
2020-04-27 Version: 1.36.382
|
||||
- Describe describeAvailableResource.
|
||||
|
||||
2020-04-27 Version: 1.36.381
|
||||
- ContrastFaceVerify Return SubCode.
|
||||
|
||||
2020-04-27 Version: 1.36.380
|
||||
- Generated 2019-01-01 for `Cassandra`.
|
||||
|
||||
2020-04-26 Version: 1.36.379
|
||||
- New api publish.
|
||||
|
||||
2020-04-25 Version: 1.36.378
|
||||
- Generated 2015-01-01 for `R-kvstore`.
|
||||
- Add RestoreTime for CreateInstance API.
|
||||
|
||||
2020-04-24 Version: 1.36.377
|
||||
- Publish apis for ledger instances.
|
||||
- Publish apis for members.
|
||||
- Publish apis for time anchors.
|
||||
- Publish apis for endpoints.
|
||||
|
||||
2020-04-24 Version: 1.36.376
|
||||
- Publish apis for ledger instances.
|
||||
- Publish apis for members.
|
||||
- Publish apis for time anchors.
|
||||
- Publish apis for endpoints.
|
||||
|
||||
2020-04-23 Version: 1.36.375
|
||||
- GetUser API return user execute query count information.
|
||||
|
||||
2020-04-23 Version: 1.36.374
|
||||
- Fixed bugs for MassPush API.
|
||||
|
||||
2020-04-23 Version: 1.36.373
|
||||
- Add location info.
|
||||
|
||||
2020-04-23 Version: 1.36.372
|
||||
- Support groupId operations.
|
||||
|
||||
2020-04-22 Version: 1.36.371
|
||||
- Generated 2019-01-01 for `Cassandra`.
|
||||
|
||||
2020-04-21 Version: 1.36.370
|
||||
- Supported API for DescribeTags.
|
||||
- Supported API for ListTagResources.
|
||||
- Supported API for TagResources.
|
||||
- Supported API for UntagResources.
|
||||
|
||||
2020-04-21 Version: 1.36.369
|
||||
- Supported PackageDesign Apis.
|
||||
- Supported Api ListPackageDesignModelTypes.
|
||||
- Supported Api PreviewModelForPackageDesign.
|
||||
- Supported Api RenderImageForPackageDesign.
|
||||
- Supported Api GetRenderResult.
|
||||
|
||||
2020-04-21 Version: 1.36.368
|
||||
- Add Statistics API.
|
||||
|
||||
2020-04-20 Version: 1.36.367
|
||||
- Add TemplateId.
|
||||
|
||||
2020-04-20 Version: 1.36.366
|
||||
- Fix FaceContrastPicture.
|
||||
|
||||
2020-04-20 Version: 1.36.365
|
||||
- Add kibana network white Ips.
|
||||
|
||||
2020-04-19 Version: 1.36.364
|
||||
- Multimedia poc modified.
|
||||
|
||||
2020-04-17 Version: 1.36.363
|
||||
- DescribeInstanceTypes support TotalEniQueueQuantity.
|
||||
|
||||
2020-04-16 Version: 1.36.362
|
||||
- Modify `SubmitSmarttagJob`.
|
||||
|
||||
2020-04-16 Version: 1.36.361
|
||||
- Add ModifyWhiteIps.
|
||||
|
||||
2020-04-16 Version: 1.36.360
|
||||
- Add BatchOptimization param in Stop and Start Instances.
|
||||
- Add RemoveSymbols in GetInstanceConsoleOutput.
|
||||
- Add ImageFamily in ModifyImageAttribute.
|
||||
- Customize InstanceType on DedicatedHosts is supported.
|
||||
- Add StorageCapacityUnit interfaces.
|
||||
- Add param Tag in CreateAutoSnapshotPolicy.
|
||||
|
||||
2020-04-16 Version: 1.36.359
|
||||
- Add features for open api.
|
||||
|
||||
2020-04-15 Version: 1.36.358
|
||||
- Add pre train service api.
|
||||
|
||||
2020-04-15 Version: 1.36.357
|
||||
- CreateNode API add return NodeId.
|
||||
|
||||
2020-04-15 Version: 1.36.356
|
||||
- Vision-poc response modified.
|
||||
|
||||
2020-04-14 Version: 1.36.355
|
||||
- Support ListSensitiveColumns, ListSensitiveColumnsDetail API.
|
||||
- ListUsers API return user execute query count information.
|
||||
- Fix ListWorkFlowTemplates to return create user information.
|
||||
- UpdateUser API support to update user max execute query count.
|
||||
|
||||
2020-04-14 Version: 1.36.354
|
||||
- Supported CreateSegmentBodyJob.
|
||||
|
||||
2020-04-13 Version: 1.36.353
|
||||
- Fix ListTaskExecutions SDK error.
|
||||
|
||||
2020-04-10 Version: 1.36.352
|
||||
- Generated 2017-05-25 for `Dypnsapi`.
|
||||
|
||||
2020-04-10 Version: 1.36.351
|
||||
- Support GetOfficeEditURL.
|
||||
- Support RefreshOfficeEditToken.
|
||||
|
||||
2020-04-10 Version: 1.36.350
|
||||
- Generated 2019-01-01 for `Cassandra`.
|
||||
|
||||
2020-04-10 Version: 1.36.349
|
||||
- Support DescribeIpv4Location.
|
||||
|
||||
2020-04-09 Version: 1.36.348
|
||||
- Add prometheus api AddGrafana and AddIntegration.
|
||||
|
||||
2020-04-09 Version: 1.36.347
|
||||
- Generated 2018-03-13 for `retailcloud`.
|
||||
|
||||
2020-04-09 Version: 1.36.346
|
||||
- Add DescribePrice API.
|
||||
|
||||
2020-04-09 Version: 1.36.345
|
||||
- WAF OpenApi SDK Release.
|
||||
|
||||
2020-04-09 Version: 1.36.344
|
||||
- Add DescribeDBClusterAvailableResources.
|
||||
|
||||
2020-04-09 Version: 1.36.343
|
||||
- Generated 2015-01-01 for `R-kvstore`.
|
||||
- Add DescribePrice API.
|
||||
|
||||
2020-04-08 Version: 1.36.342
|
||||
- Add SubCode for DescribeFaceVerify.
|
||||
|
||||
2020-04-08 Version: 1.36.341
|
||||
- Generated 2019-01-01 for `Cassandra`.
|
||||
|
||||
2020-04-03 Version: 1.36.340
|
||||
- Add trace api.
|
||||
- Add prometheus api.
|
||||
|
||||
2020-04-03 Version: 1.36.339
|
||||
- Support shelf type for planogram position.
|
||||
|
||||
2020-04-03 Version: 1.36.338
|
||||
- Support namespaces.
|
||||
|
||||
2020-04-02 Version: 1.36.337
|
||||
- Add API ContrastFaceVerify.
|
||||
|
||||
2020-04-02 Version: 1.36.336
|
||||
- Support for WaitTimeSeconds for DescribeExecution.
|
||||
|
||||
2020-04-01 Version: 1.36.335
|
||||
- DescribeVerifyToken API Add Parameters-UserIp and UserPhoneNumber and UserRegistTime.
|
||||
|
||||
2020-04-01 Version: 1.36.334
|
||||
- Parameters is string in StartExecution Response.
|
||||
|
||||
2020-04-01 Version: 1.36.333
|
||||
- Counters and Parameters are changed to Map in ListExections and StartExecution.
|
||||
|
||||
2020-03-24 Version: 1.36.332
|
||||
- DescribeInstanceTypes Supports EniIpv6AddressQuantity.
|
||||
|
||||
2020-03-24 Version: 1.36.331
|
||||
- DescribeInstanceTypes Supports EniIpv6AddressQuantity.
|
||||
|
||||
2020-03-23 Version: 1.36.330
|
||||
- Generated 2015-01-01 for `R-kvstore`.
|
||||
- Add DescribeSecurityGroupConfiguration API.
|
||||
- Add ModifySecurityGroupConfiguration API.
|
||||
|
||||
2020-03-23 Version: 1.36.329
|
||||
- Generated 2014-08-15 for `Rds`.
|
||||
|
||||
2020-03-20 Version: 1.36.328
|
||||
- Generated 2018-04-12 for `EHPC`.
|
||||
|
||||
2020-03-20 Version: 1.36.327
|
||||
- Add GetNetworkInterface interface.
|
||||
|
||||
2020-03-20 Version: 1.36.326
|
||||
- Generated 2018-04-12 for `EHPC`.
|
||||
|
||||
2020-03-18 Version: 1.36.325
|
||||
- Supported API for DescribeInstanceDomains.
|
||||
|
||||
2020-03-18 Version: 1.36.324
|
||||
- ACM POP SDK.
|
||||
|
||||
2020-03-18 Version: 1.36.323
|
||||
- Support product addrp.
|
||||
|
||||
2020-03-18 Version: 1.36.322
|
||||
- Generated 2018-08-28 for `Tag`.
|
||||
|
||||
2020-03-16 Version: 1.36.321
|
||||
- DescribeFaceVerify API Return DeviceToken Field.
|
||||
|
||||
2020-03-16 Version: 1.36.320
|
||||
- Release.
|
||||
- Add virtual host modification API.
|
||||
- Add exchange modification API.
|
||||
- Add queue modification API.
|
||||
- Add binding modification API.
|
||||
|
||||
2020-03-16 Version: 1.36.319
|
||||
- Add ImageFamily paramters and apis, in Instance creation apis and Image query apis, and add DescribeImageFromFamily.
|
||||
- Add Instance batch operation apis RebootInstances StartInstances and StopInstances.
|
||||
- Add EncryptAlgorithm paramter in instance creati
|
||||
|
||||
2020-03-13 Version: 1.36.318
|
||||
- ACM POP SDK.
|
||||
|
||||
2020-03-12 Version: 1.36.317
|
||||
- Add new Api SegmentBody.
|
||||
|
||||
2020-03-11 Version: 1.36.316
|
||||
- Update structure for DescribeAvailableResource without compatible.
|
||||
|
||||
2020-03-11 Version: 1.36.315
|
||||
- Add new Api SegmentBody.
|
||||
|
||||
2020-03-11 Version: 1.36.314
|
||||
- Support certificate translate.
|
||||
|
||||
2020-03-10 Version: 1.36.313
|
||||
- Add ExportTas apis.
|
||||
|
||||
2020-03-10 Version: 1.36.312
|
||||
- Add ExportTas apis.
|
||||
|
||||
2020-03-09 Version: 1.36.311
|
||||
- Add EmotionConfidence to GetImage.
|
||||
|
||||
2020-03-09 Version: 1.36.310
|
||||
- Add BackupStorageType.
|
||||
|
||||
2020-03-09 Version: 1.36.309
|
||||
- Add EmotionConfidence to GetImage.
|
||||
|
||||
2020-03-09 Version: 1.36.308
|
||||
- Add EmotionConfidence to GetImage.
|
||||
|
||||
2020-03-09 Version: 1.36.307
|
||||
- NlpAutoml update contract api.
|
||||
|
||||
2020-03-09 Version: 1.36.306
|
||||
- NlpAutoml update contract api.
|
||||
|
||||
2020-03-06 Version: 1.36.305
|
||||
- Supported Saf for cn.
|
||||
|
||||
2020-03-06 Version: 1.36.304
|
||||
- Supported Saf for cn.
|
||||
|
||||
2020-03-06 Version: 1.36.303
|
||||
- Supported Saf for oversea.
|
||||
|
||||
2020-03-06 Version: 1.36.302
|
||||
- Add request parameter groupType for OnsGroupCreate.
|
||||
- Add request parameter groupType for OnsGroupList.
|
||||
|
||||
2020-03-05 Version: 1.36.301
|
||||
- Add param InstanceType for ListImages and ListCustomImages.
|
||||
- Fix error codes for SubmitJobs and so on.
|
||||
|
||||
2020-03-04 Version: 1.36.300
|
||||
- Update.
|
||||
|
||||
2020-03-03 Version: 1.36.299
|
||||
- Supported secretmanager stable version for kms.
|
||||
|
||||
2020-03-03 Version: 1.36.298
|
||||
- Supported secretmanager stable version for kms.
|
||||
|
||||
2020-03-03 Version: 1.36.297
|
||||
- GeoIP Databases SDK initial release.
|
||||
|
||||
2020-03-03 Version: 1.36.296
|
||||
- Supported secretmanager for kms.
|
||||
|
||||
2020-02-28 Version: 1.36.295
|
||||
- Add QueryPhoneNoAByTrackNo and AddAxnTrackNo.
|
||||
|
||||
2020-02-28 Version: 1.36.294
|
||||
- Supported secretmanager for kms.
|
||||
|
||||
|
||||
100
CMakeLists.txt
100
CMakeLists.txt
@@ -9,11 +9,14 @@ project(alibabacloud-sdk VERSION ${version})
|
||||
message(STATUS "Project version: ${PROJECT_VERSION}")
|
||||
|
||||
set(TARGET_OUTPUT_NAME_PREFIX "alibabacloud-sdk-" CACHE STRING "The target's output name prefix")
|
||||
set(BUILD_PRODUCT "" CACHE STRING "Build by lower name of product")
|
||||
|
||||
option(BUILD_SHARED_LIBS "Enable shared library" ON)
|
||||
option(BUILD_UNIT_TESTS "Enable unit tests" OFF)
|
||||
option(BUILD_FUNCTION_TESTS "Enable function test" OFF)
|
||||
|
||||
set(LIB_TYPE STATIC)
|
||||
|
||||
if(BUILD_SHARED_LIBS)
|
||||
set(LIB_TYPE SHARED)
|
||||
add_definitions(-DALIBABACLOUD_SHARED)
|
||||
@@ -29,15 +32,23 @@ include(ExternalProject)
|
||||
include(GNUInstallDirs)
|
||||
|
||||
add_subdirectory(3rdparty)
|
||||
add_subdirectory(core)
|
||||
|
||||
if(BUILD_UNIT_TESTS)
|
||||
enable_testing()
|
||||
add_subdirectory(test/core)
|
||||
enable_testing()
|
||||
add_subdirectory(core)
|
||||
add_subdirectory(test/core)
|
||||
endif()
|
||||
|
||||
if(BUILD_FUNCTION_TESTS)
|
||||
enable_testing()
|
||||
add_subdirectory(core)
|
||||
add_subdirectory(cdn)
|
||||
add_subdirectory(cs)
|
||||
add_subdirectory(ecs)
|
||||
add_subdirectory(nlp)
|
||||
add_subdirectory(rds)
|
||||
add_subdirectory(slb)
|
||||
add_subdirectory(vpc)
|
||||
add_subdirectory(test/function_test/cdn)
|
||||
add_subdirectory(test/function_test/core)
|
||||
add_subdirectory(test/function_test/cs)
|
||||
@@ -48,79 +59,10 @@ if(BUILD_FUNCTION_TESTS)
|
||||
add_subdirectory(test/function_test/vpc)
|
||||
endif()
|
||||
|
||||
add_subdirectory(ecs)
|
||||
add_subdirectory(slb)
|
||||
add_subdirectory(vpc)
|
||||
add_subdirectory(cdn)
|
||||
add_subdirectory(rds)
|
||||
add_subdirectory(cloudphoto)
|
||||
add_subdirectory(tesladam)
|
||||
add_subdirectory(cms)
|
||||
add_subdirectory(afs)
|
||||
add_subdirectory(aegis)
|
||||
add_subdirectory(ehpc)
|
||||
add_subdirectory(cs)
|
||||
add_subdirectory(ccc)
|
||||
add_subdirectory(teslamaxcompute)
|
||||
add_subdirectory(push)
|
||||
add_subdirectory(csb)
|
||||
add_subdirectory(domain)
|
||||
add_subdirectory(hsm)
|
||||
add_subdirectory(dcdn)
|
||||
add_subdirectory(pvtz)
|
||||
add_subdirectory(cloudauth)
|
||||
add_subdirectory(dyvmsapi)
|
||||
add_subdirectory(drds)
|
||||
add_subdirectory(jarvis)
|
||||
add_subdirectory(scdn)
|
||||
add_subdirectory(live)
|
||||
add_subdirectory(rtc)
|
||||
add_subdirectory(chatbot)
|
||||
add_subdirectory(teslastream)
|
||||
add_subdirectory(mopen)
|
||||
add_subdirectory(iot)
|
||||
add_subdirectory(linkface)
|
||||
add_subdirectory(ots)
|
||||
add_subdirectory(smartag)
|
||||
add_subdirectory(vod)
|
||||
add_subdirectory(ccs)
|
||||
add_subdirectory(saf)
|
||||
add_subdirectory(arms)
|
||||
add_subdirectory(lubancloud)
|
||||
add_subdirectory(alimt)
|
||||
add_subdirectory(xspace)
|
||||
add_subdirectory(cbn)
|
||||
add_subdirectory(ram)
|
||||
add_subdirectory(sts)
|
||||
add_subdirectory(gpdb)
|
||||
add_subdirectory(cr)
|
||||
add_subdirectory(openanalytics)
|
||||
add_subdirectory(snsuapi)
|
||||
add_subdirectory(ubsms)
|
||||
add_subdirectory(yundun)
|
||||
add_subdirectory(arms4finance)
|
||||
add_subdirectory(imagesearch)
|
||||
add_subdirectory(cas)
|
||||
add_subdirectory(cloudwf)
|
||||
add_subdirectory(alidns)
|
||||
add_subdirectory(httpdns)
|
||||
|
||||
add_subdirectory(crm)
|
||||
add_subdirectory(kms)
|
||||
add_subdirectory(sas-api)
|
||||
add_subdirectory(jarvis-public)
|
||||
add_subdirectory(mts)
|
||||
add_subdirectory(dysmsapi)
|
||||
add_subdirectory(ons)
|
||||
add_subdirectory(ivision)
|
||||
add_subdirectory(imm)
|
||||
add_subdirectory(bssopenapi)
|
||||
|
||||
add_subdirectory(sas)
|
||||
|
||||
add_subdirectory(dbs)
|
||||
add_subdirectory(r-kvstore)
|
||||
add_subdirectory(dds)
|
||||
add_subdirectory(yundun-ds)
|
||||
add_subdirectory(trademark)
|
||||
add_subdirectory(sddp)
|
||||
if(BUILD_PRODUCT STREQUAL "")
|
||||
message(WARNING "Please set the value of 'BUILD_PRODUCT'")
|
||||
else()
|
||||
add_subdirectory(core)
|
||||
add_subdirectory(${BUILD_PRODUCT})
|
||||
message(STATUS "'BUILD_PRODUCT'=${BUILD_PRODUCT}")
|
||||
endif()
|
||||
|
||||
@@ -77,7 +77,11 @@ sudo make install
|
||||
|
||||
```bash
|
||||
cd aliyun-openapi-cpp-sdk
|
||||
sudo sh easyinstall.sh
|
||||
sudo sh easyinstall.sh <lower name of product (like 'ecs')>
|
||||
|
||||
# example
|
||||
sudo sh easyinstall.sh core
|
||||
sudo sh easyinstall.sh ecs
|
||||
```
|
||||
|
||||
**Alibaba Cloud SDK for C++ 将被安装在 `/usr` .**
|
||||
@@ -99,6 +103,7 @@ sudo sh easyinstall.sh
|
||||
* 选择 `Browse Source` 为 `源代码目录(aliyun-openapi-cpp-sdk)`
|
||||
* 选择 `Browse build` 为 `构建目录(sdk_build)`
|
||||
* 点击 `configure`
|
||||
* 使用小写的产品名称,设置 `BUILD_PRODUCT` 参数的值
|
||||
* 点击 `generate`, 构建 VS 解决方案。
|
||||
|
||||
4. 编译安装 C++ SDK
|
||||
|
||||
12
README.md
12
README.md
@@ -21,9 +21,9 @@ If you have any problem while using Alibaba Cloud SDK for C++, please submit an
|
||||
|
||||
- To use this SDK, you must have an Alibaba Cloud account and an AccessKey.
|
||||
|
||||
The AccessKey is required when initializing the client. You can create an AccessKey in the Alibaba Cloud console. For more information, see [Create an AccessKey](https://usercenter.console.aliyun.com/?spm=5176.doc52740.2.3.QKZk8w#/manage/ak).
|
||||
The AccessKey is required when initializing the client. You can create an AccessKey in the Alibaba Cloud console. For more information, see [Create an AccessKey](https://usercenter.console.aliyun.com/?spm=5176.doc52740.2.3.QKZk8w#/manage/ak).
|
||||
|
||||
>**Note:** To increase the security of your account, we recommend that you use the AccessKey of the RAM user to access Alibaba Cloud services.
|
||||
>**Note:** To increase the security of your account, we recommend that you use the AccessKey of the RAM user to access Alibaba Cloud services.
|
||||
|
||||
- To use this SDK to access the APIs of a product, you must first activate the product on the [Alibaba Cloud console](https://home.console.aliyun.com/?spm=5176.doc52740.2.4.QKZk8w) if required.
|
||||
|
||||
@@ -78,7 +78,11 @@ sudo make install
|
||||
|
||||
```bash
|
||||
cd aliyun-openapi-cpp-sdk
|
||||
sudo sh easyinstall.sh
|
||||
sudo sh easyinstall.sh <lower name of product (like 'ecs')>
|
||||
|
||||
# example
|
||||
sudo sh easyinstall.sh core
|
||||
sudo sh easyinstall.sh ecs
|
||||
```
|
||||
|
||||
**The Alibaba Cloud SDK for C++ will be installed to `/usr`.**
|
||||
@@ -105,6 +109,8 @@ git clone https://github.com/aliyun/aliyun-openapi-cpp-sdk.git
|
||||
|
||||
- `Configure`
|
||||
|
||||
- use the lower name of product to set the value of `BUILD_PRODUCT`
|
||||
|
||||
- `Generate`
|
||||
|
||||
4. Build and Install C++ SDK
|
||||
|
||||
118
acm/CMakeLists.txt
Normal file
118
acm/CMakeLists.txt
Normal file
@@ -0,0 +1,118 @@
|
||||
#
|
||||
# Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
#
|
||||
# Licensed under the Apache License, Version 2.0 (the "License");
|
||||
# you may not use this file except in compliance with the License.
|
||||
# You may obtain a copy of the License at
|
||||
#
|
||||
# http://www.apache.org/licenses/LICENSE-2.0
|
||||
#
|
||||
# Unless required by applicable law or agreed to in writing, software
|
||||
# distributed under the License is distributed on an "AS IS" BASIS,
|
||||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
# See the License for the specific language governing permissions and
|
||||
# limitations under the License.
|
||||
#
|
||||
|
||||
set(public_header_dir ${CMAKE_CURRENT_SOURCE_DIR}/../include)
|
||||
|
||||
set(acm_public_header
|
||||
include/alibabacloud/acm/AcmClient.h
|
||||
include/alibabacloud/acm/AcmExport.h )
|
||||
|
||||
set(acm_public_header_model
|
||||
include/alibabacloud/acm/model/CreateConfigurationRequest.h
|
||||
include/alibabacloud/acm/model/CreateConfigurationResult.h
|
||||
include/alibabacloud/acm/model/CreateNamespaceRequest.h
|
||||
include/alibabacloud/acm/model/CreateNamespaceResult.h
|
||||
include/alibabacloud/acm/model/DeleteConfigurationRequest.h
|
||||
include/alibabacloud/acm/model/DeleteConfigurationResult.h
|
||||
include/alibabacloud/acm/model/DeleteNamespaceRequest.h
|
||||
include/alibabacloud/acm/model/DeleteNamespaceResult.h
|
||||
include/alibabacloud/acm/model/DeployConfigurationRequest.h
|
||||
include/alibabacloud/acm/model/DeployConfigurationResult.h
|
||||
include/alibabacloud/acm/model/DescribeConfigurationRequest.h
|
||||
include/alibabacloud/acm/model/DescribeConfigurationResult.h
|
||||
include/alibabacloud/acm/model/DescribeNamespaceRequest.h
|
||||
include/alibabacloud/acm/model/DescribeNamespaceResult.h
|
||||
include/alibabacloud/acm/model/DescribeNamespacesRequest.h
|
||||
include/alibabacloud/acm/model/DescribeNamespacesResult.h
|
||||
include/alibabacloud/acm/model/UpdateNamespaceRequest.h
|
||||
include/alibabacloud/acm/model/UpdateNamespaceResult.h )
|
||||
|
||||
set(acm_src
|
||||
src/AcmClient.cc
|
||||
src/model/CreateConfigurationRequest.cc
|
||||
src/model/CreateConfigurationResult.cc
|
||||
src/model/CreateNamespaceRequest.cc
|
||||
src/model/CreateNamespaceResult.cc
|
||||
src/model/DeleteConfigurationRequest.cc
|
||||
src/model/DeleteConfigurationResult.cc
|
||||
src/model/DeleteNamespaceRequest.cc
|
||||
src/model/DeleteNamespaceResult.cc
|
||||
src/model/DeployConfigurationRequest.cc
|
||||
src/model/DeployConfigurationResult.cc
|
||||
src/model/DescribeConfigurationRequest.cc
|
||||
src/model/DescribeConfigurationResult.cc
|
||||
src/model/DescribeNamespaceRequest.cc
|
||||
src/model/DescribeNamespaceResult.cc
|
||||
src/model/DescribeNamespacesRequest.cc
|
||||
src/model/DescribeNamespacesResult.cc
|
||||
src/model/UpdateNamespaceRequest.cc
|
||||
src/model/UpdateNamespaceResult.cc )
|
||||
|
||||
add_library(acm ${LIB_TYPE}
|
||||
${acm_public_header}
|
||||
${acm_public_header_model}
|
||||
${acm_src})
|
||||
|
||||
set_target_properties(acm
|
||||
PROPERTIES
|
||||
LINKER_LANGUAGE CXX
|
||||
ARCHIVE_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/lib
|
||||
LIBRARY_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/lib
|
||||
RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/bin
|
||||
OUTPUT_NAME ${TARGET_OUTPUT_NAME_PREFIX}acm
|
||||
)
|
||||
|
||||
if(${LIB_TYPE} STREQUAL "SHARED")
|
||||
set_target_properties(acm
|
||||
PROPERTIES
|
||||
DEFINE_SYMBOL ALIBABACLOUD_ACM_LIBRARY)
|
||||
endif()
|
||||
|
||||
target_include_directories(acm
|
||||
PRIVATE include
|
||||
${CMAKE_SOURCE_DIR}/core/include
|
||||
)
|
||||
target_link_libraries(acm
|
||||
core)
|
||||
|
||||
if(CMAKE_HOST_WIN32)
|
||||
ExternalProject_Get_Property(jsoncpp INSTALL_DIR)
|
||||
set(jsoncpp_install_dir ${INSTALL_DIR})
|
||||
add_dependencies(acm
|
||||
jsoncpp)
|
||||
target_include_directories(acm
|
||||
PRIVATE ${jsoncpp_install_dir}/include)
|
||||
target_link_libraries(acm
|
||||
${jsoncpp_install_dir}/lib/jsoncpp.lib)
|
||||
set_target_properties(acm
|
||||
PROPERTIES
|
||||
COMPILE_OPTIONS "/bigobj")
|
||||
else()
|
||||
target_include_directories(acm
|
||||
PRIVATE /usr/include/jsoncpp)
|
||||
target_link_libraries(acm
|
||||
jsoncpp)
|
||||
endif()
|
||||
|
||||
install(FILES ${acm_public_header}
|
||||
DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/alibabacloud/acm)
|
||||
install(FILES ${acm_public_header_model}
|
||||
DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/alibabacloud/acm/model)
|
||||
install(TARGETS acm
|
||||
ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
|
||||
LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
|
||||
RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
|
||||
)
|
||||
118
acm/include/alibabacloud/acm/AcmClient.h
Normal file
118
acm/include/alibabacloud/acm/AcmClient.h
Normal file
@@ -0,0 +1,118 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT 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_ACM_ACMCLIENT_H_
|
||||
#define ALIBABACLOUD_ACM_ACMCLIENT_H_
|
||||
|
||||
#include <future>
|
||||
#include <alibabacloud/core/AsyncCallerContext.h>
|
||||
#include <alibabacloud/core/EndpointProvider.h>
|
||||
#include <alibabacloud/core/RoaServiceClient.h>
|
||||
#include "AcmExport.h"
|
||||
#include "model/CreateConfigurationRequest.h"
|
||||
#include "model/CreateConfigurationResult.h"
|
||||
#include "model/CreateNamespaceRequest.h"
|
||||
#include "model/CreateNamespaceResult.h"
|
||||
#include "model/DeleteConfigurationRequest.h"
|
||||
#include "model/DeleteConfigurationResult.h"
|
||||
#include "model/DeleteNamespaceRequest.h"
|
||||
#include "model/DeleteNamespaceResult.h"
|
||||
#include "model/DeployConfigurationRequest.h"
|
||||
#include "model/DeployConfigurationResult.h"
|
||||
#include "model/DescribeConfigurationRequest.h"
|
||||
#include "model/DescribeConfigurationResult.h"
|
||||
#include "model/DescribeNamespaceRequest.h"
|
||||
#include "model/DescribeNamespaceResult.h"
|
||||
#include "model/DescribeNamespacesRequest.h"
|
||||
#include "model/DescribeNamespacesResult.h"
|
||||
#include "model/UpdateNamespaceRequest.h"
|
||||
#include "model/UpdateNamespaceResult.h"
|
||||
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Acm
|
||||
{
|
||||
class ALIBABACLOUD_ACM_EXPORT AcmClient : public RoaServiceClient
|
||||
{
|
||||
public:
|
||||
typedef Outcome<Error, Model::CreateConfigurationResult> CreateConfigurationOutcome;
|
||||
typedef std::future<CreateConfigurationOutcome> CreateConfigurationOutcomeCallable;
|
||||
typedef std::function<void(const AcmClient*, const Model::CreateConfigurationRequest&, const CreateConfigurationOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> CreateConfigurationAsyncHandler;
|
||||
typedef Outcome<Error, Model::CreateNamespaceResult> CreateNamespaceOutcome;
|
||||
typedef std::future<CreateNamespaceOutcome> CreateNamespaceOutcomeCallable;
|
||||
typedef std::function<void(const AcmClient*, const Model::CreateNamespaceRequest&, const CreateNamespaceOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> CreateNamespaceAsyncHandler;
|
||||
typedef Outcome<Error, Model::DeleteConfigurationResult> DeleteConfigurationOutcome;
|
||||
typedef std::future<DeleteConfigurationOutcome> DeleteConfigurationOutcomeCallable;
|
||||
typedef std::function<void(const AcmClient*, const Model::DeleteConfigurationRequest&, const DeleteConfigurationOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DeleteConfigurationAsyncHandler;
|
||||
typedef Outcome<Error, Model::DeleteNamespaceResult> DeleteNamespaceOutcome;
|
||||
typedef std::future<DeleteNamespaceOutcome> DeleteNamespaceOutcomeCallable;
|
||||
typedef std::function<void(const AcmClient*, const Model::DeleteNamespaceRequest&, const DeleteNamespaceOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DeleteNamespaceAsyncHandler;
|
||||
typedef Outcome<Error, Model::DeployConfigurationResult> DeployConfigurationOutcome;
|
||||
typedef std::future<DeployConfigurationOutcome> DeployConfigurationOutcomeCallable;
|
||||
typedef std::function<void(const AcmClient*, const Model::DeployConfigurationRequest&, const DeployConfigurationOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DeployConfigurationAsyncHandler;
|
||||
typedef Outcome<Error, Model::DescribeConfigurationResult> DescribeConfigurationOutcome;
|
||||
typedef std::future<DescribeConfigurationOutcome> DescribeConfigurationOutcomeCallable;
|
||||
typedef std::function<void(const AcmClient*, const Model::DescribeConfigurationRequest&, const DescribeConfigurationOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeConfigurationAsyncHandler;
|
||||
typedef Outcome<Error, Model::DescribeNamespaceResult> DescribeNamespaceOutcome;
|
||||
typedef std::future<DescribeNamespaceOutcome> DescribeNamespaceOutcomeCallable;
|
||||
typedef std::function<void(const AcmClient*, const Model::DescribeNamespaceRequest&, const DescribeNamespaceOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeNamespaceAsyncHandler;
|
||||
typedef Outcome<Error, Model::DescribeNamespacesResult> DescribeNamespacesOutcome;
|
||||
typedef std::future<DescribeNamespacesOutcome> DescribeNamespacesOutcomeCallable;
|
||||
typedef std::function<void(const AcmClient*, const Model::DescribeNamespacesRequest&, const DescribeNamespacesOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeNamespacesAsyncHandler;
|
||||
typedef Outcome<Error, Model::UpdateNamespaceResult> UpdateNamespaceOutcome;
|
||||
typedef std::future<UpdateNamespaceOutcome> UpdateNamespaceOutcomeCallable;
|
||||
typedef std::function<void(const AcmClient*, const Model::UpdateNamespaceRequest&, const UpdateNamespaceOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> UpdateNamespaceAsyncHandler;
|
||||
|
||||
AcmClient(const Credentials &credentials, const ClientConfiguration &configuration);
|
||||
AcmClient(const std::shared_ptr<CredentialsProvider> &credentialsProvider, const ClientConfiguration &configuration);
|
||||
AcmClient(const std::string &accessKeyId, const std::string &accessKeySecret, const ClientConfiguration &configuration);
|
||||
~AcmClient();
|
||||
CreateConfigurationOutcome createConfiguration(const Model::CreateConfigurationRequest &request)const;
|
||||
void createConfigurationAsync(const Model::CreateConfigurationRequest& request, const CreateConfigurationAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
CreateConfigurationOutcomeCallable createConfigurationCallable(const Model::CreateConfigurationRequest& request) const;
|
||||
CreateNamespaceOutcome createNamespace(const Model::CreateNamespaceRequest &request)const;
|
||||
void createNamespaceAsync(const Model::CreateNamespaceRequest& request, const CreateNamespaceAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
CreateNamespaceOutcomeCallable createNamespaceCallable(const Model::CreateNamespaceRequest& request) const;
|
||||
DeleteConfigurationOutcome deleteConfiguration(const Model::DeleteConfigurationRequest &request)const;
|
||||
void deleteConfigurationAsync(const Model::DeleteConfigurationRequest& request, const DeleteConfigurationAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DeleteConfigurationOutcomeCallable deleteConfigurationCallable(const Model::DeleteConfigurationRequest& request) const;
|
||||
DeleteNamespaceOutcome deleteNamespace(const Model::DeleteNamespaceRequest &request)const;
|
||||
void deleteNamespaceAsync(const Model::DeleteNamespaceRequest& request, const DeleteNamespaceAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DeleteNamespaceOutcomeCallable deleteNamespaceCallable(const Model::DeleteNamespaceRequest& request) const;
|
||||
DeployConfigurationOutcome deployConfiguration(const Model::DeployConfigurationRequest &request)const;
|
||||
void deployConfigurationAsync(const Model::DeployConfigurationRequest& request, const DeployConfigurationAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DeployConfigurationOutcomeCallable deployConfigurationCallable(const Model::DeployConfigurationRequest& request) const;
|
||||
DescribeConfigurationOutcome describeConfiguration(const Model::DescribeConfigurationRequest &request)const;
|
||||
void describeConfigurationAsync(const Model::DescribeConfigurationRequest& request, const DescribeConfigurationAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DescribeConfigurationOutcomeCallable describeConfigurationCallable(const Model::DescribeConfigurationRequest& request) const;
|
||||
DescribeNamespaceOutcome describeNamespace(const Model::DescribeNamespaceRequest &request)const;
|
||||
void describeNamespaceAsync(const Model::DescribeNamespaceRequest& request, const DescribeNamespaceAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DescribeNamespaceOutcomeCallable describeNamespaceCallable(const Model::DescribeNamespaceRequest& request) const;
|
||||
DescribeNamespacesOutcome describeNamespaces(const Model::DescribeNamespacesRequest &request)const;
|
||||
void describeNamespacesAsync(const Model::DescribeNamespacesRequest& request, const DescribeNamespacesAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DescribeNamespacesOutcomeCallable describeNamespacesCallable(const Model::DescribeNamespacesRequest& request) const;
|
||||
UpdateNamespaceOutcome updateNamespace(const Model::UpdateNamespaceRequest &request)const;
|
||||
void updateNamespaceAsync(const Model::UpdateNamespaceRequest& request, const UpdateNamespaceAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
UpdateNamespaceOutcomeCallable updateNamespaceCallable(const Model::UpdateNamespaceRequest& request) const;
|
||||
|
||||
private:
|
||||
std::shared_ptr<EndpointProvider> endpointProvider_;
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
#endif // !ALIBABACLOUD_ACM_ACMCLIENT_H_
|
||||
32
acm/include/alibabacloud/acm/AcmExport.h
Normal file
32
acm/include/alibabacloud/acm/AcmExport.h
Normal file
@@ -0,0 +1,32 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_ACM_ACMEXPORT_H_
|
||||
#define ALIBABACLOUD_ACM_ACMEXPORT_H_
|
||||
|
||||
#include <alibabacloud/core/Global.h>
|
||||
|
||||
#if defined(ALIBABACLOUD_SHARED)
|
||||
# if defined(ALIBABACLOUD_ACM_LIBRARY)
|
||||
# define ALIBABACLOUD_ACM_EXPORT ALIBABACLOUD_DECL_EXPORT
|
||||
# else
|
||||
# define ALIBABACLOUD_ACM_EXPORT ALIBABACLOUD_DECL_IMPORT
|
||||
# endif
|
||||
#else
|
||||
# define ALIBABACLOUD_ACM_EXPORT
|
||||
#endif
|
||||
|
||||
#endif // !ALIBABACLOUD_ACM_ACMEXPORT_H_
|
||||
@@ -0,0 +1,69 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_ACM_MODEL_CREATECONFIGURATIONREQUEST_H_
|
||||
#define ALIBABACLOUD_ACM_MODEL_CREATECONFIGURATIONREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RoaServiceRequest.h>
|
||||
#include <alibabacloud/acm/AcmExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Acm
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_ACM_EXPORT CreateConfigurationRequest : public RoaServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
CreateConfigurationRequest();
|
||||
~CreateConfigurationRequest();
|
||||
|
||||
std::string getDataId()const;
|
||||
void setDataId(const std::string& dataId);
|
||||
std::string getAppName()const;
|
||||
void setAppName(const std::string& appName);
|
||||
std::string getNamespaceId()const;
|
||||
void setNamespaceId(const std::string& namespaceId);
|
||||
std::string getType()const;
|
||||
void setType(const std::string& type);
|
||||
std::string getContent()const;
|
||||
void setContent(const std::string& content);
|
||||
std::string getGroup()const;
|
||||
void setGroup(const std::string& group);
|
||||
std::string getDesc()const;
|
||||
void setDesc(const std::string& desc);
|
||||
std::string getTags()const;
|
||||
void setTags(const std::string& tags);
|
||||
|
||||
private:
|
||||
std::string dataId_;
|
||||
std::string appName_;
|
||||
std::string namespaceId_;
|
||||
std::string type_;
|
||||
std::string content_;
|
||||
std::string group_;
|
||||
std::string desc_;
|
||||
std::string tags_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_ACM_MODEL_CREATECONFIGURATIONREQUEST_H_
|
||||
@@ -0,0 +1,53 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_ACM_MODEL_CREATECONFIGURATIONRESULT_H_
|
||||
#define ALIBABACLOUD_ACM_MODEL_CREATECONFIGURATIONRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/acm/AcmExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Acm
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_ACM_EXPORT CreateConfigurationResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
|
||||
|
||||
CreateConfigurationResult();
|
||||
explicit CreateConfigurationResult(const std::string &payload);
|
||||
~CreateConfigurationResult();
|
||||
std::string getMessage()const;
|
||||
std::string getCode()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::string message_;
|
||||
std::string code_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_ACM_MODEL_CREATECONFIGURATIONRESULT_H_
|
||||
48
acm/include/alibabacloud/acm/model/CreateNamespaceRequest.h
Normal file
48
acm/include/alibabacloud/acm/model/CreateNamespaceRequest.h
Normal file
@@ -0,0 +1,48 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_ACM_MODEL_CREATENAMESPACEREQUEST_H_
|
||||
#define ALIBABACLOUD_ACM_MODEL_CREATENAMESPACEREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RoaServiceRequest.h>
|
||||
#include <alibabacloud/acm/AcmExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Acm
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_ACM_EXPORT CreateNamespaceRequest : public RoaServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
CreateNamespaceRequest();
|
||||
~CreateNamespaceRequest();
|
||||
|
||||
std::string getName()const;
|
||||
void setName(const std::string& name);
|
||||
|
||||
private:
|
||||
std::string name_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_ACM_MODEL_CREATENAMESPACEREQUEST_H_
|
||||
55
acm/include/alibabacloud/acm/model/CreateNamespaceResult.h
Normal file
55
acm/include/alibabacloud/acm/model/CreateNamespaceResult.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_ACM_MODEL_CREATENAMESPACERESULT_H_
|
||||
#define ALIBABACLOUD_ACM_MODEL_CREATENAMESPACERESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/acm/AcmExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Acm
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_ACM_EXPORT CreateNamespaceResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
|
||||
|
||||
CreateNamespaceResult();
|
||||
explicit CreateNamespaceResult(const std::string &payload);
|
||||
~CreateNamespaceResult();
|
||||
std::string getMessage()const;
|
||||
std::string getNamespaceId()const;
|
||||
std::string getCode()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::string message_;
|
||||
std::string namespaceId_;
|
||||
std::string code_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_ACM_MODEL_CREATENAMESPACERESULT_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_ACM_MODEL_DELETECONFIGURATIONREQUEST_H_
|
||||
#define ALIBABACLOUD_ACM_MODEL_DELETECONFIGURATIONREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RoaServiceRequest.h>
|
||||
#include <alibabacloud/acm/AcmExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Acm
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_ACM_EXPORT DeleteConfigurationRequest : public RoaServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
DeleteConfigurationRequest();
|
||||
~DeleteConfigurationRequest();
|
||||
|
||||
std::string getDataId()const;
|
||||
void setDataId(const std::string& dataId);
|
||||
std::string getNamespaceId()const;
|
||||
void setNamespaceId(const std::string& namespaceId);
|
||||
std::string getGroup()const;
|
||||
void setGroup(const std::string& group);
|
||||
|
||||
private:
|
||||
std::string dataId_;
|
||||
std::string namespaceId_;
|
||||
std::string group_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_ACM_MODEL_DELETECONFIGURATIONREQUEST_H_
|
||||
@@ -0,0 +1,53 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_ACM_MODEL_DELETECONFIGURATIONRESULT_H_
|
||||
#define ALIBABACLOUD_ACM_MODEL_DELETECONFIGURATIONRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/acm/AcmExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Acm
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_ACM_EXPORT DeleteConfigurationResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
|
||||
|
||||
DeleteConfigurationResult();
|
||||
explicit DeleteConfigurationResult(const std::string &payload);
|
||||
~DeleteConfigurationResult();
|
||||
std::string getMessage()const;
|
||||
std::string getCode()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::string message_;
|
||||
std::string code_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_ACM_MODEL_DELETECONFIGURATIONRESULT_H_
|
||||
48
acm/include/alibabacloud/acm/model/DeleteNamespaceRequest.h
Normal file
48
acm/include/alibabacloud/acm/model/DeleteNamespaceRequest.h
Normal file
@@ -0,0 +1,48 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_ACM_MODEL_DELETENAMESPACEREQUEST_H_
|
||||
#define ALIBABACLOUD_ACM_MODEL_DELETENAMESPACEREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RoaServiceRequest.h>
|
||||
#include <alibabacloud/acm/AcmExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Acm
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_ACM_EXPORT DeleteNamespaceRequest : public RoaServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
DeleteNamespaceRequest();
|
||||
~DeleteNamespaceRequest();
|
||||
|
||||
std::string getNamespaceId()const;
|
||||
void setNamespaceId(const std::string& namespaceId);
|
||||
|
||||
private:
|
||||
std::string namespaceId_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_ACM_MODEL_DELETENAMESPACEREQUEST_H_
|
||||
53
acm/include/alibabacloud/acm/model/DeleteNamespaceResult.h
Normal file
53
acm/include/alibabacloud/acm/model/DeleteNamespaceResult.h
Normal file
@@ -0,0 +1,53 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_ACM_MODEL_DELETENAMESPACERESULT_H_
|
||||
#define ALIBABACLOUD_ACM_MODEL_DELETENAMESPACERESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/acm/AcmExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Acm
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_ACM_EXPORT DeleteNamespaceResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
|
||||
|
||||
DeleteNamespaceResult();
|
||||
explicit DeleteNamespaceResult(const std::string &payload);
|
||||
~DeleteNamespaceResult();
|
||||
std::string getMessage()const;
|
||||
std::string getCode()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::string message_;
|
||||
std::string code_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_ACM_MODEL_DELETENAMESPACERESULT_H_
|
||||
@@ -0,0 +1,69 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_ACM_MODEL_DEPLOYCONFIGURATIONREQUEST_H_
|
||||
#define ALIBABACLOUD_ACM_MODEL_DEPLOYCONFIGURATIONREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RoaServiceRequest.h>
|
||||
#include <alibabacloud/acm/AcmExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Acm
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_ACM_EXPORT DeployConfigurationRequest : public RoaServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
DeployConfigurationRequest();
|
||||
~DeployConfigurationRequest();
|
||||
|
||||
std::string getDataId()const;
|
||||
void setDataId(const std::string& dataId);
|
||||
std::string getAppName()const;
|
||||
void setAppName(const std::string& appName);
|
||||
std::string getNamespaceId()const;
|
||||
void setNamespaceId(const std::string& namespaceId);
|
||||
std::string getType()const;
|
||||
void setType(const std::string& type);
|
||||
std::string getContent()const;
|
||||
void setContent(const std::string& content);
|
||||
std::string getGroup()const;
|
||||
void setGroup(const std::string& group);
|
||||
std::string getDesc()const;
|
||||
void setDesc(const std::string& desc);
|
||||
std::string getTags()const;
|
||||
void setTags(const std::string& tags);
|
||||
|
||||
private:
|
||||
std::string dataId_;
|
||||
std::string appName_;
|
||||
std::string namespaceId_;
|
||||
std::string type_;
|
||||
std::string content_;
|
||||
std::string group_;
|
||||
std::string desc_;
|
||||
std::string tags_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_ACM_MODEL_DEPLOYCONFIGURATIONREQUEST_H_
|
||||
@@ -0,0 +1,53 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_ACM_MODEL_DEPLOYCONFIGURATIONRESULT_H_
|
||||
#define ALIBABACLOUD_ACM_MODEL_DEPLOYCONFIGURATIONRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/acm/AcmExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Acm
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_ACM_EXPORT DeployConfigurationResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
|
||||
|
||||
DeployConfigurationResult();
|
||||
explicit DeployConfigurationResult(const std::string &payload);
|
||||
~DeployConfigurationResult();
|
||||
std::string getMessage()const;
|
||||
std::string getCode()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::string message_;
|
||||
std::string code_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_ACM_MODEL_DEPLOYCONFIGURATIONRESULT_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_ACM_MODEL_DESCRIBECONFIGURATIONREQUEST_H_
|
||||
#define ALIBABACLOUD_ACM_MODEL_DESCRIBECONFIGURATIONREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RoaServiceRequest.h>
|
||||
#include <alibabacloud/acm/AcmExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Acm
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_ACM_EXPORT DescribeConfigurationRequest : public RoaServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
DescribeConfigurationRequest();
|
||||
~DescribeConfigurationRequest();
|
||||
|
||||
std::string getDataId()const;
|
||||
void setDataId(const std::string& dataId);
|
||||
std::string getNamespaceId()const;
|
||||
void setNamespaceId(const std::string& namespaceId);
|
||||
std::string getGroup()const;
|
||||
void setGroup(const std::string& group);
|
||||
|
||||
private:
|
||||
std::string dataId_;
|
||||
std::string namespaceId_;
|
||||
std::string group_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_ACM_MODEL_DESCRIBECONFIGURATIONREQUEST_H_
|
||||
@@ -0,0 +1,66 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_ACM_MODEL_DESCRIBECONFIGURATIONRESULT_H_
|
||||
#define ALIBABACLOUD_ACM_MODEL_DESCRIBECONFIGURATIONRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/acm/AcmExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Acm
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_ACM_EXPORT DescribeConfigurationResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct Configuration
|
||||
{
|
||||
std::string desc;
|
||||
std::string group;
|
||||
std::string type;
|
||||
std::string dataId;
|
||||
std::string content;
|
||||
std::string tags;
|
||||
std::string appName;
|
||||
std::string md5;
|
||||
};
|
||||
|
||||
|
||||
DescribeConfigurationResult();
|
||||
explicit DescribeConfigurationResult(const std::string &payload);
|
||||
~DescribeConfigurationResult();
|
||||
Configuration getConfiguration()const;
|
||||
std::string getMessage()const;
|
||||
std::string getCode()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
Configuration configuration_;
|
||||
std::string message_;
|
||||
std::string code_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_ACM_MODEL_DESCRIBECONFIGURATIONRESULT_H_
|
||||
@@ -0,0 +1,48 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_ACM_MODEL_DESCRIBENAMESPACEREQUEST_H_
|
||||
#define ALIBABACLOUD_ACM_MODEL_DESCRIBENAMESPACEREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RoaServiceRequest.h>
|
||||
#include <alibabacloud/acm/AcmExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Acm
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_ACM_EXPORT DescribeNamespaceRequest : public RoaServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
DescribeNamespaceRequest();
|
||||
~DescribeNamespaceRequest();
|
||||
|
||||
std::string getNamespaceId()const;
|
||||
void setNamespaceId(const std::string& namespaceId);
|
||||
|
||||
private:
|
||||
std::string namespaceId_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_ACM_MODEL_DESCRIBENAMESPACEREQUEST_H_
|
||||
63
acm/include/alibabacloud/acm/model/DescribeNamespaceResult.h
Normal file
63
acm/include/alibabacloud/acm/model/DescribeNamespaceResult.h
Normal file
@@ -0,0 +1,63 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_ACM_MODEL_DESCRIBENAMESPACERESULT_H_
|
||||
#define ALIBABACLOUD_ACM_MODEL_DESCRIBENAMESPACERESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/acm/AcmExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Acm
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_ACM_EXPORT DescribeNamespaceResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct _Namespace
|
||||
{
|
||||
std::string secretKey;
|
||||
std::string endpoint;
|
||||
std::string accessKey;
|
||||
std::string regionId;
|
||||
std::string name;
|
||||
};
|
||||
|
||||
|
||||
DescribeNamespaceResult();
|
||||
explicit DescribeNamespaceResult(const std::string &payload);
|
||||
~DescribeNamespaceResult();
|
||||
std::string getMessage()const;
|
||||
_Namespace get_Namespace()const;
|
||||
std::string getCode()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::string message_;
|
||||
_Namespace _namespace_;
|
||||
std::string code_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_ACM_MODEL_DESCRIBENAMESPACERESULT_H_
|
||||
@@ -0,0 +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_ACM_MODEL_DESCRIBENAMESPACESREQUEST_H_
|
||||
#define ALIBABACLOUD_ACM_MODEL_DESCRIBENAMESPACESREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RoaServiceRequest.h>
|
||||
#include <alibabacloud/acm/AcmExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Acm
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_ACM_EXPORT DescribeNamespacesRequest : public RoaServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
DescribeNamespacesRequest();
|
||||
~DescribeNamespacesRequest();
|
||||
|
||||
|
||||
private:
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_ACM_MODEL_DESCRIBENAMESPACESREQUEST_H_
|
||||
@@ -0,0 +1,63 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_ACM_MODEL_DESCRIBENAMESPACESRESULT_H_
|
||||
#define ALIBABACLOUD_ACM_MODEL_DESCRIBENAMESPACESRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/acm/AcmExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Acm
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_ACM_EXPORT DescribeNamespacesResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct _Namespace
|
||||
{
|
||||
std::string namespaceName;
|
||||
int type;
|
||||
int quota;
|
||||
int configCount;
|
||||
std::string namespaceId;
|
||||
};
|
||||
|
||||
|
||||
DescribeNamespacesResult();
|
||||
explicit DescribeNamespacesResult(const std::string &payload);
|
||||
~DescribeNamespacesResult();
|
||||
std::vector<_Namespace> getNamespaces()const;
|
||||
std::string getMessage()const;
|
||||
std::string getCode()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::vector<_Namespace> namespaces_;
|
||||
std::string message_;
|
||||
std::string code_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_ACM_MODEL_DESCRIBENAMESPACESRESULT_H_
|
||||
51
acm/include/alibabacloud/acm/model/UpdateNamespaceRequest.h
Normal file
51
acm/include/alibabacloud/acm/model/UpdateNamespaceRequest.h
Normal file
@@ -0,0 +1,51 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_ACM_MODEL_UPDATENAMESPACEREQUEST_H_
|
||||
#define ALIBABACLOUD_ACM_MODEL_UPDATENAMESPACEREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RoaServiceRequest.h>
|
||||
#include <alibabacloud/acm/AcmExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Acm
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_ACM_EXPORT UpdateNamespaceRequest : public RoaServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
UpdateNamespaceRequest();
|
||||
~UpdateNamespaceRequest();
|
||||
|
||||
std::string getNamespaceName()const;
|
||||
void setNamespaceName(const std::string& namespaceName);
|
||||
std::string getNamespaceId()const;
|
||||
void setNamespaceId(const std::string& namespaceId);
|
||||
|
||||
private:
|
||||
std::string namespaceName_;
|
||||
std::string namespaceId_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_ACM_MODEL_UPDATENAMESPACEREQUEST_H_
|
||||
53
acm/include/alibabacloud/acm/model/UpdateNamespaceResult.h
Normal file
53
acm/include/alibabacloud/acm/model/UpdateNamespaceResult.h
Normal file
@@ -0,0 +1,53 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_ACM_MODEL_UPDATENAMESPACERESULT_H_
|
||||
#define ALIBABACLOUD_ACM_MODEL_UPDATENAMESPACERESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/acm/AcmExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Acm
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_ACM_EXPORT UpdateNamespaceResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
|
||||
|
||||
UpdateNamespaceResult();
|
||||
explicit UpdateNamespaceResult(const std::string &payload);
|
||||
~UpdateNamespaceResult();
|
||||
std::string getMessage()const;
|
||||
std::string getCode()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::string message_;
|
||||
std::string code_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_ACM_MODEL_UPDATENAMESPACERESULT_H_
|
||||
377
acm/src/AcmClient.cc
Normal file
377
acm/src/AcmClient.cc
Normal file
@@ -0,0 +1,377 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT 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/acm/AcmClient.h>
|
||||
#include <alibabacloud/core/SimpleCredentialsProvider.h>
|
||||
|
||||
using namespace AlibabaCloud;
|
||||
using namespace AlibabaCloud::Location;
|
||||
using namespace AlibabaCloud::Acm;
|
||||
using namespace AlibabaCloud::Acm::Model;
|
||||
|
||||
namespace
|
||||
{
|
||||
const std::string SERVICE_NAME = "acm";
|
||||
}
|
||||
|
||||
AcmClient::AcmClient(const Credentials &credentials, const ClientConfiguration &configuration) :
|
||||
RoaServiceClient(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, "acms");
|
||||
}
|
||||
|
||||
AcmClient::AcmClient(const std::shared_ptr<CredentialsProvider>& credentialsProvider, const ClientConfiguration & configuration) :
|
||||
RoaServiceClient(SERVICE_NAME, credentialsProvider, configuration)
|
||||
{
|
||||
auto locationClient = std::make_shared<LocationClient>(credentialsProvider, configuration);
|
||||
endpointProvider_ = std::make_shared<EndpointProvider>(locationClient, configuration.regionId(), SERVICE_NAME, "acms");
|
||||
}
|
||||
|
||||
AcmClient::AcmClient(const std::string & accessKeyId, const std::string & accessKeySecret, const ClientConfiguration & configuration) :
|
||||
RoaServiceClient(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, "acms");
|
||||
}
|
||||
|
||||
AcmClient::~AcmClient()
|
||||
{}
|
||||
|
||||
AcmClient::CreateConfigurationOutcome AcmClient::createConfiguration(const CreateConfigurationRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return CreateConfigurationOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return CreateConfigurationOutcome(CreateConfigurationResult(outcome.result()));
|
||||
else
|
||||
return CreateConfigurationOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void AcmClient::createConfigurationAsync(const CreateConfigurationRequest& request, const CreateConfigurationAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, createConfiguration(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
AcmClient::CreateConfigurationOutcomeCallable AcmClient::createConfigurationCallable(const CreateConfigurationRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<CreateConfigurationOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->createConfiguration(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
AcmClient::CreateNamespaceOutcome AcmClient::createNamespace(const CreateNamespaceRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return CreateNamespaceOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return CreateNamespaceOutcome(CreateNamespaceResult(outcome.result()));
|
||||
else
|
||||
return CreateNamespaceOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void AcmClient::createNamespaceAsync(const CreateNamespaceRequest& request, const CreateNamespaceAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, createNamespace(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
AcmClient::CreateNamespaceOutcomeCallable AcmClient::createNamespaceCallable(const CreateNamespaceRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<CreateNamespaceOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->createNamespace(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
AcmClient::DeleteConfigurationOutcome AcmClient::deleteConfiguration(const DeleteConfigurationRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return DeleteConfigurationOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return DeleteConfigurationOutcome(DeleteConfigurationResult(outcome.result()));
|
||||
else
|
||||
return DeleteConfigurationOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void AcmClient::deleteConfigurationAsync(const DeleteConfigurationRequest& request, const DeleteConfigurationAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, deleteConfiguration(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
AcmClient::DeleteConfigurationOutcomeCallable AcmClient::deleteConfigurationCallable(const DeleteConfigurationRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<DeleteConfigurationOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->deleteConfiguration(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
AcmClient::DeleteNamespaceOutcome AcmClient::deleteNamespace(const DeleteNamespaceRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return DeleteNamespaceOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return DeleteNamespaceOutcome(DeleteNamespaceResult(outcome.result()));
|
||||
else
|
||||
return DeleteNamespaceOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void AcmClient::deleteNamespaceAsync(const DeleteNamespaceRequest& request, const DeleteNamespaceAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, deleteNamespace(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
AcmClient::DeleteNamespaceOutcomeCallable AcmClient::deleteNamespaceCallable(const DeleteNamespaceRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<DeleteNamespaceOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->deleteNamespace(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
AcmClient::DeployConfigurationOutcome AcmClient::deployConfiguration(const DeployConfigurationRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return DeployConfigurationOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return DeployConfigurationOutcome(DeployConfigurationResult(outcome.result()));
|
||||
else
|
||||
return DeployConfigurationOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void AcmClient::deployConfigurationAsync(const DeployConfigurationRequest& request, const DeployConfigurationAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, deployConfiguration(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
AcmClient::DeployConfigurationOutcomeCallable AcmClient::deployConfigurationCallable(const DeployConfigurationRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<DeployConfigurationOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->deployConfiguration(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
AcmClient::DescribeConfigurationOutcome AcmClient::describeConfiguration(const DescribeConfigurationRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return DescribeConfigurationOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return DescribeConfigurationOutcome(DescribeConfigurationResult(outcome.result()));
|
||||
else
|
||||
return DescribeConfigurationOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void AcmClient::describeConfigurationAsync(const DescribeConfigurationRequest& request, const DescribeConfigurationAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, describeConfiguration(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
AcmClient::DescribeConfigurationOutcomeCallable AcmClient::describeConfigurationCallable(const DescribeConfigurationRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<DescribeConfigurationOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->describeConfiguration(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
AcmClient::DescribeNamespaceOutcome AcmClient::describeNamespace(const DescribeNamespaceRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return DescribeNamespaceOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return DescribeNamespaceOutcome(DescribeNamespaceResult(outcome.result()));
|
||||
else
|
||||
return DescribeNamespaceOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void AcmClient::describeNamespaceAsync(const DescribeNamespaceRequest& request, const DescribeNamespaceAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, describeNamespace(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
AcmClient::DescribeNamespaceOutcomeCallable AcmClient::describeNamespaceCallable(const DescribeNamespaceRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<DescribeNamespaceOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->describeNamespace(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
AcmClient::DescribeNamespacesOutcome AcmClient::describeNamespaces(const DescribeNamespacesRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return DescribeNamespacesOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return DescribeNamespacesOutcome(DescribeNamespacesResult(outcome.result()));
|
||||
else
|
||||
return DescribeNamespacesOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void AcmClient::describeNamespacesAsync(const DescribeNamespacesRequest& request, const DescribeNamespacesAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, describeNamespaces(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
AcmClient::DescribeNamespacesOutcomeCallable AcmClient::describeNamespacesCallable(const DescribeNamespacesRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<DescribeNamespacesOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->describeNamespaces(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
AcmClient::UpdateNamespaceOutcome AcmClient::updateNamespace(const UpdateNamespaceRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return UpdateNamespaceOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return UpdateNamespaceOutcome(UpdateNamespaceResult(outcome.result()));
|
||||
else
|
||||
return UpdateNamespaceOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void AcmClient::updateNamespaceAsync(const UpdateNamespaceRequest& request, const UpdateNamespaceAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, updateNamespace(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
AcmClient::UpdateNamespaceOutcomeCallable AcmClient::updateNamespaceCallable(const UpdateNamespaceRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<UpdateNamespaceOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->updateNamespace(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
118
acm/src/model/CreateConfigurationRequest.cc
Normal file
118
acm/src/model/CreateConfigurationRequest.cc
Normal file
@@ -0,0 +1,118 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT 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/acm/model/CreateConfigurationRequest.h>
|
||||
|
||||
using AlibabaCloud::Acm::Model::CreateConfigurationRequest;
|
||||
|
||||
CreateConfigurationRequest::CreateConfigurationRequest() :
|
||||
RoaServiceRequest("acm", "2020-02-06")
|
||||
{
|
||||
setResourcePath("/diamond-ops/pop/configuration");
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
CreateConfigurationRequest::~CreateConfigurationRequest()
|
||||
{}
|
||||
|
||||
std::string CreateConfigurationRequest::getDataId()const
|
||||
{
|
||||
return dataId_;
|
||||
}
|
||||
|
||||
void CreateConfigurationRequest::setDataId(const std::string& dataId)
|
||||
{
|
||||
dataId_ = dataId;
|
||||
setBodyParameter("DataId", dataId);
|
||||
}
|
||||
|
||||
std::string CreateConfigurationRequest::getAppName()const
|
||||
{
|
||||
return appName_;
|
||||
}
|
||||
|
||||
void CreateConfigurationRequest::setAppName(const std::string& appName)
|
||||
{
|
||||
appName_ = appName;
|
||||
setBodyParameter("AppName", appName);
|
||||
}
|
||||
|
||||
std::string CreateConfigurationRequest::getNamespaceId()const
|
||||
{
|
||||
return namespaceId_;
|
||||
}
|
||||
|
||||
void CreateConfigurationRequest::setNamespaceId(const std::string& namespaceId)
|
||||
{
|
||||
namespaceId_ = namespaceId;
|
||||
setBodyParameter("NamespaceId", namespaceId);
|
||||
}
|
||||
|
||||
std::string CreateConfigurationRequest::getType()const
|
||||
{
|
||||
return type_;
|
||||
}
|
||||
|
||||
void CreateConfigurationRequest::setType(const std::string& type)
|
||||
{
|
||||
type_ = type;
|
||||
setBodyParameter("Type", type);
|
||||
}
|
||||
|
||||
std::string CreateConfigurationRequest::getContent()const
|
||||
{
|
||||
return content_;
|
||||
}
|
||||
|
||||
void CreateConfigurationRequest::setContent(const std::string& content)
|
||||
{
|
||||
content_ = content;
|
||||
setBodyParameter("Content", content);
|
||||
}
|
||||
|
||||
std::string CreateConfigurationRequest::getGroup()const
|
||||
{
|
||||
return group_;
|
||||
}
|
||||
|
||||
void CreateConfigurationRequest::setGroup(const std::string& group)
|
||||
{
|
||||
group_ = group;
|
||||
setBodyParameter("Group", group);
|
||||
}
|
||||
|
||||
std::string CreateConfigurationRequest::getDesc()const
|
||||
{
|
||||
return desc_;
|
||||
}
|
||||
|
||||
void CreateConfigurationRequest::setDesc(const std::string& desc)
|
||||
{
|
||||
desc_ = desc;
|
||||
setBodyParameter("Desc", desc);
|
||||
}
|
||||
|
||||
std::string CreateConfigurationRequest::getTags()const
|
||||
{
|
||||
return tags_;
|
||||
}
|
||||
|
||||
void CreateConfigurationRequest::setTags(const std::string& tags)
|
||||
{
|
||||
tags_ = tags;
|
||||
setBodyParameter("Tags", tags);
|
||||
}
|
||||
|
||||
58
acm/src/model/CreateConfigurationResult.cc
Normal file
58
acm/src/model/CreateConfigurationResult.cc
Normal file
@@ -0,0 +1,58 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT 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/acm/model/CreateConfigurationResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Acm;
|
||||
using namespace AlibabaCloud::Acm::Model;
|
||||
|
||||
CreateConfigurationResult::CreateConfigurationResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
CreateConfigurationResult::CreateConfigurationResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
CreateConfigurationResult::~CreateConfigurationResult()
|
||||
{}
|
||||
|
||||
void CreateConfigurationResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string CreateConfigurationResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
std::string CreateConfigurationResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
41
acm/src/model/CreateNamespaceRequest.cc
Normal file
41
acm/src/model/CreateNamespaceRequest.cc
Normal file
@@ -0,0 +1,41 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT 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/acm/model/CreateNamespaceRequest.h>
|
||||
|
||||
using AlibabaCloud::Acm::Model::CreateNamespaceRequest;
|
||||
|
||||
CreateNamespaceRequest::CreateNamespaceRequest() :
|
||||
RoaServiceRequest("acm", "2020-02-06")
|
||||
{
|
||||
setResourcePath("/diamond-ops/pop/namespace");
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
CreateNamespaceRequest::~CreateNamespaceRequest()
|
||||
{}
|
||||
|
||||
std::string CreateNamespaceRequest::getName()const
|
||||
{
|
||||
return name_;
|
||||
}
|
||||
|
||||
void CreateNamespaceRequest::setName(const std::string& name)
|
||||
{
|
||||
name_ = name;
|
||||
setBodyParameter("Name", name);
|
||||
}
|
||||
|
||||
65
acm/src/model/CreateNamespaceResult.cc
Normal file
65
acm/src/model/CreateNamespaceResult.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/acm/model/CreateNamespaceResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Acm;
|
||||
using namespace AlibabaCloud::Acm::Model;
|
||||
|
||||
CreateNamespaceResult::CreateNamespaceResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
CreateNamespaceResult::CreateNamespaceResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
CreateNamespaceResult::~CreateNamespaceResult()
|
||||
{}
|
||||
|
||||
void CreateNamespaceResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
if(!value["NamespaceId"].isNull())
|
||||
namespaceId_ = value["NamespaceId"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string CreateNamespaceResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
std::string CreateNamespaceResult::getNamespaceId()const
|
||||
{
|
||||
return namespaceId_;
|
||||
}
|
||||
|
||||
std::string CreateNamespaceResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
63
acm/src/model/DeleteConfigurationRequest.cc
Normal file
63
acm/src/model/DeleteConfigurationRequest.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/acm/model/DeleteConfigurationRequest.h>
|
||||
|
||||
using AlibabaCloud::Acm::Model::DeleteConfigurationRequest;
|
||||
|
||||
DeleteConfigurationRequest::DeleteConfigurationRequest() :
|
||||
RoaServiceRequest("acm", "2020-02-06")
|
||||
{
|
||||
setResourcePath("/diamond-ops/pop/configuration");
|
||||
setMethod(HttpRequest::Method::Delete);
|
||||
}
|
||||
|
||||
DeleteConfigurationRequest::~DeleteConfigurationRequest()
|
||||
{}
|
||||
|
||||
std::string DeleteConfigurationRequest::getDataId()const
|
||||
{
|
||||
return dataId_;
|
||||
}
|
||||
|
||||
void DeleteConfigurationRequest::setDataId(const std::string& dataId)
|
||||
{
|
||||
dataId_ = dataId;
|
||||
setParameter("DataId", dataId);
|
||||
}
|
||||
|
||||
std::string DeleteConfigurationRequest::getNamespaceId()const
|
||||
{
|
||||
return namespaceId_;
|
||||
}
|
||||
|
||||
void DeleteConfigurationRequest::setNamespaceId(const std::string& namespaceId)
|
||||
{
|
||||
namespaceId_ = namespaceId;
|
||||
setParameter("NamespaceId", namespaceId);
|
||||
}
|
||||
|
||||
std::string DeleteConfigurationRequest::getGroup()const
|
||||
{
|
||||
return group_;
|
||||
}
|
||||
|
||||
void DeleteConfigurationRequest::setGroup(const std::string& group)
|
||||
{
|
||||
group_ = group;
|
||||
setParameter("Group", group);
|
||||
}
|
||||
|
||||
58
acm/src/model/DeleteConfigurationResult.cc
Normal file
58
acm/src/model/DeleteConfigurationResult.cc
Normal file
@@ -0,0 +1,58 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT 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/acm/model/DeleteConfigurationResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Acm;
|
||||
using namespace AlibabaCloud::Acm::Model;
|
||||
|
||||
DeleteConfigurationResult::DeleteConfigurationResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DeleteConfigurationResult::DeleteConfigurationResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DeleteConfigurationResult::~DeleteConfigurationResult()
|
||||
{}
|
||||
|
||||
void DeleteConfigurationResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string DeleteConfigurationResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
std::string DeleteConfigurationResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
41
acm/src/model/DeleteNamespaceRequest.cc
Normal file
41
acm/src/model/DeleteNamespaceRequest.cc
Normal file
@@ -0,0 +1,41 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT 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/acm/model/DeleteNamespaceRequest.h>
|
||||
|
||||
using AlibabaCloud::Acm::Model::DeleteNamespaceRequest;
|
||||
|
||||
DeleteNamespaceRequest::DeleteNamespaceRequest() :
|
||||
RoaServiceRequest("acm", "2020-02-06")
|
||||
{
|
||||
setResourcePath("/diamond-ops/pop/namespace");
|
||||
setMethod(HttpRequest::Method::Delete);
|
||||
}
|
||||
|
||||
DeleteNamespaceRequest::~DeleteNamespaceRequest()
|
||||
{}
|
||||
|
||||
std::string DeleteNamespaceRequest::getNamespaceId()const
|
||||
{
|
||||
return namespaceId_;
|
||||
}
|
||||
|
||||
void DeleteNamespaceRequest::setNamespaceId(const std::string& namespaceId)
|
||||
{
|
||||
namespaceId_ = namespaceId;
|
||||
setParameter("NamespaceId", namespaceId);
|
||||
}
|
||||
|
||||
58
acm/src/model/DeleteNamespaceResult.cc
Normal file
58
acm/src/model/DeleteNamespaceResult.cc
Normal file
@@ -0,0 +1,58 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT 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/acm/model/DeleteNamespaceResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Acm;
|
||||
using namespace AlibabaCloud::Acm::Model;
|
||||
|
||||
DeleteNamespaceResult::DeleteNamespaceResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DeleteNamespaceResult::DeleteNamespaceResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DeleteNamespaceResult::~DeleteNamespaceResult()
|
||||
{}
|
||||
|
||||
void DeleteNamespaceResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string DeleteNamespaceResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
std::string DeleteNamespaceResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
118
acm/src/model/DeployConfigurationRequest.cc
Normal file
118
acm/src/model/DeployConfigurationRequest.cc
Normal file
@@ -0,0 +1,118 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT 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/acm/model/DeployConfigurationRequest.h>
|
||||
|
||||
using AlibabaCloud::Acm::Model::DeployConfigurationRequest;
|
||||
|
||||
DeployConfigurationRequest::DeployConfigurationRequest() :
|
||||
RoaServiceRequest("acm", "2020-02-06")
|
||||
{
|
||||
setResourcePath("/diamond-ops/pop/configuration");
|
||||
setMethod(HttpRequest::Method::Put);
|
||||
}
|
||||
|
||||
DeployConfigurationRequest::~DeployConfigurationRequest()
|
||||
{}
|
||||
|
||||
std::string DeployConfigurationRequest::getDataId()const
|
||||
{
|
||||
return dataId_;
|
||||
}
|
||||
|
||||
void DeployConfigurationRequest::setDataId(const std::string& dataId)
|
||||
{
|
||||
dataId_ = dataId;
|
||||
setBodyParameter("DataId", dataId);
|
||||
}
|
||||
|
||||
std::string DeployConfigurationRequest::getAppName()const
|
||||
{
|
||||
return appName_;
|
||||
}
|
||||
|
||||
void DeployConfigurationRequest::setAppName(const std::string& appName)
|
||||
{
|
||||
appName_ = appName;
|
||||
setBodyParameter("AppName", appName);
|
||||
}
|
||||
|
||||
std::string DeployConfigurationRequest::getNamespaceId()const
|
||||
{
|
||||
return namespaceId_;
|
||||
}
|
||||
|
||||
void DeployConfigurationRequest::setNamespaceId(const std::string& namespaceId)
|
||||
{
|
||||
namespaceId_ = namespaceId;
|
||||
setBodyParameter("NamespaceId", namespaceId);
|
||||
}
|
||||
|
||||
std::string DeployConfigurationRequest::getType()const
|
||||
{
|
||||
return type_;
|
||||
}
|
||||
|
||||
void DeployConfigurationRequest::setType(const std::string& type)
|
||||
{
|
||||
type_ = type;
|
||||
setBodyParameter("Type", type);
|
||||
}
|
||||
|
||||
std::string DeployConfigurationRequest::getContent()const
|
||||
{
|
||||
return content_;
|
||||
}
|
||||
|
||||
void DeployConfigurationRequest::setContent(const std::string& content)
|
||||
{
|
||||
content_ = content;
|
||||
setBodyParameter("Content", content);
|
||||
}
|
||||
|
||||
std::string DeployConfigurationRequest::getGroup()const
|
||||
{
|
||||
return group_;
|
||||
}
|
||||
|
||||
void DeployConfigurationRequest::setGroup(const std::string& group)
|
||||
{
|
||||
group_ = group;
|
||||
setBodyParameter("Group", group);
|
||||
}
|
||||
|
||||
std::string DeployConfigurationRequest::getDesc()const
|
||||
{
|
||||
return desc_;
|
||||
}
|
||||
|
||||
void DeployConfigurationRequest::setDesc(const std::string& desc)
|
||||
{
|
||||
desc_ = desc;
|
||||
setBodyParameter("Desc", desc);
|
||||
}
|
||||
|
||||
std::string DeployConfigurationRequest::getTags()const
|
||||
{
|
||||
return tags_;
|
||||
}
|
||||
|
||||
void DeployConfigurationRequest::setTags(const std::string& tags)
|
||||
{
|
||||
tags_ = tags;
|
||||
setBodyParameter("Tags", tags);
|
||||
}
|
||||
|
||||
58
acm/src/model/DeployConfigurationResult.cc
Normal file
58
acm/src/model/DeployConfigurationResult.cc
Normal file
@@ -0,0 +1,58 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT 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/acm/model/DeployConfigurationResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Acm;
|
||||
using namespace AlibabaCloud::Acm::Model;
|
||||
|
||||
DeployConfigurationResult::DeployConfigurationResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DeployConfigurationResult::DeployConfigurationResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DeployConfigurationResult::~DeployConfigurationResult()
|
||||
{}
|
||||
|
||||
void DeployConfigurationResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string DeployConfigurationResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
std::string DeployConfigurationResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
63
acm/src/model/DescribeConfigurationRequest.cc
Normal file
63
acm/src/model/DescribeConfigurationRequest.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/acm/model/DescribeConfigurationRequest.h>
|
||||
|
||||
using AlibabaCloud::Acm::Model::DescribeConfigurationRequest;
|
||||
|
||||
DescribeConfigurationRequest::DescribeConfigurationRequest() :
|
||||
RoaServiceRequest("acm", "2020-02-06")
|
||||
{
|
||||
setResourcePath("/diamond-ops/pop/configuration");
|
||||
setMethod(HttpRequest::Method::Get);
|
||||
}
|
||||
|
||||
DescribeConfigurationRequest::~DescribeConfigurationRequest()
|
||||
{}
|
||||
|
||||
std::string DescribeConfigurationRequest::getDataId()const
|
||||
{
|
||||
return dataId_;
|
||||
}
|
||||
|
||||
void DescribeConfigurationRequest::setDataId(const std::string& dataId)
|
||||
{
|
||||
dataId_ = dataId;
|
||||
setParameter("DataId", dataId);
|
||||
}
|
||||
|
||||
std::string DescribeConfigurationRequest::getNamespaceId()const
|
||||
{
|
||||
return namespaceId_;
|
||||
}
|
||||
|
||||
void DescribeConfigurationRequest::setNamespaceId(const std::string& namespaceId)
|
||||
{
|
||||
namespaceId_ = namespaceId;
|
||||
setParameter("NamespaceId", namespaceId);
|
||||
}
|
||||
|
||||
std::string DescribeConfigurationRequest::getGroup()const
|
||||
{
|
||||
return group_;
|
||||
}
|
||||
|
||||
void DescribeConfigurationRequest::setGroup(const std::string& group)
|
||||
{
|
||||
group_ = group;
|
||||
setParameter("Group", group);
|
||||
}
|
||||
|
||||
80
acm/src/model/DescribeConfigurationResult.cc
Normal file
80
acm/src/model/DescribeConfigurationResult.cc
Normal file
@@ -0,0 +1,80 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/acm/model/DescribeConfigurationResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Acm;
|
||||
using namespace AlibabaCloud::Acm::Model;
|
||||
|
||||
DescribeConfigurationResult::DescribeConfigurationResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DescribeConfigurationResult::DescribeConfigurationResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DescribeConfigurationResult::~DescribeConfigurationResult()
|
||||
{}
|
||||
|
||||
void DescribeConfigurationResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto configurationNode = value["Configuration"];
|
||||
if(!configurationNode["AppName"].isNull())
|
||||
configuration_.appName = configurationNode["AppName"].asString();
|
||||
if(!configurationNode["Content"].isNull())
|
||||
configuration_.content = configurationNode["Content"].asString();
|
||||
if(!configurationNode["DataId"].isNull())
|
||||
configuration_.dataId = configurationNode["DataId"].asString();
|
||||
if(!configurationNode["Desc"].isNull())
|
||||
configuration_.desc = configurationNode["Desc"].asString();
|
||||
if(!configurationNode["Group"].isNull())
|
||||
configuration_.group = configurationNode["Group"].asString();
|
||||
if(!configurationNode["Md5"].isNull())
|
||||
configuration_.md5 = configurationNode["Md5"].asString();
|
||||
if(!configurationNode["Tags"].isNull())
|
||||
configuration_.tags = configurationNode["Tags"].asString();
|
||||
if(!configurationNode["Type"].isNull())
|
||||
configuration_.type = configurationNode["Type"].asString();
|
||||
if(!value["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
|
||||
}
|
||||
|
||||
DescribeConfigurationResult::Configuration DescribeConfigurationResult::getConfiguration()const
|
||||
{
|
||||
return configuration_;
|
||||
}
|
||||
|
||||
std::string DescribeConfigurationResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
std::string DescribeConfigurationResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
41
acm/src/model/DescribeNamespaceRequest.cc
Normal file
41
acm/src/model/DescribeNamespaceRequest.cc
Normal file
@@ -0,0 +1,41 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT 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/acm/model/DescribeNamespaceRequest.h>
|
||||
|
||||
using AlibabaCloud::Acm::Model::DescribeNamespaceRequest;
|
||||
|
||||
DescribeNamespaceRequest::DescribeNamespaceRequest() :
|
||||
RoaServiceRequest("acm", "2020-02-06")
|
||||
{
|
||||
setResourcePath("/diamond-ops/pop/namespace");
|
||||
setMethod(HttpRequest::Method::Get);
|
||||
}
|
||||
|
||||
DescribeNamespaceRequest::~DescribeNamespaceRequest()
|
||||
{}
|
||||
|
||||
std::string DescribeNamespaceRequest::getNamespaceId()const
|
||||
{
|
||||
return namespaceId_;
|
||||
}
|
||||
|
||||
void DescribeNamespaceRequest::setNamespaceId(const std::string& namespaceId)
|
||||
{
|
||||
namespaceId_ = namespaceId;
|
||||
setParameter("NamespaceId", namespaceId);
|
||||
}
|
||||
|
||||
74
acm/src/model/DescribeNamespaceResult.cc
Normal file
74
acm/src/model/DescribeNamespaceResult.cc
Normal file
@@ -0,0 +1,74 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/acm/model/DescribeNamespaceResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Acm;
|
||||
using namespace AlibabaCloud::Acm::Model;
|
||||
|
||||
DescribeNamespaceResult::DescribeNamespaceResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DescribeNamespaceResult::DescribeNamespaceResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DescribeNamespaceResult::~DescribeNamespaceResult()
|
||||
{}
|
||||
|
||||
void DescribeNamespaceResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto _namespaceNode = value["Namespace"];
|
||||
if(!_namespaceNode["AccessKey"].isNull())
|
||||
_namespace_.accessKey = _namespaceNode["AccessKey"].asString();
|
||||
if(!_namespaceNode["Endpoint"].isNull())
|
||||
_namespace_.endpoint = _namespaceNode["Endpoint"].asString();
|
||||
if(!_namespaceNode["Name"].isNull())
|
||||
_namespace_.name = _namespaceNode["Name"].asString();
|
||||
if(!_namespaceNode["RegionId"].isNull())
|
||||
_namespace_.regionId = _namespaceNode["RegionId"].asString();
|
||||
if(!_namespaceNode["SecretKey"].isNull())
|
||||
_namespace_.secretKey = _namespaceNode["SecretKey"].asString();
|
||||
if(!value["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string DescribeNamespaceResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
DescribeNamespaceResult::_Namespace DescribeNamespaceResult::get_Namespace()const
|
||||
{
|
||||
return _namespace_;
|
||||
}
|
||||
|
||||
std::string DescribeNamespaceResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
30
acm/src/model/DescribeNamespacesRequest.cc
Normal file
30
acm/src/model/DescribeNamespacesRequest.cc
Normal file
@@ -0,0 +1,30 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT 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/acm/model/DescribeNamespacesRequest.h>
|
||||
|
||||
using AlibabaCloud::Acm::Model::DescribeNamespacesRequest;
|
||||
|
||||
DescribeNamespacesRequest::DescribeNamespacesRequest() :
|
||||
RoaServiceRequest("acm", "2020-02-06")
|
||||
{
|
||||
setResourcePath("/diamond-ops/pop/namespace/list");
|
||||
setMethod(HttpRequest::Method::Get);
|
||||
}
|
||||
|
||||
DescribeNamespacesRequest::~DescribeNamespacesRequest()
|
||||
{}
|
||||
|
||||
79
acm/src/model/DescribeNamespacesResult.cc
Normal file
79
acm/src/model/DescribeNamespacesResult.cc
Normal file
@@ -0,0 +1,79 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT 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/acm/model/DescribeNamespacesResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Acm;
|
||||
using namespace AlibabaCloud::Acm::Model;
|
||||
|
||||
DescribeNamespacesResult::DescribeNamespacesResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DescribeNamespacesResult::DescribeNamespacesResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DescribeNamespacesResult::~DescribeNamespacesResult()
|
||||
{}
|
||||
|
||||
void DescribeNamespacesResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allNamespacesNode = value["Namespaces"]["Namespace"];
|
||||
for (auto valueNamespacesNamespace : allNamespacesNode)
|
||||
{
|
||||
_Namespace namespacesObject;
|
||||
if(!valueNamespacesNamespace["ConfigCount"].isNull())
|
||||
namespacesObject.configCount = std::stoi(valueNamespacesNamespace["ConfigCount"].asString());
|
||||
if(!valueNamespacesNamespace["NamespaceId"].isNull())
|
||||
namespacesObject.namespaceId = valueNamespacesNamespace["NamespaceId"].asString();
|
||||
if(!valueNamespacesNamespace["NamespaceName"].isNull())
|
||||
namespacesObject.namespaceName = valueNamespacesNamespace["NamespaceName"].asString();
|
||||
if(!valueNamespacesNamespace["Quota"].isNull())
|
||||
namespacesObject.quota = std::stoi(valueNamespacesNamespace["Quota"].asString());
|
||||
if(!valueNamespacesNamespace["Type"].isNull())
|
||||
namespacesObject.type = std::stoi(valueNamespacesNamespace["Type"].asString());
|
||||
namespaces_.push_back(namespacesObject);
|
||||
}
|
||||
if(!value["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::vector<DescribeNamespacesResult::_Namespace> DescribeNamespacesResult::getNamespaces()const
|
||||
{
|
||||
return namespaces_;
|
||||
}
|
||||
|
||||
std::string DescribeNamespacesResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
std::string DescribeNamespacesResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
52
acm/src/model/UpdateNamespaceRequest.cc
Normal file
52
acm/src/model/UpdateNamespaceRequest.cc
Normal file
@@ -0,0 +1,52 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT 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/acm/model/UpdateNamespaceRequest.h>
|
||||
|
||||
using AlibabaCloud::Acm::Model::UpdateNamespaceRequest;
|
||||
|
||||
UpdateNamespaceRequest::UpdateNamespaceRequest() :
|
||||
RoaServiceRequest("acm", "2020-02-06")
|
||||
{
|
||||
setResourcePath("/diamond-ops/pop/namespace");
|
||||
setMethod(HttpRequest::Method::Put);
|
||||
}
|
||||
|
||||
UpdateNamespaceRequest::~UpdateNamespaceRequest()
|
||||
{}
|
||||
|
||||
std::string UpdateNamespaceRequest::getNamespaceName()const
|
||||
{
|
||||
return namespaceName_;
|
||||
}
|
||||
|
||||
void UpdateNamespaceRequest::setNamespaceName(const std::string& namespaceName)
|
||||
{
|
||||
namespaceName_ = namespaceName;
|
||||
setBodyParameter("NamespaceName", namespaceName);
|
||||
}
|
||||
|
||||
std::string UpdateNamespaceRequest::getNamespaceId()const
|
||||
{
|
||||
return namespaceId_;
|
||||
}
|
||||
|
||||
void UpdateNamespaceRequest::setNamespaceId(const std::string& namespaceId)
|
||||
{
|
||||
namespaceId_ = namespaceId;
|
||||
setBodyParameter("NamespaceId", namespaceId);
|
||||
}
|
||||
|
||||
58
acm/src/model/UpdateNamespaceResult.cc
Normal file
58
acm/src/model/UpdateNamespaceResult.cc
Normal file
@@ -0,0 +1,58 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT 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/acm/model/UpdateNamespaceResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Acm;
|
||||
using namespace AlibabaCloud::Acm::Model;
|
||||
|
||||
UpdateNamespaceResult::UpdateNamespaceResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
UpdateNamespaceResult::UpdateNamespaceResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
UpdateNamespaceResult::~UpdateNamespaceResult()
|
||||
{}
|
||||
|
||||
void UpdateNamespaceResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string UpdateNamespaceResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
std::string UpdateNamespaceResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
114
acms-open/CMakeLists.txt
Normal file
114
acms-open/CMakeLists.txt
Normal file
@@ -0,0 +1,114 @@
|
||||
#
|
||||
# Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
#
|
||||
# Licensed under the Apache License, Version 2.0 (the "License");
|
||||
# you may not use this file except in compliance with the License.
|
||||
# You may obtain a copy of the License at
|
||||
#
|
||||
# http://www.apache.org/licenses/LICENSE-2.0
|
||||
#
|
||||
# Unless required by applicable law or agreed to in writing, software
|
||||
# distributed under the License is distributed on an "AS IS" BASIS,
|
||||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
# See the License for the specific language governing permissions and
|
||||
# limitations under the License.
|
||||
#
|
||||
|
||||
set(public_header_dir ${CMAKE_CURRENT_SOURCE_DIR}/../include)
|
||||
|
||||
set(acms-open_public_header
|
||||
include/alibabacloud/acms-open/Acms_openClient.h
|
||||
include/alibabacloud/acms-open/Acms_openExport.h )
|
||||
|
||||
set(acms-open_public_header_model
|
||||
include/alibabacloud/acms-open/model/CreateConfigurationRequest.h
|
||||
include/alibabacloud/acms-open/model/CreateConfigurationResult.h
|
||||
include/alibabacloud/acms-open/model/CreateNamespaceRequest.h
|
||||
include/alibabacloud/acms-open/model/CreateNamespaceResult.h
|
||||
include/alibabacloud/acms-open/model/DeleteConfigurationRequest.h
|
||||
include/alibabacloud/acms-open/model/DeleteConfigurationResult.h
|
||||
include/alibabacloud/acms-open/model/DeleteNamespaceRequest.h
|
||||
include/alibabacloud/acms-open/model/DeleteNamespaceResult.h
|
||||
include/alibabacloud/acms-open/model/DeployConfigurationRequest.h
|
||||
include/alibabacloud/acms-open/model/DeployConfigurationResult.h
|
||||
include/alibabacloud/acms-open/model/DescribeConfigurationRequest.h
|
||||
include/alibabacloud/acms-open/model/DescribeConfigurationResult.h
|
||||
include/alibabacloud/acms-open/model/DescribeNamespaceRequest.h
|
||||
include/alibabacloud/acms-open/model/DescribeNamespaceResult.h
|
||||
include/alibabacloud/acms-open/model/UpdateNamespaceRequest.h
|
||||
include/alibabacloud/acms-open/model/UpdateNamespaceResult.h )
|
||||
|
||||
set(acms-open_src
|
||||
src/Acms-openClient.cc
|
||||
src/model/CreateConfigurationRequest.cc
|
||||
src/model/CreateConfigurationResult.cc
|
||||
src/model/CreateNamespaceRequest.cc
|
||||
src/model/CreateNamespaceResult.cc
|
||||
src/model/DeleteConfigurationRequest.cc
|
||||
src/model/DeleteConfigurationResult.cc
|
||||
src/model/DeleteNamespaceRequest.cc
|
||||
src/model/DeleteNamespaceResult.cc
|
||||
src/model/DeployConfigurationRequest.cc
|
||||
src/model/DeployConfigurationResult.cc
|
||||
src/model/DescribeConfigurationRequest.cc
|
||||
src/model/DescribeConfigurationResult.cc
|
||||
src/model/DescribeNamespaceRequest.cc
|
||||
src/model/DescribeNamespaceResult.cc
|
||||
src/model/UpdateNamespaceRequest.cc
|
||||
src/model/UpdateNamespaceResult.cc )
|
||||
|
||||
add_library(acms-open ${LIB_TYPE}
|
||||
${acms-open_public_header}
|
||||
${acms-open_public_header_model}
|
||||
${acms-open_src})
|
||||
|
||||
set_target_properties(acms-open
|
||||
PROPERTIES
|
||||
LINKER_LANGUAGE CXX
|
||||
ARCHIVE_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/lib
|
||||
LIBRARY_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/lib
|
||||
RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/bin
|
||||
OUTPUT_NAME ${TARGET_OUTPUT_NAME_PREFIX}acms-open
|
||||
)
|
||||
|
||||
if(${LIB_TYPE} STREQUAL "SHARED")
|
||||
set_target_properties(acms-open
|
||||
PROPERTIES
|
||||
DEFINE_SYMBOL ALIBABACLOUD_ACMS_OPEN_LIBRARY)
|
||||
endif()
|
||||
|
||||
target_include_directories(acms-open
|
||||
PRIVATE include
|
||||
${CMAKE_SOURCE_DIR}/core/include
|
||||
)
|
||||
target_link_libraries(acms-open
|
||||
core)
|
||||
|
||||
if(CMAKE_HOST_WIN32)
|
||||
ExternalProject_Get_Property(jsoncpp INSTALL_DIR)
|
||||
set(jsoncpp_install_dir ${INSTALL_DIR})
|
||||
add_dependencies(acms-open
|
||||
jsoncpp)
|
||||
target_include_directories(acms-open
|
||||
PRIVATE ${jsoncpp_install_dir}/include)
|
||||
target_link_libraries(acms-open
|
||||
${jsoncpp_install_dir}/lib/jsoncpp.lib)
|
||||
set_target_properties(acms-open
|
||||
PROPERTIES
|
||||
COMPILE_OPTIONS "/bigobj")
|
||||
else()
|
||||
target_include_directories(acms-open
|
||||
PRIVATE /usr/include/jsoncpp)
|
||||
target_link_libraries(acms-open
|
||||
jsoncpp)
|
||||
endif()
|
||||
|
||||
install(FILES ${acms-open_public_header}
|
||||
DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/alibabacloud/acms-open)
|
||||
install(FILES ${acms-open_public_header_model}
|
||||
DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/alibabacloud/acms-open/model)
|
||||
install(TARGETS acms-open
|
||||
ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
|
||||
LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
|
||||
RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
|
||||
)
|
||||
110
acms-open/include/alibabacloud/acms-open/Acms_openClient.h
Normal file
110
acms-open/include/alibabacloud/acms-open/Acms_openClient.h
Normal file
@@ -0,0 +1,110 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_ACMS_OPEN_ACMS_OPENCLIENT_H_
|
||||
#define ALIBABACLOUD_ACMS_OPEN_ACMS_OPENCLIENT_H_
|
||||
|
||||
#include <future>
|
||||
#include <alibabacloud/core/AsyncCallerContext.h>
|
||||
#include <alibabacloud/core/EndpointProvider.h>
|
||||
#include <alibabacloud/core/RoaServiceClient.h>
|
||||
#include "Acms_openExport.h"
|
||||
#include "model/CreateConfigurationRequest.h"
|
||||
#include "model/CreateConfigurationResult.h"
|
||||
#include "model/CreateNamespaceRequest.h"
|
||||
#include "model/CreateNamespaceResult.h"
|
||||
#include "model/DeleteConfigurationRequest.h"
|
||||
#include "model/DeleteConfigurationResult.h"
|
||||
#include "model/DeleteNamespaceRequest.h"
|
||||
#include "model/DeleteNamespaceResult.h"
|
||||
#include "model/DeployConfigurationRequest.h"
|
||||
#include "model/DeployConfigurationResult.h"
|
||||
#include "model/DescribeConfigurationRequest.h"
|
||||
#include "model/DescribeConfigurationResult.h"
|
||||
#include "model/DescribeNamespaceRequest.h"
|
||||
#include "model/DescribeNamespaceResult.h"
|
||||
#include "model/UpdateNamespaceRequest.h"
|
||||
#include "model/UpdateNamespaceResult.h"
|
||||
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Acms_open
|
||||
{
|
||||
class ALIBABACLOUD_ACMS_OPEN_EXPORT Acms_openClient : public RoaServiceClient
|
||||
{
|
||||
public:
|
||||
typedef Outcome<Error, Model::CreateConfigurationResult> CreateConfigurationOutcome;
|
||||
typedef std::future<CreateConfigurationOutcome> CreateConfigurationOutcomeCallable;
|
||||
typedef std::function<void(const Acms_openClient*, const Model::CreateConfigurationRequest&, const CreateConfigurationOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> CreateConfigurationAsyncHandler;
|
||||
typedef Outcome<Error, Model::CreateNamespaceResult> CreateNamespaceOutcome;
|
||||
typedef std::future<CreateNamespaceOutcome> CreateNamespaceOutcomeCallable;
|
||||
typedef std::function<void(const Acms_openClient*, const Model::CreateNamespaceRequest&, const CreateNamespaceOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> CreateNamespaceAsyncHandler;
|
||||
typedef Outcome<Error, Model::DeleteConfigurationResult> DeleteConfigurationOutcome;
|
||||
typedef std::future<DeleteConfigurationOutcome> DeleteConfigurationOutcomeCallable;
|
||||
typedef std::function<void(const Acms_openClient*, const Model::DeleteConfigurationRequest&, const DeleteConfigurationOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DeleteConfigurationAsyncHandler;
|
||||
typedef Outcome<Error, Model::DeleteNamespaceResult> DeleteNamespaceOutcome;
|
||||
typedef std::future<DeleteNamespaceOutcome> DeleteNamespaceOutcomeCallable;
|
||||
typedef std::function<void(const Acms_openClient*, const Model::DeleteNamespaceRequest&, const DeleteNamespaceOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DeleteNamespaceAsyncHandler;
|
||||
typedef Outcome<Error, Model::DeployConfigurationResult> DeployConfigurationOutcome;
|
||||
typedef std::future<DeployConfigurationOutcome> DeployConfigurationOutcomeCallable;
|
||||
typedef std::function<void(const Acms_openClient*, const Model::DeployConfigurationRequest&, const DeployConfigurationOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DeployConfigurationAsyncHandler;
|
||||
typedef Outcome<Error, Model::DescribeConfigurationResult> DescribeConfigurationOutcome;
|
||||
typedef std::future<DescribeConfigurationOutcome> DescribeConfigurationOutcomeCallable;
|
||||
typedef std::function<void(const Acms_openClient*, const Model::DescribeConfigurationRequest&, const DescribeConfigurationOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeConfigurationAsyncHandler;
|
||||
typedef Outcome<Error, Model::DescribeNamespaceResult> DescribeNamespaceOutcome;
|
||||
typedef std::future<DescribeNamespaceOutcome> DescribeNamespaceOutcomeCallable;
|
||||
typedef std::function<void(const Acms_openClient*, const Model::DescribeNamespaceRequest&, const DescribeNamespaceOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeNamespaceAsyncHandler;
|
||||
typedef Outcome<Error, Model::UpdateNamespaceResult> UpdateNamespaceOutcome;
|
||||
typedef std::future<UpdateNamespaceOutcome> UpdateNamespaceOutcomeCallable;
|
||||
typedef std::function<void(const Acms_openClient*, const Model::UpdateNamespaceRequest&, const UpdateNamespaceOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> UpdateNamespaceAsyncHandler;
|
||||
|
||||
Acms_openClient(const Credentials &credentials, const ClientConfiguration &configuration);
|
||||
Acms_openClient(const std::shared_ptr<CredentialsProvider> &credentialsProvider, const ClientConfiguration &configuration);
|
||||
Acms_openClient(const std::string &accessKeyId, const std::string &accessKeySecret, const ClientConfiguration &configuration);
|
||||
~Acms_openClient();
|
||||
CreateConfigurationOutcome createConfiguration(const Model::CreateConfigurationRequest &request)const;
|
||||
void createConfigurationAsync(const Model::CreateConfigurationRequest& request, const CreateConfigurationAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
CreateConfigurationOutcomeCallable createConfigurationCallable(const Model::CreateConfigurationRequest& request) const;
|
||||
CreateNamespaceOutcome createNamespace(const Model::CreateNamespaceRequest &request)const;
|
||||
void createNamespaceAsync(const Model::CreateNamespaceRequest& request, const CreateNamespaceAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
CreateNamespaceOutcomeCallable createNamespaceCallable(const Model::CreateNamespaceRequest& request) const;
|
||||
DeleteConfigurationOutcome deleteConfiguration(const Model::DeleteConfigurationRequest &request)const;
|
||||
void deleteConfigurationAsync(const Model::DeleteConfigurationRequest& request, const DeleteConfigurationAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DeleteConfigurationOutcomeCallable deleteConfigurationCallable(const Model::DeleteConfigurationRequest& request) const;
|
||||
DeleteNamespaceOutcome deleteNamespace(const Model::DeleteNamespaceRequest &request)const;
|
||||
void deleteNamespaceAsync(const Model::DeleteNamespaceRequest& request, const DeleteNamespaceAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DeleteNamespaceOutcomeCallable deleteNamespaceCallable(const Model::DeleteNamespaceRequest& request) const;
|
||||
DeployConfigurationOutcome deployConfiguration(const Model::DeployConfigurationRequest &request)const;
|
||||
void deployConfigurationAsync(const Model::DeployConfigurationRequest& request, const DeployConfigurationAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DeployConfigurationOutcomeCallable deployConfigurationCallable(const Model::DeployConfigurationRequest& request) const;
|
||||
DescribeConfigurationOutcome describeConfiguration(const Model::DescribeConfigurationRequest &request)const;
|
||||
void describeConfigurationAsync(const Model::DescribeConfigurationRequest& request, const DescribeConfigurationAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DescribeConfigurationOutcomeCallable describeConfigurationCallable(const Model::DescribeConfigurationRequest& request) const;
|
||||
DescribeNamespaceOutcome describeNamespace(const Model::DescribeNamespaceRequest &request)const;
|
||||
void describeNamespaceAsync(const Model::DescribeNamespaceRequest& request, const DescribeNamespaceAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DescribeNamespaceOutcomeCallable describeNamespaceCallable(const Model::DescribeNamespaceRequest& request) const;
|
||||
UpdateNamespaceOutcome updateNamespace(const Model::UpdateNamespaceRequest &request)const;
|
||||
void updateNamespaceAsync(const Model::UpdateNamespaceRequest& request, const UpdateNamespaceAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
UpdateNamespaceOutcomeCallable updateNamespaceCallable(const Model::UpdateNamespaceRequest& request) const;
|
||||
|
||||
private:
|
||||
std::shared_ptr<EndpointProvider> endpointProvider_;
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
#endif // !ALIBABACLOUD_ACMS_OPEN_ACMS_OPENCLIENT_H_
|
||||
32
acms-open/include/alibabacloud/acms-open/Acms_openExport.h
Normal file
32
acms-open/include/alibabacloud/acms-open/Acms_openExport.h
Normal file
@@ -0,0 +1,32 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_ACMS_OPEN_ACMS_OPENEXPORT_H_
|
||||
#define ALIBABACLOUD_ACMS_OPEN_ACMS_OPENEXPORT_H_
|
||||
|
||||
#include <alibabacloud/core/Global.h>
|
||||
|
||||
#if defined(ALIBABACLOUD_SHARED)
|
||||
# if defined(ALIBABACLOUD_ACMS_OPEN_LIBRARY)
|
||||
# define ALIBABACLOUD_ACMS_OPEN_EXPORT ALIBABACLOUD_DECL_EXPORT
|
||||
# else
|
||||
# define ALIBABACLOUD_ACMS_OPEN_EXPORT ALIBABACLOUD_DECL_IMPORT
|
||||
# endif
|
||||
#else
|
||||
# define ALIBABACLOUD_ACMS_OPEN_EXPORT
|
||||
#endif
|
||||
|
||||
#endif // !ALIBABACLOUD_ACMS_OPEN_ACMS_OPENEXPORT_H_
|
||||
@@ -0,0 +1,69 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_ACMS_OPEN_MODEL_CREATECONFIGURATIONREQUEST_H_
|
||||
#define ALIBABACLOUD_ACMS_OPEN_MODEL_CREATECONFIGURATIONREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RoaServiceRequest.h>
|
||||
#include <alibabacloud/acms-open/Acms_openExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Acms_open
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_ACMS_OPEN_EXPORT CreateConfigurationRequest : public RoaServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
CreateConfigurationRequest();
|
||||
~CreateConfigurationRequest();
|
||||
|
||||
std::string getDataId()const;
|
||||
void setDataId(const std::string& dataId);
|
||||
std::string getAppName()const;
|
||||
void setAppName(const std::string& appName);
|
||||
std::string getNamespaceId()const;
|
||||
void setNamespaceId(const std::string& namespaceId);
|
||||
std::string getType()const;
|
||||
void setType(const std::string& type);
|
||||
std::string getContent()const;
|
||||
void setContent(const std::string& content);
|
||||
std::string getGroup()const;
|
||||
void setGroup(const std::string& group);
|
||||
std::string getDesc()const;
|
||||
void setDesc(const std::string& desc);
|
||||
std::string getTags()const;
|
||||
void setTags(const std::string& tags);
|
||||
|
||||
private:
|
||||
std::string dataId_;
|
||||
std::string appName_;
|
||||
std::string namespaceId_;
|
||||
std::string type_;
|
||||
std::string content_;
|
||||
std::string group_;
|
||||
std::string desc_;
|
||||
std::string tags_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_ACMS_OPEN_MODEL_CREATECONFIGURATIONREQUEST_H_
|
||||
@@ -14,44 +14,40 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_CCC_MODEL_PUBLISHPREDICTIVEJOBGROUPRESULT_H_
|
||||
#define ALIBABACLOUD_CCC_MODEL_PUBLISHPREDICTIVEJOBGROUPRESULT_H_
|
||||
#ifndef ALIBABACLOUD_ACMS_OPEN_MODEL_CREATECONFIGURATIONRESULT_H_
|
||||
#define ALIBABACLOUD_ACMS_OPEN_MODEL_CREATECONFIGURATIONRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/ccc/CCCExport.h>
|
||||
#include <alibabacloud/acms-open/Acms_openExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace CCC
|
||||
namespace Acms_open
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_CCC_EXPORT PublishPredictiveJobGroupResult : public ServiceResult
|
||||
class ALIBABACLOUD_ACMS_OPEN_EXPORT CreateConfigurationResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
|
||||
|
||||
PublishPredictiveJobGroupResult();
|
||||
explicit PublishPredictiveJobGroupResult(const std::string &payload);
|
||||
~PublishPredictiveJobGroupResult();
|
||||
CreateConfigurationResult();
|
||||
explicit CreateConfigurationResult(const std::string &payload);
|
||||
~CreateConfigurationResult();
|
||||
std::string getMessage()const;
|
||||
int getHttpStatusCode()const;
|
||||
std::string getCode()const;
|
||||
bool getSuccess()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::string message_;
|
||||
int httpStatusCode_;
|
||||
std::string code_;
|
||||
bool success_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_CCC_MODEL_PUBLISHPREDICTIVEJOBGROUPRESULT_H_
|
||||
#endif // !ALIBABACLOUD_ACMS_OPEN_MODEL_CREATECONFIGURATIONRESULT_H_
|
||||
@@ -0,0 +1,48 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_ACMS_OPEN_MODEL_CREATENAMESPACEREQUEST_H_
|
||||
#define ALIBABACLOUD_ACMS_OPEN_MODEL_CREATENAMESPACEREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RoaServiceRequest.h>
|
||||
#include <alibabacloud/acms-open/Acms_openExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Acms_open
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_ACMS_OPEN_EXPORT CreateNamespaceRequest : public RoaServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
CreateNamespaceRequest();
|
||||
~CreateNamespaceRequest();
|
||||
|
||||
std::string getName()const;
|
||||
void setName(const std::string& name);
|
||||
|
||||
private:
|
||||
std::string name_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_ACMS_OPEN_MODEL_CREATENAMESPACEREQUEST_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_ACMS_OPEN_MODEL_CREATENAMESPACERESULT_H_
|
||||
#define ALIBABACLOUD_ACMS_OPEN_MODEL_CREATENAMESPACERESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/acms-open/Acms_openExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Acms_open
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_ACMS_OPEN_EXPORT CreateNamespaceResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
|
||||
|
||||
CreateNamespaceResult();
|
||||
explicit CreateNamespaceResult(const std::string &payload);
|
||||
~CreateNamespaceResult();
|
||||
std::string getMessage()const;
|
||||
std::string getNamespaceId()const;
|
||||
std::string getCode()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::string message_;
|
||||
std::string namespaceId_;
|
||||
std::string code_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_ACMS_OPEN_MODEL_CREATENAMESPACERESULT_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_ACMS_OPEN_MODEL_DELETECONFIGURATIONREQUEST_H_
|
||||
#define ALIBABACLOUD_ACMS_OPEN_MODEL_DELETECONFIGURATIONREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RoaServiceRequest.h>
|
||||
#include <alibabacloud/acms-open/Acms_openExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Acms_open
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_ACMS_OPEN_EXPORT DeleteConfigurationRequest : public RoaServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
DeleteConfigurationRequest();
|
||||
~DeleteConfigurationRequest();
|
||||
|
||||
std::string getDataId()const;
|
||||
void setDataId(const std::string& dataId);
|
||||
std::string getNamespaceId()const;
|
||||
void setNamespaceId(const std::string& namespaceId);
|
||||
std::string getGroup()const;
|
||||
void setGroup(const std::string& group);
|
||||
|
||||
private:
|
||||
std::string dataId_;
|
||||
std::string namespaceId_;
|
||||
std::string group_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_ACMS_OPEN_MODEL_DELETECONFIGURATIONREQUEST_H_
|
||||
@@ -0,0 +1,53 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_ACMS_OPEN_MODEL_DELETECONFIGURATIONRESULT_H_
|
||||
#define ALIBABACLOUD_ACMS_OPEN_MODEL_DELETECONFIGURATIONRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/acms-open/Acms_openExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Acms_open
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_ACMS_OPEN_EXPORT DeleteConfigurationResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
|
||||
|
||||
DeleteConfigurationResult();
|
||||
explicit DeleteConfigurationResult(const std::string &payload);
|
||||
~DeleteConfigurationResult();
|
||||
std::string getMessage()const;
|
||||
std::string getCode()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::string message_;
|
||||
std::string code_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_ACMS_OPEN_MODEL_DELETECONFIGURATIONRESULT_H_
|
||||
@@ -0,0 +1,48 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_ACMS_OPEN_MODEL_DELETENAMESPACEREQUEST_H_
|
||||
#define ALIBABACLOUD_ACMS_OPEN_MODEL_DELETENAMESPACEREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RoaServiceRequest.h>
|
||||
#include <alibabacloud/acms-open/Acms_openExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Acms_open
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_ACMS_OPEN_EXPORT DeleteNamespaceRequest : public RoaServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
DeleteNamespaceRequest();
|
||||
~DeleteNamespaceRequest();
|
||||
|
||||
std::string getNamespaceId()const;
|
||||
void setNamespaceId(const std::string& namespaceId);
|
||||
|
||||
private:
|
||||
std::string namespaceId_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_ACMS_OPEN_MODEL_DELETENAMESPACEREQUEST_H_
|
||||
@@ -0,0 +1,53 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_ACMS_OPEN_MODEL_DELETENAMESPACERESULT_H_
|
||||
#define ALIBABACLOUD_ACMS_OPEN_MODEL_DELETENAMESPACERESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/acms-open/Acms_openExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Acms_open
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_ACMS_OPEN_EXPORT DeleteNamespaceResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
|
||||
|
||||
DeleteNamespaceResult();
|
||||
explicit DeleteNamespaceResult(const std::string &payload);
|
||||
~DeleteNamespaceResult();
|
||||
std::string getMessage()const;
|
||||
std::string getCode()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::string message_;
|
||||
std::string code_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_ACMS_OPEN_MODEL_DELETENAMESPACERESULT_H_
|
||||
@@ -0,0 +1,69 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_ACMS_OPEN_MODEL_DEPLOYCONFIGURATIONREQUEST_H_
|
||||
#define ALIBABACLOUD_ACMS_OPEN_MODEL_DEPLOYCONFIGURATIONREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RoaServiceRequest.h>
|
||||
#include <alibabacloud/acms-open/Acms_openExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Acms_open
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_ACMS_OPEN_EXPORT DeployConfigurationRequest : public RoaServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
DeployConfigurationRequest();
|
||||
~DeployConfigurationRequest();
|
||||
|
||||
std::string getDataId()const;
|
||||
void setDataId(const std::string& dataId);
|
||||
std::string getAppName()const;
|
||||
void setAppName(const std::string& appName);
|
||||
std::string getNamespaceId()const;
|
||||
void setNamespaceId(const std::string& namespaceId);
|
||||
std::string getType()const;
|
||||
void setType(const std::string& type);
|
||||
std::string getContent()const;
|
||||
void setContent(const std::string& content);
|
||||
std::string getGroup()const;
|
||||
void setGroup(const std::string& group);
|
||||
std::string getDesc()const;
|
||||
void setDesc(const std::string& desc);
|
||||
std::string getTags()const;
|
||||
void setTags(const std::string& tags);
|
||||
|
||||
private:
|
||||
std::string dataId_;
|
||||
std::string appName_;
|
||||
std::string namespaceId_;
|
||||
std::string type_;
|
||||
std::string content_;
|
||||
std::string group_;
|
||||
std::string desc_;
|
||||
std::string tags_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_ACMS_OPEN_MODEL_DEPLOYCONFIGURATIONREQUEST_H_
|
||||
@@ -0,0 +1,53 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_ACMS_OPEN_MODEL_DEPLOYCONFIGURATIONRESULT_H_
|
||||
#define ALIBABACLOUD_ACMS_OPEN_MODEL_DEPLOYCONFIGURATIONRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/acms-open/Acms_openExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Acms_open
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_ACMS_OPEN_EXPORT DeployConfigurationResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
|
||||
|
||||
DeployConfigurationResult();
|
||||
explicit DeployConfigurationResult(const std::string &payload);
|
||||
~DeployConfigurationResult();
|
||||
std::string getMessage()const;
|
||||
std::string getCode()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::string message_;
|
||||
std::string code_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_ACMS_OPEN_MODEL_DEPLOYCONFIGURATIONRESULT_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_ACMS_OPEN_MODEL_DESCRIBECONFIGURATIONREQUEST_H_
|
||||
#define ALIBABACLOUD_ACMS_OPEN_MODEL_DESCRIBECONFIGURATIONREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RoaServiceRequest.h>
|
||||
#include <alibabacloud/acms-open/Acms_openExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Acms_open
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_ACMS_OPEN_EXPORT DescribeConfigurationRequest : public RoaServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
DescribeConfigurationRequest();
|
||||
~DescribeConfigurationRequest();
|
||||
|
||||
std::string getDataId()const;
|
||||
void setDataId(const std::string& dataId);
|
||||
std::string getNamespaceId()const;
|
||||
void setNamespaceId(const std::string& namespaceId);
|
||||
std::string getGroup()const;
|
||||
void setGroup(const std::string& group);
|
||||
|
||||
private:
|
||||
std::string dataId_;
|
||||
std::string namespaceId_;
|
||||
std::string group_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_ACMS_OPEN_MODEL_DESCRIBECONFIGURATIONREQUEST_H_
|
||||
@@ -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.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_ACMS_OPEN_MODEL_DESCRIBECONFIGURATIONRESULT_H_
|
||||
#define ALIBABACLOUD_ACMS_OPEN_MODEL_DESCRIBECONFIGURATIONRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/acms-open/Acms_openExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Acms_open
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_ACMS_OPEN_EXPORT DescribeConfigurationResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct Configuration
|
||||
{
|
||||
std::string group;
|
||||
std::string desc;
|
||||
std::string dataId;
|
||||
std::string content;
|
||||
std::string tags;
|
||||
std::string md5;
|
||||
std::string appName;
|
||||
};
|
||||
|
||||
|
||||
DescribeConfigurationResult();
|
||||
explicit DescribeConfigurationResult(const std::string &payload);
|
||||
~DescribeConfigurationResult();
|
||||
Configuration getConfiguration()const;
|
||||
std::string getMessage()const;
|
||||
std::string getCode()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
Configuration configuration_;
|
||||
std::string message_;
|
||||
std::string code_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_ACMS_OPEN_MODEL_DESCRIBECONFIGURATIONRESULT_H_
|
||||
@@ -0,0 +1,48 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_ACMS_OPEN_MODEL_DESCRIBENAMESPACEREQUEST_H_
|
||||
#define ALIBABACLOUD_ACMS_OPEN_MODEL_DESCRIBENAMESPACEREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RoaServiceRequest.h>
|
||||
#include <alibabacloud/acms-open/Acms_openExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Acms_open
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_ACMS_OPEN_EXPORT DescribeNamespaceRequest : public RoaServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
DescribeNamespaceRequest();
|
||||
~DescribeNamespaceRequest();
|
||||
|
||||
std::string getNamespaceId()const;
|
||||
void setNamespaceId(const std::string& namespaceId);
|
||||
|
||||
private:
|
||||
std::string namespaceId_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_ACMS_OPEN_MODEL_DESCRIBENAMESPACEREQUEST_H_
|
||||
@@ -0,0 +1,63 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_ACMS_OPEN_MODEL_DESCRIBENAMESPACERESULT_H_
|
||||
#define ALIBABACLOUD_ACMS_OPEN_MODEL_DESCRIBENAMESPACERESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/acms-open/Acms_openExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Acms_open
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_ACMS_OPEN_EXPORT DescribeNamespaceResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct _Namespace
|
||||
{
|
||||
std::string secretKey;
|
||||
std::string endpoint;
|
||||
std::string regionId;
|
||||
std::string accessKey;
|
||||
std::string name;
|
||||
};
|
||||
|
||||
|
||||
DescribeNamespaceResult();
|
||||
explicit DescribeNamespaceResult(const std::string &payload);
|
||||
~DescribeNamespaceResult();
|
||||
std::string getMessage()const;
|
||||
_Namespace get_Namespace()const;
|
||||
std::string getCode()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::string message_;
|
||||
_Namespace _namespace_;
|
||||
std::string code_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_ACMS_OPEN_MODEL_DESCRIBENAMESPACERESULT_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_ACMS_OPEN_MODEL_UPDATENAMESPACEREQUEST_H_
|
||||
#define ALIBABACLOUD_ACMS_OPEN_MODEL_UPDATENAMESPACEREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RoaServiceRequest.h>
|
||||
#include <alibabacloud/acms-open/Acms_openExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Acms_open
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_ACMS_OPEN_EXPORT UpdateNamespaceRequest : public RoaServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
UpdateNamespaceRequest();
|
||||
~UpdateNamespaceRequest();
|
||||
|
||||
std::string getNamespaceName()const;
|
||||
void setNamespaceName(const std::string& namespaceName);
|
||||
std::string getNamespaceId()const;
|
||||
void setNamespaceId(const std::string& namespaceId);
|
||||
|
||||
private:
|
||||
std::string namespaceName_;
|
||||
std::string namespaceId_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_ACMS_OPEN_MODEL_UPDATENAMESPACEREQUEST_H_
|
||||
@@ -0,0 +1,53 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_ACMS_OPEN_MODEL_UPDATENAMESPACERESULT_H_
|
||||
#define ALIBABACLOUD_ACMS_OPEN_MODEL_UPDATENAMESPACERESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/acms-open/Acms_openExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Acms_open
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_ACMS_OPEN_EXPORT UpdateNamespaceResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
|
||||
|
||||
UpdateNamespaceResult();
|
||||
explicit UpdateNamespaceResult(const std::string &payload);
|
||||
~UpdateNamespaceResult();
|
||||
std::string getMessage()const;
|
||||
std::string getCode()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::string message_;
|
||||
std::string code_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_ACMS_OPEN_MODEL_UPDATENAMESPACERESULT_H_
|
||||
341
acms-open/src/Acms-openClient.cc
Normal file
341
acms-open/src/Acms-openClient.cc
Normal file
@@ -0,0 +1,341 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT 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/acms-open/Acms_openClient.h>
|
||||
#include <alibabacloud/core/SimpleCredentialsProvider.h>
|
||||
|
||||
using namespace AlibabaCloud;
|
||||
using namespace AlibabaCloud::Location;
|
||||
using namespace AlibabaCloud::Acms_open;
|
||||
using namespace AlibabaCloud::Acms_open::Model;
|
||||
|
||||
namespace
|
||||
{
|
||||
const std::string SERVICE_NAME = "acms-open";
|
||||
}
|
||||
|
||||
Acms_openClient::Acms_openClient(const Credentials &credentials, const ClientConfiguration &configuration) :
|
||||
RoaServiceClient(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, "acms");
|
||||
}
|
||||
|
||||
Acms_openClient::Acms_openClient(const std::shared_ptr<CredentialsProvider>& credentialsProvider, const ClientConfiguration & configuration) :
|
||||
RoaServiceClient(SERVICE_NAME, credentialsProvider, configuration)
|
||||
{
|
||||
auto locationClient = std::make_shared<LocationClient>(credentialsProvider, configuration);
|
||||
endpointProvider_ = std::make_shared<EndpointProvider>(locationClient, configuration.regionId(), SERVICE_NAME, "acms");
|
||||
}
|
||||
|
||||
Acms_openClient::Acms_openClient(const std::string & accessKeyId, const std::string & accessKeySecret, const ClientConfiguration & configuration) :
|
||||
RoaServiceClient(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, "acms");
|
||||
}
|
||||
|
||||
Acms_openClient::~Acms_openClient()
|
||||
{}
|
||||
|
||||
Acms_openClient::CreateConfigurationOutcome Acms_openClient::createConfiguration(const CreateConfigurationRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return CreateConfigurationOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return CreateConfigurationOutcome(CreateConfigurationResult(outcome.result()));
|
||||
else
|
||||
return CreateConfigurationOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void Acms_openClient::createConfigurationAsync(const CreateConfigurationRequest& request, const CreateConfigurationAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, createConfiguration(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
Acms_openClient::CreateConfigurationOutcomeCallable Acms_openClient::createConfigurationCallable(const CreateConfigurationRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<CreateConfigurationOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->createConfiguration(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
Acms_openClient::CreateNamespaceOutcome Acms_openClient::createNamespace(const CreateNamespaceRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return CreateNamespaceOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return CreateNamespaceOutcome(CreateNamespaceResult(outcome.result()));
|
||||
else
|
||||
return CreateNamespaceOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void Acms_openClient::createNamespaceAsync(const CreateNamespaceRequest& request, const CreateNamespaceAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, createNamespace(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
Acms_openClient::CreateNamespaceOutcomeCallable Acms_openClient::createNamespaceCallable(const CreateNamespaceRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<CreateNamespaceOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->createNamespace(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
Acms_openClient::DeleteConfigurationOutcome Acms_openClient::deleteConfiguration(const DeleteConfigurationRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return DeleteConfigurationOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return DeleteConfigurationOutcome(DeleteConfigurationResult(outcome.result()));
|
||||
else
|
||||
return DeleteConfigurationOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void Acms_openClient::deleteConfigurationAsync(const DeleteConfigurationRequest& request, const DeleteConfigurationAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, deleteConfiguration(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
Acms_openClient::DeleteConfigurationOutcomeCallable Acms_openClient::deleteConfigurationCallable(const DeleteConfigurationRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<DeleteConfigurationOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->deleteConfiguration(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
Acms_openClient::DeleteNamespaceOutcome Acms_openClient::deleteNamespace(const DeleteNamespaceRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return DeleteNamespaceOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return DeleteNamespaceOutcome(DeleteNamespaceResult(outcome.result()));
|
||||
else
|
||||
return DeleteNamespaceOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void Acms_openClient::deleteNamespaceAsync(const DeleteNamespaceRequest& request, const DeleteNamespaceAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, deleteNamespace(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
Acms_openClient::DeleteNamespaceOutcomeCallable Acms_openClient::deleteNamespaceCallable(const DeleteNamespaceRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<DeleteNamespaceOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->deleteNamespace(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
Acms_openClient::DeployConfigurationOutcome Acms_openClient::deployConfiguration(const DeployConfigurationRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return DeployConfigurationOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return DeployConfigurationOutcome(DeployConfigurationResult(outcome.result()));
|
||||
else
|
||||
return DeployConfigurationOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void Acms_openClient::deployConfigurationAsync(const DeployConfigurationRequest& request, const DeployConfigurationAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, deployConfiguration(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
Acms_openClient::DeployConfigurationOutcomeCallable Acms_openClient::deployConfigurationCallable(const DeployConfigurationRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<DeployConfigurationOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->deployConfiguration(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
Acms_openClient::DescribeConfigurationOutcome Acms_openClient::describeConfiguration(const DescribeConfigurationRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return DescribeConfigurationOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return DescribeConfigurationOutcome(DescribeConfigurationResult(outcome.result()));
|
||||
else
|
||||
return DescribeConfigurationOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void Acms_openClient::describeConfigurationAsync(const DescribeConfigurationRequest& request, const DescribeConfigurationAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, describeConfiguration(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
Acms_openClient::DescribeConfigurationOutcomeCallable Acms_openClient::describeConfigurationCallable(const DescribeConfigurationRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<DescribeConfigurationOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->describeConfiguration(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
Acms_openClient::DescribeNamespaceOutcome Acms_openClient::describeNamespace(const DescribeNamespaceRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return DescribeNamespaceOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return DescribeNamespaceOutcome(DescribeNamespaceResult(outcome.result()));
|
||||
else
|
||||
return DescribeNamespaceOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void Acms_openClient::describeNamespaceAsync(const DescribeNamespaceRequest& request, const DescribeNamespaceAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, describeNamespace(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
Acms_openClient::DescribeNamespaceOutcomeCallable Acms_openClient::describeNamespaceCallable(const DescribeNamespaceRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<DescribeNamespaceOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->describeNamespace(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
Acms_openClient::UpdateNamespaceOutcome Acms_openClient::updateNamespace(const UpdateNamespaceRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return UpdateNamespaceOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return UpdateNamespaceOutcome(UpdateNamespaceResult(outcome.result()));
|
||||
else
|
||||
return UpdateNamespaceOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void Acms_openClient::updateNamespaceAsync(const UpdateNamespaceRequest& request, const UpdateNamespaceAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, updateNamespace(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
Acms_openClient::UpdateNamespaceOutcomeCallable Acms_openClient::updateNamespaceCallable(const UpdateNamespaceRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<UpdateNamespaceOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->updateNamespace(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
118
acms-open/src/model/CreateConfigurationRequest.cc
Normal file
118
acms-open/src/model/CreateConfigurationRequest.cc
Normal file
@@ -0,0 +1,118 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT 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/acms-open/model/CreateConfigurationRequest.h>
|
||||
|
||||
using AlibabaCloud::Acms_open::Model::CreateConfigurationRequest;
|
||||
|
||||
CreateConfigurationRequest::CreateConfigurationRequest() :
|
||||
RoaServiceRequest("acms-open", "2020-02-06")
|
||||
{
|
||||
setResourcePath("/diamond-ops/pop/configuration");
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
CreateConfigurationRequest::~CreateConfigurationRequest()
|
||||
{}
|
||||
|
||||
std::string CreateConfigurationRequest::getDataId()const
|
||||
{
|
||||
return dataId_;
|
||||
}
|
||||
|
||||
void CreateConfigurationRequest::setDataId(const std::string& dataId)
|
||||
{
|
||||
dataId_ = dataId;
|
||||
setBodyParameter("DataId", dataId);
|
||||
}
|
||||
|
||||
std::string CreateConfigurationRequest::getAppName()const
|
||||
{
|
||||
return appName_;
|
||||
}
|
||||
|
||||
void CreateConfigurationRequest::setAppName(const std::string& appName)
|
||||
{
|
||||
appName_ = appName;
|
||||
setBodyParameter("AppName", appName);
|
||||
}
|
||||
|
||||
std::string CreateConfigurationRequest::getNamespaceId()const
|
||||
{
|
||||
return namespaceId_;
|
||||
}
|
||||
|
||||
void CreateConfigurationRequest::setNamespaceId(const std::string& namespaceId)
|
||||
{
|
||||
namespaceId_ = namespaceId;
|
||||
setBodyParameter("NamespaceId", namespaceId);
|
||||
}
|
||||
|
||||
std::string CreateConfigurationRequest::getType()const
|
||||
{
|
||||
return type_;
|
||||
}
|
||||
|
||||
void CreateConfigurationRequest::setType(const std::string& type)
|
||||
{
|
||||
type_ = type;
|
||||
setBodyParameter("Type", type);
|
||||
}
|
||||
|
||||
std::string CreateConfigurationRequest::getContent()const
|
||||
{
|
||||
return content_;
|
||||
}
|
||||
|
||||
void CreateConfigurationRequest::setContent(const std::string& content)
|
||||
{
|
||||
content_ = content;
|
||||
setBodyParameter("Content", content);
|
||||
}
|
||||
|
||||
std::string CreateConfigurationRequest::getGroup()const
|
||||
{
|
||||
return group_;
|
||||
}
|
||||
|
||||
void CreateConfigurationRequest::setGroup(const std::string& group)
|
||||
{
|
||||
group_ = group;
|
||||
setBodyParameter("Group", group);
|
||||
}
|
||||
|
||||
std::string CreateConfigurationRequest::getDesc()const
|
||||
{
|
||||
return desc_;
|
||||
}
|
||||
|
||||
void CreateConfigurationRequest::setDesc(const std::string& desc)
|
||||
{
|
||||
desc_ = desc;
|
||||
setBodyParameter("Desc", desc);
|
||||
}
|
||||
|
||||
std::string CreateConfigurationRequest::getTags()const
|
||||
{
|
||||
return tags_;
|
||||
}
|
||||
|
||||
void CreateConfigurationRequest::setTags(const std::string& tags)
|
||||
{
|
||||
tags_ = tags;
|
||||
setBodyParameter("Tags", tags);
|
||||
}
|
||||
|
||||
@@ -14,46 +14,45 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/ehpc/model/GetTotalQueueReportResult.h>
|
||||
#include <alibabacloud/acms-open/model/CreateConfigurationResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::EHPC;
|
||||
using namespace AlibabaCloud::EHPC::Model;
|
||||
using namespace AlibabaCloud::Acms_open;
|
||||
using namespace AlibabaCloud::Acms_open::Model;
|
||||
|
||||
GetTotalQueueReportResult::GetTotalQueueReportResult() :
|
||||
CreateConfigurationResult::CreateConfigurationResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
GetTotalQueueReportResult::GetTotalQueueReportResult(const std::string &payload) :
|
||||
CreateConfigurationResult::CreateConfigurationResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
GetTotalQueueReportResult::~GetTotalQueueReportResult()
|
||||
CreateConfigurationResult::~CreateConfigurationResult()
|
||||
{}
|
||||
|
||||
void GetTotalQueueReportResult::parse(const std::string &payload)
|
||||
void CreateConfigurationResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allData = value["Data"]["Data"];
|
||||
for (const auto &item : allData)
|
||||
data_.push_back(item.asString());
|
||||
if(!value["Metrics"].isNull())
|
||||
metrics_ = value["Metrics"].asString();
|
||||
if(!value["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string GetTotalQueueReportResult::getMetrics()const
|
||||
std::string CreateConfigurationResult::getMessage()const
|
||||
{
|
||||
return metrics_;
|
||||
return message_;
|
||||
}
|
||||
|
||||
std::vector<std::string> GetTotalQueueReportResult::getData()const
|
||||
std::string CreateConfigurationResult::getCode()const
|
||||
{
|
||||
return data_;
|
||||
return code_;
|
||||
}
|
||||
|
||||
41
acms-open/src/model/CreateNamespaceRequest.cc
Normal file
41
acms-open/src/model/CreateNamespaceRequest.cc
Normal file
@@ -0,0 +1,41 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT 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/acms-open/model/CreateNamespaceRequest.h>
|
||||
|
||||
using AlibabaCloud::Acms_open::Model::CreateNamespaceRequest;
|
||||
|
||||
CreateNamespaceRequest::CreateNamespaceRequest() :
|
||||
RoaServiceRequest("acms-open", "2020-02-06")
|
||||
{
|
||||
setResourcePath("/diamond-ops/pop/namespace");
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
CreateNamespaceRequest::~CreateNamespaceRequest()
|
||||
{}
|
||||
|
||||
std::string CreateNamespaceRequest::getName()const
|
||||
{
|
||||
return name_;
|
||||
}
|
||||
|
||||
void CreateNamespaceRequest::setName(const std::string& name)
|
||||
{
|
||||
name_ = name;
|
||||
setBodyParameter("Name", name);
|
||||
}
|
||||
|
||||
65
acms-open/src/model/CreateNamespaceResult.cc
Normal file
65
acms-open/src/model/CreateNamespaceResult.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/acms-open/model/CreateNamespaceResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Acms_open;
|
||||
using namespace AlibabaCloud::Acms_open::Model;
|
||||
|
||||
CreateNamespaceResult::CreateNamespaceResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
CreateNamespaceResult::CreateNamespaceResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
CreateNamespaceResult::~CreateNamespaceResult()
|
||||
{}
|
||||
|
||||
void CreateNamespaceResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
if(!value["NamespaceId"].isNull())
|
||||
namespaceId_ = value["NamespaceId"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string CreateNamespaceResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
std::string CreateNamespaceResult::getNamespaceId()const
|
||||
{
|
||||
return namespaceId_;
|
||||
}
|
||||
|
||||
std::string CreateNamespaceResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
63
acms-open/src/model/DeleteConfigurationRequest.cc
Normal file
63
acms-open/src/model/DeleteConfigurationRequest.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/acms-open/model/DeleteConfigurationRequest.h>
|
||||
|
||||
using AlibabaCloud::Acms_open::Model::DeleteConfigurationRequest;
|
||||
|
||||
DeleteConfigurationRequest::DeleteConfigurationRequest() :
|
||||
RoaServiceRequest("acms-open", "2020-02-06")
|
||||
{
|
||||
setResourcePath("/diamond-ops/pop/configuration");
|
||||
setMethod(HttpRequest::Method::Delete);
|
||||
}
|
||||
|
||||
DeleteConfigurationRequest::~DeleteConfigurationRequest()
|
||||
{}
|
||||
|
||||
std::string DeleteConfigurationRequest::getDataId()const
|
||||
{
|
||||
return dataId_;
|
||||
}
|
||||
|
||||
void DeleteConfigurationRequest::setDataId(const std::string& dataId)
|
||||
{
|
||||
dataId_ = dataId;
|
||||
setParameter("DataId", dataId);
|
||||
}
|
||||
|
||||
std::string DeleteConfigurationRequest::getNamespaceId()const
|
||||
{
|
||||
return namespaceId_;
|
||||
}
|
||||
|
||||
void DeleteConfigurationRequest::setNamespaceId(const std::string& namespaceId)
|
||||
{
|
||||
namespaceId_ = namespaceId;
|
||||
setParameter("NamespaceId", namespaceId);
|
||||
}
|
||||
|
||||
std::string DeleteConfigurationRequest::getGroup()const
|
||||
{
|
||||
return group_;
|
||||
}
|
||||
|
||||
void DeleteConfigurationRequest::setGroup(const std::string& group)
|
||||
{
|
||||
group_ = group;
|
||||
setParameter("Group", group);
|
||||
}
|
||||
|
||||
58
acms-open/src/model/DeleteConfigurationResult.cc
Normal file
58
acms-open/src/model/DeleteConfigurationResult.cc
Normal file
@@ -0,0 +1,58 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT 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/acms-open/model/DeleteConfigurationResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Acms_open;
|
||||
using namespace AlibabaCloud::Acms_open::Model;
|
||||
|
||||
DeleteConfigurationResult::DeleteConfigurationResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DeleteConfigurationResult::DeleteConfigurationResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DeleteConfigurationResult::~DeleteConfigurationResult()
|
||||
{}
|
||||
|
||||
void DeleteConfigurationResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string DeleteConfigurationResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
std::string DeleteConfigurationResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
41
acms-open/src/model/DeleteNamespaceRequest.cc
Normal file
41
acms-open/src/model/DeleteNamespaceRequest.cc
Normal file
@@ -0,0 +1,41 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT 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/acms-open/model/DeleteNamespaceRequest.h>
|
||||
|
||||
using AlibabaCloud::Acms_open::Model::DeleteNamespaceRequest;
|
||||
|
||||
DeleteNamespaceRequest::DeleteNamespaceRequest() :
|
||||
RoaServiceRequest("acms-open", "2020-02-06")
|
||||
{
|
||||
setResourcePath("/diamond-ops/pop/namespace");
|
||||
setMethod(HttpRequest::Method::Delete);
|
||||
}
|
||||
|
||||
DeleteNamespaceRequest::~DeleteNamespaceRequest()
|
||||
{}
|
||||
|
||||
std::string DeleteNamespaceRequest::getNamespaceId()const
|
||||
{
|
||||
return namespaceId_;
|
||||
}
|
||||
|
||||
void DeleteNamespaceRequest::setNamespaceId(const std::string& namespaceId)
|
||||
{
|
||||
namespaceId_ = namespaceId;
|
||||
setParameter("NamespaceId", namespaceId);
|
||||
}
|
||||
|
||||
58
acms-open/src/model/DeleteNamespaceResult.cc
Normal file
58
acms-open/src/model/DeleteNamespaceResult.cc
Normal file
@@ -0,0 +1,58 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT 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/acms-open/model/DeleteNamespaceResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Acms_open;
|
||||
using namespace AlibabaCloud::Acms_open::Model;
|
||||
|
||||
DeleteNamespaceResult::DeleteNamespaceResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DeleteNamespaceResult::DeleteNamespaceResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DeleteNamespaceResult::~DeleteNamespaceResult()
|
||||
{}
|
||||
|
||||
void DeleteNamespaceResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string DeleteNamespaceResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
std::string DeleteNamespaceResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
118
acms-open/src/model/DeployConfigurationRequest.cc
Normal file
118
acms-open/src/model/DeployConfigurationRequest.cc
Normal file
@@ -0,0 +1,118 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT 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/acms-open/model/DeployConfigurationRequest.h>
|
||||
|
||||
using AlibabaCloud::Acms_open::Model::DeployConfigurationRequest;
|
||||
|
||||
DeployConfigurationRequest::DeployConfigurationRequest() :
|
||||
RoaServiceRequest("acms-open", "2020-02-06")
|
||||
{
|
||||
setResourcePath("/diamond-ops/pop/configuration");
|
||||
setMethod(HttpRequest::Method::Put);
|
||||
}
|
||||
|
||||
DeployConfigurationRequest::~DeployConfigurationRequest()
|
||||
{}
|
||||
|
||||
std::string DeployConfigurationRequest::getDataId()const
|
||||
{
|
||||
return dataId_;
|
||||
}
|
||||
|
||||
void DeployConfigurationRequest::setDataId(const std::string& dataId)
|
||||
{
|
||||
dataId_ = dataId;
|
||||
setBodyParameter("DataId", dataId);
|
||||
}
|
||||
|
||||
std::string DeployConfigurationRequest::getAppName()const
|
||||
{
|
||||
return appName_;
|
||||
}
|
||||
|
||||
void DeployConfigurationRequest::setAppName(const std::string& appName)
|
||||
{
|
||||
appName_ = appName;
|
||||
setBodyParameter("AppName", appName);
|
||||
}
|
||||
|
||||
std::string DeployConfigurationRequest::getNamespaceId()const
|
||||
{
|
||||
return namespaceId_;
|
||||
}
|
||||
|
||||
void DeployConfigurationRequest::setNamespaceId(const std::string& namespaceId)
|
||||
{
|
||||
namespaceId_ = namespaceId;
|
||||
setBodyParameter("NamespaceId", namespaceId);
|
||||
}
|
||||
|
||||
std::string DeployConfigurationRequest::getType()const
|
||||
{
|
||||
return type_;
|
||||
}
|
||||
|
||||
void DeployConfigurationRequest::setType(const std::string& type)
|
||||
{
|
||||
type_ = type;
|
||||
setBodyParameter("Type", type);
|
||||
}
|
||||
|
||||
std::string DeployConfigurationRequest::getContent()const
|
||||
{
|
||||
return content_;
|
||||
}
|
||||
|
||||
void DeployConfigurationRequest::setContent(const std::string& content)
|
||||
{
|
||||
content_ = content;
|
||||
setBodyParameter("Content", content);
|
||||
}
|
||||
|
||||
std::string DeployConfigurationRequest::getGroup()const
|
||||
{
|
||||
return group_;
|
||||
}
|
||||
|
||||
void DeployConfigurationRequest::setGroup(const std::string& group)
|
||||
{
|
||||
group_ = group;
|
||||
setBodyParameter("Group", group);
|
||||
}
|
||||
|
||||
std::string DeployConfigurationRequest::getDesc()const
|
||||
{
|
||||
return desc_;
|
||||
}
|
||||
|
||||
void DeployConfigurationRequest::setDesc(const std::string& desc)
|
||||
{
|
||||
desc_ = desc;
|
||||
setBodyParameter("Desc", desc);
|
||||
}
|
||||
|
||||
std::string DeployConfigurationRequest::getTags()const
|
||||
{
|
||||
return tags_;
|
||||
}
|
||||
|
||||
void DeployConfigurationRequest::setTags(const std::string& tags)
|
||||
{
|
||||
tags_ = tags;
|
||||
setBodyParameter("Tags", tags);
|
||||
}
|
||||
|
||||
58
acms-open/src/model/DeployConfigurationResult.cc
Normal file
58
acms-open/src/model/DeployConfigurationResult.cc
Normal file
@@ -0,0 +1,58 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT 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/acms-open/model/DeployConfigurationResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Acms_open;
|
||||
using namespace AlibabaCloud::Acms_open::Model;
|
||||
|
||||
DeployConfigurationResult::DeployConfigurationResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DeployConfigurationResult::DeployConfigurationResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DeployConfigurationResult::~DeployConfigurationResult()
|
||||
{}
|
||||
|
||||
void DeployConfigurationResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string DeployConfigurationResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
std::string DeployConfigurationResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
63
acms-open/src/model/DescribeConfigurationRequest.cc
Normal file
63
acms-open/src/model/DescribeConfigurationRequest.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/acms-open/model/DescribeConfigurationRequest.h>
|
||||
|
||||
using AlibabaCloud::Acms_open::Model::DescribeConfigurationRequest;
|
||||
|
||||
DescribeConfigurationRequest::DescribeConfigurationRequest() :
|
||||
RoaServiceRequest("acms-open", "2020-02-06")
|
||||
{
|
||||
setResourcePath("/diamond-ops/pop/configuration");
|
||||
setMethod(HttpRequest::Method::Get);
|
||||
}
|
||||
|
||||
DescribeConfigurationRequest::~DescribeConfigurationRequest()
|
||||
{}
|
||||
|
||||
std::string DescribeConfigurationRequest::getDataId()const
|
||||
{
|
||||
return dataId_;
|
||||
}
|
||||
|
||||
void DescribeConfigurationRequest::setDataId(const std::string& dataId)
|
||||
{
|
||||
dataId_ = dataId;
|
||||
setParameter("DataId", dataId);
|
||||
}
|
||||
|
||||
std::string DescribeConfigurationRequest::getNamespaceId()const
|
||||
{
|
||||
return namespaceId_;
|
||||
}
|
||||
|
||||
void DescribeConfigurationRequest::setNamespaceId(const std::string& namespaceId)
|
||||
{
|
||||
namespaceId_ = namespaceId;
|
||||
setParameter("NamespaceId", namespaceId);
|
||||
}
|
||||
|
||||
std::string DescribeConfigurationRequest::getGroup()const
|
||||
{
|
||||
return group_;
|
||||
}
|
||||
|
||||
void DescribeConfigurationRequest::setGroup(const std::string& group)
|
||||
{
|
||||
group_ = group;
|
||||
setParameter("Group", group);
|
||||
}
|
||||
|
||||
78
acms-open/src/model/DescribeConfigurationResult.cc
Normal file
78
acms-open/src/model/DescribeConfigurationResult.cc
Normal file
@@ -0,0 +1,78 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/acms-open/model/DescribeConfigurationResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Acms_open;
|
||||
using namespace AlibabaCloud::Acms_open::Model;
|
||||
|
||||
DescribeConfigurationResult::DescribeConfigurationResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DescribeConfigurationResult::DescribeConfigurationResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DescribeConfigurationResult::~DescribeConfigurationResult()
|
||||
{}
|
||||
|
||||
void DescribeConfigurationResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto configurationNode = value["Configuration"];
|
||||
if(!configurationNode["DataId"].isNull())
|
||||
configuration_.dataId = configurationNode["DataId"].asString();
|
||||
if(!configurationNode["Group"].isNull())
|
||||
configuration_.group = configurationNode["Group"].asString();
|
||||
if(!configurationNode["Content"].isNull())
|
||||
configuration_.content = configurationNode["Content"].asString();
|
||||
if(!configurationNode["Md5"].isNull())
|
||||
configuration_.md5 = configurationNode["Md5"].asString();
|
||||
if(!configurationNode["AppName"].isNull())
|
||||
configuration_.appName = configurationNode["AppName"].asString();
|
||||
if(!configurationNode["Desc"].isNull())
|
||||
configuration_.desc = configurationNode["Desc"].asString();
|
||||
if(!configurationNode["Tags"].isNull())
|
||||
configuration_.tags = configurationNode["Tags"].asString();
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
if(!value["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
|
||||
}
|
||||
|
||||
DescribeConfigurationResult::Configuration DescribeConfigurationResult::getConfiguration()const
|
||||
{
|
||||
return configuration_;
|
||||
}
|
||||
|
||||
std::string DescribeConfigurationResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
std::string DescribeConfigurationResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
41
acms-open/src/model/DescribeNamespaceRequest.cc
Normal file
41
acms-open/src/model/DescribeNamespaceRequest.cc
Normal file
@@ -0,0 +1,41 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT 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/acms-open/model/DescribeNamespaceRequest.h>
|
||||
|
||||
using AlibabaCloud::Acms_open::Model::DescribeNamespaceRequest;
|
||||
|
||||
DescribeNamespaceRequest::DescribeNamespaceRequest() :
|
||||
RoaServiceRequest("acms-open", "2020-02-06")
|
||||
{
|
||||
setResourcePath("/diamond-ops/pop/namespace");
|
||||
setMethod(HttpRequest::Method::Get);
|
||||
}
|
||||
|
||||
DescribeNamespaceRequest::~DescribeNamespaceRequest()
|
||||
{}
|
||||
|
||||
std::string DescribeNamespaceRequest::getNamespaceId()const
|
||||
{
|
||||
return namespaceId_;
|
||||
}
|
||||
|
||||
void DescribeNamespaceRequest::setNamespaceId(const std::string& namespaceId)
|
||||
{
|
||||
namespaceId_ = namespaceId;
|
||||
setParameter("NamespaceId", namespaceId);
|
||||
}
|
||||
|
||||
74
acms-open/src/model/DescribeNamespaceResult.cc
Normal file
74
acms-open/src/model/DescribeNamespaceResult.cc
Normal file
@@ -0,0 +1,74 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/acms-open/model/DescribeNamespaceResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Acms_open;
|
||||
using namespace AlibabaCloud::Acms_open::Model;
|
||||
|
||||
DescribeNamespaceResult::DescribeNamespaceResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DescribeNamespaceResult::DescribeNamespaceResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DescribeNamespaceResult::~DescribeNamespaceResult()
|
||||
{}
|
||||
|
||||
void DescribeNamespaceResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto _namespaceNode = value["Namespace"];
|
||||
if(!_namespaceNode["RegionId"].isNull())
|
||||
_namespace_.regionId = _namespaceNode["RegionId"].asString();
|
||||
if(!_namespaceNode["Endpoint"].isNull())
|
||||
_namespace_.endpoint = _namespaceNode["Endpoint"].asString();
|
||||
if(!_namespaceNode["AccessKey"].isNull())
|
||||
_namespace_.accessKey = _namespaceNode["AccessKey"].asString();
|
||||
if(!_namespaceNode["SecretKey"].isNull())
|
||||
_namespace_.secretKey = _namespaceNode["SecretKey"].asString();
|
||||
if(!_namespaceNode["Name"].isNull())
|
||||
_namespace_.name = _namespaceNode["Name"].asString();
|
||||
if(!value["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string DescribeNamespaceResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
DescribeNamespaceResult::_Namespace DescribeNamespaceResult::get_Namespace()const
|
||||
{
|
||||
return _namespace_;
|
||||
}
|
||||
|
||||
std::string DescribeNamespaceResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
52
acms-open/src/model/UpdateNamespaceRequest.cc
Normal file
52
acms-open/src/model/UpdateNamespaceRequest.cc
Normal file
@@ -0,0 +1,52 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT 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/acms-open/model/UpdateNamespaceRequest.h>
|
||||
|
||||
using AlibabaCloud::Acms_open::Model::UpdateNamespaceRequest;
|
||||
|
||||
UpdateNamespaceRequest::UpdateNamespaceRequest() :
|
||||
RoaServiceRequest("acms-open", "2020-02-06")
|
||||
{
|
||||
setResourcePath("/diamond-ops/pop/namespace");
|
||||
setMethod(HttpRequest::Method::Put);
|
||||
}
|
||||
|
||||
UpdateNamespaceRequest::~UpdateNamespaceRequest()
|
||||
{}
|
||||
|
||||
std::string UpdateNamespaceRequest::getNamespaceName()const
|
||||
{
|
||||
return namespaceName_;
|
||||
}
|
||||
|
||||
void UpdateNamespaceRequest::setNamespaceName(const std::string& namespaceName)
|
||||
{
|
||||
namespaceName_ = namespaceName;
|
||||
setBodyParameter("NamespaceName", namespaceName);
|
||||
}
|
||||
|
||||
std::string UpdateNamespaceRequest::getNamespaceId()const
|
||||
{
|
||||
return namespaceId_;
|
||||
}
|
||||
|
||||
void UpdateNamespaceRequest::setNamespaceId(const std::string& namespaceId)
|
||||
{
|
||||
namespaceId_ = namespaceId;
|
||||
setBodyParameter("NamespaceId", namespaceId);
|
||||
}
|
||||
|
||||
58
acms-open/src/model/UpdateNamespaceResult.cc
Normal file
58
acms-open/src/model/UpdateNamespaceResult.cc
Normal file
@@ -0,0 +1,58 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT 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/acms-open/model/UpdateNamespaceResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Acms_open;
|
||||
using namespace AlibabaCloud::Acms_open::Model;
|
||||
|
||||
UpdateNamespaceResult::UpdateNamespaceResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
UpdateNamespaceResult::UpdateNamespaceResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
UpdateNamespaceResult::~UpdateNamespaceResult()
|
||||
{}
|
||||
|
||||
void UpdateNamespaceResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string UpdateNamespaceResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
std::string UpdateNamespaceResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
@@ -77,6 +77,8 @@ set(adb_public_header_model
|
||||
include/alibabacloud/adb/model/DescribeTableDetailResult.h
|
||||
include/alibabacloud/adb/model/DescribeTablesRequest.h
|
||||
include/alibabacloud/adb/model/DescribeTablesResult.h
|
||||
include/alibabacloud/adb/model/DescribeTaskInfoRequest.h
|
||||
include/alibabacloud/adb/model/DescribeTaskInfoResult.h
|
||||
include/alibabacloud/adb/model/GrantOperatorPermissionRequest.h
|
||||
include/alibabacloud/adb/model/GrantOperatorPermissionResult.h
|
||||
include/alibabacloud/adb/model/KillProcessRequest.h
|
||||
@@ -89,6 +91,8 @@ set(adb_public_header_model
|
||||
include/alibabacloud/adb/model/ModifyAutoRenewAttributeResult.h
|
||||
include/alibabacloud/adb/model/ModifyBackupPolicyRequest.h
|
||||
include/alibabacloud/adb/model/ModifyBackupPolicyResult.h
|
||||
include/alibabacloud/adb/model/ModifyClusterConnectionStringRequest.h
|
||||
include/alibabacloud/adb/model/ModifyClusterConnectionStringResult.h
|
||||
include/alibabacloud/adb/model/ModifyDBClusterRequest.h
|
||||
include/alibabacloud/adb/model/ModifyDBClusterResult.h
|
||||
include/alibabacloud/adb/model/ModifyDBClusterAccessWhiteListRequest.h
|
||||
@@ -168,6 +172,8 @@ set(adb_src
|
||||
src/model/DescribeTableDetailResult.cc
|
||||
src/model/DescribeTablesRequest.cc
|
||||
src/model/DescribeTablesResult.cc
|
||||
src/model/DescribeTaskInfoRequest.cc
|
||||
src/model/DescribeTaskInfoResult.cc
|
||||
src/model/GrantOperatorPermissionRequest.cc
|
||||
src/model/GrantOperatorPermissionResult.cc
|
||||
src/model/KillProcessRequest.cc
|
||||
@@ -180,6 +186,8 @@ set(adb_src
|
||||
src/model/ModifyAutoRenewAttributeResult.cc
|
||||
src/model/ModifyBackupPolicyRequest.cc
|
||||
src/model/ModifyBackupPolicyResult.cc
|
||||
src/model/ModifyClusterConnectionStringRequest.cc
|
||||
src/model/ModifyClusterConnectionStringResult.cc
|
||||
src/model/ModifyDBClusterRequest.cc
|
||||
src/model/ModifyDBClusterResult.cc
|
||||
src/model/ModifyDBClusterAccessWhiteListRequest.cc
|
||||
|
||||
@@ -78,6 +78,8 @@
|
||||
#include "model/DescribeTableDetailResult.h"
|
||||
#include "model/DescribeTablesRequest.h"
|
||||
#include "model/DescribeTablesResult.h"
|
||||
#include "model/DescribeTaskInfoRequest.h"
|
||||
#include "model/DescribeTaskInfoResult.h"
|
||||
#include "model/GrantOperatorPermissionRequest.h"
|
||||
#include "model/GrantOperatorPermissionResult.h"
|
||||
#include "model/KillProcessRequest.h"
|
||||
@@ -90,6 +92,8 @@
|
||||
#include "model/ModifyAutoRenewAttributeResult.h"
|
||||
#include "model/ModifyBackupPolicyRequest.h"
|
||||
#include "model/ModifyBackupPolicyResult.h"
|
||||
#include "model/ModifyClusterConnectionStringRequest.h"
|
||||
#include "model/ModifyClusterConnectionStringResult.h"
|
||||
#include "model/ModifyDBClusterRequest.h"
|
||||
#include "model/ModifyDBClusterResult.h"
|
||||
#include "model/ModifyDBClusterAccessWhiteListRequest.h"
|
||||
@@ -203,6 +207,9 @@ namespace AlibabaCloud
|
||||
typedef Outcome<Error, Model::DescribeTablesResult> DescribeTablesOutcome;
|
||||
typedef std::future<DescribeTablesOutcome> DescribeTablesOutcomeCallable;
|
||||
typedef std::function<void(const AdbClient*, const Model::DescribeTablesRequest&, const DescribeTablesOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeTablesAsyncHandler;
|
||||
typedef Outcome<Error, Model::DescribeTaskInfoResult> DescribeTaskInfoOutcome;
|
||||
typedef std::future<DescribeTaskInfoOutcome> DescribeTaskInfoOutcomeCallable;
|
||||
typedef std::function<void(const AdbClient*, const Model::DescribeTaskInfoRequest&, const DescribeTaskInfoOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeTaskInfoAsyncHandler;
|
||||
typedef Outcome<Error, Model::GrantOperatorPermissionResult> GrantOperatorPermissionOutcome;
|
||||
typedef std::future<GrantOperatorPermissionOutcome> GrantOperatorPermissionOutcomeCallable;
|
||||
typedef std::function<void(const AdbClient*, const Model::GrantOperatorPermissionRequest&, const GrantOperatorPermissionOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GrantOperatorPermissionAsyncHandler;
|
||||
@@ -221,6 +228,9 @@ namespace AlibabaCloud
|
||||
typedef Outcome<Error, Model::ModifyBackupPolicyResult> ModifyBackupPolicyOutcome;
|
||||
typedef std::future<ModifyBackupPolicyOutcome> ModifyBackupPolicyOutcomeCallable;
|
||||
typedef std::function<void(const AdbClient*, const Model::ModifyBackupPolicyRequest&, const ModifyBackupPolicyOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ModifyBackupPolicyAsyncHandler;
|
||||
typedef Outcome<Error, Model::ModifyClusterConnectionStringResult> ModifyClusterConnectionStringOutcome;
|
||||
typedef std::future<ModifyClusterConnectionStringOutcome> ModifyClusterConnectionStringOutcomeCallable;
|
||||
typedef std::function<void(const AdbClient*, const Model::ModifyClusterConnectionStringRequest&, const ModifyClusterConnectionStringOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ModifyClusterConnectionStringAsyncHandler;
|
||||
typedef Outcome<Error, Model::ModifyDBClusterResult> ModifyDBClusterOutcome;
|
||||
typedef std::future<ModifyDBClusterOutcome> ModifyDBClusterOutcomeCallable;
|
||||
typedef std::function<void(const AdbClient*, const Model::ModifyDBClusterRequest&, const ModifyDBClusterOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ModifyDBClusterAsyncHandler;
|
||||
@@ -340,6 +350,9 @@ namespace AlibabaCloud
|
||||
DescribeTablesOutcome describeTables(const Model::DescribeTablesRequest &request)const;
|
||||
void describeTablesAsync(const Model::DescribeTablesRequest& request, const DescribeTablesAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DescribeTablesOutcomeCallable describeTablesCallable(const Model::DescribeTablesRequest& request) const;
|
||||
DescribeTaskInfoOutcome describeTaskInfo(const Model::DescribeTaskInfoRequest &request)const;
|
||||
void describeTaskInfoAsync(const Model::DescribeTaskInfoRequest& request, const DescribeTaskInfoAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DescribeTaskInfoOutcomeCallable describeTaskInfoCallable(const Model::DescribeTaskInfoRequest& request) const;
|
||||
GrantOperatorPermissionOutcome grantOperatorPermission(const Model::GrantOperatorPermissionRequest &request)const;
|
||||
void grantOperatorPermissionAsync(const Model::GrantOperatorPermissionRequest& request, const GrantOperatorPermissionAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
GrantOperatorPermissionOutcomeCallable grantOperatorPermissionCallable(const Model::GrantOperatorPermissionRequest& request) const;
|
||||
@@ -358,6 +371,9 @@ namespace AlibabaCloud
|
||||
ModifyBackupPolicyOutcome modifyBackupPolicy(const Model::ModifyBackupPolicyRequest &request)const;
|
||||
void modifyBackupPolicyAsync(const Model::ModifyBackupPolicyRequest& request, const ModifyBackupPolicyAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
ModifyBackupPolicyOutcomeCallable modifyBackupPolicyCallable(const Model::ModifyBackupPolicyRequest& request) const;
|
||||
ModifyClusterConnectionStringOutcome modifyClusterConnectionString(const Model::ModifyClusterConnectionStringRequest &request)const;
|
||||
void modifyClusterConnectionStringAsync(const Model::ModifyClusterConnectionStringRequest& request, const ModifyClusterConnectionStringAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
ModifyClusterConnectionStringOutcomeCallable modifyClusterConnectionStringCallable(const Model::ModifyClusterConnectionStringRequest& request) const;
|
||||
ModifyDBClusterOutcome modifyDBCluster(const Model::ModifyDBClusterRequest &request)const;
|
||||
void modifyDBClusterAsync(const Model::ModifyDBClusterRequest& request, const ModifyDBClusterAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
ModifyDBClusterOutcomeCallable modifyDBClusterCallable(const Model::ModifyDBClusterRequest& request) const;
|
||||
|
||||
@@ -37,6 +37,8 @@ namespace AlibabaCloud
|
||||
|
||||
long getResourceOwnerId()const;
|
||||
void setResourceOwnerId(long resourceOwnerId);
|
||||
std::string getAccountType()const;
|
||||
void setAccountType(const std::string& accountType);
|
||||
std::string getAccountDescription()const;
|
||||
void setAccountDescription(const std::string& accountDescription);
|
||||
std::string getAccessKeyId()const;
|
||||
@@ -56,6 +58,7 @@ namespace AlibabaCloud
|
||||
|
||||
private:
|
||||
long resourceOwnerId_;
|
||||
std::string accountType_;
|
||||
std::string accountDescription_;
|
||||
std::string accessKeyId_;
|
||||
std::string accountName_;
|
||||
|
||||
@@ -37,10 +37,14 @@ namespace AlibabaCloud
|
||||
CreateAccountResult();
|
||||
explicit CreateAccountResult(const std::string &payload);
|
||||
~CreateAccountResult();
|
||||
int getTaskId()const;
|
||||
std::string getDBClusterId()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
int taskId_;
|
||||
std::string dBClusterId_;
|
||||
|
||||
};
|
||||
}
|
||||
|
||||
@@ -37,6 +37,8 @@ namespace AlibabaCloud
|
||||
|
||||
long getResourceOwnerId()const;
|
||||
void setResourceOwnerId(long resourceOwnerId);
|
||||
std::string getAccountType()const;
|
||||
void setAccountType(const std::string& accountType);
|
||||
std::string getAccessKeyId()const;
|
||||
void setAccessKeyId(const std::string& accessKeyId);
|
||||
std::string getAccountName()const;
|
||||
@@ -52,6 +54,7 @@ namespace AlibabaCloud
|
||||
|
||||
private:
|
||||
long resourceOwnerId_;
|
||||
std::string accountType_;
|
||||
std::string accessKeyId_;
|
||||
std::string accountName_;
|
||||
std::string resourceOwnerAccount_;
|
||||
|
||||
@@ -37,6 +37,8 @@ namespace AlibabaCloud
|
||||
|
||||
long getResourceOwnerId()const;
|
||||
void setResourceOwnerId(long resourceOwnerId);
|
||||
std::string getAccountType()const;
|
||||
void setAccountType(const std::string& accountType);
|
||||
std::string getAccessKeyId()const;
|
||||
void setAccessKeyId(const std::string& accessKeyId);
|
||||
std::string getAccountName()const;
|
||||
@@ -52,6 +54,7 @@ namespace AlibabaCloud
|
||||
|
||||
private:
|
||||
long resourceOwnerId_;
|
||||
std::string accountType_;
|
||||
std::string accessKeyId_;
|
||||
std::string accountName_;
|
||||
std::string resourceOwnerAccount_;
|
||||
|
||||
@@ -48,6 +48,7 @@ namespace AlibabaCloud
|
||||
std::string tableName;
|
||||
std::string columnName;
|
||||
std::string type;
|
||||
bool autoIncrementColumn;
|
||||
std::string dBClusterId;
|
||||
bool primaryKey;
|
||||
std::string schemaName;
|
||||
|
||||
@@ -35,15 +35,33 @@ namespace AlibabaCloud
|
||||
DescribeAvailableResourceRequest();
|
||||
~DescribeAvailableResourceRequest();
|
||||
|
||||
long getResourceOwnerId()const;
|
||||
void setResourceOwnerId(long resourceOwnerId);
|
||||
std::string getAccessKeyId()const;
|
||||
void setAccessKeyId(const std::string& accessKeyId);
|
||||
std::string getRegionId()const;
|
||||
void setRegionId(const std::string& regionId);
|
||||
std::string getResourceOwnerAccount()const;
|
||||
void setResourceOwnerAccount(const std::string& resourceOwnerAccount);
|
||||
std::string getOwnerAccount()const;
|
||||
void setOwnerAccount(const std::string& ownerAccount);
|
||||
long getOwnerId()const;
|
||||
void setOwnerId(long ownerId);
|
||||
std::string getAcceptLanguage()const;
|
||||
void setAcceptLanguage(const std::string& acceptLanguage);
|
||||
std::string getZoneId()const;
|
||||
void setZoneId(const std::string& zoneId);
|
||||
std::string getChargeType()const;
|
||||
void setChargeType(const std::string& chargeType);
|
||||
|
||||
private:
|
||||
long resourceOwnerId_;
|
||||
std::string accessKeyId_;
|
||||
std::string regionId_;
|
||||
std::string resourceOwnerAccount_;
|
||||
std::string ownerAccount_;
|
||||
long ownerId_;
|
||||
std::string acceptLanguage_;
|
||||
std::string zoneId_;
|
||||
std::string chargeType_;
|
||||
|
||||
|
||||
@@ -40,7 +40,13 @@ namespace AlibabaCloud
|
||||
{
|
||||
struct SupportedNodeCount
|
||||
{
|
||||
std::string nodeCount;
|
||||
struct NodeCount
|
||||
{
|
||||
std::string maxCount;
|
||||
std::string step;
|
||||
std::string minCount;
|
||||
};
|
||||
NodeCount nodeCount;
|
||||
std::vector<std::string> storageSize;
|
||||
};
|
||||
std::string instanceClass;
|
||||
|
||||
@@ -37,6 +37,7 @@ namespace AlibabaCloud
|
||||
std::string tableName;
|
||||
std::string columnName;
|
||||
std::string type;
|
||||
bool autoIncrementColumn;
|
||||
std::string dBClusterId;
|
||||
bool primaryKey;
|
||||
std::string schemaName;
|
||||
|
||||
@@ -40,10 +40,12 @@ namespace AlibabaCloud
|
||||
std::string key;
|
||||
};
|
||||
std::string category;
|
||||
int port;
|
||||
std::string dBClusterId;
|
||||
std::string dBClusterNetworkType;
|
||||
std::string dBClusterType;
|
||||
std::string dBVersion;
|
||||
std::string dtsJobId;
|
||||
long dBNodeCount;
|
||||
std::string commodityCode;
|
||||
std::string lockReason;
|
||||
@@ -64,6 +66,8 @@ namespace AlibabaCloud
|
||||
std::string creationTime;
|
||||
std::string regionId;
|
||||
std::string expireTime;
|
||||
std::string connectionString;
|
||||
std::string rdsInstanceId;
|
||||
};
|
||||
|
||||
|
||||
|
||||
@@ -30,6 +30,7 @@ namespace AlibabaCloud
|
||||
{
|
||||
class ALIBABACLOUD_ADB_EXPORT DescribeDBClustersRequest : public RpcServiceRequest
|
||||
{
|
||||
public:
|
||||
struct Tag
|
||||
{
|
||||
std::string value;
|
||||
|
||||
@@ -51,12 +51,14 @@ namespace AlibabaCloud
|
||||
std::string dBNodeClass;
|
||||
std::string dBClusterType;
|
||||
std::string dBVersion;
|
||||
std::string dtsJobId;
|
||||
long dBNodeCount;
|
||||
std::string commodityCode;
|
||||
std::string regionId;
|
||||
std::string expireTime;
|
||||
std::string lockReason;
|
||||
std::vector<DBCluster::Tag> tags;
|
||||
std::string rdsInstanceId;
|
||||
};
|
||||
|
||||
|
||||
|
||||
@@ -35,14 +35,18 @@ namespace AlibabaCloud
|
||||
struct SlowLogRecord
|
||||
{
|
||||
std::string userName;
|
||||
std::string peakMemoryUsage;
|
||||
std::string executionStartTime;
|
||||
long returnRowCounts;
|
||||
std::string dBName;
|
||||
long queryTime;
|
||||
long parseRowCounts;
|
||||
std::string processID;
|
||||
std::string hostAddress;
|
||||
std::string sQLText;
|
||||
std::string state;
|
||||
long returnRowCounts;
|
||||
std::string dBName;
|
||||
long queueTime;
|
||||
std::string processID;
|
||||
std::string scanSize;
|
||||
};
|
||||
|
||||
|
||||
|
||||
66
adb/include/alibabacloud/adb/model/DescribeTaskInfoRequest.h
Normal file
66
adb/include/alibabacloud/adb/model/DescribeTaskInfoRequest.h
Normal file
@@ -0,0 +1,66 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_ADB_MODEL_DESCRIBETASKINFOREQUEST_H_
|
||||
#define ALIBABACLOUD_ADB_MODEL_DESCRIBETASKINFOREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/adb/AdbExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Adb
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_ADB_EXPORT DescribeTaskInfoRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
DescribeTaskInfoRequest();
|
||||
~DescribeTaskInfoRequest();
|
||||
|
||||
long getResourceOwnerId()const;
|
||||
void setResourceOwnerId(long resourceOwnerId);
|
||||
std::string getAccessKeyId()const;
|
||||
void setAccessKeyId(const std::string& accessKeyId);
|
||||
int getTaskId()const;
|
||||
void setTaskId(int taskId);
|
||||
std::string getResourceOwnerAccount()const;
|
||||
void setResourceOwnerAccount(const std::string& resourceOwnerAccount);
|
||||
std::string getDBClusterId()const;
|
||||
void setDBClusterId(const std::string& dBClusterId);
|
||||
std::string getOwnerAccount()const;
|
||||
void setOwnerAccount(const std::string& ownerAccount);
|
||||
long getOwnerId()const;
|
||||
void setOwnerId(long ownerId);
|
||||
|
||||
private:
|
||||
long resourceOwnerId_;
|
||||
std::string accessKeyId_;
|
||||
int taskId_;
|
||||
std::string resourceOwnerAccount_;
|
||||
std::string dBClusterId_;
|
||||
std::string ownerAccount_;
|
||||
long ownerId_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_ADB_MODEL_DESCRIBETASKINFOREQUEST_H_
|
||||
59
adb/include/alibabacloud/adb/model/DescribeTaskInfoResult.h
Normal file
59
adb/include/alibabacloud/adb/model/DescribeTaskInfoResult.h
Normal file
@@ -0,0 +1,59 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_ADB_MODEL_DESCRIBETASKINFORESULT_H_
|
||||
#define ALIBABACLOUD_ADB_MODEL_DESCRIBETASKINFORESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/adb/AdbExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Adb
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_ADB_EXPORT DescribeTaskInfoResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct TaskInfo
|
||||
{
|
||||
std::string status;
|
||||
std::string progress;
|
||||
int taskId;
|
||||
std::string finishTime;
|
||||
std::string beginTime;
|
||||
};
|
||||
|
||||
|
||||
DescribeTaskInfoResult();
|
||||
explicit DescribeTaskInfoResult(const std::string &payload);
|
||||
~DescribeTaskInfoResult();
|
||||
TaskInfo getTaskInfo()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
TaskInfo taskInfo_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_ADB_MODEL_DESCRIBETASKINFORESULT_H_
|
||||
@@ -30,6 +30,7 @@ namespace AlibabaCloud
|
||||
{
|
||||
class ALIBABACLOUD_ADB_EXPORT ListTagResourcesRequest : public RpcServiceRequest
|
||||
{
|
||||
public:
|
||||
struct Tag
|
||||
{
|
||||
std::string value;
|
||||
|
||||
@@ -0,0 +1,72 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_ADB_MODEL_MODIFYCLUSTERCONNECTIONSTRINGREQUEST_H_
|
||||
#define ALIBABACLOUD_ADB_MODEL_MODIFYCLUSTERCONNECTIONSTRINGREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/adb/AdbExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Adb
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_ADB_EXPORT ModifyClusterConnectionStringRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
ModifyClusterConnectionStringRequest();
|
||||
~ModifyClusterConnectionStringRequest();
|
||||
|
||||
long getResourceOwnerId()const;
|
||||
void setResourceOwnerId(long resourceOwnerId);
|
||||
std::string getConnectionStringPrefix()const;
|
||||
void setConnectionStringPrefix(const std::string& connectionStringPrefix);
|
||||
std::string getAccessKeyId()const;
|
||||
void setAccessKeyId(const std::string& accessKeyId);
|
||||
std::string getResourceOwnerAccount()const;
|
||||
void setResourceOwnerAccount(const std::string& resourceOwnerAccount);
|
||||
std::string getDBClusterId()const;
|
||||
void setDBClusterId(const std::string& dBClusterId);
|
||||
std::string getOwnerAccount()const;
|
||||
void setOwnerAccount(const std::string& ownerAccount);
|
||||
long getOwnerId()const;
|
||||
void setOwnerId(long ownerId);
|
||||
std::string getCurrentConnectionString()const;
|
||||
void setCurrentConnectionString(const std::string& currentConnectionString);
|
||||
int getPort()const;
|
||||
void setPort(int port);
|
||||
|
||||
private:
|
||||
long resourceOwnerId_;
|
||||
std::string connectionStringPrefix_;
|
||||
std::string accessKeyId_;
|
||||
std::string resourceOwnerAccount_;
|
||||
std::string dBClusterId_;
|
||||
std::string ownerAccount_;
|
||||
long ownerId_;
|
||||
std::string currentConnectionString_;
|
||||
int port_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_ADB_MODEL_MODIFYCLUSTERCONNECTIONSTRINGREQUEST_H_
|
||||
@@ -0,0 +1,49 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_ADB_MODEL_MODIFYCLUSTERCONNECTIONSTRINGRESULT_H_
|
||||
#define ALIBABACLOUD_ADB_MODEL_MODIFYCLUSTERCONNECTIONSTRINGRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/adb/AdbExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Adb
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_ADB_EXPORT ModifyClusterConnectionStringResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
|
||||
|
||||
ModifyClusterConnectionStringResult();
|
||||
explicit ModifyClusterConnectionStringResult(const std::string &payload);
|
||||
~ModifyClusterConnectionStringResult();
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_ADB_MODEL_MODIFYCLUSTERCONNECTIONSTRINGRESULT_H_
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user