Update DeleteFCTrigger.
This commit is contained in:
@@ -287,13 +287,6 @@ void DescribeDomainConfigsResult::parse(const std::string &payload)
|
||||
domainConfigs_.macServiceConfig.configId = macServiceConfigNode["ConfigId"].asString();
|
||||
if(!macServiceConfigNode["Status"].isNull())
|
||||
domainConfigs_.macServiceConfig.status = macServiceConfigNode["Status"].asString();
|
||||
auto greenManagerConfigNode = domainConfigsNode["GreenManagerConfig"];
|
||||
if(!greenManagerConfigNode["Enabled"].isNull())
|
||||
domainConfigs_.greenManagerConfig.enabled = greenManagerConfigNode["Enabled"].asString();
|
||||
if(!greenManagerConfigNode["ConfigId"].isNull())
|
||||
domainConfigs_.greenManagerConfig.configId = greenManagerConfigNode["ConfigId"].asString();
|
||||
if(!greenManagerConfigNode["Status"].isNull())
|
||||
domainConfigs_.greenManagerConfig.status = greenManagerConfigNode["Status"].asString();
|
||||
auto httpsOptionConfigNode = domainConfigsNode["HttpsOptionConfig"];
|
||||
if(!httpsOptionConfigNode["Http2"].isNull())
|
||||
domainConfigs_.httpsOptionConfig.http2 = httpsOptionConfigNode["Http2"].asString();
|
||||
|
||||
@@ -1,106 +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/DescribeLiveStreamBitRateDataRequest.h>
|
||||
|
||||
using AlibabaCloud::Cdn::Model::DescribeLiveStreamBitRateDataRequest;
|
||||
|
||||
DescribeLiveStreamBitRateDataRequest::DescribeLiveStreamBitRateDataRequest() :
|
||||
RpcServiceRequest("cdn", "2014-11-11", "DescribeLiveStreamBitRateData")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DescribeLiveStreamBitRateDataRequest::~DescribeLiveStreamBitRateDataRequest()
|
||||
{}
|
||||
|
||||
std::string DescribeLiveStreamBitRateDataRequest::getStartTime()const
|
||||
{
|
||||
return startTime_;
|
||||
}
|
||||
|
||||
void DescribeLiveStreamBitRateDataRequest::setStartTime(const std::string& startTime)
|
||||
{
|
||||
startTime_ = startTime;
|
||||
setParameter("StartTime", startTime);
|
||||
}
|
||||
|
||||
std::string DescribeLiveStreamBitRateDataRequest::getAppName()const
|
||||
{
|
||||
return appName_;
|
||||
}
|
||||
|
||||
void DescribeLiveStreamBitRateDataRequest::setAppName(const std::string& appName)
|
||||
{
|
||||
appName_ = appName;
|
||||
setParameter("AppName", appName);
|
||||
}
|
||||
|
||||
std::string DescribeLiveStreamBitRateDataRequest::getSecurityToken()const
|
||||
{
|
||||
return securityToken_;
|
||||
}
|
||||
|
||||
void DescribeLiveStreamBitRateDataRequest::setSecurityToken(const std::string& securityToken)
|
||||
{
|
||||
securityToken_ = securityToken;
|
||||
setParameter("SecurityToken", securityToken);
|
||||
}
|
||||
|
||||
std::string DescribeLiveStreamBitRateDataRequest::getStreamName()const
|
||||
{
|
||||
return streamName_;
|
||||
}
|
||||
|
||||
void DescribeLiveStreamBitRateDataRequest::setStreamName(const std::string& streamName)
|
||||
{
|
||||
streamName_ = streamName;
|
||||
setParameter("StreamName", streamName);
|
||||
}
|
||||
|
||||
std::string DescribeLiveStreamBitRateDataRequest::getDomainName()const
|
||||
{
|
||||
return domainName_;
|
||||
}
|
||||
|
||||
void DescribeLiveStreamBitRateDataRequest::setDomainName(const std::string& domainName)
|
||||
{
|
||||
domainName_ = domainName;
|
||||
setParameter("DomainName", domainName);
|
||||
}
|
||||
|
||||
std::string DescribeLiveStreamBitRateDataRequest::getEndTime()const
|
||||
{
|
||||
return endTime_;
|
||||
}
|
||||
|
||||
void DescribeLiveStreamBitRateDataRequest::setEndTime(const std::string& endTime)
|
||||
{
|
||||
endTime_ = endTime;
|
||||
setParameter("EndTime", endTime);
|
||||
}
|
||||
|
||||
long DescribeLiveStreamBitRateDataRequest::getOwnerId()const
|
||||
{
|
||||
return ownerId_;
|
||||
}
|
||||
|
||||
void DescribeLiveStreamBitRateDataRequest::setOwnerId(long ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
@@ -1,65 +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/DescribeLiveStreamBitRateDataResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Cdn;
|
||||
using namespace AlibabaCloud::Cdn::Model;
|
||||
|
||||
DescribeLiveStreamBitRateDataResult::DescribeLiveStreamBitRateDataResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DescribeLiveStreamBitRateDataResult::DescribeLiveStreamBitRateDataResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DescribeLiveStreamBitRateDataResult::~DescribeLiveStreamBitRateDataResult()
|
||||
{}
|
||||
|
||||
void DescribeLiveStreamBitRateDataResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allFrameRateAndBitRateInfosNode = value["FrameRateAndBitRateInfos"]["FrameRateAndBitRateInfo"];
|
||||
for (auto valueFrameRateAndBitRateInfosFrameRateAndBitRateInfo : allFrameRateAndBitRateInfosNode)
|
||||
{
|
||||
FrameRateAndBitRateInfo frameRateAndBitRateInfosObject;
|
||||
if(!valueFrameRateAndBitRateInfosFrameRateAndBitRateInfo["StreamUrl"].isNull())
|
||||
frameRateAndBitRateInfosObject.streamUrl = valueFrameRateAndBitRateInfosFrameRateAndBitRateInfo["StreamUrl"].asString();
|
||||
if(!valueFrameRateAndBitRateInfosFrameRateAndBitRateInfo["VideoFrameRate"].isNull())
|
||||
frameRateAndBitRateInfosObject.videoFrameRate = std::stof(valueFrameRateAndBitRateInfosFrameRateAndBitRateInfo["VideoFrameRate"].asString());
|
||||
if(!valueFrameRateAndBitRateInfosFrameRateAndBitRateInfo["AudioFrameRate"].isNull())
|
||||
frameRateAndBitRateInfosObject.audioFrameRate = std::stof(valueFrameRateAndBitRateInfosFrameRateAndBitRateInfo["AudioFrameRate"].asString());
|
||||
if(!valueFrameRateAndBitRateInfosFrameRateAndBitRateInfo["BitRate"].isNull())
|
||||
frameRateAndBitRateInfosObject.bitRate = std::stof(valueFrameRateAndBitRateInfosFrameRateAndBitRateInfo["BitRate"].asString());
|
||||
if(!valueFrameRateAndBitRateInfosFrameRateAndBitRateInfo["Time"].isNull())
|
||||
frameRateAndBitRateInfosObject.time = valueFrameRateAndBitRateInfosFrameRateAndBitRateInfo["Time"].asString();
|
||||
frameRateAndBitRateInfos_.push_back(frameRateAndBitRateInfosObject);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
std::vector<DescribeLiveStreamBitRateDataResult::FrameRateAndBitRateInfo> DescribeLiveStreamBitRateDataResult::getFrameRateAndBitRateInfos()const
|
||||
{
|
||||
return frameRateAndBitRateInfos_;
|
||||
}
|
||||
|
||||
@@ -1,62 +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/DescribeLiveStreamsBlockListRequest.h>
|
||||
|
||||
using AlibabaCloud::Cdn::Model::DescribeLiveStreamsBlockListRequest;
|
||||
|
||||
DescribeLiveStreamsBlockListRequest::DescribeLiveStreamsBlockListRequest() :
|
||||
RpcServiceRequest("cdn", "2014-11-11", "DescribeLiveStreamsBlockList")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DescribeLiveStreamsBlockListRequest::~DescribeLiveStreamsBlockListRequest()
|
||||
{}
|
||||
|
||||
std::string DescribeLiveStreamsBlockListRequest::getDomainName()const
|
||||
{
|
||||
return domainName_;
|
||||
}
|
||||
|
||||
void DescribeLiveStreamsBlockListRequest::setDomainName(const std::string& domainName)
|
||||
{
|
||||
domainName_ = domainName;
|
||||
setParameter("DomainName", domainName);
|
||||
}
|
||||
|
||||
long DescribeLiveStreamsBlockListRequest::getOwnerId()const
|
||||
{
|
||||
return ownerId_;
|
||||
}
|
||||
|
||||
void DescribeLiveStreamsBlockListRequest::setOwnerId(long ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
std::string DescribeLiveStreamsBlockListRequest::getSecurityToken()const
|
||||
{
|
||||
return securityToken_;
|
||||
}
|
||||
|
||||
void DescribeLiveStreamsBlockListRequest::setSecurityToken(const std::string& securityToken)
|
||||
{
|
||||
securityToken_ = securityToken;
|
||||
setParameter("SecurityToken", securityToken);
|
||||
}
|
||||
|
||||
@@ -1,59 +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/DescribeLiveStreamsBlockListResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Cdn;
|
||||
using namespace AlibabaCloud::Cdn::Model;
|
||||
|
||||
DescribeLiveStreamsBlockListResult::DescribeLiveStreamsBlockListResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DescribeLiveStreamsBlockListResult::DescribeLiveStreamsBlockListResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DescribeLiveStreamsBlockListResult::~DescribeLiveStreamsBlockListResult()
|
||||
{}
|
||||
|
||||
void DescribeLiveStreamsBlockListResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allStreamUrls = value["StreamUrls"]["StreamUrl"];
|
||||
for (const auto &item : allStreamUrls)
|
||||
streamUrls_.push_back(item.asString());
|
||||
if(!value["DomainName"].isNull())
|
||||
domainName_ = value["DomainName"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string DescribeLiveStreamsBlockListResult::getDomainName()const
|
||||
{
|
||||
return domainName_;
|
||||
}
|
||||
|
||||
std::vector<std::string> DescribeLiveStreamsBlockListResult::getStreamUrls()const
|
||||
{
|
||||
return streamUrls_;
|
||||
}
|
||||
|
||||
@@ -47,11 +47,6 @@ void DescribeUserConfigsResult::parse(const std::string &payload)
|
||||
configs_.ossLogConfig.bucket = ossLogConfigNode["Bucket"].asString();
|
||||
if(!ossLogConfigNode["Prefix"].isNull())
|
||||
configs_.ossLogConfig.prefix = ossLogConfigNode["Prefix"].asString();
|
||||
auto greenManagerConfigNode = configsNode["GreenManagerConfig"];
|
||||
if(!greenManagerConfigNode["Quota"].isNull())
|
||||
configs_.greenManagerConfig.quota = greenManagerConfigNode["Quota"].asString();
|
||||
if(!greenManagerConfigNode["Ratio"].isNull())
|
||||
configs_.greenManagerConfig.ratio = greenManagerConfigNode["Ratio"].asString();
|
||||
auto wafConfigNode = configsNode["WafConfig"];
|
||||
if(!wafConfigNode["Enable"].isNull())
|
||||
configs_.wafConfig.enable = wafConfigNode["Enable"].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/SetUserGreenManagerConfigRequest.h>
|
||||
|
||||
using AlibabaCloud::Cdn::Model::SetUserGreenManagerConfigRequest;
|
||||
|
||||
SetUserGreenManagerConfigRequest::SetUserGreenManagerConfigRequest() :
|
||||
RpcServiceRequest("cdn", "2018-05-10", "SetUserGreenManagerConfig")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
SetUserGreenManagerConfigRequest::~SetUserGreenManagerConfigRequest()
|
||||
{}
|
||||
|
||||
long SetUserGreenManagerConfigRequest::getOwnerId()const
|
||||
{
|
||||
return ownerId_;
|
||||
}
|
||||
|
||||
void SetUserGreenManagerConfigRequest::setOwnerId(long ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
std::string SetUserGreenManagerConfigRequest::getSecurityToken()const
|
||||
{
|
||||
return securityToken_;
|
||||
}
|
||||
|
||||
void SetUserGreenManagerConfigRequest::setSecurityToken(const std::string& securityToken)
|
||||
{
|
||||
securityToken_ = securityToken;
|
||||
setParameter("SecurityToken", securityToken);
|
||||
}
|
||||
|
||||
std::string SetUserGreenManagerConfigRequest::getQuota()const
|
||||
{
|
||||
return quota_;
|
||||
}
|
||||
|
||||
void SetUserGreenManagerConfigRequest::setQuota(const std::string& quota)
|
||||
{
|
||||
quota_ = quota;
|
||||
setParameter("Quota", quota);
|
||||
}
|
||||
|
||||
std::string SetUserGreenManagerConfigRequest::getRatio()const
|
||||
{
|
||||
return ratio_;
|
||||
}
|
||||
|
||||
void SetUserGreenManagerConfigRequest::setRatio(const std::string& ratio)
|
||||
{
|
||||
ratio_ = ratio;
|
||||
setParameter("Ratio", ratio);
|
||||
}
|
||||
|
||||
@@ -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/SetUserGreenManagerConfigResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Cdn;
|
||||
using namespace AlibabaCloud::Cdn::Model;
|
||||
|
||||
SetUserGreenManagerConfigResult::SetUserGreenManagerConfigResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
SetUserGreenManagerConfigResult::SetUserGreenManagerConfigResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
SetUserGreenManagerConfigResult::~SetUserGreenManagerConfigResult()
|
||||
{}
|
||||
|
||||
void SetUserGreenManagerConfigResult::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