Compare commits
17 Commits
cams-patch
...
reid-patch
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
b5c0b83b02 | ||
|
|
1abc39e9d1 | ||
|
|
65262923e4 | ||
|
|
4830e8821e | ||
|
|
1a9c4d4d9c | ||
|
|
c707baa95b | ||
|
|
5d7d320deb | ||
|
|
96b3defcc9 | ||
|
|
134828d83c | ||
|
|
2f33b44e80 | ||
|
|
90802f9197 | ||
|
|
f5fe7fb428 | ||
|
|
f5057db511 | ||
|
|
897ff18471 | ||
|
|
a15ee90c20 | ||
|
|
11024b7871 | ||
|
|
37fea59cb0 |
51
CHANGELOG
51
CHANGELOG
@@ -1,3 +1,54 @@
|
||||
2020-10-13 Version: patch
|
||||
- ListActionData add parameters.
|
||||
- PullActionData add parameters.
|
||||
|
||||
2020-10-13 Version: patch
|
||||
- Generated 2018-01-11 for `rtc`.
|
||||
|
||||
2020-10-13 Version: patch
|
||||
- Release DetectSkinDisease RunMedQA.
|
||||
|
||||
2020-10-13 Version: patch
|
||||
- Generated 2016-11-01 for `live`.
|
||||
|
||||
2020-10-13 Version: patch
|
||||
- Generated 2018-01-11 for `rtc`.
|
||||
|
||||
2020-10-13 Version: patch
|
||||
- Generated 2018-12-12 for `vs`.
|
||||
|
||||
2020-10-13 Version: patch
|
||||
- Release PedestrianDetectAttribute.
|
||||
|
||||
2020-10-13 Version: patch
|
||||
- Release GenerateDynamicImage.
|
||||
|
||||
2020-10-13 Version: patch
|
||||
- Generated 2019-01-01 for `Cassandra`.
|
||||
|
||||
2020-10-13 Version: patch
|
||||
- Release SegmentSkin.
|
||||
|
||||
2020-10-12 Version: patch
|
||||
- Support add webhook, get repository info via id or path.
|
||||
|
||||
2020-10-12 Version: patch
|
||||
- Public beta version.
|
||||
- Add Api Overseas.
|
||||
|
||||
2020-10-12 Version: patch
|
||||
- Public beta version.
|
||||
- Add Api Overseas.
|
||||
|
||||
2020-10-12 Version: patch
|
||||
- Supported ApproveOrder to add comment message.
|
||||
|
||||
2020-10-12 Version: patch
|
||||
- Add list Organizations.
|
||||
|
||||
2020-10-12 Version: patch
|
||||
- Init.
|
||||
|
||||
2020-10-12 Version: patch
|
||||
- ChatApp third version.
|
||||
- Add contack check api.
|
||||
|
||||
@@ -15,6 +15,9 @@ Alibaba Cloud SDK for C++ 让您不用复杂编程即可访问云服务器、负
|
||||
|
||||
如果您在使用的过程中遇到任何问题,欢迎前往[阿里云SDK问答社区](https://yq.aliyun.com/tags/type_ask-tagid_23350)提问,提问前请阅读[提问引导](https://help.aliyun.com/document_detail/93957.html)。亦可在当前 GitHub [提交 Issues](https://github.com/aliyun/aliyun-openapi-cpp-sdk/issues/new)。
|
||||
|
||||
## 使用诊断
|
||||
[Troubleshoot](https://troubleshoot.api.aliyun.com/?source=github_sdk) 提供 OpenAPI 使用诊断服务,通过 `RequestID` 或 `报错信息` ,帮助开发者快速定位,为开发者提供解决方案。
|
||||
|
||||
## 环境要求
|
||||
|
||||
在使用 Alibaba Cloud SDK for C++ 前,确保您已经:
|
||||
|
||||
@@ -17,6 +17,9 @@ This document introduces how to obtain and call this SDK.
|
||||
|
||||
If you have any problem while using Alibaba Cloud SDK for C++, please submit an [issue](https://github.com/aliyun/aliyun-openapi-cpp-sdk/issues/new).
|
||||
|
||||
## Troubleshoot
|
||||
[Troubleshoot](https://troubleshoot.api.aliyun.com/?source=github_sdk) Provide OpenAPI diagnosis service to help developers locate quickly and provide solutions for developers through `RequestID` or `error message`.
|
||||
|
||||
## Requirements
|
||||
|
||||
- To use this SDK, you must have an Alibaba Cloud account and an AccessKey.
|
||||
|
||||
@@ -32,7 +32,7 @@ namespace AlibabaCloud
|
||||
class ALIBABACLOUD_ALIYUNCVC_EXPORT ListConferenceDevicesResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct Data
|
||||
struct ConferencesDatas
|
||||
{
|
||||
struct Data
|
||||
{
|
||||
@@ -57,16 +57,16 @@ namespace AlibabaCloud
|
||||
ListConferenceDevicesResult();
|
||||
explicit ListConferenceDevicesResult(const std::string &payload);
|
||||
~ListConferenceDevicesResult();
|
||||
ConferencesDatas getConferencesDatas()const;
|
||||
std::string getMessage()const;
|
||||
Data getData()const;
|
||||
int getErrorCode()const;
|
||||
bool getSuccess()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
ConferencesDatas conferencesDatas_;
|
||||
std::string message_;
|
||||
Data data_;
|
||||
int errorCode_;
|
||||
bool success_;
|
||||
|
||||
|
||||
@@ -39,38 +39,38 @@ void ListConferenceDevicesResult::parse(const std::string &payload)
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto dataNode = value["Data"];
|
||||
if(!dataNode["Total"].isNull())
|
||||
data_.total = std::stoi(dataNode["Total"].asString());
|
||||
if(!dataNode["PageSize"].isNull())
|
||||
data_.pageSize = std::stoi(dataNode["PageSize"].asString());
|
||||
if(!dataNode["PageNumber"].isNull())
|
||||
data_.pageNumber = std::stoi(dataNode["PageNumber"].asString());
|
||||
auto allConferencesNode = dataNode["Conferences"]["data"];
|
||||
for (auto dataNodeConferencesdata : allConferencesNode)
|
||||
auto conferencesDatasNode = value["ConferencesDatas"];
|
||||
if(!conferencesDatasNode["Total"].isNull())
|
||||
conferencesDatas_.total = std::stoi(conferencesDatasNode["Total"].asString());
|
||||
if(!conferencesDatasNode["PageSize"].isNull())
|
||||
conferencesDatas_.pageSize = std::stoi(conferencesDatasNode["PageSize"].asString());
|
||||
if(!conferencesDatasNode["PageNumber"].isNull())
|
||||
conferencesDatas_.pageNumber = std::stoi(conferencesDatasNode["PageNumber"].asString());
|
||||
auto allConferencesNode = conferencesDatasNode["Conferences"]["data"];
|
||||
for (auto conferencesDatasNodeConferencesdata : allConferencesNode)
|
||||
{
|
||||
Data::Data dataObject;
|
||||
if(!dataNodeConferencesdata["ActivationCode"].isNull())
|
||||
dataObject.activationCode = dataNodeConferencesdata["ActivationCode"].asString();
|
||||
if(!dataNodeConferencesdata["ConferenceCode"].isNull())
|
||||
dataObject.conferenceCode = dataNodeConferencesdata["ConferenceCode"].asString();
|
||||
if(!dataNodeConferencesdata["ConferenceName"].isNull())
|
||||
dataObject.conferenceName = dataNodeConferencesdata["ConferenceName"].asString();
|
||||
if(!dataNodeConferencesdata["CreateTime"].isNull())
|
||||
dataObject.createTime = dataNodeConferencesdata["CreateTime"].asString();
|
||||
if(!dataNodeConferencesdata["DeviceModel"].isNull())
|
||||
dataObject.deviceModel = dataNodeConferencesdata["DeviceModel"].asString();
|
||||
if(!dataNodeConferencesdata["Manufacturer"].isNull())
|
||||
dataObject.manufacturer = dataNodeConferencesdata["Manufacturer"].asString();
|
||||
if(!dataNodeConferencesdata["PictureUrl"].isNull())
|
||||
dataObject.pictureUrl = dataNodeConferencesdata["PictureUrl"].asString();
|
||||
if(!dataNodeConferencesdata["SN"].isNull())
|
||||
dataObject.sN = dataNodeConferencesdata["SN"].asString();
|
||||
if(!dataNodeConferencesdata["Status"].isNull())
|
||||
dataObject.status = dataNodeConferencesdata["Status"].asString();
|
||||
if(!dataNodeConferencesdata["CastScreenCode"].isNull())
|
||||
dataObject.castScreenCode = dataNodeConferencesdata["CastScreenCode"].asString();
|
||||
data_.conferences.push_back(dataObject);
|
||||
ConferencesDatas::Data dataObject;
|
||||
if(!conferencesDatasNodeConferencesdata["ActivationCode"].isNull())
|
||||
dataObject.activationCode = conferencesDatasNodeConferencesdata["ActivationCode"].asString();
|
||||
if(!conferencesDatasNodeConferencesdata["ConferenceCode"].isNull())
|
||||
dataObject.conferenceCode = conferencesDatasNodeConferencesdata["ConferenceCode"].asString();
|
||||
if(!conferencesDatasNodeConferencesdata["ConferenceName"].isNull())
|
||||
dataObject.conferenceName = conferencesDatasNodeConferencesdata["ConferenceName"].asString();
|
||||
if(!conferencesDatasNodeConferencesdata["CreateTime"].isNull())
|
||||
dataObject.createTime = conferencesDatasNodeConferencesdata["CreateTime"].asString();
|
||||
if(!conferencesDatasNodeConferencesdata["DeviceModel"].isNull())
|
||||
dataObject.deviceModel = conferencesDatasNodeConferencesdata["DeviceModel"].asString();
|
||||
if(!conferencesDatasNodeConferencesdata["Manufacturer"].isNull())
|
||||
dataObject.manufacturer = conferencesDatasNodeConferencesdata["Manufacturer"].asString();
|
||||
if(!conferencesDatasNodeConferencesdata["PictureUrl"].isNull())
|
||||
dataObject.pictureUrl = conferencesDatasNodeConferencesdata["PictureUrl"].asString();
|
||||
if(!conferencesDatasNodeConferencesdata["SN"].isNull())
|
||||
dataObject.sN = conferencesDatasNodeConferencesdata["SN"].asString();
|
||||
if(!conferencesDatasNodeConferencesdata["Status"].isNull())
|
||||
dataObject.status = conferencesDatasNodeConferencesdata["Status"].asString();
|
||||
if(!conferencesDatasNodeConferencesdata["CastScreenCode"].isNull())
|
||||
dataObject.castScreenCode = conferencesDatasNodeConferencesdata["CastScreenCode"].asString();
|
||||
conferencesDatas_.conferences.push_back(dataObject);
|
||||
}
|
||||
if(!value["ErrorCode"].isNull())
|
||||
errorCode_ = std::stoi(value["ErrorCode"].asString());
|
||||
@@ -81,16 +81,16 @@ void ListConferenceDevicesResult::parse(const std::string &payload)
|
||||
|
||||
}
|
||||
|
||||
ListConferenceDevicesResult::ConferencesDatas ListConferenceDevicesResult::getConferencesDatas()const
|
||||
{
|
||||
return conferencesDatas_;
|
||||
}
|
||||
|
||||
std::string ListConferenceDevicesResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
ListConferenceDevicesResult::Data ListConferenceDevicesResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
int ListConferenceDevicesResult::getErrorCode()const
|
||||
{
|
||||
return errorCode_;
|
||||
|
||||
@@ -71,6 +71,8 @@ set(cassandra_public_header_model
|
||||
include/alibabacloud/cassandra/model/DescribeIpWhitelistGroupsResult.h
|
||||
include/alibabacloud/cassandra/model/DescribeNodeToolExecutionHistoriesRequest.h
|
||||
include/alibabacloud/cassandra/model/DescribeNodeToolExecutionHistoriesResult.h
|
||||
include/alibabacloud/cassandra/model/DescribeNodeToolExecutionHistoryRequest.h
|
||||
include/alibabacloud/cassandra/model/DescribeNodeToolExecutionHistoryResult.h
|
||||
include/alibabacloud/cassandra/model/DescribeParameterModificationHistoriesRequest.h
|
||||
include/alibabacloud/cassandra/model/DescribeParameterModificationHistoriesResult.h
|
||||
include/alibabacloud/cassandra/model/DescribeParametersRequest.h
|
||||
@@ -176,6 +178,8 @@ set(cassandra_src
|
||||
src/model/DescribeIpWhitelistGroupsResult.cc
|
||||
src/model/DescribeNodeToolExecutionHistoriesRequest.cc
|
||||
src/model/DescribeNodeToolExecutionHistoriesResult.cc
|
||||
src/model/DescribeNodeToolExecutionHistoryRequest.cc
|
||||
src/model/DescribeNodeToolExecutionHistoryResult.cc
|
||||
src/model/DescribeParameterModificationHistoriesRequest.cc
|
||||
src/model/DescribeParameterModificationHistoriesResult.cc
|
||||
src/model/DescribeParametersRequest.cc
|
||||
|
||||
@@ -72,6 +72,8 @@
|
||||
#include "model/DescribeIpWhitelistGroupsResult.h"
|
||||
#include "model/DescribeNodeToolExecutionHistoriesRequest.h"
|
||||
#include "model/DescribeNodeToolExecutionHistoriesResult.h"
|
||||
#include "model/DescribeNodeToolExecutionHistoryRequest.h"
|
||||
#include "model/DescribeNodeToolExecutionHistoryResult.h"
|
||||
#include "model/DescribeParameterModificationHistoriesRequest.h"
|
||||
#include "model/DescribeParameterModificationHistoriesResult.h"
|
||||
#include "model/DescribeParametersRequest.h"
|
||||
@@ -208,6 +210,9 @@ namespace AlibabaCloud
|
||||
typedef Outcome<Error, Model::DescribeNodeToolExecutionHistoriesResult> DescribeNodeToolExecutionHistoriesOutcome;
|
||||
typedef std::future<DescribeNodeToolExecutionHistoriesOutcome> DescribeNodeToolExecutionHistoriesOutcomeCallable;
|
||||
typedef std::function<void(const CassandraClient*, const Model::DescribeNodeToolExecutionHistoriesRequest&, const DescribeNodeToolExecutionHistoriesOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeNodeToolExecutionHistoriesAsyncHandler;
|
||||
typedef Outcome<Error, Model::DescribeNodeToolExecutionHistoryResult> DescribeNodeToolExecutionHistoryOutcome;
|
||||
typedef std::future<DescribeNodeToolExecutionHistoryOutcome> DescribeNodeToolExecutionHistoryOutcomeCallable;
|
||||
typedef std::function<void(const CassandraClient*, const Model::DescribeNodeToolExecutionHistoryRequest&, const DescribeNodeToolExecutionHistoryOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeNodeToolExecutionHistoryAsyncHandler;
|
||||
typedef Outcome<Error, Model::DescribeParameterModificationHistoriesResult> DescribeParameterModificationHistoriesOutcome;
|
||||
typedef std::future<DescribeParameterModificationHistoriesOutcome> DescribeParameterModificationHistoriesOutcomeCallable;
|
||||
typedef std::function<void(const CassandraClient*, const Model::DescribeParameterModificationHistoriesRequest&, const DescribeParameterModificationHistoriesOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeParameterModificationHistoriesAsyncHandler;
|
||||
@@ -366,6 +371,9 @@ namespace AlibabaCloud
|
||||
DescribeNodeToolExecutionHistoriesOutcome describeNodeToolExecutionHistories(const Model::DescribeNodeToolExecutionHistoriesRequest &request)const;
|
||||
void describeNodeToolExecutionHistoriesAsync(const Model::DescribeNodeToolExecutionHistoriesRequest& request, const DescribeNodeToolExecutionHistoriesAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DescribeNodeToolExecutionHistoriesOutcomeCallable describeNodeToolExecutionHistoriesCallable(const Model::DescribeNodeToolExecutionHistoriesRequest& request) const;
|
||||
DescribeNodeToolExecutionHistoryOutcome describeNodeToolExecutionHistory(const Model::DescribeNodeToolExecutionHistoryRequest &request)const;
|
||||
void describeNodeToolExecutionHistoryAsync(const Model::DescribeNodeToolExecutionHistoryRequest& request, const DescribeNodeToolExecutionHistoryAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DescribeNodeToolExecutionHistoryOutcomeCallable describeNodeToolExecutionHistoryCallable(const Model::DescribeNodeToolExecutionHistoryRequest& request) const;
|
||||
DescribeParameterModificationHistoriesOutcome describeParameterModificationHistories(const Model::DescribeParameterModificationHistoriesRequest &request)const;
|
||||
void describeParameterModificationHistoriesAsync(const Model::DescribeParameterModificationHistoriesRequest& request, const DescribeParameterModificationHistoriesAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DescribeParameterModificationHistoriesOutcomeCallable describeParameterModificationHistoriesCallable(const Model::DescribeParameterModificationHistoriesRequest& request) const;
|
||||
|
||||
@@ -0,0 +1,54 @@
|
||||
/*
|
||||
* 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_CASSANDRA_MODEL_DESCRIBENODETOOLEXECUTIONHISTORYREQUEST_H_
|
||||
#define ALIBABACLOUD_CASSANDRA_MODEL_DESCRIBENODETOOLEXECUTIONHISTORYREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/cassandra/CassandraExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Cassandra
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_CASSANDRA_EXPORT DescribeNodeToolExecutionHistoryRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
DescribeNodeToolExecutionHistoryRequest();
|
||||
~DescribeNodeToolExecutionHistoryRequest();
|
||||
|
||||
std::string getClusterId()const;
|
||||
void setClusterId(const std::string& clusterId);
|
||||
std::string getJobId()const;
|
||||
void setJobId(const std::string& jobId);
|
||||
std::string getDcId()const;
|
||||
void setDcId(const std::string& dcId);
|
||||
|
||||
private:
|
||||
std::string clusterId_;
|
||||
std::string jobId_;
|
||||
std::string dcId_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_CASSANDRA_MODEL_DESCRIBENODETOOLEXECUTIONHISTORYREQUEST_H_
|
||||
@@ -0,0 +1,71 @@
|
||||
/*
|
||||
* 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_CASSANDRA_MODEL_DESCRIBENODETOOLEXECUTIONHISTORYRESULT_H_
|
||||
#define ALIBABACLOUD_CASSANDRA_MODEL_DESCRIBENODETOOLEXECUTIONHISTORYRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/cassandra/CassandraExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Cassandra
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_CASSANDRA_EXPORT DescribeNodeToolExecutionHistoryResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
|
||||
|
||||
DescribeNodeToolExecutionHistoryResult();
|
||||
explicit DescribeNodeToolExecutionHistoryResult(const std::string &payload);
|
||||
~DescribeNodeToolExecutionHistoryResult();
|
||||
long getModifyTime()const;
|
||||
std::string getDataCenterId()const;
|
||||
bool getIsEnded()const;
|
||||
std::string getCommand()const;
|
||||
long getCreateTime()const;
|
||||
std::string getArguments()const;
|
||||
std::string getRegionId()const;
|
||||
std::string getErrorMessage()const;
|
||||
std::string getJobId()const;
|
||||
std::string getNodes()const;
|
||||
std::string getResult()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
long modifyTime_;
|
||||
std::string dataCenterId_;
|
||||
bool isEnded_;
|
||||
std::string command_;
|
||||
long createTime_;
|
||||
std::string arguments_;
|
||||
std::string regionId_;
|
||||
std::string errorMessage_;
|
||||
std::string jobId_;
|
||||
std::string nodes_;
|
||||
std::string result_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_CASSANDRA_MODEL_DESCRIBENODETOOLEXECUTIONHISTORYRESULT_H_
|
||||
@@ -35,6 +35,8 @@ namespace AlibabaCloud
|
||||
ExecuteNodeToolRequest();
|
||||
~ExecuteNodeToolRequest();
|
||||
|
||||
std::string getExecuteNodes()const;
|
||||
void setExecuteNodes(const std::string& executeNodes);
|
||||
std::string getDataCenterId()const;
|
||||
void setDataCenterId(const std::string& dataCenterId);
|
||||
std::string getClusterId()const;
|
||||
@@ -45,6 +47,7 @@ namespace AlibabaCloud
|
||||
void setArguments(const std::string& arguments);
|
||||
|
||||
private:
|
||||
std::string executeNodes_;
|
||||
std::string dataCenterId_;
|
||||
std::string clusterId_;
|
||||
std::string command_;
|
||||
|
||||
@@ -951,6 +951,42 @@ CassandraClient::DescribeNodeToolExecutionHistoriesOutcomeCallable CassandraClie
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
CassandraClient::DescribeNodeToolExecutionHistoryOutcome CassandraClient::describeNodeToolExecutionHistory(const DescribeNodeToolExecutionHistoryRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return DescribeNodeToolExecutionHistoryOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return DescribeNodeToolExecutionHistoryOutcome(DescribeNodeToolExecutionHistoryResult(outcome.result()));
|
||||
else
|
||||
return DescribeNodeToolExecutionHistoryOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void CassandraClient::describeNodeToolExecutionHistoryAsync(const DescribeNodeToolExecutionHistoryRequest& request, const DescribeNodeToolExecutionHistoryAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, describeNodeToolExecutionHistory(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
CassandraClient::DescribeNodeToolExecutionHistoryOutcomeCallable CassandraClient::describeNodeToolExecutionHistoryCallable(const DescribeNodeToolExecutionHistoryRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<DescribeNodeToolExecutionHistoryOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->describeNodeToolExecutionHistory(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
CassandraClient::DescribeParameterModificationHistoriesOutcome CassandraClient::describeParameterModificationHistories(const DescribeParameterModificationHistoriesRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
|
||||
@@ -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/cassandra/model/DescribeNodeToolExecutionHistoryRequest.h>
|
||||
|
||||
using AlibabaCloud::Cassandra::Model::DescribeNodeToolExecutionHistoryRequest;
|
||||
|
||||
DescribeNodeToolExecutionHistoryRequest::DescribeNodeToolExecutionHistoryRequest() :
|
||||
RpcServiceRequest("cassandra", "2019-01-01", "DescribeNodeToolExecutionHistory")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DescribeNodeToolExecutionHistoryRequest::~DescribeNodeToolExecutionHistoryRequest()
|
||||
{}
|
||||
|
||||
std::string DescribeNodeToolExecutionHistoryRequest::getClusterId()const
|
||||
{
|
||||
return clusterId_;
|
||||
}
|
||||
|
||||
void DescribeNodeToolExecutionHistoryRequest::setClusterId(const std::string& clusterId)
|
||||
{
|
||||
clusterId_ = clusterId;
|
||||
setParameter("ClusterId", clusterId);
|
||||
}
|
||||
|
||||
std::string DescribeNodeToolExecutionHistoryRequest::getJobId()const
|
||||
{
|
||||
return jobId_;
|
||||
}
|
||||
|
||||
void DescribeNodeToolExecutionHistoryRequest::setJobId(const std::string& jobId)
|
||||
{
|
||||
jobId_ = jobId;
|
||||
setParameter("JobId", jobId);
|
||||
}
|
||||
|
||||
std::string DescribeNodeToolExecutionHistoryRequest::getDcId()const
|
||||
{
|
||||
return dcId_;
|
||||
}
|
||||
|
||||
void DescribeNodeToolExecutionHistoryRequest::setDcId(const std::string& dcId)
|
||||
{
|
||||
dcId_ = dcId;
|
||||
setParameter("DcId", dcId);
|
||||
}
|
||||
|
||||
121
cassandra/src/model/DescribeNodeToolExecutionHistoryResult.cc
Normal file
121
cassandra/src/model/DescribeNodeToolExecutionHistoryResult.cc
Normal file
@@ -0,0 +1,121 @@
|
||||
/*
|
||||
* 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/cassandra/model/DescribeNodeToolExecutionHistoryResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Cassandra;
|
||||
using namespace AlibabaCloud::Cassandra::Model;
|
||||
|
||||
DescribeNodeToolExecutionHistoryResult::DescribeNodeToolExecutionHistoryResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DescribeNodeToolExecutionHistoryResult::DescribeNodeToolExecutionHistoryResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DescribeNodeToolExecutionHistoryResult::~DescribeNodeToolExecutionHistoryResult()
|
||||
{}
|
||||
|
||||
void DescribeNodeToolExecutionHistoryResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["JobId"].isNull())
|
||||
jobId_ = value["JobId"].asString();
|
||||
if(!value["Command"].isNull())
|
||||
command_ = value["Command"].asString();
|
||||
if(!value["Nodes"].isNull())
|
||||
nodes_ = value["Nodes"].asString();
|
||||
if(!value["ModifyTime"].isNull())
|
||||
modifyTime_ = std::stol(value["ModifyTime"].asString());
|
||||
if(!value["CreateTime"].isNull())
|
||||
createTime_ = std::stol(value["CreateTime"].asString());
|
||||
if(!value["RegionId"].isNull())
|
||||
regionId_ = value["RegionId"].asString();
|
||||
if(!value["IsEnded"].isNull())
|
||||
isEnded_ = value["IsEnded"].asString() == "true";
|
||||
if(!value["Arguments"].isNull())
|
||||
arguments_ = value["Arguments"].asString();
|
||||
if(!value["ErrorMessage"].isNull())
|
||||
errorMessage_ = value["ErrorMessage"].asString();
|
||||
if(!value["DataCenterId"].isNull())
|
||||
dataCenterId_ = value["DataCenterId"].asString();
|
||||
if(!value["Result"].isNull())
|
||||
result_ = value["Result"].asString();
|
||||
|
||||
}
|
||||
|
||||
long DescribeNodeToolExecutionHistoryResult::getModifyTime()const
|
||||
{
|
||||
return modifyTime_;
|
||||
}
|
||||
|
||||
std::string DescribeNodeToolExecutionHistoryResult::getDataCenterId()const
|
||||
{
|
||||
return dataCenterId_;
|
||||
}
|
||||
|
||||
bool DescribeNodeToolExecutionHistoryResult::getIsEnded()const
|
||||
{
|
||||
return isEnded_;
|
||||
}
|
||||
|
||||
std::string DescribeNodeToolExecutionHistoryResult::getCommand()const
|
||||
{
|
||||
return command_;
|
||||
}
|
||||
|
||||
long DescribeNodeToolExecutionHistoryResult::getCreateTime()const
|
||||
{
|
||||
return createTime_;
|
||||
}
|
||||
|
||||
std::string DescribeNodeToolExecutionHistoryResult::getArguments()const
|
||||
{
|
||||
return arguments_;
|
||||
}
|
||||
|
||||
std::string DescribeNodeToolExecutionHistoryResult::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
std::string DescribeNodeToolExecutionHistoryResult::getErrorMessage()const
|
||||
{
|
||||
return errorMessage_;
|
||||
}
|
||||
|
||||
std::string DescribeNodeToolExecutionHistoryResult::getJobId()const
|
||||
{
|
||||
return jobId_;
|
||||
}
|
||||
|
||||
std::string DescribeNodeToolExecutionHistoryResult::getNodes()const
|
||||
{
|
||||
return nodes_;
|
||||
}
|
||||
|
||||
std::string DescribeNodeToolExecutionHistoryResult::getResult()const
|
||||
{
|
||||
return result_;
|
||||
}
|
||||
|
||||
@@ -27,6 +27,17 @@ ExecuteNodeToolRequest::ExecuteNodeToolRequest() :
|
||||
ExecuteNodeToolRequest::~ExecuteNodeToolRequest()
|
||||
{}
|
||||
|
||||
std::string ExecuteNodeToolRequest::getExecuteNodes()const
|
||||
{
|
||||
return executeNodes_;
|
||||
}
|
||||
|
||||
void ExecuteNodeToolRequest::setExecuteNodes(const std::string& executeNodes)
|
||||
{
|
||||
executeNodes_ = executeNodes;
|
||||
setParameter("ExecuteNodes", executeNodes);
|
||||
}
|
||||
|
||||
std::string ExecuteNodeToolRequest::getDataCenterId()const
|
||||
{
|
||||
return dataCenterId_;
|
||||
|
||||
@@ -25,12 +25,22 @@ set(codeup_public_header_model
|
||||
include/alibabacloud/codeup/model/AddGroupMemberResult.h
|
||||
include/alibabacloud/codeup/model/AddRepositoryMemberRequest.h
|
||||
include/alibabacloud/codeup/model/AddRepositoryMemberResult.h
|
||||
include/alibabacloud/codeup/model/AddWebhookRequest.h
|
||||
include/alibabacloud/codeup/model/AddWebhookResult.h
|
||||
include/alibabacloud/codeup/model/CreateBranchRequest.h
|
||||
include/alibabacloud/codeup/model/CreateBranchResult.h
|
||||
include/alibabacloud/codeup/model/CreateFileRequest.h
|
||||
include/alibabacloud/codeup/model/CreateFileResult.h
|
||||
include/alibabacloud/codeup/model/CreateMergeRequestRequest.h
|
||||
include/alibabacloud/codeup/model/CreateMergeRequestResult.h
|
||||
include/alibabacloud/codeup/model/CreateRepositoryRequest.h
|
||||
include/alibabacloud/codeup/model/CreateRepositoryResult.h
|
||||
include/alibabacloud/codeup/model/CreateRepositoryGroupRequest.h
|
||||
include/alibabacloud/codeup/model/CreateRepositoryGroupResult.h
|
||||
include/alibabacloud/codeup/model/CreateTagRequest.h
|
||||
include/alibabacloud/codeup/model/CreateTagResult.h
|
||||
include/alibabacloud/codeup/model/DeleteBranchRequest.h
|
||||
include/alibabacloud/codeup/model/DeleteBranchResult.h
|
||||
include/alibabacloud/codeup/model/DeleteFileRequest.h
|
||||
include/alibabacloud/codeup/model/DeleteFileResult.h
|
||||
include/alibabacloud/codeup/model/DeleteGroupMemberRequest.h
|
||||
@@ -41,16 +51,28 @@ set(codeup_public_header_model
|
||||
include/alibabacloud/codeup/model/DeleteRepositoryGroupResult.h
|
||||
include/alibabacloud/codeup/model/DeleteRepositoryMemberRequest.h
|
||||
include/alibabacloud/codeup/model/DeleteRepositoryMemberResult.h
|
||||
include/alibabacloud/codeup/model/GetBranchInfoRequest.h
|
||||
include/alibabacloud/codeup/model/GetBranchInfoResult.h
|
||||
include/alibabacloud/codeup/model/GetCodeupOrganizationRequest.h
|
||||
include/alibabacloud/codeup/model/GetCodeupOrganizationResult.h
|
||||
include/alibabacloud/codeup/model/GetFileBlobsRequest.h
|
||||
include/alibabacloud/codeup/model/GetFileBlobsResult.h
|
||||
include/alibabacloud/codeup/model/GetProjectMemberRequest.h
|
||||
include/alibabacloud/codeup/model/GetProjectMemberResult.h
|
||||
include/alibabacloud/codeup/model/GetRepositoryInfoRequest.h
|
||||
include/alibabacloud/codeup/model/GetRepositoryInfoResult.h
|
||||
include/alibabacloud/codeup/model/ListGroupMemberRequest.h
|
||||
include/alibabacloud/codeup/model/ListGroupMemberResult.h
|
||||
include/alibabacloud/codeup/model/ListGroupRepositoriesRequest.h
|
||||
include/alibabacloud/codeup/model/ListGroupRepositoriesResult.h
|
||||
include/alibabacloud/codeup/model/ListGroupsRequest.h
|
||||
include/alibabacloud/codeup/model/ListGroupsResult.h
|
||||
include/alibabacloud/codeup/model/ListRepositoryMemberRequest.h
|
||||
include/alibabacloud/codeup/model/ListRepositoryMemberResult.h
|
||||
include/alibabacloud/codeup/model/ListRepositoryTreeRequest.h
|
||||
include/alibabacloud/codeup/model/ListRepositoryTreeResult.h
|
||||
include/alibabacloud/codeup/model/MergeMergeRequestRequest.h
|
||||
include/alibabacloud/codeup/model/MergeMergeRequestResult.h
|
||||
include/alibabacloud/codeup/model/UpdateFileRequest.h
|
||||
include/alibabacloud/codeup/model/UpdateFileResult.h
|
||||
include/alibabacloud/codeup/model/UpdateGroupMemberRequest.h
|
||||
@@ -64,12 +86,22 @@ set(codeup_src
|
||||
src/model/AddGroupMemberResult.cc
|
||||
src/model/AddRepositoryMemberRequest.cc
|
||||
src/model/AddRepositoryMemberResult.cc
|
||||
src/model/AddWebhookRequest.cc
|
||||
src/model/AddWebhookResult.cc
|
||||
src/model/CreateBranchRequest.cc
|
||||
src/model/CreateBranchResult.cc
|
||||
src/model/CreateFileRequest.cc
|
||||
src/model/CreateFileResult.cc
|
||||
src/model/CreateMergeRequestRequest.cc
|
||||
src/model/CreateMergeRequestResult.cc
|
||||
src/model/CreateRepositoryRequest.cc
|
||||
src/model/CreateRepositoryResult.cc
|
||||
src/model/CreateRepositoryGroupRequest.cc
|
||||
src/model/CreateRepositoryGroupResult.cc
|
||||
src/model/CreateTagRequest.cc
|
||||
src/model/CreateTagResult.cc
|
||||
src/model/DeleteBranchRequest.cc
|
||||
src/model/DeleteBranchResult.cc
|
||||
src/model/DeleteFileRequest.cc
|
||||
src/model/DeleteFileResult.cc
|
||||
src/model/DeleteGroupMemberRequest.cc
|
||||
@@ -80,16 +112,28 @@ set(codeup_src
|
||||
src/model/DeleteRepositoryGroupResult.cc
|
||||
src/model/DeleteRepositoryMemberRequest.cc
|
||||
src/model/DeleteRepositoryMemberResult.cc
|
||||
src/model/GetBranchInfoRequest.cc
|
||||
src/model/GetBranchInfoResult.cc
|
||||
src/model/GetCodeupOrganizationRequest.cc
|
||||
src/model/GetCodeupOrganizationResult.cc
|
||||
src/model/GetFileBlobsRequest.cc
|
||||
src/model/GetFileBlobsResult.cc
|
||||
src/model/GetProjectMemberRequest.cc
|
||||
src/model/GetProjectMemberResult.cc
|
||||
src/model/GetRepositoryInfoRequest.cc
|
||||
src/model/GetRepositoryInfoResult.cc
|
||||
src/model/ListGroupMemberRequest.cc
|
||||
src/model/ListGroupMemberResult.cc
|
||||
src/model/ListGroupRepositoriesRequest.cc
|
||||
src/model/ListGroupRepositoriesResult.cc
|
||||
src/model/ListGroupsRequest.cc
|
||||
src/model/ListGroupsResult.cc
|
||||
src/model/ListRepositoryMemberRequest.cc
|
||||
src/model/ListRepositoryMemberResult.cc
|
||||
src/model/ListRepositoryTreeRequest.cc
|
||||
src/model/ListRepositoryTreeResult.cc
|
||||
src/model/MergeMergeRequestRequest.cc
|
||||
src/model/MergeMergeRequestResult.cc
|
||||
src/model/UpdateFileRequest.cc
|
||||
src/model/UpdateFileResult.cc
|
||||
src/model/UpdateGroupMemberRequest.cc
|
||||
|
||||
@@ -26,12 +26,22 @@
|
||||
#include "model/AddGroupMemberResult.h"
|
||||
#include "model/AddRepositoryMemberRequest.h"
|
||||
#include "model/AddRepositoryMemberResult.h"
|
||||
#include "model/AddWebhookRequest.h"
|
||||
#include "model/AddWebhookResult.h"
|
||||
#include "model/CreateBranchRequest.h"
|
||||
#include "model/CreateBranchResult.h"
|
||||
#include "model/CreateFileRequest.h"
|
||||
#include "model/CreateFileResult.h"
|
||||
#include "model/CreateMergeRequestRequest.h"
|
||||
#include "model/CreateMergeRequestResult.h"
|
||||
#include "model/CreateRepositoryRequest.h"
|
||||
#include "model/CreateRepositoryResult.h"
|
||||
#include "model/CreateRepositoryGroupRequest.h"
|
||||
#include "model/CreateRepositoryGroupResult.h"
|
||||
#include "model/CreateTagRequest.h"
|
||||
#include "model/CreateTagResult.h"
|
||||
#include "model/DeleteBranchRequest.h"
|
||||
#include "model/DeleteBranchResult.h"
|
||||
#include "model/DeleteFileRequest.h"
|
||||
#include "model/DeleteFileResult.h"
|
||||
#include "model/DeleteGroupMemberRequest.h"
|
||||
@@ -42,16 +52,28 @@
|
||||
#include "model/DeleteRepositoryGroupResult.h"
|
||||
#include "model/DeleteRepositoryMemberRequest.h"
|
||||
#include "model/DeleteRepositoryMemberResult.h"
|
||||
#include "model/GetBranchInfoRequest.h"
|
||||
#include "model/GetBranchInfoResult.h"
|
||||
#include "model/GetCodeupOrganizationRequest.h"
|
||||
#include "model/GetCodeupOrganizationResult.h"
|
||||
#include "model/GetFileBlobsRequest.h"
|
||||
#include "model/GetFileBlobsResult.h"
|
||||
#include "model/GetProjectMemberRequest.h"
|
||||
#include "model/GetProjectMemberResult.h"
|
||||
#include "model/GetRepositoryInfoRequest.h"
|
||||
#include "model/GetRepositoryInfoResult.h"
|
||||
#include "model/ListGroupMemberRequest.h"
|
||||
#include "model/ListGroupMemberResult.h"
|
||||
#include "model/ListGroupRepositoriesRequest.h"
|
||||
#include "model/ListGroupRepositoriesResult.h"
|
||||
#include "model/ListGroupsRequest.h"
|
||||
#include "model/ListGroupsResult.h"
|
||||
#include "model/ListRepositoryMemberRequest.h"
|
||||
#include "model/ListRepositoryMemberResult.h"
|
||||
#include "model/ListRepositoryTreeRequest.h"
|
||||
#include "model/ListRepositoryTreeResult.h"
|
||||
#include "model/MergeMergeRequestRequest.h"
|
||||
#include "model/MergeMergeRequestResult.h"
|
||||
#include "model/UpdateFileRequest.h"
|
||||
#include "model/UpdateFileResult.h"
|
||||
#include "model/UpdateGroupMemberRequest.h"
|
||||
@@ -73,15 +95,30 @@ namespace AlibabaCloud
|
||||
typedef Outcome<Error, Model::AddRepositoryMemberResult> AddRepositoryMemberOutcome;
|
||||
typedef std::future<AddRepositoryMemberOutcome> AddRepositoryMemberOutcomeCallable;
|
||||
typedef std::function<void(const CodeupClient*, const Model::AddRepositoryMemberRequest&, const AddRepositoryMemberOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> AddRepositoryMemberAsyncHandler;
|
||||
typedef Outcome<Error, Model::AddWebhookResult> AddWebhookOutcome;
|
||||
typedef std::future<AddWebhookOutcome> AddWebhookOutcomeCallable;
|
||||
typedef std::function<void(const CodeupClient*, const Model::AddWebhookRequest&, const AddWebhookOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> AddWebhookAsyncHandler;
|
||||
typedef Outcome<Error, Model::CreateBranchResult> CreateBranchOutcome;
|
||||
typedef std::future<CreateBranchOutcome> CreateBranchOutcomeCallable;
|
||||
typedef std::function<void(const CodeupClient*, const Model::CreateBranchRequest&, const CreateBranchOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> CreateBranchAsyncHandler;
|
||||
typedef Outcome<Error, Model::CreateFileResult> CreateFileOutcome;
|
||||
typedef std::future<CreateFileOutcome> CreateFileOutcomeCallable;
|
||||
typedef std::function<void(const CodeupClient*, const Model::CreateFileRequest&, const CreateFileOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> CreateFileAsyncHandler;
|
||||
typedef Outcome<Error, Model::CreateMergeRequestResult> CreateMergeRequestOutcome;
|
||||
typedef std::future<CreateMergeRequestOutcome> CreateMergeRequestOutcomeCallable;
|
||||
typedef std::function<void(const CodeupClient*, const Model::CreateMergeRequestRequest&, const CreateMergeRequestOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> CreateMergeRequestAsyncHandler;
|
||||
typedef Outcome<Error, Model::CreateRepositoryResult> CreateRepositoryOutcome;
|
||||
typedef std::future<CreateRepositoryOutcome> CreateRepositoryOutcomeCallable;
|
||||
typedef std::function<void(const CodeupClient*, const Model::CreateRepositoryRequest&, const CreateRepositoryOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> CreateRepositoryAsyncHandler;
|
||||
typedef Outcome<Error, Model::CreateRepositoryGroupResult> CreateRepositoryGroupOutcome;
|
||||
typedef std::future<CreateRepositoryGroupOutcome> CreateRepositoryGroupOutcomeCallable;
|
||||
typedef std::function<void(const CodeupClient*, const Model::CreateRepositoryGroupRequest&, const CreateRepositoryGroupOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> CreateRepositoryGroupAsyncHandler;
|
||||
typedef Outcome<Error, Model::CreateTagResult> CreateTagOutcome;
|
||||
typedef std::future<CreateTagOutcome> CreateTagOutcomeCallable;
|
||||
typedef std::function<void(const CodeupClient*, const Model::CreateTagRequest&, const CreateTagOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> CreateTagAsyncHandler;
|
||||
typedef Outcome<Error, Model::DeleteBranchResult> DeleteBranchOutcome;
|
||||
typedef std::future<DeleteBranchOutcome> DeleteBranchOutcomeCallable;
|
||||
typedef std::function<void(const CodeupClient*, const Model::DeleteBranchRequest&, const DeleteBranchOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DeleteBranchAsyncHandler;
|
||||
typedef Outcome<Error, Model::DeleteFileResult> DeleteFileOutcome;
|
||||
typedef std::future<DeleteFileOutcome> DeleteFileOutcomeCallable;
|
||||
typedef std::function<void(const CodeupClient*, const Model::DeleteFileRequest&, const DeleteFileOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DeleteFileAsyncHandler;
|
||||
@@ -97,21 +134,39 @@ namespace AlibabaCloud
|
||||
typedef Outcome<Error, Model::DeleteRepositoryMemberResult> DeleteRepositoryMemberOutcome;
|
||||
typedef std::future<DeleteRepositoryMemberOutcome> DeleteRepositoryMemberOutcomeCallable;
|
||||
typedef std::function<void(const CodeupClient*, const Model::DeleteRepositoryMemberRequest&, const DeleteRepositoryMemberOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DeleteRepositoryMemberAsyncHandler;
|
||||
typedef Outcome<Error, Model::GetBranchInfoResult> GetBranchInfoOutcome;
|
||||
typedef std::future<GetBranchInfoOutcome> GetBranchInfoOutcomeCallable;
|
||||
typedef std::function<void(const CodeupClient*, const Model::GetBranchInfoRequest&, const GetBranchInfoOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetBranchInfoAsyncHandler;
|
||||
typedef Outcome<Error, Model::GetCodeupOrganizationResult> GetCodeupOrganizationOutcome;
|
||||
typedef std::future<GetCodeupOrganizationOutcome> GetCodeupOrganizationOutcomeCallable;
|
||||
typedef std::function<void(const CodeupClient*, const Model::GetCodeupOrganizationRequest&, const GetCodeupOrganizationOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetCodeupOrganizationAsyncHandler;
|
||||
typedef Outcome<Error, Model::GetFileBlobsResult> GetFileBlobsOutcome;
|
||||
typedef std::future<GetFileBlobsOutcome> GetFileBlobsOutcomeCallable;
|
||||
typedef std::function<void(const CodeupClient*, const Model::GetFileBlobsRequest&, const GetFileBlobsOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetFileBlobsAsyncHandler;
|
||||
typedef Outcome<Error, Model::GetProjectMemberResult> GetProjectMemberOutcome;
|
||||
typedef std::future<GetProjectMemberOutcome> GetProjectMemberOutcomeCallable;
|
||||
typedef std::function<void(const CodeupClient*, const Model::GetProjectMemberRequest&, const GetProjectMemberOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetProjectMemberAsyncHandler;
|
||||
typedef Outcome<Error, Model::GetRepositoryInfoResult> GetRepositoryInfoOutcome;
|
||||
typedef std::future<GetRepositoryInfoOutcome> GetRepositoryInfoOutcomeCallable;
|
||||
typedef std::function<void(const CodeupClient*, const Model::GetRepositoryInfoRequest&, const GetRepositoryInfoOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetRepositoryInfoAsyncHandler;
|
||||
typedef Outcome<Error, Model::ListGroupMemberResult> ListGroupMemberOutcome;
|
||||
typedef std::future<ListGroupMemberOutcome> ListGroupMemberOutcomeCallable;
|
||||
typedef std::function<void(const CodeupClient*, const Model::ListGroupMemberRequest&, const ListGroupMemberOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ListGroupMemberAsyncHandler;
|
||||
typedef Outcome<Error, Model::ListGroupRepositoriesResult> ListGroupRepositoriesOutcome;
|
||||
typedef std::future<ListGroupRepositoriesOutcome> ListGroupRepositoriesOutcomeCallable;
|
||||
typedef std::function<void(const CodeupClient*, const Model::ListGroupRepositoriesRequest&, const ListGroupRepositoriesOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ListGroupRepositoriesAsyncHandler;
|
||||
typedef Outcome<Error, Model::ListGroupsResult> ListGroupsOutcome;
|
||||
typedef std::future<ListGroupsOutcome> ListGroupsOutcomeCallable;
|
||||
typedef std::function<void(const CodeupClient*, const Model::ListGroupsRequest&, const ListGroupsOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ListGroupsAsyncHandler;
|
||||
typedef Outcome<Error, Model::ListRepositoryMemberResult> ListRepositoryMemberOutcome;
|
||||
typedef std::future<ListRepositoryMemberOutcome> ListRepositoryMemberOutcomeCallable;
|
||||
typedef std::function<void(const CodeupClient*, const Model::ListRepositoryMemberRequest&, const ListRepositoryMemberOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ListRepositoryMemberAsyncHandler;
|
||||
typedef Outcome<Error, Model::ListRepositoryTreeResult> ListRepositoryTreeOutcome;
|
||||
typedef std::future<ListRepositoryTreeOutcome> ListRepositoryTreeOutcomeCallable;
|
||||
typedef std::function<void(const CodeupClient*, const Model::ListRepositoryTreeRequest&, const ListRepositoryTreeOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ListRepositoryTreeAsyncHandler;
|
||||
typedef Outcome<Error, Model::MergeMergeRequestResult> MergeMergeRequestOutcome;
|
||||
typedef std::future<MergeMergeRequestOutcome> MergeMergeRequestOutcomeCallable;
|
||||
typedef std::function<void(const CodeupClient*, const Model::MergeMergeRequestRequest&, const MergeMergeRequestOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> MergeMergeRequestAsyncHandler;
|
||||
typedef Outcome<Error, Model::UpdateFileResult> UpdateFileOutcome;
|
||||
typedef std::future<UpdateFileOutcome> UpdateFileOutcomeCallable;
|
||||
typedef std::function<void(const CodeupClient*, const Model::UpdateFileRequest&, const UpdateFileOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> UpdateFileAsyncHandler;
|
||||
@@ -132,15 +187,30 @@ namespace AlibabaCloud
|
||||
AddRepositoryMemberOutcome addRepositoryMember(const Model::AddRepositoryMemberRequest &request)const;
|
||||
void addRepositoryMemberAsync(const Model::AddRepositoryMemberRequest& request, const AddRepositoryMemberAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
AddRepositoryMemberOutcomeCallable addRepositoryMemberCallable(const Model::AddRepositoryMemberRequest& request) const;
|
||||
AddWebhookOutcome addWebhook(const Model::AddWebhookRequest &request)const;
|
||||
void addWebhookAsync(const Model::AddWebhookRequest& request, const AddWebhookAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
AddWebhookOutcomeCallable addWebhookCallable(const Model::AddWebhookRequest& request) const;
|
||||
CreateBranchOutcome createBranch(const Model::CreateBranchRequest &request)const;
|
||||
void createBranchAsync(const Model::CreateBranchRequest& request, const CreateBranchAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
CreateBranchOutcomeCallable createBranchCallable(const Model::CreateBranchRequest& request) const;
|
||||
CreateFileOutcome createFile(const Model::CreateFileRequest &request)const;
|
||||
void createFileAsync(const Model::CreateFileRequest& request, const CreateFileAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
CreateFileOutcomeCallable createFileCallable(const Model::CreateFileRequest& request) const;
|
||||
CreateMergeRequestOutcome createMergeRequest(const Model::CreateMergeRequestRequest &request)const;
|
||||
void createMergeRequestAsync(const Model::CreateMergeRequestRequest& request, const CreateMergeRequestAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
CreateMergeRequestOutcomeCallable createMergeRequestCallable(const Model::CreateMergeRequestRequest& request) const;
|
||||
CreateRepositoryOutcome createRepository(const Model::CreateRepositoryRequest &request)const;
|
||||
void createRepositoryAsync(const Model::CreateRepositoryRequest& request, const CreateRepositoryAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
CreateRepositoryOutcomeCallable createRepositoryCallable(const Model::CreateRepositoryRequest& request) const;
|
||||
CreateRepositoryGroupOutcome createRepositoryGroup(const Model::CreateRepositoryGroupRequest &request)const;
|
||||
void createRepositoryGroupAsync(const Model::CreateRepositoryGroupRequest& request, const CreateRepositoryGroupAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
CreateRepositoryGroupOutcomeCallable createRepositoryGroupCallable(const Model::CreateRepositoryGroupRequest& request) const;
|
||||
CreateTagOutcome createTag(const Model::CreateTagRequest &request)const;
|
||||
void createTagAsync(const Model::CreateTagRequest& request, const CreateTagAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
CreateTagOutcomeCallable createTagCallable(const Model::CreateTagRequest& request) const;
|
||||
DeleteBranchOutcome deleteBranch(const Model::DeleteBranchRequest &request)const;
|
||||
void deleteBranchAsync(const Model::DeleteBranchRequest& request, const DeleteBranchAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DeleteBranchOutcomeCallable deleteBranchCallable(const Model::DeleteBranchRequest& request) const;
|
||||
DeleteFileOutcome deleteFile(const Model::DeleteFileRequest &request)const;
|
||||
void deleteFileAsync(const Model::DeleteFileRequest& request, const DeleteFileAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DeleteFileOutcomeCallable deleteFileCallable(const Model::DeleteFileRequest& request) const;
|
||||
@@ -156,21 +226,39 @@ namespace AlibabaCloud
|
||||
DeleteRepositoryMemberOutcome deleteRepositoryMember(const Model::DeleteRepositoryMemberRequest &request)const;
|
||||
void deleteRepositoryMemberAsync(const Model::DeleteRepositoryMemberRequest& request, const DeleteRepositoryMemberAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DeleteRepositoryMemberOutcomeCallable deleteRepositoryMemberCallable(const Model::DeleteRepositoryMemberRequest& request) const;
|
||||
GetBranchInfoOutcome getBranchInfo(const Model::GetBranchInfoRequest &request)const;
|
||||
void getBranchInfoAsync(const Model::GetBranchInfoRequest& request, const GetBranchInfoAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
GetBranchInfoOutcomeCallable getBranchInfoCallable(const Model::GetBranchInfoRequest& request) const;
|
||||
GetCodeupOrganizationOutcome getCodeupOrganization(const Model::GetCodeupOrganizationRequest &request)const;
|
||||
void getCodeupOrganizationAsync(const Model::GetCodeupOrganizationRequest& request, const GetCodeupOrganizationAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
GetCodeupOrganizationOutcomeCallable getCodeupOrganizationCallable(const Model::GetCodeupOrganizationRequest& request) const;
|
||||
GetFileBlobsOutcome getFileBlobs(const Model::GetFileBlobsRequest &request)const;
|
||||
void getFileBlobsAsync(const Model::GetFileBlobsRequest& request, const GetFileBlobsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
GetFileBlobsOutcomeCallable getFileBlobsCallable(const Model::GetFileBlobsRequest& request) const;
|
||||
GetProjectMemberOutcome getProjectMember(const Model::GetProjectMemberRequest &request)const;
|
||||
void getProjectMemberAsync(const Model::GetProjectMemberRequest& request, const GetProjectMemberAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
GetProjectMemberOutcomeCallable getProjectMemberCallable(const Model::GetProjectMemberRequest& request) const;
|
||||
GetRepositoryInfoOutcome getRepositoryInfo(const Model::GetRepositoryInfoRequest &request)const;
|
||||
void getRepositoryInfoAsync(const Model::GetRepositoryInfoRequest& request, const GetRepositoryInfoAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
GetRepositoryInfoOutcomeCallable getRepositoryInfoCallable(const Model::GetRepositoryInfoRequest& request) const;
|
||||
ListGroupMemberOutcome listGroupMember(const Model::ListGroupMemberRequest &request)const;
|
||||
void listGroupMemberAsync(const Model::ListGroupMemberRequest& request, const ListGroupMemberAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
ListGroupMemberOutcomeCallable listGroupMemberCallable(const Model::ListGroupMemberRequest& request) const;
|
||||
ListGroupRepositoriesOutcome listGroupRepositories(const Model::ListGroupRepositoriesRequest &request)const;
|
||||
void listGroupRepositoriesAsync(const Model::ListGroupRepositoriesRequest& request, const ListGroupRepositoriesAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
ListGroupRepositoriesOutcomeCallable listGroupRepositoriesCallable(const Model::ListGroupRepositoriesRequest& request) const;
|
||||
ListGroupsOutcome listGroups(const Model::ListGroupsRequest &request)const;
|
||||
void listGroupsAsync(const Model::ListGroupsRequest& request, const ListGroupsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
ListGroupsOutcomeCallable listGroupsCallable(const Model::ListGroupsRequest& request) const;
|
||||
ListRepositoryMemberOutcome listRepositoryMember(const Model::ListRepositoryMemberRequest &request)const;
|
||||
void listRepositoryMemberAsync(const Model::ListRepositoryMemberRequest& request, const ListRepositoryMemberAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
ListRepositoryMemberOutcomeCallable listRepositoryMemberCallable(const Model::ListRepositoryMemberRequest& request) const;
|
||||
ListRepositoryTreeOutcome listRepositoryTree(const Model::ListRepositoryTreeRequest &request)const;
|
||||
void listRepositoryTreeAsync(const Model::ListRepositoryTreeRequest& request, const ListRepositoryTreeAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
ListRepositoryTreeOutcomeCallable listRepositoryTreeCallable(const Model::ListRepositoryTreeRequest& request) const;
|
||||
MergeMergeRequestOutcome mergeMergeRequest(const Model::MergeMergeRequestRequest &request)const;
|
||||
void mergeMergeRequestAsync(const Model::MergeMergeRequestRequest& request, const MergeMergeRequestAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
MergeMergeRequestOutcomeCallable mergeMergeRequestCallable(const Model::MergeMergeRequestRequest& request) const;
|
||||
UpdateFileOutcome updateFile(const Model::UpdateFileRequest &request)const;
|
||||
void updateFileAsync(const Model::UpdateFileRequest& request, const UpdateFileAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
UpdateFileOutcomeCallable updateFileCallable(const Model::UpdateFileRequest& request) const;
|
||||
|
||||
54
codeup/include/alibabacloud/codeup/model/AddWebhookRequest.h
Normal file
54
codeup/include/alibabacloud/codeup/model/AddWebhookRequest.h
Normal file
@@ -0,0 +1,54 @@
|
||||
/*
|
||||
* 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_CODEUP_MODEL_ADDWEBHOOKREQUEST_H_
|
||||
#define ALIBABACLOUD_CODEUP_MODEL_ADDWEBHOOKREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RoaServiceRequest.h>
|
||||
#include <alibabacloud/codeup/CodeupExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Codeup
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_CODEUP_EXPORT AddWebhookRequest : public RoaServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
AddWebhookRequest();
|
||||
~AddWebhookRequest();
|
||||
|
||||
std::string getOrganizationId()const;
|
||||
void setOrganizationId(const std::string& organizationId);
|
||||
std::string getAccessToken()const;
|
||||
void setAccessToken(const std::string& accessToken);
|
||||
long getProjectId()const;
|
||||
void setProjectId(long projectId);
|
||||
|
||||
private:
|
||||
std::string organizationId_;
|
||||
std::string accessToken_;
|
||||
long projectId_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_CODEUP_MODEL_ADDWEBHOOKREQUEST_H_
|
||||
73
codeup/include/alibabacloud/codeup/model/AddWebhookResult.h
Normal file
73
codeup/include/alibabacloud/codeup/model/AddWebhookResult.h
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.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_CODEUP_MODEL_ADDWEBHOOKRESULT_H_
|
||||
#define ALIBABACLOUD_CODEUP_MODEL_ADDWEBHOOKRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/codeup/CodeupExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Codeup
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_CODEUP_EXPORT AddWebhookResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct Result
|
||||
{
|
||||
std::string description;
|
||||
bool pushEvents;
|
||||
std::string createdAt;
|
||||
long projectId;
|
||||
bool issuesEvents;
|
||||
bool tagPushEvents;
|
||||
bool mergeRequestsEvents;
|
||||
std::string url;
|
||||
bool buildEvents;
|
||||
std::string lastTestResult;
|
||||
long id;
|
||||
bool enableSslVerification;
|
||||
bool noteEvents;
|
||||
};
|
||||
|
||||
|
||||
AddWebhookResult();
|
||||
explicit AddWebhookResult(const std::string &payload);
|
||||
~AddWebhookResult();
|
||||
std::string getErrorCode()const;
|
||||
std::string getErrorMessage()const;
|
||||
bool getSuccess()const;
|
||||
Result getResult()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::string errorCode_;
|
||||
std::string errorMessage_;
|
||||
bool success_;
|
||||
Result result_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_CODEUP_MODEL_ADDWEBHOOKRESULT_H_
|
||||
@@ -0,0 +1,57 @@
|
||||
/*
|
||||
* 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_CODEUP_MODEL_CREATEBRANCHREQUEST_H_
|
||||
#define ALIBABACLOUD_CODEUP_MODEL_CREATEBRANCHREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RoaServiceRequest.h>
|
||||
#include <alibabacloud/codeup/CodeupExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Codeup
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_CODEUP_EXPORT CreateBranchRequest : public RoaServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
CreateBranchRequest();
|
||||
~CreateBranchRequest();
|
||||
|
||||
std::string getOrganizationId()const;
|
||||
void setOrganizationId(const std::string& organizationId);
|
||||
std::string getSubUserId()const;
|
||||
void setSubUserId(const std::string& subUserId);
|
||||
std::string getAccessToken()const;
|
||||
void setAccessToken(const std::string& accessToken);
|
||||
long getProjectId()const;
|
||||
void setProjectId(long projectId);
|
||||
|
||||
private:
|
||||
std::string organizationId_;
|
||||
std::string subUserId_;
|
||||
std::string accessToken_;
|
||||
long projectId_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_CODEUP_MODEL_CREATEBRANCHREQUEST_H_
|
||||
@@ -0,0 +1,78 @@
|
||||
/*
|
||||
* 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_CODEUP_MODEL_CREATEBRANCHRESULT_H_
|
||||
#define ALIBABACLOUD_CODEUP_MODEL_CREATEBRANCHRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/codeup/CodeupExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Codeup
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_CODEUP_EXPORT CreateBranchResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct Result
|
||||
{
|
||||
struct CommitInfo
|
||||
{
|
||||
std::string authorName;
|
||||
std::string message;
|
||||
std::string authorDate;
|
||||
std::string committedDate;
|
||||
std::string committerEmail;
|
||||
std::vector<std::string> parentIds;
|
||||
std::string createdAt;
|
||||
std::string shortId;
|
||||
std::string title;
|
||||
std::string id;
|
||||
std::string authorEmail;
|
||||
std::string committerName;
|
||||
};
|
||||
bool protectedBranch;
|
||||
CommitInfo commitInfo;
|
||||
std::string branchName;
|
||||
};
|
||||
|
||||
|
||||
CreateBranchResult();
|
||||
explicit CreateBranchResult(const std::string &payload);
|
||||
~CreateBranchResult();
|
||||
std::string getErrorCode()const;
|
||||
std::string getErrorMessage()const;
|
||||
bool getSuccess()const;
|
||||
Result getResult()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::string errorCode_;
|
||||
std::string errorMessage_;
|
||||
bool success_;
|
||||
Result result_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_CODEUP_MODEL_CREATEBRANCHRESULT_H_
|
||||
@@ -0,0 +1,57 @@
|
||||
/*
|
||||
* 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_CODEUP_MODEL_CREATEMERGEREQUESTREQUEST_H_
|
||||
#define ALIBABACLOUD_CODEUP_MODEL_CREATEMERGEREQUESTREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RoaServiceRequest.h>
|
||||
#include <alibabacloud/codeup/CodeupExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Codeup
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_CODEUP_EXPORT CreateMergeRequestRequest : public RoaServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
CreateMergeRequestRequest();
|
||||
~CreateMergeRequestRequest();
|
||||
|
||||
std::string getOrganizationId()const;
|
||||
void setOrganizationId(const std::string& organizationId);
|
||||
std::string getSubUserId()const;
|
||||
void setSubUserId(const std::string& subUserId);
|
||||
std::string getAccessToken()const;
|
||||
void setAccessToken(const std::string& accessToken);
|
||||
long getProjectId()const;
|
||||
void setProjectId(long projectId);
|
||||
|
||||
private:
|
||||
std::string organizationId_;
|
||||
std::string subUserId_;
|
||||
std::string accessToken_;
|
||||
long projectId_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_CODEUP_MODEL_CREATEMERGEREQUESTREQUEST_H_
|
||||
@@ -0,0 +1,133 @@
|
||||
/*
|
||||
* 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_CODEUP_MODEL_CREATEMERGEREQUESTRESULT_H_
|
||||
#define ALIBABACLOUD_CODEUP_MODEL_CREATEMERGEREQUESTRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/codeup/CodeupExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Codeup
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_CODEUP_EXPORT CreateMergeRequestResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct Result
|
||||
{
|
||||
struct Author
|
||||
{
|
||||
std::string avatarUrl;
|
||||
std::string externUserId;
|
||||
long id;
|
||||
std::string name;
|
||||
};
|
||||
struct ApproveCheckResult
|
||||
{
|
||||
struct SatisfiedCheckResultsItem
|
||||
{
|
||||
struct ExtraUsersItem
|
||||
{
|
||||
std::string avatarUrl;
|
||||
std::string externUserId;
|
||||
long id;
|
||||
std::string name;
|
||||
};
|
||||
std::string checkName;
|
||||
std::vector<std::string> satisfiedItems;
|
||||
std::string checkType;
|
||||
std::string checkStatus;
|
||||
std::vector<std::string> unsatisfiedItems;
|
||||
std::vector<SatisfiedCheckResultsItem::ExtraUsersItem> extraUsers;
|
||||
};
|
||||
struct UnsatisfiedCheckResultsItem
|
||||
{
|
||||
struct ExtraUsersItem4
|
||||
{
|
||||
std::string avatarUrl;
|
||||
std::string externUserId;
|
||||
long id;
|
||||
std::string name;
|
||||
};
|
||||
std::vector<std::string> satisfiedItems1;
|
||||
std::string checkName;
|
||||
std::string checkType;
|
||||
std::string checkStatus;
|
||||
std::vector<UnsatisfiedCheckResultsItem::ExtraUsersItem4> extraUsers3;
|
||||
std::vector<std::string> unsatisfiedItems2;
|
||||
};
|
||||
std::vector<UnsatisfiedCheckResultsItem> unsatisfiedCheckResults;
|
||||
std::vector<SatisfiedCheckResultsItem> satisfiedCheckResults;
|
||||
std::string totalCheckResult;
|
||||
};
|
||||
struct AssigneeListItem
|
||||
{
|
||||
std::string avatarUrl;
|
||||
std::string externUserId;
|
||||
std::string id;
|
||||
std::string name;
|
||||
};
|
||||
ApproveCheckResult approveCheckResult;
|
||||
int behindCommitCount;
|
||||
std::string description;
|
||||
int aheadCommitCount;
|
||||
std::string createdAt;
|
||||
long projectId;
|
||||
std::string title;
|
||||
std::string webUrl;
|
||||
std::string mergeError;
|
||||
std::string nameWithNamespace;
|
||||
std::string updatedAt;
|
||||
std::string mergedRevision;
|
||||
std::string acceptedRevision;
|
||||
std::string state;
|
||||
std::vector<AssigneeListItem> assigneeList;
|
||||
std::string mergeStatus;
|
||||
std::string sourceBranch;
|
||||
Author author;
|
||||
long id;
|
||||
std::string mergeType;
|
||||
std::string targetBranch;
|
||||
};
|
||||
|
||||
|
||||
CreateMergeRequestResult();
|
||||
explicit CreateMergeRequestResult(const std::string &payload);
|
||||
~CreateMergeRequestResult();
|
||||
std::string getErrorCode()const;
|
||||
std::string getErrorMessage()const;
|
||||
bool getSuccess()const;
|
||||
Result getResult()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::string errorCode_;
|
||||
std::string errorMessage_;
|
||||
bool success_;
|
||||
Result result_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_CODEUP_MODEL_CREATEMERGEREQUESTRESULT_H_
|
||||
57
codeup/include/alibabacloud/codeup/model/CreateTagRequest.h
Normal file
57
codeup/include/alibabacloud/codeup/model/CreateTagRequest.h
Normal file
@@ -0,0 +1,57 @@
|
||||
/*
|
||||
* 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_CODEUP_MODEL_CREATETAGREQUEST_H_
|
||||
#define ALIBABACLOUD_CODEUP_MODEL_CREATETAGREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RoaServiceRequest.h>
|
||||
#include <alibabacloud/codeup/CodeupExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Codeup
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_CODEUP_EXPORT CreateTagRequest : public RoaServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
CreateTagRequest();
|
||||
~CreateTagRequest();
|
||||
|
||||
std::string getOrganizationId()const;
|
||||
void setOrganizationId(const std::string& organizationId);
|
||||
std::string getSubUserId()const;
|
||||
void setSubUserId(const std::string& subUserId);
|
||||
std::string getAccessToken()const;
|
||||
void setAccessToken(const std::string& accessToken);
|
||||
long getProjectId()const;
|
||||
void setProjectId(long projectId);
|
||||
|
||||
private:
|
||||
std::string organizationId_;
|
||||
std::string subUserId_;
|
||||
std::string accessToken_;
|
||||
long projectId_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_CODEUP_MODEL_CREATETAGREQUEST_H_
|
||||
84
codeup/include/alibabacloud/codeup/model/CreateTagResult.h
Normal file
84
codeup/include/alibabacloud/codeup/model/CreateTagResult.h
Normal file
@@ -0,0 +1,84 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_CODEUP_MODEL_CREATETAGRESULT_H_
|
||||
#define ALIBABACLOUD_CODEUP_MODEL_CREATETAGRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/codeup/CodeupExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Codeup
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_CODEUP_EXPORT CreateTagResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct Result
|
||||
{
|
||||
struct CommitInfo
|
||||
{
|
||||
std::string authoredDate;
|
||||
std::string authorName;
|
||||
std::string committedDate;
|
||||
std::string committerEmail;
|
||||
std::string message;
|
||||
std::vector<std::string> parentIds;
|
||||
std::string createdAt;
|
||||
std::string shortId;
|
||||
std::string title;
|
||||
std::string id;
|
||||
std::string authorEmail;
|
||||
std::string committerName;
|
||||
};
|
||||
struct Release
|
||||
{
|
||||
std::string description;
|
||||
std::string tagName;
|
||||
};
|
||||
std::string message;
|
||||
CommitInfo commitInfo;
|
||||
Release release;
|
||||
std::string name;
|
||||
};
|
||||
|
||||
|
||||
CreateTagResult();
|
||||
explicit CreateTagResult(const std::string &payload);
|
||||
~CreateTagResult();
|
||||
std::string getErrorCode()const;
|
||||
std::string getErrorMessage()const;
|
||||
bool getSuccess()const;
|
||||
Result getResult()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::string errorCode_;
|
||||
std::string errorMessage_;
|
||||
bool success_;
|
||||
Result result_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_CODEUP_MODEL_CREATETAGRESULT_H_
|
||||
@@ -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_CODEUP_MODEL_DELETEBRANCHREQUEST_H_
|
||||
#define ALIBABACLOUD_CODEUP_MODEL_DELETEBRANCHREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RoaServiceRequest.h>
|
||||
#include <alibabacloud/codeup/CodeupExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Codeup
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_CODEUP_EXPORT DeleteBranchRequest : public RoaServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
DeleteBranchRequest();
|
||||
~DeleteBranchRequest();
|
||||
|
||||
std::string getOrganizationId()const;
|
||||
void setOrganizationId(const std::string& organizationId);
|
||||
std::string getSubUserId()const;
|
||||
void setSubUserId(const std::string& subUserId);
|
||||
std::string getAccessToken()const;
|
||||
void setAccessToken(const std::string& accessToken);
|
||||
long getProjectId()const;
|
||||
void setProjectId(long projectId);
|
||||
std::string getBranchName()const;
|
||||
void setBranchName(const std::string& branchName);
|
||||
|
||||
private:
|
||||
std::string organizationId_;
|
||||
std::string subUserId_;
|
||||
std::string accessToken_;
|
||||
long projectId_;
|
||||
std::string branchName_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_CODEUP_MODEL_DELETEBRANCHREQUEST_H_
|
||||
@@ -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.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_CODEUP_MODEL_DELETEBRANCHRESULT_H_
|
||||
#define ALIBABACLOUD_CODEUP_MODEL_DELETEBRANCHRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/codeup/CodeupExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Codeup
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_CODEUP_EXPORT DeleteBranchResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct Result
|
||||
{
|
||||
std::string branchName;
|
||||
};
|
||||
|
||||
|
||||
DeleteBranchResult();
|
||||
explicit DeleteBranchResult(const std::string &payload);
|
||||
~DeleteBranchResult();
|
||||
std::string getErrorCode()const;
|
||||
std::string getErrorMessage()const;
|
||||
bool getSuccess()const;
|
||||
Result getResult()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::string errorCode_;
|
||||
std::string errorMessage_;
|
||||
bool success_;
|
||||
Result result_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_CODEUP_MODEL_DELETEBRANCHRESULT_H_
|
||||
@@ -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_CODEUP_MODEL_GETBRANCHINFOREQUEST_H_
|
||||
#define ALIBABACLOUD_CODEUP_MODEL_GETBRANCHINFOREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RoaServiceRequest.h>
|
||||
#include <alibabacloud/codeup/CodeupExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Codeup
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_CODEUP_EXPORT GetBranchInfoRequest : public RoaServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
GetBranchInfoRequest();
|
||||
~GetBranchInfoRequest();
|
||||
|
||||
std::string getOrganizationId()const;
|
||||
void setOrganizationId(const std::string& organizationId);
|
||||
std::string getSubUserId()const;
|
||||
void setSubUserId(const std::string& subUserId);
|
||||
std::string getAccessToken()const;
|
||||
void setAccessToken(const std::string& accessToken);
|
||||
long getProjectId()const;
|
||||
void setProjectId(long projectId);
|
||||
std::string getBranchName()const;
|
||||
void setBranchName(const std::string& branchName);
|
||||
|
||||
private:
|
||||
std::string organizationId_;
|
||||
std::string subUserId_;
|
||||
std::string accessToken_;
|
||||
long projectId_;
|
||||
std::string branchName_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_CODEUP_MODEL_GETBRANCHINFOREQUEST_H_
|
||||
@@ -0,0 +1,78 @@
|
||||
/*
|
||||
* 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_CODEUP_MODEL_GETBRANCHINFORESULT_H_
|
||||
#define ALIBABACLOUD_CODEUP_MODEL_GETBRANCHINFORESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/codeup/CodeupExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Codeup
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_CODEUP_EXPORT GetBranchInfoResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct Result
|
||||
{
|
||||
struct CommitInfo
|
||||
{
|
||||
std::string authorName;
|
||||
std::string message;
|
||||
std::string authorDate;
|
||||
std::string committedDate;
|
||||
std::string committerEmail;
|
||||
std::vector<std::string> parentIds;
|
||||
std::string createdAt;
|
||||
std::string shortId;
|
||||
std::string title;
|
||||
std::string id;
|
||||
std::string authorEmail;
|
||||
std::string committerName;
|
||||
};
|
||||
bool protectedBranch;
|
||||
CommitInfo commitInfo;
|
||||
std::string branchName;
|
||||
};
|
||||
|
||||
|
||||
GetBranchInfoResult();
|
||||
explicit GetBranchInfoResult(const std::string &payload);
|
||||
~GetBranchInfoResult();
|
||||
std::string getErrorCode()const;
|
||||
std::string getErrorMessage()const;
|
||||
bool getSuccess()const;
|
||||
Result getResult()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::string errorCode_;
|
||||
std::string errorMessage_;
|
||||
bool success_;
|
||||
Result result_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_CODEUP_MODEL_GETBRANCHINFORESULT_H_
|
||||
@@ -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_CODEUP_MODEL_GETPROJECTMEMBERREQUEST_H_
|
||||
#define ALIBABACLOUD_CODEUP_MODEL_GETPROJECTMEMBERREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RoaServiceRequest.h>
|
||||
#include <alibabacloud/codeup/CodeupExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Codeup
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_CODEUP_EXPORT GetProjectMemberRequest : public RoaServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
GetProjectMemberRequest();
|
||||
~GetProjectMemberRequest();
|
||||
|
||||
std::string getOrganizationId()const;
|
||||
void setOrganizationId(const std::string& organizationId);
|
||||
std::string getSubUserId()const;
|
||||
void setSubUserId(const std::string& subUserId);
|
||||
std::string getAccessToken()const;
|
||||
void setAccessToken(const std::string& accessToken);
|
||||
long getProjectId()const;
|
||||
void setProjectId(long projectId);
|
||||
long getUserId()const;
|
||||
void setUserId(long userId);
|
||||
|
||||
private:
|
||||
std::string organizationId_;
|
||||
std::string subUserId_;
|
||||
std::string accessToken_;
|
||||
long projectId_;
|
||||
long userId_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_CODEUP_MODEL_GETPROJECTMEMBERREQUEST_H_
|
||||
@@ -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.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_CODEUP_MODEL_GETPROJECTMEMBERRESULT_H_
|
||||
#define ALIBABACLOUD_CODEUP_MODEL_GETPROJECTMEMBERRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/codeup/CodeupExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Codeup
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_CODEUP_EXPORT GetProjectMemberResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct Result
|
||||
{
|
||||
std::string avatarUrl;
|
||||
std::string externUserId;
|
||||
long id;
|
||||
int accessLevel;
|
||||
std::string name;
|
||||
};
|
||||
|
||||
|
||||
GetProjectMemberResult();
|
||||
explicit GetProjectMemberResult(const std::string &payload);
|
||||
~GetProjectMemberResult();
|
||||
std::string getErrorCode()const;
|
||||
std::string getErrorMessage()const;
|
||||
bool getSuccess()const;
|
||||
Result getResult()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::string errorCode_;
|
||||
std::string errorMessage_;
|
||||
bool success_;
|
||||
Result result_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_CODEUP_MODEL_GETPROJECTMEMBERRESULT_H_
|
||||
@@ -0,0 +1,54 @@
|
||||
/*
|
||||
* 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_CODEUP_MODEL_GETREPOSITORYINFOREQUEST_H_
|
||||
#define ALIBABACLOUD_CODEUP_MODEL_GETREPOSITORYINFOREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RoaServiceRequest.h>
|
||||
#include <alibabacloud/codeup/CodeupExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Codeup
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_CODEUP_EXPORT GetRepositoryInfoRequest : public RoaServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
GetRepositoryInfoRequest();
|
||||
~GetRepositoryInfoRequest();
|
||||
|
||||
std::string getOrganizationId()const;
|
||||
void setOrganizationId(const std::string& organizationId);
|
||||
std::string getIdentity()const;
|
||||
void setIdentity(const std::string& identity);
|
||||
std::string getAccessToken()const;
|
||||
void setAccessToken(const std::string& accessToken);
|
||||
|
||||
private:
|
||||
std::string organizationId_;
|
||||
std::string identity_;
|
||||
std::string accessToken_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_CODEUP_MODEL_GETREPOSITORYINFOREQUEST_H_
|
||||
@@ -0,0 +1,112 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_CODEUP_MODEL_GETREPOSITORYINFORESULT_H_
|
||||
#define ALIBABACLOUD_CODEUP_MODEL_GETREPOSITORYINFORESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/codeup/CodeupExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Codeup
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_CODEUP_EXPORT GetRepositoryInfoResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct Result
|
||||
{
|
||||
struct _Namespace
|
||||
{
|
||||
std::string path;
|
||||
std::string description;
|
||||
long ownerId;
|
||||
std::string state;
|
||||
std::string createdAt;
|
||||
bool _public;
|
||||
std::string visibilityLevel;
|
||||
long id;
|
||||
std::string updatedAt;
|
||||
std::string avatar;
|
||||
std::string name;
|
||||
};
|
||||
struct Permissions
|
||||
{
|
||||
struct ProjectAccess
|
||||
{
|
||||
int accessLevel;
|
||||
};
|
||||
struct GroupAccess
|
||||
{
|
||||
int accessLevel;
|
||||
};
|
||||
GroupAccess groupAccess;
|
||||
ProjectAccess projectAccess;
|
||||
};
|
||||
std::string httpUrlToRepo;
|
||||
std::string description;
|
||||
bool archive;
|
||||
std::string createdAt;
|
||||
std::string visibilityLevel;
|
||||
std::string name;
|
||||
std::string avatarUrl;
|
||||
bool demoProjectStatus;
|
||||
Permissions permissions;
|
||||
std::vector<std::string> tagList;
|
||||
std::string defaultBranch;
|
||||
std::string path;
|
||||
std::string pathWithNamespace;
|
||||
std::string lastActivityAt;
|
||||
long creatorId;
|
||||
std::string webUrl;
|
||||
std::string nameWithNamespace;
|
||||
_Namespace _namespace;
|
||||
int accessLevel;
|
||||
std::string importUrl;
|
||||
std::string sshUrlToRepo;
|
||||
std::string importStatus;
|
||||
bool importFromSubversion;
|
||||
bool _public;
|
||||
long id;
|
||||
};
|
||||
|
||||
|
||||
GetRepositoryInfoResult();
|
||||
explicit GetRepositoryInfoResult(const std::string &payload);
|
||||
~GetRepositoryInfoResult();
|
||||
int getErrorCode()const;
|
||||
std::string getErrorMessage()const;
|
||||
bool getSuccess()const;
|
||||
Result getResult()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
int errorCode_;
|
||||
std::string errorMessage_;
|
||||
bool success_;
|
||||
Result result_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_CODEUP_MODEL_GETREPOSITORYINFORESULT_H_
|
||||
@@ -0,0 +1,69 @@
|
||||
/*
|
||||
* 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_CODEUP_MODEL_LISTGROUPREPOSITORIESREQUEST_H_
|
||||
#define ALIBABACLOUD_CODEUP_MODEL_LISTGROUPREPOSITORIESREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RoaServiceRequest.h>
|
||||
#include <alibabacloud/codeup/CodeupExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Codeup
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_CODEUP_EXPORT ListGroupRepositoriesRequest : public RoaServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
ListGroupRepositoriesRequest();
|
||||
~ListGroupRepositoriesRequest();
|
||||
|
||||
std::string getAccessToken()const;
|
||||
void setAccessToken(const std::string& accessToken);
|
||||
bool getIsMember()const;
|
||||
void setIsMember(bool isMember);
|
||||
std::string getOrganizationId()const;
|
||||
void setOrganizationId(const std::string& organizationId);
|
||||
std::string getSearch()const;
|
||||
void setSearch(const std::string& search);
|
||||
std::string getSubUserId()const;
|
||||
void setSubUserId(const std::string& subUserId);
|
||||
std::string getIdentity()const;
|
||||
void setIdentity(const std::string& identity);
|
||||
long getPageSize()const;
|
||||
void setPageSize(long pageSize);
|
||||
long getPage()const;
|
||||
void setPage(long page);
|
||||
|
||||
private:
|
||||
std::string accessToken_;
|
||||
bool isMember_;
|
||||
std::string organizationId_;
|
||||
std::string search_;
|
||||
std::string subUserId_;
|
||||
std::string identity_;
|
||||
long pageSize_;
|
||||
long page_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_CODEUP_MODEL_LISTGROUPREPOSITORIESREQUEST_H_
|
||||
@@ -0,0 +1,76 @@
|
||||
/*
|
||||
* 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_CODEUP_MODEL_LISTGROUPREPOSITORIESRESULT_H_
|
||||
#define ALIBABACLOUD_CODEUP_MODEL_LISTGROUPREPOSITORIESRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/codeup/CodeupExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Codeup
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_CODEUP_EXPORT ListGroupRepositoriesResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct ResultItem
|
||||
{
|
||||
std::string lastActivityAt;
|
||||
std::string path;
|
||||
std::string pathWithNamespace;
|
||||
bool archive;
|
||||
long creatorId;
|
||||
std::string createdAt;
|
||||
std::string nameWithNamespace;
|
||||
std::string webUrl;
|
||||
int visibilityLevel;
|
||||
std::string updatedAt;
|
||||
std::string name;
|
||||
std::string importStatus;
|
||||
long id;
|
||||
long namespaceId;
|
||||
std::string httpCloneUrl;
|
||||
std::string sshCloneUrl;
|
||||
};
|
||||
|
||||
|
||||
ListGroupRepositoriesResult();
|
||||
explicit ListGroupRepositoriesResult(const std::string &payload);
|
||||
~ListGroupRepositoriesResult();
|
||||
std::string getErrorCode()const;
|
||||
std::string getErrorMessage()const;
|
||||
bool getSuccess()const;
|
||||
std::vector<ResultItem> getResult()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::string errorCode_;
|
||||
std::string errorMessage_;
|
||||
bool success_;
|
||||
std::vector<ResultItem> result_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_CODEUP_MODEL_LISTGROUPREPOSITORIESRESULT_H_
|
||||
66
codeup/include/alibabacloud/codeup/model/ListGroupsRequest.h
Normal file
66
codeup/include/alibabacloud/codeup/model/ListGroupsRequest.h
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.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_CODEUP_MODEL_LISTGROUPSREQUEST_H_
|
||||
#define ALIBABACLOUD_CODEUP_MODEL_LISTGROUPSREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RoaServiceRequest.h>
|
||||
#include <alibabacloud/codeup/CodeupExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Codeup
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_CODEUP_EXPORT ListGroupsRequest : public RoaServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
ListGroupsRequest();
|
||||
~ListGroupsRequest();
|
||||
|
||||
std::string getOrganizationId()const;
|
||||
void setOrganizationId(const std::string& organizationId);
|
||||
bool getIncludePersonal()const;
|
||||
void setIncludePersonal(bool includePersonal);
|
||||
std::string getSearch()const;
|
||||
void setSearch(const std::string& search);
|
||||
std::string getSubUserId()const;
|
||||
void setSubUserId(const std::string& subUserId);
|
||||
long getPageSize()const;
|
||||
void setPageSize(long pageSize);
|
||||
std::string getAccessToken()const;
|
||||
void setAccessToken(const std::string& accessToken);
|
||||
long getPage()const;
|
||||
void setPage(long page);
|
||||
|
||||
private:
|
||||
std::string organizationId_;
|
||||
bool includePersonal_;
|
||||
std::string search_;
|
||||
std::string subUserId_;
|
||||
long pageSize_;
|
||||
std::string accessToken_;
|
||||
long page_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_CODEUP_MODEL_LISTGROUPSREQUEST_H_
|
||||
74
codeup/include/alibabacloud/codeup/model/ListGroupsResult.h
Normal file
74
codeup/include/alibabacloud/codeup/model/ListGroupsResult.h
Normal file
@@ -0,0 +1,74 @@
|
||||
/*
|
||||
* 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_CODEUP_MODEL_LISTGROUPSRESULT_H_
|
||||
#define ALIBABACLOUD_CODEUP_MODEL_LISTGROUPSRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/codeup/CodeupExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Codeup
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_CODEUP_EXPORT ListGroupsResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct ResultItem
|
||||
{
|
||||
long parentId;
|
||||
std::string path;
|
||||
std::string pathWithNamespace;
|
||||
std::string description;
|
||||
std::string createdAt;
|
||||
std::string nameWithNamespace;
|
||||
std::string webUrl;
|
||||
std::string visibilityLevel;
|
||||
std::string updatedAt;
|
||||
int accessLevel;
|
||||
std::string name;
|
||||
std::string type;
|
||||
long ownerId;
|
||||
long id;
|
||||
};
|
||||
|
||||
|
||||
ListGroupsResult();
|
||||
explicit ListGroupsResult(const std::string &payload);
|
||||
~ListGroupsResult();
|
||||
std::string getErrorCode()const;
|
||||
std::string getErrorMessage()const;
|
||||
bool getSuccess()const;
|
||||
std::vector<ResultItem> getResult()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::string errorCode_;
|
||||
std::string errorMessage_;
|
||||
bool success_;
|
||||
std::vector<ResultItem> result_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_CODEUP_MODEL_LISTGROUPSRESULT_H_
|
||||
@@ -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_CODEUP_MODEL_MERGEMERGEREQUESTREQUEST_H_
|
||||
#define ALIBABACLOUD_CODEUP_MODEL_MERGEMERGEREQUESTREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RoaServiceRequest.h>
|
||||
#include <alibabacloud/codeup/CodeupExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Codeup
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_CODEUP_EXPORT MergeMergeRequestRequest : public RoaServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
MergeMergeRequestRequest();
|
||||
~MergeMergeRequestRequest();
|
||||
|
||||
std::string getOrganizationId()const;
|
||||
void setOrganizationId(const std::string& organizationId);
|
||||
std::string getSubUserId()const;
|
||||
void setSubUserId(const std::string& subUserId);
|
||||
long getMergeRequestId()const;
|
||||
void setMergeRequestId(long mergeRequestId);
|
||||
std::string getAccessToken()const;
|
||||
void setAccessToken(const std::string& accessToken);
|
||||
long getProjectId()const;
|
||||
void setProjectId(long projectId);
|
||||
|
||||
private:
|
||||
std::string organizationId_;
|
||||
std::string subUserId_;
|
||||
long mergeRequestId_;
|
||||
std::string accessToken_;
|
||||
long projectId_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_CODEUP_MODEL_MERGEMERGEREQUESTREQUEST_H_
|
||||
@@ -0,0 +1,133 @@
|
||||
/*
|
||||
* 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_CODEUP_MODEL_MERGEMERGEREQUESTRESULT_H_
|
||||
#define ALIBABACLOUD_CODEUP_MODEL_MERGEMERGEREQUESTRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/codeup/CodeupExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Codeup
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_CODEUP_EXPORT MergeMergeRequestResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct Result
|
||||
{
|
||||
struct Author
|
||||
{
|
||||
std::string avatarUrl;
|
||||
std::string externUserId;
|
||||
long id;
|
||||
std::string name;
|
||||
};
|
||||
struct ApproveCheckResult
|
||||
{
|
||||
struct SatisfiedCheckResultsItem
|
||||
{
|
||||
struct ExtraUsersItem
|
||||
{
|
||||
std::string avatarUrl;
|
||||
std::string externUserId;
|
||||
long id;
|
||||
std::string name;
|
||||
};
|
||||
std::string checkName;
|
||||
std::vector<std::string> satisfiedItems;
|
||||
std::string checkType;
|
||||
std::string checkStatus;
|
||||
std::vector<std::string> unsatisfiedItems;
|
||||
std::vector<SatisfiedCheckResultsItem::ExtraUsersItem> extraUsers;
|
||||
};
|
||||
struct UnsatisfiedCheckResultsItem
|
||||
{
|
||||
struct ExtraUsersItem4
|
||||
{
|
||||
std::string avatarUrl;
|
||||
std::string externUserId;
|
||||
long id;
|
||||
std::string name;
|
||||
};
|
||||
std::vector<std::string> satisfiedItems1;
|
||||
std::string checkName;
|
||||
std::string checkType;
|
||||
std::string checkStatus;
|
||||
std::vector<UnsatisfiedCheckResultsItem::ExtraUsersItem4> extraUsers3;
|
||||
std::vector<std::string> unsatisfiedItems2;
|
||||
};
|
||||
std::vector<UnsatisfiedCheckResultsItem> unsatisfiedCheckResults;
|
||||
std::vector<SatisfiedCheckResultsItem> satisfiedCheckResults;
|
||||
std::string totalCheckResult;
|
||||
};
|
||||
struct AssigneeListItem
|
||||
{
|
||||
std::string avatarUrl;
|
||||
std::string externUserId;
|
||||
std::string id;
|
||||
std::string name;
|
||||
};
|
||||
ApproveCheckResult approveCheckResult;
|
||||
int behindCommitCount;
|
||||
std::string description;
|
||||
int aheadCommitCount;
|
||||
std::string createdAt;
|
||||
long projectId;
|
||||
std::string title;
|
||||
std::string webUrl;
|
||||
std::string mergeError;
|
||||
std::string nameWithNamespace;
|
||||
std::string updatedAt;
|
||||
std::string mergedRevision;
|
||||
std::string acceptedRevision;
|
||||
std::string state;
|
||||
std::vector<AssigneeListItem> assigneeList;
|
||||
std::string mergeStatus;
|
||||
std::string sourceBranch;
|
||||
Author author;
|
||||
long id;
|
||||
std::string mergeType;
|
||||
std::string targetBranch;
|
||||
};
|
||||
|
||||
|
||||
MergeMergeRequestResult();
|
||||
explicit MergeMergeRequestResult(const std::string &payload);
|
||||
~MergeMergeRequestResult();
|
||||
std::string getErrorCode()const;
|
||||
std::string getErrorMessage()const;
|
||||
bool getSuccess()const;
|
||||
Result getResult()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::string errorCode_;
|
||||
std::string errorMessage_;
|
||||
bool success_;
|
||||
Result result_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_CODEUP_MODEL_MERGEMERGEREQUESTRESULT_H_
|
||||
@@ -123,6 +123,78 @@ CodeupClient::AddRepositoryMemberOutcomeCallable CodeupClient::addRepositoryMemb
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
CodeupClient::AddWebhookOutcome CodeupClient::addWebhook(const AddWebhookRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return AddWebhookOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return AddWebhookOutcome(AddWebhookResult(outcome.result()));
|
||||
else
|
||||
return AddWebhookOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void CodeupClient::addWebhookAsync(const AddWebhookRequest& request, const AddWebhookAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, addWebhook(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
CodeupClient::AddWebhookOutcomeCallable CodeupClient::addWebhookCallable(const AddWebhookRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<AddWebhookOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->addWebhook(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
CodeupClient::CreateBranchOutcome CodeupClient::createBranch(const CreateBranchRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return CreateBranchOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return CreateBranchOutcome(CreateBranchResult(outcome.result()));
|
||||
else
|
||||
return CreateBranchOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void CodeupClient::createBranchAsync(const CreateBranchRequest& request, const CreateBranchAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, createBranch(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
CodeupClient::CreateBranchOutcomeCallable CodeupClient::createBranchCallable(const CreateBranchRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<CreateBranchOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->createBranch(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
CodeupClient::CreateFileOutcome CodeupClient::createFile(const CreateFileRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -159,6 +231,42 @@ CodeupClient::CreateFileOutcomeCallable CodeupClient::createFileCallable(const C
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
CodeupClient::CreateMergeRequestOutcome CodeupClient::createMergeRequest(const CreateMergeRequestRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return CreateMergeRequestOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return CreateMergeRequestOutcome(CreateMergeRequestResult(outcome.result()));
|
||||
else
|
||||
return CreateMergeRequestOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void CodeupClient::createMergeRequestAsync(const CreateMergeRequestRequest& request, const CreateMergeRequestAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, createMergeRequest(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
CodeupClient::CreateMergeRequestOutcomeCallable CodeupClient::createMergeRequestCallable(const CreateMergeRequestRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<CreateMergeRequestOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->createMergeRequest(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
CodeupClient::CreateRepositoryOutcome CodeupClient::createRepository(const CreateRepositoryRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -231,6 +339,78 @@ CodeupClient::CreateRepositoryGroupOutcomeCallable CodeupClient::createRepositor
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
CodeupClient::CreateTagOutcome CodeupClient::createTag(const CreateTagRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return CreateTagOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return CreateTagOutcome(CreateTagResult(outcome.result()));
|
||||
else
|
||||
return CreateTagOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void CodeupClient::createTagAsync(const CreateTagRequest& request, const CreateTagAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, createTag(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
CodeupClient::CreateTagOutcomeCallable CodeupClient::createTagCallable(const CreateTagRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<CreateTagOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->createTag(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
CodeupClient::DeleteBranchOutcome CodeupClient::deleteBranch(const DeleteBranchRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return DeleteBranchOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return DeleteBranchOutcome(DeleteBranchResult(outcome.result()));
|
||||
else
|
||||
return DeleteBranchOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void CodeupClient::deleteBranchAsync(const DeleteBranchRequest& request, const DeleteBranchAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, deleteBranch(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
CodeupClient::DeleteBranchOutcomeCallable CodeupClient::deleteBranchCallable(const DeleteBranchRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<DeleteBranchOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->deleteBranch(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
CodeupClient::DeleteFileOutcome CodeupClient::deleteFile(const DeleteFileRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -411,6 +591,42 @@ CodeupClient::DeleteRepositoryMemberOutcomeCallable CodeupClient::deleteReposito
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
CodeupClient::GetBranchInfoOutcome CodeupClient::getBranchInfo(const GetBranchInfoRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return GetBranchInfoOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return GetBranchInfoOutcome(GetBranchInfoResult(outcome.result()));
|
||||
else
|
||||
return GetBranchInfoOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void CodeupClient::getBranchInfoAsync(const GetBranchInfoRequest& request, const GetBranchInfoAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, getBranchInfo(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
CodeupClient::GetBranchInfoOutcomeCallable CodeupClient::getBranchInfoCallable(const GetBranchInfoRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<GetBranchInfoOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->getBranchInfo(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
CodeupClient::GetCodeupOrganizationOutcome CodeupClient::getCodeupOrganization(const GetCodeupOrganizationRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -483,6 +699,78 @@ CodeupClient::GetFileBlobsOutcomeCallable CodeupClient::getFileBlobsCallable(con
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
CodeupClient::GetProjectMemberOutcome CodeupClient::getProjectMember(const GetProjectMemberRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return GetProjectMemberOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return GetProjectMemberOutcome(GetProjectMemberResult(outcome.result()));
|
||||
else
|
||||
return GetProjectMemberOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void CodeupClient::getProjectMemberAsync(const GetProjectMemberRequest& request, const GetProjectMemberAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, getProjectMember(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
CodeupClient::GetProjectMemberOutcomeCallable CodeupClient::getProjectMemberCallable(const GetProjectMemberRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<GetProjectMemberOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->getProjectMember(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
CodeupClient::GetRepositoryInfoOutcome CodeupClient::getRepositoryInfo(const GetRepositoryInfoRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return GetRepositoryInfoOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return GetRepositoryInfoOutcome(GetRepositoryInfoResult(outcome.result()));
|
||||
else
|
||||
return GetRepositoryInfoOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void CodeupClient::getRepositoryInfoAsync(const GetRepositoryInfoRequest& request, const GetRepositoryInfoAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, getRepositoryInfo(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
CodeupClient::GetRepositoryInfoOutcomeCallable CodeupClient::getRepositoryInfoCallable(const GetRepositoryInfoRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<GetRepositoryInfoOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->getRepositoryInfo(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
CodeupClient::ListGroupMemberOutcome CodeupClient::listGroupMember(const ListGroupMemberRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -519,6 +807,78 @@ CodeupClient::ListGroupMemberOutcomeCallable CodeupClient::listGroupMemberCallab
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
CodeupClient::ListGroupRepositoriesOutcome CodeupClient::listGroupRepositories(const ListGroupRepositoriesRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return ListGroupRepositoriesOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return ListGroupRepositoriesOutcome(ListGroupRepositoriesResult(outcome.result()));
|
||||
else
|
||||
return ListGroupRepositoriesOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void CodeupClient::listGroupRepositoriesAsync(const ListGroupRepositoriesRequest& request, const ListGroupRepositoriesAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, listGroupRepositories(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
CodeupClient::ListGroupRepositoriesOutcomeCallable CodeupClient::listGroupRepositoriesCallable(const ListGroupRepositoriesRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<ListGroupRepositoriesOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->listGroupRepositories(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
CodeupClient::ListGroupsOutcome CodeupClient::listGroups(const ListGroupsRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return ListGroupsOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return ListGroupsOutcome(ListGroupsResult(outcome.result()));
|
||||
else
|
||||
return ListGroupsOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void CodeupClient::listGroupsAsync(const ListGroupsRequest& request, const ListGroupsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, listGroups(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
CodeupClient::ListGroupsOutcomeCallable CodeupClient::listGroupsCallable(const ListGroupsRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<ListGroupsOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->listGroups(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
CodeupClient::ListRepositoryMemberOutcome CodeupClient::listRepositoryMember(const ListRepositoryMemberRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -591,6 +951,42 @@ CodeupClient::ListRepositoryTreeOutcomeCallable CodeupClient::listRepositoryTree
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
CodeupClient::MergeMergeRequestOutcome CodeupClient::mergeMergeRequest(const MergeMergeRequestRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return MergeMergeRequestOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return MergeMergeRequestOutcome(MergeMergeRequestResult(outcome.result()));
|
||||
else
|
||||
return MergeMergeRequestOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void CodeupClient::mergeMergeRequestAsync(const MergeMergeRequestRequest& request, const MergeMergeRequestAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, mergeMergeRequest(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
CodeupClient::MergeMergeRequestOutcomeCallable CodeupClient::mergeMergeRequestCallable(const MergeMergeRequestRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<MergeMergeRequestOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->mergeMergeRequest(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
CodeupClient::UpdateFileOutcome CodeupClient::updateFile(const UpdateFileRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
|
||||
63
codeup/src/model/AddWebhookRequest.cc
Normal file
63
codeup/src/model/AddWebhookRequest.cc
Normal file
@@ -0,0 +1,63 @@
|
||||
/*
|
||||
* 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/codeup/model/AddWebhookRequest.h>
|
||||
|
||||
using AlibabaCloud::Codeup::Model::AddWebhookRequest;
|
||||
|
||||
AddWebhookRequest::AddWebhookRequest() :
|
||||
RoaServiceRequest("codeup", "2020-04-14")
|
||||
{
|
||||
setResourcePath("/api/v3/projects/[ProjectId]/hooks");
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
AddWebhookRequest::~AddWebhookRequest()
|
||||
{}
|
||||
|
||||
std::string AddWebhookRequest::getOrganizationId()const
|
||||
{
|
||||
return organizationId_;
|
||||
}
|
||||
|
||||
void AddWebhookRequest::setOrganizationId(const std::string& organizationId)
|
||||
{
|
||||
organizationId_ = organizationId;
|
||||
setParameter("OrganizationId", organizationId);
|
||||
}
|
||||
|
||||
std::string AddWebhookRequest::getAccessToken()const
|
||||
{
|
||||
return accessToken_;
|
||||
}
|
||||
|
||||
void AddWebhookRequest::setAccessToken(const std::string& accessToken)
|
||||
{
|
||||
accessToken_ = accessToken;
|
||||
setParameter("AccessToken", accessToken);
|
||||
}
|
||||
|
||||
long AddWebhookRequest::getProjectId()const
|
||||
{
|
||||
return projectId_;
|
||||
}
|
||||
|
||||
void AddWebhookRequest::setProjectId(long projectId)
|
||||
{
|
||||
projectId_ = projectId;
|
||||
setParameter("ProjectId", std::to_string(projectId));
|
||||
}
|
||||
|
||||
97
codeup/src/model/AddWebhookResult.cc
Normal file
97
codeup/src/model/AddWebhookResult.cc
Normal file
@@ -0,0 +1,97 @@
|
||||
/*
|
||||
* 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/codeup/model/AddWebhookResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Codeup;
|
||||
using namespace AlibabaCloud::Codeup::Model;
|
||||
|
||||
AddWebhookResult::AddWebhookResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
AddWebhookResult::AddWebhookResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
AddWebhookResult::~AddWebhookResult()
|
||||
{}
|
||||
|
||||
void AddWebhookResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto resultNode = value["Result"];
|
||||
if(!resultNode["Id"].isNull())
|
||||
result_.id = std::stol(resultNode["Id"].asString());
|
||||
if(!resultNode["Url"].isNull())
|
||||
result_.url = resultNode["Url"].asString();
|
||||
if(!resultNode["CreatedAt"].isNull())
|
||||
result_.createdAt = resultNode["CreatedAt"].asString();
|
||||
if(!resultNode["ProjectId"].isNull())
|
||||
result_.projectId = std::stol(resultNode["ProjectId"].asString());
|
||||
if(!resultNode["PushEvents"].isNull())
|
||||
result_.pushEvents = resultNode["PushEvents"].asString() == "true";
|
||||
if(!resultNode["IssuesEvents"].isNull())
|
||||
result_.issuesEvents = resultNode["IssuesEvents"].asString() == "true";
|
||||
if(!resultNode["MergeRequestsEvents"].isNull())
|
||||
result_.mergeRequestsEvents = resultNode["MergeRequestsEvents"].asString() == "true";
|
||||
if(!resultNode["TagPushEvents"].isNull())
|
||||
result_.tagPushEvents = resultNode["TagPushEvents"].asString() == "true";
|
||||
if(!resultNode["BuildEvents"].isNull())
|
||||
result_.buildEvents = resultNode["BuildEvents"].asString() == "true";
|
||||
if(!resultNode["NoteEvents"].isNull())
|
||||
result_.noteEvents = resultNode["NoteEvents"].asString() == "true";
|
||||
if(!resultNode["EnableSslVerification"].isNull())
|
||||
result_.enableSslVerification = resultNode["EnableSslVerification"].asString() == "true";
|
||||
if(!resultNode["LastTestResult"].isNull())
|
||||
result_.lastTestResult = resultNode["LastTestResult"].asString();
|
||||
if(!resultNode["Description"].isNull())
|
||||
result_.description = resultNode["Description"].asString();
|
||||
if(!value["ErrorCode"].isNull())
|
||||
errorCode_ = value["ErrorCode"].asString();
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
if(!value["ErrorMessage"].isNull())
|
||||
errorMessage_ = value["ErrorMessage"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string AddWebhookResult::getErrorCode()const
|
||||
{
|
||||
return errorCode_;
|
||||
}
|
||||
|
||||
std::string AddWebhookResult::getErrorMessage()const
|
||||
{
|
||||
return errorMessage_;
|
||||
}
|
||||
|
||||
bool AddWebhookResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
AddWebhookResult::Result AddWebhookResult::getResult()const
|
||||
{
|
||||
return result_;
|
||||
}
|
||||
|
||||
74
codeup/src/model/CreateBranchRequest.cc
Normal file
74
codeup/src/model/CreateBranchRequest.cc
Normal file
@@ -0,0 +1,74 @@
|
||||
/*
|
||||
* 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/codeup/model/CreateBranchRequest.h>
|
||||
|
||||
using AlibabaCloud::Codeup::Model::CreateBranchRequest;
|
||||
|
||||
CreateBranchRequest::CreateBranchRequest() :
|
||||
RoaServiceRequest("codeup", "2020-04-14")
|
||||
{
|
||||
setResourcePath("/api/v3/projects/[ProjectId]/repository/branches");
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
CreateBranchRequest::~CreateBranchRequest()
|
||||
{}
|
||||
|
||||
std::string CreateBranchRequest::getOrganizationId()const
|
||||
{
|
||||
return organizationId_;
|
||||
}
|
||||
|
||||
void CreateBranchRequest::setOrganizationId(const std::string& organizationId)
|
||||
{
|
||||
organizationId_ = organizationId;
|
||||
setParameter("OrganizationId", organizationId);
|
||||
}
|
||||
|
||||
std::string CreateBranchRequest::getSubUserId()const
|
||||
{
|
||||
return subUserId_;
|
||||
}
|
||||
|
||||
void CreateBranchRequest::setSubUserId(const std::string& subUserId)
|
||||
{
|
||||
subUserId_ = subUserId;
|
||||
setParameter("SubUserId", subUserId);
|
||||
}
|
||||
|
||||
std::string CreateBranchRequest::getAccessToken()const
|
||||
{
|
||||
return accessToken_;
|
||||
}
|
||||
|
||||
void CreateBranchRequest::setAccessToken(const std::string& accessToken)
|
||||
{
|
||||
accessToken_ = accessToken;
|
||||
setParameter("AccessToken", accessToken);
|
||||
}
|
||||
|
||||
long CreateBranchRequest::getProjectId()const
|
||||
{
|
||||
return projectId_;
|
||||
}
|
||||
|
||||
void CreateBranchRequest::setProjectId(long projectId)
|
||||
{
|
||||
projectId_ = projectId;
|
||||
setParameter("ProjectId", std::to_string(projectId));
|
||||
}
|
||||
|
||||
101
codeup/src/model/CreateBranchResult.cc
Normal file
101
codeup/src/model/CreateBranchResult.cc
Normal file
@@ -0,0 +1,101 @@
|
||||
/*
|
||||
* 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/codeup/model/CreateBranchResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Codeup;
|
||||
using namespace AlibabaCloud::Codeup::Model;
|
||||
|
||||
CreateBranchResult::CreateBranchResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
CreateBranchResult::CreateBranchResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
CreateBranchResult::~CreateBranchResult()
|
||||
{}
|
||||
|
||||
void CreateBranchResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto resultNode = value["Result"];
|
||||
if(!resultNode["BranchName"].isNull())
|
||||
result_.branchName = resultNode["BranchName"].asString();
|
||||
if(!resultNode["ProtectedBranch"].isNull())
|
||||
result_.protectedBranch = resultNode["ProtectedBranch"].asString() == "true";
|
||||
auto commitInfoNode = resultNode["CommitInfo"];
|
||||
if(!commitInfoNode["Id"].isNull())
|
||||
result_.commitInfo.id = commitInfoNode["Id"].asString();
|
||||
if(!commitInfoNode["ShortId"].isNull())
|
||||
result_.commitInfo.shortId = commitInfoNode["ShortId"].asString();
|
||||
if(!commitInfoNode["Title"].isNull())
|
||||
result_.commitInfo.title = commitInfoNode["Title"].asString();
|
||||
if(!commitInfoNode["AuthorName"].isNull())
|
||||
result_.commitInfo.authorName = commitInfoNode["AuthorName"].asString();
|
||||
if(!commitInfoNode["AuthorEmail"].isNull())
|
||||
result_.commitInfo.authorEmail = commitInfoNode["AuthorEmail"].asString();
|
||||
if(!commitInfoNode["CreatedAt"].isNull())
|
||||
result_.commitInfo.createdAt = commitInfoNode["CreatedAt"].asString();
|
||||
if(!commitInfoNode["Message"].isNull())
|
||||
result_.commitInfo.message = commitInfoNode["Message"].asString();
|
||||
if(!commitInfoNode["AuthorDate"].isNull())
|
||||
result_.commitInfo.authorDate = commitInfoNode["AuthorDate"].asString();
|
||||
if(!commitInfoNode["CommittedDate"].isNull())
|
||||
result_.commitInfo.committedDate = commitInfoNode["CommittedDate"].asString();
|
||||
if(!commitInfoNode["CommitterEmail"].isNull())
|
||||
result_.commitInfo.committerEmail = commitInfoNode["CommitterEmail"].asString();
|
||||
if(!commitInfoNode["CommitterName"].isNull())
|
||||
result_.commitInfo.committerName = commitInfoNode["CommitterName"].asString();
|
||||
auto allParentIds = commitInfoNode["ParentIds"]["ParentIds"];
|
||||
for (auto value : allParentIds)
|
||||
result_.commitInfo.parentIds.push_back(value.asString());
|
||||
if(!value["ErrorCode"].isNull())
|
||||
errorCode_ = value["ErrorCode"].asString();
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
if(!value["ErrorMessage"].isNull())
|
||||
errorMessage_ = value["ErrorMessage"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string CreateBranchResult::getErrorCode()const
|
||||
{
|
||||
return errorCode_;
|
||||
}
|
||||
|
||||
std::string CreateBranchResult::getErrorMessage()const
|
||||
{
|
||||
return errorMessage_;
|
||||
}
|
||||
|
||||
bool CreateBranchResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
CreateBranchResult::Result CreateBranchResult::getResult()const
|
||||
{
|
||||
return result_;
|
||||
}
|
||||
|
||||
74
codeup/src/model/CreateMergeRequestRequest.cc
Normal file
74
codeup/src/model/CreateMergeRequestRequest.cc
Normal file
@@ -0,0 +1,74 @@
|
||||
/*
|
||||
* 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/codeup/model/CreateMergeRequestRequest.h>
|
||||
|
||||
using AlibabaCloud::Codeup::Model::CreateMergeRequestRequest;
|
||||
|
||||
CreateMergeRequestRequest::CreateMergeRequestRequest() :
|
||||
RoaServiceRequest("codeup", "2020-04-14")
|
||||
{
|
||||
setResourcePath("/api/v4/projects/[ProjectId]/merge_requests");
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
CreateMergeRequestRequest::~CreateMergeRequestRequest()
|
||||
{}
|
||||
|
||||
std::string CreateMergeRequestRequest::getOrganizationId()const
|
||||
{
|
||||
return organizationId_;
|
||||
}
|
||||
|
||||
void CreateMergeRequestRequest::setOrganizationId(const std::string& organizationId)
|
||||
{
|
||||
organizationId_ = organizationId;
|
||||
setParameter("OrganizationId", organizationId);
|
||||
}
|
||||
|
||||
std::string CreateMergeRequestRequest::getSubUserId()const
|
||||
{
|
||||
return subUserId_;
|
||||
}
|
||||
|
||||
void CreateMergeRequestRequest::setSubUserId(const std::string& subUserId)
|
||||
{
|
||||
subUserId_ = subUserId;
|
||||
setParameter("SubUserId", subUserId);
|
||||
}
|
||||
|
||||
std::string CreateMergeRequestRequest::getAccessToken()const
|
||||
{
|
||||
return accessToken_;
|
||||
}
|
||||
|
||||
void CreateMergeRequestRequest::setAccessToken(const std::string& accessToken)
|
||||
{
|
||||
accessToken_ = accessToken;
|
||||
setParameter("AccessToken", accessToken);
|
||||
}
|
||||
|
||||
long CreateMergeRequestRequest::getProjectId()const
|
||||
{
|
||||
return projectId_;
|
||||
}
|
||||
|
||||
void CreateMergeRequestRequest::setProjectId(long projectId)
|
||||
{
|
||||
projectId_ = projectId;
|
||||
setParameter("ProjectId", std::to_string(projectId));
|
||||
}
|
||||
|
||||
197
codeup/src/model/CreateMergeRequestResult.cc
Normal file
197
codeup/src/model/CreateMergeRequestResult.cc
Normal file
@@ -0,0 +1,197 @@
|
||||
/*
|
||||
* 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/codeup/model/CreateMergeRequestResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Codeup;
|
||||
using namespace AlibabaCloud::Codeup::Model;
|
||||
|
||||
CreateMergeRequestResult::CreateMergeRequestResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
CreateMergeRequestResult::CreateMergeRequestResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
CreateMergeRequestResult::~CreateMergeRequestResult()
|
||||
{}
|
||||
|
||||
void CreateMergeRequestResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto resultNode = value["Result"];
|
||||
if(!resultNode["Id"].isNull())
|
||||
result_.id = std::stol(resultNode["Id"].asString());
|
||||
if(!resultNode["ProjectId"].isNull())
|
||||
result_.projectId = std::stol(resultNode["ProjectId"].asString());
|
||||
if(!resultNode["Title"].isNull())
|
||||
result_.title = resultNode["Title"].asString();
|
||||
if(!resultNode["Description"].isNull())
|
||||
result_.description = resultNode["Description"].asString();
|
||||
if(!resultNode["State"].isNull())
|
||||
result_.state = resultNode["State"].asString();
|
||||
if(!resultNode["MergeStatus"].isNull())
|
||||
result_.mergeStatus = resultNode["MergeStatus"].asString();
|
||||
if(!resultNode["CreatedAt"].isNull())
|
||||
result_.createdAt = resultNode["CreatedAt"].asString();
|
||||
if(!resultNode["UpdatedAt"].isNull())
|
||||
result_.updatedAt = resultNode["UpdatedAt"].asString();
|
||||
if(!resultNode["TargetBranch"].isNull())
|
||||
result_.targetBranch = resultNode["TargetBranch"].asString();
|
||||
if(!resultNode["SourceBranch"].isNull())
|
||||
result_.sourceBranch = resultNode["SourceBranch"].asString();
|
||||
if(!resultNode["WebUrl"].isNull())
|
||||
result_.webUrl = resultNode["WebUrl"].asString();
|
||||
if(!resultNode["AcceptedRevision"].isNull())
|
||||
result_.acceptedRevision = resultNode["AcceptedRevision"].asString();
|
||||
if(!resultNode["MergeError"].isNull())
|
||||
result_.mergeError = resultNode["MergeError"].asString();
|
||||
if(!resultNode["MergedRevision"].isNull())
|
||||
result_.mergedRevision = resultNode["MergedRevision"].asString();
|
||||
if(!resultNode["NameWithNamespace"].isNull())
|
||||
result_.nameWithNamespace = resultNode["NameWithNamespace"].asString();
|
||||
if(!resultNode["MergeType"].isNull())
|
||||
result_.mergeType = resultNode["MergeType"].asString();
|
||||
if(!resultNode["AheadCommitCount"].isNull())
|
||||
result_.aheadCommitCount = std::stoi(resultNode["AheadCommitCount"].asString());
|
||||
if(!resultNode["BehindCommitCount"].isNull())
|
||||
result_.behindCommitCount = std::stoi(resultNode["BehindCommitCount"].asString());
|
||||
auto allAssigneeListNode = resultNode["AssigneeList"]["AssigneeListItem"];
|
||||
for (auto resultNodeAssigneeListAssigneeListItem : allAssigneeListNode)
|
||||
{
|
||||
Result::AssigneeListItem assigneeListItemObject;
|
||||
if(!resultNodeAssigneeListAssigneeListItem["Id"].isNull())
|
||||
assigneeListItemObject.id = resultNodeAssigneeListAssigneeListItem["Id"].asString();
|
||||
if(!resultNodeAssigneeListAssigneeListItem["ExternUserId"].isNull())
|
||||
assigneeListItemObject.externUserId = resultNodeAssigneeListAssigneeListItem["ExternUserId"].asString();
|
||||
if(!resultNodeAssigneeListAssigneeListItem["AvatarUrl"].isNull())
|
||||
assigneeListItemObject.avatarUrl = resultNodeAssigneeListAssigneeListItem["AvatarUrl"].asString();
|
||||
if(!resultNodeAssigneeListAssigneeListItem["Name"].isNull())
|
||||
assigneeListItemObject.name = resultNodeAssigneeListAssigneeListItem["Name"].asString();
|
||||
result_.assigneeList.push_back(assigneeListItemObject);
|
||||
}
|
||||
auto authorNode = resultNode["Author"];
|
||||
if(!authorNode["Id"].isNull())
|
||||
result_.author.id = std::stol(authorNode["Id"].asString());
|
||||
if(!authorNode["ExternUserId"].isNull())
|
||||
result_.author.externUserId = authorNode["ExternUserId"].asString();
|
||||
if(!authorNode["AvatarUrl"].isNull())
|
||||
result_.author.avatarUrl = authorNode["AvatarUrl"].asString();
|
||||
if(!authorNode["Name"].isNull())
|
||||
result_.author.name = authorNode["Name"].asString();
|
||||
auto approveCheckResultNode = resultNode["ApproveCheckResult"];
|
||||
if(!approveCheckResultNode["TotalCheckResult"].isNull())
|
||||
result_.approveCheckResult.totalCheckResult = approveCheckResultNode["TotalCheckResult"].asString();
|
||||
auto allSatisfiedCheckResultsNode = approveCheckResultNode["SatisfiedCheckResults"]["SatisfiedCheckResultsItem"];
|
||||
for (auto approveCheckResultNodeSatisfiedCheckResultsSatisfiedCheckResultsItem : allSatisfiedCheckResultsNode)
|
||||
{
|
||||
Result::ApproveCheckResult::SatisfiedCheckResultsItem satisfiedCheckResultsItemObject;
|
||||
if(!approveCheckResultNodeSatisfiedCheckResultsSatisfiedCheckResultsItem["CheckStatus"].isNull())
|
||||
satisfiedCheckResultsItemObject.checkStatus = approveCheckResultNodeSatisfiedCheckResultsSatisfiedCheckResultsItem["CheckStatus"].asString();
|
||||
if(!approveCheckResultNodeSatisfiedCheckResultsSatisfiedCheckResultsItem["CheckName"].isNull())
|
||||
satisfiedCheckResultsItemObject.checkName = approveCheckResultNodeSatisfiedCheckResultsSatisfiedCheckResultsItem["CheckName"].asString();
|
||||
if(!approveCheckResultNodeSatisfiedCheckResultsSatisfiedCheckResultsItem["CheckType"].isNull())
|
||||
satisfiedCheckResultsItemObject.checkType = approveCheckResultNodeSatisfiedCheckResultsSatisfiedCheckResultsItem["CheckType"].asString();
|
||||
auto allExtraUsersNode = allSatisfiedCheckResultsNode["ExtraUsers"]["ExtraUsersItem"];
|
||||
for (auto allSatisfiedCheckResultsNodeExtraUsersExtraUsersItem : allExtraUsersNode)
|
||||
{
|
||||
Result::ApproveCheckResult::SatisfiedCheckResultsItem::ExtraUsersItem extraUsersObject;
|
||||
if(!allSatisfiedCheckResultsNodeExtraUsersExtraUsersItem["Id"].isNull())
|
||||
extraUsersObject.id = std::stol(allSatisfiedCheckResultsNodeExtraUsersExtraUsersItem["Id"].asString());
|
||||
if(!allSatisfiedCheckResultsNodeExtraUsersExtraUsersItem["ExternUserId"].isNull())
|
||||
extraUsersObject.externUserId = allSatisfiedCheckResultsNodeExtraUsersExtraUsersItem["ExternUserId"].asString();
|
||||
if(!allSatisfiedCheckResultsNodeExtraUsersExtraUsersItem["AvatarUrl"].isNull())
|
||||
extraUsersObject.avatarUrl = allSatisfiedCheckResultsNodeExtraUsersExtraUsersItem["AvatarUrl"].asString();
|
||||
if(!allSatisfiedCheckResultsNodeExtraUsersExtraUsersItem["Name"].isNull())
|
||||
extraUsersObject.name = allSatisfiedCheckResultsNodeExtraUsersExtraUsersItem["Name"].asString();
|
||||
satisfiedCheckResultsItemObject.extraUsers.push_back(extraUsersObject);
|
||||
}
|
||||
auto allSatisfiedItems = value["SatisfiedItems"]["SatisfiedItems"];
|
||||
for (auto value : allSatisfiedItems)
|
||||
satisfiedCheckResultsItemObject.satisfiedItems.push_back(value.asString());
|
||||
auto allUnsatisfiedItems = value["UnsatisfiedItems"]["UnsatisfiedItems"];
|
||||
for (auto value : allUnsatisfiedItems)
|
||||
satisfiedCheckResultsItemObject.unsatisfiedItems.push_back(value.asString());
|
||||
result_.approveCheckResult.satisfiedCheckResults.push_back(satisfiedCheckResultsItemObject);
|
||||
}
|
||||
auto allUnsatisfiedCheckResultsNode = approveCheckResultNode["UnsatisfiedCheckResults"]["UnsatisfiedCheckResultsItem"];
|
||||
for (auto approveCheckResultNodeUnsatisfiedCheckResultsUnsatisfiedCheckResultsItem : allUnsatisfiedCheckResultsNode)
|
||||
{
|
||||
Result::ApproveCheckResult::UnsatisfiedCheckResultsItem unsatisfiedCheckResultsItemObject;
|
||||
if(!approveCheckResultNodeUnsatisfiedCheckResultsUnsatisfiedCheckResultsItem["CheckStatus"].isNull())
|
||||
unsatisfiedCheckResultsItemObject.checkStatus = approveCheckResultNodeUnsatisfiedCheckResultsUnsatisfiedCheckResultsItem["CheckStatus"].asString();
|
||||
if(!approveCheckResultNodeUnsatisfiedCheckResultsUnsatisfiedCheckResultsItem["CheckName"].isNull())
|
||||
unsatisfiedCheckResultsItemObject.checkName = approveCheckResultNodeUnsatisfiedCheckResultsUnsatisfiedCheckResultsItem["CheckName"].asString();
|
||||
if(!approveCheckResultNodeUnsatisfiedCheckResultsUnsatisfiedCheckResultsItem["CheckType"].isNull())
|
||||
unsatisfiedCheckResultsItemObject.checkType = approveCheckResultNodeUnsatisfiedCheckResultsUnsatisfiedCheckResultsItem["CheckType"].asString();
|
||||
auto allExtraUsers3Node = allUnsatisfiedCheckResultsNode["ExtraUsers"]["ExtraUsersItem"];
|
||||
for (auto allUnsatisfiedCheckResultsNodeExtraUsersExtraUsersItem : allExtraUsers3Node)
|
||||
{
|
||||
Result::ApproveCheckResult::UnsatisfiedCheckResultsItem::ExtraUsersItem4 extraUsers3Object;
|
||||
if(!allUnsatisfiedCheckResultsNodeExtraUsersExtraUsersItem["Id"].isNull())
|
||||
extraUsers3Object.id = std::stol(allUnsatisfiedCheckResultsNodeExtraUsersExtraUsersItem["Id"].asString());
|
||||
if(!allUnsatisfiedCheckResultsNodeExtraUsersExtraUsersItem["ExternUserId"].isNull())
|
||||
extraUsers3Object.externUserId = allUnsatisfiedCheckResultsNodeExtraUsersExtraUsersItem["ExternUserId"].asString();
|
||||
if(!allUnsatisfiedCheckResultsNodeExtraUsersExtraUsersItem["AvatarUrl"].isNull())
|
||||
extraUsers3Object.avatarUrl = allUnsatisfiedCheckResultsNodeExtraUsersExtraUsersItem["AvatarUrl"].asString();
|
||||
if(!allUnsatisfiedCheckResultsNodeExtraUsersExtraUsersItem["Name"].isNull())
|
||||
extraUsers3Object.name = allUnsatisfiedCheckResultsNodeExtraUsersExtraUsersItem["Name"].asString();
|
||||
unsatisfiedCheckResultsItemObject.extraUsers3.push_back(extraUsers3Object);
|
||||
}
|
||||
auto allSatisfiedItems1 = value["SatisfiedItems"]["SatisfiedItems"];
|
||||
for (auto value : allSatisfiedItems1)
|
||||
unsatisfiedCheckResultsItemObject.satisfiedItems1.push_back(value.asString());
|
||||
auto allUnsatisfiedItems2 = value["UnsatisfiedItems"]["UnsatisfiedItems"];
|
||||
for (auto value : allUnsatisfiedItems2)
|
||||
unsatisfiedCheckResultsItemObject.unsatisfiedItems2.push_back(value.asString());
|
||||
result_.approveCheckResult.unsatisfiedCheckResults.push_back(unsatisfiedCheckResultsItemObject);
|
||||
}
|
||||
if(!value["ErrorCode"].isNull())
|
||||
errorCode_ = value["ErrorCode"].asString();
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
if(!value["ErrorMessage"].isNull())
|
||||
errorMessage_ = value["ErrorMessage"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string CreateMergeRequestResult::getErrorCode()const
|
||||
{
|
||||
return errorCode_;
|
||||
}
|
||||
|
||||
std::string CreateMergeRequestResult::getErrorMessage()const
|
||||
{
|
||||
return errorMessage_;
|
||||
}
|
||||
|
||||
bool CreateMergeRequestResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
CreateMergeRequestResult::Result CreateMergeRequestResult::getResult()const
|
||||
{
|
||||
return result_;
|
||||
}
|
||||
|
||||
74
codeup/src/model/CreateTagRequest.cc
Normal file
74
codeup/src/model/CreateTagRequest.cc
Normal file
@@ -0,0 +1,74 @@
|
||||
/*
|
||||
* 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/codeup/model/CreateTagRequest.h>
|
||||
|
||||
using AlibabaCloud::Codeup::Model::CreateTagRequest;
|
||||
|
||||
CreateTagRequest::CreateTagRequest() :
|
||||
RoaServiceRequest("codeup", "2020-04-14")
|
||||
{
|
||||
setResourcePath("/api/v3/projects/[ProjectId]/repository/tags");
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
CreateTagRequest::~CreateTagRequest()
|
||||
{}
|
||||
|
||||
std::string CreateTagRequest::getOrganizationId()const
|
||||
{
|
||||
return organizationId_;
|
||||
}
|
||||
|
||||
void CreateTagRequest::setOrganizationId(const std::string& organizationId)
|
||||
{
|
||||
organizationId_ = organizationId;
|
||||
setParameter("OrganizationId", organizationId);
|
||||
}
|
||||
|
||||
std::string CreateTagRequest::getSubUserId()const
|
||||
{
|
||||
return subUserId_;
|
||||
}
|
||||
|
||||
void CreateTagRequest::setSubUserId(const std::string& subUserId)
|
||||
{
|
||||
subUserId_ = subUserId;
|
||||
setParameter("SubUserId", subUserId);
|
||||
}
|
||||
|
||||
std::string CreateTagRequest::getAccessToken()const
|
||||
{
|
||||
return accessToken_;
|
||||
}
|
||||
|
||||
void CreateTagRequest::setAccessToken(const std::string& accessToken)
|
||||
{
|
||||
accessToken_ = accessToken;
|
||||
setParameter("AccessToken", accessToken);
|
||||
}
|
||||
|
||||
long CreateTagRequest::getProjectId()const
|
||||
{
|
||||
return projectId_;
|
||||
}
|
||||
|
||||
void CreateTagRequest::setProjectId(long projectId)
|
||||
{
|
||||
projectId_ = projectId;
|
||||
setParameter("ProjectId", std::to_string(projectId));
|
||||
}
|
||||
|
||||
106
codeup/src/model/CreateTagResult.cc
Normal file
106
codeup/src/model/CreateTagResult.cc
Normal file
@@ -0,0 +1,106 @@
|
||||
/*
|
||||
* 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/codeup/model/CreateTagResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Codeup;
|
||||
using namespace AlibabaCloud::Codeup::Model;
|
||||
|
||||
CreateTagResult::CreateTagResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
CreateTagResult::CreateTagResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
CreateTagResult::~CreateTagResult()
|
||||
{}
|
||||
|
||||
void CreateTagResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto resultNode = value["Result"];
|
||||
if(!resultNode["Name"].isNull())
|
||||
result_.name = resultNode["Name"].asString();
|
||||
if(!resultNode["Message"].isNull())
|
||||
result_.message = resultNode["Message"].asString();
|
||||
auto commitInfoNode = resultNode["CommitInfo"];
|
||||
if(!commitInfoNode["Id"].isNull())
|
||||
result_.commitInfo.id = commitInfoNode["Id"].asString();
|
||||
if(!commitInfoNode["ShortId"].isNull())
|
||||
result_.commitInfo.shortId = commitInfoNode["ShortId"].asString();
|
||||
if(!commitInfoNode["Title"].isNull())
|
||||
result_.commitInfo.title = commitInfoNode["Title"].asString();
|
||||
if(!commitInfoNode["AuthorName"].isNull())
|
||||
result_.commitInfo.authorName = commitInfoNode["AuthorName"].asString();
|
||||
if(!commitInfoNode["AuthorEmail"].isNull())
|
||||
result_.commitInfo.authorEmail = commitInfoNode["AuthorEmail"].asString();
|
||||
if(!commitInfoNode["AuthoredDate"].isNull())
|
||||
result_.commitInfo.authoredDate = commitInfoNode["AuthoredDate"].asString();
|
||||
if(!commitInfoNode["CommittedDate"].isNull())
|
||||
result_.commitInfo.committedDate = commitInfoNode["CommittedDate"].asString();
|
||||
if(!commitInfoNode["CommitterEmail"].isNull())
|
||||
result_.commitInfo.committerEmail = commitInfoNode["CommitterEmail"].asString();
|
||||
if(!commitInfoNode["CommitterName"].isNull())
|
||||
result_.commitInfo.committerName = commitInfoNode["CommitterName"].asString();
|
||||
if(!commitInfoNode["CreatedAt"].isNull())
|
||||
result_.commitInfo.createdAt = commitInfoNode["CreatedAt"].asString();
|
||||
if(!commitInfoNode["Message"].isNull())
|
||||
result_.commitInfo.message = commitInfoNode["Message"].asString();
|
||||
auto allParentIds = commitInfoNode["ParentIds"]["ParentIds"];
|
||||
for (auto value : allParentIds)
|
||||
result_.commitInfo.parentIds.push_back(value.asString());
|
||||
auto releaseNode = resultNode["Release"];
|
||||
if(!releaseNode["TagName"].isNull())
|
||||
result_.release.tagName = releaseNode["TagName"].asString();
|
||||
if(!releaseNode["Description"].isNull())
|
||||
result_.release.description = releaseNode["Description"].asString();
|
||||
if(!value["ErrorCode"].isNull())
|
||||
errorCode_ = value["ErrorCode"].asString();
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
if(!value["ErrorMessage"].isNull())
|
||||
errorMessage_ = value["ErrorMessage"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string CreateTagResult::getErrorCode()const
|
||||
{
|
||||
return errorCode_;
|
||||
}
|
||||
|
||||
std::string CreateTagResult::getErrorMessage()const
|
||||
{
|
||||
return errorMessage_;
|
||||
}
|
||||
|
||||
bool CreateTagResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
CreateTagResult::Result CreateTagResult::getResult()const
|
||||
{
|
||||
return result_;
|
||||
}
|
||||
|
||||
85
codeup/src/model/DeleteBranchRequest.cc
Normal file
85
codeup/src/model/DeleteBranchRequest.cc
Normal file
@@ -0,0 +1,85 @@
|
||||
/*
|
||||
* 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/codeup/model/DeleteBranchRequest.h>
|
||||
|
||||
using AlibabaCloud::Codeup::Model::DeleteBranchRequest;
|
||||
|
||||
DeleteBranchRequest::DeleteBranchRequest() :
|
||||
RoaServiceRequest("codeup", "2020-04-14")
|
||||
{
|
||||
setResourcePath("/api/v3/projects/[ProjectId]/repository/branches/[BranchName]");
|
||||
setMethod(HttpRequest::Method::Delete);
|
||||
}
|
||||
|
||||
DeleteBranchRequest::~DeleteBranchRequest()
|
||||
{}
|
||||
|
||||
std::string DeleteBranchRequest::getOrganizationId()const
|
||||
{
|
||||
return organizationId_;
|
||||
}
|
||||
|
||||
void DeleteBranchRequest::setOrganizationId(const std::string& organizationId)
|
||||
{
|
||||
organizationId_ = organizationId;
|
||||
setParameter("OrganizationId", organizationId);
|
||||
}
|
||||
|
||||
std::string DeleteBranchRequest::getSubUserId()const
|
||||
{
|
||||
return subUserId_;
|
||||
}
|
||||
|
||||
void DeleteBranchRequest::setSubUserId(const std::string& subUserId)
|
||||
{
|
||||
subUserId_ = subUserId;
|
||||
setParameter("SubUserId", subUserId);
|
||||
}
|
||||
|
||||
std::string DeleteBranchRequest::getAccessToken()const
|
||||
{
|
||||
return accessToken_;
|
||||
}
|
||||
|
||||
void DeleteBranchRequest::setAccessToken(const std::string& accessToken)
|
||||
{
|
||||
accessToken_ = accessToken;
|
||||
setParameter("AccessToken", accessToken);
|
||||
}
|
||||
|
||||
long DeleteBranchRequest::getProjectId()const
|
||||
{
|
||||
return projectId_;
|
||||
}
|
||||
|
||||
void DeleteBranchRequest::setProjectId(long projectId)
|
||||
{
|
||||
projectId_ = projectId;
|
||||
setParameter("ProjectId", std::to_string(projectId));
|
||||
}
|
||||
|
||||
std::string DeleteBranchRequest::getBranchName()const
|
||||
{
|
||||
return branchName_;
|
||||
}
|
||||
|
||||
void DeleteBranchRequest::setBranchName(const std::string& branchName)
|
||||
{
|
||||
branchName_ = branchName;
|
||||
setParameter("BranchName", branchName);
|
||||
}
|
||||
|
||||
73
codeup/src/model/DeleteBranchResult.cc
Normal file
73
codeup/src/model/DeleteBranchResult.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/codeup/model/DeleteBranchResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Codeup;
|
||||
using namespace AlibabaCloud::Codeup::Model;
|
||||
|
||||
DeleteBranchResult::DeleteBranchResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DeleteBranchResult::DeleteBranchResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DeleteBranchResult::~DeleteBranchResult()
|
||||
{}
|
||||
|
||||
void DeleteBranchResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto resultNode = value["Result"];
|
||||
if(!resultNode["BranchName"].isNull())
|
||||
result_.branchName = resultNode["BranchName"].asString();
|
||||
if(!value["ErrorCode"].isNull())
|
||||
errorCode_ = value["ErrorCode"].asString();
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
if(!value["ErrorMessage"].isNull())
|
||||
errorMessage_ = value["ErrorMessage"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string DeleteBranchResult::getErrorCode()const
|
||||
{
|
||||
return errorCode_;
|
||||
}
|
||||
|
||||
std::string DeleteBranchResult::getErrorMessage()const
|
||||
{
|
||||
return errorMessage_;
|
||||
}
|
||||
|
||||
bool DeleteBranchResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
DeleteBranchResult::Result DeleteBranchResult::getResult()const
|
||||
{
|
||||
return result_;
|
||||
}
|
||||
|
||||
@@ -21,8 +21,8 @@ using AlibabaCloud::Codeup::Model::DeleteRepositoryGroupRequest;
|
||||
DeleteRepositoryGroupRequest::DeleteRepositoryGroupRequest() :
|
||||
RoaServiceRequest("codeup", "2020-04-14")
|
||||
{
|
||||
setResourcePath("/api/v3/groups/[GroupId]");
|
||||
setMethod(HttpRequest::Method::Delete);
|
||||
setResourcePath("/api/v3/groups/[GroupId]/remove");
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DeleteRepositoryGroupRequest::~DeleteRepositoryGroupRequest()
|
||||
|
||||
@@ -22,7 +22,7 @@ DeleteRepositoryRequest::DeleteRepositoryRequest() :
|
||||
RoaServiceRequest("codeup", "2020-04-14")
|
||||
{
|
||||
setResourcePath("/api/v3/projects/[ProjectId]/remove");
|
||||
setMethod(HttpRequest::Method::Delete);
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DeleteRepositoryRequest::~DeleteRepositoryRequest()
|
||||
|
||||
85
codeup/src/model/GetBranchInfoRequest.cc
Normal file
85
codeup/src/model/GetBranchInfoRequest.cc
Normal file
@@ -0,0 +1,85 @@
|
||||
/*
|
||||
* 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/codeup/model/GetBranchInfoRequest.h>
|
||||
|
||||
using AlibabaCloud::Codeup::Model::GetBranchInfoRequest;
|
||||
|
||||
GetBranchInfoRequest::GetBranchInfoRequest() :
|
||||
RoaServiceRequest("codeup", "2020-04-14")
|
||||
{
|
||||
setResourcePath("/api/v3/projects/[ProjectId]/repository/branches/[BranchName]");
|
||||
setMethod(HttpRequest::Method::Get);
|
||||
}
|
||||
|
||||
GetBranchInfoRequest::~GetBranchInfoRequest()
|
||||
{}
|
||||
|
||||
std::string GetBranchInfoRequest::getOrganizationId()const
|
||||
{
|
||||
return organizationId_;
|
||||
}
|
||||
|
||||
void GetBranchInfoRequest::setOrganizationId(const std::string& organizationId)
|
||||
{
|
||||
organizationId_ = organizationId;
|
||||
setParameter("OrganizationId", organizationId);
|
||||
}
|
||||
|
||||
std::string GetBranchInfoRequest::getSubUserId()const
|
||||
{
|
||||
return subUserId_;
|
||||
}
|
||||
|
||||
void GetBranchInfoRequest::setSubUserId(const std::string& subUserId)
|
||||
{
|
||||
subUserId_ = subUserId;
|
||||
setParameter("SubUserId", subUserId);
|
||||
}
|
||||
|
||||
std::string GetBranchInfoRequest::getAccessToken()const
|
||||
{
|
||||
return accessToken_;
|
||||
}
|
||||
|
||||
void GetBranchInfoRequest::setAccessToken(const std::string& accessToken)
|
||||
{
|
||||
accessToken_ = accessToken;
|
||||
setParameter("AccessToken", accessToken);
|
||||
}
|
||||
|
||||
long GetBranchInfoRequest::getProjectId()const
|
||||
{
|
||||
return projectId_;
|
||||
}
|
||||
|
||||
void GetBranchInfoRequest::setProjectId(long projectId)
|
||||
{
|
||||
projectId_ = projectId;
|
||||
setParameter("ProjectId", std::to_string(projectId));
|
||||
}
|
||||
|
||||
std::string GetBranchInfoRequest::getBranchName()const
|
||||
{
|
||||
return branchName_;
|
||||
}
|
||||
|
||||
void GetBranchInfoRequest::setBranchName(const std::string& branchName)
|
||||
{
|
||||
branchName_ = branchName;
|
||||
setParameter("BranchName", branchName);
|
||||
}
|
||||
|
||||
101
codeup/src/model/GetBranchInfoResult.cc
Normal file
101
codeup/src/model/GetBranchInfoResult.cc
Normal file
@@ -0,0 +1,101 @@
|
||||
/*
|
||||
* 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/codeup/model/GetBranchInfoResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Codeup;
|
||||
using namespace AlibabaCloud::Codeup::Model;
|
||||
|
||||
GetBranchInfoResult::GetBranchInfoResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
GetBranchInfoResult::GetBranchInfoResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
GetBranchInfoResult::~GetBranchInfoResult()
|
||||
{}
|
||||
|
||||
void GetBranchInfoResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto resultNode = value["Result"];
|
||||
if(!resultNode["BranchName"].isNull())
|
||||
result_.branchName = resultNode["BranchName"].asString();
|
||||
if(!resultNode["ProtectedBranch"].isNull())
|
||||
result_.protectedBranch = resultNode["ProtectedBranch"].asString() == "true";
|
||||
auto commitInfoNode = resultNode["CommitInfo"];
|
||||
if(!commitInfoNode["Id"].isNull())
|
||||
result_.commitInfo.id = commitInfoNode["Id"].asString();
|
||||
if(!commitInfoNode["ShortId"].isNull())
|
||||
result_.commitInfo.shortId = commitInfoNode["ShortId"].asString();
|
||||
if(!commitInfoNode["Title"].isNull())
|
||||
result_.commitInfo.title = commitInfoNode["Title"].asString();
|
||||
if(!commitInfoNode["AuthorName"].isNull())
|
||||
result_.commitInfo.authorName = commitInfoNode["AuthorName"].asString();
|
||||
if(!commitInfoNode["AuthorEmail"].isNull())
|
||||
result_.commitInfo.authorEmail = commitInfoNode["AuthorEmail"].asString();
|
||||
if(!commitInfoNode["CreatedAt"].isNull())
|
||||
result_.commitInfo.createdAt = commitInfoNode["CreatedAt"].asString();
|
||||
if(!commitInfoNode["Message"].isNull())
|
||||
result_.commitInfo.message = commitInfoNode["Message"].asString();
|
||||
if(!commitInfoNode["AuthorDate"].isNull())
|
||||
result_.commitInfo.authorDate = commitInfoNode["AuthorDate"].asString();
|
||||
if(!commitInfoNode["CommittedDate"].isNull())
|
||||
result_.commitInfo.committedDate = commitInfoNode["CommittedDate"].asString();
|
||||
if(!commitInfoNode["CommitterEmail"].isNull())
|
||||
result_.commitInfo.committerEmail = commitInfoNode["CommitterEmail"].asString();
|
||||
if(!commitInfoNode["CommitterName"].isNull())
|
||||
result_.commitInfo.committerName = commitInfoNode["CommitterName"].asString();
|
||||
auto allParentIds = commitInfoNode["ParentIds"]["ParentIds"];
|
||||
for (auto value : allParentIds)
|
||||
result_.commitInfo.parentIds.push_back(value.asString());
|
||||
if(!value["ErrorCode"].isNull())
|
||||
errorCode_ = value["ErrorCode"].asString();
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
if(!value["ErrorMessage"].isNull())
|
||||
errorMessage_ = value["ErrorMessage"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string GetBranchInfoResult::getErrorCode()const
|
||||
{
|
||||
return errorCode_;
|
||||
}
|
||||
|
||||
std::string GetBranchInfoResult::getErrorMessage()const
|
||||
{
|
||||
return errorMessage_;
|
||||
}
|
||||
|
||||
bool GetBranchInfoResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
GetBranchInfoResult::Result GetBranchInfoResult::getResult()const
|
||||
{
|
||||
return result_;
|
||||
}
|
||||
|
||||
85
codeup/src/model/GetProjectMemberRequest.cc
Normal file
85
codeup/src/model/GetProjectMemberRequest.cc
Normal file
@@ -0,0 +1,85 @@
|
||||
/*
|
||||
* 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/codeup/model/GetProjectMemberRequest.h>
|
||||
|
||||
using AlibabaCloud::Codeup::Model::GetProjectMemberRequest;
|
||||
|
||||
GetProjectMemberRequest::GetProjectMemberRequest() :
|
||||
RoaServiceRequest("codeup", "2020-04-14")
|
||||
{
|
||||
setResourcePath("/api/v3/projects/[ProjectId]/members/[UserId]");
|
||||
setMethod(HttpRequest::Method::Get);
|
||||
}
|
||||
|
||||
GetProjectMemberRequest::~GetProjectMemberRequest()
|
||||
{}
|
||||
|
||||
std::string GetProjectMemberRequest::getOrganizationId()const
|
||||
{
|
||||
return organizationId_;
|
||||
}
|
||||
|
||||
void GetProjectMemberRequest::setOrganizationId(const std::string& organizationId)
|
||||
{
|
||||
organizationId_ = organizationId;
|
||||
setParameter("OrganizationId", organizationId);
|
||||
}
|
||||
|
||||
std::string GetProjectMemberRequest::getSubUserId()const
|
||||
{
|
||||
return subUserId_;
|
||||
}
|
||||
|
||||
void GetProjectMemberRequest::setSubUserId(const std::string& subUserId)
|
||||
{
|
||||
subUserId_ = subUserId;
|
||||
setParameter("SubUserId", subUserId);
|
||||
}
|
||||
|
||||
std::string GetProjectMemberRequest::getAccessToken()const
|
||||
{
|
||||
return accessToken_;
|
||||
}
|
||||
|
||||
void GetProjectMemberRequest::setAccessToken(const std::string& accessToken)
|
||||
{
|
||||
accessToken_ = accessToken;
|
||||
setParameter("AccessToken", accessToken);
|
||||
}
|
||||
|
||||
long GetProjectMemberRequest::getProjectId()const
|
||||
{
|
||||
return projectId_;
|
||||
}
|
||||
|
||||
void GetProjectMemberRequest::setProjectId(long projectId)
|
||||
{
|
||||
projectId_ = projectId;
|
||||
setParameter("ProjectId", std::to_string(projectId));
|
||||
}
|
||||
|
||||
long GetProjectMemberRequest::getUserId()const
|
||||
{
|
||||
return userId_;
|
||||
}
|
||||
|
||||
void GetProjectMemberRequest::setUserId(long userId)
|
||||
{
|
||||
userId_ = userId;
|
||||
setParameter("UserId", std::to_string(userId));
|
||||
}
|
||||
|
||||
81
codeup/src/model/GetProjectMemberResult.cc
Normal file
81
codeup/src/model/GetProjectMemberResult.cc
Normal file
@@ -0,0 +1,81 @@
|
||||
/*
|
||||
* 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/codeup/model/GetProjectMemberResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Codeup;
|
||||
using namespace AlibabaCloud::Codeup::Model;
|
||||
|
||||
GetProjectMemberResult::GetProjectMemberResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
GetProjectMemberResult::GetProjectMemberResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
GetProjectMemberResult::~GetProjectMemberResult()
|
||||
{}
|
||||
|
||||
void GetProjectMemberResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto resultNode = value["Result"];
|
||||
if(!resultNode["Id"].isNull())
|
||||
result_.id = std::stol(resultNode["Id"].asString());
|
||||
if(!resultNode["ExternUserId"].isNull())
|
||||
result_.externUserId = resultNode["ExternUserId"].asString();
|
||||
if(!resultNode["AvatarUrl"].isNull())
|
||||
result_.avatarUrl = resultNode["AvatarUrl"].asString();
|
||||
if(!resultNode["Name"].isNull())
|
||||
result_.name = resultNode["Name"].asString();
|
||||
if(!resultNode["AccessLevel"].isNull())
|
||||
result_.accessLevel = std::stoi(resultNode["AccessLevel"].asString());
|
||||
if(!value["ErrorCode"].isNull())
|
||||
errorCode_ = value["ErrorCode"].asString();
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
if(!value["ErrorMessage"].isNull())
|
||||
errorMessage_ = value["ErrorMessage"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string GetProjectMemberResult::getErrorCode()const
|
||||
{
|
||||
return errorCode_;
|
||||
}
|
||||
|
||||
std::string GetProjectMemberResult::getErrorMessage()const
|
||||
{
|
||||
return errorMessage_;
|
||||
}
|
||||
|
||||
bool GetProjectMemberResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
GetProjectMemberResult::Result GetProjectMemberResult::getResult()const
|
||||
{
|
||||
return result_;
|
||||
}
|
||||
|
||||
63
codeup/src/model/GetRepositoryInfoRequest.cc
Normal file
63
codeup/src/model/GetRepositoryInfoRequest.cc
Normal file
@@ -0,0 +1,63 @@
|
||||
/*
|
||||
* 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/codeup/model/GetRepositoryInfoRequest.h>
|
||||
|
||||
using AlibabaCloud::Codeup::Model::GetRepositoryInfoRequest;
|
||||
|
||||
GetRepositoryInfoRequest::GetRepositoryInfoRequest() :
|
||||
RoaServiceRequest("codeup", "2020-04-14")
|
||||
{
|
||||
setResourcePath("/api/v3/projects/info");
|
||||
setMethod(HttpRequest::Method::Get);
|
||||
}
|
||||
|
||||
GetRepositoryInfoRequest::~GetRepositoryInfoRequest()
|
||||
{}
|
||||
|
||||
std::string GetRepositoryInfoRequest::getOrganizationId()const
|
||||
{
|
||||
return organizationId_;
|
||||
}
|
||||
|
||||
void GetRepositoryInfoRequest::setOrganizationId(const std::string& organizationId)
|
||||
{
|
||||
organizationId_ = organizationId;
|
||||
setParameter("OrganizationId", organizationId);
|
||||
}
|
||||
|
||||
std::string GetRepositoryInfoRequest::getIdentity()const
|
||||
{
|
||||
return identity_;
|
||||
}
|
||||
|
||||
void GetRepositoryInfoRequest::setIdentity(const std::string& identity)
|
||||
{
|
||||
identity_ = identity;
|
||||
setParameter("Identity", identity);
|
||||
}
|
||||
|
||||
std::string GetRepositoryInfoRequest::getAccessToken()const
|
||||
{
|
||||
return accessToken_;
|
||||
}
|
||||
|
||||
void GetRepositoryInfoRequest::setAccessToken(const std::string& accessToken)
|
||||
{
|
||||
accessToken_ = accessToken;
|
||||
setParameter("AccessToken", accessToken);
|
||||
}
|
||||
|
||||
148
codeup/src/model/GetRepositoryInfoResult.cc
Normal file
148
codeup/src/model/GetRepositoryInfoResult.cc
Normal file
@@ -0,0 +1,148 @@
|
||||
/*
|
||||
* 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/codeup/model/GetRepositoryInfoResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Codeup;
|
||||
using namespace AlibabaCloud::Codeup::Model;
|
||||
|
||||
GetRepositoryInfoResult::GetRepositoryInfoResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
GetRepositoryInfoResult::GetRepositoryInfoResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
GetRepositoryInfoResult::~GetRepositoryInfoResult()
|
||||
{}
|
||||
|
||||
void GetRepositoryInfoResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto resultNode = value["Result"];
|
||||
if(!resultNode["Id"].isNull())
|
||||
result_.id = std::stol(resultNode["Id"].asString());
|
||||
if(!resultNode["SshUrlToRepo"].isNull())
|
||||
result_.sshUrlToRepo = resultNode["SshUrlToRepo"].asString();
|
||||
if(!resultNode["Description"].isNull())
|
||||
result_.description = resultNode["Description"].asString();
|
||||
if(!resultNode["DefaultBranch"].isNull())
|
||||
result_.defaultBranch = resultNode["DefaultBranch"].asString();
|
||||
if(!resultNode["Public"].isNull())
|
||||
result_._public = resultNode["Public"].asString() == "true";
|
||||
if(!resultNode["VisibilityLevel"].isNull())
|
||||
result_.visibilityLevel = resultNode["VisibilityLevel"].asString();
|
||||
if(!resultNode["HttpUrlToRepo"].isNull())
|
||||
result_.httpUrlToRepo = resultNode["HttpUrlToRepo"].asString();
|
||||
if(!resultNode["WebUrl"].isNull())
|
||||
result_.webUrl = resultNode["WebUrl"].asString();
|
||||
if(!resultNode["Name"].isNull())
|
||||
result_.name = resultNode["Name"].asString();
|
||||
if(!resultNode["NameWithNamespace"].isNull())
|
||||
result_.nameWithNamespace = resultNode["NameWithNamespace"].asString();
|
||||
if(!resultNode["Path"].isNull())
|
||||
result_.path = resultNode["Path"].asString();
|
||||
if(!resultNode["PathWithNamespace"].isNull())
|
||||
result_.pathWithNamespace = resultNode["PathWithNamespace"].asString();
|
||||
if(!resultNode["CreatedAt"].isNull())
|
||||
result_.createdAt = resultNode["CreatedAt"].asString();
|
||||
if(!resultNode["LastActivityAt"].isNull())
|
||||
result_.lastActivityAt = resultNode["LastActivityAt"].asString();
|
||||
if(!resultNode["CreatorId"].isNull())
|
||||
result_.creatorId = std::stol(resultNode["CreatorId"].asString());
|
||||
if(!resultNode["Archive"].isNull())
|
||||
result_.archive = resultNode["Archive"].asString() == "true";
|
||||
if(!resultNode["AvatarUrl"].isNull())
|
||||
result_.avatarUrl = resultNode["AvatarUrl"].asString();
|
||||
if(!resultNode["DemoProjectStatus"].isNull())
|
||||
result_.demoProjectStatus = resultNode["DemoProjectStatus"].asString() == "true";
|
||||
if(!resultNode["AccessLevel"].isNull())
|
||||
result_.accessLevel = std::stoi(resultNode["AccessLevel"].asString());
|
||||
if(!resultNode["ImportStatus"].isNull())
|
||||
result_.importStatus = resultNode["ImportStatus"].asString();
|
||||
if(!resultNode["ImportUrl"].isNull())
|
||||
result_.importUrl = resultNode["ImportUrl"].asString();
|
||||
if(!resultNode["ImportFromSubversion"].isNull())
|
||||
result_.importFromSubversion = resultNode["ImportFromSubversion"].asString() == "true";
|
||||
auto _namespaceNode = resultNode["Namespace"];
|
||||
if(!_namespaceNode["Id"].isNull())
|
||||
result_._namespace.id = std::stol(_namespaceNode["Id"].asString());
|
||||
if(!_namespaceNode["Name"].isNull())
|
||||
result_._namespace.name = _namespaceNode["Name"].asString();
|
||||
if(!_namespaceNode["Path"].isNull())
|
||||
result_._namespace.path = _namespaceNode["Path"].asString();
|
||||
if(!_namespaceNode["OwnerId"].isNull())
|
||||
result_._namespace.ownerId = std::stol(_namespaceNode["OwnerId"].asString());
|
||||
if(!_namespaceNode["CreatedAt"].isNull())
|
||||
result_._namespace.createdAt = _namespaceNode["CreatedAt"].asString();
|
||||
if(!_namespaceNode["UpdatedAt"].isNull())
|
||||
result_._namespace.updatedAt = _namespaceNode["UpdatedAt"].asString();
|
||||
if(!_namespaceNode["Description"].isNull())
|
||||
result_._namespace.description = _namespaceNode["Description"].asString();
|
||||
if(!_namespaceNode["State"].isNull())
|
||||
result_._namespace.state = _namespaceNode["State"].asString();
|
||||
if(!_namespaceNode["Avatar"].isNull())
|
||||
result_._namespace.avatar = _namespaceNode["Avatar"].asString();
|
||||
if(!_namespaceNode["Public"].isNull())
|
||||
result_._namespace._public = _namespaceNode["Public"].asString() == "true";
|
||||
if(!_namespaceNode["VisibilityLevel"].isNull())
|
||||
result_._namespace.visibilityLevel = _namespaceNode["VisibilityLevel"].asString();
|
||||
auto permissionsNode = resultNode["Permissions"];
|
||||
auto projectAccessNode = permissionsNode["ProjectAccess"];
|
||||
if(!projectAccessNode["AccessLevel"].isNull())
|
||||
result_.permissions.projectAccess.accessLevel = std::stoi(projectAccessNode["AccessLevel"].asString());
|
||||
auto groupAccessNode = permissionsNode["GroupAccess"];
|
||||
if(!groupAccessNode["AccessLevel"].isNull())
|
||||
result_.permissions.groupAccess.accessLevel = std::stoi(groupAccessNode["AccessLevel"].asString());
|
||||
auto allTagList = resultNode["TagList"]["TagList"];
|
||||
for (auto value : allTagList)
|
||||
result_.tagList.push_back(value.asString());
|
||||
if(!value["ErrorCode"].isNull())
|
||||
errorCode_ = std::stoi(value["ErrorCode"].asString());
|
||||
if(!value["ErrorMessage"].isNull())
|
||||
errorMessage_ = value["ErrorMessage"].asString();
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
|
||||
}
|
||||
|
||||
int GetRepositoryInfoResult::getErrorCode()const
|
||||
{
|
||||
return errorCode_;
|
||||
}
|
||||
|
||||
std::string GetRepositoryInfoResult::getErrorMessage()const
|
||||
{
|
||||
return errorMessage_;
|
||||
}
|
||||
|
||||
bool GetRepositoryInfoResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
GetRepositoryInfoResult::Result GetRepositoryInfoResult::getResult()const
|
||||
{
|
||||
return result_;
|
||||
}
|
||||
|
||||
118
codeup/src/model/ListGroupRepositoriesRequest.cc
Normal file
118
codeup/src/model/ListGroupRepositoriesRequest.cc
Normal file
@@ -0,0 +1,118 @@
|
||||
/*
|
||||
* 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/codeup/model/ListGroupRepositoriesRequest.h>
|
||||
|
||||
using AlibabaCloud::Codeup::Model::ListGroupRepositoriesRequest;
|
||||
|
||||
ListGroupRepositoriesRequest::ListGroupRepositoriesRequest() :
|
||||
RoaServiceRequest("codeup", "2020-04-14")
|
||||
{
|
||||
setResourcePath("/api/v3/groups/[Identity]/projects");
|
||||
setMethod(HttpRequest::Method::Get);
|
||||
}
|
||||
|
||||
ListGroupRepositoriesRequest::~ListGroupRepositoriesRequest()
|
||||
{}
|
||||
|
||||
std::string ListGroupRepositoriesRequest::getAccessToken()const
|
||||
{
|
||||
return accessToken_;
|
||||
}
|
||||
|
||||
void ListGroupRepositoriesRequest::setAccessToken(const std::string& accessToken)
|
||||
{
|
||||
accessToken_ = accessToken;
|
||||
setParameter("AccessToken", accessToken);
|
||||
}
|
||||
|
||||
bool ListGroupRepositoriesRequest::getIsMember()const
|
||||
{
|
||||
return isMember_;
|
||||
}
|
||||
|
||||
void ListGroupRepositoriesRequest::setIsMember(bool isMember)
|
||||
{
|
||||
isMember_ = isMember;
|
||||
setParameter("IsMember", isMember ? "true" : "false");
|
||||
}
|
||||
|
||||
std::string ListGroupRepositoriesRequest::getOrganizationId()const
|
||||
{
|
||||
return organizationId_;
|
||||
}
|
||||
|
||||
void ListGroupRepositoriesRequest::setOrganizationId(const std::string& organizationId)
|
||||
{
|
||||
organizationId_ = organizationId;
|
||||
setParameter("OrganizationId", organizationId);
|
||||
}
|
||||
|
||||
std::string ListGroupRepositoriesRequest::getSearch()const
|
||||
{
|
||||
return search_;
|
||||
}
|
||||
|
||||
void ListGroupRepositoriesRequest::setSearch(const std::string& search)
|
||||
{
|
||||
search_ = search;
|
||||
setParameter("Search", search);
|
||||
}
|
||||
|
||||
std::string ListGroupRepositoriesRequest::getSubUserId()const
|
||||
{
|
||||
return subUserId_;
|
||||
}
|
||||
|
||||
void ListGroupRepositoriesRequest::setSubUserId(const std::string& subUserId)
|
||||
{
|
||||
subUserId_ = subUserId;
|
||||
setParameter("SubUserId", subUserId);
|
||||
}
|
||||
|
||||
std::string ListGroupRepositoriesRequest::getIdentity()const
|
||||
{
|
||||
return identity_;
|
||||
}
|
||||
|
||||
void ListGroupRepositoriesRequest::setIdentity(const std::string& identity)
|
||||
{
|
||||
identity_ = identity;
|
||||
setParameter("Identity", identity);
|
||||
}
|
||||
|
||||
long ListGroupRepositoriesRequest::getPageSize()const
|
||||
{
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
void ListGroupRepositoriesRequest::setPageSize(long pageSize)
|
||||
{
|
||||
pageSize_ = pageSize;
|
||||
setParameter("PageSize", std::to_string(pageSize));
|
||||
}
|
||||
|
||||
long ListGroupRepositoriesRequest::getPage()const
|
||||
{
|
||||
return page_;
|
||||
}
|
||||
|
||||
void ListGroupRepositoriesRequest::setPage(long page)
|
||||
{
|
||||
page_ = page;
|
||||
setParameter("Page", std::to_string(page));
|
||||
}
|
||||
|
||||
108
codeup/src/model/ListGroupRepositoriesResult.cc
Normal file
108
codeup/src/model/ListGroupRepositoriesResult.cc
Normal file
@@ -0,0 +1,108 @@
|
||||
/*
|
||||
* 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/codeup/model/ListGroupRepositoriesResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Codeup;
|
||||
using namespace AlibabaCloud::Codeup::Model;
|
||||
|
||||
ListGroupRepositoriesResult::ListGroupRepositoriesResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
ListGroupRepositoriesResult::ListGroupRepositoriesResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
ListGroupRepositoriesResult::~ListGroupRepositoriesResult()
|
||||
{}
|
||||
|
||||
void ListGroupRepositoriesResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allResultNode = value["Result"]["ResultItem"];
|
||||
for (auto valueResultResultItem : allResultNode)
|
||||
{
|
||||
ResultItem resultObject;
|
||||
if(!valueResultResultItem["Archive"].isNull())
|
||||
resultObject.archive = valueResultResultItem["Archive"].asString() == "true";
|
||||
if(!valueResultResultItem["CreatedAt"].isNull())
|
||||
resultObject.createdAt = valueResultResultItem["CreatedAt"].asString();
|
||||
if(!valueResultResultItem["UpdatedAt"].isNull())
|
||||
resultObject.updatedAt = valueResultResultItem["UpdatedAt"].asString();
|
||||
if(!valueResultResultItem["LastActivityAt"].isNull())
|
||||
resultObject.lastActivityAt = valueResultResultItem["LastActivityAt"].asString();
|
||||
if(!valueResultResultItem["Id"].isNull())
|
||||
resultObject.id = std::stol(valueResultResultItem["Id"].asString());
|
||||
if(!valueResultResultItem["CreatorId"].isNull())
|
||||
resultObject.creatorId = std::stol(valueResultResultItem["CreatorId"].asString());
|
||||
if(!valueResultResultItem["Name"].isNull())
|
||||
resultObject.name = valueResultResultItem["Name"].asString();
|
||||
if(!valueResultResultItem["NameWithNamespace"].isNull())
|
||||
resultObject.nameWithNamespace = valueResultResultItem["NameWithNamespace"].asString();
|
||||
if(!valueResultResultItem["Path"].isNull())
|
||||
resultObject.path = valueResultResultItem["Path"].asString();
|
||||
if(!valueResultResultItem["PathWithNamespace"].isNull())
|
||||
resultObject.pathWithNamespace = valueResultResultItem["PathWithNamespace"].asString();
|
||||
if(!valueResultResultItem["NamespaceId"].isNull())
|
||||
resultObject.namespaceId = std::stol(valueResultResultItem["NamespaceId"].asString());
|
||||
if(!valueResultResultItem["HttpCloneUrl"].isNull())
|
||||
resultObject.httpCloneUrl = valueResultResultItem["HttpCloneUrl"].asString();
|
||||
if(!valueResultResultItem["SshCloneUrl"].isNull())
|
||||
resultObject.sshCloneUrl = valueResultResultItem["SshCloneUrl"].asString();
|
||||
if(!valueResultResultItem["VisibilityLevel"].isNull())
|
||||
resultObject.visibilityLevel = std::stoi(valueResultResultItem["VisibilityLevel"].asString());
|
||||
if(!valueResultResultItem["WebUrl"].isNull())
|
||||
resultObject.webUrl = valueResultResultItem["WebUrl"].asString();
|
||||
if(!valueResultResultItem["ImportStatus"].isNull())
|
||||
resultObject.importStatus = valueResultResultItem["ImportStatus"].asString();
|
||||
result_.push_back(resultObject);
|
||||
}
|
||||
if(!value["ErrorCode"].isNull())
|
||||
errorCode_ = value["ErrorCode"].asString();
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
if(!value["ErrorMessage"].isNull())
|
||||
errorMessage_ = value["ErrorMessage"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string ListGroupRepositoriesResult::getErrorCode()const
|
||||
{
|
||||
return errorCode_;
|
||||
}
|
||||
|
||||
std::string ListGroupRepositoriesResult::getErrorMessage()const
|
||||
{
|
||||
return errorMessage_;
|
||||
}
|
||||
|
||||
bool ListGroupRepositoriesResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
std::vector<ListGroupRepositoriesResult::ResultItem> ListGroupRepositoriesResult::getResult()const
|
||||
{
|
||||
return result_;
|
||||
}
|
||||
|
||||
107
codeup/src/model/ListGroupsRequest.cc
Normal file
107
codeup/src/model/ListGroupsRequest.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/codeup/model/ListGroupsRequest.h>
|
||||
|
||||
using AlibabaCloud::Codeup::Model::ListGroupsRequest;
|
||||
|
||||
ListGroupsRequest::ListGroupsRequest() :
|
||||
RoaServiceRequest("codeup", "2020-04-14")
|
||||
{
|
||||
setResourcePath("/api/v3/groups/all");
|
||||
setMethod(HttpRequest::Method::Get);
|
||||
}
|
||||
|
||||
ListGroupsRequest::~ListGroupsRequest()
|
||||
{}
|
||||
|
||||
std::string ListGroupsRequest::getOrganizationId()const
|
||||
{
|
||||
return organizationId_;
|
||||
}
|
||||
|
||||
void ListGroupsRequest::setOrganizationId(const std::string& organizationId)
|
||||
{
|
||||
organizationId_ = organizationId;
|
||||
setParameter("OrganizationId", organizationId);
|
||||
}
|
||||
|
||||
bool ListGroupsRequest::getIncludePersonal()const
|
||||
{
|
||||
return includePersonal_;
|
||||
}
|
||||
|
||||
void ListGroupsRequest::setIncludePersonal(bool includePersonal)
|
||||
{
|
||||
includePersonal_ = includePersonal;
|
||||
setParameter("IncludePersonal", includePersonal ? "true" : "false");
|
||||
}
|
||||
|
||||
std::string ListGroupsRequest::getSearch()const
|
||||
{
|
||||
return search_;
|
||||
}
|
||||
|
||||
void ListGroupsRequest::setSearch(const std::string& search)
|
||||
{
|
||||
search_ = search;
|
||||
setParameter("Search", search);
|
||||
}
|
||||
|
||||
std::string ListGroupsRequest::getSubUserId()const
|
||||
{
|
||||
return subUserId_;
|
||||
}
|
||||
|
||||
void ListGroupsRequest::setSubUserId(const std::string& subUserId)
|
||||
{
|
||||
subUserId_ = subUserId;
|
||||
setParameter("SubUserId", subUserId);
|
||||
}
|
||||
|
||||
long ListGroupsRequest::getPageSize()const
|
||||
{
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
void ListGroupsRequest::setPageSize(long pageSize)
|
||||
{
|
||||
pageSize_ = pageSize;
|
||||
setParameter("PageSize", std::to_string(pageSize));
|
||||
}
|
||||
|
||||
std::string ListGroupsRequest::getAccessToken()const
|
||||
{
|
||||
return accessToken_;
|
||||
}
|
||||
|
||||
void ListGroupsRequest::setAccessToken(const std::string& accessToken)
|
||||
{
|
||||
accessToken_ = accessToken;
|
||||
setParameter("AccessToken", accessToken);
|
||||
}
|
||||
|
||||
long ListGroupsRequest::getPage()const
|
||||
{
|
||||
return page_;
|
||||
}
|
||||
|
||||
void ListGroupsRequest::setPage(long page)
|
||||
{
|
||||
page_ = page;
|
||||
setParameter("Page", std::to_string(page));
|
||||
}
|
||||
|
||||
104
codeup/src/model/ListGroupsResult.cc
Normal file
104
codeup/src/model/ListGroupsResult.cc
Normal file
@@ -0,0 +1,104 @@
|
||||
/*
|
||||
* 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/codeup/model/ListGroupsResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Codeup;
|
||||
using namespace AlibabaCloud::Codeup::Model;
|
||||
|
||||
ListGroupsResult::ListGroupsResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
ListGroupsResult::ListGroupsResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
ListGroupsResult::~ListGroupsResult()
|
||||
{}
|
||||
|
||||
void ListGroupsResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allResultNode = value["Result"]["ResultItem"];
|
||||
for (auto valueResultResultItem : allResultNode)
|
||||
{
|
||||
ResultItem resultObject;
|
||||
if(!valueResultResultItem["Id"].isNull())
|
||||
resultObject.id = std::stol(valueResultResultItem["Id"].asString());
|
||||
if(!valueResultResultItem["CreatedAt"].isNull())
|
||||
resultObject.createdAt = valueResultResultItem["CreatedAt"].asString();
|
||||
if(!valueResultResultItem["UpdatedAt"].isNull())
|
||||
resultObject.updatedAt = valueResultResultItem["UpdatedAt"].asString();
|
||||
if(!valueResultResultItem["AccessLevel"].isNull())
|
||||
resultObject.accessLevel = std::stoi(valueResultResultItem["AccessLevel"].asString());
|
||||
if(!valueResultResultItem["Description"].isNull())
|
||||
resultObject.description = valueResultResultItem["Description"].asString();
|
||||
if(!valueResultResultItem["Name"].isNull())
|
||||
resultObject.name = valueResultResultItem["Name"].asString();
|
||||
if(!valueResultResultItem["NameWithNamespace"].isNull())
|
||||
resultObject.nameWithNamespace = valueResultResultItem["NameWithNamespace"].asString();
|
||||
if(!valueResultResultItem["OwnerId"].isNull())
|
||||
resultObject.ownerId = std::stol(valueResultResultItem["OwnerId"].asString());
|
||||
if(!valueResultResultItem["ParentId"].isNull())
|
||||
resultObject.parentId = std::stol(valueResultResultItem["ParentId"].asString());
|
||||
if(!valueResultResultItem["Path"].isNull())
|
||||
resultObject.path = valueResultResultItem["Path"].asString();
|
||||
if(!valueResultResultItem["PathWithNamespace"].isNull())
|
||||
resultObject.pathWithNamespace = valueResultResultItem["PathWithNamespace"].asString();
|
||||
if(!valueResultResultItem["Type"].isNull())
|
||||
resultObject.type = valueResultResultItem["Type"].asString();
|
||||
if(!valueResultResultItem["VisibilityLevel"].isNull())
|
||||
resultObject.visibilityLevel = valueResultResultItem["VisibilityLevel"].asString();
|
||||
if(!valueResultResultItem["WebUrl"].isNull())
|
||||
resultObject.webUrl = valueResultResultItem["WebUrl"].asString();
|
||||
result_.push_back(resultObject);
|
||||
}
|
||||
if(!value["ErrorCode"].isNull())
|
||||
errorCode_ = value["ErrorCode"].asString();
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
if(!value["ErrorMessage"].isNull())
|
||||
errorMessage_ = value["ErrorMessage"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string ListGroupsResult::getErrorCode()const
|
||||
{
|
||||
return errorCode_;
|
||||
}
|
||||
|
||||
std::string ListGroupsResult::getErrorMessage()const
|
||||
{
|
||||
return errorMessage_;
|
||||
}
|
||||
|
||||
bool ListGroupsResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
std::vector<ListGroupsResult::ResultItem> ListGroupsResult::getResult()const
|
||||
{
|
||||
return result_;
|
||||
}
|
||||
|
||||
85
codeup/src/model/MergeMergeRequestRequest.cc
Normal file
85
codeup/src/model/MergeMergeRequestRequest.cc
Normal file
@@ -0,0 +1,85 @@
|
||||
/*
|
||||
* 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/codeup/model/MergeMergeRequestRequest.h>
|
||||
|
||||
using AlibabaCloud::Codeup::Model::MergeMergeRequestRequest;
|
||||
|
||||
MergeMergeRequestRequest::MergeMergeRequestRequest() :
|
||||
RoaServiceRequest("codeup", "2020-04-14")
|
||||
{
|
||||
setResourcePath("/api/v3/projects/[ProjectId]/merge_request/[MergeRequestId]/merge");
|
||||
setMethod(HttpRequest::Method::Put);
|
||||
}
|
||||
|
||||
MergeMergeRequestRequest::~MergeMergeRequestRequest()
|
||||
{}
|
||||
|
||||
std::string MergeMergeRequestRequest::getOrganizationId()const
|
||||
{
|
||||
return organizationId_;
|
||||
}
|
||||
|
||||
void MergeMergeRequestRequest::setOrganizationId(const std::string& organizationId)
|
||||
{
|
||||
organizationId_ = organizationId;
|
||||
setParameter("OrganizationId", organizationId);
|
||||
}
|
||||
|
||||
std::string MergeMergeRequestRequest::getSubUserId()const
|
||||
{
|
||||
return subUserId_;
|
||||
}
|
||||
|
||||
void MergeMergeRequestRequest::setSubUserId(const std::string& subUserId)
|
||||
{
|
||||
subUserId_ = subUserId;
|
||||
setParameter("SubUserId", subUserId);
|
||||
}
|
||||
|
||||
long MergeMergeRequestRequest::getMergeRequestId()const
|
||||
{
|
||||
return mergeRequestId_;
|
||||
}
|
||||
|
||||
void MergeMergeRequestRequest::setMergeRequestId(long mergeRequestId)
|
||||
{
|
||||
mergeRequestId_ = mergeRequestId;
|
||||
setParameter("MergeRequestId", std::to_string(mergeRequestId));
|
||||
}
|
||||
|
||||
std::string MergeMergeRequestRequest::getAccessToken()const
|
||||
{
|
||||
return accessToken_;
|
||||
}
|
||||
|
||||
void MergeMergeRequestRequest::setAccessToken(const std::string& accessToken)
|
||||
{
|
||||
accessToken_ = accessToken;
|
||||
setParameter("AccessToken", accessToken);
|
||||
}
|
||||
|
||||
long MergeMergeRequestRequest::getProjectId()const
|
||||
{
|
||||
return projectId_;
|
||||
}
|
||||
|
||||
void MergeMergeRequestRequest::setProjectId(long projectId)
|
||||
{
|
||||
projectId_ = projectId;
|
||||
setParameter("ProjectId", std::to_string(projectId));
|
||||
}
|
||||
|
||||
197
codeup/src/model/MergeMergeRequestResult.cc
Normal file
197
codeup/src/model/MergeMergeRequestResult.cc
Normal file
@@ -0,0 +1,197 @@
|
||||
/*
|
||||
* 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/codeup/model/MergeMergeRequestResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Codeup;
|
||||
using namespace AlibabaCloud::Codeup::Model;
|
||||
|
||||
MergeMergeRequestResult::MergeMergeRequestResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
MergeMergeRequestResult::MergeMergeRequestResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
MergeMergeRequestResult::~MergeMergeRequestResult()
|
||||
{}
|
||||
|
||||
void MergeMergeRequestResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto resultNode = value["Result"];
|
||||
if(!resultNode["Id"].isNull())
|
||||
result_.id = std::stol(resultNode["Id"].asString());
|
||||
if(!resultNode["ProjectId"].isNull())
|
||||
result_.projectId = std::stol(resultNode["ProjectId"].asString());
|
||||
if(!resultNode["Title"].isNull())
|
||||
result_.title = resultNode["Title"].asString();
|
||||
if(!resultNode["Description"].isNull())
|
||||
result_.description = resultNode["Description"].asString();
|
||||
if(!resultNode["State"].isNull())
|
||||
result_.state = resultNode["State"].asString();
|
||||
if(!resultNode["MergeStatus"].isNull())
|
||||
result_.mergeStatus = resultNode["MergeStatus"].asString();
|
||||
if(!resultNode["CreatedAt"].isNull())
|
||||
result_.createdAt = resultNode["CreatedAt"].asString();
|
||||
if(!resultNode["UpdatedAt"].isNull())
|
||||
result_.updatedAt = resultNode["UpdatedAt"].asString();
|
||||
if(!resultNode["TargetBranch"].isNull())
|
||||
result_.targetBranch = resultNode["TargetBranch"].asString();
|
||||
if(!resultNode["SourceBranch"].isNull())
|
||||
result_.sourceBranch = resultNode["SourceBranch"].asString();
|
||||
if(!resultNode["WebUrl"].isNull())
|
||||
result_.webUrl = resultNode["WebUrl"].asString();
|
||||
if(!resultNode["AcceptedRevision"].isNull())
|
||||
result_.acceptedRevision = resultNode["AcceptedRevision"].asString();
|
||||
if(!resultNode["MergeError"].isNull())
|
||||
result_.mergeError = resultNode["MergeError"].asString();
|
||||
if(!resultNode["MergedRevision"].isNull())
|
||||
result_.mergedRevision = resultNode["MergedRevision"].asString();
|
||||
if(!resultNode["NameWithNamespace"].isNull())
|
||||
result_.nameWithNamespace = resultNode["NameWithNamespace"].asString();
|
||||
if(!resultNode["MergeType"].isNull())
|
||||
result_.mergeType = resultNode["MergeType"].asString();
|
||||
if(!resultNode["AheadCommitCount"].isNull())
|
||||
result_.aheadCommitCount = std::stoi(resultNode["AheadCommitCount"].asString());
|
||||
if(!resultNode["BehindCommitCount"].isNull())
|
||||
result_.behindCommitCount = std::stoi(resultNode["BehindCommitCount"].asString());
|
||||
auto allAssigneeListNode = resultNode["AssigneeList"]["AssigneeListItem"];
|
||||
for (auto resultNodeAssigneeListAssigneeListItem : allAssigneeListNode)
|
||||
{
|
||||
Result::AssigneeListItem assigneeListItemObject;
|
||||
if(!resultNodeAssigneeListAssigneeListItem["Id"].isNull())
|
||||
assigneeListItemObject.id = resultNodeAssigneeListAssigneeListItem["Id"].asString();
|
||||
if(!resultNodeAssigneeListAssigneeListItem["ExternUserId"].isNull())
|
||||
assigneeListItemObject.externUserId = resultNodeAssigneeListAssigneeListItem["ExternUserId"].asString();
|
||||
if(!resultNodeAssigneeListAssigneeListItem["AvatarUrl"].isNull())
|
||||
assigneeListItemObject.avatarUrl = resultNodeAssigneeListAssigneeListItem["AvatarUrl"].asString();
|
||||
if(!resultNodeAssigneeListAssigneeListItem["Name"].isNull())
|
||||
assigneeListItemObject.name = resultNodeAssigneeListAssigneeListItem["Name"].asString();
|
||||
result_.assigneeList.push_back(assigneeListItemObject);
|
||||
}
|
||||
auto authorNode = resultNode["Author"];
|
||||
if(!authorNode["Id"].isNull())
|
||||
result_.author.id = std::stol(authorNode["Id"].asString());
|
||||
if(!authorNode["ExternUserId"].isNull())
|
||||
result_.author.externUserId = authorNode["ExternUserId"].asString();
|
||||
if(!authorNode["AvatarUrl"].isNull())
|
||||
result_.author.avatarUrl = authorNode["AvatarUrl"].asString();
|
||||
if(!authorNode["Name"].isNull())
|
||||
result_.author.name = authorNode["Name"].asString();
|
||||
auto approveCheckResultNode = resultNode["ApproveCheckResult"];
|
||||
if(!approveCheckResultNode["TotalCheckResult"].isNull())
|
||||
result_.approveCheckResult.totalCheckResult = approveCheckResultNode["TotalCheckResult"].asString();
|
||||
auto allSatisfiedCheckResultsNode = approveCheckResultNode["SatisfiedCheckResults"]["SatisfiedCheckResultsItem"];
|
||||
for (auto approveCheckResultNodeSatisfiedCheckResultsSatisfiedCheckResultsItem : allSatisfiedCheckResultsNode)
|
||||
{
|
||||
Result::ApproveCheckResult::SatisfiedCheckResultsItem satisfiedCheckResultsItemObject;
|
||||
if(!approveCheckResultNodeSatisfiedCheckResultsSatisfiedCheckResultsItem["CheckStatus"].isNull())
|
||||
satisfiedCheckResultsItemObject.checkStatus = approveCheckResultNodeSatisfiedCheckResultsSatisfiedCheckResultsItem["CheckStatus"].asString();
|
||||
if(!approveCheckResultNodeSatisfiedCheckResultsSatisfiedCheckResultsItem["CheckName"].isNull())
|
||||
satisfiedCheckResultsItemObject.checkName = approveCheckResultNodeSatisfiedCheckResultsSatisfiedCheckResultsItem["CheckName"].asString();
|
||||
if(!approveCheckResultNodeSatisfiedCheckResultsSatisfiedCheckResultsItem["CheckType"].isNull())
|
||||
satisfiedCheckResultsItemObject.checkType = approveCheckResultNodeSatisfiedCheckResultsSatisfiedCheckResultsItem["CheckType"].asString();
|
||||
auto allExtraUsersNode = allSatisfiedCheckResultsNode["ExtraUsers"]["ExtraUsersItem"];
|
||||
for (auto allSatisfiedCheckResultsNodeExtraUsersExtraUsersItem : allExtraUsersNode)
|
||||
{
|
||||
Result::ApproveCheckResult::SatisfiedCheckResultsItem::ExtraUsersItem extraUsersObject;
|
||||
if(!allSatisfiedCheckResultsNodeExtraUsersExtraUsersItem["Id"].isNull())
|
||||
extraUsersObject.id = std::stol(allSatisfiedCheckResultsNodeExtraUsersExtraUsersItem["Id"].asString());
|
||||
if(!allSatisfiedCheckResultsNodeExtraUsersExtraUsersItem["ExternUserId"].isNull())
|
||||
extraUsersObject.externUserId = allSatisfiedCheckResultsNodeExtraUsersExtraUsersItem["ExternUserId"].asString();
|
||||
if(!allSatisfiedCheckResultsNodeExtraUsersExtraUsersItem["AvatarUrl"].isNull())
|
||||
extraUsersObject.avatarUrl = allSatisfiedCheckResultsNodeExtraUsersExtraUsersItem["AvatarUrl"].asString();
|
||||
if(!allSatisfiedCheckResultsNodeExtraUsersExtraUsersItem["Name"].isNull())
|
||||
extraUsersObject.name = allSatisfiedCheckResultsNodeExtraUsersExtraUsersItem["Name"].asString();
|
||||
satisfiedCheckResultsItemObject.extraUsers.push_back(extraUsersObject);
|
||||
}
|
||||
auto allSatisfiedItems = value["SatisfiedItems"]["SatisfiedItems"];
|
||||
for (auto value : allSatisfiedItems)
|
||||
satisfiedCheckResultsItemObject.satisfiedItems.push_back(value.asString());
|
||||
auto allUnsatisfiedItems = value["UnsatisfiedItems"]["UnsatisfiedItems"];
|
||||
for (auto value : allUnsatisfiedItems)
|
||||
satisfiedCheckResultsItemObject.unsatisfiedItems.push_back(value.asString());
|
||||
result_.approveCheckResult.satisfiedCheckResults.push_back(satisfiedCheckResultsItemObject);
|
||||
}
|
||||
auto allUnsatisfiedCheckResultsNode = approveCheckResultNode["UnsatisfiedCheckResults"]["UnsatisfiedCheckResultsItem"];
|
||||
for (auto approveCheckResultNodeUnsatisfiedCheckResultsUnsatisfiedCheckResultsItem : allUnsatisfiedCheckResultsNode)
|
||||
{
|
||||
Result::ApproveCheckResult::UnsatisfiedCheckResultsItem unsatisfiedCheckResultsItemObject;
|
||||
if(!approveCheckResultNodeUnsatisfiedCheckResultsUnsatisfiedCheckResultsItem["CheckStatus"].isNull())
|
||||
unsatisfiedCheckResultsItemObject.checkStatus = approveCheckResultNodeUnsatisfiedCheckResultsUnsatisfiedCheckResultsItem["CheckStatus"].asString();
|
||||
if(!approveCheckResultNodeUnsatisfiedCheckResultsUnsatisfiedCheckResultsItem["CheckName"].isNull())
|
||||
unsatisfiedCheckResultsItemObject.checkName = approveCheckResultNodeUnsatisfiedCheckResultsUnsatisfiedCheckResultsItem["CheckName"].asString();
|
||||
if(!approveCheckResultNodeUnsatisfiedCheckResultsUnsatisfiedCheckResultsItem["CheckType"].isNull())
|
||||
unsatisfiedCheckResultsItemObject.checkType = approveCheckResultNodeUnsatisfiedCheckResultsUnsatisfiedCheckResultsItem["CheckType"].asString();
|
||||
auto allExtraUsers3Node = allUnsatisfiedCheckResultsNode["ExtraUsers"]["ExtraUsersItem"];
|
||||
for (auto allUnsatisfiedCheckResultsNodeExtraUsersExtraUsersItem : allExtraUsers3Node)
|
||||
{
|
||||
Result::ApproveCheckResult::UnsatisfiedCheckResultsItem::ExtraUsersItem4 extraUsers3Object;
|
||||
if(!allUnsatisfiedCheckResultsNodeExtraUsersExtraUsersItem["Id"].isNull())
|
||||
extraUsers3Object.id = std::stol(allUnsatisfiedCheckResultsNodeExtraUsersExtraUsersItem["Id"].asString());
|
||||
if(!allUnsatisfiedCheckResultsNodeExtraUsersExtraUsersItem["ExternUserId"].isNull())
|
||||
extraUsers3Object.externUserId = allUnsatisfiedCheckResultsNodeExtraUsersExtraUsersItem["ExternUserId"].asString();
|
||||
if(!allUnsatisfiedCheckResultsNodeExtraUsersExtraUsersItem["AvatarUrl"].isNull())
|
||||
extraUsers3Object.avatarUrl = allUnsatisfiedCheckResultsNodeExtraUsersExtraUsersItem["AvatarUrl"].asString();
|
||||
if(!allUnsatisfiedCheckResultsNodeExtraUsersExtraUsersItem["Name"].isNull())
|
||||
extraUsers3Object.name = allUnsatisfiedCheckResultsNodeExtraUsersExtraUsersItem["Name"].asString();
|
||||
unsatisfiedCheckResultsItemObject.extraUsers3.push_back(extraUsers3Object);
|
||||
}
|
||||
auto allSatisfiedItems1 = value["SatisfiedItems"]["SatisfiedItems"];
|
||||
for (auto value : allSatisfiedItems1)
|
||||
unsatisfiedCheckResultsItemObject.satisfiedItems1.push_back(value.asString());
|
||||
auto allUnsatisfiedItems2 = value["UnsatisfiedItems"]["UnsatisfiedItems"];
|
||||
for (auto value : allUnsatisfiedItems2)
|
||||
unsatisfiedCheckResultsItemObject.unsatisfiedItems2.push_back(value.asString());
|
||||
result_.approveCheckResult.unsatisfiedCheckResults.push_back(unsatisfiedCheckResultsItemObject);
|
||||
}
|
||||
if(!value["ErrorCode"].isNull())
|
||||
errorCode_ = value["ErrorCode"].asString();
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
if(!value["ErrorMessage"].isNull())
|
||||
errorMessage_ = value["ErrorMessage"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string MergeMergeRequestResult::getErrorCode()const
|
||||
{
|
||||
return errorCode_;
|
||||
}
|
||||
|
||||
std::string MergeMergeRequestResult::getErrorMessage()const
|
||||
{
|
||||
return errorMessage_;
|
||||
}
|
||||
|
||||
bool MergeMergeRequestResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
MergeMergeRequestResult::Result MergeMergeRequestResult::getResult()const
|
||||
{
|
||||
return result_;
|
||||
}
|
||||
|
||||
@@ -97,6 +97,8 @@ set(devops-rdc_public_header_model
|
||||
include/alibabacloud/devops-rdc/model/ListPipelinesResult.h
|
||||
include/alibabacloud/devops-rdc/model/ListServiceConnectionsRequest.h
|
||||
include/alibabacloud/devops-rdc/model/ListServiceConnectionsResult.h
|
||||
include/alibabacloud/devops-rdc/model/ListUserOrganizationRequest.h
|
||||
include/alibabacloud/devops-rdc/model/ListUserOrganizationResult.h
|
||||
include/alibabacloud/devops-rdc/model/UpdateDevopsProjectRequest.h
|
||||
include/alibabacloud/devops-rdc/model/UpdateDevopsProjectResult.h
|
||||
include/alibabacloud/devops-rdc/model/UpdateDevopsProjectSprintRequest.h
|
||||
@@ -182,6 +184,8 @@ set(devops-rdc_src
|
||||
src/model/ListPipelinesResult.cc
|
||||
src/model/ListServiceConnectionsRequest.cc
|
||||
src/model/ListServiceConnectionsResult.cc
|
||||
src/model/ListUserOrganizationRequest.cc
|
||||
src/model/ListUserOrganizationResult.cc
|
||||
src/model/UpdateDevopsProjectRequest.cc
|
||||
src/model/UpdateDevopsProjectResult.cc
|
||||
src/model/UpdateDevopsProjectSprintRequest.cc
|
||||
|
||||
@@ -98,6 +98,8 @@
|
||||
#include "model/ListPipelinesResult.h"
|
||||
#include "model/ListServiceConnectionsRequest.h"
|
||||
#include "model/ListServiceConnectionsResult.h"
|
||||
#include "model/ListUserOrganizationRequest.h"
|
||||
#include "model/ListUserOrganizationResult.h"
|
||||
#include "model/UpdateDevopsProjectRequest.h"
|
||||
#include "model/UpdateDevopsProjectResult.h"
|
||||
#include "model/UpdateDevopsProjectSprintRequest.h"
|
||||
@@ -227,6 +229,9 @@ namespace AlibabaCloud
|
||||
typedef Outcome<Error, Model::ListServiceConnectionsResult> ListServiceConnectionsOutcome;
|
||||
typedef std::future<ListServiceConnectionsOutcome> ListServiceConnectionsOutcomeCallable;
|
||||
typedef std::function<void(const Devops_rdcClient*, const Model::ListServiceConnectionsRequest&, const ListServiceConnectionsOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ListServiceConnectionsAsyncHandler;
|
||||
typedef Outcome<Error, Model::ListUserOrganizationResult> ListUserOrganizationOutcome;
|
||||
typedef std::future<ListUserOrganizationOutcome> ListUserOrganizationOutcomeCallable;
|
||||
typedef std::function<void(const Devops_rdcClient*, const Model::ListUserOrganizationRequest&, const ListUserOrganizationOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ListUserOrganizationAsyncHandler;
|
||||
typedef Outcome<Error, Model::UpdateDevopsProjectResult> UpdateDevopsProjectOutcome;
|
||||
typedef std::future<UpdateDevopsProjectOutcome> UpdateDevopsProjectOutcomeCallable;
|
||||
typedef std::function<void(const Devops_rdcClient*, const Model::UpdateDevopsProjectRequest&, const UpdateDevopsProjectOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> UpdateDevopsProjectAsyncHandler;
|
||||
@@ -355,6 +360,9 @@ namespace AlibabaCloud
|
||||
ListServiceConnectionsOutcome listServiceConnections(const Model::ListServiceConnectionsRequest &request)const;
|
||||
void listServiceConnectionsAsync(const Model::ListServiceConnectionsRequest& request, const ListServiceConnectionsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
ListServiceConnectionsOutcomeCallable listServiceConnectionsCallable(const Model::ListServiceConnectionsRequest& request) const;
|
||||
ListUserOrganizationOutcome listUserOrganization(const Model::ListUserOrganizationRequest &request)const;
|
||||
void listUserOrganizationAsync(const Model::ListUserOrganizationRequest& request, const ListUserOrganizationAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
ListUserOrganizationOutcomeCallable listUserOrganizationCallable(const Model::ListUserOrganizationRequest& request) const;
|
||||
UpdateDevopsProjectOutcome updateDevopsProject(const Model::UpdateDevopsProjectRequest &request)const;
|
||||
void updateDevopsProjectAsync(const Model::UpdateDevopsProjectRequest& request, const UpdateDevopsProjectAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
UpdateDevopsProjectOutcomeCallable updateDevopsProjectCallable(const Model::UpdateDevopsProjectRequest& request) const;
|
||||
|
||||
@@ -0,0 +1,48 @@
|
||||
/*
|
||||
* 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_DEVOPS_RDC_MODEL_LISTUSERORGANIZATIONREQUEST_H_
|
||||
#define ALIBABACLOUD_DEVOPS_RDC_MODEL_LISTUSERORGANIZATIONREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/devops-rdc/Devops_rdcExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Devops_rdc
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_DEVOPS_RDC_EXPORT ListUserOrganizationRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
ListUserOrganizationRequest();
|
||||
~ListUserOrganizationRequest();
|
||||
|
||||
std::string getRealPk()const;
|
||||
void setRealPk(const std::string& realPk);
|
||||
|
||||
private:
|
||||
std::string realPk_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_DEVOPS_RDC_MODEL_LISTUSERORGANIZATIONREQUEST_H_
|
||||
@@ -0,0 +1,57 @@
|
||||
/*
|
||||
* 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_DEVOPS_RDC_MODEL_LISTUSERORGANIZATIONRESULT_H_
|
||||
#define ALIBABACLOUD_DEVOPS_RDC_MODEL_LISTUSERORGANIZATIONRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/devops-rdc/Devops_rdcExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Devops_rdc
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_DEVOPS_RDC_EXPORT ListUserOrganizationResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
|
||||
|
||||
ListUserOrganizationResult();
|
||||
explicit ListUserOrganizationResult(const std::string &payload);
|
||||
~ListUserOrganizationResult();
|
||||
std::string getObject()const;
|
||||
std::string getErrorCode()const;
|
||||
std::string getErrorMessage()const;
|
||||
bool getSuccess()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::string object_;
|
||||
std::string errorCode_;
|
||||
std::string errorMessage_;
|
||||
bool success_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_DEVOPS_RDC_MODEL_LISTUSERORGANIZATIONRESULT_H_
|
||||
@@ -1419,6 +1419,42 @@ Devops_rdcClient::ListServiceConnectionsOutcomeCallable Devops_rdcClient::listSe
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
Devops_rdcClient::ListUserOrganizationOutcome Devops_rdcClient::listUserOrganization(const ListUserOrganizationRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return ListUserOrganizationOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return ListUserOrganizationOutcome(ListUserOrganizationResult(outcome.result()));
|
||||
else
|
||||
return ListUserOrganizationOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void Devops_rdcClient::listUserOrganizationAsync(const ListUserOrganizationRequest& request, const ListUserOrganizationAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, listUserOrganization(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
Devops_rdcClient::ListUserOrganizationOutcomeCallable Devops_rdcClient::listUserOrganizationCallable(const ListUserOrganizationRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<ListUserOrganizationOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->listUserOrganization(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
Devops_rdcClient::UpdateDevopsProjectOutcome Devops_rdcClient::updateDevopsProject(const UpdateDevopsProjectRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
|
||||
40
devops-rdc/src/model/ListUserOrganizationRequest.cc
Normal file
40
devops-rdc/src/model/ListUserOrganizationRequest.cc
Normal file
@@ -0,0 +1,40 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/devops-rdc/model/ListUserOrganizationRequest.h>
|
||||
|
||||
using AlibabaCloud::Devops_rdc::Model::ListUserOrganizationRequest;
|
||||
|
||||
ListUserOrganizationRequest::ListUserOrganizationRequest() :
|
||||
RpcServiceRequest("devops-rdc", "2020-03-03", "ListUserOrganization")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
ListUserOrganizationRequest::~ListUserOrganizationRequest()
|
||||
{}
|
||||
|
||||
std::string ListUserOrganizationRequest::getRealPk()const
|
||||
{
|
||||
return realPk_;
|
||||
}
|
||||
|
||||
void ListUserOrganizationRequest::setRealPk(const std::string& realPk)
|
||||
{
|
||||
realPk_ = realPk;
|
||||
setBodyParameter("RealPk", realPk);
|
||||
}
|
||||
|
||||
72
devops-rdc/src/model/ListUserOrganizationResult.cc
Normal file
72
devops-rdc/src/model/ListUserOrganizationResult.cc
Normal 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.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/devops-rdc/model/ListUserOrganizationResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Devops_rdc;
|
||||
using namespace AlibabaCloud::Devops_rdc::Model;
|
||||
|
||||
ListUserOrganizationResult::ListUserOrganizationResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
ListUserOrganizationResult::ListUserOrganizationResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
ListUserOrganizationResult::~ListUserOrganizationResult()
|
||||
{}
|
||||
|
||||
void ListUserOrganizationResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["ErrorCode"].isNull())
|
||||
errorCode_ = value["ErrorCode"].asString();
|
||||
if(!value["ErrorMessage"].isNull())
|
||||
errorMessage_ = value["ErrorMessage"].asString();
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
if(!value["Object"].isNull())
|
||||
object_ = value["Object"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string ListUserOrganizationResult::getObject()const
|
||||
{
|
||||
return object_;
|
||||
}
|
||||
|
||||
std::string ListUserOrganizationResult::getErrorCode()const
|
||||
{
|
||||
return errorCode_;
|
||||
}
|
||||
|
||||
std::string ListUserOrganizationResult::getErrorMessage()const
|
||||
{
|
||||
return errorMessage_;
|
||||
}
|
||||
|
||||
bool ListUserOrganizationResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
@@ -37,6 +37,8 @@ namespace AlibabaCloud
|
||||
|
||||
std::string getApprovalType()const;
|
||||
void setApprovalType(const std::string& approvalType);
|
||||
std::string getComment()const;
|
||||
void setComment(const std::string& comment);
|
||||
long getTid()const;
|
||||
void setTid(long tid);
|
||||
long getWorkflowInstanceId()const;
|
||||
@@ -44,6 +46,7 @@ namespace AlibabaCloud
|
||||
|
||||
private:
|
||||
std::string approvalType_;
|
||||
std::string comment_;
|
||||
long tid_;
|
||||
long workflowInstanceId_;
|
||||
|
||||
|
||||
@@ -38,6 +38,17 @@ void ApproveOrderRequest::setApprovalType(const std::string& approvalType)
|
||||
setParameter("ApprovalType", approvalType);
|
||||
}
|
||||
|
||||
std::string ApproveOrderRequest::getComment()const
|
||||
{
|
||||
return comment_;
|
||||
}
|
||||
|
||||
void ApproveOrderRequest::setComment(const std::string& comment)
|
||||
{
|
||||
comment_ = comment;
|
||||
setParameter("Comment", comment);
|
||||
}
|
||||
|
||||
long ApproveOrderRequest::getTid()const
|
||||
{
|
||||
return tid_;
|
||||
|
||||
@@ -49,8 +49,6 @@ set(facebody_public_header_model
|
||||
include/alibabacloud/facebody/model/DetectFaceResult.h
|
||||
include/alibabacloud/facebody/model/DetectIPCPedestrianRequest.h
|
||||
include/alibabacloud/facebody/model/DetectIPCPedestrianResult.h
|
||||
include/alibabacloud/facebody/model/DetectIPCPedestrianOptimizedRequest.h
|
||||
include/alibabacloud/facebody/model/DetectIPCPedestrianOptimizedResult.h
|
||||
include/alibabacloud/facebody/model/DetectLivingFaceRequest.h
|
||||
include/alibabacloud/facebody/model/DetectLivingFaceResult.h
|
||||
include/alibabacloud/facebody/model/DetectMaskRequest.h
|
||||
@@ -81,6 +79,8 @@ set(facebody_public_header_model
|
||||
include/alibabacloud/facebody/model/ListFaceDbsResult.h
|
||||
include/alibabacloud/facebody/model/ListFaceEntitiesRequest.h
|
||||
include/alibabacloud/facebody/model/ListFaceEntitiesResult.h
|
||||
include/alibabacloud/facebody/model/PedestrianDetectAttributeRequest.h
|
||||
include/alibabacloud/facebody/model/PedestrianDetectAttributeResult.h
|
||||
include/alibabacloud/facebody/model/RecognizeActionRequest.h
|
||||
include/alibabacloud/facebody/model/RecognizeActionResult.h
|
||||
include/alibabacloud/facebody/model/RecognizeExpressionRequest.h
|
||||
@@ -128,8 +128,6 @@ set(facebody_src
|
||||
src/model/DetectFaceResult.cc
|
||||
src/model/DetectIPCPedestrianRequest.cc
|
||||
src/model/DetectIPCPedestrianResult.cc
|
||||
src/model/DetectIPCPedestrianOptimizedRequest.cc
|
||||
src/model/DetectIPCPedestrianOptimizedResult.cc
|
||||
src/model/DetectLivingFaceRequest.cc
|
||||
src/model/DetectLivingFaceResult.cc
|
||||
src/model/DetectMaskRequest.cc
|
||||
@@ -160,6 +158,8 @@ set(facebody_src
|
||||
src/model/ListFaceDbsResult.cc
|
||||
src/model/ListFaceEntitiesRequest.cc
|
||||
src/model/ListFaceEntitiesResult.cc
|
||||
src/model/PedestrianDetectAttributeRequest.cc
|
||||
src/model/PedestrianDetectAttributeResult.cc
|
||||
src/model/RecognizeActionRequest.cc
|
||||
src/model/RecognizeActionResult.cc
|
||||
src/model/RecognizeExpressionRequest.cc
|
||||
|
||||
@@ -50,8 +50,6 @@
|
||||
#include "model/DetectFaceResult.h"
|
||||
#include "model/DetectIPCPedestrianRequest.h"
|
||||
#include "model/DetectIPCPedestrianResult.h"
|
||||
#include "model/DetectIPCPedestrianOptimizedRequest.h"
|
||||
#include "model/DetectIPCPedestrianOptimizedResult.h"
|
||||
#include "model/DetectLivingFaceRequest.h"
|
||||
#include "model/DetectLivingFaceResult.h"
|
||||
#include "model/DetectMaskRequest.h"
|
||||
@@ -82,6 +80,8 @@
|
||||
#include "model/ListFaceDbsResult.h"
|
||||
#include "model/ListFaceEntitiesRequest.h"
|
||||
#include "model/ListFaceEntitiesResult.h"
|
||||
#include "model/PedestrianDetectAttributeRequest.h"
|
||||
#include "model/PedestrianDetectAttributeResult.h"
|
||||
#include "model/RecognizeActionRequest.h"
|
||||
#include "model/RecognizeActionResult.h"
|
||||
#include "model/RecognizeExpressionRequest.h"
|
||||
@@ -149,9 +149,6 @@ namespace AlibabaCloud
|
||||
typedef Outcome<Error, Model::DetectIPCPedestrianResult> DetectIPCPedestrianOutcome;
|
||||
typedef std::future<DetectIPCPedestrianOutcome> DetectIPCPedestrianOutcomeCallable;
|
||||
typedef std::function<void(const FacebodyClient*, const Model::DetectIPCPedestrianRequest&, const DetectIPCPedestrianOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DetectIPCPedestrianAsyncHandler;
|
||||
typedef Outcome<Error, Model::DetectIPCPedestrianOptimizedResult> DetectIPCPedestrianOptimizedOutcome;
|
||||
typedef std::future<DetectIPCPedestrianOptimizedOutcome> DetectIPCPedestrianOptimizedOutcomeCallable;
|
||||
typedef std::function<void(const FacebodyClient*, const Model::DetectIPCPedestrianOptimizedRequest&, const DetectIPCPedestrianOptimizedOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DetectIPCPedestrianOptimizedAsyncHandler;
|
||||
typedef Outcome<Error, Model::DetectLivingFaceResult> DetectLivingFaceOutcome;
|
||||
typedef std::future<DetectLivingFaceOutcome> DetectLivingFaceOutcomeCallable;
|
||||
typedef std::function<void(const FacebodyClient*, const Model::DetectLivingFaceRequest&, const DetectLivingFaceOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DetectLivingFaceAsyncHandler;
|
||||
@@ -197,6 +194,9 @@ namespace AlibabaCloud
|
||||
typedef Outcome<Error, Model::ListFaceEntitiesResult> ListFaceEntitiesOutcome;
|
||||
typedef std::future<ListFaceEntitiesOutcome> ListFaceEntitiesOutcomeCallable;
|
||||
typedef std::function<void(const FacebodyClient*, const Model::ListFaceEntitiesRequest&, const ListFaceEntitiesOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ListFaceEntitiesAsyncHandler;
|
||||
typedef Outcome<Error, Model::PedestrianDetectAttributeResult> PedestrianDetectAttributeOutcome;
|
||||
typedef std::future<PedestrianDetectAttributeOutcome> PedestrianDetectAttributeOutcomeCallable;
|
||||
typedef std::function<void(const FacebodyClient*, const Model::PedestrianDetectAttributeRequest&, const PedestrianDetectAttributeOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> PedestrianDetectAttributeAsyncHandler;
|
||||
typedef Outcome<Error, Model::RecognizeActionResult> RecognizeActionOutcome;
|
||||
typedef std::future<RecognizeActionOutcome> RecognizeActionOutcomeCallable;
|
||||
typedef std::function<void(const FacebodyClient*, const Model::RecognizeActionRequest&, const RecognizeActionOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> RecognizeActionAsyncHandler;
|
||||
@@ -268,9 +268,6 @@ namespace AlibabaCloud
|
||||
DetectIPCPedestrianOutcome detectIPCPedestrian(const Model::DetectIPCPedestrianRequest &request)const;
|
||||
void detectIPCPedestrianAsync(const Model::DetectIPCPedestrianRequest& request, const DetectIPCPedestrianAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DetectIPCPedestrianOutcomeCallable detectIPCPedestrianCallable(const Model::DetectIPCPedestrianRequest& request) const;
|
||||
DetectIPCPedestrianOptimizedOutcome detectIPCPedestrianOptimized(const Model::DetectIPCPedestrianOptimizedRequest &request)const;
|
||||
void detectIPCPedestrianOptimizedAsync(const Model::DetectIPCPedestrianOptimizedRequest& request, const DetectIPCPedestrianOptimizedAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DetectIPCPedestrianOptimizedOutcomeCallable detectIPCPedestrianOptimizedCallable(const Model::DetectIPCPedestrianOptimizedRequest& request) const;
|
||||
DetectLivingFaceOutcome detectLivingFace(const Model::DetectLivingFaceRequest &request)const;
|
||||
void detectLivingFaceAsync(const Model::DetectLivingFaceRequest& request, const DetectLivingFaceAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DetectLivingFaceOutcomeCallable detectLivingFaceCallable(const Model::DetectLivingFaceRequest& request) const;
|
||||
@@ -316,6 +313,9 @@ namespace AlibabaCloud
|
||||
ListFaceEntitiesOutcome listFaceEntities(const Model::ListFaceEntitiesRequest &request)const;
|
||||
void listFaceEntitiesAsync(const Model::ListFaceEntitiesRequest& request, const ListFaceEntitiesAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
ListFaceEntitiesOutcomeCallable listFaceEntitiesCallable(const Model::ListFaceEntitiesRequest& request) const;
|
||||
PedestrianDetectAttributeOutcome pedestrianDetectAttribute(const Model::PedestrianDetectAttributeRequest &request)const;
|
||||
void pedestrianDetectAttributeAsync(const Model::PedestrianDetectAttributeRequest& request, const PedestrianDetectAttributeAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
PedestrianDetectAttributeOutcomeCallable pedestrianDetectAttributeCallable(const Model::PedestrianDetectAttributeRequest& request) const;
|
||||
RecognizeActionOutcome recognizeAction(const Model::RecognizeActionRequest &request)const;
|
||||
void recognizeActionAsync(const Model::RecognizeActionRequest& request, const RecognizeActionAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
RecognizeActionOutcomeCallable recognizeActionCallable(const Model::RecognizeActionRequest& request) const;
|
||||
|
||||
@@ -35,10 +35,13 @@ namespace AlibabaCloud
|
||||
ExtractPedestrianFeatureAttributeRequest();
|
||||
~ExtractPedestrianFeatureAttributeRequest();
|
||||
|
||||
std::string getMode()const;
|
||||
void setMode(const std::string& mode);
|
||||
std::string getImageURL()const;
|
||||
void setImageURL(const std::string& imageURL);
|
||||
|
||||
private:
|
||||
std::string mode_;
|
||||
std::string imageURL_;
|
||||
|
||||
};
|
||||
|
||||
@@ -14,12 +14,12 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_FACEBODY_MODEL_DETECTIPCPEDESTRIANOPTIMIZEDREQUEST_H_
|
||||
#define ALIBABACLOUD_FACEBODY_MODEL_DETECTIPCPEDESTRIANOPTIMIZEDREQUEST_H_
|
||||
#ifndef ALIBABACLOUD_FACEBODY_MODEL_PEDESTRIANDETECTATTRIBUTEREQUEST_H_
|
||||
#define ALIBABACLOUD_FACEBODY_MODEL_PEDESTRIANDETECTATTRIBUTEREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RoaServiceRequest.h>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/facebody/FacebodyExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
@@ -28,27 +28,21 @@ namespace AlibabaCloud
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_FACEBODY_EXPORT DetectIPCPedestrianOptimizedRequest : public RoaServiceRequest
|
||||
class ALIBABACLOUD_FACEBODY_EXPORT PedestrianDetectAttributeRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
DetectIPCPedestrianOptimizedRequest();
|
||||
~DetectIPCPedestrianOptimizedRequest();
|
||||
PedestrianDetectAttributeRequest();
|
||||
~PedestrianDetectAttributeRequest();
|
||||
|
||||
std::string getImageData()const;
|
||||
void setImageData(const std::string& imageData);
|
||||
long getWidth()const;
|
||||
void setWidth(long width);
|
||||
long getHeight()const;
|
||||
void setHeight(long height);
|
||||
std::string getImageURL()const;
|
||||
void setImageURL(const std::string& imageURL);
|
||||
|
||||
private:
|
||||
std::string imageData_;
|
||||
long width_;
|
||||
long height_;
|
||||
std::string imageURL_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_FACEBODY_MODEL_DETECTIPCPEDESTRIANOPTIMIZEDREQUEST_H_
|
||||
#endif // !ALIBABACLOUD_FACEBODY_MODEL_PEDESTRIANDETECTATTRIBUTEREQUEST_H_
|
||||
@@ -0,0 +1,140 @@
|
||||
/*
|
||||
* 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_FACEBODY_MODEL_PEDESTRIANDETECTATTRIBUTERESULT_H_
|
||||
#define ALIBABACLOUD_FACEBODY_MODEL_PEDESTRIANDETECTATTRIBUTERESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/facebody/FacebodyExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Facebody
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_FACEBODY_EXPORT PedestrianDetectAttributeResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct Data
|
||||
{
|
||||
struct AttributesItem
|
||||
{
|
||||
struct Age
|
||||
{
|
||||
float score;
|
||||
std::string name;
|
||||
};
|
||||
struct Backpack
|
||||
{
|
||||
float score;
|
||||
std::string name;
|
||||
};
|
||||
struct Gender
|
||||
{
|
||||
float score;
|
||||
std::string name;
|
||||
};
|
||||
struct Glasses
|
||||
{
|
||||
float score;
|
||||
std::string name;
|
||||
};
|
||||
struct Handbag
|
||||
{
|
||||
float score;
|
||||
std::string name;
|
||||
};
|
||||
struct Hat
|
||||
{
|
||||
float score;
|
||||
std::string name;
|
||||
};
|
||||
struct LowerColor
|
||||
{
|
||||
float score;
|
||||
std::string name;
|
||||
};
|
||||
struct LowerWear
|
||||
{
|
||||
float score;
|
||||
std::string name;
|
||||
};
|
||||
struct Orient
|
||||
{
|
||||
float score;
|
||||
std::string name;
|
||||
};
|
||||
struct ShoulderBag
|
||||
{
|
||||
float score;
|
||||
std::string name;
|
||||
};
|
||||
struct UpperColor
|
||||
{
|
||||
float score;
|
||||
std::string name;
|
||||
};
|
||||
struct UpperWear
|
||||
{
|
||||
float score;
|
||||
std::string name;
|
||||
};
|
||||
Backpack backpack;
|
||||
LowerWear lowerWear;
|
||||
Orient orient;
|
||||
ShoulderBag shoulderBag;
|
||||
LowerColor lowerColor;
|
||||
Glasses glasses;
|
||||
UpperColor upperColor;
|
||||
Handbag handbag;
|
||||
Hat hat;
|
||||
Gender gender;
|
||||
Age age;
|
||||
UpperWear upperWear;
|
||||
};
|
||||
struct BoxesItem
|
||||
{
|
||||
float score;
|
||||
float bottomRightY;
|
||||
float bottomRightX;
|
||||
float topLeftY;
|
||||
float topLeftX;
|
||||
};
|
||||
int personNumber;
|
||||
std::vector<AttributesItem> attributes;
|
||||
std::vector<BoxesItem> boxes;
|
||||
};
|
||||
|
||||
|
||||
PedestrianDetectAttributeResult();
|
||||
explicit PedestrianDetectAttributeResult(const std::string &payload);
|
||||
~PedestrianDetectAttributeResult();
|
||||
Data getData()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
Data data_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_FACEBODY_MODEL_PEDESTRIANDETECTATTRIBUTERESULT_H_
|
||||
@@ -31,21 +31,21 @@ FacebodyClient::FacebodyClient(const Credentials &credentials, const ClientConfi
|
||||
RpcServiceClient(SERVICE_NAME, std::make_shared<SimpleCredentialsProvider>(credentials), configuration)
|
||||
{
|
||||
auto locationClient = std::make_shared<LocationClient>(credentials, configuration);
|
||||
endpointProvider_ = std::make_shared<EndpointProvider>(locationClient, configuration.regionId(), SERVICE_NAME, "");
|
||||
endpointProvider_ = std::make_shared<EndpointProvider>(locationClient, configuration.regionId(), SERVICE_NAME, "facebody");
|
||||
}
|
||||
|
||||
FacebodyClient::FacebodyClient(const std::shared_ptr<CredentialsProvider>& credentialsProvider, const ClientConfiguration & configuration) :
|
||||
RpcServiceClient(SERVICE_NAME, credentialsProvider, configuration)
|
||||
{
|
||||
auto locationClient = std::make_shared<LocationClient>(credentialsProvider, configuration);
|
||||
endpointProvider_ = std::make_shared<EndpointProvider>(locationClient, configuration.regionId(), SERVICE_NAME, "");
|
||||
endpointProvider_ = std::make_shared<EndpointProvider>(locationClient, configuration.regionId(), SERVICE_NAME, "facebody");
|
||||
}
|
||||
|
||||
FacebodyClient::FacebodyClient(const std::string & accessKeyId, const std::string & accessKeySecret, const ClientConfiguration & configuration) :
|
||||
RpcServiceClient(SERVICE_NAME, std::make_shared<SimpleCredentialsProvider>(accessKeyId, accessKeySecret), configuration)
|
||||
{
|
||||
auto locationClient = std::make_shared<LocationClient>(accessKeyId, accessKeySecret, configuration);
|
||||
endpointProvider_ = std::make_shared<EndpointProvider>(locationClient, configuration.regionId(), SERVICE_NAME, "");
|
||||
endpointProvider_ = std::make_shared<EndpointProvider>(locationClient, configuration.regionId(), SERVICE_NAME, "facebody");
|
||||
}
|
||||
|
||||
FacebodyClient::~FacebodyClient()
|
||||
@@ -555,42 +555,6 @@ FacebodyClient::DetectIPCPedestrianOutcomeCallable FacebodyClient::detectIPCPede
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
FacebodyClient::DetectIPCPedestrianOptimizedOutcome FacebodyClient::detectIPCPedestrianOptimized(const DetectIPCPedestrianOptimizedRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return DetectIPCPedestrianOptimizedOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return DetectIPCPedestrianOptimizedOutcome(DetectIPCPedestrianOptimizedResult(outcome.result()));
|
||||
else
|
||||
return DetectIPCPedestrianOptimizedOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void FacebodyClient::detectIPCPedestrianOptimizedAsync(const DetectIPCPedestrianOptimizedRequest& request, const DetectIPCPedestrianOptimizedAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, detectIPCPedestrianOptimized(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
FacebodyClient::DetectIPCPedestrianOptimizedOutcomeCallable FacebodyClient::detectIPCPedestrianOptimizedCallable(const DetectIPCPedestrianOptimizedRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<DetectIPCPedestrianOptimizedOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->detectIPCPedestrianOptimized(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
FacebodyClient::DetectLivingFaceOutcome FacebodyClient::detectLivingFace(const DetectLivingFaceRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -1131,6 +1095,42 @@ FacebodyClient::ListFaceEntitiesOutcomeCallable FacebodyClient::listFaceEntities
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
FacebodyClient::PedestrianDetectAttributeOutcome FacebodyClient::pedestrianDetectAttribute(const PedestrianDetectAttributeRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return PedestrianDetectAttributeOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return PedestrianDetectAttributeOutcome(PedestrianDetectAttributeResult(outcome.result()));
|
||||
else
|
||||
return PedestrianDetectAttributeOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void FacebodyClient::pedestrianDetectAttributeAsync(const PedestrianDetectAttributeRequest& request, const PedestrianDetectAttributeAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, pedestrianDetectAttribute(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
FacebodyClient::PedestrianDetectAttributeOutcomeCallable FacebodyClient::pedestrianDetectAttributeCallable(const PedestrianDetectAttributeRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<PedestrianDetectAttributeOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->pedestrianDetectAttribute(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
FacebodyClient::RecognizeActionOutcome FacebodyClient::recognizeAction(const RecognizeActionRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
|
||||
@@ -1,63 +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/facebody/model/DetectIPCPedestrianOptimizedRequest.h>
|
||||
|
||||
using AlibabaCloud::Facebody::Model::DetectIPCPedestrianOptimizedRequest;
|
||||
|
||||
DetectIPCPedestrianOptimizedRequest::DetectIPCPedestrianOptimizedRequest() :
|
||||
RoaServiceRequest("facebody", "2020-09-10")
|
||||
{
|
||||
setResourcePath("/viapi/k8s/facebody/detect-ipc-pedestrian-optimized");
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DetectIPCPedestrianOptimizedRequest::~DetectIPCPedestrianOptimizedRequest()
|
||||
{}
|
||||
|
||||
std::string DetectIPCPedestrianOptimizedRequest::getImageData()const
|
||||
{
|
||||
return imageData_;
|
||||
}
|
||||
|
||||
void DetectIPCPedestrianOptimizedRequest::setImageData(const std::string& imageData)
|
||||
{
|
||||
imageData_ = imageData;
|
||||
setBodyParameter("ImageData", imageData);
|
||||
}
|
||||
|
||||
long DetectIPCPedestrianOptimizedRequest::getWidth()const
|
||||
{
|
||||
return width_;
|
||||
}
|
||||
|
||||
void DetectIPCPedestrianOptimizedRequest::setWidth(long width)
|
||||
{
|
||||
width_ = width;
|
||||
setBodyParameter("Width", std::to_string(width));
|
||||
}
|
||||
|
||||
long DetectIPCPedestrianOptimizedRequest::getHeight()const
|
||||
{
|
||||
return height_;
|
||||
}
|
||||
|
||||
void DetectIPCPedestrianOptimizedRequest::setHeight(long height)
|
||||
{
|
||||
height_ = height;
|
||||
setBodyParameter("Height", std::to_string(height));
|
||||
}
|
||||
|
||||
@@ -1,67 +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/facebody/model/DetectIPCPedestrianOptimizedResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Facebody;
|
||||
using namespace AlibabaCloud::Facebody::Model;
|
||||
|
||||
DetectIPCPedestrianOptimizedResult::DetectIPCPedestrianOptimizedResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DetectIPCPedestrianOptimizedResult::DetectIPCPedestrianOptimizedResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DetectIPCPedestrianOptimizedResult::~DetectIPCPedestrianOptimizedResult()
|
||||
{}
|
||||
|
||||
void DetectIPCPedestrianOptimizedResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto dataNode = value["Data"];
|
||||
auto allImageInfoListNode = dataNode["ImageInfoList"]["imageInfoListItem"];
|
||||
for (auto dataNodeImageInfoListimageInfoListItem : allImageInfoListNode)
|
||||
{
|
||||
Data::ImageInfoListItem imageInfoListItemObject;
|
||||
auto allElementsNode = allImageInfoListNode["Elements"]["Element"];
|
||||
for (auto allImageInfoListNodeElementsElement : allElementsNode)
|
||||
{
|
||||
Data::ImageInfoListItem::Element elementsObject;
|
||||
if(!allImageInfoListNodeElementsElement["Score"].isNull())
|
||||
elementsObject.score = std::stof(allImageInfoListNodeElementsElement["Score"].asString());
|
||||
auto allBoxes = value["Boxes"]["Box"];
|
||||
for (auto value : allBoxes)
|
||||
elementsObject.boxes.push_back(value.asString());
|
||||
imageInfoListItemObject.elements.push_back(elementsObject);
|
||||
}
|
||||
data_.imageInfoList.push_back(imageInfoListItemObject);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
DetectIPCPedestrianOptimizedResult::Data DetectIPCPedestrianOptimizedResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
@@ -27,6 +27,17 @@ ExtractPedestrianFeatureAttributeRequest::ExtractPedestrianFeatureAttributeReque
|
||||
ExtractPedestrianFeatureAttributeRequest::~ExtractPedestrianFeatureAttributeRequest()
|
||||
{}
|
||||
|
||||
std::string ExtractPedestrianFeatureAttributeRequest::getMode()const
|
||||
{
|
||||
return mode_;
|
||||
}
|
||||
|
||||
void ExtractPedestrianFeatureAttributeRequest::setMode(const std::string& mode)
|
||||
{
|
||||
mode_ = mode;
|
||||
setBodyParameter("Mode", mode);
|
||||
}
|
||||
|
||||
std::string ExtractPedestrianFeatureAttributeRequest::getImageURL()const
|
||||
{
|
||||
return imageURL_;
|
||||
|
||||
40
facebody/src/model/PedestrianDetectAttributeRequest.cc
Normal file
40
facebody/src/model/PedestrianDetectAttributeRequest.cc
Normal file
@@ -0,0 +1,40 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/facebody/model/PedestrianDetectAttributeRequest.h>
|
||||
|
||||
using AlibabaCloud::Facebody::Model::PedestrianDetectAttributeRequest;
|
||||
|
||||
PedestrianDetectAttributeRequest::PedestrianDetectAttributeRequest() :
|
||||
RpcServiceRequest("facebody", "2019-12-30", "PedestrianDetectAttribute")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
PedestrianDetectAttributeRequest::~PedestrianDetectAttributeRequest()
|
||||
{}
|
||||
|
||||
std::string PedestrianDetectAttributeRequest::getImageURL()const
|
||||
{
|
||||
return imageURL_;
|
||||
}
|
||||
|
||||
void PedestrianDetectAttributeRequest::setImageURL(const std::string& imageURL)
|
||||
{
|
||||
imageURL_ = imageURL;
|
||||
setBodyParameter("ImageURL", imageURL);
|
||||
}
|
||||
|
||||
134
facebody/src/model/PedestrianDetectAttributeResult.cc
Normal file
134
facebody/src/model/PedestrianDetectAttributeResult.cc
Normal file
@@ -0,0 +1,134 @@
|
||||
/*
|
||||
* 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/facebody/model/PedestrianDetectAttributeResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Facebody;
|
||||
using namespace AlibabaCloud::Facebody::Model;
|
||||
|
||||
PedestrianDetectAttributeResult::PedestrianDetectAttributeResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
PedestrianDetectAttributeResult::PedestrianDetectAttributeResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
PedestrianDetectAttributeResult::~PedestrianDetectAttributeResult()
|
||||
{}
|
||||
|
||||
void PedestrianDetectAttributeResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto dataNode = value["Data"];
|
||||
if(!dataNode["PersonNumber"].isNull())
|
||||
data_.personNumber = std::stoi(dataNode["PersonNumber"].asString());
|
||||
auto allAttributesNode = dataNode["Attributes"]["AttributesItem"];
|
||||
for (auto dataNodeAttributesAttributesItem : allAttributesNode)
|
||||
{
|
||||
Data::AttributesItem attributesItemObject;
|
||||
auto ageNode = value["Age"];
|
||||
if(!ageNode["Name"].isNull())
|
||||
attributesItemObject.age.name = ageNode["Name"].asString();
|
||||
if(!ageNode["Score"].isNull())
|
||||
attributesItemObject.age.score = std::stof(ageNode["Score"].asString());
|
||||
auto backpackNode = value["Backpack"];
|
||||
if(!backpackNode["Name"].isNull())
|
||||
attributesItemObject.backpack.name = backpackNode["Name"].asString();
|
||||
if(!backpackNode["Score"].isNull())
|
||||
attributesItemObject.backpack.score = std::stof(backpackNode["Score"].asString());
|
||||
auto genderNode = value["Gender"];
|
||||
if(!genderNode["Name"].isNull())
|
||||
attributesItemObject.gender.name = genderNode["Name"].asString();
|
||||
if(!genderNode["Score"].isNull())
|
||||
attributesItemObject.gender.score = std::stof(genderNode["Score"].asString());
|
||||
auto glassesNode = value["Glasses"];
|
||||
if(!glassesNode["Name"].isNull())
|
||||
attributesItemObject.glasses.name = glassesNode["Name"].asString();
|
||||
if(!glassesNode["Score"].isNull())
|
||||
attributesItemObject.glasses.score = std::stof(glassesNode["Score"].asString());
|
||||
auto handbagNode = value["Handbag"];
|
||||
if(!handbagNode["Name"].isNull())
|
||||
attributesItemObject.handbag.name = handbagNode["Name"].asString();
|
||||
if(!handbagNode["Score"].isNull())
|
||||
attributesItemObject.handbag.score = std::stof(handbagNode["Score"].asString());
|
||||
auto hatNode = value["Hat"];
|
||||
if(!hatNode["Name"].isNull())
|
||||
attributesItemObject.hat.name = hatNode["Name"].asString();
|
||||
if(!hatNode["Score"].isNull())
|
||||
attributesItemObject.hat.score = std::stof(hatNode["Score"].asString());
|
||||
auto lowerColorNode = value["LowerColor"];
|
||||
if(!lowerColorNode["Name"].isNull())
|
||||
attributesItemObject.lowerColor.name = lowerColorNode["Name"].asString();
|
||||
if(!lowerColorNode["Score"].isNull())
|
||||
attributesItemObject.lowerColor.score = std::stof(lowerColorNode["Score"].asString());
|
||||
auto lowerWearNode = value["LowerWear"];
|
||||
if(!lowerWearNode["Name"].isNull())
|
||||
attributesItemObject.lowerWear.name = lowerWearNode["Name"].asString();
|
||||
if(!lowerWearNode["Score"].isNull())
|
||||
attributesItemObject.lowerWear.score = std::stof(lowerWearNode["Score"].asString());
|
||||
auto orientNode = value["Orient"];
|
||||
if(!orientNode["Name"].isNull())
|
||||
attributesItemObject.orient.name = orientNode["Name"].asString();
|
||||
if(!orientNode["Score"].isNull())
|
||||
attributesItemObject.orient.score = std::stof(orientNode["Score"].asString());
|
||||
auto shoulderBagNode = value["ShoulderBag"];
|
||||
if(!shoulderBagNode["Name"].isNull())
|
||||
attributesItemObject.shoulderBag.name = shoulderBagNode["Name"].asString();
|
||||
if(!shoulderBagNode["Score"].isNull())
|
||||
attributesItemObject.shoulderBag.score = std::stof(shoulderBagNode["Score"].asString());
|
||||
auto upperColorNode = value["UpperColor"];
|
||||
if(!upperColorNode["Name"].isNull())
|
||||
attributesItemObject.upperColor.name = upperColorNode["Name"].asString();
|
||||
if(!upperColorNode["Score"].isNull())
|
||||
attributesItemObject.upperColor.score = std::stof(upperColorNode["Score"].asString());
|
||||
auto upperWearNode = value["UpperWear"];
|
||||
if(!upperWearNode["Name"].isNull())
|
||||
attributesItemObject.upperWear.name = upperWearNode["Name"].asString();
|
||||
if(!upperWearNode["Score"].isNull())
|
||||
attributesItemObject.upperWear.score = std::stof(upperWearNode["Score"].asString());
|
||||
data_.attributes.push_back(attributesItemObject);
|
||||
}
|
||||
auto allBoxesNode = dataNode["Boxes"]["BoxesItem"];
|
||||
for (auto dataNodeBoxesBoxesItem : allBoxesNode)
|
||||
{
|
||||
Data::BoxesItem boxesItemObject;
|
||||
if(!dataNodeBoxesBoxesItem["Score"].isNull())
|
||||
boxesItemObject.score = std::stof(dataNodeBoxesBoxesItem["Score"].asString());
|
||||
if(!dataNodeBoxesBoxesItem["TopLeftX"].isNull())
|
||||
boxesItemObject.topLeftX = std::stof(dataNodeBoxesBoxesItem["TopLeftX"].asString());
|
||||
if(!dataNodeBoxesBoxesItem["TopLeftY"].isNull())
|
||||
boxesItemObject.topLeftY = std::stof(dataNodeBoxesBoxesItem["TopLeftY"].asString());
|
||||
if(!dataNodeBoxesBoxesItem["BottomRightX"].isNull())
|
||||
boxesItemObject.bottomRightX = std::stof(dataNodeBoxesBoxesItem["BottomRightX"].asString());
|
||||
if(!dataNodeBoxesBoxesItem["BottomRightY"].isNull())
|
||||
boxesItemObject.bottomRightY = std::stof(dataNodeBoxesBoxesItem["BottomRightY"].asString());
|
||||
data_.boxes.push_back(boxesItemObject);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
PedestrianDetectAttributeResult::Data PedestrianDetectAttributeResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
150
imageenhan/CMakeLists.txt
Normal file
150
imageenhan/CMakeLists.txt
Normal file
@@ -0,0 +1,150 @@
|
||||
#
|
||||
# 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.
|
||||
#
|
||||
|
||||
set(public_header_dir ${CMAKE_CURRENT_SOURCE_DIR}/../include)
|
||||
|
||||
set(imageenhan_public_header
|
||||
include/alibabacloud/imageenhan/ImageenhanClient.h
|
||||
include/alibabacloud/imageenhan/ImageenhanExport.h )
|
||||
|
||||
set(imageenhan_public_header_model
|
||||
include/alibabacloud/imageenhan/model/AssessCompositionRequest.h
|
||||
include/alibabacloud/imageenhan/model/AssessCompositionResult.h
|
||||
include/alibabacloud/imageenhan/model/AssessExposureRequest.h
|
||||
include/alibabacloud/imageenhan/model/AssessExposureResult.h
|
||||
include/alibabacloud/imageenhan/model/AssessSharpnessRequest.h
|
||||
include/alibabacloud/imageenhan/model/AssessSharpnessResult.h
|
||||
include/alibabacloud/imageenhan/model/ChangeImageSizeRequest.h
|
||||
include/alibabacloud/imageenhan/model/ChangeImageSizeResult.h
|
||||
include/alibabacloud/imageenhan/model/EnhanceImageColorRequest.h
|
||||
include/alibabacloud/imageenhan/model/EnhanceImageColorResult.h
|
||||
include/alibabacloud/imageenhan/model/ExtendImageStyleRequest.h
|
||||
include/alibabacloud/imageenhan/model/ExtendImageStyleResult.h
|
||||
include/alibabacloud/imageenhan/model/GenerateDynamicImageRequest.h
|
||||
include/alibabacloud/imageenhan/model/GenerateDynamicImageResult.h
|
||||
include/alibabacloud/imageenhan/model/GetAsyncJobResultRequest.h
|
||||
include/alibabacloud/imageenhan/model/GetAsyncJobResultResult.h
|
||||
include/alibabacloud/imageenhan/model/ImageBlindCharacterWatermarkRequest.h
|
||||
include/alibabacloud/imageenhan/model/ImageBlindCharacterWatermarkResult.h
|
||||
include/alibabacloud/imageenhan/model/ImageBlindPicWatermarkRequest.h
|
||||
include/alibabacloud/imageenhan/model/ImageBlindPicWatermarkResult.h
|
||||
include/alibabacloud/imageenhan/model/ImitatePhotoStyleRequest.h
|
||||
include/alibabacloud/imageenhan/model/ImitatePhotoStyleResult.h
|
||||
include/alibabacloud/imageenhan/model/IntelligentCompositionRequest.h
|
||||
include/alibabacloud/imageenhan/model/IntelligentCompositionResult.h
|
||||
include/alibabacloud/imageenhan/model/MakeSuperResolutionImageRequest.h
|
||||
include/alibabacloud/imageenhan/model/MakeSuperResolutionImageResult.h
|
||||
include/alibabacloud/imageenhan/model/RecolorHDImageRequest.h
|
||||
include/alibabacloud/imageenhan/model/RecolorHDImageResult.h
|
||||
include/alibabacloud/imageenhan/model/RecolorImageRequest.h
|
||||
include/alibabacloud/imageenhan/model/RecolorImageResult.h
|
||||
include/alibabacloud/imageenhan/model/RemoveImageSubtitlesRequest.h
|
||||
include/alibabacloud/imageenhan/model/RemoveImageSubtitlesResult.h
|
||||
include/alibabacloud/imageenhan/model/RemoveImageWatermarkRequest.h
|
||||
include/alibabacloud/imageenhan/model/RemoveImageWatermarkResult.h )
|
||||
|
||||
set(imageenhan_src
|
||||
src/ImageenhanClient.cc
|
||||
src/model/AssessCompositionRequest.cc
|
||||
src/model/AssessCompositionResult.cc
|
||||
src/model/AssessExposureRequest.cc
|
||||
src/model/AssessExposureResult.cc
|
||||
src/model/AssessSharpnessRequest.cc
|
||||
src/model/AssessSharpnessResult.cc
|
||||
src/model/ChangeImageSizeRequest.cc
|
||||
src/model/ChangeImageSizeResult.cc
|
||||
src/model/EnhanceImageColorRequest.cc
|
||||
src/model/EnhanceImageColorResult.cc
|
||||
src/model/ExtendImageStyleRequest.cc
|
||||
src/model/ExtendImageStyleResult.cc
|
||||
src/model/GenerateDynamicImageRequest.cc
|
||||
src/model/GenerateDynamicImageResult.cc
|
||||
src/model/GetAsyncJobResultRequest.cc
|
||||
src/model/GetAsyncJobResultResult.cc
|
||||
src/model/ImageBlindCharacterWatermarkRequest.cc
|
||||
src/model/ImageBlindCharacterWatermarkResult.cc
|
||||
src/model/ImageBlindPicWatermarkRequest.cc
|
||||
src/model/ImageBlindPicWatermarkResult.cc
|
||||
src/model/ImitatePhotoStyleRequest.cc
|
||||
src/model/ImitatePhotoStyleResult.cc
|
||||
src/model/IntelligentCompositionRequest.cc
|
||||
src/model/IntelligentCompositionResult.cc
|
||||
src/model/MakeSuperResolutionImageRequest.cc
|
||||
src/model/MakeSuperResolutionImageResult.cc
|
||||
src/model/RecolorHDImageRequest.cc
|
||||
src/model/RecolorHDImageResult.cc
|
||||
src/model/RecolorImageRequest.cc
|
||||
src/model/RecolorImageResult.cc
|
||||
src/model/RemoveImageSubtitlesRequest.cc
|
||||
src/model/RemoveImageSubtitlesResult.cc
|
||||
src/model/RemoveImageWatermarkRequest.cc
|
||||
src/model/RemoveImageWatermarkResult.cc )
|
||||
|
||||
add_library(imageenhan ${LIB_TYPE}
|
||||
${imageenhan_public_header}
|
||||
${imageenhan_public_header_model}
|
||||
${imageenhan_src})
|
||||
|
||||
set_target_properties(imageenhan
|
||||
PROPERTIES
|
||||
LINKER_LANGUAGE CXX
|
||||
ARCHIVE_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/lib
|
||||
LIBRARY_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/lib
|
||||
RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/bin
|
||||
OUTPUT_NAME ${TARGET_OUTPUT_NAME_PREFIX}imageenhan
|
||||
)
|
||||
|
||||
if(${LIB_TYPE} STREQUAL "SHARED")
|
||||
set_target_properties(imageenhan
|
||||
PROPERTIES
|
||||
DEFINE_SYMBOL ALIBABACLOUD_IMAGEENHAN_LIBRARY)
|
||||
endif()
|
||||
|
||||
target_include_directories(imageenhan
|
||||
PRIVATE include
|
||||
${CMAKE_SOURCE_DIR}/core/include
|
||||
)
|
||||
target_link_libraries(imageenhan
|
||||
core)
|
||||
|
||||
if(CMAKE_HOST_WIN32)
|
||||
ExternalProject_Get_Property(jsoncpp INSTALL_DIR)
|
||||
set(jsoncpp_install_dir ${INSTALL_DIR})
|
||||
add_dependencies(imageenhan
|
||||
jsoncpp)
|
||||
target_include_directories(imageenhan
|
||||
PRIVATE ${jsoncpp_install_dir}/include)
|
||||
target_link_libraries(imageenhan
|
||||
${jsoncpp_install_dir}/lib/jsoncpp.lib)
|
||||
set_target_properties(imageenhan
|
||||
PROPERTIES
|
||||
COMPILE_OPTIONS "/bigobj")
|
||||
else()
|
||||
target_include_directories(imageenhan
|
||||
PRIVATE /usr/include/jsoncpp)
|
||||
target_link_libraries(imageenhan
|
||||
jsoncpp)
|
||||
endif()
|
||||
|
||||
install(FILES ${imageenhan_public_header}
|
||||
DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/alibabacloud/imageenhan)
|
||||
install(FILES ${imageenhan_public_header_model}
|
||||
DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/alibabacloud/imageenhan/model)
|
||||
install(TARGETS imageenhan
|
||||
ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
|
||||
LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
|
||||
RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
|
||||
)
|
||||
182
imageenhan/include/alibabacloud/imageenhan/ImageenhanClient.h
Normal file
182
imageenhan/include/alibabacloud/imageenhan/ImageenhanClient.h
Normal file
@@ -0,0 +1,182 @@
|
||||
/*
|
||||
* 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_IMAGEENHAN_IMAGEENHANCLIENT_H_
|
||||
#define ALIBABACLOUD_IMAGEENHAN_IMAGEENHANCLIENT_H_
|
||||
|
||||
#include <future>
|
||||
#include <alibabacloud/core/AsyncCallerContext.h>
|
||||
#include <alibabacloud/core/EndpointProvider.h>
|
||||
#include <alibabacloud/core/RpcServiceClient.h>
|
||||
#include "ImageenhanExport.h"
|
||||
#include "model/AssessCompositionRequest.h"
|
||||
#include "model/AssessCompositionResult.h"
|
||||
#include "model/AssessExposureRequest.h"
|
||||
#include "model/AssessExposureResult.h"
|
||||
#include "model/AssessSharpnessRequest.h"
|
||||
#include "model/AssessSharpnessResult.h"
|
||||
#include "model/ChangeImageSizeRequest.h"
|
||||
#include "model/ChangeImageSizeResult.h"
|
||||
#include "model/EnhanceImageColorRequest.h"
|
||||
#include "model/EnhanceImageColorResult.h"
|
||||
#include "model/ExtendImageStyleRequest.h"
|
||||
#include "model/ExtendImageStyleResult.h"
|
||||
#include "model/GenerateDynamicImageRequest.h"
|
||||
#include "model/GenerateDynamicImageResult.h"
|
||||
#include "model/GetAsyncJobResultRequest.h"
|
||||
#include "model/GetAsyncJobResultResult.h"
|
||||
#include "model/ImageBlindCharacterWatermarkRequest.h"
|
||||
#include "model/ImageBlindCharacterWatermarkResult.h"
|
||||
#include "model/ImageBlindPicWatermarkRequest.h"
|
||||
#include "model/ImageBlindPicWatermarkResult.h"
|
||||
#include "model/ImitatePhotoStyleRequest.h"
|
||||
#include "model/ImitatePhotoStyleResult.h"
|
||||
#include "model/IntelligentCompositionRequest.h"
|
||||
#include "model/IntelligentCompositionResult.h"
|
||||
#include "model/MakeSuperResolutionImageRequest.h"
|
||||
#include "model/MakeSuperResolutionImageResult.h"
|
||||
#include "model/RecolorHDImageRequest.h"
|
||||
#include "model/RecolorHDImageResult.h"
|
||||
#include "model/RecolorImageRequest.h"
|
||||
#include "model/RecolorImageResult.h"
|
||||
#include "model/RemoveImageSubtitlesRequest.h"
|
||||
#include "model/RemoveImageSubtitlesResult.h"
|
||||
#include "model/RemoveImageWatermarkRequest.h"
|
||||
#include "model/RemoveImageWatermarkResult.h"
|
||||
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Imageenhan
|
||||
{
|
||||
class ALIBABACLOUD_IMAGEENHAN_EXPORT ImageenhanClient : public RpcServiceClient
|
||||
{
|
||||
public:
|
||||
typedef Outcome<Error, Model::AssessCompositionResult> AssessCompositionOutcome;
|
||||
typedef std::future<AssessCompositionOutcome> AssessCompositionOutcomeCallable;
|
||||
typedef std::function<void(const ImageenhanClient*, const Model::AssessCompositionRequest&, const AssessCompositionOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> AssessCompositionAsyncHandler;
|
||||
typedef Outcome<Error, Model::AssessExposureResult> AssessExposureOutcome;
|
||||
typedef std::future<AssessExposureOutcome> AssessExposureOutcomeCallable;
|
||||
typedef std::function<void(const ImageenhanClient*, const Model::AssessExposureRequest&, const AssessExposureOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> AssessExposureAsyncHandler;
|
||||
typedef Outcome<Error, Model::AssessSharpnessResult> AssessSharpnessOutcome;
|
||||
typedef std::future<AssessSharpnessOutcome> AssessSharpnessOutcomeCallable;
|
||||
typedef std::function<void(const ImageenhanClient*, const Model::AssessSharpnessRequest&, const AssessSharpnessOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> AssessSharpnessAsyncHandler;
|
||||
typedef Outcome<Error, Model::ChangeImageSizeResult> ChangeImageSizeOutcome;
|
||||
typedef std::future<ChangeImageSizeOutcome> ChangeImageSizeOutcomeCallable;
|
||||
typedef std::function<void(const ImageenhanClient*, const Model::ChangeImageSizeRequest&, const ChangeImageSizeOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ChangeImageSizeAsyncHandler;
|
||||
typedef Outcome<Error, Model::EnhanceImageColorResult> EnhanceImageColorOutcome;
|
||||
typedef std::future<EnhanceImageColorOutcome> EnhanceImageColorOutcomeCallable;
|
||||
typedef std::function<void(const ImageenhanClient*, const Model::EnhanceImageColorRequest&, const EnhanceImageColorOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> EnhanceImageColorAsyncHandler;
|
||||
typedef Outcome<Error, Model::ExtendImageStyleResult> ExtendImageStyleOutcome;
|
||||
typedef std::future<ExtendImageStyleOutcome> ExtendImageStyleOutcomeCallable;
|
||||
typedef std::function<void(const ImageenhanClient*, const Model::ExtendImageStyleRequest&, const ExtendImageStyleOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ExtendImageStyleAsyncHandler;
|
||||
typedef Outcome<Error, Model::GenerateDynamicImageResult> GenerateDynamicImageOutcome;
|
||||
typedef std::future<GenerateDynamicImageOutcome> GenerateDynamicImageOutcomeCallable;
|
||||
typedef std::function<void(const ImageenhanClient*, const Model::GenerateDynamicImageRequest&, const GenerateDynamicImageOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GenerateDynamicImageAsyncHandler;
|
||||
typedef Outcome<Error, Model::GetAsyncJobResultResult> GetAsyncJobResultOutcome;
|
||||
typedef std::future<GetAsyncJobResultOutcome> GetAsyncJobResultOutcomeCallable;
|
||||
typedef std::function<void(const ImageenhanClient*, const Model::GetAsyncJobResultRequest&, const GetAsyncJobResultOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetAsyncJobResultAsyncHandler;
|
||||
typedef Outcome<Error, Model::ImageBlindCharacterWatermarkResult> ImageBlindCharacterWatermarkOutcome;
|
||||
typedef std::future<ImageBlindCharacterWatermarkOutcome> ImageBlindCharacterWatermarkOutcomeCallable;
|
||||
typedef std::function<void(const ImageenhanClient*, const Model::ImageBlindCharacterWatermarkRequest&, const ImageBlindCharacterWatermarkOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ImageBlindCharacterWatermarkAsyncHandler;
|
||||
typedef Outcome<Error, Model::ImageBlindPicWatermarkResult> ImageBlindPicWatermarkOutcome;
|
||||
typedef std::future<ImageBlindPicWatermarkOutcome> ImageBlindPicWatermarkOutcomeCallable;
|
||||
typedef std::function<void(const ImageenhanClient*, const Model::ImageBlindPicWatermarkRequest&, const ImageBlindPicWatermarkOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ImageBlindPicWatermarkAsyncHandler;
|
||||
typedef Outcome<Error, Model::ImitatePhotoStyleResult> ImitatePhotoStyleOutcome;
|
||||
typedef std::future<ImitatePhotoStyleOutcome> ImitatePhotoStyleOutcomeCallable;
|
||||
typedef std::function<void(const ImageenhanClient*, const Model::ImitatePhotoStyleRequest&, const ImitatePhotoStyleOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ImitatePhotoStyleAsyncHandler;
|
||||
typedef Outcome<Error, Model::IntelligentCompositionResult> IntelligentCompositionOutcome;
|
||||
typedef std::future<IntelligentCompositionOutcome> IntelligentCompositionOutcomeCallable;
|
||||
typedef std::function<void(const ImageenhanClient*, const Model::IntelligentCompositionRequest&, const IntelligentCompositionOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> IntelligentCompositionAsyncHandler;
|
||||
typedef Outcome<Error, Model::MakeSuperResolutionImageResult> MakeSuperResolutionImageOutcome;
|
||||
typedef std::future<MakeSuperResolutionImageOutcome> MakeSuperResolutionImageOutcomeCallable;
|
||||
typedef std::function<void(const ImageenhanClient*, const Model::MakeSuperResolutionImageRequest&, const MakeSuperResolutionImageOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> MakeSuperResolutionImageAsyncHandler;
|
||||
typedef Outcome<Error, Model::RecolorHDImageResult> RecolorHDImageOutcome;
|
||||
typedef std::future<RecolorHDImageOutcome> RecolorHDImageOutcomeCallable;
|
||||
typedef std::function<void(const ImageenhanClient*, const Model::RecolorHDImageRequest&, const RecolorHDImageOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> RecolorHDImageAsyncHandler;
|
||||
typedef Outcome<Error, Model::RecolorImageResult> RecolorImageOutcome;
|
||||
typedef std::future<RecolorImageOutcome> RecolorImageOutcomeCallable;
|
||||
typedef std::function<void(const ImageenhanClient*, const Model::RecolorImageRequest&, const RecolorImageOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> RecolorImageAsyncHandler;
|
||||
typedef Outcome<Error, Model::RemoveImageSubtitlesResult> RemoveImageSubtitlesOutcome;
|
||||
typedef std::future<RemoveImageSubtitlesOutcome> RemoveImageSubtitlesOutcomeCallable;
|
||||
typedef std::function<void(const ImageenhanClient*, const Model::RemoveImageSubtitlesRequest&, const RemoveImageSubtitlesOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> RemoveImageSubtitlesAsyncHandler;
|
||||
typedef Outcome<Error, Model::RemoveImageWatermarkResult> RemoveImageWatermarkOutcome;
|
||||
typedef std::future<RemoveImageWatermarkOutcome> RemoveImageWatermarkOutcomeCallable;
|
||||
typedef std::function<void(const ImageenhanClient*, const Model::RemoveImageWatermarkRequest&, const RemoveImageWatermarkOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> RemoveImageWatermarkAsyncHandler;
|
||||
|
||||
ImageenhanClient(const Credentials &credentials, const ClientConfiguration &configuration);
|
||||
ImageenhanClient(const std::shared_ptr<CredentialsProvider> &credentialsProvider, const ClientConfiguration &configuration);
|
||||
ImageenhanClient(const std::string &accessKeyId, const std::string &accessKeySecret, const ClientConfiguration &configuration);
|
||||
~ImageenhanClient();
|
||||
AssessCompositionOutcome assessComposition(const Model::AssessCompositionRequest &request)const;
|
||||
void assessCompositionAsync(const Model::AssessCompositionRequest& request, const AssessCompositionAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
AssessCompositionOutcomeCallable assessCompositionCallable(const Model::AssessCompositionRequest& request) const;
|
||||
AssessExposureOutcome assessExposure(const Model::AssessExposureRequest &request)const;
|
||||
void assessExposureAsync(const Model::AssessExposureRequest& request, const AssessExposureAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
AssessExposureOutcomeCallable assessExposureCallable(const Model::AssessExposureRequest& request) const;
|
||||
AssessSharpnessOutcome assessSharpness(const Model::AssessSharpnessRequest &request)const;
|
||||
void assessSharpnessAsync(const Model::AssessSharpnessRequest& request, const AssessSharpnessAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
AssessSharpnessOutcomeCallable assessSharpnessCallable(const Model::AssessSharpnessRequest& request) const;
|
||||
ChangeImageSizeOutcome changeImageSize(const Model::ChangeImageSizeRequest &request)const;
|
||||
void changeImageSizeAsync(const Model::ChangeImageSizeRequest& request, const ChangeImageSizeAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
ChangeImageSizeOutcomeCallable changeImageSizeCallable(const Model::ChangeImageSizeRequest& request) const;
|
||||
EnhanceImageColorOutcome enhanceImageColor(const Model::EnhanceImageColorRequest &request)const;
|
||||
void enhanceImageColorAsync(const Model::EnhanceImageColorRequest& request, const EnhanceImageColorAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
EnhanceImageColorOutcomeCallable enhanceImageColorCallable(const Model::EnhanceImageColorRequest& request) const;
|
||||
ExtendImageStyleOutcome extendImageStyle(const Model::ExtendImageStyleRequest &request)const;
|
||||
void extendImageStyleAsync(const Model::ExtendImageStyleRequest& request, const ExtendImageStyleAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
ExtendImageStyleOutcomeCallable extendImageStyleCallable(const Model::ExtendImageStyleRequest& request) const;
|
||||
GenerateDynamicImageOutcome generateDynamicImage(const Model::GenerateDynamicImageRequest &request)const;
|
||||
void generateDynamicImageAsync(const Model::GenerateDynamicImageRequest& request, const GenerateDynamicImageAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
GenerateDynamicImageOutcomeCallable generateDynamicImageCallable(const Model::GenerateDynamicImageRequest& request) const;
|
||||
GetAsyncJobResultOutcome getAsyncJobResult(const Model::GetAsyncJobResultRequest &request)const;
|
||||
void getAsyncJobResultAsync(const Model::GetAsyncJobResultRequest& request, const GetAsyncJobResultAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
GetAsyncJobResultOutcomeCallable getAsyncJobResultCallable(const Model::GetAsyncJobResultRequest& request) const;
|
||||
ImageBlindCharacterWatermarkOutcome imageBlindCharacterWatermark(const Model::ImageBlindCharacterWatermarkRequest &request)const;
|
||||
void imageBlindCharacterWatermarkAsync(const Model::ImageBlindCharacterWatermarkRequest& request, const ImageBlindCharacterWatermarkAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
ImageBlindCharacterWatermarkOutcomeCallable imageBlindCharacterWatermarkCallable(const Model::ImageBlindCharacterWatermarkRequest& request) const;
|
||||
ImageBlindPicWatermarkOutcome imageBlindPicWatermark(const Model::ImageBlindPicWatermarkRequest &request)const;
|
||||
void imageBlindPicWatermarkAsync(const Model::ImageBlindPicWatermarkRequest& request, const ImageBlindPicWatermarkAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
ImageBlindPicWatermarkOutcomeCallable imageBlindPicWatermarkCallable(const Model::ImageBlindPicWatermarkRequest& request) const;
|
||||
ImitatePhotoStyleOutcome imitatePhotoStyle(const Model::ImitatePhotoStyleRequest &request)const;
|
||||
void imitatePhotoStyleAsync(const Model::ImitatePhotoStyleRequest& request, const ImitatePhotoStyleAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
ImitatePhotoStyleOutcomeCallable imitatePhotoStyleCallable(const Model::ImitatePhotoStyleRequest& request) const;
|
||||
IntelligentCompositionOutcome intelligentComposition(const Model::IntelligentCompositionRequest &request)const;
|
||||
void intelligentCompositionAsync(const Model::IntelligentCompositionRequest& request, const IntelligentCompositionAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
IntelligentCompositionOutcomeCallable intelligentCompositionCallable(const Model::IntelligentCompositionRequest& request) const;
|
||||
MakeSuperResolutionImageOutcome makeSuperResolutionImage(const Model::MakeSuperResolutionImageRequest &request)const;
|
||||
void makeSuperResolutionImageAsync(const Model::MakeSuperResolutionImageRequest& request, const MakeSuperResolutionImageAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
MakeSuperResolutionImageOutcomeCallable makeSuperResolutionImageCallable(const Model::MakeSuperResolutionImageRequest& request) const;
|
||||
RecolorHDImageOutcome recolorHDImage(const Model::RecolorHDImageRequest &request)const;
|
||||
void recolorHDImageAsync(const Model::RecolorHDImageRequest& request, const RecolorHDImageAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
RecolorHDImageOutcomeCallable recolorHDImageCallable(const Model::RecolorHDImageRequest& request) const;
|
||||
RecolorImageOutcome recolorImage(const Model::RecolorImageRequest &request)const;
|
||||
void recolorImageAsync(const Model::RecolorImageRequest& request, const RecolorImageAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
RecolorImageOutcomeCallable recolorImageCallable(const Model::RecolorImageRequest& request) const;
|
||||
RemoveImageSubtitlesOutcome removeImageSubtitles(const Model::RemoveImageSubtitlesRequest &request)const;
|
||||
void removeImageSubtitlesAsync(const Model::RemoveImageSubtitlesRequest& request, const RemoveImageSubtitlesAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
RemoveImageSubtitlesOutcomeCallable removeImageSubtitlesCallable(const Model::RemoveImageSubtitlesRequest& request) const;
|
||||
RemoveImageWatermarkOutcome removeImageWatermark(const Model::RemoveImageWatermarkRequest &request)const;
|
||||
void removeImageWatermarkAsync(const Model::RemoveImageWatermarkRequest& request, const RemoveImageWatermarkAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
RemoveImageWatermarkOutcomeCallable removeImageWatermarkCallable(const Model::RemoveImageWatermarkRequest& request) const;
|
||||
|
||||
private:
|
||||
std::shared_ptr<EndpointProvider> endpointProvider_;
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
#endif // !ALIBABACLOUD_IMAGEENHAN_IMAGEENHANCLIENT_H_
|
||||
@@ -0,0 +1,32 @@
|
||||
/*
|
||||
* 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_IMAGEENHAN_IMAGEENHANEXPORT_H_
|
||||
#define ALIBABACLOUD_IMAGEENHAN_IMAGEENHANEXPORT_H_
|
||||
|
||||
#include <alibabacloud/core/Global.h>
|
||||
|
||||
#if defined(ALIBABACLOUD_SHARED)
|
||||
# if defined(ALIBABACLOUD_IMAGEENHAN_LIBRARY)
|
||||
# define ALIBABACLOUD_IMAGEENHAN_EXPORT ALIBABACLOUD_DECL_EXPORT
|
||||
# else
|
||||
# define ALIBABACLOUD_IMAGEENHAN_EXPORT ALIBABACLOUD_DECL_IMPORT
|
||||
# endif
|
||||
#else
|
||||
# define ALIBABACLOUD_IMAGEENHAN_EXPORT
|
||||
#endif
|
||||
|
||||
#endif // !ALIBABACLOUD_IMAGEENHAN_IMAGEENHANEXPORT_H_
|
||||
@@ -0,0 +1,48 @@
|
||||
/*
|
||||
* 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_IMAGEENHAN_MODEL_ASSESSCOMPOSITIONREQUEST_H_
|
||||
#define ALIBABACLOUD_IMAGEENHAN_MODEL_ASSESSCOMPOSITIONREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/imageenhan/ImageenhanExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Imageenhan
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_IMAGEENHAN_EXPORT AssessCompositionRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
AssessCompositionRequest();
|
||||
~AssessCompositionRequest();
|
||||
|
||||
std::string getImageURL()const;
|
||||
void setImageURL(const std::string& imageURL);
|
||||
|
||||
private:
|
||||
std::string imageURL_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_IMAGEENHAN_MODEL_ASSESSCOMPOSITIONREQUEST_H_
|
||||
@@ -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_IMAGEENHAN_MODEL_ASSESSCOMPOSITIONRESULT_H_
|
||||
#define ALIBABACLOUD_IMAGEENHAN_MODEL_ASSESSCOMPOSITIONRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/imageenhan/ImageenhanExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Imageenhan
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_IMAGEENHAN_EXPORT AssessCompositionResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct Data
|
||||
{
|
||||
float score;
|
||||
};
|
||||
|
||||
|
||||
AssessCompositionResult();
|
||||
explicit AssessCompositionResult(const std::string &payload);
|
||||
~AssessCompositionResult();
|
||||
Data getData()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
Data data_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_IMAGEENHAN_MODEL_ASSESSCOMPOSITIONRESULT_H_
|
||||
@@ -0,0 +1,48 @@
|
||||
/*
|
||||
* 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_IMAGEENHAN_MODEL_ASSESSEXPOSUREREQUEST_H_
|
||||
#define ALIBABACLOUD_IMAGEENHAN_MODEL_ASSESSEXPOSUREREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/imageenhan/ImageenhanExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Imageenhan
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_IMAGEENHAN_EXPORT AssessExposureRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
AssessExposureRequest();
|
||||
~AssessExposureRequest();
|
||||
|
||||
std::string getImageURL()const;
|
||||
void setImageURL(const std::string& imageURL);
|
||||
|
||||
private:
|
||||
std::string imageURL_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_IMAGEENHAN_MODEL_ASSESSEXPOSUREREQUEST_H_
|
||||
@@ -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_IMAGEENHAN_MODEL_ASSESSEXPOSURERESULT_H_
|
||||
#define ALIBABACLOUD_IMAGEENHAN_MODEL_ASSESSEXPOSURERESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/imageenhan/ImageenhanExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Imageenhan
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_IMAGEENHAN_EXPORT AssessExposureResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct Data
|
||||
{
|
||||
float exposure;
|
||||
};
|
||||
|
||||
|
||||
AssessExposureResult();
|
||||
explicit AssessExposureResult(const std::string &payload);
|
||||
~AssessExposureResult();
|
||||
Data getData()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
Data data_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_IMAGEENHAN_MODEL_ASSESSEXPOSURERESULT_H_
|
||||
@@ -0,0 +1,48 @@
|
||||
/*
|
||||
* 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_IMAGEENHAN_MODEL_ASSESSSHARPNESSREQUEST_H_
|
||||
#define ALIBABACLOUD_IMAGEENHAN_MODEL_ASSESSSHARPNESSREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/imageenhan/ImageenhanExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Imageenhan
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_IMAGEENHAN_EXPORT AssessSharpnessRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
AssessSharpnessRequest();
|
||||
~AssessSharpnessRequest();
|
||||
|
||||
std::string getImageURL()const;
|
||||
void setImageURL(const std::string& imageURL);
|
||||
|
||||
private:
|
||||
std::string imageURL_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_IMAGEENHAN_MODEL_ASSESSSHARPNESSREQUEST_H_
|
||||
@@ -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_IMAGEENHAN_MODEL_ASSESSSHARPNESSRESULT_H_
|
||||
#define ALIBABACLOUD_IMAGEENHAN_MODEL_ASSESSSHARPNESSRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/imageenhan/ImageenhanExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Imageenhan
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_IMAGEENHAN_EXPORT AssessSharpnessResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct Data
|
||||
{
|
||||
float sharpness;
|
||||
};
|
||||
|
||||
|
||||
AssessSharpnessResult();
|
||||
explicit AssessSharpnessResult(const std::string &payload);
|
||||
~AssessSharpnessResult();
|
||||
Data getData()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
Data data_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_IMAGEENHAN_MODEL_ASSESSSHARPNESSRESULT_H_
|
||||
@@ -0,0 +1,54 @@
|
||||
/*
|
||||
* 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_IMAGEENHAN_MODEL_CHANGEIMAGESIZEREQUEST_H_
|
||||
#define ALIBABACLOUD_IMAGEENHAN_MODEL_CHANGEIMAGESIZEREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/imageenhan/ImageenhanExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Imageenhan
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_IMAGEENHAN_EXPORT ChangeImageSizeRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
ChangeImageSizeRequest();
|
||||
~ChangeImageSizeRequest();
|
||||
|
||||
std::string getUrl()const;
|
||||
void setUrl(const std::string& url);
|
||||
int getWidth()const;
|
||||
void setWidth(int width);
|
||||
int getHeight()const;
|
||||
void setHeight(int height);
|
||||
|
||||
private:
|
||||
std::string url_;
|
||||
int width_;
|
||||
int height_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_IMAGEENHAN_MODEL_CHANGEIMAGESIZEREQUEST_H_
|
||||
@@ -14,42 +14,41 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_FACEBODY_MODEL_DETECTIPCPEDESTRIANOPTIMIZEDRESULT_H_
|
||||
#define ALIBABACLOUD_FACEBODY_MODEL_DETECTIPCPEDESTRIANOPTIMIZEDRESULT_H_
|
||||
#ifndef ALIBABACLOUD_IMAGEENHAN_MODEL_CHANGEIMAGESIZERESULT_H_
|
||||
#define ALIBABACLOUD_IMAGEENHAN_MODEL_CHANGEIMAGESIZERESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/facebody/FacebodyExport.h>
|
||||
#include <alibabacloud/imageenhan/ImageenhanExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Facebody
|
||||
namespace Imageenhan
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_FACEBODY_EXPORT DetectIPCPedestrianOptimizedResult : public ServiceResult
|
||||
class ALIBABACLOUD_IMAGEENHAN_EXPORT ChangeImageSizeResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct Data
|
||||
{
|
||||
struct ImageInfoListItem
|
||||
struct RetainLocation
|
||||
{
|
||||
struct Element
|
||||
{
|
||||
float score;
|
||||
std::vector<std::string> boxes;
|
||||
};
|
||||
std::vector<ImageInfoListItem::Element> elements;
|
||||
int x;
|
||||
int y;
|
||||
int height;
|
||||
int width;
|
||||
};
|
||||
std::vector<ImageInfoListItem> imageInfoList;
|
||||
RetainLocation retainLocation;
|
||||
std::string url;
|
||||
};
|
||||
|
||||
|
||||
DetectIPCPedestrianOptimizedResult();
|
||||
explicit DetectIPCPedestrianOptimizedResult(const std::string &payload);
|
||||
~DetectIPCPedestrianOptimizedResult();
|
||||
ChangeImageSizeResult();
|
||||
explicit ChangeImageSizeResult(const std::string &payload);
|
||||
~ChangeImageSizeResult();
|
||||
Data getData()const;
|
||||
|
||||
protected:
|
||||
@@ -61,4 +60,4 @@ namespace AlibabaCloud
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_FACEBODY_MODEL_DETECTIPCPEDESTRIANOPTIMIZEDRESULT_H_
|
||||
#endif // !ALIBABACLOUD_IMAGEENHAN_MODEL_CHANGEIMAGESIZERESULT_H_
|
||||
@@ -0,0 +1,54 @@
|
||||
/*
|
||||
* 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_IMAGEENHAN_MODEL_ENHANCEIMAGECOLORREQUEST_H_
|
||||
#define ALIBABACLOUD_IMAGEENHAN_MODEL_ENHANCEIMAGECOLORREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/imageenhan/ImageenhanExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Imageenhan
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_IMAGEENHAN_EXPORT EnhanceImageColorRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
EnhanceImageColorRequest();
|
||||
~EnhanceImageColorRequest();
|
||||
|
||||
std::string getMode()const;
|
||||
void setMode(const std::string& mode);
|
||||
std::string getImageURL()const;
|
||||
void setImageURL(const std::string& imageURL);
|
||||
std::string getOutputFormat()const;
|
||||
void setOutputFormat(const std::string& outputFormat);
|
||||
|
||||
private:
|
||||
std::string mode_;
|
||||
std::string imageURL_;
|
||||
std::string outputFormat_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_IMAGEENHAN_MODEL_ENHANCEIMAGECOLORREQUEST_H_
|
||||
@@ -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_IMAGEENHAN_MODEL_ENHANCEIMAGECOLORRESULT_H_
|
||||
#define ALIBABACLOUD_IMAGEENHAN_MODEL_ENHANCEIMAGECOLORRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/imageenhan/ImageenhanExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Imageenhan
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_IMAGEENHAN_EXPORT EnhanceImageColorResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct Data
|
||||
{
|
||||
std::string imageURL;
|
||||
};
|
||||
|
||||
|
||||
EnhanceImageColorResult();
|
||||
explicit EnhanceImageColorResult(const std::string &payload);
|
||||
~EnhanceImageColorResult();
|
||||
Data getData()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
Data data_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_IMAGEENHAN_MODEL_ENHANCEIMAGECOLORRESULT_H_
|
||||
@@ -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.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_IMAGEENHAN_MODEL_EXTENDIMAGESTYLEREQUEST_H_
|
||||
#define ALIBABACLOUD_IMAGEENHAN_MODEL_EXTENDIMAGESTYLEREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/imageenhan/ImageenhanExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Imageenhan
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_IMAGEENHAN_EXPORT ExtendImageStyleRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
ExtendImageStyleRequest();
|
||||
~ExtendImageStyleRequest();
|
||||
|
||||
std::string getMajorUrl()const;
|
||||
void setMajorUrl(const std::string& majorUrl);
|
||||
std::string getStyleUrl()const;
|
||||
void setStyleUrl(const std::string& styleUrl);
|
||||
|
||||
private:
|
||||
std::string majorUrl_;
|
||||
std::string styleUrl_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_IMAGEENHAN_MODEL_EXTENDIMAGESTYLEREQUEST_H_
|
||||
@@ -0,0 +1,56 @@
|
||||
/*
|
||||
* 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_IMAGEENHAN_MODEL_EXTENDIMAGESTYLERESULT_H_
|
||||
#define ALIBABACLOUD_IMAGEENHAN_MODEL_EXTENDIMAGESTYLERESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/imageenhan/ImageenhanExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Imageenhan
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_IMAGEENHAN_EXPORT ExtendImageStyleResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct Data
|
||||
{
|
||||
std::string url;
|
||||
std::string majorUrl;
|
||||
};
|
||||
|
||||
|
||||
ExtendImageStyleResult();
|
||||
explicit ExtendImageStyleResult(const std::string &payload);
|
||||
~ExtendImageStyleResult();
|
||||
Data getData()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
Data data_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_IMAGEENHAN_MODEL_EXTENDIMAGESTYLERESULT_H_
|
||||
@@ -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.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_IMAGEENHAN_MODEL_GENERATEDYNAMICIMAGEREQUEST_H_
|
||||
#define ALIBABACLOUD_IMAGEENHAN_MODEL_GENERATEDYNAMICIMAGEREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/imageenhan/ImageenhanExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Imageenhan
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_IMAGEENHAN_EXPORT GenerateDynamicImageRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
GenerateDynamicImageRequest();
|
||||
~GenerateDynamicImageRequest();
|
||||
|
||||
std::string getUrl()const;
|
||||
void setUrl(const std::string& url);
|
||||
std::string getOperation()const;
|
||||
void setOperation(const std::string& operation);
|
||||
|
||||
private:
|
||||
std::string url_;
|
||||
std::string operation_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_IMAGEENHAN_MODEL_GENERATEDYNAMICIMAGEREQUEST_H_
|
||||
@@ -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_IMAGEENHAN_MODEL_GENERATEDYNAMICIMAGERESULT_H_
|
||||
#define ALIBABACLOUD_IMAGEENHAN_MODEL_GENERATEDYNAMICIMAGERESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/imageenhan/ImageenhanExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Imageenhan
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_IMAGEENHAN_EXPORT GenerateDynamicImageResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct Data
|
||||
{
|
||||
std::string url;
|
||||
};
|
||||
|
||||
|
||||
GenerateDynamicImageResult();
|
||||
explicit GenerateDynamicImageResult(const std::string &payload);
|
||||
~GenerateDynamicImageResult();
|
||||
Data getData()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
Data data_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_IMAGEENHAN_MODEL_GENERATEDYNAMICIMAGERESULT_H_
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user