OPENANALYTICS SDK Auto Released By shenshi,Version:1.34.31
Signed-off-by: haowei.yao <haowei.yao@alibaba-inc.com>
This commit is contained in:
377
openanalytics/src/OpenanalyticsClient.cc
Normal file
377
openanalytics/src/OpenanalyticsClient.cc
Normal file
@@ -0,0 +1,377 @@
|
||||
/*
|
||||
* 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/openanalytics/OpenanalyticsClient.h>
|
||||
#include <alibabacloud/core/SimpleCredentialsProvider.h>
|
||||
|
||||
using namespace AlibabaCloud;
|
||||
using namespace AlibabaCloud::Location;
|
||||
using namespace AlibabaCloud::Openanalytics;
|
||||
using namespace AlibabaCloud::Openanalytics::Model;
|
||||
|
||||
namespace
|
||||
{
|
||||
const std::string SERVICE_NAME = "openanalytics";
|
||||
}
|
||||
|
||||
OpenanalyticsClient::OpenanalyticsClient(const Credentials &credentials, const ClientConfiguration &configuration) :
|
||||
RpcServiceClient(SERVICE_NAME, std::make_shared<SimpleCredentialsProvider>(credentials), configuration)
|
||||
{
|
||||
auto locationClient = std::make_shared<LocationClient>(credentials, configuration);
|
||||
endpointProvider_ = std::make_shared<EndpointProvider>(locationClient, configuration.regionId(), SERVICE_NAME, "openanalytics");
|
||||
}
|
||||
|
||||
OpenanalyticsClient::OpenanalyticsClient(const std::shared_ptr<CredentialsProvider>& credentialsProvider, const ClientConfiguration & configuration) :
|
||||
RpcServiceClient(SERVICE_NAME, credentialsProvider, configuration)
|
||||
{
|
||||
auto locationClient = std::make_shared<LocationClient>(credentialsProvider, configuration);
|
||||
endpointProvider_ = std::make_shared<EndpointProvider>(locationClient, configuration.regionId(), SERVICE_NAME, "openanalytics");
|
||||
}
|
||||
|
||||
OpenanalyticsClient::OpenanalyticsClient(const std::string & accessKeyId, const std::string & accessKeySecret, const ClientConfiguration & configuration) :
|
||||
RpcServiceClient(SERVICE_NAME, std::make_shared<SimpleCredentialsProvider>(accessKeyId, accessKeySecret), configuration)
|
||||
{
|
||||
auto locationClient = std::make_shared<LocationClient>(accessKeyId, accessKeySecret, configuration);
|
||||
endpointProvider_ = std::make_shared<EndpointProvider>(locationClient, configuration.regionId(), SERVICE_NAME, "openanalytics");
|
||||
}
|
||||
|
||||
OpenanalyticsClient::~OpenanalyticsClient()
|
||||
{}
|
||||
|
||||
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();
|
||||
}
|
||||
|
||||
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::DescribeRegionListOutcome OpenanalyticsClient::describeRegionList(const DescribeRegionListRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return DescribeRegionListOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return DescribeRegionListOutcome(DescribeRegionListResult(outcome.result()));
|
||||
else
|
||||
return DescribeRegionListOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void OpenanalyticsClient::describeRegionListAsync(const DescribeRegionListRequest& request, const DescribeRegionListAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, describeRegionList(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
OpenanalyticsClient::DescribeRegionListOutcomeCallable OpenanalyticsClient::describeRegionListCallable(const DescribeRegionListRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<DescribeRegionListOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->describeRegionList(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::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::GetEndPointByDomainOutcome OpenanalyticsClient::getEndPointByDomain(const GetEndPointByDomainRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return GetEndPointByDomainOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return GetEndPointByDomainOutcome(GetEndPointByDomainResult(outcome.result()));
|
||||
else
|
||||
return GetEndPointByDomainOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void OpenanalyticsClient::getEndPointByDomainAsync(const GetEndPointByDomainRequest& request, const GetEndPointByDomainAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, getEndPointByDomain(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
OpenanalyticsClient::GetEndPointByDomainOutcomeCallable OpenanalyticsClient::getEndPointByDomainCallable(const GetEndPointByDomainRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<GetEndPointByDomainOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->getEndPointByDomain(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();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return GetProductStatusOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return GetProductStatusOutcome(GetProductStatusResult(outcome.result()));
|
||||
else
|
||||
return GetProductStatusOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void OpenanalyticsClient::getProductStatusAsync(const GetProductStatusRequest& request, const GetProductStatusAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, getProductStatus(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
OpenanalyticsClient::GetProductStatusOutcomeCallable OpenanalyticsClient::getProductStatusCallable(const GetProductStatusRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<GetProductStatusOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->getProductStatus(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
OpenanalyticsClient::QueryEndPointListOutcome OpenanalyticsClient::queryEndPointList(const QueryEndPointListRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return QueryEndPointListOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return QueryEndPointListOutcome(QueryEndPointListResult(outcome.result()));
|
||||
else
|
||||
return QueryEndPointListOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void OpenanalyticsClient::queryEndPointListAsync(const QueryEndPointListRequest& request, const QueryEndPointListAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, queryEndPointList(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
OpenanalyticsClient::QueryEndPointListOutcomeCallable OpenanalyticsClient::queryEndPointListCallable(const QueryEndPointListRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<QueryEndPointListOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->queryEndPointList(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
170
openanalytics/src/model/CloseProductAccountRequest.cc
Normal file
170
openanalytics/src/model/CloseProductAccountRequest.cc
Normal file
@@ -0,0 +1,170 @@
|
||||
/*
|
||||
* 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/openanalytics/model/CloseProductAccountRequest.h>
|
||||
|
||||
using AlibabaCloud::Openanalytics::Model::CloseProductAccountRequest;
|
||||
|
||||
CloseProductAccountRequest::CloseProductAccountRequest() :
|
||||
RpcServiceRequest("openanalytics", "2018-03-01", "CloseProductAccount")
|
||||
{}
|
||||
|
||||
CloseProductAccountRequest::~CloseProductAccountRequest()
|
||||
{}
|
||||
|
||||
long CloseProductAccountRequest::getCallerParentId()const
|
||||
{
|
||||
return callerParentId_;
|
||||
}
|
||||
|
||||
void CloseProductAccountRequest::setCallerParentId(long callerParentId)
|
||||
{
|
||||
callerParentId_ = callerParentId;
|
||||
setParameter("CallerParentId", std::to_string(callerParentId));
|
||||
}
|
||||
|
||||
long CloseProductAccountRequest::getCallerBid()const
|
||||
{
|
||||
return callerBid_;
|
||||
}
|
||||
|
||||
void CloseProductAccountRequest::setCallerBid(long callerBid)
|
||||
{
|
||||
callerBid_ = callerBid;
|
||||
setParameter("CallerBid", std::to_string(callerBid));
|
||||
}
|
||||
|
||||
std::string CloseProductAccountRequest::getCallerType()const
|
||||
{
|
||||
return callerType_;
|
||||
}
|
||||
|
||||
void CloseProductAccountRequest::setCallerType(const std::string& callerType)
|
||||
{
|
||||
callerType_ = callerType;
|
||||
setParameter("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;
|
||||
setParameter("Ak_mfa_present", std::to_string(ak_mfa_present));
|
||||
}
|
||||
|
||||
std::string CloseProductAccountRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void CloseProductAccountRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
bool CloseProductAccountRequest::getSecurity_transport()const
|
||||
{
|
||||
return security_transport_;
|
||||
}
|
||||
|
||||
void CloseProductAccountRequest::setSecurity_transport(bool security_transport)
|
||||
{
|
||||
security_transport_ = security_transport;
|
||||
setParameter("Security_transport", std::to_string(security_transport));
|
||||
}
|
||||
|
||||
std::string CloseProductAccountRequest::getRegionID()const
|
||||
{
|
||||
return regionID_;
|
||||
}
|
||||
|
||||
void CloseProductAccountRequest::setRegionID(const std::string& regionID)
|
||||
{
|
||||
regionID_ = regionID;
|
||||
setParameter("RegionID", regionID);
|
||||
}
|
||||
|
||||
std::string CloseProductAccountRequest::getRequestId()const
|
||||
{
|
||||
return requestId_;
|
||||
}
|
||||
|
||||
void CloseProductAccountRequest::setRequestId(const std::string& requestId)
|
||||
{
|
||||
requestId_ = requestId;
|
||||
setParameter("RequestId", requestId);
|
||||
}
|
||||
|
||||
long CloseProductAccountRequest::getCallerUid()const
|
||||
{
|
||||
return callerUid_;
|
||||
}
|
||||
|
||||
void CloseProductAccountRequest::setCallerUid(long callerUid)
|
||||
{
|
||||
callerUid_ = callerUid;
|
||||
setParameter("CallerUid", std::to_string(callerUid));
|
||||
}
|
||||
|
||||
std::string CloseProductAccountRequest::getProductCode()const
|
||||
{
|
||||
return productCode_;
|
||||
}
|
||||
|
||||
void CloseProductAccountRequest::setProductCode(const std::string& productCode)
|
||||
{
|
||||
productCode_ = productCode;
|
||||
setParameter("ProductCode", productCode);
|
||||
}
|
||||
|
||||
std::string CloseProductAccountRequest::getProductAccessKey()const
|
||||
{
|
||||
return productAccessKey_;
|
||||
}
|
||||
|
||||
void CloseProductAccountRequest::setProductAccessKey(const std::string& productAccessKey)
|
||||
{
|
||||
productAccessKey_ = productAccessKey;
|
||||
setParameter("ProductAccessKey", productAccessKey);
|
||||
}
|
||||
|
||||
std::string CloseProductAccountRequest::getTargetUid()const
|
||||
{
|
||||
return targetUid_;
|
||||
}
|
||||
|
||||
void CloseProductAccountRequest::setTargetUid(const std::string& targetUid)
|
||||
{
|
||||
targetUid_ = targetUid;
|
||||
setParameter("TargetUid", targetUid);
|
||||
}
|
||||
|
||||
std::string CloseProductAccountRequest::getTargetArnRole()const
|
||||
{
|
||||
return targetArnRole_;
|
||||
}
|
||||
|
||||
void CloseProductAccountRequest::setTargetArnRole(const std::string& targetArnRole)
|
||||
{
|
||||
targetArnRole_ = targetArnRole;
|
||||
setParameter("TargetArnRole", targetArnRole);
|
||||
}
|
||||
|
||||
52
openanalytics/src/model/CloseProductAccountResult.cc
Normal file
52
openanalytics/src/model/CloseProductAccountResult.cc
Normal file
@@ -0,0 +1,52 @@
|
||||
/*
|
||||
* 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/openanalytics/model/CloseProductAccountResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Openanalytics;
|
||||
using namespace AlibabaCloud::Openanalytics::Model;
|
||||
|
||||
CloseProductAccountResult::CloseProductAccountResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
CloseProductAccountResult::CloseProductAccountResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
CloseProductAccountResult::~CloseProductAccountResult()
|
||||
{}
|
||||
|
||||
void CloseProductAccountResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["RegionId"].isNull())
|
||||
regionId_ = value["RegionId"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string CloseProductAccountResult::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
115
openanalytics/src/model/DescribeRegionListRequest.cc
Normal file
115
openanalytics/src/model/DescribeRegionListRequest.cc
Normal file
@@ -0,0 +1,115 @@
|
||||
/*
|
||||
* 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/openanalytics/model/DescribeRegionListRequest.h>
|
||||
|
||||
using AlibabaCloud::Openanalytics::Model::DescribeRegionListRequest;
|
||||
|
||||
DescribeRegionListRequest::DescribeRegionListRequest() :
|
||||
RpcServiceRequest("openanalytics", "2018-03-01", "DescribeRegionList")
|
||||
{}
|
||||
|
||||
DescribeRegionListRequest::~DescribeRegionListRequest()
|
||||
{}
|
||||
|
||||
bool DescribeRegionListRequest::getSecurity_transport()const
|
||||
{
|
||||
return security_transport_;
|
||||
}
|
||||
|
||||
void DescribeRegionListRequest::setSecurity_transport(bool security_transport)
|
||||
{
|
||||
security_transport_ = security_transport;
|
||||
setParameter("Security_transport", std::to_string(security_transport));
|
||||
}
|
||||
|
||||
std::string DescribeRegionListRequest::getRequestId()const
|
||||
{
|
||||
return requestId_;
|
||||
}
|
||||
|
||||
void DescribeRegionListRequest::setRequestId(const std::string& requestId)
|
||||
{
|
||||
requestId_ = requestId;
|
||||
setParameter("RequestId", requestId);
|
||||
}
|
||||
|
||||
long DescribeRegionListRequest::getCallerParentId()const
|
||||
{
|
||||
return callerParentId_;
|
||||
}
|
||||
|
||||
void DescribeRegionListRequest::setCallerParentId(long callerParentId)
|
||||
{
|
||||
callerParentId_ = callerParentId;
|
||||
setParameter("CallerParentId", std::to_string(callerParentId));
|
||||
}
|
||||
|
||||
long DescribeRegionListRequest::getCallerBid()const
|
||||
{
|
||||
return callerBid_;
|
||||
}
|
||||
|
||||
void DescribeRegionListRequest::setCallerBid(long callerBid)
|
||||
{
|
||||
callerBid_ = callerBid;
|
||||
setParameter("CallerBid", std::to_string(callerBid));
|
||||
}
|
||||
|
||||
std::string DescribeRegionListRequest::getCallerType()const
|
||||
{
|
||||
return callerType_;
|
||||
}
|
||||
|
||||
void DescribeRegionListRequest::setCallerType(const std::string& callerType)
|
||||
{
|
||||
callerType_ = callerType;
|
||||
setParameter("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;
|
||||
setParameter("Ak_mfa_present", std::to_string(ak_mfa_present));
|
||||
}
|
||||
|
||||
long DescribeRegionListRequest::getCallerUid()const
|
||||
{
|
||||
return callerUid_;
|
||||
}
|
||||
|
||||
void DescribeRegionListRequest::setCallerUid(long callerUid)
|
||||
{
|
||||
callerUid_ = callerUid;
|
||||
setParameter("CallerUid", std::to_string(callerUid));
|
||||
}
|
||||
|
||||
std::string DescribeRegionListRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void DescribeRegionListRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
65
openanalytics/src/model/DescribeRegionListResult.cc
Normal file
65
openanalytics/src/model/DescribeRegionListResult.cc
Normal file
@@ -0,0 +1,65 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/openanalytics/model/DescribeRegionListResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Openanalytics;
|
||||
using namespace AlibabaCloud::Openanalytics::Model;
|
||||
|
||||
DescribeRegionListResult::DescribeRegionListResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DescribeRegionListResult::DescribeRegionListResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DescribeRegionListResult::~DescribeRegionListResult()
|
||||
{}
|
||||
|
||||
void DescribeRegionListResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allRegionList = value["RegionList"]["RegionListItem"];
|
||||
for (auto value : allRegionList)
|
||||
{
|
||||
RegionListItem regionListObject;
|
||||
if(!value["regionID"].isNull())
|
||||
regionListObject.regionID = value["regionID"].asString();
|
||||
regionList_.push_back(regionListObject);
|
||||
}
|
||||
if(!value["RegionId"].isNull())
|
||||
regionId_ = value["RegionId"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::vector<DescribeRegionListResult::RegionListItem> DescribeRegionListResult::getRegionList()const
|
||||
{
|
||||
return regionList_;
|
||||
}
|
||||
|
||||
std::string DescribeRegionListResult::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
148
openanalytics/src/model/GetAllowIPRequest.cc
Normal file
148
openanalytics/src/model/GetAllowIPRequest.cc
Normal file
@@ -0,0 +1,148 @@
|
||||
/*
|
||||
* 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/openanalytics/model/GetAllowIPRequest.h>
|
||||
|
||||
using AlibabaCloud::Openanalytics::Model::GetAllowIPRequest;
|
||||
|
||||
GetAllowIPRequest::GetAllowIPRequest() :
|
||||
RpcServiceRequest("openanalytics", "2018-03-01", "GetAllowIP")
|
||||
{}
|
||||
|
||||
GetAllowIPRequest::~GetAllowIPRequest()
|
||||
{}
|
||||
|
||||
bool GetAllowIPRequest::getSecurity_transport()const
|
||||
{
|
||||
return security_transport_;
|
||||
}
|
||||
|
||||
void GetAllowIPRequest::setSecurity_transport(bool security_transport)
|
||||
{
|
||||
security_transport_ = security_transport;
|
||||
setParameter("Security_transport", std::to_string(security_transport));
|
||||
}
|
||||
|
||||
std::string GetAllowIPRequest::getRegionID()const
|
||||
{
|
||||
return regionID_;
|
||||
}
|
||||
|
||||
void GetAllowIPRequest::setRegionID(const std::string& regionID)
|
||||
{
|
||||
regionID_ = regionID;
|
||||
setParameter("RegionID", regionID);
|
||||
}
|
||||
|
||||
std::string GetAllowIPRequest::getRequestId()const
|
||||
{
|
||||
return requestId_;
|
||||
}
|
||||
|
||||
void GetAllowIPRequest::setRequestId(const std::string& requestId)
|
||||
{
|
||||
requestId_ = requestId;
|
||||
setParameter("RequestId", requestId);
|
||||
}
|
||||
|
||||
long GetAllowIPRequest::getCallerParentId()const
|
||||
{
|
||||
return callerParentId_;
|
||||
}
|
||||
|
||||
void GetAllowIPRequest::setCallerParentId(long callerParentId)
|
||||
{
|
||||
callerParentId_ = callerParentId;
|
||||
setParameter("CallerParentId", std::to_string(callerParentId));
|
||||
}
|
||||
|
||||
long GetAllowIPRequest::getCallerBid()const
|
||||
{
|
||||
return callerBid_;
|
||||
}
|
||||
|
||||
void GetAllowIPRequest::setCallerBid(long callerBid)
|
||||
{
|
||||
callerBid_ = callerBid;
|
||||
setParameter("CallerBid", std::to_string(callerBid));
|
||||
}
|
||||
|
||||
std::string GetAllowIPRequest::getCallerType()const
|
||||
{
|
||||
return callerType_;
|
||||
}
|
||||
|
||||
void GetAllowIPRequest::setCallerType(const std::string& callerType)
|
||||
{
|
||||
callerType_ = callerType;
|
||||
setParameter("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;
|
||||
setParameter("Ak_mfa_present", std::to_string(ak_mfa_present));
|
||||
}
|
||||
|
||||
long GetAllowIPRequest::getCallerUid()const
|
||||
{
|
||||
return callerUid_;
|
||||
}
|
||||
|
||||
void GetAllowIPRequest::setCallerUid(long callerUid)
|
||||
{
|
||||
callerUid_ = callerUid;
|
||||
setParameter("CallerUid", std::to_string(callerUid));
|
||||
}
|
||||
|
||||
std::string GetAllowIPRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void GetAllowIPRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
long GetAllowIPRequest::getUserID()const
|
||||
{
|
||||
return userID_;
|
||||
}
|
||||
|
||||
void GetAllowIPRequest::setUserID(long userID)
|
||||
{
|
||||
userID_ = userID;
|
||||
setParameter("UserID", std::to_string(userID));
|
||||
}
|
||||
|
||||
std::string GetAllowIPRequest::getNetworkType()const
|
||||
{
|
||||
return networkType_;
|
||||
}
|
||||
|
||||
void GetAllowIPRequest::setNetworkType(const std::string& networkType)
|
||||
{
|
||||
networkType_ = networkType;
|
||||
setParameter("NetworkType", networkType);
|
||||
}
|
||||
|
||||
59
openanalytics/src/model/GetAllowIPResult.cc
Normal file
59
openanalytics/src/model/GetAllowIPResult.cc
Normal file
@@ -0,0 +1,59 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/openanalytics/model/GetAllowIPResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Openanalytics;
|
||||
using namespace AlibabaCloud::Openanalytics::Model;
|
||||
|
||||
GetAllowIPResult::GetAllowIPResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
GetAllowIPResult::GetAllowIPResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
GetAllowIPResult::~GetAllowIPResult()
|
||||
{}
|
||||
|
||||
void GetAllowIPResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["RegionId"].isNull())
|
||||
regionId_ = value["RegionId"].asString();
|
||||
if(!value["AllowIP"].isNull())
|
||||
allowIP_ = value["AllowIP"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string GetAllowIPResult::getAllowIP()const
|
||||
{
|
||||
return allowIP_;
|
||||
}
|
||||
|
||||
std::string GetAllowIPResult::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
148
openanalytics/src/model/GetEndPointByDomainRequest.cc
Normal file
148
openanalytics/src/model/GetEndPointByDomainRequest.cc
Normal file
@@ -0,0 +1,148 @@
|
||||
/*
|
||||
* 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/openanalytics/model/GetEndPointByDomainRequest.h>
|
||||
|
||||
using AlibabaCloud::Openanalytics::Model::GetEndPointByDomainRequest;
|
||||
|
||||
GetEndPointByDomainRequest::GetEndPointByDomainRequest() :
|
||||
RpcServiceRequest("openanalytics", "2018-03-01", "GetEndPointByDomain")
|
||||
{}
|
||||
|
||||
GetEndPointByDomainRequest::~GetEndPointByDomainRequest()
|
||||
{}
|
||||
|
||||
bool GetEndPointByDomainRequest::getSecurity_transport()const
|
||||
{
|
||||
return security_transport_;
|
||||
}
|
||||
|
||||
void GetEndPointByDomainRequest::setSecurity_transport(bool security_transport)
|
||||
{
|
||||
security_transport_ = security_transport;
|
||||
setParameter("Security_transport", std::to_string(security_transport));
|
||||
}
|
||||
|
||||
std::string GetEndPointByDomainRequest::getRegionID()const
|
||||
{
|
||||
return regionID_;
|
||||
}
|
||||
|
||||
void GetEndPointByDomainRequest::setRegionID(const std::string& regionID)
|
||||
{
|
||||
regionID_ = regionID;
|
||||
setParameter("RegionID", regionID);
|
||||
}
|
||||
|
||||
std::string GetEndPointByDomainRequest::getRequestId()const
|
||||
{
|
||||
return requestId_;
|
||||
}
|
||||
|
||||
void GetEndPointByDomainRequest::setRequestId(const std::string& requestId)
|
||||
{
|
||||
requestId_ = requestId;
|
||||
setParameter("RequestId", requestId);
|
||||
}
|
||||
|
||||
long GetEndPointByDomainRequest::getCallerParentId()const
|
||||
{
|
||||
return callerParentId_;
|
||||
}
|
||||
|
||||
void GetEndPointByDomainRequest::setCallerParentId(long callerParentId)
|
||||
{
|
||||
callerParentId_ = callerParentId;
|
||||
setParameter("CallerParentId", std::to_string(callerParentId));
|
||||
}
|
||||
|
||||
long GetEndPointByDomainRequest::getCallerBid()const
|
||||
{
|
||||
return callerBid_;
|
||||
}
|
||||
|
||||
void GetEndPointByDomainRequest::setCallerBid(long callerBid)
|
||||
{
|
||||
callerBid_ = callerBid;
|
||||
setParameter("CallerBid", std::to_string(callerBid));
|
||||
}
|
||||
|
||||
std::string GetEndPointByDomainRequest::getCallerType()const
|
||||
{
|
||||
return callerType_;
|
||||
}
|
||||
|
||||
void GetEndPointByDomainRequest::setCallerType(const std::string& callerType)
|
||||
{
|
||||
callerType_ = callerType;
|
||||
setParameter("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;
|
||||
setParameter("Ak_mfa_present", std::to_string(ak_mfa_present));
|
||||
}
|
||||
|
||||
long GetEndPointByDomainRequest::getCallerUid()const
|
||||
{
|
||||
return callerUid_;
|
||||
}
|
||||
|
||||
void GetEndPointByDomainRequest::setCallerUid(long callerUid)
|
||||
{
|
||||
callerUid_ = callerUid;
|
||||
setParameter("CallerUid", std::to_string(callerUid));
|
||||
}
|
||||
|
||||
std::string GetEndPointByDomainRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void GetEndPointByDomainRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
long GetEndPointByDomainRequest::getUserID()const
|
||||
{
|
||||
return userID_;
|
||||
}
|
||||
|
||||
void GetEndPointByDomainRequest::setUserID(long userID)
|
||||
{
|
||||
userID_ = userID;
|
||||
setParameter("UserID", std::to_string(userID));
|
||||
}
|
||||
|
||||
std::string GetEndPointByDomainRequest::getDomainURL()const
|
||||
{
|
||||
return domainURL_;
|
||||
}
|
||||
|
||||
void GetEndPointByDomainRequest::setDomainURL(const std::string& domainURL)
|
||||
{
|
||||
domainURL_ = domainURL;
|
||||
setParameter("DomainURL", domainURL);
|
||||
}
|
||||
|
||||
78
openanalytics/src/model/GetEndPointByDomainResult.cc
Normal file
78
openanalytics/src/model/GetEndPointByDomainResult.cc
Normal file
@@ -0,0 +1,78 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/openanalytics/model/GetEndPointByDomainResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Openanalytics;
|
||||
using namespace AlibabaCloud::Openanalytics::Model;
|
||||
|
||||
GetEndPointByDomainResult::GetEndPointByDomainResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
GetEndPointByDomainResult::GetEndPointByDomainResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
GetEndPointByDomainResult::~GetEndPointByDomainResult()
|
||||
{}
|
||||
|
||||
void GetEndPointByDomainResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto endPointInfoNode = value["EndPointInfo"];
|
||||
if(!endPointInfoNode["endPointID"].isNull())
|
||||
endPointInfo_.endPointID = endPointInfoNode["endPointID"].asString();
|
||||
if(!endPointInfoNode["domainURL"].isNull())
|
||||
endPointInfo_.domainURL = endPointInfoNode["domainURL"].asString();
|
||||
if(!endPointInfoNode["host"].isNull())
|
||||
endPointInfo_.host = endPointInfoNode["host"].asString();
|
||||
if(!endPointInfoNode["port"].isNull())
|
||||
endPointInfo_.port = endPointInfoNode["port"].asString();
|
||||
if(!endPointInfoNode["networkType"].isNull())
|
||||
endPointInfo_.networkType = endPointInfoNode["networkType"].asString();
|
||||
if(!endPointInfoNode["vpcID"].isNull())
|
||||
endPointInfo_.vpcID = endPointInfoNode["vpcID"].asString();
|
||||
if(!endPointInfoNode["vSwitch"].isNull())
|
||||
endPointInfo_.vSwitch = endPointInfoNode["vSwitch"].asString();
|
||||
if(!endPointInfoNode["zone"].isNull())
|
||||
endPointInfo_.zone = endPointInfoNode["zone"].asString();
|
||||
if(!endPointInfoNode["allowIP"].isNull())
|
||||
endPointInfo_.allowIP = endPointInfoNode["allowIP"].asString();
|
||||
if(!endPointInfoNode["cloudInstanceID"].isNull())
|
||||
endPointInfo_.cloudInstanceID = endPointInfoNode["cloudInstanceID"].asString();
|
||||
if(!value["RegionId"].isNull())
|
||||
regionId_ = value["RegionId"].asString();
|
||||
|
||||
}
|
||||
|
||||
GetEndPointByDomainResult::EndPointInfo GetEndPointByDomainResult::getEndPointInfo()const
|
||||
{
|
||||
return endPointInfo_;
|
||||
}
|
||||
|
||||
std::string GetEndPointByDomainResult::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
170
openanalytics/src/model/GetProductStatusRequest.cc
Normal file
170
openanalytics/src/model/GetProductStatusRequest.cc
Normal file
@@ -0,0 +1,170 @@
|
||||
/*
|
||||
* 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/openanalytics/model/GetProductStatusRequest.h>
|
||||
|
||||
using AlibabaCloud::Openanalytics::Model::GetProductStatusRequest;
|
||||
|
||||
GetProductStatusRequest::GetProductStatusRequest() :
|
||||
RpcServiceRequest("openanalytics", "2018-03-01", "GetProductStatus")
|
||||
{}
|
||||
|
||||
GetProductStatusRequest::~GetProductStatusRequest()
|
||||
{}
|
||||
|
||||
long GetProductStatusRequest::getCallerParentId()const
|
||||
{
|
||||
return callerParentId_;
|
||||
}
|
||||
|
||||
void GetProductStatusRequest::setCallerParentId(long callerParentId)
|
||||
{
|
||||
callerParentId_ = callerParentId;
|
||||
setParameter("CallerParentId", std::to_string(callerParentId));
|
||||
}
|
||||
|
||||
long GetProductStatusRequest::getCallerBid()const
|
||||
{
|
||||
return callerBid_;
|
||||
}
|
||||
|
||||
void GetProductStatusRequest::setCallerBid(long callerBid)
|
||||
{
|
||||
callerBid_ = callerBid;
|
||||
setParameter("CallerBid", std::to_string(callerBid));
|
||||
}
|
||||
|
||||
std::string GetProductStatusRequest::getCallerType()const
|
||||
{
|
||||
return callerType_;
|
||||
}
|
||||
|
||||
void GetProductStatusRequest::setCallerType(const std::string& callerType)
|
||||
{
|
||||
callerType_ = callerType;
|
||||
setParameter("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;
|
||||
setParameter("Ak_mfa_present", std::to_string(ak_mfa_present));
|
||||
}
|
||||
|
||||
std::string GetProductStatusRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void GetProductStatusRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
bool GetProductStatusRequest::getSecurity_transport()const
|
||||
{
|
||||
return security_transport_;
|
||||
}
|
||||
|
||||
void GetProductStatusRequest::setSecurity_transport(bool security_transport)
|
||||
{
|
||||
security_transport_ = security_transport;
|
||||
setParameter("Security_transport", std::to_string(security_transport));
|
||||
}
|
||||
|
||||
std::string GetProductStatusRequest::getRegionID()const
|
||||
{
|
||||
return regionID_;
|
||||
}
|
||||
|
||||
void GetProductStatusRequest::setRegionID(const std::string& regionID)
|
||||
{
|
||||
regionID_ = regionID;
|
||||
setParameter("RegionID", regionID);
|
||||
}
|
||||
|
||||
std::string GetProductStatusRequest::getRequestId()const
|
||||
{
|
||||
return requestId_;
|
||||
}
|
||||
|
||||
void GetProductStatusRequest::setRequestId(const std::string& requestId)
|
||||
{
|
||||
requestId_ = requestId;
|
||||
setParameter("RequestId", requestId);
|
||||
}
|
||||
|
||||
long GetProductStatusRequest::getCallerUid()const
|
||||
{
|
||||
return callerUid_;
|
||||
}
|
||||
|
||||
void GetProductStatusRequest::setCallerUid(long callerUid)
|
||||
{
|
||||
callerUid_ = callerUid;
|
||||
setParameter("CallerUid", std::to_string(callerUid));
|
||||
}
|
||||
|
||||
std::string GetProductStatusRequest::getProductCode()const
|
||||
{
|
||||
return productCode_;
|
||||
}
|
||||
|
||||
void GetProductStatusRequest::setProductCode(const std::string& productCode)
|
||||
{
|
||||
productCode_ = productCode;
|
||||
setParameter("ProductCode", productCode);
|
||||
}
|
||||
|
||||
std::string GetProductStatusRequest::getProductAccessKey()const
|
||||
{
|
||||
return productAccessKey_;
|
||||
}
|
||||
|
||||
void GetProductStatusRequest::setProductAccessKey(const std::string& productAccessKey)
|
||||
{
|
||||
productAccessKey_ = productAccessKey;
|
||||
setParameter("ProductAccessKey", productAccessKey);
|
||||
}
|
||||
|
||||
std::string GetProductStatusRequest::getTargetUid()const
|
||||
{
|
||||
return targetUid_;
|
||||
}
|
||||
|
||||
void GetProductStatusRequest::setTargetUid(const std::string& targetUid)
|
||||
{
|
||||
targetUid_ = targetUid;
|
||||
setParameter("TargetUid", targetUid);
|
||||
}
|
||||
|
||||
std::string GetProductStatusRequest::getTargetArnRole()const
|
||||
{
|
||||
return targetArnRole_;
|
||||
}
|
||||
|
||||
void GetProductStatusRequest::setTargetArnRole(const std::string& targetArnRole)
|
||||
{
|
||||
targetArnRole_ = targetArnRole;
|
||||
setParameter("TargetArnRole", targetArnRole);
|
||||
}
|
||||
|
||||
59
openanalytics/src/model/GetProductStatusResult.cc
Normal file
59
openanalytics/src/model/GetProductStatusResult.cc
Normal file
@@ -0,0 +1,59 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/openanalytics/model/GetProductStatusResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Openanalytics;
|
||||
using namespace AlibabaCloud::Openanalytics::Model;
|
||||
|
||||
GetProductStatusResult::GetProductStatusResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
GetProductStatusResult::GetProductStatusResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
GetProductStatusResult::~GetProductStatusResult()
|
||||
{}
|
||||
|
||||
void GetProductStatusResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["RegionId"].isNull())
|
||||
regionId_ = value["RegionId"].asString();
|
||||
if(!value["Data"].isNull())
|
||||
data_ = value["Data"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string GetProductStatusResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
std::string GetProductStatusResult::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
137
openanalytics/src/model/GetRegionStatusRequest.cc
Normal file
137
openanalytics/src/model/GetRegionStatusRequest.cc
Normal file
@@ -0,0 +1,137 @@
|
||||
/*
|
||||
* 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/openanalytics/model/GetRegionStatusRequest.h>
|
||||
|
||||
using AlibabaCloud::Openanalytics::Model::GetRegionStatusRequest;
|
||||
|
||||
GetRegionStatusRequest::GetRegionStatusRequest() :
|
||||
RpcServiceRequest("openanalytics", "2018-03-01", "GetRegionStatus")
|
||||
{}
|
||||
|
||||
GetRegionStatusRequest::~GetRegionStatusRequest()
|
||||
{}
|
||||
|
||||
bool GetRegionStatusRequest::getSecurity_transport()const
|
||||
{
|
||||
return security_transport_;
|
||||
}
|
||||
|
||||
void GetRegionStatusRequest::setSecurity_transport(bool security_transport)
|
||||
{
|
||||
security_transport_ = security_transport;
|
||||
setParameter("Security_transport", std::to_string(security_transport));
|
||||
}
|
||||
|
||||
std::string GetRegionStatusRequest::getRegionID()const
|
||||
{
|
||||
return regionID_;
|
||||
}
|
||||
|
||||
void GetRegionStatusRequest::setRegionID(const std::string& regionID)
|
||||
{
|
||||
regionID_ = regionID;
|
||||
setParameter("RegionID", regionID);
|
||||
}
|
||||
|
||||
std::string GetRegionStatusRequest::getRequestId()const
|
||||
{
|
||||
return requestId_;
|
||||
}
|
||||
|
||||
void GetRegionStatusRequest::setRequestId(const std::string& requestId)
|
||||
{
|
||||
requestId_ = requestId;
|
||||
setParameter("RequestId", requestId);
|
||||
}
|
||||
|
||||
long GetRegionStatusRequest::getCallerParentId()const
|
||||
{
|
||||
return callerParentId_;
|
||||
}
|
||||
|
||||
void GetRegionStatusRequest::setCallerParentId(long callerParentId)
|
||||
{
|
||||
callerParentId_ = callerParentId;
|
||||
setParameter("CallerParentId", std::to_string(callerParentId));
|
||||
}
|
||||
|
||||
long GetRegionStatusRequest::getCallerBid()const
|
||||
{
|
||||
return callerBid_;
|
||||
}
|
||||
|
||||
void GetRegionStatusRequest::setCallerBid(long callerBid)
|
||||
{
|
||||
callerBid_ = callerBid;
|
||||
setParameter("CallerBid", std::to_string(callerBid));
|
||||
}
|
||||
|
||||
std::string GetRegionStatusRequest::getCallerType()const
|
||||
{
|
||||
return callerType_;
|
||||
}
|
||||
|
||||
void GetRegionStatusRequest::setCallerType(const std::string& callerType)
|
||||
{
|
||||
callerType_ = callerType;
|
||||
setParameter("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;
|
||||
setParameter("Ak_mfa_present", std::to_string(ak_mfa_present));
|
||||
}
|
||||
|
||||
long GetRegionStatusRequest::getCallerUid()const
|
||||
{
|
||||
return callerUid_;
|
||||
}
|
||||
|
||||
void GetRegionStatusRequest::setCallerUid(long callerUid)
|
||||
{
|
||||
callerUid_ = callerUid;
|
||||
setParameter("CallerUid", std::to_string(callerUid));
|
||||
}
|
||||
|
||||
std::string GetRegionStatusRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void GetRegionStatusRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
long GetRegionStatusRequest::getTargetUid()const
|
||||
{
|
||||
return targetUid_;
|
||||
}
|
||||
|
||||
void GetRegionStatusRequest::setTargetUid(long targetUid)
|
||||
{
|
||||
targetUid_ = targetUid;
|
||||
setParameter("TargetUid", std::to_string(targetUid));
|
||||
}
|
||||
|
||||
59
openanalytics/src/model/GetRegionStatusResult.cc
Normal file
59
openanalytics/src/model/GetRegionStatusResult.cc
Normal file
@@ -0,0 +1,59 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/openanalytics/model/GetRegionStatusResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Openanalytics;
|
||||
using namespace AlibabaCloud::Openanalytics::Model;
|
||||
|
||||
GetRegionStatusResult::GetRegionStatusResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
GetRegionStatusResult::GetRegionStatusResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
GetRegionStatusResult::~GetRegionStatusResult()
|
||||
{}
|
||||
|
||||
void GetRegionStatusResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["RegionId"].isNull())
|
||||
regionId_ = value["RegionId"].asString();
|
||||
if(!value["Status"].isNull())
|
||||
status_ = value["Status"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string GetRegionStatusResult::getStatus()const
|
||||
{
|
||||
return status_;
|
||||
}
|
||||
|
||||
std::string GetRegionStatusResult::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
170
openanalytics/src/model/OpenProductAccountRequest.cc
Normal file
170
openanalytics/src/model/OpenProductAccountRequest.cc
Normal file
@@ -0,0 +1,170 @@
|
||||
/*
|
||||
* 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/openanalytics/model/OpenProductAccountRequest.h>
|
||||
|
||||
using AlibabaCloud::Openanalytics::Model::OpenProductAccountRequest;
|
||||
|
||||
OpenProductAccountRequest::OpenProductAccountRequest() :
|
||||
RpcServiceRequest("openanalytics", "2018-03-01", "OpenProductAccount")
|
||||
{}
|
||||
|
||||
OpenProductAccountRequest::~OpenProductAccountRequest()
|
||||
{}
|
||||
|
||||
long OpenProductAccountRequest::getCallerParentId()const
|
||||
{
|
||||
return callerParentId_;
|
||||
}
|
||||
|
||||
void OpenProductAccountRequest::setCallerParentId(long callerParentId)
|
||||
{
|
||||
callerParentId_ = callerParentId;
|
||||
setParameter("CallerParentId", std::to_string(callerParentId));
|
||||
}
|
||||
|
||||
long OpenProductAccountRequest::getCallerBid()const
|
||||
{
|
||||
return callerBid_;
|
||||
}
|
||||
|
||||
void OpenProductAccountRequest::setCallerBid(long callerBid)
|
||||
{
|
||||
callerBid_ = callerBid;
|
||||
setParameter("CallerBid", std::to_string(callerBid));
|
||||
}
|
||||
|
||||
std::string OpenProductAccountRequest::getCallerType()const
|
||||
{
|
||||
return callerType_;
|
||||
}
|
||||
|
||||
void OpenProductAccountRequest::setCallerType(const std::string& callerType)
|
||||
{
|
||||
callerType_ = callerType;
|
||||
setParameter("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;
|
||||
setParameter("Ak_mfa_present", std::to_string(ak_mfa_present));
|
||||
}
|
||||
|
||||
std::string OpenProductAccountRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void OpenProductAccountRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
bool OpenProductAccountRequest::getSecurity_transport()const
|
||||
{
|
||||
return security_transport_;
|
||||
}
|
||||
|
||||
void OpenProductAccountRequest::setSecurity_transport(bool security_transport)
|
||||
{
|
||||
security_transport_ = security_transport;
|
||||
setParameter("Security_transport", std::to_string(security_transport));
|
||||
}
|
||||
|
||||
std::string OpenProductAccountRequest::getRegionID()const
|
||||
{
|
||||
return regionID_;
|
||||
}
|
||||
|
||||
void OpenProductAccountRequest::setRegionID(const std::string& regionID)
|
||||
{
|
||||
regionID_ = regionID;
|
||||
setParameter("RegionID", regionID);
|
||||
}
|
||||
|
||||
std::string OpenProductAccountRequest::getRequestId()const
|
||||
{
|
||||
return requestId_;
|
||||
}
|
||||
|
||||
void OpenProductAccountRequest::setRequestId(const std::string& requestId)
|
||||
{
|
||||
requestId_ = requestId;
|
||||
setParameter("RequestId", requestId);
|
||||
}
|
||||
|
||||
long OpenProductAccountRequest::getCallerUid()const
|
||||
{
|
||||
return callerUid_;
|
||||
}
|
||||
|
||||
void OpenProductAccountRequest::setCallerUid(long callerUid)
|
||||
{
|
||||
callerUid_ = callerUid;
|
||||
setParameter("CallerUid", std::to_string(callerUid));
|
||||
}
|
||||
|
||||
std::string OpenProductAccountRequest::getProductCode()const
|
||||
{
|
||||
return productCode_;
|
||||
}
|
||||
|
||||
void OpenProductAccountRequest::setProductCode(const std::string& productCode)
|
||||
{
|
||||
productCode_ = productCode;
|
||||
setParameter("ProductCode", productCode);
|
||||
}
|
||||
|
||||
std::string OpenProductAccountRequest::getProductAccessKey()const
|
||||
{
|
||||
return productAccessKey_;
|
||||
}
|
||||
|
||||
void OpenProductAccountRequest::setProductAccessKey(const std::string& productAccessKey)
|
||||
{
|
||||
productAccessKey_ = productAccessKey;
|
||||
setParameter("ProductAccessKey", productAccessKey);
|
||||
}
|
||||
|
||||
std::string OpenProductAccountRequest::getTargetUid()const
|
||||
{
|
||||
return targetUid_;
|
||||
}
|
||||
|
||||
void OpenProductAccountRequest::setTargetUid(const std::string& targetUid)
|
||||
{
|
||||
targetUid_ = targetUid;
|
||||
setParameter("TargetUid", targetUid);
|
||||
}
|
||||
|
||||
std::string OpenProductAccountRequest::getTargetArnRole()const
|
||||
{
|
||||
return targetArnRole_;
|
||||
}
|
||||
|
||||
void OpenProductAccountRequest::setTargetArnRole(const std::string& targetArnRole)
|
||||
{
|
||||
targetArnRole_ = targetArnRole;
|
||||
setParameter("TargetArnRole", targetArnRole);
|
||||
}
|
||||
|
||||
59
openanalytics/src/model/OpenProductAccountResult.cc
Normal file
59
openanalytics/src/model/OpenProductAccountResult.cc
Normal file
@@ -0,0 +1,59 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/openanalytics/model/OpenProductAccountResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Openanalytics;
|
||||
using namespace AlibabaCloud::Openanalytics::Model;
|
||||
|
||||
OpenProductAccountResult::OpenProductAccountResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
OpenProductAccountResult::OpenProductAccountResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
OpenProductAccountResult::~OpenProductAccountResult()
|
||||
{}
|
||||
|
||||
void OpenProductAccountResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["RegionId"].isNull())
|
||||
regionId_ = value["RegionId"].asString();
|
||||
if(!value["Data"].isNull())
|
||||
data_ = value["Data"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string OpenProductAccountResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
std::string OpenProductAccountResult::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
137
openanalytics/src/model/QueryEndPointListRequest.cc
Normal file
137
openanalytics/src/model/QueryEndPointListRequest.cc
Normal file
@@ -0,0 +1,137 @@
|
||||
/*
|
||||
* 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/openanalytics/model/QueryEndPointListRequest.h>
|
||||
|
||||
using AlibabaCloud::Openanalytics::Model::QueryEndPointListRequest;
|
||||
|
||||
QueryEndPointListRequest::QueryEndPointListRequest() :
|
||||
RpcServiceRequest("openanalytics", "2018-03-01", "QueryEndPointList")
|
||||
{}
|
||||
|
||||
QueryEndPointListRequest::~QueryEndPointListRequest()
|
||||
{}
|
||||
|
||||
bool QueryEndPointListRequest::getSecurity_transport()const
|
||||
{
|
||||
return security_transport_;
|
||||
}
|
||||
|
||||
void QueryEndPointListRequest::setSecurity_transport(bool security_transport)
|
||||
{
|
||||
security_transport_ = security_transport;
|
||||
setParameter("Security_transport", std::to_string(security_transport));
|
||||
}
|
||||
|
||||
std::string QueryEndPointListRequest::getRegionID()const
|
||||
{
|
||||
return regionID_;
|
||||
}
|
||||
|
||||
void QueryEndPointListRequest::setRegionID(const std::string& regionID)
|
||||
{
|
||||
regionID_ = regionID;
|
||||
setParameter("RegionID", regionID);
|
||||
}
|
||||
|
||||
std::string QueryEndPointListRequest::getRequestId()const
|
||||
{
|
||||
return requestId_;
|
||||
}
|
||||
|
||||
void QueryEndPointListRequest::setRequestId(const std::string& requestId)
|
||||
{
|
||||
requestId_ = requestId;
|
||||
setParameter("RequestId", requestId);
|
||||
}
|
||||
|
||||
long QueryEndPointListRequest::getCallerParentId()const
|
||||
{
|
||||
return callerParentId_;
|
||||
}
|
||||
|
||||
void QueryEndPointListRequest::setCallerParentId(long callerParentId)
|
||||
{
|
||||
callerParentId_ = callerParentId;
|
||||
setParameter("CallerParentId", std::to_string(callerParentId));
|
||||
}
|
||||
|
||||
long QueryEndPointListRequest::getCallerBid()const
|
||||
{
|
||||
return callerBid_;
|
||||
}
|
||||
|
||||
void QueryEndPointListRequest::setCallerBid(long callerBid)
|
||||
{
|
||||
callerBid_ = callerBid;
|
||||
setParameter("CallerBid", std::to_string(callerBid));
|
||||
}
|
||||
|
||||
std::string QueryEndPointListRequest::getCallerType()const
|
||||
{
|
||||
return callerType_;
|
||||
}
|
||||
|
||||
void QueryEndPointListRequest::setCallerType(const std::string& callerType)
|
||||
{
|
||||
callerType_ = callerType;
|
||||
setParameter("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;
|
||||
setParameter("Ak_mfa_present", std::to_string(ak_mfa_present));
|
||||
}
|
||||
|
||||
long QueryEndPointListRequest::getCallerUid()const
|
||||
{
|
||||
return callerUid_;
|
||||
}
|
||||
|
||||
void QueryEndPointListRequest::setCallerUid(long callerUid)
|
||||
{
|
||||
callerUid_ = callerUid;
|
||||
setParameter("CallerUid", std::to_string(callerUid));
|
||||
}
|
||||
|
||||
std::string QueryEndPointListRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void QueryEndPointListRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
long QueryEndPointListRequest::getUserID()const
|
||||
{
|
||||
return userID_;
|
||||
}
|
||||
|
||||
void QueryEndPointListRequest::setUserID(long userID)
|
||||
{
|
||||
userID_ = userID;
|
||||
setParameter("UserID", std::to_string(userID));
|
||||
}
|
||||
|
||||
85
openanalytics/src/model/QueryEndPointListResult.cc
Normal file
85
openanalytics/src/model/QueryEndPointListResult.cc
Normal file
@@ -0,0 +1,85 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/openanalytics/model/QueryEndPointListResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Openanalytics;
|
||||
using namespace AlibabaCloud::Openanalytics::Model;
|
||||
|
||||
QueryEndPointListResult::QueryEndPointListResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
QueryEndPointListResult::QueryEndPointListResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
QueryEndPointListResult::~QueryEndPointListResult()
|
||||
{}
|
||||
|
||||
void QueryEndPointListResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allEndPointList = value["EndPointList"]["EndPointListItem"];
|
||||
for (auto value : allEndPointList)
|
||||
{
|
||||
EndPointListItem endPointListObject;
|
||||
if(!value["endPointID"].isNull())
|
||||
endPointListObject.endPointID = value["endPointID"].asString();
|
||||
if(!value["zone"].isNull())
|
||||
endPointListObject.zone = value["zone"].asString();
|
||||
if(!value["vSwitch"].isNull())
|
||||
endPointListObject.vSwitch = value["vSwitch"].asString();
|
||||
if(!value["status"].isNull())
|
||||
endPointListObject.status = value["status"].asString();
|
||||
if(!value["vpcID"].isNull())
|
||||
endPointListObject.vpcID = value["vpcID"].asString();
|
||||
if(!value["host"].isNull())
|
||||
endPointListObject.host = value["host"].asString();
|
||||
if(!value["domainURL"].isNull())
|
||||
endPointListObject.domainURL = value["domainURL"].asString();
|
||||
if(!value["networkType"].isNull())
|
||||
endPointListObject.networkType = value["networkType"].asString();
|
||||
if(!value["allowIP"].isNull())
|
||||
endPointListObject.allowIP = value["allowIP"].asString();
|
||||
if(!value["port"].isNull())
|
||||
endPointListObject.port = value["port"].asString();
|
||||
if(!value["cloudInstanceID"].isNull())
|
||||
endPointListObject.cloudInstanceID = value["cloudInstanceID"].asString();
|
||||
endPointList_.push_back(endPointListObject);
|
||||
}
|
||||
if(!value["RegionId"].isNull())
|
||||
regionId_ = value["RegionId"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::vector<QueryEndPointListResult::EndPointListItem> QueryEndPointListResult::getEndPointList()const
|
||||
{
|
||||
return endPointList_;
|
||||
}
|
||||
|
||||
std::string QueryEndPointListResult::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
170
openanalytics/src/model/SetAllowIPRequest.cc
Normal file
170
openanalytics/src/model/SetAllowIPRequest.cc
Normal file
@@ -0,0 +1,170 @@
|
||||
/*
|
||||
* 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/openanalytics/model/SetAllowIPRequest.h>
|
||||
|
||||
using AlibabaCloud::Openanalytics::Model::SetAllowIPRequest;
|
||||
|
||||
SetAllowIPRequest::SetAllowIPRequest() :
|
||||
RpcServiceRequest("openanalytics", "2018-03-01", "SetAllowIP")
|
||||
{}
|
||||
|
||||
SetAllowIPRequest::~SetAllowIPRequest()
|
||||
{}
|
||||
|
||||
long SetAllowIPRequest::getCallerParentId()const
|
||||
{
|
||||
return callerParentId_;
|
||||
}
|
||||
|
||||
void SetAllowIPRequest::setCallerParentId(long callerParentId)
|
||||
{
|
||||
callerParentId_ = callerParentId;
|
||||
setParameter("CallerParentId", std::to_string(callerParentId));
|
||||
}
|
||||
|
||||
long SetAllowIPRequest::getCallerBid()const
|
||||
{
|
||||
return callerBid_;
|
||||
}
|
||||
|
||||
void SetAllowIPRequest::setCallerBid(long callerBid)
|
||||
{
|
||||
callerBid_ = callerBid;
|
||||
setParameter("CallerBid", std::to_string(callerBid));
|
||||
}
|
||||
|
||||
std::string SetAllowIPRequest::getCallerType()const
|
||||
{
|
||||
return callerType_;
|
||||
}
|
||||
|
||||
void SetAllowIPRequest::setCallerType(const std::string& callerType)
|
||||
{
|
||||
callerType_ = callerType;
|
||||
setParameter("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;
|
||||
setParameter("Ak_mfa_present", std::to_string(ak_mfa_present));
|
||||
}
|
||||
|
||||
std::string SetAllowIPRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void SetAllowIPRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
bool SetAllowIPRequest::getSecurity_transport()const
|
||||
{
|
||||
return security_transport_;
|
||||
}
|
||||
|
||||
void SetAllowIPRequest::setSecurity_transport(bool security_transport)
|
||||
{
|
||||
security_transport_ = security_transport;
|
||||
setParameter("Security_transport", std::to_string(security_transport));
|
||||
}
|
||||
|
||||
std::string SetAllowIPRequest::getRegionID()const
|
||||
{
|
||||
return regionID_;
|
||||
}
|
||||
|
||||
void SetAllowIPRequest::setRegionID(const std::string& regionID)
|
||||
{
|
||||
regionID_ = regionID;
|
||||
setParameter("RegionID", regionID);
|
||||
}
|
||||
|
||||
std::string SetAllowIPRequest::getRequestId()const
|
||||
{
|
||||
return requestId_;
|
||||
}
|
||||
|
||||
void SetAllowIPRequest::setRequestId(const std::string& requestId)
|
||||
{
|
||||
requestId_ = requestId;
|
||||
setParameter("RequestId", requestId);
|
||||
}
|
||||
|
||||
long SetAllowIPRequest::getCallerUid()const
|
||||
{
|
||||
return callerUid_;
|
||||
}
|
||||
|
||||
void SetAllowIPRequest::setCallerUid(long callerUid)
|
||||
{
|
||||
callerUid_ = callerUid;
|
||||
setParameter("CallerUid", std::to_string(callerUid));
|
||||
}
|
||||
|
||||
long SetAllowIPRequest::getUserID()const
|
||||
{
|
||||
return userID_;
|
||||
}
|
||||
|
||||
void SetAllowIPRequest::setUserID(long userID)
|
||||
{
|
||||
userID_ = userID;
|
||||
setParameter("UserID", std::to_string(userID));
|
||||
}
|
||||
|
||||
std::string SetAllowIPRequest::getNetworkType()const
|
||||
{
|
||||
return networkType_;
|
||||
}
|
||||
|
||||
void SetAllowIPRequest::setNetworkType(const std::string& networkType)
|
||||
{
|
||||
networkType_ = networkType;
|
||||
setParameter("NetworkType", networkType);
|
||||
}
|
||||
|
||||
std::string SetAllowIPRequest::getAllowIP()const
|
||||
{
|
||||
return allowIP_;
|
||||
}
|
||||
|
||||
void SetAllowIPRequest::setAllowIP(const std::string& allowIP)
|
||||
{
|
||||
allowIP_ = allowIP;
|
||||
setParameter("AllowIP", allowIP);
|
||||
}
|
||||
|
||||
bool SetAllowIPRequest::getAppend()const
|
||||
{
|
||||
return append_;
|
||||
}
|
||||
|
||||
void SetAllowIPRequest::setAppend(bool append)
|
||||
{
|
||||
append_ = append;
|
||||
setParameter("Append", std::to_string(append));
|
||||
}
|
||||
|
||||
52
openanalytics/src/model/SetAllowIPResult.cc
Normal file
52
openanalytics/src/model/SetAllowIPResult.cc
Normal file
@@ -0,0 +1,52 @@
|
||||
/*
|
||||
* 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/openanalytics/model/SetAllowIPResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Openanalytics;
|
||||
using namespace AlibabaCloud::Openanalytics::Model;
|
||||
|
||||
SetAllowIPResult::SetAllowIPResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
SetAllowIPResult::SetAllowIPResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
SetAllowIPResult::~SetAllowIPResult()
|
||||
{}
|
||||
|
||||
void SetAllowIPResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["RegionId"].isNull())
|
||||
regionId_ = value["RegionId"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string SetAllowIPResult::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user