Compare commits
23 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
5c4cdd976d | ||
|
|
760426f29b | ||
|
|
99697bde91 | ||
|
|
1b19d44bc2 | ||
|
|
84ae3ef04e | ||
|
|
bb8790e63c | ||
|
|
d75a986e9f | ||
|
|
ef568baa30 | ||
|
|
2eae2fe5c9 | ||
|
|
a4995661a5 | ||
|
|
7eb4574903 | ||
|
|
5021fa7e0a | ||
|
|
71e4c1576e | ||
|
|
5550c66a4c | ||
|
|
9c47520d45 | ||
|
|
9b6827d238 | ||
|
|
2d60eb1a66 | ||
|
|
a3c08aa6f7 | ||
|
|
df9aacc5a5 | ||
|
|
d209714cb0 | ||
|
|
3cee194b0f | ||
|
|
c52c445fa1 | ||
|
|
4f8cf9d05f |
16
.github/workflows/test.yaml
vendored
16
.github/workflows/test.yaml
vendored
@@ -8,22 +8,14 @@ on:
|
||||
|
||||
jobs:
|
||||
test:
|
||||
strategy:
|
||||
fail-fast: false
|
||||
matrix:
|
||||
os: [ubuntu-latest, macosx-latest]
|
||||
runs-on: ${{ matrix.os }}
|
||||
runs-on: ubuntu-latest
|
||||
name: CPP
|
||||
env:
|
||||
CPLUS_INCLUDE_PATH: "/usr/local/include/:/usr/include/jsoncpp/:/usr/local/opt/openssl/include/:/usr/lib/"
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
|
||||
- if: ${{ matrix.os == 'ubuntu-latest' }}
|
||||
run: sudo apt-get install lcov libcurl4-openssl-dev libssl-dev uuid-dev libjson-c-dev libjsoncpp-dev nodejs npm
|
||||
- if: ${{ matrix.os == 'macosx-latest' }}
|
||||
run: brew install lcov libcurl4-openssl-dev libssl-dev uuid-dev libjson-c-dev libjsoncpp-dev nodejs npm
|
||||
|
||||
- run: sudo apt-get install lcov libcurl4-openssl-dev libssl-dev uuid-dev libjson-c-dev libjsoncpp-dev nodejs npm
|
||||
- run: bash ./unit_test.sh
|
||||
- run: bash ./generate_code_cov.sh
|
||||
- run: bash ./generate_code_cov.sh
|
||||
- run: bash ./function_test.sh
|
||||
- run: bash <(curl -s https://codecov.io/bash)
|
||||
|
||||
@@ -46,7 +46,7 @@ Alibaba Cloud SDK for C++ 让您不用复杂编程即可访问云服务器、负
|
||||
|
||||
```bash
|
||||
# use yum
|
||||
yum install jsoncpp-devel openssl-devel uuid-devel libcurl-devel
|
||||
yum install jsoncpp-devel openssl-devel libuuid-devel libcurl-devel
|
||||
|
||||
# use dnf
|
||||
sudo dnf install libcurl-devel openssl-devel libuuid-devel libjsoncpp-devel
|
||||
|
||||
@@ -47,7 +47,7 @@ If you have any problem while using Alibaba Cloud SDK for C++, please submit an
|
||||
|
||||
```bash
|
||||
# use yum
|
||||
yum install jsoncpp-devel openssl-devel uuid-devel libcurl-devel
|
||||
yum install jsoncpp-devel openssl-devel libuuid-devel libcurl-devel
|
||||
|
||||
# use dnf
|
||||
sudo dnf install libcurl-devel openssl-devel libuuid-devel libjsoncpp-devel
|
||||
|
||||
@@ -163,14 +163,14 @@ set(adb_public_header_model
|
||||
include/alibabacloud/adb/model/DescribeTablesResult.h
|
||||
include/alibabacloud/adb/model/DescribeTaskInfoRequest.h
|
||||
include/alibabacloud/adb/model/DescribeTaskInfoResult.h
|
||||
include/alibabacloud/adb/model/DescribeVSwitchesRequest.h
|
||||
include/alibabacloud/adb/model/DescribeVSwitchesResult.h
|
||||
include/alibabacloud/adb/model/DetachUserENIRequest.h
|
||||
include/alibabacloud/adb/model/DetachUserENIResult.h
|
||||
include/alibabacloud/adb/model/DisableAdviceServiceRequest.h
|
||||
include/alibabacloud/adb/model/DisableAdviceServiceResult.h
|
||||
include/alibabacloud/adb/model/DownloadDiagnosisRecordsRequest.h
|
||||
include/alibabacloud/adb/model/DownloadDiagnosisRecordsResult.h
|
||||
include/alibabacloud/adb/model/DryRunClusterRequest.h
|
||||
include/alibabacloud/adb/model/DryRunClusterResult.h
|
||||
include/alibabacloud/adb/model/EnableAdviceServiceRequest.h
|
||||
include/alibabacloud/adb/model/EnableAdviceServiceResult.h
|
||||
include/alibabacloud/adb/model/GrantOperatorPermissionRequest.h
|
||||
@@ -372,14 +372,14 @@ set(adb_src
|
||||
src/model/DescribeTablesResult.cc
|
||||
src/model/DescribeTaskInfoRequest.cc
|
||||
src/model/DescribeTaskInfoResult.cc
|
||||
src/model/DescribeVSwitchesRequest.cc
|
||||
src/model/DescribeVSwitchesResult.cc
|
||||
src/model/DetachUserENIRequest.cc
|
||||
src/model/DetachUserENIResult.cc
|
||||
src/model/DisableAdviceServiceRequest.cc
|
||||
src/model/DisableAdviceServiceResult.cc
|
||||
src/model/DownloadDiagnosisRecordsRequest.cc
|
||||
src/model/DownloadDiagnosisRecordsResult.cc
|
||||
src/model/DryRunClusterRequest.cc
|
||||
src/model/DryRunClusterResult.cc
|
||||
src/model/EnableAdviceServiceRequest.cc
|
||||
src/model/EnableAdviceServiceResult.cc
|
||||
src/model/GrantOperatorPermissionRequest.cc
|
||||
|
||||
@@ -164,14 +164,14 @@
|
||||
#include "model/DescribeTablesResult.h"
|
||||
#include "model/DescribeTaskInfoRequest.h"
|
||||
#include "model/DescribeTaskInfoResult.h"
|
||||
#include "model/DescribeVSwitchesRequest.h"
|
||||
#include "model/DescribeVSwitchesResult.h"
|
||||
#include "model/DetachUserENIRequest.h"
|
||||
#include "model/DetachUserENIResult.h"
|
||||
#include "model/DisableAdviceServiceRequest.h"
|
||||
#include "model/DisableAdviceServiceResult.h"
|
||||
#include "model/DownloadDiagnosisRecordsRequest.h"
|
||||
#include "model/DownloadDiagnosisRecordsResult.h"
|
||||
#include "model/DryRunClusterRequest.h"
|
||||
#include "model/DryRunClusterResult.h"
|
||||
#include "model/EnableAdviceServiceRequest.h"
|
||||
#include "model/EnableAdviceServiceResult.h"
|
||||
#include "model/GrantOperatorPermissionRequest.h"
|
||||
@@ -450,6 +450,9 @@ namespace AlibabaCloud
|
||||
typedef Outcome<Error, Model::DescribeTaskInfoResult> DescribeTaskInfoOutcome;
|
||||
typedef std::future<DescribeTaskInfoOutcome> DescribeTaskInfoOutcomeCallable;
|
||||
typedef std::function<void(const AdbClient*, const Model::DescribeTaskInfoRequest&, const DescribeTaskInfoOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeTaskInfoAsyncHandler;
|
||||
typedef Outcome<Error, Model::DescribeVSwitchesResult> DescribeVSwitchesOutcome;
|
||||
typedef std::future<DescribeVSwitchesOutcome> DescribeVSwitchesOutcomeCallable;
|
||||
typedef std::function<void(const AdbClient*, const Model::DescribeVSwitchesRequest&, const DescribeVSwitchesOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeVSwitchesAsyncHandler;
|
||||
typedef Outcome<Error, Model::DetachUserENIResult> DetachUserENIOutcome;
|
||||
typedef std::future<DetachUserENIOutcome> DetachUserENIOutcomeCallable;
|
||||
typedef std::function<void(const AdbClient*, const Model::DetachUserENIRequest&, const DetachUserENIOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DetachUserENIAsyncHandler;
|
||||
@@ -459,9 +462,6 @@ namespace AlibabaCloud
|
||||
typedef Outcome<Error, Model::DownloadDiagnosisRecordsResult> DownloadDiagnosisRecordsOutcome;
|
||||
typedef std::future<DownloadDiagnosisRecordsOutcome> DownloadDiagnosisRecordsOutcomeCallable;
|
||||
typedef std::function<void(const AdbClient*, const Model::DownloadDiagnosisRecordsRequest&, const DownloadDiagnosisRecordsOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DownloadDiagnosisRecordsAsyncHandler;
|
||||
typedef Outcome<Error, Model::DryRunClusterResult> DryRunClusterOutcome;
|
||||
typedef std::future<DryRunClusterOutcome> DryRunClusterOutcomeCallable;
|
||||
typedef std::function<void(const AdbClient*, const Model::DryRunClusterRequest&, const DryRunClusterOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DryRunClusterAsyncHandler;
|
||||
typedef Outcome<Error, Model::EnableAdviceServiceResult> EnableAdviceServiceOutcome;
|
||||
typedef std::future<EnableAdviceServiceOutcome> EnableAdviceServiceOutcomeCallable;
|
||||
typedef std::function<void(const AdbClient*, const Model::EnableAdviceServiceRequest&, const EnableAdviceServiceOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> EnableAdviceServiceAsyncHandler;
|
||||
@@ -764,6 +764,9 @@ namespace AlibabaCloud
|
||||
DescribeTaskInfoOutcome describeTaskInfo(const Model::DescribeTaskInfoRequest &request)const;
|
||||
void describeTaskInfoAsync(const Model::DescribeTaskInfoRequest& request, const DescribeTaskInfoAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DescribeTaskInfoOutcomeCallable describeTaskInfoCallable(const Model::DescribeTaskInfoRequest& request) const;
|
||||
DescribeVSwitchesOutcome describeVSwitches(const Model::DescribeVSwitchesRequest &request)const;
|
||||
void describeVSwitchesAsync(const Model::DescribeVSwitchesRequest& request, const DescribeVSwitchesAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DescribeVSwitchesOutcomeCallable describeVSwitchesCallable(const Model::DescribeVSwitchesRequest& request) const;
|
||||
DetachUserENIOutcome detachUserENI(const Model::DetachUserENIRequest &request)const;
|
||||
void detachUserENIAsync(const Model::DetachUserENIRequest& request, const DetachUserENIAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DetachUserENIOutcomeCallable detachUserENICallable(const Model::DetachUserENIRequest& request) const;
|
||||
@@ -773,9 +776,6 @@ namespace AlibabaCloud
|
||||
DownloadDiagnosisRecordsOutcome downloadDiagnosisRecords(const Model::DownloadDiagnosisRecordsRequest &request)const;
|
||||
void downloadDiagnosisRecordsAsync(const Model::DownloadDiagnosisRecordsRequest& request, const DownloadDiagnosisRecordsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DownloadDiagnosisRecordsOutcomeCallable downloadDiagnosisRecordsCallable(const Model::DownloadDiagnosisRecordsRequest& request) const;
|
||||
DryRunClusterOutcome dryRunCluster(const Model::DryRunClusterRequest &request)const;
|
||||
void dryRunClusterAsync(const Model::DryRunClusterRequest& request, const DryRunClusterAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DryRunClusterOutcomeCallable dryRunClusterCallable(const Model::DryRunClusterRequest& request) const;
|
||||
EnableAdviceServiceOutcome enableAdviceService(const Model::EnableAdviceServiceRequest &request)const;
|
||||
void enableAdviceServiceAsync(const Model::EnableAdviceServiceRequest& request, const EnableAdviceServiceAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
EnableAdviceServiceOutcomeCallable enableAdviceServiceCallable(const Model::EnableAdviceServiceRequest& request) const;
|
||||
|
||||
@@ -0,0 +1,69 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_ADB_MODEL_DESCRIBEVSWITCHESREQUEST_H_
|
||||
#define ALIBABACLOUD_ADB_MODEL_DESCRIBEVSWITCHESREQUEST_H_
|
||||
|
||||
#include <alibabacloud/adb/AdbExport.h>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <map>
|
||||
|
||||
namespace AlibabaCloud {
|
||||
namespace Adb {
|
||||
namespace Model {
|
||||
class ALIBABACLOUD_ADB_EXPORT DescribeVSwitchesRequest : public RpcServiceRequest {
|
||||
public:
|
||||
DescribeVSwitchesRequest();
|
||||
~DescribeVSwitchesRequest();
|
||||
std::string getVswId() const;
|
||||
void setVswId(const std::string &vswId);
|
||||
long getResourceOwnerId() const;
|
||||
void setResourceOwnerId(long resourceOwnerId);
|
||||
std::string getAccessKeyId() const;
|
||||
void setAccessKeyId(const std::string &accessKeyId);
|
||||
std::string getSecurityToken() const;
|
||||
void setSecurityToken(const std::string &securityToken);
|
||||
std::string getRegionId() const;
|
||||
void setRegionId(const std::string ®ionId);
|
||||
std::string getResourceOwnerAccount() const;
|
||||
void setResourceOwnerAccount(const std::string &resourceOwnerAccount);
|
||||
std::string getOwnerAccount() const;
|
||||
void setOwnerAccount(const std::string &ownerAccount);
|
||||
long getOwnerId() const;
|
||||
void setOwnerId(long ownerId);
|
||||
std::string getVpcId() const;
|
||||
void setVpcId(const std::string &vpcId);
|
||||
std::string getZoneId() const;
|
||||
void setZoneId(const std::string &zoneId);
|
||||
|
||||
private:
|
||||
std::string vswId_;
|
||||
long resourceOwnerId_;
|
||||
std::string accessKeyId_;
|
||||
std::string securityToken_;
|
||||
std::string regionId_;
|
||||
std::string resourceOwnerAccount_;
|
||||
std::string ownerAccount_;
|
||||
long ownerId_;
|
||||
std::string vpcId_;
|
||||
std::string zoneId_;
|
||||
};
|
||||
} // namespace Model
|
||||
} // namespace Adb
|
||||
} // namespace AlibabaCloud
|
||||
#endif // !ALIBABACLOUD_ADB_MODEL_DESCRIBEVSWITCHESREQUEST_H_
|
||||
69
adb/include/alibabacloud/adb/model/DescribeVSwitchesResult.h
Normal file
69
adb/include/alibabacloud/adb/model/DescribeVSwitchesResult.h
Normal file
@@ -0,0 +1,69 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_ADB_MODEL_DESCRIBEVSWITCHESRESULT_H_
|
||||
#define ALIBABACLOUD_ADB_MODEL_DESCRIBEVSWITCHESRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/adb/AdbExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Adb
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_ADB_EXPORT DescribeVSwitchesResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct VSwitches
|
||||
{
|
||||
struct VSwitchItem
|
||||
{
|
||||
std::string status;
|
||||
bool isDefault;
|
||||
std::string regionNo;
|
||||
std::string izNo;
|
||||
std::string gmtCreate;
|
||||
std::string vSwitchId;
|
||||
std::string gmtModified;
|
||||
std::string cidrBlock;
|
||||
std::string vSwitchName;
|
||||
std::string bid;
|
||||
std::string aliUid;
|
||||
};
|
||||
std::vector<VSwitchItem> vSwitch;
|
||||
};
|
||||
|
||||
|
||||
DescribeVSwitchesResult();
|
||||
explicit DescribeVSwitchesResult(const std::string &payload);
|
||||
~DescribeVSwitchesResult();
|
||||
VSwitches getVSwitches()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
VSwitches vSwitches_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_ADB_MODEL_DESCRIBEVSWITCHESRESULT_H_
|
||||
@@ -1,87 +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.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_ADB_MODEL_DRYRUNCLUSTERREQUEST_H_
|
||||
#define ALIBABACLOUD_ADB_MODEL_DRYRUNCLUSTERREQUEST_H_
|
||||
|
||||
#include <alibabacloud/adb/AdbExport.h>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <map>
|
||||
|
||||
namespace AlibabaCloud {
|
||||
namespace Adb {
|
||||
namespace Model {
|
||||
class ALIBABACLOUD_ADB_EXPORT DryRunClusterRequest : public RpcServiceRequest {
|
||||
public:
|
||||
DryRunClusterRequest();
|
||||
~DryRunClusterRequest();
|
||||
std::string getDBClusterDescription() const;
|
||||
void setDBClusterDescription(const std::string &dBClusterDescription);
|
||||
bool getEnableDefaultResourcePool() const;
|
||||
void setEnableDefaultResourcePool(bool enableDefaultResourcePool);
|
||||
std::string getAccessKeyId() const;
|
||||
void setAccessKeyId(const std::string &accessKeyId);
|
||||
std::string getStorageResource() const;
|
||||
void setStorageResource(const std::string &storageResource);
|
||||
std::string getRegionId() const;
|
||||
void setRegionId(const std::string ®ionId);
|
||||
std::string getDBClusterNetworkType() const;
|
||||
void setDBClusterNetworkType(const std::string &dBClusterNetworkType);
|
||||
std::string getPeriod() const;
|
||||
void setPeriod(const std::string &period);
|
||||
std::string getDBClusterId() const;
|
||||
void setDBClusterId(const std::string &dBClusterId);
|
||||
std::string getDBClusterVersion() const;
|
||||
void setDBClusterVersion(const std::string &dBClusterVersion);
|
||||
std::string getUsedTime() const;
|
||||
void setUsedTime(const std::string &usedTime);
|
||||
std::string getVSwitchId() const;
|
||||
void setVSwitchId(const std::string &vSwitchId);
|
||||
std::string getVPCId() const;
|
||||
void setVPCId(const std::string &vPCId);
|
||||
std::string getZoneId() const;
|
||||
void setZoneId(const std::string &zoneId);
|
||||
std::string getComputeResource() const;
|
||||
void setComputeResource(const std::string &computeResource);
|
||||
std::string getPayType() const;
|
||||
void setPayType(const std::string &payType);
|
||||
std::string getOperation() const;
|
||||
void setOperation(const std::string &operation);
|
||||
|
||||
private:
|
||||
std::string dBClusterDescription_;
|
||||
bool enableDefaultResourcePool_;
|
||||
std::string accessKeyId_;
|
||||
std::string storageResource_;
|
||||
std::string regionId_;
|
||||
std::string dBClusterNetworkType_;
|
||||
std::string period_;
|
||||
std::string dBClusterId_;
|
||||
std::string dBClusterVersion_;
|
||||
std::string usedTime_;
|
||||
std::string vSwitchId_;
|
||||
std::string vPCId_;
|
||||
std::string zoneId_;
|
||||
std::string computeResource_;
|
||||
std::string payType_;
|
||||
std::string operation_;
|
||||
};
|
||||
} // namespace Model
|
||||
} // namespace Adb
|
||||
} // namespace AlibabaCloud
|
||||
#endif // !ALIBABACLOUD_ADB_MODEL_DRYRUNCLUSTERREQUEST_H_
|
||||
@@ -2607,6 +2607,42 @@ AdbClient::DescribeTaskInfoOutcomeCallable AdbClient::describeTaskInfoCallable(c
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
AdbClient::DescribeVSwitchesOutcome AdbClient::describeVSwitches(const DescribeVSwitchesRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return DescribeVSwitchesOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return DescribeVSwitchesOutcome(DescribeVSwitchesResult(outcome.result()));
|
||||
else
|
||||
return DescribeVSwitchesOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void AdbClient::describeVSwitchesAsync(const DescribeVSwitchesRequest& request, const DescribeVSwitchesAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, describeVSwitches(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
AdbClient::DescribeVSwitchesOutcomeCallable AdbClient::describeVSwitchesCallable(const DescribeVSwitchesRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<DescribeVSwitchesOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->describeVSwitches(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
AdbClient::DetachUserENIOutcome AdbClient::detachUserENI(const DetachUserENIRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -2715,42 +2751,6 @@ AdbClient::DownloadDiagnosisRecordsOutcomeCallable AdbClient::downloadDiagnosisR
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
AdbClient::DryRunClusterOutcome AdbClient::dryRunCluster(const DryRunClusterRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return DryRunClusterOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return DryRunClusterOutcome(DryRunClusterResult(outcome.result()));
|
||||
else
|
||||
return DryRunClusterOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void AdbClient::dryRunClusterAsync(const DryRunClusterRequest& request, const DryRunClusterAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, dryRunCluster(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
AdbClient::DryRunClusterOutcomeCallable AdbClient::dryRunClusterCallable(const DryRunClusterRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<DryRunClusterOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->dryRunCluster(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
AdbClient::EnableAdviceServiceOutcome AdbClient::enableAdviceService(const EnableAdviceServiceRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
|
||||
117
adb/src/model/DescribeVSwitchesRequest.cc
Normal file
117
adb/src/model/DescribeVSwitchesRequest.cc
Normal file
@@ -0,0 +1,117 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT 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/adb/model/DescribeVSwitchesRequest.h>
|
||||
|
||||
using AlibabaCloud::Adb::Model::DescribeVSwitchesRequest;
|
||||
|
||||
DescribeVSwitchesRequest::DescribeVSwitchesRequest()
|
||||
: RpcServiceRequest("adb", "2019-03-15", "DescribeVSwitches") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DescribeVSwitchesRequest::~DescribeVSwitchesRequest() {}
|
||||
|
||||
std::string DescribeVSwitchesRequest::getVswId() const {
|
||||
return vswId_;
|
||||
}
|
||||
|
||||
void DescribeVSwitchesRequest::setVswId(const std::string &vswId) {
|
||||
vswId_ = vswId;
|
||||
setParameter(std::string("VswId"), vswId);
|
||||
}
|
||||
|
||||
long DescribeVSwitchesRequest::getResourceOwnerId() const {
|
||||
return resourceOwnerId_;
|
||||
}
|
||||
|
||||
void DescribeVSwitchesRequest::setResourceOwnerId(long resourceOwnerId) {
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
std::string DescribeVSwitchesRequest::getAccessKeyId() const {
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void DescribeVSwitchesRequest::setAccessKeyId(const std::string &accessKeyId) {
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter(std::string("AccessKeyId"), accessKeyId);
|
||||
}
|
||||
|
||||
std::string DescribeVSwitchesRequest::getSecurityToken() const {
|
||||
return securityToken_;
|
||||
}
|
||||
|
||||
void DescribeVSwitchesRequest::setSecurityToken(const std::string &securityToken) {
|
||||
securityToken_ = securityToken;
|
||||
setParameter(std::string("SecurityToken"), securityToken);
|
||||
}
|
||||
|
||||
std::string DescribeVSwitchesRequest::getRegionId() const {
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void DescribeVSwitchesRequest::setRegionId(const std::string ®ionId) {
|
||||
regionId_ = regionId;
|
||||
setParameter(std::string("RegionId"), regionId);
|
||||
}
|
||||
|
||||
std::string DescribeVSwitchesRequest::getResourceOwnerAccount() const {
|
||||
return resourceOwnerAccount_;
|
||||
}
|
||||
|
||||
void DescribeVSwitchesRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) {
|
||||
resourceOwnerAccount_ = resourceOwnerAccount;
|
||||
setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount);
|
||||
}
|
||||
|
||||
std::string DescribeVSwitchesRequest::getOwnerAccount() const {
|
||||
return ownerAccount_;
|
||||
}
|
||||
|
||||
void DescribeVSwitchesRequest::setOwnerAccount(const std::string &ownerAccount) {
|
||||
ownerAccount_ = ownerAccount;
|
||||
setParameter(std::string("OwnerAccount"), ownerAccount);
|
||||
}
|
||||
|
||||
long DescribeVSwitchesRequest::getOwnerId() const {
|
||||
return ownerId_;
|
||||
}
|
||||
|
||||
void DescribeVSwitchesRequest::setOwnerId(long ownerId) {
|
||||
ownerId_ = ownerId;
|
||||
setParameter(std::string("OwnerId"), std::to_string(ownerId));
|
||||
}
|
||||
|
||||
std::string DescribeVSwitchesRequest::getVpcId() const {
|
||||
return vpcId_;
|
||||
}
|
||||
|
||||
void DescribeVSwitchesRequest::setVpcId(const std::string &vpcId) {
|
||||
vpcId_ = vpcId;
|
||||
setParameter(std::string("VpcId"), vpcId);
|
||||
}
|
||||
|
||||
std::string DescribeVSwitchesRequest::getZoneId() const {
|
||||
return zoneId_;
|
||||
}
|
||||
|
||||
void DescribeVSwitchesRequest::setZoneId(const std::string &zoneId) {
|
||||
zoneId_ = zoneId;
|
||||
setParameter(std::string("ZoneId"), zoneId);
|
||||
}
|
||||
|
||||
78
adb/src/model/DescribeVSwitchesResult.cc
Normal file
78
adb/src/model/DescribeVSwitchesResult.cc
Normal file
@@ -0,0 +1,78 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/adb/model/DescribeVSwitchesResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Adb;
|
||||
using namespace AlibabaCloud::Adb::Model;
|
||||
|
||||
DescribeVSwitchesResult::DescribeVSwitchesResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DescribeVSwitchesResult::DescribeVSwitchesResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DescribeVSwitchesResult::~DescribeVSwitchesResult()
|
||||
{}
|
||||
|
||||
void DescribeVSwitchesResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto vSwitchesNode = value["VSwitches"];
|
||||
auto allVSwitchNode = vSwitchesNode["VSwitch"]["VSwitchItem"];
|
||||
for (auto vSwitchesNodeVSwitchVSwitchItem : allVSwitchNode)
|
||||
{
|
||||
VSwitches::VSwitchItem vSwitchItemObject;
|
||||
if(!vSwitchesNodeVSwitchVSwitchItem["Status"].isNull())
|
||||
vSwitchItemObject.status = vSwitchesNodeVSwitchVSwitchItem["Status"].asString();
|
||||
if(!vSwitchesNodeVSwitchVSwitchItem["IsDefault"].isNull())
|
||||
vSwitchItemObject.isDefault = vSwitchesNodeVSwitchVSwitchItem["IsDefault"].asString() == "true";
|
||||
if(!vSwitchesNodeVSwitchVSwitchItem["VSwitchId"].isNull())
|
||||
vSwitchItemObject.vSwitchId = vSwitchesNodeVSwitchVSwitchItem["VSwitchId"].asString();
|
||||
if(!vSwitchesNodeVSwitchVSwitchItem["CidrBlock"].isNull())
|
||||
vSwitchItemObject.cidrBlock = vSwitchesNodeVSwitchVSwitchItem["CidrBlock"].asString();
|
||||
if(!vSwitchesNodeVSwitchVSwitchItem["RegionNo"].isNull())
|
||||
vSwitchItemObject.regionNo = vSwitchesNodeVSwitchVSwitchItem["RegionNo"].asString();
|
||||
if(!vSwitchesNodeVSwitchVSwitchItem["GmtCreate"].isNull())
|
||||
vSwitchItemObject.gmtCreate = vSwitchesNodeVSwitchVSwitchItem["GmtCreate"].asString();
|
||||
if(!vSwitchesNodeVSwitchVSwitchItem["AliUid"].isNull())
|
||||
vSwitchItemObject.aliUid = vSwitchesNodeVSwitchVSwitchItem["AliUid"].asString();
|
||||
if(!vSwitchesNodeVSwitchVSwitchItem["GmtModified"].isNull())
|
||||
vSwitchItemObject.gmtModified = vSwitchesNodeVSwitchVSwitchItem["GmtModified"].asString();
|
||||
if(!vSwitchesNodeVSwitchVSwitchItem["Bid"].isNull())
|
||||
vSwitchItemObject.bid = vSwitchesNodeVSwitchVSwitchItem["Bid"].asString();
|
||||
if(!vSwitchesNodeVSwitchVSwitchItem["IzNo"].isNull())
|
||||
vSwitchItemObject.izNo = vSwitchesNodeVSwitchVSwitchItem["IzNo"].asString();
|
||||
if(!vSwitchesNodeVSwitchVSwitchItem["VSwitchName"].isNull())
|
||||
vSwitchItemObject.vSwitchName = vSwitchesNodeVSwitchVSwitchItem["VSwitchName"].asString();
|
||||
vSwitches_.vSwitch.push_back(vSwitchItemObject);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
DescribeVSwitchesResult::VSwitches DescribeVSwitchesResult::getVSwitches()const
|
||||
{
|
||||
return vSwitches_;
|
||||
}
|
||||
|
||||
@@ -1,171 +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/adb/model/DryRunClusterRequest.h>
|
||||
|
||||
using AlibabaCloud::Adb::Model::DryRunClusterRequest;
|
||||
|
||||
DryRunClusterRequest::DryRunClusterRequest()
|
||||
: RpcServiceRequest("adb", "2019-03-15", "DryRunCluster") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DryRunClusterRequest::~DryRunClusterRequest() {}
|
||||
|
||||
std::string DryRunClusterRequest::getDBClusterDescription() const {
|
||||
return dBClusterDescription_;
|
||||
}
|
||||
|
||||
void DryRunClusterRequest::setDBClusterDescription(const std::string &dBClusterDescription) {
|
||||
dBClusterDescription_ = dBClusterDescription;
|
||||
setParameter(std::string("DBClusterDescription"), dBClusterDescription);
|
||||
}
|
||||
|
||||
bool DryRunClusterRequest::getEnableDefaultResourcePool() const {
|
||||
return enableDefaultResourcePool_;
|
||||
}
|
||||
|
||||
void DryRunClusterRequest::setEnableDefaultResourcePool(bool enableDefaultResourcePool) {
|
||||
enableDefaultResourcePool_ = enableDefaultResourcePool;
|
||||
setParameter(std::string("EnableDefaultResourcePool"), enableDefaultResourcePool ? "true" : "false");
|
||||
}
|
||||
|
||||
std::string DryRunClusterRequest::getAccessKeyId() const {
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void DryRunClusterRequest::setAccessKeyId(const std::string &accessKeyId) {
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter(std::string("AccessKeyId"), accessKeyId);
|
||||
}
|
||||
|
||||
std::string DryRunClusterRequest::getStorageResource() const {
|
||||
return storageResource_;
|
||||
}
|
||||
|
||||
void DryRunClusterRequest::setStorageResource(const std::string &storageResource) {
|
||||
storageResource_ = storageResource;
|
||||
setParameter(std::string("StorageResource"), storageResource);
|
||||
}
|
||||
|
||||
std::string DryRunClusterRequest::getRegionId() const {
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void DryRunClusterRequest::setRegionId(const std::string ®ionId) {
|
||||
regionId_ = regionId;
|
||||
setParameter(std::string("RegionId"), regionId);
|
||||
}
|
||||
|
||||
std::string DryRunClusterRequest::getDBClusterNetworkType() const {
|
||||
return dBClusterNetworkType_;
|
||||
}
|
||||
|
||||
void DryRunClusterRequest::setDBClusterNetworkType(const std::string &dBClusterNetworkType) {
|
||||
dBClusterNetworkType_ = dBClusterNetworkType;
|
||||
setParameter(std::string("DBClusterNetworkType"), dBClusterNetworkType);
|
||||
}
|
||||
|
||||
std::string DryRunClusterRequest::getPeriod() const {
|
||||
return period_;
|
||||
}
|
||||
|
||||
void DryRunClusterRequest::setPeriod(const std::string &period) {
|
||||
period_ = period;
|
||||
setParameter(std::string("Period"), period);
|
||||
}
|
||||
|
||||
std::string DryRunClusterRequest::getDBClusterId() const {
|
||||
return dBClusterId_;
|
||||
}
|
||||
|
||||
void DryRunClusterRequest::setDBClusterId(const std::string &dBClusterId) {
|
||||
dBClusterId_ = dBClusterId;
|
||||
setParameter(std::string("DBClusterId"), dBClusterId);
|
||||
}
|
||||
|
||||
std::string DryRunClusterRequest::getDBClusterVersion() const {
|
||||
return dBClusterVersion_;
|
||||
}
|
||||
|
||||
void DryRunClusterRequest::setDBClusterVersion(const std::string &dBClusterVersion) {
|
||||
dBClusterVersion_ = dBClusterVersion;
|
||||
setParameter(std::string("DBClusterVersion"), dBClusterVersion);
|
||||
}
|
||||
|
||||
std::string DryRunClusterRequest::getUsedTime() const {
|
||||
return usedTime_;
|
||||
}
|
||||
|
||||
void DryRunClusterRequest::setUsedTime(const std::string &usedTime) {
|
||||
usedTime_ = usedTime;
|
||||
setParameter(std::string("UsedTime"), usedTime);
|
||||
}
|
||||
|
||||
std::string DryRunClusterRequest::getVSwitchId() const {
|
||||
return vSwitchId_;
|
||||
}
|
||||
|
||||
void DryRunClusterRequest::setVSwitchId(const std::string &vSwitchId) {
|
||||
vSwitchId_ = vSwitchId;
|
||||
setParameter(std::string("VSwitchId"), vSwitchId);
|
||||
}
|
||||
|
||||
std::string DryRunClusterRequest::getVPCId() const {
|
||||
return vPCId_;
|
||||
}
|
||||
|
||||
void DryRunClusterRequest::setVPCId(const std::string &vPCId) {
|
||||
vPCId_ = vPCId;
|
||||
setParameter(std::string("VPCId"), vPCId);
|
||||
}
|
||||
|
||||
std::string DryRunClusterRequest::getZoneId() const {
|
||||
return zoneId_;
|
||||
}
|
||||
|
||||
void DryRunClusterRequest::setZoneId(const std::string &zoneId) {
|
||||
zoneId_ = zoneId;
|
||||
setParameter(std::string("ZoneId"), zoneId);
|
||||
}
|
||||
|
||||
std::string DryRunClusterRequest::getComputeResource() const {
|
||||
return computeResource_;
|
||||
}
|
||||
|
||||
void DryRunClusterRequest::setComputeResource(const std::string &computeResource) {
|
||||
computeResource_ = computeResource;
|
||||
setParameter(std::string("ComputeResource"), computeResource);
|
||||
}
|
||||
|
||||
std::string DryRunClusterRequest::getPayType() const {
|
||||
return payType_;
|
||||
}
|
||||
|
||||
void DryRunClusterRequest::setPayType(const std::string &payType) {
|
||||
payType_ = payType;
|
||||
setParameter(std::string("PayType"), payType);
|
||||
}
|
||||
|
||||
std::string DryRunClusterRequest::getOperation() const {
|
||||
return operation_;
|
||||
}
|
||||
|
||||
void DryRunClusterRequest::setOperation(const std::string &operation) {
|
||||
operation_ = operation;
|
||||
setParameter(std::string("Operation"), operation);
|
||||
}
|
||||
|
||||
@@ -23,6 +23,10 @@ set(avatar_public_header
|
||||
set(avatar_public_header_model
|
||||
include/alibabacloud/avatar/model/CancelVideoTaskRequest.h
|
||||
include/alibabacloud/avatar/model/CancelVideoTaskResult.h
|
||||
include/alibabacloud/avatar/model/ClientAuthRequest.h
|
||||
include/alibabacloud/avatar/model/ClientAuthResult.h
|
||||
include/alibabacloud/avatar/model/ClientStartRequest.h
|
||||
include/alibabacloud/avatar/model/ClientStartResult.h
|
||||
include/alibabacloud/avatar/model/CloseTimedResetOperateRequest.h
|
||||
include/alibabacloud/avatar/model/CloseTimedResetOperateResult.h
|
||||
include/alibabacloud/avatar/model/Create2dAvatarRequest.h
|
||||
@@ -45,6 +49,8 @@ set(avatar_public_header_model
|
||||
include/alibabacloud/avatar/model/QueryTimedResetOperateStatusResult.h
|
||||
include/alibabacloud/avatar/model/QueryVideoTaskInfoRequest.h
|
||||
include/alibabacloud/avatar/model/QueryVideoTaskInfoResult.h
|
||||
include/alibabacloud/avatar/model/Render3dAvatarRequest.h
|
||||
include/alibabacloud/avatar/model/Render3dAvatarResult.h
|
||||
include/alibabacloud/avatar/model/SendCommandRequest.h
|
||||
include/alibabacloud/avatar/model/SendCommandResult.h
|
||||
include/alibabacloud/avatar/model/SendMessageRequest.h
|
||||
@@ -74,6 +80,10 @@ set(avatar_src
|
||||
src/AvatarClient.cc
|
||||
src/model/CancelVideoTaskRequest.cc
|
||||
src/model/CancelVideoTaskResult.cc
|
||||
src/model/ClientAuthRequest.cc
|
||||
src/model/ClientAuthResult.cc
|
||||
src/model/ClientStartRequest.cc
|
||||
src/model/ClientStartResult.cc
|
||||
src/model/CloseTimedResetOperateRequest.cc
|
||||
src/model/CloseTimedResetOperateResult.cc
|
||||
src/model/Create2dAvatarRequest.cc
|
||||
@@ -96,6 +106,8 @@ set(avatar_src
|
||||
src/model/QueryTimedResetOperateStatusResult.cc
|
||||
src/model/QueryVideoTaskInfoRequest.cc
|
||||
src/model/QueryVideoTaskInfoResult.cc
|
||||
src/model/Render3dAvatarRequest.cc
|
||||
src/model/Render3dAvatarResult.cc
|
||||
src/model/SendCommandRequest.cc
|
||||
src/model/SendCommandResult.cc
|
||||
src/model/SendMessageRequest.cc
|
||||
|
||||
@@ -24,6 +24,10 @@
|
||||
#include "AvatarExport.h"
|
||||
#include "model/CancelVideoTaskRequest.h"
|
||||
#include "model/CancelVideoTaskResult.h"
|
||||
#include "model/ClientAuthRequest.h"
|
||||
#include "model/ClientAuthResult.h"
|
||||
#include "model/ClientStartRequest.h"
|
||||
#include "model/ClientStartResult.h"
|
||||
#include "model/CloseTimedResetOperateRequest.h"
|
||||
#include "model/CloseTimedResetOperateResult.h"
|
||||
#include "model/Create2dAvatarRequest.h"
|
||||
@@ -46,6 +50,8 @@
|
||||
#include "model/QueryTimedResetOperateStatusResult.h"
|
||||
#include "model/QueryVideoTaskInfoRequest.h"
|
||||
#include "model/QueryVideoTaskInfoResult.h"
|
||||
#include "model/Render3dAvatarRequest.h"
|
||||
#include "model/Render3dAvatarResult.h"
|
||||
#include "model/SendCommandRequest.h"
|
||||
#include "model/SendCommandResult.h"
|
||||
#include "model/SendMessageRequest.h"
|
||||
@@ -82,6 +88,12 @@ namespace AlibabaCloud
|
||||
typedef Outcome<Error, Model::CancelVideoTaskResult> CancelVideoTaskOutcome;
|
||||
typedef std::future<CancelVideoTaskOutcome> CancelVideoTaskOutcomeCallable;
|
||||
typedef std::function<void(const AvatarClient*, const Model::CancelVideoTaskRequest&, const CancelVideoTaskOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> CancelVideoTaskAsyncHandler;
|
||||
typedef Outcome<Error, Model::ClientAuthResult> ClientAuthOutcome;
|
||||
typedef std::future<ClientAuthOutcome> ClientAuthOutcomeCallable;
|
||||
typedef std::function<void(const AvatarClient*, const Model::ClientAuthRequest&, const ClientAuthOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ClientAuthAsyncHandler;
|
||||
typedef Outcome<Error, Model::ClientStartResult> ClientStartOutcome;
|
||||
typedef std::future<ClientStartOutcome> ClientStartOutcomeCallable;
|
||||
typedef std::function<void(const AvatarClient*, const Model::ClientStartRequest&, const ClientStartOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ClientStartAsyncHandler;
|
||||
typedef Outcome<Error, Model::CloseTimedResetOperateResult> CloseTimedResetOperateOutcome;
|
||||
typedef std::future<CloseTimedResetOperateOutcome> CloseTimedResetOperateOutcomeCallable;
|
||||
typedef std::function<void(const AvatarClient*, const Model::CloseTimedResetOperateRequest&, const CloseTimedResetOperateOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> CloseTimedResetOperateAsyncHandler;
|
||||
@@ -115,6 +127,9 @@ namespace AlibabaCloud
|
||||
typedef Outcome<Error, Model::QueryVideoTaskInfoResult> QueryVideoTaskInfoOutcome;
|
||||
typedef std::future<QueryVideoTaskInfoOutcome> QueryVideoTaskInfoOutcomeCallable;
|
||||
typedef std::function<void(const AvatarClient*, const Model::QueryVideoTaskInfoRequest&, const QueryVideoTaskInfoOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> QueryVideoTaskInfoAsyncHandler;
|
||||
typedef Outcome<Error, Model::Render3dAvatarResult> Render3dAvatarOutcome;
|
||||
typedef std::future<Render3dAvatarOutcome> Render3dAvatarOutcomeCallable;
|
||||
typedef std::function<void(const AvatarClient*, const Model::Render3dAvatarRequest&, const Render3dAvatarOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> Render3dAvatarAsyncHandler;
|
||||
typedef Outcome<Error, Model::SendCommandResult> SendCommandOutcome;
|
||||
typedef std::future<SendCommandOutcome> SendCommandOutcomeCallable;
|
||||
typedef std::function<void(const AvatarClient*, const Model::SendCommandRequest&, const SendCommandOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> SendCommandAsyncHandler;
|
||||
@@ -159,6 +174,12 @@ namespace AlibabaCloud
|
||||
CancelVideoTaskOutcome cancelVideoTask(const Model::CancelVideoTaskRequest &request)const;
|
||||
void cancelVideoTaskAsync(const Model::CancelVideoTaskRequest& request, const CancelVideoTaskAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
CancelVideoTaskOutcomeCallable cancelVideoTaskCallable(const Model::CancelVideoTaskRequest& request) const;
|
||||
ClientAuthOutcome clientAuth(const Model::ClientAuthRequest &request)const;
|
||||
void clientAuthAsync(const Model::ClientAuthRequest& request, const ClientAuthAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
ClientAuthOutcomeCallable clientAuthCallable(const Model::ClientAuthRequest& request) const;
|
||||
ClientStartOutcome clientStart(const Model::ClientStartRequest &request)const;
|
||||
void clientStartAsync(const Model::ClientStartRequest& request, const ClientStartAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
ClientStartOutcomeCallable clientStartCallable(const Model::ClientStartRequest& request) const;
|
||||
CloseTimedResetOperateOutcome closeTimedResetOperate(const Model::CloseTimedResetOperateRequest &request)const;
|
||||
void closeTimedResetOperateAsync(const Model::CloseTimedResetOperateRequest& request, const CloseTimedResetOperateAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
CloseTimedResetOperateOutcomeCallable closeTimedResetOperateCallable(const Model::CloseTimedResetOperateRequest& request) const;
|
||||
@@ -192,6 +213,9 @@ namespace AlibabaCloud
|
||||
QueryVideoTaskInfoOutcome queryVideoTaskInfo(const Model::QueryVideoTaskInfoRequest &request)const;
|
||||
void queryVideoTaskInfoAsync(const Model::QueryVideoTaskInfoRequest& request, const QueryVideoTaskInfoAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
QueryVideoTaskInfoOutcomeCallable queryVideoTaskInfoCallable(const Model::QueryVideoTaskInfoRequest& request) const;
|
||||
Render3dAvatarOutcome render3dAvatar(const Model::Render3dAvatarRequest &request)const;
|
||||
void render3dAvatarAsync(const Model::Render3dAvatarRequest& request, const Render3dAvatarAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
Render3dAvatarOutcomeCallable render3dAvatarCallable(const Model::Render3dAvatarRequest& request) const;
|
||||
SendCommandOutcome sendCommand(const Model::SendCommandRequest &request)const;
|
||||
void sendCommandAsync(const Model::SendCommandRequest& request, const SendCommandAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
SendCommandOutcomeCallable sendCommandCallable(const Model::SendCommandRequest& request) const;
|
||||
|
||||
57
avatar/include/alibabacloud/avatar/model/ClientAuthRequest.h
Normal file
57
avatar/include/alibabacloud/avatar/model/ClientAuthRequest.h
Normal file
@@ -0,0 +1,57 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_AVATAR_MODEL_CLIENTAUTHREQUEST_H_
|
||||
#define ALIBABACLOUD_AVATAR_MODEL_CLIENTAUTHREQUEST_H_
|
||||
|
||||
#include <alibabacloud/avatar/AvatarExport.h>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <map>
|
||||
|
||||
namespace AlibabaCloud {
|
||||
namespace Avatar {
|
||||
namespace Model {
|
||||
class ALIBABACLOUD_AVATAR_EXPORT ClientAuthRequest : public RpcServiceRequest {
|
||||
public:
|
||||
ClientAuthRequest();
|
||||
~ClientAuthRequest();
|
||||
std::string getDeviceId() const;
|
||||
void setDeviceId(const std::string &deviceId);
|
||||
std::string getDeviceType() const;
|
||||
void setDeviceType(const std::string &deviceType);
|
||||
std::string getLicense() const;
|
||||
void setLicense(const std::string &license);
|
||||
std::string getAppId() const;
|
||||
void setAppId(const std::string &appId);
|
||||
long getTenantId() const;
|
||||
void setTenantId(long tenantId);
|
||||
std::string getDeviceInfo() const;
|
||||
void setDeviceInfo(const std::string &deviceInfo);
|
||||
|
||||
private:
|
||||
std::string deviceId_;
|
||||
std::string deviceType_;
|
||||
std::string license_;
|
||||
std::string appId_;
|
||||
long tenantId_;
|
||||
std::string deviceInfo_;
|
||||
};
|
||||
} // namespace Model
|
||||
} // namespace Avatar
|
||||
} // namespace AlibabaCloud
|
||||
#endif // !ALIBABACLOUD_AVATAR_MODEL_CLIENTAUTHREQUEST_H_
|
||||
55
avatar/include/alibabacloud/avatar/model/ClientAuthResult.h
Normal file
55
avatar/include/alibabacloud/avatar/model/ClientAuthResult.h
Normal file
@@ -0,0 +1,55 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_AVATAR_MODEL_CLIENTAUTHRESULT_H_
|
||||
#define ALIBABACLOUD_AVATAR_MODEL_CLIENTAUTHRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/avatar/AvatarExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Avatar
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_AVATAR_EXPORT ClientAuthResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
|
||||
|
||||
ClientAuthResult();
|
||||
explicit ClientAuthResult(const std::string &payload);
|
||||
~ClientAuthResult();
|
||||
std::string getMessage()const;
|
||||
std::string getCode()const;
|
||||
bool getSuccess()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::string message_;
|
||||
std::string code_;
|
||||
bool success_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_AVATAR_MODEL_CLIENTAUTHRESULT_H_
|
||||
@@ -0,0 +1,45 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_AVATAR_MODEL_CLIENTSTARTREQUEST_H_
|
||||
#define ALIBABACLOUD_AVATAR_MODEL_CLIENTSTARTREQUEST_H_
|
||||
|
||||
#include <alibabacloud/avatar/AvatarExport.h>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <map>
|
||||
|
||||
namespace AlibabaCloud {
|
||||
namespace Avatar {
|
||||
namespace Model {
|
||||
class ALIBABACLOUD_AVATAR_EXPORT ClientStartRequest : public RpcServiceRequest {
|
||||
public:
|
||||
ClientStartRequest();
|
||||
~ClientStartRequest();
|
||||
std::string getAppId() const;
|
||||
void setAppId(const std::string &appId);
|
||||
long getTenantId() const;
|
||||
void setTenantId(long tenantId);
|
||||
|
||||
private:
|
||||
std::string appId_;
|
||||
long tenantId_;
|
||||
};
|
||||
} // namespace Model
|
||||
} // namespace Avatar
|
||||
} // namespace AlibabaCloud
|
||||
#endif // !ALIBABACLOUD_AVATAR_MODEL_CLIENTSTARTREQUEST_H_
|
||||
61
avatar/include/alibabacloud/avatar/model/ClientStartResult.h
Normal file
61
avatar/include/alibabacloud/avatar/model/ClientStartResult.h
Normal file
@@ -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_AVATAR_MODEL_CLIENTSTARTRESULT_H_
|
||||
#define ALIBABACLOUD_AVATAR_MODEL_CLIENTSTARTRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/avatar/AvatarExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Avatar
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_AVATAR_EXPORT ClientStartResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct Data
|
||||
{
|
||||
std::string imToken;
|
||||
};
|
||||
|
||||
|
||||
ClientStartResult();
|
||||
explicit ClientStartResult(const std::string &payload);
|
||||
~ClientStartResult();
|
||||
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_AVATAR_MODEL_CLIENTSTARTRESULT_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_AVATAR_MODEL_RENDER3DAVATARREQUEST_H_
|
||||
#define ALIBABACLOUD_AVATAR_MODEL_RENDER3DAVATARREQUEST_H_
|
||||
|
||||
#include <alibabacloud/avatar/AvatarExport.h>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <map>
|
||||
|
||||
namespace AlibabaCloud {
|
||||
namespace Avatar {
|
||||
namespace Model {
|
||||
class ALIBABACLOUD_AVATAR_EXPORT Render3dAvatarRequest : public RpcServiceRequest {
|
||||
public:
|
||||
Render3dAvatarRequest();
|
||||
~Render3dAvatarRequest();
|
||||
std::string getCode() const;
|
||||
void setCode(const std::string &code);
|
||||
std::string getAppId() const;
|
||||
void setAppId(const std::string &appId);
|
||||
long getTenantId() const;
|
||||
void setTenantId(long tenantId);
|
||||
|
||||
private:
|
||||
std::string code_;
|
||||
std::string appId_;
|
||||
long tenantId_;
|
||||
};
|
||||
} // namespace Model
|
||||
} // namespace Avatar
|
||||
} // namespace AlibabaCloud
|
||||
#endif // !ALIBABACLOUD_AVATAR_MODEL_RENDER3DAVATARREQUEST_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_AVATAR_MODEL_RENDER3DAVATARRESULT_H_
|
||||
#define ALIBABACLOUD_AVATAR_MODEL_RENDER3DAVATARRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/avatar/AvatarExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Avatar
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_AVATAR_EXPORT Render3dAvatarResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct Data
|
||||
{
|
||||
std::string renderData;
|
||||
};
|
||||
|
||||
|
||||
Render3dAvatarResult();
|
||||
explicit Render3dAvatarResult(const std::string &payload);
|
||||
~Render3dAvatarResult();
|
||||
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_AVATAR_MODEL_RENDER3DAVATARRESULT_H_
|
||||
@@ -87,6 +87,78 @@ AvatarClient::CancelVideoTaskOutcomeCallable AvatarClient::cancelVideoTaskCallab
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
AvatarClient::ClientAuthOutcome AvatarClient::clientAuth(const ClientAuthRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return ClientAuthOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return ClientAuthOutcome(ClientAuthResult(outcome.result()));
|
||||
else
|
||||
return ClientAuthOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void AvatarClient::clientAuthAsync(const ClientAuthRequest& request, const ClientAuthAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, clientAuth(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
AvatarClient::ClientAuthOutcomeCallable AvatarClient::clientAuthCallable(const ClientAuthRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<ClientAuthOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->clientAuth(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
AvatarClient::ClientStartOutcome AvatarClient::clientStart(const ClientStartRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return ClientStartOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return ClientStartOutcome(ClientStartResult(outcome.result()));
|
||||
else
|
||||
return ClientStartOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void AvatarClient::clientStartAsync(const ClientStartRequest& request, const ClientStartAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, clientStart(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
AvatarClient::ClientStartOutcomeCallable AvatarClient::clientStartCallable(const ClientStartRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<ClientStartOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->clientStart(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
AvatarClient::CloseTimedResetOperateOutcome AvatarClient::closeTimedResetOperate(const CloseTimedResetOperateRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -483,6 +555,42 @@ AvatarClient::QueryVideoTaskInfoOutcomeCallable AvatarClient::queryVideoTaskInfo
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
AvatarClient::Render3dAvatarOutcome AvatarClient::render3dAvatar(const Render3dAvatarRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return Render3dAvatarOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return Render3dAvatarOutcome(Render3dAvatarResult(outcome.result()));
|
||||
else
|
||||
return Render3dAvatarOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void AvatarClient::render3dAvatarAsync(const Render3dAvatarRequest& request, const Render3dAvatarAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, render3dAvatar(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
AvatarClient::Render3dAvatarOutcomeCallable AvatarClient::render3dAvatarCallable(const Render3dAvatarRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<Render3dAvatarOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->render3dAvatar(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
AvatarClient::SendCommandOutcome AvatarClient::sendCommand(const SendCommandRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
|
||||
81
avatar/src/model/ClientAuthRequest.cc
Normal file
81
avatar/src/model/ClientAuthRequest.cc
Normal file
@@ -0,0 +1,81 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/avatar/model/ClientAuthRequest.h>
|
||||
|
||||
using AlibabaCloud::Avatar::Model::ClientAuthRequest;
|
||||
|
||||
ClientAuthRequest::ClientAuthRequest()
|
||||
: RpcServiceRequest("avatar", "2022-01-30", "ClientAuth") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
ClientAuthRequest::~ClientAuthRequest() {}
|
||||
|
||||
std::string ClientAuthRequest::getDeviceId() const {
|
||||
return deviceId_;
|
||||
}
|
||||
|
||||
void ClientAuthRequest::setDeviceId(const std::string &deviceId) {
|
||||
deviceId_ = deviceId;
|
||||
setParameter(std::string("DeviceId"), deviceId);
|
||||
}
|
||||
|
||||
std::string ClientAuthRequest::getDeviceType() const {
|
||||
return deviceType_;
|
||||
}
|
||||
|
||||
void ClientAuthRequest::setDeviceType(const std::string &deviceType) {
|
||||
deviceType_ = deviceType;
|
||||
setParameter(std::string("DeviceType"), deviceType);
|
||||
}
|
||||
|
||||
std::string ClientAuthRequest::getLicense() const {
|
||||
return license_;
|
||||
}
|
||||
|
||||
void ClientAuthRequest::setLicense(const std::string &license) {
|
||||
license_ = license;
|
||||
setParameter(std::string("License"), license);
|
||||
}
|
||||
|
||||
std::string ClientAuthRequest::getAppId() const {
|
||||
return appId_;
|
||||
}
|
||||
|
||||
void ClientAuthRequest::setAppId(const std::string &appId) {
|
||||
appId_ = appId;
|
||||
setParameter(std::string("AppId"), appId);
|
||||
}
|
||||
|
||||
long ClientAuthRequest::getTenantId() const {
|
||||
return tenantId_;
|
||||
}
|
||||
|
||||
void ClientAuthRequest::setTenantId(long tenantId) {
|
||||
tenantId_ = tenantId;
|
||||
setParameter(std::string("TenantId"), std::to_string(tenantId));
|
||||
}
|
||||
|
||||
std::string ClientAuthRequest::getDeviceInfo() const {
|
||||
return deviceInfo_;
|
||||
}
|
||||
|
||||
void ClientAuthRequest::setDeviceInfo(const std::string &deviceInfo) {
|
||||
deviceInfo_ = deviceInfo;
|
||||
setParameter(std::string("DeviceInfo"), deviceInfo);
|
||||
}
|
||||
|
||||
65
avatar/src/model/ClientAuthResult.cc
Normal file
65
avatar/src/model/ClientAuthResult.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/avatar/model/ClientAuthResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Avatar;
|
||||
using namespace AlibabaCloud::Avatar::Model;
|
||||
|
||||
ClientAuthResult::ClientAuthResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
ClientAuthResult::ClientAuthResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
ClientAuthResult::~ClientAuthResult()
|
||||
{}
|
||||
|
||||
void ClientAuthResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
if(!value["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string ClientAuthResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
std::string ClientAuthResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
bool ClientAuthResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
45
avatar/src/model/ClientStartRequest.cc
Normal file
45
avatar/src/model/ClientStartRequest.cc
Normal file
@@ -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.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/avatar/model/ClientStartRequest.h>
|
||||
|
||||
using AlibabaCloud::Avatar::Model::ClientStartRequest;
|
||||
|
||||
ClientStartRequest::ClientStartRequest()
|
||||
: RpcServiceRequest("avatar", "2022-01-30", "ClientStart") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
ClientStartRequest::~ClientStartRequest() {}
|
||||
|
||||
std::string ClientStartRequest::getAppId() const {
|
||||
return appId_;
|
||||
}
|
||||
|
||||
void ClientStartRequest::setAppId(const std::string &appId) {
|
||||
appId_ = appId;
|
||||
setParameter(std::string("AppId"), appId);
|
||||
}
|
||||
|
||||
long ClientStartRequest::getTenantId() const {
|
||||
return tenantId_;
|
||||
}
|
||||
|
||||
void ClientStartRequest::setTenantId(long tenantId) {
|
||||
tenantId_ = tenantId;
|
||||
setParameter(std::string("TenantId"), std::to_string(tenantId));
|
||||
}
|
||||
|
||||
73
avatar/src/model/ClientStartResult.cc
Normal file
73
avatar/src/model/ClientStartResult.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/avatar/model/ClientStartResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Avatar;
|
||||
using namespace AlibabaCloud::Avatar::Model;
|
||||
|
||||
ClientStartResult::ClientStartResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
ClientStartResult::ClientStartResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
ClientStartResult::~ClientStartResult()
|
||||
{}
|
||||
|
||||
void ClientStartResult::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["ImToken"].isNull())
|
||||
data_.imToken = dataNode["ImToken"].asString();
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
if(!value["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string ClientStartResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
ClientStartResult::Data ClientStartResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
std::string ClientStartResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
bool ClientStartResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
54
avatar/src/model/Render3dAvatarRequest.cc
Normal file
54
avatar/src/model/Render3dAvatarRequest.cc
Normal file
@@ -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.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/avatar/model/Render3dAvatarRequest.h>
|
||||
|
||||
using AlibabaCloud::Avatar::Model::Render3dAvatarRequest;
|
||||
|
||||
Render3dAvatarRequest::Render3dAvatarRequest()
|
||||
: RpcServiceRequest("avatar", "2022-01-30", "Render3dAvatar") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
Render3dAvatarRequest::~Render3dAvatarRequest() {}
|
||||
|
||||
std::string Render3dAvatarRequest::getCode() const {
|
||||
return code_;
|
||||
}
|
||||
|
||||
void Render3dAvatarRequest::setCode(const std::string &code) {
|
||||
code_ = code;
|
||||
setParameter(std::string("Code"), code);
|
||||
}
|
||||
|
||||
std::string Render3dAvatarRequest::getAppId() const {
|
||||
return appId_;
|
||||
}
|
||||
|
||||
void Render3dAvatarRequest::setAppId(const std::string &appId) {
|
||||
appId_ = appId;
|
||||
setParameter(std::string("AppId"), appId);
|
||||
}
|
||||
|
||||
long Render3dAvatarRequest::getTenantId() const {
|
||||
return tenantId_;
|
||||
}
|
||||
|
||||
void Render3dAvatarRequest::setTenantId(long tenantId) {
|
||||
tenantId_ = tenantId;
|
||||
setParameter(std::string("TenantId"), std::to_string(tenantId));
|
||||
}
|
||||
|
||||
73
avatar/src/model/Render3dAvatarResult.cc
Normal file
73
avatar/src/model/Render3dAvatarResult.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/avatar/model/Render3dAvatarResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Avatar;
|
||||
using namespace AlibabaCloud::Avatar::Model;
|
||||
|
||||
Render3dAvatarResult::Render3dAvatarResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
Render3dAvatarResult::Render3dAvatarResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
Render3dAvatarResult::~Render3dAvatarResult()
|
||||
{}
|
||||
|
||||
void Render3dAvatarResult::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["RenderData"].isNull())
|
||||
data_.renderData = dataNode["RenderData"].asString();
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
if(!value["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string Render3dAvatarResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
Render3dAvatarResult::Data Render3dAvatarResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
std::string Render3dAvatarResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
bool Render3dAvatarResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
@@ -21,6 +21,8 @@ set(cams_public_header
|
||||
include/alibabacloud/cams/CamsExport.h )
|
||||
|
||||
set(cams_public_header_model
|
||||
include/alibabacloud/cams/model/AddChatappPhoneNumberRequest.h
|
||||
include/alibabacloud/cams/model/AddChatappPhoneNumberResult.h
|
||||
include/alibabacloud/cams/model/BeeBotAssociateRequest.h
|
||||
include/alibabacloud/cams/model/BeeBotAssociateResult.h
|
||||
include/alibabacloud/cams/model/BeeBotChatRequest.h
|
||||
@@ -33,6 +35,8 @@ set(cams_public_header_model
|
||||
include/alibabacloud/cams/model/ChatappMigrationRegisterResult.h
|
||||
include/alibabacloud/cams/model/ChatappMigrationVerifiedRequest.h
|
||||
include/alibabacloud/cams/model/ChatappMigrationVerifiedResult.h
|
||||
include/alibabacloud/cams/model/ChatappPhoneNumberDeregisterRequest.h
|
||||
include/alibabacloud/cams/model/ChatappPhoneNumberDeregisterResult.h
|
||||
include/alibabacloud/cams/model/ChatappPhoneNumberRegisterRequest.h
|
||||
include/alibabacloud/cams/model/ChatappPhoneNumberRegisterResult.h
|
||||
include/alibabacloud/cams/model/ChatappSyncPhoneNumberRequest.h
|
||||
@@ -45,8 +49,14 @@ set(cams_public_header_model
|
||||
include/alibabacloud/cams/model/CreateChatappTemplateResult.h
|
||||
include/alibabacloud/cams/model/DeleteChatappTemplateRequest.h
|
||||
include/alibabacloud/cams/model/DeleteChatappTemplateResult.h
|
||||
include/alibabacloud/cams/model/EnableWhatsappROIMetricRequest.h
|
||||
include/alibabacloud/cams/model/EnableWhatsappROIMetricResult.h
|
||||
include/alibabacloud/cams/model/GetChatappPhoneNumberMetricRequest.h
|
||||
include/alibabacloud/cams/model/GetChatappPhoneNumberMetricResult.h
|
||||
include/alibabacloud/cams/model/GetChatappTemplateDetailRequest.h
|
||||
include/alibabacloud/cams/model/GetChatappTemplateDetailResult.h
|
||||
include/alibabacloud/cams/model/GetChatappTemplateMetricRequest.h
|
||||
include/alibabacloud/cams/model/GetChatappTemplateMetricResult.h
|
||||
include/alibabacloud/cams/model/GetChatappUploadAuthorizationRequest.h
|
||||
include/alibabacloud/cams/model/GetChatappUploadAuthorizationResult.h
|
||||
include/alibabacloud/cams/model/GetChatappVerifyCodeRequest.h
|
||||
@@ -55,10 +65,18 @@ set(cams_public_header_model
|
||||
include/alibabacloud/cams/model/GetMigrationVerifyCodeResult.h
|
||||
include/alibabacloud/cams/model/GetPhoneNumberVerificationStatusRequest.h
|
||||
include/alibabacloud/cams/model/GetPhoneNumberVerificationStatusResult.h
|
||||
include/alibabacloud/cams/model/GetPreValidatePhoneIdRequest.h
|
||||
include/alibabacloud/cams/model/GetPreValidatePhoneIdResult.h
|
||||
include/alibabacloud/cams/model/GetWhatsappConnectionCatalogRequest.h
|
||||
include/alibabacloud/cams/model/GetWhatsappConnectionCatalogResult.h
|
||||
include/alibabacloud/cams/model/IsvGetAppIdRequest.h
|
||||
include/alibabacloud/cams/model/IsvGetAppIdResult.h
|
||||
include/alibabacloud/cams/model/ListChatappTemplateRequest.h
|
||||
include/alibabacloud/cams/model/ListChatappTemplateResult.h
|
||||
include/alibabacloud/cams/model/ListProductRequest.h
|
||||
include/alibabacloud/cams/model/ListProductResult.h
|
||||
include/alibabacloud/cams/model/ListProductCatalogRequest.h
|
||||
include/alibabacloud/cams/model/ListProductCatalogResult.h
|
||||
include/alibabacloud/cams/model/ModifyChatappTemplateRequest.h
|
||||
include/alibabacloud/cams/model/ModifyChatappTemplateResult.h
|
||||
include/alibabacloud/cams/model/ModifyPhoneBusinessProfileRequest.h
|
||||
@@ -84,6 +102,8 @@ set(cams_public_header_model
|
||||
|
||||
set(cams_src
|
||||
src/CamsClient.cc
|
||||
src/model/AddChatappPhoneNumberRequest.cc
|
||||
src/model/AddChatappPhoneNumberResult.cc
|
||||
src/model/BeeBotAssociateRequest.cc
|
||||
src/model/BeeBotAssociateResult.cc
|
||||
src/model/BeeBotChatRequest.cc
|
||||
@@ -96,6 +116,8 @@ set(cams_src
|
||||
src/model/ChatappMigrationRegisterResult.cc
|
||||
src/model/ChatappMigrationVerifiedRequest.cc
|
||||
src/model/ChatappMigrationVerifiedResult.cc
|
||||
src/model/ChatappPhoneNumberDeregisterRequest.cc
|
||||
src/model/ChatappPhoneNumberDeregisterResult.cc
|
||||
src/model/ChatappPhoneNumberRegisterRequest.cc
|
||||
src/model/ChatappPhoneNumberRegisterResult.cc
|
||||
src/model/ChatappSyncPhoneNumberRequest.cc
|
||||
@@ -108,8 +130,14 @@ set(cams_src
|
||||
src/model/CreateChatappTemplateResult.cc
|
||||
src/model/DeleteChatappTemplateRequest.cc
|
||||
src/model/DeleteChatappTemplateResult.cc
|
||||
src/model/EnableWhatsappROIMetricRequest.cc
|
||||
src/model/EnableWhatsappROIMetricResult.cc
|
||||
src/model/GetChatappPhoneNumberMetricRequest.cc
|
||||
src/model/GetChatappPhoneNumberMetricResult.cc
|
||||
src/model/GetChatappTemplateDetailRequest.cc
|
||||
src/model/GetChatappTemplateDetailResult.cc
|
||||
src/model/GetChatappTemplateMetricRequest.cc
|
||||
src/model/GetChatappTemplateMetricResult.cc
|
||||
src/model/GetChatappUploadAuthorizationRequest.cc
|
||||
src/model/GetChatappUploadAuthorizationResult.cc
|
||||
src/model/GetChatappVerifyCodeRequest.cc
|
||||
@@ -118,10 +146,18 @@ set(cams_src
|
||||
src/model/GetMigrationVerifyCodeResult.cc
|
||||
src/model/GetPhoneNumberVerificationStatusRequest.cc
|
||||
src/model/GetPhoneNumberVerificationStatusResult.cc
|
||||
src/model/GetPreValidatePhoneIdRequest.cc
|
||||
src/model/GetPreValidatePhoneIdResult.cc
|
||||
src/model/GetWhatsappConnectionCatalogRequest.cc
|
||||
src/model/GetWhatsappConnectionCatalogResult.cc
|
||||
src/model/IsvGetAppIdRequest.cc
|
||||
src/model/IsvGetAppIdResult.cc
|
||||
src/model/ListChatappTemplateRequest.cc
|
||||
src/model/ListChatappTemplateResult.cc
|
||||
src/model/ListProductRequest.cc
|
||||
src/model/ListProductResult.cc
|
||||
src/model/ListProductCatalogRequest.cc
|
||||
src/model/ListProductCatalogResult.cc
|
||||
src/model/ModifyChatappTemplateRequest.cc
|
||||
src/model/ModifyChatappTemplateResult.cc
|
||||
src/model/ModifyPhoneBusinessProfileRequest.cc
|
||||
|
||||
@@ -22,6 +22,8 @@
|
||||
#include <alibabacloud/core/EndpointProvider.h>
|
||||
#include <alibabacloud/core/RpcServiceClient.h>
|
||||
#include "CamsExport.h"
|
||||
#include "model/AddChatappPhoneNumberRequest.h"
|
||||
#include "model/AddChatappPhoneNumberResult.h"
|
||||
#include "model/BeeBotAssociateRequest.h"
|
||||
#include "model/BeeBotAssociateResult.h"
|
||||
#include "model/BeeBotChatRequest.h"
|
||||
@@ -34,6 +36,8 @@
|
||||
#include "model/ChatappMigrationRegisterResult.h"
|
||||
#include "model/ChatappMigrationVerifiedRequest.h"
|
||||
#include "model/ChatappMigrationVerifiedResult.h"
|
||||
#include "model/ChatappPhoneNumberDeregisterRequest.h"
|
||||
#include "model/ChatappPhoneNumberDeregisterResult.h"
|
||||
#include "model/ChatappPhoneNumberRegisterRequest.h"
|
||||
#include "model/ChatappPhoneNumberRegisterResult.h"
|
||||
#include "model/ChatappSyncPhoneNumberRequest.h"
|
||||
@@ -46,8 +50,14 @@
|
||||
#include "model/CreateChatappTemplateResult.h"
|
||||
#include "model/DeleteChatappTemplateRequest.h"
|
||||
#include "model/DeleteChatappTemplateResult.h"
|
||||
#include "model/EnableWhatsappROIMetricRequest.h"
|
||||
#include "model/EnableWhatsappROIMetricResult.h"
|
||||
#include "model/GetChatappPhoneNumberMetricRequest.h"
|
||||
#include "model/GetChatappPhoneNumberMetricResult.h"
|
||||
#include "model/GetChatappTemplateDetailRequest.h"
|
||||
#include "model/GetChatappTemplateDetailResult.h"
|
||||
#include "model/GetChatappTemplateMetricRequest.h"
|
||||
#include "model/GetChatappTemplateMetricResult.h"
|
||||
#include "model/GetChatappUploadAuthorizationRequest.h"
|
||||
#include "model/GetChatappUploadAuthorizationResult.h"
|
||||
#include "model/GetChatappVerifyCodeRequest.h"
|
||||
@@ -56,10 +66,18 @@
|
||||
#include "model/GetMigrationVerifyCodeResult.h"
|
||||
#include "model/GetPhoneNumberVerificationStatusRequest.h"
|
||||
#include "model/GetPhoneNumberVerificationStatusResult.h"
|
||||
#include "model/GetPreValidatePhoneIdRequest.h"
|
||||
#include "model/GetPreValidatePhoneIdResult.h"
|
||||
#include "model/GetWhatsappConnectionCatalogRequest.h"
|
||||
#include "model/GetWhatsappConnectionCatalogResult.h"
|
||||
#include "model/IsvGetAppIdRequest.h"
|
||||
#include "model/IsvGetAppIdResult.h"
|
||||
#include "model/ListChatappTemplateRequest.h"
|
||||
#include "model/ListChatappTemplateResult.h"
|
||||
#include "model/ListProductRequest.h"
|
||||
#include "model/ListProductResult.h"
|
||||
#include "model/ListProductCatalogRequest.h"
|
||||
#include "model/ListProductCatalogResult.h"
|
||||
#include "model/ModifyChatappTemplateRequest.h"
|
||||
#include "model/ModifyChatappTemplateResult.h"
|
||||
#include "model/ModifyPhoneBusinessProfileRequest.h"
|
||||
@@ -91,6 +109,9 @@ namespace AlibabaCloud
|
||||
class ALIBABACLOUD_CAMS_EXPORT CamsClient : public RpcServiceClient
|
||||
{
|
||||
public:
|
||||
typedef Outcome<Error, Model::AddChatappPhoneNumberResult> AddChatappPhoneNumberOutcome;
|
||||
typedef std::future<AddChatappPhoneNumberOutcome> AddChatappPhoneNumberOutcomeCallable;
|
||||
typedef std::function<void(const CamsClient*, const Model::AddChatappPhoneNumberRequest&, const AddChatappPhoneNumberOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> AddChatappPhoneNumberAsyncHandler;
|
||||
typedef Outcome<Error, Model::BeeBotAssociateResult> BeeBotAssociateOutcome;
|
||||
typedef std::future<BeeBotAssociateOutcome> BeeBotAssociateOutcomeCallable;
|
||||
typedef std::function<void(const CamsClient*, const Model::BeeBotAssociateRequest&, const BeeBotAssociateOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> BeeBotAssociateAsyncHandler;
|
||||
@@ -109,6 +130,9 @@ namespace AlibabaCloud
|
||||
typedef Outcome<Error, Model::ChatappMigrationVerifiedResult> ChatappMigrationVerifiedOutcome;
|
||||
typedef std::future<ChatappMigrationVerifiedOutcome> ChatappMigrationVerifiedOutcomeCallable;
|
||||
typedef std::function<void(const CamsClient*, const Model::ChatappMigrationVerifiedRequest&, const ChatappMigrationVerifiedOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ChatappMigrationVerifiedAsyncHandler;
|
||||
typedef Outcome<Error, Model::ChatappPhoneNumberDeregisterResult> ChatappPhoneNumberDeregisterOutcome;
|
||||
typedef std::future<ChatappPhoneNumberDeregisterOutcome> ChatappPhoneNumberDeregisterOutcomeCallable;
|
||||
typedef std::function<void(const CamsClient*, const Model::ChatappPhoneNumberDeregisterRequest&, const ChatappPhoneNumberDeregisterOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ChatappPhoneNumberDeregisterAsyncHandler;
|
||||
typedef Outcome<Error, Model::ChatappPhoneNumberRegisterResult> ChatappPhoneNumberRegisterOutcome;
|
||||
typedef std::future<ChatappPhoneNumberRegisterOutcome> ChatappPhoneNumberRegisterOutcomeCallable;
|
||||
typedef std::function<void(const CamsClient*, const Model::ChatappPhoneNumberRegisterRequest&, const ChatappPhoneNumberRegisterOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ChatappPhoneNumberRegisterAsyncHandler;
|
||||
@@ -127,9 +151,18 @@ namespace AlibabaCloud
|
||||
typedef Outcome<Error, Model::DeleteChatappTemplateResult> DeleteChatappTemplateOutcome;
|
||||
typedef std::future<DeleteChatappTemplateOutcome> DeleteChatappTemplateOutcomeCallable;
|
||||
typedef std::function<void(const CamsClient*, const Model::DeleteChatappTemplateRequest&, const DeleteChatappTemplateOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DeleteChatappTemplateAsyncHandler;
|
||||
typedef Outcome<Error, Model::EnableWhatsappROIMetricResult> EnableWhatsappROIMetricOutcome;
|
||||
typedef std::future<EnableWhatsappROIMetricOutcome> EnableWhatsappROIMetricOutcomeCallable;
|
||||
typedef std::function<void(const CamsClient*, const Model::EnableWhatsappROIMetricRequest&, const EnableWhatsappROIMetricOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> EnableWhatsappROIMetricAsyncHandler;
|
||||
typedef Outcome<Error, Model::GetChatappPhoneNumberMetricResult> GetChatappPhoneNumberMetricOutcome;
|
||||
typedef std::future<GetChatappPhoneNumberMetricOutcome> GetChatappPhoneNumberMetricOutcomeCallable;
|
||||
typedef std::function<void(const CamsClient*, const Model::GetChatappPhoneNumberMetricRequest&, const GetChatappPhoneNumberMetricOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetChatappPhoneNumberMetricAsyncHandler;
|
||||
typedef Outcome<Error, Model::GetChatappTemplateDetailResult> GetChatappTemplateDetailOutcome;
|
||||
typedef std::future<GetChatappTemplateDetailOutcome> GetChatappTemplateDetailOutcomeCallable;
|
||||
typedef std::function<void(const CamsClient*, const Model::GetChatappTemplateDetailRequest&, const GetChatappTemplateDetailOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetChatappTemplateDetailAsyncHandler;
|
||||
typedef Outcome<Error, Model::GetChatappTemplateMetricResult> GetChatappTemplateMetricOutcome;
|
||||
typedef std::future<GetChatappTemplateMetricOutcome> GetChatappTemplateMetricOutcomeCallable;
|
||||
typedef std::function<void(const CamsClient*, const Model::GetChatappTemplateMetricRequest&, const GetChatappTemplateMetricOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetChatappTemplateMetricAsyncHandler;
|
||||
typedef Outcome<Error, Model::GetChatappUploadAuthorizationResult> GetChatappUploadAuthorizationOutcome;
|
||||
typedef std::future<GetChatappUploadAuthorizationOutcome> GetChatappUploadAuthorizationOutcomeCallable;
|
||||
typedef std::function<void(const CamsClient*, const Model::GetChatappUploadAuthorizationRequest&, const GetChatappUploadAuthorizationOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetChatappUploadAuthorizationAsyncHandler;
|
||||
@@ -142,12 +175,24 @@ namespace AlibabaCloud
|
||||
typedef Outcome<Error, Model::GetPhoneNumberVerificationStatusResult> GetPhoneNumberVerificationStatusOutcome;
|
||||
typedef std::future<GetPhoneNumberVerificationStatusOutcome> GetPhoneNumberVerificationStatusOutcomeCallable;
|
||||
typedef std::function<void(const CamsClient*, const Model::GetPhoneNumberVerificationStatusRequest&, const GetPhoneNumberVerificationStatusOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetPhoneNumberVerificationStatusAsyncHandler;
|
||||
typedef Outcome<Error, Model::GetPreValidatePhoneIdResult> GetPreValidatePhoneIdOutcome;
|
||||
typedef std::future<GetPreValidatePhoneIdOutcome> GetPreValidatePhoneIdOutcomeCallable;
|
||||
typedef std::function<void(const CamsClient*, const Model::GetPreValidatePhoneIdRequest&, const GetPreValidatePhoneIdOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetPreValidatePhoneIdAsyncHandler;
|
||||
typedef Outcome<Error, Model::GetWhatsappConnectionCatalogResult> GetWhatsappConnectionCatalogOutcome;
|
||||
typedef std::future<GetWhatsappConnectionCatalogOutcome> GetWhatsappConnectionCatalogOutcomeCallable;
|
||||
typedef std::function<void(const CamsClient*, const Model::GetWhatsappConnectionCatalogRequest&, const GetWhatsappConnectionCatalogOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetWhatsappConnectionCatalogAsyncHandler;
|
||||
typedef Outcome<Error, Model::IsvGetAppIdResult> IsvGetAppIdOutcome;
|
||||
typedef std::future<IsvGetAppIdOutcome> IsvGetAppIdOutcomeCallable;
|
||||
typedef std::function<void(const CamsClient*, const Model::IsvGetAppIdRequest&, const IsvGetAppIdOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> IsvGetAppIdAsyncHandler;
|
||||
typedef Outcome<Error, Model::ListChatappTemplateResult> ListChatappTemplateOutcome;
|
||||
typedef std::future<ListChatappTemplateOutcome> ListChatappTemplateOutcomeCallable;
|
||||
typedef std::function<void(const CamsClient*, const Model::ListChatappTemplateRequest&, const ListChatappTemplateOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ListChatappTemplateAsyncHandler;
|
||||
typedef Outcome<Error, Model::ListProductResult> ListProductOutcome;
|
||||
typedef std::future<ListProductOutcome> ListProductOutcomeCallable;
|
||||
typedef std::function<void(const CamsClient*, const Model::ListProductRequest&, const ListProductOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ListProductAsyncHandler;
|
||||
typedef Outcome<Error, Model::ListProductCatalogResult> ListProductCatalogOutcome;
|
||||
typedef std::future<ListProductCatalogOutcome> ListProductCatalogOutcomeCallable;
|
||||
typedef std::function<void(const CamsClient*, const Model::ListProductCatalogRequest&, const ListProductCatalogOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ListProductCatalogAsyncHandler;
|
||||
typedef Outcome<Error, Model::ModifyChatappTemplateResult> ModifyChatappTemplateOutcome;
|
||||
typedef std::future<ModifyChatappTemplateOutcome> ModifyChatappTemplateOutcomeCallable;
|
||||
typedef std::function<void(const CamsClient*, const Model::ModifyChatappTemplateRequest&, const ModifyChatappTemplateOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ModifyChatappTemplateAsyncHandler;
|
||||
@@ -186,6 +231,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();
|
||||
AddChatappPhoneNumberOutcome addChatappPhoneNumber(const Model::AddChatappPhoneNumberRequest &request)const;
|
||||
void addChatappPhoneNumberAsync(const Model::AddChatappPhoneNumberRequest& request, const AddChatappPhoneNumberAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
AddChatappPhoneNumberOutcomeCallable addChatappPhoneNumberCallable(const Model::AddChatappPhoneNumberRequest& request) const;
|
||||
BeeBotAssociateOutcome beeBotAssociate(const Model::BeeBotAssociateRequest &request)const;
|
||||
void beeBotAssociateAsync(const Model::BeeBotAssociateRequest& request, const BeeBotAssociateAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
BeeBotAssociateOutcomeCallable beeBotAssociateCallable(const Model::BeeBotAssociateRequest& request) const;
|
||||
@@ -204,6 +252,9 @@ namespace AlibabaCloud
|
||||
ChatappMigrationVerifiedOutcome chatappMigrationVerified(const Model::ChatappMigrationVerifiedRequest &request)const;
|
||||
void chatappMigrationVerifiedAsync(const Model::ChatappMigrationVerifiedRequest& request, const ChatappMigrationVerifiedAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
ChatappMigrationVerifiedOutcomeCallable chatappMigrationVerifiedCallable(const Model::ChatappMigrationVerifiedRequest& request) const;
|
||||
ChatappPhoneNumberDeregisterOutcome chatappPhoneNumberDeregister(const Model::ChatappPhoneNumberDeregisterRequest &request)const;
|
||||
void chatappPhoneNumberDeregisterAsync(const Model::ChatappPhoneNumberDeregisterRequest& request, const ChatappPhoneNumberDeregisterAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
ChatappPhoneNumberDeregisterOutcomeCallable chatappPhoneNumberDeregisterCallable(const Model::ChatappPhoneNumberDeregisterRequest& request) const;
|
||||
ChatappPhoneNumberRegisterOutcome chatappPhoneNumberRegister(const Model::ChatappPhoneNumberRegisterRequest &request)const;
|
||||
void chatappPhoneNumberRegisterAsync(const Model::ChatappPhoneNumberRegisterRequest& request, const ChatappPhoneNumberRegisterAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
ChatappPhoneNumberRegisterOutcomeCallable chatappPhoneNumberRegisterCallable(const Model::ChatappPhoneNumberRegisterRequest& request) const;
|
||||
@@ -222,9 +273,18 @@ namespace AlibabaCloud
|
||||
DeleteChatappTemplateOutcome deleteChatappTemplate(const Model::DeleteChatappTemplateRequest &request)const;
|
||||
void deleteChatappTemplateAsync(const Model::DeleteChatappTemplateRequest& request, const DeleteChatappTemplateAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DeleteChatappTemplateOutcomeCallable deleteChatappTemplateCallable(const Model::DeleteChatappTemplateRequest& request) const;
|
||||
EnableWhatsappROIMetricOutcome enableWhatsappROIMetric(const Model::EnableWhatsappROIMetricRequest &request)const;
|
||||
void enableWhatsappROIMetricAsync(const Model::EnableWhatsappROIMetricRequest& request, const EnableWhatsappROIMetricAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
EnableWhatsappROIMetricOutcomeCallable enableWhatsappROIMetricCallable(const Model::EnableWhatsappROIMetricRequest& request) const;
|
||||
GetChatappPhoneNumberMetricOutcome getChatappPhoneNumberMetric(const Model::GetChatappPhoneNumberMetricRequest &request)const;
|
||||
void getChatappPhoneNumberMetricAsync(const Model::GetChatappPhoneNumberMetricRequest& request, const GetChatappPhoneNumberMetricAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
GetChatappPhoneNumberMetricOutcomeCallable getChatappPhoneNumberMetricCallable(const Model::GetChatappPhoneNumberMetricRequest& request) const;
|
||||
GetChatappTemplateDetailOutcome getChatappTemplateDetail(const Model::GetChatappTemplateDetailRequest &request)const;
|
||||
void getChatappTemplateDetailAsync(const Model::GetChatappTemplateDetailRequest& request, const GetChatappTemplateDetailAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
GetChatappTemplateDetailOutcomeCallable getChatappTemplateDetailCallable(const Model::GetChatappTemplateDetailRequest& request) const;
|
||||
GetChatappTemplateMetricOutcome getChatappTemplateMetric(const Model::GetChatappTemplateMetricRequest &request)const;
|
||||
void getChatappTemplateMetricAsync(const Model::GetChatappTemplateMetricRequest& request, const GetChatappTemplateMetricAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
GetChatappTemplateMetricOutcomeCallable getChatappTemplateMetricCallable(const Model::GetChatappTemplateMetricRequest& request) const;
|
||||
GetChatappUploadAuthorizationOutcome getChatappUploadAuthorization(const Model::GetChatappUploadAuthorizationRequest &request)const;
|
||||
void getChatappUploadAuthorizationAsync(const Model::GetChatappUploadAuthorizationRequest& request, const GetChatappUploadAuthorizationAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
GetChatappUploadAuthorizationOutcomeCallable getChatappUploadAuthorizationCallable(const Model::GetChatappUploadAuthorizationRequest& request) const;
|
||||
@@ -237,12 +297,24 @@ namespace AlibabaCloud
|
||||
GetPhoneNumberVerificationStatusOutcome getPhoneNumberVerificationStatus(const Model::GetPhoneNumberVerificationStatusRequest &request)const;
|
||||
void getPhoneNumberVerificationStatusAsync(const Model::GetPhoneNumberVerificationStatusRequest& request, const GetPhoneNumberVerificationStatusAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
GetPhoneNumberVerificationStatusOutcomeCallable getPhoneNumberVerificationStatusCallable(const Model::GetPhoneNumberVerificationStatusRequest& request) const;
|
||||
GetPreValidatePhoneIdOutcome getPreValidatePhoneId(const Model::GetPreValidatePhoneIdRequest &request)const;
|
||||
void getPreValidatePhoneIdAsync(const Model::GetPreValidatePhoneIdRequest& request, const GetPreValidatePhoneIdAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
GetPreValidatePhoneIdOutcomeCallable getPreValidatePhoneIdCallable(const Model::GetPreValidatePhoneIdRequest& request) const;
|
||||
GetWhatsappConnectionCatalogOutcome getWhatsappConnectionCatalog(const Model::GetWhatsappConnectionCatalogRequest &request)const;
|
||||
void getWhatsappConnectionCatalogAsync(const Model::GetWhatsappConnectionCatalogRequest& request, const GetWhatsappConnectionCatalogAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
GetWhatsappConnectionCatalogOutcomeCallable getWhatsappConnectionCatalogCallable(const Model::GetWhatsappConnectionCatalogRequest& request) const;
|
||||
IsvGetAppIdOutcome isvGetAppId(const Model::IsvGetAppIdRequest &request)const;
|
||||
void isvGetAppIdAsync(const Model::IsvGetAppIdRequest& request, const IsvGetAppIdAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
IsvGetAppIdOutcomeCallable isvGetAppIdCallable(const Model::IsvGetAppIdRequest& request) const;
|
||||
ListChatappTemplateOutcome listChatappTemplate(const Model::ListChatappTemplateRequest &request)const;
|
||||
void listChatappTemplateAsync(const Model::ListChatappTemplateRequest& request, const ListChatappTemplateAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
ListChatappTemplateOutcomeCallable listChatappTemplateCallable(const Model::ListChatappTemplateRequest& request) const;
|
||||
ListProductOutcome listProduct(const Model::ListProductRequest &request)const;
|
||||
void listProductAsync(const Model::ListProductRequest& request, const ListProductAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
ListProductOutcomeCallable listProductCallable(const Model::ListProductRequest& request) const;
|
||||
ListProductCatalogOutcome listProductCatalog(const Model::ListProductCatalogRequest &request)const;
|
||||
void listProductCatalogAsync(const Model::ListProductCatalogRequest& request, const ListProductCatalogAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
ListProductCatalogOutcomeCallable listProductCatalogCallable(const Model::ListProductCatalogRequest& request) const;
|
||||
ModifyChatappTemplateOutcome modifyChatappTemplate(const Model::ModifyChatappTemplateRequest &request)const;
|
||||
void modifyChatappTemplateAsync(const Model::ModifyChatappTemplateRequest& request, const ModifyChatappTemplateAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
ModifyChatappTemplateOutcomeCallable modifyChatappTemplateCallable(const Model::ModifyChatappTemplateRequest& 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_CAMS_MODEL_ADDCHATAPPPHONENUMBERREQUEST_H_
|
||||
#define ALIBABACLOUD_CAMS_MODEL_ADDCHATAPPPHONENUMBERREQUEST_H_
|
||||
|
||||
#include <alibabacloud/cams/CamsExport.h>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <map>
|
||||
|
||||
namespace AlibabaCloud {
|
||||
namespace Cams {
|
||||
namespace Model {
|
||||
class ALIBABACLOUD_CAMS_EXPORT AddChatappPhoneNumberRequest : public RpcServiceRequest {
|
||||
public:
|
||||
AddChatappPhoneNumberRequest();
|
||||
~AddChatappPhoneNumberRequest();
|
||||
std::string getPreValidateId() const;
|
||||
void setPreValidateId(const std::string &preValidateId);
|
||||
std::string getVerifiedName() const;
|
||||
void setVerifiedName(const std::string &verifiedName);
|
||||
std::string getPhoneNumber() const;
|
||||
void setPhoneNumber(const std::string &phoneNumber);
|
||||
std::string getApiCode() const;
|
||||
void setApiCode(const std::string &apiCode);
|
||||
std::string getCc() const;
|
||||
void setCc(const std::string &cc);
|
||||
std::string getProdCode() const;
|
||||
void setProdCode(const std::string &prodCode);
|
||||
std::string getCustSpaceId() const;
|
||||
void setCustSpaceId(const std::string &custSpaceId);
|
||||
|
||||
private:
|
||||
std::string preValidateId_;
|
||||
std::string verifiedName_;
|
||||
std::string phoneNumber_;
|
||||
std::string apiCode_;
|
||||
std::string cc_;
|
||||
std::string prodCode_;
|
||||
std::string custSpaceId_;
|
||||
};
|
||||
} // namespace Model
|
||||
} // namespace Cams
|
||||
} // namespace AlibabaCloud
|
||||
#endif // !ALIBABACLOUD_CAMS_MODEL_ADDCHATAPPPHONENUMBERREQUEST_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_CAMS_MODEL_ADDCHATAPPPHONENUMBERRESULT_H_
|
||||
#define ALIBABACLOUD_CAMS_MODEL_ADDCHATAPPPHONENUMBERRESULT_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 AddChatappPhoneNumberResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
|
||||
|
||||
AddChatappPhoneNumberResult();
|
||||
explicit AddChatappPhoneNumberResult(const std::string &payload);
|
||||
~AddChatappPhoneNumberResult();
|
||||
std::string getAccessDeniedDetail()const;
|
||||
std::string getMessage()const;
|
||||
std::string getCode()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::string accessDeniedDetail_;
|
||||
std::string message_;
|
||||
std::string code_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_CAMS_MODEL_ADDCHATAPPPHONENUMBERRESULT_H_
|
||||
@@ -48,6 +48,7 @@ namespace AlibabaCloud
|
||||
BeeBotAssociateResult();
|
||||
explicit BeeBotAssociateResult(const std::string &payload);
|
||||
~BeeBotAssociateResult();
|
||||
std::string getAccessDeniedDetail()const;
|
||||
std::string getMessage()const;
|
||||
Data getData()const;
|
||||
std::string getCode()const;
|
||||
@@ -55,6 +56,7 @@ namespace AlibabaCloud
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::string accessDeniedDetail_;
|
||||
std::string message_;
|
||||
Data data_;
|
||||
std::string code_;
|
||||
|
||||
@@ -97,6 +97,7 @@ namespace AlibabaCloud
|
||||
BeeBotChatResult();
|
||||
explicit BeeBotChatResult(const std::string &payload);
|
||||
~BeeBotChatResult();
|
||||
std::string getAccessDeniedDetail()const;
|
||||
std::string getMessage()const;
|
||||
Data getData()const;
|
||||
std::string getCode()const;
|
||||
@@ -104,6 +105,7 @@ namespace AlibabaCloud
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::string accessDeniedDetail_;
|
||||
std::string message_;
|
||||
Data data_;
|
||||
std::string code_;
|
||||
|
||||
@@ -42,6 +42,7 @@ namespace AlibabaCloud
|
||||
ChatappBindWabaResult();
|
||||
explicit ChatappBindWabaResult(const std::string &payload);
|
||||
~ChatappBindWabaResult();
|
||||
std::string getAccessDeniedDetail()const;
|
||||
std::string getMessage()const;
|
||||
Data getData()const;
|
||||
std::string getCode()const;
|
||||
@@ -49,6 +50,7 @@ namespace AlibabaCloud
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::string accessDeniedDetail_;
|
||||
std::string message_;
|
||||
Data data_;
|
||||
std::string code_;
|
||||
|
||||
@@ -45,6 +45,7 @@ namespace AlibabaCloud
|
||||
ChatappEmbedSignUpResult();
|
||||
explicit ChatappEmbedSignUpResult(const std::string &payload);
|
||||
~ChatappEmbedSignUpResult();
|
||||
std::string getAccessDeniedDetail()const;
|
||||
std::string getMessage()const;
|
||||
std::vector<Waba列表> getWabas()const;
|
||||
std::string getCode()const;
|
||||
@@ -52,6 +53,7 @@ namespace AlibabaCloud
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::string accessDeniedDetail_;
|
||||
std::string message_;
|
||||
std::vector<Waba列表> wabas_;
|
||||
std::string code_;
|
||||
|
||||
@@ -37,12 +37,14 @@ namespace AlibabaCloud
|
||||
ChatappMigrationRegisterResult();
|
||||
explicit ChatappMigrationRegisterResult(const std::string &payload);
|
||||
~ChatappMigrationRegisterResult();
|
||||
std::string getAccessDeniedDetail()const;
|
||||
std::string getMessage()const;
|
||||
std::string getCode()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::string accessDeniedDetail_;
|
||||
std::string message_;
|
||||
std::string code_;
|
||||
|
||||
|
||||
@@ -42,6 +42,7 @@ namespace AlibabaCloud
|
||||
ChatappMigrationVerifiedResult();
|
||||
explicit ChatappMigrationVerifiedResult(const std::string &payload);
|
||||
~ChatappMigrationVerifiedResult();
|
||||
std::string getAccessDeniedDetail()const;
|
||||
std::string getMessage()const;
|
||||
Data getData()const;
|
||||
std::string getCode()const;
|
||||
@@ -49,6 +50,7 @@ namespace AlibabaCloud
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::string accessDeniedDetail_;
|
||||
std::string message_;
|
||||
Data data_;
|
||||
std::string code_;
|
||||
|
||||
@@ -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_CAMS_MODEL_CHATAPPPHONENUMBERDEREGISTERREQUEST_H_
|
||||
#define ALIBABACLOUD_CAMS_MODEL_CHATAPPPHONENUMBERDEREGISTERREQUEST_H_
|
||||
|
||||
#include <alibabacloud/cams/CamsExport.h>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <map>
|
||||
|
||||
namespace AlibabaCloud {
|
||||
namespace Cams {
|
||||
namespace Model {
|
||||
class ALIBABACLOUD_CAMS_EXPORT ChatappPhoneNumberDeregisterRequest : public RpcServiceRequest {
|
||||
public:
|
||||
ChatappPhoneNumberDeregisterRequest();
|
||||
~ChatappPhoneNumberDeregisterRequest();
|
||||
std::string getPhoneNumber() const;
|
||||
void setPhoneNumber(const std::string &phoneNumber);
|
||||
std::string getApiCode() const;
|
||||
void setApiCode(const std::string &apiCode);
|
||||
std::string getProdCode() const;
|
||||
void setProdCode(const std::string &prodCode);
|
||||
std::string getCustSpaceId() const;
|
||||
void setCustSpaceId(const std::string &custSpaceId);
|
||||
|
||||
private:
|
||||
std::string phoneNumber_;
|
||||
std::string apiCode_;
|
||||
std::string prodCode_;
|
||||
std::string custSpaceId_;
|
||||
};
|
||||
} // namespace Model
|
||||
} // namespace Cams
|
||||
} // namespace AlibabaCloud
|
||||
#endif // !ALIBABACLOUD_CAMS_MODEL_CHATAPPPHONENUMBERDEREGISTERREQUEST_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_CAMS_MODEL_CHATAPPPHONENUMBERDEREGISTERRESULT_H_
|
||||
#define ALIBABACLOUD_CAMS_MODEL_CHATAPPPHONENUMBERDEREGISTERRESULT_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 ChatappPhoneNumberDeregisterResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
|
||||
|
||||
ChatappPhoneNumberDeregisterResult();
|
||||
explicit ChatappPhoneNumberDeregisterResult(const std::string &payload);
|
||||
~ChatappPhoneNumberDeregisterResult();
|
||||
std::string getAccessDeniedDetail()const;
|
||||
std::string getMessage()const;
|
||||
std::string getCode()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::string accessDeniedDetail_;
|
||||
std::string message_;
|
||||
std::string code_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_CAMS_MODEL_CHATAPPPHONENUMBERDEREGISTERRESULT_H_
|
||||
@@ -37,12 +37,14 @@ namespace AlibabaCloud
|
||||
ChatappPhoneNumberRegisterResult();
|
||||
explicit ChatappPhoneNumberRegisterResult(const std::string &payload);
|
||||
~ChatappPhoneNumberRegisterResult();
|
||||
std::string getAccessDeniedDetail()const;
|
||||
std::string getMessage()const;
|
||||
std::string getCode()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::string accessDeniedDetail_;
|
||||
std::string message_;
|
||||
std::string code_;
|
||||
|
||||
|
||||
@@ -53,6 +53,7 @@ namespace AlibabaCloud
|
||||
explicit ChatappSyncPhoneNumberResult(const std::string &payload);
|
||||
~ChatappSyncPhoneNumberResult();
|
||||
std::vector<PhoneNumbersItem> getPhoneNumbers()const;
|
||||
std::string getAccessDeniedDetail()const;
|
||||
std::string getMessage()const;
|
||||
std::string getCode()const;
|
||||
|
||||
@@ -60,6 +61,7 @@ namespace AlibabaCloud
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::vector<PhoneNumbersItem> phoneNumbers_;
|
||||
std::string accessDeniedDetail_;
|
||||
std::string message_;
|
||||
std::string code_;
|
||||
|
||||
|
||||
@@ -37,12 +37,14 @@ namespace AlibabaCloud
|
||||
ChatappVerifyAndRegisterResult();
|
||||
explicit ChatappVerifyAndRegisterResult(const std::string &payload);
|
||||
~ChatappVerifyAndRegisterResult();
|
||||
std::string getAccessDeniedDetail()const;
|
||||
std::string getMessage()const;
|
||||
std::string getCode()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::string accessDeniedDetail_;
|
||||
std::string message_;
|
||||
std::string code_;
|
||||
|
||||
|
||||
@@ -43,6 +43,7 @@ namespace AlibabaCloud
|
||||
CreateChatappMigrationInitiateResult();
|
||||
explicit CreateChatappMigrationInitiateResult(const std::string &payload);
|
||||
~CreateChatappMigrationInitiateResult();
|
||||
std::string getAccessDeniedDetail()const;
|
||||
std::string getMessage()const;
|
||||
Data getData()const;
|
||||
std::string getCode()const;
|
||||
@@ -50,6 +51,7 @@ namespace AlibabaCloud
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::string accessDeniedDetail_;
|
||||
std::string message_;
|
||||
Data data_;
|
||||
std::string code_;
|
||||
|
||||
@@ -80,6 +80,8 @@ public:
|
||||
void setAllowCategoryChange(bool allowCategoryChange);
|
||||
std::string getCategory() const;
|
||||
void setCategory(const std::string &category);
|
||||
int getMessageSendTtlSeconds() const;
|
||||
void setMessageSendTtlSeconds(int messageSendTtlSeconds);
|
||||
|
||||
private:
|
||||
std::vector<Components> components_;
|
||||
@@ -94,6 +96,7 @@ private:
|
||||
std::string name_;
|
||||
bool allowCategoryChange_;
|
||||
std::string category_;
|
||||
int messageSendTtlSeconds_;
|
||||
};
|
||||
} // namespace Model
|
||||
} // namespace Cams
|
||||
|
||||
@@ -42,6 +42,7 @@ namespace AlibabaCloud
|
||||
CreateChatappTemplateResult();
|
||||
explicit CreateChatappTemplateResult(const std::string &payload);
|
||||
~CreateChatappTemplateResult();
|
||||
std::string getAccessDeniedDetail()const;
|
||||
std::string getMessage()const;
|
||||
Data getData()const;
|
||||
std::string getCode()const;
|
||||
@@ -49,6 +50,7 @@ namespace AlibabaCloud
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::string accessDeniedDetail_;
|
||||
std::string message_;
|
||||
Data data_;
|
||||
std::string code_;
|
||||
|
||||
@@ -37,12 +37,14 @@ namespace AlibabaCloud
|
||||
DeleteChatappTemplateResult();
|
||||
explicit DeleteChatappTemplateResult(const std::string &payload);
|
||||
~DeleteChatappTemplateResult();
|
||||
std::string getAccessDeniedDetail()const;
|
||||
std::string getMessage()const;
|
||||
std::string getCode()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::string accessDeniedDetail_;
|
||||
std::string message_;
|
||||
std::string code_;
|
||||
|
||||
|
||||
@@ -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_CAMS_MODEL_ENABLEWHATSAPPROIMETRICREQUEST_H_
|
||||
#define ALIBABACLOUD_CAMS_MODEL_ENABLEWHATSAPPROIMETRICREQUEST_H_
|
||||
|
||||
#include <alibabacloud/cams/CamsExport.h>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <map>
|
||||
|
||||
namespace AlibabaCloud {
|
||||
namespace Cams {
|
||||
namespace Model {
|
||||
class ALIBABACLOUD_CAMS_EXPORT EnableWhatsappROIMetricRequest : public RpcServiceRequest {
|
||||
public:
|
||||
EnableWhatsappROIMetricRequest();
|
||||
~EnableWhatsappROIMetricRequest();
|
||||
std::string getApiCode() const;
|
||||
void setApiCode(const std::string &apiCode);
|
||||
std::string getIsvCode() const;
|
||||
void setIsvCode(const std::string &isvCode);
|
||||
std::string getProdCode() const;
|
||||
void setProdCode(const std::string &prodCode);
|
||||
std::string getCustSpaceId() const;
|
||||
void setCustSpaceId(const std::string &custSpaceId);
|
||||
|
||||
private:
|
||||
std::string apiCode_;
|
||||
std::string isvCode_;
|
||||
std::string prodCode_;
|
||||
std::string custSpaceId_;
|
||||
};
|
||||
} // namespace Model
|
||||
} // namespace Cams
|
||||
} // namespace AlibabaCloud
|
||||
#endif // !ALIBABACLOUD_CAMS_MODEL_ENABLEWHATSAPPROIMETRICREQUEST_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_CAMS_MODEL_ENABLEWHATSAPPROIMETRICRESULT_H_
|
||||
#define ALIBABACLOUD_CAMS_MODEL_ENABLEWHATSAPPROIMETRICRESULT_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 EnableWhatsappROIMetricResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
|
||||
|
||||
EnableWhatsappROIMetricResult();
|
||||
explicit EnableWhatsappROIMetricResult(const std::string &payload);
|
||||
~EnableWhatsappROIMetricResult();
|
||||
std::string getAccessDeniedDetail()const;
|
||||
std::string getMessage()const;
|
||||
std::string getCode()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::string accessDeniedDetail_;
|
||||
std::string message_;
|
||||
std::string code_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_CAMS_MODEL_ENABLEWHATSAPPROIMETRICRESULT_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_CAMS_MODEL_GETCHATAPPPHONENUMBERMETRICREQUEST_H_
|
||||
#define ALIBABACLOUD_CAMS_MODEL_GETCHATAPPPHONENUMBERMETRICREQUEST_H_
|
||||
|
||||
#include <alibabacloud/cams/CamsExport.h>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <map>
|
||||
|
||||
namespace AlibabaCloud {
|
||||
namespace Cams {
|
||||
namespace Model {
|
||||
class ALIBABACLOUD_CAMS_EXPORT GetChatappPhoneNumberMetricRequest : public RpcServiceRequest {
|
||||
public:
|
||||
GetChatappPhoneNumberMetricRequest();
|
||||
~GetChatappPhoneNumberMetricRequest();
|
||||
std::string getPhoneNumber() const;
|
||||
void setPhoneNumber(const std::string &phoneNumber);
|
||||
std::string getApiCode() const;
|
||||
void setApiCode(const std::string &apiCode);
|
||||
long getEnd() const;
|
||||
void setEnd(long end);
|
||||
std::string getIsvCode() const;
|
||||
void setIsvCode(const std::string &isvCode);
|
||||
std::string getProdCode() const;
|
||||
void setProdCode(const std::string &prodCode);
|
||||
long getStart() const;
|
||||
void setStart(long start);
|
||||
std::string getCustSpaceId() const;
|
||||
void setCustSpaceId(const std::string &custSpaceId);
|
||||
std::string getGranularity() const;
|
||||
void setGranularity(const std::string &granularity);
|
||||
|
||||
private:
|
||||
std::string phoneNumber_;
|
||||
std::string apiCode_;
|
||||
long end_;
|
||||
std::string isvCode_;
|
||||
std::string prodCode_;
|
||||
long start_;
|
||||
std::string custSpaceId_;
|
||||
std::string granularity_;
|
||||
};
|
||||
} // namespace Model
|
||||
} // namespace Cams
|
||||
} // namespace AlibabaCloud
|
||||
#endif // !ALIBABACLOUD_CAMS_MODEL_GETCHATAPPPHONENUMBERMETRICREQUEST_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_CAMS_MODEL_GETCHATAPPPHONENUMBERMETRICRESULT_H_
|
||||
#define ALIBABACLOUD_CAMS_MODEL_GETCHATAPPPHONENUMBERMETRICRESULT_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 GetChatappPhoneNumberMetricResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct 返回数据
|
||||
{
|
||||
int deliveredCount;
|
||||
long start;
|
||||
std::string phoneNumber;
|
||||
long end;
|
||||
std::string granularity;
|
||||
int sentCount;
|
||||
};
|
||||
|
||||
|
||||
GetChatappPhoneNumberMetricResult();
|
||||
explicit GetChatappPhoneNumberMetricResult(const std::string &payload);
|
||||
~GetChatappPhoneNumberMetricResult();
|
||||
std::string getAccessDeniedDetail()const;
|
||||
std::string getMessage()const;
|
||||
std::vector<返回数据> getData()const;
|
||||
std::string getCode()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::string accessDeniedDetail_;
|
||||
std::string message_;
|
||||
std::vector<返回数据> data_;
|
||||
std::string code_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_CAMS_MODEL_GETCHATAPPPHONENUMBERMETRICRESULT_H_
|
||||
@@ -78,9 +78,12 @@ namespace AlibabaCloud
|
||||
std::string templateCode;
|
||||
std::string category;
|
||||
std::string auditStatus;
|
||||
int messageSendTtlSeconds;
|
||||
std::string language;
|
||||
std::string qualityScore;
|
||||
std::string example;
|
||||
std::string templateType;
|
||||
std::string reason;
|
||||
std::string name;
|
||||
};
|
||||
|
||||
@@ -88,6 +91,7 @@ namespace AlibabaCloud
|
||||
GetChatappTemplateDetailResult();
|
||||
explicit GetChatappTemplateDetailResult(const std::string &payload);
|
||||
~GetChatappTemplateDetailResult();
|
||||
std::string getAccessDeniedDetail()const;
|
||||
std::string getMessage()const;
|
||||
Data getData()const;
|
||||
std::string getCode()const;
|
||||
@@ -95,6 +99,7 @@ namespace AlibabaCloud
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::string accessDeniedDetail_;
|
||||
std::string message_;
|
||||
Data data_;
|
||||
std::string code_;
|
||||
|
||||
@@ -0,0 +1,69 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_CAMS_MODEL_GETCHATAPPTEMPLATEMETRICREQUEST_H_
|
||||
#define ALIBABACLOUD_CAMS_MODEL_GETCHATAPPTEMPLATEMETRICREQUEST_H_
|
||||
|
||||
#include <alibabacloud/cams/CamsExport.h>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <map>
|
||||
|
||||
namespace AlibabaCloud {
|
||||
namespace Cams {
|
||||
namespace Model {
|
||||
class ALIBABACLOUD_CAMS_EXPORT GetChatappTemplateMetricRequest : public RpcServiceRequest {
|
||||
public:
|
||||
GetChatappTemplateMetricRequest();
|
||||
~GetChatappTemplateMetricRequest();
|
||||
std::string getLanguage() const;
|
||||
void setLanguage(const std::string &language);
|
||||
std::string getApiCode() const;
|
||||
void setApiCode(const std::string &apiCode);
|
||||
std::string getTemplateType() const;
|
||||
void setTemplateType(const std::string &templateType);
|
||||
long getEnd() const;
|
||||
void setEnd(long end);
|
||||
std::string getIsvCode() const;
|
||||
void setIsvCode(const std::string &isvCode);
|
||||
std::string getProdCode() const;
|
||||
void setProdCode(const std::string &prodCode);
|
||||
long getStart() const;
|
||||
void setStart(long start);
|
||||
std::string getCustSpaceId() const;
|
||||
void setCustSpaceId(const std::string &custSpaceId);
|
||||
std::string getGranularity() const;
|
||||
void setGranularity(const std::string &granularity);
|
||||
std::string getTemplateCode() const;
|
||||
void setTemplateCode(const std::string &templateCode);
|
||||
|
||||
private:
|
||||
std::string language_;
|
||||
std::string apiCode_;
|
||||
std::string templateType_;
|
||||
long end_;
|
||||
std::string isvCode_;
|
||||
std::string prodCode_;
|
||||
long start_;
|
||||
std::string custSpaceId_;
|
||||
std::string granularity_;
|
||||
std::string templateCode_;
|
||||
};
|
||||
} // namespace Model
|
||||
} // namespace Cams
|
||||
} // namespace AlibabaCloud
|
||||
#endif // !ALIBABACLOUD_CAMS_MODEL_GETCHATAPPTEMPLATEMETRICREQUEST_H_
|
||||
@@ -0,0 +1,74 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_CAMS_MODEL_GETCHATAPPTEMPLATEMETRICRESULT_H_
|
||||
#define ALIBABACLOUD_CAMS_MODEL_GETCHATAPPTEMPLATEMETRICRESULT_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 GetChatappTemplateMetricResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct 返回数据
|
||||
{
|
||||
struct 按钮点击数据
|
||||
{
|
||||
std::string type;
|
||||
std::string buttonContent;
|
||||
int count;
|
||||
};
|
||||
std::string templateCode;
|
||||
int deliveredCount;
|
||||
std::string language;
|
||||
std::vector<返回数据::按钮点击数据> cliented;
|
||||
long start;
|
||||
long end;
|
||||
int sentCount;
|
||||
int readCount;
|
||||
};
|
||||
|
||||
|
||||
GetChatappTemplateMetricResult();
|
||||
explicit GetChatappTemplateMetricResult(const std::string &payload);
|
||||
~GetChatappTemplateMetricResult();
|
||||
std::string getAccessDeniedDetail()const;
|
||||
std::string getMessage()const;
|
||||
std::vector<返回数据> getData()const;
|
||||
std::string getCode()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::string accessDeniedDetail_;
|
||||
std::string message_;
|
||||
std::vector<返回数据> data_;
|
||||
std::string code_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_CAMS_MODEL_GETCHATAPPTEMPLATEMETRICRESULT_H_
|
||||
@@ -47,6 +47,7 @@ namespace AlibabaCloud
|
||||
GetChatappUploadAuthorizationResult();
|
||||
explicit GetChatappUploadAuthorizationResult(const std::string &payload);
|
||||
~GetChatappUploadAuthorizationResult();
|
||||
std::string getAccessDeniedDetail()const;
|
||||
std::string getMessage()const;
|
||||
Data getData()const;
|
||||
std::string getCode()const;
|
||||
@@ -54,6 +55,7 @@ namespace AlibabaCloud
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::string accessDeniedDetail_;
|
||||
std::string message_;
|
||||
Data data_;
|
||||
std::string code_;
|
||||
|
||||
@@ -37,12 +37,14 @@ namespace AlibabaCloud
|
||||
GetChatappVerifyCodeResult();
|
||||
explicit GetChatappVerifyCodeResult(const std::string &payload);
|
||||
~GetChatappVerifyCodeResult();
|
||||
std::string getAccessDeniedDetail()const;
|
||||
std::string getMessage()const;
|
||||
std::string getCode()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::string accessDeniedDetail_;
|
||||
std::string message_;
|
||||
std::string code_;
|
||||
|
||||
|
||||
@@ -42,6 +42,7 @@ namespace AlibabaCloud
|
||||
GetMigrationVerifyCodeResult();
|
||||
explicit GetMigrationVerifyCodeResult(const std::string &payload);
|
||||
~GetMigrationVerifyCodeResult();
|
||||
std::string getAccessDeniedDetail()const;
|
||||
std::string getMessage()const;
|
||||
Data getData()const;
|
||||
std::string getCode()const;
|
||||
@@ -49,6 +50,7 @@ namespace AlibabaCloud
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::string accessDeniedDetail_;
|
||||
std::string message_;
|
||||
Data data_;
|
||||
std::string code_;
|
||||
|
||||
@@ -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_CAMS_MODEL_GETPREVALIDATEPHONEIDREQUEST_H_
|
||||
#define ALIBABACLOUD_CAMS_MODEL_GETPREVALIDATEPHONEIDREQUEST_H_
|
||||
|
||||
#include <alibabacloud/cams/CamsExport.h>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <map>
|
||||
|
||||
namespace AlibabaCloud {
|
||||
namespace Cams {
|
||||
namespace Model {
|
||||
class ALIBABACLOUD_CAMS_EXPORT GetPreValidatePhoneIdRequest : public RpcServiceRequest {
|
||||
public:
|
||||
GetPreValidatePhoneIdRequest();
|
||||
~GetPreValidatePhoneIdRequest();
|
||||
std::string getPhoneNumber() const;
|
||||
void setPhoneNumber(const std::string &phoneNumber);
|
||||
std::string getVerifyCode() const;
|
||||
void setVerifyCode(const std::string &verifyCode);
|
||||
std::string getApiCode() const;
|
||||
void setApiCode(const std::string &apiCode);
|
||||
std::string getProdCode() const;
|
||||
void setProdCode(const std::string &prodCode);
|
||||
|
||||
private:
|
||||
std::string phoneNumber_;
|
||||
std::string verifyCode_;
|
||||
std::string apiCode_;
|
||||
std::string prodCode_;
|
||||
};
|
||||
} // namespace Model
|
||||
} // namespace Cams
|
||||
} // namespace AlibabaCloud
|
||||
#endif // !ALIBABACLOUD_CAMS_MODEL_GETPREVALIDATEPHONEIDREQUEST_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_CAMS_MODEL_GETPREVALIDATEPHONEIDRESULT_H_
|
||||
#define ALIBABACLOUD_CAMS_MODEL_GETPREVALIDATEPHONEIDRESULT_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 GetPreValidatePhoneIdResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct Data
|
||||
{
|
||||
std::string phoneNumber;
|
||||
std::string phoneNumberId;
|
||||
};
|
||||
|
||||
|
||||
GetPreValidatePhoneIdResult();
|
||||
explicit GetPreValidatePhoneIdResult(const std::string &payload);
|
||||
~GetPreValidatePhoneIdResult();
|
||||
std::string getMessage()const;
|
||||
Data getData()const;
|
||||
std::string getCode()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::string message_;
|
||||
Data data_;
|
||||
std::string code_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_CAMS_MODEL_GETPREVALIDATEPHONEIDRESULT_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_CAMS_MODEL_GETWHATSAPPCONNECTIONCATALOGREQUEST_H_
|
||||
#define ALIBABACLOUD_CAMS_MODEL_GETWHATSAPPCONNECTIONCATALOGREQUEST_H_
|
||||
|
||||
#include <alibabacloud/cams/CamsExport.h>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <map>
|
||||
|
||||
namespace AlibabaCloud {
|
||||
namespace Cams {
|
||||
namespace Model {
|
||||
class ALIBABACLOUD_CAMS_EXPORT GetWhatsappConnectionCatalogRequest : public RpcServiceRequest {
|
||||
public:
|
||||
GetWhatsappConnectionCatalogRequest();
|
||||
~GetWhatsappConnectionCatalogRequest();
|
||||
long getResourceOwnerId() const;
|
||||
void setResourceOwnerId(long resourceOwnerId);
|
||||
std::string getExtendFunction() const;
|
||||
void setExtendFunction(const std::string &extendFunction);
|
||||
std::string getAccessKeyId() const;
|
||||
void setAccessKeyId(const std::string &accessKeyId);
|
||||
std::string getMetaVersion() const;
|
||||
void setMetaVersion(const std::string &metaVersion);
|
||||
std::string getRouteName() const;
|
||||
void setRouteName(const std::string &routeName);
|
||||
std::string getResourceOwnerAccount() const;
|
||||
void setResourceOwnerAccount(const std::string &resourceOwnerAccount);
|
||||
long getOwnerId() const;
|
||||
void setOwnerId(long ownerId);
|
||||
std::string getWabaId() const;
|
||||
void setWabaId(const std::string &wabaId);
|
||||
std::string getCustSpaceId() const;
|
||||
void setCustSpaceId(const std::string &custSpaceId);
|
||||
|
||||
private:
|
||||
long resourceOwnerId_;
|
||||
std::string extendFunction_;
|
||||
std::string accessKeyId_;
|
||||
std::string metaVersion_;
|
||||
std::string routeName_;
|
||||
std::string resourceOwnerAccount_;
|
||||
long ownerId_;
|
||||
std::string wabaId_;
|
||||
std::string custSpaceId_;
|
||||
};
|
||||
} // namespace Model
|
||||
} // namespace Cams
|
||||
} // namespace AlibabaCloud
|
||||
#endif // !ALIBABACLOUD_CAMS_MODEL_GETWHATSAPPCONNECTIONCATALOGREQUEST_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_CAMS_MODEL_GETWHATSAPPCONNECTIONCATALOGRESULT_H_
|
||||
#define ALIBABACLOUD_CAMS_MODEL_GETWHATSAPPCONNECTIONCATALOGRESULT_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 GetWhatsappConnectionCatalogResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
|
||||
|
||||
GetWhatsappConnectionCatalogResult();
|
||||
explicit GetWhatsappConnectionCatalogResult(const std::string &payload);
|
||||
~GetWhatsappConnectionCatalogResult();
|
||||
std::string getAccessDeniedDetail()const;
|
||||
std::string getMessage()const;
|
||||
std::string getModel()const;
|
||||
std::string getCode()const;
|
||||
bool getSuccess()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::string accessDeniedDetail_;
|
||||
std::string message_;
|
||||
std::string model_;
|
||||
std::string code_;
|
||||
bool success_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_CAMS_MODEL_GETWHATSAPPCONNECTIONCATALOGRESULT_H_
|
||||
@@ -37,6 +37,7 @@ namespace AlibabaCloud
|
||||
IsvGetAppIdResult();
|
||||
explicit IsvGetAppIdResult(const std::string &payload);
|
||||
~IsvGetAppIdResult();
|
||||
std::string getAccessDeniedDetail()const;
|
||||
std::string getMessage()const;
|
||||
std::string getAppId()const;
|
||||
std::string getCode()const;
|
||||
@@ -44,6 +45,7 @@ namespace AlibabaCloud
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::string accessDeniedDetail_;
|
||||
std::string message_;
|
||||
std::string appId_;
|
||||
std::string code_;
|
||||
|
||||
@@ -40,12 +40,14 @@ namespace AlibabaCloud
|
||||
std::string language;
|
||||
std::string templateName;
|
||||
std::string templateType;
|
||||
std::string reason;
|
||||
};
|
||||
|
||||
|
||||
ListChatappTemplateResult();
|
||||
explicit ListChatappTemplateResult(const std::string &payload);
|
||||
~ListChatappTemplateResult();
|
||||
std::string getAccessDeniedDetail()const;
|
||||
std::string getMessage()const;
|
||||
std::vector<_Template> getListTemplate()const;
|
||||
int getTotal()const;
|
||||
@@ -54,6 +56,7 @@ namespace AlibabaCloud
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::string accessDeniedDetail_;
|
||||
std::string message_;
|
||||
std::vector<_Template> listTemplate_;
|
||||
int total_;
|
||||
|
||||
@@ -0,0 +1,78 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_CAMS_MODEL_LISTPRODUCTCATALOGREQUEST_H_
|
||||
#define ALIBABACLOUD_CAMS_MODEL_LISTPRODUCTCATALOGREQUEST_H_
|
||||
|
||||
#include <alibabacloud/cams/CamsExport.h>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <map>
|
||||
|
||||
namespace AlibabaCloud {
|
||||
namespace Cams {
|
||||
namespace Model {
|
||||
class ALIBABACLOUD_CAMS_EXPORT ListProductCatalogRequest : public RpcServiceRequest {
|
||||
public:
|
||||
ListProductCatalogRequest();
|
||||
~ListProductCatalogRequest();
|
||||
long getResourceOwnerId() const;
|
||||
void setResourceOwnerId(long resourceOwnerId);
|
||||
std::string getBefore() const;
|
||||
void setBefore(const std::string &before);
|
||||
std::string getExtendFunction() const;
|
||||
void setExtendFunction(const std::string &extendFunction);
|
||||
std::string getAccessKeyId() const;
|
||||
void setAccessKeyId(const std::string &accessKeyId);
|
||||
std::string getMetaVersion() const;
|
||||
void setMetaVersion(const std::string &metaVersion);
|
||||
long getLimit() const;
|
||||
void setLimit(long limit);
|
||||
std::string getAfter() const;
|
||||
void setAfter(const std::string &after);
|
||||
std::string getRouteName() const;
|
||||
void setRouteName(const std::string &routeName);
|
||||
std::string getResourceOwnerAccount() const;
|
||||
void setResourceOwnerAccount(const std::string &resourceOwnerAccount);
|
||||
long getBusinessId() const;
|
||||
void setBusinessId(long businessId);
|
||||
long getOwnerId() const;
|
||||
void setOwnerId(long ownerId);
|
||||
std::string getCustSpaceId() const;
|
||||
void setCustSpaceId(const std::string &custSpaceId);
|
||||
std::string getFields() const;
|
||||
void setFields(const std::string &fields);
|
||||
|
||||
private:
|
||||
long resourceOwnerId_;
|
||||
std::string before_;
|
||||
std::string extendFunction_;
|
||||
std::string accessKeyId_;
|
||||
std::string metaVersion_;
|
||||
long limit_;
|
||||
std::string after_;
|
||||
std::string routeName_;
|
||||
std::string resourceOwnerAccount_;
|
||||
long businessId_;
|
||||
long ownerId_;
|
||||
std::string custSpaceId_;
|
||||
std::string fields_;
|
||||
};
|
||||
} // namespace Model
|
||||
} // namespace Cams
|
||||
} // namespace AlibabaCloud
|
||||
#endif // !ALIBABACLOUD_CAMS_MODEL_LISTPRODUCTCATALOGREQUEST_H_
|
||||
@@ -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.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_CAMS_MODEL_LISTPRODUCTCATALOGRESULT_H_
|
||||
#define ALIBABACLOUD_CAMS_MODEL_LISTPRODUCTCATALOGRESULT_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 ListProductCatalogResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct Model
|
||||
{
|
||||
struct Paging
|
||||
{
|
||||
struct Cursors
|
||||
{
|
||||
std::string before;
|
||||
std::string after;
|
||||
};
|
||||
Cursors cursors;
|
||||
};
|
||||
Paging paging;
|
||||
std::vector<std::string> data;
|
||||
};
|
||||
|
||||
|
||||
ListProductCatalogResult();
|
||||
explicit ListProductCatalogResult(const std::string &payload);
|
||||
~ListProductCatalogResult();
|
||||
std::string getAccessDeniedDetail()const;
|
||||
std::string getMessage()const;
|
||||
Model getModel()const;
|
||||
std::string getCode()const;
|
||||
bool getSuccess()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::string accessDeniedDetail_;
|
||||
std::string message_;
|
||||
Model model_;
|
||||
std::string code_;
|
||||
bool success_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_CAMS_MODEL_LISTPRODUCTCATALOGRESULT_H_
|
||||
81
cams/include/alibabacloud/cams/model/ListProductRequest.h
Normal file
81
cams/include/alibabacloud/cams/model/ListProductRequest.h
Normal file
@@ -0,0 +1,81 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_CAMS_MODEL_LISTPRODUCTREQUEST_H_
|
||||
#define ALIBABACLOUD_CAMS_MODEL_LISTPRODUCTREQUEST_H_
|
||||
|
||||
#include <alibabacloud/cams/CamsExport.h>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <map>
|
||||
|
||||
namespace AlibabaCloud {
|
||||
namespace Cams {
|
||||
namespace Model {
|
||||
class ALIBABACLOUD_CAMS_EXPORT ListProductRequest : public RpcServiceRequest {
|
||||
public:
|
||||
ListProductRequest();
|
||||
~ListProductRequest();
|
||||
long getResourceOwnerId() const;
|
||||
void setResourceOwnerId(long resourceOwnerId);
|
||||
std::string getBefore() const;
|
||||
void setBefore(const std::string &before);
|
||||
std::string getExtendFunction() const;
|
||||
void setExtendFunction(const std::string &extendFunction);
|
||||
std::string getAccessKeyId() const;
|
||||
void setAccessKeyId(const std::string &accessKeyId);
|
||||
std::string getMetaVersion() const;
|
||||
void setMetaVersion(const std::string &metaVersion);
|
||||
long getLimit() const;
|
||||
void setLimit(long limit);
|
||||
std::string getAfter() const;
|
||||
void setAfter(const std::string &after);
|
||||
std::string getRouteName() const;
|
||||
void setRouteName(const std::string &routeName);
|
||||
std::string getResourceOwnerAccount() const;
|
||||
void setResourceOwnerAccount(const std::string &resourceOwnerAccount);
|
||||
long getOwnerId() const;
|
||||
void setOwnerId(long ownerId);
|
||||
std::string getWabaId() const;
|
||||
void setWabaId(const std::string &wabaId);
|
||||
std::string getCatalogId() const;
|
||||
void setCatalogId(const std::string &catalogId);
|
||||
std::string getCustSpaceId() const;
|
||||
void setCustSpaceId(const std::string &custSpaceId);
|
||||
std::string getFields() const;
|
||||
void setFields(const std::string &fields);
|
||||
|
||||
private:
|
||||
long resourceOwnerId_;
|
||||
std::string before_;
|
||||
std::string extendFunction_;
|
||||
std::string accessKeyId_;
|
||||
std::string metaVersion_;
|
||||
long limit_;
|
||||
std::string after_;
|
||||
std::string routeName_;
|
||||
std::string resourceOwnerAccount_;
|
||||
long ownerId_;
|
||||
std::string wabaId_;
|
||||
std::string catalogId_;
|
||||
std::string custSpaceId_;
|
||||
std::string fields_;
|
||||
};
|
||||
} // namespace Model
|
||||
} // namespace Cams
|
||||
} // namespace AlibabaCloud
|
||||
#endif // !ALIBABACLOUD_CAMS_MODEL_LISTPRODUCTREQUEST_H_
|
||||
73
cams/include/alibabacloud/cams/model/ListProductResult.h
Normal file
73
cams/include/alibabacloud/cams/model/ListProductResult.h
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.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_CAMS_MODEL_LISTPRODUCTRESULT_H_
|
||||
#define ALIBABACLOUD_CAMS_MODEL_LISTPRODUCTRESULT_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 ListProductResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct Model
|
||||
{
|
||||
struct Paging
|
||||
{
|
||||
struct Cursors
|
||||
{
|
||||
std::string before;
|
||||
std::string after;
|
||||
};
|
||||
Cursors cursors;
|
||||
};
|
||||
Paging paging;
|
||||
std::vector<std::string> data;
|
||||
};
|
||||
|
||||
|
||||
ListProductResult();
|
||||
explicit ListProductResult(const std::string &payload);
|
||||
~ListProductResult();
|
||||
std::string getAccessDeniedDetail()const;
|
||||
std::string getMessage()const;
|
||||
Model getModel()const;
|
||||
std::string getCode()const;
|
||||
bool getSuccess()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::string accessDeniedDetail_;
|
||||
std::string message_;
|
||||
Model model_;
|
||||
std::string code_;
|
||||
bool success_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_CAMS_MODEL_LISTPRODUCTRESULT_H_
|
||||
@@ -76,6 +76,8 @@ public:
|
||||
void setCustSpaceId(const std::string &custSpaceId);
|
||||
std::string getCategory() const;
|
||||
void setCategory(const std::string &category);
|
||||
int getMessageSendTtlSeconds() const;
|
||||
void setMessageSendTtlSeconds(int messageSendTtlSeconds);
|
||||
std::string getTemplateCode() const;
|
||||
void setTemplateCode(const std::string &templateCode);
|
||||
|
||||
@@ -90,6 +92,7 @@ private:
|
||||
std::string prodCode_;
|
||||
std::string custSpaceId_;
|
||||
std::string category_;
|
||||
int messageSendTtlSeconds_;
|
||||
std::string templateCode_;
|
||||
};
|
||||
} // namespace Model
|
||||
|
||||
@@ -42,6 +42,7 @@ namespace AlibabaCloud
|
||||
ModifyChatappTemplateResult();
|
||||
explicit ModifyChatappTemplateResult(const std::string &payload);
|
||||
~ModifyChatappTemplateResult();
|
||||
std::string getAccessDeniedDetail()const;
|
||||
std::string getMessage()const;
|
||||
Data getData()const;
|
||||
std::string getCode()const;
|
||||
@@ -49,6 +50,7 @@ namespace AlibabaCloud
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::string accessDeniedDetail_;
|
||||
std::string message_;
|
||||
Data data_;
|
||||
std::string code_;
|
||||
|
||||
@@ -37,12 +37,14 @@ namespace AlibabaCloud
|
||||
ModifyPhoneBusinessProfileResult();
|
||||
explicit ModifyPhoneBusinessProfileResult(const std::string &payload);
|
||||
~ModifyPhoneBusinessProfileResult();
|
||||
std::string getAccessDeniedDetail()const;
|
||||
std::string getMessage()const;
|
||||
std::string getCode()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::string accessDeniedDetail_;
|
||||
std::string message_;
|
||||
std::string code_;
|
||||
|
||||
|
||||
@@ -45,6 +45,7 @@ namespace AlibabaCloud
|
||||
QueryChatappBindWabaResult();
|
||||
explicit QueryChatappBindWabaResult(const std::string &payload);
|
||||
~QueryChatappBindWabaResult();
|
||||
std::string getAccessDeniedDetail()const;
|
||||
std::string getMessage()const;
|
||||
Data getData()const;
|
||||
std::string getCode()const;
|
||||
@@ -52,6 +53,7 @@ namespace AlibabaCloud
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::string accessDeniedDetail_;
|
||||
std::string message_;
|
||||
Data data_;
|
||||
std::string code_;
|
||||
|
||||
@@ -53,6 +53,7 @@ namespace AlibabaCloud
|
||||
explicit QueryChatappPhoneNumbersResult(const std::string &payload);
|
||||
~QueryChatappPhoneNumbersResult();
|
||||
std::vector<PhoneNumbersItem> getPhoneNumbers()const;
|
||||
std::string getAccessDeniedDetail()const;
|
||||
std::string getMessage()const;
|
||||
std::string getCode()const;
|
||||
|
||||
@@ -60,6 +61,7 @@ namespace AlibabaCloud
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::vector<PhoneNumbersItem> phoneNumbers_;
|
||||
std::string accessDeniedDetail_;
|
||||
std::string message_;
|
||||
std::string code_;
|
||||
|
||||
|
||||
@@ -46,6 +46,7 @@ namespace AlibabaCloud
|
||||
QueryPhoneBusinessProfileResult();
|
||||
explicit QueryPhoneBusinessProfileResult(const std::string &payload);
|
||||
~QueryPhoneBusinessProfileResult();
|
||||
std::string getAccessDeniedDetail()const;
|
||||
std::string getMessage()const;
|
||||
Data getData()const;
|
||||
std::string getCode()const;
|
||||
@@ -53,6 +54,7 @@ namespace AlibabaCloud
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::string accessDeniedDetail_;
|
||||
std::string message_;
|
||||
Data data_;
|
||||
std::string code_;
|
||||
|
||||
@@ -44,6 +44,7 @@ namespace AlibabaCloud
|
||||
QueryWabaBusinessInfoResult();
|
||||
explicit QueryWabaBusinessInfoResult(const std::string &payload);
|
||||
~QueryWabaBusinessInfoResult();
|
||||
std::string getAccessDeniedDetail()const;
|
||||
std::string getMessage()const;
|
||||
Data getData()const;
|
||||
std::string getCode()const;
|
||||
@@ -51,6 +52,7 @@ namespace AlibabaCloud
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::string accessDeniedDetail_;
|
||||
std::string message_;
|
||||
Data data_;
|
||||
std::string code_;
|
||||
|
||||
@@ -33,6 +33,20 @@ public:
|
||||
std::map<std::string, std::string> templateParams;
|
||||
std::string string;
|
||||
std::vector<std::string> payload;
|
||||
struct ProductAction {
|
||||
std::string thumbnailProductRetailerId;
|
||||
struct SectionsItem {
|
||||
std::string title;
|
||||
struct ProductItemsItem {
|
||||
std::string productRetailerId;
|
||||
};
|
||||
ProductItemsItem productItemsItem;
|
||||
std::vector<ProductItemsItem> productItems;
|
||||
};
|
||||
SectionsItem sectionsItem;
|
||||
std::vector<SectionsItem> sections;
|
||||
};
|
||||
ProductAction productAction;
|
||||
};
|
||||
SendChatappMassMessageRequest();
|
||||
~SendChatappMassMessageRequest();
|
||||
@@ -52,6 +66,8 @@ public:
|
||||
void setFrom(const std::string &from);
|
||||
std::string getTag() const;
|
||||
void setTag(const std::string &tag);
|
||||
std::string getFallBackRule() const;
|
||||
void setFallBackRule(const std::string &fallBackRule);
|
||||
std::string getTaskId() const;
|
||||
void setTaskId(const std::string &taskId);
|
||||
std::string getIsvCode() const;
|
||||
@@ -80,6 +96,7 @@ private:
|
||||
std::string channelType_;
|
||||
std::string from_;
|
||||
std::string tag_;
|
||||
std::string fallBackRule_;
|
||||
std::string taskId_;
|
||||
std::string isvCode_;
|
||||
std::string prodCode_;
|
||||
|
||||
@@ -37,6 +37,7 @@ namespace AlibabaCloud
|
||||
SendChatappMassMessageResult();
|
||||
explicit SendChatappMassMessageResult(const std::string &payload);
|
||||
~SendChatappMassMessageResult();
|
||||
std::string getAccessDeniedDetail()const;
|
||||
std::string getMessage()const;
|
||||
std::string getGroupMessageId()const;
|
||||
std::string getCode()const;
|
||||
@@ -44,6 +45,7 @@ namespace AlibabaCloud
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::string accessDeniedDetail_;
|
||||
std::string message_;
|
||||
std::string groupMessageId_;
|
||||
std::string code_;
|
||||
|
||||
@@ -28,8 +28,23 @@ namespace Cams {
|
||||
namespace Model {
|
||||
class ALIBABACLOUD_CAMS_EXPORT SendChatappMessageRequest : public RpcServiceRequest {
|
||||
public:
|
||||
struct ProductAction {
|
||||
std::string thumbnailProductRetailerId;
|
||||
struct SectionsItem {
|
||||
std::string title;
|
||||
struct ProductItemsItem {
|
||||
std::string productRetailerId;
|
||||
};
|
||||
ProductItemsItem productItemsItem;
|
||||
std::vector<ProductItemsItem> productItems;
|
||||
};
|
||||
SectionsItem sectionsItem;
|
||||
std::vector<SectionsItem> sections;
|
||||
};
|
||||
SendChatappMessageRequest();
|
||||
~SendChatappMessageRequest();
|
||||
ProductAction getProductAction() const;
|
||||
void setProductAction(const ProductAction &productAction);
|
||||
std::string getMessageType() const;
|
||||
void setMessageType(const std::string &messageType);
|
||||
std::string getLanguage() const;
|
||||
@@ -54,6 +69,8 @@ public:
|
||||
void setFrom(const std::string &from);
|
||||
std::string getTag() const;
|
||||
void setTag(const std::string &tag);
|
||||
std::string getFallBackRule() const;
|
||||
void setFallBackRule(const std::string &fallBackRule);
|
||||
std::string getTrackingData() const;
|
||||
void setTrackingData(const std::string &trackingData);
|
||||
std::string getTaskId() const;
|
||||
@@ -80,6 +97,7 @@ public:
|
||||
void setTemplateCode(const std::string &templateCode);
|
||||
|
||||
private:
|
||||
ProductAction productAction_;
|
||||
std::string messageType_;
|
||||
std::string language_;
|
||||
std::string custWabaId_;
|
||||
@@ -92,6 +110,7 @@ private:
|
||||
std::string channelType_;
|
||||
std::string from_;
|
||||
std::string tag_;
|
||||
std::string fallBackRule_;
|
||||
std::string trackingData_;
|
||||
std::string taskId_;
|
||||
std::string isvCode_;
|
||||
|
||||
@@ -37,12 +37,14 @@ namespace AlibabaCloud
|
||||
SubmitIsvCustomerTermsResult();
|
||||
explicit SubmitIsvCustomerTermsResult(const std::string &payload);
|
||||
~SubmitIsvCustomerTermsResult();
|
||||
std::string getAccessDeniedDetail()const;
|
||||
std::string getMessage()const;
|
||||
std::string getCode()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::string accessDeniedDetail_;
|
||||
std::string message_;
|
||||
std::string code_;
|
||||
|
||||
|
||||
@@ -37,12 +37,14 @@ namespace AlibabaCloud
|
||||
UpdateAccountWebhookResult();
|
||||
explicit UpdateAccountWebhookResult(const std::string &payload);
|
||||
~UpdateAccountWebhookResult();
|
||||
std::string getAccessDeniedDetail()const;
|
||||
std::string getMessage()const;
|
||||
std::string getCode()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::string accessDeniedDetail_;
|
||||
std::string message_;
|
||||
std::string code_;
|
||||
|
||||
|
||||
@@ -37,12 +37,14 @@ namespace AlibabaCloud
|
||||
UpdatePhoneWebhookResult();
|
||||
explicit UpdatePhoneWebhookResult(const std::string &payload);
|
||||
~UpdatePhoneWebhookResult();
|
||||
std::string getAccessDeniedDetail()const;
|
||||
std::string getMessage()const;
|
||||
std::string getCode()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::string accessDeniedDetail_;
|
||||
std::string message_;
|
||||
std::string code_;
|
||||
|
||||
|
||||
@@ -51,6 +51,42 @@ CamsClient::CamsClient(const std::string & accessKeyId, const std::string & acce
|
||||
CamsClient::~CamsClient()
|
||||
{}
|
||||
|
||||
CamsClient::AddChatappPhoneNumberOutcome CamsClient::addChatappPhoneNumber(const AddChatappPhoneNumberRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return AddChatappPhoneNumberOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return AddChatappPhoneNumberOutcome(AddChatappPhoneNumberResult(outcome.result()));
|
||||
else
|
||||
return AddChatappPhoneNumberOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void CamsClient::addChatappPhoneNumberAsync(const AddChatappPhoneNumberRequest& request, const AddChatappPhoneNumberAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, addChatappPhoneNumber(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
CamsClient::AddChatappPhoneNumberOutcomeCallable CamsClient::addChatappPhoneNumberCallable(const AddChatappPhoneNumberRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<AddChatappPhoneNumberOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->addChatappPhoneNumber(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
CamsClient::BeeBotAssociateOutcome CamsClient::beeBotAssociate(const BeeBotAssociateRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -267,6 +303,42 @@ CamsClient::ChatappMigrationVerifiedOutcomeCallable CamsClient::chatappMigration
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
CamsClient::ChatappPhoneNumberDeregisterOutcome CamsClient::chatappPhoneNumberDeregister(const ChatappPhoneNumberDeregisterRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return ChatappPhoneNumberDeregisterOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return ChatappPhoneNumberDeregisterOutcome(ChatappPhoneNumberDeregisterResult(outcome.result()));
|
||||
else
|
||||
return ChatappPhoneNumberDeregisterOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void CamsClient::chatappPhoneNumberDeregisterAsync(const ChatappPhoneNumberDeregisterRequest& request, const ChatappPhoneNumberDeregisterAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, chatappPhoneNumberDeregister(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
CamsClient::ChatappPhoneNumberDeregisterOutcomeCallable CamsClient::chatappPhoneNumberDeregisterCallable(const ChatappPhoneNumberDeregisterRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<ChatappPhoneNumberDeregisterOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->chatappPhoneNumberDeregister(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
CamsClient::ChatappPhoneNumberRegisterOutcome CamsClient::chatappPhoneNumberRegister(const ChatappPhoneNumberRegisterRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -483,6 +555,78 @@ CamsClient::DeleteChatappTemplateOutcomeCallable CamsClient::deleteChatappTempla
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
CamsClient::EnableWhatsappROIMetricOutcome CamsClient::enableWhatsappROIMetric(const EnableWhatsappROIMetricRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return EnableWhatsappROIMetricOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return EnableWhatsappROIMetricOutcome(EnableWhatsappROIMetricResult(outcome.result()));
|
||||
else
|
||||
return EnableWhatsappROIMetricOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void CamsClient::enableWhatsappROIMetricAsync(const EnableWhatsappROIMetricRequest& request, const EnableWhatsappROIMetricAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, enableWhatsappROIMetric(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
CamsClient::EnableWhatsappROIMetricOutcomeCallable CamsClient::enableWhatsappROIMetricCallable(const EnableWhatsappROIMetricRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<EnableWhatsappROIMetricOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->enableWhatsappROIMetric(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
CamsClient::GetChatappPhoneNumberMetricOutcome CamsClient::getChatappPhoneNumberMetric(const GetChatappPhoneNumberMetricRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return GetChatappPhoneNumberMetricOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return GetChatappPhoneNumberMetricOutcome(GetChatappPhoneNumberMetricResult(outcome.result()));
|
||||
else
|
||||
return GetChatappPhoneNumberMetricOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void CamsClient::getChatappPhoneNumberMetricAsync(const GetChatappPhoneNumberMetricRequest& request, const GetChatappPhoneNumberMetricAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, getChatappPhoneNumberMetric(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
CamsClient::GetChatappPhoneNumberMetricOutcomeCallable CamsClient::getChatappPhoneNumberMetricCallable(const GetChatappPhoneNumberMetricRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<GetChatappPhoneNumberMetricOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->getChatappPhoneNumberMetric(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
CamsClient::GetChatappTemplateDetailOutcome CamsClient::getChatappTemplateDetail(const GetChatappTemplateDetailRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -519,6 +663,42 @@ CamsClient::GetChatappTemplateDetailOutcomeCallable CamsClient::getChatappTempla
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
CamsClient::GetChatappTemplateMetricOutcome CamsClient::getChatappTemplateMetric(const GetChatappTemplateMetricRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return GetChatappTemplateMetricOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return GetChatappTemplateMetricOutcome(GetChatappTemplateMetricResult(outcome.result()));
|
||||
else
|
||||
return GetChatappTemplateMetricOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void CamsClient::getChatappTemplateMetricAsync(const GetChatappTemplateMetricRequest& request, const GetChatappTemplateMetricAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, getChatappTemplateMetric(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
CamsClient::GetChatappTemplateMetricOutcomeCallable CamsClient::getChatappTemplateMetricCallable(const GetChatappTemplateMetricRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<GetChatappTemplateMetricOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->getChatappTemplateMetric(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
CamsClient::GetChatappUploadAuthorizationOutcome CamsClient::getChatappUploadAuthorization(const GetChatappUploadAuthorizationRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -663,6 +843,78 @@ CamsClient::GetPhoneNumberVerificationStatusOutcomeCallable CamsClient::getPhone
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
CamsClient::GetPreValidatePhoneIdOutcome CamsClient::getPreValidatePhoneId(const GetPreValidatePhoneIdRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return GetPreValidatePhoneIdOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return GetPreValidatePhoneIdOutcome(GetPreValidatePhoneIdResult(outcome.result()));
|
||||
else
|
||||
return GetPreValidatePhoneIdOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void CamsClient::getPreValidatePhoneIdAsync(const GetPreValidatePhoneIdRequest& request, const GetPreValidatePhoneIdAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, getPreValidatePhoneId(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
CamsClient::GetPreValidatePhoneIdOutcomeCallable CamsClient::getPreValidatePhoneIdCallable(const GetPreValidatePhoneIdRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<GetPreValidatePhoneIdOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->getPreValidatePhoneId(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
CamsClient::GetWhatsappConnectionCatalogOutcome CamsClient::getWhatsappConnectionCatalog(const GetWhatsappConnectionCatalogRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return GetWhatsappConnectionCatalogOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return GetWhatsappConnectionCatalogOutcome(GetWhatsappConnectionCatalogResult(outcome.result()));
|
||||
else
|
||||
return GetWhatsappConnectionCatalogOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void CamsClient::getWhatsappConnectionCatalogAsync(const GetWhatsappConnectionCatalogRequest& request, const GetWhatsappConnectionCatalogAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, getWhatsappConnectionCatalog(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
CamsClient::GetWhatsappConnectionCatalogOutcomeCallable CamsClient::getWhatsappConnectionCatalogCallable(const GetWhatsappConnectionCatalogRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<GetWhatsappConnectionCatalogOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->getWhatsappConnectionCatalog(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
CamsClient::IsvGetAppIdOutcome CamsClient::isvGetAppId(const IsvGetAppIdRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -735,6 +987,78 @@ CamsClient::ListChatappTemplateOutcomeCallable CamsClient::listChatappTemplateCa
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
CamsClient::ListProductOutcome CamsClient::listProduct(const ListProductRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return ListProductOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return ListProductOutcome(ListProductResult(outcome.result()));
|
||||
else
|
||||
return ListProductOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void CamsClient::listProductAsync(const ListProductRequest& request, const ListProductAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, listProduct(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
CamsClient::ListProductOutcomeCallable CamsClient::listProductCallable(const ListProductRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<ListProductOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->listProduct(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
CamsClient::ListProductCatalogOutcome CamsClient::listProductCatalog(const ListProductCatalogRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return ListProductCatalogOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return ListProductCatalogOutcome(ListProductCatalogResult(outcome.result()));
|
||||
else
|
||||
return ListProductCatalogOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void CamsClient::listProductCatalogAsync(const ListProductCatalogRequest& request, const ListProductCatalogAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, listProductCatalog(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
CamsClient::ListProductCatalogOutcomeCallable CamsClient::listProductCatalogCallable(const ListProductCatalogRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<ListProductCatalogOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->listProductCatalog(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
CamsClient::ModifyChatappTemplateOutcome CamsClient::modifyChatappTemplate(const ModifyChatappTemplateRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
|
||||
90
cams/src/model/AddChatappPhoneNumberRequest.cc
Normal file
90
cams/src/model/AddChatappPhoneNumberRequest.cc
Normal file
@@ -0,0 +1,90 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/cams/model/AddChatappPhoneNumberRequest.h>
|
||||
|
||||
using AlibabaCloud::Cams::Model::AddChatappPhoneNumberRequest;
|
||||
|
||||
AddChatappPhoneNumberRequest::AddChatappPhoneNumberRequest()
|
||||
: RpcServiceRequest("cams", "2020-06-06", "AddChatappPhoneNumber") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
AddChatappPhoneNumberRequest::~AddChatappPhoneNumberRequest() {}
|
||||
|
||||
std::string AddChatappPhoneNumberRequest::getPreValidateId() const {
|
||||
return preValidateId_;
|
||||
}
|
||||
|
||||
void AddChatappPhoneNumberRequest::setPreValidateId(const std::string &preValidateId) {
|
||||
preValidateId_ = preValidateId;
|
||||
setBodyParameter(std::string("PreValidateId"), preValidateId);
|
||||
}
|
||||
|
||||
std::string AddChatappPhoneNumberRequest::getVerifiedName() const {
|
||||
return verifiedName_;
|
||||
}
|
||||
|
||||
void AddChatappPhoneNumberRequest::setVerifiedName(const std::string &verifiedName) {
|
||||
verifiedName_ = verifiedName;
|
||||
setBodyParameter(std::string("VerifiedName"), verifiedName);
|
||||
}
|
||||
|
||||
std::string AddChatappPhoneNumberRequest::getPhoneNumber() const {
|
||||
return phoneNumber_;
|
||||
}
|
||||
|
||||
void AddChatappPhoneNumberRequest::setPhoneNumber(const std::string &phoneNumber) {
|
||||
phoneNumber_ = phoneNumber;
|
||||
setBodyParameter(std::string("PhoneNumber"), phoneNumber);
|
||||
}
|
||||
|
||||
std::string AddChatappPhoneNumberRequest::getApiCode() const {
|
||||
return apiCode_;
|
||||
}
|
||||
|
||||
void AddChatappPhoneNumberRequest::setApiCode(const std::string &apiCode) {
|
||||
apiCode_ = apiCode;
|
||||
setParameter(std::string("ApiCode"), apiCode);
|
||||
}
|
||||
|
||||
std::string AddChatappPhoneNumberRequest::getCc() const {
|
||||
return cc_;
|
||||
}
|
||||
|
||||
void AddChatappPhoneNumberRequest::setCc(const std::string &cc) {
|
||||
cc_ = cc;
|
||||
setBodyParameter(std::string("Cc"), cc);
|
||||
}
|
||||
|
||||
std::string AddChatappPhoneNumberRequest::getProdCode() const {
|
||||
return prodCode_;
|
||||
}
|
||||
|
||||
void AddChatappPhoneNumberRequest::setProdCode(const std::string &prodCode) {
|
||||
prodCode_ = prodCode;
|
||||
setParameter(std::string("ProdCode"), prodCode);
|
||||
}
|
||||
|
||||
std::string AddChatappPhoneNumberRequest::getCustSpaceId() const {
|
||||
return custSpaceId_;
|
||||
}
|
||||
|
||||
void AddChatappPhoneNumberRequest::setCustSpaceId(const std::string &custSpaceId) {
|
||||
custSpaceId_ = custSpaceId;
|
||||
setBodyParameter(std::string("CustSpaceId"), custSpaceId);
|
||||
}
|
||||
|
||||
65
cams/src/model/AddChatappPhoneNumberResult.cc
Normal file
65
cams/src/model/AddChatappPhoneNumberResult.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/cams/model/AddChatappPhoneNumberResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Cams;
|
||||
using namespace AlibabaCloud::Cams::Model;
|
||||
|
||||
AddChatappPhoneNumberResult::AddChatappPhoneNumberResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
AddChatappPhoneNumberResult::AddChatappPhoneNumberResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
AddChatappPhoneNumberResult::~AddChatappPhoneNumberResult()
|
||||
{}
|
||||
|
||||
void AddChatappPhoneNumberResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
if(!value["AccessDeniedDetail"].isNull())
|
||||
accessDeniedDetail_ = value["AccessDeniedDetail"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string AddChatappPhoneNumberResult::getAccessDeniedDetail()const
|
||||
{
|
||||
return accessDeniedDetail_;
|
||||
}
|
||||
|
||||
std::string AddChatappPhoneNumberResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
std::string AddChatappPhoneNumberResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
@@ -58,9 +58,16 @@ void BeeBotAssociateResult::parse(const std::string &payload)
|
||||
code_ = value["Code"].asString();
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
if(!value["AccessDeniedDetail"].isNull())
|
||||
accessDeniedDetail_ = value["AccessDeniedDetail"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string BeeBotAssociateResult::getAccessDeniedDetail()const
|
||||
{
|
||||
return accessDeniedDetail_;
|
||||
}
|
||||
|
||||
std::string BeeBotAssociateResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
|
||||
@@ -136,9 +136,16 @@ void BeeBotChatResult::parse(const std::string &payload)
|
||||
code_ = value["Code"].asString();
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
if(!value["AccessDeniedDetail"].isNull())
|
||||
accessDeniedDetail_ = value["AccessDeniedDetail"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string BeeBotChatResult::getAccessDeniedDetail()const
|
||||
{
|
||||
return accessDeniedDetail_;
|
||||
}
|
||||
|
||||
std::string BeeBotChatResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
|
||||
@@ -48,9 +48,16 @@ void ChatappBindWabaResult::parse(const std::string &payload)
|
||||
code_ = value["Code"].asString();
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
if(!value["AccessDeniedDetail"].isNull())
|
||||
accessDeniedDetail_ = value["AccessDeniedDetail"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string ChatappBindWabaResult::getAccessDeniedDetail()const
|
||||
{
|
||||
return accessDeniedDetail_;
|
||||
}
|
||||
|
||||
std::string ChatappBindWabaResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
|
||||
@@ -59,9 +59,16 @@ void ChatappEmbedSignUpResult::parse(const std::string &payload)
|
||||
code_ = value["Code"].asString();
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
if(!value["AccessDeniedDetail"].isNull())
|
||||
accessDeniedDetail_ = value["AccessDeniedDetail"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string ChatappEmbedSignUpResult::getAccessDeniedDetail()const
|
||||
{
|
||||
return accessDeniedDetail_;
|
||||
}
|
||||
|
||||
std::string ChatappEmbedSignUpResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
|
||||
@@ -43,9 +43,16 @@ void ChatappMigrationRegisterResult::parse(const std::string &payload)
|
||||
code_ = value["Code"].asString();
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
if(!value["AccessDeniedDetail"].isNull())
|
||||
accessDeniedDetail_ = value["AccessDeniedDetail"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string ChatappMigrationRegisterResult::getAccessDeniedDetail()const
|
||||
{
|
||||
return accessDeniedDetail_;
|
||||
}
|
||||
|
||||
std::string ChatappMigrationRegisterResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
|
||||
@@ -48,9 +48,16 @@ void ChatappMigrationVerifiedResult::parse(const std::string &payload)
|
||||
code_ = value["Code"].asString();
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
if(!value["AccessDeniedDetail"].isNull())
|
||||
accessDeniedDetail_ = value["AccessDeniedDetail"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string ChatappMigrationVerifiedResult::getAccessDeniedDetail()const
|
||||
{
|
||||
return accessDeniedDetail_;
|
||||
}
|
||||
|
||||
std::string ChatappMigrationVerifiedResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
|
||||
63
cams/src/model/ChatappPhoneNumberDeregisterRequest.cc
Normal file
63
cams/src/model/ChatappPhoneNumberDeregisterRequest.cc
Normal file
@@ -0,0 +1,63 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/cams/model/ChatappPhoneNumberDeregisterRequest.h>
|
||||
|
||||
using AlibabaCloud::Cams::Model::ChatappPhoneNumberDeregisterRequest;
|
||||
|
||||
ChatappPhoneNumberDeregisterRequest::ChatappPhoneNumberDeregisterRequest()
|
||||
: RpcServiceRequest("cams", "2020-06-06", "ChatappPhoneNumberDeregister") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
ChatappPhoneNumberDeregisterRequest::~ChatappPhoneNumberDeregisterRequest() {}
|
||||
|
||||
std::string ChatappPhoneNumberDeregisterRequest::getPhoneNumber() const {
|
||||
return phoneNumber_;
|
||||
}
|
||||
|
||||
void ChatappPhoneNumberDeregisterRequest::setPhoneNumber(const std::string &phoneNumber) {
|
||||
phoneNumber_ = phoneNumber;
|
||||
setBodyParameter(std::string("PhoneNumber"), phoneNumber);
|
||||
}
|
||||
|
||||
std::string ChatappPhoneNumberDeregisterRequest::getApiCode() const {
|
||||
return apiCode_;
|
||||
}
|
||||
|
||||
void ChatappPhoneNumberDeregisterRequest::setApiCode(const std::string &apiCode) {
|
||||
apiCode_ = apiCode;
|
||||
setParameter(std::string("ApiCode"), apiCode);
|
||||
}
|
||||
|
||||
std::string ChatappPhoneNumberDeregisterRequest::getProdCode() const {
|
||||
return prodCode_;
|
||||
}
|
||||
|
||||
void ChatappPhoneNumberDeregisterRequest::setProdCode(const std::string &prodCode) {
|
||||
prodCode_ = prodCode;
|
||||
setParameter(std::string("ProdCode"), prodCode);
|
||||
}
|
||||
|
||||
std::string ChatappPhoneNumberDeregisterRequest::getCustSpaceId() const {
|
||||
return custSpaceId_;
|
||||
}
|
||||
|
||||
void ChatappPhoneNumberDeregisterRequest::setCustSpaceId(const std::string &custSpaceId) {
|
||||
custSpaceId_ = custSpaceId;
|
||||
setBodyParameter(std::string("CustSpaceId"), custSpaceId);
|
||||
}
|
||||
|
||||
65
cams/src/model/ChatappPhoneNumberDeregisterResult.cc
Normal file
65
cams/src/model/ChatappPhoneNumberDeregisterResult.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/cams/model/ChatappPhoneNumberDeregisterResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Cams;
|
||||
using namespace AlibabaCloud::Cams::Model;
|
||||
|
||||
ChatappPhoneNumberDeregisterResult::ChatappPhoneNumberDeregisterResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
ChatappPhoneNumberDeregisterResult::ChatappPhoneNumberDeregisterResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
ChatappPhoneNumberDeregisterResult::~ChatappPhoneNumberDeregisterResult()
|
||||
{}
|
||||
|
||||
void ChatappPhoneNumberDeregisterResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
if(!value["AccessDeniedDetail"].isNull())
|
||||
accessDeniedDetail_ = value["AccessDeniedDetail"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string ChatappPhoneNumberDeregisterResult::getAccessDeniedDetail()const
|
||||
{
|
||||
return accessDeniedDetail_;
|
||||
}
|
||||
|
||||
std::string ChatappPhoneNumberDeregisterResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
std::string ChatappPhoneNumberDeregisterResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
@@ -43,9 +43,16 @@ void ChatappPhoneNumberRegisterResult::parse(const std::string &payload)
|
||||
code_ = value["Code"].asString();
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
if(!value["AccessDeniedDetail"].isNull())
|
||||
accessDeniedDetail_ = value["AccessDeniedDetail"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string ChatappPhoneNumberRegisterResult::getAccessDeniedDetail()const
|
||||
{
|
||||
return accessDeniedDetail_;
|
||||
}
|
||||
|
||||
std::string ChatappPhoneNumberRegisterResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
|
||||
@@ -73,6 +73,8 @@ void ChatappSyncPhoneNumberResult::parse(const std::string &payload)
|
||||
code_ = value["Code"].asString();
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
if(!value["AccessDeniedDetail"].isNull())
|
||||
accessDeniedDetail_ = value["AccessDeniedDetail"].asString();
|
||||
|
||||
}
|
||||
|
||||
@@ -81,6 +83,11 @@ std::vector<ChatappSyncPhoneNumberResult::PhoneNumbersItem> ChatappSyncPhoneNumb
|
||||
return phoneNumbers_;
|
||||
}
|
||||
|
||||
std::string ChatappSyncPhoneNumberResult::getAccessDeniedDetail()const
|
||||
{
|
||||
return accessDeniedDetail_;
|
||||
}
|
||||
|
||||
std::string ChatappSyncPhoneNumberResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
|
||||
@@ -43,9 +43,16 @@ void ChatappVerifyAndRegisterResult::parse(const std::string &payload)
|
||||
code_ = value["Code"].asString();
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
if(!value["AccessDeniedDetail"].isNull())
|
||||
accessDeniedDetail_ = value["AccessDeniedDetail"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string ChatappVerifyAndRegisterResult::getAccessDeniedDetail()const
|
||||
{
|
||||
return accessDeniedDetail_;
|
||||
}
|
||||
|
||||
std::string ChatappVerifyAndRegisterResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
|
||||
@@ -50,9 +50,16 @@ void CreateChatappMigrationInitiateResult::parse(const std::string &payload)
|
||||
code_ = value["Code"].asString();
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
if(!value["AccessDeniedDetail"].isNull())
|
||||
accessDeniedDetail_ = value["AccessDeniedDetail"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string CreateChatappMigrationInitiateResult::getAccessDeniedDetail()const
|
||||
{
|
||||
return accessDeniedDetail_;
|
||||
}
|
||||
|
||||
std::string CreateChatappMigrationInitiateResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
|
||||
@@ -158,3 +158,12 @@ void CreateChatappTemplateRequest::setCategory(const std::string &category) {
|
||||
setBodyParameter(std::string("Category"), category);
|
||||
}
|
||||
|
||||
int CreateChatappTemplateRequest::getMessageSendTtlSeconds() const {
|
||||
return messageSendTtlSeconds_;
|
||||
}
|
||||
|
||||
void CreateChatappTemplateRequest::setMessageSendTtlSeconds(int messageSendTtlSeconds) {
|
||||
messageSendTtlSeconds_ = messageSendTtlSeconds;
|
||||
setBodyParameter(std::string("MessageSendTtlSeconds"), std::to_string(messageSendTtlSeconds));
|
||||
}
|
||||
|
||||
|
||||
@@ -48,9 +48,16 @@ void CreateChatappTemplateResult::parse(const std::string &payload)
|
||||
code_ = value["Code"].asString();
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
if(!value["AccessDeniedDetail"].isNull())
|
||||
accessDeniedDetail_ = value["AccessDeniedDetail"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string CreateChatappTemplateResult::getAccessDeniedDetail()const
|
||||
{
|
||||
return accessDeniedDetail_;
|
||||
}
|
||||
|
||||
std::string CreateChatappTemplateResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
|
||||
@@ -43,9 +43,16 @@ void DeleteChatappTemplateResult::parse(const std::string &payload)
|
||||
code_ = value["Code"].asString();
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
if(!value["AccessDeniedDetail"].isNull())
|
||||
accessDeniedDetail_ = value["AccessDeniedDetail"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string DeleteChatappTemplateResult::getAccessDeniedDetail()const
|
||||
{
|
||||
return accessDeniedDetail_;
|
||||
}
|
||||
|
||||
std::string DeleteChatappTemplateResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
|
||||
63
cams/src/model/EnableWhatsappROIMetricRequest.cc
Normal file
63
cams/src/model/EnableWhatsappROIMetricRequest.cc
Normal file
@@ -0,0 +1,63 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/cams/model/EnableWhatsappROIMetricRequest.h>
|
||||
|
||||
using AlibabaCloud::Cams::Model::EnableWhatsappROIMetricRequest;
|
||||
|
||||
EnableWhatsappROIMetricRequest::EnableWhatsappROIMetricRequest()
|
||||
: RpcServiceRequest("cams", "2020-06-06", "EnableWhatsappROIMetric") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
EnableWhatsappROIMetricRequest::~EnableWhatsappROIMetricRequest() {}
|
||||
|
||||
std::string EnableWhatsappROIMetricRequest::getApiCode() const {
|
||||
return apiCode_;
|
||||
}
|
||||
|
||||
void EnableWhatsappROIMetricRequest::setApiCode(const std::string &apiCode) {
|
||||
apiCode_ = apiCode;
|
||||
setParameter(std::string("ApiCode"), apiCode);
|
||||
}
|
||||
|
||||
std::string EnableWhatsappROIMetricRequest::getIsvCode() const {
|
||||
return isvCode_;
|
||||
}
|
||||
|
||||
void EnableWhatsappROIMetricRequest::setIsvCode(const std::string &isvCode) {
|
||||
isvCode_ = isvCode;
|
||||
setParameter(std::string("IsvCode"), isvCode);
|
||||
}
|
||||
|
||||
std::string EnableWhatsappROIMetricRequest::getProdCode() const {
|
||||
return prodCode_;
|
||||
}
|
||||
|
||||
void EnableWhatsappROIMetricRequest::setProdCode(const std::string &prodCode) {
|
||||
prodCode_ = prodCode;
|
||||
setParameter(std::string("ProdCode"), prodCode);
|
||||
}
|
||||
|
||||
std::string EnableWhatsappROIMetricRequest::getCustSpaceId() const {
|
||||
return custSpaceId_;
|
||||
}
|
||||
|
||||
void EnableWhatsappROIMetricRequest::setCustSpaceId(const std::string &custSpaceId) {
|
||||
custSpaceId_ = custSpaceId;
|
||||
setParameter(std::string("CustSpaceId"), custSpaceId);
|
||||
}
|
||||
|
||||
65
cams/src/model/EnableWhatsappROIMetricResult.cc
Normal file
65
cams/src/model/EnableWhatsappROIMetricResult.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/cams/model/EnableWhatsappROIMetricResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Cams;
|
||||
using namespace AlibabaCloud::Cams::Model;
|
||||
|
||||
EnableWhatsappROIMetricResult::EnableWhatsappROIMetricResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
EnableWhatsappROIMetricResult::EnableWhatsappROIMetricResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
EnableWhatsappROIMetricResult::~EnableWhatsappROIMetricResult()
|
||||
{}
|
||||
|
||||
void EnableWhatsappROIMetricResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
if(!value["AccessDeniedDetail"].isNull())
|
||||
accessDeniedDetail_ = value["AccessDeniedDetail"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string EnableWhatsappROIMetricResult::getAccessDeniedDetail()const
|
||||
{
|
||||
return accessDeniedDetail_;
|
||||
}
|
||||
|
||||
std::string EnableWhatsappROIMetricResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
std::string EnableWhatsappROIMetricResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user