Fixed SDK update delay.
This commit is contained in:
51
cdn/src/model/DescribeBlockedRegionsRequest.cc
Normal file
51
cdn/src/model/DescribeBlockedRegionsRequest.cc
Normal file
@@ -0,0 +1,51 @@
|
||||
/*
|
||||
* 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/cdn/model/DescribeBlockedRegionsRequest.h>
|
||||
|
||||
using AlibabaCloud::Cdn::Model::DescribeBlockedRegionsRequest;
|
||||
|
||||
DescribeBlockedRegionsRequest::DescribeBlockedRegionsRequest() :
|
||||
RpcServiceRequest("cdn", "2018-05-10", "DescribeBlockedRegions")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Get);
|
||||
}
|
||||
|
||||
DescribeBlockedRegionsRequest::~DescribeBlockedRegionsRequest()
|
||||
{}
|
||||
|
||||
std::string DescribeBlockedRegionsRequest::getLanguage()const
|
||||
{
|
||||
return language_;
|
||||
}
|
||||
|
||||
void DescribeBlockedRegionsRequest::setLanguage(const std::string& language)
|
||||
{
|
||||
language_ = language;
|
||||
setParameter("Language", language);
|
||||
}
|
||||
|
||||
long DescribeBlockedRegionsRequest::getOwnerId()const
|
||||
{
|
||||
return ownerId_;
|
||||
}
|
||||
|
||||
void DescribeBlockedRegionsRequest::setOwnerId(long ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
61
cdn/src/model/DescribeBlockedRegionsResult.cc
Normal file
61
cdn/src/model/DescribeBlockedRegionsResult.cc
Normal file
@@ -0,0 +1,61 @@
|
||||
/*
|
||||
* 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/cdn/model/DescribeBlockedRegionsResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Cdn;
|
||||
using namespace AlibabaCloud::Cdn::Model;
|
||||
|
||||
DescribeBlockedRegionsResult::DescribeBlockedRegionsResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DescribeBlockedRegionsResult::DescribeBlockedRegionsResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DescribeBlockedRegionsResult::~DescribeBlockedRegionsResult()
|
||||
{}
|
||||
|
||||
void DescribeBlockedRegionsResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allInfoListNode = value["InfoList"]["InfoItem"];
|
||||
for (auto valueInfoListInfoItem : allInfoListNode)
|
||||
{
|
||||
InfoItem infoListObject;
|
||||
if(!valueInfoListInfoItem["CountriesAndRegions"].isNull())
|
||||
infoListObject.countriesAndRegions = valueInfoListInfoItem["CountriesAndRegions"].asString();
|
||||
if(!valueInfoListInfoItem["CountriesAndRegionsName"].isNull())
|
||||
infoListObject.countriesAndRegionsName = valueInfoListInfoItem["CountriesAndRegionsName"].asString();
|
||||
if(!valueInfoListInfoItem["Continent"].isNull())
|
||||
infoListObject.continent = valueInfoListInfoItem["Continent"].asString();
|
||||
infoList_.push_back(infoListObject);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
std::vector<DescribeBlockedRegionsResult::InfoItem> DescribeBlockedRegionsResult::getInfoList()const
|
||||
{
|
||||
return infoList_;
|
||||
}
|
||||
|
||||
62
cdn/src/model/DescribeConfigGroupDetailRequest.cc
Normal file
62
cdn/src/model/DescribeConfigGroupDetailRequest.cc
Normal file
@@ -0,0 +1,62 @@
|
||||
/*
|
||||
* 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/cdn/model/DescribeConfigGroupDetailRequest.h>
|
||||
|
||||
using AlibabaCloud::Cdn::Model::DescribeConfigGroupDetailRequest;
|
||||
|
||||
DescribeConfigGroupDetailRequest::DescribeConfigGroupDetailRequest() :
|
||||
RpcServiceRequest("cdn", "2018-05-10", "DescribeConfigGroupDetail")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DescribeConfigGroupDetailRequest::~DescribeConfigGroupDetailRequest()
|
||||
{}
|
||||
|
||||
std::string DescribeConfigGroupDetailRequest::getConfigGroupName()const
|
||||
{
|
||||
return configGroupName_;
|
||||
}
|
||||
|
||||
void DescribeConfigGroupDetailRequest::setConfigGroupName(const std::string& configGroupName)
|
||||
{
|
||||
configGroupName_ = configGroupName;
|
||||
setParameter("ConfigGroupName", configGroupName);
|
||||
}
|
||||
|
||||
long DescribeConfigGroupDetailRequest::getOwnerId()const
|
||||
{
|
||||
return ownerId_;
|
||||
}
|
||||
|
||||
void DescribeConfigGroupDetailRequest::setOwnerId(long ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
std::string DescribeConfigGroupDetailRequest::getConfigGroupId()const
|
||||
{
|
||||
return configGroupId_;
|
||||
}
|
||||
|
||||
void DescribeConfigGroupDetailRequest::setConfigGroupId(const std::string& configGroupId)
|
||||
{
|
||||
configGroupId_ = configGroupId;
|
||||
setParameter("ConfigGroupId", configGroupId);
|
||||
}
|
||||
|
||||
86
cdn/src/model/DescribeConfigGroupDetailResult.cc
Normal file
86
cdn/src/model/DescribeConfigGroupDetailResult.cc
Normal file
@@ -0,0 +1,86 @@
|
||||
/*
|
||||
* 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/cdn/model/DescribeConfigGroupDetailResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Cdn;
|
||||
using namespace AlibabaCloud::Cdn::Model;
|
||||
|
||||
DescribeConfigGroupDetailResult::DescribeConfigGroupDetailResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DescribeConfigGroupDetailResult::DescribeConfigGroupDetailResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DescribeConfigGroupDetailResult::~DescribeConfigGroupDetailResult()
|
||||
{}
|
||||
|
||||
void DescribeConfigGroupDetailResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["ConfigGroupId"].isNull())
|
||||
configGroupId_ = value["ConfigGroupId"].asString();
|
||||
if(!value["ConfigGroupName"].isNull())
|
||||
configGroupName_ = value["ConfigGroupName"].asString();
|
||||
if(!value["Description"].isNull())
|
||||
description_ = value["Description"].asString();
|
||||
if(!value["BizName"].isNull())
|
||||
bizName_ = value["BizName"].asString();
|
||||
if(!value["CreateTime"].isNull())
|
||||
createTime_ = value["CreateTime"].asString();
|
||||
if(!value["UpdateTime"].isNull())
|
||||
updateTime_ = value["UpdateTime"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string DescribeConfigGroupDetailResult::getConfigGroupId()const
|
||||
{
|
||||
return configGroupId_;
|
||||
}
|
||||
|
||||
std::string DescribeConfigGroupDetailResult::getDescription()const
|
||||
{
|
||||
return description_;
|
||||
}
|
||||
|
||||
std::string DescribeConfigGroupDetailResult::getCreateTime()const
|
||||
{
|
||||
return createTime_;
|
||||
}
|
||||
|
||||
std::string DescribeConfigGroupDetailResult::getConfigGroupName()const
|
||||
{
|
||||
return configGroupName_;
|
||||
}
|
||||
|
||||
std::string DescribeConfigGroupDetailResult::getUpdateTime()const
|
||||
{
|
||||
return updateTime_;
|
||||
}
|
||||
|
||||
std::string DescribeConfigGroupDetailResult::getBizName()const
|
||||
{
|
||||
return bizName_;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user