Compare commits
104 Commits
1.36.596
...
cams-patch
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
05785cf5fd | ||
|
|
15b4e73175 | ||
|
|
e1f296f89d | ||
|
|
8615dbe002 | ||
|
|
8fd81bf1dd | ||
|
|
88f0753937 | ||
|
|
c93100c1b5 | ||
|
|
c5dd7f096e | ||
|
|
e3b1009a94 | ||
|
|
37c044aa31 | ||
|
|
5aead39d0e | ||
|
|
b9a7e15af4 | ||
|
|
60799e2b22 | ||
|
|
d4c20caaed | ||
|
|
f2caf37a92 | ||
|
|
b31d71fa81 | ||
|
|
7ee07b8331 | ||
|
|
cfb09d135f | ||
|
|
c1b1b41108 | ||
|
|
08b2ac884b | ||
|
|
84a2c24970 | ||
|
|
d088239972 | ||
|
|
f014392806 | ||
|
|
9290117d12 | ||
|
|
99236bb124 | ||
|
|
4595bf16e1 | ||
|
|
152b44dbed | ||
|
|
9535455a22 | ||
|
|
2de19aea44 | ||
|
|
23cb861a2f | ||
|
|
2123976cc2 | ||
|
|
7097cf0d88 | ||
|
|
dd1d0e5359 | ||
|
|
3823d5045a | ||
|
|
80e095a3fc | ||
|
|
c12d0267d7 | ||
|
|
d69766bdfd | ||
|
|
7ac1c23a9f | ||
|
|
088c3010cd | ||
|
|
5c7994cbcb | ||
|
|
3fc73ce0c4 | ||
|
|
aa99d784f0 | ||
|
|
f82391b140 | ||
|
|
c920c94335 | ||
|
|
d7f985a33b | ||
|
|
7db054750e | ||
|
|
73412a8d8d | ||
|
|
51f047d6f3 | ||
|
|
2d5bf1dbd8 | ||
|
|
a60cd6a5ae | ||
|
|
59dbc66bfe | ||
|
|
d6292fe40b | ||
|
|
061f62c362 | ||
|
|
a3ccdb3f65 | ||
|
|
565bfada36 | ||
|
|
716769a300 | ||
|
|
c4348c87cb | ||
|
|
d3ce4be157 | ||
|
|
05e5980ef3 | ||
|
|
7cf2b932e7 | ||
|
|
c056e54eae | ||
|
|
04cce0ba30 | ||
|
|
c5b68d7ead | ||
|
|
52e7b30f54 | ||
|
|
98ef8c88e8 | ||
|
|
8f2290c159 | ||
|
|
a264cee31b | ||
|
|
ebdf18def1 | ||
|
|
5a6bd32d63 | ||
|
|
86f01c44a8 | ||
|
|
a69c540c10 | ||
|
|
60ea8efd1a | ||
|
|
20e471c41f | ||
|
|
dbb5d5f56d | ||
|
|
68f2493757 | ||
|
|
ff645a988c | ||
|
|
151822de9a | ||
|
|
793abf30f9 | ||
|
|
c0045d1c32 | ||
|
|
43f0c30248 | ||
|
|
dff2b43722 | ||
|
|
090d6da253 | ||
|
|
bd85a14b02 | ||
|
|
30c9817822 | ||
|
|
8f847b0f5d | ||
|
|
1dcf6cb7f3 | ||
|
|
b5790be0db | ||
|
|
371081045a | ||
|
|
480c9b3700 | ||
|
|
72ca50ab65 | ||
|
|
34747e61fe | ||
|
|
b6697980bc | ||
|
|
e3e5a0ff42 | ||
|
|
3c1c245147 | ||
|
|
8c27cbdc14 | ||
|
|
8ac065c14f | ||
|
|
e68269b045 | ||
|
|
53ac431b11 | ||
|
|
5255330d62 | ||
|
|
b9a879f696 | ||
|
|
7ac2669922 | ||
|
|
9693807164 | ||
|
|
e20435dd22 | ||
|
|
06eedce285 |
340
CHANGELOG
340
CHANGELOG
@@ -1,3 +1,343 @@
|
||||
2020-10-12 Version: patch
|
||||
- ChatApp third version.
|
||||
- Add contack check api.
|
||||
|
||||
2020-10-09 Version: patch
|
||||
- Update Scdn API.
|
||||
|
||||
2020-10-09 Version: patch
|
||||
- Update DescribeCdnUserBillHistory API.
|
||||
|
||||
2020-10-09 Version: patch
|
||||
- Update SetVideoSeekConfig API.
|
||||
|
||||
2020-09-29 Version: patch
|
||||
- Add API OpenOnsService which can active ons service.
|
||||
|
||||
2020-09-29 Version: patch
|
||||
- Add API OpenOnsService which can active ons service.
|
||||
|
||||
2020-09-29 Version: patch
|
||||
- Update CalcCACS.
|
||||
|
||||
2020-09-29 Version: patch
|
||||
- Add API OpenOnsService which can active ons service.
|
||||
|
||||
2020-09-29 Version: patch
|
||||
- Add API OpenOnsService which can active ons service.
|
||||
|
||||
2020-09-29 Version: patch
|
||||
- Supported regional API.
|
||||
|
||||
2020-09-28 Version: patch
|
||||
- Update Scdn API.
|
||||
|
||||
2020-09-28 Version: patch
|
||||
- Support for resize hbaseue multi-zone cluster.
|
||||
|
||||
2020-09-28 Version: patch
|
||||
- Support filtering keys and secrets.
|
||||
- Support opening KMS service and describing service status by API.
|
||||
- Add a prefix limitation for SecretName.
|
||||
|
||||
2020-09-27 Version: patch
|
||||
- Update domain API.
|
||||
|
||||
2020-09-27 Version: patch
|
||||
- Update domain API.
|
||||
|
||||
2020-09-27 Version: patch
|
||||
- Support Open Service API.
|
||||
|
||||
2020-09-27 Version: patch
|
||||
- DescribeAvailableResource support list available resource for modify instance.
|
||||
|
||||
2020-09-25 Version: patch
|
||||
- Public beta version.
|
||||
- Add Api Overseas.
|
||||
|
||||
2020-09-25 Version: patch
|
||||
- Public beta version.
|
||||
- Add Api Overseas.
|
||||
|
||||
2020-09-24 Version: patch
|
||||
- Support create for serverlesshbase.
|
||||
|
||||
2020-09-24 Version: patch
|
||||
- ContrastFaceVerify API Add Model Parameter.
|
||||
|
||||
2020-09-24 Version: patch
|
||||
- Add a new api named SubmitAIImageAuditJob to submit image ai detection job.
|
||||
- Add a new api named CreateDNADB to create a DNA analysis library.
|
||||
- Add a new api named ListDNADB to query the list of DNA analysis libraries.
|
||||
- Add a new api named GetDNADB to query specified DNA analysis library.
|
||||
- Add a new field DNADBId to the request parameter Config structure for SubmitAIJob api.
|
||||
|
||||
2020-09-23 Version: patch
|
||||
- Add spotDuration support.
|
||||
|
||||
2020-09-23 Version: patch
|
||||
- Some new parameters are supported.
|
||||
|
||||
2020-09-23 Version: patch
|
||||
- Update domain API.
|
||||
|
||||
2020-09-23 Version: patch
|
||||
- Update Scdn API.
|
||||
|
||||
2020-09-23 Version: patch
|
||||
- Sync cdn APIs.
|
||||
|
||||
2020-09-22 Version: patch
|
||||
- DescribePrice update amount type to string.
|
||||
|
||||
2020-09-22 Version: patch
|
||||
- Generated 2019-03-08 for `ivision`.
|
||||
|
||||
2020-09-22 Version: patch
|
||||
- Generated 2018-01-11 for `rtc`.
|
||||
|
||||
2020-09-22 Version: patch
|
||||
- Generated 2018-12-12 for `vs`.
|
||||
|
||||
2020-09-22 Version: patch
|
||||
- Generated 2016-11-01 for `live`.
|
||||
|
||||
2020-09-21 Version: patch
|
||||
- Interface add column wordCount.
|
||||
|
||||
2020-09-21 Version: patch
|
||||
- Add search object.
|
||||
|
||||
2020-09-20 Version: patch
|
||||
- Add describe devices to return device status.
|
||||
|
||||
2020-09-20 Version: patch
|
||||
- Add describe devices to return device status.
|
||||
|
||||
2020-09-19 Version: patch
|
||||
- Support query user tenant list and current active tenant.
|
||||
- Support query table meta information via table GUID.
|
||||
|
||||
2020-09-18 Version: patch
|
||||
- Update DetectLungNodule, DetectSpineMRI, DetectKneeXRay, DetectCovid19Cad.
|
||||
|
||||
2020-09-17 Version: patch
|
||||
- Add Api DetectIPCPedestrianOptimized.
|
||||
|
||||
2020-09-17 Version: patch
|
||||
- Add Api DetectIPCPedestrianOptimized.
|
||||
|
||||
2020-09-17 Version: patch
|
||||
- GetTitleIntelligence add interface.
|
||||
|
||||
2020-09-17 Version: patch
|
||||
- Fix endpoint.
|
||||
|
||||
2020-09-16 Version: patch
|
||||
- Add Content.
|
||||
|
||||
2020-09-15 Version: patch
|
||||
- Add describe devices to return device status.
|
||||
|
||||
2020-09-14 Version: patch
|
||||
- Support corp name search.
|
||||
|
||||
2020-09-14 Version: patch
|
||||
- Support corp name search.
|
||||
|
||||
2020-09-11 Version: patch
|
||||
- Support execute database script via open api.
|
||||
|
||||
2020-09-10 Version: patch
|
||||
- Add DisableBackupLog.
|
||||
- Add EnableBackupLog.
|
||||
- Add ReleaseBackupPlan.
|
||||
- Add ModifyStorageStrategy.
|
||||
- Modify ModifyBackupStrategy.
|
||||
- Modify ModifyBackupSetDownloadRules.
|
||||
|
||||
2020-09-10 Version: patch
|
||||
- Update HasRenewChangeOrder type to Boolean in DescribeInstances.
|
||||
|
||||
2020-09-09 Version: patch
|
||||
- Add support cn-beijing service region.
|
||||
- Add ai video cover interface,include submit and query.
|
||||
- Add dynamic image query interface.
|
||||
- Update SubmitMediaAuditJob support MediaAuditConfiguration to set ResourceType.
|
||||
|
||||
2020-09-09 Version: patch
|
||||
- Release ChangeSky.
|
||||
|
||||
2020-09-09 Version: patch
|
||||
- Release DetectChefCap.
|
||||
|
||||
2020-09-09 Version: patch
|
||||
- Release DetectKneeKeypointXRay, DetectHipKeypointXRay, CalcCACS, RunCTRegistration, ClassifyFNF.
|
||||
|
||||
2020-09-08 Version: patch
|
||||
- Supported backend interface for ICBU.
|
||||
|
||||
2020-09-08 Version: patch
|
||||
- Add DescribeActiveOperationTask.
|
||||
- Add DescribeActiveOperationTaskCount.
|
||||
- Add DescribeActiveOperationTaskRegion.
|
||||
- Add DescribeActiveOperationTaskType.
|
||||
- Add ModifyActiveOperationTask.
|
||||
|
||||
2020-09-08 Version: patch
|
||||
- Modify CreateAsyncPredict add new parameters.
|
||||
|
||||
2020-09-07 Version: patch
|
||||
- Support parameter APIs.
|
||||
|
||||
2020-09-07 Version: patch
|
||||
- Add describes devices API.
|
||||
|
||||
2020-09-07 Version: patch
|
||||
- Add describes devices API.
|
||||
|
||||
2020-09-07 Version: patch
|
||||
- Add describes devices API.
|
||||
|
||||
2020-09-07 Version: patch
|
||||
- Add describes devices API.
|
||||
|
||||
2020-09-07 Version: patch
|
||||
- Add describes devices API.
|
||||
|
||||
2020-09-05 Version: patch
|
||||
- Add describes devices API.
|
||||
|
||||
2020-09-04 Version: patch
|
||||
- Sync cdn APIs.
|
||||
|
||||
2020-09-04 Version: patch
|
||||
- Update Scdn API.
|
||||
|
||||
2020-09-04 Version: patch
|
||||
- Update domain API.
|
||||
|
||||
2020-09-04 Version: patch
|
||||
- Add GetImageQuality API.
|
||||
- Add more info as parameters to Images related APIs.
|
||||
|
||||
2020-09-03 Version: 1.36.632
|
||||
- DescribeCameraStatistics add parameters.
|
||||
|
||||
2020-09-02 Version: 1.36.631
|
||||
- Support sg for ml region.
|
||||
|
||||
2020-09-02 Version: 1.36.630
|
||||
- ChatApp second version.
|
||||
- Support new message fomat.
|
||||
|
||||
2020-09-02 Version: 1.36.629
|
||||
- Supported AndroidNotificationHuaweiChannel for Push and MassPush.
|
||||
|
||||
2020-09-02 Version: 1.36.628
|
||||
- Supported AndroidNotificationHuaweiChannel for Push and MassPush.
|
||||
|
||||
2020-09-01 Version: 1.36.627
|
||||
- Add Smart Verify API.
|
||||
|
||||
2020-09-01 Version: 1.36.626
|
||||
- Support region route.
|
||||
|
||||
2020-09-01 Version: 1.36.625
|
||||
- Support region route.
|
||||
|
||||
2020-09-01 Version: 1.36.624
|
||||
- Update Parameter.
|
||||
|
||||
2020-08-31 Version: 1.36.623
|
||||
- Support PersonList.
|
||||
|
||||
2020-08-31 Version: 1.36.622
|
||||
- GetPersonList Support LastShotTime.
|
||||
|
||||
2020-08-31 Version: 1.36.621
|
||||
- Support config resource recorder deliverychannel rule.
|
||||
|
||||
2020-08-31 Version: 1.36.620
|
||||
- Supported AAA for BBB.
|
||||
- Fixed bugs for CCC.
|
||||
|
||||
2020-08-31 Version: 1.36.619
|
||||
- Support config resource recorder deliverychannel rule.
|
||||
|
||||
2020-08-31 Version: 1.36.618
|
||||
- Supported AAA for BBB.
|
||||
- Fixed bugs for CCC.
|
||||
|
||||
2020-08-31 Version: 1.36.617
|
||||
- Supported AAA for BBB.
|
||||
- Fixed bugs for CCC.
|
||||
|
||||
2020-08-31 Version: 1.36.616
|
||||
- Add list person visit count API.
|
||||
|
||||
2020-08-28 Version: 1.36.615
|
||||
- Add name.
|
||||
|
||||
2020-08-28 Version: 1.36.614
|
||||
- Support multiple security group for one ehpc cluster.
|
||||
- Update GWS apis.
|
||||
|
||||
2020-08-28 Version: 1.36.613
|
||||
- Supported Add GetAlgorithmHistoryResult.
|
||||
|
||||
2020-08-27 Version: 1.36.612
|
||||
- Update parameter.
|
||||
|
||||
2020-08-25 Version: 1.36.611
|
||||
- Release ExtractPedestrianFeatureAttribute and BlurFace.
|
||||
|
||||
2020-08-25 Version: 1.36.610
|
||||
- Add list person visit count API.
|
||||
|
||||
2020-08-25 Version: 1.36.609
|
||||
- Video Content analytics template introduced to this SDK.
|
||||
|
||||
2020-08-25 Version: 1.36.608
|
||||
- Change DeviceSerialNumber to DeviceSn in API RegisterDevice.
|
||||
|
||||
2020-08-24 Version: 1.36.607
|
||||
- Change DeviceSerialNumber to DeviceSn in API RegisterDevice.
|
||||
|
||||
2020-08-24 Version: 1.36.606
|
||||
- Add project api.
|
||||
|
||||
2020-08-24 Version: 1.36.605
|
||||
- Edit QueryMetricByPage api.
|
||||
|
||||
2020-08-21 Version: 1.36.604
|
||||
- Add QueryMetricByPage api.
|
||||
- Add GetAppApiByPage api.
|
||||
|
||||
2020-08-20 Version: 1.36.603
|
||||
- PullActionData add parameters.
|
||||
- DescribeCursor add parameter.
|
||||
|
||||
2020-08-20 Version: 1.36.602
|
||||
- Add list person visit count API.
|
||||
|
||||
2020-08-20 Version: 1.36.601
|
||||
- Added Global Distribute Cache OpenAPIs.
|
||||
- Added direct connection OpenAPIs.
|
||||
|
||||
2020-08-19 Version: 1.36.600
|
||||
- Add DescribeLiveDomainCertificateInfo.
|
||||
|
||||
2020-08-19 Version: 1.36.599
|
||||
- Generated 2020-08-01 for `SmartHosting`.
|
||||
|
||||
2020-08-18 Version: 1.36.598
|
||||
- Support for describe hbaseue multi-zone model.
|
||||
|
||||
2020-08-18 Version: 1.36.597
|
||||
- Support session query operations.
|
||||
|
||||
2020-08-18 Version: 1.36.596
|
||||
- Public beta version.
|
||||
- Add Api Overseas.
|
||||
|
||||
@@ -35,6 +35,8 @@ set(alimt_public_header_model
|
||||
include/alibabacloud/alimt/model/GetTitleDiagnoseResult.h
|
||||
include/alibabacloud/alimt/model/GetTitleGenerateRequest.h
|
||||
include/alibabacloud/alimt/model/GetTitleGenerateResult.h
|
||||
include/alibabacloud/alimt/model/GetTitleIntelligenceRequest.h
|
||||
include/alibabacloud/alimt/model/GetTitleIntelligenceResult.h
|
||||
include/alibabacloud/alimt/model/TranslateRequest.h
|
||||
include/alibabacloud/alimt/model/TranslateResult.h
|
||||
include/alibabacloud/alimt/model/TranslateCertificateRequest.h
|
||||
@@ -60,6 +62,8 @@ set(alimt_src
|
||||
src/model/GetTitleDiagnoseResult.cc
|
||||
src/model/GetTitleGenerateRequest.cc
|
||||
src/model/GetTitleGenerateResult.cc
|
||||
src/model/GetTitleIntelligenceRequest.cc
|
||||
src/model/GetTitleIntelligenceResult.cc
|
||||
src/model/TranslateRequest.cc
|
||||
src/model/TranslateResult.cc
|
||||
src/model/TranslateCertificateRequest.cc
|
||||
|
||||
@@ -36,6 +36,8 @@
|
||||
#include "model/GetTitleDiagnoseResult.h"
|
||||
#include "model/GetTitleGenerateRequest.h"
|
||||
#include "model/GetTitleGenerateResult.h"
|
||||
#include "model/GetTitleIntelligenceRequest.h"
|
||||
#include "model/GetTitleIntelligenceResult.h"
|
||||
#include "model/TranslateRequest.h"
|
||||
#include "model/TranslateResult.h"
|
||||
#include "model/TranslateCertificateRequest.h"
|
||||
@@ -74,6 +76,9 @@ namespace AlibabaCloud
|
||||
typedef Outcome<Error, Model::GetTitleGenerateResult> GetTitleGenerateOutcome;
|
||||
typedef std::future<GetTitleGenerateOutcome> GetTitleGenerateOutcomeCallable;
|
||||
typedef std::function<void(const AlimtClient*, const Model::GetTitleGenerateRequest&, const GetTitleGenerateOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetTitleGenerateAsyncHandler;
|
||||
typedef Outcome<Error, Model::GetTitleIntelligenceResult> GetTitleIntelligenceOutcome;
|
||||
typedef std::future<GetTitleIntelligenceOutcome> GetTitleIntelligenceOutcomeCallable;
|
||||
typedef std::function<void(const AlimtClient*, const Model::GetTitleIntelligenceRequest&, const GetTitleIntelligenceOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetTitleIntelligenceAsyncHandler;
|
||||
typedef Outcome<Error, Model::TranslateResult> TranslateOutcome;
|
||||
typedef std::future<TranslateOutcome> TranslateOutcomeCallable;
|
||||
typedef std::function<void(const AlimtClient*, const Model::TranslateRequest&, const TranslateOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> TranslateAsyncHandler;
|
||||
@@ -112,6 +117,9 @@ namespace AlibabaCloud
|
||||
GetTitleGenerateOutcome getTitleGenerate(const Model::GetTitleGenerateRequest &request)const;
|
||||
void getTitleGenerateAsync(const Model::GetTitleGenerateRequest& request, const GetTitleGenerateAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
GetTitleGenerateOutcomeCallable getTitleGenerateCallable(const Model::GetTitleGenerateRequest& request) const;
|
||||
GetTitleIntelligenceOutcome getTitleIntelligence(const Model::GetTitleIntelligenceRequest &request)const;
|
||||
void getTitleIntelligenceAsync(const Model::GetTitleIntelligenceRequest& request, const GetTitleIntelligenceAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
GetTitleIntelligenceOutcomeCallable getTitleIntelligenceCallable(const Model::GetTitleIntelligenceRequest& request) const;
|
||||
TranslateOutcome translate(const Model::TranslateRequest &request)const;
|
||||
void translateAsync(const Model::TranslateRequest& request, const TranslateAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
TranslateOutcomeCallable translateCallable(const Model::TranslateRequest& request) const;
|
||||
|
||||
@@ -0,0 +1,60 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_ALIMT_MODEL_GETTITLEINTELLIGENCEREQUEST_H_
|
||||
#define ALIBABACLOUD_ALIMT_MODEL_GETTITLEINTELLIGENCEREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/alimt/AlimtExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Alimt
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_ALIMT_EXPORT GetTitleIntelligenceRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
GetTitleIntelligenceRequest();
|
||||
~GetTitleIntelligenceRequest();
|
||||
|
||||
long getCatLevelThreeId()const;
|
||||
void setCatLevelThreeId(long catLevelThreeId);
|
||||
long getCatLevelTwoId()const;
|
||||
void setCatLevelTwoId(long catLevelTwoId);
|
||||
std::string getKeywords()const;
|
||||
void setKeywords(const std::string& keywords);
|
||||
std::string getPlatform()const;
|
||||
void setPlatform(const std::string& platform);
|
||||
std::string getExtra()const;
|
||||
void setExtra(const std::string& extra);
|
||||
|
||||
private:
|
||||
long catLevelThreeId_;
|
||||
long catLevelTwoId_;
|
||||
std::string keywords_;
|
||||
std::string platform_;
|
||||
std::string extra_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_ALIMT_MODEL_GETTITLEINTELLIGENCEREQUEST_H_
|
||||
@@ -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_ALIMT_MODEL_GETTITLEINTELLIGENCERESULT_H_
|
||||
#define ALIBABACLOUD_ALIMT_MODEL_GETTITLEINTELLIGENCERESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/alimt/AlimtExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Alimt
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_ALIMT_EXPORT GetTitleIntelligenceResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct Data
|
||||
{
|
||||
std::string titles;
|
||||
};
|
||||
|
||||
|
||||
GetTitleIntelligenceResult();
|
||||
explicit GetTitleIntelligenceResult(const std::string &payload);
|
||||
~GetTitleIntelligenceResult();
|
||||
std::string getMessage()const;
|
||||
Data getData()const;
|
||||
int getCode()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::string message_;
|
||||
Data data_;
|
||||
int code_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_ALIMT_MODEL_GETTITLEINTELLIGENCERESULT_H_
|
||||
@@ -34,6 +34,7 @@ namespace AlibabaCloud
|
||||
public:
|
||||
struct Data
|
||||
{
|
||||
std::string wordCount;
|
||||
std::string translated;
|
||||
};
|
||||
|
||||
|
||||
@@ -34,6 +34,7 @@ namespace AlibabaCloud
|
||||
public:
|
||||
struct Data
|
||||
{
|
||||
std::string wordCount;
|
||||
std::string translated;
|
||||
};
|
||||
|
||||
|
||||
@@ -34,6 +34,7 @@ namespace AlibabaCloud
|
||||
public:
|
||||
struct Data
|
||||
{
|
||||
std::string wordCount;
|
||||
std::string translated;
|
||||
};
|
||||
|
||||
|
||||
@@ -303,6 +303,42 @@ AlimtClient::GetTitleGenerateOutcomeCallable AlimtClient::getTitleGenerateCallab
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
AlimtClient::GetTitleIntelligenceOutcome AlimtClient::getTitleIntelligence(const GetTitleIntelligenceRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return GetTitleIntelligenceOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return GetTitleIntelligenceOutcome(GetTitleIntelligenceResult(outcome.result()));
|
||||
else
|
||||
return GetTitleIntelligenceOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void AlimtClient::getTitleIntelligenceAsync(const GetTitleIntelligenceRequest& request, const GetTitleIntelligenceAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, getTitleIntelligence(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
AlimtClient::GetTitleIntelligenceOutcomeCallable AlimtClient::getTitleIntelligenceCallable(const GetTitleIntelligenceRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<GetTitleIntelligenceOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->getTitleIntelligence(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
AlimtClient::TranslateOutcome AlimtClient::translate(const TranslateRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
|
||||
84
alimt/src/model/GetTitleIntelligenceRequest.cc
Normal file
84
alimt/src/model/GetTitleIntelligenceRequest.cc
Normal file
@@ -0,0 +1,84 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/alimt/model/GetTitleIntelligenceRequest.h>
|
||||
|
||||
using AlibabaCloud::Alimt::Model::GetTitleIntelligenceRequest;
|
||||
|
||||
GetTitleIntelligenceRequest::GetTitleIntelligenceRequest() :
|
||||
RpcServiceRequest("alimt", "2018-10-12", "GetTitleIntelligence")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
GetTitleIntelligenceRequest::~GetTitleIntelligenceRequest()
|
||||
{}
|
||||
|
||||
long GetTitleIntelligenceRequest::getCatLevelThreeId()const
|
||||
{
|
||||
return catLevelThreeId_;
|
||||
}
|
||||
|
||||
void GetTitleIntelligenceRequest::setCatLevelThreeId(long catLevelThreeId)
|
||||
{
|
||||
catLevelThreeId_ = catLevelThreeId;
|
||||
setBodyParameter("CatLevelThreeId", std::to_string(catLevelThreeId));
|
||||
}
|
||||
|
||||
long GetTitleIntelligenceRequest::getCatLevelTwoId()const
|
||||
{
|
||||
return catLevelTwoId_;
|
||||
}
|
||||
|
||||
void GetTitleIntelligenceRequest::setCatLevelTwoId(long catLevelTwoId)
|
||||
{
|
||||
catLevelTwoId_ = catLevelTwoId;
|
||||
setBodyParameter("CatLevelTwoId", std::to_string(catLevelTwoId));
|
||||
}
|
||||
|
||||
std::string GetTitleIntelligenceRequest::getKeywords()const
|
||||
{
|
||||
return keywords_;
|
||||
}
|
||||
|
||||
void GetTitleIntelligenceRequest::setKeywords(const std::string& keywords)
|
||||
{
|
||||
keywords_ = keywords;
|
||||
setBodyParameter("Keywords", keywords);
|
||||
}
|
||||
|
||||
std::string GetTitleIntelligenceRequest::getPlatform()const
|
||||
{
|
||||
return platform_;
|
||||
}
|
||||
|
||||
void GetTitleIntelligenceRequest::setPlatform(const std::string& platform)
|
||||
{
|
||||
platform_ = platform;
|
||||
setBodyParameter("Platform", platform);
|
||||
}
|
||||
|
||||
std::string GetTitleIntelligenceRequest::getExtra()const
|
||||
{
|
||||
return extra_;
|
||||
}
|
||||
|
||||
void GetTitleIntelligenceRequest::setExtra(const std::string& extra)
|
||||
{
|
||||
extra_ = extra;
|
||||
setBodyParameter("Extra", extra);
|
||||
}
|
||||
|
||||
66
alimt/src/model/GetTitleIntelligenceResult.cc
Normal file
66
alimt/src/model/GetTitleIntelligenceResult.cc
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.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/alimt/model/GetTitleIntelligenceResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Alimt;
|
||||
using namespace AlibabaCloud::Alimt::Model;
|
||||
|
||||
GetTitleIntelligenceResult::GetTitleIntelligenceResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
GetTitleIntelligenceResult::GetTitleIntelligenceResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
GetTitleIntelligenceResult::~GetTitleIntelligenceResult()
|
||||
{}
|
||||
|
||||
void GetTitleIntelligenceResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto dataNode = value["Data"];
|
||||
if(!dataNode["Titles"].isNull())
|
||||
data_.titles = dataNode["Titles"].asString();
|
||||
if(!value["Code"].isNull())
|
||||
code_ = std::stoi(value["Code"].asString());
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string GetTitleIntelligenceResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
GetTitleIntelligenceResult::Data GetTitleIntelligenceResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
int GetTitleIntelligenceResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
@@ -42,6 +42,8 @@ void TranslateECommerceResult::parse(const std::string &payload)
|
||||
auto dataNode = value["Data"];
|
||||
if(!dataNode["Translated"].isNull())
|
||||
data_.translated = dataNode["Translated"].asString();
|
||||
if(!dataNode["WordCount"].isNull())
|
||||
data_.wordCount = dataNode["WordCount"].asString();
|
||||
if(!value["Code"].isNull())
|
||||
code_ = std::stoi(value["Code"].asString());
|
||||
if(!value["Message"].isNull())
|
||||
|
||||
@@ -42,6 +42,8 @@ void TranslateGeneralResult::parse(const std::string &payload)
|
||||
auto dataNode = value["Data"];
|
||||
if(!dataNode["Translated"].isNull())
|
||||
data_.translated = dataNode["Translated"].asString();
|
||||
if(!dataNode["WordCount"].isNull())
|
||||
data_.wordCount = dataNode["WordCount"].asString();
|
||||
if(!value["Code"].isNull())
|
||||
code_ = std::stoi(value["Code"].asString());
|
||||
if(!value["Message"].isNull())
|
||||
|
||||
@@ -42,6 +42,8 @@ void TranslateResult::parse(const std::string &payload)
|
||||
auto dataNode = value["Data"];
|
||||
if(!dataNode["Translated"].isNull())
|
||||
data_.translated = dataNode["Translated"].asString();
|
||||
if(!dataNode["WordCount"].isNull())
|
||||
data_.wordCount = dataNode["WordCount"].asString();
|
||||
if(!value["Code"].isNull())
|
||||
code_ = std::stoi(value["Code"].asString());
|
||||
if(!value["Message"].isNull())
|
||||
|
||||
@@ -65,8 +65,12 @@ set(aliyuncvc_public_header_model
|
||||
include/alibabacloud/aliyuncvc/model/EndDeviceMeetingResult.h
|
||||
include/alibabacloud/aliyuncvc/model/EndLiveRequest.h
|
||||
include/alibabacloud/aliyuncvc/model/EndLiveResult.h
|
||||
include/alibabacloud/aliyuncvc/model/GetAccountInfoRequest.h
|
||||
include/alibabacloud/aliyuncvc/model/GetAccountInfoResult.h
|
||||
include/alibabacloud/aliyuncvc/model/GetDeviceActiveCodeRequest.h
|
||||
include/alibabacloud/aliyuncvc/model/GetDeviceActiveCodeResult.h
|
||||
include/alibabacloud/aliyuncvc/model/GetDeviceInfoRequest.h
|
||||
include/alibabacloud/aliyuncvc/model/GetDeviceInfoResult.h
|
||||
include/alibabacloud/aliyuncvc/model/GetDeviceTokenRequest.h
|
||||
include/alibabacloud/aliyuncvc/model/GetDeviceTokenResult.h
|
||||
include/alibabacloud/aliyuncvc/model/GetMeetingRequest.h
|
||||
@@ -77,6 +81,8 @@ set(aliyuncvc_public_header_model
|
||||
include/alibabacloud/aliyuncvc/model/GetMeetingMemberResult.h
|
||||
include/alibabacloud/aliyuncvc/model/GetMembersRequest.h
|
||||
include/alibabacloud/aliyuncvc/model/GetMembersResult.h
|
||||
include/alibabacloud/aliyuncvc/model/GetStatisticRequest.h
|
||||
include/alibabacloud/aliyuncvc/model/GetStatisticResult.h
|
||||
include/alibabacloud/aliyuncvc/model/GetUserRequest.h
|
||||
include/alibabacloud/aliyuncvc/model/GetUserResult.h
|
||||
include/alibabacloud/aliyuncvc/model/InviteUserRequest.h
|
||||
@@ -89,6 +95,8 @@ set(aliyuncvc_public_header_model
|
||||
include/alibabacloud/aliyuncvc/model/JoinMeetingResult.h
|
||||
include/alibabacloud/aliyuncvc/model/JoinMeetingInternationalRequest.h
|
||||
include/alibabacloud/aliyuncvc/model/JoinMeetingInternationalResult.h
|
||||
include/alibabacloud/aliyuncvc/model/ListConferenceDevicesRequest.h
|
||||
include/alibabacloud/aliyuncvc/model/ListConferenceDevicesResult.h
|
||||
include/alibabacloud/aliyuncvc/model/ListDeviceIpRequest.h
|
||||
include/alibabacloud/aliyuncvc/model/ListDeviceIpResult.h
|
||||
include/alibabacloud/aliyuncvc/model/ListDevicesRequest.h
|
||||
@@ -101,10 +109,14 @@ set(aliyuncvc_public_header_model
|
||||
include/alibabacloud/aliyuncvc/model/ListMembersResult.h
|
||||
include/alibabacloud/aliyuncvc/model/ListUsersRequest.h
|
||||
include/alibabacloud/aliyuncvc/model/ListUsersResult.h
|
||||
include/alibabacloud/aliyuncvc/model/ModifyDeviceBackgroundRequest.h
|
||||
include/alibabacloud/aliyuncvc/model/ModifyDeviceBackgroundResult.h
|
||||
include/alibabacloud/aliyuncvc/model/ModifyMeetingPasswordRequest.h
|
||||
include/alibabacloud/aliyuncvc/model/ModifyMeetingPasswordResult.h
|
||||
include/alibabacloud/aliyuncvc/model/ModifyMeetingPasswordInternationalRequest.h
|
||||
include/alibabacloud/aliyuncvc/model/ModifyMeetingPasswordInternationalResult.h
|
||||
include/alibabacloud/aliyuncvc/model/RefreshDeviceScreenCodeRequest.h
|
||||
include/alibabacloud/aliyuncvc/model/RefreshDeviceScreenCodeResult.h
|
||||
include/alibabacloud/aliyuncvc/model/RegisterDeviceRequest.h
|
||||
include/alibabacloud/aliyuncvc/model/RegisterDeviceResult.h
|
||||
include/alibabacloud/aliyuncvc/model/RegisterUemDeviceRequest.h
|
||||
@@ -115,6 +127,8 @@ set(aliyuncvc_public_header_model
|
||||
include/alibabacloud/aliyuncvc/model/StartLiveResult.h
|
||||
include/alibabacloud/aliyuncvc/model/UpdateDeviceHeartBeatRequest.h
|
||||
include/alibabacloud/aliyuncvc/model/UpdateDeviceHeartBeatResult.h
|
||||
include/alibabacloud/aliyuncvc/model/UpdateDeviceStartupPictureRequest.h
|
||||
include/alibabacloud/aliyuncvc/model/UpdateDeviceStartupPictureResult.h
|
||||
include/alibabacloud/aliyuncvc/model/UpdateGonggeLayoutRequest.h
|
||||
include/alibabacloud/aliyuncvc/model/UpdateGonggeLayoutResult.h
|
||||
include/alibabacloud/aliyuncvc/model/UpdateLivePasswordRequest.h
|
||||
@@ -166,8 +180,12 @@ set(aliyuncvc_src
|
||||
src/model/EndDeviceMeetingResult.cc
|
||||
src/model/EndLiveRequest.cc
|
||||
src/model/EndLiveResult.cc
|
||||
src/model/GetAccountInfoRequest.cc
|
||||
src/model/GetAccountInfoResult.cc
|
||||
src/model/GetDeviceActiveCodeRequest.cc
|
||||
src/model/GetDeviceActiveCodeResult.cc
|
||||
src/model/GetDeviceInfoRequest.cc
|
||||
src/model/GetDeviceInfoResult.cc
|
||||
src/model/GetDeviceTokenRequest.cc
|
||||
src/model/GetDeviceTokenResult.cc
|
||||
src/model/GetMeetingRequest.cc
|
||||
@@ -178,6 +196,8 @@ set(aliyuncvc_src
|
||||
src/model/GetMeetingMemberResult.cc
|
||||
src/model/GetMembersRequest.cc
|
||||
src/model/GetMembersResult.cc
|
||||
src/model/GetStatisticRequest.cc
|
||||
src/model/GetStatisticResult.cc
|
||||
src/model/GetUserRequest.cc
|
||||
src/model/GetUserResult.cc
|
||||
src/model/InviteUserRequest.cc
|
||||
@@ -190,6 +210,8 @@ set(aliyuncvc_src
|
||||
src/model/JoinMeetingResult.cc
|
||||
src/model/JoinMeetingInternationalRequest.cc
|
||||
src/model/JoinMeetingInternationalResult.cc
|
||||
src/model/ListConferenceDevicesRequest.cc
|
||||
src/model/ListConferenceDevicesResult.cc
|
||||
src/model/ListDeviceIpRequest.cc
|
||||
src/model/ListDeviceIpResult.cc
|
||||
src/model/ListDevicesRequest.cc
|
||||
@@ -202,10 +224,14 @@ set(aliyuncvc_src
|
||||
src/model/ListMembersResult.cc
|
||||
src/model/ListUsersRequest.cc
|
||||
src/model/ListUsersResult.cc
|
||||
src/model/ModifyDeviceBackgroundRequest.cc
|
||||
src/model/ModifyDeviceBackgroundResult.cc
|
||||
src/model/ModifyMeetingPasswordRequest.cc
|
||||
src/model/ModifyMeetingPasswordResult.cc
|
||||
src/model/ModifyMeetingPasswordInternationalRequest.cc
|
||||
src/model/ModifyMeetingPasswordInternationalResult.cc
|
||||
src/model/RefreshDeviceScreenCodeRequest.cc
|
||||
src/model/RefreshDeviceScreenCodeResult.cc
|
||||
src/model/RegisterDeviceRequest.cc
|
||||
src/model/RegisterDeviceResult.cc
|
||||
src/model/RegisterUemDeviceRequest.cc
|
||||
@@ -216,6 +242,8 @@ set(aliyuncvc_src
|
||||
src/model/StartLiveResult.cc
|
||||
src/model/UpdateDeviceHeartBeatRequest.cc
|
||||
src/model/UpdateDeviceHeartBeatResult.cc
|
||||
src/model/UpdateDeviceStartupPictureRequest.cc
|
||||
src/model/UpdateDeviceStartupPictureResult.cc
|
||||
src/model/UpdateGonggeLayoutRequest.cc
|
||||
src/model/UpdateGonggeLayoutResult.cc
|
||||
src/model/UpdateLivePasswordRequest.cc
|
||||
|
||||
@@ -66,8 +66,12 @@
|
||||
#include "model/EndDeviceMeetingResult.h"
|
||||
#include "model/EndLiveRequest.h"
|
||||
#include "model/EndLiveResult.h"
|
||||
#include "model/GetAccountInfoRequest.h"
|
||||
#include "model/GetAccountInfoResult.h"
|
||||
#include "model/GetDeviceActiveCodeRequest.h"
|
||||
#include "model/GetDeviceActiveCodeResult.h"
|
||||
#include "model/GetDeviceInfoRequest.h"
|
||||
#include "model/GetDeviceInfoResult.h"
|
||||
#include "model/GetDeviceTokenRequest.h"
|
||||
#include "model/GetDeviceTokenResult.h"
|
||||
#include "model/GetMeetingRequest.h"
|
||||
@@ -78,6 +82,8 @@
|
||||
#include "model/GetMeetingMemberResult.h"
|
||||
#include "model/GetMembersRequest.h"
|
||||
#include "model/GetMembersResult.h"
|
||||
#include "model/GetStatisticRequest.h"
|
||||
#include "model/GetStatisticResult.h"
|
||||
#include "model/GetUserRequest.h"
|
||||
#include "model/GetUserResult.h"
|
||||
#include "model/InviteUserRequest.h"
|
||||
@@ -90,6 +96,8 @@
|
||||
#include "model/JoinMeetingResult.h"
|
||||
#include "model/JoinMeetingInternationalRequest.h"
|
||||
#include "model/JoinMeetingInternationalResult.h"
|
||||
#include "model/ListConferenceDevicesRequest.h"
|
||||
#include "model/ListConferenceDevicesResult.h"
|
||||
#include "model/ListDeviceIpRequest.h"
|
||||
#include "model/ListDeviceIpResult.h"
|
||||
#include "model/ListDevicesRequest.h"
|
||||
@@ -102,10 +110,14 @@
|
||||
#include "model/ListMembersResult.h"
|
||||
#include "model/ListUsersRequest.h"
|
||||
#include "model/ListUsersResult.h"
|
||||
#include "model/ModifyDeviceBackgroundRequest.h"
|
||||
#include "model/ModifyDeviceBackgroundResult.h"
|
||||
#include "model/ModifyMeetingPasswordRequest.h"
|
||||
#include "model/ModifyMeetingPasswordResult.h"
|
||||
#include "model/ModifyMeetingPasswordInternationalRequest.h"
|
||||
#include "model/ModifyMeetingPasswordInternationalResult.h"
|
||||
#include "model/RefreshDeviceScreenCodeRequest.h"
|
||||
#include "model/RefreshDeviceScreenCodeResult.h"
|
||||
#include "model/RegisterDeviceRequest.h"
|
||||
#include "model/RegisterDeviceResult.h"
|
||||
#include "model/RegisterUemDeviceRequest.h"
|
||||
@@ -116,6 +128,8 @@
|
||||
#include "model/StartLiveResult.h"
|
||||
#include "model/UpdateDeviceHeartBeatRequest.h"
|
||||
#include "model/UpdateDeviceHeartBeatResult.h"
|
||||
#include "model/UpdateDeviceStartupPictureRequest.h"
|
||||
#include "model/UpdateDeviceStartupPictureResult.h"
|
||||
#include "model/UpdateGonggeLayoutRequest.h"
|
||||
#include "model/UpdateGonggeLayoutResult.h"
|
||||
#include "model/UpdateLivePasswordRequest.h"
|
||||
@@ -195,9 +209,15 @@ namespace AlibabaCloud
|
||||
typedef Outcome<Error, Model::EndLiveResult> EndLiveOutcome;
|
||||
typedef std::future<EndLiveOutcome> EndLiveOutcomeCallable;
|
||||
typedef std::function<void(const AliyuncvcClient*, const Model::EndLiveRequest&, const EndLiveOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> EndLiveAsyncHandler;
|
||||
typedef Outcome<Error, Model::GetAccountInfoResult> GetAccountInfoOutcome;
|
||||
typedef std::future<GetAccountInfoOutcome> GetAccountInfoOutcomeCallable;
|
||||
typedef std::function<void(const AliyuncvcClient*, const Model::GetAccountInfoRequest&, const GetAccountInfoOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetAccountInfoAsyncHandler;
|
||||
typedef Outcome<Error, Model::GetDeviceActiveCodeResult> GetDeviceActiveCodeOutcome;
|
||||
typedef std::future<GetDeviceActiveCodeOutcome> GetDeviceActiveCodeOutcomeCallable;
|
||||
typedef std::function<void(const AliyuncvcClient*, const Model::GetDeviceActiveCodeRequest&, const GetDeviceActiveCodeOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetDeviceActiveCodeAsyncHandler;
|
||||
typedef Outcome<Error, Model::GetDeviceInfoResult> GetDeviceInfoOutcome;
|
||||
typedef std::future<GetDeviceInfoOutcome> GetDeviceInfoOutcomeCallable;
|
||||
typedef std::function<void(const AliyuncvcClient*, const Model::GetDeviceInfoRequest&, const GetDeviceInfoOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetDeviceInfoAsyncHandler;
|
||||
typedef Outcome<Error, Model::GetDeviceTokenResult> GetDeviceTokenOutcome;
|
||||
typedef std::future<GetDeviceTokenOutcome> GetDeviceTokenOutcomeCallable;
|
||||
typedef std::function<void(const AliyuncvcClient*, const Model::GetDeviceTokenRequest&, const GetDeviceTokenOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetDeviceTokenAsyncHandler;
|
||||
@@ -213,6 +233,9 @@ namespace AlibabaCloud
|
||||
typedef Outcome<Error, Model::GetMembersResult> GetMembersOutcome;
|
||||
typedef std::future<GetMembersOutcome> GetMembersOutcomeCallable;
|
||||
typedef std::function<void(const AliyuncvcClient*, const Model::GetMembersRequest&, const GetMembersOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetMembersAsyncHandler;
|
||||
typedef Outcome<Error, Model::GetStatisticResult> GetStatisticOutcome;
|
||||
typedef std::future<GetStatisticOutcome> GetStatisticOutcomeCallable;
|
||||
typedef std::function<void(const AliyuncvcClient*, const Model::GetStatisticRequest&, const GetStatisticOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetStatisticAsyncHandler;
|
||||
typedef Outcome<Error, Model::GetUserResult> GetUserOutcome;
|
||||
typedef std::future<GetUserOutcome> GetUserOutcomeCallable;
|
||||
typedef std::function<void(const AliyuncvcClient*, const Model::GetUserRequest&, const GetUserOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetUserAsyncHandler;
|
||||
@@ -231,6 +254,9 @@ namespace AlibabaCloud
|
||||
typedef Outcome<Error, Model::JoinMeetingInternationalResult> JoinMeetingInternationalOutcome;
|
||||
typedef std::future<JoinMeetingInternationalOutcome> JoinMeetingInternationalOutcomeCallable;
|
||||
typedef std::function<void(const AliyuncvcClient*, const Model::JoinMeetingInternationalRequest&, const JoinMeetingInternationalOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> JoinMeetingInternationalAsyncHandler;
|
||||
typedef Outcome<Error, Model::ListConferenceDevicesResult> ListConferenceDevicesOutcome;
|
||||
typedef std::future<ListConferenceDevicesOutcome> ListConferenceDevicesOutcomeCallable;
|
||||
typedef std::function<void(const AliyuncvcClient*, const Model::ListConferenceDevicesRequest&, const ListConferenceDevicesOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ListConferenceDevicesAsyncHandler;
|
||||
typedef Outcome<Error, Model::ListDeviceIpResult> ListDeviceIpOutcome;
|
||||
typedef std::future<ListDeviceIpOutcome> ListDeviceIpOutcomeCallable;
|
||||
typedef std::function<void(const AliyuncvcClient*, const Model::ListDeviceIpRequest&, const ListDeviceIpOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ListDeviceIpAsyncHandler;
|
||||
@@ -249,12 +275,18 @@ namespace AlibabaCloud
|
||||
typedef Outcome<Error, Model::ListUsersResult> ListUsersOutcome;
|
||||
typedef std::future<ListUsersOutcome> ListUsersOutcomeCallable;
|
||||
typedef std::function<void(const AliyuncvcClient*, const Model::ListUsersRequest&, const ListUsersOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ListUsersAsyncHandler;
|
||||
typedef Outcome<Error, Model::ModifyDeviceBackgroundResult> ModifyDeviceBackgroundOutcome;
|
||||
typedef std::future<ModifyDeviceBackgroundOutcome> ModifyDeviceBackgroundOutcomeCallable;
|
||||
typedef std::function<void(const AliyuncvcClient*, const Model::ModifyDeviceBackgroundRequest&, const ModifyDeviceBackgroundOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ModifyDeviceBackgroundAsyncHandler;
|
||||
typedef Outcome<Error, Model::ModifyMeetingPasswordResult> ModifyMeetingPasswordOutcome;
|
||||
typedef std::future<ModifyMeetingPasswordOutcome> ModifyMeetingPasswordOutcomeCallable;
|
||||
typedef std::function<void(const AliyuncvcClient*, const Model::ModifyMeetingPasswordRequest&, const ModifyMeetingPasswordOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ModifyMeetingPasswordAsyncHandler;
|
||||
typedef Outcome<Error, Model::ModifyMeetingPasswordInternationalResult> ModifyMeetingPasswordInternationalOutcome;
|
||||
typedef std::future<ModifyMeetingPasswordInternationalOutcome> ModifyMeetingPasswordInternationalOutcomeCallable;
|
||||
typedef std::function<void(const AliyuncvcClient*, const Model::ModifyMeetingPasswordInternationalRequest&, const ModifyMeetingPasswordInternationalOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ModifyMeetingPasswordInternationalAsyncHandler;
|
||||
typedef Outcome<Error, Model::RefreshDeviceScreenCodeResult> RefreshDeviceScreenCodeOutcome;
|
||||
typedef std::future<RefreshDeviceScreenCodeOutcome> RefreshDeviceScreenCodeOutcomeCallable;
|
||||
typedef std::function<void(const AliyuncvcClient*, const Model::RefreshDeviceScreenCodeRequest&, const RefreshDeviceScreenCodeOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> RefreshDeviceScreenCodeAsyncHandler;
|
||||
typedef Outcome<Error, Model::RegisterDeviceResult> RegisterDeviceOutcome;
|
||||
typedef std::future<RegisterDeviceOutcome> RegisterDeviceOutcomeCallable;
|
||||
typedef std::function<void(const AliyuncvcClient*, const Model::RegisterDeviceRequest&, const RegisterDeviceOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> RegisterDeviceAsyncHandler;
|
||||
@@ -270,6 +302,9 @@ namespace AlibabaCloud
|
||||
typedef Outcome<Error, Model::UpdateDeviceHeartBeatResult> UpdateDeviceHeartBeatOutcome;
|
||||
typedef std::future<UpdateDeviceHeartBeatOutcome> UpdateDeviceHeartBeatOutcomeCallable;
|
||||
typedef std::function<void(const AliyuncvcClient*, const Model::UpdateDeviceHeartBeatRequest&, const UpdateDeviceHeartBeatOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> UpdateDeviceHeartBeatAsyncHandler;
|
||||
typedef Outcome<Error, Model::UpdateDeviceStartupPictureResult> UpdateDeviceStartupPictureOutcome;
|
||||
typedef std::future<UpdateDeviceStartupPictureOutcome> UpdateDeviceStartupPictureOutcomeCallable;
|
||||
typedef std::function<void(const AliyuncvcClient*, const Model::UpdateDeviceStartupPictureRequest&, const UpdateDeviceStartupPictureOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> UpdateDeviceStartupPictureAsyncHandler;
|
||||
typedef Outcome<Error, Model::UpdateGonggeLayoutResult> UpdateGonggeLayoutOutcome;
|
||||
typedef std::future<UpdateGonggeLayoutOutcome> UpdateGonggeLayoutOutcomeCallable;
|
||||
typedef std::function<void(const AliyuncvcClient*, const Model::UpdateGonggeLayoutRequest&, const UpdateGonggeLayoutOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> UpdateGonggeLayoutAsyncHandler;
|
||||
@@ -347,9 +382,15 @@ namespace AlibabaCloud
|
||||
EndLiveOutcome endLive(const Model::EndLiveRequest &request)const;
|
||||
void endLiveAsync(const Model::EndLiveRequest& request, const EndLiveAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
EndLiveOutcomeCallable endLiveCallable(const Model::EndLiveRequest& request) const;
|
||||
GetAccountInfoOutcome getAccountInfo(const Model::GetAccountInfoRequest &request)const;
|
||||
void getAccountInfoAsync(const Model::GetAccountInfoRequest& request, const GetAccountInfoAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
GetAccountInfoOutcomeCallable getAccountInfoCallable(const Model::GetAccountInfoRequest& request) const;
|
||||
GetDeviceActiveCodeOutcome getDeviceActiveCode(const Model::GetDeviceActiveCodeRequest &request)const;
|
||||
void getDeviceActiveCodeAsync(const Model::GetDeviceActiveCodeRequest& request, const GetDeviceActiveCodeAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
GetDeviceActiveCodeOutcomeCallable getDeviceActiveCodeCallable(const Model::GetDeviceActiveCodeRequest& request) const;
|
||||
GetDeviceInfoOutcome getDeviceInfo(const Model::GetDeviceInfoRequest &request)const;
|
||||
void getDeviceInfoAsync(const Model::GetDeviceInfoRequest& request, const GetDeviceInfoAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
GetDeviceInfoOutcomeCallable getDeviceInfoCallable(const Model::GetDeviceInfoRequest& request) const;
|
||||
GetDeviceTokenOutcome getDeviceToken(const Model::GetDeviceTokenRequest &request)const;
|
||||
void getDeviceTokenAsync(const Model::GetDeviceTokenRequest& request, const GetDeviceTokenAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
GetDeviceTokenOutcomeCallable getDeviceTokenCallable(const Model::GetDeviceTokenRequest& request) const;
|
||||
@@ -365,6 +406,9 @@ namespace AlibabaCloud
|
||||
GetMembersOutcome getMembers(const Model::GetMembersRequest &request)const;
|
||||
void getMembersAsync(const Model::GetMembersRequest& request, const GetMembersAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
GetMembersOutcomeCallable getMembersCallable(const Model::GetMembersRequest& request) const;
|
||||
GetStatisticOutcome getStatistic(const Model::GetStatisticRequest &request)const;
|
||||
void getStatisticAsync(const Model::GetStatisticRequest& request, const GetStatisticAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
GetStatisticOutcomeCallable getStatisticCallable(const Model::GetStatisticRequest& request) const;
|
||||
GetUserOutcome getUser(const Model::GetUserRequest &request)const;
|
||||
void getUserAsync(const Model::GetUserRequest& request, const GetUserAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
GetUserOutcomeCallable getUserCallable(const Model::GetUserRequest& request) const;
|
||||
@@ -383,6 +427,9 @@ namespace AlibabaCloud
|
||||
JoinMeetingInternationalOutcome joinMeetingInternational(const Model::JoinMeetingInternationalRequest &request)const;
|
||||
void joinMeetingInternationalAsync(const Model::JoinMeetingInternationalRequest& request, const JoinMeetingInternationalAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
JoinMeetingInternationalOutcomeCallable joinMeetingInternationalCallable(const Model::JoinMeetingInternationalRequest& request) const;
|
||||
ListConferenceDevicesOutcome listConferenceDevices(const Model::ListConferenceDevicesRequest &request)const;
|
||||
void listConferenceDevicesAsync(const Model::ListConferenceDevicesRequest& request, const ListConferenceDevicesAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
ListConferenceDevicesOutcomeCallable listConferenceDevicesCallable(const Model::ListConferenceDevicesRequest& request) const;
|
||||
ListDeviceIpOutcome listDeviceIp(const Model::ListDeviceIpRequest &request)const;
|
||||
void listDeviceIpAsync(const Model::ListDeviceIpRequest& request, const ListDeviceIpAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
ListDeviceIpOutcomeCallable listDeviceIpCallable(const Model::ListDeviceIpRequest& request) const;
|
||||
@@ -401,12 +448,18 @@ namespace AlibabaCloud
|
||||
ListUsersOutcome listUsers(const Model::ListUsersRequest &request)const;
|
||||
void listUsersAsync(const Model::ListUsersRequest& request, const ListUsersAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
ListUsersOutcomeCallable listUsersCallable(const Model::ListUsersRequest& request) const;
|
||||
ModifyDeviceBackgroundOutcome modifyDeviceBackground(const Model::ModifyDeviceBackgroundRequest &request)const;
|
||||
void modifyDeviceBackgroundAsync(const Model::ModifyDeviceBackgroundRequest& request, const ModifyDeviceBackgroundAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
ModifyDeviceBackgroundOutcomeCallable modifyDeviceBackgroundCallable(const Model::ModifyDeviceBackgroundRequest& request) const;
|
||||
ModifyMeetingPasswordOutcome modifyMeetingPassword(const Model::ModifyMeetingPasswordRequest &request)const;
|
||||
void modifyMeetingPasswordAsync(const Model::ModifyMeetingPasswordRequest& request, const ModifyMeetingPasswordAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
ModifyMeetingPasswordOutcomeCallable modifyMeetingPasswordCallable(const Model::ModifyMeetingPasswordRequest& request) const;
|
||||
ModifyMeetingPasswordInternationalOutcome modifyMeetingPasswordInternational(const Model::ModifyMeetingPasswordInternationalRequest &request)const;
|
||||
void modifyMeetingPasswordInternationalAsync(const Model::ModifyMeetingPasswordInternationalRequest& request, const ModifyMeetingPasswordInternationalAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
ModifyMeetingPasswordInternationalOutcomeCallable modifyMeetingPasswordInternationalCallable(const Model::ModifyMeetingPasswordInternationalRequest& request) const;
|
||||
RefreshDeviceScreenCodeOutcome refreshDeviceScreenCode(const Model::RefreshDeviceScreenCodeRequest &request)const;
|
||||
void refreshDeviceScreenCodeAsync(const Model::RefreshDeviceScreenCodeRequest& request, const RefreshDeviceScreenCodeAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
RefreshDeviceScreenCodeOutcomeCallable refreshDeviceScreenCodeCallable(const Model::RefreshDeviceScreenCodeRequest& request) const;
|
||||
RegisterDeviceOutcome registerDevice(const Model::RegisterDeviceRequest &request)const;
|
||||
void registerDeviceAsync(const Model::RegisterDeviceRequest& request, const RegisterDeviceAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
RegisterDeviceOutcomeCallable registerDeviceCallable(const Model::RegisterDeviceRequest& request) const;
|
||||
@@ -422,6 +475,9 @@ namespace AlibabaCloud
|
||||
UpdateDeviceHeartBeatOutcome updateDeviceHeartBeat(const Model::UpdateDeviceHeartBeatRequest &request)const;
|
||||
void updateDeviceHeartBeatAsync(const Model::UpdateDeviceHeartBeatRequest& request, const UpdateDeviceHeartBeatAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
UpdateDeviceHeartBeatOutcomeCallable updateDeviceHeartBeatCallable(const Model::UpdateDeviceHeartBeatRequest& request) const;
|
||||
UpdateDeviceStartupPictureOutcome updateDeviceStartupPicture(const Model::UpdateDeviceStartupPictureRequest &request)const;
|
||||
void updateDeviceStartupPictureAsync(const Model::UpdateDeviceStartupPictureRequest& request, const UpdateDeviceStartupPictureAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
UpdateDeviceStartupPictureOutcomeCallable updateDeviceStartupPictureCallable(const Model::UpdateDeviceStartupPictureRequest& request) const;
|
||||
UpdateGonggeLayoutOutcome updateGonggeLayout(const Model::UpdateGonggeLayoutRequest &request)const;
|
||||
void updateGonggeLayoutAsync(const Model::UpdateGonggeLayoutRequest& request, const UpdateGonggeLayoutAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
UpdateGonggeLayoutOutcomeCallable updateGonggeLayoutCallable(const Model::UpdateGonggeLayoutRequest& request) const;
|
||||
|
||||
@@ -39,14 +39,14 @@ namespace AlibabaCloud
|
||||
~DeleteUserResult();
|
||||
std::string getMessage()const;
|
||||
int getErrorCode()const;
|
||||
std::string getSuccess()const;
|
||||
bool getSuccess()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::string message_;
|
||||
int errorCode_;
|
||||
std::string success_;
|
||||
bool success_;
|
||||
|
||||
};
|
||||
}
|
||||
|
||||
@@ -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_ALIYUNCVC_MODEL_GETACCOUNTINFOREQUEST_H_
|
||||
#define ALIBABACLOUD_ALIYUNCVC_MODEL_GETACCOUNTINFOREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/aliyuncvc/AliyuncvcExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Aliyuncvc
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_ALIYUNCVC_EXPORT GetAccountInfoRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
GetAccountInfoRequest();
|
||||
~GetAccountInfoRequest();
|
||||
|
||||
|
||||
private:
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_ALIYUNCVC_MODEL_GETACCOUNTINFOREQUEST_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_ALIYUNCVC_MODEL_GETACCOUNTINFORESULT_H_
|
||||
#define ALIBABACLOUD_ALIYUNCVC_MODEL_GETACCOUNTINFORESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/aliyuncvc/AliyuncvcExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Aliyuncvc
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_ALIYUNCVC_EXPORT GetAccountInfoResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct AccountInfo
|
||||
{
|
||||
int accountApplicationNumber;
|
||||
int accountApplicationMax;
|
||||
int accountConcurrentMax;
|
||||
};
|
||||
|
||||
|
||||
GetAccountInfoResult();
|
||||
explicit GetAccountInfoResult(const std::string &payload);
|
||||
~GetAccountInfoResult();
|
||||
std::string getMessage()const;
|
||||
int getErrorCode()const;
|
||||
AccountInfo getAccountInfo()const;
|
||||
bool getSuccess()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::string message_;
|
||||
int errorCode_;
|
||||
AccountInfo accountInfo_;
|
||||
bool success_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_ALIYUNCVC_MODEL_GETACCOUNTINFORESULT_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_ALIYUNCVC_MODEL_GETDEVICEINFOREQUEST_H_
|
||||
#define ALIBABACLOUD_ALIYUNCVC_MODEL_GETDEVICEINFOREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/aliyuncvc/AliyuncvcExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Aliyuncvc
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_ALIYUNCVC_EXPORT GetDeviceInfoRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
GetDeviceInfoRequest();
|
||||
~GetDeviceInfoRequest();
|
||||
|
||||
std::string getCastScreenCode()const;
|
||||
void setCastScreenCode(const std::string& castScreenCode);
|
||||
|
||||
private:
|
||||
std::string castScreenCode_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_ALIYUNCVC_MODEL_GETDEVICEINFOREQUEST_H_
|
||||
@@ -0,0 +1,67 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_ALIYUNCVC_MODEL_GETDEVICEINFORESULT_H_
|
||||
#define ALIBABACLOUD_ALIYUNCVC_MODEL_GETDEVICEINFORESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/aliyuncvc/AliyuncvcExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Aliyuncvc
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_ALIYUNCVC_EXPORT GetDeviceInfoResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct Device
|
||||
{
|
||||
int status;
|
||||
std::string castScreenCode;
|
||||
std::string iP;
|
||||
std::string sn;
|
||||
std::string ssid;
|
||||
std::string activationCode;
|
||||
std::string mac;
|
||||
};
|
||||
|
||||
|
||||
GetDeviceInfoResult();
|
||||
explicit GetDeviceInfoResult(const std::string &payload);
|
||||
~GetDeviceInfoResult();
|
||||
std::string getMessage()const;
|
||||
Device getDevice()const;
|
||||
int getErrorCode()const;
|
||||
bool getSuccess()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::string message_;
|
||||
Device device_;
|
||||
int errorCode_;
|
||||
bool success_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_ALIYUNCVC_MODEL_GETDEVICEINFORESULT_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_ALIYUNCVC_MODEL_GETSTATISTICREQUEST_H_
|
||||
#define ALIBABACLOUD_ALIYUNCVC_MODEL_GETSTATISTICREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/aliyuncvc/AliyuncvcExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Aliyuncvc
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_ALIYUNCVC_EXPORT GetStatisticRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
GetStatisticRequest();
|
||||
~GetStatisticRequest();
|
||||
|
||||
long getEndTime()const;
|
||||
void setEndTime(long endTime);
|
||||
long getStartTime()const;
|
||||
void setStartTime(long startTime);
|
||||
|
||||
private:
|
||||
long endTime_;
|
||||
long startTime_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_ALIYUNCVC_MODEL_GETSTATISTICREQUEST_H_
|
||||
@@ -0,0 +1,64 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT 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_ALIYUNCVC_MODEL_GETSTATISTICRESULT_H_
|
||||
#define ALIBABACLOUD_ALIYUNCVC_MODEL_GETSTATISTICRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/aliyuncvc/AliyuncvcExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Aliyuncvc
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_ALIYUNCVC_EXPORT GetStatisticResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct StatisticInfo
|
||||
{
|
||||
long meetingNumber;
|
||||
long memberNumber;
|
||||
long maxConcurrency;
|
||||
long meetingDuration;
|
||||
};
|
||||
|
||||
|
||||
GetStatisticResult();
|
||||
explicit GetStatisticResult(const std::string &payload);
|
||||
~GetStatisticResult();
|
||||
std::string getMessage()const;
|
||||
StatisticInfo getStatisticInfo()const;
|
||||
int getErrorCode()const;
|
||||
bool getSuccess()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::string message_;
|
||||
StatisticInfo statisticInfo_;
|
||||
int errorCode_;
|
||||
bool success_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_ALIYUNCVC_MODEL_GETSTATISTICRESULT_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_ALIYUNCVC_MODEL_LISTCONFERENCEDEVICESREQUEST_H_
|
||||
#define ALIBABACLOUD_ALIYUNCVC_MODEL_LISTCONFERENCEDEVICESREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/aliyuncvc/AliyuncvcExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Aliyuncvc
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_ALIYUNCVC_EXPORT ListConferenceDevicesRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
ListConferenceDevicesRequest();
|
||||
~ListConferenceDevicesRequest();
|
||||
|
||||
std::string getSerialNumber()const;
|
||||
void setSerialNumber(const std::string& serialNumber);
|
||||
int getPageNumber()const;
|
||||
void setPageNumber(int pageNumber);
|
||||
int getPageSize()const;
|
||||
void setPageSize(int pageSize);
|
||||
|
||||
private:
|
||||
std::string serialNumber_;
|
||||
int pageNumber_;
|
||||
int pageSize_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_ALIYUNCVC_MODEL_LISTCONFERENCEDEVICESREQUEST_H_
|
||||
@@ -0,0 +1,77 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_ALIYUNCVC_MODEL_LISTCONFERENCEDEVICESRESULT_H_
|
||||
#define ALIBABACLOUD_ALIYUNCVC_MODEL_LISTCONFERENCEDEVICESRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/aliyuncvc/AliyuncvcExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Aliyuncvc
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_ALIYUNCVC_EXPORT ListConferenceDevicesResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct Data
|
||||
{
|
||||
struct Data
|
||||
{
|
||||
std::string deviceModel;
|
||||
std::string status;
|
||||
std::string castScreenCode;
|
||||
std::string createTime;
|
||||
std::string manufacturer;
|
||||
std::string pictureUrl;
|
||||
std::string sN;
|
||||
std::string conferenceName;
|
||||
std::string activationCode;
|
||||
std::string conferenceCode;
|
||||
};
|
||||
std::vector<Data> conferences;
|
||||
int pageSize;
|
||||
int pageNumber;
|
||||
int total;
|
||||
};
|
||||
|
||||
|
||||
ListConferenceDevicesResult();
|
||||
explicit ListConferenceDevicesResult(const std::string &payload);
|
||||
~ListConferenceDevicesResult();
|
||||
std::string getMessage()const;
|
||||
Data getData()const;
|
||||
int getErrorCode()const;
|
||||
bool getSuccess()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::string message_;
|
||||
Data data_;
|
||||
int errorCode_;
|
||||
bool success_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_ALIYUNCVC_MODEL_LISTCONFERENCEDEVICESRESULT_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_ALIYUNCVC_MODEL_MODIFYDEVICEBACKGROUNDREQUEST_H_
|
||||
#define ALIBABACLOUD_ALIYUNCVC_MODEL_MODIFYDEVICEBACKGROUNDREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/aliyuncvc/AliyuncvcExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Aliyuncvc
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_ALIYUNCVC_EXPORT ModifyDeviceBackgroundRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
ModifyDeviceBackgroundRequest();
|
||||
~ModifyDeviceBackgroundRequest();
|
||||
|
||||
std::string getSerialNumber()const;
|
||||
void setSerialNumber(const std::string& serialNumber);
|
||||
std::string getPicture()const;
|
||||
void setPicture(const std::string& picture);
|
||||
|
||||
private:
|
||||
std::string serialNumber_;
|
||||
std::string picture_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_ALIYUNCVC_MODEL_MODIFYDEVICEBACKGROUNDREQUEST_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_ALIYUNCVC_MODEL_MODIFYDEVICEBACKGROUNDRESULT_H_
|
||||
#define ALIBABACLOUD_ALIYUNCVC_MODEL_MODIFYDEVICEBACKGROUNDRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/aliyuncvc/AliyuncvcExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Aliyuncvc
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_ALIYUNCVC_EXPORT ModifyDeviceBackgroundResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
|
||||
|
||||
ModifyDeviceBackgroundResult();
|
||||
explicit ModifyDeviceBackgroundResult(const std::string &payload);
|
||||
~ModifyDeviceBackgroundResult();
|
||||
std::string getMessage()const;
|
||||
int getErrorCode()const;
|
||||
bool getSuccess()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::string message_;
|
||||
int errorCode_;
|
||||
bool success_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_ALIYUNCVC_MODEL_MODIFYDEVICEBACKGROUNDRESULT_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_ALIYUNCVC_MODEL_REFRESHDEVICESCREENCODEREQUEST_H_
|
||||
#define ALIBABACLOUD_ALIYUNCVC_MODEL_REFRESHDEVICESCREENCODEREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/aliyuncvc/AliyuncvcExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Aliyuncvc
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_ALIYUNCVC_EXPORT RefreshDeviceScreenCodeRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
RefreshDeviceScreenCodeRequest();
|
||||
~RefreshDeviceScreenCodeRequest();
|
||||
|
||||
std::string getSerialNumber()const;
|
||||
void setSerialNumber(const std::string& serialNumber);
|
||||
|
||||
private:
|
||||
std::string serialNumber_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_ALIYUNCVC_MODEL_REFRESHDEVICESCREENCODEREQUEST_H_
|
||||
@@ -0,0 +1,62 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_ALIYUNCVC_MODEL_REFRESHDEVICESCREENCODERESULT_H_
|
||||
#define ALIBABACLOUD_ALIYUNCVC_MODEL_REFRESHDEVICESCREENCODERESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/aliyuncvc/AliyuncvcExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Aliyuncvc
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_ALIYUNCVC_EXPORT RefreshDeviceScreenCodeResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct Data
|
||||
{
|
||||
std::string screenCode;
|
||||
std::string serialNumber;
|
||||
};
|
||||
|
||||
|
||||
RefreshDeviceScreenCodeResult();
|
||||
explicit RefreshDeviceScreenCodeResult(const std::string &payload);
|
||||
~RefreshDeviceScreenCodeResult();
|
||||
std::string getMessage()const;
|
||||
Data getData()const;
|
||||
int getErrorCode()const;
|
||||
bool getSuccess()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::string message_;
|
||||
Data data_;
|
||||
int errorCode_;
|
||||
bool success_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_ALIYUNCVC_MODEL_REFRESHDEVICESCREENCODERESULT_H_
|
||||
@@ -39,6 +39,8 @@ namespace AlibabaCloud
|
||||
void setIP(const std::string& iP);
|
||||
std::string getGroupId()const;
|
||||
void setGroupId(const std::string& groupId);
|
||||
std::string getOwnerId()const;
|
||||
void setOwnerId(const std::string& ownerId);
|
||||
std::string getDeviceId()const;
|
||||
void setDeviceId(const std::string& deviceId);
|
||||
std::string getGroupName()const;
|
||||
@@ -51,6 +53,7 @@ namespace AlibabaCloud
|
||||
private:
|
||||
std::string iP_;
|
||||
std::string groupId_;
|
||||
std::string ownerId_;
|
||||
std::string deviceId_;
|
||||
std::string groupName_;
|
||||
std::string mac_;
|
||||
|
||||
@@ -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_ALIYUNCVC_MODEL_UPDATEDEVICESTARTUPPICTUREREQUEST_H_
|
||||
#define ALIBABACLOUD_ALIYUNCVC_MODEL_UPDATEDEVICESTARTUPPICTUREREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/aliyuncvc/AliyuncvcExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Aliyuncvc
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_ALIYUNCVC_EXPORT UpdateDeviceStartupPictureRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
UpdateDeviceStartupPictureRequest();
|
||||
~UpdateDeviceStartupPictureRequest();
|
||||
|
||||
std::string getSerialNumber()const;
|
||||
void setSerialNumber(const std::string& serialNumber);
|
||||
std::string getPicture()const;
|
||||
void setPicture(const std::string& picture);
|
||||
|
||||
private:
|
||||
std::string serialNumber_;
|
||||
std::string picture_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_ALIYUNCVC_MODEL_UPDATEDEVICESTARTUPPICTUREREQUEST_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_ALIYUNCVC_MODEL_UPDATEDEVICESTARTUPPICTURERESULT_H_
|
||||
#define ALIBABACLOUD_ALIYUNCVC_MODEL_UPDATEDEVICESTARTUPPICTURERESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/aliyuncvc/AliyuncvcExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Aliyuncvc
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_ALIYUNCVC_EXPORT UpdateDeviceStartupPictureResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
|
||||
|
||||
UpdateDeviceStartupPictureResult();
|
||||
explicit UpdateDeviceStartupPictureResult(const std::string &payload);
|
||||
~UpdateDeviceStartupPictureResult();
|
||||
std::string getMessage()const;
|
||||
int getErrorCode()const;
|
||||
bool getSuccess()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::string message_;
|
||||
int errorCode_;
|
||||
bool success_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_ALIYUNCVC_MODEL_UPDATEDEVICESTARTUPPICTURERESULT_H_
|
||||
@@ -843,6 +843,42 @@ AliyuncvcClient::EndLiveOutcomeCallable AliyuncvcClient::endLiveCallable(const E
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
AliyuncvcClient::GetAccountInfoOutcome AliyuncvcClient::getAccountInfo(const GetAccountInfoRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return GetAccountInfoOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return GetAccountInfoOutcome(GetAccountInfoResult(outcome.result()));
|
||||
else
|
||||
return GetAccountInfoOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void AliyuncvcClient::getAccountInfoAsync(const GetAccountInfoRequest& request, const GetAccountInfoAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, getAccountInfo(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
AliyuncvcClient::GetAccountInfoOutcomeCallable AliyuncvcClient::getAccountInfoCallable(const GetAccountInfoRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<GetAccountInfoOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->getAccountInfo(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
AliyuncvcClient::GetDeviceActiveCodeOutcome AliyuncvcClient::getDeviceActiveCode(const GetDeviceActiveCodeRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -879,6 +915,42 @@ AliyuncvcClient::GetDeviceActiveCodeOutcomeCallable AliyuncvcClient::getDeviceAc
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
AliyuncvcClient::GetDeviceInfoOutcome AliyuncvcClient::getDeviceInfo(const GetDeviceInfoRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return GetDeviceInfoOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return GetDeviceInfoOutcome(GetDeviceInfoResult(outcome.result()));
|
||||
else
|
||||
return GetDeviceInfoOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void AliyuncvcClient::getDeviceInfoAsync(const GetDeviceInfoRequest& request, const GetDeviceInfoAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, getDeviceInfo(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
AliyuncvcClient::GetDeviceInfoOutcomeCallable AliyuncvcClient::getDeviceInfoCallable(const GetDeviceInfoRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<GetDeviceInfoOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->getDeviceInfo(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
AliyuncvcClient::GetDeviceTokenOutcome AliyuncvcClient::getDeviceToken(const GetDeviceTokenRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -1059,6 +1131,42 @@ AliyuncvcClient::GetMembersOutcomeCallable AliyuncvcClient::getMembersCallable(c
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
AliyuncvcClient::GetStatisticOutcome AliyuncvcClient::getStatistic(const GetStatisticRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return GetStatisticOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return GetStatisticOutcome(GetStatisticResult(outcome.result()));
|
||||
else
|
||||
return GetStatisticOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void AliyuncvcClient::getStatisticAsync(const GetStatisticRequest& request, const GetStatisticAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, getStatistic(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
AliyuncvcClient::GetStatisticOutcomeCallable AliyuncvcClient::getStatisticCallable(const GetStatisticRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<GetStatisticOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->getStatistic(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
AliyuncvcClient::GetUserOutcome AliyuncvcClient::getUser(const GetUserRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -1275,6 +1383,42 @@ AliyuncvcClient::JoinMeetingInternationalOutcomeCallable AliyuncvcClient::joinMe
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
AliyuncvcClient::ListConferenceDevicesOutcome AliyuncvcClient::listConferenceDevices(const ListConferenceDevicesRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return ListConferenceDevicesOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return ListConferenceDevicesOutcome(ListConferenceDevicesResult(outcome.result()));
|
||||
else
|
||||
return ListConferenceDevicesOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void AliyuncvcClient::listConferenceDevicesAsync(const ListConferenceDevicesRequest& request, const ListConferenceDevicesAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, listConferenceDevices(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
AliyuncvcClient::ListConferenceDevicesOutcomeCallable AliyuncvcClient::listConferenceDevicesCallable(const ListConferenceDevicesRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<ListConferenceDevicesOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->listConferenceDevices(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
AliyuncvcClient::ListDeviceIpOutcome AliyuncvcClient::listDeviceIp(const ListDeviceIpRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -1491,6 +1635,42 @@ AliyuncvcClient::ListUsersOutcomeCallable AliyuncvcClient::listUsersCallable(con
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
AliyuncvcClient::ModifyDeviceBackgroundOutcome AliyuncvcClient::modifyDeviceBackground(const ModifyDeviceBackgroundRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return ModifyDeviceBackgroundOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return ModifyDeviceBackgroundOutcome(ModifyDeviceBackgroundResult(outcome.result()));
|
||||
else
|
||||
return ModifyDeviceBackgroundOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void AliyuncvcClient::modifyDeviceBackgroundAsync(const ModifyDeviceBackgroundRequest& request, const ModifyDeviceBackgroundAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, modifyDeviceBackground(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
AliyuncvcClient::ModifyDeviceBackgroundOutcomeCallable AliyuncvcClient::modifyDeviceBackgroundCallable(const ModifyDeviceBackgroundRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<ModifyDeviceBackgroundOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->modifyDeviceBackground(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
AliyuncvcClient::ModifyMeetingPasswordOutcome AliyuncvcClient::modifyMeetingPassword(const ModifyMeetingPasswordRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -1563,6 +1743,42 @@ AliyuncvcClient::ModifyMeetingPasswordInternationalOutcomeCallable AliyuncvcClie
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
AliyuncvcClient::RefreshDeviceScreenCodeOutcome AliyuncvcClient::refreshDeviceScreenCode(const RefreshDeviceScreenCodeRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return RefreshDeviceScreenCodeOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return RefreshDeviceScreenCodeOutcome(RefreshDeviceScreenCodeResult(outcome.result()));
|
||||
else
|
||||
return RefreshDeviceScreenCodeOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void AliyuncvcClient::refreshDeviceScreenCodeAsync(const RefreshDeviceScreenCodeRequest& request, const RefreshDeviceScreenCodeAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, refreshDeviceScreenCode(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
AliyuncvcClient::RefreshDeviceScreenCodeOutcomeCallable AliyuncvcClient::refreshDeviceScreenCodeCallable(const RefreshDeviceScreenCodeRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<RefreshDeviceScreenCodeOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->refreshDeviceScreenCode(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
AliyuncvcClient::RegisterDeviceOutcome AliyuncvcClient::registerDevice(const RegisterDeviceRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -1743,6 +1959,42 @@ AliyuncvcClient::UpdateDeviceHeartBeatOutcomeCallable AliyuncvcClient::updateDev
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
AliyuncvcClient::UpdateDeviceStartupPictureOutcome AliyuncvcClient::updateDeviceStartupPicture(const UpdateDeviceStartupPictureRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return UpdateDeviceStartupPictureOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return UpdateDeviceStartupPictureOutcome(UpdateDeviceStartupPictureResult(outcome.result()));
|
||||
else
|
||||
return UpdateDeviceStartupPictureOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void AliyuncvcClient::updateDeviceStartupPictureAsync(const UpdateDeviceStartupPictureRequest& request, const UpdateDeviceStartupPictureAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, updateDeviceStartupPicture(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
AliyuncvcClient::UpdateDeviceStartupPictureOutcomeCallable AliyuncvcClient::updateDeviceStartupPictureCallable(const UpdateDeviceStartupPictureRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<UpdateDeviceStartupPictureOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->updateDeviceStartupPicture(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
AliyuncvcClient::UpdateGonggeLayoutOutcome AliyuncvcClient::updateGonggeLayout(const UpdateGonggeLayoutRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
|
||||
@@ -40,7 +40,7 @@ void DeleteUserResult::parse(const std::string &payload)
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString();
|
||||
success_ = value["Success"].asString() == "true";
|
||||
if(!value["ErrorCode"].isNull())
|
||||
errorCode_ = std::stoi(value["ErrorCode"].asString());
|
||||
if(!value["Message"].isNull())
|
||||
@@ -58,7 +58,7 @@ int DeleteUserResult::getErrorCode()const
|
||||
return errorCode_;
|
||||
}
|
||||
|
||||
std::string DeleteUserResult::getSuccess()const
|
||||
bool DeleteUserResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
@@ -14,17 +14,16 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/cs/model/DeleteTriggerHookRequest.h>
|
||||
#include <alibabacloud/aliyuncvc/model/GetAccountInfoRequest.h>
|
||||
|
||||
using AlibabaCloud::CS::Model::DeleteTriggerHookRequest;
|
||||
using AlibabaCloud::Aliyuncvc::Model::GetAccountInfoRequest;
|
||||
|
||||
DeleteTriggerHookRequest::DeleteTriggerHookRequest() :
|
||||
RoaServiceRequest("cs", "2015-12-15")
|
||||
GetAccountInfoRequest::GetAccountInfoRequest() :
|
||||
RpcServiceRequest("aliyuncvc", "2019-10-30", "GetAccountInfo")
|
||||
{
|
||||
setResourcePath("/api/v2/hook/trigger");
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DeleteTriggerHookRequest::~DeleteTriggerHookRequest()
|
||||
GetAccountInfoRequest::~GetAccountInfoRequest()
|
||||
{}
|
||||
|
||||
77
aliyuncvc/src/model/GetAccountInfoResult.cc
Normal file
77
aliyuncvc/src/model/GetAccountInfoResult.cc
Normal file
@@ -0,0 +1,77 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/aliyuncvc/model/GetAccountInfoResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Aliyuncvc;
|
||||
using namespace AlibabaCloud::Aliyuncvc::Model;
|
||||
|
||||
GetAccountInfoResult::GetAccountInfoResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
GetAccountInfoResult::GetAccountInfoResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
GetAccountInfoResult::~GetAccountInfoResult()
|
||||
{}
|
||||
|
||||
void GetAccountInfoResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto accountInfoNode = value["AccountInfo"];
|
||||
if(!accountInfoNode["AccountConcurrentMax"].isNull())
|
||||
accountInfo_.accountConcurrentMax = std::stoi(accountInfoNode["AccountConcurrentMax"].asString());
|
||||
if(!accountInfoNode["AccountApplicationMax"].isNull())
|
||||
accountInfo_.accountApplicationMax = std::stoi(accountInfoNode["AccountApplicationMax"].asString());
|
||||
if(!accountInfoNode["AccountApplicationNumber"].isNull())
|
||||
accountInfo_.accountApplicationNumber = std::stoi(accountInfoNode["AccountApplicationNumber"].asString());
|
||||
if(!value["ErrorCode"].isNull())
|
||||
errorCode_ = std::stoi(value["ErrorCode"].asString());
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
|
||||
}
|
||||
|
||||
std::string GetAccountInfoResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
int GetAccountInfoResult::getErrorCode()const
|
||||
{
|
||||
return errorCode_;
|
||||
}
|
||||
|
||||
GetAccountInfoResult::AccountInfo GetAccountInfoResult::getAccountInfo()const
|
||||
{
|
||||
return accountInfo_;
|
||||
}
|
||||
|
||||
bool GetAccountInfoResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
40
aliyuncvc/src/model/GetDeviceInfoRequest.cc
Normal file
40
aliyuncvc/src/model/GetDeviceInfoRequest.cc
Normal file
@@ -0,0 +1,40 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/aliyuncvc/model/GetDeviceInfoRequest.h>
|
||||
|
||||
using AlibabaCloud::Aliyuncvc::Model::GetDeviceInfoRequest;
|
||||
|
||||
GetDeviceInfoRequest::GetDeviceInfoRequest() :
|
||||
RpcServiceRequest("aliyuncvc", "2019-10-30", "GetDeviceInfo")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
GetDeviceInfoRequest::~GetDeviceInfoRequest()
|
||||
{}
|
||||
|
||||
std::string GetDeviceInfoRequest::getCastScreenCode()const
|
||||
{
|
||||
return castScreenCode_;
|
||||
}
|
||||
|
||||
void GetDeviceInfoRequest::setCastScreenCode(const std::string& castScreenCode)
|
||||
{
|
||||
castScreenCode_ = castScreenCode;
|
||||
setBodyParameter("CastScreenCode", castScreenCode);
|
||||
}
|
||||
|
||||
85
aliyuncvc/src/model/GetDeviceInfoResult.cc
Normal file
85
aliyuncvc/src/model/GetDeviceInfoResult.cc
Normal file
@@ -0,0 +1,85 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT 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/aliyuncvc/model/GetDeviceInfoResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Aliyuncvc;
|
||||
using namespace AlibabaCloud::Aliyuncvc::Model;
|
||||
|
||||
GetDeviceInfoResult::GetDeviceInfoResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
GetDeviceInfoResult::GetDeviceInfoResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
GetDeviceInfoResult::~GetDeviceInfoResult()
|
||||
{}
|
||||
|
||||
void GetDeviceInfoResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto deviceNode = value["Device"];
|
||||
if(!deviceNode["ActivationCode"].isNull())
|
||||
device_.activationCode = deviceNode["ActivationCode"].asString();
|
||||
if(!deviceNode["CastScreenCode"].isNull())
|
||||
device_.castScreenCode = deviceNode["CastScreenCode"].asString();
|
||||
if(!deviceNode["Sn"].isNull())
|
||||
device_.sn = deviceNode["Sn"].asString();
|
||||
if(!deviceNode["Status"].isNull())
|
||||
device_.status = std::stoi(deviceNode["Status"].asString());
|
||||
if(!deviceNode["IP"].isNull())
|
||||
device_.iP = deviceNode["IP"].asString();
|
||||
if(!deviceNode["Mac"].isNull())
|
||||
device_.mac = deviceNode["Mac"].asString();
|
||||
if(!deviceNode["Ssid"].isNull())
|
||||
device_.ssid = deviceNode["Ssid"].asString();
|
||||
if(!value["ErrorCode"].isNull())
|
||||
errorCode_ = std::stoi(value["ErrorCode"].asString());
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
|
||||
}
|
||||
|
||||
std::string GetDeviceInfoResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
GetDeviceInfoResult::Device GetDeviceInfoResult::getDevice()const
|
||||
{
|
||||
return device_;
|
||||
}
|
||||
|
||||
int GetDeviceInfoResult::getErrorCode()const
|
||||
{
|
||||
return errorCode_;
|
||||
}
|
||||
|
||||
bool GetDeviceInfoResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
51
aliyuncvc/src/model/GetStatisticRequest.cc
Normal file
51
aliyuncvc/src/model/GetStatisticRequest.cc
Normal file
@@ -0,0 +1,51 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/aliyuncvc/model/GetStatisticRequest.h>
|
||||
|
||||
using AlibabaCloud::Aliyuncvc::Model::GetStatisticRequest;
|
||||
|
||||
GetStatisticRequest::GetStatisticRequest() :
|
||||
RpcServiceRequest("aliyuncvc", "2019-10-30", "GetStatistic")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
GetStatisticRequest::~GetStatisticRequest()
|
||||
{}
|
||||
|
||||
long GetStatisticRequest::getEndTime()const
|
||||
{
|
||||
return endTime_;
|
||||
}
|
||||
|
||||
void GetStatisticRequest::setEndTime(long endTime)
|
||||
{
|
||||
endTime_ = endTime;
|
||||
setBodyParameter("EndTime", std::to_string(endTime));
|
||||
}
|
||||
|
||||
long GetStatisticRequest::getStartTime()const
|
||||
{
|
||||
return startTime_;
|
||||
}
|
||||
|
||||
void GetStatisticRequest::setStartTime(long startTime)
|
||||
{
|
||||
startTime_ = startTime;
|
||||
setBodyParameter("StartTime", std::to_string(startTime));
|
||||
}
|
||||
|
||||
79
aliyuncvc/src/model/GetStatisticResult.cc
Normal file
79
aliyuncvc/src/model/GetStatisticResult.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/aliyuncvc/model/GetStatisticResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Aliyuncvc;
|
||||
using namespace AlibabaCloud::Aliyuncvc::Model;
|
||||
|
||||
GetStatisticResult::GetStatisticResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
GetStatisticResult::GetStatisticResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
GetStatisticResult::~GetStatisticResult()
|
||||
{}
|
||||
|
||||
void GetStatisticResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto statisticInfoNode = value["StatisticInfo"];
|
||||
if(!statisticInfoNode["MeetingDuration"].isNull())
|
||||
statisticInfo_.meetingDuration = std::stol(statisticInfoNode["MeetingDuration"].asString());
|
||||
if(!statisticInfoNode["MeetingNumber"].isNull())
|
||||
statisticInfo_.meetingNumber = std::stol(statisticInfoNode["MeetingNumber"].asString());
|
||||
if(!statisticInfoNode["MemberNumber"].isNull())
|
||||
statisticInfo_.memberNumber = std::stol(statisticInfoNode["MemberNumber"].asString());
|
||||
if(!statisticInfoNode["MaxConcurrency"].isNull())
|
||||
statisticInfo_.maxConcurrency = std::stol(statisticInfoNode["MaxConcurrency"].asString());
|
||||
if(!value["ErrorCode"].isNull())
|
||||
errorCode_ = std::stoi(value["ErrorCode"].asString());
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
|
||||
}
|
||||
|
||||
std::string GetStatisticResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
GetStatisticResult::StatisticInfo GetStatisticResult::getStatisticInfo()const
|
||||
{
|
||||
return statisticInfo_;
|
||||
}
|
||||
|
||||
int GetStatisticResult::getErrorCode()const
|
||||
{
|
||||
return errorCode_;
|
||||
}
|
||||
|
||||
bool GetStatisticResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
62
aliyuncvc/src/model/ListConferenceDevicesRequest.cc
Normal file
62
aliyuncvc/src/model/ListConferenceDevicesRequest.cc
Normal file
@@ -0,0 +1,62 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/aliyuncvc/model/ListConferenceDevicesRequest.h>
|
||||
|
||||
using AlibabaCloud::Aliyuncvc::Model::ListConferenceDevicesRequest;
|
||||
|
||||
ListConferenceDevicesRequest::ListConferenceDevicesRequest() :
|
||||
RpcServiceRequest("aliyuncvc", "2019-10-30", "ListConferenceDevices")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
ListConferenceDevicesRequest::~ListConferenceDevicesRequest()
|
||||
{}
|
||||
|
||||
std::string ListConferenceDevicesRequest::getSerialNumber()const
|
||||
{
|
||||
return serialNumber_;
|
||||
}
|
||||
|
||||
void ListConferenceDevicesRequest::setSerialNumber(const std::string& serialNumber)
|
||||
{
|
||||
serialNumber_ = serialNumber;
|
||||
setParameter("SerialNumber", serialNumber);
|
||||
}
|
||||
|
||||
int ListConferenceDevicesRequest::getPageNumber()const
|
||||
{
|
||||
return pageNumber_;
|
||||
}
|
||||
|
||||
void ListConferenceDevicesRequest::setPageNumber(int pageNumber)
|
||||
{
|
||||
pageNumber_ = pageNumber;
|
||||
setParameter("PageNumber", std::to_string(pageNumber));
|
||||
}
|
||||
|
||||
int ListConferenceDevicesRequest::getPageSize()const
|
||||
{
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
void ListConferenceDevicesRequest::setPageSize(int pageSize)
|
||||
{
|
||||
pageSize_ = pageSize;
|
||||
setParameter("PageSize", std::to_string(pageSize));
|
||||
}
|
||||
|
||||
103
aliyuncvc/src/model/ListConferenceDevicesResult.cc
Normal file
103
aliyuncvc/src/model/ListConferenceDevicesResult.cc
Normal file
@@ -0,0 +1,103 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT 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/aliyuncvc/model/ListConferenceDevicesResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Aliyuncvc;
|
||||
using namespace AlibabaCloud::Aliyuncvc::Model;
|
||||
|
||||
ListConferenceDevicesResult::ListConferenceDevicesResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
ListConferenceDevicesResult::ListConferenceDevicesResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
ListConferenceDevicesResult::~ListConferenceDevicesResult()
|
||||
{}
|
||||
|
||||
void ListConferenceDevicesResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto dataNode = value["Data"];
|
||||
if(!dataNode["Total"].isNull())
|
||||
data_.total = std::stoi(dataNode["Total"].asString());
|
||||
if(!dataNode["PageSize"].isNull())
|
||||
data_.pageSize = std::stoi(dataNode["PageSize"].asString());
|
||||
if(!dataNode["PageNumber"].isNull())
|
||||
data_.pageNumber = std::stoi(dataNode["PageNumber"].asString());
|
||||
auto allConferencesNode = dataNode["Conferences"]["data"];
|
||||
for (auto dataNodeConferencesdata : allConferencesNode)
|
||||
{
|
||||
Data::Data dataObject;
|
||||
if(!dataNodeConferencesdata["ActivationCode"].isNull())
|
||||
dataObject.activationCode = dataNodeConferencesdata["ActivationCode"].asString();
|
||||
if(!dataNodeConferencesdata["ConferenceCode"].isNull())
|
||||
dataObject.conferenceCode = dataNodeConferencesdata["ConferenceCode"].asString();
|
||||
if(!dataNodeConferencesdata["ConferenceName"].isNull())
|
||||
dataObject.conferenceName = dataNodeConferencesdata["ConferenceName"].asString();
|
||||
if(!dataNodeConferencesdata["CreateTime"].isNull())
|
||||
dataObject.createTime = dataNodeConferencesdata["CreateTime"].asString();
|
||||
if(!dataNodeConferencesdata["DeviceModel"].isNull())
|
||||
dataObject.deviceModel = dataNodeConferencesdata["DeviceModel"].asString();
|
||||
if(!dataNodeConferencesdata["Manufacturer"].isNull())
|
||||
dataObject.manufacturer = dataNodeConferencesdata["Manufacturer"].asString();
|
||||
if(!dataNodeConferencesdata["PictureUrl"].isNull())
|
||||
dataObject.pictureUrl = dataNodeConferencesdata["PictureUrl"].asString();
|
||||
if(!dataNodeConferencesdata["SN"].isNull())
|
||||
dataObject.sN = dataNodeConferencesdata["SN"].asString();
|
||||
if(!dataNodeConferencesdata["Status"].isNull())
|
||||
dataObject.status = dataNodeConferencesdata["Status"].asString();
|
||||
if(!dataNodeConferencesdata["CastScreenCode"].isNull())
|
||||
dataObject.castScreenCode = dataNodeConferencesdata["CastScreenCode"].asString();
|
||||
data_.conferences.push_back(dataObject);
|
||||
}
|
||||
if(!value["ErrorCode"].isNull())
|
||||
errorCode_ = std::stoi(value["ErrorCode"].asString());
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
|
||||
}
|
||||
|
||||
std::string ListConferenceDevicesResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
ListConferenceDevicesResult::Data ListConferenceDevicesResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
int ListConferenceDevicesResult::getErrorCode()const
|
||||
{
|
||||
return errorCode_;
|
||||
}
|
||||
|
||||
bool ListConferenceDevicesResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
51
aliyuncvc/src/model/ModifyDeviceBackgroundRequest.cc
Normal file
51
aliyuncvc/src/model/ModifyDeviceBackgroundRequest.cc
Normal file
@@ -0,0 +1,51 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/aliyuncvc/model/ModifyDeviceBackgroundRequest.h>
|
||||
|
||||
using AlibabaCloud::Aliyuncvc::Model::ModifyDeviceBackgroundRequest;
|
||||
|
||||
ModifyDeviceBackgroundRequest::ModifyDeviceBackgroundRequest() :
|
||||
RpcServiceRequest("aliyuncvc", "2019-10-30", "ModifyDeviceBackground")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
ModifyDeviceBackgroundRequest::~ModifyDeviceBackgroundRequest()
|
||||
{}
|
||||
|
||||
std::string ModifyDeviceBackgroundRequest::getSerialNumber()const
|
||||
{
|
||||
return serialNumber_;
|
||||
}
|
||||
|
||||
void ModifyDeviceBackgroundRequest::setSerialNumber(const std::string& serialNumber)
|
||||
{
|
||||
serialNumber_ = serialNumber;
|
||||
setBodyParameter("SerialNumber", serialNumber);
|
||||
}
|
||||
|
||||
std::string ModifyDeviceBackgroundRequest::getPicture()const
|
||||
{
|
||||
return picture_;
|
||||
}
|
||||
|
||||
void ModifyDeviceBackgroundRequest::setPicture(const std::string& picture)
|
||||
{
|
||||
picture_ = picture;
|
||||
setBodyParameter("Picture", picture);
|
||||
}
|
||||
|
||||
65
aliyuncvc/src/model/ModifyDeviceBackgroundResult.cc
Normal file
65
aliyuncvc/src/model/ModifyDeviceBackgroundResult.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/aliyuncvc/model/ModifyDeviceBackgroundResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Aliyuncvc;
|
||||
using namespace AlibabaCloud::Aliyuncvc::Model;
|
||||
|
||||
ModifyDeviceBackgroundResult::ModifyDeviceBackgroundResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
ModifyDeviceBackgroundResult::ModifyDeviceBackgroundResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
ModifyDeviceBackgroundResult::~ModifyDeviceBackgroundResult()
|
||||
{}
|
||||
|
||||
void ModifyDeviceBackgroundResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["ErrorCode"].isNull())
|
||||
errorCode_ = std::stoi(value["ErrorCode"].asString());
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
|
||||
}
|
||||
|
||||
std::string ModifyDeviceBackgroundResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
int ModifyDeviceBackgroundResult::getErrorCode()const
|
||||
{
|
||||
return errorCode_;
|
||||
}
|
||||
|
||||
bool ModifyDeviceBackgroundResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
40
aliyuncvc/src/model/RefreshDeviceScreenCodeRequest.cc
Normal file
40
aliyuncvc/src/model/RefreshDeviceScreenCodeRequest.cc
Normal file
@@ -0,0 +1,40 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/aliyuncvc/model/RefreshDeviceScreenCodeRequest.h>
|
||||
|
||||
using AlibabaCloud::Aliyuncvc::Model::RefreshDeviceScreenCodeRequest;
|
||||
|
||||
RefreshDeviceScreenCodeRequest::RefreshDeviceScreenCodeRequest() :
|
||||
RpcServiceRequest("aliyuncvc", "2019-10-30", "RefreshDeviceScreenCode")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
RefreshDeviceScreenCodeRequest::~RefreshDeviceScreenCodeRequest()
|
||||
{}
|
||||
|
||||
std::string RefreshDeviceScreenCodeRequest::getSerialNumber()const
|
||||
{
|
||||
return serialNumber_;
|
||||
}
|
||||
|
||||
void RefreshDeviceScreenCodeRequest::setSerialNumber(const std::string& serialNumber)
|
||||
{
|
||||
serialNumber_ = serialNumber;
|
||||
setBodyParameter("SerialNumber", serialNumber);
|
||||
}
|
||||
|
||||
75
aliyuncvc/src/model/RefreshDeviceScreenCodeResult.cc
Normal file
75
aliyuncvc/src/model/RefreshDeviceScreenCodeResult.cc
Normal file
@@ -0,0 +1,75 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/aliyuncvc/model/RefreshDeviceScreenCodeResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Aliyuncvc;
|
||||
using namespace AlibabaCloud::Aliyuncvc::Model;
|
||||
|
||||
RefreshDeviceScreenCodeResult::RefreshDeviceScreenCodeResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
RefreshDeviceScreenCodeResult::RefreshDeviceScreenCodeResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
RefreshDeviceScreenCodeResult::~RefreshDeviceScreenCodeResult()
|
||||
{}
|
||||
|
||||
void RefreshDeviceScreenCodeResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto dataNode = value["Data"];
|
||||
if(!dataNode["SerialNumber"].isNull())
|
||||
data_.serialNumber = dataNode["SerialNumber"].asString();
|
||||
if(!dataNode["ScreenCode"].isNull())
|
||||
data_.screenCode = dataNode["ScreenCode"].asString();
|
||||
if(!value["ErrorCode"].isNull())
|
||||
errorCode_ = std::stoi(value["ErrorCode"].asString());
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
|
||||
}
|
||||
|
||||
std::string RefreshDeviceScreenCodeResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
RefreshDeviceScreenCodeResult::Data RefreshDeviceScreenCodeResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
int RefreshDeviceScreenCodeResult::getErrorCode()const
|
||||
{
|
||||
return errorCode_;
|
||||
}
|
||||
|
||||
bool RefreshDeviceScreenCodeResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
@@ -49,6 +49,17 @@ void RegisterUemDeviceRequest::setGroupId(const std::string& groupId)
|
||||
setParameter("GroupId", groupId);
|
||||
}
|
||||
|
||||
std::string RegisterUemDeviceRequest::getOwnerId()const
|
||||
{
|
||||
return ownerId_;
|
||||
}
|
||||
|
||||
void RegisterUemDeviceRequest::setOwnerId(const std::string& ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setParameter("OwnerId", ownerId);
|
||||
}
|
||||
|
||||
std::string RegisterUemDeviceRequest::getDeviceId()const
|
||||
{
|
||||
return deviceId_;
|
||||
|
||||
51
aliyuncvc/src/model/UpdateDeviceStartupPictureRequest.cc
Normal file
51
aliyuncvc/src/model/UpdateDeviceStartupPictureRequest.cc
Normal file
@@ -0,0 +1,51 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/aliyuncvc/model/UpdateDeviceStartupPictureRequest.h>
|
||||
|
||||
using AlibabaCloud::Aliyuncvc::Model::UpdateDeviceStartupPictureRequest;
|
||||
|
||||
UpdateDeviceStartupPictureRequest::UpdateDeviceStartupPictureRequest() :
|
||||
RpcServiceRequest("aliyuncvc", "2019-10-30", "UpdateDeviceStartupPicture")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
UpdateDeviceStartupPictureRequest::~UpdateDeviceStartupPictureRequest()
|
||||
{}
|
||||
|
||||
std::string UpdateDeviceStartupPictureRequest::getSerialNumber()const
|
||||
{
|
||||
return serialNumber_;
|
||||
}
|
||||
|
||||
void UpdateDeviceStartupPictureRequest::setSerialNumber(const std::string& serialNumber)
|
||||
{
|
||||
serialNumber_ = serialNumber;
|
||||
setBodyParameter("SerialNumber", serialNumber);
|
||||
}
|
||||
|
||||
std::string UpdateDeviceStartupPictureRequest::getPicture()const
|
||||
{
|
||||
return picture_;
|
||||
}
|
||||
|
||||
void UpdateDeviceStartupPictureRequest::setPicture(const std::string& picture)
|
||||
{
|
||||
picture_ = picture;
|
||||
setBodyParameter("Picture", picture);
|
||||
}
|
||||
|
||||
65
aliyuncvc/src/model/UpdateDeviceStartupPictureResult.cc
Normal file
65
aliyuncvc/src/model/UpdateDeviceStartupPictureResult.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/aliyuncvc/model/UpdateDeviceStartupPictureResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Aliyuncvc;
|
||||
using namespace AlibabaCloud::Aliyuncvc::Model;
|
||||
|
||||
UpdateDeviceStartupPictureResult::UpdateDeviceStartupPictureResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
UpdateDeviceStartupPictureResult::UpdateDeviceStartupPictureResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
UpdateDeviceStartupPictureResult::~UpdateDeviceStartupPictureResult()
|
||||
{}
|
||||
|
||||
void UpdateDeviceStartupPictureResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["ErrorCode"].isNull())
|
||||
errorCode_ = std::stoi(value["ErrorCode"].asString());
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
|
||||
}
|
||||
|
||||
std::string UpdateDeviceStartupPictureResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
int UpdateDeviceStartupPictureResult::getErrorCode()const
|
||||
{
|
||||
return errorCode_;
|
||||
}
|
||||
|
||||
bool UpdateDeviceStartupPictureResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
@@ -51,6 +51,8 @@ set(arms_public_header_model
|
||||
include/alibabacloud/arms/model/DescribeTraceLicenseKeyResult.h
|
||||
include/alibabacloud/arms/model/DescribeTraceLocationRequest.h
|
||||
include/alibabacloud/arms/model/DescribeTraceLocationResult.h
|
||||
include/alibabacloud/arms/model/GetAppApiByPageRequest.h
|
||||
include/alibabacloud/arms/model/GetAppApiByPageResult.h
|
||||
include/alibabacloud/arms/model/GetConsistencySnapshotRequest.h
|
||||
include/alibabacloud/arms/model/GetConsistencySnapshotResult.h
|
||||
include/alibabacloud/arms/model/GetMultipleTraceRequest.h
|
||||
@@ -83,6 +85,8 @@ set(arms_public_header_model
|
||||
include/alibabacloud/arms/model/QueryDatasetResult.h
|
||||
include/alibabacloud/arms/model/QueryMetricRequest.h
|
||||
include/alibabacloud/arms/model/QueryMetricResult.h
|
||||
include/alibabacloud/arms/model/QueryMetricByPageRequest.h
|
||||
include/alibabacloud/arms/model/QueryMetricByPageResult.h
|
||||
include/alibabacloud/arms/model/SearchAlertContactRequest.h
|
||||
include/alibabacloud/arms/model/SearchAlertContactResult.h
|
||||
include/alibabacloud/arms/model/SearchAlertContactGroupRequest.h
|
||||
@@ -148,6 +152,8 @@ set(arms_src
|
||||
src/model/DescribeTraceLicenseKeyResult.cc
|
||||
src/model/DescribeTraceLocationRequest.cc
|
||||
src/model/DescribeTraceLocationResult.cc
|
||||
src/model/GetAppApiByPageRequest.cc
|
||||
src/model/GetAppApiByPageResult.cc
|
||||
src/model/GetConsistencySnapshotRequest.cc
|
||||
src/model/GetConsistencySnapshotResult.cc
|
||||
src/model/GetMultipleTraceRequest.cc
|
||||
@@ -180,6 +186,8 @@ set(arms_src
|
||||
src/model/QueryDatasetResult.cc
|
||||
src/model/QueryMetricRequest.cc
|
||||
src/model/QueryMetricResult.cc
|
||||
src/model/QueryMetricByPageRequest.cc
|
||||
src/model/QueryMetricByPageResult.cc
|
||||
src/model/SearchAlertContactRequest.cc
|
||||
src/model/SearchAlertContactResult.cc
|
||||
src/model/SearchAlertContactGroupRequest.cc
|
||||
|
||||
@@ -52,6 +52,8 @@
|
||||
#include "model/DescribeTraceLicenseKeyResult.h"
|
||||
#include "model/DescribeTraceLocationRequest.h"
|
||||
#include "model/DescribeTraceLocationResult.h"
|
||||
#include "model/GetAppApiByPageRequest.h"
|
||||
#include "model/GetAppApiByPageResult.h"
|
||||
#include "model/GetConsistencySnapshotRequest.h"
|
||||
#include "model/GetConsistencySnapshotResult.h"
|
||||
#include "model/GetMultipleTraceRequest.h"
|
||||
@@ -84,6 +86,8 @@
|
||||
#include "model/QueryDatasetResult.h"
|
||||
#include "model/QueryMetricRequest.h"
|
||||
#include "model/QueryMetricResult.h"
|
||||
#include "model/QueryMetricByPageRequest.h"
|
||||
#include "model/QueryMetricByPageResult.h"
|
||||
#include "model/SearchAlertContactRequest.h"
|
||||
#include "model/SearchAlertContactResult.h"
|
||||
#include "model/SearchAlertContactGroupRequest.h"
|
||||
@@ -170,6 +174,9 @@ namespace AlibabaCloud
|
||||
typedef Outcome<Error, Model::DescribeTraceLocationResult> DescribeTraceLocationOutcome;
|
||||
typedef std::future<DescribeTraceLocationOutcome> DescribeTraceLocationOutcomeCallable;
|
||||
typedef std::function<void(const ARMSClient*, const Model::DescribeTraceLocationRequest&, const DescribeTraceLocationOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeTraceLocationAsyncHandler;
|
||||
typedef Outcome<Error, Model::GetAppApiByPageResult> GetAppApiByPageOutcome;
|
||||
typedef std::future<GetAppApiByPageOutcome> GetAppApiByPageOutcomeCallable;
|
||||
typedef std::function<void(const ARMSClient*, const Model::GetAppApiByPageRequest&, const GetAppApiByPageOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetAppApiByPageAsyncHandler;
|
||||
typedef Outcome<Error, Model::GetConsistencySnapshotResult> GetConsistencySnapshotOutcome;
|
||||
typedef std::future<GetConsistencySnapshotOutcome> GetConsistencySnapshotOutcomeCallable;
|
||||
typedef std::function<void(const ARMSClient*, const Model::GetConsistencySnapshotRequest&, const GetConsistencySnapshotOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetConsistencySnapshotAsyncHandler;
|
||||
@@ -218,6 +225,9 @@ namespace AlibabaCloud
|
||||
typedef Outcome<Error, Model::QueryMetricResult> QueryMetricOutcome;
|
||||
typedef std::future<QueryMetricOutcome> QueryMetricOutcomeCallable;
|
||||
typedef std::function<void(const ARMSClient*, const Model::QueryMetricRequest&, const QueryMetricOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> QueryMetricAsyncHandler;
|
||||
typedef Outcome<Error, Model::QueryMetricByPageResult> QueryMetricByPageOutcome;
|
||||
typedef std::future<QueryMetricByPageOutcome> QueryMetricByPageOutcomeCallable;
|
||||
typedef std::function<void(const ARMSClient*, const Model::QueryMetricByPageRequest&, const QueryMetricByPageOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> QueryMetricByPageAsyncHandler;
|
||||
typedef Outcome<Error, Model::SearchAlertContactResult> SearchAlertContactOutcome;
|
||||
typedef std::future<SearchAlertContactOutcome> SearchAlertContactOutcomeCallable;
|
||||
typedef std::function<void(const ARMSClient*, const Model::SearchAlertContactRequest&, const SearchAlertContactOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> SearchAlertContactAsyncHandler;
|
||||
@@ -316,6 +326,9 @@ namespace AlibabaCloud
|
||||
DescribeTraceLocationOutcome describeTraceLocation(const Model::DescribeTraceLocationRequest &request)const;
|
||||
void describeTraceLocationAsync(const Model::DescribeTraceLocationRequest& request, const DescribeTraceLocationAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DescribeTraceLocationOutcomeCallable describeTraceLocationCallable(const Model::DescribeTraceLocationRequest& request) const;
|
||||
GetAppApiByPageOutcome getAppApiByPage(const Model::GetAppApiByPageRequest &request)const;
|
||||
void getAppApiByPageAsync(const Model::GetAppApiByPageRequest& request, const GetAppApiByPageAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
GetAppApiByPageOutcomeCallable getAppApiByPageCallable(const Model::GetAppApiByPageRequest& request) const;
|
||||
GetConsistencySnapshotOutcome getConsistencySnapshot(const Model::GetConsistencySnapshotRequest &request)const;
|
||||
void getConsistencySnapshotAsync(const Model::GetConsistencySnapshotRequest& request, const GetConsistencySnapshotAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
GetConsistencySnapshotOutcomeCallable getConsistencySnapshotCallable(const Model::GetConsistencySnapshotRequest& request) const;
|
||||
@@ -364,6 +377,9 @@ namespace AlibabaCloud
|
||||
QueryMetricOutcome queryMetric(const Model::QueryMetricRequest &request)const;
|
||||
void queryMetricAsync(const Model::QueryMetricRequest& request, const QueryMetricAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
QueryMetricOutcomeCallable queryMetricCallable(const Model::QueryMetricRequest& request) const;
|
||||
QueryMetricByPageOutcome queryMetricByPage(const Model::QueryMetricByPageRequest &request)const;
|
||||
void queryMetricByPageAsync(const Model::QueryMetricByPageRequest& request, const QueryMetricByPageAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
QueryMetricByPageOutcomeCallable queryMetricByPageCallable(const Model::QueryMetricByPageRequest& request) const;
|
||||
SearchAlertContactOutcome searchAlertContact(const Model::SearchAlertContactRequest &request)const;
|
||||
void searchAlertContactAsync(const Model::SearchAlertContactRequest& request, const SearchAlertContactAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
SearchAlertContactOutcomeCallable searchAlertContactCallable(const Model::SearchAlertContactRequest& request) const;
|
||||
|
||||
@@ -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_ARMS_MODEL_GETAPPAPIBYPAGEREQUEST_H_
|
||||
#define ALIBABACLOUD_ARMS_MODEL_GETAPPAPIBYPAGEREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/arms/ARMSExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace ARMS
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_ARMS_EXPORT GetAppApiByPageRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
GetAppApiByPageRequest();
|
||||
~GetAppApiByPageRequest();
|
||||
|
||||
long getEndTime()const;
|
||||
void setEndTime(long endTime);
|
||||
int getCurrentPage()const;
|
||||
void setCurrentPage(int currentPage);
|
||||
std::string getPId()const;
|
||||
void setPId(const std::string& pId);
|
||||
long getStartTime()const;
|
||||
void setStartTime(long startTime);
|
||||
std::string getRegionId()const;
|
||||
void setRegionId(const std::string& regionId);
|
||||
int getPageSize()const;
|
||||
void setPageSize(int pageSize);
|
||||
int getIntervalMills()const;
|
||||
void setIntervalMills(int intervalMills);
|
||||
|
||||
private:
|
||||
long endTime_;
|
||||
int currentPage_;
|
||||
std::string pId_;
|
||||
long startTime_;
|
||||
std::string regionId_;
|
||||
int pageSize_;
|
||||
int intervalMills_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_ARMS_MODEL_GETAPPAPIBYPAGEREQUEST_H_
|
||||
64
arms/include/alibabacloud/arms/model/GetAppApiByPageResult.h
Normal file
64
arms/include/alibabacloud/arms/model/GetAppApiByPageResult.h
Normal file
@@ -0,0 +1,64 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_ARMS_MODEL_GETAPPAPIBYPAGERESULT_H_
|
||||
#define ALIBABACLOUD_ARMS_MODEL_GETAPPAPIBYPAGERESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/arms/ARMSExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace ARMS
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_ARMS_EXPORT GetAppApiByPageResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct Data
|
||||
{
|
||||
int pageSize;
|
||||
std::string total;
|
||||
int page;
|
||||
std::vector<std::string> items;
|
||||
};
|
||||
|
||||
|
||||
GetAppApiByPageResult();
|
||||
explicit GetAppApiByPageResult(const std::string &payload);
|
||||
~GetAppApiByPageResult();
|
||||
std::string getMessage()const;
|
||||
Data getData()const;
|
||||
int getCode()const;
|
||||
bool getSuccess()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::string message_;
|
||||
Data data_;
|
||||
int code_;
|
||||
bool success_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_ARMS_MODEL_GETAPPAPIBYPAGERESULT_H_
|
||||
@@ -0,0 +1,93 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_ARMS_MODEL_QUERYMETRICBYPAGEREQUEST_H_
|
||||
#define ALIBABACLOUD_ARMS_MODEL_QUERYMETRICBYPAGEREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/arms/ARMSExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace ARMS
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_ARMS_EXPORT QueryMetricByPageRequest : public RpcServiceRequest
|
||||
{
|
||||
public:
|
||||
struct Filters
|
||||
{
|
||||
std::string value;
|
||||
std::string key;
|
||||
};
|
||||
|
||||
public:
|
||||
QueryMetricByPageRequest();
|
||||
~QueryMetricByPageRequest();
|
||||
|
||||
std::string getConsistencyQueryStrategy()const;
|
||||
void setConsistencyQueryStrategy(const std::string& consistencyQueryStrategy);
|
||||
long getEndTime()const;
|
||||
void setEndTime(long endTime);
|
||||
std::string getOrderBy()const;
|
||||
void setOrderBy(const std::string& orderBy);
|
||||
int getCurrentPage()const;
|
||||
void setCurrentPage(int currentPage);
|
||||
long getStartTime()const;
|
||||
void setStartTime(long startTime);
|
||||
std::vector<Filters> getFilters()const;
|
||||
void setFilters(const std::vector<Filters>& filters);
|
||||
std::string getConsistencyDataKey()const;
|
||||
void setConsistencyDataKey(const std::string& consistencyDataKey);
|
||||
std::string getProxyUserId()const;
|
||||
void setProxyUserId(const std::string& proxyUserId);
|
||||
std::vector<std::string> getMeasures()const;
|
||||
void setMeasures(const std::vector<std::string>& measures);
|
||||
int getIntervalInSec()const;
|
||||
void setIntervalInSec(int intervalInSec);
|
||||
std::string getMetric()const;
|
||||
void setMetric(const std::string& metric);
|
||||
int getPageSize()const;
|
||||
void setPageSize(int pageSize);
|
||||
std::vector<std::string> getDimensions()const;
|
||||
void setDimensions(const std::vector<std::string>& dimensions);
|
||||
std::string getOrder()const;
|
||||
void setOrder(const std::string& order);
|
||||
|
||||
private:
|
||||
std::string consistencyQueryStrategy_;
|
||||
long endTime_;
|
||||
std::string orderBy_;
|
||||
int currentPage_;
|
||||
long startTime_;
|
||||
std::vector<Filters> filters_;
|
||||
std::string consistencyDataKey_;
|
||||
std::string proxyUserId_;
|
||||
std::vector<std::string> measures_;
|
||||
int intervalInSec_;
|
||||
std::string metric_;
|
||||
int pageSize_;
|
||||
std::vector<std::string> dimensions_;
|
||||
std::string order_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_ARMS_MODEL_QUERYMETRICBYPAGEREQUEST_H_
|
||||
@@ -0,0 +1,64 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_ARMS_MODEL_QUERYMETRICBYPAGERESULT_H_
|
||||
#define ALIBABACLOUD_ARMS_MODEL_QUERYMETRICBYPAGERESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/arms/ARMSExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace ARMS
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_ARMS_EXPORT QueryMetricByPageResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct Data
|
||||
{
|
||||
int pageSize;
|
||||
int total;
|
||||
int page;
|
||||
std::vector<std::string> items;
|
||||
};
|
||||
|
||||
|
||||
QueryMetricByPageResult();
|
||||
explicit QueryMetricByPageResult(const std::string &payload);
|
||||
~QueryMetricByPageResult();
|
||||
std::string getMessage()const;
|
||||
Data getData()const;
|
||||
std::string getCode()const;
|
||||
bool getSuccess()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::string message_;
|
||||
Data data_;
|
||||
std::string code_;
|
||||
bool success_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_ARMS_MODEL_QUERYMETRICBYPAGERESULT_H_
|
||||
@@ -591,6 +591,42 @@ ARMSClient::DescribeTraceLocationOutcomeCallable ARMSClient::describeTraceLocati
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
ARMSClient::GetAppApiByPageOutcome ARMSClient::getAppApiByPage(const GetAppApiByPageRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return GetAppApiByPageOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return GetAppApiByPageOutcome(GetAppApiByPageResult(outcome.result()));
|
||||
else
|
||||
return GetAppApiByPageOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void ARMSClient::getAppApiByPageAsync(const GetAppApiByPageRequest& request, const GetAppApiByPageAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, getAppApiByPage(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
ARMSClient::GetAppApiByPageOutcomeCallable ARMSClient::getAppApiByPageCallable(const GetAppApiByPageRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<GetAppApiByPageOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->getAppApiByPage(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
ARMSClient::GetConsistencySnapshotOutcome ARMSClient::getConsistencySnapshot(const GetConsistencySnapshotRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -1167,6 +1203,42 @@ ARMSClient::QueryMetricOutcomeCallable ARMSClient::queryMetricCallable(const Que
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
ARMSClient::QueryMetricByPageOutcome ARMSClient::queryMetricByPage(const QueryMetricByPageRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return QueryMetricByPageOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return QueryMetricByPageOutcome(QueryMetricByPageResult(outcome.result()));
|
||||
else
|
||||
return QueryMetricByPageOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void ARMSClient::queryMetricByPageAsync(const QueryMetricByPageRequest& request, const QueryMetricByPageAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, queryMetricByPage(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
ARMSClient::QueryMetricByPageOutcomeCallable ARMSClient::queryMetricByPageCallable(const QueryMetricByPageRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<QueryMetricByPageOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->queryMetricByPage(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
ARMSClient::SearchAlertContactOutcome ARMSClient::searchAlertContact(const SearchAlertContactRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
|
||||
106
arms/src/model/GetAppApiByPageRequest.cc
Normal file
106
arms/src/model/GetAppApiByPageRequest.cc
Normal file
@@ -0,0 +1,106 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/arms/model/GetAppApiByPageRequest.h>
|
||||
|
||||
using AlibabaCloud::ARMS::Model::GetAppApiByPageRequest;
|
||||
|
||||
GetAppApiByPageRequest::GetAppApiByPageRequest() :
|
||||
RpcServiceRequest("arms", "2019-08-08", "GetAppApiByPage")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
GetAppApiByPageRequest::~GetAppApiByPageRequest()
|
||||
{}
|
||||
|
||||
long GetAppApiByPageRequest::getEndTime()const
|
||||
{
|
||||
return endTime_;
|
||||
}
|
||||
|
||||
void GetAppApiByPageRequest::setEndTime(long endTime)
|
||||
{
|
||||
endTime_ = endTime;
|
||||
setParameter("EndTime", std::to_string(endTime));
|
||||
}
|
||||
|
||||
int GetAppApiByPageRequest::getCurrentPage()const
|
||||
{
|
||||
return currentPage_;
|
||||
}
|
||||
|
||||
void GetAppApiByPageRequest::setCurrentPage(int currentPage)
|
||||
{
|
||||
currentPage_ = currentPage;
|
||||
setParameter("CurrentPage", std::to_string(currentPage));
|
||||
}
|
||||
|
||||
std::string GetAppApiByPageRequest::getPId()const
|
||||
{
|
||||
return pId_;
|
||||
}
|
||||
|
||||
void GetAppApiByPageRequest::setPId(const std::string& pId)
|
||||
{
|
||||
pId_ = pId;
|
||||
setParameter("PId", pId);
|
||||
}
|
||||
|
||||
long GetAppApiByPageRequest::getStartTime()const
|
||||
{
|
||||
return startTime_;
|
||||
}
|
||||
|
||||
void GetAppApiByPageRequest::setStartTime(long startTime)
|
||||
{
|
||||
startTime_ = startTime;
|
||||
setParameter("StartTime", std::to_string(startTime));
|
||||
}
|
||||
|
||||
std::string GetAppApiByPageRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void GetAppApiByPageRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
int GetAppApiByPageRequest::getPageSize()const
|
||||
{
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
void GetAppApiByPageRequest::setPageSize(int pageSize)
|
||||
{
|
||||
pageSize_ = pageSize;
|
||||
setParameter("PageSize", std::to_string(pageSize));
|
||||
}
|
||||
|
||||
int GetAppApiByPageRequest::getIntervalMills()const
|
||||
{
|
||||
return intervalMills_;
|
||||
}
|
||||
|
||||
void GetAppApiByPageRequest::setIntervalMills(int intervalMills)
|
||||
{
|
||||
intervalMills_ = intervalMills;
|
||||
setParameter("IntervalMills", std::to_string(intervalMills));
|
||||
}
|
||||
|
||||
80
arms/src/model/GetAppApiByPageResult.cc
Normal file
80
arms/src/model/GetAppApiByPageResult.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/arms/model/GetAppApiByPageResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::ARMS;
|
||||
using namespace AlibabaCloud::ARMS::Model;
|
||||
|
||||
GetAppApiByPageResult::GetAppApiByPageResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
GetAppApiByPageResult::GetAppApiByPageResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
GetAppApiByPageResult::~GetAppApiByPageResult()
|
||||
{}
|
||||
|
||||
void GetAppApiByPageResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto dataNode = value["Data"];
|
||||
if(!dataNode["Total"].isNull())
|
||||
data_.total = dataNode["Total"].asString();
|
||||
if(!dataNode["Page"].isNull())
|
||||
data_.page = std::stoi(dataNode["Page"].asString());
|
||||
if(!dataNode["PageSize"].isNull())
|
||||
data_.pageSize = std::stoi(dataNode["PageSize"].asString());
|
||||
auto allItems = dataNode["Items"]["Items"];
|
||||
for (auto value : allItems)
|
||||
data_.items.push_back(value.asString());
|
||||
if(!value["Code"].isNull())
|
||||
code_ = std::stoi(value["Code"].asString());
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
|
||||
}
|
||||
|
||||
std::string GetAppApiByPageResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
GetAppApiByPageResult::Data GetAppApiByPageResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
int GetAppApiByPageResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
bool GetAppApiByPageResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
192
arms/src/model/QueryMetricByPageRequest.cc
Normal file
192
arms/src/model/QueryMetricByPageRequest.cc
Normal file
@@ -0,0 +1,192 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/arms/model/QueryMetricByPageRequest.h>
|
||||
|
||||
using AlibabaCloud::ARMS::Model::QueryMetricByPageRequest;
|
||||
|
||||
QueryMetricByPageRequest::QueryMetricByPageRequest() :
|
||||
RpcServiceRequest("arms", "2019-08-08", "QueryMetricByPage")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
QueryMetricByPageRequest::~QueryMetricByPageRequest()
|
||||
{}
|
||||
|
||||
std::string QueryMetricByPageRequest::getConsistencyQueryStrategy()const
|
||||
{
|
||||
return consistencyQueryStrategy_;
|
||||
}
|
||||
|
||||
void QueryMetricByPageRequest::setConsistencyQueryStrategy(const std::string& consistencyQueryStrategy)
|
||||
{
|
||||
consistencyQueryStrategy_ = consistencyQueryStrategy;
|
||||
setParameter("ConsistencyQueryStrategy", consistencyQueryStrategy);
|
||||
}
|
||||
|
||||
long QueryMetricByPageRequest::getEndTime()const
|
||||
{
|
||||
return endTime_;
|
||||
}
|
||||
|
||||
void QueryMetricByPageRequest::setEndTime(long endTime)
|
||||
{
|
||||
endTime_ = endTime;
|
||||
setParameter("EndTime", std::to_string(endTime));
|
||||
}
|
||||
|
||||
std::string QueryMetricByPageRequest::getOrderBy()const
|
||||
{
|
||||
return orderBy_;
|
||||
}
|
||||
|
||||
void QueryMetricByPageRequest::setOrderBy(const std::string& orderBy)
|
||||
{
|
||||
orderBy_ = orderBy;
|
||||
setParameter("OrderBy", orderBy);
|
||||
}
|
||||
|
||||
int QueryMetricByPageRequest::getCurrentPage()const
|
||||
{
|
||||
return currentPage_;
|
||||
}
|
||||
|
||||
void QueryMetricByPageRequest::setCurrentPage(int currentPage)
|
||||
{
|
||||
currentPage_ = currentPage;
|
||||
setParameter("CurrentPage", std::to_string(currentPage));
|
||||
}
|
||||
|
||||
long QueryMetricByPageRequest::getStartTime()const
|
||||
{
|
||||
return startTime_;
|
||||
}
|
||||
|
||||
void QueryMetricByPageRequest::setStartTime(long startTime)
|
||||
{
|
||||
startTime_ = startTime;
|
||||
setParameter("StartTime", std::to_string(startTime));
|
||||
}
|
||||
|
||||
std::vector<QueryMetricByPageRequest::Filters> QueryMetricByPageRequest::getFilters()const
|
||||
{
|
||||
return filters_;
|
||||
}
|
||||
|
||||
void QueryMetricByPageRequest::setFilters(const std::vector<Filters>& filters)
|
||||
{
|
||||
filters_ = filters;
|
||||
for(int dep1 = 0; dep1!= filters.size(); dep1++) {
|
||||
auto filtersObj = filters.at(dep1);
|
||||
std::string filtersObjStr = "Filters." + std::to_string(dep1 + 1);
|
||||
setParameter(filtersObjStr + ".Value", filtersObj.value);
|
||||
setParameter(filtersObjStr + ".Key", filtersObj.key);
|
||||
}
|
||||
}
|
||||
|
||||
std::string QueryMetricByPageRequest::getConsistencyDataKey()const
|
||||
{
|
||||
return consistencyDataKey_;
|
||||
}
|
||||
|
||||
void QueryMetricByPageRequest::setConsistencyDataKey(const std::string& consistencyDataKey)
|
||||
{
|
||||
consistencyDataKey_ = consistencyDataKey;
|
||||
setParameter("ConsistencyDataKey", consistencyDataKey);
|
||||
}
|
||||
|
||||
std::string QueryMetricByPageRequest::getProxyUserId()const
|
||||
{
|
||||
return proxyUserId_;
|
||||
}
|
||||
|
||||
void QueryMetricByPageRequest::setProxyUserId(const std::string& proxyUserId)
|
||||
{
|
||||
proxyUserId_ = proxyUserId;
|
||||
setParameter("ProxyUserId", proxyUserId);
|
||||
}
|
||||
|
||||
std::vector<std::string> QueryMetricByPageRequest::getMeasures()const
|
||||
{
|
||||
return measures_;
|
||||
}
|
||||
|
||||
void QueryMetricByPageRequest::setMeasures(const std::vector<std::string>& measures)
|
||||
{
|
||||
measures_ = measures;
|
||||
for(int dep1 = 0; dep1!= measures.size(); dep1++) {
|
||||
setParameter("Measures."+ std::to_string(dep1), measures.at(dep1));
|
||||
}
|
||||
}
|
||||
|
||||
int QueryMetricByPageRequest::getIntervalInSec()const
|
||||
{
|
||||
return intervalInSec_;
|
||||
}
|
||||
|
||||
void QueryMetricByPageRequest::setIntervalInSec(int intervalInSec)
|
||||
{
|
||||
intervalInSec_ = intervalInSec;
|
||||
setParameter("IntervalInSec", std::to_string(intervalInSec));
|
||||
}
|
||||
|
||||
std::string QueryMetricByPageRequest::getMetric()const
|
||||
{
|
||||
return metric_;
|
||||
}
|
||||
|
||||
void QueryMetricByPageRequest::setMetric(const std::string& metric)
|
||||
{
|
||||
metric_ = metric;
|
||||
setParameter("Metric", metric);
|
||||
}
|
||||
|
||||
int QueryMetricByPageRequest::getPageSize()const
|
||||
{
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
void QueryMetricByPageRequest::setPageSize(int pageSize)
|
||||
{
|
||||
pageSize_ = pageSize;
|
||||
setParameter("PageSize", std::to_string(pageSize));
|
||||
}
|
||||
|
||||
std::vector<std::string> QueryMetricByPageRequest::getDimensions()const
|
||||
{
|
||||
return dimensions_;
|
||||
}
|
||||
|
||||
void QueryMetricByPageRequest::setDimensions(const std::vector<std::string>& dimensions)
|
||||
{
|
||||
dimensions_ = dimensions;
|
||||
for(int dep1 = 0; dep1!= dimensions.size(); dep1++) {
|
||||
setParameter("Dimensions."+ std::to_string(dep1), dimensions.at(dep1));
|
||||
}
|
||||
}
|
||||
|
||||
std::string QueryMetricByPageRequest::getOrder()const
|
||||
{
|
||||
return order_;
|
||||
}
|
||||
|
||||
void QueryMetricByPageRequest::setOrder(const std::string& order)
|
||||
{
|
||||
order_ = order;
|
||||
setParameter("Order", order);
|
||||
}
|
||||
|
||||
80
arms/src/model/QueryMetricByPageResult.cc
Normal file
80
arms/src/model/QueryMetricByPageResult.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/arms/model/QueryMetricByPageResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::ARMS;
|
||||
using namespace AlibabaCloud::ARMS::Model;
|
||||
|
||||
QueryMetricByPageResult::QueryMetricByPageResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
QueryMetricByPageResult::QueryMetricByPageResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
QueryMetricByPageResult::~QueryMetricByPageResult()
|
||||
{}
|
||||
|
||||
void QueryMetricByPageResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto dataNode = value["Data"];
|
||||
if(!dataNode["Total"].isNull())
|
||||
data_.total = std::stoi(dataNode["Total"].asString());
|
||||
if(!dataNode["Page"].isNull())
|
||||
data_.page = std::stoi(dataNode["Page"].asString());
|
||||
if(!dataNode["PageSize"].isNull())
|
||||
data_.pageSize = std::stoi(dataNode["PageSize"].asString());
|
||||
auto allItems = dataNode["Items"]["Items"];
|
||||
for (auto value : allItems)
|
||||
data_.items.push_back(value.asString());
|
||||
if(!value["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string QueryMetricByPageResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
QueryMetricByPageResult::Data QueryMetricByPageResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
std::string QueryMetricByPageResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
bool QueryMetricByPageResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
@@ -21,11 +21,15 @@ set(cams_public_header
|
||||
include/alibabacloud/cams/CamsExport.h )
|
||||
|
||||
set(cams_public_header_model
|
||||
include/alibabacloud/cams/model/CheckContactsRequest.h
|
||||
include/alibabacloud/cams/model/CheckContactsResult.h
|
||||
include/alibabacloud/cams/model/SendMessageRequest.h
|
||||
include/alibabacloud/cams/model/SendMessageResult.h )
|
||||
|
||||
set(cams_src
|
||||
src/CamsClient.cc
|
||||
src/model/CheckContactsRequest.cc
|
||||
src/model/CheckContactsResult.cc
|
||||
src/model/SendMessageRequest.cc
|
||||
src/model/SendMessageResult.cc )
|
||||
|
||||
|
||||
@@ -22,6 +22,8 @@
|
||||
#include <alibabacloud/core/EndpointProvider.h>
|
||||
#include <alibabacloud/core/RpcServiceClient.h>
|
||||
#include "CamsExport.h"
|
||||
#include "model/CheckContactsRequest.h"
|
||||
#include "model/CheckContactsResult.h"
|
||||
#include "model/SendMessageRequest.h"
|
||||
#include "model/SendMessageResult.h"
|
||||
|
||||
@@ -33,6 +35,9 @@ namespace AlibabaCloud
|
||||
class ALIBABACLOUD_CAMS_EXPORT CamsClient : public RpcServiceClient
|
||||
{
|
||||
public:
|
||||
typedef Outcome<Error, Model::CheckContactsResult> CheckContactsOutcome;
|
||||
typedef std::future<CheckContactsOutcome> CheckContactsOutcomeCallable;
|
||||
typedef std::function<void(const CamsClient*, const Model::CheckContactsRequest&, const CheckContactsOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> CheckContactsAsyncHandler;
|
||||
typedef Outcome<Error, Model::SendMessageResult> SendMessageOutcome;
|
||||
typedef std::future<SendMessageOutcome> SendMessageOutcomeCallable;
|
||||
typedef std::function<void(const CamsClient*, const Model::SendMessageRequest&, const SendMessageOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> SendMessageAsyncHandler;
|
||||
@@ -41,6 +46,9 @@ namespace AlibabaCloud
|
||||
CamsClient(const std::shared_ptr<CredentialsProvider> &credentialsProvider, const ClientConfiguration &configuration);
|
||||
CamsClient(const std::string &accessKeyId, const std::string &accessKeySecret, const ClientConfiguration &configuration);
|
||||
~CamsClient();
|
||||
CheckContactsOutcome checkContacts(const Model::CheckContactsRequest &request)const;
|
||||
void checkContactsAsync(const Model::CheckContactsRequest& request, const CheckContactsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
CheckContactsOutcomeCallable checkContactsCallable(const Model::CheckContactsRequest& request) const;
|
||||
SendMessageOutcome sendMessage(const Model::SendMessageRequest &request)const;
|
||||
void sendMessageAsync(const Model::SendMessageRequest& request, const SendMessageAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
SendMessageOutcomeCallable sendMessageCallable(const Model::SendMessageRequest& request) const;
|
||||
|
||||
66
cams/include/alibabacloud/cams/model/CheckContactsRequest.h
Normal file
66
cams/include/alibabacloud/cams/model/CheckContactsRequest.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_CAMS_MODEL_CHECKCONTACTSREQUEST_H_
|
||||
#define ALIBABACLOUD_CAMS_MODEL_CHECKCONTACTSREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/cams/CamsExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Cams
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_CAMS_EXPORT CheckContactsRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
CheckContactsRequest();
|
||||
~CheckContactsRequest();
|
||||
|
||||
long getResourceOwnerId()const;
|
||||
void setResourceOwnerId(long resourceOwnerId);
|
||||
std::string getAccessKeyId()const;
|
||||
void setAccessKeyId(const std::string& accessKeyId);
|
||||
std::string getChannelType()const;
|
||||
void setChannelType(const std::string& channelType);
|
||||
std::string getFrom()const;
|
||||
void setFrom(const std::string& from);
|
||||
std::string getResourceOwnerAccount()const;
|
||||
void setResourceOwnerAccount(const std::string& resourceOwnerAccount);
|
||||
long getOwnerId()const;
|
||||
void setOwnerId(long ownerId);
|
||||
std::string getContacts()const;
|
||||
void setContacts(const std::string& contacts);
|
||||
|
||||
private:
|
||||
long resourceOwnerId_;
|
||||
std::string accessKeyId_;
|
||||
std::string channelType_;
|
||||
std::string from_;
|
||||
std::string resourceOwnerAccount_;
|
||||
long ownerId_;
|
||||
std::string contacts_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_CAMS_MODEL_CHECKCONTACTSREQUEST_H_
|
||||
60
cams/include/alibabacloud/cams/model/CheckContactsResult.h
Normal file
60
cams/include/alibabacloud/cams/model/CheckContactsResult.h
Normal file
@@ -0,0 +1,60 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_CAMS_MODEL_CHECKCONTACTSRESULT_H_
|
||||
#define ALIBABACLOUD_CAMS_MODEL_CHECKCONTACTSRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/cams/CamsExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Cams
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_CAMS_EXPORT CheckContactsResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct ContactStatus
|
||||
{
|
||||
std::string status;
|
||||
std::string phoneNumber;
|
||||
};
|
||||
|
||||
|
||||
CheckContactsResult();
|
||||
explicit CheckContactsResult(const std::string &payload);
|
||||
~CheckContactsResult();
|
||||
std::vector<ContactStatus> getContacts()const;
|
||||
std::string getResultMessage()const;
|
||||
std::string getResultCode()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::vector<ContactStatus> contacts_;
|
||||
std::string resultMessage_;
|
||||
std::string resultCode_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_CAMS_MODEL_CHECKCONTACTSRESULT_H_
|
||||
@@ -37,8 +37,14 @@ namespace AlibabaCloud
|
||||
|
||||
long getResourceOwnerId()const;
|
||||
void setResourceOwnerId(long resourceOwnerId);
|
||||
std::string getMessageType()const;
|
||||
void setMessageType(const std::string& messageType);
|
||||
std::string getTemplateBodyParams()const;
|
||||
void setTemplateBodyParams(const std::string& templateBodyParams);
|
||||
std::string getLink()const;
|
||||
void setLink(const std::string& link);
|
||||
std::string getCaption()const;
|
||||
void setCaption(const std::string& caption);
|
||||
std::string getType()const;
|
||||
void setType(const std::string& type);
|
||||
std::string getAccessKeyId()const;
|
||||
@@ -47,6 +53,8 @@ namespace AlibabaCloud
|
||||
void setChannelType(const std::string& channelType);
|
||||
std::string getFrom()const;
|
||||
void setFrom(const std::string& from);
|
||||
std::string getText()const;
|
||||
void setText(const std::string& text);
|
||||
std::string getResourceOwnerAccount()const;
|
||||
void setResourceOwnerAccount(const std::string& resourceOwnerAccount);
|
||||
long getOwnerId()const;
|
||||
@@ -58,11 +66,15 @@ namespace AlibabaCloud
|
||||
|
||||
private:
|
||||
long resourceOwnerId_;
|
||||
std::string messageType_;
|
||||
std::string templateBodyParams_;
|
||||
std::string link_;
|
||||
std::string caption_;
|
||||
std::string type_;
|
||||
std::string accessKeyId_;
|
||||
std::string channelType_;
|
||||
std::string from_;
|
||||
std::string text_;
|
||||
std::string resourceOwnerAccount_;
|
||||
long ownerId_;
|
||||
std::string to_;
|
||||
|
||||
@@ -51,6 +51,42 @@ CamsClient::CamsClient(const std::string & accessKeyId, const std::string & acce
|
||||
CamsClient::~CamsClient()
|
||||
{}
|
||||
|
||||
CamsClient::CheckContactsOutcome CamsClient::checkContacts(const CheckContactsRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return CheckContactsOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return CheckContactsOutcome(CheckContactsResult(outcome.result()));
|
||||
else
|
||||
return CheckContactsOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void CamsClient::checkContactsAsync(const CheckContactsRequest& request, const CheckContactsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, checkContacts(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
CamsClient::CheckContactsOutcomeCallable CamsClient::checkContactsCallable(const CheckContactsRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<CheckContactsOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->checkContacts(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
CamsClient::SendMessageOutcome CamsClient::sendMessage(const SendMessageRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
|
||||
106
cams/src/model/CheckContactsRequest.cc
Normal file
106
cams/src/model/CheckContactsRequest.cc
Normal file
@@ -0,0 +1,106 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/cams/model/CheckContactsRequest.h>
|
||||
|
||||
using AlibabaCloud::Cams::Model::CheckContactsRequest;
|
||||
|
||||
CheckContactsRequest::CheckContactsRequest() :
|
||||
RpcServiceRequest("cams", "2020-06-06", "CheckContacts")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
CheckContactsRequest::~CheckContactsRequest()
|
||||
{}
|
||||
|
||||
long CheckContactsRequest::getResourceOwnerId()const
|
||||
{
|
||||
return resourceOwnerId_;
|
||||
}
|
||||
|
||||
void CheckContactsRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
std::string CheckContactsRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void CheckContactsRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
std::string CheckContactsRequest::getChannelType()const
|
||||
{
|
||||
return channelType_;
|
||||
}
|
||||
|
||||
void CheckContactsRequest::setChannelType(const std::string& channelType)
|
||||
{
|
||||
channelType_ = channelType;
|
||||
setBodyParameter("ChannelType", channelType);
|
||||
}
|
||||
|
||||
std::string CheckContactsRequest::getFrom()const
|
||||
{
|
||||
return from_;
|
||||
}
|
||||
|
||||
void CheckContactsRequest::setFrom(const std::string& from)
|
||||
{
|
||||
from_ = from;
|
||||
setBodyParameter("From", from);
|
||||
}
|
||||
|
||||
std::string CheckContactsRequest::getResourceOwnerAccount()const
|
||||
{
|
||||
return resourceOwnerAccount_;
|
||||
}
|
||||
|
||||
void CheckContactsRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
|
||||
{
|
||||
resourceOwnerAccount_ = resourceOwnerAccount;
|
||||
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
|
||||
}
|
||||
|
||||
long CheckContactsRequest::getOwnerId()const
|
||||
{
|
||||
return ownerId_;
|
||||
}
|
||||
|
||||
void CheckContactsRequest::setOwnerId(long ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
std::string CheckContactsRequest::getContacts()const
|
||||
{
|
||||
return contacts_;
|
||||
}
|
||||
|
||||
void CheckContactsRequest::setContacts(const std::string& contacts)
|
||||
{
|
||||
contacts_ = contacts;
|
||||
setBodyParameter("Contacts", contacts);
|
||||
}
|
||||
|
||||
73
cams/src/model/CheckContactsResult.cc
Normal file
73
cams/src/model/CheckContactsResult.cc
Normal file
@@ -0,0 +1,73 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/cams/model/CheckContactsResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Cams;
|
||||
using namespace AlibabaCloud::Cams::Model;
|
||||
|
||||
CheckContactsResult::CheckContactsResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
CheckContactsResult::CheckContactsResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
CheckContactsResult::~CheckContactsResult()
|
||||
{}
|
||||
|
||||
void CheckContactsResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allContactsNode = value["Contacts"]["ContactStatus"];
|
||||
for (auto valueContactsContactStatus : allContactsNode)
|
||||
{
|
||||
ContactStatus contactsObject;
|
||||
if(!valueContactsContactStatus["PhoneNumber"].isNull())
|
||||
contactsObject.phoneNumber = valueContactsContactStatus["PhoneNumber"].asString();
|
||||
if(!valueContactsContactStatus["Status"].isNull())
|
||||
contactsObject.status = valueContactsContactStatus["Status"].asString();
|
||||
contacts_.push_back(contactsObject);
|
||||
}
|
||||
if(!value["ResultCode"].isNull())
|
||||
resultCode_ = value["ResultCode"].asString();
|
||||
if(!value["ResultMessage"].isNull())
|
||||
resultMessage_ = value["ResultMessage"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::vector<CheckContactsResult::ContactStatus> CheckContactsResult::getContacts()const
|
||||
{
|
||||
return contacts_;
|
||||
}
|
||||
|
||||
std::string CheckContactsResult::getResultMessage()const
|
||||
{
|
||||
return resultMessage_;
|
||||
}
|
||||
|
||||
std::string CheckContactsResult::getResultCode()const
|
||||
{
|
||||
return resultCode_;
|
||||
}
|
||||
|
||||
@@ -38,6 +38,17 @@ void SendMessageRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
std::string SendMessageRequest::getMessageType()const
|
||||
{
|
||||
return messageType_;
|
||||
}
|
||||
|
||||
void SendMessageRequest::setMessageType(const std::string& messageType)
|
||||
{
|
||||
messageType_ = messageType;
|
||||
setBodyParameter("MessageType", messageType);
|
||||
}
|
||||
|
||||
std::string SendMessageRequest::getTemplateBodyParams()const
|
||||
{
|
||||
return templateBodyParams_;
|
||||
@@ -46,7 +57,29 @@ std::string SendMessageRequest::getTemplateBodyParams()const
|
||||
void SendMessageRequest::setTemplateBodyParams(const std::string& templateBodyParams)
|
||||
{
|
||||
templateBodyParams_ = templateBodyParams;
|
||||
setParameter("TemplateBodyParams", templateBodyParams);
|
||||
setBodyParameter("TemplateBodyParams", templateBodyParams);
|
||||
}
|
||||
|
||||
std::string SendMessageRequest::getLink()const
|
||||
{
|
||||
return link_;
|
||||
}
|
||||
|
||||
void SendMessageRequest::setLink(const std::string& link)
|
||||
{
|
||||
link_ = link;
|
||||
setBodyParameter("Link", link);
|
||||
}
|
||||
|
||||
std::string SendMessageRequest::getCaption()const
|
||||
{
|
||||
return caption_;
|
||||
}
|
||||
|
||||
void SendMessageRequest::setCaption(const std::string& caption)
|
||||
{
|
||||
caption_ = caption;
|
||||
setBodyParameter("Caption", caption);
|
||||
}
|
||||
|
||||
std::string SendMessageRequest::getType()const
|
||||
@@ -57,7 +90,7 @@ std::string SendMessageRequest::getType()const
|
||||
void SendMessageRequest::setType(const std::string& type)
|
||||
{
|
||||
type_ = type;
|
||||
setParameter("Type", type);
|
||||
setBodyParameter("Type", type);
|
||||
}
|
||||
|
||||
std::string SendMessageRequest::getAccessKeyId()const
|
||||
@@ -79,7 +112,7 @@ std::string SendMessageRequest::getChannelType()const
|
||||
void SendMessageRequest::setChannelType(const std::string& channelType)
|
||||
{
|
||||
channelType_ = channelType;
|
||||
setParameter("ChannelType", channelType);
|
||||
setBodyParameter("ChannelType", channelType);
|
||||
}
|
||||
|
||||
std::string SendMessageRequest::getFrom()const
|
||||
@@ -90,7 +123,18 @@ std::string SendMessageRequest::getFrom()const
|
||||
void SendMessageRequest::setFrom(const std::string& from)
|
||||
{
|
||||
from_ = from;
|
||||
setParameter("From", from);
|
||||
setBodyParameter("From", from);
|
||||
}
|
||||
|
||||
std::string SendMessageRequest::getText()const
|
||||
{
|
||||
return text_;
|
||||
}
|
||||
|
||||
void SendMessageRequest::setText(const std::string& text)
|
||||
{
|
||||
text_ = text;
|
||||
setBodyParameter("Text", text);
|
||||
}
|
||||
|
||||
std::string SendMessageRequest::getResourceOwnerAccount()const
|
||||
@@ -123,7 +167,7 @@ std::string SendMessageRequest::getTo()const
|
||||
void SendMessageRequest::setTo(const std::string& to)
|
||||
{
|
||||
to_ = to;
|
||||
setParameter("To", to);
|
||||
setBodyParameter("To", to);
|
||||
}
|
||||
|
||||
std::string SendMessageRequest::getTemplateCode()const
|
||||
@@ -134,6 +178,6 @@ std::string SendMessageRequest::getTemplateCode()const
|
||||
void SendMessageRequest::setTemplateCode(const std::string& templateCode)
|
||||
{
|
||||
templateCode_ = templateCode;
|
||||
setParameter("TemplateCode", templateCode);
|
||||
setBodyParameter("TemplateCode", templateCode);
|
||||
}
|
||||
|
||||
|
||||
@@ -103,16 +103,22 @@ set(cdn_public_header_model
|
||||
include/alibabacloud/cdn/model/DescribeCdnServiceResult.h
|
||||
include/alibabacloud/cdn/model/DescribeCdnTypesRequest.h
|
||||
include/alibabacloud/cdn/model/DescribeCdnTypesResult.h
|
||||
include/alibabacloud/cdn/model/DescribeCdnUserBillHistoryRequest.h
|
||||
include/alibabacloud/cdn/model/DescribeCdnUserBillHistoryResult.h
|
||||
include/alibabacloud/cdn/model/DescribeCdnUserBillPredictionRequest.h
|
||||
include/alibabacloud/cdn/model/DescribeCdnUserBillPredictionResult.h
|
||||
include/alibabacloud/cdn/model/DescribeCdnUserBillTypeRequest.h
|
||||
include/alibabacloud/cdn/model/DescribeCdnUserBillTypeResult.h
|
||||
include/alibabacloud/cdn/model/DescribeCdnUserConfigsRequest.h
|
||||
include/alibabacloud/cdn/model/DescribeCdnUserConfigsResult.h
|
||||
include/alibabacloud/cdn/model/DescribeCdnUserDomainsByFuncRequest.h
|
||||
include/alibabacloud/cdn/model/DescribeCdnUserDomainsByFuncResult.h
|
||||
include/alibabacloud/cdn/model/DescribeCdnUserQuotaRequest.h
|
||||
include/alibabacloud/cdn/model/DescribeCdnUserQuotaResult.h
|
||||
include/alibabacloud/cdn/model/DescribeCdnUserResourcePackageRequest.h
|
||||
include/alibabacloud/cdn/model/DescribeCdnUserResourcePackageResult.h
|
||||
include/alibabacloud/cdn/model/DescribeCdnWafDomainRequest.h
|
||||
include/alibabacloud/cdn/model/DescribeCdnWafDomainResult.h
|
||||
include/alibabacloud/cdn/model/DescribeCertificateInfoByIDRequest.h
|
||||
include/alibabacloud/cdn/model/DescribeCertificateInfoByIDResult.h
|
||||
include/alibabacloud/cdn/model/DescribeConfigOfVersionRequest.h
|
||||
@@ -393,12 +399,8 @@ set(cdn_public_header_model
|
||||
include/alibabacloud/cdn/model/SetReqHeaderConfigResult.h
|
||||
include/alibabacloud/cdn/model/SetSourceHostConfigRequest.h
|
||||
include/alibabacloud/cdn/model/SetSourceHostConfigResult.h
|
||||
include/alibabacloud/cdn/model/SetUserGreenManagerConfigRequest.h
|
||||
include/alibabacloud/cdn/model/SetUserGreenManagerConfigResult.h
|
||||
include/alibabacloud/cdn/model/SetVideoSeekConfigRequest.h
|
||||
include/alibabacloud/cdn/model/SetVideoSeekConfigResult.h
|
||||
include/alibabacloud/cdn/model/SetWafConfigRequest.h
|
||||
include/alibabacloud/cdn/model/SetWafConfigResult.h
|
||||
include/alibabacloud/cdn/model/SetWaitingRoomConfigRequest.h
|
||||
include/alibabacloud/cdn/model/SetWaitingRoomConfigResult.h
|
||||
include/alibabacloud/cdn/model/StartCdnDomainRequest.h
|
||||
@@ -500,16 +502,22 @@ set(cdn_src
|
||||
src/model/DescribeCdnServiceResult.cc
|
||||
src/model/DescribeCdnTypesRequest.cc
|
||||
src/model/DescribeCdnTypesResult.cc
|
||||
src/model/DescribeCdnUserBillHistoryRequest.cc
|
||||
src/model/DescribeCdnUserBillHistoryResult.cc
|
||||
src/model/DescribeCdnUserBillPredictionRequest.cc
|
||||
src/model/DescribeCdnUserBillPredictionResult.cc
|
||||
src/model/DescribeCdnUserBillTypeRequest.cc
|
||||
src/model/DescribeCdnUserBillTypeResult.cc
|
||||
src/model/DescribeCdnUserConfigsRequest.cc
|
||||
src/model/DescribeCdnUserConfigsResult.cc
|
||||
src/model/DescribeCdnUserDomainsByFuncRequest.cc
|
||||
src/model/DescribeCdnUserDomainsByFuncResult.cc
|
||||
src/model/DescribeCdnUserQuotaRequest.cc
|
||||
src/model/DescribeCdnUserQuotaResult.cc
|
||||
src/model/DescribeCdnUserResourcePackageRequest.cc
|
||||
src/model/DescribeCdnUserResourcePackageResult.cc
|
||||
src/model/DescribeCdnWafDomainRequest.cc
|
||||
src/model/DescribeCdnWafDomainResult.cc
|
||||
src/model/DescribeCertificateInfoByIDRequest.cc
|
||||
src/model/DescribeCertificateInfoByIDResult.cc
|
||||
src/model/DescribeConfigOfVersionRequest.cc
|
||||
@@ -790,12 +798,8 @@ set(cdn_src
|
||||
src/model/SetReqHeaderConfigResult.cc
|
||||
src/model/SetSourceHostConfigRequest.cc
|
||||
src/model/SetSourceHostConfigResult.cc
|
||||
src/model/SetUserGreenManagerConfigRequest.cc
|
||||
src/model/SetUserGreenManagerConfigResult.cc
|
||||
src/model/SetVideoSeekConfigRequest.cc
|
||||
src/model/SetVideoSeekConfigResult.cc
|
||||
src/model/SetWafConfigRequest.cc
|
||||
src/model/SetWafConfigResult.cc
|
||||
src/model/SetWaitingRoomConfigRequest.cc
|
||||
src/model/SetWaitingRoomConfigResult.cc
|
||||
src/model/StartCdnDomainRequest.cc
|
||||
|
||||
@@ -104,16 +104,22 @@
|
||||
#include "model/DescribeCdnServiceResult.h"
|
||||
#include "model/DescribeCdnTypesRequest.h"
|
||||
#include "model/DescribeCdnTypesResult.h"
|
||||
#include "model/DescribeCdnUserBillHistoryRequest.h"
|
||||
#include "model/DescribeCdnUserBillHistoryResult.h"
|
||||
#include "model/DescribeCdnUserBillPredictionRequest.h"
|
||||
#include "model/DescribeCdnUserBillPredictionResult.h"
|
||||
#include "model/DescribeCdnUserBillTypeRequest.h"
|
||||
#include "model/DescribeCdnUserBillTypeResult.h"
|
||||
#include "model/DescribeCdnUserConfigsRequest.h"
|
||||
#include "model/DescribeCdnUserConfigsResult.h"
|
||||
#include "model/DescribeCdnUserDomainsByFuncRequest.h"
|
||||
#include "model/DescribeCdnUserDomainsByFuncResult.h"
|
||||
#include "model/DescribeCdnUserQuotaRequest.h"
|
||||
#include "model/DescribeCdnUserQuotaResult.h"
|
||||
#include "model/DescribeCdnUserResourcePackageRequest.h"
|
||||
#include "model/DescribeCdnUserResourcePackageResult.h"
|
||||
#include "model/DescribeCdnWafDomainRequest.h"
|
||||
#include "model/DescribeCdnWafDomainResult.h"
|
||||
#include "model/DescribeCertificateInfoByIDRequest.h"
|
||||
#include "model/DescribeCertificateInfoByIDResult.h"
|
||||
#include "model/DescribeConfigOfVersionRequest.h"
|
||||
@@ -394,12 +400,8 @@
|
||||
#include "model/SetReqHeaderConfigResult.h"
|
||||
#include "model/SetSourceHostConfigRequest.h"
|
||||
#include "model/SetSourceHostConfigResult.h"
|
||||
#include "model/SetUserGreenManagerConfigRequest.h"
|
||||
#include "model/SetUserGreenManagerConfigResult.h"
|
||||
#include "model/SetVideoSeekConfigRequest.h"
|
||||
#include "model/SetVideoSeekConfigResult.h"
|
||||
#include "model/SetWafConfigRequest.h"
|
||||
#include "model/SetWafConfigResult.h"
|
||||
#include "model/SetWaitingRoomConfigRequest.h"
|
||||
#include "model/SetWaitingRoomConfigResult.h"
|
||||
#include "model/StartCdnDomainRequest.h"
|
||||
@@ -548,6 +550,9 @@ namespace AlibabaCloud
|
||||
typedef Outcome<Error, Model::DescribeCdnTypesResult> DescribeCdnTypesOutcome;
|
||||
typedef std::future<DescribeCdnTypesOutcome> DescribeCdnTypesOutcomeCallable;
|
||||
typedef std::function<void(const CdnClient*, const Model::DescribeCdnTypesRequest&, const DescribeCdnTypesOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeCdnTypesAsyncHandler;
|
||||
typedef Outcome<Error, Model::DescribeCdnUserBillHistoryResult> DescribeCdnUserBillHistoryOutcome;
|
||||
typedef std::future<DescribeCdnUserBillHistoryOutcome> DescribeCdnUserBillHistoryOutcomeCallable;
|
||||
typedef std::function<void(const CdnClient*, const Model::DescribeCdnUserBillHistoryRequest&, const DescribeCdnUserBillHistoryOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeCdnUserBillHistoryAsyncHandler;
|
||||
typedef Outcome<Error, Model::DescribeCdnUserBillPredictionResult> DescribeCdnUserBillPredictionOutcome;
|
||||
typedef std::future<DescribeCdnUserBillPredictionOutcome> DescribeCdnUserBillPredictionOutcomeCallable;
|
||||
typedef std::function<void(const CdnClient*, const Model::DescribeCdnUserBillPredictionRequest&, const DescribeCdnUserBillPredictionOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeCdnUserBillPredictionAsyncHandler;
|
||||
@@ -557,12 +562,18 @@ namespace AlibabaCloud
|
||||
typedef Outcome<Error, Model::DescribeCdnUserConfigsResult> DescribeCdnUserConfigsOutcome;
|
||||
typedef std::future<DescribeCdnUserConfigsOutcome> DescribeCdnUserConfigsOutcomeCallable;
|
||||
typedef std::function<void(const CdnClient*, const Model::DescribeCdnUserConfigsRequest&, const DescribeCdnUserConfigsOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeCdnUserConfigsAsyncHandler;
|
||||
typedef Outcome<Error, Model::DescribeCdnUserDomainsByFuncResult> DescribeCdnUserDomainsByFuncOutcome;
|
||||
typedef std::future<DescribeCdnUserDomainsByFuncOutcome> DescribeCdnUserDomainsByFuncOutcomeCallable;
|
||||
typedef std::function<void(const CdnClient*, const Model::DescribeCdnUserDomainsByFuncRequest&, const DescribeCdnUserDomainsByFuncOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeCdnUserDomainsByFuncAsyncHandler;
|
||||
typedef Outcome<Error, Model::DescribeCdnUserQuotaResult> DescribeCdnUserQuotaOutcome;
|
||||
typedef std::future<DescribeCdnUserQuotaOutcome> DescribeCdnUserQuotaOutcomeCallable;
|
||||
typedef std::function<void(const CdnClient*, const Model::DescribeCdnUserQuotaRequest&, const DescribeCdnUserQuotaOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeCdnUserQuotaAsyncHandler;
|
||||
typedef Outcome<Error, Model::DescribeCdnUserResourcePackageResult> DescribeCdnUserResourcePackageOutcome;
|
||||
typedef std::future<DescribeCdnUserResourcePackageOutcome> DescribeCdnUserResourcePackageOutcomeCallable;
|
||||
typedef std::function<void(const CdnClient*, const Model::DescribeCdnUserResourcePackageRequest&, const DescribeCdnUserResourcePackageOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeCdnUserResourcePackageAsyncHandler;
|
||||
typedef Outcome<Error, Model::DescribeCdnWafDomainResult> DescribeCdnWafDomainOutcome;
|
||||
typedef std::future<DescribeCdnWafDomainOutcome> DescribeCdnWafDomainOutcomeCallable;
|
||||
typedef std::function<void(const CdnClient*, const Model::DescribeCdnWafDomainRequest&, const DescribeCdnWafDomainOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeCdnWafDomainAsyncHandler;
|
||||
typedef Outcome<Error, Model::DescribeCertificateInfoByIDResult> DescribeCertificateInfoByIDOutcome;
|
||||
typedef std::future<DescribeCertificateInfoByIDOutcome> DescribeCertificateInfoByIDOutcomeCallable;
|
||||
typedef std::function<void(const CdnClient*, const Model::DescribeCertificateInfoByIDRequest&, const DescribeCertificateInfoByIDOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeCertificateInfoByIDAsyncHandler;
|
||||
@@ -983,15 +994,9 @@ namespace AlibabaCloud
|
||||
typedef Outcome<Error, Model::SetSourceHostConfigResult> SetSourceHostConfigOutcome;
|
||||
typedef std::future<SetSourceHostConfigOutcome> SetSourceHostConfigOutcomeCallable;
|
||||
typedef std::function<void(const CdnClient*, const Model::SetSourceHostConfigRequest&, const SetSourceHostConfigOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> SetSourceHostConfigAsyncHandler;
|
||||
typedef Outcome<Error, Model::SetUserGreenManagerConfigResult> SetUserGreenManagerConfigOutcome;
|
||||
typedef std::future<SetUserGreenManagerConfigOutcome> SetUserGreenManagerConfigOutcomeCallable;
|
||||
typedef std::function<void(const CdnClient*, const Model::SetUserGreenManagerConfigRequest&, const SetUserGreenManagerConfigOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> SetUserGreenManagerConfigAsyncHandler;
|
||||
typedef Outcome<Error, Model::SetVideoSeekConfigResult> SetVideoSeekConfigOutcome;
|
||||
typedef std::future<SetVideoSeekConfigOutcome> SetVideoSeekConfigOutcomeCallable;
|
||||
typedef std::function<void(const CdnClient*, const Model::SetVideoSeekConfigRequest&, const SetVideoSeekConfigOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> SetVideoSeekConfigAsyncHandler;
|
||||
typedef Outcome<Error, Model::SetWafConfigResult> SetWafConfigOutcome;
|
||||
typedef std::future<SetWafConfigOutcome> SetWafConfigOutcomeCallable;
|
||||
typedef std::function<void(const CdnClient*, const Model::SetWafConfigRequest&, const SetWafConfigOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> SetWafConfigAsyncHandler;
|
||||
typedef Outcome<Error, Model::SetWaitingRoomConfigResult> SetWaitingRoomConfigOutcome;
|
||||
typedef std::future<SetWaitingRoomConfigOutcome> SetWaitingRoomConfigOutcomeCallable;
|
||||
typedef std::function<void(const CdnClient*, const Model::SetWaitingRoomConfigRequest&, const SetWaitingRoomConfigOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> SetWaitingRoomConfigAsyncHandler;
|
||||
@@ -1144,6 +1149,9 @@ namespace AlibabaCloud
|
||||
DescribeCdnTypesOutcome describeCdnTypes(const Model::DescribeCdnTypesRequest &request)const;
|
||||
void describeCdnTypesAsync(const Model::DescribeCdnTypesRequest& request, const DescribeCdnTypesAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DescribeCdnTypesOutcomeCallable describeCdnTypesCallable(const Model::DescribeCdnTypesRequest& request) const;
|
||||
DescribeCdnUserBillHistoryOutcome describeCdnUserBillHistory(const Model::DescribeCdnUserBillHistoryRequest &request)const;
|
||||
void describeCdnUserBillHistoryAsync(const Model::DescribeCdnUserBillHistoryRequest& request, const DescribeCdnUserBillHistoryAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DescribeCdnUserBillHistoryOutcomeCallable describeCdnUserBillHistoryCallable(const Model::DescribeCdnUserBillHistoryRequest& request) const;
|
||||
DescribeCdnUserBillPredictionOutcome describeCdnUserBillPrediction(const Model::DescribeCdnUserBillPredictionRequest &request)const;
|
||||
void describeCdnUserBillPredictionAsync(const Model::DescribeCdnUserBillPredictionRequest& request, const DescribeCdnUserBillPredictionAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DescribeCdnUserBillPredictionOutcomeCallable describeCdnUserBillPredictionCallable(const Model::DescribeCdnUserBillPredictionRequest& request) const;
|
||||
@@ -1153,12 +1161,18 @@ namespace AlibabaCloud
|
||||
DescribeCdnUserConfigsOutcome describeCdnUserConfigs(const Model::DescribeCdnUserConfigsRequest &request)const;
|
||||
void describeCdnUserConfigsAsync(const Model::DescribeCdnUserConfigsRequest& request, const DescribeCdnUserConfigsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DescribeCdnUserConfigsOutcomeCallable describeCdnUserConfigsCallable(const Model::DescribeCdnUserConfigsRequest& request) const;
|
||||
DescribeCdnUserDomainsByFuncOutcome describeCdnUserDomainsByFunc(const Model::DescribeCdnUserDomainsByFuncRequest &request)const;
|
||||
void describeCdnUserDomainsByFuncAsync(const Model::DescribeCdnUserDomainsByFuncRequest& request, const DescribeCdnUserDomainsByFuncAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DescribeCdnUserDomainsByFuncOutcomeCallable describeCdnUserDomainsByFuncCallable(const Model::DescribeCdnUserDomainsByFuncRequest& request) const;
|
||||
DescribeCdnUserQuotaOutcome describeCdnUserQuota(const Model::DescribeCdnUserQuotaRequest &request)const;
|
||||
void describeCdnUserQuotaAsync(const Model::DescribeCdnUserQuotaRequest& request, const DescribeCdnUserQuotaAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DescribeCdnUserQuotaOutcomeCallable describeCdnUserQuotaCallable(const Model::DescribeCdnUserQuotaRequest& request) const;
|
||||
DescribeCdnUserResourcePackageOutcome describeCdnUserResourcePackage(const Model::DescribeCdnUserResourcePackageRequest &request)const;
|
||||
void describeCdnUserResourcePackageAsync(const Model::DescribeCdnUserResourcePackageRequest& request, const DescribeCdnUserResourcePackageAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DescribeCdnUserResourcePackageOutcomeCallable describeCdnUserResourcePackageCallable(const Model::DescribeCdnUserResourcePackageRequest& request) const;
|
||||
DescribeCdnWafDomainOutcome describeCdnWafDomain(const Model::DescribeCdnWafDomainRequest &request)const;
|
||||
void describeCdnWafDomainAsync(const Model::DescribeCdnWafDomainRequest& request, const DescribeCdnWafDomainAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DescribeCdnWafDomainOutcomeCallable describeCdnWafDomainCallable(const Model::DescribeCdnWafDomainRequest& request) const;
|
||||
DescribeCertificateInfoByIDOutcome describeCertificateInfoByID(const Model::DescribeCertificateInfoByIDRequest &request)const;
|
||||
void describeCertificateInfoByIDAsync(const Model::DescribeCertificateInfoByIDRequest& request, const DescribeCertificateInfoByIDAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DescribeCertificateInfoByIDOutcomeCallable describeCertificateInfoByIDCallable(const Model::DescribeCertificateInfoByIDRequest& request) const;
|
||||
@@ -1579,15 +1593,9 @@ namespace AlibabaCloud
|
||||
SetSourceHostConfigOutcome setSourceHostConfig(const Model::SetSourceHostConfigRequest &request)const;
|
||||
void setSourceHostConfigAsync(const Model::SetSourceHostConfigRequest& request, const SetSourceHostConfigAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
SetSourceHostConfigOutcomeCallable setSourceHostConfigCallable(const Model::SetSourceHostConfigRequest& request) const;
|
||||
SetUserGreenManagerConfigOutcome setUserGreenManagerConfig(const Model::SetUserGreenManagerConfigRequest &request)const;
|
||||
void setUserGreenManagerConfigAsync(const Model::SetUserGreenManagerConfigRequest& request, const SetUserGreenManagerConfigAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
SetUserGreenManagerConfigOutcomeCallable setUserGreenManagerConfigCallable(const Model::SetUserGreenManagerConfigRequest& request) const;
|
||||
SetVideoSeekConfigOutcome setVideoSeekConfig(const Model::SetVideoSeekConfigRequest &request)const;
|
||||
void setVideoSeekConfigAsync(const Model::SetVideoSeekConfigRequest& request, const SetVideoSeekConfigAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
SetVideoSeekConfigOutcomeCallable setVideoSeekConfigCallable(const Model::SetVideoSeekConfigRequest& request) const;
|
||||
SetWafConfigOutcome setWafConfig(const Model::SetWafConfigRequest &request)const;
|
||||
void setWafConfigAsync(const Model::SetWafConfigRequest& request, const SetWafConfigAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
SetWafConfigOutcomeCallable setWafConfigCallable(const Model::SetWafConfigRequest& request) const;
|
||||
SetWaitingRoomConfigOutcome setWaitingRoomConfig(const Model::SetWaitingRoomConfigRequest &request)const;
|
||||
void setWaitingRoomConfigAsync(const Model::SetWaitingRoomConfigRequest& request, const SetWaitingRoomConfigAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
SetWaitingRoomConfigOutcomeCallable setWaitingRoomConfigCallable(const Model::SetWaitingRoomConfigRequest& request) const;
|
||||
|
||||
@@ -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_CDN_MODEL_DESCRIBECDNUSERBILLHISTORYREQUEST_H_
|
||||
#define ALIBABACLOUD_CDN_MODEL_DESCRIBECDNUSERBILLHISTORYREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/cdn/CdnExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Cdn
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_CDN_EXPORT DescribeCdnUserBillHistoryRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
DescribeCdnUserBillHistoryRequest();
|
||||
~DescribeCdnUserBillHistoryRequest();
|
||||
|
||||
std::string getStartTime()const;
|
||||
void setStartTime(const std::string& startTime);
|
||||
std::string getEndTime()const;
|
||||
void setEndTime(const std::string& endTime);
|
||||
long getOwnerId()const;
|
||||
void setOwnerId(long ownerId);
|
||||
|
||||
private:
|
||||
std::string startTime_;
|
||||
std::string endTime_;
|
||||
long ownerId_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_CDN_MODEL_DESCRIBECDNUSERBILLHISTORYREQUEST_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_CDN_MODEL_DESCRIBECDNUSERBILLHISTORYRESULT_H_
|
||||
#define ALIBABACLOUD_CDN_MODEL_DESCRIBECDNUSERBILLHISTORYRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/cdn/CdnExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Cdn
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_CDN_EXPORT DescribeCdnUserBillHistoryResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct BillHistoryDataItem
|
||||
{
|
||||
struct BillingDataItem
|
||||
{
|
||||
std::string chargeType;
|
||||
float bandwidth;
|
||||
std::string cdnRegion;
|
||||
float count;
|
||||
float flow;
|
||||
};
|
||||
std::string billType;
|
||||
std::string billTime;
|
||||
std::vector<BillHistoryDataItem::BillingDataItem> billingData;
|
||||
std::string dimension;
|
||||
};
|
||||
|
||||
|
||||
DescribeCdnUserBillHistoryResult();
|
||||
explicit DescribeCdnUserBillHistoryResult(const std::string &payload);
|
||||
~DescribeCdnUserBillHistoryResult();
|
||||
std::vector<BillHistoryDataItem> getBillHistoryData()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::vector<BillHistoryDataItem> billHistoryData_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_CDN_MODEL_DESCRIBECDNUSERBILLHISTORYRESULT_H_
|
||||
@@ -0,0 +1,60 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_CDN_MODEL_DESCRIBECDNUSERDOMAINSBYFUNCREQUEST_H_
|
||||
#define ALIBABACLOUD_CDN_MODEL_DESCRIBECDNUSERDOMAINSBYFUNCREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/cdn/CdnExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Cdn
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_CDN_EXPORT DescribeCdnUserDomainsByFuncRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
DescribeCdnUserDomainsByFuncRequest();
|
||||
~DescribeCdnUserDomainsByFuncRequest();
|
||||
|
||||
int getPageNumber()const;
|
||||
void setPageNumber(int pageNumber);
|
||||
std::string getResourceGroupId()const;
|
||||
void setResourceGroupId(const std::string& resourceGroupId);
|
||||
int getPageSize()const;
|
||||
void setPageSize(int pageSize);
|
||||
long getOwnerId()const;
|
||||
void setOwnerId(long ownerId);
|
||||
int getFuncId()const;
|
||||
void setFuncId(int funcId);
|
||||
|
||||
private:
|
||||
int pageNumber_;
|
||||
std::string resourceGroupId_;
|
||||
int pageSize_;
|
||||
long ownerId_;
|
||||
int funcId_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_CDN_MODEL_DESCRIBECDNUSERDOMAINSBYFUNCREQUEST_H_
|
||||
@@ -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.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_CDN_MODEL_DESCRIBECDNUSERDOMAINSBYFUNCRESULT_H_
|
||||
#define ALIBABACLOUD_CDN_MODEL_DESCRIBECDNUSERDOMAINSBYFUNCRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/cdn/CdnExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Cdn
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_CDN_EXPORT DescribeCdnUserDomainsByFuncResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct PageData
|
||||
{
|
||||
struct Source
|
||||
{
|
||||
std::string type;
|
||||
std::string content;
|
||||
std::string priority;
|
||||
int port;
|
||||
std::string weight;
|
||||
};
|
||||
std::string description;
|
||||
std::string sslProtocol;
|
||||
std::string resourceGroupId;
|
||||
std::string domainName;
|
||||
std::string gmtModified;
|
||||
std::string cdnType;
|
||||
std::string gmtCreated;
|
||||
std::vector<PageData::Source> sources;
|
||||
std::string cname;
|
||||
std::string domainStatus;
|
||||
std::string sandbox;
|
||||
};
|
||||
|
||||
|
||||
DescribeCdnUserDomainsByFuncResult();
|
||||
explicit DescribeCdnUserDomainsByFuncResult(const std::string &payload);
|
||||
~DescribeCdnUserDomainsByFuncResult();
|
||||
std::vector<PageData> getDomains()const;
|
||||
long getTotalCount()const;
|
||||
long getPageSize()const;
|
||||
long getPageNumber()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::vector<PageData> domains_;
|
||||
long totalCount_;
|
||||
long pageSize_;
|
||||
long pageNumber_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_CDN_MODEL_DESCRIBECDNUSERDOMAINSBYFUNCRESULT_H_
|
||||
@@ -14,8 +14,8 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_CDN_MODEL_SETWAFCONFIGREQUEST_H_
|
||||
#define ALIBABACLOUD_CDN_MODEL_SETWAFCONFIGREQUEST_H_
|
||||
#ifndef ALIBABACLOUD_CDN_MODEL_DESCRIBECDNWAFDOMAINREQUEST_H_
|
||||
#define ALIBABACLOUD_CDN_MODEL_DESCRIBECDNWAFDOMAINREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
@@ -28,30 +28,27 @@ namespace AlibabaCloud
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_CDN_EXPORT SetWafConfigRequest : public RpcServiceRequest
|
||||
class ALIBABACLOUD_CDN_EXPORT DescribeCdnWafDomainRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
SetWafConfigRequest();
|
||||
~SetWafConfigRequest();
|
||||
DescribeCdnWafDomainRequest();
|
||||
~DescribeCdnWafDomainRequest();
|
||||
|
||||
std::string getEnable()const;
|
||||
void setEnable(const std::string& enable);
|
||||
std::string getRegionId()const;
|
||||
void setRegionId(const std::string& regionId);
|
||||
std::string getDomainName()const;
|
||||
void setDomainName(const std::string& domainName);
|
||||
long getOwnerId()const;
|
||||
void setOwnerId(long ownerId);
|
||||
long getConfigId()const;
|
||||
void setConfigId(long configId);
|
||||
|
||||
private:
|
||||
std::string enable_;
|
||||
std::string regionId_;
|
||||
std::string domainName_;
|
||||
long ownerId_;
|
||||
long configId_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_CDN_MODEL_SETWAFCONFIGREQUEST_H_
|
||||
#endif // !ALIBABACLOUD_CDN_MODEL_DESCRIBECDNWAFDOMAINREQUEST_H_
|
||||
@@ -0,0 +1,61 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_CDN_MODEL_DESCRIBECDNWAFDOMAINRESULT_H_
|
||||
#define ALIBABACLOUD_CDN_MODEL_DESCRIBECDNWAFDOMAINRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/cdn/CdnExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Cdn
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_CDN_EXPORT DescribeCdnWafDomainResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct OutPutDomain
|
||||
{
|
||||
std::string status;
|
||||
std::string aclStatus;
|
||||
std::string ccStatus;
|
||||
std::string domain;
|
||||
std::string wafStatus;
|
||||
};
|
||||
|
||||
|
||||
DescribeCdnWafDomainResult();
|
||||
explicit DescribeCdnWafDomainResult(const std::string &payload);
|
||||
~DescribeCdnWafDomainResult();
|
||||
int getTotalCount()const;
|
||||
std::vector<OutPutDomain> getOutPutDomains()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
int totalCount_;
|
||||
std::vector<OutPutDomain> outPutDomains_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_CDN_MODEL_DESCRIBECDNWAFDOMAINRESULT_H_
|
||||
@@ -41,8 +41,6 @@ namespace AlibabaCloud
|
||||
TagResourcesRequest();
|
||||
~TagResourcesRequest();
|
||||
|
||||
std::string getRegionId()const;
|
||||
void setRegionId(const std::string& regionId);
|
||||
std::vector<Tag> getTag()const;
|
||||
void setTag(const std::vector<Tag>& tag);
|
||||
std::vector<std::string> getResourceId()const;
|
||||
@@ -53,7 +51,6 @@ namespace AlibabaCloud
|
||||
void setResourceType(const std::string& resourceType);
|
||||
|
||||
private:
|
||||
std::string regionId_;
|
||||
std::vector<Tag> tag_;
|
||||
std::vector<std::string> resourceId_;
|
||||
long ownerId_;
|
||||
|
||||
@@ -35,8 +35,8 @@ namespace AlibabaCloud
|
||||
UntagResourcesRequest();
|
||||
~UntagResourcesRequest();
|
||||
|
||||
std::string getRegionId()const;
|
||||
void setRegionId(const std::string& regionId);
|
||||
bool getAll()const;
|
||||
void setAll(bool all);
|
||||
std::vector<std::string> getResourceId()const;
|
||||
void setResourceId(const std::vector<std::string>& resourceId);
|
||||
long getOwnerId()const;
|
||||
@@ -47,7 +47,7 @@ namespace AlibabaCloud
|
||||
void setTagKey(const std::vector<std::string>& tagKey);
|
||||
|
||||
private:
|
||||
std::string regionId_;
|
||||
bool all_;
|
||||
std::vector<std::string> resourceId_;
|
||||
long ownerId_;
|
||||
std::string resourceType_;
|
||||
|
||||
@@ -1527,6 +1527,42 @@ CdnClient::DescribeCdnTypesOutcomeCallable CdnClient::describeCdnTypesCallable(c
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
CdnClient::DescribeCdnUserBillHistoryOutcome CdnClient::describeCdnUserBillHistory(const DescribeCdnUserBillHistoryRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return DescribeCdnUserBillHistoryOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return DescribeCdnUserBillHistoryOutcome(DescribeCdnUserBillHistoryResult(outcome.result()));
|
||||
else
|
||||
return DescribeCdnUserBillHistoryOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void CdnClient::describeCdnUserBillHistoryAsync(const DescribeCdnUserBillHistoryRequest& request, const DescribeCdnUserBillHistoryAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, describeCdnUserBillHistory(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
CdnClient::DescribeCdnUserBillHistoryOutcomeCallable CdnClient::describeCdnUserBillHistoryCallable(const DescribeCdnUserBillHistoryRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<DescribeCdnUserBillHistoryOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->describeCdnUserBillHistory(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
CdnClient::DescribeCdnUserBillPredictionOutcome CdnClient::describeCdnUserBillPrediction(const DescribeCdnUserBillPredictionRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -1635,6 +1671,42 @@ CdnClient::DescribeCdnUserConfigsOutcomeCallable CdnClient::describeCdnUserConfi
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
CdnClient::DescribeCdnUserDomainsByFuncOutcome CdnClient::describeCdnUserDomainsByFunc(const DescribeCdnUserDomainsByFuncRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return DescribeCdnUserDomainsByFuncOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return DescribeCdnUserDomainsByFuncOutcome(DescribeCdnUserDomainsByFuncResult(outcome.result()));
|
||||
else
|
||||
return DescribeCdnUserDomainsByFuncOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void CdnClient::describeCdnUserDomainsByFuncAsync(const DescribeCdnUserDomainsByFuncRequest& request, const DescribeCdnUserDomainsByFuncAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, describeCdnUserDomainsByFunc(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
CdnClient::DescribeCdnUserDomainsByFuncOutcomeCallable CdnClient::describeCdnUserDomainsByFuncCallable(const DescribeCdnUserDomainsByFuncRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<DescribeCdnUserDomainsByFuncOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->describeCdnUserDomainsByFunc(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
CdnClient::DescribeCdnUserQuotaOutcome CdnClient::describeCdnUserQuota(const DescribeCdnUserQuotaRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -1707,6 +1779,42 @@ CdnClient::DescribeCdnUserResourcePackageOutcomeCallable CdnClient::describeCdnU
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
CdnClient::DescribeCdnWafDomainOutcome CdnClient::describeCdnWafDomain(const DescribeCdnWafDomainRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return DescribeCdnWafDomainOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return DescribeCdnWafDomainOutcome(DescribeCdnWafDomainResult(outcome.result()));
|
||||
else
|
||||
return DescribeCdnWafDomainOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void CdnClient::describeCdnWafDomainAsync(const DescribeCdnWafDomainRequest& request, const DescribeCdnWafDomainAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, describeCdnWafDomain(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
CdnClient::DescribeCdnWafDomainOutcomeCallable CdnClient::describeCdnWafDomainCallable(const DescribeCdnWafDomainRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<DescribeCdnWafDomainOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->describeCdnWafDomain(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
CdnClient::DescribeCertificateInfoByIDOutcome CdnClient::describeCertificateInfoByID(const DescribeCertificateInfoByIDRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -6747,42 +6855,6 @@ CdnClient::SetSourceHostConfigOutcomeCallable CdnClient::setSourceHostConfigCall
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
CdnClient::SetUserGreenManagerConfigOutcome CdnClient::setUserGreenManagerConfig(const SetUserGreenManagerConfigRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return SetUserGreenManagerConfigOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return SetUserGreenManagerConfigOutcome(SetUserGreenManagerConfigResult(outcome.result()));
|
||||
else
|
||||
return SetUserGreenManagerConfigOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void CdnClient::setUserGreenManagerConfigAsync(const SetUserGreenManagerConfigRequest& request, const SetUserGreenManagerConfigAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, setUserGreenManagerConfig(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
CdnClient::SetUserGreenManagerConfigOutcomeCallable CdnClient::setUserGreenManagerConfigCallable(const SetUserGreenManagerConfigRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<SetUserGreenManagerConfigOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->setUserGreenManagerConfig(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
CdnClient::SetVideoSeekConfigOutcome CdnClient::setVideoSeekConfig(const SetVideoSeekConfigRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -6819,42 +6891,6 @@ CdnClient::SetVideoSeekConfigOutcomeCallable CdnClient::setVideoSeekConfigCallab
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
CdnClient::SetWafConfigOutcome CdnClient::setWafConfig(const SetWafConfigRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return SetWafConfigOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return SetWafConfigOutcome(SetWafConfigResult(outcome.result()));
|
||||
else
|
||||
return SetWafConfigOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void CdnClient::setWafConfigAsync(const SetWafConfigRequest& request, const SetWafConfigAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, setWafConfig(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
CdnClient::SetWafConfigOutcomeCallable CdnClient::setWafConfigCallable(const SetWafConfigRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<SetWafConfigOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->setWafConfig(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
CdnClient::SetWaitingRoomConfigOutcome CdnClient::setWaitingRoomConfig(const SetWaitingRoomConfigRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
|
||||
@@ -19,7 +19,7 @@
|
||||
using AlibabaCloud::Cdn::Model::BatchDeleteCdnDomainConfigRequest;
|
||||
|
||||
BatchDeleteCdnDomainConfigRequest::BatchDeleteCdnDomainConfigRequest() :
|
||||
RpcServiceRequest("cdn", "2018-05-10", "BatchDeleteCdnDomainConfig")
|
||||
RpcServiceRequest("cdn", "2014-11-11", "BatchDeleteCdnDomainConfig")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
62
cdn/src/model/DescribeCdnUserBillHistoryRequest.cc
Normal file
62
cdn/src/model/DescribeCdnUserBillHistoryRequest.cc
Normal file
@@ -0,0 +1,62 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/cdn/model/DescribeCdnUserBillHistoryRequest.h>
|
||||
|
||||
using AlibabaCloud::Cdn::Model::DescribeCdnUserBillHistoryRequest;
|
||||
|
||||
DescribeCdnUserBillHistoryRequest::DescribeCdnUserBillHistoryRequest() :
|
||||
RpcServiceRequest("cdn", "2018-05-10", "DescribeCdnUserBillHistory")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DescribeCdnUserBillHistoryRequest::~DescribeCdnUserBillHistoryRequest()
|
||||
{}
|
||||
|
||||
std::string DescribeCdnUserBillHistoryRequest::getStartTime()const
|
||||
{
|
||||
return startTime_;
|
||||
}
|
||||
|
||||
void DescribeCdnUserBillHistoryRequest::setStartTime(const std::string& startTime)
|
||||
{
|
||||
startTime_ = startTime;
|
||||
setParameter("StartTime", startTime);
|
||||
}
|
||||
|
||||
std::string DescribeCdnUserBillHistoryRequest::getEndTime()const
|
||||
{
|
||||
return endTime_;
|
||||
}
|
||||
|
||||
void DescribeCdnUserBillHistoryRequest::setEndTime(const std::string& endTime)
|
||||
{
|
||||
endTime_ = endTime;
|
||||
setParameter("EndTime", endTime);
|
||||
}
|
||||
|
||||
long DescribeCdnUserBillHistoryRequest::getOwnerId()const
|
||||
{
|
||||
return ownerId_;
|
||||
}
|
||||
|
||||
void DescribeCdnUserBillHistoryRequest::setOwnerId(long ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
77
cdn/src/model/DescribeCdnUserBillHistoryResult.cc
Normal file
77
cdn/src/model/DescribeCdnUserBillHistoryResult.cc
Normal file
@@ -0,0 +1,77 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/cdn/model/DescribeCdnUserBillHistoryResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Cdn;
|
||||
using namespace AlibabaCloud::Cdn::Model;
|
||||
|
||||
DescribeCdnUserBillHistoryResult::DescribeCdnUserBillHistoryResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DescribeCdnUserBillHistoryResult::DescribeCdnUserBillHistoryResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DescribeCdnUserBillHistoryResult::~DescribeCdnUserBillHistoryResult()
|
||||
{}
|
||||
|
||||
void DescribeCdnUserBillHistoryResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allBillHistoryDataNode = value["BillHistoryData"]["BillHistoryDataItem"];
|
||||
for (auto valueBillHistoryDataBillHistoryDataItem : allBillHistoryDataNode)
|
||||
{
|
||||
BillHistoryDataItem billHistoryDataObject;
|
||||
if(!valueBillHistoryDataBillHistoryDataItem["Dimension"].isNull())
|
||||
billHistoryDataObject.dimension = valueBillHistoryDataBillHistoryDataItem["Dimension"].asString();
|
||||
if(!valueBillHistoryDataBillHistoryDataItem["BillType"].isNull())
|
||||
billHistoryDataObject.billType = valueBillHistoryDataBillHistoryDataItem["BillType"].asString();
|
||||
if(!valueBillHistoryDataBillHistoryDataItem["BillTime"].isNull())
|
||||
billHistoryDataObject.billTime = valueBillHistoryDataBillHistoryDataItem["BillTime"].asString();
|
||||
auto allBillingDataNode = allBillHistoryDataNode["BillingData"]["BillingDataItem"];
|
||||
for (auto allBillHistoryDataNodeBillingDataBillingDataItem : allBillingDataNode)
|
||||
{
|
||||
BillHistoryDataItem::BillingDataItem billingDataObject;
|
||||
if(!allBillHistoryDataNodeBillingDataBillingDataItem["ChargeType"].isNull())
|
||||
billingDataObject.chargeType = allBillHistoryDataNodeBillingDataBillingDataItem["ChargeType"].asString();
|
||||
if(!allBillHistoryDataNodeBillingDataBillingDataItem["CdnRegion"].isNull())
|
||||
billingDataObject.cdnRegion = allBillHistoryDataNodeBillingDataBillingDataItem["CdnRegion"].asString();
|
||||
if(!allBillHistoryDataNodeBillingDataBillingDataItem["Bandwidth"].isNull())
|
||||
billingDataObject.bandwidth = std::stof(allBillHistoryDataNodeBillingDataBillingDataItem["Bandwidth"].asString());
|
||||
if(!allBillHistoryDataNodeBillingDataBillingDataItem["Flow"].isNull())
|
||||
billingDataObject.flow = std::stof(allBillHistoryDataNodeBillingDataBillingDataItem["Flow"].asString());
|
||||
if(!allBillHistoryDataNodeBillingDataBillingDataItem["Count"].isNull())
|
||||
billingDataObject.count = std::stof(allBillHistoryDataNodeBillingDataBillingDataItem["Count"].asString());
|
||||
billHistoryDataObject.billingData.push_back(billingDataObject);
|
||||
}
|
||||
billHistoryData_.push_back(billHistoryDataObject);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
std::vector<DescribeCdnUserBillHistoryResult::BillHistoryDataItem> DescribeCdnUserBillHistoryResult::getBillHistoryData()const
|
||||
{
|
||||
return billHistoryData_;
|
||||
}
|
||||
|
||||
84
cdn/src/model/DescribeCdnUserDomainsByFuncRequest.cc
Normal file
84
cdn/src/model/DescribeCdnUserDomainsByFuncRequest.cc
Normal file
@@ -0,0 +1,84 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/cdn/model/DescribeCdnUserDomainsByFuncRequest.h>
|
||||
|
||||
using AlibabaCloud::Cdn::Model::DescribeCdnUserDomainsByFuncRequest;
|
||||
|
||||
DescribeCdnUserDomainsByFuncRequest::DescribeCdnUserDomainsByFuncRequest() :
|
||||
RpcServiceRequest("cdn", "2018-05-10", "DescribeCdnUserDomainsByFunc")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DescribeCdnUserDomainsByFuncRequest::~DescribeCdnUserDomainsByFuncRequest()
|
||||
{}
|
||||
|
||||
int DescribeCdnUserDomainsByFuncRequest::getPageNumber()const
|
||||
{
|
||||
return pageNumber_;
|
||||
}
|
||||
|
||||
void DescribeCdnUserDomainsByFuncRequest::setPageNumber(int pageNumber)
|
||||
{
|
||||
pageNumber_ = pageNumber;
|
||||
setParameter("PageNumber", std::to_string(pageNumber));
|
||||
}
|
||||
|
||||
std::string DescribeCdnUserDomainsByFuncRequest::getResourceGroupId()const
|
||||
{
|
||||
return resourceGroupId_;
|
||||
}
|
||||
|
||||
void DescribeCdnUserDomainsByFuncRequest::setResourceGroupId(const std::string& resourceGroupId)
|
||||
{
|
||||
resourceGroupId_ = resourceGroupId;
|
||||
setParameter("ResourceGroupId", resourceGroupId);
|
||||
}
|
||||
|
||||
int DescribeCdnUserDomainsByFuncRequest::getPageSize()const
|
||||
{
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
void DescribeCdnUserDomainsByFuncRequest::setPageSize(int pageSize)
|
||||
{
|
||||
pageSize_ = pageSize;
|
||||
setParameter("PageSize", std::to_string(pageSize));
|
||||
}
|
||||
|
||||
long DescribeCdnUserDomainsByFuncRequest::getOwnerId()const
|
||||
{
|
||||
return ownerId_;
|
||||
}
|
||||
|
||||
void DescribeCdnUserDomainsByFuncRequest::setOwnerId(long ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
int DescribeCdnUserDomainsByFuncRequest::getFuncId()const
|
||||
{
|
||||
return funcId_;
|
||||
}
|
||||
|
||||
void DescribeCdnUserDomainsByFuncRequest::setFuncId(int funcId)
|
||||
{
|
||||
funcId_ = funcId;
|
||||
setParameter("FuncId", std::to_string(funcId));
|
||||
}
|
||||
|
||||
112
cdn/src/model/DescribeCdnUserDomainsByFuncResult.cc
Normal file
112
cdn/src/model/DescribeCdnUserDomainsByFuncResult.cc
Normal file
@@ -0,0 +1,112 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT 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/cdn/model/DescribeCdnUserDomainsByFuncResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Cdn;
|
||||
using namespace AlibabaCloud::Cdn::Model;
|
||||
|
||||
DescribeCdnUserDomainsByFuncResult::DescribeCdnUserDomainsByFuncResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DescribeCdnUserDomainsByFuncResult::DescribeCdnUserDomainsByFuncResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DescribeCdnUserDomainsByFuncResult::~DescribeCdnUserDomainsByFuncResult()
|
||||
{}
|
||||
|
||||
void DescribeCdnUserDomainsByFuncResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allDomainsNode = value["Domains"]["PageData"];
|
||||
for (auto valueDomainsPageData : allDomainsNode)
|
||||
{
|
||||
PageData domainsObject;
|
||||
if(!valueDomainsPageData["DomainName"].isNull())
|
||||
domainsObject.domainName = valueDomainsPageData["DomainName"].asString();
|
||||
if(!valueDomainsPageData["Cname"].isNull())
|
||||
domainsObject.cname = valueDomainsPageData["Cname"].asString();
|
||||
if(!valueDomainsPageData["CdnType"].isNull())
|
||||
domainsObject.cdnType = valueDomainsPageData["CdnType"].asString();
|
||||
if(!valueDomainsPageData["DomainStatus"].isNull())
|
||||
domainsObject.domainStatus = valueDomainsPageData["DomainStatus"].asString();
|
||||
if(!valueDomainsPageData["GmtCreated"].isNull())
|
||||
domainsObject.gmtCreated = valueDomainsPageData["GmtCreated"].asString();
|
||||
if(!valueDomainsPageData["GmtModified"].isNull())
|
||||
domainsObject.gmtModified = valueDomainsPageData["GmtModified"].asString();
|
||||
if(!valueDomainsPageData["Description"].isNull())
|
||||
domainsObject.description = valueDomainsPageData["Description"].asString();
|
||||
if(!valueDomainsPageData["SslProtocol"].isNull())
|
||||
domainsObject.sslProtocol = valueDomainsPageData["SslProtocol"].asString();
|
||||
if(!valueDomainsPageData["ResourceGroupId"].isNull())
|
||||
domainsObject.resourceGroupId = valueDomainsPageData["ResourceGroupId"].asString();
|
||||
if(!valueDomainsPageData["Sandbox"].isNull())
|
||||
domainsObject.sandbox = valueDomainsPageData["Sandbox"].asString();
|
||||
auto allSourcesNode = allDomainsNode["Sources"]["Source"];
|
||||
for (auto allDomainsNodeSourcesSource : allSourcesNode)
|
||||
{
|
||||
PageData::Source sourcesObject;
|
||||
if(!allDomainsNodeSourcesSource["Type"].isNull())
|
||||
sourcesObject.type = allDomainsNodeSourcesSource["Type"].asString();
|
||||
if(!allDomainsNodeSourcesSource["Content"].isNull())
|
||||
sourcesObject.content = allDomainsNodeSourcesSource["Content"].asString();
|
||||
if(!allDomainsNodeSourcesSource["Port"].isNull())
|
||||
sourcesObject.port = std::stoi(allDomainsNodeSourcesSource["Port"].asString());
|
||||
if(!allDomainsNodeSourcesSource["Priority"].isNull())
|
||||
sourcesObject.priority = allDomainsNodeSourcesSource["Priority"].asString();
|
||||
if(!allDomainsNodeSourcesSource["Weight"].isNull())
|
||||
sourcesObject.weight = allDomainsNodeSourcesSource["Weight"].asString();
|
||||
domainsObject.sources.push_back(sourcesObject);
|
||||
}
|
||||
domains_.push_back(domainsObject);
|
||||
}
|
||||
if(!value["PageNumber"].isNull())
|
||||
pageNumber_ = std::stol(value["PageNumber"].asString());
|
||||
if(!value["PageSize"].isNull())
|
||||
pageSize_ = std::stol(value["PageSize"].asString());
|
||||
if(!value["TotalCount"].isNull())
|
||||
totalCount_ = std::stol(value["TotalCount"].asString());
|
||||
|
||||
}
|
||||
|
||||
std::vector<DescribeCdnUserDomainsByFuncResult::PageData> DescribeCdnUserDomainsByFuncResult::getDomains()const
|
||||
{
|
||||
return domains_;
|
||||
}
|
||||
|
||||
long DescribeCdnUserDomainsByFuncResult::getTotalCount()const
|
||||
{
|
||||
return totalCount_;
|
||||
}
|
||||
|
||||
long DescribeCdnUserDomainsByFuncResult::getPageSize()const
|
||||
{
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
long DescribeCdnUserDomainsByFuncResult::getPageNumber()const
|
||||
{
|
||||
return pageNumber_;
|
||||
}
|
||||
|
||||
62
cdn/src/model/DescribeCdnWafDomainRequest.cc
Normal file
62
cdn/src/model/DescribeCdnWafDomainRequest.cc
Normal file
@@ -0,0 +1,62 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/cdn/model/DescribeCdnWafDomainRequest.h>
|
||||
|
||||
using AlibabaCloud::Cdn::Model::DescribeCdnWafDomainRequest;
|
||||
|
||||
DescribeCdnWafDomainRequest::DescribeCdnWafDomainRequest() :
|
||||
RpcServiceRequest("cdn", "2018-05-10", "DescribeCdnWafDomain")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DescribeCdnWafDomainRequest::~DescribeCdnWafDomainRequest()
|
||||
{}
|
||||
|
||||
std::string DescribeCdnWafDomainRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void DescribeCdnWafDomainRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
std::string DescribeCdnWafDomainRequest::getDomainName()const
|
||||
{
|
||||
return domainName_;
|
||||
}
|
||||
|
||||
void DescribeCdnWafDomainRequest::setDomainName(const std::string& domainName)
|
||||
{
|
||||
domainName_ = domainName;
|
||||
setParameter("DomainName", domainName);
|
||||
}
|
||||
|
||||
long DescribeCdnWafDomainRequest::getOwnerId()const
|
||||
{
|
||||
return ownerId_;
|
||||
}
|
||||
|
||||
void DescribeCdnWafDomainRequest::setOwnerId(long ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
72
cdn/src/model/DescribeCdnWafDomainResult.cc
Normal file
72
cdn/src/model/DescribeCdnWafDomainResult.cc
Normal file
@@ -0,0 +1,72 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/cdn/model/DescribeCdnWafDomainResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Cdn;
|
||||
using namespace AlibabaCloud::Cdn::Model;
|
||||
|
||||
DescribeCdnWafDomainResult::DescribeCdnWafDomainResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DescribeCdnWafDomainResult::DescribeCdnWafDomainResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DescribeCdnWafDomainResult::~DescribeCdnWafDomainResult()
|
||||
{}
|
||||
|
||||
void DescribeCdnWafDomainResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allOutPutDomainsNode = value["OutPutDomains"]["OutPutDomain"];
|
||||
for (auto valueOutPutDomainsOutPutDomain : allOutPutDomainsNode)
|
||||
{
|
||||
OutPutDomain outPutDomainsObject;
|
||||
if(!valueOutPutDomainsOutPutDomain["Status"].isNull())
|
||||
outPutDomainsObject.status = valueOutPutDomainsOutPutDomain["Status"].asString();
|
||||
if(!valueOutPutDomainsOutPutDomain["Domain"].isNull())
|
||||
outPutDomainsObject.domain = valueOutPutDomainsOutPutDomain["Domain"].asString();
|
||||
if(!valueOutPutDomainsOutPutDomain["WafStatus"].isNull())
|
||||
outPutDomainsObject.wafStatus = valueOutPutDomainsOutPutDomain["WafStatus"].asString();
|
||||
if(!valueOutPutDomainsOutPutDomain["CcStatus"].isNull())
|
||||
outPutDomainsObject.ccStatus = valueOutPutDomainsOutPutDomain["CcStatus"].asString();
|
||||
if(!valueOutPutDomainsOutPutDomain["AclStatus"].isNull())
|
||||
outPutDomainsObject.aclStatus = valueOutPutDomainsOutPutDomain["AclStatus"].asString();
|
||||
outPutDomains_.push_back(outPutDomainsObject);
|
||||
}
|
||||
if(!value["TotalCount"].isNull())
|
||||
totalCount_ = std::stoi(value["TotalCount"].asString());
|
||||
|
||||
}
|
||||
|
||||
int DescribeCdnWafDomainResult::getTotalCount()const
|
||||
{
|
||||
return totalCount_;
|
||||
}
|
||||
|
||||
std::vector<DescribeCdnWafDomainResult::OutPutDomain> DescribeCdnWafDomainResult::getOutPutDomains()const
|
||||
{
|
||||
return outPutDomains_;
|
||||
}
|
||||
|
||||
@@ -1,73 +0,0 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/cdn/model/SetUserGreenManagerConfigRequest.h>
|
||||
|
||||
using AlibabaCloud::Cdn::Model::SetUserGreenManagerConfigRequest;
|
||||
|
||||
SetUserGreenManagerConfigRequest::SetUserGreenManagerConfigRequest() :
|
||||
RpcServiceRequest("cdn", "2018-05-10", "SetUserGreenManagerConfig")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
SetUserGreenManagerConfigRequest::~SetUserGreenManagerConfigRequest()
|
||||
{}
|
||||
|
||||
long SetUserGreenManagerConfigRequest::getOwnerId()const
|
||||
{
|
||||
return ownerId_;
|
||||
}
|
||||
|
||||
void SetUserGreenManagerConfigRequest::setOwnerId(long ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
std::string SetUserGreenManagerConfigRequest::getSecurityToken()const
|
||||
{
|
||||
return securityToken_;
|
||||
}
|
||||
|
||||
void SetUserGreenManagerConfigRequest::setSecurityToken(const std::string& securityToken)
|
||||
{
|
||||
securityToken_ = securityToken;
|
||||
setParameter("SecurityToken", securityToken);
|
||||
}
|
||||
|
||||
std::string SetUserGreenManagerConfigRequest::getQuota()const
|
||||
{
|
||||
return quota_;
|
||||
}
|
||||
|
||||
void SetUserGreenManagerConfigRequest::setQuota(const std::string& quota)
|
||||
{
|
||||
quota_ = quota;
|
||||
setParameter("Quota", quota);
|
||||
}
|
||||
|
||||
std::string SetUserGreenManagerConfigRequest::getRatio()const
|
||||
{
|
||||
return ratio_;
|
||||
}
|
||||
|
||||
void SetUserGreenManagerConfigRequest::setRatio(const std::string& ratio)
|
||||
{
|
||||
ratio_ = ratio;
|
||||
setParameter("Ratio", ratio);
|
||||
}
|
||||
|
||||
@@ -1,73 +0,0 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/cdn/model/SetWafConfigRequest.h>
|
||||
|
||||
using AlibabaCloud::Cdn::Model::SetWafConfigRequest;
|
||||
|
||||
SetWafConfigRequest::SetWafConfigRequest() :
|
||||
RpcServiceRequest("cdn", "2018-05-10", "SetWafConfig")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
SetWafConfigRequest::~SetWafConfigRequest()
|
||||
{}
|
||||
|
||||
std::string SetWafConfigRequest::getEnable()const
|
||||
{
|
||||
return enable_;
|
||||
}
|
||||
|
||||
void SetWafConfigRequest::setEnable(const std::string& enable)
|
||||
{
|
||||
enable_ = enable;
|
||||
setParameter("Enable", enable);
|
||||
}
|
||||
|
||||
std::string SetWafConfigRequest::getDomainName()const
|
||||
{
|
||||
return domainName_;
|
||||
}
|
||||
|
||||
void SetWafConfigRequest::setDomainName(const std::string& domainName)
|
||||
{
|
||||
domainName_ = domainName;
|
||||
setParameter("DomainName", domainName);
|
||||
}
|
||||
|
||||
long SetWafConfigRequest::getOwnerId()const
|
||||
{
|
||||
return ownerId_;
|
||||
}
|
||||
|
||||
void SetWafConfigRequest::setOwnerId(long ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
long SetWafConfigRequest::getConfigId()const
|
||||
{
|
||||
return configId_;
|
||||
}
|
||||
|
||||
void SetWafConfigRequest::setConfigId(long configId)
|
||||
{
|
||||
configId_ = configId;
|
||||
setParameter("ConfigId", std::to_string(configId));
|
||||
}
|
||||
|
||||
@@ -27,17 +27,6 @@ TagResourcesRequest::TagResourcesRequest() :
|
||||
TagResourcesRequest::~TagResourcesRequest()
|
||||
{}
|
||||
|
||||
std::string TagResourcesRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void TagResourcesRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
std::vector<TagResourcesRequest::Tag> TagResourcesRequest::getTag()const
|
||||
{
|
||||
return tag_;
|
||||
|
||||
@@ -27,15 +27,15 @@ UntagResourcesRequest::UntagResourcesRequest() :
|
||||
UntagResourcesRequest::~UntagResourcesRequest()
|
||||
{}
|
||||
|
||||
std::string UntagResourcesRequest::getRegionId()const
|
||||
bool UntagResourcesRequest::getAll()const
|
||||
{
|
||||
return regionId_;
|
||||
return all_;
|
||||
}
|
||||
|
||||
void UntagResourcesRequest::setRegionId(const std::string& regionId)
|
||||
void UntagResourcesRequest::setAll(bool all)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setParameter("RegionId", regionId);
|
||||
all_ = all;
|
||||
setParameter("All", all ? "true" : "false");
|
||||
}
|
||||
|
||||
std::vector<std::string> UntagResourcesRequest::getResourceId()const
|
||||
|
||||
@@ -37,16 +37,8 @@ namespace AlibabaCloud
|
||||
|
||||
std::string getProductCode()const;
|
||||
void setProductCode(const std::string& productCode);
|
||||
std::string getOssObjectName()const;
|
||||
void setOssObjectName(const std::string& ossObjectName);
|
||||
std::string getFaceContrastPicture()const;
|
||||
void setFaceContrastPicture(const std::string& faceContrastPicture);
|
||||
std::string getCertName()const;
|
||||
void setCertName(const std::string& certName);
|
||||
std::string getIp()const;
|
||||
void setIp(const std::string& ip);
|
||||
std::string getMobile()const;
|
||||
void setMobile(const std::string& mobile);
|
||||
std::string getDeviceToken()const;
|
||||
void setDeviceToken(const std::string& deviceToken);
|
||||
std::string getUserId()const;
|
||||
@@ -61,6 +53,16 @@ namespace AlibabaCloud
|
||||
void setCertType(const std::string& certType);
|
||||
std::string getFaceContrastPictureUrl()const;
|
||||
void setFaceContrastPictureUrl(const std::string& faceContrastPictureUrl);
|
||||
std::string getModel()const;
|
||||
void setModel(const std::string& model);
|
||||
std::string getOssObjectName()const;
|
||||
void setOssObjectName(const std::string& ossObjectName);
|
||||
std::string getCertName()const;
|
||||
void setCertName(const std::string& certName);
|
||||
std::string getIp()const;
|
||||
void setIp(const std::string& ip);
|
||||
std::string getMobile()const;
|
||||
void setMobile(const std::string& mobile);
|
||||
long getSceneId()const;
|
||||
void setSceneId(long sceneId);
|
||||
std::string getOssBucketName()const;
|
||||
@@ -68,11 +70,7 @@ namespace AlibabaCloud
|
||||
|
||||
private:
|
||||
std::string productCode_;
|
||||
std::string ossObjectName_;
|
||||
std::string faceContrastPicture_;
|
||||
std::string certName_;
|
||||
std::string ip_;
|
||||
std::string mobile_;
|
||||
std::string deviceToken_;
|
||||
std::string userId_;
|
||||
std::string certifyId_;
|
||||
@@ -80,6 +78,11 @@ namespace AlibabaCloud
|
||||
std::string outerOrderNo_;
|
||||
std::string certType_;
|
||||
std::string faceContrastPictureUrl_;
|
||||
std::string model_;
|
||||
std::string ossObjectName_;
|
||||
std::string certName_;
|
||||
std::string ip_;
|
||||
std::string mobile_;
|
||||
long sceneId_;
|
||||
std::string ossBucketName_;
|
||||
|
||||
|
||||
@@ -36,6 +36,7 @@ namespace AlibabaCloud
|
||||
{
|
||||
std::string passed;
|
||||
std::string materialInfo;
|
||||
float passedScore;
|
||||
std::string subCode;
|
||||
};
|
||||
|
||||
|
||||
@@ -37,12 +37,16 @@ namespace AlibabaCloud
|
||||
|
||||
std::string getIp()const;
|
||||
void setIp(const std::string& ip);
|
||||
std::string getCertName()const;
|
||||
void setCertName(const std::string& certName);
|
||||
std::string getMobile()const;
|
||||
void setMobile(const std::string& mobile);
|
||||
std::string getUserId()const;
|
||||
void setUserId(const std::string& userId);
|
||||
std::string getMode()const;
|
||||
void setMode(const std::string& mode);
|
||||
std::string getCertNo()const;
|
||||
void setCertNo(const std::string& certNo);
|
||||
std::string getOuterOrderNo()const;
|
||||
void setOuterOrderNo(const std::string& outerOrderNo);
|
||||
std::string getCertType()const;
|
||||
@@ -51,16 +55,21 @@ namespace AlibabaCloud
|
||||
void setSceneId(long sceneId);
|
||||
std::string getMetaInfo()const;
|
||||
void setMetaInfo(const std::string& metaInfo);
|
||||
std::string getOcr()const;
|
||||
void setOcr(const std::string& ocr);
|
||||
|
||||
private:
|
||||
std::string ip_;
|
||||
std::string certName_;
|
||||
std::string mobile_;
|
||||
std::string userId_;
|
||||
std::string mode_;
|
||||
std::string certNo_;
|
||||
std::string outerOrderNo_;
|
||||
std::string certType_;
|
||||
long sceneId_;
|
||||
std::string metaInfo_;
|
||||
std::string ocr_;
|
||||
|
||||
};
|
||||
}
|
||||
|
||||
@@ -38,17 +38,6 @@ void ContrastFaceVerifyRequest::setProductCode(const std::string& productCode)
|
||||
setBodyParameter("ProductCode", productCode);
|
||||
}
|
||||
|
||||
std::string ContrastFaceVerifyRequest::getOssObjectName()const
|
||||
{
|
||||
return ossObjectName_;
|
||||
}
|
||||
|
||||
void ContrastFaceVerifyRequest::setOssObjectName(const std::string& ossObjectName)
|
||||
{
|
||||
ossObjectName_ = ossObjectName;
|
||||
setBodyParameter("OssObjectName", ossObjectName);
|
||||
}
|
||||
|
||||
std::string ContrastFaceVerifyRequest::getFaceContrastPicture()const
|
||||
{
|
||||
return faceContrastPicture_;
|
||||
@@ -60,39 +49,6 @@ void ContrastFaceVerifyRequest::setFaceContrastPicture(const std::string& faceCo
|
||||
setBodyParameter("FaceContrastPicture", faceContrastPicture);
|
||||
}
|
||||
|
||||
std::string ContrastFaceVerifyRequest::getCertName()const
|
||||
{
|
||||
return certName_;
|
||||
}
|
||||
|
||||
void ContrastFaceVerifyRequest::setCertName(const std::string& certName)
|
||||
{
|
||||
certName_ = certName;
|
||||
setBodyParameter("CertName", certName);
|
||||
}
|
||||
|
||||
std::string ContrastFaceVerifyRequest::getIp()const
|
||||
{
|
||||
return ip_;
|
||||
}
|
||||
|
||||
void ContrastFaceVerifyRequest::setIp(const std::string& ip)
|
||||
{
|
||||
ip_ = ip;
|
||||
setBodyParameter("Ip", ip);
|
||||
}
|
||||
|
||||
std::string ContrastFaceVerifyRequest::getMobile()const
|
||||
{
|
||||
return mobile_;
|
||||
}
|
||||
|
||||
void ContrastFaceVerifyRequest::setMobile(const std::string& mobile)
|
||||
{
|
||||
mobile_ = mobile;
|
||||
setBodyParameter("Mobile", mobile);
|
||||
}
|
||||
|
||||
std::string ContrastFaceVerifyRequest::getDeviceToken()const
|
||||
{
|
||||
return deviceToken_;
|
||||
@@ -170,6 +126,61 @@ void ContrastFaceVerifyRequest::setFaceContrastPictureUrl(const std::string& fac
|
||||
setBodyParameter("FaceContrastPictureUrl", faceContrastPictureUrl);
|
||||
}
|
||||
|
||||
std::string ContrastFaceVerifyRequest::getModel()const
|
||||
{
|
||||
return model_;
|
||||
}
|
||||
|
||||
void ContrastFaceVerifyRequest::setModel(const std::string& model)
|
||||
{
|
||||
model_ = model;
|
||||
setParameter("Model", model);
|
||||
}
|
||||
|
||||
std::string ContrastFaceVerifyRequest::getOssObjectName()const
|
||||
{
|
||||
return ossObjectName_;
|
||||
}
|
||||
|
||||
void ContrastFaceVerifyRequest::setOssObjectName(const std::string& ossObjectName)
|
||||
{
|
||||
ossObjectName_ = ossObjectName;
|
||||
setBodyParameter("OssObjectName", ossObjectName);
|
||||
}
|
||||
|
||||
std::string ContrastFaceVerifyRequest::getCertName()const
|
||||
{
|
||||
return certName_;
|
||||
}
|
||||
|
||||
void ContrastFaceVerifyRequest::setCertName(const std::string& certName)
|
||||
{
|
||||
certName_ = certName;
|
||||
setBodyParameter("CertName", certName);
|
||||
}
|
||||
|
||||
std::string ContrastFaceVerifyRequest::getIp()const
|
||||
{
|
||||
return ip_;
|
||||
}
|
||||
|
||||
void ContrastFaceVerifyRequest::setIp(const std::string& ip)
|
||||
{
|
||||
ip_ = ip;
|
||||
setBodyParameter("Ip", ip);
|
||||
}
|
||||
|
||||
std::string ContrastFaceVerifyRequest::getMobile()const
|
||||
{
|
||||
return mobile_;
|
||||
}
|
||||
|
||||
void ContrastFaceVerifyRequest::setMobile(const std::string& mobile)
|
||||
{
|
||||
mobile_ = mobile;
|
||||
setBodyParameter("Mobile", mobile);
|
||||
}
|
||||
|
||||
long ContrastFaceVerifyRequest::getSceneId()const
|
||||
{
|
||||
return sceneId_;
|
||||
|
||||
@@ -46,6 +46,8 @@ void DescribeSmartVerifyResult::parse(const std::string &payload)
|
||||
resultObject_.subCode = resultObjectNode["SubCode"].asString();
|
||||
if(!resultObjectNode["MaterialInfo"].isNull())
|
||||
resultObject_.materialInfo = resultObjectNode["MaterialInfo"].asString();
|
||||
if(!resultObjectNode["PassedScore"].isNull())
|
||||
resultObject_.passedScore = std::stof(resultObjectNode["PassedScore"].asString());
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
if(!value["Code"].isNull())
|
||||
|
||||
@@ -38,6 +38,17 @@ void InitSmartVerifyRequest::setIp(const std::string& ip)
|
||||
setBodyParameter("Ip", ip);
|
||||
}
|
||||
|
||||
std::string InitSmartVerifyRequest::getCertName()const
|
||||
{
|
||||
return certName_;
|
||||
}
|
||||
|
||||
void InitSmartVerifyRequest::setCertName(const std::string& certName)
|
||||
{
|
||||
certName_ = certName;
|
||||
setBodyParameter("CertName", certName);
|
||||
}
|
||||
|
||||
std::string InitSmartVerifyRequest::getMobile()const
|
||||
{
|
||||
return mobile_;
|
||||
@@ -71,6 +82,17 @@ void InitSmartVerifyRequest::setMode(const std::string& mode)
|
||||
setBodyParameter("Mode", mode);
|
||||
}
|
||||
|
||||
std::string InitSmartVerifyRequest::getCertNo()const
|
||||
{
|
||||
return certNo_;
|
||||
}
|
||||
|
||||
void InitSmartVerifyRequest::setCertNo(const std::string& certNo)
|
||||
{
|
||||
certNo_ = certNo;
|
||||
setBodyParameter("CertNo", certNo);
|
||||
}
|
||||
|
||||
std::string InitSmartVerifyRequest::getOuterOrderNo()const
|
||||
{
|
||||
return outerOrderNo_;
|
||||
@@ -115,3 +137,14 @@ void InitSmartVerifyRequest::setMetaInfo(const std::string& metaInfo)
|
||||
setBodyParameter("MetaInfo", metaInfo);
|
||||
}
|
||||
|
||||
std::string InitSmartVerifyRequest::getOcr()const
|
||||
{
|
||||
return ocr_;
|
||||
}
|
||||
|
||||
void InitSmartVerifyRequest::setOcr(const std::string& ocr)
|
||||
{
|
||||
ocr_ = ocr;
|
||||
setBodyParameter("Ocr", ocr);
|
||||
}
|
||||
|
||||
|
||||
174
config/CMakeLists.txt
Normal file
174
config/CMakeLists.txt
Normal file
@@ -0,0 +1,174 @@
|
||||
#
|
||||
# Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
#
|
||||
# Licensed under the Apache License, Version 2.0 (the "License");
|
||||
# you may not use this file except in compliance with the License.
|
||||
# You may obtain a copy of the License at
|
||||
#
|
||||
# http://www.apache.org/licenses/LICENSE-2.0
|
||||
#
|
||||
# Unless required by applicable law or agreed to in writing, software
|
||||
# distributed under the License is distributed on an "AS IS" BASIS,
|
||||
# WITHOUT 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(config_public_header
|
||||
include/alibabacloud/config/ConfigClient.h
|
||||
include/alibabacloud/config/ConfigExport.h )
|
||||
|
||||
set(config_public_header_model
|
||||
include/alibabacloud/config/model/ActiveConfigRulesRequest.h
|
||||
include/alibabacloud/config/model/ActiveConfigRulesResult.h
|
||||
include/alibabacloud/config/model/DeleteConfigRulesRequest.h
|
||||
include/alibabacloud/config/model/DeleteConfigRulesResult.h
|
||||
include/alibabacloud/config/model/DescribeComplianceRequest.h
|
||||
include/alibabacloud/config/model/DescribeComplianceResult.h
|
||||
include/alibabacloud/config/model/DescribeComplianceSummaryRequest.h
|
||||
include/alibabacloud/config/model/DescribeComplianceSummaryResult.h
|
||||
include/alibabacloud/config/model/DescribeConfigRuleRequest.h
|
||||
include/alibabacloud/config/model/DescribeConfigRuleResult.h
|
||||
include/alibabacloud/config/model/DescribeConfigurationRecorderRequest.h
|
||||
include/alibabacloud/config/model/DescribeConfigurationRecorderResult.h
|
||||
include/alibabacloud/config/model/DescribeDeliveryChannelsRequest.h
|
||||
include/alibabacloud/config/model/DescribeDeliveryChannelsResult.h
|
||||
include/alibabacloud/config/model/DescribeDiscoveredResourceRequest.h
|
||||
include/alibabacloud/config/model/DescribeDiscoveredResourceResult.h
|
||||
include/alibabacloud/config/model/DescribeEvaluationResultsRequest.h
|
||||
include/alibabacloud/config/model/DescribeEvaluationResultsResult.h
|
||||
include/alibabacloud/config/model/GetDiscoveredResourceCountsRequest.h
|
||||
include/alibabacloud/config/model/GetDiscoveredResourceCountsResult.h
|
||||
include/alibabacloud/config/model/GetDiscoveredResourceSummaryRequest.h
|
||||
include/alibabacloud/config/model/GetDiscoveredResourceSummaryResult.h
|
||||
include/alibabacloud/config/model/GetResourceComplianceTimelineRequest.h
|
||||
include/alibabacloud/config/model/GetResourceComplianceTimelineResult.h
|
||||
include/alibabacloud/config/model/GetResourceConfigurationTimelineRequest.h
|
||||
include/alibabacloud/config/model/GetResourceConfigurationTimelineResult.h
|
||||
include/alibabacloud/config/model/GetSupportedResourceTypesRequest.h
|
||||
include/alibabacloud/config/model/GetSupportedResourceTypesResult.h
|
||||
include/alibabacloud/config/model/ListConfigRulesRequest.h
|
||||
include/alibabacloud/config/model/ListConfigRulesResult.h
|
||||
include/alibabacloud/config/model/ListDiscoveredResourcesRequest.h
|
||||
include/alibabacloud/config/model/ListDiscoveredResourcesResult.h
|
||||
include/alibabacloud/config/model/PutConfigRuleRequest.h
|
||||
include/alibabacloud/config/model/PutConfigRuleResult.h
|
||||
include/alibabacloud/config/model/PutConfigurationRecorderRequest.h
|
||||
include/alibabacloud/config/model/PutConfigurationRecorderResult.h
|
||||
include/alibabacloud/config/model/PutDeliveryChannelRequest.h
|
||||
include/alibabacloud/config/model/PutDeliveryChannelResult.h
|
||||
include/alibabacloud/config/model/PutEvaluationsRequest.h
|
||||
include/alibabacloud/config/model/PutEvaluationsResult.h
|
||||
include/alibabacloud/config/model/StartConfigRuleEvaluationRequest.h
|
||||
include/alibabacloud/config/model/StartConfigRuleEvaluationResult.h
|
||||
include/alibabacloud/config/model/StartConfigurationRecorderRequest.h
|
||||
include/alibabacloud/config/model/StartConfigurationRecorderResult.h
|
||||
include/alibabacloud/config/model/StopConfigRulesRequest.h
|
||||
include/alibabacloud/config/model/StopConfigRulesResult.h )
|
||||
|
||||
set(config_src
|
||||
src/ConfigClient.cc
|
||||
src/model/ActiveConfigRulesRequest.cc
|
||||
src/model/ActiveConfigRulesResult.cc
|
||||
src/model/DeleteConfigRulesRequest.cc
|
||||
src/model/DeleteConfigRulesResult.cc
|
||||
src/model/DescribeComplianceRequest.cc
|
||||
src/model/DescribeComplianceResult.cc
|
||||
src/model/DescribeComplianceSummaryRequest.cc
|
||||
src/model/DescribeComplianceSummaryResult.cc
|
||||
src/model/DescribeConfigRuleRequest.cc
|
||||
src/model/DescribeConfigRuleResult.cc
|
||||
src/model/DescribeConfigurationRecorderRequest.cc
|
||||
src/model/DescribeConfigurationRecorderResult.cc
|
||||
src/model/DescribeDeliveryChannelsRequest.cc
|
||||
src/model/DescribeDeliveryChannelsResult.cc
|
||||
src/model/DescribeDiscoveredResourceRequest.cc
|
||||
src/model/DescribeDiscoveredResourceResult.cc
|
||||
src/model/DescribeEvaluationResultsRequest.cc
|
||||
src/model/DescribeEvaluationResultsResult.cc
|
||||
src/model/GetDiscoveredResourceCountsRequest.cc
|
||||
src/model/GetDiscoveredResourceCountsResult.cc
|
||||
src/model/GetDiscoveredResourceSummaryRequest.cc
|
||||
src/model/GetDiscoveredResourceSummaryResult.cc
|
||||
src/model/GetResourceComplianceTimelineRequest.cc
|
||||
src/model/GetResourceComplianceTimelineResult.cc
|
||||
src/model/GetResourceConfigurationTimelineRequest.cc
|
||||
src/model/GetResourceConfigurationTimelineResult.cc
|
||||
src/model/GetSupportedResourceTypesRequest.cc
|
||||
src/model/GetSupportedResourceTypesResult.cc
|
||||
src/model/ListConfigRulesRequest.cc
|
||||
src/model/ListConfigRulesResult.cc
|
||||
src/model/ListDiscoveredResourcesRequest.cc
|
||||
src/model/ListDiscoveredResourcesResult.cc
|
||||
src/model/PutConfigRuleRequest.cc
|
||||
src/model/PutConfigRuleResult.cc
|
||||
src/model/PutConfigurationRecorderRequest.cc
|
||||
src/model/PutConfigurationRecorderResult.cc
|
||||
src/model/PutDeliveryChannelRequest.cc
|
||||
src/model/PutDeliveryChannelResult.cc
|
||||
src/model/PutEvaluationsRequest.cc
|
||||
src/model/PutEvaluationsResult.cc
|
||||
src/model/StartConfigRuleEvaluationRequest.cc
|
||||
src/model/StartConfigRuleEvaluationResult.cc
|
||||
src/model/StartConfigurationRecorderRequest.cc
|
||||
src/model/StartConfigurationRecorderResult.cc
|
||||
src/model/StopConfigRulesRequest.cc
|
||||
src/model/StopConfigRulesResult.cc )
|
||||
|
||||
add_library(config ${LIB_TYPE}
|
||||
${config_public_header}
|
||||
${config_public_header_model}
|
||||
${config_src})
|
||||
|
||||
set_target_properties(config
|
||||
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}config
|
||||
)
|
||||
|
||||
if(${LIB_TYPE} STREQUAL "SHARED")
|
||||
set_target_properties(config
|
||||
PROPERTIES
|
||||
DEFINE_SYMBOL ALIBABACLOUD_CONFIG_LIBRARY)
|
||||
endif()
|
||||
|
||||
target_include_directories(config
|
||||
PRIVATE include
|
||||
${CMAKE_SOURCE_DIR}/core/include
|
||||
)
|
||||
target_link_libraries(config
|
||||
core)
|
||||
|
||||
if(CMAKE_HOST_WIN32)
|
||||
ExternalProject_Get_Property(jsoncpp INSTALL_DIR)
|
||||
set(jsoncpp_install_dir ${INSTALL_DIR})
|
||||
add_dependencies(config
|
||||
jsoncpp)
|
||||
target_include_directories(config
|
||||
PRIVATE ${jsoncpp_install_dir}/include)
|
||||
target_link_libraries(config
|
||||
${jsoncpp_install_dir}/lib/jsoncpp.lib)
|
||||
set_target_properties(config
|
||||
PROPERTIES
|
||||
COMPILE_OPTIONS "/bigobj")
|
||||
else()
|
||||
target_include_directories(config
|
||||
PRIVATE /usr/include/jsoncpp)
|
||||
target_link_libraries(config
|
||||
jsoncpp)
|
||||
endif()
|
||||
|
||||
install(FILES ${config_public_header}
|
||||
DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/alibabacloud/config)
|
||||
install(FILES ${config_public_header_model}
|
||||
DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/alibabacloud/config/model)
|
||||
install(TARGETS config
|
||||
ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
|
||||
LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
|
||||
RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
|
||||
)
|
||||
230
config/include/alibabacloud/config/ConfigClient.h
Normal file
230
config/include/alibabacloud/config/ConfigClient.h
Normal file
@@ -0,0 +1,230 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT 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_CONFIG_CONFIGCLIENT_H_
|
||||
#define ALIBABACLOUD_CONFIG_CONFIGCLIENT_H_
|
||||
|
||||
#include <future>
|
||||
#include <alibabacloud/core/AsyncCallerContext.h>
|
||||
#include <alibabacloud/core/EndpointProvider.h>
|
||||
#include <alibabacloud/core/RpcServiceClient.h>
|
||||
#include "ConfigExport.h"
|
||||
#include "model/ActiveConfigRulesRequest.h"
|
||||
#include "model/ActiveConfigRulesResult.h"
|
||||
#include "model/DeleteConfigRulesRequest.h"
|
||||
#include "model/DeleteConfigRulesResult.h"
|
||||
#include "model/DescribeComplianceRequest.h"
|
||||
#include "model/DescribeComplianceResult.h"
|
||||
#include "model/DescribeComplianceSummaryRequest.h"
|
||||
#include "model/DescribeComplianceSummaryResult.h"
|
||||
#include "model/DescribeConfigRuleRequest.h"
|
||||
#include "model/DescribeConfigRuleResult.h"
|
||||
#include "model/DescribeConfigurationRecorderRequest.h"
|
||||
#include "model/DescribeConfigurationRecorderResult.h"
|
||||
#include "model/DescribeDeliveryChannelsRequest.h"
|
||||
#include "model/DescribeDeliveryChannelsResult.h"
|
||||
#include "model/DescribeDiscoveredResourceRequest.h"
|
||||
#include "model/DescribeDiscoveredResourceResult.h"
|
||||
#include "model/DescribeEvaluationResultsRequest.h"
|
||||
#include "model/DescribeEvaluationResultsResult.h"
|
||||
#include "model/GetDiscoveredResourceCountsRequest.h"
|
||||
#include "model/GetDiscoveredResourceCountsResult.h"
|
||||
#include "model/GetDiscoveredResourceSummaryRequest.h"
|
||||
#include "model/GetDiscoveredResourceSummaryResult.h"
|
||||
#include "model/GetResourceComplianceTimelineRequest.h"
|
||||
#include "model/GetResourceComplianceTimelineResult.h"
|
||||
#include "model/GetResourceConfigurationTimelineRequest.h"
|
||||
#include "model/GetResourceConfigurationTimelineResult.h"
|
||||
#include "model/GetSupportedResourceTypesRequest.h"
|
||||
#include "model/GetSupportedResourceTypesResult.h"
|
||||
#include "model/ListConfigRulesRequest.h"
|
||||
#include "model/ListConfigRulesResult.h"
|
||||
#include "model/ListDiscoveredResourcesRequest.h"
|
||||
#include "model/ListDiscoveredResourcesResult.h"
|
||||
#include "model/PutConfigRuleRequest.h"
|
||||
#include "model/PutConfigRuleResult.h"
|
||||
#include "model/PutConfigurationRecorderRequest.h"
|
||||
#include "model/PutConfigurationRecorderResult.h"
|
||||
#include "model/PutDeliveryChannelRequest.h"
|
||||
#include "model/PutDeliveryChannelResult.h"
|
||||
#include "model/PutEvaluationsRequest.h"
|
||||
#include "model/PutEvaluationsResult.h"
|
||||
#include "model/StartConfigRuleEvaluationRequest.h"
|
||||
#include "model/StartConfigRuleEvaluationResult.h"
|
||||
#include "model/StartConfigurationRecorderRequest.h"
|
||||
#include "model/StartConfigurationRecorderResult.h"
|
||||
#include "model/StopConfigRulesRequest.h"
|
||||
#include "model/StopConfigRulesResult.h"
|
||||
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Config
|
||||
{
|
||||
class ALIBABACLOUD_CONFIG_EXPORT ConfigClient : public RpcServiceClient
|
||||
{
|
||||
public:
|
||||
typedef Outcome<Error, Model::ActiveConfigRulesResult> ActiveConfigRulesOutcome;
|
||||
typedef std::future<ActiveConfigRulesOutcome> ActiveConfigRulesOutcomeCallable;
|
||||
typedef std::function<void(const ConfigClient*, const Model::ActiveConfigRulesRequest&, const ActiveConfigRulesOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ActiveConfigRulesAsyncHandler;
|
||||
typedef Outcome<Error, Model::DeleteConfigRulesResult> DeleteConfigRulesOutcome;
|
||||
typedef std::future<DeleteConfigRulesOutcome> DeleteConfigRulesOutcomeCallable;
|
||||
typedef std::function<void(const ConfigClient*, const Model::DeleteConfigRulesRequest&, const DeleteConfigRulesOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DeleteConfigRulesAsyncHandler;
|
||||
typedef Outcome<Error, Model::DescribeComplianceResult> DescribeComplianceOutcome;
|
||||
typedef std::future<DescribeComplianceOutcome> DescribeComplianceOutcomeCallable;
|
||||
typedef std::function<void(const ConfigClient*, const Model::DescribeComplianceRequest&, const DescribeComplianceOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeComplianceAsyncHandler;
|
||||
typedef Outcome<Error, Model::DescribeComplianceSummaryResult> DescribeComplianceSummaryOutcome;
|
||||
typedef std::future<DescribeComplianceSummaryOutcome> DescribeComplianceSummaryOutcomeCallable;
|
||||
typedef std::function<void(const ConfigClient*, const Model::DescribeComplianceSummaryRequest&, const DescribeComplianceSummaryOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeComplianceSummaryAsyncHandler;
|
||||
typedef Outcome<Error, Model::DescribeConfigRuleResult> DescribeConfigRuleOutcome;
|
||||
typedef std::future<DescribeConfigRuleOutcome> DescribeConfigRuleOutcomeCallable;
|
||||
typedef std::function<void(const ConfigClient*, const Model::DescribeConfigRuleRequest&, const DescribeConfigRuleOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeConfigRuleAsyncHandler;
|
||||
typedef Outcome<Error, Model::DescribeConfigurationRecorderResult> DescribeConfigurationRecorderOutcome;
|
||||
typedef std::future<DescribeConfigurationRecorderOutcome> DescribeConfigurationRecorderOutcomeCallable;
|
||||
typedef std::function<void(const ConfigClient*, const Model::DescribeConfigurationRecorderRequest&, const DescribeConfigurationRecorderOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeConfigurationRecorderAsyncHandler;
|
||||
typedef Outcome<Error, Model::DescribeDeliveryChannelsResult> DescribeDeliveryChannelsOutcome;
|
||||
typedef std::future<DescribeDeliveryChannelsOutcome> DescribeDeliveryChannelsOutcomeCallable;
|
||||
typedef std::function<void(const ConfigClient*, const Model::DescribeDeliveryChannelsRequest&, const DescribeDeliveryChannelsOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeDeliveryChannelsAsyncHandler;
|
||||
typedef Outcome<Error, Model::DescribeDiscoveredResourceResult> DescribeDiscoveredResourceOutcome;
|
||||
typedef std::future<DescribeDiscoveredResourceOutcome> DescribeDiscoveredResourceOutcomeCallable;
|
||||
typedef std::function<void(const ConfigClient*, const Model::DescribeDiscoveredResourceRequest&, const DescribeDiscoveredResourceOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeDiscoveredResourceAsyncHandler;
|
||||
typedef Outcome<Error, Model::DescribeEvaluationResultsResult> DescribeEvaluationResultsOutcome;
|
||||
typedef std::future<DescribeEvaluationResultsOutcome> DescribeEvaluationResultsOutcomeCallable;
|
||||
typedef std::function<void(const ConfigClient*, const Model::DescribeEvaluationResultsRequest&, const DescribeEvaluationResultsOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeEvaluationResultsAsyncHandler;
|
||||
typedef Outcome<Error, Model::GetDiscoveredResourceCountsResult> GetDiscoveredResourceCountsOutcome;
|
||||
typedef std::future<GetDiscoveredResourceCountsOutcome> GetDiscoveredResourceCountsOutcomeCallable;
|
||||
typedef std::function<void(const ConfigClient*, const Model::GetDiscoveredResourceCountsRequest&, const GetDiscoveredResourceCountsOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetDiscoveredResourceCountsAsyncHandler;
|
||||
typedef Outcome<Error, Model::GetDiscoveredResourceSummaryResult> GetDiscoveredResourceSummaryOutcome;
|
||||
typedef std::future<GetDiscoveredResourceSummaryOutcome> GetDiscoveredResourceSummaryOutcomeCallable;
|
||||
typedef std::function<void(const ConfigClient*, const Model::GetDiscoveredResourceSummaryRequest&, const GetDiscoveredResourceSummaryOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetDiscoveredResourceSummaryAsyncHandler;
|
||||
typedef Outcome<Error, Model::GetResourceComplianceTimelineResult> GetResourceComplianceTimelineOutcome;
|
||||
typedef std::future<GetResourceComplianceTimelineOutcome> GetResourceComplianceTimelineOutcomeCallable;
|
||||
typedef std::function<void(const ConfigClient*, const Model::GetResourceComplianceTimelineRequest&, const GetResourceComplianceTimelineOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetResourceComplianceTimelineAsyncHandler;
|
||||
typedef Outcome<Error, Model::GetResourceConfigurationTimelineResult> GetResourceConfigurationTimelineOutcome;
|
||||
typedef std::future<GetResourceConfigurationTimelineOutcome> GetResourceConfigurationTimelineOutcomeCallable;
|
||||
typedef std::function<void(const ConfigClient*, const Model::GetResourceConfigurationTimelineRequest&, const GetResourceConfigurationTimelineOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetResourceConfigurationTimelineAsyncHandler;
|
||||
typedef Outcome<Error, Model::GetSupportedResourceTypesResult> GetSupportedResourceTypesOutcome;
|
||||
typedef std::future<GetSupportedResourceTypesOutcome> GetSupportedResourceTypesOutcomeCallable;
|
||||
typedef std::function<void(const ConfigClient*, const Model::GetSupportedResourceTypesRequest&, const GetSupportedResourceTypesOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetSupportedResourceTypesAsyncHandler;
|
||||
typedef Outcome<Error, Model::ListConfigRulesResult> ListConfigRulesOutcome;
|
||||
typedef std::future<ListConfigRulesOutcome> ListConfigRulesOutcomeCallable;
|
||||
typedef std::function<void(const ConfigClient*, const Model::ListConfigRulesRequest&, const ListConfigRulesOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ListConfigRulesAsyncHandler;
|
||||
typedef Outcome<Error, Model::ListDiscoveredResourcesResult> ListDiscoveredResourcesOutcome;
|
||||
typedef std::future<ListDiscoveredResourcesOutcome> ListDiscoveredResourcesOutcomeCallable;
|
||||
typedef std::function<void(const ConfigClient*, const Model::ListDiscoveredResourcesRequest&, const ListDiscoveredResourcesOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ListDiscoveredResourcesAsyncHandler;
|
||||
typedef Outcome<Error, Model::PutConfigRuleResult> PutConfigRuleOutcome;
|
||||
typedef std::future<PutConfigRuleOutcome> PutConfigRuleOutcomeCallable;
|
||||
typedef std::function<void(const ConfigClient*, const Model::PutConfigRuleRequest&, const PutConfigRuleOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> PutConfigRuleAsyncHandler;
|
||||
typedef Outcome<Error, Model::PutConfigurationRecorderResult> PutConfigurationRecorderOutcome;
|
||||
typedef std::future<PutConfigurationRecorderOutcome> PutConfigurationRecorderOutcomeCallable;
|
||||
typedef std::function<void(const ConfigClient*, const Model::PutConfigurationRecorderRequest&, const PutConfigurationRecorderOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> PutConfigurationRecorderAsyncHandler;
|
||||
typedef Outcome<Error, Model::PutDeliveryChannelResult> PutDeliveryChannelOutcome;
|
||||
typedef std::future<PutDeliveryChannelOutcome> PutDeliveryChannelOutcomeCallable;
|
||||
typedef std::function<void(const ConfigClient*, const Model::PutDeliveryChannelRequest&, const PutDeliveryChannelOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> PutDeliveryChannelAsyncHandler;
|
||||
typedef Outcome<Error, Model::PutEvaluationsResult> PutEvaluationsOutcome;
|
||||
typedef std::future<PutEvaluationsOutcome> PutEvaluationsOutcomeCallable;
|
||||
typedef std::function<void(const ConfigClient*, const Model::PutEvaluationsRequest&, const PutEvaluationsOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> PutEvaluationsAsyncHandler;
|
||||
typedef Outcome<Error, Model::StartConfigRuleEvaluationResult> StartConfigRuleEvaluationOutcome;
|
||||
typedef std::future<StartConfigRuleEvaluationOutcome> StartConfigRuleEvaluationOutcomeCallable;
|
||||
typedef std::function<void(const ConfigClient*, const Model::StartConfigRuleEvaluationRequest&, const StartConfigRuleEvaluationOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> StartConfigRuleEvaluationAsyncHandler;
|
||||
typedef Outcome<Error, Model::StartConfigurationRecorderResult> StartConfigurationRecorderOutcome;
|
||||
typedef std::future<StartConfigurationRecorderOutcome> StartConfigurationRecorderOutcomeCallable;
|
||||
typedef std::function<void(const ConfigClient*, const Model::StartConfigurationRecorderRequest&, const StartConfigurationRecorderOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> StartConfigurationRecorderAsyncHandler;
|
||||
typedef Outcome<Error, Model::StopConfigRulesResult> StopConfigRulesOutcome;
|
||||
typedef std::future<StopConfigRulesOutcome> StopConfigRulesOutcomeCallable;
|
||||
typedef std::function<void(const ConfigClient*, const Model::StopConfigRulesRequest&, const StopConfigRulesOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> StopConfigRulesAsyncHandler;
|
||||
|
||||
ConfigClient(const Credentials &credentials, const ClientConfiguration &configuration);
|
||||
ConfigClient(const std::shared_ptr<CredentialsProvider> &credentialsProvider, const ClientConfiguration &configuration);
|
||||
ConfigClient(const std::string &accessKeyId, const std::string &accessKeySecret, const ClientConfiguration &configuration);
|
||||
~ConfigClient();
|
||||
ActiveConfigRulesOutcome activeConfigRules(const Model::ActiveConfigRulesRequest &request)const;
|
||||
void activeConfigRulesAsync(const Model::ActiveConfigRulesRequest& request, const ActiveConfigRulesAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
ActiveConfigRulesOutcomeCallable activeConfigRulesCallable(const Model::ActiveConfigRulesRequest& request) const;
|
||||
DeleteConfigRulesOutcome deleteConfigRules(const Model::DeleteConfigRulesRequest &request)const;
|
||||
void deleteConfigRulesAsync(const Model::DeleteConfigRulesRequest& request, const DeleteConfigRulesAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DeleteConfigRulesOutcomeCallable deleteConfigRulesCallable(const Model::DeleteConfigRulesRequest& request) const;
|
||||
DescribeComplianceOutcome describeCompliance(const Model::DescribeComplianceRequest &request)const;
|
||||
void describeComplianceAsync(const Model::DescribeComplianceRequest& request, const DescribeComplianceAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DescribeComplianceOutcomeCallable describeComplianceCallable(const Model::DescribeComplianceRequest& request) const;
|
||||
DescribeComplianceSummaryOutcome describeComplianceSummary(const Model::DescribeComplianceSummaryRequest &request)const;
|
||||
void describeComplianceSummaryAsync(const Model::DescribeComplianceSummaryRequest& request, const DescribeComplianceSummaryAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DescribeComplianceSummaryOutcomeCallable describeComplianceSummaryCallable(const Model::DescribeComplianceSummaryRequest& request) const;
|
||||
DescribeConfigRuleOutcome describeConfigRule(const Model::DescribeConfigRuleRequest &request)const;
|
||||
void describeConfigRuleAsync(const Model::DescribeConfigRuleRequest& request, const DescribeConfigRuleAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DescribeConfigRuleOutcomeCallable describeConfigRuleCallable(const Model::DescribeConfigRuleRequest& request) const;
|
||||
DescribeConfigurationRecorderOutcome describeConfigurationRecorder(const Model::DescribeConfigurationRecorderRequest &request)const;
|
||||
void describeConfigurationRecorderAsync(const Model::DescribeConfigurationRecorderRequest& request, const DescribeConfigurationRecorderAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DescribeConfigurationRecorderOutcomeCallable describeConfigurationRecorderCallable(const Model::DescribeConfigurationRecorderRequest& request) const;
|
||||
DescribeDeliveryChannelsOutcome describeDeliveryChannels(const Model::DescribeDeliveryChannelsRequest &request)const;
|
||||
void describeDeliveryChannelsAsync(const Model::DescribeDeliveryChannelsRequest& request, const DescribeDeliveryChannelsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DescribeDeliveryChannelsOutcomeCallable describeDeliveryChannelsCallable(const Model::DescribeDeliveryChannelsRequest& request) const;
|
||||
DescribeDiscoveredResourceOutcome describeDiscoveredResource(const Model::DescribeDiscoveredResourceRequest &request)const;
|
||||
void describeDiscoveredResourceAsync(const Model::DescribeDiscoveredResourceRequest& request, const DescribeDiscoveredResourceAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DescribeDiscoveredResourceOutcomeCallable describeDiscoveredResourceCallable(const Model::DescribeDiscoveredResourceRequest& request) const;
|
||||
DescribeEvaluationResultsOutcome describeEvaluationResults(const Model::DescribeEvaluationResultsRequest &request)const;
|
||||
void describeEvaluationResultsAsync(const Model::DescribeEvaluationResultsRequest& request, const DescribeEvaluationResultsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DescribeEvaluationResultsOutcomeCallable describeEvaluationResultsCallable(const Model::DescribeEvaluationResultsRequest& request) const;
|
||||
GetDiscoveredResourceCountsOutcome getDiscoveredResourceCounts(const Model::GetDiscoveredResourceCountsRequest &request)const;
|
||||
void getDiscoveredResourceCountsAsync(const Model::GetDiscoveredResourceCountsRequest& request, const GetDiscoveredResourceCountsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
GetDiscoveredResourceCountsOutcomeCallable getDiscoveredResourceCountsCallable(const Model::GetDiscoveredResourceCountsRequest& request) const;
|
||||
GetDiscoveredResourceSummaryOutcome getDiscoveredResourceSummary(const Model::GetDiscoveredResourceSummaryRequest &request)const;
|
||||
void getDiscoveredResourceSummaryAsync(const Model::GetDiscoveredResourceSummaryRequest& request, const GetDiscoveredResourceSummaryAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
GetDiscoveredResourceSummaryOutcomeCallable getDiscoveredResourceSummaryCallable(const Model::GetDiscoveredResourceSummaryRequest& request) const;
|
||||
GetResourceComplianceTimelineOutcome getResourceComplianceTimeline(const Model::GetResourceComplianceTimelineRequest &request)const;
|
||||
void getResourceComplianceTimelineAsync(const Model::GetResourceComplianceTimelineRequest& request, const GetResourceComplianceTimelineAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
GetResourceComplianceTimelineOutcomeCallable getResourceComplianceTimelineCallable(const Model::GetResourceComplianceTimelineRequest& request) const;
|
||||
GetResourceConfigurationTimelineOutcome getResourceConfigurationTimeline(const Model::GetResourceConfigurationTimelineRequest &request)const;
|
||||
void getResourceConfigurationTimelineAsync(const Model::GetResourceConfigurationTimelineRequest& request, const GetResourceConfigurationTimelineAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
GetResourceConfigurationTimelineOutcomeCallable getResourceConfigurationTimelineCallable(const Model::GetResourceConfigurationTimelineRequest& request) const;
|
||||
GetSupportedResourceTypesOutcome getSupportedResourceTypes(const Model::GetSupportedResourceTypesRequest &request)const;
|
||||
void getSupportedResourceTypesAsync(const Model::GetSupportedResourceTypesRequest& request, const GetSupportedResourceTypesAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
GetSupportedResourceTypesOutcomeCallable getSupportedResourceTypesCallable(const Model::GetSupportedResourceTypesRequest& request) const;
|
||||
ListConfigRulesOutcome listConfigRules(const Model::ListConfigRulesRequest &request)const;
|
||||
void listConfigRulesAsync(const Model::ListConfigRulesRequest& request, const ListConfigRulesAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
ListConfigRulesOutcomeCallable listConfigRulesCallable(const Model::ListConfigRulesRequest& request) const;
|
||||
ListDiscoveredResourcesOutcome listDiscoveredResources(const Model::ListDiscoveredResourcesRequest &request)const;
|
||||
void listDiscoveredResourcesAsync(const Model::ListDiscoveredResourcesRequest& request, const ListDiscoveredResourcesAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
ListDiscoveredResourcesOutcomeCallable listDiscoveredResourcesCallable(const Model::ListDiscoveredResourcesRequest& request) const;
|
||||
PutConfigRuleOutcome putConfigRule(const Model::PutConfigRuleRequest &request)const;
|
||||
void putConfigRuleAsync(const Model::PutConfigRuleRequest& request, const PutConfigRuleAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
PutConfigRuleOutcomeCallable putConfigRuleCallable(const Model::PutConfigRuleRequest& request) const;
|
||||
PutConfigurationRecorderOutcome putConfigurationRecorder(const Model::PutConfigurationRecorderRequest &request)const;
|
||||
void putConfigurationRecorderAsync(const Model::PutConfigurationRecorderRequest& request, const PutConfigurationRecorderAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
PutConfigurationRecorderOutcomeCallable putConfigurationRecorderCallable(const Model::PutConfigurationRecorderRequest& request) const;
|
||||
PutDeliveryChannelOutcome putDeliveryChannel(const Model::PutDeliveryChannelRequest &request)const;
|
||||
void putDeliveryChannelAsync(const Model::PutDeliveryChannelRequest& request, const PutDeliveryChannelAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
PutDeliveryChannelOutcomeCallable putDeliveryChannelCallable(const Model::PutDeliveryChannelRequest& request) const;
|
||||
PutEvaluationsOutcome putEvaluations(const Model::PutEvaluationsRequest &request)const;
|
||||
void putEvaluationsAsync(const Model::PutEvaluationsRequest& request, const PutEvaluationsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
PutEvaluationsOutcomeCallable putEvaluationsCallable(const Model::PutEvaluationsRequest& request) const;
|
||||
StartConfigRuleEvaluationOutcome startConfigRuleEvaluation(const Model::StartConfigRuleEvaluationRequest &request)const;
|
||||
void startConfigRuleEvaluationAsync(const Model::StartConfigRuleEvaluationRequest& request, const StartConfigRuleEvaluationAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
StartConfigRuleEvaluationOutcomeCallable startConfigRuleEvaluationCallable(const Model::StartConfigRuleEvaluationRequest& request) const;
|
||||
StartConfigurationRecorderOutcome startConfigurationRecorder(const Model::StartConfigurationRecorderRequest &request)const;
|
||||
void startConfigurationRecorderAsync(const Model::StartConfigurationRecorderRequest& request, const StartConfigurationRecorderAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
StartConfigurationRecorderOutcomeCallable startConfigurationRecorderCallable(const Model::StartConfigurationRecorderRequest& request) const;
|
||||
StopConfigRulesOutcome stopConfigRules(const Model::StopConfigRulesRequest &request)const;
|
||||
void stopConfigRulesAsync(const Model::StopConfigRulesRequest& request, const StopConfigRulesAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
StopConfigRulesOutcomeCallable stopConfigRulesCallable(const Model::StopConfigRulesRequest& request) const;
|
||||
|
||||
private:
|
||||
std::shared_ptr<EndpointProvider> endpointProvider_;
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
#endif // !ALIBABACLOUD_CONFIG_CONFIGCLIENT_H_
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user