Compare commits
30 Commits
Qualityche
...
nlp-automl
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
f9b117f5a6 | ||
|
|
2a6631ce12 | ||
|
|
639137bd27 | ||
|
|
8a601bc5ae | ||
|
|
0a08e77127 | ||
|
|
46971a81db | ||
|
|
5bde791941 | ||
|
|
0793ffd5d4 | ||
|
|
92791badbf | ||
|
|
fbd8bebfed | ||
|
|
15efd0abf3 | ||
|
|
ec2fdb4ecb | ||
|
|
505b8e2062 | ||
|
|
55c2e91e9f | ||
|
|
e70f8f2d10 | ||
|
|
196b891ec3 | ||
|
|
58b398b978 | ||
|
|
13693fecae | ||
|
|
a4f63bc75f | ||
|
|
6dd27ba3df | ||
|
|
cf63bd74d6 | ||
|
|
4b1cbc0461 | ||
|
|
49feb2bedd | ||
|
|
45daf26fac | ||
|
|
a9e22f8d11 | ||
|
|
38d18cec8b | ||
|
|
041b9c9999 | ||
|
|
279ad33425 | ||
|
|
e990580a3e | ||
|
|
6da72af809 |
92
CHANGELOG
92
CHANGELOG
@@ -1,3 +1,95 @@
|
||||
2020-12-28 Version: patch
|
||||
- Add some console API operations.
|
||||
|
||||
2020-12-25 Version: patch
|
||||
- Generated 2016-04-08 for `Emr`.
|
||||
|
||||
2020-12-25 Version: patch
|
||||
- Supported for weboffice edit.
|
||||
|
||||
2020-12-24 Version: patch
|
||||
- Modify ConfigureBackupPlan.
|
||||
|
||||
2020-12-24 Version: patch
|
||||
- Update Open API.
|
||||
|
||||
2020-12-23 Version: patch
|
||||
- CDRS First edition.
|
||||
|
||||
2020-12-23 Version: patch
|
||||
- Add 2019 openapi.
|
||||
|
||||
2020-12-23 Version: patch
|
||||
- Release DetectPedestrianIntrusion.
|
||||
|
||||
2020-12-23 Version: patch
|
||||
- Create Lindorm Open api.
|
||||
|
||||
2020-12-23 Version: patch
|
||||
- Create TSDB Open api.
|
||||
|
||||
2020-12-22 Version: patch
|
||||
- Minor chagnes.
|
||||
|
||||
2020-12-22 Version: patch
|
||||
- Update SegmentAnimal SegmentCommonImage.
|
||||
|
||||
2020-12-22 Version: patch
|
||||
- Support SLB latest OpenAPIs.
|
||||
|
||||
2020-12-22 Version: patch
|
||||
- Release InterpolateVideoFrame ToneSdrVideo ConvertHdrVideo.
|
||||
|
||||
2020-12-22 Version: patch
|
||||
- Release InterpolateVideoFrame.
|
||||
|
||||
2020-12-22 Version: patch
|
||||
- Release DetectRibFracture.
|
||||
|
||||
2020-12-22 Version: patch
|
||||
- Minor chagnes.
|
||||
|
||||
2020-12-22 Version: patch
|
||||
- Generated 2020-05-18 for `dataworks-public`.
|
||||
|
||||
2020-12-21 Version: patch
|
||||
- Support Device of LaunchConfiguration_DataDisk.
|
||||
|
||||
2020-12-21 Version: patch
|
||||
- Support DescribeDatabases for page query.
|
||||
- Support DescribeAccounts for page query.
|
||||
|
||||
2020-12-18 Version: patch
|
||||
- Support ListRepositories, ListOrganizations, GetUserInfo, ListRepositoryWebhook, DeleteRepositoryWebhook api.
|
||||
- AddWebhook api support SecretToken.
|
||||
|
||||
2020-12-18 Version: patch
|
||||
- Add GetAgentDownloadUrl api.
|
||||
|
||||
2020-12-18 Version: patch
|
||||
- Release EvaluateCertificateQuality.
|
||||
|
||||
2020-12-18 Version: patch
|
||||
- Generated 2020-05-18 for `dataworks-public`.
|
||||
|
||||
2020-12-17 Version: patch
|
||||
- Update SegmentFood.
|
||||
|
||||
2020-12-17 Version: patch
|
||||
- Update DeleteScdnDomain.
|
||||
|
||||
2020-12-17 Version: patch
|
||||
- Generated 2014-05-26 for `Ecs`.
|
||||
|
||||
2020-12-17 Version: patch
|
||||
- Update DeleteDcdnDomain.
|
||||
|
||||
2020-12-17 Version: patch
|
||||
- Update DeleteCdnDomain.
|
||||
|
||||
2020-12-17 Version: patch
|
||||
- Generated 2020-01-11 for `servicemesh`.
|
||||
|
||||
2020-12-17 Version: patch
|
||||
- Update api.
|
||||
|
||||
|
||||
@@ -25,6 +25,8 @@ set(arms_public_header_model
|
||||
include/alibabacloud/arms/model/AddGrafanaResult.h
|
||||
include/alibabacloud/arms/model/AddIntegrationRequest.h
|
||||
include/alibabacloud/arms/model/AddIntegrationResult.h
|
||||
include/alibabacloud/arms/model/ApplyScenarioRequest.h
|
||||
include/alibabacloud/arms/model/ApplyScenarioResult.h
|
||||
include/alibabacloud/arms/model/CheckDataConsistencyRequest.h
|
||||
include/alibabacloud/arms/model/CheckDataConsistencyResult.h
|
||||
include/alibabacloud/arms/model/CheckServiceLinkedRoleForDeletingRequest.h
|
||||
@@ -47,6 +49,8 @@ set(arms_public_header_model
|
||||
include/alibabacloud/arms/model/DeleteAlertRulesResult.h
|
||||
include/alibabacloud/arms/model/DeleteRetcodeAppRequest.h
|
||||
include/alibabacloud/arms/model/DeleteRetcodeAppResult.h
|
||||
include/alibabacloud/arms/model/DeleteScenarioRequest.h
|
||||
include/alibabacloud/arms/model/DeleteScenarioResult.h
|
||||
include/alibabacloud/arms/model/DeleteTraceAppRequest.h
|
||||
include/alibabacloud/arms/model/DeleteTraceAppResult.h
|
||||
include/alibabacloud/arms/model/DescribeDispatchRuleRequest.h
|
||||
@@ -57,6 +61,8 @@ set(arms_public_header_model
|
||||
include/alibabacloud/arms/model/DescribeTraceLocationResult.h
|
||||
include/alibabacloud/arms/model/ExportPrometheusRulesRequest.h
|
||||
include/alibabacloud/arms/model/ExportPrometheusRulesResult.h
|
||||
include/alibabacloud/arms/model/GetAgentDownloadUrlRequest.h
|
||||
include/alibabacloud/arms/model/GetAgentDownloadUrlResult.h
|
||||
include/alibabacloud/arms/model/GetAppApiByPageRequest.h
|
||||
include/alibabacloud/arms/model/GetAppApiByPageResult.h
|
||||
include/alibabacloud/arms/model/GetConsistencySnapshotRequest.h
|
||||
@@ -89,8 +95,12 @@ set(arms_public_header_model
|
||||
include/alibabacloud/arms/model/ListPromClustersResult.h
|
||||
include/alibabacloud/arms/model/ListRetcodeAppsRequest.h
|
||||
include/alibabacloud/arms/model/ListRetcodeAppsResult.h
|
||||
include/alibabacloud/arms/model/ListScenarioRequest.h
|
||||
include/alibabacloud/arms/model/ListScenarioResult.h
|
||||
include/alibabacloud/arms/model/ListTraceAppsRequest.h
|
||||
include/alibabacloud/arms/model/ListTraceAppsResult.h
|
||||
include/alibabacloud/arms/model/OpenArmsServiceRequest.h
|
||||
include/alibabacloud/arms/model/OpenArmsServiceResult.h
|
||||
include/alibabacloud/arms/model/QueryDatasetRequest.h
|
||||
include/alibabacloud/arms/model/QueryDatasetResult.h
|
||||
include/alibabacloud/arms/model/QueryMetricRequest.h
|
||||
@@ -144,6 +154,8 @@ set(arms_src
|
||||
src/model/AddGrafanaResult.cc
|
||||
src/model/AddIntegrationRequest.cc
|
||||
src/model/AddIntegrationResult.cc
|
||||
src/model/ApplyScenarioRequest.cc
|
||||
src/model/ApplyScenarioResult.cc
|
||||
src/model/CheckDataConsistencyRequest.cc
|
||||
src/model/CheckDataConsistencyResult.cc
|
||||
src/model/CheckServiceLinkedRoleForDeletingRequest.cc
|
||||
@@ -166,6 +178,8 @@ set(arms_src
|
||||
src/model/DeleteAlertRulesResult.cc
|
||||
src/model/DeleteRetcodeAppRequest.cc
|
||||
src/model/DeleteRetcodeAppResult.cc
|
||||
src/model/DeleteScenarioRequest.cc
|
||||
src/model/DeleteScenarioResult.cc
|
||||
src/model/DeleteTraceAppRequest.cc
|
||||
src/model/DeleteTraceAppResult.cc
|
||||
src/model/DescribeDispatchRuleRequest.cc
|
||||
@@ -176,6 +190,8 @@ set(arms_src
|
||||
src/model/DescribeTraceLocationResult.cc
|
||||
src/model/ExportPrometheusRulesRequest.cc
|
||||
src/model/ExportPrometheusRulesResult.cc
|
||||
src/model/GetAgentDownloadUrlRequest.cc
|
||||
src/model/GetAgentDownloadUrlResult.cc
|
||||
src/model/GetAppApiByPageRequest.cc
|
||||
src/model/GetAppApiByPageResult.cc
|
||||
src/model/GetConsistencySnapshotRequest.cc
|
||||
@@ -208,8 +224,12 @@ set(arms_src
|
||||
src/model/ListPromClustersResult.cc
|
||||
src/model/ListRetcodeAppsRequest.cc
|
||||
src/model/ListRetcodeAppsResult.cc
|
||||
src/model/ListScenarioRequest.cc
|
||||
src/model/ListScenarioResult.cc
|
||||
src/model/ListTraceAppsRequest.cc
|
||||
src/model/ListTraceAppsResult.cc
|
||||
src/model/OpenArmsServiceRequest.cc
|
||||
src/model/OpenArmsServiceResult.cc
|
||||
src/model/QueryDatasetRequest.cc
|
||||
src/model/QueryDatasetResult.cc
|
||||
src/model/QueryMetricRequest.cc
|
||||
|
||||
@@ -26,6 +26,8 @@
|
||||
#include "model/AddGrafanaResult.h"
|
||||
#include "model/AddIntegrationRequest.h"
|
||||
#include "model/AddIntegrationResult.h"
|
||||
#include "model/ApplyScenarioRequest.h"
|
||||
#include "model/ApplyScenarioResult.h"
|
||||
#include "model/CheckDataConsistencyRequest.h"
|
||||
#include "model/CheckDataConsistencyResult.h"
|
||||
#include "model/CheckServiceLinkedRoleForDeletingRequest.h"
|
||||
@@ -48,6 +50,8 @@
|
||||
#include "model/DeleteAlertRulesResult.h"
|
||||
#include "model/DeleteRetcodeAppRequest.h"
|
||||
#include "model/DeleteRetcodeAppResult.h"
|
||||
#include "model/DeleteScenarioRequest.h"
|
||||
#include "model/DeleteScenarioResult.h"
|
||||
#include "model/DeleteTraceAppRequest.h"
|
||||
#include "model/DeleteTraceAppResult.h"
|
||||
#include "model/DescribeDispatchRuleRequest.h"
|
||||
@@ -58,6 +62,8 @@
|
||||
#include "model/DescribeTraceLocationResult.h"
|
||||
#include "model/ExportPrometheusRulesRequest.h"
|
||||
#include "model/ExportPrometheusRulesResult.h"
|
||||
#include "model/GetAgentDownloadUrlRequest.h"
|
||||
#include "model/GetAgentDownloadUrlResult.h"
|
||||
#include "model/GetAppApiByPageRequest.h"
|
||||
#include "model/GetAppApiByPageResult.h"
|
||||
#include "model/GetConsistencySnapshotRequest.h"
|
||||
@@ -90,8 +96,12 @@
|
||||
#include "model/ListPromClustersResult.h"
|
||||
#include "model/ListRetcodeAppsRequest.h"
|
||||
#include "model/ListRetcodeAppsResult.h"
|
||||
#include "model/ListScenarioRequest.h"
|
||||
#include "model/ListScenarioResult.h"
|
||||
#include "model/ListTraceAppsRequest.h"
|
||||
#include "model/ListTraceAppsResult.h"
|
||||
#include "model/OpenArmsServiceRequest.h"
|
||||
#include "model/OpenArmsServiceResult.h"
|
||||
#include "model/QueryDatasetRequest.h"
|
||||
#include "model/QueryDatasetResult.h"
|
||||
#include "model/QueryMetricRequest.h"
|
||||
@@ -153,6 +163,9 @@ namespace AlibabaCloud
|
||||
typedef Outcome<Error, Model::AddIntegrationResult> AddIntegrationOutcome;
|
||||
typedef std::future<AddIntegrationOutcome> AddIntegrationOutcomeCallable;
|
||||
typedef std::function<void(const ARMSClient*, const Model::AddIntegrationRequest&, const AddIntegrationOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> AddIntegrationAsyncHandler;
|
||||
typedef Outcome<Error, Model::ApplyScenarioResult> ApplyScenarioOutcome;
|
||||
typedef std::future<ApplyScenarioOutcome> ApplyScenarioOutcomeCallable;
|
||||
typedef std::function<void(const ARMSClient*, const Model::ApplyScenarioRequest&, const ApplyScenarioOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ApplyScenarioAsyncHandler;
|
||||
typedef Outcome<Error, Model::CheckDataConsistencyResult> CheckDataConsistencyOutcome;
|
||||
typedef std::future<CheckDataConsistencyOutcome> CheckDataConsistencyOutcomeCallable;
|
||||
typedef std::function<void(const ARMSClient*, const Model::CheckDataConsistencyRequest&, const CheckDataConsistencyOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> CheckDataConsistencyAsyncHandler;
|
||||
@@ -186,6 +199,9 @@ namespace AlibabaCloud
|
||||
typedef Outcome<Error, Model::DeleteRetcodeAppResult> DeleteRetcodeAppOutcome;
|
||||
typedef std::future<DeleteRetcodeAppOutcome> DeleteRetcodeAppOutcomeCallable;
|
||||
typedef std::function<void(const ARMSClient*, const Model::DeleteRetcodeAppRequest&, const DeleteRetcodeAppOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DeleteRetcodeAppAsyncHandler;
|
||||
typedef Outcome<Error, Model::DeleteScenarioResult> DeleteScenarioOutcome;
|
||||
typedef std::future<DeleteScenarioOutcome> DeleteScenarioOutcomeCallable;
|
||||
typedef std::function<void(const ARMSClient*, const Model::DeleteScenarioRequest&, const DeleteScenarioOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DeleteScenarioAsyncHandler;
|
||||
typedef Outcome<Error, Model::DeleteTraceAppResult> DeleteTraceAppOutcome;
|
||||
typedef std::future<DeleteTraceAppOutcome> DeleteTraceAppOutcomeCallable;
|
||||
typedef std::function<void(const ARMSClient*, const Model::DeleteTraceAppRequest&, const DeleteTraceAppOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DeleteTraceAppAsyncHandler;
|
||||
@@ -201,6 +217,9 @@ namespace AlibabaCloud
|
||||
typedef Outcome<Error, Model::ExportPrometheusRulesResult> ExportPrometheusRulesOutcome;
|
||||
typedef std::future<ExportPrometheusRulesOutcome> ExportPrometheusRulesOutcomeCallable;
|
||||
typedef std::function<void(const ARMSClient*, const Model::ExportPrometheusRulesRequest&, const ExportPrometheusRulesOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ExportPrometheusRulesAsyncHandler;
|
||||
typedef Outcome<Error, Model::GetAgentDownloadUrlResult> GetAgentDownloadUrlOutcome;
|
||||
typedef std::future<GetAgentDownloadUrlOutcome> GetAgentDownloadUrlOutcomeCallable;
|
||||
typedef std::function<void(const ARMSClient*, const Model::GetAgentDownloadUrlRequest&, const GetAgentDownloadUrlOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetAgentDownloadUrlAsyncHandler;
|
||||
typedef Outcome<Error, Model::GetAppApiByPageResult> GetAppApiByPageOutcome;
|
||||
typedef std::future<GetAppApiByPageOutcome> GetAppApiByPageOutcomeCallable;
|
||||
typedef std::function<void(const ARMSClient*, const Model::GetAppApiByPageRequest&, const GetAppApiByPageOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetAppApiByPageAsyncHandler;
|
||||
@@ -249,9 +268,15 @@ namespace AlibabaCloud
|
||||
typedef Outcome<Error, Model::ListRetcodeAppsResult> ListRetcodeAppsOutcome;
|
||||
typedef std::future<ListRetcodeAppsOutcome> ListRetcodeAppsOutcomeCallable;
|
||||
typedef std::function<void(const ARMSClient*, const Model::ListRetcodeAppsRequest&, const ListRetcodeAppsOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ListRetcodeAppsAsyncHandler;
|
||||
typedef Outcome<Error, Model::ListScenarioResult> ListScenarioOutcome;
|
||||
typedef std::future<ListScenarioOutcome> ListScenarioOutcomeCallable;
|
||||
typedef std::function<void(const ARMSClient*, const Model::ListScenarioRequest&, const ListScenarioOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ListScenarioAsyncHandler;
|
||||
typedef Outcome<Error, Model::ListTraceAppsResult> ListTraceAppsOutcome;
|
||||
typedef std::future<ListTraceAppsOutcome> ListTraceAppsOutcomeCallable;
|
||||
typedef std::function<void(const ARMSClient*, const Model::ListTraceAppsRequest&, const ListTraceAppsOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ListTraceAppsAsyncHandler;
|
||||
typedef Outcome<Error, Model::OpenArmsServiceResult> OpenArmsServiceOutcome;
|
||||
typedef std::future<OpenArmsServiceOutcome> OpenArmsServiceOutcomeCallable;
|
||||
typedef std::function<void(const ARMSClient*, const Model::OpenArmsServiceRequest&, const OpenArmsServiceOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> OpenArmsServiceAsyncHandler;
|
||||
typedef Outcome<Error, Model::QueryDatasetResult> QueryDatasetOutcome;
|
||||
typedef std::future<QueryDatasetOutcome> QueryDatasetOutcomeCallable;
|
||||
typedef std::function<void(const ARMSClient*, const Model::QueryDatasetRequest&, const QueryDatasetOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> QueryDatasetAsyncHandler;
|
||||
@@ -332,6 +357,9 @@ namespace AlibabaCloud
|
||||
AddIntegrationOutcome addIntegration(const Model::AddIntegrationRequest &request)const;
|
||||
void addIntegrationAsync(const Model::AddIntegrationRequest& request, const AddIntegrationAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
AddIntegrationOutcomeCallable addIntegrationCallable(const Model::AddIntegrationRequest& request) const;
|
||||
ApplyScenarioOutcome applyScenario(const Model::ApplyScenarioRequest &request)const;
|
||||
void applyScenarioAsync(const Model::ApplyScenarioRequest& request, const ApplyScenarioAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
ApplyScenarioOutcomeCallable applyScenarioCallable(const Model::ApplyScenarioRequest& request) const;
|
||||
CheckDataConsistencyOutcome checkDataConsistency(const Model::CheckDataConsistencyRequest &request)const;
|
||||
void checkDataConsistencyAsync(const Model::CheckDataConsistencyRequest& request, const CheckDataConsistencyAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
CheckDataConsistencyOutcomeCallable checkDataConsistencyCallable(const Model::CheckDataConsistencyRequest& request) const;
|
||||
@@ -365,6 +393,9 @@ namespace AlibabaCloud
|
||||
DeleteRetcodeAppOutcome deleteRetcodeApp(const Model::DeleteRetcodeAppRequest &request)const;
|
||||
void deleteRetcodeAppAsync(const Model::DeleteRetcodeAppRequest& request, const DeleteRetcodeAppAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DeleteRetcodeAppOutcomeCallable deleteRetcodeAppCallable(const Model::DeleteRetcodeAppRequest& request) const;
|
||||
DeleteScenarioOutcome deleteScenario(const Model::DeleteScenarioRequest &request)const;
|
||||
void deleteScenarioAsync(const Model::DeleteScenarioRequest& request, const DeleteScenarioAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DeleteScenarioOutcomeCallable deleteScenarioCallable(const Model::DeleteScenarioRequest& request) const;
|
||||
DeleteTraceAppOutcome deleteTraceApp(const Model::DeleteTraceAppRequest &request)const;
|
||||
void deleteTraceAppAsync(const Model::DeleteTraceAppRequest& request, const DeleteTraceAppAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DeleteTraceAppOutcomeCallable deleteTraceAppCallable(const Model::DeleteTraceAppRequest& request) const;
|
||||
@@ -380,6 +411,9 @@ namespace AlibabaCloud
|
||||
ExportPrometheusRulesOutcome exportPrometheusRules(const Model::ExportPrometheusRulesRequest &request)const;
|
||||
void exportPrometheusRulesAsync(const Model::ExportPrometheusRulesRequest& request, const ExportPrometheusRulesAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
ExportPrometheusRulesOutcomeCallable exportPrometheusRulesCallable(const Model::ExportPrometheusRulesRequest& request) const;
|
||||
GetAgentDownloadUrlOutcome getAgentDownloadUrl(const Model::GetAgentDownloadUrlRequest &request)const;
|
||||
void getAgentDownloadUrlAsync(const Model::GetAgentDownloadUrlRequest& request, const GetAgentDownloadUrlAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
GetAgentDownloadUrlOutcomeCallable getAgentDownloadUrlCallable(const Model::GetAgentDownloadUrlRequest& request) const;
|
||||
GetAppApiByPageOutcome getAppApiByPage(const Model::GetAppApiByPageRequest &request)const;
|
||||
void getAppApiByPageAsync(const Model::GetAppApiByPageRequest& request, const GetAppApiByPageAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
GetAppApiByPageOutcomeCallable getAppApiByPageCallable(const Model::GetAppApiByPageRequest& request) const;
|
||||
@@ -428,9 +462,15 @@ namespace AlibabaCloud
|
||||
ListRetcodeAppsOutcome listRetcodeApps(const Model::ListRetcodeAppsRequest &request)const;
|
||||
void listRetcodeAppsAsync(const Model::ListRetcodeAppsRequest& request, const ListRetcodeAppsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
ListRetcodeAppsOutcomeCallable listRetcodeAppsCallable(const Model::ListRetcodeAppsRequest& request) const;
|
||||
ListScenarioOutcome listScenario(const Model::ListScenarioRequest &request)const;
|
||||
void listScenarioAsync(const Model::ListScenarioRequest& request, const ListScenarioAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
ListScenarioOutcomeCallable listScenarioCallable(const Model::ListScenarioRequest& request) const;
|
||||
ListTraceAppsOutcome listTraceApps(const Model::ListTraceAppsRequest &request)const;
|
||||
void listTraceAppsAsync(const Model::ListTraceAppsRequest& request, const ListTraceAppsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
ListTraceAppsOutcomeCallable listTraceAppsCallable(const Model::ListTraceAppsRequest& request) const;
|
||||
OpenArmsServiceOutcome openArmsService(const Model::OpenArmsServiceRequest &request)const;
|
||||
void openArmsServiceAsync(const Model::OpenArmsServiceRequest& request, const OpenArmsServiceAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
OpenArmsServiceOutcomeCallable openArmsServiceCallable(const Model::OpenArmsServiceRequest& request) const;
|
||||
QueryDatasetOutcome queryDataset(const Model::QueryDatasetRequest &request)const;
|
||||
void queryDatasetAsync(const Model::QueryDatasetRequest& request, const QueryDatasetAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
QueryDatasetOutcomeCallable queryDatasetCallable(const Model::QueryDatasetRequest& request) const;
|
||||
|
||||
78
arms/include/alibabacloud/arms/model/ApplyScenarioRequest.h
Normal file
78
arms/include/alibabacloud/arms/model/ApplyScenarioRequest.h
Normal file
@@ -0,0 +1,78 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_ARMS_MODEL_APPLYSCENARIOREQUEST_H_
|
||||
#define ALIBABACLOUD_ARMS_MODEL_APPLYSCENARIOREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/arms/ARMSExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace ARMS
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_ARMS_EXPORT ApplyScenarioRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
ApplyScenarioRequest();
|
||||
~ApplyScenarioRequest();
|
||||
|
||||
bool getSnForce()const;
|
||||
void setSnForce(bool snForce);
|
||||
std::string getSign()const;
|
||||
void setSign(const std::string& sign);
|
||||
bool getSnStat()const;
|
||||
void setSnStat(bool snStat);
|
||||
std::string getRegionId()const;
|
||||
void setRegionId(const std::string& regionId);
|
||||
std::string getScenario()const;
|
||||
void setScenario(const std::string& scenario);
|
||||
bool getSnDump()const;
|
||||
void setSnDump(bool snDump);
|
||||
std::string getAppId()const;
|
||||
void setAppId(const std::string& appId);
|
||||
std::string getName()const;
|
||||
void setName(const std::string& name);
|
||||
bool getSnTransfer()const;
|
||||
void setSnTransfer(bool snTransfer);
|
||||
bool getUpdateOption()const;
|
||||
void setUpdateOption(bool updateOption);
|
||||
std::string getConfig()const;
|
||||
void setConfig(const std::string& config);
|
||||
|
||||
private:
|
||||
bool snForce_;
|
||||
std::string sign_;
|
||||
bool snStat_;
|
||||
std::string regionId_;
|
||||
std::string scenario_;
|
||||
bool snDump_;
|
||||
std::string appId_;
|
||||
std::string name_;
|
||||
bool snTransfer_;
|
||||
bool updateOption_;
|
||||
std::string config_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_ARMS_MODEL_APPLYSCENARIOREQUEST_H_
|
||||
@@ -14,29 +14,29 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_EMR_MODEL_MIGRATEJOBSRESULT_H_
|
||||
#define ALIBABACLOUD_EMR_MODEL_MIGRATEJOBSRESULT_H_
|
||||
#ifndef ALIBABACLOUD_ARMS_MODEL_APPLYSCENARIORESULT_H_
|
||||
#define ALIBABACLOUD_ARMS_MODEL_APPLYSCENARIORESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/emr/EmrExport.h>
|
||||
#include <alibabacloud/arms/ARMSExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Emr
|
||||
namespace ARMS
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_EMR_EXPORT MigrateJobsResult : public ServiceResult
|
||||
class ALIBABACLOUD_ARMS_EXPORT ApplyScenarioResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
|
||||
|
||||
MigrateJobsResult();
|
||||
explicit MigrateJobsResult(const std::string &payload);
|
||||
~MigrateJobsResult();
|
||||
ApplyScenarioResult();
|
||||
explicit ApplyScenarioResult(const std::string &payload);
|
||||
~ApplyScenarioResult();
|
||||
std::string getResult()const;
|
||||
|
||||
protected:
|
||||
@@ -48,4 +48,4 @@ namespace AlibabaCloud
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_EMR_MODEL_MIGRATEJOBSRESULT_H_
|
||||
#endif // !ALIBABACLOUD_ARMS_MODEL_APPLYSCENARIORESULT_H_
|
||||
@@ -14,32 +14,35 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_EMR_MODEL_GETBACKINFOREQUEST_H_
|
||||
#define ALIBABACLOUD_EMR_MODEL_GETBACKINFOREQUEST_H_
|
||||
#ifndef ALIBABACLOUD_ARMS_MODEL_DELETESCENARIOREQUEST_H_
|
||||
#define ALIBABACLOUD_ARMS_MODEL_DELETESCENARIOREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/emr/EmrExport.h>
|
||||
#include <alibabacloud/arms/ARMSExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Emr
|
||||
namespace ARMS
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_EMR_EXPORT GetBackInfoRequest : public RpcServiceRequest
|
||||
class ALIBABACLOUD_ARMS_EXPORT DeleteScenarioRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
GetBackInfoRequest();
|
||||
~GetBackInfoRequest();
|
||||
DeleteScenarioRequest();
|
||||
~DeleteScenarioRequest();
|
||||
|
||||
long getScenarioId()const;
|
||||
void setScenarioId(long scenarioId);
|
||||
|
||||
private:
|
||||
long scenarioId_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_EMR_MODEL_GETBACKINFOREQUEST_H_
|
||||
#endif // !ALIBABACLOUD_ARMS_MODEL_DELETESCENARIOREQUEST_H_
|
||||
@@ -14,36 +14,38 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_EMR_MODEL_DELETEPARAGRAPHRESULT_H_
|
||||
#define ALIBABACLOUD_EMR_MODEL_DELETEPARAGRAPHRESULT_H_
|
||||
#ifndef ALIBABACLOUD_ARMS_MODEL_DELETESCENARIORESULT_H_
|
||||
#define ALIBABACLOUD_ARMS_MODEL_DELETESCENARIORESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/emr/EmrExport.h>
|
||||
#include <alibabacloud/arms/ARMSExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Emr
|
||||
namespace ARMS
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_EMR_EXPORT DeleteParagraphResult : public ServiceResult
|
||||
class ALIBABACLOUD_ARMS_EXPORT DeleteScenarioResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
|
||||
|
||||
DeleteParagraphResult();
|
||||
explicit DeleteParagraphResult(const std::string &payload);
|
||||
~DeleteParagraphResult();
|
||||
DeleteScenarioResult();
|
||||
explicit DeleteScenarioResult(const std::string &payload);
|
||||
~DeleteScenarioResult();
|
||||
bool getResult()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
bool result_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_EMR_MODEL_DELETEPARAGRAPHRESULT_H_
|
||||
#endif // !ALIBABACLOUD_ARMS_MODEL_DELETESCENARIORESULT_H_
|
||||
@@ -14,38 +14,35 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_EMR_MODEL_DELETEFLOWPROJECTBYIDREQUEST_H_
|
||||
#define ALIBABACLOUD_EMR_MODEL_DELETEFLOWPROJECTBYIDREQUEST_H_
|
||||
#ifndef ALIBABACLOUD_ARMS_MODEL_GETAGENTDOWNLOADURLREQUEST_H_
|
||||
#define ALIBABACLOUD_ARMS_MODEL_GETAGENTDOWNLOADURLREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/emr/EmrExport.h>
|
||||
#include <alibabacloud/arms/ARMSExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Emr
|
||||
namespace ARMS
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_EMR_EXPORT DeleteFlowProjectByIdRequest : public RpcServiceRequest
|
||||
class ALIBABACLOUD_ARMS_EXPORT GetAgentDownloadUrlRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
DeleteFlowProjectByIdRequest();
|
||||
~DeleteFlowProjectByIdRequest();
|
||||
GetAgentDownloadUrlRequest();
|
||||
~GetAgentDownloadUrlRequest();
|
||||
|
||||
std::string getRegionId()const;
|
||||
void setRegionId(const std::string& regionId);
|
||||
std::string getProjectId()const;
|
||||
void setProjectId(const std::string& projectId);
|
||||
|
||||
private:
|
||||
std::string regionId_;
|
||||
std::string projectId_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_EMR_MODEL_DELETEFLOWPROJECTBYIDREQUEST_H_
|
||||
#endif // !ALIBABACLOUD_ARMS_MODEL_GETAGENTDOWNLOADURLREQUEST_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_ARMS_MODEL_GETAGENTDOWNLOADURLRESULT_H_
|
||||
#define ALIBABACLOUD_ARMS_MODEL_GETAGENTDOWNLOADURLRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/arms/ARMSExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace ARMS
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_ARMS_EXPORT GetAgentDownloadUrlResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
|
||||
|
||||
GetAgentDownloadUrlResult();
|
||||
explicit GetAgentDownloadUrlResult(const std::string &payload);
|
||||
~GetAgentDownloadUrlResult();
|
||||
std::string getArmsAgentDownloadUrl()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::string armsAgentDownloadUrl_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_ARMS_MODEL_GETAGENTDOWNLOADURLRESULT_H_
|
||||
@@ -35,14 +35,20 @@ namespace AlibabaCloud
|
||||
ListDashboardsRequest();
|
||||
~ListDashboardsRequest();
|
||||
|
||||
std::string getClusterType()const;
|
||||
void setClusterType(const std::string& clusterType);
|
||||
std::string getRegionId()const;
|
||||
void setRegionId(const std::string& regionId);
|
||||
std::string getClusterId()const;
|
||||
void setClusterId(const std::string& clusterId);
|
||||
std::string getTitle()const;
|
||||
void setTitle(const std::string& title);
|
||||
|
||||
private:
|
||||
std::string clusterType_;
|
||||
std::string regionId_;
|
||||
std::string clusterId_;
|
||||
std::string title_;
|
||||
|
||||
};
|
||||
}
|
||||
|
||||
@@ -14,47 +14,47 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_EMR_MODEL_CLONEDATASOURCEREQUEST_H_
|
||||
#define ALIBABACLOUD_EMR_MODEL_CLONEDATASOURCEREQUEST_H_
|
||||
#ifndef ALIBABACLOUD_ARMS_MODEL_LISTSCENARIOREQUEST_H_
|
||||
#define ALIBABACLOUD_ARMS_MODEL_LISTSCENARIOREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/emr/EmrExport.h>
|
||||
#include <alibabacloud/arms/ARMSExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Emr
|
||||
namespace ARMS
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_EMR_EXPORT CloneDataSourceRequest : public RpcServiceRequest
|
||||
class ALIBABACLOUD_ARMS_EXPORT ListScenarioRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
CloneDataSourceRequest();
|
||||
~CloneDataSourceRequest();
|
||||
ListScenarioRequest();
|
||||
~ListScenarioRequest();
|
||||
|
||||
long getResourceOwnerId()const;
|
||||
void setResourceOwnerId(long resourceOwnerId);
|
||||
std::string getRegionId()const;
|
||||
void setRegionId(const std::string& regionId);
|
||||
std::string getScenario()const;
|
||||
void setScenario(const std::string& scenario);
|
||||
std::string getAppId()const;
|
||||
void setAppId(const std::string& appId);
|
||||
std::string getName()const;
|
||||
void setName(const std::string& name);
|
||||
std::string getId()const;
|
||||
void setId(const std::string& id);
|
||||
std::string getAccessKeyId()const;
|
||||
void setAccessKeyId(const std::string& accessKeyId);
|
||||
std::string getSign()const;
|
||||
void setSign(const std::string& sign);
|
||||
|
||||
private:
|
||||
long resourceOwnerId_;
|
||||
std::string regionId_;
|
||||
std::string scenario_;
|
||||
std::string appId_;
|
||||
std::string name_;
|
||||
std::string id_;
|
||||
std::string accessKeyId_;
|
||||
std::string sign_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_EMR_MODEL_CLONEDATASOURCEREQUEST_H_
|
||||
#endif // !ALIBABACLOUD_ARMS_MODEL_LISTSCENARIOREQUEST_H_
|
||||
@@ -14,48 +14,50 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_EMR_MODEL_LISTALERTCONTACTSRESULT_H_
|
||||
#define ALIBABACLOUD_EMR_MODEL_LISTALERTCONTACTSRESULT_H_
|
||||
#ifndef ALIBABACLOUD_ARMS_MODEL_LISTSCENARIORESULT_H_
|
||||
#define ALIBABACLOUD_ARMS_MODEL_LISTSCENARIORESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/emr/EmrExport.h>
|
||||
#include <alibabacloud/arms/ARMSExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Emr
|
||||
namespace ARMS
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_EMR_EXPORT ListAlertContactsResult : public ServiceResult
|
||||
class ALIBABACLOUD_ARMS_EXPORT ListScenarioResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct AlertContact
|
||||
struct ArmsScenariosItem
|
||||
{
|
||||
std::string gmtCreate;
|
||||
std::string email;
|
||||
std::string gmtModified;
|
||||
std::string phoneNumber;
|
||||
std::string appId;
|
||||
std::string userId;
|
||||
std::string createTime;
|
||||
std::string updateTime;
|
||||
std::string sign;
|
||||
long id;
|
||||
std::string bizId;
|
||||
std::string regionId;
|
||||
std::string extensions;
|
||||
std::string name;
|
||||
};
|
||||
|
||||
|
||||
ListAlertContactsResult();
|
||||
explicit ListAlertContactsResult(const std::string &payload);
|
||||
~ListAlertContactsResult();
|
||||
std::vector<AlertContact> getAlertContactList()const;
|
||||
ListScenarioResult();
|
||||
explicit ListScenarioResult(const std::string &payload);
|
||||
~ListScenarioResult();
|
||||
std::vector<ArmsScenariosItem> getArmsScenarios()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::vector<AlertContact> alertContactList_;
|
||||
std::vector<ArmsScenariosItem> armsScenarios_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_EMR_MODEL_LISTALERTCONTACTSRESULT_H_
|
||||
#endif // !ALIBABACLOUD_ARMS_MODEL_LISTSCENARIORESULT_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_ARMS_MODEL_OPENARMSSERVICEREQUEST_H_
|
||||
#define ALIBABACLOUD_ARMS_MODEL_OPENARMSSERVICEREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/arms/ARMSExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace ARMS
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_ARMS_EXPORT OpenArmsServiceRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
OpenArmsServiceRequest();
|
||||
~OpenArmsServiceRequest();
|
||||
|
||||
long getOwnerId()const;
|
||||
void setOwnerId(long ownerId);
|
||||
std::string getType()const;
|
||||
void setType(const std::string& type);
|
||||
|
||||
private:
|
||||
long ownerId_;
|
||||
std::string type_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_ARMS_MODEL_OPENARMSSERVICEREQUEST_H_
|
||||
@@ -14,38 +14,38 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_EMR_MODEL_REMOVEBACKUPRULERESULT_H_
|
||||
#define ALIBABACLOUD_EMR_MODEL_REMOVEBACKUPRULERESULT_H_
|
||||
#ifndef ALIBABACLOUD_ARMS_MODEL_OPENARMSSERVICERESULT_H_
|
||||
#define ALIBABACLOUD_ARMS_MODEL_OPENARMSSERVICERESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/emr/EmrExport.h>
|
||||
#include <alibabacloud/arms/ARMSExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Emr
|
||||
namespace ARMS
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_EMR_EXPORT RemoveBackupRuleResult : public ServiceResult
|
||||
class ALIBABACLOUD_ARMS_EXPORT OpenArmsServiceResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
|
||||
|
||||
RemoveBackupRuleResult();
|
||||
explicit RemoveBackupRuleResult(const std::string &payload);
|
||||
~RemoveBackupRuleResult();
|
||||
bool getData()const;
|
||||
OpenArmsServiceResult();
|
||||
explicit OpenArmsServiceResult(const std::string &payload);
|
||||
~OpenArmsServiceResult();
|
||||
std::string getOrderId()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
bool data_;
|
||||
std::string orderId_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_EMR_MODEL_REMOVEBACKUPRULERESULT_H_
|
||||
#endif // !ALIBABACLOUD_ARMS_MODEL_OPENARMSSERVICERESULT_H_
|
||||
@@ -123,6 +123,42 @@ ARMSClient::AddIntegrationOutcomeCallable ARMSClient::addIntegrationCallable(con
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
ARMSClient::ApplyScenarioOutcome ARMSClient::applyScenario(const ApplyScenarioRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return ApplyScenarioOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return ApplyScenarioOutcome(ApplyScenarioResult(outcome.result()));
|
||||
else
|
||||
return ApplyScenarioOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void ARMSClient::applyScenarioAsync(const ApplyScenarioRequest& request, const ApplyScenarioAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, applyScenario(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
ARMSClient::ApplyScenarioOutcomeCallable ARMSClient::applyScenarioCallable(const ApplyScenarioRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<ApplyScenarioOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->applyScenario(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
ARMSClient::CheckDataConsistencyOutcome ARMSClient::checkDataConsistency(const CheckDataConsistencyRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -519,6 +555,42 @@ ARMSClient::DeleteRetcodeAppOutcomeCallable ARMSClient::deleteRetcodeAppCallable
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
ARMSClient::DeleteScenarioOutcome ARMSClient::deleteScenario(const DeleteScenarioRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return DeleteScenarioOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return DeleteScenarioOutcome(DeleteScenarioResult(outcome.result()));
|
||||
else
|
||||
return DeleteScenarioOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void ARMSClient::deleteScenarioAsync(const DeleteScenarioRequest& request, const DeleteScenarioAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, deleteScenario(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
ARMSClient::DeleteScenarioOutcomeCallable ARMSClient::deleteScenarioCallable(const DeleteScenarioRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<DeleteScenarioOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->deleteScenario(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
ARMSClient::DeleteTraceAppOutcome ARMSClient::deleteTraceApp(const DeleteTraceAppRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -699,6 +771,42 @@ ARMSClient::ExportPrometheusRulesOutcomeCallable ARMSClient::exportPrometheusRul
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
ARMSClient::GetAgentDownloadUrlOutcome ARMSClient::getAgentDownloadUrl(const GetAgentDownloadUrlRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return GetAgentDownloadUrlOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return GetAgentDownloadUrlOutcome(GetAgentDownloadUrlResult(outcome.result()));
|
||||
else
|
||||
return GetAgentDownloadUrlOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void ARMSClient::getAgentDownloadUrlAsync(const GetAgentDownloadUrlRequest& request, const GetAgentDownloadUrlAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, getAgentDownloadUrl(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
ARMSClient::GetAgentDownloadUrlOutcomeCallable ARMSClient::getAgentDownloadUrlCallable(const GetAgentDownloadUrlRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<GetAgentDownloadUrlOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->getAgentDownloadUrl(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
ARMSClient::GetAppApiByPageOutcome ARMSClient::getAppApiByPage(const GetAppApiByPageRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -1275,6 +1383,42 @@ ARMSClient::ListRetcodeAppsOutcomeCallable ARMSClient::listRetcodeAppsCallable(c
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
ARMSClient::ListScenarioOutcome ARMSClient::listScenario(const ListScenarioRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return ListScenarioOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return ListScenarioOutcome(ListScenarioResult(outcome.result()));
|
||||
else
|
||||
return ListScenarioOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void ARMSClient::listScenarioAsync(const ListScenarioRequest& request, const ListScenarioAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, listScenario(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
ARMSClient::ListScenarioOutcomeCallable ARMSClient::listScenarioCallable(const ListScenarioRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<ListScenarioOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->listScenario(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
ARMSClient::ListTraceAppsOutcome ARMSClient::listTraceApps(const ListTraceAppsRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -1311,6 +1455,42 @@ ARMSClient::ListTraceAppsOutcomeCallable ARMSClient::listTraceAppsCallable(const
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
ARMSClient::OpenArmsServiceOutcome ARMSClient::openArmsService(const OpenArmsServiceRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return OpenArmsServiceOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return OpenArmsServiceOutcome(OpenArmsServiceResult(outcome.result()));
|
||||
else
|
||||
return OpenArmsServiceOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void ARMSClient::openArmsServiceAsync(const OpenArmsServiceRequest& request, const OpenArmsServiceAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, openArmsService(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
ARMSClient::OpenArmsServiceOutcomeCallable ARMSClient::openArmsServiceCallable(const OpenArmsServiceRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<OpenArmsServiceOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->openArmsService(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
ARMSClient::QueryDatasetOutcome ARMSClient::queryDataset(const QueryDatasetRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
|
||||
150
arms/src/model/ApplyScenarioRequest.cc
Normal file
150
arms/src/model/ApplyScenarioRequest.cc
Normal file
@@ -0,0 +1,150 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/arms/model/ApplyScenarioRequest.h>
|
||||
|
||||
using AlibabaCloud::ARMS::Model::ApplyScenarioRequest;
|
||||
|
||||
ApplyScenarioRequest::ApplyScenarioRequest() :
|
||||
RpcServiceRequest("arms", "2019-08-08", "ApplyScenario")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
ApplyScenarioRequest::~ApplyScenarioRequest()
|
||||
{}
|
||||
|
||||
bool ApplyScenarioRequest::getSnForce()const
|
||||
{
|
||||
return snForce_;
|
||||
}
|
||||
|
||||
void ApplyScenarioRequest::setSnForce(bool snForce)
|
||||
{
|
||||
snForce_ = snForce;
|
||||
setParameter("SnForce", snForce ? "true" : "false");
|
||||
}
|
||||
|
||||
std::string ApplyScenarioRequest::getSign()const
|
||||
{
|
||||
return sign_;
|
||||
}
|
||||
|
||||
void ApplyScenarioRequest::setSign(const std::string& sign)
|
||||
{
|
||||
sign_ = sign;
|
||||
setParameter("Sign", sign);
|
||||
}
|
||||
|
||||
bool ApplyScenarioRequest::getSnStat()const
|
||||
{
|
||||
return snStat_;
|
||||
}
|
||||
|
||||
void ApplyScenarioRequest::setSnStat(bool snStat)
|
||||
{
|
||||
snStat_ = snStat;
|
||||
setParameter("SnStat", snStat ? "true" : "false");
|
||||
}
|
||||
|
||||
std::string ApplyScenarioRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void ApplyScenarioRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
std::string ApplyScenarioRequest::getScenario()const
|
||||
{
|
||||
return scenario_;
|
||||
}
|
||||
|
||||
void ApplyScenarioRequest::setScenario(const std::string& scenario)
|
||||
{
|
||||
scenario_ = scenario;
|
||||
setParameter("Scenario", scenario);
|
||||
}
|
||||
|
||||
bool ApplyScenarioRequest::getSnDump()const
|
||||
{
|
||||
return snDump_;
|
||||
}
|
||||
|
||||
void ApplyScenarioRequest::setSnDump(bool snDump)
|
||||
{
|
||||
snDump_ = snDump;
|
||||
setParameter("SnDump", snDump ? "true" : "false");
|
||||
}
|
||||
|
||||
std::string ApplyScenarioRequest::getAppId()const
|
||||
{
|
||||
return appId_;
|
||||
}
|
||||
|
||||
void ApplyScenarioRequest::setAppId(const std::string& appId)
|
||||
{
|
||||
appId_ = appId;
|
||||
setParameter("AppId", appId);
|
||||
}
|
||||
|
||||
std::string ApplyScenarioRequest::getName()const
|
||||
{
|
||||
return name_;
|
||||
}
|
||||
|
||||
void ApplyScenarioRequest::setName(const std::string& name)
|
||||
{
|
||||
name_ = name;
|
||||
setParameter("Name", name);
|
||||
}
|
||||
|
||||
bool ApplyScenarioRequest::getSnTransfer()const
|
||||
{
|
||||
return snTransfer_;
|
||||
}
|
||||
|
||||
void ApplyScenarioRequest::setSnTransfer(bool snTransfer)
|
||||
{
|
||||
snTransfer_ = snTransfer;
|
||||
setParameter("SnTransfer", snTransfer ? "true" : "false");
|
||||
}
|
||||
|
||||
bool ApplyScenarioRequest::getUpdateOption()const
|
||||
{
|
||||
return updateOption_;
|
||||
}
|
||||
|
||||
void ApplyScenarioRequest::setUpdateOption(bool updateOption)
|
||||
{
|
||||
updateOption_ = updateOption;
|
||||
setParameter("UpdateOption", updateOption ? "true" : "false");
|
||||
}
|
||||
|
||||
std::string ApplyScenarioRequest::getConfig()const
|
||||
{
|
||||
return config_;
|
||||
}
|
||||
|
||||
void ApplyScenarioRequest::setConfig(const std::string& config)
|
||||
{
|
||||
config_ = config;
|
||||
setParameter("Config", config);
|
||||
}
|
||||
|
||||
51
arms/src/model/ApplyScenarioResult.cc
Normal file
51
arms/src/model/ApplyScenarioResult.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/arms/model/ApplyScenarioResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::ARMS;
|
||||
using namespace AlibabaCloud::ARMS::Model;
|
||||
|
||||
ApplyScenarioResult::ApplyScenarioResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
ApplyScenarioResult::ApplyScenarioResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
ApplyScenarioResult::~ApplyScenarioResult()
|
||||
{}
|
||||
|
||||
void ApplyScenarioResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["Result"].isNull())
|
||||
result_ = value["Result"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string ApplyScenarioResult::getResult()const
|
||||
{
|
||||
return result_;
|
||||
}
|
||||
|
||||
40
arms/src/model/DeleteScenarioRequest.cc
Normal file
40
arms/src/model/DeleteScenarioRequest.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/arms/model/DeleteScenarioRequest.h>
|
||||
|
||||
using AlibabaCloud::ARMS::Model::DeleteScenarioRequest;
|
||||
|
||||
DeleteScenarioRequest::DeleteScenarioRequest() :
|
||||
RpcServiceRequest("arms", "2019-08-08", "DeleteScenario")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DeleteScenarioRequest::~DeleteScenarioRequest()
|
||||
{}
|
||||
|
||||
long DeleteScenarioRequest::getScenarioId()const
|
||||
{
|
||||
return scenarioId_;
|
||||
}
|
||||
|
||||
void DeleteScenarioRequest::setScenarioId(long scenarioId)
|
||||
{
|
||||
scenarioId_ = scenarioId;
|
||||
setParameter("ScenarioId", std::to_string(scenarioId));
|
||||
}
|
||||
|
||||
51
arms/src/model/DeleteScenarioResult.cc
Normal file
51
arms/src/model/DeleteScenarioResult.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/arms/model/DeleteScenarioResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::ARMS;
|
||||
using namespace AlibabaCloud::ARMS::Model;
|
||||
|
||||
DeleteScenarioResult::DeleteScenarioResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DeleteScenarioResult::DeleteScenarioResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DeleteScenarioResult::~DeleteScenarioResult()
|
||||
{}
|
||||
|
||||
void DeleteScenarioResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["Result"].isNull())
|
||||
result_ = value["Result"].asString() == "true";
|
||||
|
||||
}
|
||||
|
||||
bool DeleteScenarioResult::getResult()const
|
||||
{
|
||||
return result_;
|
||||
}
|
||||
|
||||
40
arms/src/model/GetAgentDownloadUrlRequest.cc
Normal file
40
arms/src/model/GetAgentDownloadUrlRequest.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/arms/model/GetAgentDownloadUrlRequest.h>
|
||||
|
||||
using AlibabaCloud::ARMS::Model::GetAgentDownloadUrlRequest;
|
||||
|
||||
GetAgentDownloadUrlRequest::GetAgentDownloadUrlRequest() :
|
||||
RpcServiceRequest("arms", "2019-08-08", "GetAgentDownloadUrl")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Get);
|
||||
}
|
||||
|
||||
GetAgentDownloadUrlRequest::~GetAgentDownloadUrlRequest()
|
||||
{}
|
||||
|
||||
std::string GetAgentDownloadUrlRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void GetAgentDownloadUrlRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
@@ -14,38 +14,38 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/hitsdb/model/DeleteHiTSDBInstanceDataResult.h>
|
||||
#include <alibabacloud/arms/model/GetAgentDownloadUrlResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Hitsdb;
|
||||
using namespace AlibabaCloud::Hitsdb::Model;
|
||||
using namespace AlibabaCloud::ARMS;
|
||||
using namespace AlibabaCloud::ARMS::Model;
|
||||
|
||||
DeleteHiTSDBInstanceDataResult::DeleteHiTSDBInstanceDataResult() :
|
||||
GetAgentDownloadUrlResult::GetAgentDownloadUrlResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DeleteHiTSDBInstanceDataResult::DeleteHiTSDBInstanceDataResult(const std::string &payload) :
|
||||
GetAgentDownloadUrlResult::GetAgentDownloadUrlResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DeleteHiTSDBInstanceDataResult::~DeleteHiTSDBInstanceDataResult()
|
||||
GetAgentDownloadUrlResult::~GetAgentDownloadUrlResult()
|
||||
{}
|
||||
|
||||
void DeleteHiTSDBInstanceDataResult::parse(const std::string &payload)
|
||||
void GetAgentDownloadUrlResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["TaskId"].isNull())
|
||||
taskId_ = std::stol(value["TaskId"].asString());
|
||||
if(!value["ArmsAgentDownloadUrl"].isNull())
|
||||
armsAgentDownloadUrl_ = value["ArmsAgentDownloadUrl"].asString();
|
||||
|
||||
}
|
||||
|
||||
long DeleteHiTSDBInstanceDataResult::getTaskId()const
|
||||
std::string GetAgentDownloadUrlResult::getArmsAgentDownloadUrl()const
|
||||
{
|
||||
return taskId_;
|
||||
return armsAgentDownloadUrl_;
|
||||
}
|
||||
|
||||
@@ -27,6 +27,17 @@ ListDashboardsRequest::ListDashboardsRequest() :
|
||||
ListDashboardsRequest::~ListDashboardsRequest()
|
||||
{}
|
||||
|
||||
std::string ListDashboardsRequest::getClusterType()const
|
||||
{
|
||||
return clusterType_;
|
||||
}
|
||||
|
||||
void ListDashboardsRequest::setClusterType(const std::string& clusterType)
|
||||
{
|
||||
clusterType_ = clusterType;
|
||||
setParameter("ClusterType", clusterType);
|
||||
}
|
||||
|
||||
std::string ListDashboardsRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
@@ -49,3 +60,14 @@ void ListDashboardsRequest::setClusterId(const std::string& clusterId)
|
||||
setParameter("ClusterId", clusterId);
|
||||
}
|
||||
|
||||
std::string ListDashboardsRequest::getTitle()const
|
||||
{
|
||||
return title_;
|
||||
}
|
||||
|
||||
void ListDashboardsRequest::setTitle(const std::string& title)
|
||||
{
|
||||
title_ = title;
|
||||
setParameter("Title", title);
|
||||
}
|
||||
|
||||
|
||||
84
arms/src/model/ListScenarioRequest.cc
Normal file
84
arms/src/model/ListScenarioRequest.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/arms/model/ListScenarioRequest.h>
|
||||
|
||||
using AlibabaCloud::ARMS::Model::ListScenarioRequest;
|
||||
|
||||
ListScenarioRequest::ListScenarioRequest() :
|
||||
RpcServiceRequest("arms", "2019-08-08", "ListScenario")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
ListScenarioRequest::~ListScenarioRequest()
|
||||
{}
|
||||
|
||||
std::string ListScenarioRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void ListScenarioRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
std::string ListScenarioRequest::getScenario()const
|
||||
{
|
||||
return scenario_;
|
||||
}
|
||||
|
||||
void ListScenarioRequest::setScenario(const std::string& scenario)
|
||||
{
|
||||
scenario_ = scenario;
|
||||
setParameter("Scenario", scenario);
|
||||
}
|
||||
|
||||
std::string ListScenarioRequest::getAppId()const
|
||||
{
|
||||
return appId_;
|
||||
}
|
||||
|
||||
void ListScenarioRequest::setAppId(const std::string& appId)
|
||||
{
|
||||
appId_ = appId;
|
||||
setParameter("AppId", appId);
|
||||
}
|
||||
|
||||
std::string ListScenarioRequest::getName()const
|
||||
{
|
||||
return name_;
|
||||
}
|
||||
|
||||
void ListScenarioRequest::setName(const std::string& name)
|
||||
{
|
||||
name_ = name;
|
||||
setParameter("Name", name);
|
||||
}
|
||||
|
||||
std::string ListScenarioRequest::getSign()const
|
||||
{
|
||||
return sign_;
|
||||
}
|
||||
|
||||
void ListScenarioRequest::setSign(const std::string& sign)
|
||||
{
|
||||
sign_ = sign;
|
||||
setParameter("Sign", sign);
|
||||
}
|
||||
|
||||
73
arms/src/model/ListScenarioResult.cc
Normal file
73
arms/src/model/ListScenarioResult.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/arms/model/ListScenarioResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::ARMS;
|
||||
using namespace AlibabaCloud::ARMS::Model;
|
||||
|
||||
ListScenarioResult::ListScenarioResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
ListScenarioResult::ListScenarioResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
ListScenarioResult::~ListScenarioResult()
|
||||
{}
|
||||
|
||||
void ListScenarioResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allArmsScenariosNode = value["ArmsScenarios"]["ArmsScenariosItem"];
|
||||
for (auto valueArmsScenariosArmsScenariosItem : allArmsScenariosNode)
|
||||
{
|
||||
ArmsScenariosItem armsScenariosObject;
|
||||
if(!valueArmsScenariosArmsScenariosItem["Id"].isNull())
|
||||
armsScenariosObject.id = std::stol(valueArmsScenariosArmsScenariosItem["Id"].asString());
|
||||
if(!valueArmsScenariosArmsScenariosItem["CreateTime"].isNull())
|
||||
armsScenariosObject.createTime = valueArmsScenariosArmsScenariosItem["CreateTime"].asString();
|
||||
if(!valueArmsScenariosArmsScenariosItem["UpdateTime"].isNull())
|
||||
armsScenariosObject.updateTime = valueArmsScenariosArmsScenariosItem["UpdateTime"].asString();
|
||||
if(!valueArmsScenariosArmsScenariosItem["Name"].isNull())
|
||||
armsScenariosObject.name = valueArmsScenariosArmsScenariosItem["Name"].asString();
|
||||
if(!valueArmsScenariosArmsScenariosItem["Sign"].isNull())
|
||||
armsScenariosObject.sign = valueArmsScenariosArmsScenariosItem["Sign"].asString();
|
||||
if(!valueArmsScenariosArmsScenariosItem["UserId"].isNull())
|
||||
armsScenariosObject.userId = valueArmsScenariosArmsScenariosItem["UserId"].asString();
|
||||
if(!valueArmsScenariosArmsScenariosItem["RegionId"].isNull())
|
||||
armsScenariosObject.regionId = valueArmsScenariosArmsScenariosItem["RegionId"].asString();
|
||||
if(!valueArmsScenariosArmsScenariosItem["AppId"].isNull())
|
||||
armsScenariosObject.appId = valueArmsScenariosArmsScenariosItem["AppId"].asString();
|
||||
if(!valueArmsScenariosArmsScenariosItem["Extensions"].isNull())
|
||||
armsScenariosObject.extensions = valueArmsScenariosArmsScenariosItem["Extensions"].asString();
|
||||
armsScenarios_.push_back(armsScenariosObject);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
std::vector<ListScenarioResult::ArmsScenariosItem> ListScenarioResult::getArmsScenarios()const
|
||||
{
|
||||
return armsScenarios_;
|
||||
}
|
||||
|
||||
51
arms/src/model/OpenArmsServiceRequest.cc
Normal file
51
arms/src/model/OpenArmsServiceRequest.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/arms/model/OpenArmsServiceRequest.h>
|
||||
|
||||
using AlibabaCloud::ARMS::Model::OpenArmsServiceRequest;
|
||||
|
||||
OpenArmsServiceRequest::OpenArmsServiceRequest() :
|
||||
RpcServiceRequest("arms", "2019-08-08", "OpenArmsService")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
OpenArmsServiceRequest::~OpenArmsServiceRequest()
|
||||
{}
|
||||
|
||||
long OpenArmsServiceRequest::getOwnerId()const
|
||||
{
|
||||
return ownerId_;
|
||||
}
|
||||
|
||||
void OpenArmsServiceRequest::setOwnerId(long ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
std::string OpenArmsServiceRequest::getType()const
|
||||
{
|
||||
return type_;
|
||||
}
|
||||
|
||||
void OpenArmsServiceRequest::setType(const std::string& type)
|
||||
{
|
||||
type_ = type;
|
||||
setParameter("Type", type);
|
||||
}
|
||||
|
||||
@@ -14,37 +14,37 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/hitsdb/model/RenewTSDBInstanceResult.h>
|
||||
#include <alibabacloud/arms/model/OpenArmsServiceResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Hitsdb;
|
||||
using namespace AlibabaCloud::Hitsdb::Model;
|
||||
using namespace AlibabaCloud::ARMS;
|
||||
using namespace AlibabaCloud::ARMS::Model;
|
||||
|
||||
RenewTSDBInstanceResult::RenewTSDBInstanceResult() :
|
||||
OpenArmsServiceResult::OpenArmsServiceResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
RenewTSDBInstanceResult::RenewTSDBInstanceResult(const std::string &payload) :
|
||||
OpenArmsServiceResult::OpenArmsServiceResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
RenewTSDBInstanceResult::~RenewTSDBInstanceResult()
|
||||
OpenArmsServiceResult::~OpenArmsServiceResult()
|
||||
{}
|
||||
|
||||
void RenewTSDBInstanceResult::parse(const std::string &payload)
|
||||
void OpenArmsServiceResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["OrderId"].isNull())
|
||||
orderId_ = std::stol(value["OrderId"].asString());
|
||||
orderId_ = value["OrderId"].asString();
|
||||
|
||||
}
|
||||
|
||||
long RenewTSDBInstanceResult::getOrderId()const
|
||||
std::string OpenArmsServiceResult::getOrderId()const
|
||||
{
|
||||
return orderId_;
|
||||
}
|
||||
@@ -41,8 +41,6 @@ namespace AlibabaCloud
|
||||
void setDomainName(const std::string& domainName);
|
||||
long getOwnerId()const;
|
||||
void setOwnerId(long ownerId);
|
||||
std::string getResourceGroupId()const;
|
||||
void setResourceGroupId(const std::string& resourceGroupId);
|
||||
std::string getSecurityToken()const;
|
||||
void setSecurityToken(const std::string& securityToken);
|
||||
|
||||
@@ -50,7 +48,6 @@ namespace AlibabaCloud
|
||||
std::string ownerAccount_;
|
||||
std::string domainName_;
|
||||
long ownerId_;
|
||||
std::string resourceGroupId_;
|
||||
std::string securityToken_;
|
||||
|
||||
};
|
||||
|
||||
@@ -60,17 +60,6 @@ void DeleteCdnDomainRequest::setOwnerId(long ownerId)
|
||||
setParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
std::string DeleteCdnDomainRequest::getResourceGroupId()const
|
||||
{
|
||||
return resourceGroupId_;
|
||||
}
|
||||
|
||||
void DeleteCdnDomainRequest::setResourceGroupId(const std::string& resourceGroupId)
|
||||
{
|
||||
resourceGroupId_ = resourceGroupId;
|
||||
setParameter("ResourceGroupId", resourceGroupId);
|
||||
}
|
||||
|
||||
std::string DeleteCdnDomainRequest::getSecurityToken()const
|
||||
{
|
||||
return securityToken_;
|
||||
|
||||
@@ -21,6 +21,10 @@ set(cdrs_public_header
|
||||
include/alibabacloud/cdrs/CDRSExport.h )
|
||||
|
||||
set(cdrs_public_header_model
|
||||
include/alibabacloud/cdrs/model/BindDeviceRequest.h
|
||||
include/alibabacloud/cdrs/model/BindDeviceResult.h
|
||||
include/alibabacloud/cdrs/model/CreateProjectRequest.h
|
||||
include/alibabacloud/cdrs/model/CreateProjectResult.h
|
||||
include/alibabacloud/cdrs/model/ListCityMapAoisRequest.h
|
||||
include/alibabacloud/cdrs/model/ListCityMapAoisResult.h
|
||||
include/alibabacloud/cdrs/model/ListCityMapCameraResultsRequest.h
|
||||
@@ -76,10 +80,18 @@ set(cdrs_public_header_model
|
||||
include/alibabacloud/cdrs/model/RecognizeImageRequest.h
|
||||
include/alibabacloud/cdrs/model/RecognizeImageResult.h
|
||||
include/alibabacloud/cdrs/model/SearchObjectRequest.h
|
||||
include/alibabacloud/cdrs/model/SearchObjectResult.h )
|
||||
include/alibabacloud/cdrs/model/SearchObjectResult.h
|
||||
include/alibabacloud/cdrs/model/UnbindDeviceRequest.h
|
||||
include/alibabacloud/cdrs/model/UnbindDeviceResult.h
|
||||
include/alibabacloud/cdrs/model/UpdateProjectRequest.h
|
||||
include/alibabacloud/cdrs/model/UpdateProjectResult.h )
|
||||
|
||||
set(cdrs_src
|
||||
src/CDRSClient.cc
|
||||
src/model/BindDeviceRequest.cc
|
||||
src/model/BindDeviceResult.cc
|
||||
src/model/CreateProjectRequest.cc
|
||||
src/model/CreateProjectResult.cc
|
||||
src/model/ListCityMapAoisRequest.cc
|
||||
src/model/ListCityMapAoisResult.cc
|
||||
src/model/ListCityMapCameraResultsRequest.cc
|
||||
@@ -135,7 +147,11 @@ set(cdrs_src
|
||||
src/model/RecognizeImageRequest.cc
|
||||
src/model/RecognizeImageResult.cc
|
||||
src/model/SearchObjectRequest.cc
|
||||
src/model/SearchObjectResult.cc )
|
||||
src/model/SearchObjectResult.cc
|
||||
src/model/UnbindDeviceRequest.cc
|
||||
src/model/UnbindDeviceResult.cc
|
||||
src/model/UpdateProjectRequest.cc
|
||||
src/model/UpdateProjectResult.cc )
|
||||
|
||||
add_library(cdrs ${LIB_TYPE}
|
||||
${cdrs_public_header}
|
||||
|
||||
@@ -22,6 +22,10 @@
|
||||
#include <alibabacloud/core/EndpointProvider.h>
|
||||
#include <alibabacloud/core/RpcServiceClient.h>
|
||||
#include "CDRSExport.h"
|
||||
#include "model/BindDeviceRequest.h"
|
||||
#include "model/BindDeviceResult.h"
|
||||
#include "model/CreateProjectRequest.h"
|
||||
#include "model/CreateProjectResult.h"
|
||||
#include "model/ListCityMapAoisRequest.h"
|
||||
#include "model/ListCityMapAoisResult.h"
|
||||
#include "model/ListCityMapCameraResultsRequest.h"
|
||||
@@ -78,6 +82,10 @@
|
||||
#include "model/RecognizeImageResult.h"
|
||||
#include "model/SearchObjectRequest.h"
|
||||
#include "model/SearchObjectResult.h"
|
||||
#include "model/UnbindDeviceRequest.h"
|
||||
#include "model/UnbindDeviceResult.h"
|
||||
#include "model/UpdateProjectRequest.h"
|
||||
#include "model/UpdateProjectResult.h"
|
||||
|
||||
|
||||
namespace AlibabaCloud
|
||||
@@ -87,6 +95,12 @@ namespace AlibabaCloud
|
||||
class ALIBABACLOUD_CDRS_EXPORT CDRSClient : public RpcServiceClient
|
||||
{
|
||||
public:
|
||||
typedef Outcome<Error, Model::BindDeviceResult> BindDeviceOutcome;
|
||||
typedef std::future<BindDeviceOutcome> BindDeviceOutcomeCallable;
|
||||
typedef std::function<void(const CDRSClient*, const Model::BindDeviceRequest&, const BindDeviceOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> BindDeviceAsyncHandler;
|
||||
typedef Outcome<Error, Model::CreateProjectResult> CreateProjectOutcome;
|
||||
typedef std::future<CreateProjectOutcome> CreateProjectOutcomeCallable;
|
||||
typedef std::function<void(const CDRSClient*, const Model::CreateProjectRequest&, const CreateProjectOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> CreateProjectAsyncHandler;
|
||||
typedef Outcome<Error, Model::ListCityMapAoisResult> ListCityMapAoisOutcome;
|
||||
typedef std::future<ListCityMapAoisOutcome> ListCityMapAoisOutcomeCallable;
|
||||
typedef std::function<void(const CDRSClient*, const Model::ListCityMapAoisRequest&, const ListCityMapAoisOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ListCityMapAoisAsyncHandler;
|
||||
@@ -171,11 +185,23 @@ namespace AlibabaCloud
|
||||
typedef Outcome<Error, Model::SearchObjectResult> SearchObjectOutcome;
|
||||
typedef std::future<SearchObjectOutcome> SearchObjectOutcomeCallable;
|
||||
typedef std::function<void(const CDRSClient*, const Model::SearchObjectRequest&, const SearchObjectOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> SearchObjectAsyncHandler;
|
||||
typedef Outcome<Error, Model::UnbindDeviceResult> UnbindDeviceOutcome;
|
||||
typedef std::future<UnbindDeviceOutcome> UnbindDeviceOutcomeCallable;
|
||||
typedef std::function<void(const CDRSClient*, const Model::UnbindDeviceRequest&, const UnbindDeviceOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> UnbindDeviceAsyncHandler;
|
||||
typedef Outcome<Error, Model::UpdateProjectResult> UpdateProjectOutcome;
|
||||
typedef std::future<UpdateProjectOutcome> UpdateProjectOutcomeCallable;
|
||||
typedef std::function<void(const CDRSClient*, const Model::UpdateProjectRequest&, const UpdateProjectOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> UpdateProjectAsyncHandler;
|
||||
|
||||
CDRSClient(const Credentials &credentials, const ClientConfiguration &configuration);
|
||||
CDRSClient(const std::shared_ptr<CredentialsProvider> &credentialsProvider, const ClientConfiguration &configuration);
|
||||
CDRSClient(const std::string &accessKeyId, const std::string &accessKeySecret, const ClientConfiguration &configuration);
|
||||
~CDRSClient();
|
||||
BindDeviceOutcome bindDevice(const Model::BindDeviceRequest &request)const;
|
||||
void bindDeviceAsync(const Model::BindDeviceRequest& request, const BindDeviceAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
BindDeviceOutcomeCallable bindDeviceCallable(const Model::BindDeviceRequest& request) const;
|
||||
CreateProjectOutcome createProject(const Model::CreateProjectRequest &request)const;
|
||||
void createProjectAsync(const Model::CreateProjectRequest& request, const CreateProjectAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
CreateProjectOutcomeCallable createProjectCallable(const Model::CreateProjectRequest& request) const;
|
||||
ListCityMapAoisOutcome listCityMapAois(const Model::ListCityMapAoisRequest &request)const;
|
||||
void listCityMapAoisAsync(const Model::ListCityMapAoisRequest& request, const ListCityMapAoisAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
ListCityMapAoisOutcomeCallable listCityMapAoisCallable(const Model::ListCityMapAoisRequest& request) const;
|
||||
@@ -260,6 +286,12 @@ namespace AlibabaCloud
|
||||
SearchObjectOutcome searchObject(const Model::SearchObjectRequest &request)const;
|
||||
void searchObjectAsync(const Model::SearchObjectRequest& request, const SearchObjectAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
SearchObjectOutcomeCallable searchObjectCallable(const Model::SearchObjectRequest& request) const;
|
||||
UnbindDeviceOutcome unbindDevice(const Model::UnbindDeviceRequest &request)const;
|
||||
void unbindDeviceAsync(const Model::UnbindDeviceRequest& request, const UnbindDeviceAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
UnbindDeviceOutcomeCallable unbindDeviceCallable(const Model::UnbindDeviceRequest& request) const;
|
||||
UpdateProjectOutcome updateProject(const Model::UpdateProjectRequest &request)const;
|
||||
void updateProjectAsync(const Model::UpdateProjectRequest& request, const UpdateProjectAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
UpdateProjectOutcomeCallable updateProjectCallable(const Model::UpdateProjectRequest& request) const;
|
||||
|
||||
private:
|
||||
std::shared_ptr<EndpointProvider> endpointProvider_;
|
||||
|
||||
63
cdrs/include/alibabacloud/cdrs/model/BindDeviceRequest.h
Normal file
63
cdrs/include/alibabacloud/cdrs/model/BindDeviceRequest.h
Normal file
@@ -0,0 +1,63 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_CDRS_MODEL_BINDDEVICEREQUEST_H_
|
||||
#define ALIBABACLOUD_CDRS_MODEL_BINDDEVICEREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/cdrs/CDRSExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace CDRS
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_CDRS_EXPORT BindDeviceRequest : public RpcServiceRequest
|
||||
{
|
||||
public:
|
||||
struct Devices
|
||||
{
|
||||
std::string corpId;
|
||||
std::string deviceId;
|
||||
};
|
||||
|
||||
public:
|
||||
BindDeviceRequest();
|
||||
~BindDeviceRequest();
|
||||
|
||||
std::string getCorpId()const;
|
||||
void setCorpId(const std::string& corpId);
|
||||
std::vector<Devices> getDevices()const;
|
||||
void setDevices(const std::vector<Devices>& devices);
|
||||
std::string getAppName()const;
|
||||
void setAppName(const std::string& appName);
|
||||
std::string get_NameSpace()const;
|
||||
void set_NameSpace(const std::string& _nameSpace);
|
||||
|
||||
private:
|
||||
std::string corpId_;
|
||||
std::vector<Devices> devices_;
|
||||
std::string appName_;
|
||||
std::string _nameSpace_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_CDRS_MODEL_BINDDEVICEREQUEST_H_
|
||||
@@ -14,48 +14,49 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_EMR_MODEL_QUERYUSERPOLICIESRESULT_H_
|
||||
#define ALIBABACLOUD_EMR_MODEL_QUERYUSERPOLICIESRESULT_H_
|
||||
#ifndef ALIBABACLOUD_CDRS_MODEL_BINDDEVICERESULT_H_
|
||||
#define ALIBABACLOUD_CDRS_MODEL_BINDDEVICERESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/emr/EmrExport.h>
|
||||
#include <alibabacloud/cdrs/CDRSExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Emr
|
||||
namespace CDRS
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_EMR_EXPORT QueryUserPoliciesResult : public ServiceResult
|
||||
class ALIBABACLOUD_CDRS_EXPORT BindDeviceResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct PolicyDTO
|
||||
struct Datas
|
||||
{
|
||||
std::string gmtCreate;
|
||||
std::string action;
|
||||
std::string effect;
|
||||
std::string conditions;
|
||||
std::string name;
|
||||
std::string message;
|
||||
std::string deviceId;
|
||||
std::string code;
|
||||
bool success;
|
||||
};
|
||||
|
||||
|
||||
QueryUserPoliciesResult();
|
||||
explicit QueryUserPoliciesResult(const std::string &payload);
|
||||
~QueryUserPoliciesResult();
|
||||
bool getPaging()const;
|
||||
std::vector<PolicyDTO> getData()const;
|
||||
BindDeviceResult();
|
||||
explicit BindDeviceResult(const std::string &payload);
|
||||
~BindDeviceResult();
|
||||
std::string getMessage()const;
|
||||
std::vector<Datas> getData()const;
|
||||
std::string getCode()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
bool paging_;
|
||||
std::vector<PolicyDTO> data_;
|
||||
std::string message_;
|
||||
std::vector<Datas> data_;
|
||||
std::string code_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_EMR_MODEL_QUERYUSERPOLICIESRESULT_H_
|
||||
#endif // !ALIBABACLOUD_CDRS_MODEL_BINDDEVICERESULT_H_
|
||||
@@ -14,50 +14,50 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_EMR_MODEL_CREATEALERTDINGDINGGROUPREQUEST_H_
|
||||
#define ALIBABACLOUD_EMR_MODEL_CREATEALERTDINGDINGGROUPREQUEST_H_
|
||||
#ifndef ALIBABACLOUD_CDRS_MODEL_CREATEPROJECTREQUEST_H_
|
||||
#define ALIBABACLOUD_CDRS_MODEL_CREATEPROJECTREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/emr/EmrExport.h>
|
||||
#include <alibabacloud/cdrs/CDRSExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Emr
|
||||
namespace CDRS
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_EMR_EXPORT CreateAlertDingDingGroupRequest : public RpcServiceRequest
|
||||
class ALIBABACLOUD_CDRS_EXPORT CreateProjectRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
CreateAlertDingDingGroupRequest();
|
||||
~CreateAlertDingDingGroupRequest();
|
||||
CreateProjectRequest();
|
||||
~CreateProjectRequest();
|
||||
|
||||
long getResourceOwnerId()const;
|
||||
void setResourceOwnerId(long resourceOwnerId);
|
||||
std::string getRegionId()const;
|
||||
void setRegionId(const std::string& regionId);
|
||||
std::string getName()const;
|
||||
void setName(const std::string& name);
|
||||
std::string getClientToken()const;
|
||||
void setClientToken(const std::string& clientToken);
|
||||
std::string getIcon()const;
|
||||
void setIcon(const std::string& icon);
|
||||
std::string getDescription()const;
|
||||
void setDescription(const std::string& description);
|
||||
std::string getAccessKeyId()const;
|
||||
void setAccessKeyId(const std::string& accessKeyId);
|
||||
std::string getWebHookUrl()const;
|
||||
void setWebHookUrl(const std::string& webHookUrl);
|
||||
std::string getAppName()const;
|
||||
void setAppName(const std::string& appName);
|
||||
std::string get_NameSpace()const;
|
||||
void set_NameSpace(const std::string& _nameSpace);
|
||||
std::string getName()const;
|
||||
void setName(const std::string& name);
|
||||
|
||||
private:
|
||||
long resourceOwnerId_;
|
||||
std::string regionId_;
|
||||
std::string name_;
|
||||
std::string clientToken_;
|
||||
std::string icon_;
|
||||
std::string description_;
|
||||
std::string accessKeyId_;
|
||||
std::string webHookUrl_;
|
||||
std::string appName_;
|
||||
std::string _nameSpace_;
|
||||
std::string name_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_EMR_MODEL_CREATEALERTDINGDINGGROUPREQUEST_H_
|
||||
#endif // !ALIBABACLOUD_CDRS_MODEL_CREATEPROJECTREQUEST_H_
|
||||
@@ -14,36 +14,42 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_EMR_MODEL_DELETEHOSTPOOLRESULT_H_
|
||||
#define ALIBABACLOUD_EMR_MODEL_DELETEHOSTPOOLRESULT_H_
|
||||
#ifndef ALIBABACLOUD_CDRS_MODEL_CREATEPROJECTRESULT_H_
|
||||
#define ALIBABACLOUD_CDRS_MODEL_CREATEPROJECTRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/emr/EmrExport.h>
|
||||
#include <alibabacloud/cdrs/CDRSExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Emr
|
||||
namespace CDRS
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_EMR_EXPORT DeleteHostPoolResult : public ServiceResult
|
||||
class ALIBABACLOUD_CDRS_EXPORT CreateProjectResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
|
||||
|
||||
DeleteHostPoolResult();
|
||||
explicit DeleteHostPoolResult(const std::string &payload);
|
||||
~DeleteHostPoolResult();
|
||||
CreateProjectResult();
|
||||
explicit CreateProjectResult(const std::string &payload);
|
||||
~CreateProjectResult();
|
||||
std::string getCorpId()const;
|
||||
std::string getMessage()const;
|
||||
std::string getCode()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::string corpId_;
|
||||
std::string message_;
|
||||
std::string code_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_EMR_MODEL_DELETEHOSTPOOLRESULT_H_
|
||||
#endif // !ALIBABACLOUD_CDRS_MODEL_CREATEPROJECTRESULT_H_
|
||||
@@ -14,44 +14,44 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_EMR_MODEL_GETBACKUPINFOREQUEST_H_
|
||||
#define ALIBABACLOUD_EMR_MODEL_GETBACKUPINFOREQUEST_H_
|
||||
#ifndef ALIBABACLOUD_CDRS_MODEL_UNBINDDEVICEREQUEST_H_
|
||||
#define ALIBABACLOUD_CDRS_MODEL_UNBINDDEVICEREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/emr/EmrExport.h>
|
||||
#include <alibabacloud/cdrs/CDRSExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Emr
|
||||
namespace CDRS
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_EMR_EXPORT GetBackupInfoRequest : public RpcServiceRequest
|
||||
class ALIBABACLOUD_CDRS_EXPORT UnbindDeviceRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
GetBackupInfoRequest();
|
||||
~GetBackupInfoRequest();
|
||||
UnbindDeviceRequest();
|
||||
~UnbindDeviceRequest();
|
||||
|
||||
long getResourceOwnerId()const;
|
||||
void setResourceOwnerId(long resourceOwnerId);
|
||||
std::string getAccessKeyId()const;
|
||||
void setAccessKeyId(const std::string& accessKeyId);
|
||||
std::string getRegionId()const;
|
||||
void setRegionId(const std::string& regionId);
|
||||
std::string getBackupId()const;
|
||||
void setBackupId(const std::string& backupId);
|
||||
std::string getDeviceIds()const;
|
||||
void setDeviceIds(const std::string& deviceIds);
|
||||
std::string getCorpId()const;
|
||||
void setCorpId(const std::string& corpId);
|
||||
std::string getAppName()const;
|
||||
void setAppName(const std::string& appName);
|
||||
std::string get_NameSpace()const;
|
||||
void set_NameSpace(const std::string& _nameSpace);
|
||||
|
||||
private:
|
||||
long resourceOwnerId_;
|
||||
std::string accessKeyId_;
|
||||
std::string regionId_;
|
||||
std::string backupId_;
|
||||
std::string deviceIds_;
|
||||
std::string corpId_;
|
||||
std::string appName_;
|
||||
std::string _nameSpace_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_EMR_MODEL_GETBACKUPINFOREQUEST_H_
|
||||
#endif // !ALIBABACLOUD_CDRS_MODEL_UNBINDDEVICEREQUEST_H_
|
||||
@@ -14,44 +14,49 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_EMR_MODEL_LISTETLJOBTRIGGERENTITYRESULT_H_
|
||||
#define ALIBABACLOUD_EMR_MODEL_LISTETLJOBTRIGGERENTITYRESULT_H_
|
||||
#ifndef ALIBABACLOUD_CDRS_MODEL_UNBINDDEVICERESULT_H_
|
||||
#define ALIBABACLOUD_CDRS_MODEL_UNBINDDEVICERESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/emr/EmrExport.h>
|
||||
#include <alibabacloud/cdrs/CDRSExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Emr
|
||||
namespace CDRS
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_EMR_EXPORT ListETLJobTriggerEntityResult : public ServiceResult
|
||||
class ALIBABACLOUD_CDRS_EXPORT UnbindDeviceResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct TriggerEntity
|
||||
struct Datas
|
||||
{
|
||||
std::string entityType;
|
||||
std::string id;
|
||||
std::string name;
|
||||
std::string message;
|
||||
std::string deviceId;
|
||||
std::string code;
|
||||
bool success;
|
||||
};
|
||||
|
||||
|
||||
ListETLJobTriggerEntityResult();
|
||||
explicit ListETLJobTriggerEntityResult(const std::string &payload);
|
||||
~ListETLJobTriggerEntityResult();
|
||||
std::vector<TriggerEntity> getTriggerEntityList()const;
|
||||
UnbindDeviceResult();
|
||||
explicit UnbindDeviceResult(const std::string &payload);
|
||||
~UnbindDeviceResult();
|
||||
std::string getMessage()const;
|
||||
std::vector<Datas> getData()const;
|
||||
std::string getCode()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::vector<TriggerEntity> triggerEntityList_;
|
||||
std::string message_;
|
||||
std::vector<Datas> data_;
|
||||
std::string code_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_EMR_MODEL_LISTETLJOBTRIGGERENTITYRESULT_H_
|
||||
#endif // !ALIBABACLOUD_CDRS_MODEL_UNBINDDEVICERESULT_H_
|
||||
@@ -14,50 +14,50 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_EMR_MODEL_MODIFYHOSTPOOLREQUEST_H_
|
||||
#define ALIBABACLOUD_EMR_MODEL_MODIFYHOSTPOOLREQUEST_H_
|
||||
#ifndef ALIBABACLOUD_CDRS_MODEL_UPDATEPROJECTREQUEST_H_
|
||||
#define ALIBABACLOUD_CDRS_MODEL_UPDATEPROJECTREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/emr/EmrExport.h>
|
||||
#include <alibabacloud/cdrs/CDRSExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Emr
|
||||
namespace CDRS
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_EMR_EXPORT ModifyHostPoolRequest : public RpcServiceRequest
|
||||
class ALIBABACLOUD_CDRS_EXPORT UpdateProjectRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
ModifyHostPoolRequest();
|
||||
~ModifyHostPoolRequest();
|
||||
UpdateProjectRequest();
|
||||
~UpdateProjectRequest();
|
||||
|
||||
long getResourceOwnerId()const;
|
||||
void setResourceOwnerId(long resourceOwnerId);
|
||||
std::string getRegionId()const;
|
||||
void setRegionId(const std::string& regionId);
|
||||
std::string getName()const;
|
||||
void setName(const std::string& name);
|
||||
std::string getBizId()const;
|
||||
void setBizId(const std::string& bizId);
|
||||
std::string getDescription()const;
|
||||
void setDescription(const std::string& description);
|
||||
std::string getAccessKeyId()const;
|
||||
void setAccessKeyId(const std::string& accessKeyId);
|
||||
std::string getCorpId()const;
|
||||
void setCorpId(const std::string& corpId);
|
||||
std::string getIcon()const;
|
||||
void setIcon(const std::string& icon);
|
||||
std::string getDescription()const;
|
||||
void setDescription(const std::string& description);
|
||||
std::string getAppName()const;
|
||||
void setAppName(const std::string& appName);
|
||||
std::string get_NameSpace()const;
|
||||
void set_NameSpace(const std::string& _nameSpace);
|
||||
std::string getName()const;
|
||||
void setName(const std::string& name);
|
||||
|
||||
private:
|
||||
long resourceOwnerId_;
|
||||
std::string regionId_;
|
||||
std::string name_;
|
||||
std::string bizId_;
|
||||
std::string description_;
|
||||
std::string accessKeyId_;
|
||||
std::string corpId_;
|
||||
std::string icon_;
|
||||
std::string description_;
|
||||
std::string appName_;
|
||||
std::string _nameSpace_;
|
||||
std::string name_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_EMR_MODEL_MODIFYHOSTPOOLREQUEST_H_
|
||||
#endif // !ALIBABACLOUD_CDRS_MODEL_UPDATEPROJECTREQUEST_H_
|
||||
@@ -14,36 +14,40 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_HITSDB_MODEL_RESTARTHITSDBINSTANCERESULT_H_
|
||||
#define ALIBABACLOUD_HITSDB_MODEL_RESTARTHITSDBINSTANCERESULT_H_
|
||||
#ifndef ALIBABACLOUD_CDRS_MODEL_UPDATEPROJECTRESULT_H_
|
||||
#define ALIBABACLOUD_CDRS_MODEL_UPDATEPROJECTRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/hitsdb/HitsdbExport.h>
|
||||
#include <alibabacloud/cdrs/CDRSExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Hitsdb
|
||||
namespace CDRS
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_HITSDB_EXPORT RestartHiTSDBInstanceResult : public ServiceResult
|
||||
class ALIBABACLOUD_CDRS_EXPORT UpdateProjectResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
|
||||
|
||||
RestartHiTSDBInstanceResult();
|
||||
explicit RestartHiTSDBInstanceResult(const std::string &payload);
|
||||
~RestartHiTSDBInstanceResult();
|
||||
UpdateProjectResult();
|
||||
explicit UpdateProjectResult(const std::string &payload);
|
||||
~UpdateProjectResult();
|
||||
std::string getMessage()const;
|
||||
std::string getCode()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::string message_;
|
||||
std::string code_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_HITSDB_MODEL_RESTARTHITSDBINSTANCERESULT_H_
|
||||
#endif // !ALIBABACLOUD_CDRS_MODEL_UPDATEPROJECTRESULT_H_
|
||||
@@ -51,6 +51,78 @@ CDRSClient::CDRSClient(const std::string & accessKeyId, const std::string & acce
|
||||
CDRSClient::~CDRSClient()
|
||||
{}
|
||||
|
||||
CDRSClient::BindDeviceOutcome CDRSClient::bindDevice(const BindDeviceRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return BindDeviceOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return BindDeviceOutcome(BindDeviceResult(outcome.result()));
|
||||
else
|
||||
return BindDeviceOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void CDRSClient::bindDeviceAsync(const BindDeviceRequest& request, const BindDeviceAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, bindDevice(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
CDRSClient::BindDeviceOutcomeCallable CDRSClient::bindDeviceCallable(const BindDeviceRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<BindDeviceOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->bindDevice(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
CDRSClient::CreateProjectOutcome CDRSClient::createProject(const CreateProjectRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return CreateProjectOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return CreateProjectOutcome(CreateProjectResult(outcome.result()));
|
||||
else
|
||||
return CreateProjectOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void CDRSClient::createProjectAsync(const CreateProjectRequest& request, const CreateProjectAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, createProject(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
CDRSClient::CreateProjectOutcomeCallable CDRSClient::createProjectCallable(const CreateProjectRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<CreateProjectOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->createProject(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
CDRSClient::ListCityMapAoisOutcome CDRSClient::listCityMapAois(const ListCityMapAoisRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -1059,3 +1131,75 @@ CDRSClient::SearchObjectOutcomeCallable CDRSClient::searchObjectCallable(const S
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
CDRSClient::UnbindDeviceOutcome CDRSClient::unbindDevice(const UnbindDeviceRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return UnbindDeviceOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return UnbindDeviceOutcome(UnbindDeviceResult(outcome.result()));
|
||||
else
|
||||
return UnbindDeviceOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void CDRSClient::unbindDeviceAsync(const UnbindDeviceRequest& request, const UnbindDeviceAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, unbindDevice(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
CDRSClient::UnbindDeviceOutcomeCallable CDRSClient::unbindDeviceCallable(const UnbindDeviceRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<UnbindDeviceOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->unbindDevice(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
CDRSClient::UpdateProjectOutcome CDRSClient::updateProject(const UpdateProjectRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return UpdateProjectOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return UpdateProjectOutcome(UpdateProjectResult(outcome.result()));
|
||||
else
|
||||
return UpdateProjectOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void CDRSClient::updateProjectAsync(const UpdateProjectRequest& request, const UpdateProjectAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, updateProject(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
CDRSClient::UpdateProjectOutcomeCallable CDRSClient::updateProjectCallable(const UpdateProjectRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<UpdateProjectOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->updateProject(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
|
||||
78
cdrs/src/model/BindDeviceRequest.cc
Normal file
78
cdrs/src/model/BindDeviceRequest.cc
Normal file
@@ -0,0 +1,78 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/cdrs/model/BindDeviceRequest.h>
|
||||
|
||||
using AlibabaCloud::CDRS::Model::BindDeviceRequest;
|
||||
|
||||
BindDeviceRequest::BindDeviceRequest() :
|
||||
RpcServiceRequest("cdrs", "2020-11-01", "BindDevice")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
BindDeviceRequest::~BindDeviceRequest()
|
||||
{}
|
||||
|
||||
std::string BindDeviceRequest::getCorpId()const
|
||||
{
|
||||
return corpId_;
|
||||
}
|
||||
|
||||
void BindDeviceRequest::setCorpId(const std::string& corpId)
|
||||
{
|
||||
corpId_ = corpId;
|
||||
setBodyParameter("CorpId", corpId);
|
||||
}
|
||||
|
||||
std::vector<BindDeviceRequest::Devices> BindDeviceRequest::getDevices()const
|
||||
{
|
||||
return devices_;
|
||||
}
|
||||
|
||||
void BindDeviceRequest::setDevices(const std::vector<Devices>& devices)
|
||||
{
|
||||
devices_ = devices;
|
||||
for(int dep1 = 0; dep1!= devices.size(); dep1++) {
|
||||
auto devicesObj = devices.at(dep1);
|
||||
std::string devicesObjStr = "Devices." + std::to_string(dep1 + 1);
|
||||
setParameter(devicesObjStr + ".CorpId", devicesObj.corpId);
|
||||
setParameter(devicesObjStr + ".DeviceId", devicesObj.deviceId);
|
||||
}
|
||||
}
|
||||
|
||||
std::string BindDeviceRequest::getAppName()const
|
||||
{
|
||||
return appName_;
|
||||
}
|
||||
|
||||
void BindDeviceRequest::setAppName(const std::string& appName)
|
||||
{
|
||||
appName_ = appName;
|
||||
setBodyParameter("AppName", appName);
|
||||
}
|
||||
|
||||
std::string BindDeviceRequest::get_NameSpace()const
|
||||
{
|
||||
return _nameSpace_;
|
||||
}
|
||||
|
||||
void BindDeviceRequest::set_NameSpace(const std::string& _nameSpace)
|
||||
{
|
||||
_nameSpace_ = _nameSpace;
|
||||
setBodyParameter("_NameSpace", _nameSpace);
|
||||
}
|
||||
|
||||
77
cdrs/src/model/BindDeviceResult.cc
Normal file
77
cdrs/src/model/BindDeviceResult.cc
Normal file
@@ -0,0 +1,77 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/cdrs/model/BindDeviceResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::CDRS;
|
||||
using namespace AlibabaCloud::CDRS::Model;
|
||||
|
||||
BindDeviceResult::BindDeviceResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
BindDeviceResult::BindDeviceResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
BindDeviceResult::~BindDeviceResult()
|
||||
{}
|
||||
|
||||
void BindDeviceResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allDataNode = value["Data"]["Datas"];
|
||||
for (auto valueDataDatas : allDataNode)
|
||||
{
|
||||
Datas dataObject;
|
||||
if(!valueDataDatas["Success"].isNull())
|
||||
dataObject.success = valueDataDatas["Success"].asString() == "true";
|
||||
if(!valueDataDatas["Code"].isNull())
|
||||
dataObject.code = valueDataDatas["Code"].asString();
|
||||
if(!valueDataDatas["Message"].isNull())
|
||||
dataObject.message = valueDataDatas["Message"].asString();
|
||||
if(!valueDataDatas["DeviceId"].isNull())
|
||||
dataObject.deviceId = valueDataDatas["DeviceId"].asString();
|
||||
data_.push_back(dataObject);
|
||||
}
|
||||
if(!value["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string BindDeviceResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
std::vector<BindDeviceResult::Datas> BindDeviceResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
std::string BindDeviceResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
95
cdrs/src/model/CreateProjectRequest.cc
Normal file
95
cdrs/src/model/CreateProjectRequest.cc
Normal file
@@ -0,0 +1,95 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/cdrs/model/CreateProjectRequest.h>
|
||||
|
||||
using AlibabaCloud::CDRS::Model::CreateProjectRequest;
|
||||
|
||||
CreateProjectRequest::CreateProjectRequest() :
|
||||
RpcServiceRequest("cdrs", "2020-11-01", "CreateProject")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
CreateProjectRequest::~CreateProjectRequest()
|
||||
{}
|
||||
|
||||
std::string CreateProjectRequest::getClientToken()const
|
||||
{
|
||||
return clientToken_;
|
||||
}
|
||||
|
||||
void CreateProjectRequest::setClientToken(const std::string& clientToken)
|
||||
{
|
||||
clientToken_ = clientToken;
|
||||
setBodyParameter("ClientToken", clientToken);
|
||||
}
|
||||
|
||||
std::string CreateProjectRequest::getIcon()const
|
||||
{
|
||||
return icon_;
|
||||
}
|
||||
|
||||
void CreateProjectRequest::setIcon(const std::string& icon)
|
||||
{
|
||||
icon_ = icon;
|
||||
setBodyParameter("Icon", icon);
|
||||
}
|
||||
|
||||
std::string CreateProjectRequest::getDescription()const
|
||||
{
|
||||
return description_;
|
||||
}
|
||||
|
||||
void CreateProjectRequest::setDescription(const std::string& description)
|
||||
{
|
||||
description_ = description;
|
||||
setBodyParameter("Description", description);
|
||||
}
|
||||
|
||||
std::string CreateProjectRequest::getAppName()const
|
||||
{
|
||||
return appName_;
|
||||
}
|
||||
|
||||
void CreateProjectRequest::setAppName(const std::string& appName)
|
||||
{
|
||||
appName_ = appName;
|
||||
setBodyParameter("AppName", appName);
|
||||
}
|
||||
|
||||
std::string CreateProjectRequest::get_NameSpace()const
|
||||
{
|
||||
return _nameSpace_;
|
||||
}
|
||||
|
||||
void CreateProjectRequest::set_NameSpace(const std::string& _nameSpace)
|
||||
{
|
||||
_nameSpace_ = _nameSpace;
|
||||
setBodyParameter("_NameSpace", _nameSpace);
|
||||
}
|
||||
|
||||
std::string CreateProjectRequest::getName()const
|
||||
{
|
||||
return name_;
|
||||
}
|
||||
|
||||
void CreateProjectRequest::setName(const std::string& name)
|
||||
{
|
||||
name_ = name;
|
||||
setBodyParameter("Name", name);
|
||||
}
|
||||
|
||||
65
cdrs/src/model/CreateProjectResult.cc
Normal file
65
cdrs/src/model/CreateProjectResult.cc
Normal file
@@ -0,0 +1,65 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/cdrs/model/CreateProjectResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::CDRS;
|
||||
using namespace AlibabaCloud::CDRS::Model;
|
||||
|
||||
CreateProjectResult::CreateProjectResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
CreateProjectResult::CreateProjectResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
CreateProjectResult::~CreateProjectResult()
|
||||
{}
|
||||
|
||||
void CreateProjectResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
if(!value["CorpId"].isNull())
|
||||
corpId_ = value["CorpId"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string CreateProjectResult::getCorpId()const
|
||||
{
|
||||
return corpId_;
|
||||
}
|
||||
|
||||
std::string CreateProjectResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
std::string CreateProjectResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
73
cdrs/src/model/UnbindDeviceRequest.cc
Normal file
73
cdrs/src/model/UnbindDeviceRequest.cc
Normal file
@@ -0,0 +1,73 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/cdrs/model/UnbindDeviceRequest.h>
|
||||
|
||||
using AlibabaCloud::CDRS::Model::UnbindDeviceRequest;
|
||||
|
||||
UnbindDeviceRequest::UnbindDeviceRequest() :
|
||||
RpcServiceRequest("cdrs", "2020-11-01", "UnbindDevice")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
UnbindDeviceRequest::~UnbindDeviceRequest()
|
||||
{}
|
||||
|
||||
std::string UnbindDeviceRequest::getDeviceIds()const
|
||||
{
|
||||
return deviceIds_;
|
||||
}
|
||||
|
||||
void UnbindDeviceRequest::setDeviceIds(const std::string& deviceIds)
|
||||
{
|
||||
deviceIds_ = deviceIds;
|
||||
setBodyParameter("DeviceIds", deviceIds);
|
||||
}
|
||||
|
||||
std::string UnbindDeviceRequest::getCorpId()const
|
||||
{
|
||||
return corpId_;
|
||||
}
|
||||
|
||||
void UnbindDeviceRequest::setCorpId(const std::string& corpId)
|
||||
{
|
||||
corpId_ = corpId;
|
||||
setBodyParameter("CorpId", corpId);
|
||||
}
|
||||
|
||||
std::string UnbindDeviceRequest::getAppName()const
|
||||
{
|
||||
return appName_;
|
||||
}
|
||||
|
||||
void UnbindDeviceRequest::setAppName(const std::string& appName)
|
||||
{
|
||||
appName_ = appName;
|
||||
setBodyParameter("AppName", appName);
|
||||
}
|
||||
|
||||
std::string UnbindDeviceRequest::get_NameSpace()const
|
||||
{
|
||||
return _nameSpace_;
|
||||
}
|
||||
|
||||
void UnbindDeviceRequest::set_NameSpace(const std::string& _nameSpace)
|
||||
{
|
||||
_nameSpace_ = _nameSpace;
|
||||
setBodyParameter("_NameSpace", _nameSpace);
|
||||
}
|
||||
|
||||
77
cdrs/src/model/UnbindDeviceResult.cc
Normal file
77
cdrs/src/model/UnbindDeviceResult.cc
Normal file
@@ -0,0 +1,77 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/cdrs/model/UnbindDeviceResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::CDRS;
|
||||
using namespace AlibabaCloud::CDRS::Model;
|
||||
|
||||
UnbindDeviceResult::UnbindDeviceResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
UnbindDeviceResult::UnbindDeviceResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
UnbindDeviceResult::~UnbindDeviceResult()
|
||||
{}
|
||||
|
||||
void UnbindDeviceResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allDataNode = value["Data"]["Datas"];
|
||||
for (auto valueDataDatas : allDataNode)
|
||||
{
|
||||
Datas dataObject;
|
||||
if(!valueDataDatas["Success"].isNull())
|
||||
dataObject.success = valueDataDatas["Success"].asString() == "true";
|
||||
if(!valueDataDatas["Code"].isNull())
|
||||
dataObject.code = valueDataDatas["Code"].asString();
|
||||
if(!valueDataDatas["Message"].isNull())
|
||||
dataObject.message = valueDataDatas["Message"].asString();
|
||||
if(!valueDataDatas["DeviceId"].isNull())
|
||||
dataObject.deviceId = valueDataDatas["DeviceId"].asString();
|
||||
data_.push_back(dataObject);
|
||||
}
|
||||
if(!value["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string UnbindDeviceResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
std::vector<UnbindDeviceResult::Datas> UnbindDeviceResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
std::string UnbindDeviceResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
95
cdrs/src/model/UpdateProjectRequest.cc
Normal file
95
cdrs/src/model/UpdateProjectRequest.cc
Normal file
@@ -0,0 +1,95 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/cdrs/model/UpdateProjectRequest.h>
|
||||
|
||||
using AlibabaCloud::CDRS::Model::UpdateProjectRequest;
|
||||
|
||||
UpdateProjectRequest::UpdateProjectRequest() :
|
||||
RpcServiceRequest("cdrs", "2020-11-01", "UpdateProject")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
UpdateProjectRequest::~UpdateProjectRequest()
|
||||
{}
|
||||
|
||||
std::string UpdateProjectRequest::getCorpId()const
|
||||
{
|
||||
return corpId_;
|
||||
}
|
||||
|
||||
void UpdateProjectRequest::setCorpId(const std::string& corpId)
|
||||
{
|
||||
corpId_ = corpId;
|
||||
setBodyParameter("CorpId", corpId);
|
||||
}
|
||||
|
||||
std::string UpdateProjectRequest::getIcon()const
|
||||
{
|
||||
return icon_;
|
||||
}
|
||||
|
||||
void UpdateProjectRequest::setIcon(const std::string& icon)
|
||||
{
|
||||
icon_ = icon;
|
||||
setBodyParameter("Icon", icon);
|
||||
}
|
||||
|
||||
std::string UpdateProjectRequest::getDescription()const
|
||||
{
|
||||
return description_;
|
||||
}
|
||||
|
||||
void UpdateProjectRequest::setDescription(const std::string& description)
|
||||
{
|
||||
description_ = description;
|
||||
setBodyParameter("Description", description);
|
||||
}
|
||||
|
||||
std::string UpdateProjectRequest::getAppName()const
|
||||
{
|
||||
return appName_;
|
||||
}
|
||||
|
||||
void UpdateProjectRequest::setAppName(const std::string& appName)
|
||||
{
|
||||
appName_ = appName;
|
||||
setBodyParameter("AppName", appName);
|
||||
}
|
||||
|
||||
std::string UpdateProjectRequest::get_NameSpace()const
|
||||
{
|
||||
return _nameSpace_;
|
||||
}
|
||||
|
||||
void UpdateProjectRequest::set_NameSpace(const std::string& _nameSpace)
|
||||
{
|
||||
_nameSpace_ = _nameSpace;
|
||||
setBodyParameter("_NameSpace", _nameSpace);
|
||||
}
|
||||
|
||||
std::string UpdateProjectRequest::getName()const
|
||||
{
|
||||
return name_;
|
||||
}
|
||||
|
||||
void UpdateProjectRequest::setName(const std::string& name)
|
||||
{
|
||||
name_ = name;
|
||||
setBodyParameter("Name", name);
|
||||
}
|
||||
|
||||
58
cdrs/src/model/UpdateProjectResult.cc
Normal file
58
cdrs/src/model/UpdateProjectResult.cc
Normal file
@@ -0,0 +1,58 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/cdrs/model/UpdateProjectResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::CDRS;
|
||||
using namespace AlibabaCloud::CDRS::Model;
|
||||
|
||||
UpdateProjectResult::UpdateProjectResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
UpdateProjectResult::UpdateProjectResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
UpdateProjectResult::~UpdateProjectResult()
|
||||
{}
|
||||
|
||||
void UpdateProjectResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string UpdateProjectResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
std::string UpdateProjectResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
@@ -53,6 +53,8 @@ set(codeup_public_header_model
|
||||
include/alibabacloud/codeup/model/DeleteRepositoryMemberResult.h
|
||||
include/alibabacloud/codeup/model/DeleteRepositoryTagRequest.h
|
||||
include/alibabacloud/codeup/model/DeleteRepositoryTagResult.h
|
||||
include/alibabacloud/codeup/model/DeleteRepositoryWebhookRequest.h
|
||||
include/alibabacloud/codeup/model/DeleteRepositoryWebhookResult.h
|
||||
include/alibabacloud/codeup/model/GetBranchInfoRequest.h
|
||||
include/alibabacloud/codeup/model/GetBranchInfoResult.h
|
||||
include/alibabacloud/codeup/model/GetCodeupOrganizationRequest.h
|
||||
@@ -67,12 +69,18 @@ set(codeup_public_header_model
|
||||
include/alibabacloud/codeup/model/GetRepositoryInfoResult.h
|
||||
include/alibabacloud/codeup/model/GetRepositoryTagRequest.h
|
||||
include/alibabacloud/codeup/model/GetRepositoryTagResult.h
|
||||
include/alibabacloud/codeup/model/GetUserInfoRequest.h
|
||||
include/alibabacloud/codeup/model/GetUserInfoResult.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/ListOrganizationsRequest.h
|
||||
include/alibabacloud/codeup/model/ListOrganizationsResult.h
|
||||
include/alibabacloud/codeup/model/ListRepositoriesRequest.h
|
||||
include/alibabacloud/codeup/model/ListRepositoriesResult.h
|
||||
include/alibabacloud/codeup/model/ListRepositoryBranchesRequest.h
|
||||
include/alibabacloud/codeup/model/ListRepositoryBranchesResult.h
|
||||
include/alibabacloud/codeup/model/ListRepositoryMemberRequest.h
|
||||
@@ -81,6 +89,8 @@ set(codeup_public_header_model
|
||||
include/alibabacloud/codeup/model/ListRepositoryTagsResult.h
|
||||
include/alibabacloud/codeup/model/ListRepositoryTreeRequest.h
|
||||
include/alibabacloud/codeup/model/ListRepositoryTreeResult.h
|
||||
include/alibabacloud/codeup/model/ListRepositoryWebhookRequest.h
|
||||
include/alibabacloud/codeup/model/ListRepositoryWebhookResult.h
|
||||
include/alibabacloud/codeup/model/MergeMergeRequestRequest.h
|
||||
include/alibabacloud/codeup/model/MergeMergeRequestResult.h
|
||||
include/alibabacloud/codeup/model/UpdateFileRequest.h
|
||||
@@ -124,6 +134,8 @@ set(codeup_src
|
||||
src/model/DeleteRepositoryMemberResult.cc
|
||||
src/model/DeleteRepositoryTagRequest.cc
|
||||
src/model/DeleteRepositoryTagResult.cc
|
||||
src/model/DeleteRepositoryWebhookRequest.cc
|
||||
src/model/DeleteRepositoryWebhookResult.cc
|
||||
src/model/GetBranchInfoRequest.cc
|
||||
src/model/GetBranchInfoResult.cc
|
||||
src/model/GetCodeupOrganizationRequest.cc
|
||||
@@ -138,12 +150,18 @@ set(codeup_src
|
||||
src/model/GetRepositoryInfoResult.cc
|
||||
src/model/GetRepositoryTagRequest.cc
|
||||
src/model/GetRepositoryTagResult.cc
|
||||
src/model/GetUserInfoRequest.cc
|
||||
src/model/GetUserInfoResult.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/ListOrganizationsRequest.cc
|
||||
src/model/ListOrganizationsResult.cc
|
||||
src/model/ListRepositoriesRequest.cc
|
||||
src/model/ListRepositoriesResult.cc
|
||||
src/model/ListRepositoryBranchesRequest.cc
|
||||
src/model/ListRepositoryBranchesResult.cc
|
||||
src/model/ListRepositoryMemberRequest.cc
|
||||
@@ -152,6 +170,8 @@ set(codeup_src
|
||||
src/model/ListRepositoryTagsResult.cc
|
||||
src/model/ListRepositoryTreeRequest.cc
|
||||
src/model/ListRepositoryTreeResult.cc
|
||||
src/model/ListRepositoryWebhookRequest.cc
|
||||
src/model/ListRepositoryWebhookResult.cc
|
||||
src/model/MergeMergeRequestRequest.cc
|
||||
src/model/MergeMergeRequestResult.cc
|
||||
src/model/UpdateFileRequest.cc
|
||||
|
||||
@@ -54,6 +54,8 @@
|
||||
#include "model/DeleteRepositoryMemberResult.h"
|
||||
#include "model/DeleteRepositoryTagRequest.h"
|
||||
#include "model/DeleteRepositoryTagResult.h"
|
||||
#include "model/DeleteRepositoryWebhookRequest.h"
|
||||
#include "model/DeleteRepositoryWebhookResult.h"
|
||||
#include "model/GetBranchInfoRequest.h"
|
||||
#include "model/GetBranchInfoResult.h"
|
||||
#include "model/GetCodeupOrganizationRequest.h"
|
||||
@@ -68,12 +70,18 @@
|
||||
#include "model/GetRepositoryInfoResult.h"
|
||||
#include "model/GetRepositoryTagRequest.h"
|
||||
#include "model/GetRepositoryTagResult.h"
|
||||
#include "model/GetUserInfoRequest.h"
|
||||
#include "model/GetUserInfoResult.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/ListOrganizationsRequest.h"
|
||||
#include "model/ListOrganizationsResult.h"
|
||||
#include "model/ListRepositoriesRequest.h"
|
||||
#include "model/ListRepositoriesResult.h"
|
||||
#include "model/ListRepositoryBranchesRequest.h"
|
||||
#include "model/ListRepositoryBranchesResult.h"
|
||||
#include "model/ListRepositoryMemberRequest.h"
|
||||
@@ -82,6 +90,8 @@
|
||||
#include "model/ListRepositoryTagsResult.h"
|
||||
#include "model/ListRepositoryTreeRequest.h"
|
||||
#include "model/ListRepositoryTreeResult.h"
|
||||
#include "model/ListRepositoryWebhookRequest.h"
|
||||
#include "model/ListRepositoryWebhookResult.h"
|
||||
#include "model/MergeMergeRequestRequest.h"
|
||||
#include "model/MergeMergeRequestResult.h"
|
||||
#include "model/UpdateFileRequest.h"
|
||||
@@ -147,6 +157,9 @@ namespace AlibabaCloud
|
||||
typedef Outcome<Error, Model::DeleteRepositoryTagResult> DeleteRepositoryTagOutcome;
|
||||
typedef std::future<DeleteRepositoryTagOutcome> DeleteRepositoryTagOutcomeCallable;
|
||||
typedef std::function<void(const CodeupClient*, const Model::DeleteRepositoryTagRequest&, const DeleteRepositoryTagOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DeleteRepositoryTagAsyncHandler;
|
||||
typedef Outcome<Error, Model::DeleteRepositoryWebhookResult> DeleteRepositoryWebhookOutcome;
|
||||
typedef std::future<DeleteRepositoryWebhookOutcome> DeleteRepositoryWebhookOutcomeCallable;
|
||||
typedef std::function<void(const CodeupClient*, const Model::DeleteRepositoryWebhookRequest&, const DeleteRepositoryWebhookOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DeleteRepositoryWebhookAsyncHandler;
|
||||
typedef Outcome<Error, Model::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;
|
||||
@@ -168,6 +181,9 @@ namespace AlibabaCloud
|
||||
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::GetUserInfoResult> GetUserInfoOutcome;
|
||||
typedef std::future<GetUserInfoOutcome> GetUserInfoOutcomeCallable;
|
||||
typedef std::function<void(const CodeupClient*, const Model::GetUserInfoRequest&, const GetUserInfoOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetUserInfoAsyncHandler;
|
||||
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;
|
||||
@@ -177,6 +193,12 @@ 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::ListOrganizationsResult> ListOrganizationsOutcome;
|
||||
typedef std::future<ListOrganizationsOutcome> ListOrganizationsOutcomeCallable;
|
||||
typedef std::function<void(const CodeupClient*, const Model::ListOrganizationsRequest&, const ListOrganizationsOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ListOrganizationsAsyncHandler;
|
||||
typedef Outcome<Error, Model::ListRepositoriesResult> ListRepositoriesOutcome;
|
||||
typedef std::future<ListRepositoriesOutcome> ListRepositoriesOutcomeCallable;
|
||||
typedef std::function<void(const CodeupClient*, const Model::ListRepositoriesRequest&, const ListRepositoriesOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ListRepositoriesAsyncHandler;
|
||||
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;
|
||||
@@ -189,6 +211,9 @@ namespace AlibabaCloud
|
||||
typedef Outcome<Error, Model::ListRepositoryTreeResult> ListRepositoryTreeOutcome;
|
||||
typedef std::future<ListRepositoryTreeOutcome> ListRepositoryTreeOutcomeCallable;
|
||||
typedef std::function<void(const CodeupClient*, const Model::ListRepositoryTreeRequest&, const ListRepositoryTreeOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ListRepositoryTreeAsyncHandler;
|
||||
typedef Outcome<Error, Model::ListRepositoryWebhookResult> ListRepositoryWebhookOutcome;
|
||||
typedef std::future<ListRepositoryWebhookOutcome> ListRepositoryWebhookOutcomeCallable;
|
||||
typedef std::function<void(const CodeupClient*, const Model::ListRepositoryWebhookRequest&, const ListRepositoryWebhookOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ListRepositoryWebhookAsyncHandler;
|
||||
typedef Outcome<Error, Model::MergeMergeRequestResult> MergeMergeRequestOutcome;
|
||||
typedef std::future<MergeMergeRequestOutcome> MergeMergeRequestOutcomeCallable;
|
||||
typedef std::function<void(const CodeupClient*, const Model::MergeMergeRequestRequest&, const MergeMergeRequestOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> MergeMergeRequestAsyncHandler;
|
||||
@@ -254,6 +279,9 @@ namespace AlibabaCloud
|
||||
DeleteRepositoryTagOutcome deleteRepositoryTag(const Model::DeleteRepositoryTagRequest &request)const;
|
||||
void deleteRepositoryTagAsync(const Model::DeleteRepositoryTagRequest& request, const DeleteRepositoryTagAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DeleteRepositoryTagOutcomeCallable deleteRepositoryTagCallable(const Model::DeleteRepositoryTagRequest& request) const;
|
||||
DeleteRepositoryWebhookOutcome deleteRepositoryWebhook(const Model::DeleteRepositoryWebhookRequest &request)const;
|
||||
void deleteRepositoryWebhookAsync(const Model::DeleteRepositoryWebhookRequest& request, const DeleteRepositoryWebhookAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DeleteRepositoryWebhookOutcomeCallable deleteRepositoryWebhookCallable(const Model::DeleteRepositoryWebhookRequest& request) const;
|
||||
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;
|
||||
@@ -275,6 +303,9 @@ namespace AlibabaCloud
|
||||
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;
|
||||
GetUserInfoOutcome getUserInfo(const Model::GetUserInfoRequest &request)const;
|
||||
void getUserInfoAsync(const Model::GetUserInfoRequest& request, const GetUserInfoAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
GetUserInfoOutcomeCallable getUserInfoCallable(const Model::GetUserInfoRequest& 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;
|
||||
@@ -284,6 +315,12 @@ 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;
|
||||
ListOrganizationsOutcome listOrganizations(const Model::ListOrganizationsRequest &request)const;
|
||||
void listOrganizationsAsync(const Model::ListOrganizationsRequest& request, const ListOrganizationsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
ListOrganizationsOutcomeCallable listOrganizationsCallable(const Model::ListOrganizationsRequest& request) const;
|
||||
ListRepositoriesOutcome listRepositories(const Model::ListRepositoriesRequest &request)const;
|
||||
void listRepositoriesAsync(const Model::ListRepositoriesRequest& request, const ListRepositoriesAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
ListRepositoriesOutcomeCallable listRepositoriesCallable(const Model::ListRepositoriesRequest& 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;
|
||||
@@ -296,6 +333,9 @@ namespace AlibabaCloud
|
||||
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;
|
||||
ListRepositoryWebhookOutcome listRepositoryWebhook(const Model::ListRepositoryWebhookRequest &request)const;
|
||||
void listRepositoryWebhookAsync(const Model::ListRepositoryWebhookRequest& request, const ListRepositoryWebhookAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
ListRepositoryWebhookOutcomeCallable listRepositoryWebhookCallable(const Model::ListRepositoryWebhookRequest& request) const;
|
||||
MergeMergeRequestOutcome mergeMergeRequest(const Model::MergeMergeRequestRequest &request)const;
|
||||
void mergeMergeRequestAsync(const Model::MergeMergeRequestRequest& request, const MergeMergeRequestAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
MergeMergeRequestOutcomeCallable mergeMergeRequestCallable(const Model::MergeMergeRequestRequest& request) const;
|
||||
|
||||
@@ -47,6 +47,7 @@ namespace AlibabaCloud
|
||||
long id;
|
||||
bool enableSslVerification;
|
||||
bool noteEvents;
|
||||
std::string secretToken;
|
||||
};
|
||||
|
||||
|
||||
|
||||
@@ -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_DELETEREPOSITORYWEBHOOKREQUEST_H_
|
||||
#define ALIBABACLOUD_CODEUP_MODEL_DELETEREPOSITORYWEBHOOKREQUEST_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 DeleteRepositoryWebhookRequest : public RoaServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
DeleteRepositoryWebhookRequest();
|
||||
~DeleteRepositoryWebhookRequest();
|
||||
|
||||
std::string getOrganizationId()const;
|
||||
void setOrganizationId(const std::string& organizationId);
|
||||
long getWebhookId()const;
|
||||
void setWebhookId(long webhookId);
|
||||
std::string getAccessToken()const;
|
||||
void setAccessToken(const std::string& accessToken);
|
||||
long getProjectId()const;
|
||||
void setProjectId(long projectId);
|
||||
|
||||
private:
|
||||
std::string organizationId_;
|
||||
long webhookId_;
|
||||
std::string accessToken_;
|
||||
long projectId_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_CODEUP_MODEL_DELETEREPOSITORYWEBHOOKREQUEST_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_DELETEREPOSITORYWEBHOOKRESULT_H_
|
||||
#define ALIBABACLOUD_CODEUP_MODEL_DELETEREPOSITORYWEBHOOKRESULT_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 DeleteRepositoryWebhookResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct Result
|
||||
{
|
||||
std::string description;
|
||||
std::string lastTestResult;
|
||||
bool pushEvents;
|
||||
std::string createdAt;
|
||||
long projectId;
|
||||
bool tagPushEvents;
|
||||
long id;
|
||||
bool enableSslVerification;
|
||||
bool noteEvents;
|
||||
bool mergeRequestsEvents;
|
||||
std::string url;
|
||||
std::string secretToken;
|
||||
};
|
||||
|
||||
|
||||
DeleteRepositoryWebhookResult();
|
||||
explicit DeleteRepositoryWebhookResult(const std::string &payload);
|
||||
~DeleteRepositoryWebhookResult();
|
||||
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_DELETEREPOSITORYWEBHOOKRESULT_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_CODEUP_MODEL_GETUSERINFOREQUEST_H_
|
||||
#define ALIBABACLOUD_CODEUP_MODEL_GETUSERINFOREQUEST_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 GetUserInfoRequest : public RoaServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
GetUserInfoRequest();
|
||||
~GetUserInfoRequest();
|
||||
|
||||
std::string getAccessToken()const;
|
||||
void setAccessToken(const std::string& accessToken);
|
||||
|
||||
private:
|
||||
std::string accessToken_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_CODEUP_MODEL_GETUSERINFOREQUEST_H_
|
||||
66
codeup/include/alibabacloud/codeup/model/GetUserInfoResult.h
Normal file
66
codeup/include/alibabacloud/codeup/model/GetUserInfoResult.h
Normal file
@@ -0,0 +1,66 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_CODEUP_MODEL_GETUSERINFORESULT_H_
|
||||
#define ALIBABACLOUD_CODEUP_MODEL_GETUSERINFORESULT_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 GetUserInfoResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct Result
|
||||
{
|
||||
std::string email;
|
||||
std::string avatarUrl;
|
||||
std::string username;
|
||||
std::string externalUserId;
|
||||
long id;
|
||||
std::string name;
|
||||
};
|
||||
|
||||
|
||||
GetUserInfoResult();
|
||||
explicit GetUserInfoResult(const std::string &payload);
|
||||
~GetUserInfoResult();
|
||||
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_GETUSERINFORESULT_H_
|
||||
@@ -0,0 +1,54 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_CODEUP_MODEL_LISTORGANIZATIONSREQUEST_H_
|
||||
#define ALIBABACLOUD_CODEUP_MODEL_LISTORGANIZATIONSREQUEST_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 ListOrganizationsRequest : public RoaServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
ListOrganizationsRequest();
|
||||
~ListOrganizationsRequest();
|
||||
|
||||
int getAccessLevel()const;
|
||||
void setAccessLevel(int accessLevel);
|
||||
int getMinAccessLevel()const;
|
||||
void setMinAccessLevel(int minAccessLevel);
|
||||
std::string getAccessToken()const;
|
||||
void setAccessToken(const std::string& accessToken);
|
||||
|
||||
private:
|
||||
int accessLevel_;
|
||||
int minAccessLevel_;
|
||||
std::string accessToken_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_CODEUP_MODEL_LISTORGANIZATIONSREQUEST_H_
|
||||
@@ -14,38 +14,51 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_HITSDB_MODEL_RENEWTSDBINSTANCERESULT_H_
|
||||
#define ALIBABACLOUD_HITSDB_MODEL_RENEWTSDBINSTANCERESULT_H_
|
||||
#ifndef ALIBABACLOUD_CODEUP_MODEL_LISTORGANIZATIONSRESULT_H_
|
||||
#define ALIBABACLOUD_CODEUP_MODEL_LISTORGANIZATIONSRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/hitsdb/HitsdbExport.h>
|
||||
#include <alibabacloud/codeup/CodeupExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Hitsdb
|
||||
namespace Codeup
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_HITSDB_EXPORT RenewTSDBInstanceResult : public ServiceResult
|
||||
class ALIBABACLOUD_CODEUP_EXPORT ListOrganizationsResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct ResultItem
|
||||
{
|
||||
std::string organizationName;
|
||||
std::string organizationRole;
|
||||
std::string organizationId;
|
||||
int accessLevel;
|
||||
};
|
||||
|
||||
|
||||
RenewTSDBInstanceResult();
|
||||
explicit RenewTSDBInstanceResult(const std::string &payload);
|
||||
~RenewTSDBInstanceResult();
|
||||
long getOrderId()const;
|
||||
ListOrganizationsResult();
|
||||
explicit ListOrganizationsResult(const std::string &payload);
|
||||
~ListOrganizationsResult();
|
||||
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 orderId_;
|
||||
std::string errorCode_;
|
||||
std::string errorMessage_;
|
||||
bool success_;
|
||||
std::vector<ResultItem> result_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_HITSDB_MODEL_RENEWTSDBINSTANCERESULT_H_
|
||||
#endif // !ALIBABACLOUD_CODEUP_MODEL_LISTORGANIZATIONSRESULT_H_
|
||||
@@ -0,0 +1,69 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_CODEUP_MODEL_LISTREPOSITORIESREQUEST_H_
|
||||
#define ALIBABACLOUD_CODEUP_MODEL_LISTREPOSITORIESREQUEST_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 ListRepositoriesRequest : public RoaServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
ListRepositoriesRequest();
|
||||
~ListRepositoriesRequest();
|
||||
|
||||
std::string getAccessToken()const;
|
||||
void setAccessToken(const std::string& accessToken);
|
||||
bool getArchive()const;
|
||||
void setArchive(bool archive);
|
||||
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);
|
||||
std::string getOrder()const;
|
||||
void setOrder(const std::string& order);
|
||||
|
||||
private:
|
||||
std::string accessToken_;
|
||||
bool archive_;
|
||||
std::string sort_;
|
||||
std::string organizationId_;
|
||||
std::string search_;
|
||||
long pageSize_;
|
||||
long page_;
|
||||
std::string order_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_CODEUP_MODEL_LISTREPOSITORIESREQUEST_H_
|
||||
@@ -0,0 +1,81 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_CODEUP_MODEL_LISTREPOSITORIESRESULT_H_
|
||||
#define ALIBABACLOUD_CODEUP_MODEL_LISTREPOSITORIESRESULT_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 ListRepositoriesResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct ResultItem
|
||||
{
|
||||
std::string path;
|
||||
std::string pathWithNamespace;
|
||||
std::string lastActivityAt;
|
||||
std::string description;
|
||||
bool archive;
|
||||
std::string createdAt;
|
||||
std::string webUrl;
|
||||
std::string nameWithNamespace;
|
||||
std::string visibilityLevel;
|
||||
std::string updatedAt;
|
||||
int accessLevel;
|
||||
std::string name;
|
||||
std::string avatarUrl;
|
||||
bool demoProjectStatus;
|
||||
bool star;
|
||||
std::string importStatus;
|
||||
long id;
|
||||
long namespaceId;
|
||||
long starCount;
|
||||
};
|
||||
|
||||
|
||||
ListRepositoriesResult();
|
||||
explicit ListRepositoriesResult(const std::string &payload);
|
||||
~ListRepositoriesResult();
|
||||
long getTotal()const;
|
||||
int getErrorCode()const;
|
||||
std::string getErrorMessage()const;
|
||||
bool getSuccess()const;
|
||||
std::vector<ResultItem> getResult()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
long total_;
|
||||
int errorCode_;
|
||||
std::string errorMessage_;
|
||||
bool success_;
|
||||
std::vector<ResultItem> result_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_CODEUP_MODEL_LISTREPOSITORIESRESULT_H_
|
||||
@@ -0,0 +1,60 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_CODEUP_MODEL_LISTREPOSITORYWEBHOOKREQUEST_H_
|
||||
#define ALIBABACLOUD_CODEUP_MODEL_LISTREPOSITORYWEBHOOKREQUEST_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 ListRepositoryWebhookRequest : public RoaServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
ListRepositoryWebhookRequest();
|
||||
~ListRepositoryWebhookRequest();
|
||||
|
||||
std::string getOrganizationId()const;
|
||||
void setOrganizationId(const std::string& organizationId);
|
||||
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_;
|
||||
long pageSize_;
|
||||
std::string accessToken_;
|
||||
long page_;
|
||||
long projectId_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_CODEUP_MODEL_LISTREPOSITORYWEBHOOKREQUEST_H_
|
||||
@@ -0,0 +1,74 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_CODEUP_MODEL_LISTREPOSITORYWEBHOOKRESULT_H_
|
||||
#define ALIBABACLOUD_CODEUP_MODEL_LISTREPOSITORYWEBHOOKRESULT_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 ListRepositoryWebhookResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct ResultItem
|
||||
{
|
||||
std::string description;
|
||||
std::string lastTestResult;
|
||||
bool pushEvents;
|
||||
std::string createdAt;
|
||||
long projectId;
|
||||
bool tagPushEvents;
|
||||
long id;
|
||||
bool enableSslVerification;
|
||||
bool noteEvents;
|
||||
bool mergeRequestsEvents;
|
||||
std::string url;
|
||||
std::string secretToken;
|
||||
};
|
||||
|
||||
|
||||
ListRepositoryWebhookResult();
|
||||
explicit ListRepositoryWebhookResult(const std::string &payload);
|
||||
~ListRepositoryWebhookResult();
|
||||
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_LISTREPOSITORYWEBHOOKRESULT_H_
|
||||
@@ -627,6 +627,42 @@ CodeupClient::DeleteRepositoryTagOutcomeCallable CodeupClient::deleteRepositoryT
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
CodeupClient::DeleteRepositoryWebhookOutcome CodeupClient::deleteRepositoryWebhook(const DeleteRepositoryWebhookRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return DeleteRepositoryWebhookOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return DeleteRepositoryWebhookOutcome(DeleteRepositoryWebhookResult(outcome.result()));
|
||||
else
|
||||
return DeleteRepositoryWebhookOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void CodeupClient::deleteRepositoryWebhookAsync(const DeleteRepositoryWebhookRequest& request, const DeleteRepositoryWebhookAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, deleteRepositoryWebhook(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
CodeupClient::DeleteRepositoryWebhookOutcomeCallable CodeupClient::deleteRepositoryWebhookCallable(const DeleteRepositoryWebhookRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<DeleteRepositoryWebhookOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->deleteRepositoryWebhook(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
CodeupClient::GetBranchInfoOutcome CodeupClient::getBranchInfo(const GetBranchInfoRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -879,6 +915,42 @@ CodeupClient::GetRepositoryTagOutcomeCallable CodeupClient::getRepositoryTagCall
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
CodeupClient::GetUserInfoOutcome CodeupClient::getUserInfo(const GetUserInfoRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return GetUserInfoOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return GetUserInfoOutcome(GetUserInfoResult(outcome.result()));
|
||||
else
|
||||
return GetUserInfoOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void CodeupClient::getUserInfoAsync(const GetUserInfoRequest& request, const GetUserInfoAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, getUserInfo(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
CodeupClient::GetUserInfoOutcomeCallable CodeupClient::getUserInfoCallable(const GetUserInfoRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<GetUserInfoOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->getUserInfo(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
CodeupClient::ListGroupMemberOutcome CodeupClient::listGroupMember(const ListGroupMemberRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -987,6 +1059,78 @@ CodeupClient::ListGroupsOutcomeCallable CodeupClient::listGroupsCallable(const L
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
CodeupClient::ListOrganizationsOutcome CodeupClient::listOrganizations(const ListOrganizationsRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return ListOrganizationsOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return ListOrganizationsOutcome(ListOrganizationsResult(outcome.result()));
|
||||
else
|
||||
return ListOrganizationsOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void CodeupClient::listOrganizationsAsync(const ListOrganizationsRequest& request, const ListOrganizationsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, listOrganizations(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
CodeupClient::ListOrganizationsOutcomeCallable CodeupClient::listOrganizationsCallable(const ListOrganizationsRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<ListOrganizationsOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->listOrganizations(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
CodeupClient::ListRepositoriesOutcome CodeupClient::listRepositories(const ListRepositoriesRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return ListRepositoriesOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return ListRepositoriesOutcome(ListRepositoriesResult(outcome.result()));
|
||||
else
|
||||
return ListRepositoriesOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void CodeupClient::listRepositoriesAsync(const ListRepositoriesRequest& request, const ListRepositoriesAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, listRepositories(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
CodeupClient::ListRepositoriesOutcomeCallable CodeupClient::listRepositoriesCallable(const ListRepositoriesRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<ListRepositoriesOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->listRepositories(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
CodeupClient::ListRepositoryBranchesOutcome CodeupClient::listRepositoryBranches(const ListRepositoryBranchesRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -1131,6 +1275,42 @@ CodeupClient::ListRepositoryTreeOutcomeCallable CodeupClient::listRepositoryTree
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
CodeupClient::ListRepositoryWebhookOutcome CodeupClient::listRepositoryWebhook(const ListRepositoryWebhookRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return ListRepositoryWebhookOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return ListRepositoryWebhookOutcome(ListRepositoryWebhookResult(outcome.result()));
|
||||
else
|
||||
return ListRepositoryWebhookOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void CodeupClient::listRepositoryWebhookAsync(const ListRepositoryWebhookRequest& request, const ListRepositoryWebhookAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, listRepositoryWebhook(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
CodeupClient::ListRepositoryWebhookOutcomeCallable CodeupClient::listRepositoryWebhookCallable(const ListRepositoryWebhookRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<ListRepositoryWebhookOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->listRepositoryWebhook(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
CodeupClient::MergeMergeRequestOutcome CodeupClient::mergeMergeRequest(const MergeMergeRequestRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
|
||||
@@ -66,6 +66,8 @@ void AddWebhookResult::parse(const std::string &payload)
|
||||
result_.lastTestResult = resultNode["LastTestResult"].asString();
|
||||
if(!resultNode["Description"].isNull())
|
||||
result_.description = resultNode["Description"].asString();
|
||||
if(!resultNode["SecretToken"].isNull())
|
||||
result_.secretToken = resultNode["SecretToken"].asString();
|
||||
if(!value["ErrorCode"].isNull())
|
||||
errorCode_ = value["ErrorCode"].asString();
|
||||
if(!value["Success"].isNull())
|
||||
|
||||
74
codeup/src/model/DeleteRepositoryWebhookRequest.cc
Normal file
74
codeup/src/model/DeleteRepositoryWebhookRequest.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/DeleteRepositoryWebhookRequest.h>
|
||||
|
||||
using AlibabaCloud::Codeup::Model::DeleteRepositoryWebhookRequest;
|
||||
|
||||
DeleteRepositoryWebhookRequest::DeleteRepositoryWebhookRequest() :
|
||||
RoaServiceRequest("codeup", "2020-04-14")
|
||||
{
|
||||
setResourcePath("/api/v3/projects/[ProjectId]/hooks/[WebhookId]");
|
||||
setMethod(HttpRequest::Method::Delete);
|
||||
}
|
||||
|
||||
DeleteRepositoryWebhookRequest::~DeleteRepositoryWebhookRequest()
|
||||
{}
|
||||
|
||||
std::string DeleteRepositoryWebhookRequest::getOrganizationId()const
|
||||
{
|
||||
return organizationId_;
|
||||
}
|
||||
|
||||
void DeleteRepositoryWebhookRequest::setOrganizationId(const std::string& organizationId)
|
||||
{
|
||||
organizationId_ = organizationId;
|
||||
setParameter("OrganizationId", organizationId);
|
||||
}
|
||||
|
||||
long DeleteRepositoryWebhookRequest::getWebhookId()const
|
||||
{
|
||||
return webhookId_;
|
||||
}
|
||||
|
||||
void DeleteRepositoryWebhookRequest::setWebhookId(long webhookId)
|
||||
{
|
||||
webhookId_ = webhookId;
|
||||
setParameter("WebhookId", std::to_string(webhookId));
|
||||
}
|
||||
|
||||
std::string DeleteRepositoryWebhookRequest::getAccessToken()const
|
||||
{
|
||||
return accessToken_;
|
||||
}
|
||||
|
||||
void DeleteRepositoryWebhookRequest::setAccessToken(const std::string& accessToken)
|
||||
{
|
||||
accessToken_ = accessToken;
|
||||
setParameter("AccessToken", accessToken);
|
||||
}
|
||||
|
||||
long DeleteRepositoryWebhookRequest::getProjectId()const
|
||||
{
|
||||
return projectId_;
|
||||
}
|
||||
|
||||
void DeleteRepositoryWebhookRequest::setProjectId(long projectId)
|
||||
{
|
||||
projectId_ = projectId;
|
||||
setParameter("ProjectId", std::to_string(projectId));
|
||||
}
|
||||
|
||||
95
codeup/src/model/DeleteRepositoryWebhookResult.cc
Normal file
95
codeup/src/model/DeleteRepositoryWebhookResult.cc
Normal file
@@ -0,0 +1,95 @@
|
||||
/*
|
||||
* 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/DeleteRepositoryWebhookResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Codeup;
|
||||
using namespace AlibabaCloud::Codeup::Model;
|
||||
|
||||
DeleteRepositoryWebhookResult::DeleteRepositoryWebhookResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DeleteRepositoryWebhookResult::DeleteRepositoryWebhookResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DeleteRepositoryWebhookResult::~DeleteRepositoryWebhookResult()
|
||||
{}
|
||||
|
||||
void DeleteRepositoryWebhookResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto resultNode = value["Result"];
|
||||
if(!resultNode["Id"].isNull())
|
||||
result_.id = std::stol(resultNode["Id"].asString());
|
||||
if(!resultNode["Url"].isNull())
|
||||
result_.url = resultNode["Url"].asString();
|
||||
if(!resultNode["CreatedAt"].isNull())
|
||||
result_.createdAt = resultNode["CreatedAt"].asString();
|
||||
if(!resultNode["ProjectId"].isNull())
|
||||
result_.projectId = std::stol(resultNode["ProjectId"].asString());
|
||||
if(!resultNode["PushEvents"].isNull())
|
||||
result_.pushEvents = resultNode["PushEvents"].asString() == "true";
|
||||
if(!resultNode["MergeRequestsEvents"].isNull())
|
||||
result_.mergeRequestsEvents = resultNode["MergeRequestsEvents"].asString() == "true";
|
||||
if(!resultNode["TagPushEvents"].isNull())
|
||||
result_.tagPushEvents = resultNode["TagPushEvents"].asString() == "true";
|
||||
if(!resultNode["NoteEvents"].isNull())
|
||||
result_.noteEvents = resultNode["NoteEvents"].asString() == "true";
|
||||
if(!resultNode["EnableSslVerification"].isNull())
|
||||
result_.enableSslVerification = resultNode["EnableSslVerification"].asString() == "true";
|
||||
if(!resultNode["LastTestResult"].isNull())
|
||||
result_.lastTestResult = resultNode["LastTestResult"].asString();
|
||||
if(!resultNode["Description"].isNull())
|
||||
result_.description = resultNode["Description"].asString();
|
||||
if(!resultNode["SecretToken"].isNull())
|
||||
result_.secretToken = resultNode["SecretToken"].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 DeleteRepositoryWebhookResult::getErrorCode()const
|
||||
{
|
||||
return errorCode_;
|
||||
}
|
||||
|
||||
std::string DeleteRepositoryWebhookResult::getErrorMessage()const
|
||||
{
|
||||
return errorMessage_;
|
||||
}
|
||||
|
||||
bool DeleteRepositoryWebhookResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
DeleteRepositoryWebhookResult::Result DeleteRepositoryWebhookResult::getResult()const
|
||||
{
|
||||
return result_;
|
||||
}
|
||||
|
||||
41
codeup/src/model/GetUserInfoRequest.cc
Normal file
41
codeup/src/model/GetUserInfoRequest.cc
Normal file
@@ -0,0 +1,41 @@
|
||||
/*
|
||||
* 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/GetUserInfoRequest.h>
|
||||
|
||||
using AlibabaCloud::Codeup::Model::GetUserInfoRequest;
|
||||
|
||||
GetUserInfoRequest::GetUserInfoRequest() :
|
||||
RoaServiceRequest("codeup", "2020-04-14")
|
||||
{
|
||||
setResourcePath("/api/v3/user/current");
|
||||
setMethod(HttpRequest::Method::Get);
|
||||
}
|
||||
|
||||
GetUserInfoRequest::~GetUserInfoRequest()
|
||||
{}
|
||||
|
||||
std::string GetUserInfoRequest::getAccessToken()const
|
||||
{
|
||||
return accessToken_;
|
||||
}
|
||||
|
||||
void GetUserInfoRequest::setAccessToken(const std::string& accessToken)
|
||||
{
|
||||
accessToken_ = accessToken;
|
||||
setParameter("AccessToken", accessToken);
|
||||
}
|
||||
|
||||
83
codeup/src/model/GetUserInfoResult.cc
Normal file
83
codeup/src/model/GetUserInfoResult.cc
Normal file
@@ -0,0 +1,83 @@
|
||||
/*
|
||||
* 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/GetUserInfoResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Codeup;
|
||||
using namespace AlibabaCloud::Codeup::Model;
|
||||
|
||||
GetUserInfoResult::GetUserInfoResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
GetUserInfoResult::GetUserInfoResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
GetUserInfoResult::~GetUserInfoResult()
|
||||
{}
|
||||
|
||||
void GetUserInfoResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto resultNode = value["Result"];
|
||||
if(!resultNode["Id"].isNull())
|
||||
result_.id = std::stol(resultNode["Id"].asString());
|
||||
if(!resultNode["ExternalUserId"].isNull())
|
||||
result_.externalUserId = resultNode["ExternalUserId"].asString();
|
||||
if(!resultNode["Username"].isNull())
|
||||
result_.username = resultNode["Username"].asString();
|
||||
if(!resultNode["Name"].isNull())
|
||||
result_.name = resultNode["Name"].asString();
|
||||
if(!resultNode["Email"].isNull())
|
||||
result_.email = resultNode["Email"].asString();
|
||||
if(!resultNode["AvatarUrl"].isNull())
|
||||
result_.avatarUrl = resultNode["AvatarUrl"].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 GetUserInfoResult::getErrorCode()const
|
||||
{
|
||||
return errorCode_;
|
||||
}
|
||||
|
||||
std::string GetUserInfoResult::getErrorMessage()const
|
||||
{
|
||||
return errorMessage_;
|
||||
}
|
||||
|
||||
bool GetUserInfoResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
GetUserInfoResult::Result GetUserInfoResult::getResult()const
|
||||
{
|
||||
return result_;
|
||||
}
|
||||
|
||||
63
codeup/src/model/ListOrganizationsRequest.cc
Normal file
63
codeup/src/model/ListOrganizationsRequest.cc
Normal file
@@ -0,0 +1,63 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/codeup/model/ListOrganizationsRequest.h>
|
||||
|
||||
using AlibabaCloud::Codeup::Model::ListOrganizationsRequest;
|
||||
|
||||
ListOrganizationsRequest::ListOrganizationsRequest() :
|
||||
RoaServiceRequest("codeup", "2020-04-14")
|
||||
{
|
||||
setResourcePath("/api/v4/organization");
|
||||
setMethod(HttpRequest::Method::Get);
|
||||
}
|
||||
|
||||
ListOrganizationsRequest::~ListOrganizationsRequest()
|
||||
{}
|
||||
|
||||
int ListOrganizationsRequest::getAccessLevel()const
|
||||
{
|
||||
return accessLevel_;
|
||||
}
|
||||
|
||||
void ListOrganizationsRequest::setAccessLevel(int accessLevel)
|
||||
{
|
||||
accessLevel_ = accessLevel;
|
||||
setParameter("AccessLevel", std::to_string(accessLevel));
|
||||
}
|
||||
|
||||
int ListOrganizationsRequest::getMinAccessLevel()const
|
||||
{
|
||||
return minAccessLevel_;
|
||||
}
|
||||
|
||||
void ListOrganizationsRequest::setMinAccessLevel(int minAccessLevel)
|
||||
{
|
||||
minAccessLevel_ = minAccessLevel;
|
||||
setParameter("MinAccessLevel", std::to_string(minAccessLevel));
|
||||
}
|
||||
|
||||
std::string ListOrganizationsRequest::getAccessToken()const
|
||||
{
|
||||
return accessToken_;
|
||||
}
|
||||
|
||||
void ListOrganizationsRequest::setAccessToken(const std::string& accessToken)
|
||||
{
|
||||
accessToken_ = accessToken;
|
||||
setParameter("AccessToken", accessToken);
|
||||
}
|
||||
|
||||
84
codeup/src/model/ListOrganizationsResult.cc
Normal file
84
codeup/src/model/ListOrganizationsResult.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/codeup/model/ListOrganizationsResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Codeup;
|
||||
using namespace AlibabaCloud::Codeup::Model;
|
||||
|
||||
ListOrganizationsResult::ListOrganizationsResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
ListOrganizationsResult::ListOrganizationsResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
ListOrganizationsResult::~ListOrganizationsResult()
|
||||
{}
|
||||
|
||||
void ListOrganizationsResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allResultNode = value["Result"]["ResultItem"];
|
||||
for (auto valueResultResultItem : allResultNode)
|
||||
{
|
||||
ResultItem resultObject;
|
||||
if(!valueResultResultItem["OrganizationId"].isNull())
|
||||
resultObject.organizationId = valueResultResultItem["OrganizationId"].asString();
|
||||
if(!valueResultResultItem["OrganizationName"].isNull())
|
||||
resultObject.organizationName = valueResultResultItem["OrganizationName"].asString();
|
||||
if(!valueResultResultItem["OrganizationRole"].isNull())
|
||||
resultObject.organizationRole = valueResultResultItem["OrganizationRole"].asString();
|
||||
if(!valueResultResultItem["AccessLevel"].isNull())
|
||||
resultObject.accessLevel = std::stoi(valueResultResultItem["AccessLevel"].asString());
|
||||
result_.push_back(resultObject);
|
||||
}
|
||||
if(!value["ErrorCode"].isNull())
|
||||
errorCode_ = value["ErrorCode"].asString();
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
if(!value["ErrorMessage"].isNull())
|
||||
errorMessage_ = value["ErrorMessage"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string ListOrganizationsResult::getErrorCode()const
|
||||
{
|
||||
return errorCode_;
|
||||
}
|
||||
|
||||
std::string ListOrganizationsResult::getErrorMessage()const
|
||||
{
|
||||
return errorMessage_;
|
||||
}
|
||||
|
||||
bool ListOrganizationsResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
std::vector<ListOrganizationsResult::ResultItem> ListOrganizationsResult::getResult()const
|
||||
{
|
||||
return result_;
|
||||
}
|
||||
|
||||
118
codeup/src/model/ListRepositoriesRequest.cc
Normal file
118
codeup/src/model/ListRepositoriesRequest.cc
Normal file
@@ -0,0 +1,118 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/codeup/model/ListRepositoriesRequest.h>
|
||||
|
||||
using AlibabaCloud::Codeup::Model::ListRepositoriesRequest;
|
||||
|
||||
ListRepositoriesRequest::ListRepositoriesRequest() :
|
||||
RoaServiceRequest("codeup", "2020-04-14")
|
||||
{
|
||||
setResourcePath("/api/v3/projects/all");
|
||||
setMethod(HttpRequest::Method::Get);
|
||||
}
|
||||
|
||||
ListRepositoriesRequest::~ListRepositoriesRequest()
|
||||
{}
|
||||
|
||||
std::string ListRepositoriesRequest::getAccessToken()const
|
||||
{
|
||||
return accessToken_;
|
||||
}
|
||||
|
||||
void ListRepositoriesRequest::setAccessToken(const std::string& accessToken)
|
||||
{
|
||||
accessToken_ = accessToken;
|
||||
setParameter("AccessToken", accessToken);
|
||||
}
|
||||
|
||||
bool ListRepositoriesRequest::getArchive()const
|
||||
{
|
||||
return archive_;
|
||||
}
|
||||
|
||||
void ListRepositoriesRequest::setArchive(bool archive)
|
||||
{
|
||||
archive_ = archive;
|
||||
setParameter("Archive", archive ? "true" : "false");
|
||||
}
|
||||
|
||||
std::string ListRepositoriesRequest::getSort()const
|
||||
{
|
||||
return sort_;
|
||||
}
|
||||
|
||||
void ListRepositoriesRequest::setSort(const std::string& sort)
|
||||
{
|
||||
sort_ = sort;
|
||||
setParameter("Sort", sort);
|
||||
}
|
||||
|
||||
std::string ListRepositoriesRequest::getOrganizationId()const
|
||||
{
|
||||
return organizationId_;
|
||||
}
|
||||
|
||||
void ListRepositoriesRequest::setOrganizationId(const std::string& organizationId)
|
||||
{
|
||||
organizationId_ = organizationId;
|
||||
setParameter("OrganizationId", organizationId);
|
||||
}
|
||||
|
||||
std::string ListRepositoriesRequest::getSearch()const
|
||||
{
|
||||
return search_;
|
||||
}
|
||||
|
||||
void ListRepositoriesRequest::setSearch(const std::string& search)
|
||||
{
|
||||
search_ = search;
|
||||
setParameter("Search", search);
|
||||
}
|
||||
|
||||
long ListRepositoriesRequest::getPageSize()const
|
||||
{
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
void ListRepositoriesRequest::setPageSize(long pageSize)
|
||||
{
|
||||
pageSize_ = pageSize;
|
||||
setParameter("PageSize", std::to_string(pageSize));
|
||||
}
|
||||
|
||||
long ListRepositoriesRequest::getPage()const
|
||||
{
|
||||
return page_;
|
||||
}
|
||||
|
||||
void ListRepositoriesRequest::setPage(long page)
|
||||
{
|
||||
page_ = page;
|
||||
setParameter("Page", std::to_string(page));
|
||||
}
|
||||
|
||||
std::string ListRepositoriesRequest::getOrder()const
|
||||
{
|
||||
return order_;
|
||||
}
|
||||
|
||||
void ListRepositoriesRequest::setOrder(const std::string& order)
|
||||
{
|
||||
order_ = order;
|
||||
setParameter("Order", order);
|
||||
}
|
||||
|
||||
121
codeup/src/model/ListRepositoriesResult.cc
Normal file
121
codeup/src/model/ListRepositoriesResult.cc
Normal file
@@ -0,0 +1,121 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/codeup/model/ListRepositoriesResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Codeup;
|
||||
using namespace AlibabaCloud::Codeup::Model;
|
||||
|
||||
ListRepositoriesResult::ListRepositoriesResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
ListRepositoriesResult::ListRepositoriesResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
ListRepositoriesResult::~ListRepositoriesResult()
|
||||
{}
|
||||
|
||||
void ListRepositoriesResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allResultNode = value["Result"]["ResultItem"];
|
||||
for (auto valueResultResultItem : allResultNode)
|
||||
{
|
||||
ResultItem resultObject;
|
||||
if(!valueResultResultItem["Id"].isNull())
|
||||
resultObject.id = std::stol(valueResultResultItem["Id"].asString());
|
||||
if(!valueResultResultItem["Description"].isNull())
|
||||
resultObject.description = valueResultResultItem["Description"].asString();
|
||||
if(!valueResultResultItem["VisibilityLevel"].isNull())
|
||||
resultObject.visibilityLevel = valueResultResultItem["VisibilityLevel"].asString();
|
||||
if(!valueResultResultItem["WebUrl"].isNull())
|
||||
resultObject.webUrl = valueResultResultItem["WebUrl"].asString();
|
||||
if(!valueResultResultItem["Name"].isNull())
|
||||
resultObject.name = valueResultResultItem["Name"].asString();
|
||||
if(!valueResultResultItem["NameWithNamespace"].isNull())
|
||||
resultObject.nameWithNamespace = valueResultResultItem["NameWithNamespace"].asString();
|
||||
if(!valueResultResultItem["Path"].isNull())
|
||||
resultObject.path = valueResultResultItem["Path"].asString();
|
||||
if(!valueResultResultItem["PathWithNamespace"].isNull())
|
||||
resultObject.pathWithNamespace = valueResultResultItem["PathWithNamespace"].asString();
|
||||
if(!valueResultResultItem["CreatedAt"].isNull())
|
||||
resultObject.createdAt = valueResultResultItem["CreatedAt"].asString();
|
||||
if(!valueResultResultItem["LastActivityAt"].isNull())
|
||||
resultObject.lastActivityAt = valueResultResultItem["LastActivityAt"].asString();
|
||||
if(!valueResultResultItem["Archive"].isNull())
|
||||
resultObject.archive = valueResultResultItem["Archive"].asString() == "true";
|
||||
if(!valueResultResultItem["AvatarUrl"].isNull())
|
||||
resultObject.avatarUrl = valueResultResultItem["AvatarUrl"].asString();
|
||||
if(!valueResultResultItem["DemoProjectStatus"].isNull())
|
||||
resultObject.demoProjectStatus = valueResultResultItem["DemoProjectStatus"].asString() == "true";
|
||||
if(!valueResultResultItem["AccessLevel"].isNull())
|
||||
resultObject.accessLevel = std::stoi(valueResultResultItem["AccessLevel"].asString());
|
||||
if(!valueResultResultItem["ImportStatus"].isNull())
|
||||
resultObject.importStatus = valueResultResultItem["ImportStatus"].asString();
|
||||
if(!valueResultResultItem["NamespaceId"].isNull())
|
||||
resultObject.namespaceId = std::stol(valueResultResultItem["NamespaceId"].asString());
|
||||
if(!valueResultResultItem["UpdatedAt"].isNull())
|
||||
resultObject.updatedAt = valueResultResultItem["UpdatedAt"].asString();
|
||||
if(!valueResultResultItem["StarCount"].isNull())
|
||||
resultObject.starCount = std::stol(valueResultResultItem["StarCount"].asString());
|
||||
if(!valueResultResultItem["Star"].isNull())
|
||||
resultObject.star = valueResultResultItem["Star"].asString() == "true";
|
||||
result_.push_back(resultObject);
|
||||
}
|
||||
if(!value["ErrorCode"].isNull())
|
||||
errorCode_ = std::stoi(value["ErrorCode"].asString());
|
||||
if(!value["ErrorMessage"].isNull())
|
||||
errorMessage_ = value["ErrorMessage"].asString();
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
if(!value["Total"].isNull())
|
||||
total_ = std::stol(value["Total"].asString());
|
||||
|
||||
}
|
||||
|
||||
long ListRepositoriesResult::getTotal()const
|
||||
{
|
||||
return total_;
|
||||
}
|
||||
|
||||
int ListRepositoriesResult::getErrorCode()const
|
||||
{
|
||||
return errorCode_;
|
||||
}
|
||||
|
||||
std::string ListRepositoriesResult::getErrorMessage()const
|
||||
{
|
||||
return errorMessage_;
|
||||
}
|
||||
|
||||
bool ListRepositoriesResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
std::vector<ListRepositoriesResult::ResultItem> ListRepositoriesResult::getResult()const
|
||||
{
|
||||
return result_;
|
||||
}
|
||||
|
||||
85
codeup/src/model/ListRepositoryWebhookRequest.cc
Normal file
85
codeup/src/model/ListRepositoryWebhookRequest.cc
Normal file
@@ -0,0 +1,85 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/codeup/model/ListRepositoryWebhookRequest.h>
|
||||
|
||||
using AlibabaCloud::Codeup::Model::ListRepositoryWebhookRequest;
|
||||
|
||||
ListRepositoryWebhookRequest::ListRepositoryWebhookRequest() :
|
||||
RoaServiceRequest("codeup", "2020-04-14")
|
||||
{
|
||||
setResourcePath("/api/v3/projects/[ProjectId]/hooks");
|
||||
setMethod(HttpRequest::Method::Get);
|
||||
}
|
||||
|
||||
ListRepositoryWebhookRequest::~ListRepositoryWebhookRequest()
|
||||
{}
|
||||
|
||||
std::string ListRepositoryWebhookRequest::getOrganizationId()const
|
||||
{
|
||||
return organizationId_;
|
||||
}
|
||||
|
||||
void ListRepositoryWebhookRequest::setOrganizationId(const std::string& organizationId)
|
||||
{
|
||||
organizationId_ = organizationId;
|
||||
setParameter("OrganizationId", organizationId);
|
||||
}
|
||||
|
||||
long ListRepositoryWebhookRequest::getPageSize()const
|
||||
{
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
void ListRepositoryWebhookRequest::setPageSize(long pageSize)
|
||||
{
|
||||
pageSize_ = pageSize;
|
||||
setParameter("PageSize", std::to_string(pageSize));
|
||||
}
|
||||
|
||||
std::string ListRepositoryWebhookRequest::getAccessToken()const
|
||||
{
|
||||
return accessToken_;
|
||||
}
|
||||
|
||||
void ListRepositoryWebhookRequest::setAccessToken(const std::string& accessToken)
|
||||
{
|
||||
accessToken_ = accessToken;
|
||||
setParameter("AccessToken", accessToken);
|
||||
}
|
||||
|
||||
long ListRepositoryWebhookRequest::getPage()const
|
||||
{
|
||||
return page_;
|
||||
}
|
||||
|
||||
void ListRepositoryWebhookRequest::setPage(long page)
|
||||
{
|
||||
page_ = page;
|
||||
setParameter("Page", std::to_string(page));
|
||||
}
|
||||
|
||||
long ListRepositoryWebhookRequest::getProjectId()const
|
||||
{
|
||||
return projectId_;
|
||||
}
|
||||
|
||||
void ListRepositoryWebhookRequest::setProjectId(long projectId)
|
||||
{
|
||||
projectId_ = projectId;
|
||||
setParameter("ProjectId", std::to_string(projectId));
|
||||
}
|
||||
|
||||
107
codeup/src/model/ListRepositoryWebhookResult.cc
Normal file
107
codeup/src/model/ListRepositoryWebhookResult.cc
Normal file
@@ -0,0 +1,107 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/codeup/model/ListRepositoryWebhookResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Codeup;
|
||||
using namespace AlibabaCloud::Codeup::Model;
|
||||
|
||||
ListRepositoryWebhookResult::ListRepositoryWebhookResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
ListRepositoryWebhookResult::ListRepositoryWebhookResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
ListRepositoryWebhookResult::~ListRepositoryWebhookResult()
|
||||
{}
|
||||
|
||||
void ListRepositoryWebhookResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allResultNode = value["Result"]["ResultItem"];
|
||||
for (auto valueResultResultItem : allResultNode)
|
||||
{
|
||||
ResultItem resultObject;
|
||||
if(!valueResultResultItem["Id"].isNull())
|
||||
resultObject.id = std::stol(valueResultResultItem["Id"].asString());
|
||||
if(!valueResultResultItem["Url"].isNull())
|
||||
resultObject.url = valueResultResultItem["Url"].asString();
|
||||
if(!valueResultResultItem["CreatedAt"].isNull())
|
||||
resultObject.createdAt = valueResultResultItem["CreatedAt"].asString();
|
||||
if(!valueResultResultItem["ProjectId"].isNull())
|
||||
resultObject.projectId = std::stol(valueResultResultItem["ProjectId"].asString());
|
||||
if(!valueResultResultItem["PushEvents"].isNull())
|
||||
resultObject.pushEvents = valueResultResultItem["PushEvents"].asString() == "true";
|
||||
if(!valueResultResultItem["MergeRequestsEvents"].isNull())
|
||||
resultObject.mergeRequestsEvents = valueResultResultItem["MergeRequestsEvents"].asString() == "true";
|
||||
if(!valueResultResultItem["TagPushEvents"].isNull())
|
||||
resultObject.tagPushEvents = valueResultResultItem["TagPushEvents"].asString() == "true";
|
||||
if(!valueResultResultItem["NoteEvents"].isNull())
|
||||
resultObject.noteEvents = valueResultResultItem["NoteEvents"].asString() == "true";
|
||||
if(!valueResultResultItem["EnableSslVerification"].isNull())
|
||||
resultObject.enableSslVerification = valueResultResultItem["EnableSslVerification"].asString() == "true";
|
||||
if(!valueResultResultItem["LastTestResult"].isNull())
|
||||
resultObject.lastTestResult = valueResultResultItem["LastTestResult"].asString();
|
||||
if(!valueResultResultItem["Description"].isNull())
|
||||
resultObject.description = valueResultResultItem["Description"].asString();
|
||||
if(!valueResultResultItem["SecretToken"].isNull())
|
||||
resultObject.secretToken = valueResultResultItem["SecretToken"].asString();
|
||||
result_.push_back(resultObject);
|
||||
}
|
||||
if(!value["ErrorCode"].isNull())
|
||||
errorCode_ = value["ErrorCode"].asString();
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
if(!value["ErrorMessage"].isNull())
|
||||
errorMessage_ = value["ErrorMessage"].asString();
|
||||
if(!value["Total"].isNull())
|
||||
total_ = std::stol(value["Total"].asString());
|
||||
|
||||
}
|
||||
|
||||
long ListRepositoryWebhookResult::getTotal()const
|
||||
{
|
||||
return total_;
|
||||
}
|
||||
|
||||
std::string ListRepositoryWebhookResult::getErrorCode()const
|
||||
{
|
||||
return errorCode_;
|
||||
}
|
||||
|
||||
std::string ListRepositoryWebhookResult::getErrorMessage()const
|
||||
{
|
||||
return errorMessage_;
|
||||
}
|
||||
|
||||
bool ListRepositoryWebhookResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
std::vector<ListRepositoryWebhookResult::ResultItem> ListRepositoryWebhookResult::getResult()const
|
||||
{
|
||||
return result_;
|
||||
}
|
||||
|
||||
@@ -50,13 +50,13 @@ namespace AlibabaCloud
|
||||
long relatedFlowId;
|
||||
long cycTime;
|
||||
long beginWaitTimeTime;
|
||||
int dagId;
|
||||
long dagId;
|
||||
long bizdate;
|
||||
long beginRunningTime;
|
||||
bool repeatability;
|
||||
long finishTime;
|
||||
std::string dqcDescription;
|
||||
int nodeId;
|
||||
long nodeId;
|
||||
long beginWaitResTime;
|
||||
std::string errorMessage;
|
||||
long repeatInterval;
|
||||
|
||||
@@ -32,7 +32,7 @@ namespace AlibabaCloud
|
||||
class ALIBABACLOUD_DATAWORKS_PUBLIC_EXPORT ListQualityResultsByEntityResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct QualityResults
|
||||
struct Data
|
||||
{
|
||||
struct RuleChecksItem
|
||||
{
|
||||
@@ -40,14 +40,14 @@ namespace AlibabaCloud
|
||||
{
|
||||
int singleCheckResult;
|
||||
float value;
|
||||
long bizDate;
|
||||
std::string bizDate;
|
||||
std::string discreteProperty;
|
||||
float threshold;
|
||||
};
|
||||
struct SampleValueItem
|
||||
{
|
||||
float value;
|
||||
long bizDate;
|
||||
std::string bizDate;
|
||||
std::string discreteProperty;
|
||||
};
|
||||
std::string op;
|
||||
@@ -102,12 +102,20 @@ namespace AlibabaCloud
|
||||
ListQualityResultsByEntityResult();
|
||||
explicit ListQualityResultsByEntityResult(const std::string &payload);
|
||||
~ListQualityResultsByEntityResult();
|
||||
QualityResults getQualityResults()const;
|
||||
int getHttpStatusCode()const;
|
||||
Data getData()const;
|
||||
std::string getErrorCode()const;
|
||||
std::string getErrorMessage()const;
|
||||
bool getSuccess()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
QualityResults qualityResults_;
|
||||
int httpStatusCode_;
|
||||
Data data_;
|
||||
std::string errorCode_;
|
||||
std::string errorMessage_;
|
||||
bool success_;
|
||||
|
||||
};
|
||||
}
|
||||
|
||||
@@ -32,7 +32,7 @@ namespace AlibabaCloud
|
||||
class ALIBABACLOUD_DATAWORKS_PUBLIC_EXPORT ListQualityResultsByRuleResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct QualityResults
|
||||
struct Data
|
||||
{
|
||||
struct RuleChecksItem
|
||||
{
|
||||
@@ -102,12 +102,20 @@ namespace AlibabaCloud
|
||||
ListQualityResultsByRuleResult();
|
||||
explicit ListQualityResultsByRuleResult(const std::string &payload);
|
||||
~ListQualityResultsByRuleResult();
|
||||
QualityResults getQualityResults()const;
|
||||
int getHttpStatusCode()const;
|
||||
Data getData()const;
|
||||
std::string getErrorCode()const;
|
||||
std::string getErrorMessage()const;
|
||||
bool getSuccess()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
QualityResults qualityResults_;
|
||||
int httpStatusCode_;
|
||||
Data data_;
|
||||
std::string errorCode_;
|
||||
std::string errorMessage_;
|
||||
bool success_;
|
||||
|
||||
};
|
||||
}
|
||||
|
||||
@@ -51,11 +51,11 @@ void ListInstancesResult::parse(const std::string &payload)
|
||||
{
|
||||
Data::Instance instanceObject;
|
||||
if(!dataNodeInstancesInstance["NodeId"].isNull())
|
||||
instanceObject.nodeId = std::stoi(dataNodeInstancesInstance["NodeId"].asString());
|
||||
instanceObject.nodeId = std::stol(dataNodeInstancesInstance["NodeId"].asString());
|
||||
if(!dataNodeInstancesInstance["InstanceId"].isNull())
|
||||
instanceObject.instanceId = std::stol(dataNodeInstancesInstance["InstanceId"].asString());
|
||||
if(!dataNodeInstancesInstance["DagId"].isNull())
|
||||
instanceObject.dagId = std::stoi(dataNodeInstancesInstance["DagId"].asString());
|
||||
instanceObject.dagId = std::stol(dataNodeInstancesInstance["DagId"].asString());
|
||||
if(!dataNodeInstancesInstance["DagType"].isNull())
|
||||
instanceObject.dagType = dataNodeInstancesInstance["DagType"].asString();
|
||||
if(!dataNodeInstancesInstance["Status"].isNull())
|
||||
|
||||
@@ -39,130 +39,158 @@ void ListQualityResultsByEntityResult::parse(const std::string &payload)
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto qualityResultsNode = value["QualityResults"];
|
||||
if(!qualityResultsNode["TotalCount"].isNull())
|
||||
qualityResults_.totalCount = std::stol(qualityResultsNode["TotalCount"].asString());
|
||||
if(!qualityResultsNode["PageNumber"].isNull())
|
||||
qualityResults_.pageNumber = std::stoi(qualityResultsNode["PageNumber"].asString());
|
||||
if(!qualityResultsNode["PageSize"].isNull())
|
||||
qualityResults_.pageSize = std::stoi(qualityResultsNode["PageSize"].asString());
|
||||
auto allRuleChecksNode = qualityResultsNode["RuleChecks"]["RuleChecksItem"];
|
||||
for (auto qualityResultsNodeRuleChecksRuleChecksItem : allRuleChecksNode)
|
||||
auto dataNode = value["Data"];
|
||||
if(!dataNode["TotalCount"].isNull())
|
||||
data_.totalCount = std::stol(dataNode["TotalCount"].asString());
|
||||
if(!dataNode["PageNumber"].isNull())
|
||||
data_.pageNumber = std::stoi(dataNode["PageNumber"].asString());
|
||||
if(!dataNode["PageSize"].isNull())
|
||||
data_.pageSize = std::stoi(dataNode["PageSize"].asString());
|
||||
auto allRuleChecksNode = dataNode["RuleChecks"]["RuleChecksItem"];
|
||||
for (auto dataNodeRuleChecksRuleChecksItem : allRuleChecksNode)
|
||||
{
|
||||
QualityResults::RuleChecksItem ruleChecksItemObject;
|
||||
if(!qualityResultsNodeRuleChecksRuleChecksItem["Id"].isNull())
|
||||
ruleChecksItemObject.id = std::stoi(qualityResultsNodeRuleChecksRuleChecksItem["Id"].asString());
|
||||
if(!qualityResultsNodeRuleChecksRuleChecksItem["TaskId"].isNull())
|
||||
ruleChecksItemObject.taskId = qualityResultsNodeRuleChecksRuleChecksItem["TaskId"].asString();
|
||||
if(!qualityResultsNodeRuleChecksRuleChecksItem["EntityId"].isNull())
|
||||
ruleChecksItemObject.entityId = std::stoi(qualityResultsNodeRuleChecksRuleChecksItem["EntityId"].asString());
|
||||
if(!qualityResultsNodeRuleChecksRuleChecksItem["RuleId"].isNull())
|
||||
ruleChecksItemObject.ruleId = std::stoi(qualityResultsNodeRuleChecksRuleChecksItem["RuleId"].asString());
|
||||
if(!qualityResultsNodeRuleChecksRuleChecksItem["Property"].isNull())
|
||||
ruleChecksItemObject.property = qualityResultsNodeRuleChecksRuleChecksItem["Property"].asString();
|
||||
if(!qualityResultsNodeRuleChecksRuleChecksItem["BizDate"].isNull())
|
||||
ruleChecksItemObject.bizDate = std::stol(qualityResultsNodeRuleChecksRuleChecksItem["BizDate"].asString());
|
||||
if(!qualityResultsNodeRuleChecksRuleChecksItem["DateType"].isNull())
|
||||
ruleChecksItemObject.dateType = qualityResultsNodeRuleChecksRuleChecksItem["DateType"].asString();
|
||||
if(!qualityResultsNodeRuleChecksRuleChecksItem["ActualExpression"].isNull())
|
||||
ruleChecksItemObject.actualExpression = qualityResultsNodeRuleChecksRuleChecksItem["ActualExpression"].asString();
|
||||
if(!qualityResultsNodeRuleChecksRuleChecksItem["MatchExpression"].isNull())
|
||||
ruleChecksItemObject.matchExpression = qualityResultsNodeRuleChecksRuleChecksItem["MatchExpression"].asString();
|
||||
if(!qualityResultsNodeRuleChecksRuleChecksItem["BlockType"].isNull())
|
||||
ruleChecksItemObject.blockType = std::stoi(qualityResultsNodeRuleChecksRuleChecksItem["BlockType"].asString());
|
||||
if(!qualityResultsNodeRuleChecksRuleChecksItem["CheckResult"].isNull())
|
||||
ruleChecksItemObject.checkResult = std::stoi(qualityResultsNodeRuleChecksRuleChecksItem["CheckResult"].asString());
|
||||
if(!qualityResultsNodeRuleChecksRuleChecksItem["CheckResultStatus"].isNull())
|
||||
ruleChecksItemObject.checkResultStatus = std::stoi(qualityResultsNodeRuleChecksRuleChecksItem["CheckResultStatus"].asString());
|
||||
if(!qualityResultsNodeRuleChecksRuleChecksItem["MethodName"].isNull())
|
||||
ruleChecksItemObject.methodName = qualityResultsNodeRuleChecksRuleChecksItem["MethodName"].asString();
|
||||
if(!qualityResultsNodeRuleChecksRuleChecksItem["Comment"].isNull())
|
||||
ruleChecksItemObject.comment = qualityResultsNodeRuleChecksRuleChecksItem["Comment"].asString();
|
||||
if(!qualityResultsNodeRuleChecksRuleChecksItem["WhereCondition"].isNull())
|
||||
ruleChecksItemObject.whereCondition = qualityResultsNodeRuleChecksRuleChecksItem["WhereCondition"].asString();
|
||||
if(!qualityResultsNodeRuleChecksRuleChecksItem["BeginTime"].isNull())
|
||||
ruleChecksItemObject.beginTime = std::stol(qualityResultsNodeRuleChecksRuleChecksItem["BeginTime"].asString());
|
||||
if(!qualityResultsNodeRuleChecksRuleChecksItem["EndTime"].isNull())
|
||||
ruleChecksItemObject.endTime = std::stol(qualityResultsNodeRuleChecksRuleChecksItem["EndTime"].asString());
|
||||
if(!qualityResultsNodeRuleChecksRuleChecksItem["TimeCost"].isNull())
|
||||
ruleChecksItemObject.timeCost = qualityResultsNodeRuleChecksRuleChecksItem["TimeCost"].asString();
|
||||
if(!qualityResultsNodeRuleChecksRuleChecksItem["ExternalType"].isNull())
|
||||
ruleChecksItemObject.externalType = qualityResultsNodeRuleChecksRuleChecksItem["ExternalType"].asString();
|
||||
if(!qualityResultsNodeRuleChecksRuleChecksItem["ExternalId"].isNull())
|
||||
ruleChecksItemObject.externalId = qualityResultsNodeRuleChecksRuleChecksItem["ExternalId"].asString();
|
||||
if(!qualityResultsNodeRuleChecksRuleChecksItem["DiscreteCheck"].isNull())
|
||||
ruleChecksItemObject.discreteCheck = qualityResultsNodeRuleChecksRuleChecksItem["DiscreteCheck"].asString() == "true";
|
||||
if(!qualityResultsNodeRuleChecksRuleChecksItem["FixedCheck"].isNull())
|
||||
ruleChecksItemObject.fixedCheck = qualityResultsNodeRuleChecksRuleChecksItem["FixedCheck"].asString() == "true";
|
||||
if(!qualityResultsNodeRuleChecksRuleChecksItem["Trend"].isNull())
|
||||
ruleChecksItemObject.trend = qualityResultsNodeRuleChecksRuleChecksItem["Trend"].asString();
|
||||
if(!qualityResultsNodeRuleChecksRuleChecksItem["WarningThreshold"].isNull())
|
||||
ruleChecksItemObject.warningThreshold = std::stof(qualityResultsNodeRuleChecksRuleChecksItem["WarningThreshold"].asString());
|
||||
if(!qualityResultsNodeRuleChecksRuleChecksItem["CriticalThreshold"].isNull())
|
||||
ruleChecksItemObject.criticalThreshold = std::stof(qualityResultsNodeRuleChecksRuleChecksItem["CriticalThreshold"].asString());
|
||||
if(!qualityResultsNodeRuleChecksRuleChecksItem["ExpectValue"].isNull())
|
||||
ruleChecksItemObject.expectValue = std::stof(qualityResultsNodeRuleChecksRuleChecksItem["ExpectValue"].asString());
|
||||
if(!qualityResultsNodeRuleChecksRuleChecksItem["Op"].isNull())
|
||||
ruleChecksItemObject.op = qualityResultsNodeRuleChecksRuleChecksItem["Op"].asString();
|
||||
if(!qualityResultsNodeRuleChecksRuleChecksItem["ProjectName"].isNull())
|
||||
ruleChecksItemObject.projectName = qualityResultsNodeRuleChecksRuleChecksItem["ProjectName"].asString();
|
||||
if(!qualityResultsNodeRuleChecksRuleChecksItem["TableName"].isNull())
|
||||
ruleChecksItemObject.tableName = qualityResultsNodeRuleChecksRuleChecksItem["TableName"].asString();
|
||||
if(!qualityResultsNodeRuleChecksRuleChecksItem["TemplateId"].isNull())
|
||||
ruleChecksItemObject.templateId = std::stoi(qualityResultsNodeRuleChecksRuleChecksItem["TemplateId"].asString());
|
||||
if(!qualityResultsNodeRuleChecksRuleChecksItem["TemplateName"].isNull())
|
||||
ruleChecksItemObject.templateName = qualityResultsNodeRuleChecksRuleChecksItem["TemplateName"].asString();
|
||||
if(!qualityResultsNodeRuleChecksRuleChecksItem["ResultString"].isNull())
|
||||
ruleChecksItemObject.resultString = qualityResultsNodeRuleChecksRuleChecksItem["ResultString"].asString();
|
||||
if(!qualityResultsNodeRuleChecksRuleChecksItem["CheckerId"].isNull())
|
||||
ruleChecksItemObject.checkerId = std::stoi(qualityResultsNodeRuleChecksRuleChecksItem["CheckerId"].asString());
|
||||
if(!qualityResultsNodeRuleChecksRuleChecksItem["CheckerType"].isNull())
|
||||
ruleChecksItemObject.checkerType = std::stoi(qualityResultsNodeRuleChecksRuleChecksItem["CheckerType"].asString());
|
||||
if(!qualityResultsNodeRuleChecksRuleChecksItem["RuleName"].isNull())
|
||||
ruleChecksItemObject.ruleName = qualityResultsNodeRuleChecksRuleChecksItem["RuleName"].asString();
|
||||
if(!qualityResultsNodeRuleChecksRuleChecksItem["IsPrediction"].isNull())
|
||||
ruleChecksItemObject.isPrediction = qualityResultsNodeRuleChecksRuleChecksItem["IsPrediction"].asString() == "true";
|
||||
if(!qualityResultsNodeRuleChecksRuleChecksItem["UpperValue"].isNull())
|
||||
ruleChecksItemObject.upperValue = std::stof(qualityResultsNodeRuleChecksRuleChecksItem["UpperValue"].asString());
|
||||
if(!qualityResultsNodeRuleChecksRuleChecksItem["LowerValue"].isNull())
|
||||
ruleChecksItemObject.lowerValue = std::stof(qualityResultsNodeRuleChecksRuleChecksItem["LowerValue"].asString());
|
||||
if(!qualityResultsNodeRuleChecksRuleChecksItem["CheckerName"].isNull())
|
||||
ruleChecksItemObject.checkerName = qualityResultsNodeRuleChecksRuleChecksItem["CheckerName"].asString();
|
||||
auto allReferenceValueNode = qualityResultsNodeRuleChecksRuleChecksItem["ReferenceValue"]["ReferenceValueItem"];
|
||||
for (auto qualityResultsNodeRuleChecksRuleChecksItemReferenceValueReferenceValueItem : allReferenceValueNode)
|
||||
Data::RuleChecksItem ruleChecksItemObject;
|
||||
if(!dataNodeRuleChecksRuleChecksItem["Id"].isNull())
|
||||
ruleChecksItemObject.id = std::stoi(dataNodeRuleChecksRuleChecksItem["Id"].asString());
|
||||
if(!dataNodeRuleChecksRuleChecksItem["TaskId"].isNull())
|
||||
ruleChecksItemObject.taskId = dataNodeRuleChecksRuleChecksItem["TaskId"].asString();
|
||||
if(!dataNodeRuleChecksRuleChecksItem["EntityId"].isNull())
|
||||
ruleChecksItemObject.entityId = std::stoi(dataNodeRuleChecksRuleChecksItem["EntityId"].asString());
|
||||
if(!dataNodeRuleChecksRuleChecksItem["RuleId"].isNull())
|
||||
ruleChecksItemObject.ruleId = std::stoi(dataNodeRuleChecksRuleChecksItem["RuleId"].asString());
|
||||
if(!dataNodeRuleChecksRuleChecksItem["Property"].isNull())
|
||||
ruleChecksItemObject.property = dataNodeRuleChecksRuleChecksItem["Property"].asString();
|
||||
if(!dataNodeRuleChecksRuleChecksItem["BizDate"].isNull())
|
||||
ruleChecksItemObject.bizDate = std::stol(dataNodeRuleChecksRuleChecksItem["BizDate"].asString());
|
||||
if(!dataNodeRuleChecksRuleChecksItem["DateType"].isNull())
|
||||
ruleChecksItemObject.dateType = dataNodeRuleChecksRuleChecksItem["DateType"].asString();
|
||||
if(!dataNodeRuleChecksRuleChecksItem["ActualExpression"].isNull())
|
||||
ruleChecksItemObject.actualExpression = dataNodeRuleChecksRuleChecksItem["ActualExpression"].asString();
|
||||
if(!dataNodeRuleChecksRuleChecksItem["MatchExpression"].isNull())
|
||||
ruleChecksItemObject.matchExpression = dataNodeRuleChecksRuleChecksItem["MatchExpression"].asString();
|
||||
if(!dataNodeRuleChecksRuleChecksItem["BlockType"].isNull())
|
||||
ruleChecksItemObject.blockType = std::stoi(dataNodeRuleChecksRuleChecksItem["BlockType"].asString());
|
||||
if(!dataNodeRuleChecksRuleChecksItem["CheckResult"].isNull())
|
||||
ruleChecksItemObject.checkResult = std::stoi(dataNodeRuleChecksRuleChecksItem["CheckResult"].asString());
|
||||
if(!dataNodeRuleChecksRuleChecksItem["CheckResultStatus"].isNull())
|
||||
ruleChecksItemObject.checkResultStatus = std::stoi(dataNodeRuleChecksRuleChecksItem["CheckResultStatus"].asString());
|
||||
if(!dataNodeRuleChecksRuleChecksItem["MethodName"].isNull())
|
||||
ruleChecksItemObject.methodName = dataNodeRuleChecksRuleChecksItem["MethodName"].asString();
|
||||
if(!dataNodeRuleChecksRuleChecksItem["Comment"].isNull())
|
||||
ruleChecksItemObject.comment = dataNodeRuleChecksRuleChecksItem["Comment"].asString();
|
||||
if(!dataNodeRuleChecksRuleChecksItem["WhereCondition"].isNull())
|
||||
ruleChecksItemObject.whereCondition = dataNodeRuleChecksRuleChecksItem["WhereCondition"].asString();
|
||||
if(!dataNodeRuleChecksRuleChecksItem["BeginTime"].isNull())
|
||||
ruleChecksItemObject.beginTime = std::stol(dataNodeRuleChecksRuleChecksItem["BeginTime"].asString());
|
||||
if(!dataNodeRuleChecksRuleChecksItem["EndTime"].isNull())
|
||||
ruleChecksItemObject.endTime = std::stol(dataNodeRuleChecksRuleChecksItem["EndTime"].asString());
|
||||
if(!dataNodeRuleChecksRuleChecksItem["TimeCost"].isNull())
|
||||
ruleChecksItemObject.timeCost = dataNodeRuleChecksRuleChecksItem["TimeCost"].asString();
|
||||
if(!dataNodeRuleChecksRuleChecksItem["ExternalType"].isNull())
|
||||
ruleChecksItemObject.externalType = dataNodeRuleChecksRuleChecksItem["ExternalType"].asString();
|
||||
if(!dataNodeRuleChecksRuleChecksItem["ExternalId"].isNull())
|
||||
ruleChecksItemObject.externalId = dataNodeRuleChecksRuleChecksItem["ExternalId"].asString();
|
||||
if(!dataNodeRuleChecksRuleChecksItem["DiscreteCheck"].isNull())
|
||||
ruleChecksItemObject.discreteCheck = dataNodeRuleChecksRuleChecksItem["DiscreteCheck"].asString() == "true";
|
||||
if(!dataNodeRuleChecksRuleChecksItem["FixedCheck"].isNull())
|
||||
ruleChecksItemObject.fixedCheck = dataNodeRuleChecksRuleChecksItem["FixedCheck"].asString() == "true";
|
||||
if(!dataNodeRuleChecksRuleChecksItem["Trend"].isNull())
|
||||
ruleChecksItemObject.trend = dataNodeRuleChecksRuleChecksItem["Trend"].asString();
|
||||
if(!dataNodeRuleChecksRuleChecksItem["WarningThreshold"].isNull())
|
||||
ruleChecksItemObject.warningThreshold = std::stof(dataNodeRuleChecksRuleChecksItem["WarningThreshold"].asString());
|
||||
if(!dataNodeRuleChecksRuleChecksItem["CriticalThreshold"].isNull())
|
||||
ruleChecksItemObject.criticalThreshold = std::stof(dataNodeRuleChecksRuleChecksItem["CriticalThreshold"].asString());
|
||||
if(!dataNodeRuleChecksRuleChecksItem["ExpectValue"].isNull())
|
||||
ruleChecksItemObject.expectValue = std::stof(dataNodeRuleChecksRuleChecksItem["ExpectValue"].asString());
|
||||
if(!dataNodeRuleChecksRuleChecksItem["Op"].isNull())
|
||||
ruleChecksItemObject.op = dataNodeRuleChecksRuleChecksItem["Op"].asString();
|
||||
if(!dataNodeRuleChecksRuleChecksItem["ProjectName"].isNull())
|
||||
ruleChecksItemObject.projectName = dataNodeRuleChecksRuleChecksItem["ProjectName"].asString();
|
||||
if(!dataNodeRuleChecksRuleChecksItem["TableName"].isNull())
|
||||
ruleChecksItemObject.tableName = dataNodeRuleChecksRuleChecksItem["TableName"].asString();
|
||||
if(!dataNodeRuleChecksRuleChecksItem["TemplateId"].isNull())
|
||||
ruleChecksItemObject.templateId = std::stoi(dataNodeRuleChecksRuleChecksItem["TemplateId"].asString());
|
||||
if(!dataNodeRuleChecksRuleChecksItem["TemplateName"].isNull())
|
||||
ruleChecksItemObject.templateName = dataNodeRuleChecksRuleChecksItem["TemplateName"].asString();
|
||||
if(!dataNodeRuleChecksRuleChecksItem["ResultString"].isNull())
|
||||
ruleChecksItemObject.resultString = dataNodeRuleChecksRuleChecksItem["ResultString"].asString();
|
||||
if(!dataNodeRuleChecksRuleChecksItem["CheckerId"].isNull())
|
||||
ruleChecksItemObject.checkerId = std::stoi(dataNodeRuleChecksRuleChecksItem["CheckerId"].asString());
|
||||
if(!dataNodeRuleChecksRuleChecksItem["CheckerType"].isNull())
|
||||
ruleChecksItemObject.checkerType = std::stoi(dataNodeRuleChecksRuleChecksItem["CheckerType"].asString());
|
||||
if(!dataNodeRuleChecksRuleChecksItem["RuleName"].isNull())
|
||||
ruleChecksItemObject.ruleName = dataNodeRuleChecksRuleChecksItem["RuleName"].asString();
|
||||
if(!dataNodeRuleChecksRuleChecksItem["IsPrediction"].isNull())
|
||||
ruleChecksItemObject.isPrediction = dataNodeRuleChecksRuleChecksItem["IsPrediction"].asString() == "true";
|
||||
if(!dataNodeRuleChecksRuleChecksItem["UpperValue"].isNull())
|
||||
ruleChecksItemObject.upperValue = std::stof(dataNodeRuleChecksRuleChecksItem["UpperValue"].asString());
|
||||
if(!dataNodeRuleChecksRuleChecksItem["LowerValue"].isNull())
|
||||
ruleChecksItemObject.lowerValue = std::stof(dataNodeRuleChecksRuleChecksItem["LowerValue"].asString());
|
||||
if(!dataNodeRuleChecksRuleChecksItem["CheckerName"].isNull())
|
||||
ruleChecksItemObject.checkerName = dataNodeRuleChecksRuleChecksItem["CheckerName"].asString();
|
||||
auto allReferenceValueNode = dataNodeRuleChecksRuleChecksItem["ReferenceValue"]["ReferenceValueItem"];
|
||||
for (auto dataNodeRuleChecksRuleChecksItemReferenceValueReferenceValueItem : allReferenceValueNode)
|
||||
{
|
||||
QualityResults::RuleChecksItem::ReferenceValueItem referenceValueObject;
|
||||
if(!qualityResultsNodeRuleChecksRuleChecksItemReferenceValueReferenceValueItem["BizDate"].isNull())
|
||||
referenceValueObject.bizDate = std::stol(qualityResultsNodeRuleChecksRuleChecksItemReferenceValueReferenceValueItem["BizDate"].asString());
|
||||
if(!qualityResultsNodeRuleChecksRuleChecksItemReferenceValueReferenceValueItem["DiscreteProperty"].isNull())
|
||||
referenceValueObject.discreteProperty = qualityResultsNodeRuleChecksRuleChecksItemReferenceValueReferenceValueItem["DiscreteProperty"].asString();
|
||||
if(!qualityResultsNodeRuleChecksRuleChecksItemReferenceValueReferenceValueItem["Value"].isNull())
|
||||
referenceValueObject.value = std::stof(qualityResultsNodeRuleChecksRuleChecksItemReferenceValueReferenceValueItem["Value"].asString());
|
||||
if(!qualityResultsNodeRuleChecksRuleChecksItemReferenceValueReferenceValueItem["Threshold"].isNull())
|
||||
referenceValueObject.threshold = std::stof(qualityResultsNodeRuleChecksRuleChecksItemReferenceValueReferenceValueItem["Threshold"].asString());
|
||||
if(!qualityResultsNodeRuleChecksRuleChecksItemReferenceValueReferenceValueItem["SingleCheckResult"].isNull())
|
||||
referenceValueObject.singleCheckResult = std::stoi(qualityResultsNodeRuleChecksRuleChecksItemReferenceValueReferenceValueItem["SingleCheckResult"].asString());
|
||||
Data::RuleChecksItem::ReferenceValueItem referenceValueObject;
|
||||
if(!dataNodeRuleChecksRuleChecksItemReferenceValueReferenceValueItem["BizDate"].isNull())
|
||||
referenceValueObject.bizDate = dataNodeRuleChecksRuleChecksItemReferenceValueReferenceValueItem["BizDate"].asString();
|
||||
if(!dataNodeRuleChecksRuleChecksItemReferenceValueReferenceValueItem["DiscreteProperty"].isNull())
|
||||
referenceValueObject.discreteProperty = dataNodeRuleChecksRuleChecksItemReferenceValueReferenceValueItem["DiscreteProperty"].asString();
|
||||
if(!dataNodeRuleChecksRuleChecksItemReferenceValueReferenceValueItem["Value"].isNull())
|
||||
referenceValueObject.value = std::stof(dataNodeRuleChecksRuleChecksItemReferenceValueReferenceValueItem["Value"].asString());
|
||||
if(!dataNodeRuleChecksRuleChecksItemReferenceValueReferenceValueItem["Threshold"].isNull())
|
||||
referenceValueObject.threshold = std::stof(dataNodeRuleChecksRuleChecksItemReferenceValueReferenceValueItem["Threshold"].asString());
|
||||
if(!dataNodeRuleChecksRuleChecksItemReferenceValueReferenceValueItem["SingleCheckResult"].isNull())
|
||||
referenceValueObject.singleCheckResult = std::stoi(dataNodeRuleChecksRuleChecksItemReferenceValueReferenceValueItem["SingleCheckResult"].asString());
|
||||
ruleChecksItemObject.referenceValue.push_back(referenceValueObject);
|
||||
}
|
||||
auto allSampleValueNode = qualityResultsNodeRuleChecksRuleChecksItem["SampleValue"]["SampleValueItem"];
|
||||
for (auto qualityResultsNodeRuleChecksRuleChecksItemSampleValueSampleValueItem : allSampleValueNode)
|
||||
auto allSampleValueNode = dataNodeRuleChecksRuleChecksItem["SampleValue"]["SampleValueItem"];
|
||||
for (auto dataNodeRuleChecksRuleChecksItemSampleValueSampleValueItem : allSampleValueNode)
|
||||
{
|
||||
QualityResults::RuleChecksItem::SampleValueItem sampleValueObject;
|
||||
if(!qualityResultsNodeRuleChecksRuleChecksItemSampleValueSampleValueItem["BizDate"].isNull())
|
||||
sampleValueObject.bizDate = std::stol(qualityResultsNodeRuleChecksRuleChecksItemSampleValueSampleValueItem["BizDate"].asString());
|
||||
if(!qualityResultsNodeRuleChecksRuleChecksItemSampleValueSampleValueItem["DiscreteProperty"].isNull())
|
||||
sampleValueObject.discreteProperty = qualityResultsNodeRuleChecksRuleChecksItemSampleValueSampleValueItem["DiscreteProperty"].asString();
|
||||
if(!qualityResultsNodeRuleChecksRuleChecksItemSampleValueSampleValueItem["Value"].isNull())
|
||||
sampleValueObject.value = std::stof(qualityResultsNodeRuleChecksRuleChecksItemSampleValueSampleValueItem["Value"].asString());
|
||||
Data::RuleChecksItem::SampleValueItem sampleValueObject;
|
||||
if(!dataNodeRuleChecksRuleChecksItemSampleValueSampleValueItem["BizDate"].isNull())
|
||||
sampleValueObject.bizDate = dataNodeRuleChecksRuleChecksItemSampleValueSampleValueItem["BizDate"].asString();
|
||||
if(!dataNodeRuleChecksRuleChecksItemSampleValueSampleValueItem["DiscreteProperty"].isNull())
|
||||
sampleValueObject.discreteProperty = dataNodeRuleChecksRuleChecksItemSampleValueSampleValueItem["DiscreteProperty"].asString();
|
||||
if(!dataNodeRuleChecksRuleChecksItemSampleValueSampleValueItem["Value"].isNull())
|
||||
sampleValueObject.value = std::stof(dataNodeRuleChecksRuleChecksItemSampleValueSampleValueItem["Value"].asString());
|
||||
ruleChecksItemObject.sampleValue.push_back(sampleValueObject);
|
||||
}
|
||||
qualityResults_.ruleChecks.push_back(ruleChecksItemObject);
|
||||
data_.ruleChecks.push_back(ruleChecksItemObject);
|
||||
}
|
||||
if(!value["HttpStatusCode"].isNull())
|
||||
httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString());
|
||||
if(!value["ErrorMessage"].isNull())
|
||||
errorMessage_ = value["ErrorMessage"].asString();
|
||||
if(!value["ErrorCode"].isNull())
|
||||
errorCode_ = value["ErrorCode"].asString();
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
|
||||
}
|
||||
|
||||
ListQualityResultsByEntityResult::QualityResults ListQualityResultsByEntityResult::getQualityResults()const
|
||||
int ListQualityResultsByEntityResult::getHttpStatusCode()const
|
||||
{
|
||||
return qualityResults_;
|
||||
return httpStatusCode_;
|
||||
}
|
||||
|
||||
ListQualityResultsByEntityResult::Data ListQualityResultsByEntityResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
std::string ListQualityResultsByEntityResult::getErrorCode()const
|
||||
{
|
||||
return errorCode_;
|
||||
}
|
||||
|
||||
std::string ListQualityResultsByEntityResult::getErrorMessage()const
|
||||
{
|
||||
return errorMessage_;
|
||||
}
|
||||
|
||||
bool ListQualityResultsByEntityResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
|
||||
@@ -39,130 +39,158 @@ void ListQualityResultsByRuleResult::parse(const std::string &payload)
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto qualityResultsNode = value["QualityResults"];
|
||||
if(!qualityResultsNode["TotalCount"].isNull())
|
||||
qualityResults_.totalCount = std::stol(qualityResultsNode["TotalCount"].asString());
|
||||
if(!qualityResultsNode["PageNumber"].isNull())
|
||||
qualityResults_.pageNumber = std::stoi(qualityResultsNode["PageNumber"].asString());
|
||||
if(!qualityResultsNode["PageSize"].isNull())
|
||||
qualityResults_.pageSize = std::stoi(qualityResultsNode["PageSize"].asString());
|
||||
auto allRuleChecksNode = qualityResultsNode["RuleChecks"]["RuleChecksItem"];
|
||||
for (auto qualityResultsNodeRuleChecksRuleChecksItem : allRuleChecksNode)
|
||||
auto dataNode = value["Data"];
|
||||
if(!dataNode["TotalCount"].isNull())
|
||||
data_.totalCount = std::stol(dataNode["TotalCount"].asString());
|
||||
if(!dataNode["PageNumber"].isNull())
|
||||
data_.pageNumber = std::stoi(dataNode["PageNumber"].asString());
|
||||
if(!dataNode["PageSize"].isNull())
|
||||
data_.pageSize = std::stoi(dataNode["PageSize"].asString());
|
||||
auto allRuleChecksNode = dataNode["RuleChecks"]["RuleChecksItem"];
|
||||
for (auto dataNodeRuleChecksRuleChecksItem : allRuleChecksNode)
|
||||
{
|
||||
QualityResults::RuleChecksItem ruleChecksItemObject;
|
||||
if(!qualityResultsNodeRuleChecksRuleChecksItem["Id"].isNull())
|
||||
ruleChecksItemObject.id = std::stoi(qualityResultsNodeRuleChecksRuleChecksItem["Id"].asString());
|
||||
if(!qualityResultsNodeRuleChecksRuleChecksItem["TaskId"].isNull())
|
||||
ruleChecksItemObject.taskId = qualityResultsNodeRuleChecksRuleChecksItem["TaskId"].asString();
|
||||
if(!qualityResultsNodeRuleChecksRuleChecksItem["EntityId"].isNull())
|
||||
ruleChecksItemObject.entityId = std::stoi(qualityResultsNodeRuleChecksRuleChecksItem["EntityId"].asString());
|
||||
if(!qualityResultsNodeRuleChecksRuleChecksItem["RuleId"].isNull())
|
||||
ruleChecksItemObject.ruleId = std::stoi(qualityResultsNodeRuleChecksRuleChecksItem["RuleId"].asString());
|
||||
if(!qualityResultsNodeRuleChecksRuleChecksItem["Property"].isNull())
|
||||
ruleChecksItemObject.property = qualityResultsNodeRuleChecksRuleChecksItem["Property"].asString();
|
||||
if(!qualityResultsNodeRuleChecksRuleChecksItem["BizDate"].isNull())
|
||||
ruleChecksItemObject.bizDate = std::stol(qualityResultsNodeRuleChecksRuleChecksItem["BizDate"].asString());
|
||||
if(!qualityResultsNodeRuleChecksRuleChecksItem["DateType"].isNull())
|
||||
ruleChecksItemObject.dateType = qualityResultsNodeRuleChecksRuleChecksItem["DateType"].asString();
|
||||
if(!qualityResultsNodeRuleChecksRuleChecksItem["ActualExpression"].isNull())
|
||||
ruleChecksItemObject.actualExpression = qualityResultsNodeRuleChecksRuleChecksItem["ActualExpression"].asString();
|
||||
if(!qualityResultsNodeRuleChecksRuleChecksItem["MatchExpression"].isNull())
|
||||
ruleChecksItemObject.matchExpression = qualityResultsNodeRuleChecksRuleChecksItem["MatchExpression"].asString();
|
||||
if(!qualityResultsNodeRuleChecksRuleChecksItem["BlockType"].isNull())
|
||||
ruleChecksItemObject.blockType = std::stoi(qualityResultsNodeRuleChecksRuleChecksItem["BlockType"].asString());
|
||||
if(!qualityResultsNodeRuleChecksRuleChecksItem["CheckResult"].isNull())
|
||||
ruleChecksItemObject.checkResult = std::stoi(qualityResultsNodeRuleChecksRuleChecksItem["CheckResult"].asString());
|
||||
if(!qualityResultsNodeRuleChecksRuleChecksItem["CheckResultStatus"].isNull())
|
||||
ruleChecksItemObject.checkResultStatus = std::stoi(qualityResultsNodeRuleChecksRuleChecksItem["CheckResultStatus"].asString());
|
||||
if(!qualityResultsNodeRuleChecksRuleChecksItem["MethodName"].isNull())
|
||||
ruleChecksItemObject.methodName = qualityResultsNodeRuleChecksRuleChecksItem["MethodName"].asString();
|
||||
if(!qualityResultsNodeRuleChecksRuleChecksItem["Comment"].isNull())
|
||||
ruleChecksItemObject.comment = qualityResultsNodeRuleChecksRuleChecksItem["Comment"].asString();
|
||||
if(!qualityResultsNodeRuleChecksRuleChecksItem["WhereCondition"].isNull())
|
||||
ruleChecksItemObject.whereCondition = qualityResultsNodeRuleChecksRuleChecksItem["WhereCondition"].asString();
|
||||
if(!qualityResultsNodeRuleChecksRuleChecksItem["BeginTime"].isNull())
|
||||
ruleChecksItemObject.beginTime = std::stol(qualityResultsNodeRuleChecksRuleChecksItem["BeginTime"].asString());
|
||||
if(!qualityResultsNodeRuleChecksRuleChecksItem["EndTime"].isNull())
|
||||
ruleChecksItemObject.endTime = std::stol(qualityResultsNodeRuleChecksRuleChecksItem["EndTime"].asString());
|
||||
if(!qualityResultsNodeRuleChecksRuleChecksItem["TimeCost"].isNull())
|
||||
ruleChecksItemObject.timeCost = qualityResultsNodeRuleChecksRuleChecksItem["TimeCost"].asString();
|
||||
if(!qualityResultsNodeRuleChecksRuleChecksItem["ExternalType"].isNull())
|
||||
ruleChecksItemObject.externalType = qualityResultsNodeRuleChecksRuleChecksItem["ExternalType"].asString();
|
||||
if(!qualityResultsNodeRuleChecksRuleChecksItem["ExternalId"].isNull())
|
||||
ruleChecksItemObject.externalId = qualityResultsNodeRuleChecksRuleChecksItem["ExternalId"].asString();
|
||||
if(!qualityResultsNodeRuleChecksRuleChecksItem["DiscreteCheck"].isNull())
|
||||
ruleChecksItemObject.discreteCheck = qualityResultsNodeRuleChecksRuleChecksItem["DiscreteCheck"].asString() == "true";
|
||||
if(!qualityResultsNodeRuleChecksRuleChecksItem["FixedCheck"].isNull())
|
||||
ruleChecksItemObject.fixedCheck = qualityResultsNodeRuleChecksRuleChecksItem["FixedCheck"].asString() == "true";
|
||||
if(!qualityResultsNodeRuleChecksRuleChecksItem["Trend"].isNull())
|
||||
ruleChecksItemObject.trend = qualityResultsNodeRuleChecksRuleChecksItem["Trend"].asString();
|
||||
if(!qualityResultsNodeRuleChecksRuleChecksItem["WarningThreshold"].isNull())
|
||||
ruleChecksItemObject.warningThreshold = std::stof(qualityResultsNodeRuleChecksRuleChecksItem["WarningThreshold"].asString());
|
||||
if(!qualityResultsNodeRuleChecksRuleChecksItem["CriticalThreshold"].isNull())
|
||||
ruleChecksItemObject.criticalThreshold = std::stof(qualityResultsNodeRuleChecksRuleChecksItem["CriticalThreshold"].asString());
|
||||
if(!qualityResultsNodeRuleChecksRuleChecksItem["ExpectValue"].isNull())
|
||||
ruleChecksItemObject.expectValue = std::stof(qualityResultsNodeRuleChecksRuleChecksItem["ExpectValue"].asString());
|
||||
if(!qualityResultsNodeRuleChecksRuleChecksItem["Op"].isNull())
|
||||
ruleChecksItemObject.op = qualityResultsNodeRuleChecksRuleChecksItem["Op"].asString();
|
||||
if(!qualityResultsNodeRuleChecksRuleChecksItem["ProjectName"].isNull())
|
||||
ruleChecksItemObject.projectName = qualityResultsNodeRuleChecksRuleChecksItem["ProjectName"].asString();
|
||||
if(!qualityResultsNodeRuleChecksRuleChecksItem["TableName"].isNull())
|
||||
ruleChecksItemObject.tableName = qualityResultsNodeRuleChecksRuleChecksItem["TableName"].asString();
|
||||
if(!qualityResultsNodeRuleChecksRuleChecksItem["TemplateId"].isNull())
|
||||
ruleChecksItemObject.templateId = std::stoi(qualityResultsNodeRuleChecksRuleChecksItem["TemplateId"].asString());
|
||||
if(!qualityResultsNodeRuleChecksRuleChecksItem["TemplateName"].isNull())
|
||||
ruleChecksItemObject.templateName = qualityResultsNodeRuleChecksRuleChecksItem["TemplateName"].asString();
|
||||
if(!qualityResultsNodeRuleChecksRuleChecksItem["ResultString"].isNull())
|
||||
ruleChecksItemObject.resultString = qualityResultsNodeRuleChecksRuleChecksItem["ResultString"].asString();
|
||||
if(!qualityResultsNodeRuleChecksRuleChecksItem["CheckerId"].isNull())
|
||||
ruleChecksItemObject.checkerId = std::stoi(qualityResultsNodeRuleChecksRuleChecksItem["CheckerId"].asString());
|
||||
if(!qualityResultsNodeRuleChecksRuleChecksItem["CheckerType"].isNull())
|
||||
ruleChecksItemObject.checkerType = std::stoi(qualityResultsNodeRuleChecksRuleChecksItem["CheckerType"].asString());
|
||||
if(!qualityResultsNodeRuleChecksRuleChecksItem["RuleName"].isNull())
|
||||
ruleChecksItemObject.ruleName = qualityResultsNodeRuleChecksRuleChecksItem["RuleName"].asString();
|
||||
if(!qualityResultsNodeRuleChecksRuleChecksItem["IsPrediction"].isNull())
|
||||
ruleChecksItemObject.isPrediction = qualityResultsNodeRuleChecksRuleChecksItem["IsPrediction"].asString() == "true";
|
||||
if(!qualityResultsNodeRuleChecksRuleChecksItem["UpperValue"].isNull())
|
||||
ruleChecksItemObject.upperValue = std::stof(qualityResultsNodeRuleChecksRuleChecksItem["UpperValue"].asString());
|
||||
if(!qualityResultsNodeRuleChecksRuleChecksItem["LowerValue"].isNull())
|
||||
ruleChecksItemObject.lowerValue = std::stof(qualityResultsNodeRuleChecksRuleChecksItem["LowerValue"].asString());
|
||||
if(!qualityResultsNodeRuleChecksRuleChecksItem["CheckerName"].isNull())
|
||||
ruleChecksItemObject.checkerName = qualityResultsNodeRuleChecksRuleChecksItem["CheckerName"].asString();
|
||||
auto allReferenceValueNode = qualityResultsNodeRuleChecksRuleChecksItem["ReferenceValue"]["ReferenceValueItem"];
|
||||
for (auto qualityResultsNodeRuleChecksRuleChecksItemReferenceValueReferenceValueItem : allReferenceValueNode)
|
||||
Data::RuleChecksItem ruleChecksItemObject;
|
||||
if(!dataNodeRuleChecksRuleChecksItem["Id"].isNull())
|
||||
ruleChecksItemObject.id = std::stoi(dataNodeRuleChecksRuleChecksItem["Id"].asString());
|
||||
if(!dataNodeRuleChecksRuleChecksItem["TaskId"].isNull())
|
||||
ruleChecksItemObject.taskId = dataNodeRuleChecksRuleChecksItem["TaskId"].asString();
|
||||
if(!dataNodeRuleChecksRuleChecksItem["EntityId"].isNull())
|
||||
ruleChecksItemObject.entityId = std::stoi(dataNodeRuleChecksRuleChecksItem["EntityId"].asString());
|
||||
if(!dataNodeRuleChecksRuleChecksItem["RuleId"].isNull())
|
||||
ruleChecksItemObject.ruleId = std::stoi(dataNodeRuleChecksRuleChecksItem["RuleId"].asString());
|
||||
if(!dataNodeRuleChecksRuleChecksItem["Property"].isNull())
|
||||
ruleChecksItemObject.property = dataNodeRuleChecksRuleChecksItem["Property"].asString();
|
||||
if(!dataNodeRuleChecksRuleChecksItem["BizDate"].isNull())
|
||||
ruleChecksItemObject.bizDate = std::stol(dataNodeRuleChecksRuleChecksItem["BizDate"].asString());
|
||||
if(!dataNodeRuleChecksRuleChecksItem["DateType"].isNull())
|
||||
ruleChecksItemObject.dateType = dataNodeRuleChecksRuleChecksItem["DateType"].asString();
|
||||
if(!dataNodeRuleChecksRuleChecksItem["ActualExpression"].isNull())
|
||||
ruleChecksItemObject.actualExpression = dataNodeRuleChecksRuleChecksItem["ActualExpression"].asString();
|
||||
if(!dataNodeRuleChecksRuleChecksItem["MatchExpression"].isNull())
|
||||
ruleChecksItemObject.matchExpression = dataNodeRuleChecksRuleChecksItem["MatchExpression"].asString();
|
||||
if(!dataNodeRuleChecksRuleChecksItem["BlockType"].isNull())
|
||||
ruleChecksItemObject.blockType = std::stoi(dataNodeRuleChecksRuleChecksItem["BlockType"].asString());
|
||||
if(!dataNodeRuleChecksRuleChecksItem["CheckResult"].isNull())
|
||||
ruleChecksItemObject.checkResult = std::stoi(dataNodeRuleChecksRuleChecksItem["CheckResult"].asString());
|
||||
if(!dataNodeRuleChecksRuleChecksItem["CheckResultStatus"].isNull())
|
||||
ruleChecksItemObject.checkResultStatus = std::stoi(dataNodeRuleChecksRuleChecksItem["CheckResultStatus"].asString());
|
||||
if(!dataNodeRuleChecksRuleChecksItem["MethodName"].isNull())
|
||||
ruleChecksItemObject.methodName = dataNodeRuleChecksRuleChecksItem["MethodName"].asString();
|
||||
if(!dataNodeRuleChecksRuleChecksItem["Comment"].isNull())
|
||||
ruleChecksItemObject.comment = dataNodeRuleChecksRuleChecksItem["Comment"].asString();
|
||||
if(!dataNodeRuleChecksRuleChecksItem["WhereCondition"].isNull())
|
||||
ruleChecksItemObject.whereCondition = dataNodeRuleChecksRuleChecksItem["WhereCondition"].asString();
|
||||
if(!dataNodeRuleChecksRuleChecksItem["BeginTime"].isNull())
|
||||
ruleChecksItemObject.beginTime = std::stol(dataNodeRuleChecksRuleChecksItem["BeginTime"].asString());
|
||||
if(!dataNodeRuleChecksRuleChecksItem["EndTime"].isNull())
|
||||
ruleChecksItemObject.endTime = std::stol(dataNodeRuleChecksRuleChecksItem["EndTime"].asString());
|
||||
if(!dataNodeRuleChecksRuleChecksItem["TimeCost"].isNull())
|
||||
ruleChecksItemObject.timeCost = dataNodeRuleChecksRuleChecksItem["TimeCost"].asString();
|
||||
if(!dataNodeRuleChecksRuleChecksItem["ExternalType"].isNull())
|
||||
ruleChecksItemObject.externalType = dataNodeRuleChecksRuleChecksItem["ExternalType"].asString();
|
||||
if(!dataNodeRuleChecksRuleChecksItem["ExternalId"].isNull())
|
||||
ruleChecksItemObject.externalId = dataNodeRuleChecksRuleChecksItem["ExternalId"].asString();
|
||||
if(!dataNodeRuleChecksRuleChecksItem["DiscreteCheck"].isNull())
|
||||
ruleChecksItemObject.discreteCheck = dataNodeRuleChecksRuleChecksItem["DiscreteCheck"].asString() == "true";
|
||||
if(!dataNodeRuleChecksRuleChecksItem["FixedCheck"].isNull())
|
||||
ruleChecksItemObject.fixedCheck = dataNodeRuleChecksRuleChecksItem["FixedCheck"].asString() == "true";
|
||||
if(!dataNodeRuleChecksRuleChecksItem["Trend"].isNull())
|
||||
ruleChecksItemObject.trend = dataNodeRuleChecksRuleChecksItem["Trend"].asString();
|
||||
if(!dataNodeRuleChecksRuleChecksItem["WarningThreshold"].isNull())
|
||||
ruleChecksItemObject.warningThreshold = std::stof(dataNodeRuleChecksRuleChecksItem["WarningThreshold"].asString());
|
||||
if(!dataNodeRuleChecksRuleChecksItem["CriticalThreshold"].isNull())
|
||||
ruleChecksItemObject.criticalThreshold = std::stof(dataNodeRuleChecksRuleChecksItem["CriticalThreshold"].asString());
|
||||
if(!dataNodeRuleChecksRuleChecksItem["ExpectValue"].isNull())
|
||||
ruleChecksItemObject.expectValue = std::stof(dataNodeRuleChecksRuleChecksItem["ExpectValue"].asString());
|
||||
if(!dataNodeRuleChecksRuleChecksItem["Op"].isNull())
|
||||
ruleChecksItemObject.op = dataNodeRuleChecksRuleChecksItem["Op"].asString();
|
||||
if(!dataNodeRuleChecksRuleChecksItem["ProjectName"].isNull())
|
||||
ruleChecksItemObject.projectName = dataNodeRuleChecksRuleChecksItem["ProjectName"].asString();
|
||||
if(!dataNodeRuleChecksRuleChecksItem["TableName"].isNull())
|
||||
ruleChecksItemObject.tableName = dataNodeRuleChecksRuleChecksItem["TableName"].asString();
|
||||
if(!dataNodeRuleChecksRuleChecksItem["TemplateId"].isNull())
|
||||
ruleChecksItemObject.templateId = std::stoi(dataNodeRuleChecksRuleChecksItem["TemplateId"].asString());
|
||||
if(!dataNodeRuleChecksRuleChecksItem["TemplateName"].isNull())
|
||||
ruleChecksItemObject.templateName = dataNodeRuleChecksRuleChecksItem["TemplateName"].asString();
|
||||
if(!dataNodeRuleChecksRuleChecksItem["ResultString"].isNull())
|
||||
ruleChecksItemObject.resultString = dataNodeRuleChecksRuleChecksItem["ResultString"].asString();
|
||||
if(!dataNodeRuleChecksRuleChecksItem["CheckerId"].isNull())
|
||||
ruleChecksItemObject.checkerId = std::stoi(dataNodeRuleChecksRuleChecksItem["CheckerId"].asString());
|
||||
if(!dataNodeRuleChecksRuleChecksItem["CheckerType"].isNull())
|
||||
ruleChecksItemObject.checkerType = std::stoi(dataNodeRuleChecksRuleChecksItem["CheckerType"].asString());
|
||||
if(!dataNodeRuleChecksRuleChecksItem["RuleName"].isNull())
|
||||
ruleChecksItemObject.ruleName = dataNodeRuleChecksRuleChecksItem["RuleName"].asString();
|
||||
if(!dataNodeRuleChecksRuleChecksItem["IsPrediction"].isNull())
|
||||
ruleChecksItemObject.isPrediction = dataNodeRuleChecksRuleChecksItem["IsPrediction"].asString() == "true";
|
||||
if(!dataNodeRuleChecksRuleChecksItem["UpperValue"].isNull())
|
||||
ruleChecksItemObject.upperValue = std::stof(dataNodeRuleChecksRuleChecksItem["UpperValue"].asString());
|
||||
if(!dataNodeRuleChecksRuleChecksItem["LowerValue"].isNull())
|
||||
ruleChecksItemObject.lowerValue = std::stof(dataNodeRuleChecksRuleChecksItem["LowerValue"].asString());
|
||||
if(!dataNodeRuleChecksRuleChecksItem["CheckerName"].isNull())
|
||||
ruleChecksItemObject.checkerName = dataNodeRuleChecksRuleChecksItem["CheckerName"].asString();
|
||||
auto allReferenceValueNode = dataNodeRuleChecksRuleChecksItem["ReferenceValue"]["ReferenceValueItem"];
|
||||
for (auto dataNodeRuleChecksRuleChecksItemReferenceValueReferenceValueItem : allReferenceValueNode)
|
||||
{
|
||||
QualityResults::RuleChecksItem::ReferenceValueItem referenceValueObject;
|
||||
if(!qualityResultsNodeRuleChecksRuleChecksItemReferenceValueReferenceValueItem["BizDate"].isNull())
|
||||
referenceValueObject.bizDate = std::stol(qualityResultsNodeRuleChecksRuleChecksItemReferenceValueReferenceValueItem["BizDate"].asString());
|
||||
if(!qualityResultsNodeRuleChecksRuleChecksItemReferenceValueReferenceValueItem["DiscreteProperty"].isNull())
|
||||
referenceValueObject.discreteProperty = qualityResultsNodeRuleChecksRuleChecksItemReferenceValueReferenceValueItem["DiscreteProperty"].asString();
|
||||
if(!qualityResultsNodeRuleChecksRuleChecksItemReferenceValueReferenceValueItem["Value"].isNull())
|
||||
referenceValueObject.value = std::stof(qualityResultsNodeRuleChecksRuleChecksItemReferenceValueReferenceValueItem["Value"].asString());
|
||||
if(!qualityResultsNodeRuleChecksRuleChecksItemReferenceValueReferenceValueItem["Threshold"].isNull())
|
||||
referenceValueObject.threshold = std::stof(qualityResultsNodeRuleChecksRuleChecksItemReferenceValueReferenceValueItem["Threshold"].asString());
|
||||
if(!qualityResultsNodeRuleChecksRuleChecksItemReferenceValueReferenceValueItem["SingleCheckResult"].isNull())
|
||||
referenceValueObject.singleCheckResult = std::stoi(qualityResultsNodeRuleChecksRuleChecksItemReferenceValueReferenceValueItem["SingleCheckResult"].asString());
|
||||
Data::RuleChecksItem::ReferenceValueItem referenceValueObject;
|
||||
if(!dataNodeRuleChecksRuleChecksItemReferenceValueReferenceValueItem["BizDate"].isNull())
|
||||
referenceValueObject.bizDate = std::stol(dataNodeRuleChecksRuleChecksItemReferenceValueReferenceValueItem["BizDate"].asString());
|
||||
if(!dataNodeRuleChecksRuleChecksItemReferenceValueReferenceValueItem["DiscreteProperty"].isNull())
|
||||
referenceValueObject.discreteProperty = dataNodeRuleChecksRuleChecksItemReferenceValueReferenceValueItem["DiscreteProperty"].asString();
|
||||
if(!dataNodeRuleChecksRuleChecksItemReferenceValueReferenceValueItem["Value"].isNull())
|
||||
referenceValueObject.value = std::stof(dataNodeRuleChecksRuleChecksItemReferenceValueReferenceValueItem["Value"].asString());
|
||||
if(!dataNodeRuleChecksRuleChecksItemReferenceValueReferenceValueItem["Threshold"].isNull())
|
||||
referenceValueObject.threshold = std::stof(dataNodeRuleChecksRuleChecksItemReferenceValueReferenceValueItem["Threshold"].asString());
|
||||
if(!dataNodeRuleChecksRuleChecksItemReferenceValueReferenceValueItem["SingleCheckResult"].isNull())
|
||||
referenceValueObject.singleCheckResult = std::stoi(dataNodeRuleChecksRuleChecksItemReferenceValueReferenceValueItem["SingleCheckResult"].asString());
|
||||
ruleChecksItemObject.referenceValue.push_back(referenceValueObject);
|
||||
}
|
||||
auto allSampleValueNode = qualityResultsNodeRuleChecksRuleChecksItem["SampleValue"]["SampleValueItem"];
|
||||
for (auto qualityResultsNodeRuleChecksRuleChecksItemSampleValueSampleValueItem : allSampleValueNode)
|
||||
auto allSampleValueNode = dataNodeRuleChecksRuleChecksItem["SampleValue"]["SampleValueItem"];
|
||||
for (auto dataNodeRuleChecksRuleChecksItemSampleValueSampleValueItem : allSampleValueNode)
|
||||
{
|
||||
QualityResults::RuleChecksItem::SampleValueItem sampleValueObject;
|
||||
if(!qualityResultsNodeRuleChecksRuleChecksItemSampleValueSampleValueItem["BizDate"].isNull())
|
||||
sampleValueObject.bizDate = std::stol(qualityResultsNodeRuleChecksRuleChecksItemSampleValueSampleValueItem["BizDate"].asString());
|
||||
if(!qualityResultsNodeRuleChecksRuleChecksItemSampleValueSampleValueItem["DiscreteProperty"].isNull())
|
||||
sampleValueObject.discreteProperty = qualityResultsNodeRuleChecksRuleChecksItemSampleValueSampleValueItem["DiscreteProperty"].asString();
|
||||
if(!qualityResultsNodeRuleChecksRuleChecksItemSampleValueSampleValueItem["Value"].isNull())
|
||||
sampleValueObject.value = std::stof(qualityResultsNodeRuleChecksRuleChecksItemSampleValueSampleValueItem["Value"].asString());
|
||||
Data::RuleChecksItem::SampleValueItem sampleValueObject;
|
||||
if(!dataNodeRuleChecksRuleChecksItemSampleValueSampleValueItem["BizDate"].isNull())
|
||||
sampleValueObject.bizDate = std::stol(dataNodeRuleChecksRuleChecksItemSampleValueSampleValueItem["BizDate"].asString());
|
||||
if(!dataNodeRuleChecksRuleChecksItemSampleValueSampleValueItem["DiscreteProperty"].isNull())
|
||||
sampleValueObject.discreteProperty = dataNodeRuleChecksRuleChecksItemSampleValueSampleValueItem["DiscreteProperty"].asString();
|
||||
if(!dataNodeRuleChecksRuleChecksItemSampleValueSampleValueItem["Value"].isNull())
|
||||
sampleValueObject.value = std::stof(dataNodeRuleChecksRuleChecksItemSampleValueSampleValueItem["Value"].asString());
|
||||
ruleChecksItemObject.sampleValue.push_back(sampleValueObject);
|
||||
}
|
||||
qualityResults_.ruleChecks.push_back(ruleChecksItemObject);
|
||||
data_.ruleChecks.push_back(ruleChecksItemObject);
|
||||
}
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
if(!value["ErrorCode"].isNull())
|
||||
errorCode_ = value["ErrorCode"].asString();
|
||||
if(!value["ErrorMessage"].isNull())
|
||||
errorMessage_ = value["ErrorMessage"].asString();
|
||||
if(!value["HttpStatusCode"].isNull())
|
||||
httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString());
|
||||
|
||||
}
|
||||
|
||||
ListQualityResultsByRuleResult::QualityResults ListQualityResultsByRuleResult::getQualityResults()const
|
||||
int ListQualityResultsByRuleResult::getHttpStatusCode()const
|
||||
{
|
||||
return qualityResults_;
|
||||
return httpStatusCode_;
|
||||
}
|
||||
|
||||
ListQualityResultsByRuleResult::Data ListQualityResultsByRuleResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
std::string ListQualityResultsByRuleResult::getErrorCode()const
|
||||
{
|
||||
return errorCode_;
|
||||
}
|
||||
|
||||
std::string ListQualityResultsByRuleResult::getErrorMessage()const
|
||||
{
|
||||
return errorMessage_;
|
||||
}
|
||||
|
||||
bool ListQualityResultsByRuleResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
|
||||
@@ -63,6 +63,8 @@ namespace AlibabaCloud
|
||||
void setBackupStorageType(const std::string& backupStorageType);
|
||||
int getDuplicationArchivePeriod()const;
|
||||
void setDuplicationArchivePeriod(int duplicationArchivePeriod);
|
||||
int getBackupLogIntervalSeconds()const;
|
||||
void setBackupLogIntervalSeconds(int backupLogIntervalSeconds);
|
||||
std::string getCrossAliyunId()const;
|
||||
void setCrossAliyunId(const std::string& crossAliyunId);
|
||||
bool getAutoStartBackup()const;
|
||||
@@ -71,6 +73,8 @@ namespace AlibabaCloud
|
||||
void setSourceEndpointPassword(const std::string& sourceEndpointPassword);
|
||||
std::string getBackupObjects()const;
|
||||
void setBackupObjects(const std::string& backupObjects);
|
||||
long getBackupRateLimit()const;
|
||||
void setBackupRateLimit(long backupRateLimit);
|
||||
std::string getOwnerId()const;
|
||||
void setOwnerId(const std::string& ownerId);
|
||||
int getSourceEndpointPort()const;
|
||||
@@ -107,10 +111,12 @@ namespace AlibabaCloud
|
||||
bool enableBackupLog_;
|
||||
std::string backupStorageType_;
|
||||
int duplicationArchivePeriod_;
|
||||
int backupLogIntervalSeconds_;
|
||||
std::string crossAliyunId_;
|
||||
bool autoStartBackup_;
|
||||
std::string sourceEndpointPassword_;
|
||||
std::string backupObjects_;
|
||||
long backupRateLimit_;
|
||||
std::string ownerId_;
|
||||
int sourceEndpointPort_;
|
||||
int backupRetentionPeriod_;
|
||||
|
||||
@@ -181,6 +181,17 @@ void ConfigureBackupPlanRequest::setDuplicationArchivePeriod(int duplicationArch
|
||||
setParameter("DuplicationArchivePeriod", std::to_string(duplicationArchivePeriod));
|
||||
}
|
||||
|
||||
int ConfigureBackupPlanRequest::getBackupLogIntervalSeconds()const
|
||||
{
|
||||
return backupLogIntervalSeconds_;
|
||||
}
|
||||
|
||||
void ConfigureBackupPlanRequest::setBackupLogIntervalSeconds(int backupLogIntervalSeconds)
|
||||
{
|
||||
backupLogIntervalSeconds_ = backupLogIntervalSeconds;
|
||||
setParameter("BackupLogIntervalSeconds", std::to_string(backupLogIntervalSeconds));
|
||||
}
|
||||
|
||||
std::string ConfigureBackupPlanRequest::getCrossAliyunId()const
|
||||
{
|
||||
return crossAliyunId_;
|
||||
@@ -225,6 +236,17 @@ void ConfigureBackupPlanRequest::setBackupObjects(const std::string& backupObjec
|
||||
setParameter("BackupObjects", backupObjects);
|
||||
}
|
||||
|
||||
long ConfigureBackupPlanRequest::getBackupRateLimit()const
|
||||
{
|
||||
return backupRateLimit_;
|
||||
}
|
||||
|
||||
void ConfigureBackupPlanRequest::setBackupRateLimit(long backupRateLimit)
|
||||
{
|
||||
backupRateLimit_ = backupRateLimit;
|
||||
setParameter("BackupRateLimit", std::to_string(backupRateLimit));
|
||||
}
|
||||
|
||||
std::string ConfigureBackupPlanRequest::getOwnerId()const
|
||||
{
|
||||
return ownerId_;
|
||||
|
||||
@@ -53,16 +53,16 @@ void DescribeRestoreRangeInfoResult::parse(const std::string &payload)
|
||||
itemsObject.endTimestampForRestore = std::stol(valueItemsDBSRecoverRange["EndTimestampForRestore"].asString());
|
||||
if(!valueItemsDBSRecoverRange["RangeType"].isNull())
|
||||
itemsObject.rangeType = valueItemsDBSRecoverRange["RangeType"].asString();
|
||||
auto allFullBackupListNode = allItemsNode["FullBackupList"]["FullBackupDetail"];
|
||||
for (auto allItemsNodeFullBackupListFullBackupDetail : allFullBackupListNode)
|
||||
auto allFullBackupListNode = valueItemsDBSRecoverRange["FullBackupList"]["FullBackupDetail"];
|
||||
for (auto valueItemsDBSRecoverRangeFullBackupListFullBackupDetail : allFullBackupListNode)
|
||||
{
|
||||
DBSRecoverRange::FullBackupDetail fullBackupListObject;
|
||||
if(!allItemsNodeFullBackupListFullBackupDetail["BackupSetId"].isNull())
|
||||
fullBackupListObject.backupSetId = allItemsNodeFullBackupListFullBackupDetail["BackupSetId"].asString();
|
||||
if(!allItemsNodeFullBackupListFullBackupDetail["StartTime"].isNull())
|
||||
fullBackupListObject.startTime = std::stol(allItemsNodeFullBackupListFullBackupDetail["StartTime"].asString());
|
||||
if(!allItemsNodeFullBackupListFullBackupDetail["EndTime"].isNull())
|
||||
fullBackupListObject.endTime = std::stol(allItemsNodeFullBackupListFullBackupDetail["EndTime"].asString());
|
||||
if(!valueItemsDBSRecoverRangeFullBackupListFullBackupDetail["BackupSetId"].isNull())
|
||||
fullBackupListObject.backupSetId = valueItemsDBSRecoverRangeFullBackupListFullBackupDetail["BackupSetId"].asString();
|
||||
if(!valueItemsDBSRecoverRangeFullBackupListFullBackupDetail["StartTime"].isNull())
|
||||
fullBackupListObject.startTime = std::stol(valueItemsDBSRecoverRangeFullBackupListFullBackupDetail["StartTime"].asString());
|
||||
if(!valueItemsDBSRecoverRangeFullBackupListFullBackupDetail["EndTime"].isNull())
|
||||
fullBackupListObject.endTime = std::stol(valueItemsDBSRecoverRangeFullBackupListFullBackupDetail["EndTime"].asString());
|
||||
itemsObject.fullBackupList.push_back(fullBackupListObject);
|
||||
}
|
||||
items_.push_back(itemsObject);
|
||||
|
||||
@@ -41,6 +41,8 @@ set(dcdn_public_header_model
|
||||
include/alibabacloud/dcdn/model/BatchStopDcdnDomainResult.h
|
||||
include/alibabacloud/dcdn/model/CreateDcdnCertificateSigningRequestRequest.h
|
||||
include/alibabacloud/dcdn/model/CreateDcdnCertificateSigningRequestResult.h
|
||||
include/alibabacloud/dcdn/model/CreateDcdnDomainOfflineLogDeliveryRequest.h
|
||||
include/alibabacloud/dcdn/model/CreateDcdnDomainOfflineLogDeliveryResult.h
|
||||
include/alibabacloud/dcdn/model/DeleteDcdnDomainRequest.h
|
||||
include/alibabacloud/dcdn/model/DeleteDcdnDomainResult.h
|
||||
include/alibabacloud/dcdn/model/DeleteDcdnIpaDomainRequest.h
|
||||
@@ -147,6 +149,14 @@ set(dcdn_public_header_model
|
||||
include/alibabacloud/dcdn/model/DescribeDcdnIpaServiceResult.h
|
||||
include/alibabacloud/dcdn/model/DescribeDcdnIpaUserDomainsRequest.h
|
||||
include/alibabacloud/dcdn/model/DescribeDcdnIpaUserDomainsResult.h
|
||||
include/alibabacloud/dcdn/model/DescribeDcdnOfflineLogDeliveryRequest.h
|
||||
include/alibabacloud/dcdn/model/DescribeDcdnOfflineLogDeliveryResult.h
|
||||
include/alibabacloud/dcdn/model/DescribeDcdnOfflineLogDeliveryFieldRequest.h
|
||||
include/alibabacloud/dcdn/model/DescribeDcdnOfflineLogDeliveryFieldResult.h
|
||||
include/alibabacloud/dcdn/model/DescribeDcdnOfflineLogDeliveryRegionsRequest.h
|
||||
include/alibabacloud/dcdn/model/DescribeDcdnOfflineLogDeliveryRegionsResult.h
|
||||
include/alibabacloud/dcdn/model/DescribeDcdnOfflineLogDeliveryStatusRequest.h
|
||||
include/alibabacloud/dcdn/model/DescribeDcdnOfflineLogDeliveryStatusResult.h
|
||||
include/alibabacloud/dcdn/model/DescribeDcdnRefreshQuotaRequest.h
|
||||
include/alibabacloud/dcdn/model/DescribeDcdnRefreshQuotaResult.h
|
||||
include/alibabacloud/dcdn/model/DescribeDcdnRefreshTasksRequest.h
|
||||
@@ -165,6 +175,8 @@ set(dcdn_public_header_model
|
||||
include/alibabacloud/dcdn/model/DescribeDcdnUserBillTypeResult.h
|
||||
include/alibabacloud/dcdn/model/DescribeDcdnUserDomainsRequest.h
|
||||
include/alibabacloud/dcdn/model/DescribeDcdnUserDomainsResult.h
|
||||
include/alibabacloud/dcdn/model/DescribeDcdnUserDomainsByFuncRequest.h
|
||||
include/alibabacloud/dcdn/model/DescribeDcdnUserDomainsByFuncResult.h
|
||||
include/alibabacloud/dcdn/model/DescribeDcdnUserQuotaRequest.h
|
||||
include/alibabacloud/dcdn/model/DescribeDcdnUserQuotaResult.h
|
||||
include/alibabacloud/dcdn/model/DescribeDcdnUserResourcePackageRequest.h
|
||||
@@ -179,6 +191,12 @@ set(dcdn_public_header_model
|
||||
include/alibabacloud/dcdn/model/DescribeUserDcdnIpaStatusResult.h
|
||||
include/alibabacloud/dcdn/model/DescribeUserDcdnStatusRequest.h
|
||||
include/alibabacloud/dcdn/model/DescribeUserDcdnStatusResult.h
|
||||
include/alibabacloud/dcdn/model/DisableDcdnDomainOfflineLogDeliveryRequest.h
|
||||
include/alibabacloud/dcdn/model/DisableDcdnDomainOfflineLogDeliveryResult.h
|
||||
include/alibabacloud/dcdn/model/DisableDcdnOfflineLogDeliveryRequest.h
|
||||
include/alibabacloud/dcdn/model/DisableDcdnOfflineLogDeliveryResult.h
|
||||
include/alibabacloud/dcdn/model/EnableDcdnDomainOfflineLogDeliveryRequest.h
|
||||
include/alibabacloud/dcdn/model/EnableDcdnDomainOfflineLogDeliveryResult.h
|
||||
include/alibabacloud/dcdn/model/ModifyDCdnDomainSchdmByPropertyRequest.h
|
||||
include/alibabacloud/dcdn/model/ModifyDCdnDomainSchdmByPropertyResult.h
|
||||
include/alibabacloud/dcdn/model/ModifyDcdnServiceRequest.h
|
||||
@@ -242,6 +260,8 @@ set(dcdn_src
|
||||
src/model/BatchStopDcdnDomainResult.cc
|
||||
src/model/CreateDcdnCertificateSigningRequestRequest.cc
|
||||
src/model/CreateDcdnCertificateSigningRequestResult.cc
|
||||
src/model/CreateDcdnDomainOfflineLogDeliveryRequest.cc
|
||||
src/model/CreateDcdnDomainOfflineLogDeliveryResult.cc
|
||||
src/model/DeleteDcdnDomainRequest.cc
|
||||
src/model/DeleteDcdnDomainResult.cc
|
||||
src/model/DeleteDcdnIpaDomainRequest.cc
|
||||
@@ -348,6 +368,14 @@ set(dcdn_src
|
||||
src/model/DescribeDcdnIpaServiceResult.cc
|
||||
src/model/DescribeDcdnIpaUserDomainsRequest.cc
|
||||
src/model/DescribeDcdnIpaUserDomainsResult.cc
|
||||
src/model/DescribeDcdnOfflineLogDeliveryRequest.cc
|
||||
src/model/DescribeDcdnOfflineLogDeliveryResult.cc
|
||||
src/model/DescribeDcdnOfflineLogDeliveryFieldRequest.cc
|
||||
src/model/DescribeDcdnOfflineLogDeliveryFieldResult.cc
|
||||
src/model/DescribeDcdnOfflineLogDeliveryRegionsRequest.cc
|
||||
src/model/DescribeDcdnOfflineLogDeliveryRegionsResult.cc
|
||||
src/model/DescribeDcdnOfflineLogDeliveryStatusRequest.cc
|
||||
src/model/DescribeDcdnOfflineLogDeliveryStatusResult.cc
|
||||
src/model/DescribeDcdnRefreshQuotaRequest.cc
|
||||
src/model/DescribeDcdnRefreshQuotaResult.cc
|
||||
src/model/DescribeDcdnRefreshTasksRequest.cc
|
||||
@@ -366,6 +394,8 @@ set(dcdn_src
|
||||
src/model/DescribeDcdnUserBillTypeResult.cc
|
||||
src/model/DescribeDcdnUserDomainsRequest.cc
|
||||
src/model/DescribeDcdnUserDomainsResult.cc
|
||||
src/model/DescribeDcdnUserDomainsByFuncRequest.cc
|
||||
src/model/DescribeDcdnUserDomainsByFuncResult.cc
|
||||
src/model/DescribeDcdnUserQuotaRequest.cc
|
||||
src/model/DescribeDcdnUserQuotaResult.cc
|
||||
src/model/DescribeDcdnUserResourcePackageRequest.cc
|
||||
@@ -380,6 +410,12 @@ set(dcdn_src
|
||||
src/model/DescribeUserDcdnIpaStatusResult.cc
|
||||
src/model/DescribeUserDcdnStatusRequest.cc
|
||||
src/model/DescribeUserDcdnStatusResult.cc
|
||||
src/model/DisableDcdnDomainOfflineLogDeliveryRequest.cc
|
||||
src/model/DisableDcdnDomainOfflineLogDeliveryResult.cc
|
||||
src/model/DisableDcdnOfflineLogDeliveryRequest.cc
|
||||
src/model/DisableDcdnOfflineLogDeliveryResult.cc
|
||||
src/model/EnableDcdnDomainOfflineLogDeliveryRequest.cc
|
||||
src/model/EnableDcdnDomainOfflineLogDeliveryResult.cc
|
||||
src/model/ModifyDCdnDomainSchdmByPropertyRequest.cc
|
||||
src/model/ModifyDCdnDomainSchdmByPropertyResult.cc
|
||||
src/model/ModifyDcdnServiceRequest.cc
|
||||
|
||||
@@ -42,6 +42,8 @@
|
||||
#include "model/BatchStopDcdnDomainResult.h"
|
||||
#include "model/CreateDcdnCertificateSigningRequestRequest.h"
|
||||
#include "model/CreateDcdnCertificateSigningRequestResult.h"
|
||||
#include "model/CreateDcdnDomainOfflineLogDeliveryRequest.h"
|
||||
#include "model/CreateDcdnDomainOfflineLogDeliveryResult.h"
|
||||
#include "model/DeleteDcdnDomainRequest.h"
|
||||
#include "model/DeleteDcdnDomainResult.h"
|
||||
#include "model/DeleteDcdnIpaDomainRequest.h"
|
||||
@@ -148,6 +150,14 @@
|
||||
#include "model/DescribeDcdnIpaServiceResult.h"
|
||||
#include "model/DescribeDcdnIpaUserDomainsRequest.h"
|
||||
#include "model/DescribeDcdnIpaUserDomainsResult.h"
|
||||
#include "model/DescribeDcdnOfflineLogDeliveryRequest.h"
|
||||
#include "model/DescribeDcdnOfflineLogDeliveryResult.h"
|
||||
#include "model/DescribeDcdnOfflineLogDeliveryFieldRequest.h"
|
||||
#include "model/DescribeDcdnOfflineLogDeliveryFieldResult.h"
|
||||
#include "model/DescribeDcdnOfflineLogDeliveryRegionsRequest.h"
|
||||
#include "model/DescribeDcdnOfflineLogDeliveryRegionsResult.h"
|
||||
#include "model/DescribeDcdnOfflineLogDeliveryStatusRequest.h"
|
||||
#include "model/DescribeDcdnOfflineLogDeliveryStatusResult.h"
|
||||
#include "model/DescribeDcdnRefreshQuotaRequest.h"
|
||||
#include "model/DescribeDcdnRefreshQuotaResult.h"
|
||||
#include "model/DescribeDcdnRefreshTasksRequest.h"
|
||||
@@ -166,6 +176,8 @@
|
||||
#include "model/DescribeDcdnUserBillTypeResult.h"
|
||||
#include "model/DescribeDcdnUserDomainsRequest.h"
|
||||
#include "model/DescribeDcdnUserDomainsResult.h"
|
||||
#include "model/DescribeDcdnUserDomainsByFuncRequest.h"
|
||||
#include "model/DescribeDcdnUserDomainsByFuncResult.h"
|
||||
#include "model/DescribeDcdnUserQuotaRequest.h"
|
||||
#include "model/DescribeDcdnUserQuotaResult.h"
|
||||
#include "model/DescribeDcdnUserResourcePackageRequest.h"
|
||||
@@ -180,6 +192,12 @@
|
||||
#include "model/DescribeUserDcdnIpaStatusResult.h"
|
||||
#include "model/DescribeUserDcdnStatusRequest.h"
|
||||
#include "model/DescribeUserDcdnStatusResult.h"
|
||||
#include "model/DisableDcdnDomainOfflineLogDeliveryRequest.h"
|
||||
#include "model/DisableDcdnDomainOfflineLogDeliveryResult.h"
|
||||
#include "model/DisableDcdnOfflineLogDeliveryRequest.h"
|
||||
#include "model/DisableDcdnOfflineLogDeliveryResult.h"
|
||||
#include "model/EnableDcdnDomainOfflineLogDeliveryRequest.h"
|
||||
#include "model/EnableDcdnDomainOfflineLogDeliveryResult.h"
|
||||
#include "model/ModifyDCdnDomainSchdmByPropertyRequest.h"
|
||||
#include "model/ModifyDCdnDomainSchdmByPropertyResult.h"
|
||||
#include "model/ModifyDcdnServiceRequest.h"
|
||||
@@ -259,6 +277,9 @@ namespace AlibabaCloud
|
||||
typedef Outcome<Error, Model::CreateDcdnCertificateSigningRequestResult> CreateDcdnCertificateSigningRequestOutcome;
|
||||
typedef std::future<CreateDcdnCertificateSigningRequestOutcome> CreateDcdnCertificateSigningRequestOutcomeCallable;
|
||||
typedef std::function<void(const DcdnClient*, const Model::CreateDcdnCertificateSigningRequestRequest&, const CreateDcdnCertificateSigningRequestOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> CreateDcdnCertificateSigningRequestAsyncHandler;
|
||||
typedef Outcome<Error, Model::CreateDcdnDomainOfflineLogDeliveryResult> CreateDcdnDomainOfflineLogDeliveryOutcome;
|
||||
typedef std::future<CreateDcdnDomainOfflineLogDeliveryOutcome> CreateDcdnDomainOfflineLogDeliveryOutcomeCallable;
|
||||
typedef std::function<void(const DcdnClient*, const Model::CreateDcdnDomainOfflineLogDeliveryRequest&, const CreateDcdnDomainOfflineLogDeliveryOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> CreateDcdnDomainOfflineLogDeliveryAsyncHandler;
|
||||
typedef Outcome<Error, Model::DeleteDcdnDomainResult> DeleteDcdnDomainOutcome;
|
||||
typedef std::future<DeleteDcdnDomainOutcome> DeleteDcdnDomainOutcomeCallable;
|
||||
typedef std::function<void(const DcdnClient*, const Model::DeleteDcdnDomainRequest&, const DeleteDcdnDomainOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DeleteDcdnDomainAsyncHandler;
|
||||
@@ -418,6 +439,18 @@ namespace AlibabaCloud
|
||||
typedef Outcome<Error, Model::DescribeDcdnIpaUserDomainsResult> DescribeDcdnIpaUserDomainsOutcome;
|
||||
typedef std::future<DescribeDcdnIpaUserDomainsOutcome> DescribeDcdnIpaUserDomainsOutcomeCallable;
|
||||
typedef std::function<void(const DcdnClient*, const Model::DescribeDcdnIpaUserDomainsRequest&, const DescribeDcdnIpaUserDomainsOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeDcdnIpaUserDomainsAsyncHandler;
|
||||
typedef Outcome<Error, Model::DescribeDcdnOfflineLogDeliveryResult> DescribeDcdnOfflineLogDeliveryOutcome;
|
||||
typedef std::future<DescribeDcdnOfflineLogDeliveryOutcome> DescribeDcdnOfflineLogDeliveryOutcomeCallable;
|
||||
typedef std::function<void(const DcdnClient*, const Model::DescribeDcdnOfflineLogDeliveryRequest&, const DescribeDcdnOfflineLogDeliveryOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeDcdnOfflineLogDeliveryAsyncHandler;
|
||||
typedef Outcome<Error, Model::DescribeDcdnOfflineLogDeliveryFieldResult> DescribeDcdnOfflineLogDeliveryFieldOutcome;
|
||||
typedef std::future<DescribeDcdnOfflineLogDeliveryFieldOutcome> DescribeDcdnOfflineLogDeliveryFieldOutcomeCallable;
|
||||
typedef std::function<void(const DcdnClient*, const Model::DescribeDcdnOfflineLogDeliveryFieldRequest&, const DescribeDcdnOfflineLogDeliveryFieldOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeDcdnOfflineLogDeliveryFieldAsyncHandler;
|
||||
typedef Outcome<Error, Model::DescribeDcdnOfflineLogDeliveryRegionsResult> DescribeDcdnOfflineLogDeliveryRegionsOutcome;
|
||||
typedef std::future<DescribeDcdnOfflineLogDeliveryRegionsOutcome> DescribeDcdnOfflineLogDeliveryRegionsOutcomeCallable;
|
||||
typedef std::function<void(const DcdnClient*, const Model::DescribeDcdnOfflineLogDeliveryRegionsRequest&, const DescribeDcdnOfflineLogDeliveryRegionsOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeDcdnOfflineLogDeliveryRegionsAsyncHandler;
|
||||
typedef Outcome<Error, Model::DescribeDcdnOfflineLogDeliveryStatusResult> DescribeDcdnOfflineLogDeliveryStatusOutcome;
|
||||
typedef std::future<DescribeDcdnOfflineLogDeliveryStatusOutcome> DescribeDcdnOfflineLogDeliveryStatusOutcomeCallable;
|
||||
typedef std::function<void(const DcdnClient*, const Model::DescribeDcdnOfflineLogDeliveryStatusRequest&, const DescribeDcdnOfflineLogDeliveryStatusOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeDcdnOfflineLogDeliveryStatusAsyncHandler;
|
||||
typedef Outcome<Error, Model::DescribeDcdnRefreshQuotaResult> DescribeDcdnRefreshQuotaOutcome;
|
||||
typedef std::future<DescribeDcdnRefreshQuotaOutcome> DescribeDcdnRefreshQuotaOutcomeCallable;
|
||||
typedef std::function<void(const DcdnClient*, const Model::DescribeDcdnRefreshQuotaRequest&, const DescribeDcdnRefreshQuotaOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeDcdnRefreshQuotaAsyncHandler;
|
||||
@@ -445,6 +478,9 @@ namespace AlibabaCloud
|
||||
typedef Outcome<Error, Model::DescribeDcdnUserDomainsResult> DescribeDcdnUserDomainsOutcome;
|
||||
typedef std::future<DescribeDcdnUserDomainsOutcome> DescribeDcdnUserDomainsOutcomeCallable;
|
||||
typedef std::function<void(const DcdnClient*, const Model::DescribeDcdnUserDomainsRequest&, const DescribeDcdnUserDomainsOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeDcdnUserDomainsAsyncHandler;
|
||||
typedef Outcome<Error, Model::DescribeDcdnUserDomainsByFuncResult> DescribeDcdnUserDomainsByFuncOutcome;
|
||||
typedef std::future<DescribeDcdnUserDomainsByFuncOutcome> DescribeDcdnUserDomainsByFuncOutcomeCallable;
|
||||
typedef std::function<void(const DcdnClient*, const Model::DescribeDcdnUserDomainsByFuncRequest&, const DescribeDcdnUserDomainsByFuncOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeDcdnUserDomainsByFuncAsyncHandler;
|
||||
typedef Outcome<Error, Model::DescribeDcdnUserQuotaResult> DescribeDcdnUserQuotaOutcome;
|
||||
typedef std::future<DescribeDcdnUserQuotaOutcome> DescribeDcdnUserQuotaOutcomeCallable;
|
||||
typedef std::function<void(const DcdnClient*, const Model::DescribeDcdnUserQuotaRequest&, const DescribeDcdnUserQuotaOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeDcdnUserQuotaAsyncHandler;
|
||||
@@ -466,6 +502,15 @@ namespace AlibabaCloud
|
||||
typedef Outcome<Error, Model::DescribeUserDcdnStatusResult> DescribeUserDcdnStatusOutcome;
|
||||
typedef std::future<DescribeUserDcdnStatusOutcome> DescribeUserDcdnStatusOutcomeCallable;
|
||||
typedef std::function<void(const DcdnClient*, const Model::DescribeUserDcdnStatusRequest&, const DescribeUserDcdnStatusOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeUserDcdnStatusAsyncHandler;
|
||||
typedef Outcome<Error, Model::DisableDcdnDomainOfflineLogDeliveryResult> DisableDcdnDomainOfflineLogDeliveryOutcome;
|
||||
typedef std::future<DisableDcdnDomainOfflineLogDeliveryOutcome> DisableDcdnDomainOfflineLogDeliveryOutcomeCallable;
|
||||
typedef std::function<void(const DcdnClient*, const Model::DisableDcdnDomainOfflineLogDeliveryRequest&, const DisableDcdnDomainOfflineLogDeliveryOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DisableDcdnDomainOfflineLogDeliveryAsyncHandler;
|
||||
typedef Outcome<Error, Model::DisableDcdnOfflineLogDeliveryResult> DisableDcdnOfflineLogDeliveryOutcome;
|
||||
typedef std::future<DisableDcdnOfflineLogDeliveryOutcome> DisableDcdnOfflineLogDeliveryOutcomeCallable;
|
||||
typedef std::function<void(const DcdnClient*, const Model::DisableDcdnOfflineLogDeliveryRequest&, const DisableDcdnOfflineLogDeliveryOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DisableDcdnOfflineLogDeliveryAsyncHandler;
|
||||
typedef Outcome<Error, Model::EnableDcdnDomainOfflineLogDeliveryResult> EnableDcdnDomainOfflineLogDeliveryOutcome;
|
||||
typedef std::future<EnableDcdnDomainOfflineLogDeliveryOutcome> EnableDcdnDomainOfflineLogDeliveryOutcomeCallable;
|
||||
typedef std::function<void(const DcdnClient*, const Model::EnableDcdnDomainOfflineLogDeliveryRequest&, const EnableDcdnDomainOfflineLogDeliveryOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> EnableDcdnDomainOfflineLogDeliveryAsyncHandler;
|
||||
typedef Outcome<Error, Model::ModifyDCdnDomainSchdmByPropertyResult> ModifyDCdnDomainSchdmByPropertyOutcome;
|
||||
typedef std::future<ModifyDCdnDomainSchdmByPropertyOutcome> ModifyDCdnDomainSchdmByPropertyOutcomeCallable;
|
||||
typedef std::function<void(const DcdnClient*, const Model::ModifyDCdnDomainSchdmByPropertyRequest&, const ModifyDCdnDomainSchdmByPropertyOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ModifyDCdnDomainSchdmByPropertyAsyncHandler;
|
||||
@@ -561,6 +606,9 @@ namespace AlibabaCloud
|
||||
CreateDcdnCertificateSigningRequestOutcome createDcdnCertificateSigningRequest(const Model::CreateDcdnCertificateSigningRequestRequest &request)const;
|
||||
void createDcdnCertificateSigningRequestAsync(const Model::CreateDcdnCertificateSigningRequestRequest& request, const CreateDcdnCertificateSigningRequestAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
CreateDcdnCertificateSigningRequestOutcomeCallable createDcdnCertificateSigningRequestCallable(const Model::CreateDcdnCertificateSigningRequestRequest& request) const;
|
||||
CreateDcdnDomainOfflineLogDeliveryOutcome createDcdnDomainOfflineLogDelivery(const Model::CreateDcdnDomainOfflineLogDeliveryRequest &request)const;
|
||||
void createDcdnDomainOfflineLogDeliveryAsync(const Model::CreateDcdnDomainOfflineLogDeliveryRequest& request, const CreateDcdnDomainOfflineLogDeliveryAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
CreateDcdnDomainOfflineLogDeliveryOutcomeCallable createDcdnDomainOfflineLogDeliveryCallable(const Model::CreateDcdnDomainOfflineLogDeliveryRequest& request) const;
|
||||
DeleteDcdnDomainOutcome deleteDcdnDomain(const Model::DeleteDcdnDomainRequest &request)const;
|
||||
void deleteDcdnDomainAsync(const Model::DeleteDcdnDomainRequest& request, const DeleteDcdnDomainAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DeleteDcdnDomainOutcomeCallable deleteDcdnDomainCallable(const Model::DeleteDcdnDomainRequest& request) const;
|
||||
@@ -720,6 +768,18 @@ namespace AlibabaCloud
|
||||
DescribeDcdnIpaUserDomainsOutcome describeDcdnIpaUserDomains(const Model::DescribeDcdnIpaUserDomainsRequest &request)const;
|
||||
void describeDcdnIpaUserDomainsAsync(const Model::DescribeDcdnIpaUserDomainsRequest& request, const DescribeDcdnIpaUserDomainsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DescribeDcdnIpaUserDomainsOutcomeCallable describeDcdnIpaUserDomainsCallable(const Model::DescribeDcdnIpaUserDomainsRequest& request) const;
|
||||
DescribeDcdnOfflineLogDeliveryOutcome describeDcdnOfflineLogDelivery(const Model::DescribeDcdnOfflineLogDeliveryRequest &request)const;
|
||||
void describeDcdnOfflineLogDeliveryAsync(const Model::DescribeDcdnOfflineLogDeliveryRequest& request, const DescribeDcdnOfflineLogDeliveryAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DescribeDcdnOfflineLogDeliveryOutcomeCallable describeDcdnOfflineLogDeliveryCallable(const Model::DescribeDcdnOfflineLogDeliveryRequest& request) const;
|
||||
DescribeDcdnOfflineLogDeliveryFieldOutcome describeDcdnOfflineLogDeliveryField(const Model::DescribeDcdnOfflineLogDeliveryFieldRequest &request)const;
|
||||
void describeDcdnOfflineLogDeliveryFieldAsync(const Model::DescribeDcdnOfflineLogDeliveryFieldRequest& request, const DescribeDcdnOfflineLogDeliveryFieldAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DescribeDcdnOfflineLogDeliveryFieldOutcomeCallable describeDcdnOfflineLogDeliveryFieldCallable(const Model::DescribeDcdnOfflineLogDeliveryFieldRequest& request) const;
|
||||
DescribeDcdnOfflineLogDeliveryRegionsOutcome describeDcdnOfflineLogDeliveryRegions(const Model::DescribeDcdnOfflineLogDeliveryRegionsRequest &request)const;
|
||||
void describeDcdnOfflineLogDeliveryRegionsAsync(const Model::DescribeDcdnOfflineLogDeliveryRegionsRequest& request, const DescribeDcdnOfflineLogDeliveryRegionsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DescribeDcdnOfflineLogDeliveryRegionsOutcomeCallable describeDcdnOfflineLogDeliveryRegionsCallable(const Model::DescribeDcdnOfflineLogDeliveryRegionsRequest& request) const;
|
||||
DescribeDcdnOfflineLogDeliveryStatusOutcome describeDcdnOfflineLogDeliveryStatus(const Model::DescribeDcdnOfflineLogDeliveryStatusRequest &request)const;
|
||||
void describeDcdnOfflineLogDeliveryStatusAsync(const Model::DescribeDcdnOfflineLogDeliveryStatusRequest& request, const DescribeDcdnOfflineLogDeliveryStatusAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DescribeDcdnOfflineLogDeliveryStatusOutcomeCallable describeDcdnOfflineLogDeliveryStatusCallable(const Model::DescribeDcdnOfflineLogDeliveryStatusRequest& request) const;
|
||||
DescribeDcdnRefreshQuotaOutcome describeDcdnRefreshQuota(const Model::DescribeDcdnRefreshQuotaRequest &request)const;
|
||||
void describeDcdnRefreshQuotaAsync(const Model::DescribeDcdnRefreshQuotaRequest& request, const DescribeDcdnRefreshQuotaAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DescribeDcdnRefreshQuotaOutcomeCallable describeDcdnRefreshQuotaCallable(const Model::DescribeDcdnRefreshQuotaRequest& request) const;
|
||||
@@ -747,6 +807,9 @@ namespace AlibabaCloud
|
||||
DescribeDcdnUserDomainsOutcome describeDcdnUserDomains(const Model::DescribeDcdnUserDomainsRequest &request)const;
|
||||
void describeDcdnUserDomainsAsync(const Model::DescribeDcdnUserDomainsRequest& request, const DescribeDcdnUserDomainsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DescribeDcdnUserDomainsOutcomeCallable describeDcdnUserDomainsCallable(const Model::DescribeDcdnUserDomainsRequest& request) const;
|
||||
DescribeDcdnUserDomainsByFuncOutcome describeDcdnUserDomainsByFunc(const Model::DescribeDcdnUserDomainsByFuncRequest &request)const;
|
||||
void describeDcdnUserDomainsByFuncAsync(const Model::DescribeDcdnUserDomainsByFuncRequest& request, const DescribeDcdnUserDomainsByFuncAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DescribeDcdnUserDomainsByFuncOutcomeCallable describeDcdnUserDomainsByFuncCallable(const Model::DescribeDcdnUserDomainsByFuncRequest& request) const;
|
||||
DescribeDcdnUserQuotaOutcome describeDcdnUserQuota(const Model::DescribeDcdnUserQuotaRequest &request)const;
|
||||
void describeDcdnUserQuotaAsync(const Model::DescribeDcdnUserQuotaRequest& request, const DescribeDcdnUserQuotaAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DescribeDcdnUserQuotaOutcomeCallable describeDcdnUserQuotaCallable(const Model::DescribeDcdnUserQuotaRequest& request) const;
|
||||
@@ -768,6 +831,15 @@ namespace AlibabaCloud
|
||||
DescribeUserDcdnStatusOutcome describeUserDcdnStatus(const Model::DescribeUserDcdnStatusRequest &request)const;
|
||||
void describeUserDcdnStatusAsync(const Model::DescribeUserDcdnStatusRequest& request, const DescribeUserDcdnStatusAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DescribeUserDcdnStatusOutcomeCallable describeUserDcdnStatusCallable(const Model::DescribeUserDcdnStatusRequest& request) const;
|
||||
DisableDcdnDomainOfflineLogDeliveryOutcome disableDcdnDomainOfflineLogDelivery(const Model::DisableDcdnDomainOfflineLogDeliveryRequest &request)const;
|
||||
void disableDcdnDomainOfflineLogDeliveryAsync(const Model::DisableDcdnDomainOfflineLogDeliveryRequest& request, const DisableDcdnDomainOfflineLogDeliveryAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DisableDcdnDomainOfflineLogDeliveryOutcomeCallable disableDcdnDomainOfflineLogDeliveryCallable(const Model::DisableDcdnDomainOfflineLogDeliveryRequest& request) const;
|
||||
DisableDcdnOfflineLogDeliveryOutcome disableDcdnOfflineLogDelivery(const Model::DisableDcdnOfflineLogDeliveryRequest &request)const;
|
||||
void disableDcdnOfflineLogDeliveryAsync(const Model::DisableDcdnOfflineLogDeliveryRequest& request, const DisableDcdnOfflineLogDeliveryAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DisableDcdnOfflineLogDeliveryOutcomeCallable disableDcdnOfflineLogDeliveryCallable(const Model::DisableDcdnOfflineLogDeliveryRequest& request) const;
|
||||
EnableDcdnDomainOfflineLogDeliveryOutcome enableDcdnDomainOfflineLogDelivery(const Model::EnableDcdnDomainOfflineLogDeliveryRequest &request)const;
|
||||
void enableDcdnDomainOfflineLogDeliveryAsync(const Model::EnableDcdnDomainOfflineLogDeliveryRequest& request, const EnableDcdnDomainOfflineLogDeliveryAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
EnableDcdnDomainOfflineLogDeliveryOutcomeCallable enableDcdnDomainOfflineLogDeliveryCallable(const Model::EnableDcdnDomainOfflineLogDeliveryRequest& request) const;
|
||||
ModifyDCdnDomainSchdmByPropertyOutcome modifyDCdnDomainSchdmByProperty(const Model::ModifyDCdnDomainSchdmByPropertyRequest &request)const;
|
||||
void modifyDCdnDomainSchdmByPropertyAsync(const Model::ModifyDCdnDomainSchdmByPropertyRequest& request, const ModifyDCdnDomainSchdmByPropertyAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
ModifyDCdnDomainSchdmByPropertyOutcomeCallable modifyDCdnDomainSchdmByPropertyCallable(const Model::ModifyDCdnDomainSchdmByPropertyRequest& request) const;
|
||||
|
||||
@@ -14,41 +14,44 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_EMR_MODEL_CREATEUSERSTATISTICSREQUEST_H_
|
||||
#define ALIBABACLOUD_EMR_MODEL_CREATEUSERSTATISTICSREQUEST_H_
|
||||
#ifndef ALIBABACLOUD_DCDN_MODEL_CREATEDCDNDOMAINOFFLINELOGDELIVERYREQUEST_H_
|
||||
#define ALIBABACLOUD_DCDN_MODEL_CREATEDCDNDOMAINOFFLINELOGDELIVERYREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/emr/EmrExport.h>
|
||||
#include <alibabacloud/dcdn/DcdnExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Emr
|
||||
namespace Dcdn
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_EMR_EXPORT CreateUserStatisticsRequest : public RpcServiceRequest
|
||||
class ALIBABACLOUD_DCDN_EXPORT CreateDcdnDomainOfflineLogDeliveryRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
CreateUserStatisticsRequest();
|
||||
~CreateUserStatisticsRequest();
|
||||
CreateDcdnDomainOfflineLogDeliveryRequest();
|
||||
~CreateDcdnDomainOfflineLogDeliveryRequest();
|
||||
|
||||
long getResourceOwnerId()const;
|
||||
void setResourceOwnerId(long resourceOwnerId);
|
||||
std::string getRegionId()const;
|
||||
void setRegionId(const std::string& regionId);
|
||||
std::string getAccessKeyId()const;
|
||||
void setAccessKeyId(const std::string& accessKeyId);
|
||||
std::string getDomainName()const;
|
||||
void setDomainName(const std::string& domainName);
|
||||
long getOwnerId()const;
|
||||
void setOwnerId(long ownerId);
|
||||
std::string getFieldId()const;
|
||||
void setFieldId(const std::string& fieldId);
|
||||
|
||||
private:
|
||||
long resourceOwnerId_;
|
||||
std::string regionId_;
|
||||
std::string accessKeyId_;
|
||||
std::string domainName_;
|
||||
long ownerId_;
|
||||
std::string fieldId_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_EMR_MODEL_CREATEUSERSTATISTICSREQUEST_H_
|
||||
#endif // !ALIBABACLOUD_DCDN_MODEL_CREATEDCDNDOMAINOFFLINELOGDELIVERYREQUEST_H_
|
||||
@@ -14,29 +14,29 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_EMR_MODEL_MODIFYCLUSTERSERVICECONFIGFORADMINRESULT_H_
|
||||
#define ALIBABACLOUD_EMR_MODEL_MODIFYCLUSTERSERVICECONFIGFORADMINRESULT_H_
|
||||
#ifndef ALIBABACLOUD_DCDN_MODEL_CREATEDCDNDOMAINOFFLINELOGDELIVERYRESULT_H_
|
||||
#define ALIBABACLOUD_DCDN_MODEL_CREATEDCDNDOMAINOFFLINELOGDELIVERYRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/emr/EmrExport.h>
|
||||
#include <alibabacloud/dcdn/DcdnExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Emr
|
||||
namespace Dcdn
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_EMR_EXPORT ModifyClusterServiceConfigForAdminResult : public ServiceResult
|
||||
class ALIBABACLOUD_DCDN_EXPORT CreateDcdnDomainOfflineLogDeliveryResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
|
||||
|
||||
ModifyClusterServiceConfigForAdminResult();
|
||||
explicit ModifyClusterServiceConfigForAdminResult(const std::string &payload);
|
||||
~ModifyClusterServiceConfigForAdminResult();
|
||||
CreateDcdnDomainOfflineLogDeliveryResult();
|
||||
explicit CreateDcdnDomainOfflineLogDeliveryResult(const std::string &payload);
|
||||
~CreateDcdnDomainOfflineLogDeliveryResult();
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
@@ -46,4 +46,4 @@ namespace AlibabaCloud
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_EMR_MODEL_MODIFYCLUSTERSERVICECONFIGFORADMINRESULT_H_
|
||||
#endif // !ALIBABACLOUD_DCDN_MODEL_CREATEDCDNDOMAINOFFLINELOGDELIVERYRESULT_H_
|
||||
@@ -41,8 +41,6 @@ namespace AlibabaCloud
|
||||
void setDomainName(const std::string& domainName);
|
||||
long getOwnerId()const;
|
||||
void setOwnerId(long ownerId);
|
||||
std::string getResourceGroupId()const;
|
||||
void setResourceGroupId(const std::string& resourceGroupId);
|
||||
std::string getSecurityToken()const;
|
||||
void setSecurityToken(const std::string& securityToken);
|
||||
|
||||
@@ -50,7 +48,6 @@ namespace AlibabaCloud
|
||||
std::string ownerAccount_;
|
||||
std::string domainName_;
|
||||
long ownerId_;
|
||||
std::string resourceGroupId_;
|
||||
std::string securityToken_;
|
||||
|
||||
};
|
||||
|
||||
@@ -35,23 +35,20 @@ namespace AlibabaCloud
|
||||
DeleteDcdnIpaDomainRequest();
|
||||
~DeleteDcdnIpaDomainRequest();
|
||||
|
||||
std::string getResourceGroupId()const;
|
||||
void setResourceGroupId(const std::string& resourceGroupId);
|
||||
std::string getSecurityToken()const;
|
||||
void setSecurityToken(const std::string& securityToken);
|
||||
std::string getOwnerAccount()const;
|
||||
void setOwnerAccount(const std::string& ownerAccount);
|
||||
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 resourceGroupId_;
|
||||
std::string securityToken_;
|
||||
std::string ownerAccount_;
|
||||
std::string domainName_;
|
||||
long ownerId_;
|
||||
std::string securityToken_;
|
||||
|
||||
};
|
||||
}
|
||||
|
||||
@@ -35,22 +35,19 @@ namespace AlibabaCloud
|
||||
DescribeDcdnDomainTopReferVisitRequest();
|
||||
~DescribeDcdnDomainTopReferVisitRequest();
|
||||
|
||||
std::string getDomainName()const;
|
||||
void setDomainName(const std::string& domainName);
|
||||
std::string getStartTime()const;
|
||||
void setStartTime(const std::string& startTime);
|
||||
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);
|
||||
std::string getSortBy()const;
|
||||
void setSortBy(const std::string& sortBy);
|
||||
|
||||
private:
|
||||
std::string domainName_;
|
||||
std::string startTime_;
|
||||
std::string domainName_;
|
||||
long ownerId_;
|
||||
std::string securityToken_;
|
||||
std::string sortBy_;
|
||||
|
||||
};
|
||||
|
||||
@@ -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_DCDN_MODEL_DESCRIBEDCDNOFFLINELOGDELIVERYFIELDREQUEST_H_
|
||||
#define ALIBABACLOUD_DCDN_MODEL_DESCRIBEDCDNOFFLINELOGDELIVERYFIELDREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/dcdn/DcdnExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Dcdn
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_DCDN_EXPORT DescribeDcdnOfflineLogDeliveryFieldRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
DescribeDcdnOfflineLogDeliveryFieldRequest();
|
||||
~DescribeDcdnOfflineLogDeliveryFieldRequest();
|
||||
|
||||
long getOwnerId()const;
|
||||
void setOwnerId(long ownerId);
|
||||
|
||||
private:
|
||||
long ownerId_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_DCDN_MODEL_DESCRIBEDCDNOFFLINELOGDELIVERYFIELDREQUEST_H_
|
||||
@@ -14,44 +14,44 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_HITSDB_MODEL_EXPLOREHITSDBINSTANCEDATATAGKEYLISTRESULT_H_
|
||||
#define ALIBABACLOUD_HITSDB_MODEL_EXPLOREHITSDBINSTANCEDATATAGKEYLISTRESULT_H_
|
||||
#ifndef ALIBABACLOUD_DCDN_MODEL_DESCRIBEDCDNOFFLINELOGDELIVERYFIELDRESULT_H_
|
||||
#define ALIBABACLOUD_DCDN_MODEL_DESCRIBEDCDNOFFLINELOGDELIVERYFIELDRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/hitsdb/HitsdbExport.h>
|
||||
#include <alibabacloud/dcdn/DcdnExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Hitsdb
|
||||
namespace Dcdn
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_HITSDB_EXPORT ExploreHiTSDBInstanceDataTagKeyListResult : public ServiceResult
|
||||
class ALIBABACLOUD_DCDN_EXPORT DescribeDcdnOfflineLogDeliveryFieldResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct Data
|
||||
struct Field
|
||||
{
|
||||
std::string tagKey;
|
||||
std::string description;
|
||||
std::string fieldId;
|
||||
std::string fieldName;
|
||||
};
|
||||
|
||||
|
||||
ExploreHiTSDBInstanceDataTagKeyListResult();
|
||||
explicit ExploreHiTSDBInstanceDataTagKeyListResult(const std::string &payload);
|
||||
~ExploreHiTSDBInstanceDataTagKeyListResult();
|
||||
std::string getInstanceId()const;
|
||||
std::vector<Data> getTagKeyList()const;
|
||||
DescribeDcdnOfflineLogDeliveryFieldResult();
|
||||
explicit DescribeDcdnOfflineLogDeliveryFieldResult(const std::string &payload);
|
||||
~DescribeDcdnOfflineLogDeliveryFieldResult();
|
||||
std::vector<Field> getFields()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::string instanceId_;
|
||||
std::vector<Data> tagKeyList_;
|
||||
std::vector<Field> fields_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_HITSDB_MODEL_EXPLOREHITSDBINSTANCEDATATAGKEYLISTRESULT_H_
|
||||
#endif // !ALIBABACLOUD_DCDN_MODEL_DESCRIBEDCDNOFFLINELOGDELIVERYFIELDRESULT_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_DCDN_MODEL_DESCRIBEDCDNOFFLINELOGDELIVERYREGIONSREQUEST_H_
|
||||
#define ALIBABACLOUD_DCDN_MODEL_DESCRIBEDCDNOFFLINELOGDELIVERYREGIONSREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/dcdn/DcdnExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Dcdn
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_DCDN_EXPORT DescribeDcdnOfflineLogDeliveryRegionsRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
DescribeDcdnOfflineLogDeliveryRegionsRequest();
|
||||
~DescribeDcdnOfflineLogDeliveryRegionsRequest();
|
||||
|
||||
long getOwnerId()const;
|
||||
void setOwnerId(long ownerId);
|
||||
|
||||
private:
|
||||
long ownerId_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_DCDN_MODEL_DESCRIBEDCDNOFFLINELOGDELIVERYREGIONSREQUEST_H_
|
||||
@@ -14,44 +14,51 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_HITSDB_MODEL_EXPLOREHITSDBINSTANCEDATATAGVALUELISTRESULT_H_
|
||||
#define ALIBABACLOUD_HITSDB_MODEL_EXPLOREHITSDBINSTANCEDATATAGVALUELISTRESULT_H_
|
||||
#ifndef ALIBABACLOUD_DCDN_MODEL_DESCRIBEDCDNOFFLINELOGDELIVERYREGIONSRESULT_H_
|
||||
#define ALIBABACLOUD_DCDN_MODEL_DESCRIBEDCDNOFFLINELOGDELIVERYREGIONSRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/hitsdb/HitsdbExport.h>
|
||||
#include <alibabacloud/dcdn/DcdnExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Hitsdb
|
||||
namespace Dcdn
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_HITSDB_EXPORT ExploreHiTSDBInstanceDataTagValueListResult : public ServiceResult
|
||||
class ALIBABACLOUD_DCDN_EXPORT DescribeDcdnOfflineLogDeliveryRegionsResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct Data
|
||||
struct Area
|
||||
{
|
||||
std::string tagValue;
|
||||
struct RegionInfo
|
||||
{
|
||||
std::string isOverseas;
|
||||
std::string ossEndpoint;
|
||||
std::string regionName;
|
||||
std::string regionId;
|
||||
};
|
||||
std::string areaName;
|
||||
std::string areaId;
|
||||
std::vector<Area::RegionInfo> regionInfos;
|
||||
};
|
||||
|
||||
|
||||
ExploreHiTSDBInstanceDataTagValueListResult();
|
||||
explicit ExploreHiTSDBInstanceDataTagValueListResult(const std::string &payload);
|
||||
~ExploreHiTSDBInstanceDataTagValueListResult();
|
||||
std::string getInstanceId()const;
|
||||
std::vector<Data> getTagValueList()const;
|
||||
DescribeDcdnOfflineLogDeliveryRegionsResult();
|
||||
explicit DescribeDcdnOfflineLogDeliveryRegionsResult(const std::string &payload);
|
||||
~DescribeDcdnOfflineLogDeliveryRegionsResult();
|
||||
std::vector<Area> getAreas()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::string instanceId_;
|
||||
std::vector<Data> tagValueList_;
|
||||
std::vector<Area> areas_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_HITSDB_MODEL_EXPLOREHITSDBINSTANCEDATATAGVALUELISTRESULT_H_
|
||||
#endif // !ALIBABACLOUD_DCDN_MODEL_DESCRIBEDCDNOFFLINELOGDELIVERYREGIONSRESULT_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_DCDN_MODEL_DESCRIBEDCDNOFFLINELOGDELIVERYREQUEST_H_
|
||||
#define ALIBABACLOUD_DCDN_MODEL_DESCRIBEDCDNOFFLINELOGDELIVERYREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/dcdn/DcdnExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Dcdn
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_DCDN_EXPORT DescribeDcdnOfflineLogDeliveryRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
DescribeDcdnOfflineLogDeliveryRequest();
|
||||
~DescribeDcdnOfflineLogDeliveryRequest();
|
||||
|
||||
long getOwnerId()const;
|
||||
void setOwnerId(long ownerId);
|
||||
|
||||
private:
|
||||
long ownerId_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_DCDN_MODEL_DESCRIBEDCDNOFFLINELOGDELIVERYREQUEST_H_
|
||||
@@ -0,0 +1,74 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_DCDN_MODEL_DESCRIBEDCDNOFFLINELOGDELIVERYRESULT_H_
|
||||
#define ALIBABACLOUD_DCDN_MODEL_DESCRIBEDCDNOFFLINELOGDELIVERYRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/dcdn/DcdnExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Dcdn
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_DCDN_EXPORT DescribeDcdnOfflineLogDeliveryResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct Domain
|
||||
{
|
||||
std::string domainName;
|
||||
};
|
||||
struct Region
|
||||
{
|
||||
std::string dlaVcName;
|
||||
std::string areaName;
|
||||
std::string ossPathPrefix;
|
||||
std::string isOverseas;
|
||||
std::string ossEndpoint;
|
||||
int ossId;
|
||||
std::string regionName;
|
||||
std::string dlaTableName;
|
||||
std::string areaId;
|
||||
std::string ossBucketName;
|
||||
std::string regionId;
|
||||
std::string dlaDbName;
|
||||
};
|
||||
|
||||
|
||||
DescribeDcdnOfflineLogDeliveryResult();
|
||||
explicit DescribeDcdnOfflineLogDeliveryResult(const std::string &payload);
|
||||
~DescribeDcdnOfflineLogDeliveryResult();
|
||||
std::vector<Domain> getDomains()const;
|
||||
std::vector<std::string> getFields()const;
|
||||
std::vector<Region> getRegions()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::vector<Domain> domains_;
|
||||
std::vector<std::string> fields_;
|
||||
std::vector<Region> regions_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_DCDN_MODEL_DESCRIBEDCDNOFFLINELOGDELIVERYRESULT_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_DCDN_MODEL_DESCRIBEDCDNOFFLINELOGDELIVERYSTATUSREQUEST_H_
|
||||
#define ALIBABACLOUD_DCDN_MODEL_DESCRIBEDCDNOFFLINELOGDELIVERYSTATUSREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/dcdn/DcdnExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Dcdn
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_DCDN_EXPORT DescribeDcdnOfflineLogDeliveryStatusRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
DescribeDcdnOfflineLogDeliveryStatusRequest();
|
||||
~DescribeDcdnOfflineLogDeliveryStatusRequest();
|
||||
|
||||
long getOwnerId()const;
|
||||
void setOwnerId(long ownerId);
|
||||
|
||||
private:
|
||||
long ownerId_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_DCDN_MODEL_DESCRIBEDCDNOFFLINELOGDELIVERYSTATUSREQUEST_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_DCDN_MODEL_DESCRIBEDCDNOFFLINELOGDELIVERYSTATUSRESULT_H_
|
||||
#define ALIBABACLOUD_DCDN_MODEL_DESCRIBEDCDNOFFLINELOGDELIVERYSTATUSRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/dcdn/DcdnExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Dcdn
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_DCDN_EXPORT DescribeDcdnOfflineLogDeliveryStatusResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
|
||||
|
||||
DescribeDcdnOfflineLogDeliveryStatusResult();
|
||||
explicit DescribeDcdnOfflineLogDeliveryStatusResult(const std::string &payload);
|
||||
~DescribeDcdnOfflineLogDeliveryStatusResult();
|
||||
std::string getOpenStatus()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::string openStatus_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_DCDN_MODEL_DESCRIBEDCDNOFFLINELOGDELIVERYSTATUSRESULT_H_
|
||||
@@ -14,47 +14,47 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_EMR_MODEL_LISTJOBEXECUTIONPLANHIERARCHYREQUEST_H_
|
||||
#define ALIBABACLOUD_EMR_MODEL_LISTJOBEXECUTIONPLANHIERARCHYREQUEST_H_
|
||||
#ifndef ALIBABACLOUD_DCDN_MODEL_DESCRIBEDCDNUSERDOMAINSBYFUNCREQUEST_H_
|
||||
#define ALIBABACLOUD_DCDN_MODEL_DESCRIBEDCDNUSERDOMAINSBYFUNCREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/emr/EmrExport.h>
|
||||
#include <alibabacloud/dcdn/DcdnExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Emr
|
||||
namespace Dcdn
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_EMR_EXPORT ListJobExecutionPlanHierarchyRequest : public RpcServiceRequest
|
||||
class ALIBABACLOUD_DCDN_EXPORT DescribeDcdnUserDomainsByFuncRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
ListJobExecutionPlanHierarchyRequest();
|
||||
~ListJobExecutionPlanHierarchyRequest();
|
||||
DescribeDcdnUserDomainsByFuncRequest();
|
||||
~DescribeDcdnUserDomainsByFuncRequest();
|
||||
|
||||
long getResourceOwnerId()const;
|
||||
void setResourceOwnerId(long resourceOwnerId);
|
||||
long getCurrentId()const;
|
||||
void setCurrentId(long currentId);
|
||||
int getPageSize()const;
|
||||
void setPageSize(int pageSize);
|
||||
int getPageNumber()const;
|
||||
void setPageNumber(int pageNumber);
|
||||
std::string getAccessKeyId()const;
|
||||
void setAccessKeyId(const std::string& accessKeyId);
|
||||
std::string getResourceGroupId()const;
|
||||
void setResourceGroupId(const std::string& resourceGroupId);
|
||||
int getPageSize()const;
|
||||
void setPageSize(int pageSize);
|
||||
long getOwnerId()const;
|
||||
void setOwnerId(long ownerId);
|
||||
int getFuncId()const;
|
||||
void setFuncId(int funcId);
|
||||
|
||||
private:
|
||||
long resourceOwnerId_;
|
||||
long currentId_;
|
||||
int pageSize_;
|
||||
int pageNumber_;
|
||||
std::string accessKeyId_;
|
||||
std::string resourceGroupId_;
|
||||
int pageSize_;
|
||||
long ownerId_;
|
||||
int funcId_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_EMR_MODEL_LISTJOBEXECUTIONPLANHIERARCHYREQUEST_H_
|
||||
#endif // !ALIBABACLOUD_DCDN_MODEL_DESCRIBEDCDNUSERDOMAINSBYFUNCREQUEST_H_
|
||||
@@ -0,0 +1,79 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_DCDN_MODEL_DESCRIBEDCDNUSERDOMAINSBYFUNCRESULT_H_
|
||||
#define ALIBABACLOUD_DCDN_MODEL_DESCRIBEDCDNUSERDOMAINSBYFUNCRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/dcdn/DcdnExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Dcdn
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_DCDN_EXPORT DescribeDcdnUserDomainsByFuncResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct PageData
|
||||
{
|
||||
struct Source
|
||||
{
|
||||
std::string type;
|
||||
std::string content;
|
||||
std::string priority;
|
||||
int port;
|
||||
std::string weight;
|
||||
};
|
||||
std::string description;
|
||||
std::string sslProtocol;
|
||||
std::string resourceGroupId;
|
||||
std::string domainName;
|
||||
std::string gmtModified;
|
||||
std::string cdnType;
|
||||
std::string gmtCreated;
|
||||
std::vector<PageData::Source> sources;
|
||||
std::string cname;
|
||||
std::string domainStatus;
|
||||
std::string sandbox;
|
||||
};
|
||||
|
||||
|
||||
DescribeDcdnUserDomainsByFuncResult();
|
||||
explicit DescribeDcdnUserDomainsByFuncResult(const std::string &payload);
|
||||
~DescribeDcdnUserDomainsByFuncResult();
|
||||
std::vector<PageData> getDomains()const;
|
||||
long getTotalCount()const;
|
||||
long getPageSize()const;
|
||||
long getPageNumber()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::vector<PageData> domains_;
|
||||
long totalCount_;
|
||||
long pageSize_;
|
||||
long pageNumber_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_DCDN_MODEL_DESCRIBEDCDNUSERDOMAINSBYFUNCRESULT_H_
|
||||
@@ -14,41 +14,38 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_EMR_MODEL_KILLFLOWREQUEST_H_
|
||||
#define ALIBABACLOUD_EMR_MODEL_KILLFLOWREQUEST_H_
|
||||
#ifndef ALIBABACLOUD_DCDN_MODEL_DISABLEDCDNDOMAINOFFLINELOGDELIVERYREQUEST_H_
|
||||
#define ALIBABACLOUD_DCDN_MODEL_DISABLEDCDNDOMAINOFFLINELOGDELIVERYREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/emr/EmrExport.h>
|
||||
#include <alibabacloud/dcdn/DcdnExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Emr
|
||||
namespace Dcdn
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_EMR_EXPORT KillFlowRequest : public RpcServiceRequest
|
||||
class ALIBABACLOUD_DCDN_EXPORT DisableDcdnDomainOfflineLogDeliveryRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
KillFlowRequest();
|
||||
~KillFlowRequest();
|
||||
DisableDcdnDomainOfflineLogDeliveryRequest();
|
||||
~DisableDcdnDomainOfflineLogDeliveryRequest();
|
||||
|
||||
std::string getFlowInstanceId()const;
|
||||
void setFlowInstanceId(const std::string& flowInstanceId);
|
||||
std::string getRegionId()const;
|
||||
void setRegionId(const std::string& regionId);
|
||||
std::string getProjectId()const;
|
||||
void setProjectId(const std::string& projectId);
|
||||
std::string getDomainName()const;
|
||||
void setDomainName(const std::string& domainName);
|
||||
long getOwnerId()const;
|
||||
void setOwnerId(long ownerId);
|
||||
|
||||
private:
|
||||
std::string flowInstanceId_;
|
||||
std::string regionId_;
|
||||
std::string projectId_;
|
||||
std::string domainName_;
|
||||
long ownerId_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_EMR_MODEL_KILLFLOWREQUEST_H_
|
||||
#endif // !ALIBABACLOUD_DCDN_MODEL_DISABLEDCDNDOMAINOFFLINELOGDELIVERYREQUEST_H_
|
||||
@@ -14,40 +14,36 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_EMR_MODEL_ADDRESOURCETOUSERSRESULT_H_
|
||||
#define ALIBABACLOUD_EMR_MODEL_ADDRESOURCETOUSERSRESULT_H_
|
||||
#ifndef ALIBABACLOUD_DCDN_MODEL_DISABLEDCDNDOMAINOFFLINELOGDELIVERYRESULT_H_
|
||||
#define ALIBABACLOUD_DCDN_MODEL_DISABLEDCDNDOMAINOFFLINELOGDELIVERYRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/emr/EmrExport.h>
|
||||
#include <alibabacloud/dcdn/DcdnExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Emr
|
||||
namespace Dcdn
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_EMR_EXPORT AddResourceToUsersResult : public ServiceResult
|
||||
class ALIBABACLOUD_DCDN_EXPORT DisableDcdnDomainOfflineLogDeliveryResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
|
||||
|
||||
AddResourceToUsersResult();
|
||||
explicit AddResourceToUsersResult(const std::string &payload);
|
||||
~AddResourceToUsersResult();
|
||||
bool getPaging()const;
|
||||
bool getData()const;
|
||||
DisableDcdnDomainOfflineLogDeliveryResult();
|
||||
explicit DisableDcdnDomainOfflineLogDeliveryResult(const std::string &payload);
|
||||
~DisableDcdnDomainOfflineLogDeliveryResult();
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
bool paging_;
|
||||
bool data_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_EMR_MODEL_ADDRESOURCETOUSERSRESULT_H_
|
||||
#endif // !ALIBABACLOUD_DCDN_MODEL_DISABLEDCDNDOMAINOFFLINELOGDELIVERYRESULT_H_
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user