Add HSF apis.
This commit is contained in:
@@ -1,73 +0,0 @@
|
||||
/*
|
||||
* 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/DeleteLiveAppRecordConfigRequest.h>
|
||||
|
||||
using AlibabaCloud::Cdn::Model::DeleteLiveAppRecordConfigRequest;
|
||||
|
||||
DeleteLiveAppRecordConfigRequest::DeleteLiveAppRecordConfigRequest() :
|
||||
RpcServiceRequest("cdn", "2014-11-11", "DeleteLiveAppRecordConfig")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DeleteLiveAppRecordConfigRequest::~DeleteLiveAppRecordConfigRequest()
|
||||
{}
|
||||
|
||||
std::string DeleteLiveAppRecordConfigRequest::getDomainName()const
|
||||
{
|
||||
return domainName_;
|
||||
}
|
||||
|
||||
void DeleteLiveAppRecordConfigRequest::setDomainName(const std::string& domainName)
|
||||
{
|
||||
domainName_ = domainName;
|
||||
setParameter("DomainName", domainName);
|
||||
}
|
||||
|
||||
long DeleteLiveAppRecordConfigRequest::getOwnerId()const
|
||||
{
|
||||
return ownerId_;
|
||||
}
|
||||
|
||||
void DeleteLiveAppRecordConfigRequest::setOwnerId(long ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
std::string DeleteLiveAppRecordConfigRequest::getAppName()const
|
||||
{
|
||||
return appName_;
|
||||
}
|
||||
|
||||
void DeleteLiveAppRecordConfigRequest::setAppName(const std::string& appName)
|
||||
{
|
||||
appName_ = appName;
|
||||
setParameter("AppName", appName);
|
||||
}
|
||||
|
||||
std::string DeleteLiveAppRecordConfigRequest::getSecurityToken()const
|
||||
{
|
||||
return securityToken_;
|
||||
}
|
||||
|
||||
void DeleteLiveAppRecordConfigRequest::setSecurityToken(const std::string& securityToken)
|
||||
{
|
||||
securityToken_ = securityToken;
|
||||
setParameter("SecurityToken", securityToken);
|
||||
}
|
||||
|
||||
@@ -1,44 +0,0 @@
|
||||
/*
|
||||
* 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/DeleteLiveAppRecordConfigResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Cdn;
|
||||
using namespace AlibabaCloud::Cdn::Model;
|
||||
|
||||
DeleteLiveAppRecordConfigResult::DeleteLiveAppRecordConfigResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DeleteLiveAppRecordConfigResult::DeleteLiveAppRecordConfigResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DeleteLiveAppRecordConfigResult::~DeleteLiveAppRecordConfigResult()
|
||||
{}
|
||||
|
||||
void DeleteLiveAppRecordConfigResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
|
||||
}
|
||||
|
||||
@@ -1,73 +0,0 @@
|
||||
/*
|
||||
* 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/DeleteLiveAppSnapshotConfigRequest.h>
|
||||
|
||||
using AlibabaCloud::Cdn::Model::DeleteLiveAppSnapshotConfigRequest;
|
||||
|
||||
DeleteLiveAppSnapshotConfigRequest::DeleteLiveAppSnapshotConfigRequest() :
|
||||
RpcServiceRequest("cdn", "2014-11-11", "DeleteLiveAppSnapshotConfig")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DeleteLiveAppSnapshotConfigRequest::~DeleteLiveAppSnapshotConfigRequest()
|
||||
{}
|
||||
|
||||
std::string DeleteLiveAppSnapshotConfigRequest::getDomainName()const
|
||||
{
|
||||
return domainName_;
|
||||
}
|
||||
|
||||
void DeleteLiveAppSnapshotConfigRequest::setDomainName(const std::string& domainName)
|
||||
{
|
||||
domainName_ = domainName;
|
||||
setParameter("DomainName", domainName);
|
||||
}
|
||||
|
||||
long DeleteLiveAppSnapshotConfigRequest::getOwnerId()const
|
||||
{
|
||||
return ownerId_;
|
||||
}
|
||||
|
||||
void DeleteLiveAppSnapshotConfigRequest::setOwnerId(long ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
std::string DeleteLiveAppSnapshotConfigRequest::getAppName()const
|
||||
{
|
||||
return appName_;
|
||||
}
|
||||
|
||||
void DeleteLiveAppSnapshotConfigRequest::setAppName(const std::string& appName)
|
||||
{
|
||||
appName_ = appName;
|
||||
setParameter("AppName", appName);
|
||||
}
|
||||
|
||||
std::string DeleteLiveAppSnapshotConfigRequest::getSecurityToken()const
|
||||
{
|
||||
return securityToken_;
|
||||
}
|
||||
|
||||
void DeleteLiveAppSnapshotConfigRequest::setSecurityToken(const std::string& securityToken)
|
||||
{
|
||||
securityToken_ = securityToken;
|
||||
setParameter("SecurityToken", securityToken);
|
||||
}
|
||||
|
||||
@@ -1,44 +0,0 @@
|
||||
/*
|
||||
* 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/DeleteLiveAppSnapshotConfigResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Cdn;
|
||||
using namespace AlibabaCloud::Cdn::Model;
|
||||
|
||||
DeleteLiveAppSnapshotConfigResult::DeleteLiveAppSnapshotConfigResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DeleteLiveAppSnapshotConfigResult::DeleteLiveAppSnapshotConfigResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DeleteLiveAppSnapshotConfigResult::~DeleteLiveAppSnapshotConfigResult()
|
||||
{}
|
||||
|
||||
void DeleteLiveAppSnapshotConfigResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
|
||||
}
|
||||
|
||||
@@ -1,73 +0,0 @@
|
||||
/*
|
||||
* 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/DeleteLiveDomainMappingRequest.h>
|
||||
|
||||
using AlibabaCloud::Cdn::Model::DeleteLiveDomainMappingRequest;
|
||||
|
||||
DeleteLiveDomainMappingRequest::DeleteLiveDomainMappingRequest() :
|
||||
RpcServiceRequest("cdn", "2014-11-11", "DeleteLiveDomainMapping")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DeleteLiveDomainMappingRequest::~DeleteLiveDomainMappingRequest()
|
||||
{}
|
||||
|
||||
long DeleteLiveDomainMappingRequest::getOwnerId()const
|
||||
{
|
||||
return ownerId_;
|
||||
}
|
||||
|
||||
void DeleteLiveDomainMappingRequest::setOwnerId(long ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
std::string DeleteLiveDomainMappingRequest::getPullDomain()const
|
||||
{
|
||||
return pullDomain_;
|
||||
}
|
||||
|
||||
void DeleteLiveDomainMappingRequest::setPullDomain(const std::string& pullDomain)
|
||||
{
|
||||
pullDomain_ = pullDomain;
|
||||
setParameter("PullDomain", pullDomain);
|
||||
}
|
||||
|
||||
std::string DeleteLiveDomainMappingRequest::getSecurityToken()const
|
||||
{
|
||||
return securityToken_;
|
||||
}
|
||||
|
||||
void DeleteLiveDomainMappingRequest::setSecurityToken(const std::string& securityToken)
|
||||
{
|
||||
securityToken_ = securityToken;
|
||||
setParameter("SecurityToken", securityToken);
|
||||
}
|
||||
|
||||
std::string DeleteLiveDomainMappingRequest::getPushDomain()const
|
||||
{
|
||||
return pushDomain_;
|
||||
}
|
||||
|
||||
void DeleteLiveDomainMappingRequest::setPushDomain(const std::string& pushDomain)
|
||||
{
|
||||
pushDomain_ = pushDomain;
|
||||
setParameter("PushDomain", pushDomain);
|
||||
}
|
||||
|
||||
@@ -1,44 +0,0 @@
|
||||
/*
|
||||
* 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/DeleteLiveDomainMappingResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Cdn;
|
||||
using namespace AlibabaCloud::Cdn::Model;
|
||||
|
||||
DeleteLiveDomainMappingResult::DeleteLiveDomainMappingResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DeleteLiveDomainMappingResult::DeleteLiveDomainMappingResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DeleteLiveDomainMappingResult::~DeleteLiveDomainMappingResult()
|
||||
{}
|
||||
|
||||
void DeleteLiveDomainMappingResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
|
||||
}
|
||||
|
||||
@@ -1,95 +0,0 @@
|
||||
/*
|
||||
* 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/DeleteLiveStreamTranscodeRequest.h>
|
||||
|
||||
using AlibabaCloud::Cdn::Model::DeleteLiveStreamTranscodeRequest;
|
||||
|
||||
DeleteLiveStreamTranscodeRequest::DeleteLiveStreamTranscodeRequest() :
|
||||
RpcServiceRequest("cdn", "2014-11-11", "DeleteLiveStreamTranscode")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DeleteLiveStreamTranscodeRequest::~DeleteLiveStreamTranscodeRequest()
|
||||
{}
|
||||
|
||||
std::string DeleteLiveStreamTranscodeRequest::get_Template()const
|
||||
{
|
||||
return _template_;
|
||||
}
|
||||
|
||||
void DeleteLiveStreamTranscodeRequest::set_Template(const std::string& _template)
|
||||
{
|
||||
_template_ = _template;
|
||||
setParameter("_Template", _template);
|
||||
}
|
||||
|
||||
std::string DeleteLiveStreamTranscodeRequest::getSecurityToken()const
|
||||
{
|
||||
return securityToken_;
|
||||
}
|
||||
|
||||
void DeleteLiveStreamTranscodeRequest::setSecurityToken(const std::string& securityToken)
|
||||
{
|
||||
securityToken_ = securityToken;
|
||||
setParameter("SecurityToken", securityToken);
|
||||
}
|
||||
|
||||
std::string DeleteLiveStreamTranscodeRequest::getApp()const
|
||||
{
|
||||
return app_;
|
||||
}
|
||||
|
||||
void DeleteLiveStreamTranscodeRequest::setApp(const std::string& app)
|
||||
{
|
||||
app_ = app;
|
||||
setParameter("App", app);
|
||||
}
|
||||
|
||||
std::string DeleteLiveStreamTranscodeRequest::getOwnerAccount()const
|
||||
{
|
||||
return ownerAccount_;
|
||||
}
|
||||
|
||||
void DeleteLiveStreamTranscodeRequest::setOwnerAccount(const std::string& ownerAccount)
|
||||
{
|
||||
ownerAccount_ = ownerAccount;
|
||||
setParameter("OwnerAccount", ownerAccount);
|
||||
}
|
||||
|
||||
long DeleteLiveStreamTranscodeRequest::getOwnerId()const
|
||||
{
|
||||
return ownerId_;
|
||||
}
|
||||
|
||||
void DeleteLiveStreamTranscodeRequest::setOwnerId(long ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
std::string DeleteLiveStreamTranscodeRequest::getDomain()const
|
||||
{
|
||||
return domain_;
|
||||
}
|
||||
|
||||
void DeleteLiveStreamTranscodeRequest::setDomain(const std::string& domain)
|
||||
{
|
||||
domain_ = domain;
|
||||
setParameter("Domain", domain);
|
||||
}
|
||||
|
||||
@@ -1,44 +0,0 @@
|
||||
/*
|
||||
* 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/DeleteLiveStreamTranscodeResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Cdn;
|
||||
using namespace AlibabaCloud::Cdn::Model;
|
||||
|
||||
DeleteLiveStreamTranscodeResult::DeleteLiveStreamTranscodeResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DeleteLiveStreamTranscodeResult::DeleteLiveStreamTranscodeResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DeleteLiveStreamTranscodeResult::~DeleteLiveStreamTranscodeResult()
|
||||
{}
|
||||
|
||||
void DeleteLiveStreamTranscodeResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
|
||||
}
|
||||
|
||||
62
cdn/src/model/DescribeActiveVersionOfConfigGroupRequest.cc
Normal file
62
cdn/src/model/DescribeActiveVersionOfConfigGroupRequest.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/DescribeActiveVersionOfConfigGroupRequest.h>
|
||||
|
||||
using AlibabaCloud::Cdn::Model::DescribeActiveVersionOfConfigGroupRequest;
|
||||
|
||||
DescribeActiveVersionOfConfigGroupRequest::DescribeActiveVersionOfConfigGroupRequest() :
|
||||
RpcServiceRequest("cdn", "2018-05-10", "DescribeActiveVersionOfConfigGroup")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DescribeActiveVersionOfConfigGroupRequest::~DescribeActiveVersionOfConfigGroupRequest()
|
||||
{}
|
||||
|
||||
long DescribeActiveVersionOfConfigGroupRequest::getOwnerId()const
|
||||
{
|
||||
return ownerId_;
|
||||
}
|
||||
|
||||
void DescribeActiveVersionOfConfigGroupRequest::setOwnerId(long ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
std::string DescribeActiveVersionOfConfigGroupRequest::getEnv()const
|
||||
{
|
||||
return env_;
|
||||
}
|
||||
|
||||
void DescribeActiveVersionOfConfigGroupRequest::setEnv(const std::string& env)
|
||||
{
|
||||
env_ = env;
|
||||
setParameter("Env", env);
|
||||
}
|
||||
|
||||
std::string DescribeActiveVersionOfConfigGroupRequest::getConfigGroupId()const
|
||||
{
|
||||
return configGroupId_;
|
||||
}
|
||||
|
||||
void DescribeActiveVersionOfConfigGroupRequest::setConfigGroupId(const std::string& configGroupId)
|
||||
{
|
||||
configGroupId_ = configGroupId;
|
||||
setParameter("ConfigGroupId", configGroupId);
|
||||
}
|
||||
|
||||
107
cdn/src/model/DescribeActiveVersionOfConfigGroupResult.cc
Normal file
107
cdn/src/model/DescribeActiveVersionOfConfigGroupResult.cc
Normal file
@@ -0,0 +1,107 @@
|
||||
/*
|
||||
* 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/DescribeActiveVersionOfConfigGroupResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Cdn;
|
||||
using namespace AlibabaCloud::Cdn::Model;
|
||||
|
||||
DescribeActiveVersionOfConfigGroupResult::DescribeActiveVersionOfConfigGroupResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DescribeActiveVersionOfConfigGroupResult::DescribeActiveVersionOfConfigGroupResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DescribeActiveVersionOfConfigGroupResult::~DescribeActiveVersionOfConfigGroupResult()
|
||||
{}
|
||||
|
||||
void DescribeActiveVersionOfConfigGroupResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["VersionId"].isNull())
|
||||
versionId_ = value["VersionId"].asString();
|
||||
if(!value["ConfigGroupId"].isNull())
|
||||
configGroupId_ = value["ConfigGroupId"].asString();
|
||||
if(!value["BaseVersionId"].isNull())
|
||||
baseVersionId_ = value["BaseVersionId"].asString();
|
||||
if(!value["Description"].isNull())
|
||||
description_ = value["Description"].asString();
|
||||
if(!value["SeqId"].isNull())
|
||||
seqId_ = std::stol(value["SeqId"].asString());
|
||||
if(!value["Status"].isNull())
|
||||
status_ = value["Status"].asString();
|
||||
if(!value["Operator"].isNull())
|
||||
_operator_ = value["Operator"].asString();
|
||||
if(!value["CreateTime"].isNull())
|
||||
createTime_ = value["CreateTime"].asString();
|
||||
if(!value["UpdateTime"].isNull())
|
||||
updateTime_ = value["UpdateTime"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string DescribeActiveVersionOfConfigGroupResult::getVersionId()const
|
||||
{
|
||||
return versionId_;
|
||||
}
|
||||
|
||||
std::string DescribeActiveVersionOfConfigGroupResult::getStatus()const
|
||||
{
|
||||
return status_;
|
||||
}
|
||||
|
||||
std::string DescribeActiveVersionOfConfigGroupResult::getConfigGroupId()const
|
||||
{
|
||||
return configGroupId_;
|
||||
}
|
||||
|
||||
std::string DescribeActiveVersionOfConfigGroupResult::getBaseVersionId()const
|
||||
{
|
||||
return baseVersionId_;
|
||||
}
|
||||
|
||||
std::string DescribeActiveVersionOfConfigGroupResult::getDescription()const
|
||||
{
|
||||
return description_;
|
||||
}
|
||||
|
||||
std::string DescribeActiveVersionOfConfigGroupResult::getCreateTime()const
|
||||
{
|
||||
return createTime_;
|
||||
}
|
||||
|
||||
std::string DescribeActiveVersionOfConfigGroupResult::getUpdateTime()const
|
||||
{
|
||||
return updateTime_;
|
||||
}
|
||||
|
||||
std::string DescribeActiveVersionOfConfigGroupResult::get_Operator()const
|
||||
{
|
||||
return _operator_;
|
||||
}
|
||||
|
||||
long DescribeActiveVersionOfConfigGroupResult::getSeqId()const
|
||||
{
|
||||
return seqId_;
|
||||
}
|
||||
|
||||
62
cdn/src/model/DescribeCdnUserBillTypeRequest.cc
Normal file
62
cdn/src/model/DescribeCdnUserBillTypeRequest.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/DescribeCdnUserBillTypeRequest.h>
|
||||
|
||||
using AlibabaCloud::Cdn::Model::DescribeCdnUserBillTypeRequest;
|
||||
|
||||
DescribeCdnUserBillTypeRequest::DescribeCdnUserBillTypeRequest() :
|
||||
RpcServiceRequest("cdn", "2018-05-10", "DescribeCdnUserBillType")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DescribeCdnUserBillTypeRequest::~DescribeCdnUserBillTypeRequest()
|
||||
{}
|
||||
|
||||
std::string DescribeCdnUserBillTypeRequest::getStartTime()const
|
||||
{
|
||||
return startTime_;
|
||||
}
|
||||
|
||||
void DescribeCdnUserBillTypeRequest::setStartTime(const std::string& startTime)
|
||||
{
|
||||
startTime_ = startTime;
|
||||
setParameter("StartTime", startTime);
|
||||
}
|
||||
|
||||
std::string DescribeCdnUserBillTypeRequest::getEndTime()const
|
||||
{
|
||||
return endTime_;
|
||||
}
|
||||
|
||||
void DescribeCdnUserBillTypeRequest::setEndTime(const std::string& endTime)
|
||||
{
|
||||
endTime_ = endTime;
|
||||
setParameter("EndTime", endTime);
|
||||
}
|
||||
|
||||
long DescribeCdnUserBillTypeRequest::getOwnerId()const
|
||||
{
|
||||
return ownerId_;
|
||||
}
|
||||
|
||||
void DescribeCdnUserBillTypeRequest::setOwnerId(long ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
67
cdn/src/model/DescribeCdnUserBillTypeResult.cc
Normal file
67
cdn/src/model/DescribeCdnUserBillTypeResult.cc
Normal file
@@ -0,0 +1,67 @@
|
||||
/*
|
||||
* 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/DescribeCdnUserBillTypeResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Cdn;
|
||||
using namespace AlibabaCloud::Cdn::Model;
|
||||
|
||||
DescribeCdnUserBillTypeResult::DescribeCdnUserBillTypeResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DescribeCdnUserBillTypeResult::DescribeCdnUserBillTypeResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DescribeCdnUserBillTypeResult::~DescribeCdnUserBillTypeResult()
|
||||
{}
|
||||
|
||||
void DescribeCdnUserBillTypeResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allBillTypeDataNode = value["BillTypeData"]["BillTypeDataItem"];
|
||||
for (auto valueBillTypeDataBillTypeDataItem : allBillTypeDataNode)
|
||||
{
|
||||
BillTypeDataItem billTypeDataObject;
|
||||
if(!valueBillTypeDataBillTypeDataItem["StartTime"].isNull())
|
||||
billTypeDataObject.startTime = valueBillTypeDataBillTypeDataItem["StartTime"].asString();
|
||||
if(!valueBillTypeDataBillTypeDataItem["EndTime"].isNull())
|
||||
billTypeDataObject.endTime = valueBillTypeDataBillTypeDataItem["EndTime"].asString();
|
||||
if(!valueBillTypeDataBillTypeDataItem["Product"].isNull())
|
||||
billTypeDataObject.product = valueBillTypeDataBillTypeDataItem["Product"].asString();
|
||||
if(!valueBillTypeDataBillTypeDataItem["Dimension"].isNull())
|
||||
billTypeDataObject.dimension = valueBillTypeDataBillTypeDataItem["Dimension"].asString();
|
||||
if(!valueBillTypeDataBillTypeDataItem["BillType"].isNull())
|
||||
billTypeDataObject.billType = valueBillTypeDataBillTypeDataItem["BillType"].asString();
|
||||
if(!valueBillTypeDataBillTypeDataItem["BillingCycle"].isNull())
|
||||
billTypeDataObject.billingCycle = valueBillTypeDataBillTypeDataItem["BillingCycle"].asString();
|
||||
billTypeData_.push_back(billTypeDataObject);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
std::vector<DescribeCdnUserBillTypeResult::BillTypeDataItem> DescribeCdnUserBillTypeResult::getBillTypeData()const
|
||||
{
|
||||
return billTypeData_;
|
||||
}
|
||||
|
||||
51
cdn/src/model/DescribeCdnUserConfigsRequest.cc
Normal file
51
cdn/src/model/DescribeCdnUserConfigsRequest.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/DescribeCdnUserConfigsRequest.h>
|
||||
|
||||
using AlibabaCloud::Cdn::Model::DescribeCdnUserConfigsRequest;
|
||||
|
||||
DescribeCdnUserConfigsRequest::DescribeCdnUserConfigsRequest() :
|
||||
RpcServiceRequest("cdn", "2018-05-10", "DescribeCdnUserConfigs")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DescribeCdnUserConfigsRequest::~DescribeCdnUserConfigsRequest()
|
||||
{}
|
||||
|
||||
std::string DescribeCdnUserConfigsRequest::getFunctionName()const
|
||||
{
|
||||
return functionName_;
|
||||
}
|
||||
|
||||
void DescribeCdnUserConfigsRequest::setFunctionName(const std::string& functionName)
|
||||
{
|
||||
functionName_ = functionName;
|
||||
setParameter("FunctionName", functionName);
|
||||
}
|
||||
|
||||
long DescribeCdnUserConfigsRequest::getOwnerId()const
|
||||
{
|
||||
return ownerId_;
|
||||
}
|
||||
|
||||
void DescribeCdnUserConfigsRequest::setOwnerId(long ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
61
cdn/src/model/DescribeCdnUserConfigsResult.cc
Normal file
61
cdn/src/model/DescribeCdnUserConfigsResult.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/DescribeCdnUserConfigsResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Cdn;
|
||||
using namespace AlibabaCloud::Cdn::Model;
|
||||
|
||||
DescribeCdnUserConfigsResult::DescribeCdnUserConfigsResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DescribeCdnUserConfigsResult::DescribeCdnUserConfigsResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DescribeCdnUserConfigsResult::~DescribeCdnUserConfigsResult()
|
||||
{}
|
||||
|
||||
void DescribeCdnUserConfigsResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allConfigsNode = value["Configs"]["Config"];
|
||||
for (auto valueConfigsConfig : allConfigsNode)
|
||||
{
|
||||
Config configsObject;
|
||||
if(!valueConfigsConfig["ArgValue"].isNull())
|
||||
configsObject.argValue = valueConfigsConfig["ArgValue"].asString();
|
||||
if(!valueConfigsConfig["ArgName"].isNull())
|
||||
configsObject.argName = valueConfigsConfig["ArgName"].asString();
|
||||
if(!valueConfigsConfig["FunctionName"].isNull())
|
||||
configsObject.functionName = valueConfigsConfig["FunctionName"].asString();
|
||||
configs_.push_back(configsObject);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
std::vector<DescribeCdnUserConfigsResult::Config> DescribeCdnUserConfigsResult::getConfigs()const
|
||||
{
|
||||
return configs_;
|
||||
}
|
||||
|
||||
117
cdn/src/model/DescribeDomainDetailDataByLayerRequest.cc
Normal file
117
cdn/src/model/DescribeDomainDetailDataByLayerRequest.cc
Normal file
@@ -0,0 +1,117 @@
|
||||
/*
|
||||
* 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/DescribeDomainDetailDataByLayerRequest.h>
|
||||
|
||||
using AlibabaCloud::Cdn::Model::DescribeDomainDetailDataByLayerRequest;
|
||||
|
||||
DescribeDomainDetailDataByLayerRequest::DescribeDomainDetailDataByLayerRequest() :
|
||||
RpcServiceRequest("cdn", "2018-05-10", "DescribeDomainDetailDataByLayer")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Get);
|
||||
}
|
||||
|
||||
DescribeDomainDetailDataByLayerRequest::~DescribeDomainDetailDataByLayerRequest()
|
||||
{}
|
||||
|
||||
std::string DescribeDomainDetailDataByLayerRequest::getLocationNameEn()const
|
||||
{
|
||||
return locationNameEn_;
|
||||
}
|
||||
|
||||
void DescribeDomainDetailDataByLayerRequest::setLocationNameEn(const std::string& locationNameEn)
|
||||
{
|
||||
locationNameEn_ = locationNameEn;
|
||||
setParameter("LocationNameEn", locationNameEn);
|
||||
}
|
||||
|
||||
std::string DescribeDomainDetailDataByLayerRequest::getStartTime()const
|
||||
{
|
||||
return startTime_;
|
||||
}
|
||||
|
||||
void DescribeDomainDetailDataByLayerRequest::setStartTime(const std::string& startTime)
|
||||
{
|
||||
startTime_ = startTime;
|
||||
setParameter("StartTime", startTime);
|
||||
}
|
||||
|
||||
std::string DescribeDomainDetailDataByLayerRequest::getIspNameEn()const
|
||||
{
|
||||
return ispNameEn_;
|
||||
}
|
||||
|
||||
void DescribeDomainDetailDataByLayerRequest::setIspNameEn(const std::string& ispNameEn)
|
||||
{
|
||||
ispNameEn_ = ispNameEn;
|
||||
setParameter("IspNameEn", ispNameEn);
|
||||
}
|
||||
|
||||
std::string DescribeDomainDetailDataByLayerRequest::getLayer()const
|
||||
{
|
||||
return layer_;
|
||||
}
|
||||
|
||||
void DescribeDomainDetailDataByLayerRequest::setLayer(const std::string& layer)
|
||||
{
|
||||
layer_ = layer;
|
||||
setParameter("Layer", layer);
|
||||
}
|
||||
|
||||
std::string DescribeDomainDetailDataByLayerRequest::getDomainName()const
|
||||
{
|
||||
return domainName_;
|
||||
}
|
||||
|
||||
void DescribeDomainDetailDataByLayerRequest::setDomainName(const std::string& domainName)
|
||||
{
|
||||
domainName_ = domainName;
|
||||
setParameter("DomainName", domainName);
|
||||
}
|
||||
|
||||
std::string DescribeDomainDetailDataByLayerRequest::getEndTime()const
|
||||
{
|
||||
return endTime_;
|
||||
}
|
||||
|
||||
void DescribeDomainDetailDataByLayerRequest::setEndTime(const std::string& endTime)
|
||||
{
|
||||
endTime_ = endTime;
|
||||
setParameter("EndTime", endTime);
|
||||
}
|
||||
|
||||
long DescribeDomainDetailDataByLayerRequest::getOwnerId()const
|
||||
{
|
||||
return ownerId_;
|
||||
}
|
||||
|
||||
void DescribeDomainDetailDataByLayerRequest::setOwnerId(long ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
std::string DescribeDomainDetailDataByLayerRequest::getField()const
|
||||
{
|
||||
return field_;
|
||||
}
|
||||
|
||||
void DescribeDomainDetailDataByLayerRequest::setField(const std::string& field)
|
||||
{
|
||||
field_ = field;
|
||||
setParameter("Field", field);
|
||||
}
|
||||
|
||||
77
cdn/src/model/DescribeDomainDetailDataByLayerResult.cc
Normal file
77
cdn/src/model/DescribeDomainDetailDataByLayerResult.cc
Normal file
@@ -0,0 +1,77 @@
|
||||
/*
|
||||
* 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/DescribeDomainDetailDataByLayerResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Cdn;
|
||||
using namespace AlibabaCloud::Cdn::Model;
|
||||
|
||||
DescribeDomainDetailDataByLayerResult::DescribeDomainDetailDataByLayerResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DescribeDomainDetailDataByLayerResult::DescribeDomainDetailDataByLayerResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DescribeDomainDetailDataByLayerResult::~DescribeDomainDetailDataByLayerResult()
|
||||
{}
|
||||
|
||||
void DescribeDomainDetailDataByLayerResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allDataNode = value["Data"]["DataModule"];
|
||||
for (auto valueDataDataModule : allDataNode)
|
||||
{
|
||||
DataModule dataObject;
|
||||
if(!valueDataDataModule["TimeStamp"].isNull())
|
||||
dataObject.timeStamp = valueDataDataModule["TimeStamp"].asString();
|
||||
if(!valueDataDataModule["DomainName"].isNull())
|
||||
dataObject.domainName = valueDataDataModule["DomainName"].asString();
|
||||
if(!valueDataDataModule["Bps"].isNull())
|
||||
dataObject.bps = std::stof(valueDataDataModule["Bps"].asString());
|
||||
if(!valueDataDataModule["Qps"].isNull())
|
||||
dataObject.qps = std::stof(valueDataDataModule["Qps"].asString());
|
||||
if(!valueDataDataModule["Traf"].isNull())
|
||||
dataObject.traf = std::stol(valueDataDataModule["Traf"].asString());
|
||||
if(!valueDataDataModule["Acc"].isNull())
|
||||
dataObject.acc = std::stol(valueDataDataModule["Acc"].asString());
|
||||
if(!valueDataDataModule["Ipv6Traf"].isNull())
|
||||
dataObject.ipv6Traf = std::stol(valueDataDataModule["Ipv6Traf"].asString());
|
||||
if(!valueDataDataModule["Ipv6Bps"].isNull())
|
||||
dataObject.ipv6Bps = std::stof(valueDataDataModule["Ipv6Bps"].asString());
|
||||
if(!valueDataDataModule["Ipv6Acc"].isNull())
|
||||
dataObject.ipv6Acc = std::stol(valueDataDataModule["Ipv6Acc"].asString());
|
||||
if(!valueDataDataModule["Ipv6Qps"].isNull())
|
||||
dataObject.ipv6Qps = std::stof(valueDataDataModule["Ipv6Qps"].asString());
|
||||
if(!valueDataDataModule["HttpCode"].isNull())
|
||||
dataObject.httpCode = valueDataDataModule["HttpCode"].asString();
|
||||
data_.push_back(dataObject);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
std::vector<DescribeDomainDetailDataByLayerResult::DataModule> DescribeDomainDetailDataByLayerResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
73
cdn/src/model/DescribeDomainNamesOfVersionRequest.cc
Normal file
73
cdn/src/model/DescribeDomainNamesOfVersionRequest.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/cdn/model/DescribeDomainNamesOfVersionRequest.h>
|
||||
|
||||
using AlibabaCloud::Cdn::Model::DescribeDomainNamesOfVersionRequest;
|
||||
|
||||
DescribeDomainNamesOfVersionRequest::DescribeDomainNamesOfVersionRequest() :
|
||||
RpcServiceRequest("cdn", "2018-05-10", "DescribeDomainNamesOfVersion")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DescribeDomainNamesOfVersionRequest::~DescribeDomainNamesOfVersionRequest()
|
||||
{}
|
||||
|
||||
std::string DescribeDomainNamesOfVersionRequest::getVersionId()const
|
||||
{
|
||||
return versionId_;
|
||||
}
|
||||
|
||||
void DescribeDomainNamesOfVersionRequest::setVersionId(const std::string& versionId)
|
||||
{
|
||||
versionId_ = versionId;
|
||||
setParameter("VersionId", versionId);
|
||||
}
|
||||
|
||||
std::string DescribeDomainNamesOfVersionRequest::getPageSize()const
|
||||
{
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
void DescribeDomainNamesOfVersionRequest::setPageSize(const std::string& pageSize)
|
||||
{
|
||||
pageSize_ = pageSize;
|
||||
setParameter("PageSize", pageSize);
|
||||
}
|
||||
|
||||
int DescribeDomainNamesOfVersionRequest::getPageIndex()const
|
||||
{
|
||||
return pageIndex_;
|
||||
}
|
||||
|
||||
void DescribeDomainNamesOfVersionRequest::setPageIndex(int pageIndex)
|
||||
{
|
||||
pageIndex_ = pageIndex;
|
||||
setParameter("PageIndex", std::to_string(pageIndex));
|
||||
}
|
||||
|
||||
long DescribeDomainNamesOfVersionRequest::getOwnerId()const
|
||||
{
|
||||
return ownerId_;
|
||||
}
|
||||
|
||||
void DescribeDomainNamesOfVersionRequest::setOwnerId(long ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
66
cdn/src/model/DescribeDomainNamesOfVersionResult.cc
Normal file
66
cdn/src/model/DescribeDomainNamesOfVersionResult.cc
Normal file
@@ -0,0 +1,66 @@
|
||||
/*
|
||||
* 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/DescribeDomainNamesOfVersionResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Cdn;
|
||||
using namespace AlibabaCloud::Cdn::Model;
|
||||
|
||||
DescribeDomainNamesOfVersionResult::DescribeDomainNamesOfVersionResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DescribeDomainNamesOfVersionResult::DescribeDomainNamesOfVersionResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DescribeDomainNamesOfVersionResult::~DescribeDomainNamesOfVersionResult()
|
||||
{}
|
||||
|
||||
void DescribeDomainNamesOfVersionResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allContentsNode = value["Contents"]["content"];
|
||||
for (auto valueContentscontent : allContentsNode)
|
||||
{
|
||||
Content contentsObject;
|
||||
if(!valueContentscontent["DomainId"].isNull())
|
||||
contentsObject.domainId = valueContentscontent["DomainId"].asString();
|
||||
if(!valueContentscontent["DomainName"].isNull())
|
||||
contentsObject.domainName = valueContentscontent["DomainName"].asString();
|
||||
contents_.push_back(contentsObject);
|
||||
}
|
||||
if(!value["TotalCount"].isNull())
|
||||
totalCount_ = std::stoi(value["TotalCount"].asString());
|
||||
|
||||
}
|
||||
|
||||
int DescribeDomainNamesOfVersionResult::getTotalCount()const
|
||||
{
|
||||
return totalCount_;
|
||||
}
|
||||
|
||||
std::vector<DescribeDomainNamesOfVersionResult::Content> DescribeDomainNamesOfVersionResult::getContents()const
|
||||
{
|
||||
return contents_;
|
||||
}
|
||||
|
||||
@@ -53,8 +53,8 @@ void DescribeRefreshQuotaResult::parse(const std::string &payload)
|
||||
blockQuota_ = value["BlockQuota"].asString();
|
||||
if(!value["PreloadRemain"].isNull())
|
||||
preloadRemain_ = value["PreloadRemain"].asString();
|
||||
if(!value["blockRemain"].isNull())
|
||||
blockRemain_ = value["blockRemain"].asString();
|
||||
if(!value["BlockRemain"].isNull())
|
||||
blockRemain_ = value["BlockRemain"].asString();
|
||||
if(!value["RegexQuota"].isNull())
|
||||
regexQuota_ = value["RegexQuota"].asString();
|
||||
if(!value["RegexRemain"].isNull())
|
||||
|
||||
73
cdn/src/model/DescribeRefreshTaskByIdRequest.cc
Normal file
73
cdn/src/model/DescribeRefreshTaskByIdRequest.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/cdn/model/DescribeRefreshTaskByIdRequest.h>
|
||||
|
||||
using AlibabaCloud::Cdn::Model::DescribeRefreshTaskByIdRequest;
|
||||
|
||||
DescribeRefreshTaskByIdRequest::DescribeRefreshTaskByIdRequest() :
|
||||
RpcServiceRequest("cdn", "2018-05-10", "DescribeRefreshTaskById")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DescribeRefreshTaskByIdRequest::~DescribeRefreshTaskByIdRequest()
|
||||
{}
|
||||
|
||||
int DescribeRefreshTaskByIdRequest::getPageNumber()const
|
||||
{
|
||||
return pageNumber_;
|
||||
}
|
||||
|
||||
void DescribeRefreshTaskByIdRequest::setPageNumber(int pageNumber)
|
||||
{
|
||||
pageNumber_ = pageNumber;
|
||||
setParameter("PageNumber", std::to_string(pageNumber));
|
||||
}
|
||||
|
||||
int DescribeRefreshTaskByIdRequest::getPageSize()const
|
||||
{
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
void DescribeRefreshTaskByIdRequest::setPageSize(int pageSize)
|
||||
{
|
||||
pageSize_ = pageSize;
|
||||
setParameter("PageSize", std::to_string(pageSize));
|
||||
}
|
||||
|
||||
std::string DescribeRefreshTaskByIdRequest::getTaskId()const
|
||||
{
|
||||
return taskId_;
|
||||
}
|
||||
|
||||
void DescribeRefreshTaskByIdRequest::setTaskId(const std::string& taskId)
|
||||
{
|
||||
taskId_ = taskId;
|
||||
setParameter("TaskId", taskId);
|
||||
}
|
||||
|
||||
long DescribeRefreshTaskByIdRequest::getOwnerId()const
|
||||
{
|
||||
return ownerId_;
|
||||
}
|
||||
|
||||
void DescribeRefreshTaskByIdRequest::setOwnerId(long ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
90
cdn/src/model/DescribeRefreshTaskByIdResult.cc
Normal file
90
cdn/src/model/DescribeRefreshTaskByIdResult.cc
Normal file
@@ -0,0 +1,90 @@
|
||||
/*
|
||||
* 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/DescribeRefreshTaskByIdResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Cdn;
|
||||
using namespace AlibabaCloud::Cdn::Model;
|
||||
|
||||
DescribeRefreshTaskByIdResult::DescribeRefreshTaskByIdResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DescribeRefreshTaskByIdResult::DescribeRefreshTaskByIdResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DescribeRefreshTaskByIdResult::~DescribeRefreshTaskByIdResult()
|
||||
{}
|
||||
|
||||
void DescribeRefreshTaskByIdResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allTasksNode = value["Tasks"]["CDNTask"];
|
||||
for (auto valueTasksCDNTask : allTasksNode)
|
||||
{
|
||||
CDNTask tasksObject;
|
||||
if(!valueTasksCDNTask["TaskId"].isNull())
|
||||
tasksObject.taskId = valueTasksCDNTask["TaskId"].asString();
|
||||
if(!valueTasksCDNTask["ObjectPath"].isNull())
|
||||
tasksObject.objectPath = valueTasksCDNTask["ObjectPath"].asString();
|
||||
if(!valueTasksCDNTask["Process"].isNull())
|
||||
tasksObject.process = valueTasksCDNTask["Process"].asString();
|
||||
if(!valueTasksCDNTask["Status"].isNull())
|
||||
tasksObject.status = valueTasksCDNTask["Status"].asString();
|
||||
if(!valueTasksCDNTask["CreationTime"].isNull())
|
||||
tasksObject.creationTime = valueTasksCDNTask["CreationTime"].asString();
|
||||
if(!valueTasksCDNTask["Description"].isNull())
|
||||
tasksObject.description = valueTasksCDNTask["Description"].asString();
|
||||
if(!valueTasksCDNTask["ObjectType"].isNull())
|
||||
tasksObject.objectType = valueTasksCDNTask["ObjectType"].asString();
|
||||
tasks_.push_back(tasksObject);
|
||||
}
|
||||
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());
|
||||
|
||||
}
|
||||
|
||||
long DescribeRefreshTaskByIdResult::getTotalCount()const
|
||||
{
|
||||
return totalCount_;
|
||||
}
|
||||
|
||||
std::vector<DescribeRefreshTaskByIdResult::CDNTask> DescribeRefreshTaskByIdResult::getTasks()const
|
||||
{
|
||||
return tasks_;
|
||||
}
|
||||
|
||||
long DescribeRefreshTaskByIdResult::getPageSize()const
|
||||
{
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
long DescribeRefreshTaskByIdResult::getPageNumber()const
|
||||
{
|
||||
return pageNumber_;
|
||||
}
|
||||
|
||||
@@ -27,17 +27,6 @@ DescribeTagResourcesRequest::DescribeTagResourcesRequest() :
|
||||
DescribeTagResourcesRequest::~DescribeTagResourcesRequest()
|
||||
{}
|
||||
|
||||
std::string DescribeTagResourcesRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void DescribeTagResourcesRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
std::string DescribeTagResourcesRequest::getScope()const
|
||||
{
|
||||
return scope_;
|
||||
|
||||
@@ -131,6 +131,17 @@ void DescribeUserDomainsRequest::setFuncFilter(const std::string& funcFilter)
|
||||
setParameter("FuncFilter", funcFilter);
|
||||
}
|
||||
|
||||
std::string DescribeUserDomainsRequest::getCoverage()const
|
||||
{
|
||||
return coverage_;
|
||||
}
|
||||
|
||||
void DescribeUserDomainsRequest::setCoverage(const std::string& coverage)
|
||||
{
|
||||
coverage_ = coverage;
|
||||
setParameter("Coverage", coverage);
|
||||
}
|
||||
|
||||
std::string DescribeUserDomainsRequest::getDomainName()const
|
||||
{
|
||||
return domainName_;
|
||||
|
||||
@@ -63,6 +63,8 @@ void DescribeUserDomainsResult::parse(const std::string &payload)
|
||||
domainsObject.resourceGroupId = valueDomainsPageData["ResourceGroupId"].asString();
|
||||
if(!valueDomainsPageData["Sandbox"].isNull())
|
||||
domainsObject.sandbox = valueDomainsPageData["Sandbox"].asString();
|
||||
if(!valueDomainsPageData["Coverage"].isNull())
|
||||
domainsObject.coverage = valueDomainsPageData["Coverage"].asString();
|
||||
auto allSourcesNode = allDomainsNode["Sources"]["Source"];
|
||||
for (auto allDomainsNodeSourcesSource : allSourcesNode)
|
||||
{
|
||||
|
||||
@@ -19,7 +19,7 @@
|
||||
using AlibabaCloud::Cdn::Model::ModifyFileCacheExpiredConfigRequest;
|
||||
|
||||
ModifyFileCacheExpiredConfigRequest::ModifyFileCacheExpiredConfigRequest() :
|
||||
RpcServiceRequest("cdn", "2018-05-10", "ModifyFileCacheExpiredConfig")
|
||||
RpcServiceRequest("cdn", "2014-11-11", "ModifyFileCacheExpiredConfig")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
@@ -19,7 +19,7 @@
|
||||
using AlibabaCloud::Cdn::Model::ModifyHttpHeaderConfigRequest;
|
||||
|
||||
ModifyHttpHeaderConfigRequest::ModifyHttpHeaderConfigRequest() :
|
||||
RpcServiceRequest("cdn", "2018-05-10", "ModifyHttpHeaderConfig")
|
||||
RpcServiceRequest("cdn", "2014-11-11", "ModifyHttpHeaderConfig")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
@@ -27,17 +27,6 @@ PushObjectCacheRequest::PushObjectCacheRequest() :
|
||||
PushObjectCacheRequest::~PushObjectCacheRequest()
|
||||
{}
|
||||
|
||||
std::string PushObjectCacheRequest::getArea()const
|
||||
{
|
||||
return area_;
|
||||
}
|
||||
|
||||
void PushObjectCacheRequest::setArea(const std::string& area)
|
||||
{
|
||||
area_ = area;
|
||||
setParameter("Area", area);
|
||||
}
|
||||
|
||||
std::string PushObjectCacheRequest::getObjectPath()const
|
||||
{
|
||||
return objectPath_;
|
||||
@@ -49,17 +38,6 @@ void PushObjectCacheRequest::setObjectPath(const std::string& objectPath)
|
||||
setParameter("ObjectPath", objectPath);
|
||||
}
|
||||
|
||||
long PushObjectCacheRequest::getOwnerId()const
|
||||
{
|
||||
return ownerId_;
|
||||
}
|
||||
|
||||
void PushObjectCacheRequest::setOwnerId(long ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
std::string PushObjectCacheRequest::getSecurityToken()const
|
||||
{
|
||||
return securityToken_;
|
||||
@@ -71,3 +49,25 @@ void PushObjectCacheRequest::setSecurityToken(const std::string& securityToken)
|
||||
setParameter("SecurityToken", securityToken);
|
||||
}
|
||||
|
||||
std::string PushObjectCacheRequest::getArea()const
|
||||
{
|
||||
return area_;
|
||||
}
|
||||
|
||||
void PushObjectCacheRequest::setArea(const std::string& area)
|
||||
{
|
||||
area_ = area;
|
||||
setParameter("Area", area);
|
||||
}
|
||||
|
||||
long PushObjectCacheRequest::getOwnerId()const
|
||||
{
|
||||
return ownerId_;
|
||||
}
|
||||
|
||||
void PushObjectCacheRequest::setOwnerId(long ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
|
||||
@@ -126,14 +126,3 @@ void SetDomainServerCertificateRequest::setOwnerId(long ownerId)
|
||||
setParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
std::string SetDomainServerCertificateRequest::getRegion()const
|
||||
{
|
||||
return region_;
|
||||
}
|
||||
|
||||
void SetDomainServerCertificateRequest::setRegion(const std::string& region)
|
||||
{
|
||||
region_ = region;
|
||||
setParameter("Region", region);
|
||||
}
|
||||
|
||||
|
||||
@@ -1,139 +0,0 @@
|
||||
/*
|
||||
* 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/StartMixStreamsServiceRequest.h>
|
||||
|
||||
using AlibabaCloud::Cdn::Model::StartMixStreamsServiceRequest;
|
||||
|
||||
StartMixStreamsServiceRequest::StartMixStreamsServiceRequest() :
|
||||
RpcServiceRequest("cdn", "2014-11-11", "StartMixStreamsService")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
StartMixStreamsServiceRequest::~StartMixStreamsServiceRequest()
|
||||
{}
|
||||
|
||||
std::string StartMixStreamsServiceRequest::getMixStreamName()const
|
||||
{
|
||||
return mixStreamName_;
|
||||
}
|
||||
|
||||
void StartMixStreamsServiceRequest::setMixStreamName(const std::string& mixStreamName)
|
||||
{
|
||||
mixStreamName_ = mixStreamName;
|
||||
setParameter("MixStreamName", mixStreamName);
|
||||
}
|
||||
|
||||
std::string StartMixStreamsServiceRequest::getMixAppName()const
|
||||
{
|
||||
return mixAppName_;
|
||||
}
|
||||
|
||||
void StartMixStreamsServiceRequest::setMixAppName(const std::string& mixAppName)
|
||||
{
|
||||
mixAppName_ = mixAppName;
|
||||
setParameter("MixAppName", mixAppName);
|
||||
}
|
||||
|
||||
std::string StartMixStreamsServiceRequest::getMainStreamName()const
|
||||
{
|
||||
return mainStreamName_;
|
||||
}
|
||||
|
||||
void StartMixStreamsServiceRequest::setMainStreamName(const std::string& mainStreamName)
|
||||
{
|
||||
mainStreamName_ = mainStreamName;
|
||||
setParameter("MainStreamName", mainStreamName);
|
||||
}
|
||||
|
||||
std::string StartMixStreamsServiceRequest::getMixType()const
|
||||
{
|
||||
return mixType_;
|
||||
}
|
||||
|
||||
void StartMixStreamsServiceRequest::setMixType(const std::string& mixType)
|
||||
{
|
||||
mixType_ = mixType;
|
||||
setParameter("MixType", mixType);
|
||||
}
|
||||
|
||||
std::string StartMixStreamsServiceRequest::getSecurityToken()const
|
||||
{
|
||||
return securityToken_;
|
||||
}
|
||||
|
||||
void StartMixStreamsServiceRequest::setSecurityToken(const std::string& securityToken)
|
||||
{
|
||||
securityToken_ = securityToken;
|
||||
setParameter("SecurityToken", securityToken);
|
||||
}
|
||||
|
||||
std::string StartMixStreamsServiceRequest::getMainDomainName()const
|
||||
{
|
||||
return mainDomainName_;
|
||||
}
|
||||
|
||||
void StartMixStreamsServiceRequest::setMainDomainName(const std::string& mainDomainName)
|
||||
{
|
||||
mainDomainName_ = mainDomainName;
|
||||
setParameter("MainDomainName", mainDomainName);
|
||||
}
|
||||
|
||||
std::string StartMixStreamsServiceRequest::getMixTemplate()const
|
||||
{
|
||||
return mixTemplate_;
|
||||
}
|
||||
|
||||
void StartMixStreamsServiceRequest::setMixTemplate(const std::string& mixTemplate)
|
||||
{
|
||||
mixTemplate_ = mixTemplate;
|
||||
setParameter("MixTemplate", mixTemplate);
|
||||
}
|
||||
|
||||
std::string StartMixStreamsServiceRequest::getMixDomainName()const
|
||||
{
|
||||
return mixDomainName_;
|
||||
}
|
||||
|
||||
void StartMixStreamsServiceRequest::setMixDomainName(const std::string& mixDomainName)
|
||||
{
|
||||
mixDomainName_ = mixDomainName;
|
||||
setParameter("MixDomainName", mixDomainName);
|
||||
}
|
||||
|
||||
long StartMixStreamsServiceRequest::getOwnerId()const
|
||||
{
|
||||
return ownerId_;
|
||||
}
|
||||
|
||||
void StartMixStreamsServiceRequest::setOwnerId(long ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
std::string StartMixStreamsServiceRequest::getMainAppName()const
|
||||
{
|
||||
return mainAppName_;
|
||||
}
|
||||
|
||||
void StartMixStreamsServiceRequest::setMainAppName(const std::string& mainAppName)
|
||||
{
|
||||
mainAppName_ = mainAppName;
|
||||
setParameter("MainAppName", mainAppName);
|
||||
}
|
||||
|
||||
@@ -1,61 +0,0 @@
|
||||
/*
|
||||
* 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/StartMixStreamsServiceResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Cdn;
|
||||
using namespace AlibabaCloud::Cdn::Model;
|
||||
|
||||
StartMixStreamsServiceResult::StartMixStreamsServiceResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
StartMixStreamsServiceResult::StartMixStreamsServiceResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
StartMixStreamsServiceResult::~StartMixStreamsServiceResult()
|
||||
{}
|
||||
|
||||
void StartMixStreamsServiceResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allMixStreamsInfoListNode = value["MixStreamsInfoList"]["MixStreamsInfo"];
|
||||
for (auto valueMixStreamsInfoListMixStreamsInfo : allMixStreamsInfoListNode)
|
||||
{
|
||||
MixStreamsInfo mixStreamsInfoListObject;
|
||||
if(!valueMixStreamsInfoListMixStreamsInfo["DomainName"].isNull())
|
||||
mixStreamsInfoListObject.domainName = valueMixStreamsInfoListMixStreamsInfo["DomainName"].asString();
|
||||
if(!valueMixStreamsInfoListMixStreamsInfo["AppName"].isNull())
|
||||
mixStreamsInfoListObject.appName = valueMixStreamsInfoListMixStreamsInfo["AppName"].asString();
|
||||
if(!valueMixStreamsInfoListMixStreamsInfo["StreamName"].isNull())
|
||||
mixStreamsInfoListObject.streamName = valueMixStreamsInfoListMixStreamsInfo["StreamName"].asString();
|
||||
mixStreamsInfoList_.push_back(mixStreamsInfoListObject);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
std::vector<StartMixStreamsServiceResult::MixStreamsInfo> StartMixStreamsServiceResult::getMixStreamsInfoList()const
|
||||
{
|
||||
return mixStreamsInfoList_;
|
||||
}
|
||||
|
||||
@@ -1,117 +0,0 @@
|
||||
/*
|
||||
* 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/StopMixStreamsServiceRequest.h>
|
||||
|
||||
using AlibabaCloud::Cdn::Model::StopMixStreamsServiceRequest;
|
||||
|
||||
StopMixStreamsServiceRequest::StopMixStreamsServiceRequest() :
|
||||
RpcServiceRequest("cdn", "2014-11-11", "StopMixStreamsService")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
StopMixStreamsServiceRequest::~StopMixStreamsServiceRequest()
|
||||
{}
|
||||
|
||||
std::string StopMixStreamsServiceRequest::getMixStreamName()const
|
||||
{
|
||||
return mixStreamName_;
|
||||
}
|
||||
|
||||
void StopMixStreamsServiceRequest::setMixStreamName(const std::string& mixStreamName)
|
||||
{
|
||||
mixStreamName_ = mixStreamName;
|
||||
setParameter("MixStreamName", mixStreamName);
|
||||
}
|
||||
|
||||
std::string StopMixStreamsServiceRequest::getMixAppName()const
|
||||
{
|
||||
return mixAppName_;
|
||||
}
|
||||
|
||||
void StopMixStreamsServiceRequest::setMixAppName(const std::string& mixAppName)
|
||||
{
|
||||
mixAppName_ = mixAppName;
|
||||
setParameter("MixAppName", mixAppName);
|
||||
}
|
||||
|
||||
std::string StopMixStreamsServiceRequest::getMainStreamName()const
|
||||
{
|
||||
return mainStreamName_;
|
||||
}
|
||||
|
||||
void StopMixStreamsServiceRequest::setMainStreamName(const std::string& mainStreamName)
|
||||
{
|
||||
mainStreamName_ = mainStreamName;
|
||||
setParameter("MainStreamName", mainStreamName);
|
||||
}
|
||||
|
||||
std::string StopMixStreamsServiceRequest::getSecurityToken()const
|
||||
{
|
||||
return securityToken_;
|
||||
}
|
||||
|
||||
void StopMixStreamsServiceRequest::setSecurityToken(const std::string& securityToken)
|
||||
{
|
||||
securityToken_ = securityToken;
|
||||
setParameter("SecurityToken", securityToken);
|
||||
}
|
||||
|
||||
std::string StopMixStreamsServiceRequest::getMainDomainName()const
|
||||
{
|
||||
return mainDomainName_;
|
||||
}
|
||||
|
||||
void StopMixStreamsServiceRequest::setMainDomainName(const std::string& mainDomainName)
|
||||
{
|
||||
mainDomainName_ = mainDomainName;
|
||||
setParameter("MainDomainName", mainDomainName);
|
||||
}
|
||||
|
||||
std::string StopMixStreamsServiceRequest::getMixDomainName()const
|
||||
{
|
||||
return mixDomainName_;
|
||||
}
|
||||
|
||||
void StopMixStreamsServiceRequest::setMixDomainName(const std::string& mixDomainName)
|
||||
{
|
||||
mixDomainName_ = mixDomainName;
|
||||
setParameter("MixDomainName", mixDomainName);
|
||||
}
|
||||
|
||||
long StopMixStreamsServiceRequest::getOwnerId()const
|
||||
{
|
||||
return ownerId_;
|
||||
}
|
||||
|
||||
void StopMixStreamsServiceRequest::setOwnerId(long ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
std::string StopMixStreamsServiceRequest::getMainAppName()const
|
||||
{
|
||||
return mainAppName_;
|
||||
}
|
||||
|
||||
void StopMixStreamsServiceRequest::setMainAppName(const std::string& mainAppName)
|
||||
{
|
||||
mainAppName_ = mainAppName;
|
||||
setParameter("MainAppName", mainAppName);
|
||||
}
|
||||
|
||||
@@ -1,61 +0,0 @@
|
||||
/*
|
||||
* 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/StopMixStreamsServiceResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Cdn;
|
||||
using namespace AlibabaCloud::Cdn::Model;
|
||||
|
||||
StopMixStreamsServiceResult::StopMixStreamsServiceResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
StopMixStreamsServiceResult::StopMixStreamsServiceResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
StopMixStreamsServiceResult::~StopMixStreamsServiceResult()
|
||||
{}
|
||||
|
||||
void StopMixStreamsServiceResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allMixStreamsInfoListNode = value["MixStreamsInfoList"]["MixStreamsInfo"];
|
||||
for (auto valueMixStreamsInfoListMixStreamsInfo : allMixStreamsInfoListNode)
|
||||
{
|
||||
MixStreamsInfo mixStreamsInfoListObject;
|
||||
if(!valueMixStreamsInfoListMixStreamsInfo["DomainName"].isNull())
|
||||
mixStreamsInfoListObject.domainName = valueMixStreamsInfoListMixStreamsInfo["DomainName"].asString();
|
||||
if(!valueMixStreamsInfoListMixStreamsInfo["AppName"].isNull())
|
||||
mixStreamsInfoListObject.appName = valueMixStreamsInfoListMixStreamsInfo["AppName"].asString();
|
||||
if(!valueMixStreamsInfoListMixStreamsInfo["StreamName"].isNull())
|
||||
mixStreamsInfoListObject.streamName = valueMixStreamsInfoListMixStreamsInfo["StreamName"].asString();
|
||||
mixStreamsInfoList_.push_back(mixStreamsInfoListObject);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
std::vector<StopMixStreamsServiceResult::MixStreamsInfo> StopMixStreamsServiceResult::getMixStreamsInfoList()const
|
||||
{
|
||||
return mixStreamsInfoList_;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user