Compare commits

..

1 Commits

Author SHA1 Message Date
Jackson Tian
6dd2cf4afe test: add macosx into jobs 2023-09-14 14:39:57 +08:00
1811 changed files with 5206 additions and 122394 deletions

View File

@@ -8,14 +8,22 @@ on:
jobs:
test:
runs-on: ubuntu-latest
name: CPP
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, macosx-latest]
runs-on: ${{ matrix.os }}
env:
CPLUS_INCLUDE_PATH: "/usr/local/include/:/usr/include/jsoncpp/:/usr/local/opt/openssl/include/:/usr/lib/"
steps:
- uses: actions/checkout@v3
- run: sudo apt-get install lcov libcurl4-openssl-dev libssl-dev uuid-dev libjson-c-dev libjsoncpp-dev nodejs npm
- 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: 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)

View File

@@ -46,7 +46,7 @@ Alibaba Cloud SDK for C++ 让您不用复杂编程即可访问云服务器、负
```bash
# use yum
yum install jsoncpp-devel openssl-devel libuuid-devel libcurl-devel
yum install jsoncpp-devel openssl-devel uuid-devel libcurl-devel
# use dnf
sudo dnf install libcurl-devel openssl-devel libuuid-devel libjsoncpp-devel

View File

@@ -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 libuuid-devel libcurl-devel
yum install jsoncpp-devel openssl-devel uuid-devel libcurl-devel
# use dnf
sudo dnf install libcurl-devel openssl-devel libuuid-devel libjsoncpp-devel

View File

@@ -1 +1 @@
1.36.1798
1.36.1758

View File

@@ -135,6 +135,8 @@ set(adb_public_header_model
include/alibabacloud/adb/model/DescribeProcessListResult.h
include/alibabacloud/adb/model/DescribeRegionsRequest.h
include/alibabacloud/adb/model/DescribeRegionsResult.h
include/alibabacloud/adb/model/DescribeSQLPatternAttributeRequest.h
include/alibabacloud/adb/model/DescribeSQLPatternAttributeResult.h
include/alibabacloud/adb/model/DescribeSQLPatternsRequest.h
include/alibabacloud/adb/model/DescribeSQLPatternsResult.h
include/alibabacloud/adb/model/DescribeSQLPlanRequest.h
@@ -161,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
@@ -342,6 +344,8 @@ set(adb_src
src/model/DescribeProcessListResult.cc
src/model/DescribeRegionsRequest.cc
src/model/DescribeRegionsResult.cc
src/model/DescribeSQLPatternAttributeRequest.cc
src/model/DescribeSQLPatternAttributeResult.cc
src/model/DescribeSQLPatternsRequest.cc
src/model/DescribeSQLPatternsResult.cc
src/model/DescribeSQLPlanRequest.cc
@@ -368,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

View File

@@ -136,6 +136,8 @@
#include "model/DescribeProcessListResult.h"
#include "model/DescribeRegionsRequest.h"
#include "model/DescribeRegionsResult.h"
#include "model/DescribeSQLPatternAttributeRequest.h"
#include "model/DescribeSQLPatternAttributeResult.h"
#include "model/DescribeSQLPatternsRequest.h"
#include "model/DescribeSQLPatternsResult.h"
#include "model/DescribeSQLPlanRequest.h"
@@ -162,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"
@@ -406,6 +408,9 @@ namespace AlibabaCloud
typedef Outcome<Error, Model::DescribeRegionsResult> DescribeRegionsOutcome;
typedef std::future<DescribeRegionsOutcome> DescribeRegionsOutcomeCallable;
typedef std::function<void(const AdbClient*, const Model::DescribeRegionsRequest&, const DescribeRegionsOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeRegionsAsyncHandler;
typedef Outcome<Error, Model::DescribeSQLPatternAttributeResult> DescribeSQLPatternAttributeOutcome;
typedef std::future<DescribeSQLPatternAttributeOutcome> DescribeSQLPatternAttributeOutcomeCallable;
typedef std::function<void(const AdbClient*, const Model::DescribeSQLPatternAttributeRequest&, const DescribeSQLPatternAttributeOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeSQLPatternAttributeAsyncHandler;
typedef Outcome<Error, Model::DescribeSQLPatternsResult> DescribeSQLPatternsOutcome;
typedef std::future<DescribeSQLPatternsOutcome> DescribeSQLPatternsOutcomeCallable;
typedef std::function<void(const AdbClient*, const Model::DescribeSQLPatternsRequest&, const DescribeSQLPatternsOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeSQLPatternsAsyncHandler;
@@ -445,9 +450,6 @@ 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;
@@ -457,6 +459,9 @@ 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;
@@ -717,6 +722,9 @@ namespace AlibabaCloud
DescribeRegionsOutcome describeRegions(const Model::DescribeRegionsRequest &request)const;
void describeRegionsAsync(const Model::DescribeRegionsRequest& request, const DescribeRegionsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
DescribeRegionsOutcomeCallable describeRegionsCallable(const Model::DescribeRegionsRequest& request) const;
DescribeSQLPatternAttributeOutcome describeSQLPatternAttribute(const Model::DescribeSQLPatternAttributeRequest &request)const;
void describeSQLPatternAttributeAsync(const Model::DescribeSQLPatternAttributeRequest& request, const DescribeSQLPatternAttributeAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
DescribeSQLPatternAttributeOutcomeCallable describeSQLPatternAttributeCallable(const Model::DescribeSQLPatternAttributeRequest& request) const;
DescribeSQLPatternsOutcome describeSQLPatterns(const Model::DescribeSQLPatternsRequest &request)const;
void describeSQLPatternsAsync(const Model::DescribeSQLPatternsRequest& request, const DescribeSQLPatternsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
DescribeSQLPatternsOutcomeCallable describeSQLPatternsCallable(const Model::DescribeSQLPatternsRequest& request) const;
@@ -756,9 +764,6 @@ 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;
@@ -768,6 +773,9 @@ 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;

View File

@@ -32,6 +32,12 @@ public:
~DescribeDBClusterPerformanceRequest();
long getResourceOwnerId() const;
void setResourceOwnerId(long resourceOwnerId);
std::string getStartTime() const;
void setStartTime(const std::string &startTime);
std::string getAccessKeyId() const;
void setAccessKeyId(const std::string &accessKeyId);
std::string getKey() const;
void setKey(const std::string &key);
std::string getResourceOwnerAccount() const;
void setResourceOwnerAccount(const std::string &resourceOwnerAccount);
std::string getDBClusterId() const;
@@ -40,31 +46,19 @@ public:
void setOwnerAccount(const std::string &ownerAccount);
std::string getEndTime() const;
void setEndTime(const std::string &endTime);
std::string getStartTime() const;
void setStartTime(const std::string &startTime);
long getOwnerId() const;
void setOwnerId(long ownerId);
std::string getAccessKeyId() const;
void setAccessKeyId(const std::string &accessKeyId);
std::string getRegionId() const;
void setRegionId(const std::string &regionId);
std::string getResourcePools() const;
void setResourcePools(const std::string &resourcePools);
std::string getKey() const;
void setKey(const std::string &key);
private:
long resourceOwnerId_;
std::string startTime_;
std::string accessKeyId_;
std::string key_;
std::string resourceOwnerAccount_;
std::string dBClusterId_;
std::string ownerAccount_;
std::string endTime_;
std::string startTime_;
long ownerId_;
std::string accessKeyId_;
std::string regionId_;
std::string resourcePools_;
std::string key_;
};
} // namespace Model
} // namespace Adb

View File

@@ -37,7 +37,6 @@ namespace AlibabaCloud
struct SeriesItem
{
std::vector<std::string> values;
std::string tags;
std::string name;
};
std::vector<PerformanceItem::SeriesItem> series;

View File

@@ -14,44 +14,44 @@
* limitations under the License.
*/
#ifndef ALIBABACLOUD_OCEANBASEPRO_MODEL_DESCRIBESQLSAMPLESREQUEST_H_
#define ALIBABACLOUD_OCEANBASEPRO_MODEL_DESCRIBESQLSAMPLESREQUEST_H_
#ifndef ALIBABACLOUD_ADB_MODEL_DESCRIBESQLPATTERNATTRIBUTEREQUEST_H_
#define ALIBABACLOUD_ADB_MODEL_DESCRIBESQLPATTERNATTRIBUTEREQUEST_H_
#include <alibabacloud/oceanbasepro/OceanBaseProExport.h>
#include <alibabacloud/adb/AdbExport.h>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <string>
#include <vector>
#include <map>
namespace AlibabaCloud {
namespace OceanBasePro {
namespace Adb {
namespace Model {
class ALIBABACLOUD_OCEANBASEPRO_EXPORT DescribeSQLSamplesRequest : public RpcServiceRequest {
class ALIBABACLOUD_ADB_EXPORT DescribeSQLPatternAttributeRequest : public RpcServiceRequest {
public:
DescribeSQLSamplesRequest();
~DescribeSQLSamplesRequest();
std::string getStartTime() const;
void setStartTime(const std::string &startTime);
std::string getTenantId() const;
void setTenantId(const std::string &tenantId);
std::string getSqlId() const;
void setSqlId(const std::string &sqlId);
DescribeSQLPatternAttributeRequest();
~DescribeSQLPatternAttributeRequest();
std::string getDBClusterId() const;
void setDBClusterId(const std::string &dBClusterId);
long getPatternId() const;
void setPatternId(long patternId);
std::string getEndTime() const;
void setEndTime(const std::string &endTime);
std::string getInstanceId() const;
void setInstanceId(const std::string &instanceId);
std::string getDbName() const;
void setDbName(const std::string &dbName);
std::string getStartTime() const;
void setStartTime(const std::string &startTime);
std::string getRegionId() const;
void setRegionId(const std::string &regionId);
std::string getLang() const;
void setLang(const std::string &lang);
private:
std::string startTime_;
std::string tenantId_;
std::string sqlId_;
std::string dBClusterId_;
long patternId_;
std::string endTime_;
std::string instanceId_;
std::string dbName_;
std::string startTime_;
std::string regionId_;
std::string lang_;
};
} // namespace Model
} // namespace OceanBasePro
} // namespace Adb
} // namespace AlibabaCloud
#endif // !ALIBABACLOUD_OCEANBASEPRO_MODEL_DESCRIBESQLSAMPLESREQUEST_H_
#endif // !ALIBABACLOUD_ADB_MODEL_DESCRIBESQLPATTERNATTRIBUTEREQUEST_H_

View File

@@ -14,44 +14,46 @@
* limitations under the License.
*/
#ifndef ALIBABACLOUD_OCEANBASEPRO_MODEL_DESCRIBETENANTTAGSRESULT_H_
#define ALIBABACLOUD_OCEANBASEPRO_MODEL_DESCRIBETENANTTAGSRESULT_H_
#ifndef ALIBABACLOUD_ADB_MODEL_DESCRIBESQLPATTERNATTRIBUTERESULT_H_
#define ALIBABACLOUD_ADB_MODEL_DESCRIBESQLPATTERNATTRIBUTERESULT_H_
#include <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/oceanbasepro/OceanBaseProExport.h>
#include <alibabacloud/adb/AdbExport.h>
namespace AlibabaCloud
{
namespace OceanBasePro
namespace Adb
{
namespace Model
{
class ALIBABACLOUD_OCEANBASEPRO_EXPORT DescribeTenantTagsResult : public ServiceResult
class ALIBABACLOUD_ADB_EXPORT DescribeSQLPatternAttributeResult : public ServiceResult
{
public:
struct TagResourcesItem
struct PatternDetail
{
std::string resourceId;
std::string resourceType;
std::string tag;
std::string sQLPattern;
std::string totalQueryTime;
std::string averageMemory;
long queryCount;
std::string averageQueryTime;
};
DescribeTenantTagsResult();
explicit DescribeTenantTagsResult(const std::string &payload);
~DescribeTenantTagsResult();
std::vector<TagResourcesItem> getTagResources()const;
DescribeSQLPatternAttributeResult();
explicit DescribeSQLPatternAttributeResult(const std::string &payload);
~DescribeSQLPatternAttributeResult();
PatternDetail getPatternDetail()const;
protected:
void parse(const std::string &payload);
private:
std::vector<TagResourcesItem> tagResources_;
PatternDetail patternDetail_;
};
}
}
}
#endif // !ALIBABACLOUD_OCEANBASEPRO_MODEL_DESCRIBETENANTTAGSRESULT_H_
#endif // !ALIBABACLOUD_ADB_MODEL_DESCRIBESQLPATTERNATTRIBUTERESULT_H_

View File

@@ -1,69 +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_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 &regionId);
std::string getResourceOwnerAccount() const;
void setResourceOwnerAccount(const std::string &resourceOwnerAccount);
std::string getOwnerAccount() const;
void setOwnerAccount(const std::string &ownerAccount);
long getOwnerId() const;
void setOwnerId(long ownerId);
std::string 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_

View File

@@ -1,69 +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_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_

View File

@@ -0,0 +1,87 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT 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 &regionId);
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_

View File

@@ -14,36 +14,38 @@
* limitations under the License.
*/
#ifndef ALIBABACLOUD_LIVE_MODEL_ADDLIVESTREAMMERGERESULT_H_
#define ALIBABACLOUD_LIVE_MODEL_ADDLIVESTREAMMERGERESULT_H_
#ifndef ALIBABACLOUD_ADB_MODEL_DRYRUNCLUSTERRESULT_H_
#define ALIBABACLOUD_ADB_MODEL_DRYRUNCLUSTERRESULT_H_
#include <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/live/LiveExport.h>
#include <alibabacloud/adb/AdbExport.h>
namespace AlibabaCloud
{
namespace Live
namespace Adb
{
namespace Model
{
class ALIBABACLOUD_LIVE_EXPORT AddLiveStreamMergeResult : public ServiceResult
class ALIBABACLOUD_ADB_EXPORT DryRunClusterResult : public ServiceResult
{
public:
AddLiveStreamMergeResult();
explicit AddLiveStreamMergeResult(const std::string &payload);
~AddLiveStreamMergeResult();
DryRunClusterResult();
explicit DryRunClusterResult(const std::string &payload);
~DryRunClusterResult();
bool getSuccess()const;
protected:
void parse(const std::string &payload);
private:
bool success_;
};
}
}
}
#endif // !ALIBABACLOUD_LIVE_MODEL_ADDLIVESTREAMMERGERESULT_H_
#endif // !ALIBABACLOUD_ADB_MODEL_DRYRUNCLUSTERRESULT_H_

View File

@@ -2103,6 +2103,42 @@ AdbClient::DescribeRegionsOutcomeCallable AdbClient::describeRegionsCallable(con
return task->get_future();
}
AdbClient::DescribeSQLPatternAttributeOutcome AdbClient::describeSQLPatternAttribute(const DescribeSQLPatternAttributeRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return DescribeSQLPatternAttributeOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return DescribeSQLPatternAttributeOutcome(DescribeSQLPatternAttributeResult(outcome.result()));
else
return DescribeSQLPatternAttributeOutcome(outcome.error());
}
void AdbClient::describeSQLPatternAttributeAsync(const DescribeSQLPatternAttributeRequest& request, const DescribeSQLPatternAttributeAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, describeSQLPatternAttribute(request), context);
};
asyncExecute(new Runnable(fn));
}
AdbClient::DescribeSQLPatternAttributeOutcomeCallable AdbClient::describeSQLPatternAttributeCallable(const DescribeSQLPatternAttributeRequest &request) const
{
auto task = std::make_shared<std::packaged_task<DescribeSQLPatternAttributeOutcome()>>(
[this, request]()
{
return this->describeSQLPatternAttribute(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
AdbClient::DescribeSQLPatternsOutcome AdbClient::describeSQLPatterns(const DescribeSQLPatternsRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
@@ -2571,42 +2607,6 @@ 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,6 +2715,42 @@ 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();

View File

@@ -34,6 +34,33 @@ void DescribeDBClusterPerformanceRequest::setResourceOwnerId(long resourceOwnerI
setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId));
}
std::string DescribeDBClusterPerformanceRequest::getStartTime() const {
return startTime_;
}
void DescribeDBClusterPerformanceRequest::setStartTime(const std::string &startTime) {
startTime_ = startTime;
setParameter(std::string("StartTime"), startTime);
}
std::string DescribeDBClusterPerformanceRequest::getAccessKeyId() const {
return accessKeyId_;
}
void DescribeDBClusterPerformanceRequest::setAccessKeyId(const std::string &accessKeyId) {
accessKeyId_ = accessKeyId;
setParameter(std::string("AccessKeyId"), accessKeyId);
}
std::string DescribeDBClusterPerformanceRequest::getKey() const {
return key_;
}
void DescribeDBClusterPerformanceRequest::setKey(const std::string &key) {
key_ = key;
setParameter(std::string("Key"), key);
}
std::string DescribeDBClusterPerformanceRequest::getResourceOwnerAccount() const {
return resourceOwnerAccount_;
}
@@ -70,15 +97,6 @@ void DescribeDBClusterPerformanceRequest::setEndTime(const std::string &endTime)
setParameter(std::string("EndTime"), endTime);
}
std::string DescribeDBClusterPerformanceRequest::getStartTime() const {
return startTime_;
}
void DescribeDBClusterPerformanceRequest::setStartTime(const std::string &startTime) {
startTime_ = startTime;
setParameter(std::string("StartTime"), startTime);
}
long DescribeDBClusterPerformanceRequest::getOwnerId() const {
return ownerId_;
}
@@ -88,39 +106,3 @@ void DescribeDBClusterPerformanceRequest::setOwnerId(long ownerId) {
setParameter(std::string("OwnerId"), std::to_string(ownerId));
}
std::string DescribeDBClusterPerformanceRequest::getAccessKeyId() const {
return accessKeyId_;
}
void DescribeDBClusterPerformanceRequest::setAccessKeyId(const std::string &accessKeyId) {
accessKeyId_ = accessKeyId;
setParameter(std::string("AccessKeyId"), accessKeyId);
}
std::string DescribeDBClusterPerformanceRequest::getRegionId() const {
return regionId_;
}
void DescribeDBClusterPerformanceRequest::setRegionId(const std::string &regionId) {
regionId_ = regionId;
setParameter(std::string("RegionId"), regionId);
}
std::string DescribeDBClusterPerformanceRequest::getResourcePools() const {
return resourcePools_;
}
void DescribeDBClusterPerformanceRequest::setResourcePools(const std::string &resourcePools) {
resourcePools_ = resourcePools;
setParameter(std::string("ResourcePools"), resourcePools);
}
std::string DescribeDBClusterPerformanceRequest::getKey() const {
return key_;
}
void DescribeDBClusterPerformanceRequest::setKey(const std::string &key) {
key_ = key;
setParameter(std::string("Key"), key);
}

View File

@@ -53,8 +53,6 @@ void DescribeDBClusterPerformanceResult::parse(const std::string &payload)
PerformanceItem::SeriesItem seriesObject;
if(!valuePerformancesPerformanceItemSeriesSeriesItem["Name"].isNull())
seriesObject.name = valuePerformancesPerformanceItemSeriesSeriesItem["Name"].asString();
if(!valuePerformancesPerformanceItemSeriesSeriesItem["Tags"].isNull())
seriesObject.tags = valuePerformancesPerformanceItemSeriesSeriesItem["Tags"].asString();
auto allValues = value["Values"]["Values"];
for (auto value : allValues)
seriesObject.values.push_back(value.asString());

View 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/adb/model/DescribeSQLPatternAttributeRequest.h>
using AlibabaCloud::Adb::Model::DescribeSQLPatternAttributeRequest;
DescribeSQLPatternAttributeRequest::DescribeSQLPatternAttributeRequest()
: RpcServiceRequest("adb", "2019-03-15", "DescribeSQLPatternAttribute") {
setMethod(HttpRequest::Method::Post);
}
DescribeSQLPatternAttributeRequest::~DescribeSQLPatternAttributeRequest() {}
std::string DescribeSQLPatternAttributeRequest::getDBClusterId() const {
return dBClusterId_;
}
void DescribeSQLPatternAttributeRequest::setDBClusterId(const std::string &dBClusterId) {
dBClusterId_ = dBClusterId;
setParameter(std::string("DBClusterId"), dBClusterId);
}
long DescribeSQLPatternAttributeRequest::getPatternId() const {
return patternId_;
}
void DescribeSQLPatternAttributeRequest::setPatternId(long patternId) {
patternId_ = patternId;
setParameter(std::string("PatternId"), std::to_string(patternId));
}
std::string DescribeSQLPatternAttributeRequest::getEndTime() const {
return endTime_;
}
void DescribeSQLPatternAttributeRequest::setEndTime(const std::string &endTime) {
endTime_ = endTime;
setParameter(std::string("EndTime"), endTime);
}
std::string DescribeSQLPatternAttributeRequest::getStartTime() const {
return startTime_;
}
void DescribeSQLPatternAttributeRequest::setStartTime(const std::string &startTime) {
startTime_ = startTime;
setParameter(std::string("StartTime"), startTime);
}
std::string DescribeSQLPatternAttributeRequest::getRegionId() const {
return regionId_;
}
void DescribeSQLPatternAttributeRequest::setRegionId(const std::string &regionId) {
regionId_ = regionId;
setParameter(std::string("RegionId"), regionId);
}
std::string DescribeSQLPatternAttributeRequest::getLang() const {
return lang_;
}
void DescribeSQLPatternAttributeRequest::setLang(const std::string &lang) {
lang_ = lang;
setParameter(std::string("Lang"), lang);
}

View File

@@ -0,0 +1,60 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/adb/model/DescribeSQLPatternAttributeResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Adb;
using namespace AlibabaCloud::Adb::Model;
DescribeSQLPatternAttributeResult::DescribeSQLPatternAttributeResult() :
ServiceResult()
{}
DescribeSQLPatternAttributeResult::DescribeSQLPatternAttributeResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DescribeSQLPatternAttributeResult::~DescribeSQLPatternAttributeResult()
{}
void DescribeSQLPatternAttributeResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto patternDetailNode = value["PatternDetail"];
if(!patternDetailNode["SQLPattern"].isNull())
patternDetail_.sQLPattern = patternDetailNode["SQLPattern"].asString();
if(!patternDetailNode["QueryCount"].isNull())
patternDetail_.queryCount = std::stol(patternDetailNode["QueryCount"].asString());
if(!patternDetailNode["TotalQueryTime"].isNull())
patternDetail_.totalQueryTime = patternDetailNode["TotalQueryTime"].asString();
if(!patternDetailNode["AverageQueryTime"].isNull())
patternDetail_.averageQueryTime = patternDetailNode["AverageQueryTime"].asString();
if(!patternDetailNode["AverageMemory"].isNull())
patternDetail_.averageMemory = patternDetailNode["AverageMemory"].asString();
}
DescribeSQLPatternAttributeResult::PatternDetail DescribeSQLPatternAttributeResult::getPatternDetail()const
{
return patternDetail_;
}

View File

@@ -1,117 +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/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 &regionId) {
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);
}

View File

@@ -1,78 +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/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_;
}

View File

@@ -0,0 +1,171 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT 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 &regionId) {
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);
}

View File

@@ -14,37 +14,37 @@
* limitations under the License.
*/
#include <alibabacloud/dataworks-public/model/CallbackExtensionResult.h>
#include <alibabacloud/adb/model/DryRunClusterResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Dataworks_public;
using namespace AlibabaCloud::Dataworks_public::Model;
using namespace AlibabaCloud::Adb;
using namespace AlibabaCloud::Adb::Model;
CallbackExtensionResult::CallbackExtensionResult() :
DryRunClusterResult::DryRunClusterResult() :
ServiceResult()
{}
CallbackExtensionResult::CallbackExtensionResult(const std::string &payload) :
DryRunClusterResult::DryRunClusterResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
CallbackExtensionResult::~CallbackExtensionResult()
DryRunClusterResult::~DryRunClusterResult()
{}
void CallbackExtensionResult::parse(const std::string &payload)
void DryRunClusterResult::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();
success_ = value["Success"].asString() == "true";
}
std::string CallbackExtensionResult::getSuccess()const
bool DryRunClusterResult::getSuccess()const
{
return success_;
}

View File

@@ -23,10 +23,6 @@ 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
@@ -49,8 +45,6 @@ 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
@@ -69,8 +63,6 @@ set(avatar_public_header_model
include/alibabacloud/avatar/model/SubmitAudioTo2DAvatarVideoTaskResult.h
include/alibabacloud/avatar/model/SubmitAudioTo3DAvatarVideoTaskRequest.h
include/alibabacloud/avatar/model/SubmitAudioTo3DAvatarVideoTaskResult.h
include/alibabacloud/avatar/model/SubmitAvatarVideoTaskRequest.h
include/alibabacloud/avatar/model/SubmitAvatarVideoTaskResult.h
include/alibabacloud/avatar/model/SubmitTextTo2DAvatarVideoTaskRequest.h
include/alibabacloud/avatar/model/SubmitTextTo2DAvatarVideoTaskResult.h
include/alibabacloud/avatar/model/SubmitTextTo3DAvatarVideoTaskRequest.h
@@ -82,10 +74,6 @@ 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
@@ -108,8 +96,6 @@ 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
@@ -128,8 +114,6 @@ set(avatar_src
src/model/SubmitAudioTo2DAvatarVideoTaskResult.cc
src/model/SubmitAudioTo3DAvatarVideoTaskRequest.cc
src/model/SubmitAudioTo3DAvatarVideoTaskResult.cc
src/model/SubmitAvatarVideoTaskRequest.cc
src/model/SubmitAvatarVideoTaskResult.cc
src/model/SubmitTextTo2DAvatarVideoTaskRequest.cc
src/model/SubmitTextTo2DAvatarVideoTaskResult.cc
src/model/SubmitTextTo3DAvatarVideoTaskRequest.cc

View File

@@ -24,10 +24,6 @@
#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"
@@ -50,8 +46,6 @@
#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"
@@ -70,8 +64,6 @@
#include "model/SubmitAudioTo2DAvatarVideoTaskResult.h"
#include "model/SubmitAudioTo3DAvatarVideoTaskRequest.h"
#include "model/SubmitAudioTo3DAvatarVideoTaskResult.h"
#include "model/SubmitAvatarVideoTaskRequest.h"
#include "model/SubmitAvatarVideoTaskResult.h"
#include "model/SubmitTextTo2DAvatarVideoTaskRequest.h"
#include "model/SubmitTextTo2DAvatarVideoTaskResult.h"
#include "model/SubmitTextTo3DAvatarVideoTaskRequest.h"
@@ -90,12 +82,6 @@ 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;
@@ -129,9 +115,6 @@ 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,9 +142,6 @@ namespace AlibabaCloud
typedef Outcome<Error, Model::SubmitAudioTo3DAvatarVideoTaskResult> SubmitAudioTo3DAvatarVideoTaskOutcome;
typedef std::future<SubmitAudioTo3DAvatarVideoTaskOutcome> SubmitAudioTo3DAvatarVideoTaskOutcomeCallable;
typedef std::function<void(const AvatarClient*, const Model::SubmitAudioTo3DAvatarVideoTaskRequest&, const SubmitAudioTo3DAvatarVideoTaskOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> SubmitAudioTo3DAvatarVideoTaskAsyncHandler;
typedef Outcome<Error, Model::SubmitAvatarVideoTaskResult> SubmitAvatarVideoTaskOutcome;
typedef std::future<SubmitAvatarVideoTaskOutcome> SubmitAvatarVideoTaskOutcomeCallable;
typedef std::function<void(const AvatarClient*, const Model::SubmitAvatarVideoTaskRequest&, const SubmitAvatarVideoTaskOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> SubmitAvatarVideoTaskAsyncHandler;
typedef Outcome<Error, Model::SubmitTextTo2DAvatarVideoTaskResult> SubmitTextTo2DAvatarVideoTaskOutcome;
typedef std::future<SubmitTextTo2DAvatarVideoTaskOutcome> SubmitTextTo2DAvatarVideoTaskOutcomeCallable;
typedef std::function<void(const AvatarClient*, const Model::SubmitTextTo2DAvatarVideoTaskRequest&, const SubmitTextTo2DAvatarVideoTaskOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> SubmitTextTo2DAvatarVideoTaskAsyncHandler;
@@ -179,12 +159,6 @@ 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;
@@ -218,9 +192,6 @@ 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;
@@ -248,9 +219,6 @@ namespace AlibabaCloud
SubmitAudioTo3DAvatarVideoTaskOutcome submitAudioTo3DAvatarVideoTask(const Model::SubmitAudioTo3DAvatarVideoTaskRequest &request)const;
void submitAudioTo3DAvatarVideoTaskAsync(const Model::SubmitAudioTo3DAvatarVideoTaskRequest& request, const SubmitAudioTo3DAvatarVideoTaskAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
SubmitAudioTo3DAvatarVideoTaskOutcomeCallable submitAudioTo3DAvatarVideoTaskCallable(const Model::SubmitAudioTo3DAvatarVideoTaskRequest& request) const;
SubmitAvatarVideoTaskOutcome submitAvatarVideoTask(const Model::SubmitAvatarVideoTaskRequest &request)const;
void submitAvatarVideoTaskAsync(const Model::SubmitAvatarVideoTaskRequest& request, const SubmitAvatarVideoTaskAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
SubmitAvatarVideoTaskOutcomeCallable submitAvatarVideoTaskCallable(const Model::SubmitAvatarVideoTaskRequest& request) const;
SubmitTextTo2DAvatarVideoTaskOutcome submitTextTo2DAvatarVideoTask(const Model::SubmitTextTo2DAvatarVideoTaskRequest &request)const;
void submitTextTo2DAvatarVideoTaskAsync(const Model::SubmitTextTo2DAvatarVideoTaskRequest& request, const SubmitTextTo2DAvatarVideoTaskAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
SubmitTextTo2DAvatarVideoTaskOutcomeCallable submitTextTo2DAvatarVideoTaskCallable(const Model::SubmitTextTo2DAvatarVideoTaskRequest& request) const;

View File

@@ -1,57 +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_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_

View File

@@ -1,55 +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_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_

View File

@@ -1,45 +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_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_

View File

@@ -1,61 +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_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_

View File

@@ -37,7 +37,6 @@ namespace AlibabaCloud
struct TaskResult
{
std::string alphaUrl;
std::string attachmentUrl;
int videoDuration;
std::string previewPic;
std::string failCode;

View File

@@ -53,7 +53,6 @@ namespace AlibabaCloud
};
User user;
Channel channel;
std::string token;
std::string sessionId;
};

View File

@@ -39,7 +39,6 @@ namespace AlibabaCloud
struct TaskResult
{
std::string alphaUrl;
std::string attachmentUrl;
int videoDuration;
std::string previewPic;
std::string failCode;

View File

@@ -1,48 +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_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_

View File

@@ -1,61 +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_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_

View File

@@ -1,72 +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_AVATAR_MODEL_SUBMITAVATARVIDEOTASKREQUEST_H_
#define ALIBABACLOUD_AVATAR_MODEL_SUBMITAVATARVIDEOTASKREQUEST_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 SubmitAvatarVideoTaskRequest : public RpcServiceRequest {
public:
struct App {
std::string appId;
};
SubmitAvatarVideoTaskRequest();
~SubmitAvatarVideoTaskRequest();
std::string getTitle() const;
void setTitle(const std::string &title);
std::string getCallbackParams() const;
void setCallbackParams(const std::string &callbackParams);
long getTenantId() const;
void setTenantId(long tenantId);
std::string getVideoParams() const;
void setVideoParams(const std::string &videoParams);
App getApp() const;
void setApp(const App &app);
std::string getExtParams() const;
void setExtParams(const std::string &extParams);
std::string getVideoParams_CLS() const;
void setVideoParams_CLS(const std::string &videoParams_CLS);
bool getCallback() const;
void setCallback(bool callback);
std::string getExtParams_CLS() const;
void setExtParams_CLS(const std::string &extParams_CLS);
std::string getCallbackParams_CLS() const;
void setCallbackParams_CLS(const std::string &callbackParams_CLS);
private:
std::string title_;
std::string callbackParams_;
long tenantId_;
std::string videoParams_;
App app_;
std::string extParams_;
std::string videoParams_CLS_;
bool callback_;
std::string extParams_CLS_;
std::string callbackParams_CLS_;
};
} // namespace Model
} // namespace Avatar
} // namespace AlibabaCloud
#endif // !ALIBABACLOUD_AVATAR_MODEL_SUBMITAVATARVIDEOTASKREQUEST_H_

View File

@@ -87,78 +87,6 @@ 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();
@@ -555,42 +483,6 @@ 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();
@@ -915,42 +807,6 @@ AvatarClient::SubmitAudioTo3DAvatarVideoTaskOutcomeCallable AvatarClient::submit
return task->get_future();
}
AvatarClient::SubmitAvatarVideoTaskOutcome AvatarClient::submitAvatarVideoTask(const SubmitAvatarVideoTaskRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return SubmitAvatarVideoTaskOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return SubmitAvatarVideoTaskOutcome(SubmitAvatarVideoTaskResult(outcome.result()));
else
return SubmitAvatarVideoTaskOutcome(outcome.error());
}
void AvatarClient::submitAvatarVideoTaskAsync(const SubmitAvatarVideoTaskRequest& request, const SubmitAvatarVideoTaskAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, submitAvatarVideoTask(request), context);
};
asyncExecute(new Runnable(fn));
}
AvatarClient::SubmitAvatarVideoTaskOutcomeCallable AvatarClient::submitAvatarVideoTaskCallable(const SubmitAvatarVideoTaskRequest &request) const
{
auto task = std::make_shared<std::packaged_task<SubmitAvatarVideoTaskOutcome()>>(
[this, request]()
{
return this->submitAvatarVideoTask(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
AvatarClient::SubmitTextTo2DAvatarVideoTaskOutcome AvatarClient::submitTextTo2DAvatarVideoTask(const SubmitTextTo2DAvatarVideoTaskRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();

View File

@@ -1,81 +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/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);
}

View File

@@ -1,65 +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/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_;
}

View File

@@ -1,45 +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/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));
}

View File

@@ -1,73 +0,0 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/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_;
}

View File

@@ -65,8 +65,6 @@ void GetVideoTaskInfoResult::parse(const std::string &payload)
data_.taskResult.alphaUrl = taskResultNode["AlphaUrl"].asString();
if(!taskResultNode["PreviewPic"].isNull())
data_.taskResult.previewPic = taskResultNode["PreviewPic"].asString();
if(!taskResultNode["AttachmentUrl"].isNull())
data_.taskResult.attachmentUrl = taskResultNode["AttachmentUrl"].asString();
if(!value["Code"].isNull())
code_ = value["Code"].asString();
if(!value["Message"].isNull())

View File

@@ -45,8 +45,6 @@ void QueryRunningInstanceResult::parse(const std::string &payload)
DataItem dataObject;
if(!valueDatadataItem["SessionId"].isNull())
dataObject.sessionId = valueDatadataItem["SessionId"].asString();
if(!valueDatadataItem["Token"].isNull())
dataObject.token = valueDatadataItem["Token"].asString();
auto channelNode = value["Channel"];
if(!channelNode["ChannelId"].isNull())
dataObject.channel.channelId = channelNode["ChannelId"].asString();

View File

@@ -75,8 +75,6 @@ void QueryVideoTaskInfoResult::parse(const std::string &payload)
listItemObject.taskResult.alphaUrl = taskResultNode["AlphaUrl"].asString();
if(!taskResultNode["PreviewPic"].isNull())
listItemObject.taskResult.previewPic = taskResultNode["PreviewPic"].asString();
if(!taskResultNode["AttachmentUrl"].isNull())
listItemObject.taskResult.attachmentUrl = taskResultNode["AttachmentUrl"].asString();
data_.list.push_back(listItemObject);
}
if(!value["Success"].isNull())

View File

@@ -1,54 +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/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));
}

View File

@@ -1,73 +0,0 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/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_;
}

View File

@@ -42,12 +42,12 @@ void SubmitAudioTo2DAvatarVideoTaskResult::parse(const std::string &payload)
auto dataNode = value["Data"];
if(!dataNode["TaskUuid"].isNull())
data_.taskUuid = dataNode["TaskUuid"].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();
if(!value["Success"].isNull())
success_ = value["Success"].asString() == "true";
}

View File

@@ -1,117 +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/avatar/model/SubmitAvatarVideoTaskRequest.h>
using AlibabaCloud::Avatar::Model::SubmitAvatarVideoTaskRequest;
SubmitAvatarVideoTaskRequest::SubmitAvatarVideoTaskRequest()
: RpcServiceRequest("avatar", "2022-01-30", "SubmitAvatarVideoTask") {
setMethod(HttpRequest::Method::Post);
}
SubmitAvatarVideoTaskRequest::~SubmitAvatarVideoTaskRequest() {}
std::string SubmitAvatarVideoTaskRequest::getTitle() const {
return title_;
}
void SubmitAvatarVideoTaskRequest::setTitle(const std::string &title) {
title_ = title;
setParameter(std::string("Title"), title);
}
std::string SubmitAvatarVideoTaskRequest::getCallbackParams() const {
return callbackParams_;
}
void SubmitAvatarVideoTaskRequest::setCallbackParams(const std::string &callbackParams) {
callbackParams_ = callbackParams;
setParameter(std::string("CallbackParams"), callbackParams);
}
long SubmitAvatarVideoTaskRequest::getTenantId() const {
return tenantId_;
}
void SubmitAvatarVideoTaskRequest::setTenantId(long tenantId) {
tenantId_ = tenantId;
setParameter(std::string("TenantId"), std::to_string(tenantId));
}
std::string SubmitAvatarVideoTaskRequest::getVideoParams() const {
return videoParams_;
}
void SubmitAvatarVideoTaskRequest::setVideoParams(const std::string &videoParams) {
videoParams_ = videoParams;
setParameter(std::string("VideoParams"), videoParams);
}
SubmitAvatarVideoTaskRequest::App SubmitAvatarVideoTaskRequest::getApp() const {
return app_;
}
void SubmitAvatarVideoTaskRequest::setApp(const SubmitAvatarVideoTaskRequest::App &app) {
app_ = app;
setParameter(std::string("App") + ".AppId", app.appId);
}
std::string SubmitAvatarVideoTaskRequest::getExtParams() const {
return extParams_;
}
void SubmitAvatarVideoTaskRequest::setExtParams(const std::string &extParams) {
extParams_ = extParams;
setParameter(std::string("ExtParams"), extParams);
}
std::string SubmitAvatarVideoTaskRequest::getVideoParams_CLS() const {
return videoParams_CLS_;
}
void SubmitAvatarVideoTaskRequest::setVideoParams_CLS(const std::string &videoParams_CLS) {
videoParams_CLS_ = videoParams_CLS;
setParameter(std::string("VideoParams_CLS"), videoParams_CLS);
}
bool SubmitAvatarVideoTaskRequest::getCallback() const {
return callback_;
}
void SubmitAvatarVideoTaskRequest::setCallback(bool callback) {
callback_ = callback;
setParameter(std::string("Callback"), callback ? "true" : "false");
}
std::string SubmitAvatarVideoTaskRequest::getExtParams_CLS() const {
return extParams_CLS_;
}
void SubmitAvatarVideoTaskRequest::setExtParams_CLS(const std::string &extParams_CLS) {
extParams_CLS_ = extParams_CLS;
setParameter(std::string("ExtParams_CLS"), extParams_CLS);
}
std::string SubmitAvatarVideoTaskRequest::getCallbackParams_CLS() const {
return callbackParams_CLS_;
}
void SubmitAvatarVideoTaskRequest::setCallbackParams_CLS(const std::string &callbackParams_CLS) {
callbackParams_CLS_ = callbackParams_CLS;
setParameter(std::string("CallbackParams_CLS"), callbackParams_CLS);
}

View File

@@ -1,73 +0,0 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/avatar/model/SubmitAvatarVideoTaskResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Avatar;
using namespace AlibabaCloud::Avatar::Model;
SubmitAvatarVideoTaskResult::SubmitAvatarVideoTaskResult() :
ServiceResult()
{}
SubmitAvatarVideoTaskResult::SubmitAvatarVideoTaskResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
SubmitAvatarVideoTaskResult::~SubmitAvatarVideoTaskResult()
{}
void SubmitAvatarVideoTaskResult::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["TaskUuid"].isNull())
data_.taskUuid = dataNode["TaskUuid"].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 SubmitAvatarVideoTaskResult::getMessage()const
{
return message_;
}
SubmitAvatarVideoTaskResult::Data SubmitAvatarVideoTaskResult::getData()const
{
return data_;
}
std::string SubmitAvatarVideoTaskResult::getCode()const
{
return code_;
}
bool SubmitAvatarVideoTaskResult::getSuccess()const
{
return success_;
}

View File

@@ -21,8 +21,6 @@ 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
@@ -35,8 +33,6 @@ 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
@@ -49,36 +45,20 @@ 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
include/alibabacloud/cams/model/GetChatappVerifyCodeResult.h
include/alibabacloud/cams/model/GetCommerceSettingRequest.h
include/alibabacloud/cams/model/GetCommerceSettingResult.h
include/alibabacloud/cams/model/GetMigrationVerifyCodeRequest.h
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
@@ -99,15 +79,11 @@ set(cams_public_header_model
include/alibabacloud/cams/model/SubmitIsvCustomerTermsResult.h
include/alibabacloud/cams/model/UpdateAccountWebhookRequest.h
include/alibabacloud/cams/model/UpdateAccountWebhookResult.h
include/alibabacloud/cams/model/UpdateCommerceSettingRequest.h
include/alibabacloud/cams/model/UpdateCommerceSettingResult.h
include/alibabacloud/cams/model/UpdatePhoneWebhookRequest.h
include/alibabacloud/cams/model/UpdatePhoneWebhookResult.h )
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
@@ -120,8 +96,6 @@ 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
@@ -134,36 +108,20 @@ 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
src/model/GetChatappVerifyCodeResult.cc
src/model/GetCommerceSettingRequest.cc
src/model/GetCommerceSettingResult.cc
src/model/GetMigrationVerifyCodeRequest.cc
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
@@ -184,8 +142,6 @@ set(cams_src
src/model/SubmitIsvCustomerTermsResult.cc
src/model/UpdateAccountWebhookRequest.cc
src/model/UpdateAccountWebhookResult.cc
src/model/UpdateCommerceSettingRequest.cc
src/model/UpdateCommerceSettingResult.cc
src/model/UpdatePhoneWebhookRequest.cc
src/model/UpdatePhoneWebhookResult.cc )

View File

@@ -22,8 +22,6 @@
#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"
@@ -36,8 +34,6 @@
#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"
@@ -50,36 +46,20 @@
#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"
#include "model/GetChatappVerifyCodeResult.h"
#include "model/GetCommerceSettingRequest.h"
#include "model/GetCommerceSettingResult.h"
#include "model/GetMigrationVerifyCodeRequest.h"
#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"
@@ -100,8 +80,6 @@
#include "model/SubmitIsvCustomerTermsResult.h"
#include "model/UpdateAccountWebhookRequest.h"
#include "model/UpdateAccountWebhookResult.h"
#include "model/UpdateCommerceSettingRequest.h"
#include "model/UpdateCommerceSettingResult.h"
#include "model/UpdatePhoneWebhookRequest.h"
#include "model/UpdatePhoneWebhookResult.h"
@@ -113,9 +91,6 @@ 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;
@@ -134,9 +109,6 @@ 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;
@@ -155,51 +127,27 @@ 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;
typedef Outcome<Error, Model::GetChatappVerifyCodeResult> GetChatappVerifyCodeOutcome;
typedef std::future<GetChatappVerifyCodeOutcome> GetChatappVerifyCodeOutcomeCallable;
typedef std::function<void(const CamsClient*, const Model::GetChatappVerifyCodeRequest&, const GetChatappVerifyCodeOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetChatappVerifyCodeAsyncHandler;
typedef Outcome<Error, Model::GetCommerceSettingResult> GetCommerceSettingOutcome;
typedef std::future<GetCommerceSettingOutcome> GetCommerceSettingOutcomeCallable;
typedef std::function<void(const CamsClient*, const Model::GetCommerceSettingRequest&, const GetCommerceSettingOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetCommerceSettingAsyncHandler;
typedef Outcome<Error, Model::GetMigrationVerifyCodeResult> GetMigrationVerifyCodeOutcome;
typedef std::future<GetMigrationVerifyCodeOutcome> GetMigrationVerifyCodeOutcomeCallable;
typedef std::function<void(const CamsClient*, const Model::GetMigrationVerifyCodeRequest&, const GetMigrationVerifyCodeOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetMigrationVerifyCodeAsyncHandler;
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;
@@ -230,9 +178,6 @@ namespace AlibabaCloud
typedef Outcome<Error, Model::UpdateAccountWebhookResult> UpdateAccountWebhookOutcome;
typedef std::future<UpdateAccountWebhookOutcome> UpdateAccountWebhookOutcomeCallable;
typedef std::function<void(const CamsClient*, const Model::UpdateAccountWebhookRequest&, const UpdateAccountWebhookOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> UpdateAccountWebhookAsyncHandler;
typedef Outcome<Error, Model::UpdateCommerceSettingResult> UpdateCommerceSettingOutcome;
typedef std::future<UpdateCommerceSettingOutcome> UpdateCommerceSettingOutcomeCallable;
typedef std::function<void(const CamsClient*, const Model::UpdateCommerceSettingRequest&, const UpdateCommerceSettingOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> UpdateCommerceSettingAsyncHandler;
typedef Outcome<Error, Model::UpdatePhoneWebhookResult> UpdatePhoneWebhookOutcome;
typedef std::future<UpdatePhoneWebhookOutcome> UpdatePhoneWebhookOutcomeCallable;
typedef std::function<void(const CamsClient*, const Model::UpdatePhoneWebhookRequest&, const UpdatePhoneWebhookOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> UpdatePhoneWebhookAsyncHandler;
@@ -241,9 +186,6 @@ 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;
@@ -262,9 +204,6 @@ 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;
@@ -283,51 +222,27 @@ 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;
GetChatappVerifyCodeOutcome getChatappVerifyCode(const Model::GetChatappVerifyCodeRequest &request)const;
void getChatappVerifyCodeAsync(const Model::GetChatappVerifyCodeRequest& request, const GetChatappVerifyCodeAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
GetChatappVerifyCodeOutcomeCallable getChatappVerifyCodeCallable(const Model::GetChatappVerifyCodeRequest& request) const;
GetCommerceSettingOutcome getCommerceSetting(const Model::GetCommerceSettingRequest &request)const;
void getCommerceSettingAsync(const Model::GetCommerceSettingRequest& request, const GetCommerceSettingAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
GetCommerceSettingOutcomeCallable getCommerceSettingCallable(const Model::GetCommerceSettingRequest& request) const;
GetMigrationVerifyCodeOutcome getMigrationVerifyCode(const Model::GetMigrationVerifyCodeRequest &request)const;
void getMigrationVerifyCodeAsync(const Model::GetMigrationVerifyCodeRequest& request, const GetMigrationVerifyCodeAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
GetMigrationVerifyCodeOutcomeCallable getMigrationVerifyCodeCallable(const Model::GetMigrationVerifyCodeRequest& request) const;
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;
@@ -358,9 +273,6 @@ namespace AlibabaCloud
UpdateAccountWebhookOutcome updateAccountWebhook(const Model::UpdateAccountWebhookRequest &request)const;
void updateAccountWebhookAsync(const Model::UpdateAccountWebhookRequest& request, const UpdateAccountWebhookAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
UpdateAccountWebhookOutcomeCallable updateAccountWebhookCallable(const Model::UpdateAccountWebhookRequest& request) const;
UpdateCommerceSettingOutcome updateCommerceSetting(const Model::UpdateCommerceSettingRequest &request)const;
void updateCommerceSettingAsync(const Model::UpdateCommerceSettingRequest& request, const UpdateCommerceSettingAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
UpdateCommerceSettingOutcomeCallable updateCommerceSettingCallable(const Model::UpdateCommerceSettingRequest& request) const;
UpdatePhoneWebhookOutcome updatePhoneWebhook(const Model::UpdatePhoneWebhookRequest &request)const;
void updatePhoneWebhookAsync(const Model::UpdatePhoneWebhookRequest& request, const UpdatePhoneWebhookAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
UpdatePhoneWebhookOutcomeCallable updatePhoneWebhookCallable(const Model::UpdatePhoneWebhookRequest& request) const;

View File

@@ -1,60 +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_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_

View File

@@ -1,55 +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_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_

View File

@@ -48,7 +48,6 @@ 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;
@@ -56,7 +55,6 @@ namespace AlibabaCloud
protected:
void parse(const std::string &payload);
private:
std::string accessDeniedDetail_;
std::string message_;
Data data_;
std::string code_;

View File

@@ -97,7 +97,6 @@ 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;
@@ -105,7 +104,6 @@ namespace AlibabaCloud
protected:
void parse(const std::string &payload);
private:
std::string accessDeniedDetail_;
std::string message_;
Data data_;
std::string code_;

View File

@@ -42,7 +42,6 @@ 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;
@@ -50,7 +49,6 @@ namespace AlibabaCloud
protected:
void parse(const std::string &payload);
private:
std::string accessDeniedDetail_;
std::string message_;
Data data_;
std::string code_;

View File

@@ -45,7 +45,6 @@ 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;
@@ -53,7 +52,6 @@ namespace AlibabaCloud
protected:
void parse(const std::string &payload);
private:
std::string accessDeniedDetail_;
std::string message_;
std::vector<Waba列表> wabas_;
std::string code_;

View File

@@ -37,14 +37,12 @@ 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_;

View File

@@ -42,7 +42,6 @@ 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;
@@ -50,7 +49,6 @@ namespace AlibabaCloud
protected:
void parse(const std::string &payload);
private:
std::string accessDeniedDetail_;
std::string message_;
Data data_;
std::string code_;

View File

@@ -1,51 +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_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_

View File

@@ -1,55 +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_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_

View File

@@ -37,14 +37,12 @@ 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_;

View File

@@ -53,7 +53,6 @@ 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;
@@ -61,7 +60,6 @@ namespace AlibabaCloud
void parse(const std::string &payload);
private:
std::vector<PhoneNumbersItem> phoneNumbers_;
std::string accessDeniedDetail_;
std::string message_;
std::string code_;

View File

@@ -37,14 +37,12 @@ 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_;

View File

@@ -43,7 +43,6 @@ 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;
@@ -51,7 +50,6 @@ namespace AlibabaCloud
protected:
void parse(const std::string &payload);
private:
std::string accessDeniedDetail_;
std::string message_;
Data data_;
std::string code_;

View File

@@ -45,7 +45,6 @@ public:
std::string packageName;
std::string autofillText;
bool isOptOut;
std::string couponCode;
};
ButtonsItem buttonsItem;
std::vector<ButtonsItem> buttons;
@@ -54,28 +53,6 @@ public:
std::string fileType;
int codeExpirationMinutes;
bool addSecretRecommendation;
bool hasExpiration;
struct CardsItem {
struct CardComponentsItem {
std::string type;
std::string format;
std::string text;
std::string url;
struct ButtonsItem {
std::string text;
std::string type;
std::string url;
std::string urlType;
std::string phoneNumber;
};
ButtonsItem buttonsItem;
std::vector<ButtonsItem> buttons;
};
CardComponentsItem cardComponentsItem;
std::vector<CardComponentsItem> cardComponents;
};
CardsItem cardsItem;
std::vector<CardsItem> cards;
};
CreateChatappTemplateRequest();
~CreateChatappTemplateRequest();
@@ -103,8 +80,6 @@ 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_;
@@ -119,7 +94,6 @@ private:
std::string name_;
bool allowCategoryChange_;
std::string category_;
int messageSendTtlSeconds_;
};
} // namespace Model
} // namespace Cams

View File

@@ -42,7 +42,6 @@ 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;
@@ -50,7 +49,6 @@ namespace AlibabaCloud
protected:
void parse(const std::string &payload);
private:
std::string accessDeniedDetail_;
std::string message_;
Data data_;
std::string code_;

View File

@@ -37,14 +37,12 @@ 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_;

View File

@@ -1,51 +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_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_

View File

@@ -1,55 +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_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_

View File

@@ -1,63 +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_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_

View File

@@ -1,66 +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_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_

View File

@@ -48,7 +48,6 @@ namespace AlibabaCloud
};
std::string autofillText;
std::string type;
std::string couponCode;
bool isOptOut;
std::string signatureHash;
std::string packageName;
@@ -58,34 +57,12 @@ namespace AlibabaCloud
ExtendAttrs extendAttrs;
std::string url;
};
struct
{
struct
{
struct
{
std::string type;
std::string phoneNumber;
std::string text;
std::string urlType;
std::string url;
};
std::string type;
std::string format;
std::string text;
std::string url;
std::vector<::> buttons1;
};
std::vector<::> cardComponents;
};
bool hasExpiration;
std::string thumbUrl;
std::string fileName;
std::string text;
int duration;
std::string latitude;
std::string longitude;
std::string offerExpirationTimeMs;
std::string url;
std::string caption;
bool addSecretRecommendation;
@@ -96,18 +73,14 @@ namespace AlibabaCloud
std::string fileType;
std::string locationAddress;
std::vector<Component::Button> buttons;
std::vector<Component::> cards;
};
std::vector<Component> components;
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;
};
@@ -115,7 +88,6 @@ 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;
@@ -123,7 +95,6 @@ namespace AlibabaCloud
protected:
void parse(const std::string &payload);
private:
std::string accessDeniedDetail_;
std::string message_;
Data data_;
std::string code_;

View File

@@ -1,69 +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_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_

View File

@@ -1,74 +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_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_

View File

@@ -47,7 +47,6 @@ 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;
@@ -55,7 +54,6 @@ namespace AlibabaCloud
protected:
void parse(const std::string &payload);
private:
std::string accessDeniedDetail_;
std::string message_;
Data data_;
std::string code_;

View File

@@ -37,14 +37,12 @@ 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_;

View File

@@ -1,51 +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_CAMS_MODEL_GETCOMMERCESETTINGREQUEST_H_
#define ALIBABACLOUD_CAMS_MODEL_GETCOMMERCESETTINGREQUEST_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 GetCommerceSettingRequest : public RpcServiceRequest {
public:
GetCommerceSettingRequest();
~GetCommerceSettingRequest();
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_GETCOMMERCESETTINGREQUEST_H_

View File

@@ -1,60 +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_CAMS_MODEL_GETCOMMERCESETTINGRESULT_H_
#define ALIBABACLOUD_CAMS_MODEL_GETCOMMERCESETTINGRESULT_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 GetCommerceSettingResult : public ServiceResult
{
public:
struct Data
{
bool cartEnable;
bool catalogVisible;
};
GetCommerceSettingResult();
explicit GetCommerceSettingResult(const std::string &payload);
~GetCommerceSettingResult();
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_GETCOMMERCESETTINGRESULT_H_

View File

@@ -42,7 +42,6 @@ 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;
@@ -50,7 +49,6 @@ namespace AlibabaCloud
protected:
void parse(const std::string &payload);
private:
std::string accessDeniedDetail_;
std::string message_;
Data data_;
std::string code_;

View File

@@ -1,51 +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_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_

View File

@@ -1,60 +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_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_

View File

@@ -1,66 +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_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_

View File

@@ -1,59 +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_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_

View File

@@ -37,7 +37,6 @@ 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;
@@ -45,7 +44,6 @@ namespace AlibabaCloud
protected:
void parse(const std::string &payload);
private:
std::string accessDeniedDetail_;
std::string message_;
std::string appId_;
std::string code_;

View File

@@ -40,14 +40,12 @@ 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;
@@ -56,7 +54,6 @@ namespace AlibabaCloud
protected:
void parse(const std::string &payload);
private:
std::string accessDeniedDetail_;
std::string message_;
std::vector<_Template> listTemplate_;
int total_;

View File

@@ -1,78 +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_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_

View File

@@ -1,73 +0,0 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#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_

View File

@@ -1,81 +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_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_

View File

@@ -1,73 +0,0 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#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_

View File

@@ -45,7 +45,6 @@ public:
std::string packageName;
std::string autofillText;
bool isOptOut;
std::string couponCode;
};
ButtonsItem buttonsItem;
std::vector<ButtonsItem> buttons;
@@ -54,28 +53,6 @@ public:
std::string fileType;
int codeExpirationMinutes;
bool addSecretRecommendation;
bool hasExpiration;
struct CardsItem {
struct CardComponentsItem {
std::string type;
std::string format;
std::string text;
std::string url;
struct ButtonsItem {
std::string text;
std::string type;
std::string url;
std::string urlType;
std::string phoneNumber;
};
ButtonsItem buttonsItem;
std::vector<ButtonsItem> buttons;
};
CardComponentsItem cardComponentsItem;
std::vector<CardComponentsItem> cardComponents;
};
CardsItem cardsItem;
std::vector<CardsItem> cards;
};
ModifyChatappTemplateRequest();
~ModifyChatappTemplateRequest();
@@ -99,8 +76,6 @@ 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);
@@ -115,7 +90,6 @@ private:
std::string prodCode_;
std::string custSpaceId_;
std::string category_;
int messageSendTtlSeconds_;
std::string templateCode_;
};
} // namespace Model

View File

@@ -42,7 +42,6 @@ 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;
@@ -50,7 +49,6 @@ namespace AlibabaCloud
protected:
void parse(const std::string &payload);
private:
std::string accessDeniedDetail_;
std::string message_;
Data data_;
std::string code_;

View File

@@ -37,14 +37,12 @@ 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_;

View File

@@ -45,7 +45,6 @@ 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;
@@ -53,7 +52,6 @@ namespace AlibabaCloud
protected:
void parse(const std::string &payload);
private:
std::string accessDeniedDetail_;
std::string message_;
Data data_;
std::string code_;

View File

@@ -53,7 +53,6 @@ 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;
@@ -61,7 +60,6 @@ namespace AlibabaCloud
void parse(const std::string &payload);
private:
std::vector<PhoneNumbersItem> phoneNumbers_;
std::string accessDeniedDetail_;
std::string message_;
std::string code_;

View File

@@ -46,7 +46,6 @@ 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;
@@ -54,7 +53,6 @@ namespace AlibabaCloud
protected:
void parse(const std::string &payload);
private:
std::string accessDeniedDetail_;
std::string message_;
Data data_;
std::string code_;

View File

@@ -44,7 +44,6 @@ 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;
@@ -52,7 +51,6 @@ namespace AlibabaCloud
protected:
void parse(const std::string &payload);
private:
std::string accessDeniedDetail_;
std::string message_;
Data data_;
std::string code_;

View File

@@ -33,20 +33,6 @@ 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();
@@ -66,8 +52,6 @@ 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;
@@ -96,7 +80,6 @@ private:
std::string channelType_;
std::string from_;
std::string tag_;
std::string fallBackRule_;
std::string taskId_;
std::string isvCode_;
std::string prodCode_;

View File

@@ -37,7 +37,6 @@ 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;
@@ -45,7 +44,6 @@ namespace AlibabaCloud
protected:
void parse(const std::string &payload);
private:
std::string accessDeniedDetail_;
std::string message_;
std::string groupMessageId_;
std::string code_;

View File

@@ -28,23 +28,8 @@ 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;
@@ -69,8 +54,6 @@ 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;
@@ -97,7 +80,6 @@ public:
void setTemplateCode(const std::string &templateCode);
private:
ProductAction productAction_;
std::string messageType_;
std::string language_;
std::string custWabaId_;
@@ -110,7 +92,6 @@ private:
std::string channelType_;
std::string from_;
std::string tag_;
std::string fallBackRule_;
std::string trackingData_;
std::string taskId_;
std::string isvCode_;

View File

@@ -37,14 +37,12 @@ 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_;

Some files were not shown because too many files have changed in this diff Show More