Compare commits
4 Commits
scdn-patch
...
ARMS-patch
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
4b1cbc0461 | ||
|
|
49feb2bedd | ||
|
|
45daf26fac | ||
|
|
a9e22f8d11 |
12
CHANGELOG
12
CHANGELOG
@@ -1,3 +1,15 @@
|
||||
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.
|
||||
|
||||
|
||||
@@ -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_
|
||||
51
arms/include/alibabacloud/arms/model/ApplyScenarioResult.h
Normal file
51
arms/include/alibabacloud/arms/model/ApplyScenarioResult.h
Normal file
@@ -0,0 +1,51 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_ARMS_MODEL_APPLYSCENARIORESULT_H_
|
||||
#define ALIBABACLOUD_ARMS_MODEL_APPLYSCENARIORESULT_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 ApplyScenarioResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
|
||||
|
||||
ApplyScenarioResult();
|
||||
explicit ApplyScenarioResult(const std::string &payload);
|
||||
~ApplyScenarioResult();
|
||||
std::string getResult()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::string result_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_ARMS_MODEL_APPLYSCENARIORESULT_H_
|
||||
48
arms/include/alibabacloud/arms/model/DeleteScenarioRequest.h
Normal file
48
arms/include/alibabacloud/arms/model/DeleteScenarioRequest.h
Normal file
@@ -0,0 +1,48 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_ARMS_MODEL_DELETESCENARIOREQUEST_H_
|
||||
#define ALIBABACLOUD_ARMS_MODEL_DELETESCENARIOREQUEST_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 DeleteScenarioRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
DeleteScenarioRequest();
|
||||
~DeleteScenarioRequest();
|
||||
|
||||
long getScenarioId()const;
|
||||
void setScenarioId(long scenarioId);
|
||||
|
||||
private:
|
||||
long scenarioId_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_ARMS_MODEL_DELETESCENARIOREQUEST_H_
|
||||
51
arms/include/alibabacloud/arms/model/DeleteScenarioResult.h
Normal file
51
arms/include/alibabacloud/arms/model/DeleteScenarioResult.h
Normal file
@@ -0,0 +1,51 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_ARMS_MODEL_DELETESCENARIORESULT_H_
|
||||
#define ALIBABACLOUD_ARMS_MODEL_DELETESCENARIORESULT_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 DeleteScenarioResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
|
||||
|
||||
DeleteScenarioResult();
|
||||
explicit DeleteScenarioResult(const std::string &payload);
|
||||
~DeleteScenarioResult();
|
||||
bool getResult()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
bool result_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_ARMS_MODEL_DELETESCENARIORESULT_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_ARMS_MODEL_GETAGENTDOWNLOADURLREQUEST_H_
|
||||
#define ALIBABACLOUD_ARMS_MODEL_GETAGENTDOWNLOADURLREQUEST_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 GetAgentDownloadUrlRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
GetAgentDownloadUrlRequest();
|
||||
~GetAgentDownloadUrlRequest();
|
||||
|
||||
std::string getRegionId()const;
|
||||
void setRegionId(const std::string& regionId);
|
||||
|
||||
private:
|
||||
std::string regionId_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#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_;
|
||||
|
||||
};
|
||||
}
|
||||
|
||||
60
arms/include/alibabacloud/arms/model/ListScenarioRequest.h
Normal file
60
arms/include/alibabacloud/arms/model/ListScenarioRequest.h
Normal file
@@ -0,0 +1,60 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_ARMS_MODEL_LISTSCENARIOREQUEST_H_
|
||||
#define ALIBABACLOUD_ARMS_MODEL_LISTSCENARIOREQUEST_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 ListScenarioRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
ListScenarioRequest();
|
||||
~ListScenarioRequest();
|
||||
|
||||
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 getSign()const;
|
||||
void setSign(const std::string& sign);
|
||||
|
||||
private:
|
||||
std::string regionId_;
|
||||
std::string scenario_;
|
||||
std::string appId_;
|
||||
std::string name_;
|
||||
std::string sign_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_ARMS_MODEL_LISTSCENARIOREQUEST_H_
|
||||
63
arms/include/alibabacloud/arms/model/ListScenarioResult.h
Normal file
63
arms/include/alibabacloud/arms/model/ListScenarioResult.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_ARMS_MODEL_LISTSCENARIORESULT_H_
|
||||
#define ALIBABACLOUD_ARMS_MODEL_LISTSCENARIORESULT_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 ListScenarioResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct ArmsScenariosItem
|
||||
{
|
||||
std::string appId;
|
||||
std::string userId;
|
||||
std::string createTime;
|
||||
std::string updateTime;
|
||||
std::string sign;
|
||||
long id;
|
||||
std::string regionId;
|
||||
std::string extensions;
|
||||
std::string name;
|
||||
};
|
||||
|
||||
|
||||
ListScenarioResult();
|
||||
explicit ListScenarioResult(const std::string &payload);
|
||||
~ListScenarioResult();
|
||||
std::vector<ArmsScenariosItem> getArmsScenarios()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::vector<ArmsScenariosItem> armsScenarios_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#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_
|
||||
51
arms/include/alibabacloud/arms/model/OpenArmsServiceResult.h
Normal file
51
arms/include/alibabacloud/arms/model/OpenArmsServiceResult.h
Normal file
@@ -0,0 +1,51 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_ARMS_MODEL_OPENARMSSERVICERESULT_H_
|
||||
#define ALIBABACLOUD_ARMS_MODEL_OPENARMSSERVICERESULT_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 OpenArmsServiceResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
|
||||
|
||||
OpenArmsServiceResult();
|
||||
explicit OpenArmsServiceResult(const std::string &payload);
|
||||
~OpenArmsServiceResult();
|
||||
std::string getOrderId()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::string orderId_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#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);
|
||||
}
|
||||
|
||||
51
arms/src/model/GetAgentDownloadUrlResult.cc
Normal file
51
arms/src/model/GetAgentDownloadUrlResult.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/GetAgentDownloadUrlResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::ARMS;
|
||||
using namespace AlibabaCloud::ARMS::Model;
|
||||
|
||||
GetAgentDownloadUrlResult::GetAgentDownloadUrlResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
GetAgentDownloadUrlResult::GetAgentDownloadUrlResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
GetAgentDownloadUrlResult::~GetAgentDownloadUrlResult()
|
||||
{}
|
||||
|
||||
void GetAgentDownloadUrlResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["ArmsAgentDownloadUrl"].isNull())
|
||||
armsAgentDownloadUrl_ = value["ArmsAgentDownloadUrl"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string GetAgentDownloadUrlResult::getArmsAgentDownloadUrl()const
|
||||
{
|
||||
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);
|
||||
}
|
||||
|
||||
51
arms/src/model/OpenArmsServiceResult.cc
Normal file
51
arms/src/model/OpenArmsServiceResult.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/OpenArmsServiceResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::ARMS;
|
||||
using namespace AlibabaCloud::ARMS::Model;
|
||||
|
||||
OpenArmsServiceResult::OpenArmsServiceResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
OpenArmsServiceResult::OpenArmsServiceResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
OpenArmsServiceResult::~OpenArmsServiceResult()
|
||||
{}
|
||||
|
||||
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_ = value["OrderId"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string OpenArmsServiceResult::getOrderId()const
|
||||
{
|
||||
return orderId_;
|
||||
}
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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())
|
||||
|
||||
@@ -133,7 +133,7 @@ void ListQualityResultsByEntityResult::parse(const std::string &payload)
|
||||
{
|
||||
QualityResults::RuleChecksItem::ReferenceValueItem referenceValueObject;
|
||||
if(!qualityResultsNodeRuleChecksRuleChecksItemReferenceValueReferenceValueItem["BizDate"].isNull())
|
||||
referenceValueObject.bizDate = std::stol(qualityResultsNodeRuleChecksRuleChecksItemReferenceValueReferenceValueItem["BizDate"].asString());
|
||||
referenceValueObject.bizDate = qualityResultsNodeRuleChecksRuleChecksItemReferenceValueReferenceValueItem["BizDate"].asString();
|
||||
if(!qualityResultsNodeRuleChecksRuleChecksItemReferenceValueReferenceValueItem["DiscreteProperty"].isNull())
|
||||
referenceValueObject.discreteProperty = qualityResultsNodeRuleChecksRuleChecksItemReferenceValueReferenceValueItem["DiscreteProperty"].asString();
|
||||
if(!qualityResultsNodeRuleChecksRuleChecksItemReferenceValueReferenceValueItem["Value"].isNull())
|
||||
@@ -149,7 +149,7 @@ void ListQualityResultsByEntityResult::parse(const std::string &payload)
|
||||
{
|
||||
QualityResults::RuleChecksItem::SampleValueItem sampleValueObject;
|
||||
if(!qualityResultsNodeRuleChecksRuleChecksItemSampleValueSampleValueItem["BizDate"].isNull())
|
||||
sampleValueObject.bizDate = std::stol(qualityResultsNodeRuleChecksRuleChecksItemSampleValueSampleValueItem["BizDate"].asString());
|
||||
sampleValueObject.bizDate = qualityResultsNodeRuleChecksRuleChecksItemSampleValueSampleValueItem["BizDate"].asString();
|
||||
if(!qualityResultsNodeRuleChecksRuleChecksItemSampleValueSampleValueItem["DiscreteProperty"].isNull())
|
||||
sampleValueObject.discreteProperty = qualityResultsNodeRuleChecksRuleChecksItemSampleValueSampleValueItem["DiscreteProperty"].asString();
|
||||
if(!qualityResultsNodeRuleChecksRuleChecksItemSampleValueSampleValueItem["Value"].isNull())
|
||||
|
||||
@@ -27,6 +27,8 @@ set(imagerecog_public_header_model
|
||||
include/alibabacloud/imagerecog/model/DetectFruitsResult.h
|
||||
include/alibabacloud/imagerecog/model/DetectImageElementsRequest.h
|
||||
include/alibabacloud/imagerecog/model/DetectImageElementsResult.h
|
||||
include/alibabacloud/imagerecog/model/EvaluateCertificateQualityRequest.h
|
||||
include/alibabacloud/imagerecog/model/EvaluateCertificateQualityResult.h
|
||||
include/alibabacloud/imagerecog/model/RecognizeImageColorRequest.h
|
||||
include/alibabacloud/imagerecog/model/RecognizeImageColorResult.h
|
||||
include/alibabacloud/imagerecog/model/RecognizeImageStyleRequest.h
|
||||
@@ -48,6 +50,8 @@ set(imagerecog_src
|
||||
src/model/DetectFruitsResult.cc
|
||||
src/model/DetectImageElementsRequest.cc
|
||||
src/model/DetectImageElementsResult.cc
|
||||
src/model/EvaluateCertificateQualityRequest.cc
|
||||
src/model/EvaluateCertificateQualityResult.cc
|
||||
src/model/RecognizeImageColorRequest.cc
|
||||
src/model/RecognizeImageColorResult.cc
|
||||
src/model/RecognizeImageStyleRequest.cc
|
||||
|
||||
@@ -28,6 +28,8 @@
|
||||
#include "model/DetectFruitsResult.h"
|
||||
#include "model/DetectImageElementsRequest.h"
|
||||
#include "model/DetectImageElementsResult.h"
|
||||
#include "model/EvaluateCertificateQualityRequest.h"
|
||||
#include "model/EvaluateCertificateQualityResult.h"
|
||||
#include "model/RecognizeImageColorRequest.h"
|
||||
#include "model/RecognizeImageColorResult.h"
|
||||
#include "model/RecognizeImageStyleRequest.h"
|
||||
@@ -58,6 +60,9 @@ namespace AlibabaCloud
|
||||
typedef Outcome<Error, Model::DetectImageElementsResult> DetectImageElementsOutcome;
|
||||
typedef std::future<DetectImageElementsOutcome> DetectImageElementsOutcomeCallable;
|
||||
typedef std::function<void(const ImagerecogClient*, const Model::DetectImageElementsRequest&, const DetectImageElementsOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DetectImageElementsAsyncHandler;
|
||||
typedef Outcome<Error, Model::EvaluateCertificateQualityResult> EvaluateCertificateQualityOutcome;
|
||||
typedef std::future<EvaluateCertificateQualityOutcome> EvaluateCertificateQualityOutcomeCallable;
|
||||
typedef std::function<void(const ImagerecogClient*, const Model::EvaluateCertificateQualityRequest&, const EvaluateCertificateQualityOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> EvaluateCertificateQualityAsyncHandler;
|
||||
typedef Outcome<Error, Model::RecognizeImageColorResult> RecognizeImageColorOutcome;
|
||||
typedef std::future<RecognizeImageColorOutcome> RecognizeImageColorOutcomeCallable;
|
||||
typedef std::function<void(const ImagerecogClient*, const Model::RecognizeImageColorRequest&, const RecognizeImageColorOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> RecognizeImageColorAsyncHandler;
|
||||
@@ -90,6 +95,9 @@ namespace AlibabaCloud
|
||||
DetectImageElementsOutcome detectImageElements(const Model::DetectImageElementsRequest &request)const;
|
||||
void detectImageElementsAsync(const Model::DetectImageElementsRequest& request, const DetectImageElementsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DetectImageElementsOutcomeCallable detectImageElementsCallable(const Model::DetectImageElementsRequest& request) const;
|
||||
EvaluateCertificateQualityOutcome evaluateCertificateQuality(const Model::EvaluateCertificateQualityRequest &request)const;
|
||||
void evaluateCertificateQualityAsync(const Model::EvaluateCertificateQualityRequest& request, const EvaluateCertificateQualityAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
EvaluateCertificateQualityOutcomeCallable evaluateCertificateQualityCallable(const Model::EvaluateCertificateQualityRequest& request) const;
|
||||
RecognizeImageColorOutcome recognizeImageColor(const Model::RecognizeImageColorRequest &request)const;
|
||||
void recognizeImageColorAsync(const Model::RecognizeImageColorRequest& request, const RecognizeImageColorAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
RecognizeImageColorOutcomeCallable recognizeImageColorCallable(const Model::RecognizeImageColorRequest& request) const;
|
||||
|
||||
@@ -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_IMAGERECOG_MODEL_EVALUATECERTIFICATEQUALITYREQUEST_H_
|
||||
#define ALIBABACLOUD_IMAGERECOG_MODEL_EVALUATECERTIFICATEQUALITYREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/imagerecog/ImagerecogExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Imagerecog
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_IMAGERECOG_EXPORT EvaluateCertificateQualityRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
EvaluateCertificateQualityRequest();
|
||||
~EvaluateCertificateQualityRequest();
|
||||
|
||||
std::string getType()const;
|
||||
void setType(const std::string& type);
|
||||
std::string getImageURL()const;
|
||||
void setImageURL(const std::string& imageURL);
|
||||
|
||||
private:
|
||||
std::string type_;
|
||||
std::string imageURL_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_IMAGERECOG_MODEL_EVALUATECERTIFICATEQUALITYREQUEST_H_
|
||||
@@ -0,0 +1,61 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_IMAGERECOG_MODEL_EVALUATECERTIFICATEQUALITYRESULT_H_
|
||||
#define ALIBABACLOUD_IMAGERECOG_MODEL_EVALUATECERTIFICATEQUALITYRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/imagerecog/ImagerecogExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Imagerecog
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_IMAGERECOG_EXPORT EvaluateCertificateQualityResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct Data
|
||||
{
|
||||
struct Element
|
||||
{
|
||||
std::string score;
|
||||
std::string pass;
|
||||
std::string value;
|
||||
};
|
||||
std::vector<Element> elements;
|
||||
};
|
||||
|
||||
|
||||
EvaluateCertificateQualityResult();
|
||||
explicit EvaluateCertificateQualityResult(const std::string &payload);
|
||||
~EvaluateCertificateQualityResult();
|
||||
Data getData()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
Data data_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_IMAGERECOG_MODEL_EVALUATECERTIFICATEQUALITYRESULT_H_
|
||||
@@ -159,6 +159,42 @@ ImagerecogClient::DetectImageElementsOutcomeCallable ImagerecogClient::detectIma
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
ImagerecogClient::EvaluateCertificateQualityOutcome ImagerecogClient::evaluateCertificateQuality(const EvaluateCertificateQualityRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return EvaluateCertificateQualityOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return EvaluateCertificateQualityOutcome(EvaluateCertificateQualityResult(outcome.result()));
|
||||
else
|
||||
return EvaluateCertificateQualityOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void ImagerecogClient::evaluateCertificateQualityAsync(const EvaluateCertificateQualityRequest& request, const EvaluateCertificateQualityAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, evaluateCertificateQuality(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
ImagerecogClient::EvaluateCertificateQualityOutcomeCallable ImagerecogClient::evaluateCertificateQualityCallable(const EvaluateCertificateQualityRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<EvaluateCertificateQualityOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->evaluateCertificateQuality(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
ImagerecogClient::RecognizeImageColorOutcome ImagerecogClient::recognizeImageColor(const RecognizeImageColorRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
|
||||
51
imagerecog/src/model/EvaluateCertificateQualityRequest.cc
Normal file
51
imagerecog/src/model/EvaluateCertificateQualityRequest.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/imagerecog/model/EvaluateCertificateQualityRequest.h>
|
||||
|
||||
using AlibabaCloud::Imagerecog::Model::EvaluateCertificateQualityRequest;
|
||||
|
||||
EvaluateCertificateQualityRequest::EvaluateCertificateQualityRequest() :
|
||||
RpcServiceRequest("imagerecog", "2019-09-30", "EvaluateCertificateQuality")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
EvaluateCertificateQualityRequest::~EvaluateCertificateQualityRequest()
|
||||
{}
|
||||
|
||||
std::string EvaluateCertificateQualityRequest::getType()const
|
||||
{
|
||||
return type_;
|
||||
}
|
||||
|
||||
void EvaluateCertificateQualityRequest::setType(const std::string& type)
|
||||
{
|
||||
type_ = type;
|
||||
setBodyParameter("Type", type);
|
||||
}
|
||||
|
||||
std::string EvaluateCertificateQualityRequest::getImageURL()const
|
||||
{
|
||||
return imageURL_;
|
||||
}
|
||||
|
||||
void EvaluateCertificateQualityRequest::setImageURL(const std::string& imageURL)
|
||||
{
|
||||
imageURL_ = imageURL;
|
||||
setBodyParameter("ImageURL", imageURL);
|
||||
}
|
||||
|
||||
62
imagerecog/src/model/EvaluateCertificateQualityResult.cc
Normal file
62
imagerecog/src/model/EvaluateCertificateQualityResult.cc
Normal file
@@ -0,0 +1,62 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/imagerecog/model/EvaluateCertificateQualityResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Imagerecog;
|
||||
using namespace AlibabaCloud::Imagerecog::Model;
|
||||
|
||||
EvaluateCertificateQualityResult::EvaluateCertificateQualityResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
EvaluateCertificateQualityResult::EvaluateCertificateQualityResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
EvaluateCertificateQualityResult::~EvaluateCertificateQualityResult()
|
||||
{}
|
||||
|
||||
void EvaluateCertificateQualityResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto dataNode = value["Data"];
|
||||
auto allElementsNode = dataNode["Elements"]["Element"];
|
||||
for (auto dataNodeElementsElement : allElementsNode)
|
||||
{
|
||||
Data::Element elementObject;
|
||||
if(!dataNodeElementsElement["Value"].isNull())
|
||||
elementObject.value = dataNodeElementsElement["Value"].asString();
|
||||
if(!dataNodeElementsElement["Pass"].isNull())
|
||||
elementObject.pass = dataNodeElementsElement["Pass"].asString();
|
||||
if(!dataNodeElementsElement["Score"].isNull())
|
||||
elementObject.score = dataNodeElementsElement["Score"].asString();
|
||||
data_.elements.push_back(elementObject);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
EvaluateCertificateQualityResult::Data EvaluateCertificateQualityResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
@@ -35,10 +35,13 @@ namespace AlibabaCloud
|
||||
SegmentFoodRequest();
|
||||
~SegmentFoodRequest();
|
||||
|
||||
std::string getReturnForm()const;
|
||||
void setReturnForm(const std::string& returnForm);
|
||||
std::string getImageURL()const;
|
||||
void setImageURL(const std::string& imageURL);
|
||||
|
||||
private:
|
||||
std::string returnForm_;
|
||||
std::string imageURL_;
|
||||
|
||||
};
|
||||
|
||||
@@ -27,6 +27,17 @@ SegmentFoodRequest::SegmentFoodRequest() :
|
||||
SegmentFoodRequest::~SegmentFoodRequest()
|
||||
{}
|
||||
|
||||
std::string SegmentFoodRequest::getReturnForm()const
|
||||
{
|
||||
return returnForm_;
|
||||
}
|
||||
|
||||
void SegmentFoodRequest::setReturnForm(const std::string& returnForm)
|
||||
{
|
||||
returnForm_ = returnForm;
|
||||
setParameter("ReturnForm", returnForm);
|
||||
}
|
||||
|
||||
std::string SegmentFoodRequest::getImageURL()const
|
||||
{
|
||||
return imageURL_;
|
||||
|
||||
Reference in New Issue
Block a user