Compare commits
11 Commits
BssOpenApi
...
dg-patch
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
31aec3f28f | ||
|
|
f3fbed5766 | ||
|
|
a81d0c4daa | ||
|
|
76821f71df | ||
|
|
4d618db251 | ||
|
|
5def51b35c | ||
|
|
740062e96f | ||
|
|
2d49d2072f | ||
|
|
1794d57757 | ||
|
|
2f7735992b | ||
|
|
c97337aa82 |
39
CHANGELOG
39
CHANGELOG
@@ -1,3 +1,42 @@
|
||||
2021-01-18 Version: patch
|
||||
- Generated 2019-03-27 for `dg`.
|
||||
|
||||
2021-01-18 Version: patch
|
||||
- Add a set of API to support device distribution management, including CreateProductDistributeJob, CreateDeviceDistributeJob, QueryDeviceDistributeJob, ListDeviceDistributeJob, QueryDeviceDistributeDetail, DeleteDeviceDistributeJob, ListDistributedDevice, ListDistributedProduct etc.
|
||||
|
||||
2021-01-18 Version: patch
|
||||
- Add a set of api to support device distribution management, including CreateProductDistributeJob, CreateDeviceDistributeJob, QueryDeviceDistributeJob, ListDeviceDistributeJob, QueryDeviceDistributeDetail, DeleteDeviceDistributeJob, ListDistributedDevice, ListDistributedProduct etc.
|
||||
|
||||
2021-01-18 Version: patch
|
||||
- Add ListMergeRequests api.
|
||||
- Add protected branch api, CreateRepositoryProtectedBranch and DeleteRepositoryProtectedBranch.
|
||||
- Add repository deploy key api, EnableRepositoryDeployKey and CreateRepositoryDeployKey.
|
||||
- Add UpdateRepository api.
|
||||
- Update GetUserInfo, support use OrganizationId param to get user organization name.
|
||||
|
||||
|
||||
2021-01-15 Version: patch
|
||||
- Add result value spanId for GetTrace api.
|
||||
|
||||
2021-01-15 Version: patch
|
||||
- Update Function.
|
||||
|
||||
2021-01-15 Version: patch
|
||||
- Update Function.
|
||||
|
||||
2021-01-15 Version: patch
|
||||
- Add API CreateSortScriptValidation.
|
||||
- Add parameter resourceGroupId to API ListAppGroups.
|
||||
|
||||
2021-01-15 Version: patch
|
||||
- Remove drcGuidRouteApi, ModifyDtsJobPassword API.
|
||||
|
||||
2021-01-15 Version: patch
|
||||
- Generated 2016-11-01 for `live`.
|
||||
|
||||
2021-01-14 Version: patch
|
||||
- Add function.
|
||||
|
||||
2021-01-14 Version: patch
|
||||
- Add BillingDate support in QueryAccontBill.
|
||||
- Add SplitAccountId, SplitAccountName, SplitBillingCycle, SplitProductDetail, SplitCommodityCode, ServicePeriodUnit support in QuerySplitItemBill.
|
||||
|
||||
@@ -27,10 +27,14 @@ set(cdrs_public_header_model
|
||||
include/alibabacloud/cdrs/model/BindDeviceResult.h
|
||||
include/alibabacloud/cdrs/model/CreateProjectRequest.h
|
||||
include/alibabacloud/cdrs/model/CreateProjectResult.h
|
||||
include/alibabacloud/cdrs/model/DetectTrajectoryRegularPatternRequest.h
|
||||
include/alibabacloud/cdrs/model/DetectTrajectoryRegularPatternResult.h
|
||||
include/alibabacloud/cdrs/model/GetCdrsMonitorListRequest.h
|
||||
include/alibabacloud/cdrs/model/GetCdrsMonitorListResult.h
|
||||
include/alibabacloud/cdrs/model/GetCdrsMonitorResultRequest.h
|
||||
include/alibabacloud/cdrs/model/GetCdrsMonitorResultResult.h
|
||||
include/alibabacloud/cdrs/model/IntersectTrajectoryRequest.h
|
||||
include/alibabacloud/cdrs/model/IntersectTrajectoryResult.h
|
||||
include/alibabacloud/cdrs/model/ListAreaHotSpotMetricsRequest.h
|
||||
include/alibabacloud/cdrs/model/ListAreaHotSpotMetricsResult.h
|
||||
include/alibabacloud/cdrs/model/ListCityMapAoisRequest.h
|
||||
@@ -103,6 +107,14 @@ set(cdrs_public_header_model
|
||||
include/alibabacloud/cdrs/model/PaginateDeviceResult.h
|
||||
include/alibabacloud/cdrs/model/PaginateProjectRequest.h
|
||||
include/alibabacloud/cdrs/model/PaginateProjectResult.h
|
||||
include/alibabacloud/cdrs/model/PredictTrajectoryDestinationRequest.h
|
||||
include/alibabacloud/cdrs/model/PredictTrajectoryDestinationResult.h
|
||||
include/alibabacloud/cdrs/model/QueryTrajectoryByIdRequest.h
|
||||
include/alibabacloud/cdrs/model/QueryTrajectoryByIdResult.h
|
||||
include/alibabacloud/cdrs/model/RecallTrajectoryByCoordinateRequest.h
|
||||
include/alibabacloud/cdrs/model/RecallTrajectoryByCoordinateResult.h
|
||||
include/alibabacloud/cdrs/model/RecallTrajectoryByIdRequest.h
|
||||
include/alibabacloud/cdrs/model/RecallTrajectoryByIdResult.h
|
||||
include/alibabacloud/cdrs/model/RecognizeImageRequest.h
|
||||
include/alibabacloud/cdrs/model/RecognizeImageResult.h
|
||||
include/alibabacloud/cdrs/model/SearchObjectRequest.h
|
||||
@@ -114,7 +126,9 @@ set(cdrs_public_header_model
|
||||
include/alibabacloud/cdrs/model/UpdateCdrsMonitorRequest.h
|
||||
include/alibabacloud/cdrs/model/UpdateCdrsMonitorResult.h
|
||||
include/alibabacloud/cdrs/model/UpdateProjectRequest.h
|
||||
include/alibabacloud/cdrs/model/UpdateProjectResult.h )
|
||||
include/alibabacloud/cdrs/model/UpdateProjectResult.h
|
||||
include/alibabacloud/cdrs/model/ValidateTrajectoryRequest.h
|
||||
include/alibabacloud/cdrs/model/ValidateTrajectoryResult.h )
|
||||
|
||||
set(cdrs_src
|
||||
src/CDRSClient.cc
|
||||
@@ -124,10 +138,14 @@ set(cdrs_src
|
||||
src/model/BindDeviceResult.cc
|
||||
src/model/CreateProjectRequest.cc
|
||||
src/model/CreateProjectResult.cc
|
||||
src/model/DetectTrajectoryRegularPatternRequest.cc
|
||||
src/model/DetectTrajectoryRegularPatternResult.cc
|
||||
src/model/GetCdrsMonitorListRequest.cc
|
||||
src/model/GetCdrsMonitorListResult.cc
|
||||
src/model/GetCdrsMonitorResultRequest.cc
|
||||
src/model/GetCdrsMonitorResultResult.cc
|
||||
src/model/IntersectTrajectoryRequest.cc
|
||||
src/model/IntersectTrajectoryResult.cc
|
||||
src/model/ListAreaHotSpotMetricsRequest.cc
|
||||
src/model/ListAreaHotSpotMetricsResult.cc
|
||||
src/model/ListCityMapAoisRequest.cc
|
||||
@@ -200,6 +218,14 @@ set(cdrs_src
|
||||
src/model/PaginateDeviceResult.cc
|
||||
src/model/PaginateProjectRequest.cc
|
||||
src/model/PaginateProjectResult.cc
|
||||
src/model/PredictTrajectoryDestinationRequest.cc
|
||||
src/model/PredictTrajectoryDestinationResult.cc
|
||||
src/model/QueryTrajectoryByIdRequest.cc
|
||||
src/model/QueryTrajectoryByIdResult.cc
|
||||
src/model/RecallTrajectoryByCoordinateRequest.cc
|
||||
src/model/RecallTrajectoryByCoordinateResult.cc
|
||||
src/model/RecallTrajectoryByIdRequest.cc
|
||||
src/model/RecallTrajectoryByIdResult.cc
|
||||
src/model/RecognizeImageRequest.cc
|
||||
src/model/RecognizeImageResult.cc
|
||||
src/model/SearchObjectRequest.cc
|
||||
@@ -211,7 +237,9 @@ set(cdrs_src
|
||||
src/model/UpdateCdrsMonitorRequest.cc
|
||||
src/model/UpdateCdrsMonitorResult.cc
|
||||
src/model/UpdateProjectRequest.cc
|
||||
src/model/UpdateProjectResult.cc )
|
||||
src/model/UpdateProjectResult.cc
|
||||
src/model/ValidateTrajectoryRequest.cc
|
||||
src/model/ValidateTrajectoryResult.cc )
|
||||
|
||||
add_library(cdrs ${LIB_TYPE}
|
||||
${cdrs_public_header}
|
||||
|
||||
@@ -28,10 +28,14 @@
|
||||
#include "model/BindDeviceResult.h"
|
||||
#include "model/CreateProjectRequest.h"
|
||||
#include "model/CreateProjectResult.h"
|
||||
#include "model/DetectTrajectoryRegularPatternRequest.h"
|
||||
#include "model/DetectTrajectoryRegularPatternResult.h"
|
||||
#include "model/GetCdrsMonitorListRequest.h"
|
||||
#include "model/GetCdrsMonitorListResult.h"
|
||||
#include "model/GetCdrsMonitorResultRequest.h"
|
||||
#include "model/GetCdrsMonitorResultResult.h"
|
||||
#include "model/IntersectTrajectoryRequest.h"
|
||||
#include "model/IntersectTrajectoryResult.h"
|
||||
#include "model/ListAreaHotSpotMetricsRequest.h"
|
||||
#include "model/ListAreaHotSpotMetricsResult.h"
|
||||
#include "model/ListCityMapAoisRequest.h"
|
||||
@@ -104,6 +108,14 @@
|
||||
#include "model/PaginateDeviceResult.h"
|
||||
#include "model/PaginateProjectRequest.h"
|
||||
#include "model/PaginateProjectResult.h"
|
||||
#include "model/PredictTrajectoryDestinationRequest.h"
|
||||
#include "model/PredictTrajectoryDestinationResult.h"
|
||||
#include "model/QueryTrajectoryByIdRequest.h"
|
||||
#include "model/QueryTrajectoryByIdResult.h"
|
||||
#include "model/RecallTrajectoryByCoordinateRequest.h"
|
||||
#include "model/RecallTrajectoryByCoordinateResult.h"
|
||||
#include "model/RecallTrajectoryByIdRequest.h"
|
||||
#include "model/RecallTrajectoryByIdResult.h"
|
||||
#include "model/RecognizeImageRequest.h"
|
||||
#include "model/RecognizeImageResult.h"
|
||||
#include "model/SearchObjectRequest.h"
|
||||
@@ -116,6 +128,8 @@
|
||||
#include "model/UpdateCdrsMonitorResult.h"
|
||||
#include "model/UpdateProjectRequest.h"
|
||||
#include "model/UpdateProjectResult.h"
|
||||
#include "model/ValidateTrajectoryRequest.h"
|
||||
#include "model/ValidateTrajectoryResult.h"
|
||||
|
||||
|
||||
namespace AlibabaCloud
|
||||
@@ -134,12 +148,18 @@ namespace AlibabaCloud
|
||||
typedef Outcome<Error, Model::CreateProjectResult> CreateProjectOutcome;
|
||||
typedef std::future<CreateProjectOutcome> CreateProjectOutcomeCallable;
|
||||
typedef std::function<void(const CDRSClient*, const Model::CreateProjectRequest&, const CreateProjectOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> CreateProjectAsyncHandler;
|
||||
typedef Outcome<Error, Model::DetectTrajectoryRegularPatternResult> DetectTrajectoryRegularPatternOutcome;
|
||||
typedef std::future<DetectTrajectoryRegularPatternOutcome> DetectTrajectoryRegularPatternOutcomeCallable;
|
||||
typedef std::function<void(const CDRSClient*, const Model::DetectTrajectoryRegularPatternRequest&, const DetectTrajectoryRegularPatternOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DetectTrajectoryRegularPatternAsyncHandler;
|
||||
typedef Outcome<Error, Model::GetCdrsMonitorListResult> GetCdrsMonitorListOutcome;
|
||||
typedef std::future<GetCdrsMonitorListOutcome> GetCdrsMonitorListOutcomeCallable;
|
||||
typedef std::function<void(const CDRSClient*, const Model::GetCdrsMonitorListRequest&, const GetCdrsMonitorListOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetCdrsMonitorListAsyncHandler;
|
||||
typedef Outcome<Error, Model::GetCdrsMonitorResultResult> GetCdrsMonitorResultOutcome;
|
||||
typedef std::future<GetCdrsMonitorResultOutcome> GetCdrsMonitorResultOutcomeCallable;
|
||||
typedef std::function<void(const CDRSClient*, const Model::GetCdrsMonitorResultRequest&, const GetCdrsMonitorResultOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetCdrsMonitorResultAsyncHandler;
|
||||
typedef Outcome<Error, Model::IntersectTrajectoryResult> IntersectTrajectoryOutcome;
|
||||
typedef std::future<IntersectTrajectoryOutcome> IntersectTrajectoryOutcomeCallable;
|
||||
typedef std::function<void(const CDRSClient*, const Model::IntersectTrajectoryRequest&, const IntersectTrajectoryOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> IntersectTrajectoryAsyncHandler;
|
||||
typedef Outcome<Error, Model::ListAreaHotSpotMetricsResult> ListAreaHotSpotMetricsOutcome;
|
||||
typedef std::future<ListAreaHotSpotMetricsOutcome> ListAreaHotSpotMetricsOutcomeCallable;
|
||||
typedef std::function<void(const CDRSClient*, const Model::ListAreaHotSpotMetricsRequest&, const ListAreaHotSpotMetricsOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ListAreaHotSpotMetricsAsyncHandler;
|
||||
@@ -248,6 +268,18 @@ namespace AlibabaCloud
|
||||
typedef Outcome<Error, Model::PaginateProjectResult> PaginateProjectOutcome;
|
||||
typedef std::future<PaginateProjectOutcome> PaginateProjectOutcomeCallable;
|
||||
typedef std::function<void(const CDRSClient*, const Model::PaginateProjectRequest&, const PaginateProjectOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> PaginateProjectAsyncHandler;
|
||||
typedef Outcome<Error, Model::PredictTrajectoryDestinationResult> PredictTrajectoryDestinationOutcome;
|
||||
typedef std::future<PredictTrajectoryDestinationOutcome> PredictTrajectoryDestinationOutcomeCallable;
|
||||
typedef std::function<void(const CDRSClient*, const Model::PredictTrajectoryDestinationRequest&, const PredictTrajectoryDestinationOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> PredictTrajectoryDestinationAsyncHandler;
|
||||
typedef Outcome<Error, Model::QueryTrajectoryByIdResult> QueryTrajectoryByIdOutcome;
|
||||
typedef std::future<QueryTrajectoryByIdOutcome> QueryTrajectoryByIdOutcomeCallable;
|
||||
typedef std::function<void(const CDRSClient*, const Model::QueryTrajectoryByIdRequest&, const QueryTrajectoryByIdOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> QueryTrajectoryByIdAsyncHandler;
|
||||
typedef Outcome<Error, Model::RecallTrajectoryByCoordinateResult> RecallTrajectoryByCoordinateOutcome;
|
||||
typedef std::future<RecallTrajectoryByCoordinateOutcome> RecallTrajectoryByCoordinateOutcomeCallable;
|
||||
typedef std::function<void(const CDRSClient*, const Model::RecallTrajectoryByCoordinateRequest&, const RecallTrajectoryByCoordinateOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> RecallTrajectoryByCoordinateAsyncHandler;
|
||||
typedef Outcome<Error, Model::RecallTrajectoryByIdResult> RecallTrajectoryByIdOutcome;
|
||||
typedef std::future<RecallTrajectoryByIdOutcome> RecallTrajectoryByIdOutcomeCallable;
|
||||
typedef std::function<void(const CDRSClient*, const Model::RecallTrajectoryByIdRequest&, const RecallTrajectoryByIdOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> RecallTrajectoryByIdAsyncHandler;
|
||||
typedef Outcome<Error, Model::RecognizeImageResult> RecognizeImageOutcome;
|
||||
typedef std::future<RecognizeImageOutcome> RecognizeImageOutcomeCallable;
|
||||
typedef std::function<void(const CDRSClient*, const Model::RecognizeImageRequest&, const RecognizeImageOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> RecognizeImageAsyncHandler;
|
||||
@@ -266,6 +298,9 @@ namespace AlibabaCloud
|
||||
typedef Outcome<Error, Model::UpdateProjectResult> UpdateProjectOutcome;
|
||||
typedef std::future<UpdateProjectOutcome> UpdateProjectOutcomeCallable;
|
||||
typedef std::function<void(const CDRSClient*, const Model::UpdateProjectRequest&, const UpdateProjectOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> UpdateProjectAsyncHandler;
|
||||
typedef Outcome<Error, Model::ValidateTrajectoryResult> ValidateTrajectoryOutcome;
|
||||
typedef std::future<ValidateTrajectoryOutcome> ValidateTrajectoryOutcomeCallable;
|
||||
typedef std::function<void(const CDRSClient*, const Model::ValidateTrajectoryRequest&, const ValidateTrajectoryOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ValidateTrajectoryAsyncHandler;
|
||||
|
||||
CDRSClient(const Credentials &credentials, const ClientConfiguration &configuration);
|
||||
CDRSClient(const std::shared_ptr<CredentialsProvider> &credentialsProvider, const ClientConfiguration &configuration);
|
||||
@@ -280,12 +315,18 @@ namespace AlibabaCloud
|
||||
CreateProjectOutcome createProject(const Model::CreateProjectRequest &request)const;
|
||||
void createProjectAsync(const Model::CreateProjectRequest& request, const CreateProjectAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
CreateProjectOutcomeCallable createProjectCallable(const Model::CreateProjectRequest& request) const;
|
||||
DetectTrajectoryRegularPatternOutcome detectTrajectoryRegularPattern(const Model::DetectTrajectoryRegularPatternRequest &request)const;
|
||||
void detectTrajectoryRegularPatternAsync(const Model::DetectTrajectoryRegularPatternRequest& request, const DetectTrajectoryRegularPatternAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DetectTrajectoryRegularPatternOutcomeCallable detectTrajectoryRegularPatternCallable(const Model::DetectTrajectoryRegularPatternRequest& request) const;
|
||||
GetCdrsMonitorListOutcome getCdrsMonitorList(const Model::GetCdrsMonitorListRequest &request)const;
|
||||
void getCdrsMonitorListAsync(const Model::GetCdrsMonitorListRequest& request, const GetCdrsMonitorListAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
GetCdrsMonitorListOutcomeCallable getCdrsMonitorListCallable(const Model::GetCdrsMonitorListRequest& request) const;
|
||||
GetCdrsMonitorResultOutcome getCdrsMonitorResult(const Model::GetCdrsMonitorResultRequest &request)const;
|
||||
void getCdrsMonitorResultAsync(const Model::GetCdrsMonitorResultRequest& request, const GetCdrsMonitorResultAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
GetCdrsMonitorResultOutcomeCallable getCdrsMonitorResultCallable(const Model::GetCdrsMonitorResultRequest& request) const;
|
||||
IntersectTrajectoryOutcome intersectTrajectory(const Model::IntersectTrajectoryRequest &request)const;
|
||||
void intersectTrajectoryAsync(const Model::IntersectTrajectoryRequest& request, const IntersectTrajectoryAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
IntersectTrajectoryOutcomeCallable intersectTrajectoryCallable(const Model::IntersectTrajectoryRequest& request) const;
|
||||
ListAreaHotSpotMetricsOutcome listAreaHotSpotMetrics(const Model::ListAreaHotSpotMetricsRequest &request)const;
|
||||
void listAreaHotSpotMetricsAsync(const Model::ListAreaHotSpotMetricsRequest& request, const ListAreaHotSpotMetricsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
ListAreaHotSpotMetricsOutcomeCallable listAreaHotSpotMetricsCallable(const Model::ListAreaHotSpotMetricsRequest& request) const;
|
||||
@@ -394,6 +435,18 @@ namespace AlibabaCloud
|
||||
PaginateProjectOutcome paginateProject(const Model::PaginateProjectRequest &request)const;
|
||||
void paginateProjectAsync(const Model::PaginateProjectRequest& request, const PaginateProjectAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
PaginateProjectOutcomeCallable paginateProjectCallable(const Model::PaginateProjectRequest& request) const;
|
||||
PredictTrajectoryDestinationOutcome predictTrajectoryDestination(const Model::PredictTrajectoryDestinationRequest &request)const;
|
||||
void predictTrajectoryDestinationAsync(const Model::PredictTrajectoryDestinationRequest& request, const PredictTrajectoryDestinationAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
PredictTrajectoryDestinationOutcomeCallable predictTrajectoryDestinationCallable(const Model::PredictTrajectoryDestinationRequest& request) const;
|
||||
QueryTrajectoryByIdOutcome queryTrajectoryById(const Model::QueryTrajectoryByIdRequest &request)const;
|
||||
void queryTrajectoryByIdAsync(const Model::QueryTrajectoryByIdRequest& request, const QueryTrajectoryByIdAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
QueryTrajectoryByIdOutcomeCallable queryTrajectoryByIdCallable(const Model::QueryTrajectoryByIdRequest& request) const;
|
||||
RecallTrajectoryByCoordinateOutcome recallTrajectoryByCoordinate(const Model::RecallTrajectoryByCoordinateRequest &request)const;
|
||||
void recallTrajectoryByCoordinateAsync(const Model::RecallTrajectoryByCoordinateRequest& request, const RecallTrajectoryByCoordinateAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
RecallTrajectoryByCoordinateOutcomeCallable recallTrajectoryByCoordinateCallable(const Model::RecallTrajectoryByCoordinateRequest& request) const;
|
||||
RecallTrajectoryByIdOutcome recallTrajectoryById(const Model::RecallTrajectoryByIdRequest &request)const;
|
||||
void recallTrajectoryByIdAsync(const Model::RecallTrajectoryByIdRequest& request, const RecallTrajectoryByIdAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
RecallTrajectoryByIdOutcomeCallable recallTrajectoryByIdCallable(const Model::RecallTrajectoryByIdRequest& request) const;
|
||||
RecognizeImageOutcome recognizeImage(const Model::RecognizeImageRequest &request)const;
|
||||
void recognizeImageAsync(const Model::RecognizeImageRequest& request, const RecognizeImageAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
RecognizeImageOutcomeCallable recognizeImageCallable(const Model::RecognizeImageRequest& request) const;
|
||||
@@ -412,6 +465,9 @@ namespace AlibabaCloud
|
||||
UpdateProjectOutcome updateProject(const Model::UpdateProjectRequest &request)const;
|
||||
void updateProjectAsync(const Model::UpdateProjectRequest& request, const UpdateProjectAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
UpdateProjectOutcomeCallable updateProjectCallable(const Model::UpdateProjectRequest& request) const;
|
||||
ValidateTrajectoryOutcome validateTrajectory(const Model::ValidateTrajectoryRequest &request)const;
|
||||
void validateTrajectoryAsync(const Model::ValidateTrajectoryRequest& request, const ValidateTrajectoryAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
ValidateTrajectoryOutcomeCallable validateTrajectoryCallable(const Model::ValidateTrajectoryRequest& request) const;
|
||||
|
||||
private:
|
||||
std::shared_ptr<EndpointProvider> endpointProvider_;
|
||||
|
||||
@@ -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_CDRS_MODEL_DETECTTRAJECTORYREGULARPATTERNREQUEST_H_
|
||||
#define ALIBABACLOUD_CDRS_MODEL_DETECTTRAJECTORYREGULARPATTERNREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/cdrs/CDRSExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace CDRS
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_CDRS_EXPORT DetectTrajectoryRegularPatternRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
DetectTrajectoryRegularPatternRequest();
|
||||
~DetectTrajectoryRegularPatternRequest();
|
||||
|
||||
std::string getPredictDate()const;
|
||||
void setPredictDate(const std::string& predictDate);
|
||||
std::string getCorpId()const;
|
||||
void setCorpId(const std::string& corpId);
|
||||
std::string getIdValue()const;
|
||||
void setIdValue(const std::string& idValue);
|
||||
std::string getIdType()const;
|
||||
void setIdType(const std::string& idType);
|
||||
|
||||
private:
|
||||
std::string predictDate_;
|
||||
std::string corpId_;
|
||||
std::string idValue_;
|
||||
std::string idType_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_CDRS_MODEL_DETECTTRAJECTORYREGULARPATTERNREQUEST_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_CDRS_MODEL_DETECTTRAJECTORYREGULARPATTERNRESULT_H_
|
||||
#define ALIBABACLOUD_CDRS_MODEL_DETECTTRAJECTORYREGULARPATTERNRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/cdrs/CDRSExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace CDRS
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_CDRS_EXPORT DetectTrajectoryRegularPatternResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
|
||||
|
||||
DetectTrajectoryRegularPatternResult();
|
||||
explicit DetectTrajectoryRegularPatternResult(const std::string &payload);
|
||||
~DetectTrajectoryRegularPatternResult();
|
||||
std::string getMessage()const;
|
||||
std::string getData()const;
|
||||
int getCode()const;
|
||||
bool getSuccess()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::string message_;
|
||||
std::string data_;
|
||||
int code_;
|
||||
bool success_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_CDRS_MODEL_DETECTTRAJECTORYREGULARPATTERNRESULT_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_CDRS_MODEL_INTERSECTTRAJECTORYREQUEST_H_
|
||||
#define ALIBABACLOUD_CDRS_MODEL_INTERSECTTRAJECTORYREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/cdrs/CDRSExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace CDRS
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_CDRS_EXPORT IntersectTrajectoryRequest : public RpcServiceRequest
|
||||
{
|
||||
public:
|
||||
struct IdList
|
||||
{
|
||||
std::string idType;
|
||||
std::string idValue;
|
||||
};
|
||||
|
||||
public:
|
||||
IntersectTrajectoryRequest();
|
||||
~IntersectTrajectoryRequest();
|
||||
|
||||
std::string getCorpId()const;
|
||||
void setCorpId(const std::string& corpId);
|
||||
std::string getEndTime()const;
|
||||
void setEndTime(const std::string& endTime);
|
||||
int getDeltaDistance()const;
|
||||
void setDeltaDistance(int deltaDistance);
|
||||
std::string getStartTime()const;
|
||||
void setStartTime(const std::string& startTime);
|
||||
int getDeltaTime()const;
|
||||
void setDeltaTime(int deltaTime);
|
||||
std::vector<IdList> getIdList()const;
|
||||
void setIdList(const std::vector<IdList>& idList);
|
||||
|
||||
private:
|
||||
std::string corpId_;
|
||||
std::string endTime_;
|
||||
int deltaDistance_;
|
||||
std::string startTime_;
|
||||
int deltaTime_;
|
||||
std::vector<IdList> idList_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_CDRS_MODEL_INTERSECTTRAJECTORYREQUEST_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_CDRS_MODEL_INTERSECTTRAJECTORYRESULT_H_
|
||||
#define ALIBABACLOUD_CDRS_MODEL_INTERSECTTRAJECTORYRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/cdrs/CDRSExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace CDRS
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_CDRS_EXPORT IntersectTrajectoryResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
|
||||
|
||||
IntersectTrajectoryResult();
|
||||
explicit IntersectTrajectoryResult(const std::string &payload);
|
||||
~IntersectTrajectoryResult();
|
||||
std::string getMessage()const;
|
||||
std::string getData()const;
|
||||
int getCode()const;
|
||||
bool getSuccess()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::string message_;
|
||||
std::string data_;
|
||||
int code_;
|
||||
bool success_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_CDRS_MODEL_INTERSECTTRAJECTORYRESULT_H_
|
||||
@@ -35,16 +35,18 @@ namespace AlibabaCloud
|
||||
struct DataItem
|
||||
{
|
||||
std::string startTargetImage;
|
||||
std::string sourceUrl;
|
||||
std::string startSourceImage;
|
||||
std::string corpId;
|
||||
std::string personId;
|
||||
std::string deviceId;
|
||||
std::string endTargetImage;
|
||||
std::string startTime;
|
||||
std::string endSourceImage;
|
||||
std::string targetUrl;
|
||||
std::string date;
|
||||
std::string lastTime;
|
||||
std::string groupId;
|
||||
std::string personId;
|
||||
std::string endSourceImage;
|
||||
std::string lastTime;
|
||||
};
|
||||
|
||||
|
||||
|
||||
@@ -35,6 +35,8 @@ namespace AlibabaCloud
|
||||
ListPersonDetailsRequest();
|
||||
~ListPersonDetailsRequest();
|
||||
|
||||
std::string getSchema()const;
|
||||
void setSchema(const std::string& schema);
|
||||
std::string getCorpId()const;
|
||||
void setCorpId(const std::string& corpId);
|
||||
std::string getEndTime()const;
|
||||
@@ -49,6 +51,7 @@ namespace AlibabaCloud
|
||||
void setPersonId(const std::string& personId);
|
||||
|
||||
private:
|
||||
std::string schema_;
|
||||
std::string corpId_;
|
||||
std::string endTime_;
|
||||
std::string startTime_;
|
||||
|
||||
@@ -35,12 +35,14 @@ namespace AlibabaCloud
|
||||
struct Datas
|
||||
{
|
||||
std::string profession;
|
||||
std::string sourceUrl;
|
||||
std::string personId;
|
||||
std::string address;
|
||||
std::string transportation;
|
||||
std::string updateTime;
|
||||
std::string personType;
|
||||
std::string gender;
|
||||
std::string targetUrl;
|
||||
std::string age;
|
||||
std::string hotSpotAddress;
|
||||
};
|
||||
|
||||
@@ -35,6 +35,8 @@ namespace AlibabaCloud
|
||||
ListPersonTagRequest();
|
||||
~ListPersonTagRequest();
|
||||
|
||||
std::string getSchema()const;
|
||||
void setSchema(const std::string& schema);
|
||||
std::string getCorpId()const;
|
||||
void setCorpId(const std::string& corpId);
|
||||
long getPageNumber()const;
|
||||
@@ -45,6 +47,7 @@ namespace AlibabaCloud
|
||||
void setPageSize(long pageSize);
|
||||
|
||||
private:
|
||||
std::string schema_;
|
||||
std::string corpId_;
|
||||
long pageNumber_;
|
||||
std::string tagCode_;
|
||||
|
||||
@@ -35,19 +35,28 @@ namespace AlibabaCloud
|
||||
ListPersonTopRequest();
|
||||
~ListPersonTopRequest();
|
||||
|
||||
std::string getSchema()const;
|
||||
void setSchema(const std::string& schema);
|
||||
std::string getCorpId()const;
|
||||
void setCorpId(const std::string& corpId);
|
||||
std::string getEndTime()const;
|
||||
void setEndTime(const std::string& endTime);
|
||||
std::string getStartTime()const;
|
||||
void setStartTime(const std::string& startTime);
|
||||
std::string getPageNumber()const;
|
||||
void setPageNumber(const std::string& pageNumber);
|
||||
std::string getPageSize()const;
|
||||
void setPageSize(const std::string& pageSize);
|
||||
std::string getPersonId()const;
|
||||
void setPersonId(const std::string& personId);
|
||||
|
||||
private:
|
||||
std::string schema_;
|
||||
std::string corpId_;
|
||||
std::string endTime_;
|
||||
std::string startTime_;
|
||||
std::string pageNumber_;
|
||||
std::string pageSize_;
|
||||
std::string personId_;
|
||||
|
||||
};
|
||||
|
||||
@@ -32,7 +32,7 @@ namespace AlibabaCloud
|
||||
class ALIBABACLOUD_CDRS_EXPORT ListPersonTopResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct Datas
|
||||
struct DataItem
|
||||
{
|
||||
std::string corpId;
|
||||
std::string personId;
|
||||
@@ -50,7 +50,7 @@ namespace AlibabaCloud
|
||||
std::string getMessage()const;
|
||||
long getPageSize()const;
|
||||
long getPageNumber()const;
|
||||
std::vector<Datas> getData()const;
|
||||
std::vector<DataItem> getData()const;
|
||||
std::string getCode()const;
|
||||
|
||||
protected:
|
||||
@@ -60,7 +60,7 @@ namespace AlibabaCloud
|
||||
std::string message_;
|
||||
long pageSize_;
|
||||
long pageNumber_;
|
||||
std::vector<Datas> data_;
|
||||
std::vector<DataItem> data_;
|
||||
std::string code_;
|
||||
|
||||
};
|
||||
|
||||
@@ -35,6 +35,8 @@ namespace AlibabaCloud
|
||||
ListPersonTrackRequest();
|
||||
~ListPersonTrackRequest();
|
||||
|
||||
std::string getSchema()const;
|
||||
void setSchema(const std::string& schema);
|
||||
std::string getCorpId()const;
|
||||
void setCorpId(const std::string& corpId);
|
||||
std::string getEndTime()const;
|
||||
@@ -49,6 +51,7 @@ namespace AlibabaCloud
|
||||
void setPersonId(const std::string& personId);
|
||||
|
||||
private:
|
||||
std::string schema_;
|
||||
std::string corpId_;
|
||||
std::string endTime_;
|
||||
std::string startTime_;
|
||||
|
||||
@@ -36,11 +36,13 @@ namespace AlibabaCloud
|
||||
{
|
||||
std::string order;
|
||||
std::string picUrlPath;
|
||||
std::string sourceUrl;
|
||||
std::string corpId;
|
||||
std::string rightBottomX;
|
||||
std::string targetPicUrlPath;
|
||||
std::string rightBottomY;
|
||||
std::string latitude;
|
||||
std::string targetUrl;
|
||||
std::string leftTopY;
|
||||
std::string leftTopX;
|
||||
std::string longitude;
|
||||
|
||||
@@ -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_CDRS_MODEL_PREDICTTRAJECTORYDESTINATIONREQUEST_H_
|
||||
#define ALIBABACLOUD_CDRS_MODEL_PREDICTTRAJECTORYDESTINATIONREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/cdrs/CDRSExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace CDRS
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_CDRS_EXPORT PredictTrajectoryDestinationRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
PredictTrajectoryDestinationRequest();
|
||||
~PredictTrajectoryDestinationRequest();
|
||||
|
||||
std::string getCorpId()const;
|
||||
void setCorpId(const std::string& corpId);
|
||||
std::string getIdValue()const;
|
||||
void setIdValue(const std::string& idValue);
|
||||
std::string getIdType()const;
|
||||
void setIdType(const std::string& idType);
|
||||
int getPredictTimeSpan()const;
|
||||
void setPredictTimeSpan(int predictTimeSpan);
|
||||
|
||||
private:
|
||||
std::string corpId_;
|
||||
std::string idValue_;
|
||||
std::string idType_;
|
||||
int predictTimeSpan_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_CDRS_MODEL_PREDICTTRAJECTORYDESTINATIONREQUEST_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_CDRS_MODEL_PREDICTTRAJECTORYDESTINATIONRESULT_H_
|
||||
#define ALIBABACLOUD_CDRS_MODEL_PREDICTTRAJECTORYDESTINATIONRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/cdrs/CDRSExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace CDRS
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_CDRS_EXPORT PredictTrajectoryDestinationResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
|
||||
|
||||
PredictTrajectoryDestinationResult();
|
||||
explicit PredictTrajectoryDestinationResult(const std::string &payload);
|
||||
~PredictTrajectoryDestinationResult();
|
||||
std::string getMessage()const;
|
||||
std::string getData()const;
|
||||
int getCode()const;
|
||||
bool getSuccess()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::string message_;
|
||||
std::string data_;
|
||||
int code_;
|
||||
bool success_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_CDRS_MODEL_PREDICTTRAJECTORYDESTINATIONRESULT_H_
|
||||
@@ -0,0 +1,70 @@
|
||||
/*
|
||||
* 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_CDRS_MODEL_QUERYTRAJECTORYBYIDREQUEST_H_
|
||||
#define ALIBABACLOUD_CDRS_MODEL_QUERYTRAJECTORYBYIDREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/cdrs/CDRSExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace CDRS
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_CDRS_EXPORT QueryTrajectoryByIdRequest : public RpcServiceRequest
|
||||
{
|
||||
public:
|
||||
struct DeviceList
|
||||
{
|
||||
std::string deviceId;
|
||||
};
|
||||
struct IdList
|
||||
{
|
||||
std::string idType;
|
||||
std::string idValue;
|
||||
};
|
||||
|
||||
public:
|
||||
QueryTrajectoryByIdRequest();
|
||||
~QueryTrajectoryByIdRequest();
|
||||
|
||||
std::string getCorpId()const;
|
||||
void setCorpId(const std::string& corpId);
|
||||
std::string getEndTime()const;
|
||||
void setEndTime(const std::string& endTime);
|
||||
std::string getStartTime()const;
|
||||
void setStartTime(const std::string& startTime);
|
||||
std::vector<DeviceList> getDeviceList()const;
|
||||
void setDeviceList(const std::vector<DeviceList>& deviceList);
|
||||
std::vector<IdList> getIdList()const;
|
||||
void setIdList(const std::vector<IdList>& idList);
|
||||
|
||||
private:
|
||||
std::string corpId_;
|
||||
std::string endTime_;
|
||||
std::string startTime_;
|
||||
std::vector<DeviceList> deviceList_;
|
||||
std::vector<IdList> idList_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_CDRS_MODEL_QUERYTRAJECTORYBYIDREQUEST_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_CDRS_MODEL_QUERYTRAJECTORYBYIDRESULT_H_
|
||||
#define ALIBABACLOUD_CDRS_MODEL_QUERYTRAJECTORYBYIDRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/cdrs/CDRSExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace CDRS
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_CDRS_EXPORT QueryTrajectoryByIdResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
|
||||
|
||||
QueryTrajectoryByIdResult();
|
||||
explicit QueryTrajectoryByIdResult(const std::string &payload);
|
||||
~QueryTrajectoryByIdResult();
|
||||
std::string getMessage()const;
|
||||
std::string getData()const;
|
||||
int getCode()const;
|
||||
bool getSuccess()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::string message_;
|
||||
std::string data_;
|
||||
int code_;
|
||||
bool success_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_CDRS_MODEL_QUERYTRAJECTORYBYIDRESULT_H_
|
||||
@@ -0,0 +1,75 @@
|
||||
/*
|
||||
* 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_CDRS_MODEL_RECALLTRAJECTORYBYCOORDINATEREQUEST_H_
|
||||
#define ALIBABACLOUD_CDRS_MODEL_RECALLTRAJECTORYBYCOORDINATEREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/cdrs/CDRSExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace CDRS
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_CDRS_EXPORT RecallTrajectoryByCoordinateRequest : public RpcServiceRequest
|
||||
{
|
||||
public:
|
||||
struct PointList
|
||||
{
|
||||
float latitude;
|
||||
float longitude;
|
||||
};
|
||||
|
||||
public:
|
||||
RecallTrajectoryByCoordinateRequest();
|
||||
~RecallTrajectoryByCoordinateRequest();
|
||||
|
||||
std::string getCorpId()const;
|
||||
void setCorpId(const std::string& corpId);
|
||||
std::vector<PointList> getPointList()const;
|
||||
void setPointList(const std::vector<PointList>& pointList);
|
||||
std::string getEndTime()const;
|
||||
void setEndTime(const std::string& endTime);
|
||||
int getDeltaDistance()const;
|
||||
void setDeltaDistance(int deltaDistance);
|
||||
std::string getStartTime()const;
|
||||
void setStartTime(const std::string& startTime);
|
||||
std::vector<std::string> getOutputIdTypeList()const;
|
||||
void setOutputIdTypeList(const std::vector<std::string>& outputIdTypeList);
|
||||
int getDeltaTime()const;
|
||||
void setDeltaTime(int deltaTime);
|
||||
int getOutputIdCount()const;
|
||||
void setOutputIdCount(int outputIdCount);
|
||||
|
||||
private:
|
||||
std::string corpId_;
|
||||
std::vector<PointList> pointList_;
|
||||
std::string endTime_;
|
||||
int deltaDistance_;
|
||||
std::string startTime_;
|
||||
std::vector<std::string> outputIdTypeList_;
|
||||
int deltaTime_;
|
||||
int outputIdCount_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_CDRS_MODEL_RECALLTRAJECTORYBYCOORDINATEREQUEST_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_CDRS_MODEL_RECALLTRAJECTORYBYCOORDINATERESULT_H_
|
||||
#define ALIBABACLOUD_CDRS_MODEL_RECALLTRAJECTORYBYCOORDINATERESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/cdrs/CDRSExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace CDRS
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_CDRS_EXPORT RecallTrajectoryByCoordinateResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
|
||||
|
||||
RecallTrajectoryByCoordinateResult();
|
||||
explicit RecallTrajectoryByCoordinateResult(const std::string &payload);
|
||||
~RecallTrajectoryByCoordinateResult();
|
||||
std::string getMessage()const;
|
||||
std::string getData()const;
|
||||
int getCode()const;
|
||||
bool getSuccess()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::string message_;
|
||||
std::string data_;
|
||||
int code_;
|
||||
bool success_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_CDRS_MODEL_RECALLTRAJECTORYBYCOORDINATERESULT_H_
|
||||
@@ -0,0 +1,72 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_CDRS_MODEL_RECALLTRAJECTORYBYIDREQUEST_H_
|
||||
#define ALIBABACLOUD_CDRS_MODEL_RECALLTRAJECTORYBYIDREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/cdrs/CDRSExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace CDRS
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_CDRS_EXPORT RecallTrajectoryByIdRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
RecallTrajectoryByIdRequest();
|
||||
~RecallTrajectoryByIdRequest();
|
||||
|
||||
std::string getCorpId()const;
|
||||
void setCorpId(const std::string& corpId);
|
||||
std::string getEndTime()const;
|
||||
void setEndTime(const std::string& endTime);
|
||||
std::string getIdValue()const;
|
||||
void setIdValue(const std::string& idValue);
|
||||
int getDeltaDistance()const;
|
||||
void setDeltaDistance(int deltaDistance);
|
||||
std::string getStartTime()const;
|
||||
void setStartTime(const std::string& startTime);
|
||||
std::string getIdType()const;
|
||||
void setIdType(const std::string& idType);
|
||||
std::vector<std::string> getOutputIdTypeList()const;
|
||||
void setOutputIdTypeList(const std::vector<std::string>& outputIdTypeList);
|
||||
int getDeltaTime()const;
|
||||
void setDeltaTime(int deltaTime);
|
||||
int getOutputIdCount()const;
|
||||
void setOutputIdCount(int outputIdCount);
|
||||
|
||||
private:
|
||||
std::string corpId_;
|
||||
std::string endTime_;
|
||||
std::string idValue_;
|
||||
int deltaDistance_;
|
||||
std::string startTime_;
|
||||
std::string idType_;
|
||||
std::vector<std::string> outputIdTypeList_;
|
||||
int deltaTime_;
|
||||
int outputIdCount_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_CDRS_MODEL_RECALLTRAJECTORYBYIDREQUEST_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_CDRS_MODEL_RECALLTRAJECTORYBYIDRESULT_H_
|
||||
#define ALIBABACLOUD_CDRS_MODEL_RECALLTRAJECTORYBYIDRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/cdrs/CDRSExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace CDRS
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_CDRS_EXPORT RecallTrajectoryByIdResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
|
||||
|
||||
RecallTrajectoryByIdResult();
|
||||
explicit RecallTrajectoryByIdResult(const std::string &payload);
|
||||
~RecallTrajectoryByIdResult();
|
||||
std::string getMessage()const;
|
||||
std::string getData()const;
|
||||
int getCode()const;
|
||||
bool getSuccess()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::string message_;
|
||||
std::string data_;
|
||||
int code_;
|
||||
bool success_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_CDRS_MODEL_RECALLTRAJECTORYBYIDRESULT_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_CDRS_MODEL_VALIDATETRAJECTORYREQUEST_H_
|
||||
#define ALIBABACLOUD_CDRS_MODEL_VALIDATETRAJECTORYREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/cdrs/CDRSExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace CDRS
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_CDRS_EXPORT ValidateTrajectoryRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
ValidateTrajectoryRequest();
|
||||
~ValidateTrajectoryRequest();
|
||||
|
||||
std::string getCorpId()const;
|
||||
void setCorpId(const std::string& corpId);
|
||||
std::string getEndTime()const;
|
||||
void setEndTime(const std::string& endTime);
|
||||
std::string getIdValue()const;
|
||||
void setIdValue(const std::string& idValue);
|
||||
std::string getStartTime()const;
|
||||
void setStartTime(const std::string& startTime);
|
||||
std::string getIdType()const;
|
||||
void setIdType(const std::string& idType);
|
||||
|
||||
private:
|
||||
std::string corpId_;
|
||||
std::string endTime_;
|
||||
std::string idValue_;
|
||||
std::string startTime_;
|
||||
std::string idType_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_CDRS_MODEL_VALIDATETRAJECTORYREQUEST_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_CDRS_MODEL_VALIDATETRAJECTORYRESULT_H_
|
||||
#define ALIBABACLOUD_CDRS_MODEL_VALIDATETRAJECTORYRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/cdrs/CDRSExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace CDRS
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_CDRS_EXPORT ValidateTrajectoryResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
|
||||
|
||||
ValidateTrajectoryResult();
|
||||
explicit ValidateTrajectoryResult(const std::string &payload);
|
||||
~ValidateTrajectoryResult();
|
||||
std::string getMessage()const;
|
||||
std::string getData()const;
|
||||
int getCode()const;
|
||||
bool getSuccess()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::string message_;
|
||||
std::string data_;
|
||||
int code_;
|
||||
bool success_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_CDRS_MODEL_VALIDATETRAJECTORYRESULT_H_
|
||||
@@ -159,6 +159,42 @@ CDRSClient::CreateProjectOutcomeCallable CDRSClient::createProjectCallable(const
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
CDRSClient::DetectTrajectoryRegularPatternOutcome CDRSClient::detectTrajectoryRegularPattern(const DetectTrajectoryRegularPatternRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return DetectTrajectoryRegularPatternOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return DetectTrajectoryRegularPatternOutcome(DetectTrajectoryRegularPatternResult(outcome.result()));
|
||||
else
|
||||
return DetectTrajectoryRegularPatternOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void CDRSClient::detectTrajectoryRegularPatternAsync(const DetectTrajectoryRegularPatternRequest& request, const DetectTrajectoryRegularPatternAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, detectTrajectoryRegularPattern(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
CDRSClient::DetectTrajectoryRegularPatternOutcomeCallable CDRSClient::detectTrajectoryRegularPatternCallable(const DetectTrajectoryRegularPatternRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<DetectTrajectoryRegularPatternOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->detectTrajectoryRegularPattern(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
CDRSClient::GetCdrsMonitorListOutcome CDRSClient::getCdrsMonitorList(const GetCdrsMonitorListRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -231,6 +267,42 @@ CDRSClient::GetCdrsMonitorResultOutcomeCallable CDRSClient::getCdrsMonitorResult
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
CDRSClient::IntersectTrajectoryOutcome CDRSClient::intersectTrajectory(const IntersectTrajectoryRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return IntersectTrajectoryOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return IntersectTrajectoryOutcome(IntersectTrajectoryResult(outcome.result()));
|
||||
else
|
||||
return IntersectTrajectoryOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void CDRSClient::intersectTrajectoryAsync(const IntersectTrajectoryRequest& request, const IntersectTrajectoryAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, intersectTrajectory(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
CDRSClient::IntersectTrajectoryOutcomeCallable CDRSClient::intersectTrajectoryCallable(const IntersectTrajectoryRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<IntersectTrajectoryOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->intersectTrajectory(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
CDRSClient::ListAreaHotSpotMetricsOutcome CDRSClient::listAreaHotSpotMetrics(const ListAreaHotSpotMetricsRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -1527,6 +1599,150 @@ CDRSClient::PaginateProjectOutcomeCallable CDRSClient::paginateProjectCallable(c
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
CDRSClient::PredictTrajectoryDestinationOutcome CDRSClient::predictTrajectoryDestination(const PredictTrajectoryDestinationRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return PredictTrajectoryDestinationOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return PredictTrajectoryDestinationOutcome(PredictTrajectoryDestinationResult(outcome.result()));
|
||||
else
|
||||
return PredictTrajectoryDestinationOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void CDRSClient::predictTrajectoryDestinationAsync(const PredictTrajectoryDestinationRequest& request, const PredictTrajectoryDestinationAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, predictTrajectoryDestination(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
CDRSClient::PredictTrajectoryDestinationOutcomeCallable CDRSClient::predictTrajectoryDestinationCallable(const PredictTrajectoryDestinationRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<PredictTrajectoryDestinationOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->predictTrajectoryDestination(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
CDRSClient::QueryTrajectoryByIdOutcome CDRSClient::queryTrajectoryById(const QueryTrajectoryByIdRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return QueryTrajectoryByIdOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return QueryTrajectoryByIdOutcome(QueryTrajectoryByIdResult(outcome.result()));
|
||||
else
|
||||
return QueryTrajectoryByIdOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void CDRSClient::queryTrajectoryByIdAsync(const QueryTrajectoryByIdRequest& request, const QueryTrajectoryByIdAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, queryTrajectoryById(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
CDRSClient::QueryTrajectoryByIdOutcomeCallable CDRSClient::queryTrajectoryByIdCallable(const QueryTrajectoryByIdRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<QueryTrajectoryByIdOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->queryTrajectoryById(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
CDRSClient::RecallTrajectoryByCoordinateOutcome CDRSClient::recallTrajectoryByCoordinate(const RecallTrajectoryByCoordinateRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return RecallTrajectoryByCoordinateOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return RecallTrajectoryByCoordinateOutcome(RecallTrajectoryByCoordinateResult(outcome.result()));
|
||||
else
|
||||
return RecallTrajectoryByCoordinateOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void CDRSClient::recallTrajectoryByCoordinateAsync(const RecallTrajectoryByCoordinateRequest& request, const RecallTrajectoryByCoordinateAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, recallTrajectoryByCoordinate(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
CDRSClient::RecallTrajectoryByCoordinateOutcomeCallable CDRSClient::recallTrajectoryByCoordinateCallable(const RecallTrajectoryByCoordinateRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<RecallTrajectoryByCoordinateOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->recallTrajectoryByCoordinate(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
CDRSClient::RecallTrajectoryByIdOutcome CDRSClient::recallTrajectoryById(const RecallTrajectoryByIdRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return RecallTrajectoryByIdOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return RecallTrajectoryByIdOutcome(RecallTrajectoryByIdResult(outcome.result()));
|
||||
else
|
||||
return RecallTrajectoryByIdOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void CDRSClient::recallTrajectoryByIdAsync(const RecallTrajectoryByIdRequest& request, const RecallTrajectoryByIdAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, recallTrajectoryById(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
CDRSClient::RecallTrajectoryByIdOutcomeCallable CDRSClient::recallTrajectoryByIdCallable(const RecallTrajectoryByIdRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<RecallTrajectoryByIdOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->recallTrajectoryById(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
CDRSClient::RecognizeImageOutcome CDRSClient::recognizeImage(const RecognizeImageRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -1743,3 +1959,39 @@ CDRSClient::UpdateProjectOutcomeCallable CDRSClient::updateProjectCallable(const
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
CDRSClient::ValidateTrajectoryOutcome CDRSClient::validateTrajectory(const ValidateTrajectoryRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return ValidateTrajectoryOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return ValidateTrajectoryOutcome(ValidateTrajectoryResult(outcome.result()));
|
||||
else
|
||||
return ValidateTrajectoryOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void CDRSClient::validateTrajectoryAsync(const ValidateTrajectoryRequest& request, const ValidateTrajectoryAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, validateTrajectory(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
CDRSClient::ValidateTrajectoryOutcomeCallable CDRSClient::validateTrajectoryCallable(const ValidateTrajectoryRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<ValidateTrajectoryOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->validateTrajectory(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
|
||||
73
cdrs/src/model/DetectTrajectoryRegularPatternRequest.cc
Normal file
73
cdrs/src/model/DetectTrajectoryRegularPatternRequest.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/cdrs/model/DetectTrajectoryRegularPatternRequest.h>
|
||||
|
||||
using AlibabaCloud::CDRS::Model::DetectTrajectoryRegularPatternRequest;
|
||||
|
||||
DetectTrajectoryRegularPatternRequest::DetectTrajectoryRegularPatternRequest() :
|
||||
RpcServiceRequest("cdrs", "2020-11-01", "DetectTrajectoryRegularPattern")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DetectTrajectoryRegularPatternRequest::~DetectTrajectoryRegularPatternRequest()
|
||||
{}
|
||||
|
||||
std::string DetectTrajectoryRegularPatternRequest::getPredictDate()const
|
||||
{
|
||||
return predictDate_;
|
||||
}
|
||||
|
||||
void DetectTrajectoryRegularPatternRequest::setPredictDate(const std::string& predictDate)
|
||||
{
|
||||
predictDate_ = predictDate;
|
||||
setBodyParameter("PredictDate", predictDate);
|
||||
}
|
||||
|
||||
std::string DetectTrajectoryRegularPatternRequest::getCorpId()const
|
||||
{
|
||||
return corpId_;
|
||||
}
|
||||
|
||||
void DetectTrajectoryRegularPatternRequest::setCorpId(const std::string& corpId)
|
||||
{
|
||||
corpId_ = corpId;
|
||||
setBodyParameter("CorpId", corpId);
|
||||
}
|
||||
|
||||
std::string DetectTrajectoryRegularPatternRequest::getIdValue()const
|
||||
{
|
||||
return idValue_;
|
||||
}
|
||||
|
||||
void DetectTrajectoryRegularPatternRequest::setIdValue(const std::string& idValue)
|
||||
{
|
||||
idValue_ = idValue;
|
||||
setBodyParameter("IdValue", idValue);
|
||||
}
|
||||
|
||||
std::string DetectTrajectoryRegularPatternRequest::getIdType()const
|
||||
{
|
||||
return idType_;
|
||||
}
|
||||
|
||||
void DetectTrajectoryRegularPatternRequest::setIdType(const std::string& idType)
|
||||
{
|
||||
idType_ = idType;
|
||||
setBodyParameter("IdType", idType);
|
||||
}
|
||||
|
||||
72
cdrs/src/model/DetectTrajectoryRegularPatternResult.cc
Normal file
72
cdrs/src/model/DetectTrajectoryRegularPatternResult.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/cdrs/model/DetectTrajectoryRegularPatternResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::CDRS;
|
||||
using namespace AlibabaCloud::CDRS::Model;
|
||||
|
||||
DetectTrajectoryRegularPatternResult::DetectTrajectoryRegularPatternResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DetectTrajectoryRegularPatternResult::DetectTrajectoryRegularPatternResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DetectTrajectoryRegularPatternResult::~DetectTrajectoryRegularPatternResult()
|
||||
{}
|
||||
|
||||
void DetectTrajectoryRegularPatternResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["Code"].isNull())
|
||||
code_ = std::stoi(value["Code"].asString());
|
||||
if(!value["Data"].isNull())
|
||||
data_ = value["Data"].asString();
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
|
||||
}
|
||||
|
||||
std::string DetectTrajectoryRegularPatternResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
std::string DetectTrajectoryRegularPatternResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
int DetectTrajectoryRegularPatternResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
bool DetectTrajectoryRegularPatternResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
100
cdrs/src/model/IntersectTrajectoryRequest.cc
Normal file
100
cdrs/src/model/IntersectTrajectoryRequest.cc
Normal file
@@ -0,0 +1,100 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/cdrs/model/IntersectTrajectoryRequest.h>
|
||||
|
||||
using AlibabaCloud::CDRS::Model::IntersectTrajectoryRequest;
|
||||
|
||||
IntersectTrajectoryRequest::IntersectTrajectoryRequest() :
|
||||
RpcServiceRequest("cdrs", "2020-11-01", "IntersectTrajectory")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
IntersectTrajectoryRequest::~IntersectTrajectoryRequest()
|
||||
{}
|
||||
|
||||
std::string IntersectTrajectoryRequest::getCorpId()const
|
||||
{
|
||||
return corpId_;
|
||||
}
|
||||
|
||||
void IntersectTrajectoryRequest::setCorpId(const std::string& corpId)
|
||||
{
|
||||
corpId_ = corpId;
|
||||
setBodyParameter("CorpId", corpId);
|
||||
}
|
||||
|
||||
std::string IntersectTrajectoryRequest::getEndTime()const
|
||||
{
|
||||
return endTime_;
|
||||
}
|
||||
|
||||
void IntersectTrajectoryRequest::setEndTime(const std::string& endTime)
|
||||
{
|
||||
endTime_ = endTime;
|
||||
setBodyParameter("EndTime", endTime);
|
||||
}
|
||||
|
||||
int IntersectTrajectoryRequest::getDeltaDistance()const
|
||||
{
|
||||
return deltaDistance_;
|
||||
}
|
||||
|
||||
void IntersectTrajectoryRequest::setDeltaDistance(int deltaDistance)
|
||||
{
|
||||
deltaDistance_ = deltaDistance;
|
||||
setBodyParameter("DeltaDistance", std::to_string(deltaDistance));
|
||||
}
|
||||
|
||||
std::string IntersectTrajectoryRequest::getStartTime()const
|
||||
{
|
||||
return startTime_;
|
||||
}
|
||||
|
||||
void IntersectTrajectoryRequest::setStartTime(const std::string& startTime)
|
||||
{
|
||||
startTime_ = startTime;
|
||||
setBodyParameter("StartTime", startTime);
|
||||
}
|
||||
|
||||
int IntersectTrajectoryRequest::getDeltaTime()const
|
||||
{
|
||||
return deltaTime_;
|
||||
}
|
||||
|
||||
void IntersectTrajectoryRequest::setDeltaTime(int deltaTime)
|
||||
{
|
||||
deltaTime_ = deltaTime;
|
||||
setBodyParameter("DeltaTime", std::to_string(deltaTime));
|
||||
}
|
||||
|
||||
std::vector<IntersectTrajectoryRequest::IdList> IntersectTrajectoryRequest::getIdList()const
|
||||
{
|
||||
return idList_;
|
||||
}
|
||||
|
||||
void IntersectTrajectoryRequest::setIdList(const std::vector<IdList>& idList)
|
||||
{
|
||||
idList_ = idList;
|
||||
for(int dep1 = 0; dep1!= idList.size(); dep1++) {
|
||||
auto idListObj = idList.at(dep1);
|
||||
std::string idListObjStr = "IdList." + std::to_string(dep1 + 1);
|
||||
setParameter(idListObjStr + ".IdType", idListObj.idType);
|
||||
setParameter(idListObjStr + ".IdValue", idListObj.idValue);
|
||||
}
|
||||
}
|
||||
|
||||
72
cdrs/src/model/IntersectTrajectoryResult.cc
Normal file
72
cdrs/src/model/IntersectTrajectoryResult.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/cdrs/model/IntersectTrajectoryResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::CDRS;
|
||||
using namespace AlibabaCloud::CDRS::Model;
|
||||
|
||||
IntersectTrajectoryResult::IntersectTrajectoryResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
IntersectTrajectoryResult::IntersectTrajectoryResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
IntersectTrajectoryResult::~IntersectTrajectoryResult()
|
||||
{}
|
||||
|
||||
void IntersectTrajectoryResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["Code"].isNull())
|
||||
code_ = std::stoi(value["Code"].asString());
|
||||
if(!value["Data"].isNull())
|
||||
data_ = value["Data"].asString();
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
|
||||
}
|
||||
|
||||
std::string IntersectTrajectoryResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
std::string IntersectTrajectoryResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
int IntersectTrajectoryResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
bool IntersectTrajectoryResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
@@ -65,6 +65,10 @@ void ListCorpTrackDetailResult::parse(const std::string &payload)
|
||||
dataObject.corpId = valueDataDataItem["CorpId"].asString();
|
||||
if(!valueDataDataItem["EndTargetImage"].isNull())
|
||||
dataObject.endTargetImage = valueDataDataItem["EndTargetImage"].asString();
|
||||
if(!valueDataDataItem["SourceUrl"].isNull())
|
||||
dataObject.sourceUrl = valueDataDataItem["SourceUrl"].asString();
|
||||
if(!valueDataDataItem["TargetUrl"].isNull())
|
||||
dataObject.targetUrl = valueDataDataItem["TargetUrl"].asString();
|
||||
data_.push_back(dataObject);
|
||||
}
|
||||
if(!value["Code"].isNull())
|
||||
|
||||
@@ -27,6 +27,17 @@ ListPersonDetailsRequest::ListPersonDetailsRequest() :
|
||||
ListPersonDetailsRequest::~ListPersonDetailsRequest()
|
||||
{}
|
||||
|
||||
std::string ListPersonDetailsRequest::getSchema()const
|
||||
{
|
||||
return schema_;
|
||||
}
|
||||
|
||||
void ListPersonDetailsRequest::setSchema(const std::string& schema)
|
||||
{
|
||||
schema_ = schema;
|
||||
setBodyParameter("Schema", schema);
|
||||
}
|
||||
|
||||
std::string ListPersonDetailsRequest::getCorpId()const
|
||||
{
|
||||
return corpId_;
|
||||
|
||||
@@ -61,6 +61,10 @@ void ListPersonResultResult::parse(const std::string &payload)
|
||||
dataObject.hotSpotAddress = valueDataDatas["HotSpotAddress"].asString();
|
||||
if(!valueDataDatas["UpdateTime"].isNull())
|
||||
dataObject.updateTime = valueDataDatas["UpdateTime"].asString();
|
||||
if(!valueDataDatas["TargetUrl"].isNull())
|
||||
dataObject.targetUrl = valueDataDatas["TargetUrl"].asString();
|
||||
if(!valueDataDatas["SourceUrl"].isNull())
|
||||
dataObject.sourceUrl = valueDataDatas["SourceUrl"].asString();
|
||||
data_.push_back(dataObject);
|
||||
}
|
||||
if(!value["Code"].isNull())
|
||||
|
||||
@@ -27,6 +27,17 @@ ListPersonTagRequest::ListPersonTagRequest() :
|
||||
ListPersonTagRequest::~ListPersonTagRequest()
|
||||
{}
|
||||
|
||||
std::string ListPersonTagRequest::getSchema()const
|
||||
{
|
||||
return schema_;
|
||||
}
|
||||
|
||||
void ListPersonTagRequest::setSchema(const std::string& schema)
|
||||
{
|
||||
schema_ = schema;
|
||||
setBodyParameter("Schema", schema);
|
||||
}
|
||||
|
||||
std::string ListPersonTagRequest::getCorpId()const
|
||||
{
|
||||
return corpId_;
|
||||
|
||||
@@ -27,6 +27,17 @@ ListPersonTopRequest::ListPersonTopRequest() :
|
||||
ListPersonTopRequest::~ListPersonTopRequest()
|
||||
{}
|
||||
|
||||
std::string ListPersonTopRequest::getSchema()const
|
||||
{
|
||||
return schema_;
|
||||
}
|
||||
|
||||
void ListPersonTopRequest::setSchema(const std::string& schema)
|
||||
{
|
||||
schema_ = schema;
|
||||
setBodyParameter("Schema", schema);
|
||||
}
|
||||
|
||||
std::string ListPersonTopRequest::getCorpId()const
|
||||
{
|
||||
return corpId_;
|
||||
@@ -60,6 +71,28 @@ void ListPersonTopRequest::setStartTime(const std::string& startTime)
|
||||
setBodyParameter("StartTime", startTime);
|
||||
}
|
||||
|
||||
std::string ListPersonTopRequest::getPageNumber()const
|
||||
{
|
||||
return pageNumber_;
|
||||
}
|
||||
|
||||
void ListPersonTopRequest::setPageNumber(const std::string& pageNumber)
|
||||
{
|
||||
pageNumber_ = pageNumber;
|
||||
setBodyParameter("PageNumber", pageNumber);
|
||||
}
|
||||
|
||||
std::string ListPersonTopRequest::getPageSize()const
|
||||
{
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
void ListPersonTopRequest::setPageSize(const std::string& pageSize)
|
||||
{
|
||||
pageSize_ = pageSize;
|
||||
setBodyParameter("PageSize", pageSize);
|
||||
}
|
||||
|
||||
std::string ListPersonTopRequest::getPersonId()const
|
||||
{
|
||||
return personId_;
|
||||
|
||||
@@ -39,22 +39,22 @@ void ListPersonTopResult::parse(const std::string &payload)
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allDataNode = value["Data"]["Datas"];
|
||||
for (auto valueDataDatas : allDataNode)
|
||||
auto allDataNode = value["Data"]["DataItem"];
|
||||
for (auto valueDataDataItem : allDataNode)
|
||||
{
|
||||
Datas dataObject;
|
||||
if(!valueDataDatas["CorpId"].isNull())
|
||||
dataObject.corpId = valueDataDatas["CorpId"].asString();
|
||||
if(!valueDataDatas["PersonId"].isNull())
|
||||
dataObject.personId = valueDataDatas["PersonId"].asString();
|
||||
if(!valueDataDatas["PoiId"].isNull())
|
||||
dataObject.poiId = valueDataDatas["PoiId"].asString();
|
||||
if(!valueDataDatas["PoiName"].isNull())
|
||||
dataObject.poiName = valueDataDatas["PoiName"].asString();
|
||||
if(!valueDataDatas["PassHour"].isNull())
|
||||
dataObject.passHour = valueDataDatas["PassHour"].asString();
|
||||
if(!valueDataDatas["Frequency"].isNull())
|
||||
dataObject.frequency = valueDataDatas["Frequency"].asString();
|
||||
DataItem dataObject;
|
||||
if(!valueDataDataItem["CorpId"].isNull())
|
||||
dataObject.corpId = valueDataDataItem["CorpId"].asString();
|
||||
if(!valueDataDataItem["PersonId"].isNull())
|
||||
dataObject.personId = valueDataDataItem["PersonId"].asString();
|
||||
if(!valueDataDataItem["PoiId"].isNull())
|
||||
dataObject.poiId = valueDataDataItem["PoiId"].asString();
|
||||
if(!valueDataDataItem["PoiName"].isNull())
|
||||
dataObject.poiName = valueDataDataItem["PoiName"].asString();
|
||||
if(!valueDataDataItem["PassHour"].isNull())
|
||||
dataObject.passHour = valueDataDataItem["PassHour"].asString();
|
||||
if(!valueDataDataItem["Frequency"].isNull())
|
||||
dataObject.frequency = valueDataDataItem["Frequency"].asString();
|
||||
data_.push_back(dataObject);
|
||||
}
|
||||
if(!value["Code"].isNull())
|
||||
@@ -90,7 +90,7 @@ long ListPersonTopResult::getPageNumber()const
|
||||
return pageNumber_;
|
||||
}
|
||||
|
||||
std::vector<ListPersonTopResult::Datas> ListPersonTopResult::getData()const
|
||||
std::vector<ListPersonTopResult::DataItem> ListPersonTopResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
@@ -27,6 +27,17 @@ ListPersonTrackRequest::ListPersonTrackRequest() :
|
||||
ListPersonTrackRequest::~ListPersonTrackRequest()
|
||||
{}
|
||||
|
||||
std::string ListPersonTrackRequest::getSchema()const
|
||||
{
|
||||
return schema_;
|
||||
}
|
||||
|
||||
void ListPersonTrackRequest::setSchema(const std::string& schema)
|
||||
{
|
||||
schema_ = schema;
|
||||
setBodyParameter("Schema", schema);
|
||||
}
|
||||
|
||||
std::string ListPersonTrackRequest::getCorpId()const
|
||||
{
|
||||
return corpId_;
|
||||
|
||||
@@ -71,6 +71,10 @@ void ListPersonTrackResult::parse(const std::string &payload)
|
||||
dataObject.longitude = valueDataDatas["Longitude"].asString();
|
||||
if(!valueDataDatas["Latitude"].isNull())
|
||||
dataObject.latitude = valueDataDatas["Latitude"].asString();
|
||||
if(!valueDataDatas["SourceUrl"].isNull())
|
||||
dataObject.sourceUrl = valueDataDatas["SourceUrl"].asString();
|
||||
if(!valueDataDatas["TargetUrl"].isNull())
|
||||
dataObject.targetUrl = valueDataDatas["TargetUrl"].asString();
|
||||
data_.push_back(dataObject);
|
||||
}
|
||||
if(!value["Code"].isNull())
|
||||
|
||||
73
cdrs/src/model/PredictTrajectoryDestinationRequest.cc
Normal file
73
cdrs/src/model/PredictTrajectoryDestinationRequest.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/cdrs/model/PredictTrajectoryDestinationRequest.h>
|
||||
|
||||
using AlibabaCloud::CDRS::Model::PredictTrajectoryDestinationRequest;
|
||||
|
||||
PredictTrajectoryDestinationRequest::PredictTrajectoryDestinationRequest() :
|
||||
RpcServiceRequest("cdrs", "2020-11-01", "PredictTrajectoryDestination")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
PredictTrajectoryDestinationRequest::~PredictTrajectoryDestinationRequest()
|
||||
{}
|
||||
|
||||
std::string PredictTrajectoryDestinationRequest::getCorpId()const
|
||||
{
|
||||
return corpId_;
|
||||
}
|
||||
|
||||
void PredictTrajectoryDestinationRequest::setCorpId(const std::string& corpId)
|
||||
{
|
||||
corpId_ = corpId;
|
||||
setBodyParameter("CorpId", corpId);
|
||||
}
|
||||
|
||||
std::string PredictTrajectoryDestinationRequest::getIdValue()const
|
||||
{
|
||||
return idValue_;
|
||||
}
|
||||
|
||||
void PredictTrajectoryDestinationRequest::setIdValue(const std::string& idValue)
|
||||
{
|
||||
idValue_ = idValue;
|
||||
setBodyParameter("IdValue", idValue);
|
||||
}
|
||||
|
||||
std::string PredictTrajectoryDestinationRequest::getIdType()const
|
||||
{
|
||||
return idType_;
|
||||
}
|
||||
|
||||
void PredictTrajectoryDestinationRequest::setIdType(const std::string& idType)
|
||||
{
|
||||
idType_ = idType;
|
||||
setBodyParameter("IdType", idType);
|
||||
}
|
||||
|
||||
int PredictTrajectoryDestinationRequest::getPredictTimeSpan()const
|
||||
{
|
||||
return predictTimeSpan_;
|
||||
}
|
||||
|
||||
void PredictTrajectoryDestinationRequest::setPredictTimeSpan(int predictTimeSpan)
|
||||
{
|
||||
predictTimeSpan_ = predictTimeSpan;
|
||||
setBodyParameter("PredictTimeSpan", std::to_string(predictTimeSpan));
|
||||
}
|
||||
|
||||
72
cdrs/src/model/PredictTrajectoryDestinationResult.cc
Normal file
72
cdrs/src/model/PredictTrajectoryDestinationResult.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/cdrs/model/PredictTrajectoryDestinationResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::CDRS;
|
||||
using namespace AlibabaCloud::CDRS::Model;
|
||||
|
||||
PredictTrajectoryDestinationResult::PredictTrajectoryDestinationResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
PredictTrajectoryDestinationResult::PredictTrajectoryDestinationResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
PredictTrajectoryDestinationResult::~PredictTrajectoryDestinationResult()
|
||||
{}
|
||||
|
||||
void PredictTrajectoryDestinationResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["Code"].isNull())
|
||||
code_ = std::stoi(value["Code"].asString());
|
||||
if(!value["Data"].isNull())
|
||||
data_ = value["Data"].asString();
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
|
||||
}
|
||||
|
||||
std::string PredictTrajectoryDestinationResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
std::string PredictTrajectoryDestinationResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
int PredictTrajectoryDestinationResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
bool PredictTrajectoryDestinationResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
93
cdrs/src/model/QueryTrajectoryByIdRequest.cc
Normal file
93
cdrs/src/model/QueryTrajectoryByIdRequest.cc
Normal file
@@ -0,0 +1,93 @@
|
||||
/*
|
||||
* 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/cdrs/model/QueryTrajectoryByIdRequest.h>
|
||||
|
||||
using AlibabaCloud::CDRS::Model::QueryTrajectoryByIdRequest;
|
||||
|
||||
QueryTrajectoryByIdRequest::QueryTrajectoryByIdRequest() :
|
||||
RpcServiceRequest("cdrs", "2020-11-01", "QueryTrajectoryById")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
QueryTrajectoryByIdRequest::~QueryTrajectoryByIdRequest()
|
||||
{}
|
||||
|
||||
std::string QueryTrajectoryByIdRequest::getCorpId()const
|
||||
{
|
||||
return corpId_;
|
||||
}
|
||||
|
||||
void QueryTrajectoryByIdRequest::setCorpId(const std::string& corpId)
|
||||
{
|
||||
corpId_ = corpId;
|
||||
setBodyParameter("CorpId", corpId);
|
||||
}
|
||||
|
||||
std::string QueryTrajectoryByIdRequest::getEndTime()const
|
||||
{
|
||||
return endTime_;
|
||||
}
|
||||
|
||||
void QueryTrajectoryByIdRequest::setEndTime(const std::string& endTime)
|
||||
{
|
||||
endTime_ = endTime;
|
||||
setBodyParameter("EndTime", endTime);
|
||||
}
|
||||
|
||||
std::string QueryTrajectoryByIdRequest::getStartTime()const
|
||||
{
|
||||
return startTime_;
|
||||
}
|
||||
|
||||
void QueryTrajectoryByIdRequest::setStartTime(const std::string& startTime)
|
||||
{
|
||||
startTime_ = startTime;
|
||||
setBodyParameter("StartTime", startTime);
|
||||
}
|
||||
|
||||
std::vector<QueryTrajectoryByIdRequest::DeviceList> QueryTrajectoryByIdRequest::getDeviceList()const
|
||||
{
|
||||
return deviceList_;
|
||||
}
|
||||
|
||||
void QueryTrajectoryByIdRequest::setDeviceList(const std::vector<DeviceList>& deviceList)
|
||||
{
|
||||
deviceList_ = deviceList;
|
||||
for(int dep1 = 0; dep1!= deviceList.size(); dep1++) {
|
||||
auto deviceListObj = deviceList.at(dep1);
|
||||
std::string deviceListObjStr = "DeviceList." + std::to_string(dep1 + 1);
|
||||
setParameter(deviceListObjStr + ".DeviceId", deviceListObj.deviceId);
|
||||
}
|
||||
}
|
||||
|
||||
std::vector<QueryTrajectoryByIdRequest::IdList> QueryTrajectoryByIdRequest::getIdList()const
|
||||
{
|
||||
return idList_;
|
||||
}
|
||||
|
||||
void QueryTrajectoryByIdRequest::setIdList(const std::vector<IdList>& idList)
|
||||
{
|
||||
idList_ = idList;
|
||||
for(int dep1 = 0; dep1!= idList.size(); dep1++) {
|
||||
auto idListObj = idList.at(dep1);
|
||||
std::string idListObjStr = "IdList." + std::to_string(dep1 + 1);
|
||||
setParameter(idListObjStr + ".IdType", idListObj.idType);
|
||||
setParameter(idListObjStr + ".IdValue", idListObj.idValue);
|
||||
}
|
||||
}
|
||||
|
||||
72
cdrs/src/model/QueryTrajectoryByIdResult.cc
Normal file
72
cdrs/src/model/QueryTrajectoryByIdResult.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/cdrs/model/QueryTrajectoryByIdResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::CDRS;
|
||||
using namespace AlibabaCloud::CDRS::Model;
|
||||
|
||||
QueryTrajectoryByIdResult::QueryTrajectoryByIdResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
QueryTrajectoryByIdResult::QueryTrajectoryByIdResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
QueryTrajectoryByIdResult::~QueryTrajectoryByIdResult()
|
||||
{}
|
||||
|
||||
void QueryTrajectoryByIdResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["Code"].isNull())
|
||||
code_ = std::stoi(value["Code"].asString());
|
||||
if(!value["Data"].isNull())
|
||||
data_ = value["Data"].asString();
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
|
||||
}
|
||||
|
||||
std::string QueryTrajectoryByIdResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
std::string QueryTrajectoryByIdResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
int QueryTrajectoryByIdResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
bool QueryTrajectoryByIdResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
124
cdrs/src/model/RecallTrajectoryByCoordinateRequest.cc
Normal file
124
cdrs/src/model/RecallTrajectoryByCoordinateRequest.cc
Normal file
@@ -0,0 +1,124 @@
|
||||
/*
|
||||
* 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/cdrs/model/RecallTrajectoryByCoordinateRequest.h>
|
||||
|
||||
using AlibabaCloud::CDRS::Model::RecallTrajectoryByCoordinateRequest;
|
||||
|
||||
RecallTrajectoryByCoordinateRequest::RecallTrajectoryByCoordinateRequest() :
|
||||
RpcServiceRequest("cdrs", "2020-11-01", "RecallTrajectoryByCoordinate")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
RecallTrajectoryByCoordinateRequest::~RecallTrajectoryByCoordinateRequest()
|
||||
{}
|
||||
|
||||
std::string RecallTrajectoryByCoordinateRequest::getCorpId()const
|
||||
{
|
||||
return corpId_;
|
||||
}
|
||||
|
||||
void RecallTrajectoryByCoordinateRequest::setCorpId(const std::string& corpId)
|
||||
{
|
||||
corpId_ = corpId;
|
||||
setBodyParameter("CorpId", corpId);
|
||||
}
|
||||
|
||||
std::vector<RecallTrajectoryByCoordinateRequest::PointList> RecallTrajectoryByCoordinateRequest::getPointList()const
|
||||
{
|
||||
return pointList_;
|
||||
}
|
||||
|
||||
void RecallTrajectoryByCoordinateRequest::setPointList(const std::vector<PointList>& pointList)
|
||||
{
|
||||
pointList_ = pointList;
|
||||
for(int dep1 = 0; dep1!= pointList.size(); dep1++) {
|
||||
auto pointListObj = pointList.at(dep1);
|
||||
std::string pointListObjStr = "PointList." + std::to_string(dep1 + 1);
|
||||
setParameter(pointListObjStr + ".Latitude", std::to_string(pointListObj.latitude));
|
||||
setParameter(pointListObjStr + ".Longitude", std::to_string(pointListObj.longitude));
|
||||
}
|
||||
}
|
||||
|
||||
std::string RecallTrajectoryByCoordinateRequest::getEndTime()const
|
||||
{
|
||||
return endTime_;
|
||||
}
|
||||
|
||||
void RecallTrajectoryByCoordinateRequest::setEndTime(const std::string& endTime)
|
||||
{
|
||||
endTime_ = endTime;
|
||||
setBodyParameter("EndTime", endTime);
|
||||
}
|
||||
|
||||
int RecallTrajectoryByCoordinateRequest::getDeltaDistance()const
|
||||
{
|
||||
return deltaDistance_;
|
||||
}
|
||||
|
||||
void RecallTrajectoryByCoordinateRequest::setDeltaDistance(int deltaDistance)
|
||||
{
|
||||
deltaDistance_ = deltaDistance;
|
||||
setBodyParameter("DeltaDistance", std::to_string(deltaDistance));
|
||||
}
|
||||
|
||||
std::string RecallTrajectoryByCoordinateRequest::getStartTime()const
|
||||
{
|
||||
return startTime_;
|
||||
}
|
||||
|
||||
void RecallTrajectoryByCoordinateRequest::setStartTime(const std::string& startTime)
|
||||
{
|
||||
startTime_ = startTime;
|
||||
setBodyParameter("StartTime", startTime);
|
||||
}
|
||||
|
||||
std::vector<std::string> RecallTrajectoryByCoordinateRequest::getOutputIdTypeList()const
|
||||
{
|
||||
return outputIdTypeList_;
|
||||
}
|
||||
|
||||
void RecallTrajectoryByCoordinateRequest::setOutputIdTypeList(const std::vector<std::string>& outputIdTypeList)
|
||||
{
|
||||
outputIdTypeList_ = outputIdTypeList;
|
||||
for(int dep1 = 0; dep1!= outputIdTypeList.size(); dep1++) {
|
||||
setBodyParameter("OutputIdTypeList."+ std::to_string(dep1), outputIdTypeList.at(dep1));
|
||||
}
|
||||
}
|
||||
|
||||
int RecallTrajectoryByCoordinateRequest::getDeltaTime()const
|
||||
{
|
||||
return deltaTime_;
|
||||
}
|
||||
|
||||
void RecallTrajectoryByCoordinateRequest::setDeltaTime(int deltaTime)
|
||||
{
|
||||
deltaTime_ = deltaTime;
|
||||
setBodyParameter("DeltaTime", std::to_string(deltaTime));
|
||||
}
|
||||
|
||||
int RecallTrajectoryByCoordinateRequest::getOutputIdCount()const
|
||||
{
|
||||
return outputIdCount_;
|
||||
}
|
||||
|
||||
void RecallTrajectoryByCoordinateRequest::setOutputIdCount(int outputIdCount)
|
||||
{
|
||||
outputIdCount_ = outputIdCount;
|
||||
setBodyParameter("OutputIdCount", std::to_string(outputIdCount));
|
||||
}
|
||||
|
||||
72
cdrs/src/model/RecallTrajectoryByCoordinateResult.cc
Normal file
72
cdrs/src/model/RecallTrajectoryByCoordinateResult.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/cdrs/model/RecallTrajectoryByCoordinateResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::CDRS;
|
||||
using namespace AlibabaCloud::CDRS::Model;
|
||||
|
||||
RecallTrajectoryByCoordinateResult::RecallTrajectoryByCoordinateResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
RecallTrajectoryByCoordinateResult::RecallTrajectoryByCoordinateResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
RecallTrajectoryByCoordinateResult::~RecallTrajectoryByCoordinateResult()
|
||||
{}
|
||||
|
||||
void RecallTrajectoryByCoordinateResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["Code"].isNull())
|
||||
code_ = std::stoi(value["Code"].asString());
|
||||
if(!value["Data"].isNull())
|
||||
data_ = value["Data"].asString();
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
|
||||
}
|
||||
|
||||
std::string RecallTrajectoryByCoordinateResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
std::string RecallTrajectoryByCoordinateResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
int RecallTrajectoryByCoordinateResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
bool RecallTrajectoryByCoordinateResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
130
cdrs/src/model/RecallTrajectoryByIdRequest.cc
Normal file
130
cdrs/src/model/RecallTrajectoryByIdRequest.cc
Normal file
@@ -0,0 +1,130 @@
|
||||
/*
|
||||
* 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/cdrs/model/RecallTrajectoryByIdRequest.h>
|
||||
|
||||
using AlibabaCloud::CDRS::Model::RecallTrajectoryByIdRequest;
|
||||
|
||||
RecallTrajectoryByIdRequest::RecallTrajectoryByIdRequest() :
|
||||
RpcServiceRequest("cdrs", "2020-11-01", "RecallTrajectoryById")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
RecallTrajectoryByIdRequest::~RecallTrajectoryByIdRequest()
|
||||
{}
|
||||
|
||||
std::string RecallTrajectoryByIdRequest::getCorpId()const
|
||||
{
|
||||
return corpId_;
|
||||
}
|
||||
|
||||
void RecallTrajectoryByIdRequest::setCorpId(const std::string& corpId)
|
||||
{
|
||||
corpId_ = corpId;
|
||||
setBodyParameter("CorpId", corpId);
|
||||
}
|
||||
|
||||
std::string RecallTrajectoryByIdRequest::getEndTime()const
|
||||
{
|
||||
return endTime_;
|
||||
}
|
||||
|
||||
void RecallTrajectoryByIdRequest::setEndTime(const std::string& endTime)
|
||||
{
|
||||
endTime_ = endTime;
|
||||
setBodyParameter("EndTime", endTime);
|
||||
}
|
||||
|
||||
std::string RecallTrajectoryByIdRequest::getIdValue()const
|
||||
{
|
||||
return idValue_;
|
||||
}
|
||||
|
||||
void RecallTrajectoryByIdRequest::setIdValue(const std::string& idValue)
|
||||
{
|
||||
idValue_ = idValue;
|
||||
setBodyParameter("IdValue", idValue);
|
||||
}
|
||||
|
||||
int RecallTrajectoryByIdRequest::getDeltaDistance()const
|
||||
{
|
||||
return deltaDistance_;
|
||||
}
|
||||
|
||||
void RecallTrajectoryByIdRequest::setDeltaDistance(int deltaDistance)
|
||||
{
|
||||
deltaDistance_ = deltaDistance;
|
||||
setBodyParameter("DeltaDistance", std::to_string(deltaDistance));
|
||||
}
|
||||
|
||||
std::string RecallTrajectoryByIdRequest::getStartTime()const
|
||||
{
|
||||
return startTime_;
|
||||
}
|
||||
|
||||
void RecallTrajectoryByIdRequest::setStartTime(const std::string& startTime)
|
||||
{
|
||||
startTime_ = startTime;
|
||||
setBodyParameter("StartTime", startTime);
|
||||
}
|
||||
|
||||
std::string RecallTrajectoryByIdRequest::getIdType()const
|
||||
{
|
||||
return idType_;
|
||||
}
|
||||
|
||||
void RecallTrajectoryByIdRequest::setIdType(const std::string& idType)
|
||||
{
|
||||
idType_ = idType;
|
||||
setBodyParameter("IdType", idType);
|
||||
}
|
||||
|
||||
std::vector<std::string> RecallTrajectoryByIdRequest::getOutputIdTypeList()const
|
||||
{
|
||||
return outputIdTypeList_;
|
||||
}
|
||||
|
||||
void RecallTrajectoryByIdRequest::setOutputIdTypeList(const std::vector<std::string>& outputIdTypeList)
|
||||
{
|
||||
outputIdTypeList_ = outputIdTypeList;
|
||||
for(int dep1 = 0; dep1!= outputIdTypeList.size(); dep1++) {
|
||||
setBodyParameter("OutputIdTypeList."+ std::to_string(dep1), outputIdTypeList.at(dep1));
|
||||
}
|
||||
}
|
||||
|
||||
int RecallTrajectoryByIdRequest::getDeltaTime()const
|
||||
{
|
||||
return deltaTime_;
|
||||
}
|
||||
|
||||
void RecallTrajectoryByIdRequest::setDeltaTime(int deltaTime)
|
||||
{
|
||||
deltaTime_ = deltaTime;
|
||||
setBodyParameter("DeltaTime", std::to_string(deltaTime));
|
||||
}
|
||||
|
||||
int RecallTrajectoryByIdRequest::getOutputIdCount()const
|
||||
{
|
||||
return outputIdCount_;
|
||||
}
|
||||
|
||||
void RecallTrajectoryByIdRequest::setOutputIdCount(int outputIdCount)
|
||||
{
|
||||
outputIdCount_ = outputIdCount;
|
||||
setBodyParameter("OutputIdCount", std::to_string(outputIdCount));
|
||||
}
|
||||
|
||||
72
cdrs/src/model/RecallTrajectoryByIdResult.cc
Normal file
72
cdrs/src/model/RecallTrajectoryByIdResult.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/cdrs/model/RecallTrajectoryByIdResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::CDRS;
|
||||
using namespace AlibabaCloud::CDRS::Model;
|
||||
|
||||
RecallTrajectoryByIdResult::RecallTrajectoryByIdResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
RecallTrajectoryByIdResult::RecallTrajectoryByIdResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
RecallTrajectoryByIdResult::~RecallTrajectoryByIdResult()
|
||||
{}
|
||||
|
||||
void RecallTrajectoryByIdResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["Code"].isNull())
|
||||
code_ = std::stoi(value["Code"].asString());
|
||||
if(!value["Data"].isNull())
|
||||
data_ = value["Data"].asString();
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
|
||||
}
|
||||
|
||||
std::string RecallTrajectoryByIdResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
std::string RecallTrajectoryByIdResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
int RecallTrajectoryByIdResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
bool RecallTrajectoryByIdResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
84
cdrs/src/model/ValidateTrajectoryRequest.cc
Normal file
84
cdrs/src/model/ValidateTrajectoryRequest.cc
Normal file
@@ -0,0 +1,84 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/cdrs/model/ValidateTrajectoryRequest.h>
|
||||
|
||||
using AlibabaCloud::CDRS::Model::ValidateTrajectoryRequest;
|
||||
|
||||
ValidateTrajectoryRequest::ValidateTrajectoryRequest() :
|
||||
RpcServiceRequest("cdrs", "2020-11-01", "ValidateTrajectory")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
ValidateTrajectoryRequest::~ValidateTrajectoryRequest()
|
||||
{}
|
||||
|
||||
std::string ValidateTrajectoryRequest::getCorpId()const
|
||||
{
|
||||
return corpId_;
|
||||
}
|
||||
|
||||
void ValidateTrajectoryRequest::setCorpId(const std::string& corpId)
|
||||
{
|
||||
corpId_ = corpId;
|
||||
setBodyParameter("CorpId", corpId);
|
||||
}
|
||||
|
||||
std::string ValidateTrajectoryRequest::getEndTime()const
|
||||
{
|
||||
return endTime_;
|
||||
}
|
||||
|
||||
void ValidateTrajectoryRequest::setEndTime(const std::string& endTime)
|
||||
{
|
||||
endTime_ = endTime;
|
||||
setBodyParameter("EndTime", endTime);
|
||||
}
|
||||
|
||||
std::string ValidateTrajectoryRequest::getIdValue()const
|
||||
{
|
||||
return idValue_;
|
||||
}
|
||||
|
||||
void ValidateTrajectoryRequest::setIdValue(const std::string& idValue)
|
||||
{
|
||||
idValue_ = idValue;
|
||||
setBodyParameter("IdValue", idValue);
|
||||
}
|
||||
|
||||
std::string ValidateTrajectoryRequest::getStartTime()const
|
||||
{
|
||||
return startTime_;
|
||||
}
|
||||
|
||||
void ValidateTrajectoryRequest::setStartTime(const std::string& startTime)
|
||||
{
|
||||
startTime_ = startTime;
|
||||
setBodyParameter("StartTime", startTime);
|
||||
}
|
||||
|
||||
std::string ValidateTrajectoryRequest::getIdType()const
|
||||
{
|
||||
return idType_;
|
||||
}
|
||||
|
||||
void ValidateTrajectoryRequest::setIdType(const std::string& idType)
|
||||
{
|
||||
idType_ = idType;
|
||||
setBodyParameter("IdType", idType);
|
||||
}
|
||||
|
||||
72
cdrs/src/model/ValidateTrajectoryResult.cc
Normal file
72
cdrs/src/model/ValidateTrajectoryResult.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/cdrs/model/ValidateTrajectoryResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::CDRS;
|
||||
using namespace AlibabaCloud::CDRS::Model;
|
||||
|
||||
ValidateTrajectoryResult::ValidateTrajectoryResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
ValidateTrajectoryResult::ValidateTrajectoryResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
ValidateTrajectoryResult::~ValidateTrajectoryResult()
|
||||
{}
|
||||
|
||||
void ValidateTrajectoryResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["Code"].isNull())
|
||||
code_ = std::stoi(value["Code"].asString());
|
||||
if(!value["Data"].isNull())
|
||||
data_ = value["Data"].asString();
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
|
||||
}
|
||||
|
||||
std::string ValidateTrajectoryResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
std::string ValidateTrajectoryResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
int ValidateTrajectoryResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
bool ValidateTrajectoryResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
@@ -35,8 +35,12 @@ set(codeup_public_header_model
|
||||
include/alibabacloud/codeup/model/CreateMergeRequestResult.h
|
||||
include/alibabacloud/codeup/model/CreateRepositoryRequest.h
|
||||
include/alibabacloud/codeup/model/CreateRepositoryResult.h
|
||||
include/alibabacloud/codeup/model/CreateRepositoryDeployKeyRequest.h
|
||||
include/alibabacloud/codeup/model/CreateRepositoryDeployKeyResult.h
|
||||
include/alibabacloud/codeup/model/CreateRepositoryGroupRequest.h
|
||||
include/alibabacloud/codeup/model/CreateRepositoryGroupResult.h
|
||||
include/alibabacloud/codeup/model/CreateRepositoryProtectedBranchRequest.h
|
||||
include/alibabacloud/codeup/model/CreateRepositoryProtectedBranchResult.h
|
||||
include/alibabacloud/codeup/model/CreateTagRequest.h
|
||||
include/alibabacloud/codeup/model/CreateTagResult.h
|
||||
include/alibabacloud/codeup/model/DeleteBranchRequest.h
|
||||
@@ -51,10 +55,14 @@ 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/DeleteRepositoryProtectedBranchRequest.h
|
||||
include/alibabacloud/codeup/model/DeleteRepositoryProtectedBranchResult.h
|
||||
include/alibabacloud/codeup/model/DeleteRepositoryTagRequest.h
|
||||
include/alibabacloud/codeup/model/DeleteRepositoryTagResult.h
|
||||
include/alibabacloud/codeup/model/DeleteRepositoryWebhookRequest.h
|
||||
include/alibabacloud/codeup/model/DeleteRepositoryWebhookResult.h
|
||||
include/alibabacloud/codeup/model/EnableRepositoryDeployKeyRequest.h
|
||||
include/alibabacloud/codeup/model/EnableRepositoryDeployKeyResult.h
|
||||
include/alibabacloud/codeup/model/GetBranchInfoRequest.h
|
||||
include/alibabacloud/codeup/model/GetBranchInfoResult.h
|
||||
include/alibabacloud/codeup/model/GetCodeupOrganizationRequest.h
|
||||
@@ -77,6 +85,8 @@ set(codeup_public_header_model
|
||||
include/alibabacloud/codeup/model/ListGroupRepositoriesResult.h
|
||||
include/alibabacloud/codeup/model/ListGroupsRequest.h
|
||||
include/alibabacloud/codeup/model/ListGroupsResult.h
|
||||
include/alibabacloud/codeup/model/ListMergeRequestsRequest.h
|
||||
include/alibabacloud/codeup/model/ListMergeRequestsResult.h
|
||||
include/alibabacloud/codeup/model/ListOrganizationsRequest.h
|
||||
include/alibabacloud/codeup/model/ListOrganizationsResult.h
|
||||
include/alibabacloud/codeup/model/ListRepositoriesRequest.h
|
||||
@@ -97,6 +107,8 @@ set(codeup_public_header_model
|
||||
include/alibabacloud/codeup/model/UpdateFileResult.h
|
||||
include/alibabacloud/codeup/model/UpdateGroupMemberRequest.h
|
||||
include/alibabacloud/codeup/model/UpdateGroupMemberResult.h
|
||||
include/alibabacloud/codeup/model/UpdateRepositoryRequest.h
|
||||
include/alibabacloud/codeup/model/UpdateRepositoryResult.h
|
||||
include/alibabacloud/codeup/model/UpdateRepositoryMemberRequest.h
|
||||
include/alibabacloud/codeup/model/UpdateRepositoryMemberResult.h )
|
||||
|
||||
@@ -116,8 +128,12 @@ set(codeup_src
|
||||
src/model/CreateMergeRequestResult.cc
|
||||
src/model/CreateRepositoryRequest.cc
|
||||
src/model/CreateRepositoryResult.cc
|
||||
src/model/CreateRepositoryDeployKeyRequest.cc
|
||||
src/model/CreateRepositoryDeployKeyResult.cc
|
||||
src/model/CreateRepositoryGroupRequest.cc
|
||||
src/model/CreateRepositoryGroupResult.cc
|
||||
src/model/CreateRepositoryProtectedBranchRequest.cc
|
||||
src/model/CreateRepositoryProtectedBranchResult.cc
|
||||
src/model/CreateTagRequest.cc
|
||||
src/model/CreateTagResult.cc
|
||||
src/model/DeleteBranchRequest.cc
|
||||
@@ -132,10 +148,14 @@ set(codeup_src
|
||||
src/model/DeleteRepositoryGroupResult.cc
|
||||
src/model/DeleteRepositoryMemberRequest.cc
|
||||
src/model/DeleteRepositoryMemberResult.cc
|
||||
src/model/DeleteRepositoryProtectedBranchRequest.cc
|
||||
src/model/DeleteRepositoryProtectedBranchResult.cc
|
||||
src/model/DeleteRepositoryTagRequest.cc
|
||||
src/model/DeleteRepositoryTagResult.cc
|
||||
src/model/DeleteRepositoryWebhookRequest.cc
|
||||
src/model/DeleteRepositoryWebhookResult.cc
|
||||
src/model/EnableRepositoryDeployKeyRequest.cc
|
||||
src/model/EnableRepositoryDeployKeyResult.cc
|
||||
src/model/GetBranchInfoRequest.cc
|
||||
src/model/GetBranchInfoResult.cc
|
||||
src/model/GetCodeupOrganizationRequest.cc
|
||||
@@ -158,6 +178,8 @@ set(codeup_src
|
||||
src/model/ListGroupRepositoriesResult.cc
|
||||
src/model/ListGroupsRequest.cc
|
||||
src/model/ListGroupsResult.cc
|
||||
src/model/ListMergeRequestsRequest.cc
|
||||
src/model/ListMergeRequestsResult.cc
|
||||
src/model/ListOrganizationsRequest.cc
|
||||
src/model/ListOrganizationsResult.cc
|
||||
src/model/ListRepositoriesRequest.cc
|
||||
@@ -178,6 +200,8 @@ set(codeup_src
|
||||
src/model/UpdateFileResult.cc
|
||||
src/model/UpdateGroupMemberRequest.cc
|
||||
src/model/UpdateGroupMemberResult.cc
|
||||
src/model/UpdateRepositoryRequest.cc
|
||||
src/model/UpdateRepositoryResult.cc
|
||||
src/model/UpdateRepositoryMemberRequest.cc
|
||||
src/model/UpdateRepositoryMemberResult.cc )
|
||||
|
||||
|
||||
@@ -36,8 +36,12 @@
|
||||
#include "model/CreateMergeRequestResult.h"
|
||||
#include "model/CreateRepositoryRequest.h"
|
||||
#include "model/CreateRepositoryResult.h"
|
||||
#include "model/CreateRepositoryDeployKeyRequest.h"
|
||||
#include "model/CreateRepositoryDeployKeyResult.h"
|
||||
#include "model/CreateRepositoryGroupRequest.h"
|
||||
#include "model/CreateRepositoryGroupResult.h"
|
||||
#include "model/CreateRepositoryProtectedBranchRequest.h"
|
||||
#include "model/CreateRepositoryProtectedBranchResult.h"
|
||||
#include "model/CreateTagRequest.h"
|
||||
#include "model/CreateTagResult.h"
|
||||
#include "model/DeleteBranchRequest.h"
|
||||
@@ -52,10 +56,14 @@
|
||||
#include "model/DeleteRepositoryGroupResult.h"
|
||||
#include "model/DeleteRepositoryMemberRequest.h"
|
||||
#include "model/DeleteRepositoryMemberResult.h"
|
||||
#include "model/DeleteRepositoryProtectedBranchRequest.h"
|
||||
#include "model/DeleteRepositoryProtectedBranchResult.h"
|
||||
#include "model/DeleteRepositoryTagRequest.h"
|
||||
#include "model/DeleteRepositoryTagResult.h"
|
||||
#include "model/DeleteRepositoryWebhookRequest.h"
|
||||
#include "model/DeleteRepositoryWebhookResult.h"
|
||||
#include "model/EnableRepositoryDeployKeyRequest.h"
|
||||
#include "model/EnableRepositoryDeployKeyResult.h"
|
||||
#include "model/GetBranchInfoRequest.h"
|
||||
#include "model/GetBranchInfoResult.h"
|
||||
#include "model/GetCodeupOrganizationRequest.h"
|
||||
@@ -78,6 +86,8 @@
|
||||
#include "model/ListGroupRepositoriesResult.h"
|
||||
#include "model/ListGroupsRequest.h"
|
||||
#include "model/ListGroupsResult.h"
|
||||
#include "model/ListMergeRequestsRequest.h"
|
||||
#include "model/ListMergeRequestsResult.h"
|
||||
#include "model/ListOrganizationsRequest.h"
|
||||
#include "model/ListOrganizationsResult.h"
|
||||
#include "model/ListRepositoriesRequest.h"
|
||||
@@ -98,6 +108,8 @@
|
||||
#include "model/UpdateFileResult.h"
|
||||
#include "model/UpdateGroupMemberRequest.h"
|
||||
#include "model/UpdateGroupMemberResult.h"
|
||||
#include "model/UpdateRepositoryRequest.h"
|
||||
#include "model/UpdateRepositoryResult.h"
|
||||
#include "model/UpdateRepositoryMemberRequest.h"
|
||||
#include "model/UpdateRepositoryMemberResult.h"
|
||||
|
||||
@@ -130,9 +142,15 @@ namespace AlibabaCloud
|
||||
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::CreateRepositoryDeployKeyResult> CreateRepositoryDeployKeyOutcome;
|
||||
typedef std::future<CreateRepositoryDeployKeyOutcome> CreateRepositoryDeployKeyOutcomeCallable;
|
||||
typedef std::function<void(const CodeupClient*, const Model::CreateRepositoryDeployKeyRequest&, const CreateRepositoryDeployKeyOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> CreateRepositoryDeployKeyAsyncHandler;
|
||||
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::CreateRepositoryProtectedBranchResult> CreateRepositoryProtectedBranchOutcome;
|
||||
typedef std::future<CreateRepositoryProtectedBranchOutcome> CreateRepositoryProtectedBranchOutcomeCallable;
|
||||
typedef std::function<void(const CodeupClient*, const Model::CreateRepositoryProtectedBranchRequest&, const CreateRepositoryProtectedBranchOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> CreateRepositoryProtectedBranchAsyncHandler;
|
||||
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;
|
||||
@@ -154,12 +172,18 @@ 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::DeleteRepositoryProtectedBranchResult> DeleteRepositoryProtectedBranchOutcome;
|
||||
typedef std::future<DeleteRepositoryProtectedBranchOutcome> DeleteRepositoryProtectedBranchOutcomeCallable;
|
||||
typedef std::function<void(const CodeupClient*, const Model::DeleteRepositoryProtectedBranchRequest&, const DeleteRepositoryProtectedBranchOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DeleteRepositoryProtectedBranchAsyncHandler;
|
||||
typedef Outcome<Error, Model::DeleteRepositoryTagResult> DeleteRepositoryTagOutcome;
|
||||
typedef std::future<DeleteRepositoryTagOutcome> DeleteRepositoryTagOutcomeCallable;
|
||||
typedef std::function<void(const CodeupClient*, const Model::DeleteRepositoryTagRequest&, const DeleteRepositoryTagOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DeleteRepositoryTagAsyncHandler;
|
||||
typedef Outcome<Error, Model::DeleteRepositoryWebhookResult> DeleteRepositoryWebhookOutcome;
|
||||
typedef std::future<DeleteRepositoryWebhookOutcome> DeleteRepositoryWebhookOutcomeCallable;
|
||||
typedef std::function<void(const CodeupClient*, const Model::DeleteRepositoryWebhookRequest&, const DeleteRepositoryWebhookOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DeleteRepositoryWebhookAsyncHandler;
|
||||
typedef Outcome<Error, Model::EnableRepositoryDeployKeyResult> EnableRepositoryDeployKeyOutcome;
|
||||
typedef std::future<EnableRepositoryDeployKeyOutcome> EnableRepositoryDeployKeyOutcomeCallable;
|
||||
typedef std::function<void(const CodeupClient*, const Model::EnableRepositoryDeployKeyRequest&, const EnableRepositoryDeployKeyOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> EnableRepositoryDeployKeyAsyncHandler;
|
||||
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;
|
||||
@@ -193,6 +217,9 @@ namespace AlibabaCloud
|
||||
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::ListMergeRequestsResult> ListMergeRequestsOutcome;
|
||||
typedef std::future<ListMergeRequestsOutcome> ListMergeRequestsOutcomeCallable;
|
||||
typedef std::function<void(const CodeupClient*, const Model::ListMergeRequestsRequest&, const ListMergeRequestsOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ListMergeRequestsAsyncHandler;
|
||||
typedef Outcome<Error, Model::ListOrganizationsResult> ListOrganizationsOutcome;
|
||||
typedef std::future<ListOrganizationsOutcome> ListOrganizationsOutcomeCallable;
|
||||
typedef std::function<void(const CodeupClient*, const Model::ListOrganizationsRequest&, const ListOrganizationsOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ListOrganizationsAsyncHandler;
|
||||
@@ -223,6 +250,9 @@ namespace AlibabaCloud
|
||||
typedef Outcome<Error, Model::UpdateGroupMemberResult> UpdateGroupMemberOutcome;
|
||||
typedef std::future<UpdateGroupMemberOutcome> UpdateGroupMemberOutcomeCallable;
|
||||
typedef std::function<void(const CodeupClient*, const Model::UpdateGroupMemberRequest&, const UpdateGroupMemberOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> UpdateGroupMemberAsyncHandler;
|
||||
typedef Outcome<Error, Model::UpdateRepositoryResult> UpdateRepositoryOutcome;
|
||||
typedef std::future<UpdateRepositoryOutcome> UpdateRepositoryOutcomeCallable;
|
||||
typedef std::function<void(const CodeupClient*, const Model::UpdateRepositoryRequest&, const UpdateRepositoryOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> UpdateRepositoryAsyncHandler;
|
||||
typedef Outcome<Error, Model::UpdateRepositoryMemberResult> UpdateRepositoryMemberOutcome;
|
||||
typedef std::future<UpdateRepositoryMemberOutcome> UpdateRepositoryMemberOutcomeCallable;
|
||||
typedef std::function<void(const CodeupClient*, const Model::UpdateRepositoryMemberRequest&, const UpdateRepositoryMemberOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> UpdateRepositoryMemberAsyncHandler;
|
||||
@@ -252,9 +282,15 @@ namespace AlibabaCloud
|
||||
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;
|
||||
CreateRepositoryDeployKeyOutcome createRepositoryDeployKey(const Model::CreateRepositoryDeployKeyRequest &request)const;
|
||||
void createRepositoryDeployKeyAsync(const Model::CreateRepositoryDeployKeyRequest& request, const CreateRepositoryDeployKeyAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
CreateRepositoryDeployKeyOutcomeCallable createRepositoryDeployKeyCallable(const Model::CreateRepositoryDeployKeyRequest& 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;
|
||||
CreateRepositoryProtectedBranchOutcome createRepositoryProtectedBranch(const Model::CreateRepositoryProtectedBranchRequest &request)const;
|
||||
void createRepositoryProtectedBranchAsync(const Model::CreateRepositoryProtectedBranchRequest& request, const CreateRepositoryProtectedBranchAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
CreateRepositoryProtectedBranchOutcomeCallable createRepositoryProtectedBranchCallable(const Model::CreateRepositoryProtectedBranchRequest& 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;
|
||||
@@ -276,12 +312,18 @@ 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;
|
||||
DeleteRepositoryProtectedBranchOutcome deleteRepositoryProtectedBranch(const Model::DeleteRepositoryProtectedBranchRequest &request)const;
|
||||
void deleteRepositoryProtectedBranchAsync(const Model::DeleteRepositoryProtectedBranchRequest& request, const DeleteRepositoryProtectedBranchAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DeleteRepositoryProtectedBranchOutcomeCallable deleteRepositoryProtectedBranchCallable(const Model::DeleteRepositoryProtectedBranchRequest& request) const;
|
||||
DeleteRepositoryTagOutcome deleteRepositoryTag(const Model::DeleteRepositoryTagRequest &request)const;
|
||||
void deleteRepositoryTagAsync(const Model::DeleteRepositoryTagRequest& request, const DeleteRepositoryTagAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DeleteRepositoryTagOutcomeCallable deleteRepositoryTagCallable(const Model::DeleteRepositoryTagRequest& request) const;
|
||||
DeleteRepositoryWebhookOutcome deleteRepositoryWebhook(const Model::DeleteRepositoryWebhookRequest &request)const;
|
||||
void deleteRepositoryWebhookAsync(const Model::DeleteRepositoryWebhookRequest& request, const DeleteRepositoryWebhookAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DeleteRepositoryWebhookOutcomeCallable deleteRepositoryWebhookCallable(const Model::DeleteRepositoryWebhookRequest& request) const;
|
||||
EnableRepositoryDeployKeyOutcome enableRepositoryDeployKey(const Model::EnableRepositoryDeployKeyRequest &request)const;
|
||||
void enableRepositoryDeployKeyAsync(const Model::EnableRepositoryDeployKeyRequest& request, const EnableRepositoryDeployKeyAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
EnableRepositoryDeployKeyOutcomeCallable enableRepositoryDeployKeyCallable(const Model::EnableRepositoryDeployKeyRequest& 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;
|
||||
@@ -315,6 +357,9 @@ namespace AlibabaCloud
|
||||
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;
|
||||
ListMergeRequestsOutcome listMergeRequests(const Model::ListMergeRequestsRequest &request)const;
|
||||
void listMergeRequestsAsync(const Model::ListMergeRequestsRequest& request, const ListMergeRequestsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
ListMergeRequestsOutcomeCallable listMergeRequestsCallable(const Model::ListMergeRequestsRequest& request) const;
|
||||
ListOrganizationsOutcome listOrganizations(const Model::ListOrganizationsRequest &request)const;
|
||||
void listOrganizationsAsync(const Model::ListOrganizationsRequest& request, const ListOrganizationsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
ListOrganizationsOutcomeCallable listOrganizationsCallable(const Model::ListOrganizationsRequest& request) const;
|
||||
@@ -345,6 +390,9 @@ namespace AlibabaCloud
|
||||
UpdateGroupMemberOutcome updateGroupMember(const Model::UpdateGroupMemberRequest &request)const;
|
||||
void updateGroupMemberAsync(const Model::UpdateGroupMemberRequest& request, const UpdateGroupMemberAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
UpdateGroupMemberOutcomeCallable updateGroupMemberCallable(const Model::UpdateGroupMemberRequest& request) const;
|
||||
UpdateRepositoryOutcome updateRepository(const Model::UpdateRepositoryRequest &request)const;
|
||||
void updateRepositoryAsync(const Model::UpdateRepositoryRequest& request, const UpdateRepositoryAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
UpdateRepositoryOutcomeCallable updateRepositoryCallable(const Model::UpdateRepositoryRequest& request) const;
|
||||
UpdateRepositoryMemberOutcome updateRepositoryMember(const Model::UpdateRepositoryMemberRequest &request)const;
|
||||
void updateRepositoryMemberAsync(const Model::UpdateRepositoryMemberRequest& request, const UpdateRepositoryMemberAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
UpdateRepositoryMemberOutcomeCallable updateRepositoryMemberCallable(const Model::UpdateRepositoryMemberRequest& request) const;
|
||||
|
||||
@@ -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_CREATEREPOSITORYDEPLOYKEYREQUEST_H_
|
||||
#define ALIBABACLOUD_CODEUP_MODEL_CREATEREPOSITORYDEPLOYKEYREQUEST_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 CreateRepositoryDeployKeyRequest : public RoaServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
CreateRepositoryDeployKeyRequest();
|
||||
~CreateRepositoryDeployKeyRequest();
|
||||
|
||||
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_CREATEREPOSITORYDEPLOYKEYREQUEST_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_CREATEREPOSITORYDEPLOYKEYRESULT_H_
|
||||
#define ALIBABACLOUD_CODEUP_MODEL_CREATEREPOSITORYDEPLOYKEYRESULT_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 CreateRepositoryDeployKeyResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct Result
|
||||
{
|
||||
std::string fingerPrint;
|
||||
std::string createdAt;
|
||||
std::string title;
|
||||
long id;
|
||||
std::string key;
|
||||
};
|
||||
|
||||
|
||||
CreateRepositoryDeployKeyResult();
|
||||
explicit CreateRepositoryDeployKeyResult(const std::string &payload);
|
||||
~CreateRepositoryDeployKeyResult();
|
||||
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_CREATEREPOSITORYDEPLOYKEYRESULT_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_CREATEREPOSITORYPROTECTEDBRANCHREQUEST_H_
|
||||
#define ALIBABACLOUD_CODEUP_MODEL_CREATEREPOSITORYPROTECTEDBRANCHREQUEST_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 CreateRepositoryProtectedBranchRequest : public RoaServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
CreateRepositoryProtectedBranchRequest();
|
||||
~CreateRepositoryProtectedBranchRequest();
|
||||
|
||||
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_CREATEREPOSITORYPROTECTEDBRANCHREQUEST_H_
|
||||
@@ -0,0 +1,103 @@
|
||||
/*
|
||||
* 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_CREATEREPOSITORYPROTECTEDBRANCHRESULT_H_
|
||||
#define ALIBABACLOUD_CODEUP_MODEL_CREATEREPOSITORYPROTECTEDBRANCHRESULT_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 CreateRepositoryProtectedBranchResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct Result
|
||||
{
|
||||
struct MergeRequestSetting
|
||||
{
|
||||
bool required;
|
||||
std::vector<std::string> defaultAssignees;
|
||||
std::vector<std::string> allowMergeRequestRoles;
|
||||
bool isResetApprovalWhenNewPush;
|
||||
bool allowSelfApproval;
|
||||
int minimualApproval;
|
||||
bool isRequireDiscussionProcessed;
|
||||
std::string mergeRequestMode;
|
||||
};
|
||||
struct TestSetting
|
||||
{
|
||||
struct CodingGuidelinesDetection
|
||||
{
|
||||
std::string message;
|
||||
bool enabled;
|
||||
};
|
||||
struct SensitiveInfoDetection
|
||||
{
|
||||
std::string message;
|
||||
bool enabled;
|
||||
};
|
||||
struct CheckConfig
|
||||
{
|
||||
struct CheckItemsItem
|
||||
{
|
||||
bool required;
|
||||
std::string name;
|
||||
};
|
||||
std::vector<CheckItemsItem> checkItems;
|
||||
};
|
||||
SensitiveInfoDetection sensitiveInfoDetection;
|
||||
CodingGuidelinesDetection codingGuidelinesDetection;
|
||||
bool required;
|
||||
CheckConfig checkConfig;
|
||||
};
|
||||
std::vector<std::string> allowPushRoles;
|
||||
std::string branch;
|
||||
long id;
|
||||
TestSetting testSetting;
|
||||
std::vector<std::string> allowMergeRoles;
|
||||
MergeRequestSetting mergeRequestSetting;
|
||||
};
|
||||
|
||||
|
||||
CreateRepositoryProtectedBranchResult();
|
||||
explicit CreateRepositoryProtectedBranchResult(const std::string &payload);
|
||||
~CreateRepositoryProtectedBranchResult();
|
||||
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_CREATEREPOSITORYPROTECTEDBRANCHRESULT_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_DELETEREPOSITORYPROTECTEDBRANCHREQUEST_H_
|
||||
#define ALIBABACLOUD_CODEUP_MODEL_DELETEREPOSITORYPROTECTEDBRANCHREQUEST_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 DeleteRepositoryProtectedBranchRequest : public RoaServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
DeleteRepositoryProtectedBranchRequest();
|
||||
~DeleteRepositoryProtectedBranchRequest();
|
||||
|
||||
std::string getOrganizationId()const;
|
||||
void setOrganizationId(const std::string& organizationId);
|
||||
long getProtectedBranchId()const;
|
||||
void setProtectedBranchId(long protectedBranchId);
|
||||
std::string getAccessToken()const;
|
||||
void setAccessToken(const std::string& accessToken);
|
||||
long getProjectId()const;
|
||||
void setProjectId(long projectId);
|
||||
|
||||
private:
|
||||
std::string organizationId_;
|
||||
long protectedBranchId_;
|
||||
std::string accessToken_;
|
||||
long projectId_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_CODEUP_MODEL_DELETEREPOSITORYPROTECTEDBRANCHREQUEST_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_DELETEREPOSITORYPROTECTEDBRANCHRESULT_H_
|
||||
#define ALIBABACLOUD_CODEUP_MODEL_DELETEREPOSITORYPROTECTEDBRANCHRESULT_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 DeleteRepositoryProtectedBranchResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct Result
|
||||
{
|
||||
bool result;
|
||||
};
|
||||
|
||||
|
||||
DeleteRepositoryProtectedBranchResult();
|
||||
explicit DeleteRepositoryProtectedBranchResult(const std::string &payload);
|
||||
~DeleteRepositoryProtectedBranchResult();
|
||||
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_DELETEREPOSITORYPROTECTEDBRANCHRESULT_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_ENABLEREPOSITORYDEPLOYKEYREQUEST_H_
|
||||
#define ALIBABACLOUD_CODEUP_MODEL_ENABLEREPOSITORYDEPLOYKEYREQUEST_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 EnableRepositoryDeployKeyRequest : public RoaServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
EnableRepositoryDeployKeyRequest();
|
||||
~EnableRepositoryDeployKeyRequest();
|
||||
|
||||
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 getKeyId()const;
|
||||
void setKeyId(long keyId);
|
||||
long getProjectId()const;
|
||||
void setProjectId(long projectId);
|
||||
|
||||
private:
|
||||
std::string organizationId_;
|
||||
std::string subUserId_;
|
||||
std::string accessToken_;
|
||||
long keyId_;
|
||||
long projectId_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_CODEUP_MODEL_ENABLEREPOSITORYDEPLOYKEYREQUEST_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_ENABLEREPOSITORYDEPLOYKEYRESULT_H_
|
||||
#define ALIBABACLOUD_CODEUP_MODEL_ENABLEREPOSITORYDEPLOYKEYRESULT_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 EnableRepositoryDeployKeyResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct Result
|
||||
{
|
||||
bool result;
|
||||
};
|
||||
|
||||
|
||||
EnableRepositoryDeployKeyResult();
|
||||
explicit EnableRepositoryDeployKeyResult(const std::string &payload);
|
||||
~EnableRepositoryDeployKeyResult();
|
||||
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_ENABLEREPOSITORYDEPLOYKEYRESULT_H_
|
||||
@@ -35,10 +35,13 @@ namespace AlibabaCloud
|
||||
GetUserInfoRequest();
|
||||
~GetUserInfoRequest();
|
||||
|
||||
std::string getOrganizationId()const;
|
||||
void setOrganizationId(const std::string& organizationId);
|
||||
std::string getAccessToken()const;
|
||||
void setAccessToken(const std::string& accessToken);
|
||||
|
||||
private:
|
||||
std::string organizationId_;
|
||||
std::string accessToken_;
|
||||
|
||||
};
|
||||
|
||||
@@ -0,0 +1,93 @@
|
||||
/*
|
||||
* 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_LISTMERGEREQUESTSREQUEST_H_
|
||||
#define ALIBABACLOUD_CODEUP_MODEL_LISTMERGEREQUESTSREQUEST_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 ListMergeRequestsRequest : public RoaServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
ListMergeRequestsRequest();
|
||||
~ListMergeRequestsRequest();
|
||||
|
||||
std::string getBeforeDate()const;
|
||||
void setBeforeDate(const std::string& beforeDate);
|
||||
std::string getAssigneeIdList()const;
|
||||
void setAssigneeIdList(const std::string& assigneeIdList);
|
||||
std::string getAccessToken()const;
|
||||
void setAccessToken(const std::string& accessToken);
|
||||
std::string getSubscriberCodeupIdList()const;
|
||||
void setSubscriberCodeupIdList(const std::string& subscriberCodeupIdList);
|
||||
std::string getAfterDate()const;
|
||||
void setAfterDate(const std::string& afterDate);
|
||||
std::string getOrganizationId()const;
|
||||
void setOrganizationId(const std::string& organizationId);
|
||||
std::string getGroupIdList()const;
|
||||
void setGroupIdList(const std::string& groupIdList);
|
||||
std::string getSearch()const;
|
||||
void setSearch(const std::string& search);
|
||||
std::string getAuthorCodeupIdList()const;
|
||||
void setAuthorCodeupIdList(const std::string& authorCodeupIdList);
|
||||
std::string getAuthorIdList()const;
|
||||
void setAuthorIdList(const std::string& authorIdList);
|
||||
long getPageSize()const;
|
||||
void setPageSize(long pageSize);
|
||||
std::string getProjectIdList()const;
|
||||
void setProjectIdList(const std::string& projectIdList);
|
||||
long getPage()const;
|
||||
void setPage(long page);
|
||||
std::string getAssigneeCodeupIdList()const;
|
||||
void setAssigneeCodeupIdList(const std::string& assigneeCodeupIdList);
|
||||
std::string getState()const;
|
||||
void setState(const std::string& state);
|
||||
std::string getOrder()const;
|
||||
void setOrder(const std::string& order);
|
||||
|
||||
private:
|
||||
std::string beforeDate_;
|
||||
std::string assigneeIdList_;
|
||||
std::string accessToken_;
|
||||
std::string subscriberCodeupIdList_;
|
||||
std::string afterDate_;
|
||||
std::string organizationId_;
|
||||
std::string groupIdList_;
|
||||
std::string search_;
|
||||
std::string authorCodeupIdList_;
|
||||
std::string authorIdList_;
|
||||
long pageSize_;
|
||||
std::string projectIdList_;
|
||||
long page_;
|
||||
std::string assigneeCodeupIdList_;
|
||||
std::string state_;
|
||||
std::string order_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_CODEUP_MODEL_LISTMERGEREQUESTSREQUEST_H_
|
||||
@@ -0,0 +1,135 @@
|
||||
/*
|
||||
* 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_LISTMERGEREQUESTSRESULT_H_
|
||||
#define ALIBABACLOUD_CODEUP_MODEL_LISTMERGEREQUESTSRESULT_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 ListMergeRequestsResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct ResultItem
|
||||
{
|
||||
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 Author
|
||||
{
|
||||
std::string avatarUrl;
|
||||
std::string externUserId;
|
||||
long id;
|
||||
std::string name;
|
||||
};
|
||||
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 mergeError;
|
||||
std::string nameWithNamespace;
|
||||
std::string title;
|
||||
std::string webUrl;
|
||||
std::string mergedRevision;
|
||||
std::string updatedAt;
|
||||
std::string acceptedRevision;
|
||||
std::string state;
|
||||
std::vector<ResultItem::AssigneeListItem> assigneeList;
|
||||
std::string mergeStatus;
|
||||
std::string sourceBranch;
|
||||
Author author;
|
||||
long id;
|
||||
std::string mergeType;
|
||||
std::string targetBranch;
|
||||
};
|
||||
|
||||
|
||||
ListMergeRequestsResult();
|
||||
explicit ListMergeRequestsResult(const std::string &payload);
|
||||
~ListMergeRequestsResult();
|
||||
long getTotal()const;
|
||||
std::string getErrorCode()const;
|
||||
std::string getErrorMessage()const;
|
||||
bool getSuccess()const;
|
||||
std::vector<ResultItem> getResult()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
long total_;
|
||||
std::string errorCode_;
|
||||
std::string errorMessage_;
|
||||
bool success_;
|
||||
std::vector<ResultItem> result_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_CODEUP_MODEL_LISTMERGEREQUESTSRESULT_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_UPDATEREPOSITORYREQUEST_H_
|
||||
#define ALIBABACLOUD_CODEUP_MODEL_UPDATEREPOSITORYREQUEST_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 UpdateRepositoryRequest : public RoaServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
UpdateRepositoryRequest();
|
||||
~UpdateRepositoryRequest();
|
||||
|
||||
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_UPDATEREPOSITORYREQUEST_H_
|
||||
@@ -0,0 +1,90 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_CODEUP_MODEL_UPDATEREPOSITORYRESULT_H_
|
||||
#define ALIBABACLOUD_CODEUP_MODEL_UPDATEREPOSITORYRESULT_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 UpdateRepositoryResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct Result
|
||||
{
|
||||
struct _Namespace
|
||||
{
|
||||
std::string path;
|
||||
std::string description;
|
||||
long ownerId;
|
||||
std::string createdAt;
|
||||
bool _public;
|
||||
std::string visibilityLevel;
|
||||
long id;
|
||||
std::string updatedAt;
|
||||
std::string avatar;
|
||||
std::string name;
|
||||
};
|
||||
std::string defaultBranch;
|
||||
std::string lastActivityAt;
|
||||
std::string path;
|
||||
std::string pathWithNamespace;
|
||||
std::string httpUrlToRepo;
|
||||
bool archive;
|
||||
std::string description;
|
||||
long creatorId;
|
||||
std::string createdAt;
|
||||
std::string nameWithNamespace;
|
||||
std::string webUrl;
|
||||
_Namespace _namespace;
|
||||
std::string visibilityLevel;
|
||||
std::string name;
|
||||
std::string sshUrlToRepo;
|
||||
std::string avatarUrl;
|
||||
long id;
|
||||
};
|
||||
|
||||
|
||||
UpdateRepositoryResult();
|
||||
explicit UpdateRepositoryResult(const std::string &payload);
|
||||
~UpdateRepositoryResult();
|
||||
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_UPDATEREPOSITORYRESULT_H_
|
||||
@@ -303,6 +303,42 @@ CodeupClient::CreateRepositoryOutcomeCallable CodeupClient::createRepositoryCall
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
CodeupClient::CreateRepositoryDeployKeyOutcome CodeupClient::createRepositoryDeployKey(const CreateRepositoryDeployKeyRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return CreateRepositoryDeployKeyOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return CreateRepositoryDeployKeyOutcome(CreateRepositoryDeployKeyResult(outcome.result()));
|
||||
else
|
||||
return CreateRepositoryDeployKeyOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void CodeupClient::createRepositoryDeployKeyAsync(const CreateRepositoryDeployKeyRequest& request, const CreateRepositoryDeployKeyAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, createRepositoryDeployKey(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
CodeupClient::CreateRepositoryDeployKeyOutcomeCallable CodeupClient::createRepositoryDeployKeyCallable(const CreateRepositoryDeployKeyRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<CreateRepositoryDeployKeyOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->createRepositoryDeployKey(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
CodeupClient::CreateRepositoryGroupOutcome CodeupClient::createRepositoryGroup(const CreateRepositoryGroupRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -339,6 +375,42 @@ CodeupClient::CreateRepositoryGroupOutcomeCallable CodeupClient::createRepositor
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
CodeupClient::CreateRepositoryProtectedBranchOutcome CodeupClient::createRepositoryProtectedBranch(const CreateRepositoryProtectedBranchRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return CreateRepositoryProtectedBranchOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return CreateRepositoryProtectedBranchOutcome(CreateRepositoryProtectedBranchResult(outcome.result()));
|
||||
else
|
||||
return CreateRepositoryProtectedBranchOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void CodeupClient::createRepositoryProtectedBranchAsync(const CreateRepositoryProtectedBranchRequest& request, const CreateRepositoryProtectedBranchAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, createRepositoryProtectedBranch(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
CodeupClient::CreateRepositoryProtectedBranchOutcomeCallable CodeupClient::createRepositoryProtectedBranchCallable(const CreateRepositoryProtectedBranchRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<CreateRepositoryProtectedBranchOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->createRepositoryProtectedBranch(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
CodeupClient::CreateTagOutcome CodeupClient::createTag(const CreateTagRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -591,6 +663,42 @@ CodeupClient::DeleteRepositoryMemberOutcomeCallable CodeupClient::deleteReposito
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
CodeupClient::DeleteRepositoryProtectedBranchOutcome CodeupClient::deleteRepositoryProtectedBranch(const DeleteRepositoryProtectedBranchRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return DeleteRepositoryProtectedBranchOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return DeleteRepositoryProtectedBranchOutcome(DeleteRepositoryProtectedBranchResult(outcome.result()));
|
||||
else
|
||||
return DeleteRepositoryProtectedBranchOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void CodeupClient::deleteRepositoryProtectedBranchAsync(const DeleteRepositoryProtectedBranchRequest& request, const DeleteRepositoryProtectedBranchAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, deleteRepositoryProtectedBranch(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
CodeupClient::DeleteRepositoryProtectedBranchOutcomeCallable CodeupClient::deleteRepositoryProtectedBranchCallable(const DeleteRepositoryProtectedBranchRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<DeleteRepositoryProtectedBranchOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->deleteRepositoryProtectedBranch(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
CodeupClient::DeleteRepositoryTagOutcome CodeupClient::deleteRepositoryTag(const DeleteRepositoryTagRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -663,6 +771,42 @@ CodeupClient::DeleteRepositoryWebhookOutcomeCallable CodeupClient::deleteReposit
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
CodeupClient::EnableRepositoryDeployKeyOutcome CodeupClient::enableRepositoryDeployKey(const EnableRepositoryDeployKeyRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return EnableRepositoryDeployKeyOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return EnableRepositoryDeployKeyOutcome(EnableRepositoryDeployKeyResult(outcome.result()));
|
||||
else
|
||||
return EnableRepositoryDeployKeyOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void CodeupClient::enableRepositoryDeployKeyAsync(const EnableRepositoryDeployKeyRequest& request, const EnableRepositoryDeployKeyAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, enableRepositoryDeployKey(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
CodeupClient::EnableRepositoryDeployKeyOutcomeCallable CodeupClient::enableRepositoryDeployKeyCallable(const EnableRepositoryDeployKeyRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<EnableRepositoryDeployKeyOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->enableRepositoryDeployKey(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
CodeupClient::GetBranchInfoOutcome CodeupClient::getBranchInfo(const GetBranchInfoRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -1059,6 +1203,42 @@ CodeupClient::ListGroupsOutcomeCallable CodeupClient::listGroupsCallable(const L
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
CodeupClient::ListMergeRequestsOutcome CodeupClient::listMergeRequests(const ListMergeRequestsRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return ListMergeRequestsOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return ListMergeRequestsOutcome(ListMergeRequestsResult(outcome.result()));
|
||||
else
|
||||
return ListMergeRequestsOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void CodeupClient::listMergeRequestsAsync(const ListMergeRequestsRequest& request, const ListMergeRequestsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, listMergeRequests(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
CodeupClient::ListMergeRequestsOutcomeCallable CodeupClient::listMergeRequestsCallable(const ListMergeRequestsRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<ListMergeRequestsOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->listMergeRequests(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
CodeupClient::ListOrganizationsOutcome CodeupClient::listOrganizations(const ListOrganizationsRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -1419,6 +1599,42 @@ CodeupClient::UpdateGroupMemberOutcomeCallable CodeupClient::updateGroupMemberCa
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
CodeupClient::UpdateRepositoryOutcome CodeupClient::updateRepository(const UpdateRepositoryRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return UpdateRepositoryOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return UpdateRepositoryOutcome(UpdateRepositoryResult(outcome.result()));
|
||||
else
|
||||
return UpdateRepositoryOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void CodeupClient::updateRepositoryAsync(const UpdateRepositoryRequest& request, const UpdateRepositoryAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, updateRepository(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
CodeupClient::UpdateRepositoryOutcomeCallable CodeupClient::updateRepositoryCallable(const UpdateRepositoryRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<UpdateRepositoryOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->updateRepository(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
CodeupClient::UpdateRepositoryMemberOutcome CodeupClient::updateRepositoryMember(const UpdateRepositoryMemberRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
|
||||
74
codeup/src/model/CreateRepositoryDeployKeyRequest.cc
Normal file
74
codeup/src/model/CreateRepositoryDeployKeyRequest.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/CreateRepositoryDeployKeyRequest.h>
|
||||
|
||||
using AlibabaCloud::Codeup::Model::CreateRepositoryDeployKeyRequest;
|
||||
|
||||
CreateRepositoryDeployKeyRequest::CreateRepositoryDeployKeyRequest() :
|
||||
RoaServiceRequest("codeup", "2020-04-14")
|
||||
{
|
||||
setResourcePath("/api/v3/projects/[ProjectId]/keys");
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
CreateRepositoryDeployKeyRequest::~CreateRepositoryDeployKeyRequest()
|
||||
{}
|
||||
|
||||
std::string CreateRepositoryDeployKeyRequest::getOrganizationId()const
|
||||
{
|
||||
return organizationId_;
|
||||
}
|
||||
|
||||
void CreateRepositoryDeployKeyRequest::setOrganizationId(const std::string& organizationId)
|
||||
{
|
||||
organizationId_ = organizationId;
|
||||
setParameter("OrganizationId", organizationId);
|
||||
}
|
||||
|
||||
std::string CreateRepositoryDeployKeyRequest::getSubUserId()const
|
||||
{
|
||||
return subUserId_;
|
||||
}
|
||||
|
||||
void CreateRepositoryDeployKeyRequest::setSubUserId(const std::string& subUserId)
|
||||
{
|
||||
subUserId_ = subUserId;
|
||||
setParameter("SubUserId", subUserId);
|
||||
}
|
||||
|
||||
std::string CreateRepositoryDeployKeyRequest::getAccessToken()const
|
||||
{
|
||||
return accessToken_;
|
||||
}
|
||||
|
||||
void CreateRepositoryDeployKeyRequest::setAccessToken(const std::string& accessToken)
|
||||
{
|
||||
accessToken_ = accessToken;
|
||||
setParameter("AccessToken", accessToken);
|
||||
}
|
||||
|
||||
long CreateRepositoryDeployKeyRequest::getProjectId()const
|
||||
{
|
||||
return projectId_;
|
||||
}
|
||||
|
||||
void CreateRepositoryDeployKeyRequest::setProjectId(long projectId)
|
||||
{
|
||||
projectId_ = projectId;
|
||||
setParameter("ProjectId", std::to_string(projectId));
|
||||
}
|
||||
|
||||
81
codeup/src/model/CreateRepositoryDeployKeyResult.cc
Normal file
81
codeup/src/model/CreateRepositoryDeployKeyResult.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/CreateRepositoryDeployKeyResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Codeup;
|
||||
using namespace AlibabaCloud::Codeup::Model;
|
||||
|
||||
CreateRepositoryDeployKeyResult::CreateRepositoryDeployKeyResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
CreateRepositoryDeployKeyResult::CreateRepositoryDeployKeyResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
CreateRepositoryDeployKeyResult::~CreateRepositoryDeployKeyResult()
|
||||
{}
|
||||
|
||||
void CreateRepositoryDeployKeyResult::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["Title"].isNull())
|
||||
result_.title = resultNode["Title"].asString();
|
||||
if(!resultNode["Key"].isNull())
|
||||
result_.key = resultNode["Key"].asString();
|
||||
if(!resultNode["FingerPrint"].isNull())
|
||||
result_.fingerPrint = resultNode["FingerPrint"].asString();
|
||||
if(!resultNode["CreatedAt"].isNull())
|
||||
result_.createdAt = resultNode["CreatedAt"].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";
|
||||
|
||||
}
|
||||
|
||||
std::string CreateRepositoryDeployKeyResult::getErrorCode()const
|
||||
{
|
||||
return errorCode_;
|
||||
}
|
||||
|
||||
std::string CreateRepositoryDeployKeyResult::getErrorMessage()const
|
||||
{
|
||||
return errorMessage_;
|
||||
}
|
||||
|
||||
bool CreateRepositoryDeployKeyResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
CreateRepositoryDeployKeyResult::Result CreateRepositoryDeployKeyResult::getResult()const
|
||||
{
|
||||
return result_;
|
||||
}
|
||||
|
||||
63
codeup/src/model/CreateRepositoryProtectedBranchRequest.cc
Normal file
63
codeup/src/model/CreateRepositoryProtectedBranchRequest.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/CreateRepositoryProtectedBranchRequest.h>
|
||||
|
||||
using AlibabaCloud::Codeup::Model::CreateRepositoryProtectedBranchRequest;
|
||||
|
||||
CreateRepositoryProtectedBranchRequest::CreateRepositoryProtectedBranchRequest() :
|
||||
RoaServiceRequest("codeup", "2020-04-14")
|
||||
{
|
||||
setResourcePath("/api/v4/projects/[ProjectId]/repository/protect_branches");
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
CreateRepositoryProtectedBranchRequest::~CreateRepositoryProtectedBranchRequest()
|
||||
{}
|
||||
|
||||
std::string CreateRepositoryProtectedBranchRequest::getOrganizationId()const
|
||||
{
|
||||
return organizationId_;
|
||||
}
|
||||
|
||||
void CreateRepositoryProtectedBranchRequest::setOrganizationId(const std::string& organizationId)
|
||||
{
|
||||
organizationId_ = organizationId;
|
||||
setParameter("OrganizationId", organizationId);
|
||||
}
|
||||
|
||||
std::string CreateRepositoryProtectedBranchRequest::getAccessToken()const
|
||||
{
|
||||
return accessToken_;
|
||||
}
|
||||
|
||||
void CreateRepositoryProtectedBranchRequest::setAccessToken(const std::string& accessToken)
|
||||
{
|
||||
accessToken_ = accessToken;
|
||||
setParameter("AccessToken", accessToken);
|
||||
}
|
||||
|
||||
long CreateRepositoryProtectedBranchRequest::getProjectId()const
|
||||
{
|
||||
return projectId_;
|
||||
}
|
||||
|
||||
void CreateRepositoryProtectedBranchRequest::setProjectId(long projectId)
|
||||
{
|
||||
projectId_ = projectId;
|
||||
setParameter("ProjectId", std::to_string(projectId));
|
||||
}
|
||||
|
||||
124
codeup/src/model/CreateRepositoryProtectedBranchResult.cc
Normal file
124
codeup/src/model/CreateRepositoryProtectedBranchResult.cc
Normal file
@@ -0,0 +1,124 @@
|
||||
/*
|
||||
* 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/CreateRepositoryProtectedBranchResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Codeup;
|
||||
using namespace AlibabaCloud::Codeup::Model;
|
||||
|
||||
CreateRepositoryProtectedBranchResult::CreateRepositoryProtectedBranchResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
CreateRepositoryProtectedBranchResult::CreateRepositoryProtectedBranchResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
CreateRepositoryProtectedBranchResult::~CreateRepositoryProtectedBranchResult()
|
||||
{}
|
||||
|
||||
void CreateRepositoryProtectedBranchResult::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["Branch"].isNull())
|
||||
result_.branch = resultNode["Branch"].asString();
|
||||
auto mergeRequestSettingNode = resultNode["MergeRequestSetting"];
|
||||
if(!mergeRequestSettingNode["Required"].isNull())
|
||||
result_.mergeRequestSetting.required = mergeRequestSettingNode["Required"].asString() == "true";
|
||||
if(!mergeRequestSettingNode["MergeRequestMode"].isNull())
|
||||
result_.mergeRequestSetting.mergeRequestMode = mergeRequestSettingNode["MergeRequestMode"].asString();
|
||||
if(!mergeRequestSettingNode["AllowSelfApproval"].isNull())
|
||||
result_.mergeRequestSetting.allowSelfApproval = mergeRequestSettingNode["AllowSelfApproval"].asString() == "true";
|
||||
if(!mergeRequestSettingNode["IsRequireDiscussionProcessed"].isNull())
|
||||
result_.mergeRequestSetting.isRequireDiscussionProcessed = mergeRequestSettingNode["IsRequireDiscussionProcessed"].asString() == "true";
|
||||
if(!mergeRequestSettingNode["IsResetApprovalWhenNewPush"].isNull())
|
||||
result_.mergeRequestSetting.isResetApprovalWhenNewPush = mergeRequestSettingNode["IsResetApprovalWhenNewPush"].asString() == "true";
|
||||
if(!mergeRequestSettingNode["MinimualApproval"].isNull())
|
||||
result_.mergeRequestSetting.minimualApproval = std::stoi(mergeRequestSettingNode["MinimualApproval"].asString());
|
||||
auto allAllowMergeRequestRoles = mergeRequestSettingNode["AllowMergeRequestRoles"]["AllowMergeRequestRoles"];
|
||||
for (auto value : allAllowMergeRequestRoles)
|
||||
result_.mergeRequestSetting.allowMergeRequestRoles.push_back(value.asString());
|
||||
auto allDefaultAssignees = mergeRequestSettingNode["DefaultAssignees"]["DefaultAssignees"];
|
||||
for (auto value : allDefaultAssignees)
|
||||
result_.mergeRequestSetting.defaultAssignees.push_back(value.asString());
|
||||
auto testSettingNode = resultNode["TestSetting"];
|
||||
if(!testSettingNode["Required"].isNull())
|
||||
result_.testSetting.required = testSettingNode["Required"].asString() == "true";
|
||||
auto codingGuidelinesDetectionNode = testSettingNode["CodingGuidelinesDetection"];
|
||||
if(!codingGuidelinesDetectionNode["Enabled"].isNull())
|
||||
result_.testSetting.codingGuidelinesDetection.enabled = codingGuidelinesDetectionNode["Enabled"].asString() == "true";
|
||||
if(!codingGuidelinesDetectionNode["Message"].isNull())
|
||||
result_.testSetting.codingGuidelinesDetection.message = codingGuidelinesDetectionNode["Message"].asString();
|
||||
auto sensitiveInfoDetectionNode = testSettingNode["SensitiveInfoDetection"];
|
||||
if(!sensitiveInfoDetectionNode["Enabled"].isNull())
|
||||
result_.testSetting.sensitiveInfoDetection.enabled = sensitiveInfoDetectionNode["Enabled"].asString() == "true";
|
||||
if(!sensitiveInfoDetectionNode["Message"].isNull())
|
||||
result_.testSetting.sensitiveInfoDetection.message = sensitiveInfoDetectionNode["Message"].asString();
|
||||
auto checkConfigNode = testSettingNode["CheckConfig"];
|
||||
auto allCheckItemsNode = checkConfigNode["CheckItems"]["CheckItemsItem"];
|
||||
for (auto checkConfigNodeCheckItemsCheckItemsItem : allCheckItemsNode)
|
||||
{
|
||||
Result::TestSetting::CheckConfig::CheckItemsItem checkItemsItemObject;
|
||||
if(!checkConfigNodeCheckItemsCheckItemsItem["Name"].isNull())
|
||||
checkItemsItemObject.name = checkConfigNodeCheckItemsCheckItemsItem["Name"].asString();
|
||||
if(!checkConfigNodeCheckItemsCheckItemsItem["Required"].isNull())
|
||||
checkItemsItemObject.required = checkConfigNodeCheckItemsCheckItemsItem["Required"].asString() == "true";
|
||||
result_.testSetting.checkConfig.checkItems.push_back(checkItemsItemObject);
|
||||
}
|
||||
auto allAllowPushRoles = resultNode["AllowPushRoles"]["AllowPushRoles"];
|
||||
for (auto value : allAllowPushRoles)
|
||||
result_.allowPushRoles.push_back(value.asString());
|
||||
auto allAllowMergeRoles = resultNode["AllowMergeRoles"]["AllowMergeRoles"];
|
||||
for (auto value : allAllowMergeRoles)
|
||||
result_.allowMergeRoles.push_back(value.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";
|
||||
|
||||
}
|
||||
|
||||
std::string CreateRepositoryProtectedBranchResult::getErrorCode()const
|
||||
{
|
||||
return errorCode_;
|
||||
}
|
||||
|
||||
std::string CreateRepositoryProtectedBranchResult::getErrorMessage()const
|
||||
{
|
||||
return errorMessage_;
|
||||
}
|
||||
|
||||
bool CreateRepositoryProtectedBranchResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
CreateRepositoryProtectedBranchResult::Result CreateRepositoryProtectedBranchResult::getResult()const
|
||||
{
|
||||
return result_;
|
||||
}
|
||||
|
||||
74
codeup/src/model/DeleteRepositoryProtectedBranchRequest.cc
Normal file
74
codeup/src/model/DeleteRepositoryProtectedBranchRequest.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/DeleteRepositoryProtectedBranchRequest.h>
|
||||
|
||||
using AlibabaCloud::Codeup::Model::DeleteRepositoryProtectedBranchRequest;
|
||||
|
||||
DeleteRepositoryProtectedBranchRequest::DeleteRepositoryProtectedBranchRequest() :
|
||||
RoaServiceRequest("codeup", "2020-04-14")
|
||||
{
|
||||
setResourcePath("/api/v4/projects/[ProjectId]/repository/protect_branches/[ProtectedBranchId]");
|
||||
setMethod(HttpRequest::Method::Delete);
|
||||
}
|
||||
|
||||
DeleteRepositoryProtectedBranchRequest::~DeleteRepositoryProtectedBranchRequest()
|
||||
{}
|
||||
|
||||
std::string DeleteRepositoryProtectedBranchRequest::getOrganizationId()const
|
||||
{
|
||||
return organizationId_;
|
||||
}
|
||||
|
||||
void DeleteRepositoryProtectedBranchRequest::setOrganizationId(const std::string& organizationId)
|
||||
{
|
||||
organizationId_ = organizationId;
|
||||
setParameter("OrganizationId", organizationId);
|
||||
}
|
||||
|
||||
long DeleteRepositoryProtectedBranchRequest::getProtectedBranchId()const
|
||||
{
|
||||
return protectedBranchId_;
|
||||
}
|
||||
|
||||
void DeleteRepositoryProtectedBranchRequest::setProtectedBranchId(long protectedBranchId)
|
||||
{
|
||||
protectedBranchId_ = protectedBranchId;
|
||||
setParameter("ProtectedBranchId", std::to_string(protectedBranchId));
|
||||
}
|
||||
|
||||
std::string DeleteRepositoryProtectedBranchRequest::getAccessToken()const
|
||||
{
|
||||
return accessToken_;
|
||||
}
|
||||
|
||||
void DeleteRepositoryProtectedBranchRequest::setAccessToken(const std::string& accessToken)
|
||||
{
|
||||
accessToken_ = accessToken;
|
||||
setParameter("AccessToken", accessToken);
|
||||
}
|
||||
|
||||
long DeleteRepositoryProtectedBranchRequest::getProjectId()const
|
||||
{
|
||||
return projectId_;
|
||||
}
|
||||
|
||||
void DeleteRepositoryProtectedBranchRequest::setProjectId(long projectId)
|
||||
{
|
||||
projectId_ = projectId;
|
||||
setParameter("ProjectId", std::to_string(projectId));
|
||||
}
|
||||
|
||||
73
codeup/src/model/DeleteRepositoryProtectedBranchResult.cc
Normal file
73
codeup/src/model/DeleteRepositoryProtectedBranchResult.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/DeleteRepositoryProtectedBranchResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Codeup;
|
||||
using namespace AlibabaCloud::Codeup::Model;
|
||||
|
||||
DeleteRepositoryProtectedBranchResult::DeleteRepositoryProtectedBranchResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DeleteRepositoryProtectedBranchResult::DeleteRepositoryProtectedBranchResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DeleteRepositoryProtectedBranchResult::~DeleteRepositoryProtectedBranchResult()
|
||||
{}
|
||||
|
||||
void DeleteRepositoryProtectedBranchResult::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["Result"].isNull())
|
||||
result_.result = resultNode["Result"].asString() == "true";
|
||||
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";
|
||||
|
||||
}
|
||||
|
||||
std::string DeleteRepositoryProtectedBranchResult::getErrorCode()const
|
||||
{
|
||||
return errorCode_;
|
||||
}
|
||||
|
||||
std::string DeleteRepositoryProtectedBranchResult::getErrorMessage()const
|
||||
{
|
||||
return errorMessage_;
|
||||
}
|
||||
|
||||
bool DeleteRepositoryProtectedBranchResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
DeleteRepositoryProtectedBranchResult::Result DeleteRepositoryProtectedBranchResult::getResult()const
|
||||
{
|
||||
return result_;
|
||||
}
|
||||
|
||||
85
codeup/src/model/EnableRepositoryDeployKeyRequest.cc
Normal file
85
codeup/src/model/EnableRepositoryDeployKeyRequest.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/EnableRepositoryDeployKeyRequest.h>
|
||||
|
||||
using AlibabaCloud::Codeup::Model::EnableRepositoryDeployKeyRequest;
|
||||
|
||||
EnableRepositoryDeployKeyRequest::EnableRepositoryDeployKeyRequest() :
|
||||
RoaServiceRequest("codeup", "2020-04-14")
|
||||
{
|
||||
setResourcePath("/api/v3/projects/[ProjectId]/keys/[KeyId]/enable");
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
EnableRepositoryDeployKeyRequest::~EnableRepositoryDeployKeyRequest()
|
||||
{}
|
||||
|
||||
std::string EnableRepositoryDeployKeyRequest::getOrganizationId()const
|
||||
{
|
||||
return organizationId_;
|
||||
}
|
||||
|
||||
void EnableRepositoryDeployKeyRequest::setOrganizationId(const std::string& organizationId)
|
||||
{
|
||||
organizationId_ = organizationId;
|
||||
setParameter("OrganizationId", organizationId);
|
||||
}
|
||||
|
||||
std::string EnableRepositoryDeployKeyRequest::getSubUserId()const
|
||||
{
|
||||
return subUserId_;
|
||||
}
|
||||
|
||||
void EnableRepositoryDeployKeyRequest::setSubUserId(const std::string& subUserId)
|
||||
{
|
||||
subUserId_ = subUserId;
|
||||
setParameter("SubUserId", subUserId);
|
||||
}
|
||||
|
||||
std::string EnableRepositoryDeployKeyRequest::getAccessToken()const
|
||||
{
|
||||
return accessToken_;
|
||||
}
|
||||
|
||||
void EnableRepositoryDeployKeyRequest::setAccessToken(const std::string& accessToken)
|
||||
{
|
||||
accessToken_ = accessToken;
|
||||
setParameter("AccessToken", accessToken);
|
||||
}
|
||||
|
||||
long EnableRepositoryDeployKeyRequest::getKeyId()const
|
||||
{
|
||||
return keyId_;
|
||||
}
|
||||
|
||||
void EnableRepositoryDeployKeyRequest::setKeyId(long keyId)
|
||||
{
|
||||
keyId_ = keyId;
|
||||
setParameter("KeyId", std::to_string(keyId));
|
||||
}
|
||||
|
||||
long EnableRepositoryDeployKeyRequest::getProjectId()const
|
||||
{
|
||||
return projectId_;
|
||||
}
|
||||
|
||||
void EnableRepositoryDeployKeyRequest::setProjectId(long projectId)
|
||||
{
|
||||
projectId_ = projectId;
|
||||
setParameter("ProjectId", std::to_string(projectId));
|
||||
}
|
||||
|
||||
73
codeup/src/model/EnableRepositoryDeployKeyResult.cc
Normal file
73
codeup/src/model/EnableRepositoryDeployKeyResult.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/EnableRepositoryDeployKeyResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Codeup;
|
||||
using namespace AlibabaCloud::Codeup::Model;
|
||||
|
||||
EnableRepositoryDeployKeyResult::EnableRepositoryDeployKeyResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
EnableRepositoryDeployKeyResult::EnableRepositoryDeployKeyResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
EnableRepositoryDeployKeyResult::~EnableRepositoryDeployKeyResult()
|
||||
{}
|
||||
|
||||
void EnableRepositoryDeployKeyResult::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["Result"].isNull())
|
||||
result_.result = resultNode["Result"].asString() == "true";
|
||||
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";
|
||||
|
||||
}
|
||||
|
||||
std::string EnableRepositoryDeployKeyResult::getErrorCode()const
|
||||
{
|
||||
return errorCode_;
|
||||
}
|
||||
|
||||
std::string EnableRepositoryDeployKeyResult::getErrorMessage()const
|
||||
{
|
||||
return errorMessage_;
|
||||
}
|
||||
|
||||
bool EnableRepositoryDeployKeyResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
EnableRepositoryDeployKeyResult::Result EnableRepositoryDeployKeyResult::getResult()const
|
||||
{
|
||||
return result_;
|
||||
}
|
||||
|
||||
@@ -28,6 +28,17 @@ GetUserInfoRequest::GetUserInfoRequest() :
|
||||
GetUserInfoRequest::~GetUserInfoRequest()
|
||||
{}
|
||||
|
||||
std::string GetUserInfoRequest::getOrganizationId()const
|
||||
{
|
||||
return organizationId_;
|
||||
}
|
||||
|
||||
void GetUserInfoRequest::setOrganizationId(const std::string& organizationId)
|
||||
{
|
||||
organizationId_ = organizationId;
|
||||
setParameter("OrganizationId", organizationId);
|
||||
}
|
||||
|
||||
std::string GetUserInfoRequest::getAccessToken()const
|
||||
{
|
||||
return accessToken_;
|
||||
|
||||
206
codeup/src/model/ListMergeRequestsRequest.cc
Normal file
206
codeup/src/model/ListMergeRequestsRequest.cc
Normal file
@@ -0,0 +1,206 @@
|
||||
/*
|
||||
* 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/ListMergeRequestsRequest.h>
|
||||
|
||||
using AlibabaCloud::Codeup::Model::ListMergeRequestsRequest;
|
||||
|
||||
ListMergeRequestsRequest::ListMergeRequestsRequest() :
|
||||
RoaServiceRequest("codeup", "2020-04-14")
|
||||
{
|
||||
setResourcePath("/api/v4/merge_requests/advanced_search");
|
||||
setMethod(HttpRequest::Method::Get);
|
||||
}
|
||||
|
||||
ListMergeRequestsRequest::~ListMergeRequestsRequest()
|
||||
{}
|
||||
|
||||
std::string ListMergeRequestsRequest::getBeforeDate()const
|
||||
{
|
||||
return beforeDate_;
|
||||
}
|
||||
|
||||
void ListMergeRequestsRequest::setBeforeDate(const std::string& beforeDate)
|
||||
{
|
||||
beforeDate_ = beforeDate;
|
||||
setParameter("BeforeDate", beforeDate);
|
||||
}
|
||||
|
||||
std::string ListMergeRequestsRequest::getAssigneeIdList()const
|
||||
{
|
||||
return assigneeIdList_;
|
||||
}
|
||||
|
||||
void ListMergeRequestsRequest::setAssigneeIdList(const std::string& assigneeIdList)
|
||||
{
|
||||
assigneeIdList_ = assigneeIdList;
|
||||
setParameter("AssigneeIdList", assigneeIdList);
|
||||
}
|
||||
|
||||
std::string ListMergeRequestsRequest::getAccessToken()const
|
||||
{
|
||||
return accessToken_;
|
||||
}
|
||||
|
||||
void ListMergeRequestsRequest::setAccessToken(const std::string& accessToken)
|
||||
{
|
||||
accessToken_ = accessToken;
|
||||
setParameter("AccessToken", accessToken);
|
||||
}
|
||||
|
||||
std::string ListMergeRequestsRequest::getSubscriberCodeupIdList()const
|
||||
{
|
||||
return subscriberCodeupIdList_;
|
||||
}
|
||||
|
||||
void ListMergeRequestsRequest::setSubscriberCodeupIdList(const std::string& subscriberCodeupIdList)
|
||||
{
|
||||
subscriberCodeupIdList_ = subscriberCodeupIdList;
|
||||
setParameter("SubscriberCodeupIdList", subscriberCodeupIdList);
|
||||
}
|
||||
|
||||
std::string ListMergeRequestsRequest::getAfterDate()const
|
||||
{
|
||||
return afterDate_;
|
||||
}
|
||||
|
||||
void ListMergeRequestsRequest::setAfterDate(const std::string& afterDate)
|
||||
{
|
||||
afterDate_ = afterDate;
|
||||
setParameter("AfterDate", afterDate);
|
||||
}
|
||||
|
||||
std::string ListMergeRequestsRequest::getOrganizationId()const
|
||||
{
|
||||
return organizationId_;
|
||||
}
|
||||
|
||||
void ListMergeRequestsRequest::setOrganizationId(const std::string& organizationId)
|
||||
{
|
||||
organizationId_ = organizationId;
|
||||
setParameter("OrganizationId", organizationId);
|
||||
}
|
||||
|
||||
std::string ListMergeRequestsRequest::getGroupIdList()const
|
||||
{
|
||||
return groupIdList_;
|
||||
}
|
||||
|
||||
void ListMergeRequestsRequest::setGroupIdList(const std::string& groupIdList)
|
||||
{
|
||||
groupIdList_ = groupIdList;
|
||||
setParameter("GroupIdList", groupIdList);
|
||||
}
|
||||
|
||||
std::string ListMergeRequestsRequest::getSearch()const
|
||||
{
|
||||
return search_;
|
||||
}
|
||||
|
||||
void ListMergeRequestsRequest::setSearch(const std::string& search)
|
||||
{
|
||||
search_ = search;
|
||||
setParameter("Search", search);
|
||||
}
|
||||
|
||||
std::string ListMergeRequestsRequest::getAuthorCodeupIdList()const
|
||||
{
|
||||
return authorCodeupIdList_;
|
||||
}
|
||||
|
||||
void ListMergeRequestsRequest::setAuthorCodeupIdList(const std::string& authorCodeupIdList)
|
||||
{
|
||||
authorCodeupIdList_ = authorCodeupIdList;
|
||||
setParameter("AuthorCodeupIdList", authorCodeupIdList);
|
||||
}
|
||||
|
||||
std::string ListMergeRequestsRequest::getAuthorIdList()const
|
||||
{
|
||||
return authorIdList_;
|
||||
}
|
||||
|
||||
void ListMergeRequestsRequest::setAuthorIdList(const std::string& authorIdList)
|
||||
{
|
||||
authorIdList_ = authorIdList;
|
||||
setParameter("AuthorIdList", authorIdList);
|
||||
}
|
||||
|
||||
long ListMergeRequestsRequest::getPageSize()const
|
||||
{
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
void ListMergeRequestsRequest::setPageSize(long pageSize)
|
||||
{
|
||||
pageSize_ = pageSize;
|
||||
setParameter("PageSize", std::to_string(pageSize));
|
||||
}
|
||||
|
||||
std::string ListMergeRequestsRequest::getProjectIdList()const
|
||||
{
|
||||
return projectIdList_;
|
||||
}
|
||||
|
||||
void ListMergeRequestsRequest::setProjectIdList(const std::string& projectIdList)
|
||||
{
|
||||
projectIdList_ = projectIdList;
|
||||
setParameter("ProjectIdList", projectIdList);
|
||||
}
|
||||
|
||||
long ListMergeRequestsRequest::getPage()const
|
||||
{
|
||||
return page_;
|
||||
}
|
||||
|
||||
void ListMergeRequestsRequest::setPage(long page)
|
||||
{
|
||||
page_ = page;
|
||||
setParameter("Page", std::to_string(page));
|
||||
}
|
||||
|
||||
std::string ListMergeRequestsRequest::getAssigneeCodeupIdList()const
|
||||
{
|
||||
return assigneeCodeupIdList_;
|
||||
}
|
||||
|
||||
void ListMergeRequestsRequest::setAssigneeCodeupIdList(const std::string& assigneeCodeupIdList)
|
||||
{
|
||||
assigneeCodeupIdList_ = assigneeCodeupIdList;
|
||||
setParameter("AssigneeCodeupIdList", assigneeCodeupIdList);
|
||||
}
|
||||
|
||||
std::string ListMergeRequestsRequest::getState()const
|
||||
{
|
||||
return state_;
|
||||
}
|
||||
|
||||
void ListMergeRequestsRequest::setState(const std::string& state)
|
||||
{
|
||||
state_ = state;
|
||||
setParameter("State", state);
|
||||
}
|
||||
|
||||
std::string ListMergeRequestsRequest::getOrder()const
|
||||
{
|
||||
return order_;
|
||||
}
|
||||
|
||||
void ListMergeRequestsRequest::setOrder(const std::string& order)
|
||||
{
|
||||
order_ = order;
|
||||
setParameter("Order", order);
|
||||
}
|
||||
|
||||
209
codeup/src/model/ListMergeRequestsResult.cc
Normal file
209
codeup/src/model/ListMergeRequestsResult.cc
Normal file
@@ -0,0 +1,209 @@
|
||||
/*
|
||||
* 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/ListMergeRequestsResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Codeup;
|
||||
using namespace AlibabaCloud::Codeup::Model;
|
||||
|
||||
ListMergeRequestsResult::ListMergeRequestsResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
ListMergeRequestsResult::ListMergeRequestsResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
ListMergeRequestsResult::~ListMergeRequestsResult()
|
||||
{}
|
||||
|
||||
void ListMergeRequestsResult::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["AcceptedRevision"].isNull())
|
||||
resultObject.acceptedRevision = valueResultResultItem["AcceptedRevision"].asString();
|
||||
if(!valueResultResultItem["AheadCommitCount"].isNull())
|
||||
resultObject.aheadCommitCount = std::stoi(valueResultResultItem["AheadCommitCount"].asString());
|
||||
if(!valueResultResultItem["BehindCommitCount"].isNull())
|
||||
resultObject.behindCommitCount = std::stoi(valueResultResultItem["BehindCommitCount"].asString());
|
||||
if(!valueResultResultItem["CreatedAt"].isNull())
|
||||
resultObject.createdAt = valueResultResultItem["CreatedAt"].asString();
|
||||
if(!valueResultResultItem["Description"].isNull())
|
||||
resultObject.description = valueResultResultItem["Description"].asString();
|
||||
if(!valueResultResultItem["Id"].isNull())
|
||||
resultObject.id = std::stol(valueResultResultItem["Id"].asString());
|
||||
if(!valueResultResultItem["MergeError"].isNull())
|
||||
resultObject.mergeError = valueResultResultItem["MergeError"].asString();
|
||||
if(!valueResultResultItem["MergeStatus"].isNull())
|
||||
resultObject.mergeStatus = valueResultResultItem["MergeStatus"].asString();
|
||||
if(!valueResultResultItem["MergeType"].isNull())
|
||||
resultObject.mergeType = valueResultResultItem["MergeType"].asString();
|
||||
if(!valueResultResultItem["MergedRevision"].isNull())
|
||||
resultObject.mergedRevision = valueResultResultItem["MergedRevision"].asString();
|
||||
if(!valueResultResultItem["NameWithNamespace"].isNull())
|
||||
resultObject.nameWithNamespace = valueResultResultItem["NameWithNamespace"].asString();
|
||||
if(!valueResultResultItem["ProjectId"].isNull())
|
||||
resultObject.projectId = std::stol(valueResultResultItem["ProjectId"].asString());
|
||||
if(!valueResultResultItem["SourceBranch"].isNull())
|
||||
resultObject.sourceBranch = valueResultResultItem["SourceBranch"].asString();
|
||||
if(!valueResultResultItem["State"].isNull())
|
||||
resultObject.state = valueResultResultItem["State"].asString();
|
||||
if(!valueResultResultItem["TargetBranch"].isNull())
|
||||
resultObject.targetBranch = valueResultResultItem["TargetBranch"].asString();
|
||||
if(!valueResultResultItem["Title"].isNull())
|
||||
resultObject.title = valueResultResultItem["Title"].asString();
|
||||
if(!valueResultResultItem["UpdatedAt"].isNull())
|
||||
resultObject.updatedAt = valueResultResultItem["UpdatedAt"].asString();
|
||||
if(!valueResultResultItem["WebUrl"].isNull())
|
||||
resultObject.webUrl = valueResultResultItem["WebUrl"].asString();
|
||||
auto allAssigneeListNode = valueResultResultItem["AssigneeList"]["AssigneeListItem"];
|
||||
for (auto valueResultResultItemAssigneeListAssigneeListItem : allAssigneeListNode)
|
||||
{
|
||||
ResultItem::AssigneeListItem assigneeListObject;
|
||||
if(!valueResultResultItemAssigneeListAssigneeListItem["AvatarUrl"].isNull())
|
||||
assigneeListObject.avatarUrl = valueResultResultItemAssigneeListAssigneeListItem["AvatarUrl"].asString();
|
||||
if(!valueResultResultItemAssigneeListAssigneeListItem["ExternUserId"].isNull())
|
||||
assigneeListObject.externUserId = valueResultResultItemAssigneeListAssigneeListItem["ExternUserId"].asString();
|
||||
if(!valueResultResultItemAssigneeListAssigneeListItem["Id"].isNull())
|
||||
assigneeListObject.id = valueResultResultItemAssigneeListAssigneeListItem["Id"].asString();
|
||||
if(!valueResultResultItemAssigneeListAssigneeListItem["Name"].isNull())
|
||||
assigneeListObject.name = valueResultResultItemAssigneeListAssigneeListItem["Name"].asString();
|
||||
resultObject.assigneeList.push_back(assigneeListObject);
|
||||
}
|
||||
auto approveCheckResultNode = value["ApproveCheckResult"];
|
||||
if(!approveCheckResultNode["TotalCheckResult"].isNull())
|
||||
resultObject.approveCheckResult.totalCheckResult = approveCheckResultNode["TotalCheckResult"].asString();
|
||||
auto allSatisfiedCheckResultsNode = approveCheckResultNode["SatisfiedCheckResults"]["SatisfiedCheckResultsItem"];
|
||||
for (auto approveCheckResultNodeSatisfiedCheckResultsSatisfiedCheckResultsItem : allSatisfiedCheckResultsNode)
|
||||
{
|
||||
ResultItem::ApproveCheckResult::SatisfiedCheckResultsItem satisfiedCheckResultsItemObject;
|
||||
if(!approveCheckResultNodeSatisfiedCheckResultsSatisfiedCheckResultsItem["CheckName"].isNull())
|
||||
satisfiedCheckResultsItemObject.checkName = approveCheckResultNodeSatisfiedCheckResultsSatisfiedCheckResultsItem["CheckName"].asString();
|
||||
if(!approveCheckResultNodeSatisfiedCheckResultsSatisfiedCheckResultsItem["CheckStatus"].isNull())
|
||||
satisfiedCheckResultsItemObject.checkStatus = approveCheckResultNodeSatisfiedCheckResultsSatisfiedCheckResultsItem["CheckStatus"].asString();
|
||||
if(!approveCheckResultNodeSatisfiedCheckResultsSatisfiedCheckResultsItem["CheckType"].isNull())
|
||||
satisfiedCheckResultsItemObject.checkType = approveCheckResultNodeSatisfiedCheckResultsSatisfiedCheckResultsItem["CheckType"].asString();
|
||||
auto allExtraUsersNode = approveCheckResultNodeSatisfiedCheckResultsSatisfiedCheckResultsItem["ExtraUsers"]["ExtraUsersItem"];
|
||||
for (auto approveCheckResultNodeSatisfiedCheckResultsSatisfiedCheckResultsItemExtraUsersExtraUsersItem : allExtraUsersNode)
|
||||
{
|
||||
ResultItem::ApproveCheckResult::SatisfiedCheckResultsItem::ExtraUsersItem extraUsersObject;
|
||||
if(!approveCheckResultNodeSatisfiedCheckResultsSatisfiedCheckResultsItemExtraUsersExtraUsersItem["AvatarUrl"].isNull())
|
||||
extraUsersObject.avatarUrl = approveCheckResultNodeSatisfiedCheckResultsSatisfiedCheckResultsItemExtraUsersExtraUsersItem["AvatarUrl"].asString();
|
||||
if(!approveCheckResultNodeSatisfiedCheckResultsSatisfiedCheckResultsItemExtraUsersExtraUsersItem["ExternUserId"].isNull())
|
||||
extraUsersObject.externUserId = approveCheckResultNodeSatisfiedCheckResultsSatisfiedCheckResultsItemExtraUsersExtraUsersItem["ExternUserId"].asString();
|
||||
if(!approveCheckResultNodeSatisfiedCheckResultsSatisfiedCheckResultsItemExtraUsersExtraUsersItem["Id"].isNull())
|
||||
extraUsersObject.id = std::stol(approveCheckResultNodeSatisfiedCheckResultsSatisfiedCheckResultsItemExtraUsersExtraUsersItem["Id"].asString());
|
||||
if(!approveCheckResultNodeSatisfiedCheckResultsSatisfiedCheckResultsItemExtraUsersExtraUsersItem["Name"].isNull())
|
||||
extraUsersObject.name = approveCheckResultNodeSatisfiedCheckResultsSatisfiedCheckResultsItemExtraUsersExtraUsersItem["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());
|
||||
resultObject.approveCheckResult.satisfiedCheckResults.push_back(satisfiedCheckResultsItemObject);
|
||||
}
|
||||
auto allUnsatisfiedCheckResultsNode = approveCheckResultNode["UnsatisfiedCheckResults"]["UnsatisfiedCheckResultsItem"];
|
||||
for (auto approveCheckResultNodeUnsatisfiedCheckResultsUnsatisfiedCheckResultsItem : allUnsatisfiedCheckResultsNode)
|
||||
{
|
||||
ResultItem::ApproveCheckResult::UnsatisfiedCheckResultsItem unsatisfiedCheckResultsItemObject;
|
||||
if(!approveCheckResultNodeUnsatisfiedCheckResultsUnsatisfiedCheckResultsItem["CheckName"].isNull())
|
||||
unsatisfiedCheckResultsItemObject.checkName = approveCheckResultNodeUnsatisfiedCheckResultsUnsatisfiedCheckResultsItem["CheckName"].asString();
|
||||
if(!approveCheckResultNodeUnsatisfiedCheckResultsUnsatisfiedCheckResultsItem["CheckStatus"].isNull())
|
||||
unsatisfiedCheckResultsItemObject.checkStatus = approveCheckResultNodeUnsatisfiedCheckResultsUnsatisfiedCheckResultsItem["CheckStatus"].asString();
|
||||
if(!approveCheckResultNodeUnsatisfiedCheckResultsUnsatisfiedCheckResultsItem["CheckType"].isNull())
|
||||
unsatisfiedCheckResultsItemObject.checkType = approveCheckResultNodeUnsatisfiedCheckResultsUnsatisfiedCheckResultsItem["CheckType"].asString();
|
||||
auto allExtraUsers3Node = approveCheckResultNodeUnsatisfiedCheckResultsUnsatisfiedCheckResultsItem["ExtraUsers"]["ExtraUsersItem"];
|
||||
for (auto approveCheckResultNodeUnsatisfiedCheckResultsUnsatisfiedCheckResultsItemExtraUsersExtraUsersItem : allExtraUsers3Node)
|
||||
{
|
||||
ResultItem::ApproveCheckResult::UnsatisfiedCheckResultsItem::ExtraUsersItem4 extraUsers3Object;
|
||||
if(!approveCheckResultNodeUnsatisfiedCheckResultsUnsatisfiedCheckResultsItemExtraUsersExtraUsersItem["AvatarUrl"].isNull())
|
||||
extraUsers3Object.avatarUrl = approveCheckResultNodeUnsatisfiedCheckResultsUnsatisfiedCheckResultsItemExtraUsersExtraUsersItem["AvatarUrl"].asString();
|
||||
if(!approveCheckResultNodeUnsatisfiedCheckResultsUnsatisfiedCheckResultsItemExtraUsersExtraUsersItem["ExternUserId"].isNull())
|
||||
extraUsers3Object.externUserId = approveCheckResultNodeUnsatisfiedCheckResultsUnsatisfiedCheckResultsItemExtraUsersExtraUsersItem["ExternUserId"].asString();
|
||||
if(!approveCheckResultNodeUnsatisfiedCheckResultsUnsatisfiedCheckResultsItemExtraUsersExtraUsersItem["Id"].isNull())
|
||||
extraUsers3Object.id = std::stol(approveCheckResultNodeUnsatisfiedCheckResultsUnsatisfiedCheckResultsItemExtraUsersExtraUsersItem["Id"].asString());
|
||||
if(!approveCheckResultNodeUnsatisfiedCheckResultsUnsatisfiedCheckResultsItemExtraUsersExtraUsersItem["Name"].isNull())
|
||||
extraUsers3Object.name = approveCheckResultNodeUnsatisfiedCheckResultsUnsatisfiedCheckResultsItemExtraUsersExtraUsersItem["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());
|
||||
resultObject.approveCheckResult.unsatisfiedCheckResults.push_back(unsatisfiedCheckResultsItemObject);
|
||||
}
|
||||
auto authorNode = value["Author"];
|
||||
if(!authorNode["AvatarUrl"].isNull())
|
||||
resultObject.author.avatarUrl = authorNode["AvatarUrl"].asString();
|
||||
if(!authorNode["ExternUserId"].isNull())
|
||||
resultObject.author.externUserId = authorNode["ExternUserId"].asString();
|
||||
if(!authorNode["Id"].isNull())
|
||||
resultObject.author.id = std::stol(authorNode["Id"].asString());
|
||||
if(!authorNode["Name"].isNull())
|
||||
resultObject.author.name = authorNode["Name"].asString();
|
||||
result_.push_back(resultObject);
|
||||
}
|
||||
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["Total"].isNull())
|
||||
total_ = std::stol(value["Total"].asString());
|
||||
|
||||
}
|
||||
|
||||
long ListMergeRequestsResult::getTotal()const
|
||||
{
|
||||
return total_;
|
||||
}
|
||||
|
||||
std::string ListMergeRequestsResult::getErrorCode()const
|
||||
{
|
||||
return errorCode_;
|
||||
}
|
||||
|
||||
std::string ListMergeRequestsResult::getErrorMessage()const
|
||||
{
|
||||
return errorMessage_;
|
||||
}
|
||||
|
||||
bool ListMergeRequestsResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
std::vector<ListMergeRequestsResult::ResultItem> ListMergeRequestsResult::getResult()const
|
||||
{
|
||||
return result_;
|
||||
}
|
||||
|
||||
63
codeup/src/model/UpdateRepositoryRequest.cc
Normal file
63
codeup/src/model/UpdateRepositoryRequest.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/UpdateRepositoryRequest.h>
|
||||
|
||||
using AlibabaCloud::Codeup::Model::UpdateRepositoryRequest;
|
||||
|
||||
UpdateRepositoryRequest::UpdateRepositoryRequest() :
|
||||
RoaServiceRequest("codeup", "2020-04-14")
|
||||
{
|
||||
setResourcePath("/api/v3/projects/[ProjectId]");
|
||||
setMethod(HttpRequest::Method::Put);
|
||||
}
|
||||
|
||||
UpdateRepositoryRequest::~UpdateRepositoryRequest()
|
||||
{}
|
||||
|
||||
std::string UpdateRepositoryRequest::getOrganizationId()const
|
||||
{
|
||||
return organizationId_;
|
||||
}
|
||||
|
||||
void UpdateRepositoryRequest::setOrganizationId(const std::string& organizationId)
|
||||
{
|
||||
organizationId_ = organizationId;
|
||||
setParameter("OrganizationId", organizationId);
|
||||
}
|
||||
|
||||
std::string UpdateRepositoryRequest::getAccessToken()const
|
||||
{
|
||||
return accessToken_;
|
||||
}
|
||||
|
||||
void UpdateRepositoryRequest::setAccessToken(const std::string& accessToken)
|
||||
{
|
||||
accessToken_ = accessToken;
|
||||
setParameter("AccessToken", accessToken);
|
||||
}
|
||||
|
||||
long UpdateRepositoryRequest::getProjectId()const
|
||||
{
|
||||
return projectId_;
|
||||
}
|
||||
|
||||
void UpdateRepositoryRequest::setProjectId(long projectId)
|
||||
{
|
||||
projectId_ = projectId;
|
||||
setParameter("ProjectId", std::to_string(projectId));
|
||||
}
|
||||
|
||||
124
codeup/src/model/UpdateRepositoryResult.cc
Normal file
124
codeup/src/model/UpdateRepositoryResult.cc
Normal file
@@ -0,0 +1,124 @@
|
||||
/*
|
||||
* 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/UpdateRepositoryResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Codeup;
|
||||
using namespace AlibabaCloud::Codeup::Model;
|
||||
|
||||
UpdateRepositoryResult::UpdateRepositoryResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
UpdateRepositoryResult::UpdateRepositoryResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
UpdateRepositoryResult::~UpdateRepositoryResult()
|
||||
{}
|
||||
|
||||
void UpdateRepositoryResult::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["Archive"].isNull())
|
||||
result_.archive = resultNode["Archive"].asString() == "true";
|
||||
if(!resultNode["AvatarUrl"].isNull())
|
||||
result_.avatarUrl = resultNode["AvatarUrl"].asString();
|
||||
if(!resultNode["CreatedAt"].isNull())
|
||||
result_.createdAt = resultNode["CreatedAt"].asString();
|
||||
if(!resultNode["CreatorId"].isNull())
|
||||
result_.creatorId = std::stol(resultNode["CreatorId"].asString());
|
||||
if(!resultNode["DefaultBranch"].isNull())
|
||||
result_.defaultBranch = resultNode["DefaultBranch"].asString();
|
||||
if(!resultNode["Description"].isNull())
|
||||
result_.description = resultNode["Description"].asString();
|
||||
if(!resultNode["HttpUrlToRepo"].isNull())
|
||||
result_.httpUrlToRepo = resultNode["HttpUrlToRepo"].asString();
|
||||
if(!resultNode["Id"].isNull())
|
||||
result_.id = std::stol(resultNode["Id"].asString());
|
||||
if(!resultNode["LastActivityAt"].isNull())
|
||||
result_.lastActivityAt = resultNode["LastActivityAt"].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["SshUrlToRepo"].isNull())
|
||||
result_.sshUrlToRepo = resultNode["SshUrlToRepo"].asString();
|
||||
if(!resultNode["VisibilityLevel"].isNull())
|
||||
result_.visibilityLevel = resultNode["VisibilityLevel"].asString();
|
||||
if(!resultNode["WebUrl"].isNull())
|
||||
result_.webUrl = resultNode["WebUrl"].asString();
|
||||
auto _namespaceNode = resultNode["Namespace"];
|
||||
if(!_namespaceNode["Avatar"].isNull())
|
||||
result_._namespace.avatar = _namespaceNode["Avatar"].asString();
|
||||
if(!_namespaceNode["CreatedAt"].isNull())
|
||||
result_._namespace.createdAt = _namespaceNode["CreatedAt"].asString();
|
||||
if(!_namespaceNode["Description"].isNull())
|
||||
result_._namespace.description = _namespaceNode["Description"].asString();
|
||||
if(!_namespaceNode["Id"].isNull())
|
||||
result_._namespace.id = std::stol(_namespaceNode["Id"].asString());
|
||||
if(!_namespaceNode["Name"].isNull())
|
||||
result_._namespace.name = _namespaceNode["Name"].asString();
|
||||
if(!_namespaceNode["OwnerId"].isNull())
|
||||
result_._namespace.ownerId = std::stol(_namespaceNode["OwnerId"].asString());
|
||||
if(!_namespaceNode["Path"].isNull())
|
||||
result_._namespace.path = _namespaceNode["Path"].asString();
|
||||
if(!_namespaceNode["Public"].isNull())
|
||||
result_._namespace._public = _namespaceNode["Public"].asString() == "true";
|
||||
if(!_namespaceNode["UpdatedAt"].isNull())
|
||||
result_._namespace.updatedAt = _namespaceNode["UpdatedAt"].asString();
|
||||
if(!_namespaceNode["VisibilityLevel"].isNull())
|
||||
result_._namespace.visibilityLevel = _namespaceNode["VisibilityLevel"].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";
|
||||
|
||||
}
|
||||
|
||||
std::string UpdateRepositoryResult::getErrorCode()const
|
||||
{
|
||||
return errorCode_;
|
||||
}
|
||||
|
||||
std::string UpdateRepositoryResult::getErrorMessage()const
|
||||
{
|
||||
return errorMessage_;
|
||||
}
|
||||
|
||||
bool UpdateRepositoryResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
UpdateRepositoryResult::Result UpdateRepositoryResult::getResult()const
|
||||
{
|
||||
return result_;
|
||||
}
|
||||
|
||||
166
dg/CMakeLists.txt
Normal file
166
dg/CMakeLists.txt
Normal file
@@ -0,0 +1,166 @@
|
||||
#
|
||||
# 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(dg_public_header
|
||||
include/alibabacloud/dg/DgClient.h
|
||||
include/alibabacloud/dg/DgExport.h )
|
||||
|
||||
set(dg_public_header_model
|
||||
include/alibabacloud/dg/model/AddDatabaseRequest.h
|
||||
include/alibabacloud/dg/model/AddDatabaseResult.h
|
||||
include/alibabacloud/dg/model/AddDatabaseListRequest.h
|
||||
include/alibabacloud/dg/model/AddDatabaseListResult.h
|
||||
include/alibabacloud/dg/model/ConnectDatabaseRequest.h
|
||||
include/alibabacloud/dg/model/ConnectDatabaseResult.h
|
||||
include/alibabacloud/dg/model/CreateDatabaseAccessPointRequest.h
|
||||
include/alibabacloud/dg/model/CreateDatabaseAccessPointResult.h
|
||||
include/alibabacloud/dg/model/CreateGatewayRequest.h
|
||||
include/alibabacloud/dg/model/CreateGatewayResult.h
|
||||
include/alibabacloud/dg/model/CreateGatewayVerifyCodeRequest.h
|
||||
include/alibabacloud/dg/model/CreateGatewayVerifyCodeResult.h
|
||||
include/alibabacloud/dg/model/DeleteDatabaseRequest.h
|
||||
include/alibabacloud/dg/model/DeleteDatabaseResult.h
|
||||
include/alibabacloud/dg/model/DeleteDatabaseAccessPointRequest.h
|
||||
include/alibabacloud/dg/model/DeleteDatabaseAccessPointResult.h
|
||||
include/alibabacloud/dg/model/DeleteGatewayRequest.h
|
||||
include/alibabacloud/dg/model/DeleteGatewayResult.h
|
||||
include/alibabacloud/dg/model/DeleteGatewayInstanceRequest.h
|
||||
include/alibabacloud/dg/model/DeleteGatewayInstanceResult.h
|
||||
include/alibabacloud/dg/model/DescribeRegionsRequest.h
|
||||
include/alibabacloud/dg/model/DescribeRegionsResult.h
|
||||
include/alibabacloud/dg/model/DownloadGatewayProgramRequest.h
|
||||
include/alibabacloud/dg/model/DownloadGatewayProgramResult.h
|
||||
include/alibabacloud/dg/model/FindUserGatewayByIdRequest.h
|
||||
include/alibabacloud/dg/model/FindUserGatewayByIdResult.h
|
||||
include/alibabacloud/dg/model/GetUserDatabasesRequest.h
|
||||
include/alibabacloud/dg/model/GetUserDatabasesResult.h
|
||||
include/alibabacloud/dg/model/GetUserGatewayInstancesRequest.h
|
||||
include/alibabacloud/dg/model/GetUserGatewayInstancesResult.h
|
||||
include/alibabacloud/dg/model/GetUserGatewaysRequest.h
|
||||
include/alibabacloud/dg/model/GetUserGatewaysResult.h
|
||||
include/alibabacloud/dg/model/ListDatabaseAccessPointRequest.h
|
||||
include/alibabacloud/dg/model/ListDatabaseAccessPointResult.h
|
||||
include/alibabacloud/dg/model/ModifyDatabaseRequest.h
|
||||
include/alibabacloud/dg/model/ModifyDatabaseResult.h
|
||||
include/alibabacloud/dg/model/ModifyGatewayRequest.h
|
||||
include/alibabacloud/dg/model/ModifyGatewayResult.h
|
||||
include/alibabacloud/dg/model/RetryDatabaseRequest.h
|
||||
include/alibabacloud/dg/model/RetryDatabaseResult.h
|
||||
include/alibabacloud/dg/model/StopGatewayRequest.h
|
||||
include/alibabacloud/dg/model/StopGatewayResult.h )
|
||||
|
||||
set(dg_src
|
||||
src/DgClient.cc
|
||||
src/model/AddDatabaseRequest.cc
|
||||
src/model/AddDatabaseResult.cc
|
||||
src/model/AddDatabaseListRequest.cc
|
||||
src/model/AddDatabaseListResult.cc
|
||||
src/model/ConnectDatabaseRequest.cc
|
||||
src/model/ConnectDatabaseResult.cc
|
||||
src/model/CreateDatabaseAccessPointRequest.cc
|
||||
src/model/CreateDatabaseAccessPointResult.cc
|
||||
src/model/CreateGatewayRequest.cc
|
||||
src/model/CreateGatewayResult.cc
|
||||
src/model/CreateGatewayVerifyCodeRequest.cc
|
||||
src/model/CreateGatewayVerifyCodeResult.cc
|
||||
src/model/DeleteDatabaseRequest.cc
|
||||
src/model/DeleteDatabaseResult.cc
|
||||
src/model/DeleteDatabaseAccessPointRequest.cc
|
||||
src/model/DeleteDatabaseAccessPointResult.cc
|
||||
src/model/DeleteGatewayRequest.cc
|
||||
src/model/DeleteGatewayResult.cc
|
||||
src/model/DeleteGatewayInstanceRequest.cc
|
||||
src/model/DeleteGatewayInstanceResult.cc
|
||||
src/model/DescribeRegionsRequest.cc
|
||||
src/model/DescribeRegionsResult.cc
|
||||
src/model/DownloadGatewayProgramRequest.cc
|
||||
src/model/DownloadGatewayProgramResult.cc
|
||||
src/model/FindUserGatewayByIdRequest.cc
|
||||
src/model/FindUserGatewayByIdResult.cc
|
||||
src/model/GetUserDatabasesRequest.cc
|
||||
src/model/GetUserDatabasesResult.cc
|
||||
src/model/GetUserGatewayInstancesRequest.cc
|
||||
src/model/GetUserGatewayInstancesResult.cc
|
||||
src/model/GetUserGatewaysRequest.cc
|
||||
src/model/GetUserGatewaysResult.cc
|
||||
src/model/ListDatabaseAccessPointRequest.cc
|
||||
src/model/ListDatabaseAccessPointResult.cc
|
||||
src/model/ModifyDatabaseRequest.cc
|
||||
src/model/ModifyDatabaseResult.cc
|
||||
src/model/ModifyGatewayRequest.cc
|
||||
src/model/ModifyGatewayResult.cc
|
||||
src/model/RetryDatabaseRequest.cc
|
||||
src/model/RetryDatabaseResult.cc
|
||||
src/model/StopGatewayRequest.cc
|
||||
src/model/StopGatewayResult.cc )
|
||||
|
||||
add_library(dg ${LIB_TYPE}
|
||||
${dg_public_header}
|
||||
${dg_public_header_model}
|
||||
${dg_src})
|
||||
|
||||
set_target_properties(dg
|
||||
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}dg
|
||||
)
|
||||
|
||||
if(${LIB_TYPE} STREQUAL "SHARED")
|
||||
set_target_properties(dg
|
||||
PROPERTIES
|
||||
DEFINE_SYMBOL ALIBABACLOUD_DG_LIBRARY)
|
||||
endif()
|
||||
|
||||
target_include_directories(dg
|
||||
PRIVATE include
|
||||
${CMAKE_SOURCE_DIR}/core/include
|
||||
)
|
||||
target_link_libraries(dg
|
||||
core)
|
||||
|
||||
if(CMAKE_HOST_WIN32)
|
||||
ExternalProject_Get_Property(jsoncpp INSTALL_DIR)
|
||||
set(jsoncpp_install_dir ${INSTALL_DIR})
|
||||
add_dependencies(dg
|
||||
jsoncpp)
|
||||
target_include_directories(dg
|
||||
PRIVATE ${jsoncpp_install_dir}/include)
|
||||
target_link_libraries(dg
|
||||
${jsoncpp_install_dir}/lib/jsoncpp.lib)
|
||||
set_target_properties(dg
|
||||
PROPERTIES
|
||||
COMPILE_OPTIONS "/bigobj")
|
||||
else()
|
||||
target_include_directories(dg
|
||||
PRIVATE /usr/include/jsoncpp)
|
||||
target_link_libraries(dg
|
||||
jsoncpp)
|
||||
endif()
|
||||
|
||||
install(FILES ${dg_public_header}
|
||||
DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/alibabacloud/dg)
|
||||
install(FILES ${dg_public_header_model}
|
||||
DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/alibabacloud/dg/model)
|
||||
install(TARGETS dg
|
||||
ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
|
||||
LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
|
||||
RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
|
||||
)
|
||||
214
dg/include/alibabacloud/dg/DgClient.h
Normal file
214
dg/include/alibabacloud/dg/DgClient.h
Normal file
@@ -0,0 +1,214 @@
|
||||
/*
|
||||
* 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_DG_DGCLIENT_H_
|
||||
#define ALIBABACLOUD_DG_DGCLIENT_H_
|
||||
|
||||
#include <future>
|
||||
#include <alibabacloud/core/AsyncCallerContext.h>
|
||||
#include <alibabacloud/core/EndpointProvider.h>
|
||||
#include <alibabacloud/core/RpcServiceClient.h>
|
||||
#include "DgExport.h"
|
||||
#include "model/AddDatabaseRequest.h"
|
||||
#include "model/AddDatabaseResult.h"
|
||||
#include "model/AddDatabaseListRequest.h"
|
||||
#include "model/AddDatabaseListResult.h"
|
||||
#include "model/ConnectDatabaseRequest.h"
|
||||
#include "model/ConnectDatabaseResult.h"
|
||||
#include "model/CreateDatabaseAccessPointRequest.h"
|
||||
#include "model/CreateDatabaseAccessPointResult.h"
|
||||
#include "model/CreateGatewayRequest.h"
|
||||
#include "model/CreateGatewayResult.h"
|
||||
#include "model/CreateGatewayVerifyCodeRequest.h"
|
||||
#include "model/CreateGatewayVerifyCodeResult.h"
|
||||
#include "model/DeleteDatabaseRequest.h"
|
||||
#include "model/DeleteDatabaseResult.h"
|
||||
#include "model/DeleteDatabaseAccessPointRequest.h"
|
||||
#include "model/DeleteDatabaseAccessPointResult.h"
|
||||
#include "model/DeleteGatewayRequest.h"
|
||||
#include "model/DeleteGatewayResult.h"
|
||||
#include "model/DeleteGatewayInstanceRequest.h"
|
||||
#include "model/DeleteGatewayInstanceResult.h"
|
||||
#include "model/DescribeRegionsRequest.h"
|
||||
#include "model/DescribeRegionsResult.h"
|
||||
#include "model/DownloadGatewayProgramRequest.h"
|
||||
#include "model/DownloadGatewayProgramResult.h"
|
||||
#include "model/FindUserGatewayByIdRequest.h"
|
||||
#include "model/FindUserGatewayByIdResult.h"
|
||||
#include "model/GetUserDatabasesRequest.h"
|
||||
#include "model/GetUserDatabasesResult.h"
|
||||
#include "model/GetUserGatewayInstancesRequest.h"
|
||||
#include "model/GetUserGatewayInstancesResult.h"
|
||||
#include "model/GetUserGatewaysRequest.h"
|
||||
#include "model/GetUserGatewaysResult.h"
|
||||
#include "model/ListDatabaseAccessPointRequest.h"
|
||||
#include "model/ListDatabaseAccessPointResult.h"
|
||||
#include "model/ModifyDatabaseRequest.h"
|
||||
#include "model/ModifyDatabaseResult.h"
|
||||
#include "model/ModifyGatewayRequest.h"
|
||||
#include "model/ModifyGatewayResult.h"
|
||||
#include "model/RetryDatabaseRequest.h"
|
||||
#include "model/RetryDatabaseResult.h"
|
||||
#include "model/StopGatewayRequest.h"
|
||||
#include "model/StopGatewayResult.h"
|
||||
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Dg
|
||||
{
|
||||
class ALIBABACLOUD_DG_EXPORT DgClient : public RpcServiceClient
|
||||
{
|
||||
public:
|
||||
typedef Outcome<Error, Model::AddDatabaseResult> AddDatabaseOutcome;
|
||||
typedef std::future<AddDatabaseOutcome> AddDatabaseOutcomeCallable;
|
||||
typedef std::function<void(const DgClient*, const Model::AddDatabaseRequest&, const AddDatabaseOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> AddDatabaseAsyncHandler;
|
||||
typedef Outcome<Error, Model::AddDatabaseListResult> AddDatabaseListOutcome;
|
||||
typedef std::future<AddDatabaseListOutcome> AddDatabaseListOutcomeCallable;
|
||||
typedef std::function<void(const DgClient*, const Model::AddDatabaseListRequest&, const AddDatabaseListOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> AddDatabaseListAsyncHandler;
|
||||
typedef Outcome<Error, Model::ConnectDatabaseResult> ConnectDatabaseOutcome;
|
||||
typedef std::future<ConnectDatabaseOutcome> ConnectDatabaseOutcomeCallable;
|
||||
typedef std::function<void(const DgClient*, const Model::ConnectDatabaseRequest&, const ConnectDatabaseOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ConnectDatabaseAsyncHandler;
|
||||
typedef Outcome<Error, Model::CreateDatabaseAccessPointResult> CreateDatabaseAccessPointOutcome;
|
||||
typedef std::future<CreateDatabaseAccessPointOutcome> CreateDatabaseAccessPointOutcomeCallable;
|
||||
typedef std::function<void(const DgClient*, const Model::CreateDatabaseAccessPointRequest&, const CreateDatabaseAccessPointOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> CreateDatabaseAccessPointAsyncHandler;
|
||||
typedef Outcome<Error, Model::CreateGatewayResult> CreateGatewayOutcome;
|
||||
typedef std::future<CreateGatewayOutcome> CreateGatewayOutcomeCallable;
|
||||
typedef std::function<void(const DgClient*, const Model::CreateGatewayRequest&, const CreateGatewayOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> CreateGatewayAsyncHandler;
|
||||
typedef Outcome<Error, Model::CreateGatewayVerifyCodeResult> CreateGatewayVerifyCodeOutcome;
|
||||
typedef std::future<CreateGatewayVerifyCodeOutcome> CreateGatewayVerifyCodeOutcomeCallable;
|
||||
typedef std::function<void(const DgClient*, const Model::CreateGatewayVerifyCodeRequest&, const CreateGatewayVerifyCodeOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> CreateGatewayVerifyCodeAsyncHandler;
|
||||
typedef Outcome<Error, Model::DeleteDatabaseResult> DeleteDatabaseOutcome;
|
||||
typedef std::future<DeleteDatabaseOutcome> DeleteDatabaseOutcomeCallable;
|
||||
typedef std::function<void(const DgClient*, const Model::DeleteDatabaseRequest&, const DeleteDatabaseOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DeleteDatabaseAsyncHandler;
|
||||
typedef Outcome<Error, Model::DeleteDatabaseAccessPointResult> DeleteDatabaseAccessPointOutcome;
|
||||
typedef std::future<DeleteDatabaseAccessPointOutcome> DeleteDatabaseAccessPointOutcomeCallable;
|
||||
typedef std::function<void(const DgClient*, const Model::DeleteDatabaseAccessPointRequest&, const DeleteDatabaseAccessPointOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DeleteDatabaseAccessPointAsyncHandler;
|
||||
typedef Outcome<Error, Model::DeleteGatewayResult> DeleteGatewayOutcome;
|
||||
typedef std::future<DeleteGatewayOutcome> DeleteGatewayOutcomeCallable;
|
||||
typedef std::function<void(const DgClient*, const Model::DeleteGatewayRequest&, const DeleteGatewayOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DeleteGatewayAsyncHandler;
|
||||
typedef Outcome<Error, Model::DeleteGatewayInstanceResult> DeleteGatewayInstanceOutcome;
|
||||
typedef std::future<DeleteGatewayInstanceOutcome> DeleteGatewayInstanceOutcomeCallable;
|
||||
typedef std::function<void(const DgClient*, const Model::DeleteGatewayInstanceRequest&, const DeleteGatewayInstanceOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DeleteGatewayInstanceAsyncHandler;
|
||||
typedef Outcome<Error, Model::DescribeRegionsResult> DescribeRegionsOutcome;
|
||||
typedef std::future<DescribeRegionsOutcome> DescribeRegionsOutcomeCallable;
|
||||
typedef std::function<void(const DgClient*, const Model::DescribeRegionsRequest&, const DescribeRegionsOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeRegionsAsyncHandler;
|
||||
typedef Outcome<Error, Model::DownloadGatewayProgramResult> DownloadGatewayProgramOutcome;
|
||||
typedef std::future<DownloadGatewayProgramOutcome> DownloadGatewayProgramOutcomeCallable;
|
||||
typedef std::function<void(const DgClient*, const Model::DownloadGatewayProgramRequest&, const DownloadGatewayProgramOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DownloadGatewayProgramAsyncHandler;
|
||||
typedef Outcome<Error, Model::FindUserGatewayByIdResult> FindUserGatewayByIdOutcome;
|
||||
typedef std::future<FindUserGatewayByIdOutcome> FindUserGatewayByIdOutcomeCallable;
|
||||
typedef std::function<void(const DgClient*, const Model::FindUserGatewayByIdRequest&, const FindUserGatewayByIdOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> FindUserGatewayByIdAsyncHandler;
|
||||
typedef Outcome<Error, Model::GetUserDatabasesResult> GetUserDatabasesOutcome;
|
||||
typedef std::future<GetUserDatabasesOutcome> GetUserDatabasesOutcomeCallable;
|
||||
typedef std::function<void(const DgClient*, const Model::GetUserDatabasesRequest&, const GetUserDatabasesOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetUserDatabasesAsyncHandler;
|
||||
typedef Outcome<Error, Model::GetUserGatewayInstancesResult> GetUserGatewayInstancesOutcome;
|
||||
typedef std::future<GetUserGatewayInstancesOutcome> GetUserGatewayInstancesOutcomeCallable;
|
||||
typedef std::function<void(const DgClient*, const Model::GetUserGatewayInstancesRequest&, const GetUserGatewayInstancesOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetUserGatewayInstancesAsyncHandler;
|
||||
typedef Outcome<Error, Model::GetUserGatewaysResult> GetUserGatewaysOutcome;
|
||||
typedef std::future<GetUserGatewaysOutcome> GetUserGatewaysOutcomeCallable;
|
||||
typedef std::function<void(const DgClient*, const Model::GetUserGatewaysRequest&, const GetUserGatewaysOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetUserGatewaysAsyncHandler;
|
||||
typedef Outcome<Error, Model::ListDatabaseAccessPointResult> ListDatabaseAccessPointOutcome;
|
||||
typedef std::future<ListDatabaseAccessPointOutcome> ListDatabaseAccessPointOutcomeCallable;
|
||||
typedef std::function<void(const DgClient*, const Model::ListDatabaseAccessPointRequest&, const ListDatabaseAccessPointOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ListDatabaseAccessPointAsyncHandler;
|
||||
typedef Outcome<Error, Model::ModifyDatabaseResult> ModifyDatabaseOutcome;
|
||||
typedef std::future<ModifyDatabaseOutcome> ModifyDatabaseOutcomeCallable;
|
||||
typedef std::function<void(const DgClient*, const Model::ModifyDatabaseRequest&, const ModifyDatabaseOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ModifyDatabaseAsyncHandler;
|
||||
typedef Outcome<Error, Model::ModifyGatewayResult> ModifyGatewayOutcome;
|
||||
typedef std::future<ModifyGatewayOutcome> ModifyGatewayOutcomeCallable;
|
||||
typedef std::function<void(const DgClient*, const Model::ModifyGatewayRequest&, const ModifyGatewayOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ModifyGatewayAsyncHandler;
|
||||
typedef Outcome<Error, Model::RetryDatabaseResult> RetryDatabaseOutcome;
|
||||
typedef std::future<RetryDatabaseOutcome> RetryDatabaseOutcomeCallable;
|
||||
typedef std::function<void(const DgClient*, const Model::RetryDatabaseRequest&, const RetryDatabaseOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> RetryDatabaseAsyncHandler;
|
||||
typedef Outcome<Error, Model::StopGatewayResult> StopGatewayOutcome;
|
||||
typedef std::future<StopGatewayOutcome> StopGatewayOutcomeCallable;
|
||||
typedef std::function<void(const DgClient*, const Model::StopGatewayRequest&, const StopGatewayOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> StopGatewayAsyncHandler;
|
||||
|
||||
DgClient(const Credentials &credentials, const ClientConfiguration &configuration);
|
||||
DgClient(const std::shared_ptr<CredentialsProvider> &credentialsProvider, const ClientConfiguration &configuration);
|
||||
DgClient(const std::string &accessKeyId, const std::string &accessKeySecret, const ClientConfiguration &configuration);
|
||||
~DgClient();
|
||||
AddDatabaseOutcome addDatabase(const Model::AddDatabaseRequest &request)const;
|
||||
void addDatabaseAsync(const Model::AddDatabaseRequest& request, const AddDatabaseAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
AddDatabaseOutcomeCallable addDatabaseCallable(const Model::AddDatabaseRequest& request) const;
|
||||
AddDatabaseListOutcome addDatabaseList(const Model::AddDatabaseListRequest &request)const;
|
||||
void addDatabaseListAsync(const Model::AddDatabaseListRequest& request, const AddDatabaseListAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
AddDatabaseListOutcomeCallable addDatabaseListCallable(const Model::AddDatabaseListRequest& request) const;
|
||||
ConnectDatabaseOutcome connectDatabase(const Model::ConnectDatabaseRequest &request)const;
|
||||
void connectDatabaseAsync(const Model::ConnectDatabaseRequest& request, const ConnectDatabaseAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
ConnectDatabaseOutcomeCallable connectDatabaseCallable(const Model::ConnectDatabaseRequest& request) const;
|
||||
CreateDatabaseAccessPointOutcome createDatabaseAccessPoint(const Model::CreateDatabaseAccessPointRequest &request)const;
|
||||
void createDatabaseAccessPointAsync(const Model::CreateDatabaseAccessPointRequest& request, const CreateDatabaseAccessPointAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
CreateDatabaseAccessPointOutcomeCallable createDatabaseAccessPointCallable(const Model::CreateDatabaseAccessPointRequest& request) const;
|
||||
CreateGatewayOutcome createGateway(const Model::CreateGatewayRequest &request)const;
|
||||
void createGatewayAsync(const Model::CreateGatewayRequest& request, const CreateGatewayAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
CreateGatewayOutcomeCallable createGatewayCallable(const Model::CreateGatewayRequest& request) const;
|
||||
CreateGatewayVerifyCodeOutcome createGatewayVerifyCode(const Model::CreateGatewayVerifyCodeRequest &request)const;
|
||||
void createGatewayVerifyCodeAsync(const Model::CreateGatewayVerifyCodeRequest& request, const CreateGatewayVerifyCodeAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
CreateGatewayVerifyCodeOutcomeCallable createGatewayVerifyCodeCallable(const Model::CreateGatewayVerifyCodeRequest& request) const;
|
||||
DeleteDatabaseOutcome deleteDatabase(const Model::DeleteDatabaseRequest &request)const;
|
||||
void deleteDatabaseAsync(const Model::DeleteDatabaseRequest& request, const DeleteDatabaseAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DeleteDatabaseOutcomeCallable deleteDatabaseCallable(const Model::DeleteDatabaseRequest& request) const;
|
||||
DeleteDatabaseAccessPointOutcome deleteDatabaseAccessPoint(const Model::DeleteDatabaseAccessPointRequest &request)const;
|
||||
void deleteDatabaseAccessPointAsync(const Model::DeleteDatabaseAccessPointRequest& request, const DeleteDatabaseAccessPointAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DeleteDatabaseAccessPointOutcomeCallable deleteDatabaseAccessPointCallable(const Model::DeleteDatabaseAccessPointRequest& request) const;
|
||||
DeleteGatewayOutcome deleteGateway(const Model::DeleteGatewayRequest &request)const;
|
||||
void deleteGatewayAsync(const Model::DeleteGatewayRequest& request, const DeleteGatewayAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DeleteGatewayOutcomeCallable deleteGatewayCallable(const Model::DeleteGatewayRequest& request) const;
|
||||
DeleteGatewayInstanceOutcome deleteGatewayInstance(const Model::DeleteGatewayInstanceRequest &request)const;
|
||||
void deleteGatewayInstanceAsync(const Model::DeleteGatewayInstanceRequest& request, const DeleteGatewayInstanceAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DeleteGatewayInstanceOutcomeCallable deleteGatewayInstanceCallable(const Model::DeleteGatewayInstanceRequest& request) const;
|
||||
DescribeRegionsOutcome describeRegions(const Model::DescribeRegionsRequest &request)const;
|
||||
void describeRegionsAsync(const Model::DescribeRegionsRequest& request, const DescribeRegionsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DescribeRegionsOutcomeCallable describeRegionsCallable(const Model::DescribeRegionsRequest& request) const;
|
||||
DownloadGatewayProgramOutcome downloadGatewayProgram(const Model::DownloadGatewayProgramRequest &request)const;
|
||||
void downloadGatewayProgramAsync(const Model::DownloadGatewayProgramRequest& request, const DownloadGatewayProgramAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DownloadGatewayProgramOutcomeCallable downloadGatewayProgramCallable(const Model::DownloadGatewayProgramRequest& request) const;
|
||||
FindUserGatewayByIdOutcome findUserGatewayById(const Model::FindUserGatewayByIdRequest &request)const;
|
||||
void findUserGatewayByIdAsync(const Model::FindUserGatewayByIdRequest& request, const FindUserGatewayByIdAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
FindUserGatewayByIdOutcomeCallable findUserGatewayByIdCallable(const Model::FindUserGatewayByIdRequest& request) const;
|
||||
GetUserDatabasesOutcome getUserDatabases(const Model::GetUserDatabasesRequest &request)const;
|
||||
void getUserDatabasesAsync(const Model::GetUserDatabasesRequest& request, const GetUserDatabasesAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
GetUserDatabasesOutcomeCallable getUserDatabasesCallable(const Model::GetUserDatabasesRequest& request) const;
|
||||
GetUserGatewayInstancesOutcome getUserGatewayInstances(const Model::GetUserGatewayInstancesRequest &request)const;
|
||||
void getUserGatewayInstancesAsync(const Model::GetUserGatewayInstancesRequest& request, const GetUserGatewayInstancesAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
GetUserGatewayInstancesOutcomeCallable getUserGatewayInstancesCallable(const Model::GetUserGatewayInstancesRequest& request) const;
|
||||
GetUserGatewaysOutcome getUserGateways(const Model::GetUserGatewaysRequest &request)const;
|
||||
void getUserGatewaysAsync(const Model::GetUserGatewaysRequest& request, const GetUserGatewaysAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
GetUserGatewaysOutcomeCallable getUserGatewaysCallable(const Model::GetUserGatewaysRequest& request) const;
|
||||
ListDatabaseAccessPointOutcome listDatabaseAccessPoint(const Model::ListDatabaseAccessPointRequest &request)const;
|
||||
void listDatabaseAccessPointAsync(const Model::ListDatabaseAccessPointRequest& request, const ListDatabaseAccessPointAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
ListDatabaseAccessPointOutcomeCallable listDatabaseAccessPointCallable(const Model::ListDatabaseAccessPointRequest& request) const;
|
||||
ModifyDatabaseOutcome modifyDatabase(const Model::ModifyDatabaseRequest &request)const;
|
||||
void modifyDatabaseAsync(const Model::ModifyDatabaseRequest& request, const ModifyDatabaseAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
ModifyDatabaseOutcomeCallable modifyDatabaseCallable(const Model::ModifyDatabaseRequest& request) const;
|
||||
ModifyGatewayOutcome modifyGateway(const Model::ModifyGatewayRequest &request)const;
|
||||
void modifyGatewayAsync(const Model::ModifyGatewayRequest& request, const ModifyGatewayAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
ModifyGatewayOutcomeCallable modifyGatewayCallable(const Model::ModifyGatewayRequest& request) const;
|
||||
RetryDatabaseOutcome retryDatabase(const Model::RetryDatabaseRequest &request)const;
|
||||
void retryDatabaseAsync(const Model::RetryDatabaseRequest& request, const RetryDatabaseAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
RetryDatabaseOutcomeCallable retryDatabaseCallable(const Model::RetryDatabaseRequest& request) const;
|
||||
StopGatewayOutcome stopGateway(const Model::StopGatewayRequest &request)const;
|
||||
void stopGatewayAsync(const Model::StopGatewayRequest& request, const StopGatewayAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
StopGatewayOutcomeCallable stopGatewayCallable(const Model::StopGatewayRequest& request) const;
|
||||
|
||||
private:
|
||||
std::shared_ptr<EndpointProvider> endpointProvider_;
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
#endif // !ALIBABACLOUD_DG_DGCLIENT_H_
|
||||
32
dg/include/alibabacloud/dg/DgExport.h
Normal file
32
dg/include/alibabacloud/dg/DgExport.h
Normal file
@@ -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_DG_DGEXPORT_H_
|
||||
#define ALIBABACLOUD_DG_DGEXPORT_H_
|
||||
|
||||
#include <alibabacloud/core/Global.h>
|
||||
|
||||
#if defined(ALIBABACLOUD_SHARED)
|
||||
# if defined(ALIBABACLOUD_DG_LIBRARY)
|
||||
# define ALIBABACLOUD_DG_EXPORT ALIBABACLOUD_DECL_EXPORT
|
||||
# else
|
||||
# define ALIBABACLOUD_DG_EXPORT ALIBABACLOUD_DECL_IMPORT
|
||||
# endif
|
||||
#else
|
||||
# define ALIBABACLOUD_DG_EXPORT
|
||||
#endif
|
||||
|
||||
#endif // !ALIBABACLOUD_DG_DGEXPORT_H_
|
||||
51
dg/include/alibabacloud/dg/model/AddDatabaseListRequest.h
Normal file
51
dg/include/alibabacloud/dg/model/AddDatabaseListRequest.h
Normal file
@@ -0,0 +1,51 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_DG_MODEL_ADDDATABASELISTREQUEST_H_
|
||||
#define ALIBABACLOUD_DG_MODEL_ADDDATABASELISTREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/dg/DgExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Dg
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_DG_EXPORT AddDatabaseListRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
AddDatabaseListRequest();
|
||||
~AddDatabaseListRequest();
|
||||
|
||||
std::string getDatabaseString()const;
|
||||
void setDatabaseString(const std::string& databaseString);
|
||||
std::string getClientToken()const;
|
||||
void setClientToken(const std::string& clientToken);
|
||||
|
||||
private:
|
||||
std::string databaseString_;
|
||||
std::string clientToken_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_DG_MODEL_ADDDATABASELISTREQUEST_H_
|
||||
57
dg/include/alibabacloud/dg/model/AddDatabaseListResult.h
Normal file
57
dg/include/alibabacloud/dg/model/AddDatabaseListResult.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_DG_MODEL_ADDDATABASELISTRESULT_H_
|
||||
#define ALIBABACLOUD_DG_MODEL_ADDDATABASELISTRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/dg/DgExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Dg
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_DG_EXPORT AddDatabaseListResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
|
||||
|
||||
AddDatabaseListResult();
|
||||
explicit AddDatabaseListResult(const std::string &payload);
|
||||
~AddDatabaseListResult();
|
||||
std::string getErrorMsg()const;
|
||||
std::string getData()const;
|
||||
std::string getCode()const;
|
||||
bool getSuccess()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::string errorMsg_;
|
||||
std::string data_;
|
||||
std::string code_;
|
||||
bool success_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_DG_MODEL_ADDDATABASELISTRESULT_H_
|
||||
75
dg/include/alibabacloud/dg/model/AddDatabaseRequest.h
Normal file
75
dg/include/alibabacloud/dg/model/AddDatabaseRequest.h
Normal file
@@ -0,0 +1,75 @@
|
||||
/*
|
||||
* 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_DG_MODEL_ADDDATABASEREQUEST_H_
|
||||
#define ALIBABACLOUD_DG_MODEL_ADDDATABASEREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/dg/DgExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Dg
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_DG_EXPORT AddDatabaseRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
AddDatabaseRequest();
|
||||
~AddDatabaseRequest();
|
||||
|
||||
std::string getClientToken()const;
|
||||
void setClientToken(const std::string& clientToken);
|
||||
std::string getRegionId()const;
|
||||
void setRegionId(const std::string& regionId);
|
||||
std::string getHost()const;
|
||||
void setHost(const std::string& host);
|
||||
std::string getDbUserName()const;
|
||||
void setDbUserName(const std::string& dbUserName);
|
||||
std::string getDbDescription()const;
|
||||
void setDbDescription(const std::string& dbDescription);
|
||||
std::string getGatewayId()const;
|
||||
void setGatewayId(const std::string& gatewayId);
|
||||
std::string getDbName()const;
|
||||
void setDbName(const std::string& dbName);
|
||||
int getPort()const;
|
||||
void setPort(int port);
|
||||
std::string getDbPassword()const;
|
||||
void setDbPassword(const std::string& dbPassword);
|
||||
std::string getDbType()const;
|
||||
void setDbType(const std::string& dbType);
|
||||
|
||||
private:
|
||||
std::string clientToken_;
|
||||
std::string regionId_;
|
||||
std::string host_;
|
||||
std::string dbUserName_;
|
||||
std::string dbDescription_;
|
||||
std::string gatewayId_;
|
||||
std::string dbName_;
|
||||
int port_;
|
||||
std::string dbPassword_;
|
||||
std::string dbType_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_DG_MODEL_ADDDATABASEREQUEST_H_
|
||||
57
dg/include/alibabacloud/dg/model/AddDatabaseResult.h
Normal file
57
dg/include/alibabacloud/dg/model/AddDatabaseResult.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_DG_MODEL_ADDDATABASERESULT_H_
|
||||
#define ALIBABACLOUD_DG_MODEL_ADDDATABASERESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/dg/DgExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Dg
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_DG_EXPORT AddDatabaseResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
|
||||
|
||||
AddDatabaseResult();
|
||||
explicit AddDatabaseResult(const std::string &payload);
|
||||
~AddDatabaseResult();
|
||||
std::string getErrorMsg()const;
|
||||
std::string getData()const;
|
||||
std::string getCode()const;
|
||||
bool getSuccess()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::string errorMsg_;
|
||||
std::string data_;
|
||||
std::string code_;
|
||||
bool success_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_DG_MODEL_ADDDATABASERESULT_H_
|
||||
66
dg/include/alibabacloud/dg/model/ConnectDatabaseRequest.h
Normal file
66
dg/include/alibabacloud/dg/model/ConnectDatabaseRequest.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_DG_MODEL_CONNECTDATABASEREQUEST_H_
|
||||
#define ALIBABACLOUD_DG_MODEL_CONNECTDATABASEREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/dg/DgExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Dg
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_DG_EXPORT ConnectDatabaseRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
ConnectDatabaseRequest();
|
||||
~ConnectDatabaseRequest();
|
||||
|
||||
std::string getDbName()const;
|
||||
void setDbName(const std::string& dbName);
|
||||
int getPort()const;
|
||||
void setPort(int port);
|
||||
std::string getDbPassword()const;
|
||||
void setDbPassword(const std::string& dbPassword);
|
||||
std::string getHost()const;
|
||||
void setHost(const std::string& host);
|
||||
std::string getDbType()const;
|
||||
void setDbType(const std::string& dbType);
|
||||
std::string getDbUserName()const;
|
||||
void setDbUserName(const std::string& dbUserName);
|
||||
std::string getGatewayId()const;
|
||||
void setGatewayId(const std::string& gatewayId);
|
||||
|
||||
private:
|
||||
std::string dbName_;
|
||||
int port_;
|
||||
std::string dbPassword_;
|
||||
std::string host_;
|
||||
std::string dbType_;
|
||||
std::string dbUserName_;
|
||||
std::string gatewayId_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_DG_MODEL_CONNECTDATABASEREQUEST_H_
|
||||
57
dg/include/alibabacloud/dg/model/ConnectDatabaseResult.h
Normal file
57
dg/include/alibabacloud/dg/model/ConnectDatabaseResult.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_DG_MODEL_CONNECTDATABASERESULT_H_
|
||||
#define ALIBABACLOUD_DG_MODEL_CONNECTDATABASERESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/dg/DgExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Dg
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_DG_EXPORT ConnectDatabaseResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
|
||||
|
||||
ConnectDatabaseResult();
|
||||
explicit ConnectDatabaseResult(const std::string &payload);
|
||||
~ConnectDatabaseResult();
|
||||
std::string getErrorMsg()const;
|
||||
std::string getData()const;
|
||||
std::string getCode()const;
|
||||
bool getSuccess()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::string errorMsg_;
|
||||
std::string data_;
|
||||
std::string code_;
|
||||
bool success_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_DG_MODEL_CONNECTDATABASERESULT_H_
|
||||
@@ -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_DG_MODEL_CREATEDATABASEACCESSPOINTREQUEST_H_
|
||||
#define ALIBABACLOUD_DG_MODEL_CREATEDATABASEACCESSPOINTREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/dg/DgExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Dg
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_DG_EXPORT CreateDatabaseAccessPointRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
CreateDatabaseAccessPointRequest();
|
||||
~CreateDatabaseAccessPointRequest();
|
||||
|
||||
std::string getVpcAZone()const;
|
||||
void setVpcAZone(const std::string& vpcAZone);
|
||||
std::string getClientToken()const;
|
||||
void setClientToken(const std::string& clientToken);
|
||||
std::string getRegionId()const;
|
||||
void setRegionId(const std::string& regionId);
|
||||
std::string getDbInstanceId()const;
|
||||
void setDbInstanceId(const std::string& dbInstanceId);
|
||||
std::string getVpcRegionId()const;
|
||||
void setVpcRegionId(const std::string& vpcRegionId);
|
||||
std::string getVSwitchId()const;
|
||||
void setVSwitchId(const std::string& vSwitchId);
|
||||
std::string getVpcId()const;
|
||||
void setVpcId(const std::string& vpcId);
|
||||
|
||||
private:
|
||||
std::string vpcAZone_;
|
||||
std::string clientToken_;
|
||||
std::string regionId_;
|
||||
std::string dbInstanceId_;
|
||||
std::string vpcRegionId_;
|
||||
std::string vSwitchId_;
|
||||
std::string vpcId_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_DG_MODEL_CREATEDATABASEACCESSPOINTREQUEST_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_DG_MODEL_CREATEDATABASEACCESSPOINTRESULT_H_
|
||||
#define ALIBABACLOUD_DG_MODEL_CREATEDATABASEACCESSPOINTRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/dg/DgExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Dg
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_DG_EXPORT CreateDatabaseAccessPointResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
|
||||
|
||||
CreateDatabaseAccessPointResult();
|
||||
explicit CreateDatabaseAccessPointResult(const std::string &payload);
|
||||
~CreateDatabaseAccessPointResult();
|
||||
std::string getErrorMsg()const;
|
||||
std::string getData()const;
|
||||
std::string getCode()const;
|
||||
bool getSuccess()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::string errorMsg_;
|
||||
std::string data_;
|
||||
std::string code_;
|
||||
bool success_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_DG_MODEL_CREATEDATABASEACCESSPOINTRESULT_H_
|
||||
54
dg/include/alibabacloud/dg/model/CreateGatewayRequest.h
Normal file
54
dg/include/alibabacloud/dg/model/CreateGatewayRequest.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_DG_MODEL_CREATEGATEWAYREQUEST_H_
|
||||
#define ALIBABACLOUD_DG_MODEL_CREATEGATEWAYREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/dg/DgExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Dg
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_DG_EXPORT CreateGatewayRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
CreateGatewayRequest();
|
||||
~CreateGatewayRequest();
|
||||
|
||||
std::string getGatewayDesc()const;
|
||||
void setGatewayDesc(const std::string& gatewayDesc);
|
||||
std::string getRegionId()const;
|
||||
void setRegionId(const std::string& regionId);
|
||||
std::string getGatewayName()const;
|
||||
void setGatewayName(const std::string& gatewayName);
|
||||
|
||||
private:
|
||||
std::string gatewayDesc_;
|
||||
std::string regionId_;
|
||||
std::string gatewayName_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_DG_MODEL_CREATEGATEWAYREQUEST_H_
|
||||
57
dg/include/alibabacloud/dg/model/CreateGatewayResult.h
Normal file
57
dg/include/alibabacloud/dg/model/CreateGatewayResult.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_DG_MODEL_CREATEGATEWAYRESULT_H_
|
||||
#define ALIBABACLOUD_DG_MODEL_CREATEGATEWAYRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/dg/DgExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Dg
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_DG_EXPORT CreateGatewayResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
|
||||
|
||||
CreateGatewayResult();
|
||||
explicit CreateGatewayResult(const std::string &payload);
|
||||
~CreateGatewayResult();
|
||||
std::string getErrorMsg()const;
|
||||
std::string getData()const;
|
||||
std::string getCode()const;
|
||||
bool getSuccess()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::string errorMsg_;
|
||||
std::string data_;
|
||||
std::string code_;
|
||||
bool success_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_DG_MODEL_CREATEGATEWAYRESULT_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_DG_MODEL_CREATEGATEWAYVERIFYCODEREQUEST_H_
|
||||
#define ALIBABACLOUD_DG_MODEL_CREATEGATEWAYVERIFYCODEREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/dg/DgExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Dg
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_DG_EXPORT CreateGatewayVerifyCodeRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
CreateGatewayVerifyCodeRequest();
|
||||
~CreateGatewayVerifyCodeRequest();
|
||||
|
||||
std::string getGatewayId()const;
|
||||
void setGatewayId(const std::string& gatewayId);
|
||||
|
||||
private:
|
||||
std::string gatewayId_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_DG_MODEL_CREATEGATEWAYVERIFYCODEREQUEST_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_DG_MODEL_CREATEGATEWAYVERIFYCODERESULT_H_
|
||||
#define ALIBABACLOUD_DG_MODEL_CREATEGATEWAYVERIFYCODERESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/dg/DgExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Dg
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_DG_EXPORT CreateGatewayVerifyCodeResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
|
||||
|
||||
CreateGatewayVerifyCodeResult();
|
||||
explicit CreateGatewayVerifyCodeResult(const std::string &payload);
|
||||
~CreateGatewayVerifyCodeResult();
|
||||
std::string getErrorMsg()const;
|
||||
std::string getData()const;
|
||||
std::string getCode()const;
|
||||
bool getSuccess()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::string errorMsg_;
|
||||
std::string data_;
|
||||
std::string code_;
|
||||
bool success_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_DG_MODEL_CREATEGATEWAYVERIFYCODERESULT_H_
|
||||
@@ -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.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_DG_MODEL_DELETEDATABASEACCESSPOINTREQUEST_H_
|
||||
#define ALIBABACLOUD_DG_MODEL_DELETEDATABASEACCESSPOINTREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/dg/DgExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Dg
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_DG_EXPORT DeleteDatabaseAccessPointRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
DeleteDatabaseAccessPointRequest();
|
||||
~DeleteDatabaseAccessPointRequest();
|
||||
|
||||
std::string getVpcAZone()const;
|
||||
void setVpcAZone(const std::string& vpcAZone);
|
||||
std::string getVpcRegionId()const;
|
||||
void setVpcRegionId(const std::string& vpcRegionId);
|
||||
std::string getVSwitchId()const;
|
||||
void setVSwitchId(const std::string& vSwitchId);
|
||||
std::string getRegionId()const;
|
||||
void setRegionId(const std::string& regionId);
|
||||
std::string getVpcId()const;
|
||||
void setVpcId(const std::string& vpcId);
|
||||
std::string getDbInstanceId()const;
|
||||
void setDbInstanceId(const std::string& dbInstanceId);
|
||||
|
||||
private:
|
||||
std::string vpcAZone_;
|
||||
std::string vpcRegionId_;
|
||||
std::string vSwitchId_;
|
||||
std::string regionId_;
|
||||
std::string vpcId_;
|
||||
std::string dbInstanceId_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_DG_MODEL_DELETEDATABASEACCESSPOINTREQUEST_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_DG_MODEL_DELETEDATABASEACCESSPOINTRESULT_H_
|
||||
#define ALIBABACLOUD_DG_MODEL_DELETEDATABASEACCESSPOINTRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/dg/DgExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Dg
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_DG_EXPORT DeleteDatabaseAccessPointResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
|
||||
|
||||
DeleteDatabaseAccessPointResult();
|
||||
explicit DeleteDatabaseAccessPointResult(const std::string &payload);
|
||||
~DeleteDatabaseAccessPointResult();
|
||||
std::string getErrorMsg()const;
|
||||
std::string getData()const;
|
||||
std::string getCode()const;
|
||||
bool getSuccess()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::string errorMsg_;
|
||||
std::string data_;
|
||||
std::string code_;
|
||||
bool success_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_DG_MODEL_DELETEDATABASEACCESSPOINTRESULT_H_
|
||||
48
dg/include/alibabacloud/dg/model/DeleteDatabaseRequest.h
Normal file
48
dg/include/alibabacloud/dg/model/DeleteDatabaseRequest.h
Normal file
@@ -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_DG_MODEL_DELETEDATABASEREQUEST_H_
|
||||
#define ALIBABACLOUD_DG_MODEL_DELETEDATABASEREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/dg/DgExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Dg
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_DG_EXPORT DeleteDatabaseRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
DeleteDatabaseRequest();
|
||||
~DeleteDatabaseRequest();
|
||||
|
||||
std::string getInstanceId()const;
|
||||
void setInstanceId(const std::string& instanceId);
|
||||
|
||||
private:
|
||||
std::string instanceId_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_DG_MODEL_DELETEDATABASEREQUEST_H_
|
||||
57
dg/include/alibabacloud/dg/model/DeleteDatabaseResult.h
Normal file
57
dg/include/alibabacloud/dg/model/DeleteDatabaseResult.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_DG_MODEL_DELETEDATABASERESULT_H_
|
||||
#define ALIBABACLOUD_DG_MODEL_DELETEDATABASERESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/dg/DgExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Dg
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_DG_EXPORT DeleteDatabaseResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
|
||||
|
||||
DeleteDatabaseResult();
|
||||
explicit DeleteDatabaseResult(const std::string &payload);
|
||||
~DeleteDatabaseResult();
|
||||
std::string getErrorMsg()const;
|
||||
std::string getData()const;
|
||||
std::string getCode()const;
|
||||
bool getSuccess()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::string errorMsg_;
|
||||
std::string data_;
|
||||
std::string code_;
|
||||
bool success_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_DG_MODEL_DELETEDATABASERESULT_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_DG_MODEL_DELETEGATEWAYINSTANCEREQUEST_H_
|
||||
#define ALIBABACLOUD_DG_MODEL_DELETEGATEWAYINSTANCEREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/dg/DgExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Dg
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_DG_EXPORT DeleteGatewayInstanceRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
DeleteGatewayInstanceRequest();
|
||||
~DeleteGatewayInstanceRequest();
|
||||
|
||||
std::string getGatewayInstanceId()const;
|
||||
void setGatewayInstanceId(const std::string& gatewayInstanceId);
|
||||
std::string getRegionId()const;
|
||||
void setRegionId(const std::string& regionId);
|
||||
std::string getGatewayId()const;
|
||||
void setGatewayId(const std::string& gatewayId);
|
||||
|
||||
private:
|
||||
std::string gatewayInstanceId_;
|
||||
std::string regionId_;
|
||||
std::string gatewayId_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_DG_MODEL_DELETEGATEWAYINSTANCEREQUEST_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_DG_MODEL_DELETEGATEWAYINSTANCERESULT_H_
|
||||
#define ALIBABACLOUD_DG_MODEL_DELETEGATEWAYINSTANCERESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/dg/DgExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Dg
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_DG_EXPORT DeleteGatewayInstanceResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
|
||||
|
||||
DeleteGatewayInstanceResult();
|
||||
explicit DeleteGatewayInstanceResult(const std::string &payload);
|
||||
~DeleteGatewayInstanceResult();
|
||||
std::string getErrorMsg()const;
|
||||
std::string getData()const;
|
||||
std::string getCode()const;
|
||||
bool getSuccess()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::string errorMsg_;
|
||||
std::string data_;
|
||||
std::string code_;
|
||||
bool success_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_DG_MODEL_DELETEGATEWAYINSTANCERESULT_H_
|
||||
48
dg/include/alibabacloud/dg/model/DeleteGatewayRequest.h
Normal file
48
dg/include/alibabacloud/dg/model/DeleteGatewayRequest.h
Normal file
@@ -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_DG_MODEL_DELETEGATEWAYREQUEST_H_
|
||||
#define ALIBABACLOUD_DG_MODEL_DELETEGATEWAYREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/dg/DgExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Dg
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_DG_EXPORT DeleteGatewayRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
DeleteGatewayRequest();
|
||||
~DeleteGatewayRequest();
|
||||
|
||||
std::string getGatewayId()const;
|
||||
void setGatewayId(const std::string& gatewayId);
|
||||
|
||||
private:
|
||||
std::string gatewayId_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_DG_MODEL_DELETEGATEWAYREQUEST_H_
|
||||
57
dg/include/alibabacloud/dg/model/DeleteGatewayResult.h
Normal file
57
dg/include/alibabacloud/dg/model/DeleteGatewayResult.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_DG_MODEL_DELETEGATEWAYRESULT_H_
|
||||
#define ALIBABACLOUD_DG_MODEL_DELETEGATEWAYRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/dg/DgExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Dg
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_DG_EXPORT DeleteGatewayResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
|
||||
|
||||
DeleteGatewayResult();
|
||||
explicit DeleteGatewayResult(const std::string &payload);
|
||||
~DeleteGatewayResult();
|
||||
std::string getErrorMsg()const;
|
||||
std::string getData()const;
|
||||
std::string getCode()const;
|
||||
bool getSuccess()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::string errorMsg_;
|
||||
std::string data_;
|
||||
std::string code_;
|
||||
bool success_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_DG_MODEL_DELETEGATEWAYRESULT_H_
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user