HTTPDNS SDK Auto Released By shenshi,Version:1.34.54
Signed-off-by: haowei.yao <haowei.yao@alibaba-inc.com>
This commit is contained in:
60
httpdns/src/model/AddDomainRequest.cc
Normal file
60
httpdns/src/model/AddDomainRequest.cc
Normal file
@@ -0,0 +1,60 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/httpdns/model/AddDomainRequest.h>
|
||||
|
||||
using AlibabaCloud::Httpdns::Model::AddDomainRequest;
|
||||
|
||||
AddDomainRequest::AddDomainRequest() :
|
||||
RpcServiceRequest("httpdns", "2016-02-01", "AddDomain")
|
||||
{}
|
||||
|
||||
AddDomainRequest::~AddDomainRequest()
|
||||
{}
|
||||
|
||||
std::string AddDomainRequest::getAccountId()const
|
||||
{
|
||||
return accountId_;
|
||||
}
|
||||
|
||||
void AddDomainRequest::setAccountId(const std::string& accountId)
|
||||
{
|
||||
accountId_ = accountId;
|
||||
setParameter("AccountId", accountId);
|
||||
}
|
||||
|
||||
std::string AddDomainRequest::getDomainName()const
|
||||
{
|
||||
return domainName_;
|
||||
}
|
||||
|
||||
void AddDomainRequest::setDomainName(const std::string& domainName)
|
||||
{
|
||||
domainName_ = domainName;
|
||||
setParameter("DomainName", domainName);
|
||||
}
|
||||
|
||||
std::string AddDomainRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void AddDomainRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
52
httpdns/src/model/AddDomainResult.cc
Normal file
52
httpdns/src/model/AddDomainResult.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/httpdns/model/AddDomainResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Httpdns;
|
||||
using namespace AlibabaCloud::Httpdns::Model;
|
||||
|
||||
AddDomainResult::AddDomainResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
AddDomainResult::AddDomainResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
AddDomainResult::~AddDomainResult()
|
||||
{}
|
||||
|
||||
void AddDomainResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["DomainName"].isNull())
|
||||
domainName_ = value["DomainName"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string AddDomainResult::getDomainName()const
|
||||
{
|
||||
return domainName_;
|
||||
}
|
||||
|
||||
60
httpdns/src/model/DeleteDomainRequest.cc
Normal file
60
httpdns/src/model/DeleteDomainRequest.cc
Normal file
@@ -0,0 +1,60 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/httpdns/model/DeleteDomainRequest.h>
|
||||
|
||||
using AlibabaCloud::Httpdns::Model::DeleteDomainRequest;
|
||||
|
||||
DeleteDomainRequest::DeleteDomainRequest() :
|
||||
RpcServiceRequest("httpdns", "2016-02-01", "DeleteDomain")
|
||||
{}
|
||||
|
||||
DeleteDomainRequest::~DeleteDomainRequest()
|
||||
{}
|
||||
|
||||
std::string DeleteDomainRequest::getAccountId()const
|
||||
{
|
||||
return accountId_;
|
||||
}
|
||||
|
||||
void DeleteDomainRequest::setAccountId(const std::string& accountId)
|
||||
{
|
||||
accountId_ = accountId;
|
||||
setParameter("AccountId", accountId);
|
||||
}
|
||||
|
||||
std::string DeleteDomainRequest::getDomainName()const
|
||||
{
|
||||
return domainName_;
|
||||
}
|
||||
|
||||
void DeleteDomainRequest::setDomainName(const std::string& domainName)
|
||||
{
|
||||
domainName_ = domainName;
|
||||
setParameter("DomainName", domainName);
|
||||
}
|
||||
|
||||
std::string DeleteDomainRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void DeleteDomainRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
52
httpdns/src/model/DeleteDomainResult.cc
Normal file
52
httpdns/src/model/DeleteDomainResult.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/httpdns/model/DeleteDomainResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Httpdns;
|
||||
using namespace AlibabaCloud::Httpdns::Model;
|
||||
|
||||
DeleteDomainResult::DeleteDomainResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DeleteDomainResult::DeleteDomainResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DeleteDomainResult::~DeleteDomainResult()
|
||||
{}
|
||||
|
||||
void DeleteDomainResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["DomainName"].isNull())
|
||||
domainName_ = value["DomainName"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string DeleteDomainResult::getDomainName()const
|
||||
{
|
||||
return domainName_;
|
||||
}
|
||||
|
||||
71
httpdns/src/model/DescribeDomainsRequest.cc
Normal file
71
httpdns/src/model/DescribeDomainsRequest.cc
Normal file
@@ -0,0 +1,71 @@
|
||||
/*
|
||||
* 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/httpdns/model/DescribeDomainsRequest.h>
|
||||
|
||||
using AlibabaCloud::Httpdns::Model::DescribeDomainsRequest;
|
||||
|
||||
DescribeDomainsRequest::DescribeDomainsRequest() :
|
||||
RpcServiceRequest("httpdns", "2016-02-01", "DescribeDomains")
|
||||
{}
|
||||
|
||||
DescribeDomainsRequest::~DescribeDomainsRequest()
|
||||
{}
|
||||
|
||||
std::string DescribeDomainsRequest::getAccountId()const
|
||||
{
|
||||
return accountId_;
|
||||
}
|
||||
|
||||
void DescribeDomainsRequest::setAccountId(const std::string& accountId)
|
||||
{
|
||||
accountId_ = accountId;
|
||||
setParameter("AccountId", accountId);
|
||||
}
|
||||
|
||||
long DescribeDomainsRequest::getPageSize()const
|
||||
{
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
void DescribeDomainsRequest::setPageSize(long pageSize)
|
||||
{
|
||||
pageSize_ = pageSize;
|
||||
setParameter("PageSize", std::to_string(pageSize));
|
||||
}
|
||||
|
||||
long DescribeDomainsRequest::getPageNumber()const
|
||||
{
|
||||
return pageNumber_;
|
||||
}
|
||||
|
||||
void DescribeDomainsRequest::setPageNumber(long pageNumber)
|
||||
{
|
||||
pageNumber_ = pageNumber;
|
||||
setParameter("PageNumber", std::to_string(pageNumber));
|
||||
}
|
||||
|
||||
std::string DescribeDomainsRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void DescribeDomainsRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
79
httpdns/src/model/DescribeDomainsResult.cc
Normal file
79
httpdns/src/model/DescribeDomainsResult.cc
Normal file
@@ -0,0 +1,79 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/httpdns/model/DescribeDomainsResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Httpdns;
|
||||
using namespace AlibabaCloud::Httpdns::Model;
|
||||
|
||||
DescribeDomainsResult::DescribeDomainsResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DescribeDomainsResult::DescribeDomainsResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DescribeDomainsResult::~DescribeDomainsResult()
|
||||
{}
|
||||
|
||||
void DescribeDomainsResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allDomains = value["Domains"]["Domain"];
|
||||
for (auto value : allDomains)
|
||||
{
|
||||
Domain domainsObject;
|
||||
if(!value["DomainName"].isNull())
|
||||
domainsObject.domainName = value["DomainName"].asString();
|
||||
domains_.push_back(domainsObject);
|
||||
}
|
||||
if(!value["TotalCount"].isNull())
|
||||
totalCount_ = std::stol(value["TotalCount"].asString());
|
||||
if(!value["PageNumber"].isNull())
|
||||
pageNumber_ = std::stol(value["PageNumber"].asString());
|
||||
if(!value["PageSize"].isNull())
|
||||
pageSize_ = std::stol(value["PageSize"].asString());
|
||||
|
||||
}
|
||||
|
||||
std::vector<DescribeDomainsResult::Domain> DescribeDomainsResult::getDomains()const
|
||||
{
|
||||
return domains_;
|
||||
}
|
||||
|
||||
long DescribeDomainsResult::getTotalCount()const
|
||||
{
|
||||
return totalCount_;
|
||||
}
|
||||
|
||||
long DescribeDomainsResult::getPageSize()const
|
||||
{
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
long DescribeDomainsResult::getPageNumber()const
|
||||
{
|
||||
return pageNumber_;
|
||||
}
|
||||
|
||||
38
httpdns/src/model/GetAccountInfoRequest.cc
Normal file
38
httpdns/src/model/GetAccountInfoRequest.cc
Normal file
@@ -0,0 +1,38 @@
|
||||
/*
|
||||
* 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/httpdns/model/GetAccountInfoRequest.h>
|
||||
|
||||
using AlibabaCloud::Httpdns::Model::GetAccountInfoRequest;
|
||||
|
||||
GetAccountInfoRequest::GetAccountInfoRequest() :
|
||||
RpcServiceRequest("httpdns", "2016-02-01", "GetAccountInfo")
|
||||
{}
|
||||
|
||||
GetAccountInfoRequest::~GetAccountInfoRequest()
|
||||
{}
|
||||
|
||||
std::string GetAccountInfoRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void GetAccountInfoRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
71
httpdns/src/model/GetAccountInfoResult.cc
Normal file
71
httpdns/src/model/GetAccountInfoResult.cc
Normal file
@@ -0,0 +1,71 @@
|
||||
/*
|
||||
* 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/httpdns/model/GetAccountInfoResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Httpdns;
|
||||
using namespace AlibabaCloud::Httpdns::Model;
|
||||
|
||||
GetAccountInfoResult::GetAccountInfoResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
GetAccountInfoResult::GetAccountInfoResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
GetAccountInfoResult::~GetAccountInfoResult()
|
||||
{}
|
||||
|
||||
void GetAccountInfoResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto accountInfoNode = value["AccountInfo"];
|
||||
if(!accountInfoNode["AccountId"].isNull())
|
||||
accountInfo_.accountId = accountInfoNode["AccountId"].asString();
|
||||
if(!accountInfoNode["MonthFreeCount"].isNull())
|
||||
accountInfo_.monthFreeCount = std::stoi(accountInfoNode["MonthFreeCount"].asString());
|
||||
if(!accountInfoNode["MonthHttpsResolveCount"].isNull())
|
||||
accountInfo_.monthHttpsResolveCount = std::stoi(accountInfoNode["MonthHttpsResolveCount"].asString());
|
||||
if(!accountInfoNode["MonthResolveCount"].isNull())
|
||||
accountInfo_.monthResolveCount = std::stoi(accountInfoNode["MonthResolveCount"].asString());
|
||||
if(!accountInfoNode["PackageCount"].isNull())
|
||||
accountInfo_.packageCount = std::stoi(accountInfoNode["PackageCount"].asString());
|
||||
if(!accountInfoNode["UserStatus"].isNull())
|
||||
accountInfo_.userStatus = std::stoi(accountInfoNode["UserStatus"].asString());
|
||||
if(!accountInfoNode["SignSecret"].isNull())
|
||||
accountInfo_.signSecret = accountInfoNode["SignSecret"].asString();
|
||||
if(!accountInfoNode["UnsignedEnabled"].isNull())
|
||||
accountInfo_.unsignedEnabled = accountInfoNode["UnsignedEnabled"].asString() == "true";
|
||||
if(!accountInfoNode["SignedCount"].isNull())
|
||||
accountInfo_.signedCount = std::stol(accountInfoNode["SignedCount"].asString());
|
||||
if(!accountInfoNode["UnsignedCount"].isNull())
|
||||
accountInfo_.unsignedCount = std::stol(accountInfoNode["UnsignedCount"].asString());
|
||||
|
||||
}
|
||||
|
||||
GetAccountInfoResult::AccountInfo GetAccountInfoResult::getAccountInfo()const
|
||||
{
|
||||
return accountInfo_;
|
||||
}
|
||||
|
||||
60
httpdns/src/model/GetResolveCountSummaryRequest.cc
Normal file
60
httpdns/src/model/GetResolveCountSummaryRequest.cc
Normal file
@@ -0,0 +1,60 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/httpdns/model/GetResolveCountSummaryRequest.h>
|
||||
|
||||
using AlibabaCloud::Httpdns::Model::GetResolveCountSummaryRequest;
|
||||
|
||||
GetResolveCountSummaryRequest::GetResolveCountSummaryRequest() :
|
||||
RpcServiceRequest("httpdns", "2016-02-01", "GetResolveCountSummary")
|
||||
{}
|
||||
|
||||
GetResolveCountSummaryRequest::~GetResolveCountSummaryRequest()
|
||||
{}
|
||||
|
||||
std::string GetResolveCountSummaryRequest::getGranularity()const
|
||||
{
|
||||
return granularity_;
|
||||
}
|
||||
|
||||
void GetResolveCountSummaryRequest::setGranularity(const std::string& granularity)
|
||||
{
|
||||
granularity_ = granularity;
|
||||
setParameter("Granularity", granularity);
|
||||
}
|
||||
|
||||
int GetResolveCountSummaryRequest::getTimeSpan()const
|
||||
{
|
||||
return timeSpan_;
|
||||
}
|
||||
|
||||
void GetResolveCountSummaryRequest::setTimeSpan(int timeSpan)
|
||||
{
|
||||
timeSpan_ = timeSpan;
|
||||
setParameter("TimeSpan", std::to_string(timeSpan));
|
||||
}
|
||||
|
||||
std::string GetResolveCountSummaryRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void GetResolveCountSummaryRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
59
httpdns/src/model/GetResolveCountSummaryResult.cc
Normal file
59
httpdns/src/model/GetResolveCountSummaryResult.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/httpdns/model/GetResolveCountSummaryResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Httpdns;
|
||||
using namespace AlibabaCloud::Httpdns::Model;
|
||||
|
||||
GetResolveCountSummaryResult::GetResolveCountSummaryResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
GetResolveCountSummaryResult::GetResolveCountSummaryResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
GetResolveCountSummaryResult::~GetResolveCountSummaryResult()
|
||||
{}
|
||||
|
||||
void GetResolveCountSummaryResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto resolveSummaryNode = value["ResolveSummary"];
|
||||
if(!resolveSummaryNode["Http"].isNull())
|
||||
resolveSummary_.http = std::stol(resolveSummaryNode["Http"].asString());
|
||||
if(!resolveSummaryNode["Https"].isNull())
|
||||
resolveSummary_.https = std::stol(resolveSummaryNode["Https"].asString());
|
||||
if(!resolveSummaryNode["Http6"].isNull())
|
||||
resolveSummary_.http6 = std::stol(resolveSummaryNode["Http6"].asString());
|
||||
if(!resolveSummaryNode["Https6"].isNull())
|
||||
resolveSummary_.https6 = std::stol(resolveSummaryNode["Https6"].asString());
|
||||
|
||||
}
|
||||
|
||||
GetResolveCountSummaryResult::ResolveSummary GetResolveCountSummaryResult::getResolveSummary()const
|
||||
{
|
||||
return resolveSummary_;
|
||||
}
|
||||
|
||||
82
httpdns/src/model/GetResolveStatisticsRequest.cc
Normal file
82
httpdns/src/model/GetResolveStatisticsRequest.cc
Normal file
@@ -0,0 +1,82 @@
|
||||
/*
|
||||
* 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/httpdns/model/GetResolveStatisticsRequest.h>
|
||||
|
||||
using AlibabaCloud::Httpdns::Model::GetResolveStatisticsRequest;
|
||||
|
||||
GetResolveStatisticsRequest::GetResolveStatisticsRequest() :
|
||||
RpcServiceRequest("httpdns", "2016-02-01", "GetResolveStatistics")
|
||||
{}
|
||||
|
||||
GetResolveStatisticsRequest::~GetResolveStatisticsRequest()
|
||||
{}
|
||||
|
||||
std::string GetResolveStatisticsRequest::getGranularity()const
|
||||
{
|
||||
return granularity_;
|
||||
}
|
||||
|
||||
void GetResolveStatisticsRequest::setGranularity(const std::string& granularity)
|
||||
{
|
||||
granularity_ = granularity;
|
||||
setParameter("Granularity", granularity);
|
||||
}
|
||||
|
||||
std::string GetResolveStatisticsRequest::getProtocolName()const
|
||||
{
|
||||
return protocolName_;
|
||||
}
|
||||
|
||||
void GetResolveStatisticsRequest::setProtocolName(const std::string& protocolName)
|
||||
{
|
||||
protocolName_ = protocolName;
|
||||
setParameter("ProtocolName", protocolName);
|
||||
}
|
||||
|
||||
std::string GetResolveStatisticsRequest::getDomainName()const
|
||||
{
|
||||
return domainName_;
|
||||
}
|
||||
|
||||
void GetResolveStatisticsRequest::setDomainName(const std::string& domainName)
|
||||
{
|
||||
domainName_ = domainName;
|
||||
setParameter("DomainName", domainName);
|
||||
}
|
||||
|
||||
int GetResolveStatisticsRequest::getTimeSpan()const
|
||||
{
|
||||
return timeSpan_;
|
||||
}
|
||||
|
||||
void GetResolveStatisticsRequest::setTimeSpan(int timeSpan)
|
||||
{
|
||||
timeSpan_ = timeSpan;
|
||||
setParameter("TimeSpan", std::to_string(timeSpan));
|
||||
}
|
||||
|
||||
std::string GetResolveStatisticsRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void GetResolveStatisticsRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
60
httpdns/src/model/GetResolveStatisticsResult.cc
Normal file
60
httpdns/src/model/GetResolveStatisticsResult.cc
Normal file
@@ -0,0 +1,60 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/httpdns/model/GetResolveStatisticsResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Httpdns;
|
||||
using namespace AlibabaCloud::Httpdns::Model;
|
||||
|
||||
GetResolveStatisticsResult::GetResolveStatisticsResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
GetResolveStatisticsResult::GetResolveStatisticsResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
GetResolveStatisticsResult::~GetResolveStatisticsResult()
|
||||
{}
|
||||
|
||||
void GetResolveStatisticsResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allDataPoints = value["DataPoints"]["DataPoint"];
|
||||
for (auto value : allDataPoints)
|
||||
{
|
||||
DataPoint dataPointsObject;
|
||||
if(!value["Time"].isNull())
|
||||
dataPointsObject.time = std::stoi(value["Time"].asString());
|
||||
if(!value["Count"].isNull())
|
||||
dataPointsObject.count = std::stoi(value["Count"].asString());
|
||||
dataPoints_.push_back(dataPointsObject);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
std::vector<GetResolveStatisticsResult::DataPoint> GetResolveStatisticsResult::getDataPoints()const
|
||||
{
|
||||
return dataPoints_;
|
||||
}
|
||||
|
||||
60
httpdns/src/model/ListDomainsRequest.cc
Normal file
60
httpdns/src/model/ListDomainsRequest.cc
Normal file
@@ -0,0 +1,60 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/httpdns/model/ListDomainsRequest.h>
|
||||
|
||||
using AlibabaCloud::Httpdns::Model::ListDomainsRequest;
|
||||
|
||||
ListDomainsRequest::ListDomainsRequest() :
|
||||
RpcServiceRequest("httpdns", "2016-02-01", "ListDomains")
|
||||
{}
|
||||
|
||||
ListDomainsRequest::~ListDomainsRequest()
|
||||
{}
|
||||
|
||||
int ListDomainsRequest::getPageSize()const
|
||||
{
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
void ListDomainsRequest::setPageSize(int pageSize)
|
||||
{
|
||||
pageSize_ = pageSize;
|
||||
setParameter("PageSize", std::to_string(pageSize));
|
||||
}
|
||||
|
||||
int ListDomainsRequest::getPageNumber()const
|
||||
{
|
||||
return pageNumber_;
|
||||
}
|
||||
|
||||
void ListDomainsRequest::setPageNumber(int pageNumber)
|
||||
{
|
||||
pageNumber_ = pageNumber;
|
||||
setParameter("PageNumber", std::to_string(pageNumber));
|
||||
}
|
||||
|
||||
std::string ListDomainsRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void ListDomainsRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
87
httpdns/src/model/ListDomainsResult.cc
Normal file
87
httpdns/src/model/ListDomainsResult.cc
Normal file
@@ -0,0 +1,87 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/httpdns/model/ListDomainsResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Httpdns;
|
||||
using namespace AlibabaCloud::Httpdns::Model;
|
||||
|
||||
ListDomainsResult::ListDomainsResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
ListDomainsResult::ListDomainsResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
ListDomainsResult::~ListDomainsResult()
|
||||
{}
|
||||
|
||||
void ListDomainsResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allDomainInfos = value["DomainInfos"]["DomainInfo"];
|
||||
for (auto value : allDomainInfos)
|
||||
{
|
||||
DomainInfo domainInfosObject;
|
||||
if(!value["DomainName"].isNull())
|
||||
domainInfosObject.domainName = value["DomainName"].asString();
|
||||
if(!value["Resolved"].isNull())
|
||||
domainInfosObject.resolved = std::stol(value["Resolved"].asString());
|
||||
if(!value["ResolvedHttps"].isNull())
|
||||
domainInfosObject.resolvedHttps = std::stol(value["ResolvedHttps"].asString());
|
||||
if(!value["Resolved6"].isNull())
|
||||
domainInfosObject.resolved6 = std::stol(value["Resolved6"].asString());
|
||||
if(!value["ResolvedHttps6"].isNull())
|
||||
domainInfosObject.resolvedHttps6 = std::stol(value["ResolvedHttps6"].asString());
|
||||
domainInfos_.push_back(domainInfosObject);
|
||||
}
|
||||
if(!value["TotalCount"].isNull())
|
||||
totalCount_ = std::stol(value["TotalCount"].asString());
|
||||
if(!value["PageNumber"].isNull())
|
||||
pageNumber_ = std::stol(value["PageNumber"].asString());
|
||||
if(!value["PageSize"].isNull())
|
||||
pageSize_ = std::stol(value["PageSize"].asString());
|
||||
|
||||
}
|
||||
|
||||
long ListDomainsResult::getTotalCount()const
|
||||
{
|
||||
return totalCount_;
|
||||
}
|
||||
|
||||
long ListDomainsResult::getPageSize()const
|
||||
{
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
long ListDomainsResult::getPageNumber()const
|
||||
{
|
||||
return pageNumber_;
|
||||
}
|
||||
|
||||
std::vector<ListDomainsResult::DomainInfo> ListDomainsResult::getDomainInfos()const
|
||||
{
|
||||
return domainInfos_;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user