From 4b1cbc0461e0e4b31ff4df1a9188fa12f95a96c0 Mon Sep 17 00:00:00 2001 From: sdk-team Date: Fri, 18 Dec 2020 08:12:42 +0000 Subject: [PATCH] Add GetAgentDownloadUrl api. --- CHANGELOG | 3 + arms/CMakeLists.txt | 20 ++ arms/include/alibabacloud/arms/ARMSClient.h | 40 ++++ .../arms/model/ApplyScenarioRequest.h | 78 ++++++++ .../arms/model/ApplyScenarioResult.h | 51 +++++ .../arms/model/DeleteScenarioRequest.h | 48 +++++ .../arms/model/DeleteScenarioResult.h | 51 +++++ .../arms/model/GetAgentDownloadUrlRequest.h | 48 +++++ .../arms/model/GetAgentDownloadUrlResult.h | 51 +++++ .../arms/model/ListDashboardsRequest.h | 6 + .../arms/model/ListScenarioRequest.h | 60 ++++++ .../arms/model/ListScenarioResult.h | 63 ++++++ .../arms/model/OpenArmsServiceRequest.h | 51 +++++ .../arms/model/OpenArmsServiceResult.h | 51 +++++ arms/src/ARMSClient.cc | 180 ++++++++++++++++++ arms/src/model/ApplyScenarioRequest.cc | 150 +++++++++++++++ arms/src/model/ApplyScenarioResult.cc | 51 +++++ arms/src/model/DeleteScenarioRequest.cc | 40 ++++ arms/src/model/DeleteScenarioResult.cc | 51 +++++ arms/src/model/GetAgentDownloadUrlRequest.cc | 40 ++++ arms/src/model/GetAgentDownloadUrlResult.cc | 51 +++++ arms/src/model/ListDashboardsRequest.cc | 22 +++ arms/src/model/ListScenarioRequest.cc | 84 ++++++++ arms/src/model/ListScenarioResult.cc | 73 +++++++ arms/src/model/OpenArmsServiceRequest.cc | 51 +++++ arms/src/model/OpenArmsServiceResult.cc | 51 +++++ 26 files changed, 1465 insertions(+) create mode 100644 arms/include/alibabacloud/arms/model/ApplyScenarioRequest.h create mode 100644 arms/include/alibabacloud/arms/model/ApplyScenarioResult.h create mode 100644 arms/include/alibabacloud/arms/model/DeleteScenarioRequest.h create mode 100644 arms/include/alibabacloud/arms/model/DeleteScenarioResult.h create mode 100644 arms/include/alibabacloud/arms/model/GetAgentDownloadUrlRequest.h create mode 100644 arms/include/alibabacloud/arms/model/GetAgentDownloadUrlResult.h create mode 100644 arms/include/alibabacloud/arms/model/ListScenarioRequest.h create mode 100644 arms/include/alibabacloud/arms/model/ListScenarioResult.h create mode 100644 arms/include/alibabacloud/arms/model/OpenArmsServiceRequest.h create mode 100644 arms/include/alibabacloud/arms/model/OpenArmsServiceResult.h create mode 100644 arms/src/model/ApplyScenarioRequest.cc create mode 100644 arms/src/model/ApplyScenarioResult.cc create mode 100644 arms/src/model/DeleteScenarioRequest.cc create mode 100644 arms/src/model/DeleteScenarioResult.cc create mode 100644 arms/src/model/GetAgentDownloadUrlRequest.cc create mode 100644 arms/src/model/GetAgentDownloadUrlResult.cc create mode 100644 arms/src/model/ListScenarioRequest.cc create mode 100644 arms/src/model/ListScenarioResult.cc create mode 100644 arms/src/model/OpenArmsServiceRequest.cc create mode 100644 arms/src/model/OpenArmsServiceResult.cc diff --git a/CHANGELOG b/CHANGELOG index 091f1d666..5a9b95e59 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -1,3 +1,6 @@ +2020-12-18 Version: patch +- Add GetAgentDownloadUrl api. + 2020-12-18 Version: patch - Release EvaluateCertificateQuality. diff --git a/arms/CMakeLists.txt b/arms/CMakeLists.txt index 7e836cba1..a74adf1da 100644 --- a/arms/CMakeLists.txt +++ b/arms/CMakeLists.txt @@ -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 diff --git a/arms/include/alibabacloud/arms/ARMSClient.h b/arms/include/alibabacloud/arms/ARMSClient.h index 0f4cd141a..ab2d14cd6 100644 --- a/arms/include/alibabacloud/arms/ARMSClient.h +++ b/arms/include/alibabacloud/arms/ARMSClient.h @@ -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 AddIntegrationOutcome; typedef std::future AddIntegrationOutcomeCallable; typedef std::function&)> AddIntegrationAsyncHandler; + typedef Outcome ApplyScenarioOutcome; + typedef std::future ApplyScenarioOutcomeCallable; + typedef std::function&)> ApplyScenarioAsyncHandler; typedef Outcome CheckDataConsistencyOutcome; typedef std::future CheckDataConsistencyOutcomeCallable; typedef std::function&)> CheckDataConsistencyAsyncHandler; @@ -186,6 +199,9 @@ namespace AlibabaCloud typedef Outcome DeleteRetcodeAppOutcome; typedef std::future DeleteRetcodeAppOutcomeCallable; typedef std::function&)> DeleteRetcodeAppAsyncHandler; + typedef Outcome DeleteScenarioOutcome; + typedef std::future DeleteScenarioOutcomeCallable; + typedef std::function&)> DeleteScenarioAsyncHandler; typedef Outcome DeleteTraceAppOutcome; typedef std::future DeleteTraceAppOutcomeCallable; typedef std::function&)> DeleteTraceAppAsyncHandler; @@ -201,6 +217,9 @@ namespace AlibabaCloud typedef Outcome ExportPrometheusRulesOutcome; typedef std::future ExportPrometheusRulesOutcomeCallable; typedef std::function&)> ExportPrometheusRulesAsyncHandler; + typedef Outcome GetAgentDownloadUrlOutcome; + typedef std::future GetAgentDownloadUrlOutcomeCallable; + typedef std::function&)> GetAgentDownloadUrlAsyncHandler; typedef Outcome GetAppApiByPageOutcome; typedef std::future GetAppApiByPageOutcomeCallable; typedef std::function&)> GetAppApiByPageAsyncHandler; @@ -249,9 +268,15 @@ namespace AlibabaCloud typedef Outcome ListRetcodeAppsOutcome; typedef std::future ListRetcodeAppsOutcomeCallable; typedef std::function&)> ListRetcodeAppsAsyncHandler; + typedef Outcome ListScenarioOutcome; + typedef std::future ListScenarioOutcomeCallable; + typedef std::function&)> ListScenarioAsyncHandler; typedef Outcome ListTraceAppsOutcome; typedef std::future ListTraceAppsOutcomeCallable; typedef std::function&)> ListTraceAppsAsyncHandler; + typedef Outcome OpenArmsServiceOutcome; + typedef std::future OpenArmsServiceOutcomeCallable; + typedef std::function&)> OpenArmsServiceAsyncHandler; typedef Outcome QueryDatasetOutcome; typedef std::future QueryDatasetOutcomeCallable; typedef std::function&)> 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& 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& 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& 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& 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& 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& 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& 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& 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& 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& 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& 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& 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& 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& context = nullptr) const; QueryDatasetOutcomeCallable queryDatasetCallable(const Model::QueryDatasetRequest& request) const; diff --git a/arms/include/alibabacloud/arms/model/ApplyScenarioRequest.h b/arms/include/alibabacloud/arms/model/ApplyScenarioRequest.h new file mode 100644 index 000000000..0bb24f94b --- /dev/null +++ b/arms/include/alibabacloud/arms/model/ApplyScenarioRequest.h @@ -0,0 +1,78 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ARMS_MODEL_APPLYSCENARIOREQUEST_H_ +#define ALIBABACLOUD_ARMS_MODEL_APPLYSCENARIOREQUEST_H_ + +#include +#include +#include +#include + +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_ \ No newline at end of file diff --git a/arms/include/alibabacloud/arms/model/ApplyScenarioResult.h b/arms/include/alibabacloud/arms/model/ApplyScenarioResult.h new file mode 100644 index 000000000..cd4ba76b2 --- /dev/null +++ b/arms/include/alibabacloud/arms/model/ApplyScenarioResult.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_APPLYSCENARIORESULT_H_ +#define ALIBABACLOUD_ARMS_MODEL_APPLYSCENARIORESULT_H_ + +#include +#include +#include +#include +#include + +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_ \ No newline at end of file diff --git a/arms/include/alibabacloud/arms/model/DeleteScenarioRequest.h b/arms/include/alibabacloud/arms/model/DeleteScenarioRequest.h new file mode 100644 index 000000000..752ae5cdd --- /dev/null +++ b/arms/include/alibabacloud/arms/model/DeleteScenarioRequest.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_DELETESCENARIOREQUEST_H_ +#define ALIBABACLOUD_ARMS_MODEL_DELETESCENARIOREQUEST_H_ + +#include +#include +#include +#include + +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_ \ No newline at end of file diff --git a/arms/include/alibabacloud/arms/model/DeleteScenarioResult.h b/arms/include/alibabacloud/arms/model/DeleteScenarioResult.h new file mode 100644 index 000000000..6aacd133d --- /dev/null +++ b/arms/include/alibabacloud/arms/model/DeleteScenarioResult.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_DELETESCENARIORESULT_H_ +#define ALIBABACLOUD_ARMS_MODEL_DELETESCENARIORESULT_H_ + +#include +#include +#include +#include +#include + +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_ \ No newline at end of file diff --git a/arms/include/alibabacloud/arms/model/GetAgentDownloadUrlRequest.h b/arms/include/alibabacloud/arms/model/GetAgentDownloadUrlRequest.h new file mode 100644 index 000000000..aacacce5e --- /dev/null +++ b/arms/include/alibabacloud/arms/model/GetAgentDownloadUrlRequest.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 +#include +#include +#include + +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_ \ No newline at end of file diff --git a/arms/include/alibabacloud/arms/model/GetAgentDownloadUrlResult.h b/arms/include/alibabacloud/arms/model/GetAgentDownloadUrlResult.h new file mode 100644 index 000000000..47e1d77d2 --- /dev/null +++ b/arms/include/alibabacloud/arms/model/GetAgentDownloadUrlResult.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 +#include +#include +#include +#include + +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_ \ No newline at end of file diff --git a/arms/include/alibabacloud/arms/model/ListDashboardsRequest.h b/arms/include/alibabacloud/arms/model/ListDashboardsRequest.h index a14c4f873..b22516e95 100644 --- a/arms/include/alibabacloud/arms/model/ListDashboardsRequest.h +++ b/arms/include/alibabacloud/arms/model/ListDashboardsRequest.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_; }; } diff --git a/arms/include/alibabacloud/arms/model/ListScenarioRequest.h b/arms/include/alibabacloud/arms/model/ListScenarioRequest.h new file mode 100644 index 000000000..9935b4540 --- /dev/null +++ b/arms/include/alibabacloud/arms/model/ListScenarioRequest.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_ARMS_MODEL_LISTSCENARIOREQUEST_H_ +#define ALIBABACLOUD_ARMS_MODEL_LISTSCENARIOREQUEST_H_ + +#include +#include +#include +#include + +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_ \ No newline at end of file diff --git a/arms/include/alibabacloud/arms/model/ListScenarioResult.h b/arms/include/alibabacloud/arms/model/ListScenarioResult.h new file mode 100644 index 000000000..709a92ec4 --- /dev/null +++ b/arms/include/alibabacloud/arms/model/ListScenarioResult.h @@ -0,0 +1,63 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ARMS_MODEL_LISTSCENARIORESULT_H_ +#define ALIBABACLOUD_ARMS_MODEL_LISTSCENARIORESULT_H_ + +#include +#include +#include +#include +#include + +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 getArmsScenarios()const; + + protected: + void parse(const std::string &payload); + private: + std::vector armsScenarios_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ARMS_MODEL_LISTSCENARIORESULT_H_ \ No newline at end of file diff --git a/arms/include/alibabacloud/arms/model/OpenArmsServiceRequest.h b/arms/include/alibabacloud/arms/model/OpenArmsServiceRequest.h new file mode 100644 index 000000000..58e8bf4df --- /dev/null +++ b/arms/include/alibabacloud/arms/model/OpenArmsServiceRequest.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 +#include +#include +#include + +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_ \ No newline at end of file diff --git a/arms/include/alibabacloud/arms/model/OpenArmsServiceResult.h b/arms/include/alibabacloud/arms/model/OpenArmsServiceResult.h new file mode 100644 index 000000000..9f6e9fc39 --- /dev/null +++ b/arms/include/alibabacloud/arms/model/OpenArmsServiceResult.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_OPENARMSSERVICERESULT_H_ +#define ALIBABACLOUD_ARMS_MODEL_OPENARMSSERVICERESULT_H_ + +#include +#include +#include +#include +#include + +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_ \ No newline at end of file diff --git a/arms/src/ARMSClient.cc b/arms/src/ARMSClient.cc index 79a388e5a..3f18ee9be 100644 --- a/arms/src/ARMSClient.cc +++ b/arms/src/ARMSClient.cc @@ -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& 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>( + [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& 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>( + [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& 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>( + [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& 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>( + [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& 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>( + [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(); diff --git a/arms/src/model/ApplyScenarioRequest.cc b/arms/src/model/ApplyScenarioRequest.cc new file mode 100644 index 000000000..a4444364e --- /dev/null +++ b/arms/src/model/ApplyScenarioRequest.cc @@ -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 + +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); +} + diff --git a/arms/src/model/ApplyScenarioResult.cc b/arms/src/model/ApplyScenarioResult.cc new file mode 100644 index 000000000..dbe24fdb9 --- /dev/null +++ b/arms/src/model/ApplyScenarioResult.cc @@ -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 +#include + +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_; +} + diff --git a/arms/src/model/DeleteScenarioRequest.cc b/arms/src/model/DeleteScenarioRequest.cc new file mode 100644 index 000000000..b4ab477ec --- /dev/null +++ b/arms/src/model/DeleteScenarioRequest.cc @@ -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 + +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)); +} + diff --git a/arms/src/model/DeleteScenarioResult.cc b/arms/src/model/DeleteScenarioResult.cc new file mode 100644 index 000000000..ede21eb72 --- /dev/null +++ b/arms/src/model/DeleteScenarioResult.cc @@ -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 +#include + +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_; +} + diff --git a/arms/src/model/GetAgentDownloadUrlRequest.cc b/arms/src/model/GetAgentDownloadUrlRequest.cc new file mode 100644 index 000000000..e00d1e8a9 --- /dev/null +++ b/arms/src/model/GetAgentDownloadUrlRequest.cc @@ -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 + +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); +} + diff --git a/arms/src/model/GetAgentDownloadUrlResult.cc b/arms/src/model/GetAgentDownloadUrlResult.cc new file mode 100644 index 000000000..48917903c --- /dev/null +++ b/arms/src/model/GetAgentDownloadUrlResult.cc @@ -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 +#include + +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_; +} + diff --git a/arms/src/model/ListDashboardsRequest.cc b/arms/src/model/ListDashboardsRequest.cc index a7c5bbe43..8eb928526 100644 --- a/arms/src/model/ListDashboardsRequest.cc +++ b/arms/src/model/ListDashboardsRequest.cc @@ -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); +} + diff --git a/arms/src/model/ListScenarioRequest.cc b/arms/src/model/ListScenarioRequest.cc new file mode 100644 index 000000000..0d5332f91 --- /dev/null +++ b/arms/src/model/ListScenarioRequest.cc @@ -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 + +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); +} + diff --git a/arms/src/model/ListScenarioResult.cc b/arms/src/model/ListScenarioResult.cc new file mode 100644 index 000000000..0ce5bc858 --- /dev/null +++ b/arms/src/model/ListScenarioResult.cc @@ -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 +#include + +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::getArmsScenarios()const +{ + return armsScenarios_; +} + diff --git a/arms/src/model/OpenArmsServiceRequest.cc b/arms/src/model/OpenArmsServiceRequest.cc new file mode 100644 index 000000000..2d5c5f653 --- /dev/null +++ b/arms/src/model/OpenArmsServiceRequest.cc @@ -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 + +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); +} + diff --git a/arms/src/model/OpenArmsServiceResult.cc b/arms/src/model/OpenArmsServiceResult.cc new file mode 100644 index 000000000..99633eae8 --- /dev/null +++ b/arms/src/model/OpenArmsServiceResult.cc @@ -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 +#include + +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_; +} +