Add ListDcdnEsTemplateInfo.

This commit is contained in:
sdk-team
2021-12-29 01:53:03 +00:00
parent 4e60cd4654
commit d1bab4fe11
13 changed files with 712 additions and 1 deletions

View File

@@ -1,3 +1,6 @@
2021-12-29 Version: 1.36.1000
- Add ListDcdnEsTemplateInfo.
2021-12-28 Version: 1.36.999
- Support managed rule query.

View File

@@ -1 +1 @@
1.36.999
1.36.1000

View File

@@ -55,6 +55,8 @@ set(dcdn_public_header_model
include/alibabacloud/dcdn/model/CreateRoutineResult.h
include/alibabacloud/dcdn/model/CreateSlrAndSlsProjectRequest.h
include/alibabacloud/dcdn/model/CreateSlrAndSlsProjectResult.h
include/alibabacloud/dcdn/model/DcdnHttpRequestTestToolRequest.h
include/alibabacloud/dcdn/model/DcdnHttpRequestTestToolResult.h
include/alibabacloud/dcdn/model/DeleteDcdnDeliverTaskRequest.h
include/alibabacloud/dcdn/model/DeleteDcdnDeliverTaskResult.h
include/alibabacloud/dcdn/model/DeleteDcdnDomainRequest.h
@@ -271,6 +273,8 @@ set(dcdn_public_header_model
include/alibabacloud/dcdn/model/DescribeUserLogserviceStatusResult.h
include/alibabacloud/dcdn/model/EditRoutineConfRequest.h
include/alibabacloud/dcdn/model/EditRoutineConfResult.h
include/alibabacloud/dcdn/model/ListDcdnEsTemplateInfoRequest.h
include/alibabacloud/dcdn/model/ListDcdnEsTemplateInfoResult.h
include/alibabacloud/dcdn/model/ListDcdnRealTimeDeliveryProjectRequest.h
include/alibabacloud/dcdn/model/ListDcdnRealTimeDeliveryProjectResult.h
include/alibabacloud/dcdn/model/ModifyDCdnDomainSchdmByPropertyRequest.h
@@ -370,6 +374,8 @@ set(dcdn_src
src/model/CreateRoutineResult.cc
src/model/CreateSlrAndSlsProjectRequest.cc
src/model/CreateSlrAndSlsProjectResult.cc
src/model/DcdnHttpRequestTestToolRequest.cc
src/model/DcdnHttpRequestTestToolResult.cc
src/model/DeleteDcdnDeliverTaskRequest.cc
src/model/DeleteDcdnDeliverTaskResult.cc
src/model/DeleteDcdnDomainRequest.cc
@@ -586,6 +592,8 @@ set(dcdn_src
src/model/DescribeUserLogserviceStatusResult.cc
src/model/EditRoutineConfRequest.cc
src/model/EditRoutineConfResult.cc
src/model/ListDcdnEsTemplateInfoRequest.cc
src/model/ListDcdnEsTemplateInfoResult.cc
src/model/ListDcdnRealTimeDeliveryProjectRequest.cc
src/model/ListDcdnRealTimeDeliveryProjectResult.cc
src/model/ModifyDCdnDomainSchdmByPropertyRequest.cc

View File

@@ -56,6 +56,8 @@
#include "model/CreateRoutineResult.h"
#include "model/CreateSlrAndSlsProjectRequest.h"
#include "model/CreateSlrAndSlsProjectResult.h"
#include "model/DcdnHttpRequestTestToolRequest.h"
#include "model/DcdnHttpRequestTestToolResult.h"
#include "model/DeleteDcdnDeliverTaskRequest.h"
#include "model/DeleteDcdnDeliverTaskResult.h"
#include "model/DeleteDcdnDomainRequest.h"
@@ -272,6 +274,8 @@
#include "model/DescribeUserLogserviceStatusResult.h"
#include "model/EditRoutineConfRequest.h"
#include "model/EditRoutineConfResult.h"
#include "model/ListDcdnEsTemplateInfoRequest.h"
#include "model/ListDcdnEsTemplateInfoResult.h"
#include "model/ListDcdnRealTimeDeliveryProjectRequest.h"
#include "model/ListDcdnRealTimeDeliveryProjectResult.h"
#include "model/ModifyDCdnDomainSchdmByPropertyRequest.h"
@@ -394,6 +398,9 @@ namespace AlibabaCloud
typedef Outcome<Error, Model::CreateSlrAndSlsProjectResult> CreateSlrAndSlsProjectOutcome;
typedef std::future<CreateSlrAndSlsProjectOutcome> CreateSlrAndSlsProjectOutcomeCallable;
typedef std::function<void(const DcdnClient*, const Model::CreateSlrAndSlsProjectRequest&, const CreateSlrAndSlsProjectOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> CreateSlrAndSlsProjectAsyncHandler;
typedef Outcome<Error, Model::DcdnHttpRequestTestToolResult> DcdnHttpRequestTestToolOutcome;
typedef std::future<DcdnHttpRequestTestToolOutcome> DcdnHttpRequestTestToolOutcomeCallable;
typedef std::function<void(const DcdnClient*, const Model::DcdnHttpRequestTestToolRequest&, const DcdnHttpRequestTestToolOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DcdnHttpRequestTestToolAsyncHandler;
typedef Outcome<Error, Model::DeleteDcdnDeliverTaskResult> DeleteDcdnDeliverTaskOutcome;
typedef std::future<DeleteDcdnDeliverTaskOutcome> DeleteDcdnDeliverTaskOutcomeCallable;
typedef std::function<void(const DcdnClient*, const Model::DeleteDcdnDeliverTaskRequest&, const DeleteDcdnDeliverTaskOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DeleteDcdnDeliverTaskAsyncHandler;
@@ -718,6 +725,9 @@ namespace AlibabaCloud
typedef Outcome<Error, Model::EditRoutineConfResult> EditRoutineConfOutcome;
typedef std::future<EditRoutineConfOutcome> EditRoutineConfOutcomeCallable;
typedef std::function<void(const DcdnClient*, const Model::EditRoutineConfRequest&, const EditRoutineConfOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> EditRoutineConfAsyncHandler;
typedef Outcome<Error, Model::ListDcdnEsTemplateInfoResult> ListDcdnEsTemplateInfoOutcome;
typedef std::future<ListDcdnEsTemplateInfoOutcome> ListDcdnEsTemplateInfoOutcomeCallable;
typedef std::function<void(const DcdnClient*, const Model::ListDcdnEsTemplateInfoRequest&, const ListDcdnEsTemplateInfoOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ListDcdnEsTemplateInfoAsyncHandler;
typedef Outcome<Error, Model::ListDcdnRealTimeDeliveryProjectResult> ListDcdnRealTimeDeliveryProjectOutcome;
typedef std::future<ListDcdnRealTimeDeliveryProjectOutcome> ListDcdnRealTimeDeliveryProjectOutcomeCallable;
typedef std::function<void(const DcdnClient*, const Model::ListDcdnRealTimeDeliveryProjectRequest&, const ListDcdnRealTimeDeliveryProjectOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ListDcdnRealTimeDeliveryProjectAsyncHandler;
@@ -867,6 +877,9 @@ namespace AlibabaCloud
CreateSlrAndSlsProjectOutcome createSlrAndSlsProject(const Model::CreateSlrAndSlsProjectRequest &request)const;
void createSlrAndSlsProjectAsync(const Model::CreateSlrAndSlsProjectRequest& request, const CreateSlrAndSlsProjectAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
CreateSlrAndSlsProjectOutcomeCallable createSlrAndSlsProjectCallable(const Model::CreateSlrAndSlsProjectRequest& request) const;
DcdnHttpRequestTestToolOutcome dcdnHttpRequestTestTool(const Model::DcdnHttpRequestTestToolRequest &request)const;
void dcdnHttpRequestTestToolAsync(const Model::DcdnHttpRequestTestToolRequest& request, const DcdnHttpRequestTestToolAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
DcdnHttpRequestTestToolOutcomeCallable dcdnHttpRequestTestToolCallable(const Model::DcdnHttpRequestTestToolRequest& request) const;
DeleteDcdnDeliverTaskOutcome deleteDcdnDeliverTask(const Model::DeleteDcdnDeliverTaskRequest &request)const;
void deleteDcdnDeliverTaskAsync(const Model::DeleteDcdnDeliverTaskRequest& request, const DeleteDcdnDeliverTaskAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
DeleteDcdnDeliverTaskOutcomeCallable deleteDcdnDeliverTaskCallable(const Model::DeleteDcdnDeliverTaskRequest& request) const;
@@ -1191,6 +1204,9 @@ namespace AlibabaCloud
EditRoutineConfOutcome editRoutineConf(const Model::EditRoutineConfRequest &request)const;
void editRoutineConfAsync(const Model::EditRoutineConfRequest& request, const EditRoutineConfAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
EditRoutineConfOutcomeCallable editRoutineConfCallable(const Model::EditRoutineConfRequest& request) const;
ListDcdnEsTemplateInfoOutcome listDcdnEsTemplateInfo(const Model::ListDcdnEsTemplateInfoRequest &request)const;
void listDcdnEsTemplateInfoAsync(const Model::ListDcdnEsTemplateInfoRequest& request, const ListDcdnEsTemplateInfoAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
ListDcdnEsTemplateInfoOutcomeCallable listDcdnEsTemplateInfoCallable(const Model::ListDcdnEsTemplateInfoRequest& request) const;
ListDcdnRealTimeDeliveryProjectOutcome listDcdnRealTimeDeliveryProject(const Model::ListDcdnRealTimeDeliveryProjectRequest &request)const;
void listDcdnRealTimeDeliveryProjectAsync(const Model::ListDcdnRealTimeDeliveryProjectRequest& request, const ListDcdnRealTimeDeliveryProjectAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
ListDcdnRealTimeDeliveryProjectOutcomeCallable listDcdnRealTimeDeliveryProjectCallable(const Model::ListDcdnRealTimeDeliveryProjectRequest& request) const;

View File

@@ -0,0 +1,72 @@
/*
* 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.
*/
#ifndef ALIBABACLOUD_DCDN_MODEL_DCDNHTTPREQUESTTESTTOOLREQUEST_H_
#define ALIBABACLOUD_DCDN_MODEL_DCDNHTTPREQUESTTESTTOOLREQUEST_H_
#include <string>
#include <vector>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <alibabacloud/dcdn/DcdnExport.h>
namespace AlibabaCloud
{
namespace Dcdn
{
namespace Model
{
class ALIBABACLOUD_DCDN_EXPORT DcdnHttpRequestTestToolRequest : public RpcServiceRequest
{
public:
DcdnHttpRequestTestToolRequest();
~DcdnHttpRequestTestToolRequest();
std::string getProxyIp()const;
void setProxyIp(const std::string& proxyIp);
std::string getScheme()const;
void setScheme(const std::string& scheme);
std::string getBody()const;
void setBody(const std::string& body);
std::string getHost()const;
void setHost(const std::string& host);
std::string getMethod()const;
void setMethod(const std::string& method);
long getOwnerId()const;
void setOwnerId(long ownerId);
std::string getUri()const;
void setUri(const std::string& uri);
std::string getArgs()const;
void setArgs(const std::string& args);
std::string getHeader()const;
void setHeader(const std::string& header);
private:
std::string proxyIp_;
std::string scheme_;
std::string body_;
std::string host_;
std::string method_;
long ownerId_;
std::string uri_;
std::string args_;
std::string header_;
};
}
}
}
#endif // !ALIBABACLOUD_DCDN_MODEL_DCDNHTTPREQUESTTESTTOOLREQUEST_H_

View File

@@ -0,0 +1,55 @@
/*
* 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.
*/
#ifndef ALIBABACLOUD_DCDN_MODEL_DCDNHTTPREQUESTTESTTOOLRESULT_H_
#define ALIBABACLOUD_DCDN_MODEL_DCDNHTTPREQUESTTESTTOOLRESULT_H_
#include <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/dcdn/DcdnExport.h>
namespace AlibabaCloud
{
namespace Dcdn
{
namespace Model
{
class ALIBABACLOUD_DCDN_EXPORT DcdnHttpRequestTestToolResult : public ServiceResult
{
public:
DcdnHttpRequestTestToolResult();
explicit DcdnHttpRequestTestToolResult(const std::string &payload);
~DcdnHttpRequestTestToolResult();
std::string getHeader()const;
std::string getBody()const;
int getStatusCode()const;
protected:
void parse(const std::string &payload);
private:
std::string header_;
std::string body_;
int statusCode_;
};
}
}
}
#endif // !ALIBABACLOUD_DCDN_MODEL_DCDNHTTPREQUESTTESTTOOLRESULT_H_

View File

@@ -0,0 +1,60 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_DCDN_MODEL_LISTDCDNESTEMPLATEINFOREQUEST_H_
#define ALIBABACLOUD_DCDN_MODEL_LISTDCDNESTEMPLATEINFOREQUEST_H_
#include <string>
#include <vector>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <alibabacloud/dcdn/DcdnExport.h>
namespace AlibabaCloud
{
namespace Dcdn
{
namespace Model
{
class ALIBABACLOUD_DCDN_EXPORT ListDcdnEsTemplateInfoRequest : public RpcServiceRequest
{
public:
ListDcdnEsTemplateInfoRequest();
~ListDcdnEsTemplateInfoRequest();
std::string getLanguage()const;
void setLanguage(const std::string& language);
int getPageNumber()const;
void setPageNumber(int pageNumber);
int getPageSize()const;
void setPageSize(int pageSize);
std::string getOp()const;
void setOp(const std::string& op);
long getOwnerId()const;
void setOwnerId(long ownerId);
private:
std::string language_;
int pageNumber_;
int pageSize_;
std::string op_;
long ownerId_;
};
}
}
}
#endif // !ALIBABACLOUD_DCDN_MODEL_LISTDCDNESTEMPLATEINFOREQUEST_H_

View File

@@ -0,0 +1,64 @@
/*
* 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.
*/
#ifndef ALIBABACLOUD_DCDN_MODEL_LISTDCDNESTEMPLATEINFORESULT_H_
#define ALIBABACLOUD_DCDN_MODEL_LISTDCDNESTEMPLATEINFORESULT_H_
#include <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/dcdn/DcdnExport.h>
namespace AlibabaCloud
{
namespace Dcdn
{
namespace Model
{
class ALIBABACLOUD_DCDN_EXPORT ListDcdnEsTemplateInfoResult : public ServiceResult
{
public:
struct DataItem
{
std::string tmplDef;
int id;
std::string tmplDesc;
std::string tmplName;
};
ListDcdnEsTemplateInfoResult();
explicit ListDcdnEsTemplateInfoResult(const std::string &payload);
~ListDcdnEsTemplateInfoResult();
int getTotalCount()const;
int getPageSize()const;
std::vector<DataItem> getDataItems()const;
int getPageNumber()const;
protected:
void parse(const std::string &payload);
private:
int totalCount_;
int pageSize_;
std::vector<DataItem> dataItems_;
int pageNumber_;
};
}
}
}
#endif // !ALIBABACLOUD_DCDN_MODEL_LISTDCDNESTEMPLATEINFORESULT_H_

View File

@@ -663,6 +663,42 @@ DcdnClient::CreateSlrAndSlsProjectOutcomeCallable DcdnClient::createSlrAndSlsPro
return task->get_future();
}
DcdnClient::DcdnHttpRequestTestToolOutcome DcdnClient::dcdnHttpRequestTestTool(const DcdnHttpRequestTestToolRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return DcdnHttpRequestTestToolOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return DcdnHttpRequestTestToolOutcome(DcdnHttpRequestTestToolResult(outcome.result()));
else
return DcdnHttpRequestTestToolOutcome(outcome.error());
}
void DcdnClient::dcdnHttpRequestTestToolAsync(const DcdnHttpRequestTestToolRequest& request, const DcdnHttpRequestTestToolAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, dcdnHttpRequestTestTool(request), context);
};
asyncExecute(new Runnable(fn));
}
DcdnClient::DcdnHttpRequestTestToolOutcomeCallable DcdnClient::dcdnHttpRequestTestToolCallable(const DcdnHttpRequestTestToolRequest &request) const
{
auto task = std::make_shared<std::packaged_task<DcdnHttpRequestTestToolOutcome()>>(
[this, request]()
{
return this->dcdnHttpRequestTestTool(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
DcdnClient::DeleteDcdnDeliverTaskOutcome DcdnClient::deleteDcdnDeliverTask(const DeleteDcdnDeliverTaskRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
@@ -4551,6 +4587,42 @@ DcdnClient::EditRoutineConfOutcomeCallable DcdnClient::editRoutineConfCallable(c
return task->get_future();
}
DcdnClient::ListDcdnEsTemplateInfoOutcome DcdnClient::listDcdnEsTemplateInfo(const ListDcdnEsTemplateInfoRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return ListDcdnEsTemplateInfoOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return ListDcdnEsTemplateInfoOutcome(ListDcdnEsTemplateInfoResult(outcome.result()));
else
return ListDcdnEsTemplateInfoOutcome(outcome.error());
}
void DcdnClient::listDcdnEsTemplateInfoAsync(const ListDcdnEsTemplateInfoRequest& request, const ListDcdnEsTemplateInfoAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, listDcdnEsTemplateInfo(request), context);
};
asyncExecute(new Runnable(fn));
}
DcdnClient::ListDcdnEsTemplateInfoOutcomeCallable DcdnClient::listDcdnEsTemplateInfoCallable(const ListDcdnEsTemplateInfoRequest &request) const
{
auto task = std::make_shared<std::packaged_task<ListDcdnEsTemplateInfoOutcome()>>(
[this, request]()
{
return this->listDcdnEsTemplateInfo(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
DcdnClient::ListDcdnRealTimeDeliveryProjectOutcome DcdnClient::listDcdnRealTimeDeliveryProject(const ListDcdnRealTimeDeliveryProjectRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();

View File

@@ -0,0 +1,128 @@
/*
* 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/DcdnHttpRequestTestToolRequest.h>
using AlibabaCloud::Dcdn::Model::DcdnHttpRequestTestToolRequest;
DcdnHttpRequestTestToolRequest::DcdnHttpRequestTestToolRequest() :
RpcServiceRequest("dcdn", "2018-01-15", "DcdnHttpRequestTestTool")
{
setMethod(HttpRequest::Method::Post);
}
DcdnHttpRequestTestToolRequest::~DcdnHttpRequestTestToolRequest()
{}
std::string DcdnHttpRequestTestToolRequest::getProxyIp()const
{
return proxyIp_;
}
void DcdnHttpRequestTestToolRequest::setProxyIp(const std::string& proxyIp)
{
proxyIp_ = proxyIp;
setBodyParameter("ProxyIp", proxyIp);
}
std::string DcdnHttpRequestTestToolRequest::getScheme()const
{
return scheme_;
}
void DcdnHttpRequestTestToolRequest::setScheme(const std::string& scheme)
{
scheme_ = scheme;
setBodyParameter("Scheme", scheme);
}
std::string DcdnHttpRequestTestToolRequest::getBody()const
{
return body_;
}
void DcdnHttpRequestTestToolRequest::setBody(const std::string& body)
{
body_ = body;
setBodyParameter("Body", body);
}
std::string DcdnHttpRequestTestToolRequest::getHost()const
{
return host_;
}
void DcdnHttpRequestTestToolRequest::setHost(const std::string& host)
{
host_ = host;
setBodyParameter("Host", host);
}
std::string DcdnHttpRequestTestToolRequest::getMethod()const
{
return method_;
}
void DcdnHttpRequestTestToolRequest::setMethod(const std::string& method)
{
method_ = method;
setBodyParameter("Method", method);
}
long DcdnHttpRequestTestToolRequest::getOwnerId()const
{
return ownerId_;
}
void DcdnHttpRequestTestToolRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setParameter("OwnerId", std::to_string(ownerId));
}
std::string DcdnHttpRequestTestToolRequest::getUri()const
{
return uri_;
}
void DcdnHttpRequestTestToolRequest::setUri(const std::string& uri)
{
uri_ = uri;
setBodyParameter("Uri", uri);
}
std::string DcdnHttpRequestTestToolRequest::getArgs()const
{
return args_;
}
void DcdnHttpRequestTestToolRequest::setArgs(const std::string& args)
{
args_ = args;
setBodyParameter("Args", args);
}
std::string DcdnHttpRequestTestToolRequest::getHeader()const
{
return header_;
}
void DcdnHttpRequestTestToolRequest::setHeader(const std::string& header)
{
header_ = header;
setBodyParameter("Header", header);
}

View File

@@ -0,0 +1,65 @@
/*
* 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/DcdnHttpRequestTestToolResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Dcdn;
using namespace AlibabaCloud::Dcdn::Model;
DcdnHttpRequestTestToolResult::DcdnHttpRequestTestToolResult() :
ServiceResult()
{}
DcdnHttpRequestTestToolResult::DcdnHttpRequestTestToolResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DcdnHttpRequestTestToolResult::~DcdnHttpRequestTestToolResult()
{}
void DcdnHttpRequestTestToolResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
if(!value["Header"].isNull())
header_ = value["Header"].asString();
if(!value["Body"].isNull())
body_ = value["Body"].asString();
if(!value["StatusCode"].isNull())
statusCode_ = std::stoi(value["StatusCode"].asString());
}
std::string DcdnHttpRequestTestToolResult::getHeader()const
{
return header_;
}
std::string DcdnHttpRequestTestToolResult::getBody()const
{
return body_;
}
int DcdnHttpRequestTestToolResult::getStatusCode()const
{
return statusCode_;
}

View 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/ListDcdnEsTemplateInfoRequest.h>
using AlibabaCloud::Dcdn::Model::ListDcdnEsTemplateInfoRequest;
ListDcdnEsTemplateInfoRequest::ListDcdnEsTemplateInfoRequest() :
RpcServiceRequest("dcdn", "2018-01-15", "ListDcdnEsTemplateInfo")
{
setMethod(HttpRequest::Method::Get);
}
ListDcdnEsTemplateInfoRequest::~ListDcdnEsTemplateInfoRequest()
{}
std::string ListDcdnEsTemplateInfoRequest::getLanguage()const
{
return language_;
}
void ListDcdnEsTemplateInfoRequest::setLanguage(const std::string& language)
{
language_ = language;
setParameter("Language", language);
}
int ListDcdnEsTemplateInfoRequest::getPageNumber()const
{
return pageNumber_;
}
void ListDcdnEsTemplateInfoRequest::setPageNumber(int pageNumber)
{
pageNumber_ = pageNumber;
setParameter("PageNumber", std::to_string(pageNumber));
}
int ListDcdnEsTemplateInfoRequest::getPageSize()const
{
return pageSize_;
}
void ListDcdnEsTemplateInfoRequest::setPageSize(int pageSize)
{
pageSize_ = pageSize;
setParameter("PageSize", std::to_string(pageSize));
}
std::string ListDcdnEsTemplateInfoRequest::getOp()const
{
return op_;
}
void ListDcdnEsTemplateInfoRequest::setOp(const std::string& op)
{
op_ = op;
setParameter("Op", op);
}
long ListDcdnEsTemplateInfoRequest::getOwnerId()const
{
return ownerId_;
}
void ListDcdnEsTemplateInfoRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setParameter("OwnerId", std::to_string(ownerId));
}

View 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/ListDcdnEsTemplateInfoResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Dcdn;
using namespace AlibabaCloud::Dcdn::Model;
ListDcdnEsTemplateInfoResult::ListDcdnEsTemplateInfoResult() :
ServiceResult()
{}
ListDcdnEsTemplateInfoResult::ListDcdnEsTemplateInfoResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
ListDcdnEsTemplateInfoResult::~ListDcdnEsTemplateInfoResult()
{}
void ListDcdnEsTemplateInfoResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto allDataItemsNode = value["DataItems"]["DataItem"];
for (auto valueDataItemsDataItem : allDataItemsNode)
{
DataItem dataItemsObject;
if(!valueDataItemsDataItem["Id"].isNull())
dataItemsObject.id = std::stoi(valueDataItemsDataItem["Id"].asString());
if(!valueDataItemsDataItem["TmplName"].isNull())
dataItemsObject.tmplName = valueDataItemsDataItem["TmplName"].asString();
if(!valueDataItemsDataItem["TmplDef"].isNull())
dataItemsObject.tmplDef = valueDataItemsDataItem["TmplDef"].asString();
if(!valueDataItemsDataItem["TmplDesc"].isNull())
dataItemsObject.tmplDesc = valueDataItemsDataItem["TmplDesc"].asString();
dataItems_.push_back(dataItemsObject);
}
if(!value["TotalCount"].isNull())
totalCount_ = std::stoi(value["TotalCount"].asString());
if(!value["PageSize"].isNull())
pageSize_ = std::stoi(value["PageSize"].asString());
if(!value["PageNumber"].isNull())
pageNumber_ = std::stoi(value["PageNumber"].asString());
}
int ListDcdnEsTemplateInfoResult::getTotalCount()const
{
return totalCount_;
}
int ListDcdnEsTemplateInfoResult::getPageSize()const
{
return pageSize_;
}
std::vector<ListDcdnEsTemplateInfoResult::DataItem> ListDcdnEsTemplateInfoResult::getDataItems()const
{
return dataItems_;
}
int ListDcdnEsTemplateInfoResult::getPageNumber()const
{
return pageNumber_;
}