Update DeleteDcdnDomain.
This commit is contained in:
73
dcdn/src/model/CreateDcdnDomainOfflineLogDeliveryRequest.cc
Normal file
73
dcdn/src/model/CreateDcdnDomainOfflineLogDeliveryRequest.cc
Normal file
@@ -0,0 +1,73 @@
|
||||
/*
|
||||
* 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/dcdn/model/CreateDcdnDomainOfflineLogDeliveryRequest.h>
|
||||
|
||||
using AlibabaCloud::Dcdn::Model::CreateDcdnDomainOfflineLogDeliveryRequest;
|
||||
|
||||
CreateDcdnDomainOfflineLogDeliveryRequest::CreateDcdnDomainOfflineLogDeliveryRequest() :
|
||||
RpcServiceRequest("dcdn", "2018-01-15", "CreateDcdnDomainOfflineLogDelivery")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
CreateDcdnDomainOfflineLogDeliveryRequest::~CreateDcdnDomainOfflineLogDeliveryRequest()
|
||||
{}
|
||||
|
||||
std::string CreateDcdnDomainOfflineLogDeliveryRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void CreateDcdnDomainOfflineLogDeliveryRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setBodyParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
std::string CreateDcdnDomainOfflineLogDeliveryRequest::getDomainName()const
|
||||
{
|
||||
return domainName_;
|
||||
}
|
||||
|
||||
void CreateDcdnDomainOfflineLogDeliveryRequest::setDomainName(const std::string& domainName)
|
||||
{
|
||||
domainName_ = domainName;
|
||||
setBodyParameter("DomainName", domainName);
|
||||
}
|
||||
|
||||
long CreateDcdnDomainOfflineLogDeliveryRequest::getOwnerId()const
|
||||
{
|
||||
return ownerId_;
|
||||
}
|
||||
|
||||
void CreateDcdnDomainOfflineLogDeliveryRequest::setOwnerId(long ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
std::string CreateDcdnDomainOfflineLogDeliveryRequest::getFieldId()const
|
||||
{
|
||||
return fieldId_;
|
||||
}
|
||||
|
||||
void CreateDcdnDomainOfflineLogDeliveryRequest::setFieldId(const std::string& fieldId)
|
||||
{
|
||||
fieldId_ = fieldId;
|
||||
setBodyParameter("FieldId", fieldId);
|
||||
}
|
||||
|
||||
44
dcdn/src/model/CreateDcdnDomainOfflineLogDeliveryResult.cc
Normal file
44
dcdn/src/model/CreateDcdnDomainOfflineLogDeliveryResult.cc
Normal file
@@ -0,0 +1,44 @@
|
||||
/*
|
||||
* 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/dcdn/model/CreateDcdnDomainOfflineLogDeliveryResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Dcdn;
|
||||
using namespace AlibabaCloud::Dcdn::Model;
|
||||
|
||||
CreateDcdnDomainOfflineLogDeliveryResult::CreateDcdnDomainOfflineLogDeliveryResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
CreateDcdnDomainOfflineLogDeliveryResult::CreateDcdnDomainOfflineLogDeliveryResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
CreateDcdnDomainOfflineLogDeliveryResult::~CreateDcdnDomainOfflineLogDeliveryResult()
|
||||
{}
|
||||
|
||||
void CreateDcdnDomainOfflineLogDeliveryResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
|
||||
}
|
||||
|
||||
@@ -60,17 +60,6 @@ void DeleteDcdnDomainRequest::setOwnerId(long ownerId)
|
||||
setParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
std::string DeleteDcdnDomainRequest::getResourceGroupId()const
|
||||
{
|
||||
return resourceGroupId_;
|
||||
}
|
||||
|
||||
void DeleteDcdnDomainRequest::setResourceGroupId(const std::string& resourceGroupId)
|
||||
{
|
||||
resourceGroupId_ = resourceGroupId;
|
||||
setParameter("ResourceGroupId", resourceGroupId);
|
||||
}
|
||||
|
||||
std::string DeleteDcdnDomainRequest::getSecurityToken()const
|
||||
{
|
||||
return securityToken_;
|
||||
|
||||
@@ -27,28 +27,6 @@ DeleteDcdnIpaDomainRequest::DeleteDcdnIpaDomainRequest() :
|
||||
DeleteDcdnIpaDomainRequest::~DeleteDcdnIpaDomainRequest()
|
||||
{}
|
||||
|
||||
std::string DeleteDcdnIpaDomainRequest::getResourceGroupId()const
|
||||
{
|
||||
return resourceGroupId_;
|
||||
}
|
||||
|
||||
void DeleteDcdnIpaDomainRequest::setResourceGroupId(const std::string& resourceGroupId)
|
||||
{
|
||||
resourceGroupId_ = resourceGroupId;
|
||||
setParameter("ResourceGroupId", resourceGroupId);
|
||||
}
|
||||
|
||||
std::string DeleteDcdnIpaDomainRequest::getSecurityToken()const
|
||||
{
|
||||
return securityToken_;
|
||||
}
|
||||
|
||||
void DeleteDcdnIpaDomainRequest::setSecurityToken(const std::string& securityToken)
|
||||
{
|
||||
securityToken_ = securityToken;
|
||||
setParameter("SecurityToken", securityToken);
|
||||
}
|
||||
|
||||
std::string DeleteDcdnIpaDomainRequest::getOwnerAccount()const
|
||||
{
|
||||
return ownerAccount_;
|
||||
@@ -82,3 +60,14 @@ void DeleteDcdnIpaDomainRequest::setOwnerId(long ownerId)
|
||||
setParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
std::string DeleteDcdnIpaDomainRequest::getSecurityToken()const
|
||||
{
|
||||
return securityToken_;
|
||||
}
|
||||
|
||||
void DeleteDcdnIpaDomainRequest::setSecurityToken(const std::string& securityToken)
|
||||
{
|
||||
securityToken_ = securityToken;
|
||||
setParameter("SecurityToken", securityToken);
|
||||
}
|
||||
|
||||
|
||||
@@ -27,17 +27,6 @@ DescribeDcdnDomainTopReferVisitRequest::DescribeDcdnDomainTopReferVisitRequest()
|
||||
DescribeDcdnDomainTopReferVisitRequest::~DescribeDcdnDomainTopReferVisitRequest()
|
||||
{}
|
||||
|
||||
std::string DescribeDcdnDomainTopReferVisitRequest::getDomainName()const
|
||||
{
|
||||
return domainName_;
|
||||
}
|
||||
|
||||
void DescribeDcdnDomainTopReferVisitRequest::setDomainName(const std::string& domainName)
|
||||
{
|
||||
domainName_ = domainName;
|
||||
setParameter("DomainName", domainName);
|
||||
}
|
||||
|
||||
std::string DescribeDcdnDomainTopReferVisitRequest::getStartTime()const
|
||||
{
|
||||
return startTime_;
|
||||
@@ -49,6 +38,17 @@ void DescribeDcdnDomainTopReferVisitRequest::setStartTime(const std::string& sta
|
||||
setParameter("StartTime", startTime);
|
||||
}
|
||||
|
||||
std::string DescribeDcdnDomainTopReferVisitRequest::getDomainName()const
|
||||
{
|
||||
return domainName_;
|
||||
}
|
||||
|
||||
void DescribeDcdnDomainTopReferVisitRequest::setDomainName(const std::string& domainName)
|
||||
{
|
||||
domainName_ = domainName;
|
||||
setParameter("DomainName", domainName);
|
||||
}
|
||||
|
||||
long DescribeDcdnDomainTopReferVisitRequest::getOwnerId()const
|
||||
{
|
||||
return ownerId_;
|
||||
@@ -60,17 +60,6 @@ void DescribeDcdnDomainTopReferVisitRequest::setOwnerId(long ownerId)
|
||||
setParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
std::string DescribeDcdnDomainTopReferVisitRequest::getSecurityToken()const
|
||||
{
|
||||
return securityToken_;
|
||||
}
|
||||
|
||||
void DescribeDcdnDomainTopReferVisitRequest::setSecurityToken(const std::string& securityToken)
|
||||
{
|
||||
securityToken_ = securityToken;
|
||||
setParameter("SecurityToken", securityToken);
|
||||
}
|
||||
|
||||
std::string DescribeDcdnDomainTopReferVisitRequest::getSortBy()const
|
||||
{
|
||||
return sortBy_;
|
||||
|
||||
40
dcdn/src/model/DescribeDcdnOfflineLogDeliveryFieldRequest.cc
Normal file
40
dcdn/src/model/DescribeDcdnOfflineLogDeliveryFieldRequest.cc
Normal file
@@ -0,0 +1,40 @@
|
||||
/*
|
||||
* 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/dcdn/model/DescribeDcdnOfflineLogDeliveryFieldRequest.h>
|
||||
|
||||
using AlibabaCloud::Dcdn::Model::DescribeDcdnOfflineLogDeliveryFieldRequest;
|
||||
|
||||
DescribeDcdnOfflineLogDeliveryFieldRequest::DescribeDcdnOfflineLogDeliveryFieldRequest() :
|
||||
RpcServiceRequest("dcdn", "2018-01-15", "DescribeDcdnOfflineLogDeliveryField")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DescribeDcdnOfflineLogDeliveryFieldRequest::~DescribeDcdnOfflineLogDeliveryFieldRequest()
|
||||
{}
|
||||
|
||||
long DescribeDcdnOfflineLogDeliveryFieldRequest::getOwnerId()const
|
||||
{
|
||||
return ownerId_;
|
||||
}
|
||||
|
||||
void DescribeDcdnOfflineLogDeliveryFieldRequest::setOwnerId(long ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
61
dcdn/src/model/DescribeDcdnOfflineLogDeliveryFieldResult.cc
Normal file
61
dcdn/src/model/DescribeDcdnOfflineLogDeliveryFieldResult.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/dcdn/model/DescribeDcdnOfflineLogDeliveryFieldResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Dcdn;
|
||||
using namespace AlibabaCloud::Dcdn::Model;
|
||||
|
||||
DescribeDcdnOfflineLogDeliveryFieldResult::DescribeDcdnOfflineLogDeliveryFieldResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DescribeDcdnOfflineLogDeliveryFieldResult::DescribeDcdnOfflineLogDeliveryFieldResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DescribeDcdnOfflineLogDeliveryFieldResult::~DescribeDcdnOfflineLogDeliveryFieldResult()
|
||||
{}
|
||||
|
||||
void DescribeDcdnOfflineLogDeliveryFieldResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allFieldsNode = value["Fields"]["Field"];
|
||||
for (auto valueFieldsField : allFieldsNode)
|
||||
{
|
||||
Field fieldsObject;
|
||||
if(!valueFieldsField["FieldId"].isNull())
|
||||
fieldsObject.fieldId = valueFieldsField["FieldId"].asString();
|
||||
if(!valueFieldsField["FieldName"].isNull())
|
||||
fieldsObject.fieldName = valueFieldsField["FieldName"].asString();
|
||||
if(!valueFieldsField["Description"].isNull())
|
||||
fieldsObject.description = valueFieldsField["Description"].asString();
|
||||
fields_.push_back(fieldsObject);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
std::vector<DescribeDcdnOfflineLogDeliveryFieldResult::Field> DescribeDcdnOfflineLogDeliveryFieldResult::getFields()const
|
||||
{
|
||||
return fields_;
|
||||
}
|
||||
|
||||
@@ -0,0 +1,40 @@
|
||||
/*
|
||||
* 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/dcdn/model/DescribeDcdnOfflineLogDeliveryRegionsRequest.h>
|
||||
|
||||
using AlibabaCloud::Dcdn::Model::DescribeDcdnOfflineLogDeliveryRegionsRequest;
|
||||
|
||||
DescribeDcdnOfflineLogDeliveryRegionsRequest::DescribeDcdnOfflineLogDeliveryRegionsRequest() :
|
||||
RpcServiceRequest("dcdn", "2018-01-15", "DescribeDcdnOfflineLogDeliveryRegions")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DescribeDcdnOfflineLogDeliveryRegionsRequest::~DescribeDcdnOfflineLogDeliveryRegionsRequest()
|
||||
{}
|
||||
|
||||
long DescribeDcdnOfflineLogDeliveryRegionsRequest::getOwnerId()const
|
||||
{
|
||||
return ownerId_;
|
||||
}
|
||||
|
||||
void DescribeDcdnOfflineLogDeliveryRegionsRequest::setOwnerId(long ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
@@ -0,0 +1,73 @@
|
||||
/*
|
||||
* 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/dcdn/model/DescribeDcdnOfflineLogDeliveryRegionsResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Dcdn;
|
||||
using namespace AlibabaCloud::Dcdn::Model;
|
||||
|
||||
DescribeDcdnOfflineLogDeliveryRegionsResult::DescribeDcdnOfflineLogDeliveryRegionsResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DescribeDcdnOfflineLogDeliveryRegionsResult::DescribeDcdnOfflineLogDeliveryRegionsResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DescribeDcdnOfflineLogDeliveryRegionsResult::~DescribeDcdnOfflineLogDeliveryRegionsResult()
|
||||
{}
|
||||
|
||||
void DescribeDcdnOfflineLogDeliveryRegionsResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allAreasNode = value["Areas"]["Area"];
|
||||
for (auto valueAreasArea : allAreasNode)
|
||||
{
|
||||
Area areasObject;
|
||||
if(!valueAreasArea["AreaId"].isNull())
|
||||
areasObject.areaId = valueAreasArea["AreaId"].asString();
|
||||
if(!valueAreasArea["AreaName"].isNull())
|
||||
areasObject.areaName = valueAreasArea["AreaName"].asString();
|
||||
auto allRegionInfosNode = valueAreasArea["RegionInfos"]["RegionInfo"];
|
||||
for (auto valueAreasAreaRegionInfosRegionInfo : allRegionInfosNode)
|
||||
{
|
||||
Area::RegionInfo regionInfosObject;
|
||||
if(!valueAreasAreaRegionInfosRegionInfo["RegionId"].isNull())
|
||||
regionInfosObject.regionId = valueAreasAreaRegionInfosRegionInfo["RegionId"].asString();
|
||||
if(!valueAreasAreaRegionInfosRegionInfo["RegionName"].isNull())
|
||||
regionInfosObject.regionName = valueAreasAreaRegionInfosRegionInfo["RegionName"].asString();
|
||||
if(!valueAreasAreaRegionInfosRegionInfo["IsOverseas"].isNull())
|
||||
regionInfosObject.isOverseas = valueAreasAreaRegionInfosRegionInfo["IsOverseas"].asString();
|
||||
if(!valueAreasAreaRegionInfosRegionInfo["OssEndpoint"].isNull())
|
||||
regionInfosObject.ossEndpoint = valueAreasAreaRegionInfosRegionInfo["OssEndpoint"].asString();
|
||||
areasObject.regionInfos.push_back(regionInfosObject);
|
||||
}
|
||||
areas_.push_back(areasObject);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
std::vector<DescribeDcdnOfflineLogDeliveryRegionsResult::Area> DescribeDcdnOfflineLogDeliveryRegionsResult::getAreas()const
|
||||
{
|
||||
return areas_;
|
||||
}
|
||||
|
||||
40
dcdn/src/model/DescribeDcdnOfflineLogDeliveryRequest.cc
Normal file
40
dcdn/src/model/DescribeDcdnOfflineLogDeliveryRequest.cc
Normal file
@@ -0,0 +1,40 @@
|
||||
/*
|
||||
* 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/dcdn/model/DescribeDcdnOfflineLogDeliveryRequest.h>
|
||||
|
||||
using AlibabaCloud::Dcdn::Model::DescribeDcdnOfflineLogDeliveryRequest;
|
||||
|
||||
DescribeDcdnOfflineLogDeliveryRequest::DescribeDcdnOfflineLogDeliveryRequest() :
|
||||
RpcServiceRequest("dcdn", "2018-01-15", "DescribeDcdnOfflineLogDelivery")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DescribeDcdnOfflineLogDeliveryRequest::~DescribeDcdnOfflineLogDeliveryRequest()
|
||||
{}
|
||||
|
||||
long DescribeDcdnOfflineLogDeliveryRequest::getOwnerId()const
|
||||
{
|
||||
return ownerId_;
|
||||
}
|
||||
|
||||
void DescribeDcdnOfflineLogDeliveryRequest::setOwnerId(long ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
100
dcdn/src/model/DescribeDcdnOfflineLogDeliveryResult.cc
Normal file
100
dcdn/src/model/DescribeDcdnOfflineLogDeliveryResult.cc
Normal file
@@ -0,0 +1,100 @@
|
||||
/*
|
||||
* 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/dcdn/model/DescribeDcdnOfflineLogDeliveryResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Dcdn;
|
||||
using namespace AlibabaCloud::Dcdn::Model;
|
||||
|
||||
DescribeDcdnOfflineLogDeliveryResult::DescribeDcdnOfflineLogDeliveryResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DescribeDcdnOfflineLogDeliveryResult::DescribeDcdnOfflineLogDeliveryResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DescribeDcdnOfflineLogDeliveryResult::~DescribeDcdnOfflineLogDeliveryResult()
|
||||
{}
|
||||
|
||||
void DescribeDcdnOfflineLogDeliveryResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allDomainsNode = value["Domains"]["Domain"];
|
||||
for (auto valueDomainsDomain : allDomainsNode)
|
||||
{
|
||||
Domain domainsObject;
|
||||
if(!valueDomainsDomain["DomainName"].isNull())
|
||||
domainsObject.domainName = valueDomainsDomain["DomainName"].asString();
|
||||
domains_.push_back(domainsObject);
|
||||
}
|
||||
auto allRegionsNode = value["Regions"]["Region"];
|
||||
for (auto valueRegionsRegion : allRegionsNode)
|
||||
{
|
||||
Region regionsObject;
|
||||
if(!valueRegionsRegion["OssId"].isNull())
|
||||
regionsObject.ossId = std::stoi(valueRegionsRegion["OssId"].asString());
|
||||
if(!valueRegionsRegion["OssBucketName"].isNull())
|
||||
regionsObject.ossBucketName = valueRegionsRegion["OssBucketName"].asString();
|
||||
if(!valueRegionsRegion["OssPathPrefix"].isNull())
|
||||
regionsObject.ossPathPrefix = valueRegionsRegion["OssPathPrefix"].asString();
|
||||
if(!valueRegionsRegion["DlaVcName"].isNull())
|
||||
regionsObject.dlaVcName = valueRegionsRegion["DlaVcName"].asString();
|
||||
if(!valueRegionsRegion["RegionId"].isNull())
|
||||
regionsObject.regionId = valueRegionsRegion["RegionId"].asString();
|
||||
if(!valueRegionsRegion["RegionName"].isNull())
|
||||
regionsObject.regionName = valueRegionsRegion["RegionName"].asString();
|
||||
if(!valueRegionsRegion["IsOverseas"].isNull())
|
||||
regionsObject.isOverseas = valueRegionsRegion["IsOverseas"].asString();
|
||||
if(!valueRegionsRegion["OssEndpoint"].isNull())
|
||||
regionsObject.ossEndpoint = valueRegionsRegion["OssEndpoint"].asString();
|
||||
if(!valueRegionsRegion["AreaId"].isNull())
|
||||
regionsObject.areaId = valueRegionsRegion["AreaId"].asString();
|
||||
if(!valueRegionsRegion["AreaName"].isNull())
|
||||
regionsObject.areaName = valueRegionsRegion["AreaName"].asString();
|
||||
if(!valueRegionsRegion["DlaDbName"].isNull())
|
||||
regionsObject.dlaDbName = valueRegionsRegion["DlaDbName"].asString();
|
||||
if(!valueRegionsRegion["DlaTableName"].isNull())
|
||||
regionsObject.dlaTableName = valueRegionsRegion["DlaTableName"].asString();
|
||||
regions_.push_back(regionsObject);
|
||||
}
|
||||
auto allFields = value["Fields"]["Field"];
|
||||
for (const auto &item : allFields)
|
||||
fields_.push_back(item.asString());
|
||||
|
||||
}
|
||||
|
||||
std::vector<DescribeDcdnOfflineLogDeliveryResult::Domain> DescribeDcdnOfflineLogDeliveryResult::getDomains()const
|
||||
{
|
||||
return domains_;
|
||||
}
|
||||
|
||||
std::vector<std::string> DescribeDcdnOfflineLogDeliveryResult::getFields()const
|
||||
{
|
||||
return fields_;
|
||||
}
|
||||
|
||||
std::vector<DescribeDcdnOfflineLogDeliveryResult::Region> DescribeDcdnOfflineLogDeliveryResult::getRegions()const
|
||||
{
|
||||
return regions_;
|
||||
}
|
||||
|
||||
@@ -0,0 +1,40 @@
|
||||
/*
|
||||
* 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/dcdn/model/DescribeDcdnOfflineLogDeliveryStatusRequest.h>
|
||||
|
||||
using AlibabaCloud::Dcdn::Model::DescribeDcdnOfflineLogDeliveryStatusRequest;
|
||||
|
||||
DescribeDcdnOfflineLogDeliveryStatusRequest::DescribeDcdnOfflineLogDeliveryStatusRequest() :
|
||||
RpcServiceRequest("dcdn", "2018-01-15", "DescribeDcdnOfflineLogDeliveryStatus")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DescribeDcdnOfflineLogDeliveryStatusRequest::~DescribeDcdnOfflineLogDeliveryStatusRequest()
|
||||
{}
|
||||
|
||||
long DescribeDcdnOfflineLogDeliveryStatusRequest::getOwnerId()const
|
||||
{
|
||||
return ownerId_;
|
||||
}
|
||||
|
||||
void DescribeDcdnOfflineLogDeliveryStatusRequest::setOwnerId(long ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
51
dcdn/src/model/DescribeDcdnOfflineLogDeliveryStatusResult.cc
Normal file
51
dcdn/src/model/DescribeDcdnOfflineLogDeliveryStatusResult.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/dcdn/model/DescribeDcdnOfflineLogDeliveryStatusResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Dcdn;
|
||||
using namespace AlibabaCloud::Dcdn::Model;
|
||||
|
||||
DescribeDcdnOfflineLogDeliveryStatusResult::DescribeDcdnOfflineLogDeliveryStatusResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DescribeDcdnOfflineLogDeliveryStatusResult::DescribeDcdnOfflineLogDeliveryStatusResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DescribeDcdnOfflineLogDeliveryStatusResult::~DescribeDcdnOfflineLogDeliveryStatusResult()
|
||||
{}
|
||||
|
||||
void DescribeDcdnOfflineLogDeliveryStatusResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["OpenStatus"].isNull())
|
||||
openStatus_ = value["OpenStatus"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string DescribeDcdnOfflineLogDeliveryStatusResult::getOpenStatus()const
|
||||
{
|
||||
return openStatus_;
|
||||
}
|
||||
|
||||
84
dcdn/src/model/DescribeDcdnUserDomainsByFuncRequest.cc
Normal file
84
dcdn/src/model/DescribeDcdnUserDomainsByFuncRequest.cc
Normal file
@@ -0,0 +1,84 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/dcdn/model/DescribeDcdnUserDomainsByFuncRequest.h>
|
||||
|
||||
using AlibabaCloud::Dcdn::Model::DescribeDcdnUserDomainsByFuncRequest;
|
||||
|
||||
DescribeDcdnUserDomainsByFuncRequest::DescribeDcdnUserDomainsByFuncRequest() :
|
||||
RpcServiceRequest("dcdn", "2018-01-15", "DescribeDcdnUserDomainsByFunc")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DescribeDcdnUserDomainsByFuncRequest::~DescribeDcdnUserDomainsByFuncRequest()
|
||||
{}
|
||||
|
||||
int DescribeDcdnUserDomainsByFuncRequest::getPageNumber()const
|
||||
{
|
||||
return pageNumber_;
|
||||
}
|
||||
|
||||
void DescribeDcdnUserDomainsByFuncRequest::setPageNumber(int pageNumber)
|
||||
{
|
||||
pageNumber_ = pageNumber;
|
||||
setParameter("PageNumber", std::to_string(pageNumber));
|
||||
}
|
||||
|
||||
std::string DescribeDcdnUserDomainsByFuncRequest::getResourceGroupId()const
|
||||
{
|
||||
return resourceGroupId_;
|
||||
}
|
||||
|
||||
void DescribeDcdnUserDomainsByFuncRequest::setResourceGroupId(const std::string& resourceGroupId)
|
||||
{
|
||||
resourceGroupId_ = resourceGroupId;
|
||||
setParameter("ResourceGroupId", resourceGroupId);
|
||||
}
|
||||
|
||||
int DescribeDcdnUserDomainsByFuncRequest::getPageSize()const
|
||||
{
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
void DescribeDcdnUserDomainsByFuncRequest::setPageSize(int pageSize)
|
||||
{
|
||||
pageSize_ = pageSize;
|
||||
setParameter("PageSize", std::to_string(pageSize));
|
||||
}
|
||||
|
||||
long DescribeDcdnUserDomainsByFuncRequest::getOwnerId()const
|
||||
{
|
||||
return ownerId_;
|
||||
}
|
||||
|
||||
void DescribeDcdnUserDomainsByFuncRequest::setOwnerId(long ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
int DescribeDcdnUserDomainsByFuncRequest::getFuncId()const
|
||||
{
|
||||
return funcId_;
|
||||
}
|
||||
|
||||
void DescribeDcdnUserDomainsByFuncRequest::setFuncId(int funcId)
|
||||
{
|
||||
funcId_ = funcId;
|
||||
setParameter("FuncId", std::to_string(funcId));
|
||||
}
|
||||
|
||||
112
dcdn/src/model/DescribeDcdnUserDomainsByFuncResult.cc
Normal file
112
dcdn/src/model/DescribeDcdnUserDomainsByFuncResult.cc
Normal file
@@ -0,0 +1,112 @@
|
||||
/*
|
||||
* 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/dcdn/model/DescribeDcdnUserDomainsByFuncResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Dcdn;
|
||||
using namespace AlibabaCloud::Dcdn::Model;
|
||||
|
||||
DescribeDcdnUserDomainsByFuncResult::DescribeDcdnUserDomainsByFuncResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DescribeDcdnUserDomainsByFuncResult::DescribeDcdnUserDomainsByFuncResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DescribeDcdnUserDomainsByFuncResult::~DescribeDcdnUserDomainsByFuncResult()
|
||||
{}
|
||||
|
||||
void DescribeDcdnUserDomainsByFuncResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allDomainsNode = value["Domains"]["PageData"];
|
||||
for (auto valueDomainsPageData : allDomainsNode)
|
||||
{
|
||||
PageData domainsObject;
|
||||
if(!valueDomainsPageData["DomainName"].isNull())
|
||||
domainsObject.domainName = valueDomainsPageData["DomainName"].asString();
|
||||
if(!valueDomainsPageData["Cname"].isNull())
|
||||
domainsObject.cname = valueDomainsPageData["Cname"].asString();
|
||||
if(!valueDomainsPageData["CdnType"].isNull())
|
||||
domainsObject.cdnType = valueDomainsPageData["CdnType"].asString();
|
||||
if(!valueDomainsPageData["DomainStatus"].isNull())
|
||||
domainsObject.domainStatus = valueDomainsPageData["DomainStatus"].asString();
|
||||
if(!valueDomainsPageData["GmtCreated"].isNull())
|
||||
domainsObject.gmtCreated = valueDomainsPageData["GmtCreated"].asString();
|
||||
if(!valueDomainsPageData["GmtModified"].isNull())
|
||||
domainsObject.gmtModified = valueDomainsPageData["GmtModified"].asString();
|
||||
if(!valueDomainsPageData["Description"].isNull())
|
||||
domainsObject.description = valueDomainsPageData["Description"].asString();
|
||||
if(!valueDomainsPageData["SslProtocol"].isNull())
|
||||
domainsObject.sslProtocol = valueDomainsPageData["SslProtocol"].asString();
|
||||
if(!valueDomainsPageData["ResourceGroupId"].isNull())
|
||||
domainsObject.resourceGroupId = valueDomainsPageData["ResourceGroupId"].asString();
|
||||
if(!valueDomainsPageData["Sandbox"].isNull())
|
||||
domainsObject.sandbox = valueDomainsPageData["Sandbox"].asString();
|
||||
auto allSourcesNode = valueDomainsPageData["Sources"]["Source"];
|
||||
for (auto valueDomainsPageDataSourcesSource : allSourcesNode)
|
||||
{
|
||||
PageData::Source sourcesObject;
|
||||
if(!valueDomainsPageDataSourcesSource["Type"].isNull())
|
||||
sourcesObject.type = valueDomainsPageDataSourcesSource["Type"].asString();
|
||||
if(!valueDomainsPageDataSourcesSource["Content"].isNull())
|
||||
sourcesObject.content = valueDomainsPageDataSourcesSource["Content"].asString();
|
||||
if(!valueDomainsPageDataSourcesSource["Port"].isNull())
|
||||
sourcesObject.port = std::stoi(valueDomainsPageDataSourcesSource["Port"].asString());
|
||||
if(!valueDomainsPageDataSourcesSource["Priority"].isNull())
|
||||
sourcesObject.priority = valueDomainsPageDataSourcesSource["Priority"].asString();
|
||||
if(!valueDomainsPageDataSourcesSource["Weight"].isNull())
|
||||
sourcesObject.weight = valueDomainsPageDataSourcesSource["Weight"].asString();
|
||||
domainsObject.sources.push_back(sourcesObject);
|
||||
}
|
||||
domains_.push_back(domainsObject);
|
||||
}
|
||||
if(!value["PageNumber"].isNull())
|
||||
pageNumber_ = std::stol(value["PageNumber"].asString());
|
||||
if(!value["PageSize"].isNull())
|
||||
pageSize_ = std::stol(value["PageSize"].asString());
|
||||
if(!value["TotalCount"].isNull())
|
||||
totalCount_ = std::stol(value["TotalCount"].asString());
|
||||
|
||||
}
|
||||
|
||||
std::vector<DescribeDcdnUserDomainsByFuncResult::PageData> DescribeDcdnUserDomainsByFuncResult::getDomains()const
|
||||
{
|
||||
return domains_;
|
||||
}
|
||||
|
||||
long DescribeDcdnUserDomainsByFuncResult::getTotalCount()const
|
||||
{
|
||||
return totalCount_;
|
||||
}
|
||||
|
||||
long DescribeDcdnUserDomainsByFuncResult::getPageSize()const
|
||||
{
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
long DescribeDcdnUserDomainsByFuncResult::getPageNumber()const
|
||||
{
|
||||
return pageNumber_;
|
||||
}
|
||||
|
||||
51
dcdn/src/model/DisableDcdnDomainOfflineLogDeliveryRequest.cc
Normal file
51
dcdn/src/model/DisableDcdnDomainOfflineLogDeliveryRequest.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/dcdn/model/DisableDcdnDomainOfflineLogDeliveryRequest.h>
|
||||
|
||||
using AlibabaCloud::Dcdn::Model::DisableDcdnDomainOfflineLogDeliveryRequest;
|
||||
|
||||
DisableDcdnDomainOfflineLogDeliveryRequest::DisableDcdnDomainOfflineLogDeliveryRequest() :
|
||||
RpcServiceRequest("dcdn", "2018-01-15", "DisableDcdnDomainOfflineLogDelivery")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DisableDcdnDomainOfflineLogDeliveryRequest::~DisableDcdnDomainOfflineLogDeliveryRequest()
|
||||
{}
|
||||
|
||||
std::string DisableDcdnDomainOfflineLogDeliveryRequest::getDomainName()const
|
||||
{
|
||||
return domainName_;
|
||||
}
|
||||
|
||||
void DisableDcdnDomainOfflineLogDeliveryRequest::setDomainName(const std::string& domainName)
|
||||
{
|
||||
domainName_ = domainName;
|
||||
setBodyParameter("DomainName", domainName);
|
||||
}
|
||||
|
||||
long DisableDcdnDomainOfflineLogDeliveryRequest::getOwnerId()const
|
||||
{
|
||||
return ownerId_;
|
||||
}
|
||||
|
||||
void DisableDcdnDomainOfflineLogDeliveryRequest::setOwnerId(long ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
44
dcdn/src/model/DisableDcdnDomainOfflineLogDeliveryResult.cc
Normal file
44
dcdn/src/model/DisableDcdnDomainOfflineLogDeliveryResult.cc
Normal file
@@ -0,0 +1,44 @@
|
||||
/*
|
||||
* 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/dcdn/model/DisableDcdnDomainOfflineLogDeliveryResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Dcdn;
|
||||
using namespace AlibabaCloud::Dcdn::Model;
|
||||
|
||||
DisableDcdnDomainOfflineLogDeliveryResult::DisableDcdnDomainOfflineLogDeliveryResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DisableDcdnDomainOfflineLogDeliveryResult::DisableDcdnDomainOfflineLogDeliveryResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DisableDcdnDomainOfflineLogDeliveryResult::~DisableDcdnDomainOfflineLogDeliveryResult()
|
||||
{}
|
||||
|
||||
void DisableDcdnDomainOfflineLogDeliveryResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
|
||||
}
|
||||
|
||||
40
dcdn/src/model/DisableDcdnOfflineLogDeliveryRequest.cc
Normal file
40
dcdn/src/model/DisableDcdnOfflineLogDeliveryRequest.cc
Normal file
@@ -0,0 +1,40 @@
|
||||
/*
|
||||
* 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/dcdn/model/DisableDcdnOfflineLogDeliveryRequest.h>
|
||||
|
||||
using AlibabaCloud::Dcdn::Model::DisableDcdnOfflineLogDeliveryRequest;
|
||||
|
||||
DisableDcdnOfflineLogDeliveryRequest::DisableDcdnOfflineLogDeliveryRequest() :
|
||||
RpcServiceRequest("dcdn", "2018-01-15", "DisableDcdnOfflineLogDelivery")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DisableDcdnOfflineLogDeliveryRequest::~DisableDcdnOfflineLogDeliveryRequest()
|
||||
{}
|
||||
|
||||
long DisableDcdnOfflineLogDeliveryRequest::getOwnerId()const
|
||||
{
|
||||
return ownerId_;
|
||||
}
|
||||
|
||||
void DisableDcdnOfflineLogDeliveryRequest::setOwnerId(long ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
44
dcdn/src/model/DisableDcdnOfflineLogDeliveryResult.cc
Normal file
44
dcdn/src/model/DisableDcdnOfflineLogDeliveryResult.cc
Normal file
@@ -0,0 +1,44 @@
|
||||
/*
|
||||
* 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/dcdn/model/DisableDcdnOfflineLogDeliveryResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Dcdn;
|
||||
using namespace AlibabaCloud::Dcdn::Model;
|
||||
|
||||
DisableDcdnOfflineLogDeliveryResult::DisableDcdnOfflineLogDeliveryResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DisableDcdnOfflineLogDeliveryResult::DisableDcdnOfflineLogDeliveryResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DisableDcdnOfflineLogDeliveryResult::~DisableDcdnOfflineLogDeliveryResult()
|
||||
{}
|
||||
|
||||
void DisableDcdnOfflineLogDeliveryResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
|
||||
}
|
||||
|
||||
51
dcdn/src/model/EnableDcdnDomainOfflineLogDeliveryRequest.cc
Normal file
51
dcdn/src/model/EnableDcdnDomainOfflineLogDeliveryRequest.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/dcdn/model/EnableDcdnDomainOfflineLogDeliveryRequest.h>
|
||||
|
||||
using AlibabaCloud::Dcdn::Model::EnableDcdnDomainOfflineLogDeliveryRequest;
|
||||
|
||||
EnableDcdnDomainOfflineLogDeliveryRequest::EnableDcdnDomainOfflineLogDeliveryRequest() :
|
||||
RpcServiceRequest("dcdn", "2018-01-15", "EnableDcdnDomainOfflineLogDelivery")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
EnableDcdnDomainOfflineLogDeliveryRequest::~EnableDcdnDomainOfflineLogDeliveryRequest()
|
||||
{}
|
||||
|
||||
std::string EnableDcdnDomainOfflineLogDeliveryRequest::getDomainName()const
|
||||
{
|
||||
return domainName_;
|
||||
}
|
||||
|
||||
void EnableDcdnDomainOfflineLogDeliveryRequest::setDomainName(const std::string& domainName)
|
||||
{
|
||||
domainName_ = domainName;
|
||||
setBodyParameter("DomainName", domainName);
|
||||
}
|
||||
|
||||
long EnableDcdnDomainOfflineLogDeliveryRequest::getOwnerId()const
|
||||
{
|
||||
return ownerId_;
|
||||
}
|
||||
|
||||
void EnableDcdnDomainOfflineLogDeliveryRequest::setOwnerId(long ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
44
dcdn/src/model/EnableDcdnDomainOfflineLogDeliveryResult.cc
Normal file
44
dcdn/src/model/EnableDcdnDomainOfflineLogDeliveryResult.cc
Normal file
@@ -0,0 +1,44 @@
|
||||
/*
|
||||
* 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/dcdn/model/EnableDcdnDomainOfflineLogDeliveryResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Dcdn;
|
||||
using namespace AlibabaCloud::Dcdn::Model;
|
||||
|
||||
EnableDcdnDomainOfflineLogDeliveryResult::EnableDcdnDomainOfflineLogDeliveryResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
EnableDcdnDomainOfflineLogDeliveryResult::EnableDcdnDomainOfflineLogDeliveryResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
EnableDcdnDomainOfflineLogDeliveryResult::~EnableDcdnDomainOfflineLogDeliveryResult()
|
||||
{}
|
||||
|
||||
void EnableDcdnDomainOfflineLogDeliveryResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user