Compare commits
61 Commits
openanalyt
...
Kms-patch
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
3c991c9ca9 | ||
|
|
8fdebda354 | ||
|
|
b176afa994 | ||
|
|
2f2b5d5ffe | ||
|
|
ddc7e6e035 | ||
|
|
f937d7b2e5 | ||
|
|
5ae199177a | ||
|
|
17a893fab4 | ||
|
|
59fadb7eb2 | ||
|
|
efdcf35422 | ||
|
|
4a101f7934 | ||
|
|
0e8ddb7c12 | ||
|
|
830db8c54b | ||
|
|
497a6c2290 | ||
|
|
133087387b | ||
|
|
df2d0d89e1 | ||
|
|
42b2b25562 | ||
|
|
c2e912302d | ||
|
|
70ddae4685 | ||
|
|
b1e826e6d7 | ||
|
|
aca0a3efa8 | ||
|
|
98c36e9bab | ||
|
|
b84d1c59fa | ||
|
|
c2dc12f92b | ||
|
|
efb0804bf2 | ||
|
|
0e778cd17c | ||
|
|
78d79a3d5b | ||
|
|
5a1415f6e3 | ||
|
|
7f24d410fd | ||
|
|
de9c7e0bd2 | ||
|
|
9d2395215f | ||
|
|
757d3d8922 | ||
|
|
a0af363375 | ||
|
|
a76d21c518 | ||
|
|
b04b7f6033 | ||
|
|
a3f2125666 | ||
|
|
2a0fc860e2 | ||
|
|
4dea5b58b8 | ||
|
|
d6ea0cf35d | ||
|
|
f66ec181b6 | ||
|
|
db4cdcbeb0 | ||
|
|
80fbf35ea7 | ||
|
|
5c14e9a77f | ||
|
|
528d90a5e0 | ||
|
|
fb8137a8d3 | ||
|
|
e54c1961cb | ||
|
|
e7b81546c4 | ||
|
|
7f711be94a | ||
|
|
b5e667c1d7 | ||
|
|
2d9dc66719 | ||
|
|
97fa00faef | ||
|
|
630656ce24 | ||
|
|
f3b00eade0 | ||
|
|
02122aa7ea | ||
|
|
67d6a5f9d4 | ||
|
|
a15a171b2d | ||
|
|
9d980b6731 | ||
|
|
d6aeb545bc | ||
|
|
6217773578 | ||
|
|
cb2d0e9b5d | ||
|
|
2ee11b248a |
188
CHANGELOG
188
CHANGELOG
@@ -1,3 +1,191 @@
|
||||
2020-11-27 Version: patch
|
||||
- Add Certificate Manager Api.
|
||||
|
||||
2020-11-27 Version: patch
|
||||
- Support taskList.
|
||||
|
||||
2020-11-26 Version: patch
|
||||
- ContrastFaceVerify Support Video.
|
||||
|
||||
2020-11-26 Version: patch
|
||||
- Generated 2020-07-06, 2017-12-04 for `Actiontrail`.
|
||||
|
||||
2020-11-26 Version: patch
|
||||
- Generated 2020-07-06 for `Actiontrail`.
|
||||
|
||||
2020-11-26 Version: patch
|
||||
- Add tags api, include GetRepositoryTag, ListRepositoryTags, DeleteRepositoryTag.
|
||||
|
||||
2020-11-25 Version: patch
|
||||
- Update DescribeScdnDomainCertificateInfo.
|
||||
|
||||
2020-11-25 Version: patch
|
||||
- Update SetVideoSeekConfig.
|
||||
|
||||
2020-11-25 Version: patch
|
||||
- Support DescribeDBClusterVersion.
|
||||
|
||||
2020-11-25 Version: patch
|
||||
- Add extension field for image translation.
|
||||
|
||||
2020-11-25 Version: patch
|
||||
- Supported Primary NetworkInterface IP for API DescribeInstances.
|
||||
|
||||
2020-11-24 Version: patch
|
||||
- Create TSDB Open api.
|
||||
|
||||
2020-11-24 Version: patch
|
||||
- Create TSDB Open api.
|
||||
|
||||
2020-11-24 Version: patch
|
||||
- Create lindorm Open api.
|
||||
|
||||
2020-11-24 Version: patch
|
||||
- Create lindorm Open api.
|
||||
|
||||
2020-11-24 Version: patch
|
||||
- Update SearchFace.
|
||||
|
||||
2020-11-24 Version: patch
|
||||
- Generated 2020-01-01 for `ddoscoo`.
|
||||
|
||||
2020-11-23 Version: patch
|
||||
- Supported multiple Language.
|
||||
|
||||
2020-11-23 Version: patch
|
||||
- Add LivenessDetect API.
|
||||
|
||||
2020-11-22 Version: patch
|
||||
- DescribeClusterConnection.
|
||||
|
||||
2020-11-20 Version: patch
|
||||
- Support ListExecutions with filter functionality.
|
||||
|
||||
2020-11-20 Version: patch
|
||||
- Public beta version.
|
||||
- Add Api Overseas.
|
||||
|
||||
2020-11-20 Version: patch
|
||||
- Update DetectFace.
|
||||
- Update RecognizeFace.
|
||||
|
||||
2020-11-20 Version: patch
|
||||
- Add a new interface for asynchronous image translation.
|
||||
|
||||
2020-11-20 Version: patch
|
||||
- Generated 2019-09-10 for `waf-openapi`.
|
||||
|
||||
2020-11-19 Version: patch
|
||||
- Update DescribeDedicatedClusterInstanceList return data.
|
||||
|
||||
2020-11-19 Version: patch
|
||||
- Update data API.
|
||||
|
||||
2020-11-19 Version: patch
|
||||
- Update data API.
|
||||
|
||||
2020-11-19 Version: patch
|
||||
- Update GenerateHumanAnimeStyle.
|
||||
|
||||
2020-11-19 Version: patch
|
||||
- Update SegmentBody.
|
||||
|
||||
2020-11-19 Version: patch
|
||||
- Supported backend interface for ICBU.
|
||||
|
||||
2020-11-18 Version: patch
|
||||
- DescribeInstance support coldStorageSize.
|
||||
|
||||
2020-11-18 Version: patch
|
||||
- Update DescribeDedicatedClusterInstanceList InstanceStatus type.
|
||||
|
||||
2020-11-18 Version: patch
|
||||
- Generated 2018-01-11 for `rtc`.
|
||||
|
||||
2020-11-18 Version: patch
|
||||
- Supported webpage scan.
|
||||
|
||||
2020-11-17 Version: patch
|
||||
- Support event type in timeline of resource properties.
|
||||
- Support resourceOwnerId in evaluation result.
|
||||
- Support resource directory in config rule scene.
|
||||
- Fix terraform related bugs.
|
||||
|
||||
2020-11-17 Version: patch
|
||||
- Support ModifyDBClusterPrimaryZone.
|
||||
- Support DescribeGlobalDatabaseNetworks.
|
||||
|
||||
2020-11-17 Version: patch
|
||||
- Supported International-26888 Sites Region Endpoints.
|
||||
|
||||
2020-11-17 Version: patch
|
||||
- Supported International-26888 Sites Region Endpoints.
|
||||
|
||||
2020-11-16 Version: patch
|
||||
- Nat public IP supports the ISP attribute.
|
||||
|
||||
2020-11-16 Version: patch
|
||||
- Add a new interface for asynchronous image translation.
|
||||
|
||||
2020-11-16 Version: patch
|
||||
- Update videoenhan.
|
||||
|
||||
2020-11-16 Version: patch
|
||||
- Update videoseg.
|
||||
|
||||
2020-11-16 Version: patch
|
||||
- Update videorecog.
|
||||
|
||||
2020-11-16 Version: patch
|
||||
- Update objectdet.
|
||||
|
||||
2020-11-16 Version: patch
|
||||
- Update imgsearch.
|
||||
|
||||
2020-11-16 Version: patch
|
||||
- Update imagerecog.
|
||||
|
||||
2020-11-16 Version: patch
|
||||
- Update goodstech.
|
||||
|
||||
2020-11-13 Version: patch
|
||||
- Update Imageaudit.
|
||||
|
||||
2020-11-13 Version: patch
|
||||
- Add DeccribeEngineVersion DescribeTasks DescribeInstanceConfig and more APIs.
|
||||
|
||||
2020-11-13 Version: patch
|
||||
- Fix GetBranchInfo and DeleteBranch API 404 error.
|
||||
- Add ListRepositoryBranches and GetGroupDetail API.
|
||||
|
||||
2020-11-13 Version: patch
|
||||
- Release ErasePerson.
|
||||
|
||||
2020-11-13 Version: patch
|
||||
- Release DetectCardScreenshot RecognizePoiName.
|
||||
|
||||
2020-11-13 Version: patch
|
||||
- Release GenerateHumanAnimeStyle CountCrowd.
|
||||
|
||||
2020-11-13 Version: patch
|
||||
- Release SegmentHDSky SegmentHDCommonImage.
|
||||
|
||||
2020-11-12 Version: patch
|
||||
- Support drm.
|
||||
|
||||
2020-11-12 Version: patch
|
||||
- Generated 2019-06-01 for `smc`.
|
||||
|
||||
2020-11-12 Version: patch
|
||||
- Update new version.
|
||||
|
||||
2020-11-12 Version: patch
|
||||
- Support DescribeDBClusterTDE.
|
||||
- Support ModifyDBClusterTDE.
|
||||
|
||||
2020-11-12 Version: patch
|
||||
- Supported Open Api.
|
||||
|
||||
2020-11-12 Version: patch
|
||||
- Support OpenAPI.
|
||||
|
||||
|
||||
@@ -21,8 +21,12 @@ set(actiontrail_public_header
|
||||
include/alibabacloud/actiontrail/ActiontrailExport.h )
|
||||
|
||||
set(actiontrail_public_header_model
|
||||
include/alibabacloud/actiontrail/model/CreateDeliveryHistoryJobRequest.h
|
||||
include/alibabacloud/actiontrail/model/CreateDeliveryHistoryJobResult.h
|
||||
include/alibabacloud/actiontrail/model/CreateTrailRequest.h
|
||||
include/alibabacloud/actiontrail/model/CreateTrailResult.h
|
||||
include/alibabacloud/actiontrail/model/DeleteDeliveryHistoryJobRequest.h
|
||||
include/alibabacloud/actiontrail/model/DeleteDeliveryHistoryJobResult.h
|
||||
include/alibabacloud/actiontrail/model/DeleteTrailRequest.h
|
||||
include/alibabacloud/actiontrail/model/DeleteTrailResult.h
|
||||
include/alibabacloud/actiontrail/model/DescribeRegionsRequest.h
|
||||
@@ -31,6 +35,8 @@ set(actiontrail_public_header_model
|
||||
include/alibabacloud/actiontrail/model/DescribeTrailsResult.h
|
||||
include/alibabacloud/actiontrail/model/GetTrailStatusRequest.h
|
||||
include/alibabacloud/actiontrail/model/GetTrailStatusResult.h
|
||||
include/alibabacloud/actiontrail/model/ListDeliveryHistoryJobsRequest.h
|
||||
include/alibabacloud/actiontrail/model/ListDeliveryHistoryJobsResult.h
|
||||
include/alibabacloud/actiontrail/model/LookupEventsRequest.h
|
||||
include/alibabacloud/actiontrail/model/LookupEventsResult.h
|
||||
include/alibabacloud/actiontrail/model/StartLoggingRequest.h
|
||||
@@ -42,8 +48,12 @@ set(actiontrail_public_header_model
|
||||
|
||||
set(actiontrail_src
|
||||
src/ActiontrailClient.cc
|
||||
src/model/CreateDeliveryHistoryJobRequest.cc
|
||||
src/model/CreateDeliveryHistoryJobResult.cc
|
||||
src/model/CreateTrailRequest.cc
|
||||
src/model/CreateTrailResult.cc
|
||||
src/model/DeleteDeliveryHistoryJobRequest.cc
|
||||
src/model/DeleteDeliveryHistoryJobResult.cc
|
||||
src/model/DeleteTrailRequest.cc
|
||||
src/model/DeleteTrailResult.cc
|
||||
src/model/DescribeRegionsRequest.cc
|
||||
@@ -52,6 +62,8 @@ set(actiontrail_src
|
||||
src/model/DescribeTrailsResult.cc
|
||||
src/model/GetTrailStatusRequest.cc
|
||||
src/model/GetTrailStatusResult.cc
|
||||
src/model/ListDeliveryHistoryJobsRequest.cc
|
||||
src/model/ListDeliveryHistoryJobsResult.cc
|
||||
src/model/LookupEventsRequest.cc
|
||||
src/model/LookupEventsResult.cc
|
||||
src/model/StartLoggingRequest.cc
|
||||
|
||||
@@ -22,8 +22,12 @@
|
||||
#include <alibabacloud/core/EndpointProvider.h>
|
||||
#include <alibabacloud/core/RpcServiceClient.h>
|
||||
#include "ActiontrailExport.h"
|
||||
#include "model/CreateDeliveryHistoryJobRequest.h"
|
||||
#include "model/CreateDeliveryHistoryJobResult.h"
|
||||
#include "model/CreateTrailRequest.h"
|
||||
#include "model/CreateTrailResult.h"
|
||||
#include "model/DeleteDeliveryHistoryJobRequest.h"
|
||||
#include "model/DeleteDeliveryHistoryJobResult.h"
|
||||
#include "model/DeleteTrailRequest.h"
|
||||
#include "model/DeleteTrailResult.h"
|
||||
#include "model/DescribeRegionsRequest.h"
|
||||
@@ -32,6 +36,8 @@
|
||||
#include "model/DescribeTrailsResult.h"
|
||||
#include "model/GetTrailStatusRequest.h"
|
||||
#include "model/GetTrailStatusResult.h"
|
||||
#include "model/ListDeliveryHistoryJobsRequest.h"
|
||||
#include "model/ListDeliveryHistoryJobsResult.h"
|
||||
#include "model/LookupEventsRequest.h"
|
||||
#include "model/LookupEventsResult.h"
|
||||
#include "model/StartLoggingRequest.h"
|
||||
@@ -49,9 +55,15 @@ namespace AlibabaCloud
|
||||
class ALIBABACLOUD_ACTIONTRAIL_EXPORT ActiontrailClient : public RpcServiceClient
|
||||
{
|
||||
public:
|
||||
typedef Outcome<Error, Model::CreateDeliveryHistoryJobResult> CreateDeliveryHistoryJobOutcome;
|
||||
typedef std::future<CreateDeliveryHistoryJobOutcome> CreateDeliveryHistoryJobOutcomeCallable;
|
||||
typedef std::function<void(const ActiontrailClient*, const Model::CreateDeliveryHistoryJobRequest&, const CreateDeliveryHistoryJobOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> CreateDeliveryHistoryJobAsyncHandler;
|
||||
typedef Outcome<Error, Model::CreateTrailResult> CreateTrailOutcome;
|
||||
typedef std::future<CreateTrailOutcome> CreateTrailOutcomeCallable;
|
||||
typedef std::function<void(const ActiontrailClient*, const Model::CreateTrailRequest&, const CreateTrailOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> CreateTrailAsyncHandler;
|
||||
typedef Outcome<Error, Model::DeleteDeliveryHistoryJobResult> DeleteDeliveryHistoryJobOutcome;
|
||||
typedef std::future<DeleteDeliveryHistoryJobOutcome> DeleteDeliveryHistoryJobOutcomeCallable;
|
||||
typedef std::function<void(const ActiontrailClient*, const Model::DeleteDeliveryHistoryJobRequest&, const DeleteDeliveryHistoryJobOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DeleteDeliveryHistoryJobAsyncHandler;
|
||||
typedef Outcome<Error, Model::DeleteTrailResult> DeleteTrailOutcome;
|
||||
typedef std::future<DeleteTrailOutcome> DeleteTrailOutcomeCallable;
|
||||
typedef std::function<void(const ActiontrailClient*, const Model::DeleteTrailRequest&, const DeleteTrailOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DeleteTrailAsyncHandler;
|
||||
@@ -64,6 +76,9 @@ namespace AlibabaCloud
|
||||
typedef Outcome<Error, Model::GetTrailStatusResult> GetTrailStatusOutcome;
|
||||
typedef std::future<GetTrailStatusOutcome> GetTrailStatusOutcomeCallable;
|
||||
typedef std::function<void(const ActiontrailClient*, const Model::GetTrailStatusRequest&, const GetTrailStatusOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetTrailStatusAsyncHandler;
|
||||
typedef Outcome<Error, Model::ListDeliveryHistoryJobsResult> ListDeliveryHistoryJobsOutcome;
|
||||
typedef std::future<ListDeliveryHistoryJobsOutcome> ListDeliveryHistoryJobsOutcomeCallable;
|
||||
typedef std::function<void(const ActiontrailClient*, const Model::ListDeliveryHistoryJobsRequest&, const ListDeliveryHistoryJobsOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ListDeliveryHistoryJobsAsyncHandler;
|
||||
typedef Outcome<Error, Model::LookupEventsResult> LookupEventsOutcome;
|
||||
typedef std::future<LookupEventsOutcome> LookupEventsOutcomeCallable;
|
||||
typedef std::function<void(const ActiontrailClient*, const Model::LookupEventsRequest&, const LookupEventsOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> LookupEventsAsyncHandler;
|
||||
@@ -81,9 +96,15 @@ namespace AlibabaCloud
|
||||
ActiontrailClient(const std::shared_ptr<CredentialsProvider> &credentialsProvider, const ClientConfiguration &configuration);
|
||||
ActiontrailClient(const std::string &accessKeyId, const std::string &accessKeySecret, const ClientConfiguration &configuration);
|
||||
~ActiontrailClient();
|
||||
CreateDeliveryHistoryJobOutcome createDeliveryHistoryJob(const Model::CreateDeliveryHistoryJobRequest &request)const;
|
||||
void createDeliveryHistoryJobAsync(const Model::CreateDeliveryHistoryJobRequest& request, const CreateDeliveryHistoryJobAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
CreateDeliveryHistoryJobOutcomeCallable createDeliveryHistoryJobCallable(const Model::CreateDeliveryHistoryJobRequest& request) const;
|
||||
CreateTrailOutcome createTrail(const Model::CreateTrailRequest &request)const;
|
||||
void createTrailAsync(const Model::CreateTrailRequest& request, const CreateTrailAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
CreateTrailOutcomeCallable createTrailCallable(const Model::CreateTrailRequest& request) const;
|
||||
DeleteDeliveryHistoryJobOutcome deleteDeliveryHistoryJob(const Model::DeleteDeliveryHistoryJobRequest &request)const;
|
||||
void deleteDeliveryHistoryJobAsync(const Model::DeleteDeliveryHistoryJobRequest& request, const DeleteDeliveryHistoryJobAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DeleteDeliveryHistoryJobOutcomeCallable deleteDeliveryHistoryJobCallable(const Model::DeleteDeliveryHistoryJobRequest& request) const;
|
||||
DeleteTrailOutcome deleteTrail(const Model::DeleteTrailRequest &request)const;
|
||||
void deleteTrailAsync(const Model::DeleteTrailRequest& request, const DeleteTrailAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DeleteTrailOutcomeCallable deleteTrailCallable(const Model::DeleteTrailRequest& request) const;
|
||||
@@ -96,6 +117,9 @@ namespace AlibabaCloud
|
||||
GetTrailStatusOutcome getTrailStatus(const Model::GetTrailStatusRequest &request)const;
|
||||
void getTrailStatusAsync(const Model::GetTrailStatusRequest& request, const GetTrailStatusAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
GetTrailStatusOutcomeCallable getTrailStatusCallable(const Model::GetTrailStatusRequest& request) const;
|
||||
ListDeliveryHistoryJobsOutcome listDeliveryHistoryJobs(const Model::ListDeliveryHistoryJobsRequest &request)const;
|
||||
void listDeliveryHistoryJobsAsync(const Model::ListDeliveryHistoryJobsRequest& request, const ListDeliveryHistoryJobsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
ListDeliveryHistoryJobsOutcomeCallable listDeliveryHistoryJobsCallable(const Model::ListDeliveryHistoryJobsRequest& request) const;
|
||||
LookupEventsOutcome lookupEvents(const Model::LookupEventsRequest &request)const;
|
||||
void lookupEventsAsync(const Model::LookupEventsRequest& request, const LookupEventsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
LookupEventsOutcomeCallable lookupEventsCallable(const Model::LookupEventsRequest& request) const;
|
||||
|
||||
@@ -14,44 +14,38 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_RTC_MODEL_ENABLEMAURULEREQUEST_H_
|
||||
#define ALIBABACLOUD_RTC_MODEL_ENABLEMAURULEREQUEST_H_
|
||||
#ifndef ALIBABACLOUD_ACTIONTRAIL_MODEL_CREATEDELIVERYHISTORYJOBREQUEST_H_
|
||||
#define ALIBABACLOUD_ACTIONTRAIL_MODEL_CREATEDELIVERYHISTORYJOBREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/rtc/RtcExport.h>
|
||||
#include <alibabacloud/actiontrail/ActiontrailExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Rtc
|
||||
namespace Actiontrail
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_RTC_EXPORT EnableMAURuleRequest : public RpcServiceRequest
|
||||
class ALIBABACLOUD_ACTIONTRAIL_EXPORT CreateDeliveryHistoryJobRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
EnableMAURuleRequest();
|
||||
~EnableMAURuleRequest();
|
||||
CreateDeliveryHistoryJobRequest();
|
||||
~CreateDeliveryHistoryJobRequest();
|
||||
|
||||
std::string getShowLog()const;
|
||||
void setShowLog(const std::string& showLog);
|
||||
long getOwnerId()const;
|
||||
void setOwnerId(long ownerId);
|
||||
std::string getAppId()const;
|
||||
void setAppId(const std::string& appId);
|
||||
long getRuleId()const;
|
||||
void setRuleId(long ruleId);
|
||||
std::string getClientToken()const;
|
||||
void setClientToken(const std::string& clientToken);
|
||||
std::string getTrailName()const;
|
||||
void setTrailName(const std::string& trailName);
|
||||
|
||||
private:
|
||||
std::string showLog_;
|
||||
long ownerId_;
|
||||
std::string appId_;
|
||||
long ruleId_;
|
||||
std::string clientToken_;
|
||||
std::string trailName_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_RTC_MODEL_ENABLEMAURULEREQUEST_H_
|
||||
#endif // !ALIBABACLOUD_ACTIONTRAIL_MODEL_CREATEDELIVERYHISTORYJOBREQUEST_H_
|
||||
@@ -0,0 +1,51 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_ACTIONTRAIL_MODEL_CREATEDELIVERYHISTORYJOBRESULT_H_
|
||||
#define ALIBABACLOUD_ACTIONTRAIL_MODEL_CREATEDELIVERYHISTORYJOBRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/actiontrail/ActiontrailExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Actiontrail
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_ACTIONTRAIL_EXPORT CreateDeliveryHistoryJobResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
|
||||
|
||||
CreateDeliveryHistoryJobResult();
|
||||
explicit CreateDeliveryHistoryJobResult(const std::string &payload);
|
||||
~CreateDeliveryHistoryJobResult();
|
||||
int getJobId()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
int jobId_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_ACTIONTRAIL_MODEL_CREATEDELIVERYHISTORYJOBRESULT_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_ACTIONTRAIL_MODEL_DELETEDELIVERYHISTORYJOBREQUEST_H_
|
||||
#define ALIBABACLOUD_ACTIONTRAIL_MODEL_DELETEDELIVERYHISTORYJOBREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/actiontrail/ActiontrailExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Actiontrail
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_ACTIONTRAIL_EXPORT DeleteDeliveryHistoryJobRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
DeleteDeliveryHistoryJobRequest();
|
||||
~DeleteDeliveryHistoryJobRequest();
|
||||
|
||||
int getJobId()const;
|
||||
void setJobId(int jobId);
|
||||
|
||||
private:
|
||||
int jobId_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_ACTIONTRAIL_MODEL_DELETEDELIVERYHISTORYJOBREQUEST_H_
|
||||
@@ -0,0 +1,49 @@
|
||||
/*
|
||||
* 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_ACTIONTRAIL_MODEL_DELETEDELIVERYHISTORYJOBRESULT_H_
|
||||
#define ALIBABACLOUD_ACTIONTRAIL_MODEL_DELETEDELIVERYHISTORYJOBRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/actiontrail/ActiontrailExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Actiontrail
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_ACTIONTRAIL_EXPORT DeleteDeliveryHistoryJobResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
|
||||
|
||||
DeleteDeliveryHistoryJobResult();
|
||||
explicit DeleteDeliveryHistoryJobResult(const std::string &payload);
|
||||
~DeleteDeliveryHistoryJobResult();
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_ACTIONTRAIL_MODEL_DELETEDELIVERYHISTORYJOBRESULT_H_
|
||||
@@ -0,0 +1,51 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_ACTIONTRAIL_MODEL_LISTDELIVERYHISTORYJOBSREQUEST_H_
|
||||
#define ALIBABACLOUD_ACTIONTRAIL_MODEL_LISTDELIVERYHISTORYJOBSREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/actiontrail/ActiontrailExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Actiontrail
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_ACTIONTRAIL_EXPORT ListDeliveryHistoryJobsRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
ListDeliveryHistoryJobsRequest();
|
||||
~ListDeliveryHistoryJobsRequest();
|
||||
|
||||
int getPageNumber()const;
|
||||
void setPageNumber(int pageNumber);
|
||||
int getPageSize()const;
|
||||
void setPageSize(int pageSize);
|
||||
|
||||
private:
|
||||
int pageNumber_;
|
||||
int pageSize_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_ACTIONTRAIL_MODEL_LISTDELIVERYHISTORYJOBSREQUEST_H_
|
||||
@@ -0,0 +1,68 @@
|
||||
/*
|
||||
* 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_ACTIONTRAIL_MODEL_LISTDELIVERYHISTORYJOBSRESULT_H_
|
||||
#define ALIBABACLOUD_ACTIONTRAIL_MODEL_LISTDELIVERYHISTORYJOBSRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/actiontrail/ActiontrailExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Actiontrail
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_ACTIONTRAIL_EXPORT ListDeliveryHistoryJobsResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct DeliveryHistoryJob
|
||||
{
|
||||
int jobStatus;
|
||||
std::string createdTime;
|
||||
std::string endTime;
|
||||
std::string homeRegion;
|
||||
std::string startTime;
|
||||
std::string trailName;
|
||||
std::string updatedTime;
|
||||
long jobId;
|
||||
};
|
||||
|
||||
|
||||
ListDeliveryHistoryJobsResult();
|
||||
explicit ListDeliveryHistoryJobsResult(const std::string &payload);
|
||||
~ListDeliveryHistoryJobsResult();
|
||||
int getTotalCount()const;
|
||||
int getPageSize()const;
|
||||
int getPageNumber()const;
|
||||
std::vector<DeliveryHistoryJob> getDeliveryHistoryJobs()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
int totalCount_;
|
||||
int pageSize_;
|
||||
int pageNumber_;
|
||||
std::vector<DeliveryHistoryJob> deliveryHistoryJobs_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_ACTIONTRAIL_MODEL_LISTDELIVERYHISTORYJOBSRESULT_H_
|
||||
@@ -51,6 +51,42 @@ ActiontrailClient::ActiontrailClient(const std::string & accessKeyId, const std:
|
||||
ActiontrailClient::~ActiontrailClient()
|
||||
{}
|
||||
|
||||
ActiontrailClient::CreateDeliveryHistoryJobOutcome ActiontrailClient::createDeliveryHistoryJob(const CreateDeliveryHistoryJobRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return CreateDeliveryHistoryJobOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return CreateDeliveryHistoryJobOutcome(CreateDeliveryHistoryJobResult(outcome.result()));
|
||||
else
|
||||
return CreateDeliveryHistoryJobOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void ActiontrailClient::createDeliveryHistoryJobAsync(const CreateDeliveryHistoryJobRequest& request, const CreateDeliveryHistoryJobAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, createDeliveryHistoryJob(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
ActiontrailClient::CreateDeliveryHistoryJobOutcomeCallable ActiontrailClient::createDeliveryHistoryJobCallable(const CreateDeliveryHistoryJobRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<CreateDeliveryHistoryJobOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->createDeliveryHistoryJob(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
ActiontrailClient::CreateTrailOutcome ActiontrailClient::createTrail(const CreateTrailRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -87,6 +123,42 @@ ActiontrailClient::CreateTrailOutcomeCallable ActiontrailClient::createTrailCall
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
ActiontrailClient::DeleteDeliveryHistoryJobOutcome ActiontrailClient::deleteDeliveryHistoryJob(const DeleteDeliveryHistoryJobRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return DeleteDeliveryHistoryJobOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return DeleteDeliveryHistoryJobOutcome(DeleteDeliveryHistoryJobResult(outcome.result()));
|
||||
else
|
||||
return DeleteDeliveryHistoryJobOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void ActiontrailClient::deleteDeliveryHistoryJobAsync(const DeleteDeliveryHistoryJobRequest& request, const DeleteDeliveryHistoryJobAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, deleteDeliveryHistoryJob(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
ActiontrailClient::DeleteDeliveryHistoryJobOutcomeCallable ActiontrailClient::deleteDeliveryHistoryJobCallable(const DeleteDeliveryHistoryJobRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<DeleteDeliveryHistoryJobOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->deleteDeliveryHistoryJob(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
ActiontrailClient::DeleteTrailOutcome ActiontrailClient::deleteTrail(const DeleteTrailRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -231,6 +303,42 @@ ActiontrailClient::GetTrailStatusOutcomeCallable ActiontrailClient::getTrailStat
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
ActiontrailClient::ListDeliveryHistoryJobsOutcome ActiontrailClient::listDeliveryHistoryJobs(const ListDeliveryHistoryJobsRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return ListDeliveryHistoryJobsOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return ListDeliveryHistoryJobsOutcome(ListDeliveryHistoryJobsResult(outcome.result()));
|
||||
else
|
||||
return ListDeliveryHistoryJobsOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void ActiontrailClient::listDeliveryHistoryJobsAsync(const ListDeliveryHistoryJobsRequest& request, const ListDeliveryHistoryJobsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, listDeliveryHistoryJobs(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
ActiontrailClient::ListDeliveryHistoryJobsOutcomeCallable ActiontrailClient::listDeliveryHistoryJobsCallable(const ListDeliveryHistoryJobsRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<ListDeliveryHistoryJobsOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->listDeliveryHistoryJobs(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
ActiontrailClient::LookupEventsOutcome ActiontrailClient::lookupEvents(const LookupEventsRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
|
||||
51
actiontrail/src/model/CreateDeliveryHistoryJobRequest.cc
Normal file
51
actiontrail/src/model/CreateDeliveryHistoryJobRequest.cc
Normal file
@@ -0,0 +1,51 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/actiontrail/model/CreateDeliveryHistoryJobRequest.h>
|
||||
|
||||
using AlibabaCloud::Actiontrail::Model::CreateDeliveryHistoryJobRequest;
|
||||
|
||||
CreateDeliveryHistoryJobRequest::CreateDeliveryHistoryJobRequest() :
|
||||
RpcServiceRequest("actiontrail", "2020-07-06", "CreateDeliveryHistoryJob")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
CreateDeliveryHistoryJobRequest::~CreateDeliveryHistoryJobRequest()
|
||||
{}
|
||||
|
||||
std::string CreateDeliveryHistoryJobRequest::getClientToken()const
|
||||
{
|
||||
return clientToken_;
|
||||
}
|
||||
|
||||
void CreateDeliveryHistoryJobRequest::setClientToken(const std::string& clientToken)
|
||||
{
|
||||
clientToken_ = clientToken;
|
||||
setParameter("ClientToken", clientToken);
|
||||
}
|
||||
|
||||
std::string CreateDeliveryHistoryJobRequest::getTrailName()const
|
||||
{
|
||||
return trailName_;
|
||||
}
|
||||
|
||||
void CreateDeliveryHistoryJobRequest::setTrailName(const std::string& trailName)
|
||||
{
|
||||
trailName_ = trailName;
|
||||
setParameter("TrailName", trailName);
|
||||
}
|
||||
|
||||
51
actiontrail/src/model/CreateDeliveryHistoryJobResult.cc
Normal file
51
actiontrail/src/model/CreateDeliveryHistoryJobResult.cc
Normal file
@@ -0,0 +1,51 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/actiontrail/model/CreateDeliveryHistoryJobResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Actiontrail;
|
||||
using namespace AlibabaCloud::Actiontrail::Model;
|
||||
|
||||
CreateDeliveryHistoryJobResult::CreateDeliveryHistoryJobResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
CreateDeliveryHistoryJobResult::CreateDeliveryHistoryJobResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
CreateDeliveryHistoryJobResult::~CreateDeliveryHistoryJobResult()
|
||||
{}
|
||||
|
||||
void CreateDeliveryHistoryJobResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["JobId"].isNull())
|
||||
jobId_ = std::stoi(value["JobId"].asString());
|
||||
|
||||
}
|
||||
|
||||
int CreateDeliveryHistoryJobResult::getJobId()const
|
||||
{
|
||||
return jobId_;
|
||||
}
|
||||
|
||||
40
actiontrail/src/model/DeleteDeliveryHistoryJobRequest.cc
Normal file
40
actiontrail/src/model/DeleteDeliveryHistoryJobRequest.cc
Normal file
@@ -0,0 +1,40 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/actiontrail/model/DeleteDeliveryHistoryJobRequest.h>
|
||||
|
||||
using AlibabaCloud::Actiontrail::Model::DeleteDeliveryHistoryJobRequest;
|
||||
|
||||
DeleteDeliveryHistoryJobRequest::DeleteDeliveryHistoryJobRequest() :
|
||||
RpcServiceRequest("actiontrail", "2020-07-06", "DeleteDeliveryHistoryJob")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DeleteDeliveryHistoryJobRequest::~DeleteDeliveryHistoryJobRequest()
|
||||
{}
|
||||
|
||||
int DeleteDeliveryHistoryJobRequest::getJobId()const
|
||||
{
|
||||
return jobId_;
|
||||
}
|
||||
|
||||
void DeleteDeliveryHistoryJobRequest::setJobId(int jobId)
|
||||
{
|
||||
jobId_ = jobId;
|
||||
setParameter("JobId", std::to_string(jobId));
|
||||
}
|
||||
|
||||
44
actiontrail/src/model/DeleteDeliveryHistoryJobResult.cc
Normal file
44
actiontrail/src/model/DeleteDeliveryHistoryJobResult.cc
Normal file
@@ -0,0 +1,44 @@
|
||||
/*
|
||||
* 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/actiontrail/model/DeleteDeliveryHistoryJobResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Actiontrail;
|
||||
using namespace AlibabaCloud::Actiontrail::Model;
|
||||
|
||||
DeleteDeliveryHistoryJobResult::DeleteDeliveryHistoryJobResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DeleteDeliveryHistoryJobResult::DeleteDeliveryHistoryJobResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DeleteDeliveryHistoryJobResult::~DeleteDeliveryHistoryJobResult()
|
||||
{}
|
||||
|
||||
void DeleteDeliveryHistoryJobResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
|
||||
}
|
||||
|
||||
51
actiontrail/src/model/ListDeliveryHistoryJobsRequest.cc
Normal file
51
actiontrail/src/model/ListDeliveryHistoryJobsRequest.cc
Normal file
@@ -0,0 +1,51 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/actiontrail/model/ListDeliveryHistoryJobsRequest.h>
|
||||
|
||||
using AlibabaCloud::Actiontrail::Model::ListDeliveryHistoryJobsRequest;
|
||||
|
||||
ListDeliveryHistoryJobsRequest::ListDeliveryHistoryJobsRequest() :
|
||||
RpcServiceRequest("actiontrail", "2020-07-06", "ListDeliveryHistoryJobs")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
ListDeliveryHistoryJobsRequest::~ListDeliveryHistoryJobsRequest()
|
||||
{}
|
||||
|
||||
int ListDeliveryHistoryJobsRequest::getPageNumber()const
|
||||
{
|
||||
return pageNumber_;
|
||||
}
|
||||
|
||||
void ListDeliveryHistoryJobsRequest::setPageNumber(int pageNumber)
|
||||
{
|
||||
pageNumber_ = pageNumber;
|
||||
setParameter("PageNumber", std::to_string(pageNumber));
|
||||
}
|
||||
|
||||
int ListDeliveryHistoryJobsRequest::getPageSize()const
|
||||
{
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
void ListDeliveryHistoryJobsRequest::setPageSize(int pageSize)
|
||||
{
|
||||
pageSize_ = pageSize;
|
||||
setParameter("PageSize", std::to_string(pageSize));
|
||||
}
|
||||
|
||||
92
actiontrail/src/model/ListDeliveryHistoryJobsResult.cc
Normal file
92
actiontrail/src/model/ListDeliveryHistoryJobsResult.cc
Normal file
@@ -0,0 +1,92 @@
|
||||
/*
|
||||
* 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/actiontrail/model/ListDeliveryHistoryJobsResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Actiontrail;
|
||||
using namespace AlibabaCloud::Actiontrail::Model;
|
||||
|
||||
ListDeliveryHistoryJobsResult::ListDeliveryHistoryJobsResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
ListDeliveryHistoryJobsResult::ListDeliveryHistoryJobsResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
ListDeliveryHistoryJobsResult::~ListDeliveryHistoryJobsResult()
|
||||
{}
|
||||
|
||||
void ListDeliveryHistoryJobsResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allDeliveryHistoryJobsNode = value["DeliveryHistoryJobs"]["DeliveryHistoryJob"];
|
||||
for (auto valueDeliveryHistoryJobsDeliveryHistoryJob : allDeliveryHistoryJobsNode)
|
||||
{
|
||||
DeliveryHistoryJob deliveryHistoryJobsObject;
|
||||
if(!valueDeliveryHistoryJobsDeliveryHistoryJob["TrailName"].isNull())
|
||||
deliveryHistoryJobsObject.trailName = valueDeliveryHistoryJobsDeliveryHistoryJob["TrailName"].asString();
|
||||
if(!valueDeliveryHistoryJobsDeliveryHistoryJob["CreatedTime"].isNull())
|
||||
deliveryHistoryJobsObject.createdTime = valueDeliveryHistoryJobsDeliveryHistoryJob["CreatedTime"].asString();
|
||||
if(!valueDeliveryHistoryJobsDeliveryHistoryJob["UpdatedTime"].isNull())
|
||||
deliveryHistoryJobsObject.updatedTime = valueDeliveryHistoryJobsDeliveryHistoryJob["UpdatedTime"].asString();
|
||||
if(!valueDeliveryHistoryJobsDeliveryHistoryJob["HomeRegion"].isNull())
|
||||
deliveryHistoryJobsObject.homeRegion = valueDeliveryHistoryJobsDeliveryHistoryJob["HomeRegion"].asString();
|
||||
if(!valueDeliveryHistoryJobsDeliveryHistoryJob["StartTime"].isNull())
|
||||
deliveryHistoryJobsObject.startTime = valueDeliveryHistoryJobsDeliveryHistoryJob["StartTime"].asString();
|
||||
if(!valueDeliveryHistoryJobsDeliveryHistoryJob["EndTime"].isNull())
|
||||
deliveryHistoryJobsObject.endTime = valueDeliveryHistoryJobsDeliveryHistoryJob["EndTime"].asString();
|
||||
if(!valueDeliveryHistoryJobsDeliveryHistoryJob["JobId"].isNull())
|
||||
deliveryHistoryJobsObject.jobId = std::stol(valueDeliveryHistoryJobsDeliveryHistoryJob["JobId"].asString());
|
||||
if(!valueDeliveryHistoryJobsDeliveryHistoryJob["JobStatus"].isNull())
|
||||
deliveryHistoryJobsObject.jobStatus = std::stoi(valueDeliveryHistoryJobsDeliveryHistoryJob["JobStatus"].asString());
|
||||
deliveryHistoryJobs_.push_back(deliveryHistoryJobsObject);
|
||||
}
|
||||
if(!value["TotalCount"].isNull())
|
||||
totalCount_ = std::stoi(value["TotalCount"].asString());
|
||||
if(!value["PageNumber"].isNull())
|
||||
pageNumber_ = std::stoi(value["PageNumber"].asString());
|
||||
if(!value["PageSize"].isNull())
|
||||
pageSize_ = std::stoi(value["PageSize"].asString());
|
||||
|
||||
}
|
||||
|
||||
int ListDeliveryHistoryJobsResult::getTotalCount()const
|
||||
{
|
||||
return totalCount_;
|
||||
}
|
||||
|
||||
int ListDeliveryHistoryJobsResult::getPageSize()const
|
||||
{
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
int ListDeliveryHistoryJobsResult::getPageNumber()const
|
||||
{
|
||||
return pageNumber_;
|
||||
}
|
||||
|
||||
std::vector<ListDeliveryHistoryJobsResult::DeliveryHistoryJob> ListDeliveryHistoryJobsResult::getDeliveryHistoryJobs()const
|
||||
{
|
||||
return deliveryHistoryJobs_;
|
||||
}
|
||||
|
||||
@@ -41,6 +41,8 @@ set(alimt_public_header_model
|
||||
include/alibabacloud/alimt/model/GetTitleGenerateResult.h
|
||||
include/alibabacloud/alimt/model/GetTitleIntelligenceRequest.h
|
||||
include/alibabacloud/alimt/model/GetTitleIntelligenceResult.h
|
||||
include/alibabacloud/alimt/model/OpenAlimtServiceRequest.h
|
||||
include/alibabacloud/alimt/model/OpenAlimtServiceResult.h
|
||||
include/alibabacloud/alimt/model/TranslateRequest.h
|
||||
include/alibabacloud/alimt/model/TranslateResult.h
|
||||
include/alibabacloud/alimt/model/TranslateCertificateRequest.h
|
||||
@@ -72,6 +74,8 @@ set(alimt_src
|
||||
src/model/GetTitleGenerateResult.cc
|
||||
src/model/GetTitleIntelligenceRequest.cc
|
||||
src/model/GetTitleIntelligenceResult.cc
|
||||
src/model/OpenAlimtServiceRequest.cc
|
||||
src/model/OpenAlimtServiceResult.cc
|
||||
src/model/TranslateRequest.cc
|
||||
src/model/TranslateResult.cc
|
||||
src/model/TranslateCertificateRequest.cc
|
||||
|
||||
@@ -42,6 +42,8 @@
|
||||
#include "model/GetTitleGenerateResult.h"
|
||||
#include "model/GetTitleIntelligenceRequest.h"
|
||||
#include "model/GetTitleIntelligenceResult.h"
|
||||
#include "model/OpenAlimtServiceRequest.h"
|
||||
#include "model/OpenAlimtServiceResult.h"
|
||||
#include "model/TranslateRequest.h"
|
||||
#include "model/TranslateResult.h"
|
||||
#include "model/TranslateCertificateRequest.h"
|
||||
@@ -89,6 +91,9 @@ namespace AlibabaCloud
|
||||
typedef Outcome<Error, Model::GetTitleIntelligenceResult> GetTitleIntelligenceOutcome;
|
||||
typedef std::future<GetTitleIntelligenceOutcome> GetTitleIntelligenceOutcomeCallable;
|
||||
typedef std::function<void(const AlimtClient*, const Model::GetTitleIntelligenceRequest&, const GetTitleIntelligenceOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetTitleIntelligenceAsyncHandler;
|
||||
typedef Outcome<Error, Model::OpenAlimtServiceResult> OpenAlimtServiceOutcome;
|
||||
typedef std::future<OpenAlimtServiceOutcome> OpenAlimtServiceOutcomeCallable;
|
||||
typedef std::function<void(const AlimtClient*, const Model::OpenAlimtServiceRequest&, const OpenAlimtServiceOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> OpenAlimtServiceAsyncHandler;
|
||||
typedef Outcome<Error, Model::TranslateResult> TranslateOutcome;
|
||||
typedef std::future<TranslateOutcome> TranslateOutcomeCallable;
|
||||
typedef std::function<void(const AlimtClient*, const Model::TranslateRequest&, const TranslateOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> TranslateAsyncHandler;
|
||||
@@ -136,6 +141,9 @@ namespace AlibabaCloud
|
||||
GetTitleIntelligenceOutcome getTitleIntelligence(const Model::GetTitleIntelligenceRequest &request)const;
|
||||
void getTitleIntelligenceAsync(const Model::GetTitleIntelligenceRequest& request, const GetTitleIntelligenceAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
GetTitleIntelligenceOutcomeCallable getTitleIntelligenceCallable(const Model::GetTitleIntelligenceRequest& request) const;
|
||||
OpenAlimtServiceOutcome openAlimtService(const Model::OpenAlimtServiceRequest &request)const;
|
||||
void openAlimtServiceAsync(const Model::OpenAlimtServiceRequest& request, const OpenAlimtServiceAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
OpenAlimtServiceOutcomeCallable openAlimtServiceCallable(const Model::OpenAlimtServiceRequest& request) const;
|
||||
TranslateOutcome translate(const Model::TranslateRequest &request)const;
|
||||
void translateAsync(const Model::TranslateRequest& request, const TranslateAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
TranslateOutcomeCallable translateCallable(const Model::TranslateRequest& request) const;
|
||||
|
||||
@@ -35,6 +35,7 @@ namespace AlibabaCloud
|
||||
struct Data
|
||||
{
|
||||
std::string orc;
|
||||
std::string pictureEditor;
|
||||
std::string url;
|
||||
};
|
||||
|
||||
|
||||
@@ -14,41 +14,38 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_RTC_MODEL_DESCRIBEMAURULEREQUEST_H_
|
||||
#define ALIBABACLOUD_RTC_MODEL_DESCRIBEMAURULEREQUEST_H_
|
||||
#ifndef ALIBABACLOUD_ALIMT_MODEL_OPENALIMTSERVICEREQUEST_H_
|
||||
#define ALIBABACLOUD_ALIMT_MODEL_OPENALIMTSERVICEREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/rtc/RtcExport.h>
|
||||
#include <alibabacloud/alimt/AlimtExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Rtc
|
||||
namespace Alimt
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_RTC_EXPORT DescribeMAURuleRequest : public RpcServiceRequest
|
||||
class ALIBABACLOUD_ALIMT_EXPORT OpenAlimtServiceRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
DescribeMAURuleRequest();
|
||||
~DescribeMAURuleRequest();
|
||||
OpenAlimtServiceRequest();
|
||||
~OpenAlimtServiceRequest();
|
||||
|
||||
std::string getShowLog()const;
|
||||
void setShowLog(const std::string& showLog);
|
||||
long getOwnerId()const;
|
||||
void setOwnerId(long ownerId);
|
||||
std::string getAppId()const;
|
||||
void setAppId(const std::string& appId);
|
||||
std::string getType()const;
|
||||
void setType(const std::string& type);
|
||||
|
||||
private:
|
||||
std::string showLog_;
|
||||
long ownerId_;
|
||||
std::string appId_;
|
||||
std::string type_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_RTC_MODEL_DESCRIBEMAURULEREQUEST_H_
|
||||
#endif // !ALIBABACLOUD_ALIMT_MODEL_OPENALIMTSERVICEREQUEST_H_
|
||||
@@ -0,0 +1,51 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_ALIMT_MODEL_OPENALIMTSERVICERESULT_H_
|
||||
#define ALIBABACLOUD_ALIMT_MODEL_OPENALIMTSERVICERESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/alimt/AlimtExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Alimt
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_ALIMT_EXPORT OpenAlimtServiceResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
|
||||
|
||||
OpenAlimtServiceResult();
|
||||
explicit OpenAlimtServiceResult(const std::string &payload);
|
||||
~OpenAlimtServiceResult();
|
||||
std::string getOrderId()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::string orderId_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_ALIMT_MODEL_OPENALIMTSERVICERESULT_H_
|
||||
@@ -411,6 +411,42 @@ AlimtClient::GetTitleIntelligenceOutcomeCallable AlimtClient::getTitleIntelligen
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
AlimtClient::OpenAlimtServiceOutcome AlimtClient::openAlimtService(const OpenAlimtServiceRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return OpenAlimtServiceOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return OpenAlimtServiceOutcome(OpenAlimtServiceResult(outcome.result()));
|
||||
else
|
||||
return OpenAlimtServiceOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void AlimtClient::openAlimtServiceAsync(const OpenAlimtServiceRequest& request, const OpenAlimtServiceAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, openAlimtService(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
AlimtClient::OpenAlimtServiceOutcomeCallable AlimtClient::openAlimtServiceCallable(const OpenAlimtServiceRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<OpenAlimtServiceOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->openAlimtService(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
AlimtClient::TranslateOutcome AlimtClient::translate(const TranslateRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
|
||||
@@ -44,6 +44,8 @@ void GetImageTranslateResult::parse(const std::string &payload)
|
||||
data_.url = dataNode["Url"].asString();
|
||||
if(!dataNode["Orc"].isNull())
|
||||
data_.orc = dataNode["Orc"].asString();
|
||||
if(!dataNode["PictureEditor"].isNull())
|
||||
data_.pictureEditor = dataNode["PictureEditor"].asString();
|
||||
if(!value["Code"].isNull())
|
||||
code_ = std::stoi(value["Code"].asString());
|
||||
if(!value["Message"].isNull())
|
||||
|
||||
51
alimt/src/model/OpenAlimtServiceRequest.cc
Normal file
51
alimt/src/model/OpenAlimtServiceRequest.cc
Normal file
@@ -0,0 +1,51 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/alimt/model/OpenAlimtServiceRequest.h>
|
||||
|
||||
using AlibabaCloud::Alimt::Model::OpenAlimtServiceRequest;
|
||||
|
||||
OpenAlimtServiceRequest::OpenAlimtServiceRequest() :
|
||||
RpcServiceRequest("alimt", "2018-10-12", "OpenAlimtService")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
OpenAlimtServiceRequest::~OpenAlimtServiceRequest()
|
||||
{}
|
||||
|
||||
long OpenAlimtServiceRequest::getOwnerId()const
|
||||
{
|
||||
return ownerId_;
|
||||
}
|
||||
|
||||
void OpenAlimtServiceRequest::setOwnerId(long ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
std::string OpenAlimtServiceRequest::getType()const
|
||||
{
|
||||
return type_;
|
||||
}
|
||||
|
||||
void OpenAlimtServiceRequest::setType(const std::string& type)
|
||||
{
|
||||
type_ = type;
|
||||
setParameter("Type", type);
|
||||
}
|
||||
|
||||
@@ -14,38 +14,38 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/rtc/model/CreateMAURuleResult.h>
|
||||
#include <alibabacloud/alimt/model/OpenAlimtServiceResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Rtc;
|
||||
using namespace AlibabaCloud::Rtc::Model;
|
||||
using namespace AlibabaCloud::Alimt;
|
||||
using namespace AlibabaCloud::Alimt::Model;
|
||||
|
||||
CreateMAURuleResult::CreateMAURuleResult() :
|
||||
OpenAlimtServiceResult::OpenAlimtServiceResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
CreateMAURuleResult::CreateMAURuleResult(const std::string &payload) :
|
||||
OpenAlimtServiceResult::OpenAlimtServiceResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
CreateMAURuleResult::~CreateMAURuleResult()
|
||||
OpenAlimtServiceResult::~OpenAlimtServiceResult()
|
||||
{}
|
||||
|
||||
void CreateMAURuleResult::parse(const std::string &payload)
|
||||
void OpenAlimtServiceResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["RuleId"].isNull())
|
||||
ruleId_ = std::stol(value["RuleId"].asString());
|
||||
if(!value["OrderId"].isNull())
|
||||
orderId_ = value["OrderId"].asString();
|
||||
|
||||
}
|
||||
|
||||
long CreateMAURuleResult::getRuleId()const
|
||||
std::string OpenAlimtServiceResult::getOrderId()const
|
||||
{
|
||||
return ruleId_;
|
||||
return orderId_;
|
||||
}
|
||||
|
||||
@@ -37,8 +37,6 @@ namespace AlibabaCloud
|
||||
|
||||
std::string getStartTime()const;
|
||||
void setStartTime(const std::string& startTime);
|
||||
std::string getSecurityToken()const;
|
||||
void setSecurityToken(const std::string& securityToken);
|
||||
std::string getDomainName()const;
|
||||
void setDomainName(const std::string& domainName);
|
||||
std::string getEndTime()const;
|
||||
@@ -48,7 +46,6 @@ namespace AlibabaCloud
|
||||
|
||||
private:
|
||||
std::string startTime_;
|
||||
std::string securityToken_;
|
||||
std::string domainName_;
|
||||
std::string endTime_;
|
||||
long ownerId_;
|
||||
|
||||
@@ -44,8 +44,8 @@ namespace AlibabaCloud
|
||||
~DescribeDomainPvDataResult();
|
||||
std::string getEndTime()const;
|
||||
std::string getDomainName()const;
|
||||
std::string getDataInterval()const;
|
||||
std::string getStartTime()const;
|
||||
std::string getDataInterval()const;
|
||||
std::vector<UsageData> getPvDataInterval()const;
|
||||
|
||||
protected:
|
||||
@@ -53,8 +53,8 @@ namespace AlibabaCloud
|
||||
private:
|
||||
std::string endTime_;
|
||||
std::string domainName_;
|
||||
std::string dataInterval_;
|
||||
std::string startTime_;
|
||||
std::string dataInterval_;
|
||||
std::vector<UsageData> pvDataInterval_;
|
||||
|
||||
};
|
||||
|
||||
@@ -35,23 +35,20 @@ namespace AlibabaCloud
|
||||
DescribeDomainUvDataRequest();
|
||||
~DescribeDomainUvDataRequest();
|
||||
|
||||
std::string getStartTime()const;
|
||||
void setStartTime(const std::string& startTime);
|
||||
std::string getDomainName()const;
|
||||
void setDomainName(const std::string& domainName);
|
||||
std::string getEndTime()const;
|
||||
void setEndTime(const std::string& endTime);
|
||||
std::string getStartTime()const;
|
||||
void setStartTime(const std::string& startTime);
|
||||
long getOwnerId()const;
|
||||
void setOwnerId(long ownerId);
|
||||
std::string getSecurityToken()const;
|
||||
void setSecurityToken(const std::string& securityToken);
|
||||
|
||||
private:
|
||||
std::string startTime_;
|
||||
std::string domainName_;
|
||||
std::string endTime_;
|
||||
std::string startTime_;
|
||||
long ownerId_;
|
||||
std::string securityToken_;
|
||||
|
||||
};
|
||||
}
|
||||
|
||||
@@ -45,8 +45,8 @@ namespace AlibabaCloud
|
||||
std::vector<UsageData> getUvDataInterval()const;
|
||||
std::string getEndTime()const;
|
||||
std::string getDomainName()const;
|
||||
std::string getDataInterval()const;
|
||||
std::string getStartTime()const;
|
||||
std::string getDataInterval()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
@@ -54,8 +54,8 @@ namespace AlibabaCloud
|
||||
std::vector<UsageData> uvDataInterval_;
|
||||
std::string endTime_;
|
||||
std::string domainName_;
|
||||
std::string dataInterval_;
|
||||
std::string startTime_;
|
||||
std::string dataInterval_;
|
||||
|
||||
};
|
||||
}
|
||||
|
||||
@@ -38,6 +38,7 @@ namespace AlibabaCloud
|
||||
explicit DescribeRefreshQuotaResult(const std::string &payload);
|
||||
~DescribeRefreshQuotaResult();
|
||||
std::string getUrlRemain()const;
|
||||
std::string getPreloadEdgeRemain()const;
|
||||
std::string getPreloadRemain()const;
|
||||
std::string getBlockRemain()const;
|
||||
std::string getRegexRemain()const;
|
||||
@@ -47,11 +48,13 @@ namespace AlibabaCloud
|
||||
std::string getUrlQuota()const;
|
||||
std::string getDirQuota()const;
|
||||
std::string getPreloadQuota()const;
|
||||
std::string getPreloadEdgeQuota()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::string urlRemain_;
|
||||
std::string preloadEdgeRemain_;
|
||||
std::string preloadRemain_;
|
||||
std::string blockRemain_;
|
||||
std::string regexRemain_;
|
||||
@@ -61,6 +64,7 @@ namespace AlibabaCloud
|
||||
std::string urlQuota_;
|
||||
std::string dirQuota_;
|
||||
std::string preloadQuota_;
|
||||
std::string preloadEdgeQuota_;
|
||||
|
||||
};
|
||||
}
|
||||
|
||||
@@ -35,20 +35,17 @@ namespace AlibabaCloud
|
||||
DescribeUserVipsByDomainRequest();
|
||||
~DescribeUserVipsByDomainRequest();
|
||||
|
||||
std::string getDomainName()const;
|
||||
void setDomainName(const std::string& domainName);
|
||||
std::string getAvailable()const;
|
||||
void setAvailable(const std::string& available);
|
||||
std::string getDomainName()const;
|
||||
void setDomainName(const std::string& domainName);
|
||||
long getOwnerId()const;
|
||||
void setOwnerId(long ownerId);
|
||||
std::string getSecurityToken()const;
|
||||
void setSecurityToken(const std::string& securityToken);
|
||||
|
||||
private:
|
||||
std::string domainName_;
|
||||
std::string available_;
|
||||
std::string domainName_;
|
||||
long ownerId_;
|
||||
std::string securityToken_;
|
||||
|
||||
};
|
||||
}
|
||||
|
||||
@@ -35,20 +35,20 @@ namespace AlibabaCloud
|
||||
SetVideoSeekConfigRequest();
|
||||
~SetVideoSeekConfigRequest();
|
||||
|
||||
std::string getEnable()const;
|
||||
void setEnable(const std::string& enable);
|
||||
std::string getDomainName()const;
|
||||
void setDomainName(const std::string& domainName);
|
||||
long getOwnerId()const;
|
||||
void setOwnerId(long ownerId);
|
||||
long getConfigId()const;
|
||||
void setConfigId(long configId);
|
||||
std::string getSecurityToken()const;
|
||||
void setSecurityToken(const std::string& securityToken);
|
||||
std::string getEnable()const;
|
||||
void setEnable(const std::string& enable);
|
||||
|
||||
private:
|
||||
std::string enable_;
|
||||
std::string domainName_;
|
||||
long ownerId_;
|
||||
long configId_;
|
||||
std::string securityToken_;
|
||||
std::string enable_;
|
||||
|
||||
};
|
||||
}
|
||||
|
||||
@@ -49,14 +49,14 @@ void DescribeCdnDomainConfigsResult::parse(const std::string &payload)
|
||||
domainConfigsObject.configId = valueDomainConfigsDomainConfig["ConfigId"].asString();
|
||||
if(!valueDomainConfigsDomainConfig["Status"].isNull())
|
||||
domainConfigsObject.status = valueDomainConfigsDomainConfig["Status"].asString();
|
||||
auto allFunctionArgsNode = allDomainConfigsNode["FunctionArgs"]["FunctionArg"];
|
||||
for (auto allDomainConfigsNodeFunctionArgsFunctionArg : allFunctionArgsNode)
|
||||
auto allFunctionArgsNode = valueDomainConfigsDomainConfig["FunctionArgs"]["FunctionArg"];
|
||||
for (auto valueDomainConfigsDomainConfigFunctionArgsFunctionArg : allFunctionArgsNode)
|
||||
{
|
||||
DomainConfig::FunctionArg functionArgsObject;
|
||||
if(!allDomainConfigsNodeFunctionArgsFunctionArg["ArgName"].isNull())
|
||||
functionArgsObject.argName = allDomainConfigsNodeFunctionArgsFunctionArg["ArgName"].asString();
|
||||
if(!allDomainConfigsNodeFunctionArgsFunctionArg["ArgValue"].isNull())
|
||||
functionArgsObject.argValue = allDomainConfigsNodeFunctionArgsFunctionArg["ArgValue"].asString();
|
||||
if(!valueDomainConfigsDomainConfigFunctionArgsFunctionArg["ArgName"].isNull())
|
||||
functionArgsObject.argName = valueDomainConfigsDomainConfigFunctionArgsFunctionArg["ArgName"].asString();
|
||||
if(!valueDomainConfigsDomainConfigFunctionArgsFunctionArg["ArgValue"].isNull())
|
||||
functionArgsObject.argValue = valueDomainConfigsDomainConfigFunctionArgsFunctionArg["ArgValue"].asString();
|
||||
domainConfigsObject.functionArgs.push_back(functionArgsObject);
|
||||
}
|
||||
domainConfigs_.push_back(domainConfigsObject);
|
||||
|
||||
@@ -47,32 +47,32 @@ void DescribeCdnDomainLogsResult::parse(const std::string &payload)
|
||||
domainLogDetailsObject.domainName = valueDomainLogDetailsDomainLogDetail["DomainName"].asString();
|
||||
if(!valueDomainLogDetailsDomainLogDetail["LogCount"].isNull())
|
||||
domainLogDetailsObject.logCount = std::stol(valueDomainLogDetailsDomainLogDetail["LogCount"].asString());
|
||||
auto allPageInfosNode = allDomainLogDetailsNode["PageInfos"]["PageInfoDetail"];
|
||||
for (auto allDomainLogDetailsNodePageInfosPageInfoDetail : allPageInfosNode)
|
||||
auto allPageInfosNode = valueDomainLogDetailsDomainLogDetail["PageInfos"]["PageInfoDetail"];
|
||||
for (auto valueDomainLogDetailsDomainLogDetailPageInfosPageInfoDetail : allPageInfosNode)
|
||||
{
|
||||
DomainLogDetail::PageInfoDetail pageInfosObject;
|
||||
if(!allDomainLogDetailsNodePageInfosPageInfoDetail["PageIndex"].isNull())
|
||||
pageInfosObject.pageIndex = std::stol(allDomainLogDetailsNodePageInfosPageInfoDetail["PageIndex"].asString());
|
||||
if(!allDomainLogDetailsNodePageInfosPageInfoDetail["PageSize"].isNull())
|
||||
pageInfosObject.pageSize = std::stol(allDomainLogDetailsNodePageInfosPageInfoDetail["PageSize"].asString());
|
||||
if(!allDomainLogDetailsNodePageInfosPageInfoDetail["Total"].isNull())
|
||||
pageInfosObject.total = std::stol(allDomainLogDetailsNodePageInfosPageInfoDetail["Total"].asString());
|
||||
if(!valueDomainLogDetailsDomainLogDetailPageInfosPageInfoDetail["PageIndex"].isNull())
|
||||
pageInfosObject.pageIndex = std::stol(valueDomainLogDetailsDomainLogDetailPageInfosPageInfoDetail["PageIndex"].asString());
|
||||
if(!valueDomainLogDetailsDomainLogDetailPageInfosPageInfoDetail["PageSize"].isNull())
|
||||
pageInfosObject.pageSize = std::stol(valueDomainLogDetailsDomainLogDetailPageInfosPageInfoDetail["PageSize"].asString());
|
||||
if(!valueDomainLogDetailsDomainLogDetailPageInfosPageInfoDetail["Total"].isNull())
|
||||
pageInfosObject.total = std::stol(valueDomainLogDetailsDomainLogDetailPageInfosPageInfoDetail["Total"].asString());
|
||||
domainLogDetailsObject.pageInfos.push_back(pageInfosObject);
|
||||
}
|
||||
auto allLogInfosNode = allDomainLogDetailsNode["LogInfos"]["LogInfoDetail"];
|
||||
for (auto allDomainLogDetailsNodeLogInfosLogInfoDetail : allLogInfosNode)
|
||||
auto allLogInfosNode = valueDomainLogDetailsDomainLogDetail["LogInfos"]["LogInfoDetail"];
|
||||
for (auto valueDomainLogDetailsDomainLogDetailLogInfosLogInfoDetail : allLogInfosNode)
|
||||
{
|
||||
DomainLogDetail::LogInfoDetail logInfosObject;
|
||||
if(!allDomainLogDetailsNodeLogInfosLogInfoDetail["LogName"].isNull())
|
||||
logInfosObject.logName = allDomainLogDetailsNodeLogInfosLogInfoDetail["LogName"].asString();
|
||||
if(!allDomainLogDetailsNodeLogInfosLogInfoDetail["LogPath"].isNull())
|
||||
logInfosObject.logPath = allDomainLogDetailsNodeLogInfosLogInfoDetail["LogPath"].asString();
|
||||
if(!allDomainLogDetailsNodeLogInfosLogInfoDetail["LogSize"].isNull())
|
||||
logInfosObject.logSize = std::stol(allDomainLogDetailsNodeLogInfosLogInfoDetail["LogSize"].asString());
|
||||
if(!allDomainLogDetailsNodeLogInfosLogInfoDetail["StartTime"].isNull())
|
||||
logInfosObject.startTime = allDomainLogDetailsNodeLogInfosLogInfoDetail["StartTime"].asString();
|
||||
if(!allDomainLogDetailsNodeLogInfosLogInfoDetail["EndTime"].isNull())
|
||||
logInfosObject.endTime = allDomainLogDetailsNodeLogInfosLogInfoDetail["EndTime"].asString();
|
||||
if(!valueDomainLogDetailsDomainLogDetailLogInfosLogInfoDetail["LogName"].isNull())
|
||||
logInfosObject.logName = valueDomainLogDetailsDomainLogDetailLogInfosLogInfoDetail["LogName"].asString();
|
||||
if(!valueDomainLogDetailsDomainLogDetailLogInfosLogInfoDetail["LogPath"].isNull())
|
||||
logInfosObject.logPath = valueDomainLogDetailsDomainLogDetailLogInfosLogInfoDetail["LogPath"].asString();
|
||||
if(!valueDomainLogDetailsDomainLogDetailLogInfosLogInfoDetail["LogSize"].isNull())
|
||||
logInfosObject.logSize = std::stol(valueDomainLogDetailsDomainLogDetailLogInfosLogInfoDetail["LogSize"].asString());
|
||||
if(!valueDomainLogDetailsDomainLogDetailLogInfosLogInfoDetail["StartTime"].isNull())
|
||||
logInfosObject.startTime = valueDomainLogDetailsDomainLogDetailLogInfosLogInfoDetail["StartTime"].asString();
|
||||
if(!valueDomainLogDetailsDomainLogDetailLogInfosLogInfoDetail["EndTime"].isNull())
|
||||
logInfosObject.endTime = valueDomainLogDetailsDomainLogDetailLogInfosLogInfoDetail["EndTime"].asString();
|
||||
domainLogDetailsObject.logInfos.push_back(logInfosObject);
|
||||
}
|
||||
domainLogDetails_.push_back(domainLogDetailsObject);
|
||||
|
||||
@@ -49,14 +49,14 @@ void DescribeCdnDomainStagingConfigResult::parse(const std::string &payload)
|
||||
domainConfigsObject.configId = valueDomainConfigsDomainConfig["ConfigId"].asString();
|
||||
if(!valueDomainConfigsDomainConfig["Status"].isNull())
|
||||
domainConfigsObject.status = valueDomainConfigsDomainConfig["Status"].asString();
|
||||
auto allFunctionArgsNode = allDomainConfigsNode["FunctionArgs"]["FunctionArg"];
|
||||
for (auto allDomainConfigsNodeFunctionArgsFunctionArg : allFunctionArgsNode)
|
||||
auto allFunctionArgsNode = valueDomainConfigsDomainConfig["FunctionArgs"]["FunctionArg"];
|
||||
for (auto valueDomainConfigsDomainConfigFunctionArgsFunctionArg : allFunctionArgsNode)
|
||||
{
|
||||
DomainConfig::FunctionArg functionArgsObject;
|
||||
if(!allDomainConfigsNodeFunctionArgsFunctionArg["ArgName"].isNull())
|
||||
functionArgsObject.argName = allDomainConfigsNodeFunctionArgsFunctionArg["ArgName"].asString();
|
||||
if(!allDomainConfigsNodeFunctionArgsFunctionArg["ArgValue"].isNull())
|
||||
functionArgsObject.argValue = allDomainConfigsNodeFunctionArgsFunctionArg["ArgValue"].asString();
|
||||
if(!valueDomainConfigsDomainConfigFunctionArgsFunctionArg["ArgName"].isNull())
|
||||
functionArgsObject.argName = valueDomainConfigsDomainConfigFunctionArgsFunctionArg["ArgName"].asString();
|
||||
if(!valueDomainConfigsDomainConfigFunctionArgsFunctionArg["ArgValue"].isNull())
|
||||
functionArgsObject.argValue = valueDomainConfigsDomainConfigFunctionArgsFunctionArg["ArgValue"].asString();
|
||||
domainConfigsObject.functionArgs.push_back(functionArgsObject);
|
||||
}
|
||||
domainConfigs_.push_back(domainConfigsObject);
|
||||
|
||||
@@ -49,20 +49,20 @@ void DescribeCdnUserBillHistoryResult::parse(const std::string &payload)
|
||||
billHistoryDataObject.billType = valueBillHistoryDataBillHistoryDataItem["BillType"].asString();
|
||||
if(!valueBillHistoryDataBillHistoryDataItem["BillTime"].isNull())
|
||||
billHistoryDataObject.billTime = valueBillHistoryDataBillHistoryDataItem["BillTime"].asString();
|
||||
auto allBillingDataNode = allBillHistoryDataNode["BillingData"]["BillingDataItem"];
|
||||
for (auto allBillHistoryDataNodeBillingDataBillingDataItem : allBillingDataNode)
|
||||
auto allBillingDataNode = valueBillHistoryDataBillHistoryDataItem["BillingData"]["BillingDataItem"];
|
||||
for (auto valueBillHistoryDataBillHistoryDataItemBillingDataBillingDataItem : allBillingDataNode)
|
||||
{
|
||||
BillHistoryDataItem::BillingDataItem billingDataObject;
|
||||
if(!allBillHistoryDataNodeBillingDataBillingDataItem["ChargeType"].isNull())
|
||||
billingDataObject.chargeType = allBillHistoryDataNodeBillingDataBillingDataItem["ChargeType"].asString();
|
||||
if(!allBillHistoryDataNodeBillingDataBillingDataItem["CdnRegion"].isNull())
|
||||
billingDataObject.cdnRegion = allBillHistoryDataNodeBillingDataBillingDataItem["CdnRegion"].asString();
|
||||
if(!allBillHistoryDataNodeBillingDataBillingDataItem["Bandwidth"].isNull())
|
||||
billingDataObject.bandwidth = std::stof(allBillHistoryDataNodeBillingDataBillingDataItem["Bandwidth"].asString());
|
||||
if(!allBillHistoryDataNodeBillingDataBillingDataItem["Flow"].isNull())
|
||||
billingDataObject.flow = std::stof(allBillHistoryDataNodeBillingDataBillingDataItem["Flow"].asString());
|
||||
if(!allBillHistoryDataNodeBillingDataBillingDataItem["Count"].isNull())
|
||||
billingDataObject.count = std::stof(allBillHistoryDataNodeBillingDataBillingDataItem["Count"].asString());
|
||||
if(!valueBillHistoryDataBillHistoryDataItemBillingDataBillingDataItem["ChargeType"].isNull())
|
||||
billingDataObject.chargeType = valueBillHistoryDataBillHistoryDataItemBillingDataBillingDataItem["ChargeType"].asString();
|
||||
if(!valueBillHistoryDataBillHistoryDataItemBillingDataBillingDataItem["CdnRegion"].isNull())
|
||||
billingDataObject.cdnRegion = valueBillHistoryDataBillHistoryDataItemBillingDataBillingDataItem["CdnRegion"].asString();
|
||||
if(!valueBillHistoryDataBillHistoryDataItemBillingDataBillingDataItem["Bandwidth"].isNull())
|
||||
billingDataObject.bandwidth = std::stof(valueBillHistoryDataBillHistoryDataItemBillingDataBillingDataItem["Bandwidth"].asString());
|
||||
if(!valueBillHistoryDataBillHistoryDataItemBillingDataBillingDataItem["Flow"].isNull())
|
||||
billingDataObject.flow = std::stof(valueBillHistoryDataBillHistoryDataItemBillingDataBillingDataItem["Flow"].asString());
|
||||
if(!valueBillHistoryDataBillHistoryDataItemBillingDataBillingDataItem["Count"].isNull())
|
||||
billingDataObject.count = std::stof(valueBillHistoryDataBillHistoryDataItemBillingDataBillingDataItem["Count"].asString());
|
||||
billHistoryDataObject.billingData.push_back(billingDataObject);
|
||||
}
|
||||
billHistoryData_.push_back(billHistoryDataObject);
|
||||
|
||||
@@ -63,20 +63,20 @@ void DescribeCdnUserDomainsByFuncResult::parse(const std::string &payload)
|
||||
domainsObject.resourceGroupId = valueDomainsPageData["ResourceGroupId"].asString();
|
||||
if(!valueDomainsPageData["Sandbox"].isNull())
|
||||
domainsObject.sandbox = valueDomainsPageData["Sandbox"].asString();
|
||||
auto allSourcesNode = allDomainsNode["Sources"]["Source"];
|
||||
for (auto allDomainsNodeSourcesSource : allSourcesNode)
|
||||
auto allSourcesNode = valueDomainsPageData["Sources"]["Source"];
|
||||
for (auto valueDomainsPageDataSourcesSource : allSourcesNode)
|
||||
{
|
||||
PageData::Source sourcesObject;
|
||||
if(!allDomainsNodeSourcesSource["Type"].isNull())
|
||||
sourcesObject.type = allDomainsNodeSourcesSource["Type"].asString();
|
||||
if(!allDomainsNodeSourcesSource["Content"].isNull())
|
||||
sourcesObject.content = allDomainsNodeSourcesSource["Content"].asString();
|
||||
if(!allDomainsNodeSourcesSource["Port"].isNull())
|
||||
sourcesObject.port = std::stoi(allDomainsNodeSourcesSource["Port"].asString());
|
||||
if(!allDomainsNodeSourcesSource["Priority"].isNull())
|
||||
sourcesObject.priority = allDomainsNodeSourcesSource["Priority"].asString();
|
||||
if(!allDomainsNodeSourcesSource["Weight"].isNull())
|
||||
sourcesObject.weight = allDomainsNodeSourcesSource["Weight"].asString();
|
||||
if(!valueDomainsPageDataSourcesSource["Type"].isNull())
|
||||
sourcesObject.type = valueDomainsPageDataSourcesSource["Type"].asString();
|
||||
if(!valueDomainsPageDataSourcesSource["Content"].isNull())
|
||||
sourcesObject.content = valueDomainsPageDataSourcesSource["Content"].asString();
|
||||
if(!valueDomainsPageDataSourcesSource["Port"].isNull())
|
||||
sourcesObject.port = std::stoi(valueDomainsPageDataSourcesSource["Port"].asString());
|
||||
if(!valueDomainsPageDataSourcesSource["Priority"].isNull())
|
||||
sourcesObject.priority = valueDomainsPageDataSourcesSource["Priority"].asString();
|
||||
if(!valueDomainsPageDataSourcesSource["Weight"].isNull())
|
||||
sourcesObject.weight = valueDomainsPageDataSourcesSource["Weight"].asString();
|
||||
domainsObject.sources.push_back(sourcesObject);
|
||||
}
|
||||
domains_.push_back(domainsObject);
|
||||
|
||||
@@ -49,14 +49,14 @@ void DescribeConfigOfVersionResult::parse(const std::string &payload)
|
||||
versionConfigsObject.configId = valueVersionConfigsVersionConfig["ConfigId"].asString();
|
||||
if(!valueVersionConfigsVersionConfig["FunctionName"].isNull())
|
||||
versionConfigsObject.functionName = valueVersionConfigsVersionConfig["FunctionName"].asString();
|
||||
auto allFunctionArgsNode = allVersionConfigsNode["FunctionArgs"]["FunctionArg"];
|
||||
for (auto allVersionConfigsNodeFunctionArgsFunctionArg : allFunctionArgsNode)
|
||||
auto allFunctionArgsNode = valueVersionConfigsVersionConfig["FunctionArgs"]["FunctionArg"];
|
||||
for (auto valueVersionConfigsVersionConfigFunctionArgsFunctionArg : allFunctionArgsNode)
|
||||
{
|
||||
VersionConfig::FunctionArg functionArgsObject;
|
||||
if(!allVersionConfigsNodeFunctionArgsFunctionArg["ArgName"].isNull())
|
||||
functionArgsObject.argName = allVersionConfigsNodeFunctionArgsFunctionArg["ArgName"].asString();
|
||||
if(!allVersionConfigsNodeFunctionArgsFunctionArg["ArgValue"].isNull())
|
||||
functionArgsObject.argValue = allVersionConfigsNodeFunctionArgsFunctionArg["ArgValue"].asString();
|
||||
if(!valueVersionConfigsVersionConfigFunctionArgsFunctionArg["ArgName"].isNull())
|
||||
functionArgsObject.argName = valueVersionConfigsVersionConfigFunctionArgsFunctionArg["ArgName"].asString();
|
||||
if(!valueVersionConfigsVersionConfigFunctionArgsFunctionArg["ArgValue"].isNull())
|
||||
functionArgsObject.argValue = valueVersionConfigsVersionConfigFunctionArgsFunctionArg["ArgValue"].asString();
|
||||
versionConfigsObject.functionArgs.push_back(functionArgsObject);
|
||||
}
|
||||
versionConfigs_.push_back(versionConfigsObject);
|
||||
|
||||
@@ -45,14 +45,14 @@ void DescribeDomainFileSizeProportionDataResult::parse(const std::string &payloa
|
||||
UsageData fileSizeProportionDataIntervalObject;
|
||||
if(!valueFileSizeProportionDataIntervalUsageData["TimeStamp"].isNull())
|
||||
fileSizeProportionDataIntervalObject.timeStamp = valueFileSizeProportionDataIntervalUsageData["TimeStamp"].asString();
|
||||
auto allValueNode = allFileSizeProportionDataIntervalNode["Value"]["FileSizeProportionData"];
|
||||
for (auto allFileSizeProportionDataIntervalNodeValueFileSizeProportionData : allValueNode)
|
||||
auto allValueNode = valueFileSizeProportionDataIntervalUsageData["Value"]["FileSizeProportionData"];
|
||||
for (auto valueFileSizeProportionDataIntervalUsageDataValueFileSizeProportionData : allValueNode)
|
||||
{
|
||||
UsageData::FileSizeProportionData valueObject;
|
||||
if(!allFileSizeProportionDataIntervalNodeValueFileSizeProportionData["FileSize"].isNull())
|
||||
valueObject.fileSize = allFileSizeProportionDataIntervalNodeValueFileSizeProportionData["FileSize"].asString();
|
||||
if(!allFileSizeProportionDataIntervalNodeValueFileSizeProportionData["Proportion"].isNull())
|
||||
valueObject.proportion = allFileSizeProportionDataIntervalNodeValueFileSizeProportionData["Proportion"].asString();
|
||||
if(!valueFileSizeProportionDataIntervalUsageDataValueFileSizeProportionData["FileSize"].isNull())
|
||||
valueObject.fileSize = valueFileSizeProportionDataIntervalUsageDataValueFileSizeProportionData["FileSize"].asString();
|
||||
if(!valueFileSizeProportionDataIntervalUsageDataValueFileSizeProportionData["Proportion"].isNull())
|
||||
valueObject.proportion = valueFileSizeProportionDataIntervalUsageDataValueFileSizeProportionData["Proportion"].asString();
|
||||
fileSizeProportionDataIntervalObject.value.push_back(valueObject);
|
||||
}
|
||||
fileSizeProportionDataInterval_.push_back(fileSizeProportionDataIntervalObject);
|
||||
|
||||
@@ -45,16 +45,16 @@ void DescribeDomainHttpCodeDataResult::parse(const std::string &payload)
|
||||
UsageData httpCodeDataObject;
|
||||
if(!valueHttpCodeDataUsageData["TimeStamp"].isNull())
|
||||
httpCodeDataObject.timeStamp = valueHttpCodeDataUsageData["TimeStamp"].asString();
|
||||
auto allValueNode = allHttpCodeDataNode["Value"]["CodeProportionData"];
|
||||
for (auto allHttpCodeDataNodeValueCodeProportionData : allValueNode)
|
||||
auto allValueNode = valueHttpCodeDataUsageData["Value"]["CodeProportionData"];
|
||||
for (auto valueHttpCodeDataUsageDataValueCodeProportionData : allValueNode)
|
||||
{
|
||||
UsageData::CodeProportionData valueObject;
|
||||
if(!allHttpCodeDataNodeValueCodeProportionData["Code"].isNull())
|
||||
valueObject.code = allHttpCodeDataNodeValueCodeProportionData["Code"].asString();
|
||||
if(!allHttpCodeDataNodeValueCodeProportionData["Proportion"].isNull())
|
||||
valueObject.proportion = allHttpCodeDataNodeValueCodeProportionData["Proportion"].asString();
|
||||
if(!allHttpCodeDataNodeValueCodeProportionData["Count"].isNull())
|
||||
valueObject.count = allHttpCodeDataNodeValueCodeProportionData["Count"].asString();
|
||||
if(!valueHttpCodeDataUsageDataValueCodeProportionData["Code"].isNull())
|
||||
valueObject.code = valueHttpCodeDataUsageDataValueCodeProportionData["Code"].asString();
|
||||
if(!valueHttpCodeDataUsageDataValueCodeProportionData["Proportion"].isNull())
|
||||
valueObject.proportion = valueHttpCodeDataUsageDataValueCodeProportionData["Proportion"].asString();
|
||||
if(!valueHttpCodeDataUsageDataValueCodeProportionData["Count"].isNull())
|
||||
valueObject.count = valueHttpCodeDataUsageDataValueCodeProportionData["Count"].asString();
|
||||
httpCodeDataObject.value.push_back(valueObject);
|
||||
}
|
||||
httpCodeData_.push_back(httpCodeDataObject);
|
||||
|
||||
@@ -38,17 +38,6 @@ void DescribeDomainPvDataRequest::setStartTime(const std::string& startTime)
|
||||
setParameter("StartTime", startTime);
|
||||
}
|
||||
|
||||
std::string DescribeDomainPvDataRequest::getSecurityToken()const
|
||||
{
|
||||
return securityToken_;
|
||||
}
|
||||
|
||||
void DescribeDomainPvDataRequest::setSecurityToken(const std::string& securityToken)
|
||||
{
|
||||
securityToken_ = securityToken;
|
||||
setParameter("SecurityToken", securityToken);
|
||||
}
|
||||
|
||||
std::string DescribeDomainPvDataRequest::getDomainName()const
|
||||
{
|
||||
return domainName_;
|
||||
|
||||
@@ -43,20 +43,20 @@ void DescribeDomainPvDataResult::parse(const std::string &payload)
|
||||
for (auto valuePvDataIntervalUsageData : allPvDataIntervalNode)
|
||||
{
|
||||
UsageData pvDataIntervalObject;
|
||||
if(!valuePvDataIntervalUsageData["TimeStamp"].isNull())
|
||||
pvDataIntervalObject.timeStamp = valuePvDataIntervalUsageData["TimeStamp"].asString();
|
||||
if(!valuePvDataIntervalUsageData["Value"].isNull())
|
||||
pvDataIntervalObject.value = valuePvDataIntervalUsageData["Value"].asString();
|
||||
if(!valuePvDataIntervalUsageData["TimeStamp"].isNull())
|
||||
pvDataIntervalObject.timeStamp = valuePvDataIntervalUsageData["TimeStamp"].asString();
|
||||
pvDataInterval_.push_back(pvDataIntervalObject);
|
||||
}
|
||||
if(!value["DomainName"].isNull())
|
||||
domainName_ = value["DomainName"].asString();
|
||||
if(!value["DataInterval"].isNull())
|
||||
dataInterval_ = value["DataInterval"].asString();
|
||||
if(!value["StartTime"].isNull())
|
||||
startTime_ = value["StartTime"].asString();
|
||||
if(!value["EndTime"].isNull())
|
||||
endTime_ = value["EndTime"].asString();
|
||||
if(!value["DataInterval"].isNull())
|
||||
dataInterval_ = value["DataInterval"].asString();
|
||||
|
||||
}
|
||||
|
||||
@@ -70,16 +70,16 @@ std::string DescribeDomainPvDataResult::getDomainName()const
|
||||
return domainName_;
|
||||
}
|
||||
|
||||
std::string DescribeDomainPvDataResult::getDataInterval()const
|
||||
{
|
||||
return dataInterval_;
|
||||
}
|
||||
|
||||
std::string DescribeDomainPvDataResult::getStartTime()const
|
||||
{
|
||||
return startTime_;
|
||||
}
|
||||
|
||||
std::string DescribeDomainPvDataResult::getDataInterval()const
|
||||
{
|
||||
return dataInterval_;
|
||||
}
|
||||
|
||||
std::vector<DescribeDomainPvDataResult::UsageData> DescribeDomainPvDataResult::getPvDataInterval()const
|
||||
{
|
||||
return pvDataInterval_;
|
||||
|
||||
@@ -45,16 +45,16 @@ void DescribeDomainRealTimeHttpCodeDataResult::parse(const std::string &payload)
|
||||
UsageData realTimeHttpCodeDataObject;
|
||||
if(!valueRealTimeHttpCodeDataUsageData["TimeStamp"].isNull())
|
||||
realTimeHttpCodeDataObject.timeStamp = valueRealTimeHttpCodeDataUsageData["TimeStamp"].asString();
|
||||
auto allValueNode = allRealTimeHttpCodeDataNode["Value"]["RealTimeCodeProportionData"];
|
||||
for (auto allRealTimeHttpCodeDataNodeValueRealTimeCodeProportionData : allValueNode)
|
||||
auto allValueNode = valueRealTimeHttpCodeDataUsageData["Value"]["RealTimeCodeProportionData"];
|
||||
for (auto valueRealTimeHttpCodeDataUsageDataValueRealTimeCodeProportionData : allValueNode)
|
||||
{
|
||||
UsageData::RealTimeCodeProportionData valueObject;
|
||||
if(!allRealTimeHttpCodeDataNodeValueRealTimeCodeProportionData["Code"].isNull())
|
||||
valueObject.code = allRealTimeHttpCodeDataNodeValueRealTimeCodeProportionData["Code"].asString();
|
||||
if(!allRealTimeHttpCodeDataNodeValueRealTimeCodeProportionData["Proportion"].isNull())
|
||||
valueObject.proportion = allRealTimeHttpCodeDataNodeValueRealTimeCodeProportionData["Proportion"].asString();
|
||||
if(!allRealTimeHttpCodeDataNodeValueRealTimeCodeProportionData["Count"].isNull())
|
||||
valueObject.count = allRealTimeHttpCodeDataNodeValueRealTimeCodeProportionData["Count"].asString();
|
||||
if(!valueRealTimeHttpCodeDataUsageDataValueRealTimeCodeProportionData["Code"].isNull())
|
||||
valueObject.code = valueRealTimeHttpCodeDataUsageDataValueRealTimeCodeProportionData["Code"].asString();
|
||||
if(!valueRealTimeHttpCodeDataUsageDataValueRealTimeCodeProportionData["Proportion"].isNull())
|
||||
valueObject.proportion = valueRealTimeHttpCodeDataUsageDataValueRealTimeCodeProportionData["Proportion"].asString();
|
||||
if(!valueRealTimeHttpCodeDataUsageDataValueRealTimeCodeProportionData["Count"].isNull())
|
||||
valueObject.count = valueRealTimeHttpCodeDataUsageDataValueRealTimeCodeProportionData["Count"].asString();
|
||||
realTimeHttpCodeDataObject.value.push_back(valueObject);
|
||||
}
|
||||
realTimeHttpCodeData_.push_back(realTimeHttpCodeDataObject);
|
||||
|
||||
@@ -45,16 +45,16 @@ void DescribeDomainRealTimeSrcHttpCodeDataResult::parse(const std::string &paylo
|
||||
UsageData realTimeSrcHttpCodeDataObject;
|
||||
if(!valueRealTimeSrcHttpCodeDataUsageData["TimeStamp"].isNull())
|
||||
realTimeSrcHttpCodeDataObject.timeStamp = valueRealTimeSrcHttpCodeDataUsageData["TimeStamp"].asString();
|
||||
auto allValueNode = allRealTimeSrcHttpCodeDataNode["Value"]["RealTimeSrcCodeProportionData"];
|
||||
for (auto allRealTimeSrcHttpCodeDataNodeValueRealTimeSrcCodeProportionData : allValueNode)
|
||||
auto allValueNode = valueRealTimeSrcHttpCodeDataUsageData["Value"]["RealTimeSrcCodeProportionData"];
|
||||
for (auto valueRealTimeSrcHttpCodeDataUsageDataValueRealTimeSrcCodeProportionData : allValueNode)
|
||||
{
|
||||
UsageData::RealTimeSrcCodeProportionData valueObject;
|
||||
if(!allRealTimeSrcHttpCodeDataNodeValueRealTimeSrcCodeProportionData["Code"].isNull())
|
||||
valueObject.code = allRealTimeSrcHttpCodeDataNodeValueRealTimeSrcCodeProportionData["Code"].asString();
|
||||
if(!allRealTimeSrcHttpCodeDataNodeValueRealTimeSrcCodeProportionData["Proportion"].isNull())
|
||||
valueObject.proportion = allRealTimeSrcHttpCodeDataNodeValueRealTimeSrcCodeProportionData["Proportion"].asString();
|
||||
if(!allRealTimeSrcHttpCodeDataNodeValueRealTimeSrcCodeProportionData["Count"].isNull())
|
||||
valueObject.count = allRealTimeSrcHttpCodeDataNodeValueRealTimeSrcCodeProportionData["Count"].asString();
|
||||
if(!valueRealTimeSrcHttpCodeDataUsageDataValueRealTimeSrcCodeProportionData["Code"].isNull())
|
||||
valueObject.code = valueRealTimeSrcHttpCodeDataUsageDataValueRealTimeSrcCodeProportionData["Code"].asString();
|
||||
if(!valueRealTimeSrcHttpCodeDataUsageDataValueRealTimeSrcCodeProportionData["Proportion"].isNull())
|
||||
valueObject.proportion = valueRealTimeSrcHttpCodeDataUsageDataValueRealTimeSrcCodeProportionData["Proportion"].asString();
|
||||
if(!valueRealTimeSrcHttpCodeDataUsageDataValueRealTimeSrcCodeProportionData["Count"].isNull())
|
||||
valueObject.count = valueRealTimeSrcHttpCodeDataUsageDataValueRealTimeSrcCodeProportionData["Count"].asString();
|
||||
realTimeSrcHttpCodeDataObject.value.push_back(valueObject);
|
||||
}
|
||||
realTimeSrcHttpCodeData_.push_back(realTimeSrcHttpCodeDataObject);
|
||||
|
||||
@@ -45,16 +45,16 @@ void DescribeDomainSrcHttpCodeDataResult::parse(const std::string &payload)
|
||||
UsageData httpCodeDataObject;
|
||||
if(!valueHttpCodeDataUsageData["TimeStamp"].isNull())
|
||||
httpCodeDataObject.timeStamp = valueHttpCodeDataUsageData["TimeStamp"].asString();
|
||||
auto allValueNode = allHttpCodeDataNode["Value"]["CodeProportionData"];
|
||||
for (auto allHttpCodeDataNodeValueCodeProportionData : allValueNode)
|
||||
auto allValueNode = valueHttpCodeDataUsageData["Value"]["CodeProportionData"];
|
||||
for (auto valueHttpCodeDataUsageDataValueCodeProportionData : allValueNode)
|
||||
{
|
||||
UsageData::CodeProportionData valueObject;
|
||||
if(!allHttpCodeDataNodeValueCodeProportionData["Code"].isNull())
|
||||
valueObject.code = allHttpCodeDataNodeValueCodeProportionData["Code"].asString();
|
||||
if(!allHttpCodeDataNodeValueCodeProportionData["Proportion"].isNull())
|
||||
valueObject.proportion = allHttpCodeDataNodeValueCodeProportionData["Proportion"].asString();
|
||||
if(!allHttpCodeDataNodeValueCodeProportionData["Count"].isNull())
|
||||
valueObject.count = allHttpCodeDataNodeValueCodeProportionData["Count"].asString();
|
||||
if(!valueHttpCodeDataUsageDataValueCodeProportionData["Code"].isNull())
|
||||
valueObject.code = valueHttpCodeDataUsageDataValueCodeProportionData["Code"].asString();
|
||||
if(!valueHttpCodeDataUsageDataValueCodeProportionData["Proportion"].isNull())
|
||||
valueObject.proportion = valueHttpCodeDataUsageDataValueCodeProportionData["Proportion"].asString();
|
||||
if(!valueHttpCodeDataUsageDataValueCodeProportionData["Count"].isNull())
|
||||
valueObject.count = valueHttpCodeDataUsageDataValueCodeProportionData["Count"].asString();
|
||||
httpCodeDataObject.value.push_back(valueObject);
|
||||
}
|
||||
httpCodeData_.push_back(httpCodeDataObject);
|
||||
|
||||
@@ -27,6 +27,17 @@ DescribeDomainUvDataRequest::DescribeDomainUvDataRequest() :
|
||||
DescribeDomainUvDataRequest::~DescribeDomainUvDataRequest()
|
||||
{}
|
||||
|
||||
std::string DescribeDomainUvDataRequest::getStartTime()const
|
||||
{
|
||||
return startTime_;
|
||||
}
|
||||
|
||||
void DescribeDomainUvDataRequest::setStartTime(const std::string& startTime)
|
||||
{
|
||||
startTime_ = startTime;
|
||||
setParameter("StartTime", startTime);
|
||||
}
|
||||
|
||||
std::string DescribeDomainUvDataRequest::getDomainName()const
|
||||
{
|
||||
return domainName_;
|
||||
@@ -49,17 +60,6 @@ void DescribeDomainUvDataRequest::setEndTime(const std::string& endTime)
|
||||
setParameter("EndTime", endTime);
|
||||
}
|
||||
|
||||
std::string DescribeDomainUvDataRequest::getStartTime()const
|
||||
{
|
||||
return startTime_;
|
||||
}
|
||||
|
||||
void DescribeDomainUvDataRequest::setStartTime(const std::string& startTime)
|
||||
{
|
||||
startTime_ = startTime;
|
||||
setParameter("StartTime", startTime);
|
||||
}
|
||||
|
||||
long DescribeDomainUvDataRequest::getOwnerId()const
|
||||
{
|
||||
return ownerId_;
|
||||
@@ -71,14 +71,3 @@ void DescribeDomainUvDataRequest::setOwnerId(long ownerId)
|
||||
setParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
std::string DescribeDomainUvDataRequest::getSecurityToken()const
|
||||
{
|
||||
return securityToken_;
|
||||
}
|
||||
|
||||
void DescribeDomainUvDataRequest::setSecurityToken(const std::string& securityToken)
|
||||
{
|
||||
securityToken_ = securityToken;
|
||||
setParameter("SecurityToken", securityToken);
|
||||
}
|
||||
|
||||
|
||||
@@ -43,20 +43,20 @@ void DescribeDomainUvDataResult::parse(const std::string &payload)
|
||||
for (auto valueUvDataIntervalUsageData : allUvDataIntervalNode)
|
||||
{
|
||||
UsageData uvDataIntervalObject;
|
||||
if(!valueUvDataIntervalUsageData["TimeStamp"].isNull())
|
||||
uvDataIntervalObject.timeStamp = valueUvDataIntervalUsageData["TimeStamp"].asString();
|
||||
if(!valueUvDataIntervalUsageData["Value"].isNull())
|
||||
uvDataIntervalObject.value = valueUvDataIntervalUsageData["Value"].asString();
|
||||
if(!valueUvDataIntervalUsageData["TimeStamp"].isNull())
|
||||
uvDataIntervalObject.timeStamp = valueUvDataIntervalUsageData["TimeStamp"].asString();
|
||||
uvDataInterval_.push_back(uvDataIntervalObject);
|
||||
}
|
||||
if(!value["DomainName"].isNull())
|
||||
domainName_ = value["DomainName"].asString();
|
||||
if(!value["DataInterval"].isNull())
|
||||
dataInterval_ = value["DataInterval"].asString();
|
||||
if(!value["StartTime"].isNull())
|
||||
startTime_ = value["StartTime"].asString();
|
||||
if(!value["EndTime"].isNull())
|
||||
endTime_ = value["EndTime"].asString();
|
||||
if(!value["DataInterval"].isNull())
|
||||
dataInterval_ = value["DataInterval"].asString();
|
||||
|
||||
}
|
||||
|
||||
@@ -75,13 +75,13 @@ std::string DescribeDomainUvDataResult::getDomainName()const
|
||||
return domainName_;
|
||||
}
|
||||
|
||||
std::string DescribeDomainUvDataResult::getDataInterval()const
|
||||
{
|
||||
return dataInterval_;
|
||||
}
|
||||
|
||||
std::string DescribeDomainUvDataResult::getStartTime()const
|
||||
{
|
||||
return startTime_;
|
||||
}
|
||||
|
||||
std::string DescribeDomainUvDataResult::getDataInterval()const
|
||||
{
|
||||
return dataInterval_;
|
||||
}
|
||||
|
||||
|
||||
@@ -45,20 +45,20 @@ void DescribeDomainsBySourceResult::parse(const std::string &payload)
|
||||
DomainsData domainsListObject;
|
||||
if(!valueDomainsListDomainsData["Source"].isNull())
|
||||
domainsListObject.source = valueDomainsListDomainsData["Source"].asString();
|
||||
auto allDomainInfosNode = allDomainsListNode["DomainInfos"]["domainInfo"];
|
||||
for (auto allDomainsListNodeDomainInfosdomainInfo : allDomainInfosNode)
|
||||
auto allDomainInfosNode = valueDomainsListDomainsData["DomainInfos"]["domainInfo"];
|
||||
for (auto valueDomainsListDomainsDataDomainInfosdomainInfo : allDomainInfosNode)
|
||||
{
|
||||
DomainsData::DomainInfo domainInfosObject;
|
||||
if(!allDomainsListNodeDomainInfosdomainInfo["DomainName"].isNull())
|
||||
domainInfosObject.domainName = allDomainsListNodeDomainInfosdomainInfo["DomainName"].asString();
|
||||
if(!allDomainsListNodeDomainInfosdomainInfo["DomainCname"].isNull())
|
||||
domainInfosObject.domainCname = allDomainsListNodeDomainInfosdomainInfo["DomainCname"].asString();
|
||||
if(!allDomainsListNodeDomainInfosdomainInfo["CreateTime"].isNull())
|
||||
domainInfosObject.createTime = allDomainsListNodeDomainInfosdomainInfo["CreateTime"].asString();
|
||||
if(!allDomainsListNodeDomainInfosdomainInfo["UpdateTime"].isNull())
|
||||
domainInfosObject.updateTime = allDomainsListNodeDomainInfosdomainInfo["UpdateTime"].asString();
|
||||
if(!allDomainsListNodeDomainInfosdomainInfo["Status"].isNull())
|
||||
domainInfosObject.status = allDomainsListNodeDomainInfosdomainInfo["Status"].asString();
|
||||
if(!valueDomainsListDomainsDataDomainInfosdomainInfo["DomainName"].isNull())
|
||||
domainInfosObject.domainName = valueDomainsListDomainsDataDomainInfosdomainInfo["DomainName"].asString();
|
||||
if(!valueDomainsListDomainsDataDomainInfosdomainInfo["DomainCname"].isNull())
|
||||
domainInfosObject.domainCname = valueDomainsListDomainsDataDomainInfosdomainInfo["DomainCname"].asString();
|
||||
if(!valueDomainsListDomainsDataDomainInfosdomainInfo["CreateTime"].isNull())
|
||||
domainInfosObject.createTime = valueDomainsListDomainsDataDomainInfosdomainInfo["CreateTime"].asString();
|
||||
if(!valueDomainsListDomainsDataDomainInfosdomainInfo["UpdateTime"].isNull())
|
||||
domainInfosObject.updateTime = valueDomainsListDomainsDataDomainInfosdomainInfo["UpdateTime"].asString();
|
||||
if(!valueDomainsListDomainsDataDomainInfosdomainInfo["Status"].isNull())
|
||||
domainInfosObject.status = valueDomainsListDomainsDataDomainInfosdomainInfo["Status"].asString();
|
||||
domainsListObject.domainInfos.push_back(domainInfosObject);
|
||||
}
|
||||
auto allDomains = value["Domains"]["domainNames"];
|
||||
|
||||
@@ -59,6 +59,10 @@ void DescribeRefreshQuotaResult::parse(const std::string &payload)
|
||||
regexQuota_ = value["RegexQuota"].asString();
|
||||
if(!value["RegexRemain"].isNull())
|
||||
regexRemain_ = value["RegexRemain"].asString();
|
||||
if(!value["PreloadEdgeQuota"].isNull())
|
||||
preloadEdgeQuota_ = value["PreloadEdgeQuota"].asString();
|
||||
if(!value["PreloadEdgeRemain"].isNull())
|
||||
preloadEdgeRemain_ = value["PreloadEdgeRemain"].asString();
|
||||
|
||||
}
|
||||
|
||||
@@ -67,6 +71,11 @@ std::string DescribeRefreshQuotaResult::getUrlRemain()const
|
||||
return urlRemain_;
|
||||
}
|
||||
|
||||
std::string DescribeRefreshQuotaResult::getPreloadEdgeRemain()const
|
||||
{
|
||||
return preloadEdgeRemain_;
|
||||
}
|
||||
|
||||
std::string DescribeRefreshQuotaResult::getPreloadRemain()const
|
||||
{
|
||||
return preloadRemain_;
|
||||
@@ -112,3 +121,8 @@ std::string DescribeRefreshQuotaResult::getPreloadQuota()const
|
||||
return preloadQuota_;
|
||||
}
|
||||
|
||||
std::string DescribeRefreshQuotaResult::getPreloadEdgeQuota()const
|
||||
{
|
||||
return preloadEdgeQuota_;
|
||||
}
|
||||
|
||||
|
||||
@@ -45,14 +45,14 @@ void DescribeTagResourcesResult::parse(const std::string &payload)
|
||||
TagResource tagResourcesObject;
|
||||
if(!valueTagResourcesTagResource["ResourceId"].isNull())
|
||||
tagResourcesObject.resourceId = valueTagResourcesTagResource["ResourceId"].asString();
|
||||
auto allTagNode = allTagResourcesNode["Tag"]["TagItem"];
|
||||
for (auto allTagResourcesNodeTagTagItem : allTagNode)
|
||||
auto allTagNode = valueTagResourcesTagResource["Tag"]["TagItem"];
|
||||
for (auto valueTagResourcesTagResourceTagTagItem : allTagNode)
|
||||
{
|
||||
TagResource::TagItem tagObject;
|
||||
if(!allTagResourcesNodeTagTagItem["Key"].isNull())
|
||||
tagObject.key = allTagResourcesNodeTagTagItem["Key"].asString();
|
||||
if(!allTagResourcesNodeTagTagItem["Value"].isNull())
|
||||
tagObject.value = allTagResourcesNodeTagTagItem["Value"].asString();
|
||||
if(!valueTagResourcesTagResourceTagTagItem["Key"].isNull())
|
||||
tagObject.key = valueTagResourcesTagResourceTagTagItem["Key"].asString();
|
||||
if(!valueTagResourcesTagResourceTagTagItem["Value"].isNull())
|
||||
tagObject.value = valueTagResourcesTagResourceTagTagItem["Value"].asString();
|
||||
tagResourcesObject.tag.push_back(tagObject);
|
||||
}
|
||||
tagResources_.push_back(tagResourcesObject);
|
||||
|
||||
@@ -65,20 +65,20 @@ void DescribeUserDomainsResult::parse(const std::string &payload)
|
||||
domainsObject.sandbox = valueDomainsPageData["Sandbox"].asString();
|
||||
if(!valueDomainsPageData["Coverage"].isNull())
|
||||
domainsObject.coverage = valueDomainsPageData["Coverage"].asString();
|
||||
auto allSourcesNode = allDomainsNode["Sources"]["Source"];
|
||||
for (auto allDomainsNodeSourcesSource : allSourcesNode)
|
||||
auto allSourcesNode = valueDomainsPageData["Sources"]["Source"];
|
||||
for (auto valueDomainsPageDataSourcesSource : allSourcesNode)
|
||||
{
|
||||
PageData::Source sourcesObject;
|
||||
if(!allDomainsNodeSourcesSource["Type"].isNull())
|
||||
sourcesObject.type = allDomainsNodeSourcesSource["Type"].asString();
|
||||
if(!allDomainsNodeSourcesSource["Content"].isNull())
|
||||
sourcesObject.content = allDomainsNodeSourcesSource["Content"].asString();
|
||||
if(!allDomainsNodeSourcesSource["Port"].isNull())
|
||||
sourcesObject.port = std::stoi(allDomainsNodeSourcesSource["Port"].asString());
|
||||
if(!allDomainsNodeSourcesSource["Priority"].isNull())
|
||||
sourcesObject.priority = allDomainsNodeSourcesSource["Priority"].asString();
|
||||
if(!allDomainsNodeSourcesSource["Weight"].isNull())
|
||||
sourcesObject.weight = allDomainsNodeSourcesSource["Weight"].asString();
|
||||
if(!valueDomainsPageDataSourcesSource["Type"].isNull())
|
||||
sourcesObject.type = valueDomainsPageDataSourcesSource["Type"].asString();
|
||||
if(!valueDomainsPageDataSourcesSource["Content"].isNull())
|
||||
sourcesObject.content = valueDomainsPageDataSourcesSource["Content"].asString();
|
||||
if(!valueDomainsPageDataSourcesSource["Port"].isNull())
|
||||
sourcesObject.port = std::stoi(valueDomainsPageDataSourcesSource["Port"].asString());
|
||||
if(!valueDomainsPageDataSourcesSource["Priority"].isNull())
|
||||
sourcesObject.priority = valueDomainsPageDataSourcesSource["Priority"].asString();
|
||||
if(!valueDomainsPageDataSourcesSource["Weight"].isNull())
|
||||
sourcesObject.weight = valueDomainsPageDataSourcesSource["Weight"].asString();
|
||||
domainsObject.sources.push_back(sourcesObject);
|
||||
}
|
||||
domains_.push_back(domainsObject);
|
||||
|
||||
@@ -21,23 +21,12 @@ using AlibabaCloud::Cdn::Model::DescribeUserVipsByDomainRequest;
|
||||
DescribeUserVipsByDomainRequest::DescribeUserVipsByDomainRequest() :
|
||||
RpcServiceRequest("cdn", "2018-05-10", "DescribeUserVipsByDomain")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
setMethod(HttpRequest::Method::Get);
|
||||
}
|
||||
|
||||
DescribeUserVipsByDomainRequest::~DescribeUserVipsByDomainRequest()
|
||||
{}
|
||||
|
||||
std::string DescribeUserVipsByDomainRequest::getDomainName()const
|
||||
{
|
||||
return domainName_;
|
||||
}
|
||||
|
||||
void DescribeUserVipsByDomainRequest::setDomainName(const std::string& domainName)
|
||||
{
|
||||
domainName_ = domainName;
|
||||
setParameter("DomainName", domainName);
|
||||
}
|
||||
|
||||
std::string DescribeUserVipsByDomainRequest::getAvailable()const
|
||||
{
|
||||
return available_;
|
||||
@@ -49,6 +38,17 @@ void DescribeUserVipsByDomainRequest::setAvailable(const std::string& available)
|
||||
setParameter("Available", available);
|
||||
}
|
||||
|
||||
std::string DescribeUserVipsByDomainRequest::getDomainName()const
|
||||
{
|
||||
return domainName_;
|
||||
}
|
||||
|
||||
void DescribeUserVipsByDomainRequest::setDomainName(const std::string& domainName)
|
||||
{
|
||||
domainName_ = domainName;
|
||||
setParameter("DomainName", domainName);
|
||||
}
|
||||
|
||||
long DescribeUserVipsByDomainRequest::getOwnerId()const
|
||||
{
|
||||
return ownerId_;
|
||||
@@ -60,14 +60,3 @@ void DescribeUserVipsByDomainRequest::setOwnerId(long ownerId)
|
||||
setParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
std::string DescribeUserVipsByDomainRequest::getSecurityToken()const
|
||||
{
|
||||
return securityToken_;
|
||||
}
|
||||
|
||||
void DescribeUserVipsByDomainRequest::setSecurityToken(const std::string& securityToken)
|
||||
{
|
||||
securityToken_ = securityToken;
|
||||
setParameter("SecurityToken", securityToken);
|
||||
}
|
||||
|
||||
|
||||
@@ -19,7 +19,7 @@
|
||||
using AlibabaCloud::Cdn::Model::SetVideoSeekConfigRequest;
|
||||
|
||||
SetVideoSeekConfigRequest::SetVideoSeekConfigRequest() :
|
||||
RpcServiceRequest("cdn", "2018-05-10", "SetVideoSeekConfig")
|
||||
RpcServiceRequest("cdn", "2014-11-11", "SetVideoSeekConfig")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
@@ -27,17 +27,6 @@ SetVideoSeekConfigRequest::SetVideoSeekConfigRequest() :
|
||||
SetVideoSeekConfigRequest::~SetVideoSeekConfigRequest()
|
||||
{}
|
||||
|
||||
std::string SetVideoSeekConfigRequest::getEnable()const
|
||||
{
|
||||
return enable_;
|
||||
}
|
||||
|
||||
void SetVideoSeekConfigRequest::setEnable(const std::string& enable)
|
||||
{
|
||||
enable_ = enable;
|
||||
setParameter("Enable", enable);
|
||||
}
|
||||
|
||||
std::string SetVideoSeekConfigRequest::getDomainName()const
|
||||
{
|
||||
return domainName_;
|
||||
@@ -60,14 +49,25 @@ void SetVideoSeekConfigRequest::setOwnerId(long ownerId)
|
||||
setParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
long SetVideoSeekConfigRequest::getConfigId()const
|
||||
std::string SetVideoSeekConfigRequest::getSecurityToken()const
|
||||
{
|
||||
return configId_;
|
||||
return securityToken_;
|
||||
}
|
||||
|
||||
void SetVideoSeekConfigRequest::setConfigId(long configId)
|
||||
void SetVideoSeekConfigRequest::setSecurityToken(const std::string& securityToken)
|
||||
{
|
||||
configId_ = configId;
|
||||
setParameter("ConfigId", std::to_string(configId));
|
||||
securityToken_ = securityToken;
|
||||
setParameter("SecurityToken", securityToken);
|
||||
}
|
||||
|
||||
std::string SetVideoSeekConfigRequest::getEnable()const
|
||||
{
|
||||
return enable_;
|
||||
}
|
||||
|
||||
void SetVideoSeekConfigRequest::setEnable(const std::string& enable)
|
||||
{
|
||||
enable_ = enable;
|
||||
setParameter("Enable", enable);
|
||||
}
|
||||
|
||||
|
||||
@@ -29,6 +29,8 @@ set(cloudauth_public_header_model
|
||||
include/alibabacloud/cloudauth/model/ContrastFaceVerifyResult.h
|
||||
include/alibabacloud/cloudauth/model/CreateAuthKeyRequest.h
|
||||
include/alibabacloud/cloudauth/model/CreateAuthKeyResult.h
|
||||
include/alibabacloud/cloudauth/model/CreateFaceConfigRequest.h
|
||||
include/alibabacloud/cloudauth/model/CreateFaceConfigResult.h
|
||||
include/alibabacloud/cloudauth/model/CreateRPSDKRequest.h
|
||||
include/alibabacloud/cloudauth/model/CreateRPSDKResult.h
|
||||
include/alibabacloud/cloudauth/model/CreateVerifySDKRequest.h
|
||||
@@ -39,6 +41,8 @@ set(cloudauth_public_header_model
|
||||
include/alibabacloud/cloudauth/model/DescribeAppInfoResult.h
|
||||
include/alibabacloud/cloudauth/model/DescribeDeviceInfoRequest.h
|
||||
include/alibabacloud/cloudauth/model/DescribeDeviceInfoResult.h
|
||||
include/alibabacloud/cloudauth/model/DescribeFaceConfigRequest.h
|
||||
include/alibabacloud/cloudauth/model/DescribeFaceConfigResult.h
|
||||
include/alibabacloud/cloudauth/model/DescribeFaceUsageRequest.h
|
||||
include/alibabacloud/cloudauth/model/DescribeFaceUsageResult.h
|
||||
include/alibabacloud/cloudauth/model/DescribeFaceVerifyRequest.h
|
||||
@@ -71,6 +75,8 @@ set(cloudauth_public_header_model
|
||||
include/alibabacloud/cloudauth/model/DescribeVerifyUsageResult.h
|
||||
include/alibabacloud/cloudauth/model/DetectFaceAttributesRequest.h
|
||||
include/alibabacloud/cloudauth/model/DetectFaceAttributesResult.h
|
||||
include/alibabacloud/cloudauth/model/ElementSmartVerifyRequest.h
|
||||
include/alibabacloud/cloudauth/model/ElementSmartVerifyResult.h
|
||||
include/alibabacloud/cloudauth/model/GetMaterialsRequest.h
|
||||
include/alibabacloud/cloudauth/model/GetMaterialsResult.h
|
||||
include/alibabacloud/cloudauth/model/GetStatusRequest.h
|
||||
@@ -83,6 +89,8 @@ set(cloudauth_public_header_model
|
||||
include/alibabacloud/cloudauth/model/InitFaceVerifyResult.h
|
||||
include/alibabacloud/cloudauth/model/InitSmartVerifyRequest.h
|
||||
include/alibabacloud/cloudauth/model/InitSmartVerifyResult.h
|
||||
include/alibabacloud/cloudauth/model/LivenessDetectRequest.h
|
||||
include/alibabacloud/cloudauth/model/LivenessDetectResult.h
|
||||
include/alibabacloud/cloudauth/model/LivenessFaceVerifyRequest.h
|
||||
include/alibabacloud/cloudauth/model/LivenessFaceVerifyResult.h
|
||||
include/alibabacloud/cloudauth/model/ModifyDeviceInfoRequest.h
|
||||
@@ -93,6 +101,8 @@ set(cloudauth_public_header_model
|
||||
include/alibabacloud/cloudauth/model/SubmitVerificationResult.h
|
||||
include/alibabacloud/cloudauth/model/UpdateAppPackageRequest.h
|
||||
include/alibabacloud/cloudauth/model/UpdateAppPackageResult.h
|
||||
include/alibabacloud/cloudauth/model/UpdateFaceConfigRequest.h
|
||||
include/alibabacloud/cloudauth/model/UpdateFaceConfigResult.h
|
||||
include/alibabacloud/cloudauth/model/UpdateVerifySettingRequest.h
|
||||
include/alibabacloud/cloudauth/model/UpdateVerifySettingResult.h
|
||||
include/alibabacloud/cloudauth/model/VerifyDeviceRequest.h
|
||||
@@ -110,6 +120,8 @@ set(cloudauth_src
|
||||
src/model/ContrastFaceVerifyResult.cc
|
||||
src/model/CreateAuthKeyRequest.cc
|
||||
src/model/CreateAuthKeyResult.cc
|
||||
src/model/CreateFaceConfigRequest.cc
|
||||
src/model/CreateFaceConfigResult.cc
|
||||
src/model/CreateRPSDKRequest.cc
|
||||
src/model/CreateRPSDKResult.cc
|
||||
src/model/CreateVerifySDKRequest.cc
|
||||
@@ -120,6 +132,8 @@ set(cloudauth_src
|
||||
src/model/DescribeAppInfoResult.cc
|
||||
src/model/DescribeDeviceInfoRequest.cc
|
||||
src/model/DescribeDeviceInfoResult.cc
|
||||
src/model/DescribeFaceConfigRequest.cc
|
||||
src/model/DescribeFaceConfigResult.cc
|
||||
src/model/DescribeFaceUsageRequest.cc
|
||||
src/model/DescribeFaceUsageResult.cc
|
||||
src/model/DescribeFaceVerifyRequest.cc
|
||||
@@ -152,6 +166,8 @@ set(cloudauth_src
|
||||
src/model/DescribeVerifyUsageResult.cc
|
||||
src/model/DetectFaceAttributesRequest.cc
|
||||
src/model/DetectFaceAttributesResult.cc
|
||||
src/model/ElementSmartVerifyRequest.cc
|
||||
src/model/ElementSmartVerifyResult.cc
|
||||
src/model/GetMaterialsRequest.cc
|
||||
src/model/GetMaterialsResult.cc
|
||||
src/model/GetStatusRequest.cc
|
||||
@@ -164,6 +180,8 @@ set(cloudauth_src
|
||||
src/model/InitFaceVerifyResult.cc
|
||||
src/model/InitSmartVerifyRequest.cc
|
||||
src/model/InitSmartVerifyResult.cc
|
||||
src/model/LivenessDetectRequest.cc
|
||||
src/model/LivenessDetectResult.cc
|
||||
src/model/LivenessFaceVerifyRequest.cc
|
||||
src/model/LivenessFaceVerifyResult.cc
|
||||
src/model/ModifyDeviceInfoRequest.cc
|
||||
@@ -174,6 +192,8 @@ set(cloudauth_src
|
||||
src/model/SubmitVerificationResult.cc
|
||||
src/model/UpdateAppPackageRequest.cc
|
||||
src/model/UpdateAppPackageResult.cc
|
||||
src/model/UpdateFaceConfigRequest.cc
|
||||
src/model/UpdateFaceConfigResult.cc
|
||||
src/model/UpdateVerifySettingRequest.cc
|
||||
src/model/UpdateVerifySettingResult.cc
|
||||
src/model/VerifyDeviceRequest.cc
|
||||
|
||||
@@ -30,6 +30,8 @@
|
||||
#include "model/ContrastFaceVerifyResult.h"
|
||||
#include "model/CreateAuthKeyRequest.h"
|
||||
#include "model/CreateAuthKeyResult.h"
|
||||
#include "model/CreateFaceConfigRequest.h"
|
||||
#include "model/CreateFaceConfigResult.h"
|
||||
#include "model/CreateRPSDKRequest.h"
|
||||
#include "model/CreateRPSDKResult.h"
|
||||
#include "model/CreateVerifySDKRequest.h"
|
||||
@@ -40,6 +42,8 @@
|
||||
#include "model/DescribeAppInfoResult.h"
|
||||
#include "model/DescribeDeviceInfoRequest.h"
|
||||
#include "model/DescribeDeviceInfoResult.h"
|
||||
#include "model/DescribeFaceConfigRequest.h"
|
||||
#include "model/DescribeFaceConfigResult.h"
|
||||
#include "model/DescribeFaceUsageRequest.h"
|
||||
#include "model/DescribeFaceUsageResult.h"
|
||||
#include "model/DescribeFaceVerifyRequest.h"
|
||||
@@ -72,6 +76,8 @@
|
||||
#include "model/DescribeVerifyUsageResult.h"
|
||||
#include "model/DetectFaceAttributesRequest.h"
|
||||
#include "model/DetectFaceAttributesResult.h"
|
||||
#include "model/ElementSmartVerifyRequest.h"
|
||||
#include "model/ElementSmartVerifyResult.h"
|
||||
#include "model/GetMaterialsRequest.h"
|
||||
#include "model/GetMaterialsResult.h"
|
||||
#include "model/GetStatusRequest.h"
|
||||
@@ -84,6 +90,8 @@
|
||||
#include "model/InitFaceVerifyResult.h"
|
||||
#include "model/InitSmartVerifyRequest.h"
|
||||
#include "model/InitSmartVerifyResult.h"
|
||||
#include "model/LivenessDetectRequest.h"
|
||||
#include "model/LivenessDetectResult.h"
|
||||
#include "model/LivenessFaceVerifyRequest.h"
|
||||
#include "model/LivenessFaceVerifyResult.h"
|
||||
#include "model/ModifyDeviceInfoRequest.h"
|
||||
@@ -94,6 +102,8 @@
|
||||
#include "model/SubmitVerificationResult.h"
|
||||
#include "model/UpdateAppPackageRequest.h"
|
||||
#include "model/UpdateAppPackageResult.h"
|
||||
#include "model/UpdateFaceConfigRequest.h"
|
||||
#include "model/UpdateFaceConfigResult.h"
|
||||
#include "model/UpdateVerifySettingRequest.h"
|
||||
#include "model/UpdateVerifySettingResult.h"
|
||||
#include "model/VerifyDeviceRequest.h"
|
||||
@@ -121,6 +131,9 @@ namespace AlibabaCloud
|
||||
typedef Outcome<Error, Model::CreateAuthKeyResult> CreateAuthKeyOutcome;
|
||||
typedef std::future<CreateAuthKeyOutcome> CreateAuthKeyOutcomeCallable;
|
||||
typedef std::function<void(const CloudauthClient*, const Model::CreateAuthKeyRequest&, const CreateAuthKeyOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> CreateAuthKeyAsyncHandler;
|
||||
typedef Outcome<Error, Model::CreateFaceConfigResult> CreateFaceConfigOutcome;
|
||||
typedef std::future<CreateFaceConfigOutcome> CreateFaceConfigOutcomeCallable;
|
||||
typedef std::function<void(const CloudauthClient*, const Model::CreateFaceConfigRequest&, const CreateFaceConfigOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> CreateFaceConfigAsyncHandler;
|
||||
typedef Outcome<Error, Model::CreateRPSDKResult> CreateRPSDKOutcome;
|
||||
typedef std::future<CreateRPSDKOutcome> CreateRPSDKOutcomeCallable;
|
||||
typedef std::function<void(const CloudauthClient*, const Model::CreateRPSDKRequest&, const CreateRPSDKOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> CreateRPSDKAsyncHandler;
|
||||
@@ -136,6 +149,9 @@ namespace AlibabaCloud
|
||||
typedef Outcome<Error, Model::DescribeDeviceInfoResult> DescribeDeviceInfoOutcome;
|
||||
typedef std::future<DescribeDeviceInfoOutcome> DescribeDeviceInfoOutcomeCallable;
|
||||
typedef std::function<void(const CloudauthClient*, const Model::DescribeDeviceInfoRequest&, const DescribeDeviceInfoOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeDeviceInfoAsyncHandler;
|
||||
typedef Outcome<Error, Model::DescribeFaceConfigResult> DescribeFaceConfigOutcome;
|
||||
typedef std::future<DescribeFaceConfigOutcome> DescribeFaceConfigOutcomeCallable;
|
||||
typedef std::function<void(const CloudauthClient*, const Model::DescribeFaceConfigRequest&, const DescribeFaceConfigOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeFaceConfigAsyncHandler;
|
||||
typedef Outcome<Error, Model::DescribeFaceUsageResult> DescribeFaceUsageOutcome;
|
||||
typedef std::future<DescribeFaceUsageOutcome> DescribeFaceUsageOutcomeCallable;
|
||||
typedef std::function<void(const CloudauthClient*, const Model::DescribeFaceUsageRequest&, const DescribeFaceUsageOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeFaceUsageAsyncHandler;
|
||||
@@ -184,6 +200,9 @@ namespace AlibabaCloud
|
||||
typedef Outcome<Error, Model::DetectFaceAttributesResult> DetectFaceAttributesOutcome;
|
||||
typedef std::future<DetectFaceAttributesOutcome> DetectFaceAttributesOutcomeCallable;
|
||||
typedef std::function<void(const CloudauthClient*, const Model::DetectFaceAttributesRequest&, const DetectFaceAttributesOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DetectFaceAttributesAsyncHandler;
|
||||
typedef Outcome<Error, Model::ElementSmartVerifyResult> ElementSmartVerifyOutcome;
|
||||
typedef std::future<ElementSmartVerifyOutcome> ElementSmartVerifyOutcomeCallable;
|
||||
typedef std::function<void(const CloudauthClient*, const Model::ElementSmartVerifyRequest&, const ElementSmartVerifyOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ElementSmartVerifyAsyncHandler;
|
||||
typedef Outcome<Error, Model::GetMaterialsResult> GetMaterialsOutcome;
|
||||
typedef std::future<GetMaterialsOutcome> GetMaterialsOutcomeCallable;
|
||||
typedef std::function<void(const CloudauthClient*, const Model::GetMaterialsRequest&, const GetMaterialsOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetMaterialsAsyncHandler;
|
||||
@@ -202,6 +221,9 @@ namespace AlibabaCloud
|
||||
typedef Outcome<Error, Model::InitSmartVerifyResult> InitSmartVerifyOutcome;
|
||||
typedef std::future<InitSmartVerifyOutcome> InitSmartVerifyOutcomeCallable;
|
||||
typedef std::function<void(const CloudauthClient*, const Model::InitSmartVerifyRequest&, const InitSmartVerifyOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> InitSmartVerifyAsyncHandler;
|
||||
typedef Outcome<Error, Model::LivenessDetectResult> LivenessDetectOutcome;
|
||||
typedef std::future<LivenessDetectOutcome> LivenessDetectOutcomeCallable;
|
||||
typedef std::function<void(const CloudauthClient*, const Model::LivenessDetectRequest&, const LivenessDetectOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> LivenessDetectAsyncHandler;
|
||||
typedef Outcome<Error, Model::LivenessFaceVerifyResult> LivenessFaceVerifyOutcome;
|
||||
typedef std::future<LivenessFaceVerifyOutcome> LivenessFaceVerifyOutcomeCallable;
|
||||
typedef std::function<void(const CloudauthClient*, const Model::LivenessFaceVerifyRequest&, const LivenessFaceVerifyOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> LivenessFaceVerifyAsyncHandler;
|
||||
@@ -217,6 +239,9 @@ namespace AlibabaCloud
|
||||
typedef Outcome<Error, Model::UpdateAppPackageResult> UpdateAppPackageOutcome;
|
||||
typedef std::future<UpdateAppPackageOutcome> UpdateAppPackageOutcomeCallable;
|
||||
typedef std::function<void(const CloudauthClient*, const Model::UpdateAppPackageRequest&, const UpdateAppPackageOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> UpdateAppPackageAsyncHandler;
|
||||
typedef Outcome<Error, Model::UpdateFaceConfigResult> UpdateFaceConfigOutcome;
|
||||
typedef std::future<UpdateFaceConfigOutcome> UpdateFaceConfigOutcomeCallable;
|
||||
typedef std::function<void(const CloudauthClient*, const Model::UpdateFaceConfigRequest&, const UpdateFaceConfigOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> UpdateFaceConfigAsyncHandler;
|
||||
typedef Outcome<Error, Model::UpdateVerifySettingResult> UpdateVerifySettingOutcome;
|
||||
typedef std::future<UpdateVerifySettingOutcome> UpdateVerifySettingOutcomeCallable;
|
||||
typedef std::function<void(const CloudauthClient*, const Model::UpdateVerifySettingRequest&, const UpdateVerifySettingOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> UpdateVerifySettingAsyncHandler;
|
||||
@@ -243,6 +268,9 @@ namespace AlibabaCloud
|
||||
CreateAuthKeyOutcome createAuthKey(const Model::CreateAuthKeyRequest &request)const;
|
||||
void createAuthKeyAsync(const Model::CreateAuthKeyRequest& request, const CreateAuthKeyAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
CreateAuthKeyOutcomeCallable createAuthKeyCallable(const Model::CreateAuthKeyRequest& request) const;
|
||||
CreateFaceConfigOutcome createFaceConfig(const Model::CreateFaceConfigRequest &request)const;
|
||||
void createFaceConfigAsync(const Model::CreateFaceConfigRequest& request, const CreateFaceConfigAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
CreateFaceConfigOutcomeCallable createFaceConfigCallable(const Model::CreateFaceConfigRequest& request) const;
|
||||
CreateRPSDKOutcome createRPSDK(const Model::CreateRPSDKRequest &request)const;
|
||||
void createRPSDKAsync(const Model::CreateRPSDKRequest& request, const CreateRPSDKAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
CreateRPSDKOutcomeCallable createRPSDKCallable(const Model::CreateRPSDKRequest& request) const;
|
||||
@@ -258,6 +286,9 @@ namespace AlibabaCloud
|
||||
DescribeDeviceInfoOutcome describeDeviceInfo(const Model::DescribeDeviceInfoRequest &request)const;
|
||||
void describeDeviceInfoAsync(const Model::DescribeDeviceInfoRequest& request, const DescribeDeviceInfoAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DescribeDeviceInfoOutcomeCallable describeDeviceInfoCallable(const Model::DescribeDeviceInfoRequest& request) const;
|
||||
DescribeFaceConfigOutcome describeFaceConfig(const Model::DescribeFaceConfigRequest &request)const;
|
||||
void describeFaceConfigAsync(const Model::DescribeFaceConfigRequest& request, const DescribeFaceConfigAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DescribeFaceConfigOutcomeCallable describeFaceConfigCallable(const Model::DescribeFaceConfigRequest& request) const;
|
||||
DescribeFaceUsageOutcome describeFaceUsage(const Model::DescribeFaceUsageRequest &request)const;
|
||||
void describeFaceUsageAsync(const Model::DescribeFaceUsageRequest& request, const DescribeFaceUsageAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DescribeFaceUsageOutcomeCallable describeFaceUsageCallable(const Model::DescribeFaceUsageRequest& request) const;
|
||||
@@ -306,6 +337,9 @@ namespace AlibabaCloud
|
||||
DetectFaceAttributesOutcome detectFaceAttributes(const Model::DetectFaceAttributesRequest &request)const;
|
||||
void detectFaceAttributesAsync(const Model::DetectFaceAttributesRequest& request, const DetectFaceAttributesAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DetectFaceAttributesOutcomeCallable detectFaceAttributesCallable(const Model::DetectFaceAttributesRequest& request) const;
|
||||
ElementSmartVerifyOutcome elementSmartVerify(const Model::ElementSmartVerifyRequest &request)const;
|
||||
void elementSmartVerifyAsync(const Model::ElementSmartVerifyRequest& request, const ElementSmartVerifyAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
ElementSmartVerifyOutcomeCallable elementSmartVerifyCallable(const Model::ElementSmartVerifyRequest& request) const;
|
||||
GetMaterialsOutcome getMaterials(const Model::GetMaterialsRequest &request)const;
|
||||
void getMaterialsAsync(const Model::GetMaterialsRequest& request, const GetMaterialsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
GetMaterialsOutcomeCallable getMaterialsCallable(const Model::GetMaterialsRequest& request) const;
|
||||
@@ -324,6 +358,9 @@ namespace AlibabaCloud
|
||||
InitSmartVerifyOutcome initSmartVerify(const Model::InitSmartVerifyRequest &request)const;
|
||||
void initSmartVerifyAsync(const Model::InitSmartVerifyRequest& request, const InitSmartVerifyAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
InitSmartVerifyOutcomeCallable initSmartVerifyCallable(const Model::InitSmartVerifyRequest& request) const;
|
||||
LivenessDetectOutcome livenessDetect(const Model::LivenessDetectRequest &request)const;
|
||||
void livenessDetectAsync(const Model::LivenessDetectRequest& request, const LivenessDetectAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
LivenessDetectOutcomeCallable livenessDetectCallable(const Model::LivenessDetectRequest& request) const;
|
||||
LivenessFaceVerifyOutcome livenessFaceVerify(const Model::LivenessFaceVerifyRequest &request)const;
|
||||
void livenessFaceVerifyAsync(const Model::LivenessFaceVerifyRequest& request, const LivenessFaceVerifyAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
LivenessFaceVerifyOutcomeCallable livenessFaceVerifyCallable(const Model::LivenessFaceVerifyRequest& request) const;
|
||||
@@ -339,6 +376,9 @@ namespace AlibabaCloud
|
||||
UpdateAppPackageOutcome updateAppPackage(const Model::UpdateAppPackageRequest &request)const;
|
||||
void updateAppPackageAsync(const Model::UpdateAppPackageRequest& request, const UpdateAppPackageAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
UpdateAppPackageOutcomeCallable updateAppPackageCallable(const Model::UpdateAppPackageRequest& request) const;
|
||||
UpdateFaceConfigOutcome updateFaceConfig(const Model::UpdateFaceConfigRequest &request)const;
|
||||
void updateFaceConfigAsync(const Model::UpdateFaceConfigRequest& request, const UpdateFaceConfigAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
UpdateFaceConfigOutcomeCallable updateFaceConfigCallable(const Model::UpdateFaceConfigRequest& request) const;
|
||||
UpdateVerifySettingOutcome updateVerifySetting(const Model::UpdateVerifySettingRequest &request)const;
|
||||
void updateVerifySettingAsync(const Model::UpdateVerifySettingRequest& request, const UpdateVerifySettingAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
UpdateVerifySettingOutcomeCallable updateVerifySettingCallable(const Model::UpdateVerifySettingRequest& request) const;
|
||||
|
||||
@@ -63,6 +63,8 @@ namespace AlibabaCloud
|
||||
void setIp(const std::string& ip);
|
||||
std::string getMobile()const;
|
||||
void setMobile(const std::string& mobile);
|
||||
std::string getFaceContrastFile()const;
|
||||
void setFaceContrastFile(const std::string& faceContrastFile);
|
||||
long getSceneId()const;
|
||||
void setSceneId(long sceneId);
|
||||
std::string getOssBucketName()const;
|
||||
@@ -83,6 +85,7 @@ namespace AlibabaCloud
|
||||
std::string certName_;
|
||||
std::string ip_;
|
||||
std::string mobile_;
|
||||
std::string faceContrastFile_;
|
||||
long sceneId_;
|
||||
std::string ossBucketName_;
|
||||
|
||||
|
||||
@@ -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_CLOUDAUTH_MODEL_CREATEFACECONFIGREQUEST_H_
|
||||
#define ALIBABACLOUD_CLOUDAUTH_MODEL_CREATEFACECONFIGREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/cloudauth/CloudauthExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Cloudauth
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_CLOUDAUTH_EXPORT CreateFaceConfigRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
CreateFaceConfigRequest();
|
||||
~CreateFaceConfigRequest();
|
||||
|
||||
std::string getBizName()const;
|
||||
void setBizName(const std::string& bizName);
|
||||
std::string getBizType()const;
|
||||
void setBizType(const std::string& bizType);
|
||||
std::string getSourceIp()const;
|
||||
void setSourceIp(const std::string& sourceIp);
|
||||
std::string getLang()const;
|
||||
void setLang(const std::string& lang);
|
||||
|
||||
private:
|
||||
std::string bizName_;
|
||||
std::string bizType_;
|
||||
std::string sourceIp_;
|
||||
std::string lang_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_CLOUDAUTH_MODEL_CREATEFACECONFIGREQUEST_H_
|
||||
@@ -0,0 +1,49 @@
|
||||
/*
|
||||
* 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_CLOUDAUTH_MODEL_CREATEFACECONFIGRESULT_H_
|
||||
#define ALIBABACLOUD_CLOUDAUTH_MODEL_CREATEFACECONFIGRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/cloudauth/CloudauthExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Cloudauth
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_CLOUDAUTH_EXPORT CreateFaceConfigResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
|
||||
|
||||
CreateFaceConfigResult();
|
||||
explicit CreateFaceConfigResult(const std::string &payload);
|
||||
~CreateFaceConfigResult();
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_CLOUDAUTH_MODEL_CREATEFACECONFIGRESULT_H_
|
||||
@@ -0,0 +1,51 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_CLOUDAUTH_MODEL_DESCRIBEFACECONFIGREQUEST_H_
|
||||
#define ALIBABACLOUD_CLOUDAUTH_MODEL_DESCRIBEFACECONFIGREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/cloudauth/CloudauthExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Cloudauth
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_CLOUDAUTH_EXPORT DescribeFaceConfigRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
DescribeFaceConfigRequest();
|
||||
~DescribeFaceConfigRequest();
|
||||
|
||||
std::string getSourceIp()const;
|
||||
void setSourceIp(const std::string& sourceIp);
|
||||
std::string getLang()const;
|
||||
void setLang(const std::string& lang);
|
||||
|
||||
private:
|
||||
std::string sourceIp_;
|
||||
std::string lang_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_CLOUDAUTH_MODEL_DESCRIBEFACECONFIGREQUEST_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_CLOUDAUTH_MODEL_DESCRIBEFACECONFIGRESULT_H_
|
||||
#define ALIBABACLOUD_CLOUDAUTH_MODEL_DESCRIBEFACECONFIGRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/cloudauth/CloudauthExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Cloudauth
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_CLOUDAUTH_EXPORT DescribeFaceConfigResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct ItemsItem
|
||||
{
|
||||
long gmtUpdated;
|
||||
std::string bizType;
|
||||
std::string bizName;
|
||||
};
|
||||
|
||||
|
||||
DescribeFaceConfigResult();
|
||||
explicit DescribeFaceConfigResult(const std::string &payload);
|
||||
~DescribeFaceConfigResult();
|
||||
std::vector<ItemsItem> getItems()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::vector<ItemsItem> items_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_CLOUDAUTH_MODEL_DESCRIBEFACECONFIGRESULT_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_CLOUDAUTH_MODEL_ELEMENTSMARTVERIFYREQUEST_H_
|
||||
#define ALIBABACLOUD_CLOUDAUTH_MODEL_ELEMENTSMARTVERIFYREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/cloudauth/CloudauthExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Cloudauth
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_CLOUDAUTH_EXPORT ElementSmartVerifyRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
ElementSmartVerifyRequest();
|
||||
~ElementSmartVerifyRequest();
|
||||
|
||||
std::string getCertFile()const;
|
||||
void setCertFile(const std::string& certFile);
|
||||
std::string getCertName()const;
|
||||
void setCertName(const std::string& certName);
|
||||
std::string getMode()const;
|
||||
void setMode(const std::string& mode);
|
||||
std::string getCertNo()const;
|
||||
void setCertNo(const std::string& certNo);
|
||||
std::string getOuterOrderNo()const;
|
||||
void setOuterOrderNo(const std::string& outerOrderNo);
|
||||
std::string getCertUrl()const;
|
||||
void setCertUrl(const std::string& certUrl);
|
||||
std::string getCertType()const;
|
||||
void setCertType(const std::string& certType);
|
||||
long getSceneId()const;
|
||||
void setSceneId(long sceneId);
|
||||
|
||||
private:
|
||||
std::string certFile_;
|
||||
std::string certName_;
|
||||
std::string mode_;
|
||||
std::string certNo_;
|
||||
std::string outerOrderNo_;
|
||||
std::string certUrl_;
|
||||
std::string certType_;
|
||||
long sceneId_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_CLOUDAUTH_MODEL_ELEMENTSMARTVERIFYREQUEST_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_CLOUDAUTH_MODEL_ELEMENTSMARTVERIFYRESULT_H_
|
||||
#define ALIBABACLOUD_CLOUDAUTH_MODEL_ELEMENTSMARTVERIFYRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/cloudauth/CloudauthExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Cloudauth
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_CLOUDAUTH_EXPORT ElementSmartVerifyResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct ResultObject
|
||||
{
|
||||
std::string passed;
|
||||
std::string materialInfo;
|
||||
std::string subCode;
|
||||
};
|
||||
|
||||
|
||||
ElementSmartVerifyResult();
|
||||
explicit ElementSmartVerifyResult(const std::string &payload);
|
||||
~ElementSmartVerifyResult();
|
||||
ResultObject getResultObject()const;
|
||||
std::string getMessage()const;
|
||||
std::string getCode()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
ResultObject resultObject_;
|
||||
std::string message_;
|
||||
std::string code_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_CLOUDAUTH_MODEL_ELEMENTSMARTVERIFYRESULT_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_CLOUDAUTH_MODEL_LIVENESSDETECTREQUEST_H_
|
||||
#define ALIBABACLOUD_CLOUDAUTH_MODEL_LIVENESSDETECTREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/cloudauth/CloudauthExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Cloudauth
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_CLOUDAUTH_EXPORT LivenessDetectRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
LivenessDetectRequest();
|
||||
~LivenessDetectRequest();
|
||||
|
||||
std::string getMediaCategory()const;
|
||||
void setMediaCategory(const std::string& mediaCategory);
|
||||
std::string getMediaUrl()const;
|
||||
void setMediaUrl(const std::string& mediaUrl);
|
||||
std::string getBizType()const;
|
||||
void setBizType(const std::string& bizType);
|
||||
std::string getBizId()const;
|
||||
void setBizId(const std::string& bizId);
|
||||
std::string getMediaFile()const;
|
||||
void setMediaFile(const std::string& mediaFile);
|
||||
|
||||
private:
|
||||
std::string mediaCategory_;
|
||||
std::string mediaUrl_;
|
||||
std::string bizType_;
|
||||
std::string bizId_;
|
||||
std::string mediaFile_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_CLOUDAUTH_MODEL_LIVENESSDETECTREQUEST_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_CLOUDAUTH_MODEL_LIVENESSDETECTRESULT_H_
|
||||
#define ALIBABACLOUD_CLOUDAUTH_MODEL_LIVENESSDETECTRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/cloudauth/CloudauthExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Cloudauth
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_CLOUDAUTH_EXPORT LivenessDetectResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct ResultObject
|
||||
{
|
||||
std::string passed;
|
||||
float score;
|
||||
std::string frameUrl;
|
||||
};
|
||||
|
||||
|
||||
LivenessDetectResult();
|
||||
explicit LivenessDetectResult(const std::string &payload);
|
||||
~LivenessDetectResult();
|
||||
ResultObject getResultObject()const;
|
||||
std::string getMessage()const;
|
||||
std::string getCode()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
ResultObject resultObject_;
|
||||
std::string message_;
|
||||
std::string code_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_CLOUDAUTH_MODEL_LIVENESSDETECTRESULT_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_CLOUDAUTH_MODEL_UPDATEFACECONFIGREQUEST_H_
|
||||
#define ALIBABACLOUD_CLOUDAUTH_MODEL_UPDATEFACECONFIGREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/cloudauth/CloudauthExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Cloudauth
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_CLOUDAUTH_EXPORT UpdateFaceConfigRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
UpdateFaceConfigRequest();
|
||||
~UpdateFaceConfigRequest();
|
||||
|
||||
std::string getBizName()const;
|
||||
void setBizName(const std::string& bizName);
|
||||
std::string getBizType()const;
|
||||
void setBizType(const std::string& bizType);
|
||||
std::string getSourceIp()const;
|
||||
void setSourceIp(const std::string& sourceIp);
|
||||
std::string getLang()const;
|
||||
void setLang(const std::string& lang);
|
||||
|
||||
private:
|
||||
std::string bizName_;
|
||||
std::string bizType_;
|
||||
std::string sourceIp_;
|
||||
std::string lang_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_CLOUDAUTH_MODEL_UPDATEFACECONFIGREQUEST_H_
|
||||
@@ -0,0 +1,49 @@
|
||||
/*
|
||||
* 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_CLOUDAUTH_MODEL_UPDATEFACECONFIGRESULT_H_
|
||||
#define ALIBABACLOUD_CLOUDAUTH_MODEL_UPDATEFACECONFIGRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/cloudauth/CloudauthExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Cloudauth
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_CLOUDAUTH_EXPORT UpdateFaceConfigResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
|
||||
|
||||
UpdateFaceConfigResult();
|
||||
explicit UpdateFaceConfigResult(const std::string &payload);
|
||||
~UpdateFaceConfigResult();
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_CLOUDAUTH_MODEL_UPDATEFACECONFIGRESULT_H_
|
||||
@@ -195,6 +195,42 @@ CloudauthClient::CreateAuthKeyOutcomeCallable CloudauthClient::createAuthKeyCall
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
CloudauthClient::CreateFaceConfigOutcome CloudauthClient::createFaceConfig(const CreateFaceConfigRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return CreateFaceConfigOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return CreateFaceConfigOutcome(CreateFaceConfigResult(outcome.result()));
|
||||
else
|
||||
return CreateFaceConfigOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void CloudauthClient::createFaceConfigAsync(const CreateFaceConfigRequest& request, const CreateFaceConfigAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, createFaceConfig(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
CloudauthClient::CreateFaceConfigOutcomeCallable CloudauthClient::createFaceConfigCallable(const CreateFaceConfigRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<CreateFaceConfigOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->createFaceConfig(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
CloudauthClient::CreateRPSDKOutcome CloudauthClient::createRPSDK(const CreateRPSDKRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -375,6 +411,42 @@ CloudauthClient::DescribeDeviceInfoOutcomeCallable CloudauthClient::describeDevi
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
CloudauthClient::DescribeFaceConfigOutcome CloudauthClient::describeFaceConfig(const DescribeFaceConfigRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return DescribeFaceConfigOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return DescribeFaceConfigOutcome(DescribeFaceConfigResult(outcome.result()));
|
||||
else
|
||||
return DescribeFaceConfigOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void CloudauthClient::describeFaceConfigAsync(const DescribeFaceConfigRequest& request, const DescribeFaceConfigAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, describeFaceConfig(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
CloudauthClient::DescribeFaceConfigOutcomeCallable CloudauthClient::describeFaceConfigCallable(const DescribeFaceConfigRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<DescribeFaceConfigOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->describeFaceConfig(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
CloudauthClient::DescribeFaceUsageOutcome CloudauthClient::describeFaceUsage(const DescribeFaceUsageRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -951,6 +1023,42 @@ CloudauthClient::DetectFaceAttributesOutcomeCallable CloudauthClient::detectFace
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
CloudauthClient::ElementSmartVerifyOutcome CloudauthClient::elementSmartVerify(const ElementSmartVerifyRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return ElementSmartVerifyOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return ElementSmartVerifyOutcome(ElementSmartVerifyResult(outcome.result()));
|
||||
else
|
||||
return ElementSmartVerifyOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void CloudauthClient::elementSmartVerifyAsync(const ElementSmartVerifyRequest& request, const ElementSmartVerifyAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, elementSmartVerify(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
CloudauthClient::ElementSmartVerifyOutcomeCallable CloudauthClient::elementSmartVerifyCallable(const ElementSmartVerifyRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<ElementSmartVerifyOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->elementSmartVerify(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
CloudauthClient::GetMaterialsOutcome CloudauthClient::getMaterials(const GetMaterialsRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -1167,6 +1275,42 @@ CloudauthClient::InitSmartVerifyOutcomeCallable CloudauthClient::initSmartVerify
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
CloudauthClient::LivenessDetectOutcome CloudauthClient::livenessDetect(const LivenessDetectRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return LivenessDetectOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return LivenessDetectOutcome(LivenessDetectResult(outcome.result()));
|
||||
else
|
||||
return LivenessDetectOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void CloudauthClient::livenessDetectAsync(const LivenessDetectRequest& request, const LivenessDetectAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, livenessDetect(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
CloudauthClient::LivenessDetectOutcomeCallable CloudauthClient::livenessDetectCallable(const LivenessDetectRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<LivenessDetectOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->livenessDetect(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
CloudauthClient::LivenessFaceVerifyOutcome CloudauthClient::livenessFaceVerify(const LivenessFaceVerifyRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -1347,6 +1491,42 @@ CloudauthClient::UpdateAppPackageOutcomeCallable CloudauthClient::updateAppPacka
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
CloudauthClient::UpdateFaceConfigOutcome CloudauthClient::updateFaceConfig(const UpdateFaceConfigRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return UpdateFaceConfigOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return UpdateFaceConfigOutcome(UpdateFaceConfigResult(outcome.result()));
|
||||
else
|
||||
return UpdateFaceConfigOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void CloudauthClient::updateFaceConfigAsync(const UpdateFaceConfigRequest& request, const UpdateFaceConfigAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, updateFaceConfig(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
CloudauthClient::UpdateFaceConfigOutcomeCallable CloudauthClient::updateFaceConfigCallable(const UpdateFaceConfigRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<UpdateFaceConfigOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->updateFaceConfig(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
CloudauthClient::UpdateVerifySettingOutcome CloudauthClient::updateVerifySetting(const UpdateVerifySettingRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
|
||||
@@ -181,6 +181,17 @@ void ContrastFaceVerifyRequest::setMobile(const std::string& mobile)
|
||||
setBodyParameter("Mobile", mobile);
|
||||
}
|
||||
|
||||
std::string ContrastFaceVerifyRequest::getFaceContrastFile()const
|
||||
{
|
||||
return faceContrastFile_;
|
||||
}
|
||||
|
||||
void ContrastFaceVerifyRequest::setFaceContrastFile(const std::string& faceContrastFile)
|
||||
{
|
||||
faceContrastFile_ = faceContrastFile;
|
||||
setBodyParameter("FaceContrastFile", faceContrastFile);
|
||||
}
|
||||
|
||||
long ContrastFaceVerifyRequest::getSceneId()const
|
||||
{
|
||||
return sceneId_;
|
||||
|
||||
73
cloudauth/src/model/CreateFaceConfigRequest.cc
Normal file
73
cloudauth/src/model/CreateFaceConfigRequest.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/cloudauth/model/CreateFaceConfigRequest.h>
|
||||
|
||||
using AlibabaCloud::Cloudauth::Model::CreateFaceConfigRequest;
|
||||
|
||||
CreateFaceConfigRequest::CreateFaceConfigRequest() :
|
||||
RpcServiceRequest("cloudauth", "2019-03-07", "CreateFaceConfig")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
CreateFaceConfigRequest::~CreateFaceConfigRequest()
|
||||
{}
|
||||
|
||||
std::string CreateFaceConfigRequest::getBizName()const
|
||||
{
|
||||
return bizName_;
|
||||
}
|
||||
|
||||
void CreateFaceConfigRequest::setBizName(const std::string& bizName)
|
||||
{
|
||||
bizName_ = bizName;
|
||||
setParameter("BizName", bizName);
|
||||
}
|
||||
|
||||
std::string CreateFaceConfigRequest::getBizType()const
|
||||
{
|
||||
return bizType_;
|
||||
}
|
||||
|
||||
void CreateFaceConfigRequest::setBizType(const std::string& bizType)
|
||||
{
|
||||
bizType_ = bizType;
|
||||
setParameter("BizType", bizType);
|
||||
}
|
||||
|
||||
std::string CreateFaceConfigRequest::getSourceIp()const
|
||||
{
|
||||
return sourceIp_;
|
||||
}
|
||||
|
||||
void CreateFaceConfigRequest::setSourceIp(const std::string& sourceIp)
|
||||
{
|
||||
sourceIp_ = sourceIp;
|
||||
setParameter("SourceIp", sourceIp);
|
||||
}
|
||||
|
||||
std::string CreateFaceConfigRequest::getLang()const
|
||||
{
|
||||
return lang_;
|
||||
}
|
||||
|
||||
void CreateFaceConfigRequest::setLang(const std::string& lang)
|
||||
{
|
||||
lang_ = lang;
|
||||
setParameter("Lang", lang);
|
||||
}
|
||||
|
||||
44
cloudauth/src/model/CreateFaceConfigResult.cc
Normal file
44
cloudauth/src/model/CreateFaceConfigResult.cc
Normal file
@@ -0,0 +1,44 @@
|
||||
/*
|
||||
* 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/cloudauth/model/CreateFaceConfigResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Cloudauth;
|
||||
using namespace AlibabaCloud::Cloudauth::Model;
|
||||
|
||||
CreateFaceConfigResult::CreateFaceConfigResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
CreateFaceConfigResult::CreateFaceConfigResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
CreateFaceConfigResult::~CreateFaceConfigResult()
|
||||
{}
|
||||
|
||||
void CreateFaceConfigResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
|
||||
}
|
||||
|
||||
51
cloudauth/src/model/DescribeFaceConfigRequest.cc
Normal file
51
cloudauth/src/model/DescribeFaceConfigRequest.cc
Normal file
@@ -0,0 +1,51 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/cloudauth/model/DescribeFaceConfigRequest.h>
|
||||
|
||||
using AlibabaCloud::Cloudauth::Model::DescribeFaceConfigRequest;
|
||||
|
||||
DescribeFaceConfigRequest::DescribeFaceConfigRequest() :
|
||||
RpcServiceRequest("cloudauth", "2019-03-07", "DescribeFaceConfig")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DescribeFaceConfigRequest::~DescribeFaceConfigRequest()
|
||||
{}
|
||||
|
||||
std::string DescribeFaceConfigRequest::getSourceIp()const
|
||||
{
|
||||
return sourceIp_;
|
||||
}
|
||||
|
||||
void DescribeFaceConfigRequest::setSourceIp(const std::string& sourceIp)
|
||||
{
|
||||
sourceIp_ = sourceIp;
|
||||
setParameter("SourceIp", sourceIp);
|
||||
}
|
||||
|
||||
std::string DescribeFaceConfigRequest::getLang()const
|
||||
{
|
||||
return lang_;
|
||||
}
|
||||
|
||||
void DescribeFaceConfigRequest::setLang(const std::string& lang)
|
||||
{
|
||||
lang_ = lang;
|
||||
setParameter("Lang", lang);
|
||||
}
|
||||
|
||||
61
cloudauth/src/model/DescribeFaceConfigResult.cc
Normal file
61
cloudauth/src/model/DescribeFaceConfigResult.cc
Normal file
@@ -0,0 +1,61 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/cloudauth/model/DescribeFaceConfigResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Cloudauth;
|
||||
using namespace AlibabaCloud::Cloudauth::Model;
|
||||
|
||||
DescribeFaceConfigResult::DescribeFaceConfigResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DescribeFaceConfigResult::DescribeFaceConfigResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DescribeFaceConfigResult::~DescribeFaceConfigResult()
|
||||
{}
|
||||
|
||||
void DescribeFaceConfigResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allItemsNode = value["Items"]["ItemsItem"];
|
||||
for (auto valueItemsItemsItem : allItemsNode)
|
||||
{
|
||||
ItemsItem itemsObject;
|
||||
if(!valueItemsItemsItem["BizType"].isNull())
|
||||
itemsObject.bizType = valueItemsItemsItem["BizType"].asString();
|
||||
if(!valueItemsItemsItem["BizName"].isNull())
|
||||
itemsObject.bizName = valueItemsItemsItem["BizName"].asString();
|
||||
if(!valueItemsItemsItem["GmtUpdated"].isNull())
|
||||
itemsObject.gmtUpdated = std::stol(valueItemsItemsItem["GmtUpdated"].asString());
|
||||
items_.push_back(itemsObject);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
std::vector<DescribeFaceConfigResult::ItemsItem> DescribeFaceConfigResult::getItems()const
|
||||
{
|
||||
return items_;
|
||||
}
|
||||
|
||||
117
cloudauth/src/model/ElementSmartVerifyRequest.cc
Normal file
117
cloudauth/src/model/ElementSmartVerifyRequest.cc
Normal file
@@ -0,0 +1,117 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/cloudauth/model/ElementSmartVerifyRequest.h>
|
||||
|
||||
using AlibabaCloud::Cloudauth::Model::ElementSmartVerifyRequest;
|
||||
|
||||
ElementSmartVerifyRequest::ElementSmartVerifyRequest() :
|
||||
RpcServiceRequest("cloudauth", "2020-06-18", "ElementSmartVerify")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
ElementSmartVerifyRequest::~ElementSmartVerifyRequest()
|
||||
{}
|
||||
|
||||
std::string ElementSmartVerifyRequest::getCertFile()const
|
||||
{
|
||||
return certFile_;
|
||||
}
|
||||
|
||||
void ElementSmartVerifyRequest::setCertFile(const std::string& certFile)
|
||||
{
|
||||
certFile_ = certFile;
|
||||
setBodyParameter("CertFile", certFile);
|
||||
}
|
||||
|
||||
std::string ElementSmartVerifyRequest::getCertName()const
|
||||
{
|
||||
return certName_;
|
||||
}
|
||||
|
||||
void ElementSmartVerifyRequest::setCertName(const std::string& certName)
|
||||
{
|
||||
certName_ = certName;
|
||||
setBodyParameter("CertName", certName);
|
||||
}
|
||||
|
||||
std::string ElementSmartVerifyRequest::getMode()const
|
||||
{
|
||||
return mode_;
|
||||
}
|
||||
|
||||
void ElementSmartVerifyRequest::setMode(const std::string& mode)
|
||||
{
|
||||
mode_ = mode;
|
||||
setBodyParameter("Mode", mode);
|
||||
}
|
||||
|
||||
std::string ElementSmartVerifyRequest::getCertNo()const
|
||||
{
|
||||
return certNo_;
|
||||
}
|
||||
|
||||
void ElementSmartVerifyRequest::setCertNo(const std::string& certNo)
|
||||
{
|
||||
certNo_ = certNo;
|
||||
setBodyParameter("CertNo", certNo);
|
||||
}
|
||||
|
||||
std::string ElementSmartVerifyRequest::getOuterOrderNo()const
|
||||
{
|
||||
return outerOrderNo_;
|
||||
}
|
||||
|
||||
void ElementSmartVerifyRequest::setOuterOrderNo(const std::string& outerOrderNo)
|
||||
{
|
||||
outerOrderNo_ = outerOrderNo;
|
||||
setBodyParameter("OuterOrderNo", outerOrderNo);
|
||||
}
|
||||
|
||||
std::string ElementSmartVerifyRequest::getCertUrl()const
|
||||
{
|
||||
return certUrl_;
|
||||
}
|
||||
|
||||
void ElementSmartVerifyRequest::setCertUrl(const std::string& certUrl)
|
||||
{
|
||||
certUrl_ = certUrl;
|
||||
setBodyParameter("CertUrl", certUrl);
|
||||
}
|
||||
|
||||
std::string ElementSmartVerifyRequest::getCertType()const
|
||||
{
|
||||
return certType_;
|
||||
}
|
||||
|
||||
void ElementSmartVerifyRequest::setCertType(const std::string& certType)
|
||||
{
|
||||
certType_ = certType;
|
||||
setBodyParameter("CertType", certType);
|
||||
}
|
||||
|
||||
long ElementSmartVerifyRequest::getSceneId()const
|
||||
{
|
||||
return sceneId_;
|
||||
}
|
||||
|
||||
void ElementSmartVerifyRequest::setSceneId(long sceneId)
|
||||
{
|
||||
sceneId_ = sceneId;
|
||||
setBodyParameter("SceneId", std::to_string(sceneId));
|
||||
}
|
||||
|
||||
70
cloudauth/src/model/ElementSmartVerifyResult.cc
Normal file
70
cloudauth/src/model/ElementSmartVerifyResult.cc
Normal file
@@ -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.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/cloudauth/model/ElementSmartVerifyResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Cloudauth;
|
||||
using namespace AlibabaCloud::Cloudauth::Model;
|
||||
|
||||
ElementSmartVerifyResult::ElementSmartVerifyResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
ElementSmartVerifyResult::ElementSmartVerifyResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
ElementSmartVerifyResult::~ElementSmartVerifyResult()
|
||||
{}
|
||||
|
||||
void ElementSmartVerifyResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto resultObjectNode = value["ResultObject"];
|
||||
if(!resultObjectNode["Passed"].isNull())
|
||||
resultObject_.passed = resultObjectNode["Passed"].asString();
|
||||
if(!resultObjectNode["SubCode"].isNull())
|
||||
resultObject_.subCode = resultObjectNode["SubCode"].asString();
|
||||
if(!resultObjectNode["MaterialInfo"].isNull())
|
||||
resultObject_.materialInfo = resultObjectNode["MaterialInfo"].asString();
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
if(!value["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
|
||||
}
|
||||
|
||||
ElementSmartVerifyResult::ResultObject ElementSmartVerifyResult::getResultObject()const
|
||||
{
|
||||
return resultObject_;
|
||||
}
|
||||
|
||||
std::string ElementSmartVerifyResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
std::string ElementSmartVerifyResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
84
cloudauth/src/model/LivenessDetectRequest.cc
Normal file
84
cloudauth/src/model/LivenessDetectRequest.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/cloudauth/model/LivenessDetectRequest.h>
|
||||
|
||||
using AlibabaCloud::Cloudauth::Model::LivenessDetectRequest;
|
||||
|
||||
LivenessDetectRequest::LivenessDetectRequest() :
|
||||
RpcServiceRequest("cloudauth", "2020-11-12", "LivenessDetect")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
LivenessDetectRequest::~LivenessDetectRequest()
|
||||
{}
|
||||
|
||||
std::string LivenessDetectRequest::getMediaCategory()const
|
||||
{
|
||||
return mediaCategory_;
|
||||
}
|
||||
|
||||
void LivenessDetectRequest::setMediaCategory(const std::string& mediaCategory)
|
||||
{
|
||||
mediaCategory_ = mediaCategory;
|
||||
setBodyParameter("MediaCategory", mediaCategory);
|
||||
}
|
||||
|
||||
std::string LivenessDetectRequest::getMediaUrl()const
|
||||
{
|
||||
return mediaUrl_;
|
||||
}
|
||||
|
||||
void LivenessDetectRequest::setMediaUrl(const std::string& mediaUrl)
|
||||
{
|
||||
mediaUrl_ = mediaUrl;
|
||||
setBodyParameter("MediaUrl", mediaUrl);
|
||||
}
|
||||
|
||||
std::string LivenessDetectRequest::getBizType()const
|
||||
{
|
||||
return bizType_;
|
||||
}
|
||||
|
||||
void LivenessDetectRequest::setBizType(const std::string& bizType)
|
||||
{
|
||||
bizType_ = bizType;
|
||||
setBodyParameter("BizType", bizType);
|
||||
}
|
||||
|
||||
std::string LivenessDetectRequest::getBizId()const
|
||||
{
|
||||
return bizId_;
|
||||
}
|
||||
|
||||
void LivenessDetectRequest::setBizId(const std::string& bizId)
|
||||
{
|
||||
bizId_ = bizId;
|
||||
setBodyParameter("BizId", bizId);
|
||||
}
|
||||
|
||||
std::string LivenessDetectRequest::getMediaFile()const
|
||||
{
|
||||
return mediaFile_;
|
||||
}
|
||||
|
||||
void LivenessDetectRequest::setMediaFile(const std::string& mediaFile)
|
||||
{
|
||||
mediaFile_ = mediaFile;
|
||||
setBodyParameter("MediaFile", mediaFile);
|
||||
}
|
||||
|
||||
70
cloudauth/src/model/LivenessDetectResult.cc
Normal file
70
cloudauth/src/model/LivenessDetectResult.cc
Normal file
@@ -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.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/cloudauth/model/LivenessDetectResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Cloudauth;
|
||||
using namespace AlibabaCloud::Cloudauth::Model;
|
||||
|
||||
LivenessDetectResult::LivenessDetectResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
LivenessDetectResult::LivenessDetectResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
LivenessDetectResult::~LivenessDetectResult()
|
||||
{}
|
||||
|
||||
void LivenessDetectResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto resultObjectNode = value["ResultObject"];
|
||||
if(!resultObjectNode["Passed"].isNull())
|
||||
resultObject_.passed = resultObjectNode["Passed"].asString();
|
||||
if(!resultObjectNode["Score"].isNull())
|
||||
resultObject_.score = std::stof(resultObjectNode["Score"].asString());
|
||||
if(!resultObjectNode["FrameUrl"].isNull())
|
||||
resultObject_.frameUrl = resultObjectNode["FrameUrl"].asString();
|
||||
if(!value["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
|
||||
}
|
||||
|
||||
LivenessDetectResult::ResultObject LivenessDetectResult::getResultObject()const
|
||||
{
|
||||
return resultObject_;
|
||||
}
|
||||
|
||||
std::string LivenessDetectResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
std::string LivenessDetectResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
73
cloudauth/src/model/UpdateFaceConfigRequest.cc
Normal file
73
cloudauth/src/model/UpdateFaceConfigRequest.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/cloudauth/model/UpdateFaceConfigRequest.h>
|
||||
|
||||
using AlibabaCloud::Cloudauth::Model::UpdateFaceConfigRequest;
|
||||
|
||||
UpdateFaceConfigRequest::UpdateFaceConfigRequest() :
|
||||
RpcServiceRequest("cloudauth", "2019-03-07", "UpdateFaceConfig")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
UpdateFaceConfigRequest::~UpdateFaceConfigRequest()
|
||||
{}
|
||||
|
||||
std::string UpdateFaceConfigRequest::getBizName()const
|
||||
{
|
||||
return bizName_;
|
||||
}
|
||||
|
||||
void UpdateFaceConfigRequest::setBizName(const std::string& bizName)
|
||||
{
|
||||
bizName_ = bizName;
|
||||
setParameter("BizName", bizName);
|
||||
}
|
||||
|
||||
std::string UpdateFaceConfigRequest::getBizType()const
|
||||
{
|
||||
return bizType_;
|
||||
}
|
||||
|
||||
void UpdateFaceConfigRequest::setBizType(const std::string& bizType)
|
||||
{
|
||||
bizType_ = bizType;
|
||||
setParameter("BizType", bizType);
|
||||
}
|
||||
|
||||
std::string UpdateFaceConfigRequest::getSourceIp()const
|
||||
{
|
||||
return sourceIp_;
|
||||
}
|
||||
|
||||
void UpdateFaceConfigRequest::setSourceIp(const std::string& sourceIp)
|
||||
{
|
||||
sourceIp_ = sourceIp;
|
||||
setParameter("SourceIp", sourceIp);
|
||||
}
|
||||
|
||||
std::string UpdateFaceConfigRequest::getLang()const
|
||||
{
|
||||
return lang_;
|
||||
}
|
||||
|
||||
void UpdateFaceConfigRequest::setLang(const std::string& lang)
|
||||
{
|
||||
lang_ = lang;
|
||||
setParameter("Lang", lang);
|
||||
}
|
||||
|
||||
44
cloudauth/src/model/UpdateFaceConfigResult.cc
Normal file
44
cloudauth/src/model/UpdateFaceConfigResult.cc
Normal file
@@ -0,0 +1,44 @@
|
||||
/*
|
||||
* 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/cloudauth/model/UpdateFaceConfigResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Cloudauth;
|
||||
using namespace AlibabaCloud::Cloudauth::Model;
|
||||
|
||||
UpdateFaceConfigResult::UpdateFaceConfigResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
UpdateFaceConfigResult::UpdateFaceConfigResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
UpdateFaceConfigResult::~UpdateFaceConfigResult()
|
||||
{}
|
||||
|
||||
void UpdateFaceConfigResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
|
||||
}
|
||||
|
||||
@@ -51,24 +51,34 @@ 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/DeleteRepositoryTagRequest.h
|
||||
include/alibabacloud/codeup/model/DeleteRepositoryTagResult.h
|
||||
include/alibabacloud/codeup/model/GetBranchInfoRequest.h
|
||||
include/alibabacloud/codeup/model/GetBranchInfoResult.h
|
||||
include/alibabacloud/codeup/model/GetCodeupOrganizationRequest.h
|
||||
include/alibabacloud/codeup/model/GetCodeupOrganizationResult.h
|
||||
include/alibabacloud/codeup/model/GetFileBlobsRequest.h
|
||||
include/alibabacloud/codeup/model/GetFileBlobsResult.h
|
||||
include/alibabacloud/codeup/model/GetGroupDetailRequest.h
|
||||
include/alibabacloud/codeup/model/GetGroupDetailResult.h
|
||||
include/alibabacloud/codeup/model/GetProjectMemberRequest.h
|
||||
include/alibabacloud/codeup/model/GetProjectMemberResult.h
|
||||
include/alibabacloud/codeup/model/GetRepositoryInfoRequest.h
|
||||
include/alibabacloud/codeup/model/GetRepositoryInfoResult.h
|
||||
include/alibabacloud/codeup/model/GetRepositoryTagRequest.h
|
||||
include/alibabacloud/codeup/model/GetRepositoryTagResult.h
|
||||
include/alibabacloud/codeup/model/ListGroupMemberRequest.h
|
||||
include/alibabacloud/codeup/model/ListGroupMemberResult.h
|
||||
include/alibabacloud/codeup/model/ListGroupRepositoriesRequest.h
|
||||
include/alibabacloud/codeup/model/ListGroupRepositoriesResult.h
|
||||
include/alibabacloud/codeup/model/ListGroupsRequest.h
|
||||
include/alibabacloud/codeup/model/ListGroupsResult.h
|
||||
include/alibabacloud/codeup/model/ListRepositoryBranchesRequest.h
|
||||
include/alibabacloud/codeup/model/ListRepositoryBranchesResult.h
|
||||
include/alibabacloud/codeup/model/ListRepositoryMemberRequest.h
|
||||
include/alibabacloud/codeup/model/ListRepositoryMemberResult.h
|
||||
include/alibabacloud/codeup/model/ListRepositoryTagsRequest.h
|
||||
include/alibabacloud/codeup/model/ListRepositoryTagsResult.h
|
||||
include/alibabacloud/codeup/model/ListRepositoryTreeRequest.h
|
||||
include/alibabacloud/codeup/model/ListRepositoryTreeResult.h
|
||||
include/alibabacloud/codeup/model/MergeMergeRequestRequest.h
|
||||
@@ -112,24 +122,34 @@ set(codeup_src
|
||||
src/model/DeleteRepositoryGroupResult.cc
|
||||
src/model/DeleteRepositoryMemberRequest.cc
|
||||
src/model/DeleteRepositoryMemberResult.cc
|
||||
src/model/DeleteRepositoryTagRequest.cc
|
||||
src/model/DeleteRepositoryTagResult.cc
|
||||
src/model/GetBranchInfoRequest.cc
|
||||
src/model/GetBranchInfoResult.cc
|
||||
src/model/GetCodeupOrganizationRequest.cc
|
||||
src/model/GetCodeupOrganizationResult.cc
|
||||
src/model/GetFileBlobsRequest.cc
|
||||
src/model/GetFileBlobsResult.cc
|
||||
src/model/GetGroupDetailRequest.cc
|
||||
src/model/GetGroupDetailResult.cc
|
||||
src/model/GetProjectMemberRequest.cc
|
||||
src/model/GetProjectMemberResult.cc
|
||||
src/model/GetRepositoryInfoRequest.cc
|
||||
src/model/GetRepositoryInfoResult.cc
|
||||
src/model/GetRepositoryTagRequest.cc
|
||||
src/model/GetRepositoryTagResult.cc
|
||||
src/model/ListGroupMemberRequest.cc
|
||||
src/model/ListGroupMemberResult.cc
|
||||
src/model/ListGroupRepositoriesRequest.cc
|
||||
src/model/ListGroupRepositoriesResult.cc
|
||||
src/model/ListGroupsRequest.cc
|
||||
src/model/ListGroupsResult.cc
|
||||
src/model/ListRepositoryBranchesRequest.cc
|
||||
src/model/ListRepositoryBranchesResult.cc
|
||||
src/model/ListRepositoryMemberRequest.cc
|
||||
src/model/ListRepositoryMemberResult.cc
|
||||
src/model/ListRepositoryTagsRequest.cc
|
||||
src/model/ListRepositoryTagsResult.cc
|
||||
src/model/ListRepositoryTreeRequest.cc
|
||||
src/model/ListRepositoryTreeResult.cc
|
||||
src/model/MergeMergeRequestRequest.cc
|
||||
|
||||
@@ -52,24 +52,34 @@
|
||||
#include "model/DeleteRepositoryGroupResult.h"
|
||||
#include "model/DeleteRepositoryMemberRequest.h"
|
||||
#include "model/DeleteRepositoryMemberResult.h"
|
||||
#include "model/DeleteRepositoryTagRequest.h"
|
||||
#include "model/DeleteRepositoryTagResult.h"
|
||||
#include "model/GetBranchInfoRequest.h"
|
||||
#include "model/GetBranchInfoResult.h"
|
||||
#include "model/GetCodeupOrganizationRequest.h"
|
||||
#include "model/GetCodeupOrganizationResult.h"
|
||||
#include "model/GetFileBlobsRequest.h"
|
||||
#include "model/GetFileBlobsResult.h"
|
||||
#include "model/GetGroupDetailRequest.h"
|
||||
#include "model/GetGroupDetailResult.h"
|
||||
#include "model/GetProjectMemberRequest.h"
|
||||
#include "model/GetProjectMemberResult.h"
|
||||
#include "model/GetRepositoryInfoRequest.h"
|
||||
#include "model/GetRepositoryInfoResult.h"
|
||||
#include "model/GetRepositoryTagRequest.h"
|
||||
#include "model/GetRepositoryTagResult.h"
|
||||
#include "model/ListGroupMemberRequest.h"
|
||||
#include "model/ListGroupMemberResult.h"
|
||||
#include "model/ListGroupRepositoriesRequest.h"
|
||||
#include "model/ListGroupRepositoriesResult.h"
|
||||
#include "model/ListGroupsRequest.h"
|
||||
#include "model/ListGroupsResult.h"
|
||||
#include "model/ListRepositoryBranchesRequest.h"
|
||||
#include "model/ListRepositoryBranchesResult.h"
|
||||
#include "model/ListRepositoryMemberRequest.h"
|
||||
#include "model/ListRepositoryMemberResult.h"
|
||||
#include "model/ListRepositoryTagsRequest.h"
|
||||
#include "model/ListRepositoryTagsResult.h"
|
||||
#include "model/ListRepositoryTreeRequest.h"
|
||||
#include "model/ListRepositoryTreeResult.h"
|
||||
#include "model/MergeMergeRequestRequest.h"
|
||||
@@ -134,6 +144,9 @@ 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::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::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;
|
||||
@@ -143,12 +156,18 @@ namespace AlibabaCloud
|
||||
typedef Outcome<Error, Model::GetFileBlobsResult> GetFileBlobsOutcome;
|
||||
typedef std::future<GetFileBlobsOutcome> GetFileBlobsOutcomeCallable;
|
||||
typedef std::function<void(const CodeupClient*, const Model::GetFileBlobsRequest&, const GetFileBlobsOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetFileBlobsAsyncHandler;
|
||||
typedef Outcome<Error, Model::GetGroupDetailResult> GetGroupDetailOutcome;
|
||||
typedef std::future<GetGroupDetailOutcome> GetGroupDetailOutcomeCallable;
|
||||
typedef std::function<void(const CodeupClient*, const Model::GetGroupDetailRequest&, const GetGroupDetailOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetGroupDetailAsyncHandler;
|
||||
typedef Outcome<Error, Model::GetProjectMemberResult> GetProjectMemberOutcome;
|
||||
typedef std::future<GetProjectMemberOutcome> GetProjectMemberOutcomeCallable;
|
||||
typedef std::function<void(const CodeupClient*, const Model::GetProjectMemberRequest&, const GetProjectMemberOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetProjectMemberAsyncHandler;
|
||||
typedef Outcome<Error, Model::GetRepositoryInfoResult> GetRepositoryInfoOutcome;
|
||||
typedef std::future<GetRepositoryInfoOutcome> GetRepositoryInfoOutcomeCallable;
|
||||
typedef std::function<void(const CodeupClient*, const Model::GetRepositoryInfoRequest&, const GetRepositoryInfoOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetRepositoryInfoAsyncHandler;
|
||||
typedef Outcome<Error, Model::GetRepositoryTagResult> GetRepositoryTagOutcome;
|
||||
typedef std::future<GetRepositoryTagOutcome> GetRepositoryTagOutcomeCallable;
|
||||
typedef std::function<void(const CodeupClient*, const Model::GetRepositoryTagRequest&, const GetRepositoryTagOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetRepositoryTagAsyncHandler;
|
||||
typedef Outcome<Error, Model::ListGroupMemberResult> ListGroupMemberOutcome;
|
||||
typedef std::future<ListGroupMemberOutcome> ListGroupMemberOutcomeCallable;
|
||||
typedef std::function<void(const CodeupClient*, const Model::ListGroupMemberRequest&, const ListGroupMemberOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ListGroupMemberAsyncHandler;
|
||||
@@ -158,9 +177,15 @@ 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::ListRepositoryBranchesResult> ListRepositoryBranchesOutcome;
|
||||
typedef std::future<ListRepositoryBranchesOutcome> ListRepositoryBranchesOutcomeCallable;
|
||||
typedef std::function<void(const CodeupClient*, const Model::ListRepositoryBranchesRequest&, const ListRepositoryBranchesOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ListRepositoryBranchesAsyncHandler;
|
||||
typedef Outcome<Error, Model::ListRepositoryMemberResult> ListRepositoryMemberOutcome;
|
||||
typedef std::future<ListRepositoryMemberOutcome> ListRepositoryMemberOutcomeCallable;
|
||||
typedef std::function<void(const CodeupClient*, const Model::ListRepositoryMemberRequest&, const ListRepositoryMemberOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ListRepositoryMemberAsyncHandler;
|
||||
typedef Outcome<Error, Model::ListRepositoryTagsResult> ListRepositoryTagsOutcome;
|
||||
typedef std::future<ListRepositoryTagsOutcome> ListRepositoryTagsOutcomeCallable;
|
||||
typedef std::function<void(const CodeupClient*, const Model::ListRepositoryTagsRequest&, const ListRepositoryTagsOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ListRepositoryTagsAsyncHandler;
|
||||
typedef Outcome<Error, Model::ListRepositoryTreeResult> ListRepositoryTreeOutcome;
|
||||
typedef std::future<ListRepositoryTreeOutcome> ListRepositoryTreeOutcomeCallable;
|
||||
typedef std::function<void(const CodeupClient*, const Model::ListRepositoryTreeRequest&, const ListRepositoryTreeOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ListRepositoryTreeAsyncHandler;
|
||||
@@ -226,6 +251,9 @@ 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;
|
||||
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;
|
||||
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;
|
||||
@@ -235,12 +263,18 @@ namespace AlibabaCloud
|
||||
GetFileBlobsOutcome getFileBlobs(const Model::GetFileBlobsRequest &request)const;
|
||||
void getFileBlobsAsync(const Model::GetFileBlobsRequest& request, const GetFileBlobsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
GetFileBlobsOutcomeCallable getFileBlobsCallable(const Model::GetFileBlobsRequest& request) const;
|
||||
GetGroupDetailOutcome getGroupDetail(const Model::GetGroupDetailRequest &request)const;
|
||||
void getGroupDetailAsync(const Model::GetGroupDetailRequest& request, const GetGroupDetailAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
GetGroupDetailOutcomeCallable getGroupDetailCallable(const Model::GetGroupDetailRequest& request) const;
|
||||
GetProjectMemberOutcome getProjectMember(const Model::GetProjectMemberRequest &request)const;
|
||||
void getProjectMemberAsync(const Model::GetProjectMemberRequest& request, const GetProjectMemberAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
GetProjectMemberOutcomeCallable getProjectMemberCallable(const Model::GetProjectMemberRequest& request) const;
|
||||
GetRepositoryInfoOutcome getRepositoryInfo(const Model::GetRepositoryInfoRequest &request)const;
|
||||
void getRepositoryInfoAsync(const Model::GetRepositoryInfoRequest& request, const GetRepositoryInfoAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
GetRepositoryInfoOutcomeCallable getRepositoryInfoCallable(const Model::GetRepositoryInfoRequest& request) const;
|
||||
GetRepositoryTagOutcome getRepositoryTag(const Model::GetRepositoryTagRequest &request)const;
|
||||
void getRepositoryTagAsync(const Model::GetRepositoryTagRequest& request, const GetRepositoryTagAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
GetRepositoryTagOutcomeCallable getRepositoryTagCallable(const Model::GetRepositoryTagRequest& request) const;
|
||||
ListGroupMemberOutcome listGroupMember(const Model::ListGroupMemberRequest &request)const;
|
||||
void listGroupMemberAsync(const Model::ListGroupMemberRequest& request, const ListGroupMemberAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
ListGroupMemberOutcomeCallable listGroupMemberCallable(const Model::ListGroupMemberRequest& request) const;
|
||||
@@ -250,9 +284,15 @@ 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;
|
||||
ListRepositoryBranchesOutcome listRepositoryBranches(const Model::ListRepositoryBranchesRequest &request)const;
|
||||
void listRepositoryBranchesAsync(const Model::ListRepositoryBranchesRequest& request, const ListRepositoryBranchesAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
ListRepositoryBranchesOutcomeCallable listRepositoryBranchesCallable(const Model::ListRepositoryBranchesRequest& request) const;
|
||||
ListRepositoryMemberOutcome listRepositoryMember(const Model::ListRepositoryMemberRequest &request)const;
|
||||
void listRepositoryMemberAsync(const Model::ListRepositoryMemberRequest& request, const ListRepositoryMemberAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
ListRepositoryMemberOutcomeCallable listRepositoryMemberCallable(const Model::ListRepositoryMemberRequest& request) const;
|
||||
ListRepositoryTagsOutcome listRepositoryTags(const Model::ListRepositoryTagsRequest &request)const;
|
||||
void listRepositoryTagsAsync(const Model::ListRepositoryTagsRequest& request, const ListRepositoryTagsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
ListRepositoryTagsOutcomeCallable listRepositoryTagsCallable(const Model::ListRepositoryTagsRequest& request) const;
|
||||
ListRepositoryTreeOutcome listRepositoryTree(const Model::ListRepositoryTreeRequest &request)const;
|
||||
void listRepositoryTreeAsync(const Model::ListRepositoryTreeRequest& request, const ListRepositoryTreeAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
ListRepositoryTreeOutcomeCallable listRepositoryTreeCallable(const Model::ListRepositoryTreeRequest& request) const;
|
||||
|
||||
@@ -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_DELETEREPOSITORYTAGREQUEST_H_
|
||||
#define ALIBABACLOUD_CODEUP_MODEL_DELETEREPOSITORYTAGREQUEST_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 DeleteRepositoryTagRequest : public RoaServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
DeleteRepositoryTagRequest();
|
||||
~DeleteRepositoryTagRequest();
|
||||
|
||||
std::string getOrganizationId()const;
|
||||
void setOrganizationId(const std::string& organizationId);
|
||||
std::string getTagName()const;
|
||||
void setTagName(const std::string& tagName);
|
||||
std::string getAccessToken()const;
|
||||
void setAccessToken(const std::string& accessToken);
|
||||
long getProjectId()const;
|
||||
void setProjectId(long projectId);
|
||||
|
||||
private:
|
||||
std::string organizationId_;
|
||||
std::string tagName_;
|
||||
std::string accessToken_;
|
||||
long projectId_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_CODEUP_MODEL_DELETEREPOSITORYTAGREQUEST_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_DELETEREPOSITORYTAGRESULT_H_
|
||||
#define ALIBABACLOUD_CODEUP_MODEL_DELETEREPOSITORYTAGRESULT_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 DeleteRepositoryTagResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct Result
|
||||
{
|
||||
std::string tagName;
|
||||
};
|
||||
|
||||
|
||||
DeleteRepositoryTagResult();
|
||||
explicit DeleteRepositoryTagResult(const std::string &payload);
|
||||
~DeleteRepositoryTagResult();
|
||||
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_DELETEREPOSITORYTAGRESULT_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_GETGROUPDETAILREQUEST_H_
|
||||
#define ALIBABACLOUD_CODEUP_MODEL_GETGROUPDETAILREQUEST_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 GetGroupDetailRequest : public RoaServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
GetGroupDetailRequest();
|
||||
~GetGroupDetailRequest();
|
||||
|
||||
std::string getOrganizationId()const;
|
||||
void setOrganizationId(const std::string& organizationId);
|
||||
std::string getSubUserId()const;
|
||||
void setSubUserId(const std::string& subUserId);
|
||||
long getGroupId()const;
|
||||
void setGroupId(long groupId);
|
||||
std::string getAccessToken()const;
|
||||
void setAccessToken(const std::string& accessToken);
|
||||
|
||||
private:
|
||||
std::string organizationId_;
|
||||
std::string subUserId_;
|
||||
long groupId_;
|
||||
std::string accessToken_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_CODEUP_MODEL_GETGROUPDETAILREQUEST_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_CODEUP_MODEL_GETGROUPDETAILRESULT_H_
|
||||
#define ALIBABACLOUD_CODEUP_MODEL_GETGROUPDETAILRESULT_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 GetGroupDetailResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct Result
|
||||
{
|
||||
std::string path;
|
||||
std::string pathWithNamespace;
|
||||
long parentId;
|
||||
std::string type;
|
||||
std::string description;
|
||||
std::string avatarUrl;
|
||||
long ownerId;
|
||||
std::string webUrl;
|
||||
std::string nameWithNamespace;
|
||||
std::string visibilityLevel;
|
||||
long id;
|
||||
std::string name;
|
||||
};
|
||||
|
||||
|
||||
GetGroupDetailResult();
|
||||
explicit GetGroupDetailResult(const std::string &payload);
|
||||
~GetGroupDetailResult();
|
||||
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_GETGROUPDETAILRESULT_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_GETREPOSITORYTAGREQUEST_H_
|
||||
#define ALIBABACLOUD_CODEUP_MODEL_GETREPOSITORYTAGREQUEST_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 GetRepositoryTagRequest : public RoaServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
GetRepositoryTagRequest();
|
||||
~GetRepositoryTagRequest();
|
||||
|
||||
std::string getOrganizationId()const;
|
||||
void setOrganizationId(const std::string& organizationId);
|
||||
std::string getTagName()const;
|
||||
void setTagName(const std::string& tagName);
|
||||
std::string getAccessToken()const;
|
||||
void setAccessToken(const std::string& accessToken);
|
||||
long getProjectId()const;
|
||||
void setProjectId(long projectId);
|
||||
|
||||
private:
|
||||
std::string organizationId_;
|
||||
std::string tagName_;
|
||||
std::string accessToken_;
|
||||
long projectId_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_CODEUP_MODEL_GETREPOSITORYTAGREQUEST_H_
|
||||
@@ -0,0 +1,91 @@
|
||||
/*
|
||||
* 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_GETREPOSITORYTAGRESULT_H_
|
||||
#define ALIBABACLOUD_CODEUP_MODEL_GETREPOSITORYTAGRESULT_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 GetRepositoryTagResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct Result
|
||||
{
|
||||
struct Commit
|
||||
{
|
||||
struct Signature1
|
||||
{
|
||||
std::string verificationStatus;
|
||||
std::string gpgKeyId;
|
||||
};
|
||||
std::string authoredDate;
|
||||
std::string authorName;
|
||||
std::string message;
|
||||
std::string createdAt;
|
||||
std::string title;
|
||||
std::string authorEmail;
|
||||
std::string committedDate;
|
||||
std::string committerEmail;
|
||||
std::vector<std::string> parentIds;
|
||||
std::string shortId;
|
||||
std::string id;
|
||||
std::string committerName;
|
||||
Signature1 signature1;
|
||||
};
|
||||
struct Signature
|
||||
{
|
||||
std::string verificationStatus;
|
||||
std::string gpgKeyId;
|
||||
};
|
||||
Commit commit;
|
||||
std::string message;
|
||||
Signature signature;
|
||||
std::string id;
|
||||
std::string name;
|
||||
};
|
||||
|
||||
|
||||
GetRepositoryTagResult();
|
||||
explicit GetRepositoryTagResult(const std::string &payload);
|
||||
~GetRepositoryTagResult();
|
||||
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_GETREPOSITORYTAGRESULT_H_
|
||||
@@ -46,6 +46,7 @@ namespace AlibabaCloud
|
||||
ListGroupMemberResult();
|
||||
explicit ListGroupMemberResult(const std::string &payload);
|
||||
~ListGroupMemberResult();
|
||||
long getTotal()const;
|
||||
std::string getErrorCode()const;
|
||||
std::string getErrorMessage()const;
|
||||
bool getSuccess()const;
|
||||
@@ -54,6 +55,7 @@ namespace AlibabaCloud
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
long total_;
|
||||
std::string errorCode_;
|
||||
std::string errorMessage_;
|
||||
bool success_;
|
||||
|
||||
@@ -56,6 +56,7 @@ namespace AlibabaCloud
|
||||
ListGroupRepositoriesResult();
|
||||
explicit ListGroupRepositoriesResult(const std::string &payload);
|
||||
~ListGroupRepositoriesResult();
|
||||
long getTotal()const;
|
||||
std::string getErrorCode()const;
|
||||
std::string getErrorMessage()const;
|
||||
bool getSuccess()const;
|
||||
@@ -64,6 +65,7 @@ namespace AlibabaCloud
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
long total_;
|
||||
std::string errorCode_;
|
||||
std::string errorMessage_;
|
||||
bool success_;
|
||||
|
||||
@@ -54,6 +54,7 @@ namespace AlibabaCloud
|
||||
ListGroupsResult();
|
||||
explicit ListGroupsResult(const std::string &payload);
|
||||
~ListGroupsResult();
|
||||
long getTotal()const;
|
||||
std::string getErrorCode()const;
|
||||
std::string getErrorMessage()const;
|
||||
bool getSuccess()const;
|
||||
@@ -62,6 +63,7 @@ namespace AlibabaCloud
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
long total_;
|
||||
std::string errorCode_;
|
||||
std::string errorMessage_;
|
||||
bool success_;
|
||||
|
||||
@@ -0,0 +1,66 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_CODEUP_MODEL_LISTREPOSITORYBRANCHESREQUEST_H_
|
||||
#define ALIBABACLOUD_CODEUP_MODEL_LISTREPOSITORYBRANCHESREQUEST_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 ListRepositoryBranchesRequest : public RoaServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
ListRepositoryBranchesRequest();
|
||||
~ListRepositoryBranchesRequest();
|
||||
|
||||
std::string getOrganizationId()const;
|
||||
void setOrganizationId(const std::string& organizationId);
|
||||
std::string getSearch()const;
|
||||
void setSearch(const std::string& search);
|
||||
std::string getSubUserId()const;
|
||||
void setSubUserId(const std::string& subUserId);
|
||||
long getPageSize()const;
|
||||
void setPageSize(long pageSize);
|
||||
std::string getAccessToken()const;
|
||||
void setAccessToken(const std::string& accessToken);
|
||||
long getPage()const;
|
||||
void setPage(long page);
|
||||
long getProjectId()const;
|
||||
void setProjectId(long projectId);
|
||||
|
||||
private:
|
||||
std::string organizationId_;
|
||||
std::string search_;
|
||||
std::string subUserId_;
|
||||
long pageSize_;
|
||||
std::string accessToken_;
|
||||
long page_;
|
||||
long projectId_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_CODEUP_MODEL_LISTREPOSITORYBRANCHESREQUEST_H_
|
||||
@@ -0,0 +1,80 @@
|
||||
/*
|
||||
* 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_LISTREPOSITORYBRANCHESRESULT_H_
|
||||
#define ALIBABACLOUD_CODEUP_MODEL_LISTREPOSITORYBRANCHESRESULT_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 ListRepositoryBranchesResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct ResultItem
|
||||
{
|
||||
struct CommitInfo
|
||||
{
|
||||
std::string authorName;
|
||||
std::string message;
|
||||
std::string authorDate;
|
||||
std::string committedDate;
|
||||
std::string committerEmail;
|
||||
std::vector<std::string> parentIds;
|
||||
std::string createdAt;
|
||||
std::string shortId;
|
||||
std::string title;
|
||||
std::string id;
|
||||
std::string authorEmail;
|
||||
std::string committerName;
|
||||
};
|
||||
bool protectedBranch;
|
||||
CommitInfo commitInfo;
|
||||
std::string branchName;
|
||||
};
|
||||
|
||||
|
||||
ListRepositoryBranchesResult();
|
||||
explicit ListRepositoryBranchesResult(const std::string &payload);
|
||||
~ListRepositoryBranchesResult();
|
||||
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_LISTREPOSITORYBRANCHESRESULT_H_
|
||||
@@ -46,6 +46,7 @@ namespace AlibabaCloud
|
||||
ListRepositoryMemberResult();
|
||||
explicit ListRepositoryMemberResult(const std::string &payload);
|
||||
~ListRepositoryMemberResult();
|
||||
long getTotal()const;
|
||||
std::string getErrorCode()const;
|
||||
std::string getErrorMessage()const;
|
||||
bool getSuccess()const;
|
||||
@@ -54,6 +55,7 @@ namespace AlibabaCloud
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
long total_;
|
||||
std::string errorCode_;
|
||||
std::string errorMessage_;
|
||||
bool success_;
|
||||
|
||||
@@ -0,0 +1,69 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_CODEUP_MODEL_LISTREPOSITORYTAGSREQUEST_H_
|
||||
#define ALIBABACLOUD_CODEUP_MODEL_LISTREPOSITORYTAGSREQUEST_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 ListRepositoryTagsRequest : public RoaServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
ListRepositoryTagsRequest();
|
||||
~ListRepositoryTagsRequest();
|
||||
|
||||
std::string getAccessToken()const;
|
||||
void setAccessToken(const std::string& accessToken);
|
||||
bool getShowSignature()const;
|
||||
void setShowSignature(bool showSignature);
|
||||
std::string getSort()const;
|
||||
void setSort(const std::string& sort);
|
||||
std::string getOrganizationId()const;
|
||||
void setOrganizationId(const std::string& organizationId);
|
||||
std::string getSearch()const;
|
||||
void setSearch(const std::string& search);
|
||||
long getPageSize()const;
|
||||
void setPageSize(long pageSize);
|
||||
long getPage()const;
|
||||
void setPage(long page);
|
||||
long getProjectId()const;
|
||||
void setProjectId(long projectId);
|
||||
|
||||
private:
|
||||
std::string accessToken_;
|
||||
bool showSignature_;
|
||||
std::string sort_;
|
||||
std::string organizationId_;
|
||||
std::string search_;
|
||||
long pageSize_;
|
||||
long page_;
|
||||
long projectId_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_CODEUP_MODEL_LISTREPOSITORYTAGSREQUEST_H_
|
||||
@@ -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_LISTREPOSITORYTAGSRESULT_H_
|
||||
#define ALIBABACLOUD_CODEUP_MODEL_LISTREPOSITORYTAGSRESULT_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 ListRepositoryTagsResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct ResultItem
|
||||
{
|
||||
struct Commit
|
||||
{
|
||||
struct Signature1
|
||||
{
|
||||
std::string verificationStatus;
|
||||
std::string gpgKeyId;
|
||||
};
|
||||
std::string authoredDate;
|
||||
std::string authorName;
|
||||
std::string message;
|
||||
std::string createdAt;
|
||||
std::string title;
|
||||
std::string authorEmail;
|
||||
std::string committedDate;
|
||||
std::string committerEmail;
|
||||
std::vector<std::string> parentIds;
|
||||
std::string shortId;
|
||||
std::string id;
|
||||
std::string committerName;
|
||||
Signature1 signature1;
|
||||
};
|
||||
struct Signature
|
||||
{
|
||||
std::string verificationStatus;
|
||||
std::string gpgKeyId;
|
||||
};
|
||||
Commit commit;
|
||||
std::string message;
|
||||
Signature signature;
|
||||
std::string id;
|
||||
std::string name;
|
||||
};
|
||||
|
||||
|
||||
ListRepositoryTagsResult();
|
||||
explicit ListRepositoryTagsResult(const std::string &payload);
|
||||
~ListRepositoryTagsResult();
|
||||
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_LISTREPOSITORYTAGSRESULT_H_
|
||||
@@ -591,6 +591,42 @@ CodeupClient::DeleteRepositoryMemberOutcomeCallable CodeupClient::deleteReposito
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
CodeupClient::DeleteRepositoryTagOutcome CodeupClient::deleteRepositoryTag(const DeleteRepositoryTagRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return DeleteRepositoryTagOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return DeleteRepositoryTagOutcome(DeleteRepositoryTagResult(outcome.result()));
|
||||
else
|
||||
return DeleteRepositoryTagOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void CodeupClient::deleteRepositoryTagAsync(const DeleteRepositoryTagRequest& request, const DeleteRepositoryTagAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, deleteRepositoryTag(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
CodeupClient::DeleteRepositoryTagOutcomeCallable CodeupClient::deleteRepositoryTagCallable(const DeleteRepositoryTagRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<DeleteRepositoryTagOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->deleteRepositoryTag(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
CodeupClient::GetBranchInfoOutcome CodeupClient::getBranchInfo(const GetBranchInfoRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -699,6 +735,42 @@ CodeupClient::GetFileBlobsOutcomeCallable CodeupClient::getFileBlobsCallable(con
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
CodeupClient::GetGroupDetailOutcome CodeupClient::getGroupDetail(const GetGroupDetailRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return GetGroupDetailOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return GetGroupDetailOutcome(GetGroupDetailResult(outcome.result()));
|
||||
else
|
||||
return GetGroupDetailOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void CodeupClient::getGroupDetailAsync(const GetGroupDetailRequest& request, const GetGroupDetailAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, getGroupDetail(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
CodeupClient::GetGroupDetailOutcomeCallable CodeupClient::getGroupDetailCallable(const GetGroupDetailRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<GetGroupDetailOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->getGroupDetail(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
CodeupClient::GetProjectMemberOutcome CodeupClient::getProjectMember(const GetProjectMemberRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -771,6 +843,42 @@ CodeupClient::GetRepositoryInfoOutcomeCallable CodeupClient::getRepositoryInfoCa
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
CodeupClient::GetRepositoryTagOutcome CodeupClient::getRepositoryTag(const GetRepositoryTagRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return GetRepositoryTagOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return GetRepositoryTagOutcome(GetRepositoryTagResult(outcome.result()));
|
||||
else
|
||||
return GetRepositoryTagOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void CodeupClient::getRepositoryTagAsync(const GetRepositoryTagRequest& request, const GetRepositoryTagAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, getRepositoryTag(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
CodeupClient::GetRepositoryTagOutcomeCallable CodeupClient::getRepositoryTagCallable(const GetRepositoryTagRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<GetRepositoryTagOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->getRepositoryTag(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
CodeupClient::ListGroupMemberOutcome CodeupClient::listGroupMember(const ListGroupMemberRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -879,6 +987,42 @@ CodeupClient::ListGroupsOutcomeCallable CodeupClient::listGroupsCallable(const L
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
CodeupClient::ListRepositoryBranchesOutcome CodeupClient::listRepositoryBranches(const ListRepositoryBranchesRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return ListRepositoryBranchesOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return ListRepositoryBranchesOutcome(ListRepositoryBranchesResult(outcome.result()));
|
||||
else
|
||||
return ListRepositoryBranchesOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void CodeupClient::listRepositoryBranchesAsync(const ListRepositoryBranchesRequest& request, const ListRepositoryBranchesAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, listRepositoryBranches(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
CodeupClient::ListRepositoryBranchesOutcomeCallable CodeupClient::listRepositoryBranchesCallable(const ListRepositoryBranchesRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<ListRepositoryBranchesOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->listRepositoryBranches(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
CodeupClient::ListRepositoryMemberOutcome CodeupClient::listRepositoryMember(const ListRepositoryMemberRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -915,6 +1059,42 @@ CodeupClient::ListRepositoryMemberOutcomeCallable CodeupClient::listRepositoryMe
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
CodeupClient::ListRepositoryTagsOutcome CodeupClient::listRepositoryTags(const ListRepositoryTagsRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return ListRepositoryTagsOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return ListRepositoryTagsOutcome(ListRepositoryTagsResult(outcome.result()));
|
||||
else
|
||||
return ListRepositoryTagsOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void CodeupClient::listRepositoryTagsAsync(const ListRepositoryTagsRequest& request, const ListRepositoryTagsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, listRepositoryTags(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
CodeupClient::ListRepositoryTagsOutcomeCallable CodeupClient::listRepositoryTagsCallable(const ListRepositoryTagsRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<ListRepositoryTagsOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->listRepositoryTags(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
CodeupClient::ListRepositoryTreeOutcome CodeupClient::listRepositoryTree(const ListRepositoryTreeRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
|
||||
@@ -112,18 +112,18 @@ void CreateMergeRequestResult::parse(const std::string &payload)
|
||||
satisfiedCheckResultsItemObject.checkName = approveCheckResultNodeSatisfiedCheckResultsSatisfiedCheckResultsItem["CheckName"].asString();
|
||||
if(!approveCheckResultNodeSatisfiedCheckResultsSatisfiedCheckResultsItem["CheckType"].isNull())
|
||||
satisfiedCheckResultsItemObject.checkType = approveCheckResultNodeSatisfiedCheckResultsSatisfiedCheckResultsItem["CheckType"].asString();
|
||||
auto allExtraUsersNode = allSatisfiedCheckResultsNode["ExtraUsers"]["ExtraUsersItem"];
|
||||
for (auto allSatisfiedCheckResultsNodeExtraUsersExtraUsersItem : allExtraUsersNode)
|
||||
auto allExtraUsersNode = approveCheckResultNodeSatisfiedCheckResultsSatisfiedCheckResultsItem["ExtraUsers"]["ExtraUsersItem"];
|
||||
for (auto approveCheckResultNodeSatisfiedCheckResultsSatisfiedCheckResultsItemExtraUsersExtraUsersItem : allExtraUsersNode)
|
||||
{
|
||||
Result::ApproveCheckResult::SatisfiedCheckResultsItem::ExtraUsersItem extraUsersObject;
|
||||
if(!allSatisfiedCheckResultsNodeExtraUsersExtraUsersItem["Id"].isNull())
|
||||
extraUsersObject.id = std::stol(allSatisfiedCheckResultsNodeExtraUsersExtraUsersItem["Id"].asString());
|
||||
if(!allSatisfiedCheckResultsNodeExtraUsersExtraUsersItem["ExternUserId"].isNull())
|
||||
extraUsersObject.externUserId = allSatisfiedCheckResultsNodeExtraUsersExtraUsersItem["ExternUserId"].asString();
|
||||
if(!allSatisfiedCheckResultsNodeExtraUsersExtraUsersItem["AvatarUrl"].isNull())
|
||||
extraUsersObject.avatarUrl = allSatisfiedCheckResultsNodeExtraUsersExtraUsersItem["AvatarUrl"].asString();
|
||||
if(!allSatisfiedCheckResultsNodeExtraUsersExtraUsersItem["Name"].isNull())
|
||||
extraUsersObject.name = allSatisfiedCheckResultsNodeExtraUsersExtraUsersItem["Name"].asString();
|
||||
if(!approveCheckResultNodeSatisfiedCheckResultsSatisfiedCheckResultsItemExtraUsersExtraUsersItem["Id"].isNull())
|
||||
extraUsersObject.id = std::stol(approveCheckResultNodeSatisfiedCheckResultsSatisfiedCheckResultsItemExtraUsersExtraUsersItem["Id"].asString());
|
||||
if(!approveCheckResultNodeSatisfiedCheckResultsSatisfiedCheckResultsItemExtraUsersExtraUsersItem["ExternUserId"].isNull())
|
||||
extraUsersObject.externUserId = approveCheckResultNodeSatisfiedCheckResultsSatisfiedCheckResultsItemExtraUsersExtraUsersItem["ExternUserId"].asString();
|
||||
if(!approveCheckResultNodeSatisfiedCheckResultsSatisfiedCheckResultsItemExtraUsersExtraUsersItem["AvatarUrl"].isNull())
|
||||
extraUsersObject.avatarUrl = approveCheckResultNodeSatisfiedCheckResultsSatisfiedCheckResultsItemExtraUsersExtraUsersItem["AvatarUrl"].asString();
|
||||
if(!approveCheckResultNodeSatisfiedCheckResultsSatisfiedCheckResultsItemExtraUsersExtraUsersItem["Name"].isNull())
|
||||
extraUsersObject.name = approveCheckResultNodeSatisfiedCheckResultsSatisfiedCheckResultsItemExtraUsersExtraUsersItem["Name"].asString();
|
||||
satisfiedCheckResultsItemObject.extraUsers.push_back(extraUsersObject);
|
||||
}
|
||||
auto allSatisfiedItems = value["SatisfiedItems"]["SatisfiedItems"];
|
||||
@@ -144,18 +144,18 @@ void CreateMergeRequestResult::parse(const std::string &payload)
|
||||
unsatisfiedCheckResultsItemObject.checkName = approveCheckResultNodeUnsatisfiedCheckResultsUnsatisfiedCheckResultsItem["CheckName"].asString();
|
||||
if(!approveCheckResultNodeUnsatisfiedCheckResultsUnsatisfiedCheckResultsItem["CheckType"].isNull())
|
||||
unsatisfiedCheckResultsItemObject.checkType = approveCheckResultNodeUnsatisfiedCheckResultsUnsatisfiedCheckResultsItem["CheckType"].asString();
|
||||
auto allExtraUsers3Node = allUnsatisfiedCheckResultsNode["ExtraUsers"]["ExtraUsersItem"];
|
||||
for (auto allUnsatisfiedCheckResultsNodeExtraUsersExtraUsersItem : allExtraUsers3Node)
|
||||
auto allExtraUsers3Node = approveCheckResultNodeUnsatisfiedCheckResultsUnsatisfiedCheckResultsItem["ExtraUsers"]["ExtraUsersItem"];
|
||||
for (auto approveCheckResultNodeUnsatisfiedCheckResultsUnsatisfiedCheckResultsItemExtraUsersExtraUsersItem : allExtraUsers3Node)
|
||||
{
|
||||
Result::ApproveCheckResult::UnsatisfiedCheckResultsItem::ExtraUsersItem4 extraUsers3Object;
|
||||
if(!allUnsatisfiedCheckResultsNodeExtraUsersExtraUsersItem["Id"].isNull())
|
||||
extraUsers3Object.id = std::stol(allUnsatisfiedCheckResultsNodeExtraUsersExtraUsersItem["Id"].asString());
|
||||
if(!allUnsatisfiedCheckResultsNodeExtraUsersExtraUsersItem["ExternUserId"].isNull())
|
||||
extraUsers3Object.externUserId = allUnsatisfiedCheckResultsNodeExtraUsersExtraUsersItem["ExternUserId"].asString();
|
||||
if(!allUnsatisfiedCheckResultsNodeExtraUsersExtraUsersItem["AvatarUrl"].isNull())
|
||||
extraUsers3Object.avatarUrl = allUnsatisfiedCheckResultsNodeExtraUsersExtraUsersItem["AvatarUrl"].asString();
|
||||
if(!allUnsatisfiedCheckResultsNodeExtraUsersExtraUsersItem["Name"].isNull())
|
||||
extraUsers3Object.name = allUnsatisfiedCheckResultsNodeExtraUsersExtraUsersItem["Name"].asString();
|
||||
if(!approveCheckResultNodeUnsatisfiedCheckResultsUnsatisfiedCheckResultsItemExtraUsersExtraUsersItem["Id"].isNull())
|
||||
extraUsers3Object.id = std::stol(approveCheckResultNodeUnsatisfiedCheckResultsUnsatisfiedCheckResultsItemExtraUsersExtraUsersItem["Id"].asString());
|
||||
if(!approveCheckResultNodeUnsatisfiedCheckResultsUnsatisfiedCheckResultsItemExtraUsersExtraUsersItem["ExternUserId"].isNull())
|
||||
extraUsers3Object.externUserId = approveCheckResultNodeUnsatisfiedCheckResultsUnsatisfiedCheckResultsItemExtraUsersExtraUsersItem["ExternUserId"].asString();
|
||||
if(!approveCheckResultNodeUnsatisfiedCheckResultsUnsatisfiedCheckResultsItemExtraUsersExtraUsersItem["AvatarUrl"].isNull())
|
||||
extraUsers3Object.avatarUrl = approveCheckResultNodeUnsatisfiedCheckResultsUnsatisfiedCheckResultsItemExtraUsersExtraUsersItem["AvatarUrl"].asString();
|
||||
if(!approveCheckResultNodeUnsatisfiedCheckResultsUnsatisfiedCheckResultsItemExtraUsersExtraUsersItem["Name"].isNull())
|
||||
extraUsers3Object.name = approveCheckResultNodeUnsatisfiedCheckResultsUnsatisfiedCheckResultsItemExtraUsersExtraUsersItem["Name"].asString();
|
||||
unsatisfiedCheckResultsItemObject.extraUsers3.push_back(extraUsers3Object);
|
||||
}
|
||||
auto allSatisfiedItems1 = value["SatisfiedItems"]["SatisfiedItems"];
|
||||
|
||||
@@ -21,7 +21,7 @@ using AlibabaCloud::Codeup::Model::DeleteBranchRequest;
|
||||
DeleteBranchRequest::DeleteBranchRequest() :
|
||||
RoaServiceRequest("codeup", "2020-04-14")
|
||||
{
|
||||
setResourcePath("/api/v3/projects/[ProjectId]/repository/branches/[BranchName]");
|
||||
setResourcePath("/api/v3/projects/[ProjectId]/repository/branches/delete");
|
||||
setMethod(HttpRequest::Method::Delete);
|
||||
}
|
||||
|
||||
|
||||
74
codeup/src/model/DeleteRepositoryTagRequest.cc
Normal file
74
codeup/src/model/DeleteRepositoryTagRequest.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/DeleteRepositoryTagRequest.h>
|
||||
|
||||
using AlibabaCloud::Codeup::Model::DeleteRepositoryTagRequest;
|
||||
|
||||
DeleteRepositoryTagRequest::DeleteRepositoryTagRequest() :
|
||||
RoaServiceRequest("codeup", "2020-04-14")
|
||||
{
|
||||
setResourcePath("/api/v3/projects/[ProjectId]/repository/tags/[TagName]");
|
||||
setMethod(HttpRequest::Method::Delete);
|
||||
}
|
||||
|
||||
DeleteRepositoryTagRequest::~DeleteRepositoryTagRequest()
|
||||
{}
|
||||
|
||||
std::string DeleteRepositoryTagRequest::getOrganizationId()const
|
||||
{
|
||||
return organizationId_;
|
||||
}
|
||||
|
||||
void DeleteRepositoryTagRequest::setOrganizationId(const std::string& organizationId)
|
||||
{
|
||||
organizationId_ = organizationId;
|
||||
setParameter("OrganizationId", organizationId);
|
||||
}
|
||||
|
||||
std::string DeleteRepositoryTagRequest::getTagName()const
|
||||
{
|
||||
return tagName_;
|
||||
}
|
||||
|
||||
void DeleteRepositoryTagRequest::setTagName(const std::string& tagName)
|
||||
{
|
||||
tagName_ = tagName;
|
||||
setParameter("TagName", tagName);
|
||||
}
|
||||
|
||||
std::string DeleteRepositoryTagRequest::getAccessToken()const
|
||||
{
|
||||
return accessToken_;
|
||||
}
|
||||
|
||||
void DeleteRepositoryTagRequest::setAccessToken(const std::string& accessToken)
|
||||
{
|
||||
accessToken_ = accessToken;
|
||||
setParameter("AccessToken", accessToken);
|
||||
}
|
||||
|
||||
long DeleteRepositoryTagRequest::getProjectId()const
|
||||
{
|
||||
return projectId_;
|
||||
}
|
||||
|
||||
void DeleteRepositoryTagRequest::setProjectId(long projectId)
|
||||
{
|
||||
projectId_ = projectId;
|
||||
setParameter("ProjectId", std::to_string(projectId));
|
||||
}
|
||||
|
||||
73
codeup/src/model/DeleteRepositoryTagResult.cc
Normal file
73
codeup/src/model/DeleteRepositoryTagResult.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/DeleteRepositoryTagResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Codeup;
|
||||
using namespace AlibabaCloud::Codeup::Model;
|
||||
|
||||
DeleteRepositoryTagResult::DeleteRepositoryTagResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DeleteRepositoryTagResult::DeleteRepositoryTagResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DeleteRepositoryTagResult::~DeleteRepositoryTagResult()
|
||||
{}
|
||||
|
||||
void DeleteRepositoryTagResult::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["TagName"].isNull())
|
||||
result_.tagName = resultNode["TagName"].asString();
|
||||
if(!value["ErrorCode"].isNull())
|
||||
errorCode_ = value["ErrorCode"].asString();
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
if(!value["ErrorMessage"].isNull())
|
||||
errorMessage_ = value["ErrorMessage"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string DeleteRepositoryTagResult::getErrorCode()const
|
||||
{
|
||||
return errorCode_;
|
||||
}
|
||||
|
||||
std::string DeleteRepositoryTagResult::getErrorMessage()const
|
||||
{
|
||||
return errorMessage_;
|
||||
}
|
||||
|
||||
bool DeleteRepositoryTagResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
DeleteRepositoryTagResult::Result DeleteRepositoryTagResult::getResult()const
|
||||
{
|
||||
return result_;
|
||||
}
|
||||
|
||||
@@ -21,7 +21,7 @@ using AlibabaCloud::Codeup::Model::GetBranchInfoRequest;
|
||||
GetBranchInfoRequest::GetBranchInfoRequest() :
|
||||
RoaServiceRequest("codeup", "2020-04-14")
|
||||
{
|
||||
setResourcePath("/api/v3/projects/[ProjectId]/repository/branches/[BranchName]");
|
||||
setResourcePath("/api/v3/projects/[ProjectId]/repository/branches/detail");
|
||||
setMethod(HttpRequest::Method::Get);
|
||||
}
|
||||
|
||||
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user