Compare commits

...

18 Commits

Author SHA1 Message Date
Jackson Tian
6dd2cf4afe test: add macosx into jobs 2023-09-14 14:39:57 +08:00
时起
8d13c48cce sts support compile on MACOS 2023-09-14 13:58:22 +08:00
Jackson Tian
be6c27326e test: add github action workflow 2023-09-14 13:54:16 +08:00
sdk-team
197159f97b Add value, values, startValue, endValue in ExportModelFeatureTrainingSetTable. 2023-09-13 09:54:04 +00:00
sdk-team
e788fcb800 DescribeChildInstanceRegions. 2023-09-12 03:14:30 +00:00
sdk-team
33537c905e Update by SDK platform. 2023-09-11 11:44:57 +00:00
sdk-team
c49607aeca add Instance, NetworkRule, Policy, ApplicationAccessPoint, ClientKey OpenAPIs 2023-09-11 09:03:24 +00:00
sdk-team
3dfdfd0845 Add eventTime, equal in ExportModelFeatureTrainingSetTable. 2023-09-08 11:58:16 +00:00
sdk-team
3aefd86108 Add taskId in WriteFeatureViewTable. 2023-09-08 07:08:02 +00:00
sdk-team
2b9789d179 Generated 2018-01-20 for Iot. 2023-09-07 09:42:57 +00:00
sdk-team
b43e953ab1 Support new feature. 2023-09-07 01:28:52 +00:00
sdk-team
830b92f2f9 Parameter changes in SubmitServerlessJob. 2023-09-06 09:43:20 +00:00
sdk-team
8d45c4275f Support ListNodeInfos4Pod. 2023-09-04 06:09:08 +00:00
sdk-team
22a89cfe51 Add request parameter Name in ListFeatureViews. 2023-09-04 04:04:48 +00:00
sdk-team
e33d34a3fc Support ListNodeInfos4Pod. 2023-09-04 02:54:20 +00:00
sdk-team
677e71ae09 发布资源清单下载、高级搜索、合规趋势统计等API. 2023-09-01 09:00:48 +00:00
sdk-team
83453dcf69 Update MergeVideoFace. 2023-08-31 08:09:28 +00:00
sdk-team
c9b390c0c1 Supported connector visualization manage. 2023-08-31 01:02:39 +00:00
225 changed files with 7808 additions and 79 deletions

29
.github/workflows/test.yaml vendored Normal file
View File

@@ -0,0 +1,29 @@
name: Test
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
test:
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
- 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 ./function_test.sh
- run: bash <(curl -s https://codecov.io/bash)

1
.gitignore vendored
View File

@@ -14,3 +14,4 @@ test/httpserver/nohup.out
.idea
build/
cmake-build-debug/
.DS_Store

View File

@@ -1 +1 @@
1.36.1743
1.36.1758

View File

@@ -44,6 +44,8 @@ public:
void setVersion(const std::string &version);
long getChildInstanceOwnerId() const;
void setChildInstanceOwnerId(long childInstanceOwnerId);
std::string getAcceptLanguage() const;
void setAcceptLanguage(const std::string &acceptLanguage);
private:
long resourceOwnerId_;
@@ -53,6 +55,7 @@ private:
long ownerId_;
std::string version_;
long childInstanceOwnerId_;
std::string acceptLanguage_;
};
} // namespace Model
} // namespace Cbn

View File

@@ -88,3 +88,12 @@ void DescribeChildInstanceRegionsRequest::setChildInstanceOwnerId(long childInst
setParameter(std::string("ChildInstanceOwnerId"), std::to_string(childInstanceOwnerId));
}
std::string DescribeChildInstanceRegionsRequest::getAcceptLanguage() const {
return acceptLanguage_;
}
void DescribeChildInstanceRegionsRequest::setAcceptLanguage(const std::string &acceptLanguage) {
acceptLanguage_ = acceptLanguage;
setParameter(std::string("AcceptLanguage"), acceptLanguage);
}

View File

@@ -37,7 +37,7 @@ namespace AlibabaCloud
struct ResourceRelationListItem
{
std::string targetResourceType;
int accountId;
long accountId;
std::string targetResourceId;
std::string relationType;
std::string sourceResourceRegionId;

View File

@@ -51,7 +51,7 @@ void ListAggregateResourceRelationsResult::parse(const std::string &payload)
{
ResourceRelations::ResourceRelationListItem resourceRelationListItemObject;
if(!resourceRelationsNodeResourceRelationListResourceRelationListItem["AccountId"].isNull())
resourceRelationListItemObject.accountId = std::stoi(resourceRelationsNodeResourceRelationListResourceRelationListItem["AccountId"].asString());
resourceRelationListItemObject.accountId = std::stol(resourceRelationsNodeResourceRelationListResourceRelationListItem["AccountId"].asString());
if(!resourceRelationsNodeResourceRelationListResourceRelationListItem["SourceResourceType"].isNull())
resourceRelationListItemObject.sourceResourceType = resourceRelationsNodeResourceRelationListResourceRelationListItem["SourceResourceType"].asString();
if(!resourceRelationsNodeResourceRelationListResourceRelationListItem["SourceResourceRegionId"].isNull())

View File

@@ -183,6 +183,15 @@ if(CMAKE_HOST_WIN32)
target_compile_definitions(core
PRIVATE CURL_STATICLIB
_CRT_SECURE_NO_WARNINGS)
elseif(CMAKE_HOST_APPLE)
MESSAGE(STATUS "core: include & link for MACOS")
target_include_directories(core
PRIVATE /usr/local/include)
target_link_libraries(core
/usr/local/lib/libcrypto.dylib
curl
/usr/local/lib/libjsoncpp.dylib
/usr/local/lib/libuuid.dylib )
else()
target_include_directories(core
PRIVATE /usr/include/jsoncpp)

View File

@@ -46,6 +46,7 @@ namespace AlibabaCloud
std::vector<PortRange> portRanges;
std::string createTime;
std::vector<std::string> policyIds;
std::vector<std::string> connectorIds;
std::string applicationId;
std::string protocol;
std::string name;

View File

@@ -44,8 +44,16 @@ namespace AlibabaCloud
std::string applicationName;
std::string applicationId;
};
struct ConnectorClient
{
std::string publicIp;
std::string hostname;
std::string devTag;
std::string connectionStatus;
};
std::string status;
std::vector<Connector::Application> applications;
std::vector<Connector::ConnectorClient> connectorClients;
std::string createTime;
std::string regionId;
UpgradeTime upgradeTime;

View File

@@ -40,6 +40,8 @@ public:
void setAddress(const std::string &address);
std::string getTagId() const;
void setTagId(const std::string &tagId);
std::string getConnectorId() const;
void setConnectorId(const std::string &connectorId);
int getCurrentPage() const;
void setCurrentPage(int currentPage);
std::vector<std::string> getApplicationIds() const;
@@ -55,6 +57,7 @@ private:
int pageSize_;
std::string address_;
std::string tagId_;
std::string connectorId_;
int currentPage_;
std::vector<std::string> applicationIds_;
std::string name_;

View File

@@ -46,6 +46,7 @@ namespace AlibabaCloud
std::vector<Application::PortRange> portRanges;
std::string createTime;
std::vector<std::string> policyIds;
std::vector<std::string> connectorIds;
std::string applicationId;
std::string protocol;
std::string name;

View File

@@ -71,6 +71,9 @@ void GetPrivateAccessApplicationResult::parse(const std::string &payload)
auto allPolicyIds = applicationNode["PolicyIds"]["policyId"];
for (auto value : allPolicyIds)
application_.policyIds.push_back(value.asString());
auto allConnectorIds = applicationNode["ConnectorIds"]["connectorId"];
for (auto value : allConnectorIds)
application_.connectorIds.push_back(value.asString());
}

View File

@@ -65,6 +65,20 @@ void ListConnectorsResult::parse(const std::string &payload)
applicationsObject.applicationName = valueConnectorsconnectorApplicationsapplication["ApplicationName"].asString();
connectorsObject.applications.push_back(applicationsObject);
}
auto allConnectorClientsNode = valueConnectorsconnector["ConnectorClients"]["connectorClient"];
for (auto valueConnectorsconnectorConnectorClientsconnectorClient : allConnectorClientsNode)
{
Connector::ConnectorClient connectorClientsObject;
if(!valueConnectorsconnectorConnectorClientsconnectorClient["DevTag"].isNull())
connectorClientsObject.devTag = valueConnectorsconnectorConnectorClientsconnectorClient["DevTag"].asString();
if(!valueConnectorsconnectorConnectorClientsconnectorClient["Hostname"].isNull())
connectorClientsObject.hostname = valueConnectorsconnectorConnectorClientsconnectorClient["Hostname"].asString();
if(!valueConnectorsconnectorConnectorClientsconnectorClient["ConnectionStatus"].isNull())
connectorClientsObject.connectionStatus = valueConnectorsconnectorConnectorClientsconnectorClient["ConnectionStatus"].asString();
if(!valueConnectorsconnectorConnectorClientsconnectorClient["PublicIp"].isNull())
connectorClientsObject.publicIp = valueConnectorsconnectorConnectorClientsconnectorClient["PublicIp"].asString();
connectorsObject.connectorClients.push_back(connectorClientsObject);
}
auto upgradeTimeNode = value["UpgradeTime"];
if(!upgradeTimeNode["Start"].isNull())
connectorsObject.upgradeTime.start = upgradeTimeNode["Start"].asString();

View File

@@ -70,6 +70,15 @@ void ListPrivateAccessApplicationsRequest::setTagId(const std::string &tagId) {
setParameter(std::string("TagId"), tagId);
}
std::string ListPrivateAccessApplicationsRequest::getConnectorId() const {
return connectorId_;
}
void ListPrivateAccessApplicationsRequest::setConnectorId(const std::string &connectorId) {
connectorId_ = connectorId;
setParameter(std::string("ConnectorId"), connectorId);
}
int ListPrivateAccessApplicationsRequest::getCurrentPage() const {
return currentPage_;
}

View File

@@ -74,6 +74,9 @@ void ListPrivateAccessApplicationsResult::parse(const std::string &payload)
auto allPolicyIds = value["PolicyIds"]["policyId"];
for (auto value : allPolicyIds)
applicationsObject.policyIds.push_back(value.asString());
auto allConnectorIds = value["ConnectorIds"]["connectorId"];
for (auto value : allConnectorIds)
applicationsObject.connectorIds.push_back(value.asString());
applications_.push_back(applicationsObject);
}
if(!value["TotalNum"].isNull())

View File

@@ -74,6 +74,8 @@ public:
void setSecurityIPList(const std::string &securityIPList);
std::string getVSwitchId() const;
void setVSwitchId(const std::string &vSwitchId);
long getProvisionedIops() const;
void setProvisionedIops(long provisionedIops);
std::string getAutoRenew() const;
void setAutoRenew(const std::string &autoRenew);
std::string getZoneId() const;
@@ -136,6 +138,7 @@ private:
std::string dBInstanceClass_;
std::string securityIPList_;
std::string vSwitchId_;
long provisionedIops_;
std::string autoRenew_;
std::string zoneId_;
std::string clientToken_;

View File

@@ -82,6 +82,8 @@ public:
void setVSwitchId(const std::string &vSwitchId);
std::vector<Mongos> getMongos() const;
void setMongos(const std::vector<Mongos> &mongos);
long getProvisionedIops() const;
void setProvisionedIops(long provisionedIops);
std::string getAutoRenew() const;
void setAutoRenew(const std::string &autoRenew);
std::string getZoneId() const;
@@ -136,6 +138,7 @@ private:
std::string securityIPList_;
std::string vSwitchId_;
std::vector<Mongos> mongos_;
long provisionedIops_;
std::string autoRenew_;
std::string zoneId_;
std::string clientToken_;

View File

@@ -32,6 +32,8 @@ public:
~DescribeAvailableResourceRequest();
long getResourceOwnerId() const;
void setResourceOwnerId(long resourceOwnerId);
std::string getStorageType() const;
void setStorageType(const std::string &storageType);
std::string getAccessKeyId() const;
void setAccessKeyId(const std::string &accessKeyId);
std::string getResourceGroupId() const;
@@ -61,6 +63,7 @@ public:
private:
long resourceOwnerId_;
std::string storageType_;
std::string accessKeyId_;
std::string resourceGroupId_;
std::string securityToken_;

View File

@@ -126,6 +126,7 @@ namespace AlibabaCloud
std::string dBInstanceClass;
std::string vSwitchId;
std::string lockMode;
long provisionedIops;
std::string currentKernelVersion;
std::string creationTime;
std::vector<DBInstance::NetworkAddress> networkAddresses;
@@ -139,6 +140,7 @@ namespace AlibabaCloud
std::string networkType;
std::string paymentType;
std::string maintainStartTime;
bool burstingEnabled;
std::string zoneId;
std::string readonlyReplicas;
std::string replicationFactor;

View File

@@ -43,6 +43,7 @@ namespace AlibabaCloud
std::string regionName;
std::string zoneIds;
std::string regionId;
std::string endPoint;
std::vector<DdsRegion::Zone> zones;
};

View File

@@ -58,6 +58,8 @@ public:
void setAutoRenew(const std::string &autoRenew);
std::string getChargeType() const;
void setChargeType(const std::string &chargeType);
std::string getPricingCycle() const;
void setPricingCycle(const std::string &pricingCycle);
private:
long resourceOwnerId_;
@@ -74,6 +76,7 @@ private:
std::string instanceId_;
std::string autoRenew_;
std::string chargeType_;
std::string pricingCycle_;
};
} // namespace Model
} // namespace Dds

View File

@@ -210,6 +210,15 @@ void CreateDBInstanceRequest::setVSwitchId(const std::string &vSwitchId) {
setParameter(std::string("VSwitchId"), vSwitchId);
}
long CreateDBInstanceRequest::getProvisionedIops() const {
return provisionedIops_;
}
void CreateDBInstanceRequest::setProvisionedIops(long provisionedIops) {
provisionedIops_ = provisionedIops;
setParameter(std::string("ProvisionedIops"), std::to_string(provisionedIops));
}
std::string CreateDBInstanceRequest::getAutoRenew() const {
return autoRenew_;
}

View File

@@ -207,6 +207,15 @@ void CreateShardingDBInstanceRequest::setMongos(const std::vector<CreateSharding
}
}
long CreateShardingDBInstanceRequest::getProvisionedIops() const {
return provisionedIops_;
}
void CreateShardingDBInstanceRequest::setProvisionedIops(long provisionedIops) {
provisionedIops_ = provisionedIops;
setParameter(std::string("ProvisionedIops"), std::to_string(provisionedIops));
}
std::string CreateShardingDBInstanceRequest::getAutoRenew() const {
return autoRenew_;
}

View File

@@ -34,6 +34,15 @@ void DescribeAvailableResourceRequest::setResourceOwnerId(long resourceOwnerId)
setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId));
}
std::string DescribeAvailableResourceRequest::getStorageType() const {
return storageType_;
}
void DescribeAvailableResourceRequest::setStorageType(const std::string &storageType) {
storageType_ = storageType;
setParameter(std::string("StorageType"), storageType);
}
std::string DescribeAvailableResourceRequest::getAccessKeyId() const {
return accessKeyId_;
}

View File

@@ -133,6 +133,10 @@ void DescribeDBInstanceAttributeResult::parse(const std::string &payload)
dBInstancesObject.encryptionKey = valueDBInstancesDBInstance["EncryptionKey"].asString();
if(!valueDBInstancesDBInstance["SyncPercent"].isNull())
dBInstancesObject.syncPercent = valueDBInstancesDBInstance["SyncPercent"].asString();
if(!valueDBInstancesDBInstance["BurstingEnabled"].isNull())
dBInstancesObject.burstingEnabled = valueDBInstancesDBInstance["BurstingEnabled"].asString() == "true";
if(!valueDBInstancesDBInstance["ProvisionedIops"].isNull())
dBInstancesObject.provisionedIops = std::stol(valueDBInstancesDBInstance["ProvisionedIops"].asString());
auto allReplicaSetsNode = valueDBInstancesDBInstance["ReplicaSets"]["ReplicaSet"];
for (auto valueDBInstancesDBInstanceReplicaSetsReplicaSet : allReplicaSetsNode)
{

View File

@@ -49,6 +49,8 @@ void DescribeRegionsResult::parse(const std::string &payload)
regionsObject.regionId = valueRegionsDdsRegion["RegionId"].asString();
if(!valueRegionsDdsRegion["RegionName"].isNull())
regionsObject.regionName = valueRegionsDdsRegion["RegionName"].asString();
if(!valueRegionsDdsRegion["EndPoint"].isNull())
regionsObject.endPoint = valueRegionsDdsRegion["EndPoint"].asString();
auto allZonesNode = valueRegionsDdsRegion["Zones"]["Zone"];
for (auto valueRegionsDdsRegionZonesZone : allZonesNode)
{

View File

@@ -151,3 +151,12 @@ void TransformInstanceChargeTypeRequest::setChargeType(const std::string &charge
setParameter(std::string("ChargeType"), chargeType);
}
std::string TransformInstanceChargeTypeRequest::getPricingCycle() const {
return pricingCycle_;
}
void TransformInstanceChargeTypeRequest::setPricingCycle(const std::string &pricingCycle) {
pricingCycle_ = pricingCycle;
setParameter(std::string("PricingCycle"), pricingCycle);
}

View File

@@ -7,11 +7,11 @@ if command -v python > /dev/null ; then
MAKE="make -j $(python -c 'import multiprocessing as mp; print(int(mp.cpu_count()))')"
fi
echo $MAKE
echo "$MAKE"
rm -rf sdk_build
mkdir sdk_build
cd sdk_build
cd sdk_build || exit
cmake -DBUILD_PRODUCT="$product" -DBUILD_FUNCTION_TESTS=OFF -DBUILD_UNIT_TESTS=OFF -DENABLE_COVERAGE=OFF -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=/usr ..
$MAKE

View File

@@ -81,6 +81,8 @@ set(eflo_public_header_model
include/alibabacloud/eflo/model/GetLniPrivateIpAddressResult.h
include/alibabacloud/eflo/model/GetNetworkInterfaceRequest.h
include/alibabacloud/eflo/model/GetNetworkInterfaceResult.h
include/alibabacloud/eflo/model/GetNodeInfoForPodRequest.h
include/alibabacloud/eflo/model/GetNodeInfoForPodResult.h
include/alibabacloud/eflo/model/GetSubnetRequest.h
include/alibabacloud/eflo/model/GetSubnetResult.h
include/alibabacloud/eflo/model/GetVccRequest.h
@@ -113,6 +115,8 @@ set(eflo_public_header_model
include/alibabacloud/eflo/model/ListLniPrivateIpAddressResult.h
include/alibabacloud/eflo/model/ListNetworkInterfacesRequest.h
include/alibabacloud/eflo/model/ListNetworkInterfacesResult.h
include/alibabacloud/eflo/model/ListNodeInfosForPodRequest.h
include/alibabacloud/eflo/model/ListNodeInfosForPodResult.h
include/alibabacloud/eflo/model/ListSubnetsRequest.h
include/alibabacloud/eflo/model/ListSubnetsResult.h
include/alibabacloud/eflo/model/ListVccGrantRulesRequest.h
@@ -210,6 +214,8 @@ set(eflo_src
src/model/GetLniPrivateIpAddressResult.cc
src/model/GetNetworkInterfaceRequest.cc
src/model/GetNetworkInterfaceResult.cc
src/model/GetNodeInfoForPodRequest.cc
src/model/GetNodeInfoForPodResult.cc
src/model/GetSubnetRequest.cc
src/model/GetSubnetResult.cc
src/model/GetVccRequest.cc
@@ -242,6 +248,8 @@ set(eflo_src
src/model/ListLniPrivateIpAddressResult.cc
src/model/ListNetworkInterfacesRequest.cc
src/model/ListNetworkInterfacesResult.cc
src/model/ListNodeInfosForPodRequest.cc
src/model/ListNodeInfosForPodResult.cc
src/model/ListSubnetsRequest.cc
src/model/ListSubnetsResult.cc
src/model/ListVccGrantRulesRequest.cc

View File

@@ -82,6 +82,8 @@
#include "model/GetLniPrivateIpAddressResult.h"
#include "model/GetNetworkInterfaceRequest.h"
#include "model/GetNetworkInterfaceResult.h"
#include "model/GetNodeInfoForPodRequest.h"
#include "model/GetNodeInfoForPodResult.h"
#include "model/GetSubnetRequest.h"
#include "model/GetSubnetResult.h"
#include "model/GetVccRequest.h"
@@ -114,6 +116,8 @@
#include "model/ListLniPrivateIpAddressResult.h"
#include "model/ListNetworkInterfacesRequest.h"
#include "model/ListNetworkInterfacesResult.h"
#include "model/ListNodeInfosForPodRequest.h"
#include "model/ListNodeInfosForPodResult.h"
#include "model/ListSubnetsRequest.h"
#include "model/ListSubnetsResult.h"
#include "model/ListVccGrantRulesRequest.h"
@@ -247,6 +251,9 @@ namespace AlibabaCloud
typedef Outcome<Error, Model::GetNetworkInterfaceResult> GetNetworkInterfaceOutcome;
typedef std::future<GetNetworkInterfaceOutcome> GetNetworkInterfaceOutcomeCallable;
typedef std::function<void(const EfloClient*, const Model::GetNetworkInterfaceRequest&, const GetNetworkInterfaceOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetNetworkInterfaceAsyncHandler;
typedef Outcome<Error, Model::GetNodeInfoForPodResult> GetNodeInfoForPodOutcome;
typedef std::future<GetNodeInfoForPodOutcome> GetNodeInfoForPodOutcomeCallable;
typedef std::function<void(const EfloClient*, const Model::GetNodeInfoForPodRequest&, const GetNodeInfoForPodOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetNodeInfoForPodAsyncHandler;
typedef Outcome<Error, Model::GetSubnetResult> GetSubnetOutcome;
typedef std::future<GetSubnetOutcome> GetSubnetOutcomeCallable;
typedef std::function<void(const EfloClient*, const Model::GetSubnetRequest&, const GetSubnetOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetSubnetAsyncHandler;
@@ -295,6 +302,9 @@ namespace AlibabaCloud
typedef Outcome<Error, Model::ListNetworkInterfacesResult> ListNetworkInterfacesOutcome;
typedef std::future<ListNetworkInterfacesOutcome> ListNetworkInterfacesOutcomeCallable;
typedef std::function<void(const EfloClient*, const Model::ListNetworkInterfacesRequest&, const ListNetworkInterfacesOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ListNetworkInterfacesAsyncHandler;
typedef Outcome<Error, Model::ListNodeInfosForPodResult> ListNodeInfosForPodOutcome;
typedef std::future<ListNodeInfosForPodOutcome> ListNodeInfosForPodOutcomeCallable;
typedef std::function<void(const EfloClient*, const Model::ListNodeInfosForPodRequest&, const ListNodeInfosForPodOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ListNodeInfosForPodAsyncHandler;
typedef Outcome<Error, Model::ListSubnetsResult> ListSubnetsOutcome;
typedef std::future<ListSubnetsOutcome> ListSubnetsOutcomeCallable;
typedef std::function<void(const EfloClient*, const Model::ListSubnetsRequest&, const ListSubnetsOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ListSubnetsAsyncHandler;
@@ -441,6 +451,9 @@ namespace AlibabaCloud
GetNetworkInterfaceOutcome getNetworkInterface(const Model::GetNetworkInterfaceRequest &request)const;
void getNetworkInterfaceAsync(const Model::GetNetworkInterfaceRequest& request, const GetNetworkInterfaceAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
GetNetworkInterfaceOutcomeCallable getNetworkInterfaceCallable(const Model::GetNetworkInterfaceRequest& request) const;
GetNodeInfoForPodOutcome getNodeInfoForPod(const Model::GetNodeInfoForPodRequest &request)const;
void getNodeInfoForPodAsync(const Model::GetNodeInfoForPodRequest& request, const GetNodeInfoForPodAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
GetNodeInfoForPodOutcomeCallable getNodeInfoForPodCallable(const Model::GetNodeInfoForPodRequest& request) const;
GetSubnetOutcome getSubnet(const Model::GetSubnetRequest &request)const;
void getSubnetAsync(const Model::GetSubnetRequest& request, const GetSubnetAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
GetSubnetOutcomeCallable getSubnetCallable(const Model::GetSubnetRequest& request) const;
@@ -489,6 +502,9 @@ namespace AlibabaCloud
ListNetworkInterfacesOutcome listNetworkInterfaces(const Model::ListNetworkInterfacesRequest &request)const;
void listNetworkInterfacesAsync(const Model::ListNetworkInterfacesRequest& request, const ListNetworkInterfacesAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
ListNetworkInterfacesOutcomeCallable listNetworkInterfacesCallable(const Model::ListNetworkInterfacesRequest& request) const;
ListNodeInfosForPodOutcome listNodeInfosForPod(const Model::ListNodeInfosForPodRequest &request)const;
void listNodeInfosForPodAsync(const Model::ListNodeInfosForPodRequest& request, const ListNodeInfosForPodAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
ListNodeInfosForPodOutcomeCallable listNodeInfosForPodCallable(const Model::ListNodeInfosForPodRequest& request) const;
ListSubnetsOutcome listSubnets(const Model::ListSubnetsRequest &request)const;
void listSubnetsAsync(const Model::ListSubnetsRequest& request, const ListSubnetsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
ListSubnetsOutcomeCallable listSubnetsCallable(const Model::ListSubnetsRequest& request) const;

View File

@@ -0,0 +1,45 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_EFLO_MODEL_GETNODEINFOFORPODREQUEST_H_
#define ALIBABACLOUD_EFLO_MODEL_GETNODEINFOFORPODREQUEST_H_
#include <alibabacloud/eflo/EfloExport.h>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <string>
#include <vector>
#include <map>
namespace AlibabaCloud {
namespace Eflo {
namespace Model {
class ALIBABACLOUD_EFLO_EXPORT GetNodeInfoForPodRequest : public RpcServiceRequest {
public:
GetNodeInfoForPodRequest();
~GetNodeInfoForPodRequest();
std::string getRegionId() const;
void setRegionId(const std::string &regionId);
std::string getNodeId() const;
void setNodeId(const std::string &nodeId);
private:
std::string regionId_;
std::string nodeId_;
};
} // namespace Model
} // namespace Eflo
} // namespace AlibabaCloud
#endif // !ALIBABACLOUD_EFLO_MODEL_GETNODEINFOFORPODREQUEST_H_

View File

@@ -0,0 +1,65 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_EFLO_MODEL_GETNODEINFOFORPODRESULT_H_
#define ALIBABACLOUD_EFLO_MODEL_GETNODEINFOFORPODRESULT_H_
#include <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/eflo/EfloExport.h>
namespace AlibabaCloud
{
namespace Eflo
{
namespace Model
{
class ALIBABACLOUD_EFLO_EXPORT GetNodeInfoForPodResult : public ServiceResult
{
public:
struct Content
{
std::string vpcId;
std::string clusterId;
int lniSipQuota;
std::string nodeId;
int leniQuota;
std::vector<std::string> vSwitches;
std::string regionId;
};
GetNodeInfoForPodResult();
explicit GetNodeInfoForPodResult(const std::string &payload);
~GetNodeInfoForPodResult();
std::string getMessage()const;
Content getContent()const;
int getCode()const;
protected:
void parse(const std::string &payload);
private:
std::string message_;
Content content_;
int code_;
};
}
}
}
#endif // !ALIBABACLOUD_EFLO_MODEL_GETNODEINFOFORPODRESULT_H_

View File

@@ -0,0 +1,48 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_EFLO_MODEL_LISTNODEINFOSFORPODREQUEST_H_
#define ALIBABACLOUD_EFLO_MODEL_LISTNODEINFOSFORPODREQUEST_H_
#include <alibabacloud/eflo/EfloExport.h>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <string>
#include <vector>
#include <map>
namespace AlibabaCloud {
namespace Eflo {
namespace Model {
class ALIBABACLOUD_EFLO_EXPORT ListNodeInfosForPodRequest : public RpcServiceRequest {
public:
ListNodeInfosForPodRequest();
~ListNodeInfosForPodRequest();
std::string getClusterId() const;
void setClusterId(const std::string &clusterId);
std::string getRegionId() const;
void setRegionId(const std::string &regionId);
std::string getNodeId() const;
void setNodeId(const std::string &nodeId);
private:
std::string clusterId_;
std::string regionId_;
std::string nodeId_;
};
} // namespace Model
} // namespace Eflo
} // namespace AlibabaCloud
#endif // !ALIBABACLOUD_EFLO_MODEL_LISTNODEINFOSFORPODREQUEST_H_

View File

@@ -0,0 +1,65 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_EFLO_MODEL_LISTNODEINFOSFORPODRESULT_H_
#define ALIBABACLOUD_EFLO_MODEL_LISTNODEINFOSFORPODRESULT_H_
#include <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/eflo/EfloExport.h>
namespace AlibabaCloud
{
namespace Eflo
{
namespace Model
{
class ALIBABACLOUD_EFLO_EXPORT ListNodeInfosForPodResult : public ServiceResult
{
public:
struct ContentItem
{
std::string vpcId;
std::string clusterId;
int lniSipQuota;
std::string nodeId;
int leniQuota;
std::vector<std::string> vSwitches;
std::string regionId;
};
ListNodeInfosForPodResult();
explicit ListNodeInfosForPodResult(const std::string &payload);
~ListNodeInfosForPodResult();
std::string getMessage()const;
std::vector<ContentItem> getContent()const;
int getCode()const;
protected:
void parse(const std::string &payload);
private:
std::string message_;
std::vector<ContentItem> content_;
int code_;
};
}
}
}
#endif // !ALIBABACLOUD_EFLO_MODEL_LISTNODEINFOSFORPODRESULT_H_

View File

@@ -1131,6 +1131,42 @@ EfloClient::GetNetworkInterfaceOutcomeCallable EfloClient::getNetworkInterfaceCa
return task->get_future();
}
EfloClient::GetNodeInfoForPodOutcome EfloClient::getNodeInfoForPod(const GetNodeInfoForPodRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return GetNodeInfoForPodOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return GetNodeInfoForPodOutcome(GetNodeInfoForPodResult(outcome.result()));
else
return GetNodeInfoForPodOutcome(outcome.error());
}
void EfloClient::getNodeInfoForPodAsync(const GetNodeInfoForPodRequest& request, const GetNodeInfoForPodAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, getNodeInfoForPod(request), context);
};
asyncExecute(new Runnable(fn));
}
EfloClient::GetNodeInfoForPodOutcomeCallable EfloClient::getNodeInfoForPodCallable(const GetNodeInfoForPodRequest &request) const
{
auto task = std::make_shared<std::packaged_task<GetNodeInfoForPodOutcome()>>(
[this, request]()
{
return this->getNodeInfoForPod(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
EfloClient::GetSubnetOutcome EfloClient::getSubnet(const GetSubnetRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
@@ -1707,6 +1743,42 @@ EfloClient::ListNetworkInterfacesOutcomeCallable EfloClient::listNetworkInterfac
return task->get_future();
}
EfloClient::ListNodeInfosForPodOutcome EfloClient::listNodeInfosForPod(const ListNodeInfosForPodRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return ListNodeInfosForPodOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return ListNodeInfosForPodOutcome(ListNodeInfosForPodResult(outcome.result()));
else
return ListNodeInfosForPodOutcome(outcome.error());
}
void EfloClient::listNodeInfosForPodAsync(const ListNodeInfosForPodRequest& request, const ListNodeInfosForPodAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, listNodeInfosForPod(request), context);
};
asyncExecute(new Runnable(fn));
}
EfloClient::ListNodeInfosForPodOutcomeCallable EfloClient::listNodeInfosForPodCallable(const ListNodeInfosForPodRequest &request) const
{
auto task = std::make_shared<std::packaged_task<ListNodeInfosForPodOutcome()>>(
[this, request]()
{
return this->listNodeInfosForPod(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
EfloClient::ListSubnetsOutcome EfloClient::listSubnets(const ListSubnetsRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();

View File

@@ -0,0 +1,45 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/eflo/model/GetNodeInfoForPodRequest.h>
using AlibabaCloud::Eflo::Model::GetNodeInfoForPodRequest;
GetNodeInfoForPodRequest::GetNodeInfoForPodRequest()
: RpcServiceRequest("eflo", "2022-05-30", "GetNodeInfoForPod") {
setMethod(HttpRequest::Method::Post);
}
GetNodeInfoForPodRequest::~GetNodeInfoForPodRequest() {}
std::string GetNodeInfoForPodRequest::getRegionId() const {
return regionId_;
}
void GetNodeInfoForPodRequest::setRegionId(const std::string &regionId) {
regionId_ = regionId;
setBodyParameter(std::string("RegionId"), regionId);
}
std::string GetNodeInfoForPodRequest::getNodeId() const {
return nodeId_;
}
void GetNodeInfoForPodRequest::setNodeId(const std::string &nodeId) {
nodeId_ = nodeId;
setBodyParameter(std::string("NodeId"), nodeId);
}

View File

@@ -0,0 +1,79 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/eflo/model/GetNodeInfoForPodResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Eflo;
using namespace AlibabaCloud::Eflo::Model;
GetNodeInfoForPodResult::GetNodeInfoForPodResult() :
ServiceResult()
{}
GetNodeInfoForPodResult::GetNodeInfoForPodResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
GetNodeInfoForPodResult::~GetNodeInfoForPodResult()
{}
void GetNodeInfoForPodResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto contentNode = value["Content"];
if(!contentNode["RegionId"].isNull())
content_.regionId = contentNode["RegionId"].asString();
if(!contentNode["ClusterId"].isNull())
content_.clusterId = contentNode["ClusterId"].asString();
if(!contentNode["VpcId"].isNull())
content_.vpcId = contentNode["VpcId"].asString();
if(!contentNode["NodeId"].isNull())
content_.nodeId = contentNode["NodeId"].asString();
if(!contentNode["LeniQuota"].isNull())
content_.leniQuota = std::stoi(contentNode["LeniQuota"].asString());
if(!contentNode["LniSipQuota"].isNull())
content_.lniSipQuota = std::stoi(contentNode["LniSipQuota"].asString());
auto allVSwitches = contentNode["VSwitches"]["VSwitche"];
for (auto value : allVSwitches)
content_.vSwitches.push_back(value.asString());
if(!value["Code"].isNull())
code_ = std::stoi(value["Code"].asString());
if(!value["Message"].isNull())
message_ = value["Message"].asString();
}
std::string GetNodeInfoForPodResult::getMessage()const
{
return message_;
}
GetNodeInfoForPodResult::Content GetNodeInfoForPodResult::getContent()const
{
return content_;
}
int GetNodeInfoForPodResult::getCode()const
{
return code_;
}

View File

@@ -0,0 +1,54 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/eflo/model/ListNodeInfosForPodRequest.h>
using AlibabaCloud::Eflo::Model::ListNodeInfosForPodRequest;
ListNodeInfosForPodRequest::ListNodeInfosForPodRequest()
: RpcServiceRequest("eflo", "2022-05-30", "ListNodeInfosForPod") {
setMethod(HttpRequest::Method::Post);
}
ListNodeInfosForPodRequest::~ListNodeInfosForPodRequest() {}
std::string ListNodeInfosForPodRequest::getClusterId() const {
return clusterId_;
}
void ListNodeInfosForPodRequest::setClusterId(const std::string &clusterId) {
clusterId_ = clusterId;
setBodyParameter(std::string("ClusterId"), clusterId);
}
std::string ListNodeInfosForPodRequest::getRegionId() const {
return regionId_;
}
void ListNodeInfosForPodRequest::setRegionId(const std::string &regionId) {
regionId_ = regionId;
setBodyParameter(std::string("RegionId"), regionId);
}
std::string ListNodeInfosForPodRequest::getNodeId() const {
return nodeId_;
}
void ListNodeInfosForPodRequest::setNodeId(const std::string &nodeId) {
nodeId_ = nodeId;
setBodyParameter(std::string("NodeId"), nodeId);
}

View File

@@ -0,0 +1,84 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/eflo/model/ListNodeInfosForPodResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Eflo;
using namespace AlibabaCloud::Eflo::Model;
ListNodeInfosForPodResult::ListNodeInfosForPodResult() :
ServiceResult()
{}
ListNodeInfosForPodResult::ListNodeInfosForPodResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
ListNodeInfosForPodResult::~ListNodeInfosForPodResult()
{}
void ListNodeInfosForPodResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto allContentNode = value["Content"]["ContentItem"];
for (auto valueContentContentItem : allContentNode)
{
ContentItem contentObject;
if(!valueContentContentItem["RegionId"].isNull())
contentObject.regionId = valueContentContentItem["RegionId"].asString();
if(!valueContentContentItem["ClusterId"].isNull())
contentObject.clusterId = valueContentContentItem["ClusterId"].asString();
if(!valueContentContentItem["VpcId"].isNull())
contentObject.vpcId = valueContentContentItem["VpcId"].asString();
if(!valueContentContentItem["NodeId"].isNull())
contentObject.nodeId = valueContentContentItem["NodeId"].asString();
if(!valueContentContentItem["LeniQuota"].isNull())
contentObject.leniQuota = std::stoi(valueContentContentItem["LeniQuota"].asString());
if(!valueContentContentItem["LniSipQuota"].isNull())
contentObject.lniSipQuota = std::stoi(valueContentContentItem["LniSipQuota"].asString());
auto allVSwitches = value["VSwitches"]["VSwitche"];
for (auto value : allVSwitches)
contentObject.vSwitches.push_back(value.asString());
content_.push_back(contentObject);
}
if(!value["Code"].isNull())
code_ = std::stoi(value["Code"].asString());
if(!value["Message"].isNull())
message_ = value["Message"].asString();
}
std::string ListNodeInfosForPodResult::getMessage()const
{
return message_;
}
std::vector<ListNodeInfosForPodResult::ContentItem> ListNodeInfosForPodResult::getContent()const
{
return content_;
}
int ListNodeInfosForPodResult::getCode()const
{
return code_;
}

View File

@@ -40,6 +40,8 @@ public:
void setNetworkInterfaceTrafficMode(const std::string &networkInterfaceTrafficMode);
std::string getAccessKeyId() const;
void setAccessKeyId(const std::string &accessKeyId);
bool getUseESS() const;
void setUseESS(bool useESS);
private:
std::string deploymentSetId_;
@@ -47,6 +49,7 @@ private:
std::string clusterId_;
std::string networkInterfaceTrafficMode_;
std::string accessKeyId_;
bool useESS_;
};
} // namespace Model
} // namespace EHPC

View File

@@ -68,6 +68,7 @@ namespace AlibabaCloud
long maxNodesPerCycle;
bool enableAutoShrink;
std::string systemDiskCategory;
bool autoMinNodesPerCycle;
std::string hostNamePrefix;
float spotPriceLimit;
std::vector<QueueInfo::InstanceTypeInfo> instanceTypes;

View File

@@ -39,17 +39,19 @@ namespace AlibabaCloud
float spotPriceLimit;
std::string instanceType;
};
std::string deploymentSetId;
std::string hostNameSuffix;
std::string type;
std::string networkInterfaceTrafficMode;
std::vector<QueueInfo::Instance> spotInstanceTypes;
bool enableAutoGrow;
std::string resourceGroupId;
std::vector<std::string> computeInstanceType;
std::string deploymentSetId;
bool useESS;
std::string type;
std::string imageId;
std::string hostNamePrefix;
std::string queueName;
std::string spotStrategy;
std::vector<std::string> computeInstanceType;
};

View File

@@ -47,6 +47,7 @@ public:
float spotPriceLimit;
bool enableAutoShrink;
std::string spotStrategy;
bool autoMinNodesPerCycle;
struct DataDisks {
bool dataDiskDeleteWithInstance;
bool dataDiskEncrypted;

View File

@@ -36,6 +36,8 @@ public:
void setQueueName(const std::string &queueName);
std::string getClusterId() const;
void setClusterId(const std::string &clusterId);
std::string getNetworkInterfaceTrafficMode() const;
void setNetworkInterfaceTrafficMode(const std::string &networkInterfaceTrafficMode);
std::string getAccessKeyId() const;
void setAccessKeyId(const std::string &accessKeyId);
std::string getResourceGroupId() const;
@@ -47,6 +49,7 @@ private:
std::string deploymentSetId_;
std::string queueName_;
std::string clusterId_;
std::string networkInterfaceTrafficMode_;
std::string accessKeyId_;
std::string resourceGroupId_;
std::string computeInstanceType_;

View File

@@ -70,3 +70,12 @@ void AddQueueRequest::setAccessKeyId(const std::string &accessKeyId) {
setParameter(std::string("AccessKeyId"), accessKeyId);
}
bool AddQueueRequest::getUseESS() const {
return useESS_;
}
void AddQueueRequest::setUseESS(bool useESS) {
useESS_ = useESS;
setParameter(std::string("UseESS"), useESS ? "true" : "false");
}

View File

@@ -77,6 +77,8 @@ void GetAutoScaleConfigResult::parse(const std::string &payload)
queuesObject.maxNodesPerCycle = std::stol(valueQueuesQueueInfo["MaxNodesPerCycle"].asString());
if(!valueQueuesQueueInfo["MinNodesPerCycle"].isNull())
queuesObject.minNodesPerCycle = std::stol(valueQueuesQueueInfo["MinNodesPerCycle"].asString());
if(!valueQueuesQueueInfo["AutoMinNodesPerCycle"].isNull())
queuesObject.autoMinNodesPerCycle = valueQueuesQueueInfo["AutoMinNodesPerCycle"].asString() == "true";
if(!valueQueuesQueueInfo["SortedByInventory"].isNull())
queuesObject.sortedByInventory = valueQueuesQueueInfo["SortedByInventory"].asString() == "true";
auto allInstanceTypesNode = valueQueuesQueueInfo["InstanceTypes"]["InstanceTypeInfo"];

View File

@@ -61,6 +61,10 @@ void ListQueuesResult::parse(const std::string &payload)
queuesObject.spotStrategy = valueQueuesQueueInfo["SpotStrategy"].asString();
if(!valueQueuesQueueInfo["DeploymentSetId"].isNull())
queuesObject.deploymentSetId = valueQueuesQueueInfo["DeploymentSetId"].asString();
if(!valueQueuesQueueInfo["UseESS"].isNull())
queuesObject.useESS = valueQueuesQueueInfo["UseESS"].asString() == "true";
if(!valueQueuesQueueInfo["NetworkInterfaceTrafficMode"].isNull())
queuesObject.networkInterfaceTrafficMode = valueQueuesQueueInfo["NetworkInterfaceTrafficMode"].asString();
auto allSpotInstanceTypesNode = valueQueuesQueueInfo["SpotInstanceTypes"]["Instance"];
for (auto valueQueuesQueueInfoSpotInstanceTypesInstance : allSpotInstanceTypesNode)
{

View File

@@ -188,6 +188,7 @@ void SetAutoScaleConfigRequest::setQueues(const std::vector<SetAutoScaleConfigRe
setParameter(queuesObjStr + ".SpotPriceLimit", std::to_string(queuesObj.spotPriceLimit));
setParameter(queuesObjStr + ".EnableAutoShrink", queuesObj.enableAutoShrink ? "true" : "false");
setParameter(queuesObjStr + ".SpotStrategy", queuesObj.spotStrategy);
setParameter(queuesObjStr + ".AutoMinNodesPerCycle", queuesObj.autoMinNodesPerCycle ? "true" : "false");
for(int dep2 = 0; dep2 != queuesObj.dataDisks.size(); dep2++) {
auto dataDisksObj = queuesObj.dataDisks.at(dep2);
std::string dataDisksObjStr = queuesObjStr + ".DataDisks" + "." + std::to_string(dep2 + 1);

View File

@@ -52,6 +52,15 @@ void UpdateQueueConfigRequest::setClusterId(const std::string &clusterId) {
setParameter(std::string("ClusterId"), clusterId);
}
std::string UpdateQueueConfigRequest::getNetworkInterfaceTrafficMode() const {
return networkInterfaceTrafficMode_;
}
void UpdateQueueConfigRequest::setNetworkInterfaceTrafficMode(const std::string &networkInterfaceTrafficMode) {
networkInterfaceTrafficMode_ = networkInterfaceTrafficMode;
setParameter(std::string("NetworkInterfaceTrafficMode"), networkInterfaceTrafficMode);
}
std::string UpdateQueueConfigRequest::getAccessKeyId() const {
return accessKeyId_;
}

View File

@@ -1,6 +1,6 @@
#!/bin/bash
cd `dirname $0`
cd $(dirname "$0") || exit
echo '-------build function test----------'
MAKE=make
@@ -8,12 +8,12 @@ if command -v python > /dev/null ; then
MAKE="make -j $(python -c 'import multiprocessing as mp; print(int(mp.cpu_count()))')"
fi
echo $MAKE
echo "$MAKE"
FT_BUILD_DIR=ft_build
rm -rf $FT_BUILD_DIR
mkdir $FT_BUILD_DIR
cd $FT_BUILD_DIR
cd $FT_BUILD_DIR || exit
cmake -DBUILD_FUNCTION_TESTS=ON -DBUILD_UNIT_TESTS=OFF ..
$MAKE cdn core cs ecs rds slb vpc cdn_ft core_ft cs_ft ecs_ft nlp_ft rds_ft slb_ft vpc_ft

View File

@@ -37,7 +37,6 @@ namespace AlibabaCloud
BatchAddDataForApiSourceResult();
explicit BatchAddDataForApiSourceResult(const std::string &payload);
~BatchAddDataForApiSourceResult();
std::string getData()const;
std::string getErrorMessage()const;
std::string getCode()const;
bool getSuccess()const;
@@ -45,7 +44,6 @@ namespace AlibabaCloud
protected:
void parse(const std::string &payload);
private:
std::string data_;
std::string errorMessage_;
std::string code_;
bool success_;

View File

@@ -35,8 +35,12 @@ namespace AlibabaCloud
GetDeviceShadowRequest();
~GetDeviceShadowRequest();
std::string getRealTenantId()const;
void setRealTenantId(const std::string& realTenantId);
std::string getAccessKeyId()const;
void setAccessKeyId(const std::string& accessKeyId);
std::string getRealTripartiteKey()const;
void setRealTripartiteKey(const std::string& realTripartiteKey);
std::string getIotInstanceId()const;
void setIotInstanceId(const std::string& iotInstanceId);
std::string getProductKey()const;
@@ -49,7 +53,9 @@ namespace AlibabaCloud
void setDeviceName(const std::string& deviceName);
private:
std::string realTenantId_;
std::string accessKeyId_;
std::string realTripartiteKey_;
std::string iotInstanceId_;
std::string productKey_;
std::string apiProduct_;

View File

@@ -35,8 +35,12 @@ namespace AlibabaCloud
GetDeviceStatusRequest();
~GetDeviceStatusRequest();
std::string getRealTenantId()const;
void setRealTenantId(const std::string& realTenantId);
std::string getAccessKeyId()const;
void setAccessKeyId(const std::string& accessKeyId);
std::string getRealTripartiteKey()const;
void setRealTripartiteKey(const std::string& realTripartiteKey);
std::string getIotId()const;
void setIotId(const std::string& iotId);
std::string getIotInstanceId()const;
@@ -51,7 +55,9 @@ namespace AlibabaCloud
void setDeviceName(const std::string& deviceName);
private:
std::string realTenantId_;
std::string accessKeyId_;
std::string realTripartiteKey_;
std::string iotId_;
std::string iotInstanceId_;
std::string productKey_;

View File

@@ -35,8 +35,12 @@ namespace AlibabaCloud
GetRuleRequest();
~GetRuleRequest();
std::string getRealTenantId()const;
void setRealTenantId(const std::string& realTenantId);
std::string getAccessKeyId()const;
void setAccessKeyId(const std::string& accessKeyId);
std::string getRealTripartiteKey()const;
void setRealTripartiteKey(const std::string& realTripartiteKey);
std::string getIotInstanceId()const;
void setIotInstanceId(const std::string& iotInstanceId);
std::string getApiProduct()const;
@@ -47,7 +51,9 @@ namespace AlibabaCloud
void setRuleId(long ruleId);
private:
std::string realTenantId_;
std::string accessKeyId_;
std::string realTripartiteKey_;
std::string iotInstanceId_;
std::string apiProduct_;
std::string apiRevision_;

View File

@@ -43,6 +43,8 @@ namespace AlibabaCloud
void setRealTripartiteKey(const std::string& realTripartiteKey);
std::string getIotId()const;
void setIotId(const std::string& iotId);
int getQos()const;
void setQos(int qos);
std::string getIotInstanceId()const;
void setIotInstanceId(const std::string& iotInstanceId);
std::string getIdentifier()const;
@@ -63,6 +65,7 @@ namespace AlibabaCloud
std::string accessKeyId_;
std::string realTripartiteKey_;
std::string iotId_;
int qos_;
std::string iotInstanceId_;
std::string identifier_;
std::string productKey_;

View File

@@ -37,6 +37,10 @@ namespace AlibabaCloud
std::string getSearchName()const;
void setSearchName(const std::string& searchName);
std::string getRealTenantId()const;
void setRealTenantId(const std::string& realTenantId);
std::string getRealTripartiteKey()const;
void setRealTripartiteKey(const std::string& realTripartiteKey);
std::string getIotInstanceId()const;
void setIotInstanceId(const std::string& iotInstanceId);
int getPageSize()const;
@@ -52,6 +56,8 @@ namespace AlibabaCloud
private:
std::string searchName_;
std::string realTenantId_;
std::string realTripartiteKey_;
std::string iotInstanceId_;
int pageSize_;
std::vector<std::string> types_;

View File

@@ -35,6 +35,10 @@ namespace AlibabaCloud
ListDeviceDistributeJobRequest();
~ListDeviceDistributeJobRequest();
std::string getRealTenantId()const;
void setRealTenantId(const std::string& realTenantId);
std::string getRealTripartiteKey()const;
void setRealTripartiteKey(const std::string& realTripartiteKey);
std::string getJobId()const;
void setJobId(const std::string& jobId);
std::string getNextToken()const;
@@ -59,6 +63,8 @@ namespace AlibabaCloud
void setStatus(int status);
private:
std::string realTenantId_;
std::string realTripartiteKey_;
std::string jobId_;
std::string nextToken_;
int pageSize_;

View File

@@ -35,6 +35,10 @@ namespace AlibabaCloud
ListDistributedDeviceRequest();
~ListDistributedDeviceRequest();
std::string getRealTenantId()const;
void setRealTenantId(const std::string& realTenantId);
std::string getRealTripartiteKey()const;
void setRealTripartiteKey(const std::string& realTripartiteKey);
int getPageSize()const;
void setPageSize(int pageSize);
std::string getSourceInstanceId()const;
@@ -55,6 +59,8 @@ namespace AlibabaCloud
void setTargetUid(const std::string& targetUid);
private:
std::string realTenantId_;
std::string realTripartiteKey_;
int pageSize_;
std::string sourceInstanceId_;
int currentPage_;

View File

@@ -35,6 +35,10 @@ namespace AlibabaCloud
ListJobRequest();
~ListJobRequest();
std::string getRealTenantId()const;
void setRealTenantId(const std::string& realTenantId);
std::string getRealTripartiteKey()const;
void setRealTripartiteKey(const std::string& realTripartiteKey);
std::string getIotInstanceId()const;
void setIotInstanceId(const std::string& iotInstanceId);
int getPageSize()const;
@@ -49,6 +53,8 @@ namespace AlibabaCloud
void setStatus(const std::string& status);
private:
std::string realTenantId_;
std::string realTripartiteKey_;
std::string iotInstanceId_;
int pageSize_;
int currentPage_;

View File

@@ -37,6 +37,10 @@ namespace AlibabaCloud
std::string getAuthConfig()const;
void setAuthConfig(const std::string& authConfig);
std::string getRealTenantId()const;
void setRealTenantId(const std::string& realTenantId);
std::string getRealTripartiteKey()const;
void setRealTripartiteKey(const std::string& realTripartiteKey);
std::string getIotInstanceId()const;
void setIotInstanceId(const std::string& iotInstanceId);
std::string getProductKey()const;
@@ -48,6 +52,8 @@ namespace AlibabaCloud
private:
std::string authConfig_;
std::string realTenantId_;
std::string realTripartiteKey_;
std::string iotInstanceId_;
std::string productKey_;
std::string apiProduct_;

View File

@@ -35,8 +35,12 @@ namespace AlibabaCloud
ListRuleActionsRequest();
~ListRuleActionsRequest();
std::string getRealTenantId()const;
void setRealTenantId(const std::string& realTenantId);
std::string getAccessKeyId()const;
void setAccessKeyId(const std::string& accessKeyId);
std::string getRealTripartiteKey()const;
void setRealTripartiteKey(const std::string& realTripartiteKey);
std::string getIotInstanceId()const;
void setIotInstanceId(const std::string& iotInstanceId);
std::string getApiProduct()const;
@@ -47,7 +51,9 @@ namespace AlibabaCloud
void setRuleId(long ruleId);
private:
std::string realTenantId_;
std::string accessKeyId_;
std::string realTripartiteKey_;
std::string iotInstanceId_;
std::string apiProduct_;
std::string apiRevision_;

View File

@@ -37,8 +37,12 @@ namespace AlibabaCloud
std::string getSearchName()const;
void setSearchName(const std::string& searchName);
std::string getRealTenantId()const;
void setRealTenantId(const std::string& realTenantId);
std::string getAccessKeyId()const;
void setAccessKeyId(const std::string& accessKeyId);
std::string getRealTripartiteKey()const;
void setRealTripartiteKey(const std::string& realTripartiteKey);
std::string getResourceGroupId()const;
void setResourceGroupId(const std::string& resourceGroupId);
std::string getIotInstanceId()const;
@@ -54,7 +58,9 @@ namespace AlibabaCloud
private:
std::string searchName_;
std::string realTenantId_;
std::string accessKeyId_;
std::string realTripartiteKey_;
std::string resourceGroupId_;
std::string iotInstanceId_;
int pageSize_;

View File

@@ -57,6 +57,8 @@ namespace AlibabaCloud
void setMessageExpiryInterval(long messageExpiryInterval);
std::string getResponseTopic()const;
void setResponseTopic(const std::string& responseTopic);
int getTopicAlias()const;
void setTopicAlias(int topicAlias);
std::string getTopicFullName()const;
void setTopicFullName(const std::string& topicFullName);
int getPayloadFormatIndicator()const;
@@ -83,6 +85,7 @@ namespace AlibabaCloud
std::string iotInstanceId_;
long messageExpiryInterval_;
std::string responseTopic_;
int topicAlias_;
std::string topicFullName_;
int payloadFormatIndicator_;
std::string productKey_;

View File

@@ -35,6 +35,10 @@ namespace AlibabaCloud
QueryConsumerGroupByGroupIdRequest();
~QueryConsumerGroupByGroupIdRequest();
std::string getRealTenantId()const;
void setRealTenantId(const std::string& realTenantId);
std::string getRealTripartiteKey()const;
void setRealTripartiteKey(const std::string& realTripartiteKey);
std::string getIotInstanceId()const;
void setIotInstanceId(const std::string& iotInstanceId);
std::string getGroupId()const;
@@ -45,6 +49,8 @@ namespace AlibabaCloud
void setApiRevision(const std::string& apiRevision);
private:
std::string realTenantId_;
std::string realTripartiteKey_;
std::string iotInstanceId_;
std::string groupId_;
std::string apiProduct_;

View File

@@ -35,8 +35,12 @@ namespace AlibabaCloud
QueryDeviceFileListRequest();
~QueryDeviceFileListRequest();
std::string getRealTenantId()const;
void setRealTenantId(const std::string& realTenantId);
std::string getAccessKeyId()const;
void setAccessKeyId(const std::string& accessKeyId);
std::string getRealTripartiteKey()const;
void setRealTripartiteKey(const std::string& realTripartiteKey);
std::string getIotId()const;
void setIotId(const std::string& iotId);
std::string getIotInstanceId()const;
@@ -55,7 +59,9 @@ namespace AlibabaCloud
void setDeviceName(const std::string& deviceName);
private:
std::string realTenantId_;
std::string accessKeyId_;
std::string realTripartiteKey_;
std::string iotId_;
std::string iotInstanceId_;
int pageSize_;

View File

@@ -37,10 +37,14 @@ namespace AlibabaCloud
std::vector<std::string> getGroupTypes()const;
void setGroupTypes(const std::vector<std::string>& groupTypes);
std::string getRealTenantId()const;
void setRealTenantId(const std::string& realTenantId);
std::string getSuperGroupId()const;
void setSuperGroupId(const std::string& superGroupId);
std::string getAccessKeyId()const;
void setAccessKeyId(const std::string& accessKeyId);
std::string getRealTripartiteKey()const;
void setRealTripartiteKey(const std::string& realTripartiteKey);
std::string getIotInstanceId()const;
void setIotInstanceId(const std::string& iotInstanceId);
int getPageSize()const;
@@ -56,8 +60,10 @@ namespace AlibabaCloud
private:
std::vector<std::string> groupTypes_;
std::string realTenantId_;
std::string superGroupId_;
std::string accessKeyId_;
std::string realTripartiteKey_;
std::string iotInstanceId_;
int pageSize_;
int currentPage_;

View File

@@ -35,8 +35,12 @@ namespace AlibabaCloud
QueryDeviceGroupTagListRequest();
~QueryDeviceGroupTagListRequest();
std::string getRealTenantId()const;
void setRealTenantId(const std::string& realTenantId);
std::string getAccessKeyId()const;
void setAccessKeyId(const std::string& accessKeyId);
std::string getRealTripartiteKey()const;
void setRealTripartiteKey(const std::string& realTripartiteKey);
std::string getGroupType()const;
void setGroupType(const std::string& groupType);
std::string getIotInstanceId()const;
@@ -49,7 +53,9 @@ namespace AlibabaCloud
void setApiRevision(const std::string& apiRevision);
private:
std::string realTenantId_;
std::string accessKeyId_;
std::string realTripartiteKey_;
std::string groupType_;
std::string iotInstanceId_;
std::string groupId_;

View File

@@ -35,6 +35,10 @@ namespace AlibabaCloud
QueryDeviceSubTopicRequest();
~QueryDeviceSubTopicRequest();
std::string getRealTenantId()const;
void setRealTenantId(const std::string& realTenantId);
std::string getRealTripartiteKey()const;
void setRealTripartiteKey(const std::string& realTripartiteKey);
std::string getIotInstanceId()const;
void setIotInstanceId(const std::string& iotInstanceId);
std::string getProductKey()const;
@@ -47,6 +51,8 @@ namespace AlibabaCloud
void setDeviceName(const std::string& deviceName);
private:
std::string realTenantId_;
std::string realTripartiteKey_;
std::string iotInstanceId_;
std::string productKey_;
std::string apiProduct_;

View File

@@ -35,6 +35,10 @@ namespace AlibabaCloud
QueryJobRequest();
~QueryJobRequest();
std::string getRealTenantId()const;
void setRealTenantId(const std::string& realTenantId);
std::string getRealTripartiteKey()const;
void setRealTripartiteKey(const std::string& realTripartiteKey);
std::string getJobId()const;
void setJobId(const std::string& jobId);
std::string getIotInstanceId()const;
@@ -45,6 +49,8 @@ namespace AlibabaCloud
void setApiRevision(const std::string& apiRevision);
private:
std::string realTenantId_;
std::string realTripartiteKey_;
std::string jobId_;
std::string iotInstanceId_;
std::string apiProduct_;

View File

@@ -35,6 +35,10 @@ namespace AlibabaCloud
QueryJobStatisticsRequest();
~QueryJobStatisticsRequest();
std::string getRealTenantId()const;
void setRealTenantId(const std::string& realTenantId);
std::string getRealTripartiteKey()const;
void setRealTripartiteKey(const std::string& realTripartiteKey);
std::string getJobId()const;
void setJobId(const std::string& jobId);
std::string getIotInstanceId()const;
@@ -45,6 +49,8 @@ namespace AlibabaCloud
void setApiRevision(const std::string& apiRevision);
private:
std::string realTenantId_;
std::string realTripartiteKey_;
std::string jobId_;
std::string iotInstanceId_;
std::string apiProduct_;

View File

@@ -35,8 +35,12 @@ namespace AlibabaCloud
QueryOTAFirmwareRequest();
~QueryOTAFirmwareRequest();
std::string getRealTenantId()const;
void setRealTenantId(const std::string& realTenantId);
std::string getAccessKeyId()const;
void setAccessKeyId(const std::string& accessKeyId);
std::string getRealTripartiteKey()const;
void setRealTripartiteKey(const std::string& realTripartiteKey);
std::string getIotInstanceId()const;
void setIotInstanceId(const std::string& iotInstanceId);
std::string getFirmwareId()const;
@@ -47,7 +51,9 @@ namespace AlibabaCloud
void setApiRevision(const std::string& apiRevision);
private:
std::string realTenantId_;
std::string accessKeyId_;
std::string realTripartiteKey_;
std::string iotInstanceId_;
std::string firmwareId_;
std::string apiProduct_;

View File

@@ -35,8 +35,12 @@ namespace AlibabaCloud
QuerySuperDeviceGroupRequest();
~QuerySuperDeviceGroupRequest();
std::string getRealTenantId()const;
void setRealTenantId(const std::string& realTenantId);
std::string getAccessKeyId()const;
void setAccessKeyId(const std::string& accessKeyId);
std::string getRealTripartiteKey()const;
void setRealTripartiteKey(const std::string& realTripartiteKey);
std::string getIotInstanceId()const;
void setIotInstanceId(const std::string& iotInstanceId);
std::string getGroupId()const;
@@ -47,7 +51,9 @@ namespace AlibabaCloud
void setApiRevision(const std::string& apiRevision);
private:
std::string realTenantId_;
std::string accessKeyId_;
std::string realTripartiteKey_;
std::string iotInstanceId_;
std::string groupId_;
std::string apiProduct_;

View File

@@ -35,6 +35,10 @@ namespace AlibabaCloud
QueryTaskRequest();
~QueryTaskRequest();
std::string getRealTenantId()const;
void setRealTenantId(const std::string& realTenantId);
std::string getRealTripartiteKey()const;
void setRealTripartiteKey(const std::string& realTripartiteKey);
std::string getIotInstanceId()const;
void setIotInstanceId(const std::string& iotInstanceId);
std::string getTaskId()const;
@@ -45,6 +49,8 @@ namespace AlibabaCloud
void setApiRevision(const std::string& apiRevision);
private:
std::string realTenantId_;
std::string realTripartiteKey_;
std::string iotInstanceId_;
std::string taskId_;
std::string apiProduct_;

View File

@@ -37,10 +37,14 @@ namespace AlibabaCloud
int get_Template()const;
void set_Template(int _template);
std::string getRealTenantId()const;
void setRealTenantId(const std::string& realTenantId);
std::string getCategoryKey()const;
void setCategoryKey(const std::string& categoryKey);
std::string getAccessKeyId()const;
void setAccessKeyId(const std::string& accessKeyId);
std::string getRealTripartiteKey()const;
void setRealTripartiteKey(const std::string& realTripartiteKey);
std::string getTemplateIdentifier()const;
void setTemplateIdentifier(const std::string& templateIdentifier);
std::string getIotInstanceId()const;
@@ -60,8 +64,10 @@ namespace AlibabaCloud
private:
int _template_;
std::string realTenantId_;
std::string categoryKey_;
std::string accessKeyId_;
std::string realTripartiteKey_;
std::string templateIdentifier_;
std::string iotInstanceId_;
std::string templateName_;

View File

@@ -35,8 +35,12 @@ namespace AlibabaCloud
SetDeviceDesiredPropertyRequest();
~SetDeviceDesiredPropertyRequest();
std::string getRealTenantId()const;
void setRealTenantId(const std::string& realTenantId);
std::string getAccessKeyId()const;
void setAccessKeyId(const std::string& accessKeyId);
std::string getRealTripartiteKey()const;
void setRealTripartiteKey(const std::string& realTripartiteKey);
std::string getIotId()const;
void setIotId(const std::string& iotId);
std::string getIotInstanceId()const;
@@ -55,7 +59,9 @@ namespace AlibabaCloud
void setItems(const std::string& items);
private:
std::string realTenantId_;
std::string accessKeyId_;
std::string realTripartiteKey_;
std::string iotId_;
std::string iotInstanceId_;
std::string productKey_;

View File

@@ -43,6 +43,8 @@ namespace AlibabaCloud
void setRealTripartiteKey(const std::string& realTripartiteKey);
std::string getIotId()const;
void setIotId(const std::string& iotId);
int getQos()const;
void setQos(int qos);
std::string getIotInstanceId()const;
void setIotInstanceId(const std::string& iotInstanceId);
std::string getProductKey()const;
@@ -61,6 +63,7 @@ namespace AlibabaCloud
std::string accessKeyId_;
std::string realTripartiteKey_;
std::string iotId_;
int qos_;
std::string iotInstanceId_;
std::string productKey_;
std::string apiProduct_;

View File

@@ -37,8 +37,12 @@ namespace AlibabaCloud
std::string getShadowMessage()const;
void setShadowMessage(const std::string& shadowMessage);
std::string getRealTenantId()const;
void setRealTenantId(const std::string& realTenantId);
std::string getAccessKeyId()const;
void setAccessKeyId(const std::string& accessKeyId);
std::string getRealTripartiteKey()const;
void setRealTripartiteKey(const std::string& realTripartiteKey);
std::string getIotInstanceId()const;
void setIotInstanceId(const std::string& iotInstanceId);
std::string getProductKey()const;
@@ -54,7 +58,9 @@ namespace AlibabaCloud
private:
std::string shadowMessage_;
std::string realTenantId_;
std::string accessKeyId_;
std::string realTripartiteKey_;
std::string iotInstanceId_;
std::string productKey_;
bool deltaUpdate_;

View File

@@ -45,16 +45,9 @@ void BatchAddDataForApiSourceResult::parse(const std::string &payload)
code_ = value["Code"].asString();
if(!value["ErrorMessage"].isNull())
errorMessage_ = value["ErrorMessage"].asString();
if(!value["Data"].isNull())
data_ = value["Data"].asString();
}
std::string BatchAddDataForApiSourceResult::getData()const
{
return data_;
}
std::string BatchAddDataForApiSourceResult::getErrorMessage()const
{
return errorMessage_;

View File

@@ -27,6 +27,17 @@ GetDeviceShadowRequest::GetDeviceShadowRequest() :
GetDeviceShadowRequest::~GetDeviceShadowRequest()
{}
std::string GetDeviceShadowRequest::getRealTenantId()const
{
return realTenantId_;
}
void GetDeviceShadowRequest::setRealTenantId(const std::string& realTenantId)
{
realTenantId_ = realTenantId;
setParameter("RealTenantId", realTenantId);
}
std::string GetDeviceShadowRequest::getAccessKeyId()const
{
return accessKeyId_;
@@ -38,6 +49,17 @@ void GetDeviceShadowRequest::setAccessKeyId(const std::string& accessKeyId)
setParameter("AccessKeyId", accessKeyId);
}
std::string GetDeviceShadowRequest::getRealTripartiteKey()const
{
return realTripartiteKey_;
}
void GetDeviceShadowRequest::setRealTripartiteKey(const std::string& realTripartiteKey)
{
realTripartiteKey_ = realTripartiteKey;
setParameter("RealTripartiteKey", realTripartiteKey);
}
std::string GetDeviceShadowRequest::getIotInstanceId()const
{
return iotInstanceId_;

View File

@@ -27,6 +27,17 @@ GetDeviceStatusRequest::GetDeviceStatusRequest() :
GetDeviceStatusRequest::~GetDeviceStatusRequest()
{}
std::string GetDeviceStatusRequest::getRealTenantId()const
{
return realTenantId_;
}
void GetDeviceStatusRequest::setRealTenantId(const std::string& realTenantId)
{
realTenantId_ = realTenantId;
setParameter("RealTenantId", realTenantId);
}
std::string GetDeviceStatusRequest::getAccessKeyId()const
{
return accessKeyId_;
@@ -38,6 +49,17 @@ void GetDeviceStatusRequest::setAccessKeyId(const std::string& accessKeyId)
setParameter("AccessKeyId", accessKeyId);
}
std::string GetDeviceStatusRequest::getRealTripartiteKey()const
{
return realTripartiteKey_;
}
void GetDeviceStatusRequest::setRealTripartiteKey(const std::string& realTripartiteKey)
{
realTripartiteKey_ = realTripartiteKey;
setParameter("RealTripartiteKey", realTripartiteKey);
}
std::string GetDeviceStatusRequest::getIotId()const
{
return iotId_;

View File

@@ -27,6 +27,17 @@ GetRuleRequest::GetRuleRequest() :
GetRuleRequest::~GetRuleRequest()
{}
std::string GetRuleRequest::getRealTenantId()const
{
return realTenantId_;
}
void GetRuleRequest::setRealTenantId(const std::string& realTenantId)
{
realTenantId_ = realTenantId;
setParameter("RealTenantId", realTenantId);
}
std::string GetRuleRequest::getAccessKeyId()const
{
return accessKeyId_;
@@ -38,6 +49,17 @@ void GetRuleRequest::setAccessKeyId(const std::string& accessKeyId)
setParameter("AccessKeyId", accessKeyId);
}
std::string GetRuleRequest::getRealTripartiteKey()const
{
return realTripartiteKey_;
}
void GetRuleRequest::setRealTripartiteKey(const std::string& realTripartiteKey)
{
realTripartiteKey_ = realTripartiteKey;
setParameter("RealTripartiteKey", realTripartiteKey);
}
std::string GetRuleRequest::getIotInstanceId()const
{
return iotInstanceId_;

View File

@@ -71,6 +71,17 @@ void InvokeThingServiceRequest::setIotId(const std::string& iotId)
setParameter("IotId", iotId);
}
int InvokeThingServiceRequest::getQos()const
{
return qos_;
}
void InvokeThingServiceRequest::setQos(int qos)
{
qos_ = qos;
setParameter("Qos", std::to_string(qos));
}
std::string InvokeThingServiceRequest::getIotInstanceId()const
{
return iotInstanceId_;

View File

@@ -38,6 +38,28 @@ void ListDestinationRequest::setSearchName(const std::string& searchName)
setParameter("SearchName", searchName);
}
std::string ListDestinationRequest::getRealTenantId()const
{
return realTenantId_;
}
void ListDestinationRequest::setRealTenantId(const std::string& realTenantId)
{
realTenantId_ = realTenantId;
setParameter("RealTenantId", realTenantId);
}
std::string ListDestinationRequest::getRealTripartiteKey()const
{
return realTripartiteKey_;
}
void ListDestinationRequest::setRealTripartiteKey(const std::string& realTripartiteKey)
{
realTripartiteKey_ = realTripartiteKey;
setParameter("RealTripartiteKey", realTripartiteKey);
}
std::string ListDestinationRequest::getIotInstanceId()const
{
return iotInstanceId_;

View File

@@ -27,6 +27,28 @@ ListDeviceDistributeJobRequest::ListDeviceDistributeJobRequest() :
ListDeviceDistributeJobRequest::~ListDeviceDistributeJobRequest()
{}
std::string ListDeviceDistributeJobRequest::getRealTenantId()const
{
return realTenantId_;
}
void ListDeviceDistributeJobRequest::setRealTenantId(const std::string& realTenantId)
{
realTenantId_ = realTenantId;
setBodyParameter("RealTenantId", realTenantId);
}
std::string ListDeviceDistributeJobRequest::getRealTripartiteKey()const
{
return realTripartiteKey_;
}
void ListDeviceDistributeJobRequest::setRealTripartiteKey(const std::string& realTripartiteKey)
{
realTripartiteKey_ = realTripartiteKey;
setBodyParameter("RealTripartiteKey", realTripartiteKey);
}
std::string ListDeviceDistributeJobRequest::getJobId()const
{
return jobId_;

View File

@@ -27,6 +27,28 @@ ListDistributedDeviceRequest::ListDistributedDeviceRequest() :
ListDistributedDeviceRequest::~ListDistributedDeviceRequest()
{}
std::string ListDistributedDeviceRequest::getRealTenantId()const
{
return realTenantId_;
}
void ListDistributedDeviceRequest::setRealTenantId(const std::string& realTenantId)
{
realTenantId_ = realTenantId;
setBodyParameter("RealTenantId", realTenantId);
}
std::string ListDistributedDeviceRequest::getRealTripartiteKey()const
{
return realTripartiteKey_;
}
void ListDistributedDeviceRequest::setRealTripartiteKey(const std::string& realTripartiteKey)
{
realTripartiteKey_ = realTripartiteKey;
setBodyParameter("RealTripartiteKey", realTripartiteKey);
}
int ListDistributedDeviceRequest::getPageSize()const
{
return pageSize_;

View File

@@ -27,6 +27,28 @@ ListJobRequest::ListJobRequest() :
ListJobRequest::~ListJobRequest()
{}
std::string ListJobRequest::getRealTenantId()const
{
return realTenantId_;
}
void ListJobRequest::setRealTenantId(const std::string& realTenantId)
{
realTenantId_ = realTenantId;
setParameter("RealTenantId", realTenantId);
}
std::string ListJobRequest::getRealTripartiteKey()const
{
return realTripartiteKey_;
}
void ListJobRequest::setRealTripartiteKey(const std::string& realTripartiteKey)
{
realTripartiteKey_ = realTripartiteKey;
setParameter("RealTripartiteKey", realTripartiteKey);
}
std::string ListJobRequest::getIotInstanceId()const
{
return iotInstanceId_;

View File

@@ -38,6 +38,28 @@ void ListOTAModuleByProductRequest::setAuthConfig(const std::string& authConfig)
setParameter("AuthConfig", authConfig);
}
std::string ListOTAModuleByProductRequest::getRealTenantId()const
{
return realTenantId_;
}
void ListOTAModuleByProductRequest::setRealTenantId(const std::string& realTenantId)
{
realTenantId_ = realTenantId;
setParameter("RealTenantId", realTenantId);
}
std::string ListOTAModuleByProductRequest::getRealTripartiteKey()const
{
return realTripartiteKey_;
}
void ListOTAModuleByProductRequest::setRealTripartiteKey(const std::string& realTripartiteKey)
{
realTripartiteKey_ = realTripartiteKey;
setParameter("RealTripartiteKey", realTripartiteKey);
}
std::string ListOTAModuleByProductRequest::getIotInstanceId()const
{
return iotInstanceId_;

View File

@@ -27,6 +27,17 @@ ListRuleActionsRequest::ListRuleActionsRequest() :
ListRuleActionsRequest::~ListRuleActionsRequest()
{}
std::string ListRuleActionsRequest::getRealTenantId()const
{
return realTenantId_;
}
void ListRuleActionsRequest::setRealTenantId(const std::string& realTenantId)
{
realTenantId_ = realTenantId;
setParameter("RealTenantId", realTenantId);
}
std::string ListRuleActionsRequest::getAccessKeyId()const
{
return accessKeyId_;
@@ -38,6 +49,17 @@ void ListRuleActionsRequest::setAccessKeyId(const std::string& accessKeyId)
setParameter("AccessKeyId", accessKeyId);
}
std::string ListRuleActionsRequest::getRealTripartiteKey()const
{
return realTripartiteKey_;
}
void ListRuleActionsRequest::setRealTripartiteKey(const std::string& realTripartiteKey)
{
realTripartiteKey_ = realTripartiteKey;
setParameter("RealTripartiteKey", realTripartiteKey);
}
std::string ListRuleActionsRequest::getIotInstanceId()const
{
return iotInstanceId_;

View File

@@ -38,6 +38,17 @@ void ListRuleRequest::setSearchName(const std::string& searchName)
setParameter("SearchName", searchName);
}
std::string ListRuleRequest::getRealTenantId()const
{
return realTenantId_;
}
void ListRuleRequest::setRealTenantId(const std::string& realTenantId)
{
realTenantId_ = realTenantId;
setParameter("RealTenantId", realTenantId);
}
std::string ListRuleRequest::getAccessKeyId()const
{
return accessKeyId_;
@@ -49,6 +60,17 @@ void ListRuleRequest::setAccessKeyId(const std::string& accessKeyId)
setParameter("AccessKeyId", accessKeyId);
}
std::string ListRuleRequest::getRealTripartiteKey()const
{
return realTripartiteKey_;
}
void ListRuleRequest::setRealTripartiteKey(const std::string& realTripartiteKey)
{
realTripartiteKey_ = realTripartiteKey;
setParameter("RealTripartiteKey", realTripartiteKey);
}
std::string ListRuleRequest::getResourceGroupId()const
{
return resourceGroupId_;

View File

@@ -120,6 +120,17 @@ void PubRequest::setResponseTopic(const std::string& responseTopic)
setParameter("ResponseTopic", responseTopic);
}
int PubRequest::getTopicAlias()const
{
return topicAlias_;
}
void PubRequest::setTopicAlias(int topicAlias)
{
topicAlias_ = topicAlias;
setParameter("TopicAlias", std::to_string(topicAlias));
}
std::string PubRequest::getTopicFullName()const
{
return topicFullName_;

View File

@@ -27,6 +27,28 @@ QueryConsumerGroupByGroupIdRequest::QueryConsumerGroupByGroupIdRequest() :
QueryConsumerGroupByGroupIdRequest::~QueryConsumerGroupByGroupIdRequest()
{}
std::string QueryConsumerGroupByGroupIdRequest::getRealTenantId()const
{
return realTenantId_;
}
void QueryConsumerGroupByGroupIdRequest::setRealTenantId(const std::string& realTenantId)
{
realTenantId_ = realTenantId;
setParameter("RealTenantId", realTenantId);
}
std::string QueryConsumerGroupByGroupIdRequest::getRealTripartiteKey()const
{
return realTripartiteKey_;
}
void QueryConsumerGroupByGroupIdRequest::setRealTripartiteKey(const std::string& realTripartiteKey)
{
realTripartiteKey_ = realTripartiteKey;
setParameter("RealTripartiteKey", realTripartiteKey);
}
std::string QueryConsumerGroupByGroupIdRequest::getIotInstanceId()const
{
return iotInstanceId_;

View File

@@ -27,6 +27,17 @@ QueryDeviceFileListRequest::QueryDeviceFileListRequest() :
QueryDeviceFileListRequest::~QueryDeviceFileListRequest()
{}
std::string QueryDeviceFileListRequest::getRealTenantId()const
{
return realTenantId_;
}
void QueryDeviceFileListRequest::setRealTenantId(const std::string& realTenantId)
{
realTenantId_ = realTenantId;
setParameter("RealTenantId", realTenantId);
}
std::string QueryDeviceFileListRequest::getAccessKeyId()const
{
return accessKeyId_;
@@ -38,6 +49,17 @@ void QueryDeviceFileListRequest::setAccessKeyId(const std::string& accessKeyId)
setParameter("AccessKeyId", accessKeyId);
}
std::string QueryDeviceFileListRequest::getRealTripartiteKey()const
{
return realTripartiteKey_;
}
void QueryDeviceFileListRequest::setRealTripartiteKey(const std::string& realTripartiteKey)
{
realTripartiteKey_ = realTripartiteKey;
setParameter("RealTripartiteKey", realTripartiteKey);
}
std::string QueryDeviceFileListRequest::getIotId()const
{
return iotId_;

View File

@@ -40,6 +40,17 @@ void QueryDeviceGroupListRequest::setGroupTypes(const std::vector<std::string>&
}
}
std::string QueryDeviceGroupListRequest::getRealTenantId()const
{
return realTenantId_;
}
void QueryDeviceGroupListRequest::setRealTenantId(const std::string& realTenantId)
{
realTenantId_ = realTenantId;
setParameter("RealTenantId", realTenantId);
}
std::string QueryDeviceGroupListRequest::getSuperGroupId()const
{
return superGroupId_;
@@ -62,6 +73,17 @@ void QueryDeviceGroupListRequest::setAccessKeyId(const std::string& accessKeyId)
setParameter("AccessKeyId", accessKeyId);
}
std::string QueryDeviceGroupListRequest::getRealTripartiteKey()const
{
return realTripartiteKey_;
}
void QueryDeviceGroupListRequest::setRealTripartiteKey(const std::string& realTripartiteKey)
{
realTripartiteKey_ = realTripartiteKey;
setParameter("RealTripartiteKey", realTripartiteKey);
}
std::string QueryDeviceGroupListRequest::getIotInstanceId()const
{
return iotInstanceId_;

View File

@@ -27,6 +27,17 @@ QueryDeviceGroupTagListRequest::QueryDeviceGroupTagListRequest() :
QueryDeviceGroupTagListRequest::~QueryDeviceGroupTagListRequest()
{}
std::string QueryDeviceGroupTagListRequest::getRealTenantId()const
{
return realTenantId_;
}
void QueryDeviceGroupTagListRequest::setRealTenantId(const std::string& realTenantId)
{
realTenantId_ = realTenantId;
setParameter("RealTenantId", realTenantId);
}
std::string QueryDeviceGroupTagListRequest::getAccessKeyId()const
{
return accessKeyId_;
@@ -38,6 +49,17 @@ void QueryDeviceGroupTagListRequest::setAccessKeyId(const std::string& accessKey
setParameter("AccessKeyId", accessKeyId);
}
std::string QueryDeviceGroupTagListRequest::getRealTripartiteKey()const
{
return realTripartiteKey_;
}
void QueryDeviceGroupTagListRequest::setRealTripartiteKey(const std::string& realTripartiteKey)
{
realTripartiteKey_ = realTripartiteKey;
setParameter("RealTripartiteKey", realTripartiteKey);
}
std::string QueryDeviceGroupTagListRequest::getGroupType()const
{
return groupType_;

View File

@@ -27,6 +27,28 @@ QueryDeviceSubTopicRequest::QueryDeviceSubTopicRequest() :
QueryDeviceSubTopicRequest::~QueryDeviceSubTopicRequest()
{}
std::string QueryDeviceSubTopicRequest::getRealTenantId()const
{
return realTenantId_;
}
void QueryDeviceSubTopicRequest::setRealTenantId(const std::string& realTenantId)
{
realTenantId_ = realTenantId;
setParameter("RealTenantId", realTenantId);
}
std::string QueryDeviceSubTopicRequest::getRealTripartiteKey()const
{
return realTripartiteKey_;
}
void QueryDeviceSubTopicRequest::setRealTripartiteKey(const std::string& realTripartiteKey)
{
realTripartiteKey_ = realTripartiteKey;
setParameter("RealTripartiteKey", realTripartiteKey);
}
std::string QueryDeviceSubTopicRequest::getIotInstanceId()const
{
return iotInstanceId_;

View File

@@ -27,6 +27,28 @@ QueryJobRequest::QueryJobRequest() :
QueryJobRequest::~QueryJobRequest()
{}
std::string QueryJobRequest::getRealTenantId()const
{
return realTenantId_;
}
void QueryJobRequest::setRealTenantId(const std::string& realTenantId)
{
realTenantId_ = realTenantId;
setParameter("RealTenantId", realTenantId);
}
std::string QueryJobRequest::getRealTripartiteKey()const
{
return realTripartiteKey_;
}
void QueryJobRequest::setRealTripartiteKey(const std::string& realTripartiteKey)
{
realTripartiteKey_ = realTripartiteKey;
setParameter("RealTripartiteKey", realTripartiteKey);
}
std::string QueryJobRequest::getJobId()const
{
return jobId_;

View File

@@ -27,6 +27,28 @@ QueryJobStatisticsRequest::QueryJobStatisticsRequest() :
QueryJobStatisticsRequest::~QueryJobStatisticsRequest()
{}
std::string QueryJobStatisticsRequest::getRealTenantId()const
{
return realTenantId_;
}
void QueryJobStatisticsRequest::setRealTenantId(const std::string& realTenantId)
{
realTenantId_ = realTenantId;
setParameter("RealTenantId", realTenantId);
}
std::string QueryJobStatisticsRequest::getRealTripartiteKey()const
{
return realTripartiteKey_;
}
void QueryJobStatisticsRequest::setRealTripartiteKey(const std::string& realTripartiteKey)
{
realTripartiteKey_ = realTripartiteKey;
setParameter("RealTripartiteKey", realTripartiteKey);
}
std::string QueryJobStatisticsRequest::getJobId()const
{
return jobId_;

View File

@@ -27,6 +27,17 @@ QueryOTAFirmwareRequest::QueryOTAFirmwareRequest() :
QueryOTAFirmwareRequest::~QueryOTAFirmwareRequest()
{}
std::string QueryOTAFirmwareRequest::getRealTenantId()const
{
return realTenantId_;
}
void QueryOTAFirmwareRequest::setRealTenantId(const std::string& realTenantId)
{
realTenantId_ = realTenantId;
setParameter("RealTenantId", realTenantId);
}
std::string QueryOTAFirmwareRequest::getAccessKeyId()const
{
return accessKeyId_;
@@ -38,6 +49,17 @@ void QueryOTAFirmwareRequest::setAccessKeyId(const std::string& accessKeyId)
setParameter("AccessKeyId", accessKeyId);
}
std::string QueryOTAFirmwareRequest::getRealTripartiteKey()const
{
return realTripartiteKey_;
}
void QueryOTAFirmwareRequest::setRealTripartiteKey(const std::string& realTripartiteKey)
{
realTripartiteKey_ = realTripartiteKey;
setParameter("RealTripartiteKey", realTripartiteKey);
}
std::string QueryOTAFirmwareRequest::getIotInstanceId()const
{
return iotInstanceId_;

View File

@@ -27,6 +27,17 @@ QuerySuperDeviceGroupRequest::QuerySuperDeviceGroupRequest() :
QuerySuperDeviceGroupRequest::~QuerySuperDeviceGroupRequest()
{}
std::string QuerySuperDeviceGroupRequest::getRealTenantId()const
{
return realTenantId_;
}
void QuerySuperDeviceGroupRequest::setRealTenantId(const std::string& realTenantId)
{
realTenantId_ = realTenantId;
setParameter("RealTenantId", realTenantId);
}
std::string QuerySuperDeviceGroupRequest::getAccessKeyId()const
{
return accessKeyId_;
@@ -38,6 +49,17 @@ void QuerySuperDeviceGroupRequest::setAccessKeyId(const std::string& accessKeyId
setParameter("AccessKeyId", accessKeyId);
}
std::string QuerySuperDeviceGroupRequest::getRealTripartiteKey()const
{
return realTripartiteKey_;
}
void QuerySuperDeviceGroupRequest::setRealTripartiteKey(const std::string& realTripartiteKey)
{
realTripartiteKey_ = realTripartiteKey;
setParameter("RealTripartiteKey", realTripartiteKey);
}
std::string QuerySuperDeviceGroupRequest::getIotInstanceId()const
{
return iotInstanceId_;

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