Generate SDK by new Generator
This commit is contained in:
@@ -21,45 +21,45 @@ set(openanalytics_public_header
|
||||
include/alibabacloud/openanalytics/OpenanalyticsExport.h )
|
||||
|
||||
set(openanalytics_public_header_model
|
||||
include/alibabacloud/openanalytics/model/SetAllowIPRequest.h
|
||||
include/alibabacloud/openanalytics/model/SetAllowIPResult.h
|
||||
include/alibabacloud/openanalytics/model/GetRegionStatusRequest.h
|
||||
include/alibabacloud/openanalytics/model/GetRegionStatusResult.h
|
||||
include/alibabacloud/openanalytics/model/DescribeRegionListRequest.h
|
||||
include/alibabacloud/openanalytics/model/DescribeRegionListResult.h
|
||||
include/alibabacloud/openanalytics/model/OpenProductAccountRequest.h
|
||||
include/alibabacloud/openanalytics/model/OpenProductAccountResult.h
|
||||
include/alibabacloud/openanalytics/model/GetEndPointByDomainRequest.h
|
||||
include/alibabacloud/openanalytics/model/GetEndPointByDomainResult.h
|
||||
include/alibabacloud/openanalytics/model/CloseProductAccountRequest.h
|
||||
include/alibabacloud/openanalytics/model/CloseProductAccountResult.h
|
||||
include/alibabacloud/openanalytics/model/DescribeRegionListRequest.h
|
||||
include/alibabacloud/openanalytics/model/DescribeRegionListResult.h
|
||||
include/alibabacloud/openanalytics/model/GetAllowIPRequest.h
|
||||
include/alibabacloud/openanalytics/model/GetAllowIPResult.h
|
||||
include/alibabacloud/openanalytics/model/GetEndPointByDomainRequest.h
|
||||
include/alibabacloud/openanalytics/model/GetEndPointByDomainResult.h
|
||||
include/alibabacloud/openanalytics/model/GetProductStatusRequest.h
|
||||
include/alibabacloud/openanalytics/model/GetProductStatusResult.h
|
||||
include/alibabacloud/openanalytics/model/GetRegionStatusRequest.h
|
||||
include/alibabacloud/openanalytics/model/GetRegionStatusResult.h
|
||||
include/alibabacloud/openanalytics/model/OpenProductAccountRequest.h
|
||||
include/alibabacloud/openanalytics/model/OpenProductAccountResult.h
|
||||
include/alibabacloud/openanalytics/model/QueryEndPointListRequest.h
|
||||
include/alibabacloud/openanalytics/model/QueryEndPointListResult.h )
|
||||
include/alibabacloud/openanalytics/model/QueryEndPointListResult.h
|
||||
include/alibabacloud/openanalytics/model/SetAllowIPRequest.h
|
||||
include/alibabacloud/openanalytics/model/SetAllowIPResult.h )
|
||||
|
||||
set(openanalytics_src
|
||||
src/OpenanalyticsClient.cc
|
||||
src/model/SetAllowIPRequest.cc
|
||||
src/model/SetAllowIPResult.cc
|
||||
src/model/GetRegionStatusRequest.cc
|
||||
src/model/GetRegionStatusResult.cc
|
||||
src/model/DescribeRegionListRequest.cc
|
||||
src/model/DescribeRegionListResult.cc
|
||||
src/model/OpenProductAccountRequest.cc
|
||||
src/model/OpenProductAccountResult.cc
|
||||
src/model/GetEndPointByDomainRequest.cc
|
||||
src/model/GetEndPointByDomainResult.cc
|
||||
src/model/CloseProductAccountRequest.cc
|
||||
src/model/CloseProductAccountResult.cc
|
||||
src/model/DescribeRegionListRequest.cc
|
||||
src/model/DescribeRegionListResult.cc
|
||||
src/model/GetAllowIPRequest.cc
|
||||
src/model/GetAllowIPResult.cc
|
||||
src/model/GetEndPointByDomainRequest.cc
|
||||
src/model/GetEndPointByDomainResult.cc
|
||||
src/model/GetProductStatusRequest.cc
|
||||
src/model/GetProductStatusResult.cc
|
||||
src/model/GetRegionStatusRequest.cc
|
||||
src/model/GetRegionStatusResult.cc
|
||||
src/model/OpenProductAccountRequest.cc
|
||||
src/model/OpenProductAccountResult.cc
|
||||
src/model/QueryEndPointListRequest.cc
|
||||
src/model/QueryEndPointListResult.cc )
|
||||
src/model/QueryEndPointListResult.cc
|
||||
src/model/SetAllowIPRequest.cc
|
||||
src/model/SetAllowIPResult.cc )
|
||||
|
||||
add_library(openanalytics ${LIB_TYPE}
|
||||
${openanalytics_public_header}
|
||||
|
||||
@@ -22,24 +22,24 @@
|
||||
#include <alibabacloud/core/EndpointProvider.h>
|
||||
#include <alibabacloud/core/RpcServiceClient.h>
|
||||
#include "OpenanalyticsExport.h"
|
||||
#include "model/SetAllowIPRequest.h"
|
||||
#include "model/SetAllowIPResult.h"
|
||||
#include "model/GetRegionStatusRequest.h"
|
||||
#include "model/GetRegionStatusResult.h"
|
||||
#include "model/DescribeRegionListRequest.h"
|
||||
#include "model/DescribeRegionListResult.h"
|
||||
#include "model/OpenProductAccountRequest.h"
|
||||
#include "model/OpenProductAccountResult.h"
|
||||
#include "model/GetEndPointByDomainRequest.h"
|
||||
#include "model/GetEndPointByDomainResult.h"
|
||||
#include "model/CloseProductAccountRequest.h"
|
||||
#include "model/CloseProductAccountResult.h"
|
||||
#include "model/DescribeRegionListRequest.h"
|
||||
#include "model/DescribeRegionListResult.h"
|
||||
#include "model/GetAllowIPRequest.h"
|
||||
#include "model/GetAllowIPResult.h"
|
||||
#include "model/GetEndPointByDomainRequest.h"
|
||||
#include "model/GetEndPointByDomainResult.h"
|
||||
#include "model/GetProductStatusRequest.h"
|
||||
#include "model/GetProductStatusResult.h"
|
||||
#include "model/GetRegionStatusRequest.h"
|
||||
#include "model/GetRegionStatusResult.h"
|
||||
#include "model/OpenProductAccountRequest.h"
|
||||
#include "model/OpenProductAccountResult.h"
|
||||
#include "model/QueryEndPointListRequest.h"
|
||||
#include "model/QueryEndPointListResult.h"
|
||||
#include "model/SetAllowIPRequest.h"
|
||||
#include "model/SetAllowIPResult.h"
|
||||
|
||||
|
||||
namespace AlibabaCloud
|
||||
@@ -49,65 +49,65 @@ namespace AlibabaCloud
|
||||
class ALIBABACLOUD_OPENANALYTICS_EXPORT OpenanalyticsClient : public RpcServiceClient
|
||||
{
|
||||
public:
|
||||
typedef Outcome<Error, Model::SetAllowIPResult> SetAllowIPOutcome;
|
||||
typedef std::future<SetAllowIPOutcome> SetAllowIPOutcomeCallable;
|
||||
typedef std::function<void(const OpenanalyticsClient*, const Model::SetAllowIPRequest&, const SetAllowIPOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> SetAllowIPAsyncHandler;
|
||||
typedef Outcome<Error, Model::GetRegionStatusResult> GetRegionStatusOutcome;
|
||||
typedef std::future<GetRegionStatusOutcome> GetRegionStatusOutcomeCallable;
|
||||
typedef std::function<void(const OpenanalyticsClient*, const Model::GetRegionStatusRequest&, const GetRegionStatusOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetRegionStatusAsyncHandler;
|
||||
typedef Outcome<Error, Model::DescribeRegionListResult> DescribeRegionListOutcome;
|
||||
typedef std::future<DescribeRegionListOutcome> DescribeRegionListOutcomeCallable;
|
||||
typedef std::function<void(const OpenanalyticsClient*, const Model::DescribeRegionListRequest&, const DescribeRegionListOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeRegionListAsyncHandler;
|
||||
typedef Outcome<Error, Model::OpenProductAccountResult> OpenProductAccountOutcome;
|
||||
typedef std::future<OpenProductAccountOutcome> OpenProductAccountOutcomeCallable;
|
||||
typedef std::function<void(const OpenanalyticsClient*, const Model::OpenProductAccountRequest&, const OpenProductAccountOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> OpenProductAccountAsyncHandler;
|
||||
typedef Outcome<Error, Model::GetEndPointByDomainResult> GetEndPointByDomainOutcome;
|
||||
typedef std::future<GetEndPointByDomainOutcome> GetEndPointByDomainOutcomeCallable;
|
||||
typedef std::function<void(const OpenanalyticsClient*, const Model::GetEndPointByDomainRequest&, const GetEndPointByDomainOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetEndPointByDomainAsyncHandler;
|
||||
typedef Outcome<Error, Model::CloseProductAccountResult> CloseProductAccountOutcome;
|
||||
typedef std::future<CloseProductAccountOutcome> CloseProductAccountOutcomeCallable;
|
||||
typedef std::function<void(const OpenanalyticsClient*, const Model::CloseProductAccountRequest&, const CloseProductAccountOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> CloseProductAccountAsyncHandler;
|
||||
typedef Outcome<Error, Model::DescribeRegionListResult> DescribeRegionListOutcome;
|
||||
typedef std::future<DescribeRegionListOutcome> DescribeRegionListOutcomeCallable;
|
||||
typedef std::function<void(const OpenanalyticsClient*, const Model::DescribeRegionListRequest&, const DescribeRegionListOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeRegionListAsyncHandler;
|
||||
typedef Outcome<Error, Model::GetAllowIPResult> GetAllowIPOutcome;
|
||||
typedef std::future<GetAllowIPOutcome> GetAllowIPOutcomeCallable;
|
||||
typedef std::function<void(const OpenanalyticsClient*, const Model::GetAllowIPRequest&, const GetAllowIPOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetAllowIPAsyncHandler;
|
||||
typedef Outcome<Error, Model::GetEndPointByDomainResult> GetEndPointByDomainOutcome;
|
||||
typedef std::future<GetEndPointByDomainOutcome> GetEndPointByDomainOutcomeCallable;
|
||||
typedef std::function<void(const OpenanalyticsClient*, const Model::GetEndPointByDomainRequest&, const GetEndPointByDomainOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetEndPointByDomainAsyncHandler;
|
||||
typedef Outcome<Error, Model::GetProductStatusResult> GetProductStatusOutcome;
|
||||
typedef std::future<GetProductStatusOutcome> GetProductStatusOutcomeCallable;
|
||||
typedef std::function<void(const OpenanalyticsClient*, const Model::GetProductStatusRequest&, const GetProductStatusOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetProductStatusAsyncHandler;
|
||||
typedef Outcome<Error, Model::GetRegionStatusResult> GetRegionStatusOutcome;
|
||||
typedef std::future<GetRegionStatusOutcome> GetRegionStatusOutcomeCallable;
|
||||
typedef std::function<void(const OpenanalyticsClient*, const Model::GetRegionStatusRequest&, const GetRegionStatusOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetRegionStatusAsyncHandler;
|
||||
typedef Outcome<Error, Model::OpenProductAccountResult> OpenProductAccountOutcome;
|
||||
typedef std::future<OpenProductAccountOutcome> OpenProductAccountOutcomeCallable;
|
||||
typedef std::function<void(const OpenanalyticsClient*, const Model::OpenProductAccountRequest&, const OpenProductAccountOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> OpenProductAccountAsyncHandler;
|
||||
typedef Outcome<Error, Model::QueryEndPointListResult> QueryEndPointListOutcome;
|
||||
typedef std::future<QueryEndPointListOutcome> QueryEndPointListOutcomeCallable;
|
||||
typedef std::function<void(const OpenanalyticsClient*, const Model::QueryEndPointListRequest&, const QueryEndPointListOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> QueryEndPointListAsyncHandler;
|
||||
typedef Outcome<Error, Model::SetAllowIPResult> SetAllowIPOutcome;
|
||||
typedef std::future<SetAllowIPOutcome> SetAllowIPOutcomeCallable;
|
||||
typedef std::function<void(const OpenanalyticsClient*, const Model::SetAllowIPRequest&, const SetAllowIPOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> SetAllowIPAsyncHandler;
|
||||
|
||||
OpenanalyticsClient(const Credentials &credentials, const ClientConfiguration &configuration);
|
||||
OpenanalyticsClient(const std::shared_ptr<CredentialsProvider> &credentialsProvider, const ClientConfiguration &configuration);
|
||||
OpenanalyticsClient(const std::string &accessKeyId, const std::string &accessKeySecret, const ClientConfiguration &configuration);
|
||||
~OpenanalyticsClient();
|
||||
SetAllowIPOutcome setAllowIP(const Model::SetAllowIPRequest &request)const;
|
||||
void setAllowIPAsync(const Model::SetAllowIPRequest& request, const SetAllowIPAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
SetAllowIPOutcomeCallable setAllowIPCallable(const Model::SetAllowIPRequest& request) const;
|
||||
GetRegionStatusOutcome getRegionStatus(const Model::GetRegionStatusRequest &request)const;
|
||||
void getRegionStatusAsync(const Model::GetRegionStatusRequest& request, const GetRegionStatusAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
GetRegionStatusOutcomeCallable getRegionStatusCallable(const Model::GetRegionStatusRequest& request) const;
|
||||
DescribeRegionListOutcome describeRegionList(const Model::DescribeRegionListRequest &request)const;
|
||||
void describeRegionListAsync(const Model::DescribeRegionListRequest& request, const DescribeRegionListAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DescribeRegionListOutcomeCallable describeRegionListCallable(const Model::DescribeRegionListRequest& request) const;
|
||||
OpenProductAccountOutcome openProductAccount(const Model::OpenProductAccountRequest &request)const;
|
||||
void openProductAccountAsync(const Model::OpenProductAccountRequest& request, const OpenProductAccountAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
OpenProductAccountOutcomeCallable openProductAccountCallable(const Model::OpenProductAccountRequest& request) const;
|
||||
GetEndPointByDomainOutcome getEndPointByDomain(const Model::GetEndPointByDomainRequest &request)const;
|
||||
void getEndPointByDomainAsync(const Model::GetEndPointByDomainRequest& request, const GetEndPointByDomainAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
GetEndPointByDomainOutcomeCallable getEndPointByDomainCallable(const Model::GetEndPointByDomainRequest& request) const;
|
||||
CloseProductAccountOutcome closeProductAccount(const Model::CloseProductAccountRequest &request)const;
|
||||
void closeProductAccountAsync(const Model::CloseProductAccountRequest& request, const CloseProductAccountAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
CloseProductAccountOutcomeCallable closeProductAccountCallable(const Model::CloseProductAccountRequest& request) const;
|
||||
DescribeRegionListOutcome describeRegionList(const Model::DescribeRegionListRequest &request)const;
|
||||
void describeRegionListAsync(const Model::DescribeRegionListRequest& request, const DescribeRegionListAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DescribeRegionListOutcomeCallable describeRegionListCallable(const Model::DescribeRegionListRequest& request) const;
|
||||
GetAllowIPOutcome getAllowIP(const Model::GetAllowIPRequest &request)const;
|
||||
void getAllowIPAsync(const Model::GetAllowIPRequest& request, const GetAllowIPAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
GetAllowIPOutcomeCallable getAllowIPCallable(const Model::GetAllowIPRequest& request) const;
|
||||
GetEndPointByDomainOutcome getEndPointByDomain(const Model::GetEndPointByDomainRequest &request)const;
|
||||
void getEndPointByDomainAsync(const Model::GetEndPointByDomainRequest& request, const GetEndPointByDomainAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
GetEndPointByDomainOutcomeCallable getEndPointByDomainCallable(const Model::GetEndPointByDomainRequest& request) const;
|
||||
GetProductStatusOutcome getProductStatus(const Model::GetProductStatusRequest &request)const;
|
||||
void getProductStatusAsync(const Model::GetProductStatusRequest& request, const GetProductStatusAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
GetProductStatusOutcomeCallable getProductStatusCallable(const Model::GetProductStatusRequest& request) const;
|
||||
GetRegionStatusOutcome getRegionStatus(const Model::GetRegionStatusRequest &request)const;
|
||||
void getRegionStatusAsync(const Model::GetRegionStatusRequest& request, const GetRegionStatusAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
GetRegionStatusOutcomeCallable getRegionStatusCallable(const Model::GetRegionStatusRequest& request) const;
|
||||
OpenProductAccountOutcome openProductAccount(const Model::OpenProductAccountRequest &request)const;
|
||||
void openProductAccountAsync(const Model::OpenProductAccountRequest& request, const OpenProductAccountAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
OpenProductAccountOutcomeCallable openProductAccountCallable(const Model::OpenProductAccountRequest& request) const;
|
||||
QueryEndPointListOutcome queryEndPointList(const Model::QueryEndPointListRequest &request)const;
|
||||
void queryEndPointListAsync(const Model::QueryEndPointListRequest& request, const QueryEndPointListAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
QueryEndPointListOutcomeCallable queryEndPointListCallable(const Model::QueryEndPointListRequest& request) const;
|
||||
SetAllowIPOutcome setAllowIP(const Model::SetAllowIPRequest &request)const;
|
||||
void setAllowIPAsync(const Model::SetAllowIPRequest& request, const SetAllowIPAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
SetAllowIPOutcomeCallable setAllowIPCallable(const Model::SetAllowIPRequest& request) const;
|
||||
|
||||
private:
|
||||
std::shared_ptr<EndpointProvider> endpointProvider_;
|
||||
|
||||
@@ -35,24 +35,8 @@ namespace AlibabaCloud
|
||||
CloseProductAccountRequest();
|
||||
~CloseProductAccountRequest();
|
||||
|
||||
long getCallerParentId()const;
|
||||
void setCallerParentId(long callerParentId);
|
||||
long getCallerBid()const;
|
||||
void setCallerBid(long callerBid);
|
||||
std::string getCallerType()const;
|
||||
void setCallerType(const std::string& callerType);
|
||||
bool getAk_mfa_present()const;
|
||||
void setAk_mfa_present(bool ak_mfa_present);
|
||||
std::string getAccessKeyId()const;
|
||||
void setAccessKeyId(const std::string& accessKeyId);
|
||||
bool getSecurity_transport()const;
|
||||
void setSecurity_transport(bool security_transport);
|
||||
std::string getRegionID()const;
|
||||
void setRegionID(const std::string& regionID);
|
||||
std::string getRequestId()const;
|
||||
void setRequestId(const std::string& requestId);
|
||||
long getCallerUid()const;
|
||||
void setCallerUid(long callerUid);
|
||||
std::string getProductCode()const;
|
||||
void setProductCode(const std::string& productCode);
|
||||
std::string getProductAccessKey()const;
|
||||
@@ -63,15 +47,7 @@ namespace AlibabaCloud
|
||||
void setTargetArnRole(const std::string& targetArnRole);
|
||||
|
||||
private:
|
||||
long callerParentId_;
|
||||
long callerBid_;
|
||||
std::string callerType_;
|
||||
bool ak_mfa_present_;
|
||||
std::string accessKeyId_;
|
||||
bool security_transport_;
|
||||
std::string regionID_;
|
||||
std::string requestId_;
|
||||
long callerUid_;
|
||||
std::string productCode_;
|
||||
std::string productAccessKey_;
|
||||
std::string targetUid_;
|
||||
|
||||
@@ -35,32 +35,8 @@ namespace AlibabaCloud
|
||||
DescribeRegionListRequest();
|
||||
~DescribeRegionListRequest();
|
||||
|
||||
bool getSecurity_transport()const;
|
||||
void setSecurity_transport(bool security_transport);
|
||||
std::string getRequestId()const;
|
||||
void setRequestId(const std::string& requestId);
|
||||
long getCallerParentId()const;
|
||||
void setCallerParentId(long callerParentId);
|
||||
long getCallerBid()const;
|
||||
void setCallerBid(long callerBid);
|
||||
std::string getCallerType()const;
|
||||
void setCallerType(const std::string& callerType);
|
||||
bool getAk_mfa_present()const;
|
||||
void setAk_mfa_present(bool ak_mfa_present);
|
||||
long getCallerUid()const;
|
||||
void setCallerUid(long callerUid);
|
||||
std::string getAccessKeyId()const;
|
||||
void setAccessKeyId(const std::string& accessKeyId);
|
||||
|
||||
private:
|
||||
bool security_transport_;
|
||||
std::string requestId_;
|
||||
long callerParentId_;
|
||||
long callerBid_;
|
||||
std::string callerType_;
|
||||
bool ak_mfa_present_;
|
||||
long callerUid_;
|
||||
std::string accessKeyId_;
|
||||
|
||||
};
|
||||
}
|
||||
|
||||
@@ -35,39 +35,15 @@ namespace AlibabaCloud
|
||||
GetAllowIPRequest();
|
||||
~GetAllowIPRequest();
|
||||
|
||||
bool getSecurity_transport()const;
|
||||
void setSecurity_transport(bool security_transport);
|
||||
std::string getRegionID()const;
|
||||
void setRegionID(const std::string& regionID);
|
||||
std::string getRequestId()const;
|
||||
void setRequestId(const std::string& requestId);
|
||||
long getCallerParentId()const;
|
||||
void setCallerParentId(long callerParentId);
|
||||
long getCallerBid()const;
|
||||
void setCallerBid(long callerBid);
|
||||
std::string getCallerType()const;
|
||||
void setCallerType(const std::string& callerType);
|
||||
bool getAk_mfa_present()const;
|
||||
void setAk_mfa_present(bool ak_mfa_present);
|
||||
long getCallerUid()const;
|
||||
void setCallerUid(long callerUid);
|
||||
std::string getAccessKeyId()const;
|
||||
void setAccessKeyId(const std::string& accessKeyId);
|
||||
long getUserID()const;
|
||||
void setUserID(long userID);
|
||||
std::string getNetworkType()const;
|
||||
void setNetworkType(const std::string& networkType);
|
||||
|
||||
private:
|
||||
bool security_transport_;
|
||||
std::string regionID_;
|
||||
std::string requestId_;
|
||||
long callerParentId_;
|
||||
long callerBid_;
|
||||
std::string callerType_;
|
||||
bool ak_mfa_present_;
|
||||
long callerUid_;
|
||||
std::string accessKeyId_;
|
||||
long userID_;
|
||||
std::string networkType_;
|
||||
|
||||
|
||||
@@ -35,39 +35,15 @@ namespace AlibabaCloud
|
||||
GetEndPointByDomainRequest();
|
||||
~GetEndPointByDomainRequest();
|
||||
|
||||
bool getSecurity_transport()const;
|
||||
void setSecurity_transport(bool security_transport);
|
||||
std::string getRegionID()const;
|
||||
void setRegionID(const std::string& regionID);
|
||||
std::string getRequestId()const;
|
||||
void setRequestId(const std::string& requestId);
|
||||
long getCallerParentId()const;
|
||||
void setCallerParentId(long callerParentId);
|
||||
long getCallerBid()const;
|
||||
void setCallerBid(long callerBid);
|
||||
std::string getCallerType()const;
|
||||
void setCallerType(const std::string& callerType);
|
||||
bool getAk_mfa_present()const;
|
||||
void setAk_mfa_present(bool ak_mfa_present);
|
||||
long getCallerUid()const;
|
||||
void setCallerUid(long callerUid);
|
||||
std::string getAccessKeyId()const;
|
||||
void setAccessKeyId(const std::string& accessKeyId);
|
||||
long getUserID()const;
|
||||
void setUserID(long userID);
|
||||
std::string getDomainURL()const;
|
||||
void setDomainURL(const std::string& domainURL);
|
||||
|
||||
private:
|
||||
bool security_transport_;
|
||||
std::string regionID_;
|
||||
std::string requestId_;
|
||||
long callerParentId_;
|
||||
long callerBid_;
|
||||
std::string callerType_;
|
||||
bool ak_mfa_present_;
|
||||
long callerUid_;
|
||||
std::string accessKeyId_;
|
||||
long userID_;
|
||||
std::string domainURL_;
|
||||
|
||||
|
||||
@@ -35,24 +35,8 @@ namespace AlibabaCloud
|
||||
GetProductStatusRequest();
|
||||
~GetProductStatusRequest();
|
||||
|
||||
long getCallerParentId()const;
|
||||
void setCallerParentId(long callerParentId);
|
||||
long getCallerBid()const;
|
||||
void setCallerBid(long callerBid);
|
||||
std::string getCallerType()const;
|
||||
void setCallerType(const std::string& callerType);
|
||||
bool getAk_mfa_present()const;
|
||||
void setAk_mfa_present(bool ak_mfa_present);
|
||||
std::string getAccessKeyId()const;
|
||||
void setAccessKeyId(const std::string& accessKeyId);
|
||||
bool getSecurity_transport()const;
|
||||
void setSecurity_transport(bool security_transport);
|
||||
std::string getRegionID()const;
|
||||
void setRegionID(const std::string& regionID);
|
||||
std::string getRequestId()const;
|
||||
void setRequestId(const std::string& requestId);
|
||||
long getCallerUid()const;
|
||||
void setCallerUid(long callerUid);
|
||||
std::string getProductCode()const;
|
||||
void setProductCode(const std::string& productCode);
|
||||
std::string getProductAccessKey()const;
|
||||
@@ -63,15 +47,7 @@ namespace AlibabaCloud
|
||||
void setTargetArnRole(const std::string& targetArnRole);
|
||||
|
||||
private:
|
||||
long callerParentId_;
|
||||
long callerBid_;
|
||||
std::string callerType_;
|
||||
bool ak_mfa_present_;
|
||||
std::string accessKeyId_;
|
||||
bool security_transport_;
|
||||
std::string regionID_;
|
||||
std::string requestId_;
|
||||
long callerUid_;
|
||||
std::string productCode_;
|
||||
std::string productAccessKey_;
|
||||
std::string targetUid_;
|
||||
|
||||
@@ -35,37 +35,13 @@ namespace AlibabaCloud
|
||||
GetRegionStatusRequest();
|
||||
~GetRegionStatusRequest();
|
||||
|
||||
bool getSecurity_transport()const;
|
||||
void setSecurity_transport(bool security_transport);
|
||||
std::string getRegionID()const;
|
||||
void setRegionID(const std::string& regionID);
|
||||
std::string getRequestId()const;
|
||||
void setRequestId(const std::string& requestId);
|
||||
long getCallerParentId()const;
|
||||
void setCallerParentId(long callerParentId);
|
||||
long getCallerBid()const;
|
||||
void setCallerBid(long callerBid);
|
||||
std::string getCallerType()const;
|
||||
void setCallerType(const std::string& callerType);
|
||||
bool getAk_mfa_present()const;
|
||||
void setAk_mfa_present(bool ak_mfa_present);
|
||||
long getCallerUid()const;
|
||||
void setCallerUid(long callerUid);
|
||||
std::string getAccessKeyId()const;
|
||||
void setAccessKeyId(const std::string& accessKeyId);
|
||||
long getTargetUid()const;
|
||||
void setTargetUid(long targetUid);
|
||||
|
||||
private:
|
||||
bool security_transport_;
|
||||
std::string regionID_;
|
||||
std::string requestId_;
|
||||
long callerParentId_;
|
||||
long callerBid_;
|
||||
std::string callerType_;
|
||||
bool ak_mfa_present_;
|
||||
long callerUid_;
|
||||
std::string accessKeyId_;
|
||||
long targetUid_;
|
||||
|
||||
};
|
||||
|
||||
@@ -35,24 +35,8 @@ namespace AlibabaCloud
|
||||
OpenProductAccountRequest();
|
||||
~OpenProductAccountRequest();
|
||||
|
||||
long getCallerParentId()const;
|
||||
void setCallerParentId(long callerParentId);
|
||||
long getCallerBid()const;
|
||||
void setCallerBid(long callerBid);
|
||||
std::string getCallerType()const;
|
||||
void setCallerType(const std::string& callerType);
|
||||
bool getAk_mfa_present()const;
|
||||
void setAk_mfa_present(bool ak_mfa_present);
|
||||
std::string getAccessKeyId()const;
|
||||
void setAccessKeyId(const std::string& accessKeyId);
|
||||
bool getSecurity_transport()const;
|
||||
void setSecurity_transport(bool security_transport);
|
||||
std::string getRegionID()const;
|
||||
void setRegionID(const std::string& regionID);
|
||||
std::string getRequestId()const;
|
||||
void setRequestId(const std::string& requestId);
|
||||
long getCallerUid()const;
|
||||
void setCallerUid(long callerUid);
|
||||
std::string getProductCode()const;
|
||||
void setProductCode(const std::string& productCode);
|
||||
std::string getProductAccessKey()const;
|
||||
@@ -63,15 +47,7 @@ namespace AlibabaCloud
|
||||
void setTargetArnRole(const std::string& targetArnRole);
|
||||
|
||||
private:
|
||||
long callerParentId_;
|
||||
long callerBid_;
|
||||
std::string callerType_;
|
||||
bool ak_mfa_present_;
|
||||
std::string accessKeyId_;
|
||||
bool security_transport_;
|
||||
std::string regionID_;
|
||||
std::string requestId_;
|
||||
long callerUid_;
|
||||
std::string productCode_;
|
||||
std::string productAccessKey_;
|
||||
std::string targetUid_;
|
||||
|
||||
@@ -35,37 +35,13 @@ namespace AlibabaCloud
|
||||
QueryEndPointListRequest();
|
||||
~QueryEndPointListRequest();
|
||||
|
||||
bool getSecurity_transport()const;
|
||||
void setSecurity_transport(bool security_transport);
|
||||
std::string getRegionID()const;
|
||||
void setRegionID(const std::string& regionID);
|
||||
std::string getRequestId()const;
|
||||
void setRequestId(const std::string& requestId);
|
||||
long getCallerParentId()const;
|
||||
void setCallerParentId(long callerParentId);
|
||||
long getCallerBid()const;
|
||||
void setCallerBid(long callerBid);
|
||||
std::string getCallerType()const;
|
||||
void setCallerType(const std::string& callerType);
|
||||
bool getAk_mfa_present()const;
|
||||
void setAk_mfa_present(bool ak_mfa_present);
|
||||
long getCallerUid()const;
|
||||
void setCallerUid(long callerUid);
|
||||
std::string getAccessKeyId()const;
|
||||
void setAccessKeyId(const std::string& accessKeyId);
|
||||
long getUserID()const;
|
||||
void setUserID(long userID);
|
||||
|
||||
private:
|
||||
bool security_transport_;
|
||||
std::string regionID_;
|
||||
std::string requestId_;
|
||||
long callerParentId_;
|
||||
long callerBid_;
|
||||
std::string callerType_;
|
||||
bool ak_mfa_present_;
|
||||
long callerUid_;
|
||||
std::string accessKeyId_;
|
||||
long userID_;
|
||||
|
||||
};
|
||||
|
||||
@@ -35,24 +35,8 @@ namespace AlibabaCloud
|
||||
SetAllowIPRequest();
|
||||
~SetAllowIPRequest();
|
||||
|
||||
long getCallerParentId()const;
|
||||
void setCallerParentId(long callerParentId);
|
||||
long getCallerBid()const;
|
||||
void setCallerBid(long callerBid);
|
||||
std::string getCallerType()const;
|
||||
void setCallerType(const std::string& callerType);
|
||||
bool getAk_mfa_present()const;
|
||||
void setAk_mfa_present(bool ak_mfa_present);
|
||||
std::string getAccessKeyId()const;
|
||||
void setAccessKeyId(const std::string& accessKeyId);
|
||||
bool getSecurity_transport()const;
|
||||
void setSecurity_transport(bool security_transport);
|
||||
std::string getRegionID()const;
|
||||
void setRegionID(const std::string& regionID);
|
||||
std::string getRequestId()const;
|
||||
void setRequestId(const std::string& requestId);
|
||||
long getCallerUid()const;
|
||||
void setCallerUid(long callerUid);
|
||||
long getUserID()const;
|
||||
void setUserID(long userID);
|
||||
std::string getNetworkType()const;
|
||||
@@ -63,15 +47,7 @@ namespace AlibabaCloud
|
||||
void setAppend(bool append);
|
||||
|
||||
private:
|
||||
long callerParentId_;
|
||||
long callerBid_;
|
||||
std::string callerType_;
|
||||
bool ak_mfa_present_;
|
||||
std::string accessKeyId_;
|
||||
bool security_transport_;
|
||||
std::string regionID_;
|
||||
std::string requestId_;
|
||||
long callerUid_;
|
||||
long userID_;
|
||||
std::string networkType_;
|
||||
std::string allowIP_;
|
||||
|
||||
@@ -51,72 +51,36 @@ OpenanalyticsClient::OpenanalyticsClient(const std::string & accessKeyId, const
|
||||
OpenanalyticsClient::~OpenanalyticsClient()
|
||||
{}
|
||||
|
||||
OpenanalyticsClient::SetAllowIPOutcome OpenanalyticsClient::setAllowIP(const SetAllowIPRequest &request) const
|
||||
OpenanalyticsClient::CloseProductAccountOutcome OpenanalyticsClient::closeProductAccount(const CloseProductAccountRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return SetAllowIPOutcome(endpointOutcome.error());
|
||||
return CloseProductAccountOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return SetAllowIPOutcome(SetAllowIPResult(outcome.result()));
|
||||
return CloseProductAccountOutcome(CloseProductAccountResult(outcome.result()));
|
||||
else
|
||||
return SetAllowIPOutcome(outcome.error());
|
||||
return CloseProductAccountOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void OpenanalyticsClient::setAllowIPAsync(const SetAllowIPRequest& request, const SetAllowIPAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
void OpenanalyticsClient::closeProductAccountAsync(const CloseProductAccountRequest& request, const CloseProductAccountAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, setAllowIP(request), context);
|
||||
handler(this, request, closeProductAccount(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
OpenanalyticsClient::SetAllowIPOutcomeCallable OpenanalyticsClient::setAllowIPCallable(const SetAllowIPRequest &request) const
|
||||
OpenanalyticsClient::CloseProductAccountOutcomeCallable OpenanalyticsClient::closeProductAccountCallable(const CloseProductAccountRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<SetAllowIPOutcome()>>(
|
||||
auto task = std::make_shared<std::packaged_task<CloseProductAccountOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->setAllowIP(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
OpenanalyticsClient::GetRegionStatusOutcome OpenanalyticsClient::getRegionStatus(const GetRegionStatusRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return GetRegionStatusOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return GetRegionStatusOutcome(GetRegionStatusResult(outcome.result()));
|
||||
else
|
||||
return GetRegionStatusOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void OpenanalyticsClient::getRegionStatusAsync(const GetRegionStatusRequest& request, const GetRegionStatusAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, getRegionStatus(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
OpenanalyticsClient::GetRegionStatusOutcomeCallable OpenanalyticsClient::getRegionStatusCallable(const GetRegionStatusRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<GetRegionStatusOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->getRegionStatus(request);
|
||||
return this->closeProductAccount(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
@@ -159,36 +123,36 @@ OpenanalyticsClient::DescribeRegionListOutcomeCallable OpenanalyticsClient::desc
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
OpenanalyticsClient::OpenProductAccountOutcome OpenanalyticsClient::openProductAccount(const OpenProductAccountRequest &request) const
|
||||
OpenanalyticsClient::GetAllowIPOutcome OpenanalyticsClient::getAllowIP(const GetAllowIPRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return OpenProductAccountOutcome(endpointOutcome.error());
|
||||
return GetAllowIPOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return OpenProductAccountOutcome(OpenProductAccountResult(outcome.result()));
|
||||
return GetAllowIPOutcome(GetAllowIPResult(outcome.result()));
|
||||
else
|
||||
return OpenProductAccountOutcome(outcome.error());
|
||||
return GetAllowIPOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void OpenanalyticsClient::openProductAccountAsync(const OpenProductAccountRequest& request, const OpenProductAccountAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
void OpenanalyticsClient::getAllowIPAsync(const GetAllowIPRequest& request, const GetAllowIPAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, openProductAccount(request), context);
|
||||
handler(this, request, getAllowIP(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
OpenanalyticsClient::OpenProductAccountOutcomeCallable OpenanalyticsClient::openProductAccountCallable(const OpenProductAccountRequest &request) const
|
||||
OpenanalyticsClient::GetAllowIPOutcomeCallable OpenanalyticsClient::getAllowIPCallable(const GetAllowIPRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<OpenProductAccountOutcome()>>(
|
||||
auto task = std::make_shared<std::packaged_task<GetAllowIPOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->openProductAccount(request);
|
||||
return this->getAllowIP(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
@@ -231,78 +195,6 @@ OpenanalyticsClient::GetEndPointByDomainOutcomeCallable OpenanalyticsClient::get
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
OpenanalyticsClient::CloseProductAccountOutcome OpenanalyticsClient::closeProductAccount(const CloseProductAccountRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return CloseProductAccountOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return CloseProductAccountOutcome(CloseProductAccountResult(outcome.result()));
|
||||
else
|
||||
return CloseProductAccountOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void OpenanalyticsClient::closeProductAccountAsync(const CloseProductAccountRequest& request, const CloseProductAccountAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, closeProductAccount(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
OpenanalyticsClient::CloseProductAccountOutcomeCallable OpenanalyticsClient::closeProductAccountCallable(const CloseProductAccountRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<CloseProductAccountOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->closeProductAccount(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
OpenanalyticsClient::GetAllowIPOutcome OpenanalyticsClient::getAllowIP(const GetAllowIPRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return GetAllowIPOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return GetAllowIPOutcome(GetAllowIPResult(outcome.result()));
|
||||
else
|
||||
return GetAllowIPOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void OpenanalyticsClient::getAllowIPAsync(const GetAllowIPRequest& request, const GetAllowIPAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, getAllowIP(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
OpenanalyticsClient::GetAllowIPOutcomeCallable OpenanalyticsClient::getAllowIPCallable(const GetAllowIPRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<GetAllowIPOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->getAllowIP(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
OpenanalyticsClient::GetProductStatusOutcome OpenanalyticsClient::getProductStatus(const GetProductStatusRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -339,6 +231,78 @@ OpenanalyticsClient::GetProductStatusOutcomeCallable OpenanalyticsClient::getPro
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
OpenanalyticsClient::GetRegionStatusOutcome OpenanalyticsClient::getRegionStatus(const GetRegionStatusRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return GetRegionStatusOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return GetRegionStatusOutcome(GetRegionStatusResult(outcome.result()));
|
||||
else
|
||||
return GetRegionStatusOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void OpenanalyticsClient::getRegionStatusAsync(const GetRegionStatusRequest& request, const GetRegionStatusAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, getRegionStatus(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
OpenanalyticsClient::GetRegionStatusOutcomeCallable OpenanalyticsClient::getRegionStatusCallable(const GetRegionStatusRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<GetRegionStatusOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->getRegionStatus(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
OpenanalyticsClient::OpenProductAccountOutcome OpenanalyticsClient::openProductAccount(const OpenProductAccountRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return OpenProductAccountOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return OpenProductAccountOutcome(OpenProductAccountResult(outcome.result()));
|
||||
else
|
||||
return OpenProductAccountOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void OpenanalyticsClient::openProductAccountAsync(const OpenProductAccountRequest& request, const OpenProductAccountAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, openProductAccount(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
OpenanalyticsClient::OpenProductAccountOutcomeCallable OpenanalyticsClient::openProductAccountCallable(const OpenProductAccountRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<OpenProductAccountOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->openProductAccount(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
OpenanalyticsClient::QueryEndPointListOutcome OpenanalyticsClient::queryEndPointList(const QueryEndPointListRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -375,3 +339,39 @@ OpenanalyticsClient::QueryEndPointListOutcomeCallable OpenanalyticsClient::query
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
OpenanalyticsClient::SetAllowIPOutcome OpenanalyticsClient::setAllowIP(const SetAllowIPRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return SetAllowIPOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return SetAllowIPOutcome(SetAllowIPResult(outcome.result()));
|
||||
else
|
||||
return SetAllowIPOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void OpenanalyticsClient::setAllowIPAsync(const SetAllowIPRequest& request, const SetAllowIPAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, setAllowIP(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
OpenanalyticsClient::SetAllowIPOutcomeCallable OpenanalyticsClient::setAllowIPCallable(const SetAllowIPRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<SetAllowIPOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->setAllowIP(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
|
||||
@@ -25,72 +25,6 @@ CloseProductAccountRequest::CloseProductAccountRequest() :
|
||||
CloseProductAccountRequest::~CloseProductAccountRequest()
|
||||
{}
|
||||
|
||||
long CloseProductAccountRequest::getCallerParentId()const
|
||||
{
|
||||
return callerParentId_;
|
||||
}
|
||||
|
||||
void CloseProductAccountRequest::setCallerParentId(long callerParentId)
|
||||
{
|
||||
callerParentId_ = callerParentId;
|
||||
setCoreParameter("CallerParentId", std::to_string(callerParentId));
|
||||
}
|
||||
|
||||
long CloseProductAccountRequest::getCallerBid()const
|
||||
{
|
||||
return callerBid_;
|
||||
}
|
||||
|
||||
void CloseProductAccountRequest::setCallerBid(long callerBid)
|
||||
{
|
||||
callerBid_ = callerBid;
|
||||
setCoreParameter("CallerBid", std::to_string(callerBid));
|
||||
}
|
||||
|
||||
std::string CloseProductAccountRequest::getCallerType()const
|
||||
{
|
||||
return callerType_;
|
||||
}
|
||||
|
||||
void CloseProductAccountRequest::setCallerType(const std::string& callerType)
|
||||
{
|
||||
callerType_ = callerType;
|
||||
setCoreParameter("CallerType", callerType);
|
||||
}
|
||||
|
||||
bool CloseProductAccountRequest::getAk_mfa_present()const
|
||||
{
|
||||
return ak_mfa_present_;
|
||||
}
|
||||
|
||||
void CloseProductAccountRequest::setAk_mfa_present(bool ak_mfa_present)
|
||||
{
|
||||
ak_mfa_present_ = ak_mfa_present;
|
||||
setCoreParameter("Ak_mfa_present", ak_mfa_present ? "true" : "false");
|
||||
}
|
||||
|
||||
std::string CloseProductAccountRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void CloseProductAccountRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setCoreParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
bool CloseProductAccountRequest::getSecurity_transport()const
|
||||
{
|
||||
return security_transport_;
|
||||
}
|
||||
|
||||
void CloseProductAccountRequest::setSecurity_transport(bool security_transport)
|
||||
{
|
||||
security_transport_ = security_transport;
|
||||
setCoreParameter("Security_transport", security_transport ? "true" : "false");
|
||||
}
|
||||
|
||||
std::string CloseProductAccountRequest::getRegionID()const
|
||||
{
|
||||
return regionID_;
|
||||
@@ -102,28 +36,6 @@ void CloseProductAccountRequest::setRegionID(const std::string& regionID)
|
||||
setCoreParameter("RegionID", regionID);
|
||||
}
|
||||
|
||||
std::string CloseProductAccountRequest::getRequestId()const
|
||||
{
|
||||
return requestId_;
|
||||
}
|
||||
|
||||
void CloseProductAccountRequest::setRequestId(const std::string& requestId)
|
||||
{
|
||||
requestId_ = requestId;
|
||||
setCoreParameter("RequestId", requestId);
|
||||
}
|
||||
|
||||
long CloseProductAccountRequest::getCallerUid()const
|
||||
{
|
||||
return callerUid_;
|
||||
}
|
||||
|
||||
void CloseProductAccountRequest::setCallerUid(long callerUid)
|
||||
{
|
||||
callerUid_ = callerUid;
|
||||
setCoreParameter("CallerUid", std::to_string(callerUid));
|
||||
}
|
||||
|
||||
std::string CloseProductAccountRequest::getProductCode()const
|
||||
{
|
||||
return productCode_;
|
||||
|
||||
@@ -35,13 +35,9 @@ CloseProductAccountResult::~CloseProductAccountResult()
|
||||
|
||||
void CloseProductAccountResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::CharReaderBuilder builder;
|
||||
Json::CharReader *reader = builder.newCharReader();
|
||||
Json::Value *val;
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
JSONCPP_STRING *errs;
|
||||
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
|
||||
value = *val;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["RegionId"].isNull())
|
||||
regionId_ = value["RegionId"].asString();
|
||||
|
||||
@@ -25,91 +25,3 @@ DescribeRegionListRequest::DescribeRegionListRequest() :
|
||||
DescribeRegionListRequest::~DescribeRegionListRequest()
|
||||
{}
|
||||
|
||||
bool DescribeRegionListRequest::getSecurity_transport()const
|
||||
{
|
||||
return security_transport_;
|
||||
}
|
||||
|
||||
void DescribeRegionListRequest::setSecurity_transport(bool security_transport)
|
||||
{
|
||||
security_transport_ = security_transport;
|
||||
setCoreParameter("Security_transport", security_transport ? "true" : "false");
|
||||
}
|
||||
|
||||
std::string DescribeRegionListRequest::getRequestId()const
|
||||
{
|
||||
return requestId_;
|
||||
}
|
||||
|
||||
void DescribeRegionListRequest::setRequestId(const std::string& requestId)
|
||||
{
|
||||
requestId_ = requestId;
|
||||
setCoreParameter("RequestId", requestId);
|
||||
}
|
||||
|
||||
long DescribeRegionListRequest::getCallerParentId()const
|
||||
{
|
||||
return callerParentId_;
|
||||
}
|
||||
|
||||
void DescribeRegionListRequest::setCallerParentId(long callerParentId)
|
||||
{
|
||||
callerParentId_ = callerParentId;
|
||||
setCoreParameter("CallerParentId", std::to_string(callerParentId));
|
||||
}
|
||||
|
||||
long DescribeRegionListRequest::getCallerBid()const
|
||||
{
|
||||
return callerBid_;
|
||||
}
|
||||
|
||||
void DescribeRegionListRequest::setCallerBid(long callerBid)
|
||||
{
|
||||
callerBid_ = callerBid;
|
||||
setCoreParameter("CallerBid", std::to_string(callerBid));
|
||||
}
|
||||
|
||||
std::string DescribeRegionListRequest::getCallerType()const
|
||||
{
|
||||
return callerType_;
|
||||
}
|
||||
|
||||
void DescribeRegionListRequest::setCallerType(const std::string& callerType)
|
||||
{
|
||||
callerType_ = callerType;
|
||||
setCoreParameter("CallerType", callerType);
|
||||
}
|
||||
|
||||
bool DescribeRegionListRequest::getAk_mfa_present()const
|
||||
{
|
||||
return ak_mfa_present_;
|
||||
}
|
||||
|
||||
void DescribeRegionListRequest::setAk_mfa_present(bool ak_mfa_present)
|
||||
{
|
||||
ak_mfa_present_ = ak_mfa_present;
|
||||
setCoreParameter("Ak_mfa_present", ak_mfa_present ? "true" : "false");
|
||||
}
|
||||
|
||||
long DescribeRegionListRequest::getCallerUid()const
|
||||
{
|
||||
return callerUid_;
|
||||
}
|
||||
|
||||
void DescribeRegionListRequest::setCallerUid(long callerUid)
|
||||
{
|
||||
callerUid_ = callerUid;
|
||||
setCoreParameter("CallerUid", std::to_string(callerUid));
|
||||
}
|
||||
|
||||
std::string DescribeRegionListRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void DescribeRegionListRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setCoreParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
|
||||
@@ -35,13 +35,9 @@ DescribeRegionListResult::~DescribeRegionListResult()
|
||||
|
||||
void DescribeRegionListResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::CharReaderBuilder builder;
|
||||
Json::CharReader *reader = builder.newCharReader();
|
||||
Json::Value *val;
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
JSONCPP_STRING *errs;
|
||||
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
|
||||
value = *val;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allRegionList = value["RegionList"]["RegionListItem"];
|
||||
for (auto value : allRegionList)
|
||||
|
||||
@@ -25,17 +25,6 @@ GetAllowIPRequest::GetAllowIPRequest() :
|
||||
GetAllowIPRequest::~GetAllowIPRequest()
|
||||
{}
|
||||
|
||||
bool GetAllowIPRequest::getSecurity_transport()const
|
||||
{
|
||||
return security_transport_;
|
||||
}
|
||||
|
||||
void GetAllowIPRequest::setSecurity_transport(bool security_transport)
|
||||
{
|
||||
security_transport_ = security_transport;
|
||||
setCoreParameter("Security_transport", security_transport ? "true" : "false");
|
||||
}
|
||||
|
||||
std::string GetAllowIPRequest::getRegionID()const
|
||||
{
|
||||
return regionID_;
|
||||
@@ -47,83 +36,6 @@ void GetAllowIPRequest::setRegionID(const std::string& regionID)
|
||||
setCoreParameter("RegionID", regionID);
|
||||
}
|
||||
|
||||
std::string GetAllowIPRequest::getRequestId()const
|
||||
{
|
||||
return requestId_;
|
||||
}
|
||||
|
||||
void GetAllowIPRequest::setRequestId(const std::string& requestId)
|
||||
{
|
||||
requestId_ = requestId;
|
||||
setCoreParameter("RequestId", requestId);
|
||||
}
|
||||
|
||||
long GetAllowIPRequest::getCallerParentId()const
|
||||
{
|
||||
return callerParentId_;
|
||||
}
|
||||
|
||||
void GetAllowIPRequest::setCallerParentId(long callerParentId)
|
||||
{
|
||||
callerParentId_ = callerParentId;
|
||||
setCoreParameter("CallerParentId", std::to_string(callerParentId));
|
||||
}
|
||||
|
||||
long GetAllowIPRequest::getCallerBid()const
|
||||
{
|
||||
return callerBid_;
|
||||
}
|
||||
|
||||
void GetAllowIPRequest::setCallerBid(long callerBid)
|
||||
{
|
||||
callerBid_ = callerBid;
|
||||
setCoreParameter("CallerBid", std::to_string(callerBid));
|
||||
}
|
||||
|
||||
std::string GetAllowIPRequest::getCallerType()const
|
||||
{
|
||||
return callerType_;
|
||||
}
|
||||
|
||||
void GetAllowIPRequest::setCallerType(const std::string& callerType)
|
||||
{
|
||||
callerType_ = callerType;
|
||||
setCoreParameter("CallerType", callerType);
|
||||
}
|
||||
|
||||
bool GetAllowIPRequest::getAk_mfa_present()const
|
||||
{
|
||||
return ak_mfa_present_;
|
||||
}
|
||||
|
||||
void GetAllowIPRequest::setAk_mfa_present(bool ak_mfa_present)
|
||||
{
|
||||
ak_mfa_present_ = ak_mfa_present;
|
||||
setCoreParameter("Ak_mfa_present", ak_mfa_present ? "true" : "false");
|
||||
}
|
||||
|
||||
long GetAllowIPRequest::getCallerUid()const
|
||||
{
|
||||
return callerUid_;
|
||||
}
|
||||
|
||||
void GetAllowIPRequest::setCallerUid(long callerUid)
|
||||
{
|
||||
callerUid_ = callerUid;
|
||||
setCoreParameter("CallerUid", std::to_string(callerUid));
|
||||
}
|
||||
|
||||
std::string GetAllowIPRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void GetAllowIPRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setCoreParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
long GetAllowIPRequest::getUserID()const
|
||||
{
|
||||
return userID_;
|
||||
|
||||
@@ -35,13 +35,9 @@ GetAllowIPResult::~GetAllowIPResult()
|
||||
|
||||
void GetAllowIPResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::CharReaderBuilder builder;
|
||||
Json::CharReader *reader = builder.newCharReader();
|
||||
Json::Value *val;
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
JSONCPP_STRING *errs;
|
||||
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
|
||||
value = *val;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["RegionId"].isNull())
|
||||
regionId_ = value["RegionId"].asString();
|
||||
|
||||
@@ -25,17 +25,6 @@ GetEndPointByDomainRequest::GetEndPointByDomainRequest() :
|
||||
GetEndPointByDomainRequest::~GetEndPointByDomainRequest()
|
||||
{}
|
||||
|
||||
bool GetEndPointByDomainRequest::getSecurity_transport()const
|
||||
{
|
||||
return security_transport_;
|
||||
}
|
||||
|
||||
void GetEndPointByDomainRequest::setSecurity_transport(bool security_transport)
|
||||
{
|
||||
security_transport_ = security_transport;
|
||||
setCoreParameter("Security_transport", security_transport ? "true" : "false");
|
||||
}
|
||||
|
||||
std::string GetEndPointByDomainRequest::getRegionID()const
|
||||
{
|
||||
return regionID_;
|
||||
@@ -47,83 +36,6 @@ void GetEndPointByDomainRequest::setRegionID(const std::string& regionID)
|
||||
setCoreParameter("RegionID", regionID);
|
||||
}
|
||||
|
||||
std::string GetEndPointByDomainRequest::getRequestId()const
|
||||
{
|
||||
return requestId_;
|
||||
}
|
||||
|
||||
void GetEndPointByDomainRequest::setRequestId(const std::string& requestId)
|
||||
{
|
||||
requestId_ = requestId;
|
||||
setCoreParameter("RequestId", requestId);
|
||||
}
|
||||
|
||||
long GetEndPointByDomainRequest::getCallerParentId()const
|
||||
{
|
||||
return callerParentId_;
|
||||
}
|
||||
|
||||
void GetEndPointByDomainRequest::setCallerParentId(long callerParentId)
|
||||
{
|
||||
callerParentId_ = callerParentId;
|
||||
setCoreParameter("CallerParentId", std::to_string(callerParentId));
|
||||
}
|
||||
|
||||
long GetEndPointByDomainRequest::getCallerBid()const
|
||||
{
|
||||
return callerBid_;
|
||||
}
|
||||
|
||||
void GetEndPointByDomainRequest::setCallerBid(long callerBid)
|
||||
{
|
||||
callerBid_ = callerBid;
|
||||
setCoreParameter("CallerBid", std::to_string(callerBid));
|
||||
}
|
||||
|
||||
std::string GetEndPointByDomainRequest::getCallerType()const
|
||||
{
|
||||
return callerType_;
|
||||
}
|
||||
|
||||
void GetEndPointByDomainRequest::setCallerType(const std::string& callerType)
|
||||
{
|
||||
callerType_ = callerType;
|
||||
setCoreParameter("CallerType", callerType);
|
||||
}
|
||||
|
||||
bool GetEndPointByDomainRequest::getAk_mfa_present()const
|
||||
{
|
||||
return ak_mfa_present_;
|
||||
}
|
||||
|
||||
void GetEndPointByDomainRequest::setAk_mfa_present(bool ak_mfa_present)
|
||||
{
|
||||
ak_mfa_present_ = ak_mfa_present;
|
||||
setCoreParameter("Ak_mfa_present", ak_mfa_present ? "true" : "false");
|
||||
}
|
||||
|
||||
long GetEndPointByDomainRequest::getCallerUid()const
|
||||
{
|
||||
return callerUid_;
|
||||
}
|
||||
|
||||
void GetEndPointByDomainRequest::setCallerUid(long callerUid)
|
||||
{
|
||||
callerUid_ = callerUid;
|
||||
setCoreParameter("CallerUid", std::to_string(callerUid));
|
||||
}
|
||||
|
||||
std::string GetEndPointByDomainRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void GetEndPointByDomainRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setCoreParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
long GetEndPointByDomainRequest::getUserID()const
|
||||
{
|
||||
return userID_;
|
||||
|
||||
@@ -35,13 +35,9 @@ GetEndPointByDomainResult::~GetEndPointByDomainResult()
|
||||
|
||||
void GetEndPointByDomainResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::CharReaderBuilder builder;
|
||||
Json::CharReader *reader = builder.newCharReader();
|
||||
Json::Value *val;
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
JSONCPP_STRING *errs;
|
||||
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
|
||||
value = *val;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto endPointInfoNode = value["EndPointInfo"];
|
||||
if(!endPointInfoNode["endPointID"].isNull())
|
||||
|
||||
@@ -25,72 +25,6 @@ GetProductStatusRequest::GetProductStatusRequest() :
|
||||
GetProductStatusRequest::~GetProductStatusRequest()
|
||||
{}
|
||||
|
||||
long GetProductStatusRequest::getCallerParentId()const
|
||||
{
|
||||
return callerParentId_;
|
||||
}
|
||||
|
||||
void GetProductStatusRequest::setCallerParentId(long callerParentId)
|
||||
{
|
||||
callerParentId_ = callerParentId;
|
||||
setCoreParameter("CallerParentId", std::to_string(callerParentId));
|
||||
}
|
||||
|
||||
long GetProductStatusRequest::getCallerBid()const
|
||||
{
|
||||
return callerBid_;
|
||||
}
|
||||
|
||||
void GetProductStatusRequest::setCallerBid(long callerBid)
|
||||
{
|
||||
callerBid_ = callerBid;
|
||||
setCoreParameter("CallerBid", std::to_string(callerBid));
|
||||
}
|
||||
|
||||
std::string GetProductStatusRequest::getCallerType()const
|
||||
{
|
||||
return callerType_;
|
||||
}
|
||||
|
||||
void GetProductStatusRequest::setCallerType(const std::string& callerType)
|
||||
{
|
||||
callerType_ = callerType;
|
||||
setCoreParameter("CallerType", callerType);
|
||||
}
|
||||
|
||||
bool GetProductStatusRequest::getAk_mfa_present()const
|
||||
{
|
||||
return ak_mfa_present_;
|
||||
}
|
||||
|
||||
void GetProductStatusRequest::setAk_mfa_present(bool ak_mfa_present)
|
||||
{
|
||||
ak_mfa_present_ = ak_mfa_present;
|
||||
setCoreParameter("Ak_mfa_present", ak_mfa_present ? "true" : "false");
|
||||
}
|
||||
|
||||
std::string GetProductStatusRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void GetProductStatusRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setCoreParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
bool GetProductStatusRequest::getSecurity_transport()const
|
||||
{
|
||||
return security_transport_;
|
||||
}
|
||||
|
||||
void GetProductStatusRequest::setSecurity_transport(bool security_transport)
|
||||
{
|
||||
security_transport_ = security_transport;
|
||||
setCoreParameter("Security_transport", security_transport ? "true" : "false");
|
||||
}
|
||||
|
||||
std::string GetProductStatusRequest::getRegionID()const
|
||||
{
|
||||
return regionID_;
|
||||
@@ -102,28 +36,6 @@ void GetProductStatusRequest::setRegionID(const std::string& regionID)
|
||||
setCoreParameter("RegionID", regionID);
|
||||
}
|
||||
|
||||
std::string GetProductStatusRequest::getRequestId()const
|
||||
{
|
||||
return requestId_;
|
||||
}
|
||||
|
||||
void GetProductStatusRequest::setRequestId(const std::string& requestId)
|
||||
{
|
||||
requestId_ = requestId;
|
||||
setCoreParameter("RequestId", requestId);
|
||||
}
|
||||
|
||||
long GetProductStatusRequest::getCallerUid()const
|
||||
{
|
||||
return callerUid_;
|
||||
}
|
||||
|
||||
void GetProductStatusRequest::setCallerUid(long callerUid)
|
||||
{
|
||||
callerUid_ = callerUid;
|
||||
setCoreParameter("CallerUid", std::to_string(callerUid));
|
||||
}
|
||||
|
||||
std::string GetProductStatusRequest::getProductCode()const
|
||||
{
|
||||
return productCode_;
|
||||
|
||||
@@ -35,13 +35,9 @@ GetProductStatusResult::~GetProductStatusResult()
|
||||
|
||||
void GetProductStatusResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::CharReaderBuilder builder;
|
||||
Json::CharReader *reader = builder.newCharReader();
|
||||
Json::Value *val;
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
JSONCPP_STRING *errs;
|
||||
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
|
||||
value = *val;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["RegionId"].isNull())
|
||||
regionId_ = value["RegionId"].asString();
|
||||
|
||||
@@ -25,17 +25,6 @@ GetRegionStatusRequest::GetRegionStatusRequest() :
|
||||
GetRegionStatusRequest::~GetRegionStatusRequest()
|
||||
{}
|
||||
|
||||
bool GetRegionStatusRequest::getSecurity_transport()const
|
||||
{
|
||||
return security_transport_;
|
||||
}
|
||||
|
||||
void GetRegionStatusRequest::setSecurity_transport(bool security_transport)
|
||||
{
|
||||
security_transport_ = security_transport;
|
||||
setCoreParameter("Security_transport", security_transport ? "true" : "false");
|
||||
}
|
||||
|
||||
std::string GetRegionStatusRequest::getRegionID()const
|
||||
{
|
||||
return regionID_;
|
||||
@@ -47,83 +36,6 @@ void GetRegionStatusRequest::setRegionID(const std::string& regionID)
|
||||
setCoreParameter("RegionID", regionID);
|
||||
}
|
||||
|
||||
std::string GetRegionStatusRequest::getRequestId()const
|
||||
{
|
||||
return requestId_;
|
||||
}
|
||||
|
||||
void GetRegionStatusRequest::setRequestId(const std::string& requestId)
|
||||
{
|
||||
requestId_ = requestId;
|
||||
setCoreParameter("RequestId", requestId);
|
||||
}
|
||||
|
||||
long GetRegionStatusRequest::getCallerParentId()const
|
||||
{
|
||||
return callerParentId_;
|
||||
}
|
||||
|
||||
void GetRegionStatusRequest::setCallerParentId(long callerParentId)
|
||||
{
|
||||
callerParentId_ = callerParentId;
|
||||
setCoreParameter("CallerParentId", std::to_string(callerParentId));
|
||||
}
|
||||
|
||||
long GetRegionStatusRequest::getCallerBid()const
|
||||
{
|
||||
return callerBid_;
|
||||
}
|
||||
|
||||
void GetRegionStatusRequest::setCallerBid(long callerBid)
|
||||
{
|
||||
callerBid_ = callerBid;
|
||||
setCoreParameter("CallerBid", std::to_string(callerBid));
|
||||
}
|
||||
|
||||
std::string GetRegionStatusRequest::getCallerType()const
|
||||
{
|
||||
return callerType_;
|
||||
}
|
||||
|
||||
void GetRegionStatusRequest::setCallerType(const std::string& callerType)
|
||||
{
|
||||
callerType_ = callerType;
|
||||
setCoreParameter("CallerType", callerType);
|
||||
}
|
||||
|
||||
bool GetRegionStatusRequest::getAk_mfa_present()const
|
||||
{
|
||||
return ak_mfa_present_;
|
||||
}
|
||||
|
||||
void GetRegionStatusRequest::setAk_mfa_present(bool ak_mfa_present)
|
||||
{
|
||||
ak_mfa_present_ = ak_mfa_present;
|
||||
setCoreParameter("Ak_mfa_present", ak_mfa_present ? "true" : "false");
|
||||
}
|
||||
|
||||
long GetRegionStatusRequest::getCallerUid()const
|
||||
{
|
||||
return callerUid_;
|
||||
}
|
||||
|
||||
void GetRegionStatusRequest::setCallerUid(long callerUid)
|
||||
{
|
||||
callerUid_ = callerUid;
|
||||
setCoreParameter("CallerUid", std::to_string(callerUid));
|
||||
}
|
||||
|
||||
std::string GetRegionStatusRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void GetRegionStatusRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setCoreParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
long GetRegionStatusRequest::getTargetUid()const
|
||||
{
|
||||
return targetUid_;
|
||||
|
||||
@@ -35,13 +35,9 @@ GetRegionStatusResult::~GetRegionStatusResult()
|
||||
|
||||
void GetRegionStatusResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::CharReaderBuilder builder;
|
||||
Json::CharReader *reader = builder.newCharReader();
|
||||
Json::Value *val;
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
JSONCPP_STRING *errs;
|
||||
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
|
||||
value = *val;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["RegionId"].isNull())
|
||||
regionId_ = value["RegionId"].asString();
|
||||
|
||||
@@ -25,72 +25,6 @@ OpenProductAccountRequest::OpenProductAccountRequest() :
|
||||
OpenProductAccountRequest::~OpenProductAccountRequest()
|
||||
{}
|
||||
|
||||
long OpenProductAccountRequest::getCallerParentId()const
|
||||
{
|
||||
return callerParentId_;
|
||||
}
|
||||
|
||||
void OpenProductAccountRequest::setCallerParentId(long callerParentId)
|
||||
{
|
||||
callerParentId_ = callerParentId;
|
||||
setCoreParameter("CallerParentId", std::to_string(callerParentId));
|
||||
}
|
||||
|
||||
long OpenProductAccountRequest::getCallerBid()const
|
||||
{
|
||||
return callerBid_;
|
||||
}
|
||||
|
||||
void OpenProductAccountRequest::setCallerBid(long callerBid)
|
||||
{
|
||||
callerBid_ = callerBid;
|
||||
setCoreParameter("CallerBid", std::to_string(callerBid));
|
||||
}
|
||||
|
||||
std::string OpenProductAccountRequest::getCallerType()const
|
||||
{
|
||||
return callerType_;
|
||||
}
|
||||
|
||||
void OpenProductAccountRequest::setCallerType(const std::string& callerType)
|
||||
{
|
||||
callerType_ = callerType;
|
||||
setCoreParameter("CallerType", callerType);
|
||||
}
|
||||
|
||||
bool OpenProductAccountRequest::getAk_mfa_present()const
|
||||
{
|
||||
return ak_mfa_present_;
|
||||
}
|
||||
|
||||
void OpenProductAccountRequest::setAk_mfa_present(bool ak_mfa_present)
|
||||
{
|
||||
ak_mfa_present_ = ak_mfa_present;
|
||||
setCoreParameter("Ak_mfa_present", ak_mfa_present ? "true" : "false");
|
||||
}
|
||||
|
||||
std::string OpenProductAccountRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void OpenProductAccountRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setCoreParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
bool OpenProductAccountRequest::getSecurity_transport()const
|
||||
{
|
||||
return security_transport_;
|
||||
}
|
||||
|
||||
void OpenProductAccountRequest::setSecurity_transport(bool security_transport)
|
||||
{
|
||||
security_transport_ = security_transport;
|
||||
setCoreParameter("Security_transport", security_transport ? "true" : "false");
|
||||
}
|
||||
|
||||
std::string OpenProductAccountRequest::getRegionID()const
|
||||
{
|
||||
return regionID_;
|
||||
@@ -102,28 +36,6 @@ void OpenProductAccountRequest::setRegionID(const std::string& regionID)
|
||||
setCoreParameter("RegionID", regionID);
|
||||
}
|
||||
|
||||
std::string OpenProductAccountRequest::getRequestId()const
|
||||
{
|
||||
return requestId_;
|
||||
}
|
||||
|
||||
void OpenProductAccountRequest::setRequestId(const std::string& requestId)
|
||||
{
|
||||
requestId_ = requestId;
|
||||
setCoreParameter("RequestId", requestId);
|
||||
}
|
||||
|
||||
long OpenProductAccountRequest::getCallerUid()const
|
||||
{
|
||||
return callerUid_;
|
||||
}
|
||||
|
||||
void OpenProductAccountRequest::setCallerUid(long callerUid)
|
||||
{
|
||||
callerUid_ = callerUid;
|
||||
setCoreParameter("CallerUid", std::to_string(callerUid));
|
||||
}
|
||||
|
||||
std::string OpenProductAccountRequest::getProductCode()const
|
||||
{
|
||||
return productCode_;
|
||||
|
||||
@@ -35,13 +35,9 @@ OpenProductAccountResult::~OpenProductAccountResult()
|
||||
|
||||
void OpenProductAccountResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::CharReaderBuilder builder;
|
||||
Json::CharReader *reader = builder.newCharReader();
|
||||
Json::Value *val;
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
JSONCPP_STRING *errs;
|
||||
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
|
||||
value = *val;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["RegionId"].isNull())
|
||||
regionId_ = value["RegionId"].asString();
|
||||
|
||||
@@ -25,17 +25,6 @@ QueryEndPointListRequest::QueryEndPointListRequest() :
|
||||
QueryEndPointListRequest::~QueryEndPointListRequest()
|
||||
{}
|
||||
|
||||
bool QueryEndPointListRequest::getSecurity_transport()const
|
||||
{
|
||||
return security_transport_;
|
||||
}
|
||||
|
||||
void QueryEndPointListRequest::setSecurity_transport(bool security_transport)
|
||||
{
|
||||
security_transport_ = security_transport;
|
||||
setCoreParameter("Security_transport", security_transport ? "true" : "false");
|
||||
}
|
||||
|
||||
std::string QueryEndPointListRequest::getRegionID()const
|
||||
{
|
||||
return regionID_;
|
||||
@@ -47,83 +36,6 @@ void QueryEndPointListRequest::setRegionID(const std::string& regionID)
|
||||
setCoreParameter("RegionID", regionID);
|
||||
}
|
||||
|
||||
std::string QueryEndPointListRequest::getRequestId()const
|
||||
{
|
||||
return requestId_;
|
||||
}
|
||||
|
||||
void QueryEndPointListRequest::setRequestId(const std::string& requestId)
|
||||
{
|
||||
requestId_ = requestId;
|
||||
setCoreParameter("RequestId", requestId);
|
||||
}
|
||||
|
||||
long QueryEndPointListRequest::getCallerParentId()const
|
||||
{
|
||||
return callerParentId_;
|
||||
}
|
||||
|
||||
void QueryEndPointListRequest::setCallerParentId(long callerParentId)
|
||||
{
|
||||
callerParentId_ = callerParentId;
|
||||
setCoreParameter("CallerParentId", std::to_string(callerParentId));
|
||||
}
|
||||
|
||||
long QueryEndPointListRequest::getCallerBid()const
|
||||
{
|
||||
return callerBid_;
|
||||
}
|
||||
|
||||
void QueryEndPointListRequest::setCallerBid(long callerBid)
|
||||
{
|
||||
callerBid_ = callerBid;
|
||||
setCoreParameter("CallerBid", std::to_string(callerBid));
|
||||
}
|
||||
|
||||
std::string QueryEndPointListRequest::getCallerType()const
|
||||
{
|
||||
return callerType_;
|
||||
}
|
||||
|
||||
void QueryEndPointListRequest::setCallerType(const std::string& callerType)
|
||||
{
|
||||
callerType_ = callerType;
|
||||
setCoreParameter("CallerType", callerType);
|
||||
}
|
||||
|
||||
bool QueryEndPointListRequest::getAk_mfa_present()const
|
||||
{
|
||||
return ak_mfa_present_;
|
||||
}
|
||||
|
||||
void QueryEndPointListRequest::setAk_mfa_present(bool ak_mfa_present)
|
||||
{
|
||||
ak_mfa_present_ = ak_mfa_present;
|
||||
setCoreParameter("Ak_mfa_present", ak_mfa_present ? "true" : "false");
|
||||
}
|
||||
|
||||
long QueryEndPointListRequest::getCallerUid()const
|
||||
{
|
||||
return callerUid_;
|
||||
}
|
||||
|
||||
void QueryEndPointListRequest::setCallerUid(long callerUid)
|
||||
{
|
||||
callerUid_ = callerUid;
|
||||
setCoreParameter("CallerUid", std::to_string(callerUid));
|
||||
}
|
||||
|
||||
std::string QueryEndPointListRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void QueryEndPointListRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setCoreParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
long QueryEndPointListRequest::getUserID()const
|
||||
{
|
||||
return userID_;
|
||||
|
||||
@@ -35,13 +35,9 @@ QueryEndPointListResult::~QueryEndPointListResult()
|
||||
|
||||
void QueryEndPointListResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::CharReaderBuilder builder;
|
||||
Json::CharReader *reader = builder.newCharReader();
|
||||
Json::Value *val;
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
JSONCPP_STRING *errs;
|
||||
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
|
||||
value = *val;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allEndPointList = value["EndPointList"]["EndPointListItem"];
|
||||
for (auto value : allEndPointList)
|
||||
|
||||
@@ -25,72 +25,6 @@ SetAllowIPRequest::SetAllowIPRequest() :
|
||||
SetAllowIPRequest::~SetAllowIPRequest()
|
||||
{}
|
||||
|
||||
long SetAllowIPRequest::getCallerParentId()const
|
||||
{
|
||||
return callerParentId_;
|
||||
}
|
||||
|
||||
void SetAllowIPRequest::setCallerParentId(long callerParentId)
|
||||
{
|
||||
callerParentId_ = callerParentId;
|
||||
setCoreParameter("CallerParentId", std::to_string(callerParentId));
|
||||
}
|
||||
|
||||
long SetAllowIPRequest::getCallerBid()const
|
||||
{
|
||||
return callerBid_;
|
||||
}
|
||||
|
||||
void SetAllowIPRequest::setCallerBid(long callerBid)
|
||||
{
|
||||
callerBid_ = callerBid;
|
||||
setCoreParameter("CallerBid", std::to_string(callerBid));
|
||||
}
|
||||
|
||||
std::string SetAllowIPRequest::getCallerType()const
|
||||
{
|
||||
return callerType_;
|
||||
}
|
||||
|
||||
void SetAllowIPRequest::setCallerType(const std::string& callerType)
|
||||
{
|
||||
callerType_ = callerType;
|
||||
setCoreParameter("CallerType", callerType);
|
||||
}
|
||||
|
||||
bool SetAllowIPRequest::getAk_mfa_present()const
|
||||
{
|
||||
return ak_mfa_present_;
|
||||
}
|
||||
|
||||
void SetAllowIPRequest::setAk_mfa_present(bool ak_mfa_present)
|
||||
{
|
||||
ak_mfa_present_ = ak_mfa_present;
|
||||
setCoreParameter("Ak_mfa_present", ak_mfa_present ? "true" : "false");
|
||||
}
|
||||
|
||||
std::string SetAllowIPRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void SetAllowIPRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setCoreParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
bool SetAllowIPRequest::getSecurity_transport()const
|
||||
{
|
||||
return security_transport_;
|
||||
}
|
||||
|
||||
void SetAllowIPRequest::setSecurity_transport(bool security_transport)
|
||||
{
|
||||
security_transport_ = security_transport;
|
||||
setCoreParameter("Security_transport", security_transport ? "true" : "false");
|
||||
}
|
||||
|
||||
std::string SetAllowIPRequest::getRegionID()const
|
||||
{
|
||||
return regionID_;
|
||||
@@ -102,28 +36,6 @@ void SetAllowIPRequest::setRegionID(const std::string& regionID)
|
||||
setCoreParameter("RegionID", regionID);
|
||||
}
|
||||
|
||||
std::string SetAllowIPRequest::getRequestId()const
|
||||
{
|
||||
return requestId_;
|
||||
}
|
||||
|
||||
void SetAllowIPRequest::setRequestId(const std::string& requestId)
|
||||
{
|
||||
requestId_ = requestId;
|
||||
setCoreParameter("RequestId", requestId);
|
||||
}
|
||||
|
||||
long SetAllowIPRequest::getCallerUid()const
|
||||
{
|
||||
return callerUid_;
|
||||
}
|
||||
|
||||
void SetAllowIPRequest::setCallerUid(long callerUid)
|
||||
{
|
||||
callerUid_ = callerUid;
|
||||
setCoreParameter("CallerUid", std::to_string(callerUid));
|
||||
}
|
||||
|
||||
long SetAllowIPRequest::getUserID()const
|
||||
{
|
||||
return userID_;
|
||||
|
||||
@@ -35,13 +35,9 @@ SetAllowIPResult::~SetAllowIPResult()
|
||||
|
||||
void SetAllowIPResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::CharReaderBuilder builder;
|
||||
Json::CharReader *reader = builder.newCharReader();
|
||||
Json::Value *val;
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
JSONCPP_STRING *errs;
|
||||
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
|
||||
value = *val;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["RegionId"].isNull())
|
||||
regionId_ = value["RegionId"].asString();
|
||||
|
||||
Reference in New Issue
Block a user