diff --git a/CHANGELOG b/CHANGELOG index ce723481b..fe596aca7 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -1,3 +1,6 @@ +2021-07-28 Version: 1.36.830 +- Generated 2018-03-13 for `retailcloud`. + 2021-07-27 Version: 1.36.829 - Add DescribeAuditLogConfig API. diff --git a/VERSION b/VERSION index ac9e8d908..f1bff31f8 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -1.36.829 \ No newline at end of file +1.36.830 \ No newline at end of file diff --git a/retailcloud/CMakeLists.txt b/retailcloud/CMakeLists.txt index 7ad1190bf..c2baaa8f1 100644 --- a/retailcloud/CMakeLists.txt +++ b/retailcloud/CMakeLists.txt @@ -27,6 +27,8 @@ set(retailcloud_public_header_model include/alibabacloud/retailcloud/model/AllocatePodConfigResult.h include/alibabacloud/retailcloud/model/BatchAddServersRequest.h include/alibabacloud/retailcloud/model/BatchAddServersResult.h + include/alibabacloud/retailcloud/model/BindGroupRequest.h + include/alibabacloud/retailcloud/model/BindGroupResult.h include/alibabacloud/retailcloud/model/BindNodeLabelRequest.h include/alibabacloud/retailcloud/model/BindNodeLabelResult.h include/alibabacloud/retailcloud/model/CloseDeployOrderRequest.h @@ -35,6 +37,10 @@ set(retailcloud_public_header_model include/alibabacloud/retailcloud/model/CreateAccountResult.h include/alibabacloud/retailcloud/model/CreateAppRequest.h include/alibabacloud/retailcloud/model/CreateAppResult.h + include/alibabacloud/retailcloud/model/CreateAppGroupRequest.h + include/alibabacloud/retailcloud/model/CreateAppGroupResult.h + include/alibabacloud/retailcloud/model/CreateAppMonitorsRequest.h + include/alibabacloud/retailcloud/model/CreateAppMonitorsResult.h include/alibabacloud/retailcloud/model/CreateAppResourceAllocRequest.h include/alibabacloud/retailcloud/model/CreateAppResourceAllocResult.h include/alibabacloud/retailcloud/model/CreateClusterRequest.h @@ -59,6 +65,8 @@ set(retailcloud_public_header_model include/alibabacloud/retailcloud/model/DeleteAppDetailResult.h include/alibabacloud/retailcloud/model/DeleteAppEnvironmentRequest.h include/alibabacloud/retailcloud/model/DeleteAppEnvironmentResult.h + include/alibabacloud/retailcloud/model/DeleteAppGroupRequest.h + include/alibabacloud/retailcloud/model/DeleteAppGroupResult.h include/alibabacloud/retailcloud/model/DeleteAppResourceAllocRequest.h include/alibabacloud/retailcloud/model/DeleteAppResourceAllocResult.h include/alibabacloud/retailcloud/model/DeleteClusterRequest.h @@ -85,6 +93,8 @@ set(retailcloud_public_header_model include/alibabacloud/retailcloud/model/DescribeAppDetailResult.h include/alibabacloud/retailcloud/model/DescribeAppEnvironmentDetailRequest.h include/alibabacloud/retailcloud/model/DescribeAppEnvironmentDetailResult.h + include/alibabacloud/retailcloud/model/DescribeAppMonitorMetricRequest.h + include/alibabacloud/retailcloud/model/DescribeAppMonitorMetricResult.h include/alibabacloud/retailcloud/model/DescribeAppResourceAllocRequest.h include/alibabacloud/retailcloud/model/DescribeAppResourceAllocResult.h include/alibabacloud/retailcloud/model/DescribeClusterDetailRequest.h @@ -93,8 +103,12 @@ set(retailcloud_public_header_model include/alibabacloud/retailcloud/model/DescribeDatabasesResult.h include/alibabacloud/retailcloud/model/DescribeDeployOrderDetailRequest.h include/alibabacloud/retailcloud/model/DescribeDeployOrderDetailResult.h + include/alibabacloud/retailcloud/model/DescribeEventMonitorListRequest.h + include/alibabacloud/retailcloud/model/DescribeEventMonitorListResult.h include/alibabacloud/retailcloud/model/DescribeJobLogRequest.h include/alibabacloud/retailcloud/model/DescribeJobLogResult.h + include/alibabacloud/retailcloud/model/DescribePodContainerLogListRequest.h + include/alibabacloud/retailcloud/model/DescribePodContainerLogListResult.h include/alibabacloud/retailcloud/model/DescribePodEventsRequest.h include/alibabacloud/retailcloud/model/DescribePodEventsResult.h include/alibabacloud/retailcloud/model/DescribePodLogRequest.h @@ -117,6 +131,10 @@ set(retailcloud_public_header_model include/alibabacloud/retailcloud/model/ListAppCmsGroupsResult.h include/alibabacloud/retailcloud/model/ListAppEnvironmentRequest.h include/alibabacloud/retailcloud/model/ListAppEnvironmentResult.h + include/alibabacloud/retailcloud/model/ListAppGroupRequest.h + include/alibabacloud/retailcloud/model/ListAppGroupResult.h + include/alibabacloud/retailcloud/model/ListAppGroupMappingRequest.h + include/alibabacloud/retailcloud/model/ListAppGroupMappingResult.h include/alibabacloud/retailcloud/model/ListAppInstanceRequest.h include/alibabacloud/retailcloud/model/ListAppInstanceResult.h include/alibabacloud/retailcloud/model/ListAppResourceAllocsRequest.h @@ -173,10 +191,14 @@ set(retailcloud_public_header_model include/alibabacloud/retailcloud/model/SubmitInfoResult.h include/alibabacloud/retailcloud/model/SyncPodInfoRequest.h include/alibabacloud/retailcloud/model/SyncPodInfoResult.h + include/alibabacloud/retailcloud/model/UnbindGroupRequest.h + include/alibabacloud/retailcloud/model/UnbindGroupResult.h include/alibabacloud/retailcloud/model/UnbindNodeLabelRequest.h include/alibabacloud/retailcloud/model/UnbindNodeLabelResult.h include/alibabacloud/retailcloud/model/UpdateAppRequest.h include/alibabacloud/retailcloud/model/UpdateAppResult.h + include/alibabacloud/retailcloud/model/UpdateAppMonitorsRequest.h + include/alibabacloud/retailcloud/model/UpdateAppMonitorsResult.h include/alibabacloud/retailcloud/model/UpdateDeployConfigRequest.h include/alibabacloud/retailcloud/model/UpdateDeployConfigResult.h include/alibabacloud/retailcloud/model/UpdateEnvironmentRequest.h @@ -190,6 +212,8 @@ set(retailcloud_src src/model/AllocatePodConfigResult.cc src/model/BatchAddServersRequest.cc src/model/BatchAddServersResult.cc + src/model/BindGroupRequest.cc + src/model/BindGroupResult.cc src/model/BindNodeLabelRequest.cc src/model/BindNodeLabelResult.cc src/model/CloseDeployOrderRequest.cc @@ -198,6 +222,10 @@ set(retailcloud_src src/model/CreateAccountResult.cc src/model/CreateAppRequest.cc src/model/CreateAppResult.cc + src/model/CreateAppGroupRequest.cc + src/model/CreateAppGroupResult.cc + src/model/CreateAppMonitorsRequest.cc + src/model/CreateAppMonitorsResult.cc src/model/CreateAppResourceAllocRequest.cc src/model/CreateAppResourceAllocResult.cc src/model/CreateClusterRequest.cc @@ -222,6 +250,8 @@ set(retailcloud_src src/model/DeleteAppDetailResult.cc src/model/DeleteAppEnvironmentRequest.cc src/model/DeleteAppEnvironmentResult.cc + src/model/DeleteAppGroupRequest.cc + src/model/DeleteAppGroupResult.cc src/model/DeleteAppResourceAllocRequest.cc src/model/DeleteAppResourceAllocResult.cc src/model/DeleteClusterRequest.cc @@ -248,6 +278,8 @@ set(retailcloud_src src/model/DescribeAppDetailResult.cc src/model/DescribeAppEnvironmentDetailRequest.cc src/model/DescribeAppEnvironmentDetailResult.cc + src/model/DescribeAppMonitorMetricRequest.cc + src/model/DescribeAppMonitorMetricResult.cc src/model/DescribeAppResourceAllocRequest.cc src/model/DescribeAppResourceAllocResult.cc src/model/DescribeClusterDetailRequest.cc @@ -256,8 +288,12 @@ set(retailcloud_src src/model/DescribeDatabasesResult.cc src/model/DescribeDeployOrderDetailRequest.cc src/model/DescribeDeployOrderDetailResult.cc + src/model/DescribeEventMonitorListRequest.cc + src/model/DescribeEventMonitorListResult.cc src/model/DescribeJobLogRequest.cc src/model/DescribeJobLogResult.cc + src/model/DescribePodContainerLogListRequest.cc + src/model/DescribePodContainerLogListResult.cc src/model/DescribePodEventsRequest.cc src/model/DescribePodEventsResult.cc src/model/DescribePodLogRequest.cc @@ -280,6 +316,10 @@ set(retailcloud_src src/model/ListAppCmsGroupsResult.cc src/model/ListAppEnvironmentRequest.cc src/model/ListAppEnvironmentResult.cc + src/model/ListAppGroupRequest.cc + src/model/ListAppGroupResult.cc + src/model/ListAppGroupMappingRequest.cc + src/model/ListAppGroupMappingResult.cc src/model/ListAppInstanceRequest.cc src/model/ListAppInstanceResult.cc src/model/ListAppResourceAllocsRequest.cc @@ -336,10 +376,14 @@ set(retailcloud_src src/model/SubmitInfoResult.cc src/model/SyncPodInfoRequest.cc src/model/SyncPodInfoResult.cc + src/model/UnbindGroupRequest.cc + src/model/UnbindGroupResult.cc src/model/UnbindNodeLabelRequest.cc src/model/UnbindNodeLabelResult.cc src/model/UpdateAppRequest.cc src/model/UpdateAppResult.cc + src/model/UpdateAppMonitorsRequest.cc + src/model/UpdateAppMonitorsResult.cc src/model/UpdateDeployConfigRequest.cc src/model/UpdateDeployConfigResult.cc src/model/UpdateEnvironmentRequest.cc diff --git a/retailcloud/include/alibabacloud/retailcloud/RetailcloudClient.h b/retailcloud/include/alibabacloud/retailcloud/RetailcloudClient.h index 482d1021e..0a5769727 100644 --- a/retailcloud/include/alibabacloud/retailcloud/RetailcloudClient.h +++ b/retailcloud/include/alibabacloud/retailcloud/RetailcloudClient.h @@ -28,6 +28,8 @@ #include "model/AllocatePodConfigResult.h" #include "model/BatchAddServersRequest.h" #include "model/BatchAddServersResult.h" +#include "model/BindGroupRequest.h" +#include "model/BindGroupResult.h" #include "model/BindNodeLabelRequest.h" #include "model/BindNodeLabelResult.h" #include "model/CloseDeployOrderRequest.h" @@ -36,6 +38,10 @@ #include "model/CreateAccountResult.h" #include "model/CreateAppRequest.h" #include "model/CreateAppResult.h" +#include "model/CreateAppGroupRequest.h" +#include "model/CreateAppGroupResult.h" +#include "model/CreateAppMonitorsRequest.h" +#include "model/CreateAppMonitorsResult.h" #include "model/CreateAppResourceAllocRequest.h" #include "model/CreateAppResourceAllocResult.h" #include "model/CreateClusterRequest.h" @@ -60,6 +66,8 @@ #include "model/DeleteAppDetailResult.h" #include "model/DeleteAppEnvironmentRequest.h" #include "model/DeleteAppEnvironmentResult.h" +#include "model/DeleteAppGroupRequest.h" +#include "model/DeleteAppGroupResult.h" #include "model/DeleteAppResourceAllocRequest.h" #include "model/DeleteAppResourceAllocResult.h" #include "model/DeleteClusterRequest.h" @@ -86,6 +94,8 @@ #include "model/DescribeAppDetailResult.h" #include "model/DescribeAppEnvironmentDetailRequest.h" #include "model/DescribeAppEnvironmentDetailResult.h" +#include "model/DescribeAppMonitorMetricRequest.h" +#include "model/DescribeAppMonitorMetricResult.h" #include "model/DescribeAppResourceAllocRequest.h" #include "model/DescribeAppResourceAllocResult.h" #include "model/DescribeClusterDetailRequest.h" @@ -94,8 +104,12 @@ #include "model/DescribeDatabasesResult.h" #include "model/DescribeDeployOrderDetailRequest.h" #include "model/DescribeDeployOrderDetailResult.h" +#include "model/DescribeEventMonitorListRequest.h" +#include "model/DescribeEventMonitorListResult.h" #include "model/DescribeJobLogRequest.h" #include "model/DescribeJobLogResult.h" +#include "model/DescribePodContainerLogListRequest.h" +#include "model/DescribePodContainerLogListResult.h" #include "model/DescribePodEventsRequest.h" #include "model/DescribePodEventsResult.h" #include "model/DescribePodLogRequest.h" @@ -118,6 +132,10 @@ #include "model/ListAppCmsGroupsResult.h" #include "model/ListAppEnvironmentRequest.h" #include "model/ListAppEnvironmentResult.h" +#include "model/ListAppGroupRequest.h" +#include "model/ListAppGroupResult.h" +#include "model/ListAppGroupMappingRequest.h" +#include "model/ListAppGroupMappingResult.h" #include "model/ListAppInstanceRequest.h" #include "model/ListAppInstanceResult.h" #include "model/ListAppResourceAllocsRequest.h" @@ -174,10 +192,14 @@ #include "model/SubmitInfoResult.h" #include "model/SyncPodInfoRequest.h" #include "model/SyncPodInfoResult.h" +#include "model/UnbindGroupRequest.h" +#include "model/UnbindGroupResult.h" #include "model/UnbindNodeLabelRequest.h" #include "model/UnbindNodeLabelResult.h" #include "model/UpdateAppRequest.h" #include "model/UpdateAppResult.h" +#include "model/UpdateAppMonitorsRequest.h" +#include "model/UpdateAppMonitorsResult.h" #include "model/UpdateDeployConfigRequest.h" #include "model/UpdateDeployConfigResult.h" #include "model/UpdateEnvironmentRequest.h" @@ -200,6 +222,9 @@ namespace AlibabaCloud typedef Outcome BatchAddServersOutcome; typedef std::future BatchAddServersOutcomeCallable; typedef std::function&)> BatchAddServersAsyncHandler; + typedef Outcome BindGroupOutcome; + typedef std::future BindGroupOutcomeCallable; + typedef std::function&)> BindGroupAsyncHandler; typedef Outcome BindNodeLabelOutcome; typedef std::future BindNodeLabelOutcomeCallable; typedef std::function&)> BindNodeLabelAsyncHandler; @@ -212,6 +237,12 @@ namespace AlibabaCloud typedef Outcome CreateAppOutcome; typedef std::future CreateAppOutcomeCallable; typedef std::function&)> CreateAppAsyncHandler; + typedef Outcome CreateAppGroupOutcome; + typedef std::future CreateAppGroupOutcomeCallable; + typedef std::function&)> CreateAppGroupAsyncHandler; + typedef Outcome CreateAppMonitorsOutcome; + typedef std::future CreateAppMonitorsOutcomeCallable; + typedef std::function&)> CreateAppMonitorsAsyncHandler; typedef Outcome CreateAppResourceAllocOutcome; typedef std::future CreateAppResourceAllocOutcomeCallable; typedef std::function&)> CreateAppResourceAllocAsyncHandler; @@ -248,6 +279,9 @@ namespace AlibabaCloud typedef Outcome DeleteAppEnvironmentOutcome; typedef std::future DeleteAppEnvironmentOutcomeCallable; typedef std::function&)> DeleteAppEnvironmentAsyncHandler; + typedef Outcome DeleteAppGroupOutcome; + typedef std::future DeleteAppGroupOutcomeCallable; + typedef std::function&)> DeleteAppGroupAsyncHandler; typedef Outcome DeleteAppResourceAllocOutcome; typedef std::future DeleteAppResourceAllocOutcomeCallable; typedef std::function&)> DeleteAppResourceAllocAsyncHandler; @@ -287,6 +321,9 @@ namespace AlibabaCloud typedef Outcome DescribeAppEnvironmentDetailOutcome; typedef std::future DescribeAppEnvironmentDetailOutcomeCallable; typedef std::function&)> DescribeAppEnvironmentDetailAsyncHandler; + typedef Outcome DescribeAppMonitorMetricOutcome; + typedef std::future DescribeAppMonitorMetricOutcomeCallable; + typedef std::function&)> DescribeAppMonitorMetricAsyncHandler; typedef Outcome DescribeAppResourceAllocOutcome; typedef std::future DescribeAppResourceAllocOutcomeCallable; typedef std::function&)> DescribeAppResourceAllocAsyncHandler; @@ -299,9 +336,15 @@ namespace AlibabaCloud typedef Outcome DescribeDeployOrderDetailOutcome; typedef std::future DescribeDeployOrderDetailOutcomeCallable; typedef std::function&)> DescribeDeployOrderDetailAsyncHandler; + typedef Outcome DescribeEventMonitorListOutcome; + typedef std::future DescribeEventMonitorListOutcomeCallable; + typedef std::function&)> DescribeEventMonitorListAsyncHandler; typedef Outcome DescribeJobLogOutcome; typedef std::future DescribeJobLogOutcomeCallable; typedef std::function&)> DescribeJobLogAsyncHandler; + typedef Outcome DescribePodContainerLogListOutcome; + typedef std::future DescribePodContainerLogListOutcomeCallable; + typedef std::function&)> DescribePodContainerLogListAsyncHandler; typedef Outcome DescribePodEventsOutcome; typedef std::future DescribePodEventsOutcomeCallable; typedef std::function&)> DescribePodEventsAsyncHandler; @@ -335,6 +378,12 @@ namespace AlibabaCloud typedef Outcome ListAppEnvironmentOutcome; typedef std::future ListAppEnvironmentOutcomeCallable; typedef std::function&)> ListAppEnvironmentAsyncHandler; + typedef Outcome ListAppGroupOutcome; + typedef std::future ListAppGroupOutcomeCallable; + typedef std::function&)> ListAppGroupAsyncHandler; + typedef Outcome ListAppGroupMappingOutcome; + typedef std::future ListAppGroupMappingOutcomeCallable; + typedef std::function&)> ListAppGroupMappingAsyncHandler; typedef Outcome ListAppInstanceOutcome; typedef std::future ListAppInstanceOutcomeCallable; typedef std::function&)> ListAppInstanceAsyncHandler; @@ -419,12 +468,18 @@ namespace AlibabaCloud typedef Outcome SyncPodInfoOutcome; typedef std::future SyncPodInfoOutcomeCallable; typedef std::function&)> SyncPodInfoAsyncHandler; + typedef Outcome UnbindGroupOutcome; + typedef std::future UnbindGroupOutcomeCallable; + typedef std::function&)> UnbindGroupAsyncHandler; typedef Outcome UnbindNodeLabelOutcome; typedef std::future UnbindNodeLabelOutcomeCallable; typedef std::function&)> UnbindNodeLabelAsyncHandler; typedef Outcome UpdateAppOutcome; typedef std::future UpdateAppOutcomeCallable; typedef std::function&)> UpdateAppAsyncHandler; + typedef Outcome UpdateAppMonitorsOutcome; + typedef std::future UpdateAppMonitorsOutcomeCallable; + typedef std::function&)> UpdateAppMonitorsAsyncHandler; typedef Outcome UpdateDeployConfigOutcome; typedef std::future UpdateDeployConfigOutcomeCallable; typedef std::function&)> UpdateDeployConfigAsyncHandler; @@ -445,6 +500,9 @@ namespace AlibabaCloud BatchAddServersOutcome batchAddServers(const Model::BatchAddServersRequest &request)const; void batchAddServersAsync(const Model::BatchAddServersRequest& request, const BatchAddServersAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; BatchAddServersOutcomeCallable batchAddServersCallable(const Model::BatchAddServersRequest& request) const; + BindGroupOutcome bindGroup(const Model::BindGroupRequest &request)const; + void bindGroupAsync(const Model::BindGroupRequest& request, const BindGroupAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + BindGroupOutcomeCallable bindGroupCallable(const Model::BindGroupRequest& request) const; BindNodeLabelOutcome bindNodeLabel(const Model::BindNodeLabelRequest &request)const; void bindNodeLabelAsync(const Model::BindNodeLabelRequest& request, const BindNodeLabelAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; BindNodeLabelOutcomeCallable bindNodeLabelCallable(const Model::BindNodeLabelRequest& request) const; @@ -457,6 +515,12 @@ namespace AlibabaCloud CreateAppOutcome createApp(const Model::CreateAppRequest &request)const; void createAppAsync(const Model::CreateAppRequest& request, const CreateAppAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; CreateAppOutcomeCallable createAppCallable(const Model::CreateAppRequest& request) const; + CreateAppGroupOutcome createAppGroup(const Model::CreateAppGroupRequest &request)const; + void createAppGroupAsync(const Model::CreateAppGroupRequest& request, const CreateAppGroupAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CreateAppGroupOutcomeCallable createAppGroupCallable(const Model::CreateAppGroupRequest& request) const; + CreateAppMonitorsOutcome createAppMonitors(const Model::CreateAppMonitorsRequest &request)const; + void createAppMonitorsAsync(const Model::CreateAppMonitorsRequest& request, const CreateAppMonitorsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CreateAppMonitorsOutcomeCallable createAppMonitorsCallable(const Model::CreateAppMonitorsRequest& request) const; CreateAppResourceAllocOutcome createAppResourceAlloc(const Model::CreateAppResourceAllocRequest &request)const; void createAppResourceAllocAsync(const Model::CreateAppResourceAllocRequest& request, const CreateAppResourceAllocAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; CreateAppResourceAllocOutcomeCallable createAppResourceAllocCallable(const Model::CreateAppResourceAllocRequest& request) const; @@ -493,6 +557,9 @@ namespace AlibabaCloud DeleteAppEnvironmentOutcome deleteAppEnvironment(const Model::DeleteAppEnvironmentRequest &request)const; void deleteAppEnvironmentAsync(const Model::DeleteAppEnvironmentRequest& request, const DeleteAppEnvironmentAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DeleteAppEnvironmentOutcomeCallable deleteAppEnvironmentCallable(const Model::DeleteAppEnvironmentRequest& request) const; + DeleteAppGroupOutcome deleteAppGroup(const Model::DeleteAppGroupRequest &request)const; + void deleteAppGroupAsync(const Model::DeleteAppGroupRequest& request, const DeleteAppGroupAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DeleteAppGroupOutcomeCallable deleteAppGroupCallable(const Model::DeleteAppGroupRequest& request) const; DeleteAppResourceAllocOutcome deleteAppResourceAlloc(const Model::DeleteAppResourceAllocRequest &request)const; void deleteAppResourceAllocAsync(const Model::DeleteAppResourceAllocRequest& request, const DeleteAppResourceAllocAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DeleteAppResourceAllocOutcomeCallable deleteAppResourceAllocCallable(const Model::DeleteAppResourceAllocRequest& request) const; @@ -532,6 +599,9 @@ namespace AlibabaCloud DescribeAppEnvironmentDetailOutcome describeAppEnvironmentDetail(const Model::DescribeAppEnvironmentDetailRequest &request)const; void describeAppEnvironmentDetailAsync(const Model::DescribeAppEnvironmentDetailRequest& request, const DescribeAppEnvironmentDetailAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DescribeAppEnvironmentDetailOutcomeCallable describeAppEnvironmentDetailCallable(const Model::DescribeAppEnvironmentDetailRequest& request) const; + DescribeAppMonitorMetricOutcome describeAppMonitorMetric(const Model::DescribeAppMonitorMetricRequest &request)const; + void describeAppMonitorMetricAsync(const Model::DescribeAppMonitorMetricRequest& request, const DescribeAppMonitorMetricAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeAppMonitorMetricOutcomeCallable describeAppMonitorMetricCallable(const Model::DescribeAppMonitorMetricRequest& request) const; DescribeAppResourceAllocOutcome describeAppResourceAlloc(const Model::DescribeAppResourceAllocRequest &request)const; void describeAppResourceAllocAsync(const Model::DescribeAppResourceAllocRequest& request, const DescribeAppResourceAllocAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DescribeAppResourceAllocOutcomeCallable describeAppResourceAllocCallable(const Model::DescribeAppResourceAllocRequest& request) const; @@ -544,9 +614,15 @@ namespace AlibabaCloud DescribeDeployOrderDetailOutcome describeDeployOrderDetail(const Model::DescribeDeployOrderDetailRequest &request)const; void describeDeployOrderDetailAsync(const Model::DescribeDeployOrderDetailRequest& request, const DescribeDeployOrderDetailAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DescribeDeployOrderDetailOutcomeCallable describeDeployOrderDetailCallable(const Model::DescribeDeployOrderDetailRequest& request) const; + DescribeEventMonitorListOutcome describeEventMonitorList(const Model::DescribeEventMonitorListRequest &request)const; + void describeEventMonitorListAsync(const Model::DescribeEventMonitorListRequest& request, const DescribeEventMonitorListAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeEventMonitorListOutcomeCallable describeEventMonitorListCallable(const Model::DescribeEventMonitorListRequest& request) const; DescribeJobLogOutcome describeJobLog(const Model::DescribeJobLogRequest &request)const; void describeJobLogAsync(const Model::DescribeJobLogRequest& request, const DescribeJobLogAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DescribeJobLogOutcomeCallable describeJobLogCallable(const Model::DescribeJobLogRequest& request) const; + DescribePodContainerLogListOutcome describePodContainerLogList(const Model::DescribePodContainerLogListRequest &request)const; + void describePodContainerLogListAsync(const Model::DescribePodContainerLogListRequest& request, const DescribePodContainerLogListAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribePodContainerLogListOutcomeCallable describePodContainerLogListCallable(const Model::DescribePodContainerLogListRequest& request) const; DescribePodEventsOutcome describePodEvents(const Model::DescribePodEventsRequest &request)const; void describePodEventsAsync(const Model::DescribePodEventsRequest& request, const DescribePodEventsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DescribePodEventsOutcomeCallable describePodEventsCallable(const Model::DescribePodEventsRequest& request) const; @@ -580,6 +656,12 @@ namespace AlibabaCloud ListAppEnvironmentOutcome listAppEnvironment(const Model::ListAppEnvironmentRequest &request)const; void listAppEnvironmentAsync(const Model::ListAppEnvironmentRequest& request, const ListAppEnvironmentAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; ListAppEnvironmentOutcomeCallable listAppEnvironmentCallable(const Model::ListAppEnvironmentRequest& request) const; + ListAppGroupOutcome listAppGroup(const Model::ListAppGroupRequest &request)const; + void listAppGroupAsync(const Model::ListAppGroupRequest& request, const ListAppGroupAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListAppGroupOutcomeCallable listAppGroupCallable(const Model::ListAppGroupRequest& request) const; + ListAppGroupMappingOutcome listAppGroupMapping(const Model::ListAppGroupMappingRequest &request)const; + void listAppGroupMappingAsync(const Model::ListAppGroupMappingRequest& request, const ListAppGroupMappingAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListAppGroupMappingOutcomeCallable listAppGroupMappingCallable(const Model::ListAppGroupMappingRequest& request) const; ListAppInstanceOutcome listAppInstance(const Model::ListAppInstanceRequest &request)const; void listAppInstanceAsync(const Model::ListAppInstanceRequest& request, const ListAppInstanceAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; ListAppInstanceOutcomeCallable listAppInstanceCallable(const Model::ListAppInstanceRequest& request) const; @@ -664,12 +746,18 @@ namespace AlibabaCloud SyncPodInfoOutcome syncPodInfo(const Model::SyncPodInfoRequest &request)const; void syncPodInfoAsync(const Model::SyncPodInfoRequest& request, const SyncPodInfoAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; SyncPodInfoOutcomeCallable syncPodInfoCallable(const Model::SyncPodInfoRequest& request) const; + UnbindGroupOutcome unbindGroup(const Model::UnbindGroupRequest &request)const; + void unbindGroupAsync(const Model::UnbindGroupRequest& request, const UnbindGroupAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + UnbindGroupOutcomeCallable unbindGroupCallable(const Model::UnbindGroupRequest& request) const; UnbindNodeLabelOutcome unbindNodeLabel(const Model::UnbindNodeLabelRequest &request)const; void unbindNodeLabelAsync(const Model::UnbindNodeLabelRequest& request, const UnbindNodeLabelAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; UnbindNodeLabelOutcomeCallable unbindNodeLabelCallable(const Model::UnbindNodeLabelRequest& request) const; UpdateAppOutcome updateApp(const Model::UpdateAppRequest &request)const; void updateAppAsync(const Model::UpdateAppRequest& request, const UpdateAppAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; UpdateAppOutcomeCallable updateAppCallable(const Model::UpdateAppRequest& request) const; + UpdateAppMonitorsOutcome updateAppMonitors(const Model::UpdateAppMonitorsRequest &request)const; + void updateAppMonitorsAsync(const Model::UpdateAppMonitorsRequest& request, const UpdateAppMonitorsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + UpdateAppMonitorsOutcomeCallable updateAppMonitorsCallable(const Model::UpdateAppMonitorsRequest& request) const; UpdateDeployConfigOutcome updateDeployConfig(const Model::UpdateDeployConfigRequest &request)const; void updateDeployConfigAsync(const Model::UpdateDeployConfigRequest& request, const UpdateDeployConfigAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; UpdateDeployConfigOutcomeCallable updateDeployConfigCallable(const Model::UpdateDeployConfigRequest& request) const; diff --git a/retailcloud/include/alibabacloud/retailcloud/model/BindGroupRequest.h b/retailcloud/include/alibabacloud/retailcloud/model/BindGroupRequest.h new file mode 100644 index 000000000..58ab07106 --- /dev/null +++ b/retailcloud/include/alibabacloud/retailcloud/model/BindGroupRequest.h @@ -0,0 +1,54 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RETAILCLOUD_MODEL_BINDGROUPREQUEST_H_ +#define ALIBABACLOUD_RETAILCLOUD_MODEL_BINDGROUPREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Retailcloud + { + namespace Model + { + class ALIBABACLOUD_RETAILCLOUD_EXPORT BindGroupRequest : public RpcServiceRequest + { + + public: + BindGroupRequest(); + ~BindGroupRequest(); + + std::string getBizCode()const; + void setBizCode(const std::string& bizCode); + long getAppId()const; + void setAppId(long appId); + std::string getName()const; + void setName(const std::string& name); + + private: + std::string bizCode_; + long appId_; + std::string name_; + + }; + } + } +} +#endif // !ALIBABACLOUD_RETAILCLOUD_MODEL_BINDGROUPREQUEST_H_ \ No newline at end of file diff --git a/retailcloud/include/alibabacloud/retailcloud/model/BindGroupResult.h b/retailcloud/include/alibabacloud/retailcloud/model/BindGroupResult.h new file mode 100644 index 000000000..6f664f3ba --- /dev/null +++ b/retailcloud/include/alibabacloud/retailcloud/model/BindGroupResult.h @@ -0,0 +1,59 @@ +/* + * 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_RETAILCLOUD_MODEL_BINDGROUPRESULT_H_ +#define ALIBABACLOUD_RETAILCLOUD_MODEL_BINDGROUPRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Retailcloud + { + namespace Model + { + class ALIBABACLOUD_RETAILCLOUD_EXPORT BindGroupResult : public ServiceResult + { + public: + struct Result + { + bool success; + }; + + + BindGroupResult(); + explicit BindGroupResult(const std::string &payload); + ~BindGroupResult(); + std::string getErrMsg()const; + int getCode()const; + Result getResult()const; + + protected: + void parse(const std::string &payload); + private: + std::string errMsg_; + int code_; + Result result_; + + }; + } + } +} +#endif // !ALIBABACLOUD_RETAILCLOUD_MODEL_BINDGROUPRESULT_H_ \ No newline at end of file diff --git a/retailcloud/include/alibabacloud/retailcloud/model/CreateAppGroupRequest.h b/retailcloud/include/alibabacloud/retailcloud/model/CreateAppGroupRequest.h new file mode 100644 index 000000000..73645e3de --- /dev/null +++ b/retailcloud/include/alibabacloud/retailcloud/model/CreateAppGroupRequest.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_RETAILCLOUD_MODEL_CREATEAPPGROUPREQUEST_H_ +#define ALIBABACLOUD_RETAILCLOUD_MODEL_CREATEAPPGROUPREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Retailcloud + { + namespace Model + { + class ALIBABACLOUD_RETAILCLOUD_EXPORT CreateAppGroupRequest : public RpcServiceRequest + { + + public: + CreateAppGroupRequest(); + ~CreateAppGroupRequest(); + + std::string getBizCode()const; + void setBizCode(const std::string& bizCode); + std::string getName()const; + void setName(const std::string& name); + + private: + std::string bizCode_; + std::string name_; + + }; + } + } +} +#endif // !ALIBABACLOUD_RETAILCLOUD_MODEL_CREATEAPPGROUPREQUEST_H_ \ No newline at end of file diff --git a/retailcloud/include/alibabacloud/retailcloud/model/CreateAppGroupResult.h b/retailcloud/include/alibabacloud/retailcloud/model/CreateAppGroupResult.h new file mode 100644 index 000000000..0951727bf --- /dev/null +++ b/retailcloud/include/alibabacloud/retailcloud/model/CreateAppGroupResult.h @@ -0,0 +1,59 @@ +/* + * 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_RETAILCLOUD_MODEL_CREATEAPPGROUPRESULT_H_ +#define ALIBABACLOUD_RETAILCLOUD_MODEL_CREATEAPPGROUPRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Retailcloud + { + namespace Model + { + class ALIBABACLOUD_RETAILCLOUD_EXPORT CreateAppGroupResult : public ServiceResult + { + public: + struct Result + { + long appGroupId; + }; + + + CreateAppGroupResult(); + explicit CreateAppGroupResult(const std::string &payload); + ~CreateAppGroupResult(); + std::string getErrMsg()const; + int getCode()const; + Result getResult()const; + + protected: + void parse(const std::string &payload); + private: + std::string errMsg_; + int code_; + Result result_; + + }; + } + } +} +#endif // !ALIBABACLOUD_RETAILCLOUD_MODEL_CREATEAPPGROUPRESULT_H_ \ No newline at end of file diff --git a/retailcloud/include/alibabacloud/retailcloud/model/CreateAppMonitorsRequest.h b/retailcloud/include/alibabacloud/retailcloud/model/CreateAppMonitorsRequest.h new file mode 100644 index 000000000..dc9ad4a70 --- /dev/null +++ b/retailcloud/include/alibabacloud/retailcloud/model/CreateAppMonitorsRequest.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_RETAILCLOUD_MODEL_CREATEAPPMONITORSREQUEST_H_ +#define ALIBABACLOUD_RETAILCLOUD_MODEL_CREATEAPPMONITORSREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Retailcloud + { + namespace Model + { + class ALIBABACLOUD_RETAILCLOUD_EXPORT CreateAppMonitorsRequest : public RpcServiceRequest + { + + public: + CreateAppMonitorsRequest(); + ~CreateAppMonitorsRequest(); + + std::vector getAppIds()const; + void setAppIds(const std::vector& appIds); + long getMainUserId()const; + void setMainUserId(long mainUserId); + int getEnvType()const; + void setEnvType(int envType); + long getAlarmTemplateId()const; + void setAlarmTemplateId(long alarmTemplateId); + std::string getSilenceTime()const; + void setSilenceTime(const std::string& silenceTime); + + private: + std::vector appIds_; + long mainUserId_; + int envType_; + long alarmTemplateId_; + std::string silenceTime_; + + }; + } + } +} +#endif // !ALIBABACLOUD_RETAILCLOUD_MODEL_CREATEAPPMONITORSREQUEST_H_ \ No newline at end of file diff --git a/retailcloud/include/alibabacloud/retailcloud/model/CreateAppMonitorsResult.h b/retailcloud/include/alibabacloud/retailcloud/model/CreateAppMonitorsResult.h new file mode 100644 index 000000000..453256dbd --- /dev/null +++ b/retailcloud/include/alibabacloud/retailcloud/model/CreateAppMonitorsResult.h @@ -0,0 +1,53 @@ +/* + * 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_RETAILCLOUD_MODEL_CREATEAPPMONITORSRESULT_H_ +#define ALIBABACLOUD_RETAILCLOUD_MODEL_CREATEAPPMONITORSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Retailcloud + { + namespace Model + { + class ALIBABACLOUD_RETAILCLOUD_EXPORT CreateAppMonitorsResult : public ServiceResult + { + public: + + + CreateAppMonitorsResult(); + explicit CreateAppMonitorsResult(const std::string &payload); + ~CreateAppMonitorsResult(); + int getCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + int code_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_RETAILCLOUD_MODEL_CREATEAPPMONITORSRESULT_H_ \ No newline at end of file diff --git a/retailcloud/include/alibabacloud/retailcloud/model/CreateAppRequest.h b/retailcloud/include/alibabacloud/retailcloud/model/CreateAppRequest.h index 9f6075a83..976a64c03 100644 --- a/retailcloud/include/alibabacloud/retailcloud/model/CreateAppRequest.h +++ b/retailcloud/include/alibabacloud/retailcloud/model/CreateAppRequest.h @@ -52,6 +52,8 @@ namespace AlibabaCloud void setLanguage(const std::string& language); std::string getTitle()const; void setTitle(const std::string& title); + std::string getGroupName()const; + void setGroupName(const std::string& groupName); std::vector getMiddleWareIdList()const; void setMiddleWareIdList(const std::vector& middleWareIdList); int getStateType()const; @@ -71,6 +73,7 @@ namespace AlibabaCloud std::string description_; std::string language_; std::string title_; + std::string groupName_; std::vector middleWareIdList_; int stateType_; std::string serviceType_; diff --git a/retailcloud/include/alibabacloud/retailcloud/model/CreateEnvironmentRequest.h b/retailcloud/include/alibabacloud/retailcloud/model/CreateEnvironmentRequest.h index 12c1a7270..84d2410ce 100644 --- a/retailcloud/include/alibabacloud/retailcloud/model/CreateEnvironmentRequest.h +++ b/retailcloud/include/alibabacloud/retailcloud/model/CreateEnvironmentRequest.h @@ -45,6 +45,8 @@ namespace AlibabaCloud void setEnvType(int envType); long getAppSchemaId()const; void setAppSchemaId(long appSchemaId); + std::string getClusterId()const; + void setClusterId(const std::string& clusterId); std::string getRegion()const; void setRegion(const std::string& region); @@ -54,6 +56,7 @@ namespace AlibabaCloud long appId_; int envType_; long appSchemaId_; + std::string clusterId_; std::string region_; }; diff --git a/retailcloud/include/alibabacloud/retailcloud/model/DeleteAppGroupRequest.h b/retailcloud/include/alibabacloud/retailcloud/model/DeleteAppGroupRequest.h new file mode 100644 index 000000000..a7ec1a945 --- /dev/null +++ b/retailcloud/include/alibabacloud/retailcloud/model/DeleteAppGroupRequest.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_RETAILCLOUD_MODEL_DELETEAPPGROUPREQUEST_H_ +#define ALIBABACLOUD_RETAILCLOUD_MODEL_DELETEAPPGROUPREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Retailcloud + { + namespace Model + { + class ALIBABACLOUD_RETAILCLOUD_EXPORT DeleteAppGroupRequest : public RpcServiceRequest + { + + public: + DeleteAppGroupRequest(); + ~DeleteAppGroupRequest(); + + long getGroupId()const; + void setGroupId(long groupId); + bool getForce()const; + void setForce(bool force); + + private: + long groupId_; + bool force_; + + }; + } + } +} +#endif // !ALIBABACLOUD_RETAILCLOUD_MODEL_DELETEAPPGROUPREQUEST_H_ \ No newline at end of file diff --git a/retailcloud/include/alibabacloud/retailcloud/model/DeleteAppGroupResult.h b/retailcloud/include/alibabacloud/retailcloud/model/DeleteAppGroupResult.h new file mode 100644 index 000000000..5f634f081 --- /dev/null +++ b/retailcloud/include/alibabacloud/retailcloud/model/DeleteAppGroupResult.h @@ -0,0 +1,59 @@ +/* + * 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_RETAILCLOUD_MODEL_DELETEAPPGROUPRESULT_H_ +#define ALIBABACLOUD_RETAILCLOUD_MODEL_DELETEAPPGROUPRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Retailcloud + { + namespace Model + { + class ALIBABACLOUD_RETAILCLOUD_EXPORT DeleteAppGroupResult : public ServiceResult + { + public: + struct Result + { + bool success; + }; + + + DeleteAppGroupResult(); + explicit DeleteAppGroupResult(const std::string &payload); + ~DeleteAppGroupResult(); + std::string getErrMsg()const; + int getCode()const; + Result getResult()const; + + protected: + void parse(const std::string &payload); + private: + std::string errMsg_; + int code_; + Result result_; + + }; + } + } +} +#endif // !ALIBABACLOUD_RETAILCLOUD_MODEL_DELETEAPPGROUPRESULT_H_ \ No newline at end of file diff --git a/retailcloud/include/alibabacloud/retailcloud/model/DeployAppRequest.h b/retailcloud/include/alibabacloud/retailcloud/model/DeployAppRequest.h index b58107266..7c095664b 100644 --- a/retailcloud/include/alibabacloud/retailcloud/model/DeployAppRequest.h +++ b/retailcloud/include/alibabacloud/retailcloud/model/DeployAppRequest.h @@ -55,6 +55,8 @@ namespace AlibabaCloud void setName(const std::string& name); std::vector getInitContainerImageList()const; void setInitContainerImageList(const std::vector& initContainerImageList); + std::string getDefaultPacketOfAppGroup()const; + void setDefaultPacketOfAppGroup(const std::string& defaultPacketOfAppGroup); bool getArmsFlag()const; void setArmsFlag(bool armsFlag); @@ -69,6 +71,7 @@ namespace AlibabaCloud std::vector containerImageList_; std::string name_; std::vector initContainerImageList_; + std::string defaultPacketOfAppGroup_; bool armsFlag_; }; diff --git a/retailcloud/include/alibabacloud/retailcloud/model/DescribeAppMonitorMetricRequest.h b/retailcloud/include/alibabacloud/retailcloud/model/DescribeAppMonitorMetricRequest.h new file mode 100644 index 000000000..f3c4cf069 --- /dev/null +++ b/retailcloud/include/alibabacloud/retailcloud/model/DescribeAppMonitorMetricRequest.h @@ -0,0 +1,69 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RETAILCLOUD_MODEL_DESCRIBEAPPMONITORMETRICREQUEST_H_ +#define ALIBABACLOUD_RETAILCLOUD_MODEL_DESCRIBEAPPMONITORMETRICREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Retailcloud + { + namespace Model + { + class ALIBABACLOUD_RETAILCLOUD_EXPORT DescribeAppMonitorMetricRequest : public RpcServiceRequest + { + + public: + DescribeAppMonitorMetricRequest(); + ~DescribeAppMonitorMetricRequest(); + + std::string getDeployOrderId()const; + void setDeployOrderId(const std::string& deployOrderId); + std::string getMetric()const; + void setMetric(const std::string& metric); + long getAppId()const; + void setAppId(long appId); + std::string getPodName()const; + void setPodName(const std::string& podName); + long getEndTime()const; + void setEndTime(long endTime); + long getEnvId()const; + void setEnvId(long envId); + long getStartTime()const; + void setStartTime(long startTime); + std::string getType()const; + void setType(const std::string& type); + + private: + std::string deployOrderId_; + std::string metric_; + long appId_; + std::string podName_; + long endTime_; + long envId_; + long startTime_; + std::string type_; + + }; + } + } +} +#endif // !ALIBABACLOUD_RETAILCLOUD_MODEL_DESCRIBEAPPMONITORMETRICREQUEST_H_ \ No newline at end of file diff --git a/retailcloud/include/alibabacloud/retailcloud/model/DescribeAppMonitorMetricResult.h b/retailcloud/include/alibabacloud/retailcloud/model/DescribeAppMonitorMetricResult.h new file mode 100644 index 000000000..77e174170 --- /dev/null +++ b/retailcloud/include/alibabacloud/retailcloud/model/DescribeAppMonitorMetricResult.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_RETAILCLOUD_MODEL_DESCRIBEAPPMONITORMETRICRESULT_H_ +#define ALIBABACLOUD_RETAILCLOUD_MODEL_DESCRIBEAPPMONITORMETRICRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Retailcloud + { + namespace Model + { + class ALIBABACLOUD_RETAILCLOUD_EXPORT DescribeAppMonitorMetricResult : public ServiceResult + { + public: + struct MetricItem + { + std::vector categories; + std::vector data; + std::string name; + }; + + + DescribeAppMonitorMetricResult(); + explicit DescribeAppMonitorMetricResult(const std::string &payload); + ~DescribeAppMonitorMetricResult(); + std::string getErrMsg()const; + int getCode()const; + bool getSuccess()const; + std::vector getResult()const; + + protected: + void parse(const std::string &payload); + private: + std::string errMsg_; + int code_; + bool success_; + std::vector result_; + + }; + } + } +} +#endif // !ALIBABACLOUD_RETAILCLOUD_MODEL_DESCRIBEAPPMONITORMETRICRESULT_H_ \ No newline at end of file diff --git a/retailcloud/include/alibabacloud/retailcloud/model/DescribeEventMonitorListRequest.h b/retailcloud/include/alibabacloud/retailcloud/model/DescribeEventMonitorListRequest.h new file mode 100644 index 000000000..a90504623 --- /dev/null +++ b/retailcloud/include/alibabacloud/retailcloud/model/DescribeEventMonitorListRequest.h @@ -0,0 +1,72 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RETAILCLOUD_MODEL_DESCRIBEEVENTMONITORLISTREQUEST_H_ +#define ALIBABACLOUD_RETAILCLOUD_MODEL_DESCRIBEEVENTMONITORLISTREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Retailcloud + { + namespace Model + { + class ALIBABACLOUD_RETAILCLOUD_EXPORT DescribeEventMonitorListRequest : public RpcServiceRequest + { + + public: + DescribeEventMonitorListRequest(); + ~DescribeEventMonitorListRequest(); + + std::string getEventLevel()const; + void setEventLevel(const std::string& eventLevel); + long getAppId()const; + void setAppId(long appId); + int getPageSize()const; + void setPageSize(int pageSize); + std::string getPodName()const; + void setPodName(const std::string& podName); + long getEndTime()const; + void setEndTime(long endTime); + std::string getEventType()const; + void setEventType(const std::string& eventType); + long getEnvId()const; + void setEnvId(long envId); + long getStartTime()const; + void setStartTime(long startTime); + int getPageNum()const; + void setPageNum(int pageNum); + + private: + std::string eventLevel_; + long appId_; + int pageSize_; + std::string podName_; + long endTime_; + std::string eventType_; + long envId_; + long startTime_; + int pageNum_; + + }; + } + } +} +#endif // !ALIBABACLOUD_RETAILCLOUD_MODEL_DESCRIBEEVENTMONITORLISTREQUEST_H_ \ No newline at end of file diff --git a/retailcloud/include/alibabacloud/retailcloud/model/DescribeEventMonitorListResult.h b/retailcloud/include/alibabacloud/retailcloud/model/DescribeEventMonitorListResult.h new file mode 100644 index 000000000..b6e101589 --- /dev/null +++ b/retailcloud/include/alibabacloud/retailcloud/model/DescribeEventMonitorListResult.h @@ -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. + */ + +#ifndef ALIBABACLOUD_RETAILCLOUD_MODEL_DESCRIBEEVENTMONITORLISTRESULT_H_ +#define ALIBABACLOUD_RETAILCLOUD_MODEL_DESCRIBEEVENTMONITORLISTRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Retailcloud + { + namespace Model + { + class ALIBABACLOUD_RETAILCLOUD_EXPORT DescribeEventMonitorListResult : public ServiceResult + { + public: + struct EventInfo + { + std::string podName; + std::string message; + std::string eventTime; + std::string kind; + std::string level; + int count; + std::string hostName; + std::string reason; + std::string _nameSpace; + }; + + + DescribeEventMonitorListResult(); + explicit DescribeEventMonitorListResult(const std::string &payload); + ~DescribeEventMonitorListResult(); + long getTotalCount()const; + int getPageSize()const; + int getPageNumber()const; + std::string getErrorMsg()const; + std::vector getData()const; + int getCode()const; + + protected: + void parse(const std::string &payload); + private: + long totalCount_; + int pageSize_; + int pageNumber_; + std::string errorMsg_; + std::vector data_; + int code_; + + }; + } + } +} +#endif // !ALIBABACLOUD_RETAILCLOUD_MODEL_DESCRIBEEVENTMONITORLISTRESULT_H_ \ No newline at end of file diff --git a/retailcloud/include/alibabacloud/retailcloud/model/DescribePodContainerLogListRequest.h b/retailcloud/include/alibabacloud/retailcloud/model/DescribePodContainerLogListRequest.h new file mode 100644 index 000000000..f2b301ca0 --- /dev/null +++ b/retailcloud/include/alibabacloud/retailcloud/model/DescribePodContainerLogListRequest.h @@ -0,0 +1,57 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RETAILCLOUD_MODEL_DESCRIBEPODCONTAINERLOGLISTREQUEST_H_ +#define ALIBABACLOUD_RETAILCLOUD_MODEL_DESCRIBEPODCONTAINERLOGLISTREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Retailcloud + { + namespace Model + { + class ALIBABACLOUD_RETAILCLOUD_EXPORT DescribePodContainerLogListRequest : public RpcServiceRequest + { + + public: + DescribePodContainerLogListRequest(); + ~DescribePodContainerLogListRequest(); + + int getLine()const; + void setLine(int line); + long getAppId()const; + void setAppId(long appId); + std::string getPodName()const; + void setPodName(const std::string& podName); + long getEnvId()const; + void setEnvId(long envId); + + private: + int line_; + long appId_; + std::string podName_; + long envId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_RETAILCLOUD_MODEL_DESCRIBEPODCONTAINERLOGLISTREQUEST_H_ \ No newline at end of file diff --git a/retailcloud/include/alibabacloud/retailcloud/model/DescribePodContainerLogListResult.h b/retailcloud/include/alibabacloud/retailcloud/model/DescribePodContainerLogListResult.h new file mode 100644 index 000000000..5022c2764 --- /dev/null +++ b/retailcloud/include/alibabacloud/retailcloud/model/DescribePodContainerLogListResult.h @@ -0,0 +1,67 @@ +/* + * 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_RETAILCLOUD_MODEL_DESCRIBEPODCONTAINERLOGLISTRESULT_H_ +#define ALIBABACLOUD_RETAILCLOUD_MODEL_DESCRIBEPODCONTAINERLOGLISTRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Retailcloud + { + namespace Model + { + class ALIBABACLOUD_RETAILCLOUD_EXPORT DescribePodContainerLogListResult : public ServiceResult + { + public: + struct Result + { + struct PodContainerLog + { + std::string podName; + std::string containerName; + std::string content; + }; + std::vector containerLogList; + }; + + + DescribePodContainerLogListResult(); + explicit DescribePodContainerLogListResult(const std::string &payload); + ~DescribePodContainerLogListResult(); + std::string getErrMsg()const; + int getCode()const; + bool getSuccess()const; + Result getResult()const; + + protected: + void parse(const std::string &payload); + private: + std::string errMsg_; + int code_; + bool success_; + Result result_; + + }; + } + } +} +#endif // !ALIBABACLOUD_RETAILCLOUD_MODEL_DESCRIBEPODCONTAINERLOGLISTRESULT_H_ \ No newline at end of file diff --git a/retailcloud/include/alibabacloud/retailcloud/model/ListAppGroupMappingRequest.h b/retailcloud/include/alibabacloud/retailcloud/model/ListAppGroupMappingRequest.h new file mode 100644 index 000000000..fc2638fc2 --- /dev/null +++ b/retailcloud/include/alibabacloud/retailcloud/model/ListAppGroupMappingRequest.h @@ -0,0 +1,57 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RETAILCLOUD_MODEL_LISTAPPGROUPMAPPINGREQUEST_H_ +#define ALIBABACLOUD_RETAILCLOUD_MODEL_LISTAPPGROUPMAPPINGREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Retailcloud + { + namespace Model + { + class ALIBABACLOUD_RETAILCLOUD_EXPORT ListAppGroupMappingRequest : public RpcServiceRequest + { + + public: + ListAppGroupMappingRequest(); + ~ListAppGroupMappingRequest(); + + std::string getBizCode()const; + void setBizCode(const std::string& bizCode); + std::string getName()const; + void setName(const std::string& name); + int getPageSize()const; + void setPageSize(int pageSize); + int getPageNumber()const; + void setPageNumber(int pageNumber); + + private: + std::string bizCode_; + std::string name_; + int pageSize_; + int pageNumber_; + + }; + } + } +} +#endif // !ALIBABACLOUD_RETAILCLOUD_MODEL_LISTAPPGROUPMAPPINGREQUEST_H_ \ No newline at end of file diff --git a/retailcloud/include/alibabacloud/retailcloud/model/ListAppGroupMappingResult.h b/retailcloud/include/alibabacloud/retailcloud/model/ListAppGroupMappingResult.h new file mode 100644 index 000000000..2b295c704 --- /dev/null +++ b/retailcloud/include/alibabacloud/retailcloud/model/ListAppGroupMappingResult.h @@ -0,0 +1,68 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RETAILCLOUD_MODEL_LISTAPPGROUPMAPPINGRESULT_H_ +#define ALIBABACLOUD_RETAILCLOUD_MODEL_LISTAPPGROUPMAPPINGRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Retailcloud + { + namespace Model + { + class ALIBABACLOUD_RETAILCLOUD_EXPORT ListAppGroupMappingResult : public ServiceResult + { + public: + struct AppGroupMappingDetail + { + long appId; + long id; + std::string name; + long groupId; + }; + + + ListAppGroupMappingResult(); + explicit ListAppGroupMappingResult(const std::string &payload); + ~ListAppGroupMappingResult(); + long getTotalCount()const; + int getPageSize()const; + int getPageNumber()const; + std::string getErrorMsg()const; + std::vector getData()const; + int getCode()const; + + protected: + void parse(const std::string &payload); + private: + long totalCount_; + int pageSize_; + int pageNumber_; + std::string errorMsg_; + std::vector data_; + int code_; + + }; + } + } +} +#endif // !ALIBABACLOUD_RETAILCLOUD_MODEL_LISTAPPGROUPMAPPINGRESULT_H_ \ No newline at end of file diff --git a/retailcloud/include/alibabacloud/retailcloud/model/ListAppGroupRequest.h b/retailcloud/include/alibabacloud/retailcloud/model/ListAppGroupRequest.h new file mode 100644 index 000000000..6dc23ec96 --- /dev/null +++ b/retailcloud/include/alibabacloud/retailcloud/model/ListAppGroupRequest.h @@ -0,0 +1,54 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RETAILCLOUD_MODEL_LISTAPPGROUPREQUEST_H_ +#define ALIBABACLOUD_RETAILCLOUD_MODEL_LISTAPPGROUPREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Retailcloud + { + namespace Model + { + class ALIBABACLOUD_RETAILCLOUD_EXPORT ListAppGroupRequest : public RpcServiceRequest + { + + public: + ListAppGroupRequest(); + ~ListAppGroupRequest(); + + std::string getBizCode()const; + void setBizCode(const std::string& bizCode); + int getPageSize()const; + void setPageSize(int pageSize); + int getPageNumber()const; + void setPageNumber(int pageNumber); + + private: + std::string bizCode_; + int pageSize_; + int pageNumber_; + + }; + } + } +} +#endif // !ALIBABACLOUD_RETAILCLOUD_MODEL_LISTAPPGROUPREQUEST_H_ \ No newline at end of file diff --git a/retailcloud/include/alibabacloud/retailcloud/model/ListAppGroupResult.h b/retailcloud/include/alibabacloud/retailcloud/model/ListAppGroupResult.h new file mode 100644 index 000000000..414adc2b3 --- /dev/null +++ b/retailcloud/include/alibabacloud/retailcloud/model/ListAppGroupResult.h @@ -0,0 +1,67 @@ +/* + * 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_RETAILCLOUD_MODEL_LISTAPPGROUPRESULT_H_ +#define ALIBABACLOUD_RETAILCLOUD_MODEL_LISTAPPGROUPRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Retailcloud + { + namespace Model + { + class ALIBABACLOUD_RETAILCLOUD_EXPORT ListAppGroupResult : public ServiceResult + { + public: + struct AppGroupDetail + { + std::string bizName; + long id; + std::string name; + }; + + + ListAppGroupResult(); + explicit ListAppGroupResult(const std::string &payload); + ~ListAppGroupResult(); + long getTotalCount()const; + int getPageSize()const; + int getPageNumber()const; + std::string getErrorMsg()const; + std::vector getData()const; + int getCode()const; + + protected: + void parse(const std::string &payload); + private: + long totalCount_; + int pageSize_; + int pageNumber_; + std::string errorMsg_; + std::vector data_; + int code_; + + }; + } + } +} +#endif // !ALIBABACLOUD_RETAILCLOUD_MODEL_LISTAPPGROUPRESULT_H_ \ No newline at end of file diff --git a/retailcloud/include/alibabacloud/retailcloud/model/ListAppInstanceResult.h b/retailcloud/include/alibabacloud/retailcloud/model/ListAppInstanceResult.h index 4606ab728..8ef68d9e6 100644 --- a/retailcloud/include/alibabacloud/retailcloud/model/ListAppInstanceResult.h +++ b/retailcloud/include/alibabacloud/retailcloud/model/ListAppInstanceResult.h @@ -39,6 +39,7 @@ namespace AlibabaCloud std::string appInstanceId; std::string limits; std::string health; + std::string version; std::string createTime; std::string podIp; std::string spec; diff --git a/retailcloud/include/alibabacloud/retailcloud/model/UnbindGroupRequest.h b/retailcloud/include/alibabacloud/retailcloud/model/UnbindGroupRequest.h new file mode 100644 index 000000000..3f7b0029a --- /dev/null +++ b/retailcloud/include/alibabacloud/retailcloud/model/UnbindGroupRequest.h @@ -0,0 +1,54 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RETAILCLOUD_MODEL_UNBINDGROUPREQUEST_H_ +#define ALIBABACLOUD_RETAILCLOUD_MODEL_UNBINDGROUPREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Retailcloud + { + namespace Model + { + class ALIBABACLOUD_RETAILCLOUD_EXPORT UnbindGroupRequest : public RpcServiceRequest + { + + public: + UnbindGroupRequest(); + ~UnbindGroupRequest(); + + std::string getBizCode()const; + void setBizCode(const std::string& bizCode); + long getAppId()const; + void setAppId(long appId); + std::string getName()const; + void setName(const std::string& name); + + private: + std::string bizCode_; + long appId_; + std::string name_; + + }; + } + } +} +#endif // !ALIBABACLOUD_RETAILCLOUD_MODEL_UNBINDGROUPREQUEST_H_ \ No newline at end of file diff --git a/retailcloud/include/alibabacloud/retailcloud/model/UnbindGroupResult.h b/retailcloud/include/alibabacloud/retailcloud/model/UnbindGroupResult.h new file mode 100644 index 000000000..ac6441ec3 --- /dev/null +++ b/retailcloud/include/alibabacloud/retailcloud/model/UnbindGroupResult.h @@ -0,0 +1,59 @@ +/* + * 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_RETAILCLOUD_MODEL_UNBINDGROUPRESULT_H_ +#define ALIBABACLOUD_RETAILCLOUD_MODEL_UNBINDGROUPRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Retailcloud + { + namespace Model + { + class ALIBABACLOUD_RETAILCLOUD_EXPORT UnbindGroupResult : public ServiceResult + { + public: + struct Result + { + bool success; + }; + + + UnbindGroupResult(); + explicit UnbindGroupResult(const std::string &payload); + ~UnbindGroupResult(); + std::string getErrMsg()const; + int getCode()const; + Result getResult()const; + + protected: + void parse(const std::string &payload); + private: + std::string errMsg_; + int code_; + Result result_; + + }; + } + } +} +#endif // !ALIBABACLOUD_RETAILCLOUD_MODEL_UNBINDGROUPRESULT_H_ \ No newline at end of file diff --git a/retailcloud/include/alibabacloud/retailcloud/model/UpdateAppMonitorsRequest.h b/retailcloud/include/alibabacloud/retailcloud/model/UpdateAppMonitorsRequest.h new file mode 100644 index 000000000..3a04b070a --- /dev/null +++ b/retailcloud/include/alibabacloud/retailcloud/model/UpdateAppMonitorsRequest.h @@ -0,0 +1,57 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RETAILCLOUD_MODEL_UPDATEAPPMONITORSREQUEST_H_ +#define ALIBABACLOUD_RETAILCLOUD_MODEL_UPDATEAPPMONITORSREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Retailcloud + { + namespace Model + { + class ALIBABACLOUD_RETAILCLOUD_EXPORT UpdateAppMonitorsRequest : public RpcServiceRequest + { + + public: + UpdateAppMonitorsRequest(); + ~UpdateAppMonitorsRequest(); + + long getMainUserId()const; + void setMainUserId(long mainUserId); + std::string getSilenceTime()const; + void setSilenceTime(const std::string& silenceTime); + std::vector getMonitorIds()const; + void setMonitorIds(const std::vector& monitorIds); + long getTemplateId()const; + void setTemplateId(long templateId); + + private: + long mainUserId_; + std::string silenceTime_; + std::vector monitorIds_; + long templateId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_RETAILCLOUD_MODEL_UPDATEAPPMONITORSREQUEST_H_ \ No newline at end of file diff --git a/retailcloud/include/alibabacloud/retailcloud/model/UpdateAppMonitorsResult.h b/retailcloud/include/alibabacloud/retailcloud/model/UpdateAppMonitorsResult.h new file mode 100644 index 000000000..20ffdd30d --- /dev/null +++ b/retailcloud/include/alibabacloud/retailcloud/model/UpdateAppMonitorsResult.h @@ -0,0 +1,55 @@ +/* + * 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_RETAILCLOUD_MODEL_UPDATEAPPMONITORSRESULT_H_ +#define ALIBABACLOUD_RETAILCLOUD_MODEL_UPDATEAPPMONITORSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Retailcloud + { + namespace Model + { + class ALIBABACLOUD_RETAILCLOUD_EXPORT UpdateAppMonitorsResult : public ServiceResult + { + public: + + + UpdateAppMonitorsResult(); + explicit UpdateAppMonitorsResult(const std::string &payload); + ~UpdateAppMonitorsResult(); + std::string getMsg()const; + std::string getCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string msg_; + std::string code_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_RETAILCLOUD_MODEL_UPDATEAPPMONITORSRESULT_H_ \ No newline at end of file diff --git a/retailcloud/src/RetailcloudClient.cc b/retailcloud/src/RetailcloudClient.cc index c1a3fd087..d23397979 100644 --- a/retailcloud/src/RetailcloudClient.cc +++ b/retailcloud/src/RetailcloudClient.cc @@ -159,6 +159,42 @@ RetailcloudClient::BatchAddServersOutcomeCallable RetailcloudClient::batchAddSer return task->get_future(); } +RetailcloudClient::BindGroupOutcome RetailcloudClient::bindGroup(const BindGroupRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return BindGroupOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return BindGroupOutcome(BindGroupResult(outcome.result())); + else + return BindGroupOutcome(outcome.error()); +} + +void RetailcloudClient::bindGroupAsync(const BindGroupRequest& request, const BindGroupAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, bindGroup(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +RetailcloudClient::BindGroupOutcomeCallable RetailcloudClient::bindGroupCallable(const BindGroupRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->bindGroup(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + RetailcloudClient::BindNodeLabelOutcome RetailcloudClient::bindNodeLabel(const BindNodeLabelRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -303,6 +339,78 @@ RetailcloudClient::CreateAppOutcomeCallable RetailcloudClient::createAppCallable return task->get_future(); } +RetailcloudClient::CreateAppGroupOutcome RetailcloudClient::createAppGroup(const CreateAppGroupRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return CreateAppGroupOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return CreateAppGroupOutcome(CreateAppGroupResult(outcome.result())); + else + return CreateAppGroupOutcome(outcome.error()); +} + +void RetailcloudClient::createAppGroupAsync(const CreateAppGroupRequest& request, const CreateAppGroupAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, createAppGroup(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +RetailcloudClient::CreateAppGroupOutcomeCallable RetailcloudClient::createAppGroupCallable(const CreateAppGroupRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->createAppGroup(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +RetailcloudClient::CreateAppMonitorsOutcome RetailcloudClient::createAppMonitors(const CreateAppMonitorsRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return CreateAppMonitorsOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return CreateAppMonitorsOutcome(CreateAppMonitorsResult(outcome.result())); + else + return CreateAppMonitorsOutcome(outcome.error()); +} + +void RetailcloudClient::createAppMonitorsAsync(const CreateAppMonitorsRequest& request, const CreateAppMonitorsAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, createAppMonitors(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +RetailcloudClient::CreateAppMonitorsOutcomeCallable RetailcloudClient::createAppMonitorsCallable(const CreateAppMonitorsRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->createAppMonitors(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + RetailcloudClient::CreateAppResourceAllocOutcome RetailcloudClient::createAppResourceAlloc(const CreateAppResourceAllocRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -735,6 +843,42 @@ RetailcloudClient::DeleteAppEnvironmentOutcomeCallable RetailcloudClient::delete return task->get_future(); } +RetailcloudClient::DeleteAppGroupOutcome RetailcloudClient::deleteAppGroup(const DeleteAppGroupRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DeleteAppGroupOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DeleteAppGroupOutcome(DeleteAppGroupResult(outcome.result())); + else + return DeleteAppGroupOutcome(outcome.error()); +} + +void RetailcloudClient::deleteAppGroupAsync(const DeleteAppGroupRequest& request, const DeleteAppGroupAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, deleteAppGroup(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +RetailcloudClient::DeleteAppGroupOutcomeCallable RetailcloudClient::deleteAppGroupCallable(const DeleteAppGroupRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->deleteAppGroup(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + RetailcloudClient::DeleteAppResourceAllocOutcome RetailcloudClient::deleteAppResourceAlloc(const DeleteAppResourceAllocRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -1203,6 +1347,42 @@ RetailcloudClient::DescribeAppEnvironmentDetailOutcomeCallable RetailcloudClient return task->get_future(); } +RetailcloudClient::DescribeAppMonitorMetricOutcome RetailcloudClient::describeAppMonitorMetric(const DescribeAppMonitorMetricRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeAppMonitorMetricOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeAppMonitorMetricOutcome(DescribeAppMonitorMetricResult(outcome.result())); + else + return DescribeAppMonitorMetricOutcome(outcome.error()); +} + +void RetailcloudClient::describeAppMonitorMetricAsync(const DescribeAppMonitorMetricRequest& request, const DescribeAppMonitorMetricAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeAppMonitorMetric(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +RetailcloudClient::DescribeAppMonitorMetricOutcomeCallable RetailcloudClient::describeAppMonitorMetricCallable(const DescribeAppMonitorMetricRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeAppMonitorMetric(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + RetailcloudClient::DescribeAppResourceAllocOutcome RetailcloudClient::describeAppResourceAlloc(const DescribeAppResourceAllocRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -1347,6 +1527,42 @@ RetailcloudClient::DescribeDeployOrderDetailOutcomeCallable RetailcloudClient::d return task->get_future(); } +RetailcloudClient::DescribeEventMonitorListOutcome RetailcloudClient::describeEventMonitorList(const DescribeEventMonitorListRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeEventMonitorListOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeEventMonitorListOutcome(DescribeEventMonitorListResult(outcome.result())); + else + return DescribeEventMonitorListOutcome(outcome.error()); +} + +void RetailcloudClient::describeEventMonitorListAsync(const DescribeEventMonitorListRequest& request, const DescribeEventMonitorListAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeEventMonitorList(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +RetailcloudClient::DescribeEventMonitorListOutcomeCallable RetailcloudClient::describeEventMonitorListCallable(const DescribeEventMonitorListRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeEventMonitorList(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + RetailcloudClient::DescribeJobLogOutcome RetailcloudClient::describeJobLog(const DescribeJobLogRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -1383,6 +1599,42 @@ RetailcloudClient::DescribeJobLogOutcomeCallable RetailcloudClient::describeJobL return task->get_future(); } +RetailcloudClient::DescribePodContainerLogListOutcome RetailcloudClient::describePodContainerLogList(const DescribePodContainerLogListRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribePodContainerLogListOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribePodContainerLogListOutcome(DescribePodContainerLogListResult(outcome.result())); + else + return DescribePodContainerLogListOutcome(outcome.error()); +} + +void RetailcloudClient::describePodContainerLogListAsync(const DescribePodContainerLogListRequest& request, const DescribePodContainerLogListAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describePodContainerLogList(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +RetailcloudClient::DescribePodContainerLogListOutcomeCallable RetailcloudClient::describePodContainerLogListCallable(const DescribePodContainerLogListRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describePodContainerLogList(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + RetailcloudClient::DescribePodEventsOutcome RetailcloudClient::describePodEvents(const DescribePodEventsRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -1779,6 +2031,78 @@ RetailcloudClient::ListAppEnvironmentOutcomeCallable RetailcloudClient::listAppE return task->get_future(); } +RetailcloudClient::ListAppGroupOutcome RetailcloudClient::listAppGroup(const ListAppGroupRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ListAppGroupOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ListAppGroupOutcome(ListAppGroupResult(outcome.result())); + else + return ListAppGroupOutcome(outcome.error()); +} + +void RetailcloudClient::listAppGroupAsync(const ListAppGroupRequest& request, const ListAppGroupAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, listAppGroup(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +RetailcloudClient::ListAppGroupOutcomeCallable RetailcloudClient::listAppGroupCallable(const ListAppGroupRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->listAppGroup(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +RetailcloudClient::ListAppGroupMappingOutcome RetailcloudClient::listAppGroupMapping(const ListAppGroupMappingRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ListAppGroupMappingOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ListAppGroupMappingOutcome(ListAppGroupMappingResult(outcome.result())); + else + return ListAppGroupMappingOutcome(outcome.error()); +} + +void RetailcloudClient::listAppGroupMappingAsync(const ListAppGroupMappingRequest& request, const ListAppGroupMappingAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, listAppGroupMapping(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +RetailcloudClient::ListAppGroupMappingOutcomeCallable RetailcloudClient::listAppGroupMappingCallable(const ListAppGroupMappingRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->listAppGroupMapping(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + RetailcloudClient::ListAppInstanceOutcome RetailcloudClient::listAppInstance(const ListAppInstanceRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -2787,6 +3111,42 @@ RetailcloudClient::SyncPodInfoOutcomeCallable RetailcloudClient::syncPodInfoCall return task->get_future(); } +RetailcloudClient::UnbindGroupOutcome RetailcloudClient::unbindGroup(const UnbindGroupRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return UnbindGroupOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return UnbindGroupOutcome(UnbindGroupResult(outcome.result())); + else + return UnbindGroupOutcome(outcome.error()); +} + +void RetailcloudClient::unbindGroupAsync(const UnbindGroupRequest& request, const UnbindGroupAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, unbindGroup(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +RetailcloudClient::UnbindGroupOutcomeCallable RetailcloudClient::unbindGroupCallable(const UnbindGroupRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->unbindGroup(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + RetailcloudClient::UnbindNodeLabelOutcome RetailcloudClient::unbindNodeLabel(const UnbindNodeLabelRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -2859,6 +3219,42 @@ RetailcloudClient::UpdateAppOutcomeCallable RetailcloudClient::updateAppCallable return task->get_future(); } +RetailcloudClient::UpdateAppMonitorsOutcome RetailcloudClient::updateAppMonitors(const UpdateAppMonitorsRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return UpdateAppMonitorsOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return UpdateAppMonitorsOutcome(UpdateAppMonitorsResult(outcome.result())); + else + return UpdateAppMonitorsOutcome(outcome.error()); +} + +void RetailcloudClient::updateAppMonitorsAsync(const UpdateAppMonitorsRequest& request, const UpdateAppMonitorsAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, updateAppMonitors(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +RetailcloudClient::UpdateAppMonitorsOutcomeCallable RetailcloudClient::updateAppMonitorsCallable(const UpdateAppMonitorsRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->updateAppMonitors(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + RetailcloudClient::UpdateDeployConfigOutcome RetailcloudClient::updateDeployConfig(const UpdateDeployConfigRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); diff --git a/retailcloud/src/model/BindGroupRequest.cc b/retailcloud/src/model/BindGroupRequest.cc new file mode 100644 index 000000000..b677345c8 --- /dev/null +++ b/retailcloud/src/model/BindGroupRequest.cc @@ -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 + +using AlibabaCloud::Retailcloud::Model::BindGroupRequest; + +BindGroupRequest::BindGroupRequest() : + RpcServiceRequest("retailcloud", "2018-03-13", "BindGroup") +{ + setMethod(HttpRequest::Method::Post); +} + +BindGroupRequest::~BindGroupRequest() +{} + +std::string BindGroupRequest::getBizCode()const +{ + return bizCode_; +} + +void BindGroupRequest::setBizCode(const std::string& bizCode) +{ + bizCode_ = bizCode; + setParameter("BizCode", bizCode); +} + +long BindGroupRequest::getAppId()const +{ + return appId_; +} + +void BindGroupRequest::setAppId(long appId) +{ + appId_ = appId; + setParameter("AppId", std::to_string(appId)); +} + +std::string BindGroupRequest::getName()const +{ + return name_; +} + +void BindGroupRequest::setName(const std::string& name) +{ + name_ = name; + setParameter("Name", name); +} + diff --git a/retailcloud/src/model/BindGroupResult.cc b/retailcloud/src/model/BindGroupResult.cc new file mode 100644 index 000000000..23c7cb006 --- /dev/null +++ b/retailcloud/src/model/BindGroupResult.cc @@ -0,0 +1,66 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Retailcloud; +using namespace AlibabaCloud::Retailcloud::Model; + +BindGroupResult::BindGroupResult() : + ServiceResult() +{} + +BindGroupResult::BindGroupResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +BindGroupResult::~BindGroupResult() +{} + +void BindGroupResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto resultNode = value["Result"]; + if(!resultNode["Success"].isNull()) + result_.success = resultNode["Success"].asString() == "true"; + if(!value["Code"].isNull()) + code_ = std::stoi(value["Code"].asString()); + if(!value["ErrMsg"].isNull()) + errMsg_ = value["ErrMsg"].asString(); + +} + +std::string BindGroupResult::getErrMsg()const +{ + return errMsg_; +} + +int BindGroupResult::getCode()const +{ + return code_; +} + +BindGroupResult::Result BindGroupResult::getResult()const +{ + return result_; +} + diff --git a/retailcloud/src/model/CreateAppGroupRequest.cc b/retailcloud/src/model/CreateAppGroupRequest.cc new file mode 100644 index 000000000..80e56c996 --- /dev/null +++ b/retailcloud/src/model/CreateAppGroupRequest.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::Retailcloud::Model::CreateAppGroupRequest; + +CreateAppGroupRequest::CreateAppGroupRequest() : + RpcServiceRequest("retailcloud", "2018-03-13", "CreateAppGroup") +{ + setMethod(HttpRequest::Method::Post); +} + +CreateAppGroupRequest::~CreateAppGroupRequest() +{} + +std::string CreateAppGroupRequest::getBizCode()const +{ + return bizCode_; +} + +void CreateAppGroupRequest::setBizCode(const std::string& bizCode) +{ + bizCode_ = bizCode; + setBodyParameter("BizCode", bizCode); +} + +std::string CreateAppGroupRequest::getName()const +{ + return name_; +} + +void CreateAppGroupRequest::setName(const std::string& name) +{ + name_ = name; + setBodyParameter("Name", name); +} + diff --git a/retailcloud/src/model/CreateAppGroupResult.cc b/retailcloud/src/model/CreateAppGroupResult.cc new file mode 100644 index 000000000..87f99f5b0 --- /dev/null +++ b/retailcloud/src/model/CreateAppGroupResult.cc @@ -0,0 +1,66 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Retailcloud; +using namespace AlibabaCloud::Retailcloud::Model; + +CreateAppGroupResult::CreateAppGroupResult() : + ServiceResult() +{} + +CreateAppGroupResult::CreateAppGroupResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +CreateAppGroupResult::~CreateAppGroupResult() +{} + +void CreateAppGroupResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto resultNode = value["Result"]; + if(!resultNode["AppGroupId"].isNull()) + result_.appGroupId = std::stol(resultNode["AppGroupId"].asString()); + if(!value["Code"].isNull()) + code_ = std::stoi(value["Code"].asString()); + if(!value["ErrMsg"].isNull()) + errMsg_ = value["ErrMsg"].asString(); + +} + +std::string CreateAppGroupResult::getErrMsg()const +{ + return errMsg_; +} + +int CreateAppGroupResult::getCode()const +{ + return code_; +} + +CreateAppGroupResult::Result CreateAppGroupResult::getResult()const +{ + return result_; +} + diff --git a/retailcloud/src/model/CreateAppMonitorsRequest.cc b/retailcloud/src/model/CreateAppMonitorsRequest.cc new file mode 100644 index 000000000..e0a8680df --- /dev/null +++ b/retailcloud/src/model/CreateAppMonitorsRequest.cc @@ -0,0 +1,86 @@ +/* + * 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::Retailcloud::Model::CreateAppMonitorsRequest; + +CreateAppMonitorsRequest::CreateAppMonitorsRequest() : + RpcServiceRequest("retailcloud", "2018-03-13", "CreateAppMonitors") +{ + setMethod(HttpRequest::Method::Post); +} + +CreateAppMonitorsRequest::~CreateAppMonitorsRequest() +{} + +std::vector CreateAppMonitorsRequest::getAppIds()const +{ + return appIds_; +} + +void CreateAppMonitorsRequest::setAppIds(const std::vector& appIds) +{ + appIds_ = appIds; + for(int dep1 = 0; dep1!= appIds.size(); dep1++) { + setBodyParameter("AppIds."+ std::to_string(dep1), std::to_string(appIds.at(dep1))); + } +} + +long CreateAppMonitorsRequest::getMainUserId()const +{ + return mainUserId_; +} + +void CreateAppMonitorsRequest::setMainUserId(long mainUserId) +{ + mainUserId_ = mainUserId; + setParameter("MainUserId", std::to_string(mainUserId)); +} + +int CreateAppMonitorsRequest::getEnvType()const +{ + return envType_; +} + +void CreateAppMonitorsRequest::setEnvType(int envType) +{ + envType_ = envType; + setParameter("EnvType", std::to_string(envType)); +} + +long CreateAppMonitorsRequest::getAlarmTemplateId()const +{ + return alarmTemplateId_; +} + +void CreateAppMonitorsRequest::setAlarmTemplateId(long alarmTemplateId) +{ + alarmTemplateId_ = alarmTemplateId; + setParameter("AlarmTemplateId", std::to_string(alarmTemplateId)); +} + +std::string CreateAppMonitorsRequest::getSilenceTime()const +{ + return silenceTime_; +} + +void CreateAppMonitorsRequest::setSilenceTime(const std::string& silenceTime) +{ + silenceTime_ = silenceTime; + setParameter("SilenceTime", silenceTime); +} + diff --git a/retailcloud/src/model/CreateAppMonitorsResult.cc b/retailcloud/src/model/CreateAppMonitorsResult.cc new file mode 100644 index 000000000..c125f5468 --- /dev/null +++ b/retailcloud/src/model/CreateAppMonitorsResult.cc @@ -0,0 +1,58 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Retailcloud; +using namespace AlibabaCloud::Retailcloud::Model; + +CreateAppMonitorsResult::CreateAppMonitorsResult() : + ServiceResult() +{} + +CreateAppMonitorsResult::CreateAppMonitorsResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +CreateAppMonitorsResult::~CreateAppMonitorsResult() +{} + +void CreateAppMonitorsResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["Code"].isNull()) + code_ = std::stoi(value["Code"].asString()); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + +} + +int CreateAppMonitorsResult::getCode()const +{ + return code_; +} + +bool CreateAppMonitorsResult::getSuccess()const +{ + return success_; +} + diff --git a/retailcloud/src/model/CreateAppRequest.cc b/retailcloud/src/model/CreateAppRequest.cc index 79e83cce3..9e301e3c7 100644 --- a/retailcloud/src/model/CreateAppRequest.cc +++ b/retailcloud/src/model/CreateAppRequest.cc @@ -82,6 +82,17 @@ void CreateAppRequest::setTitle(const std::string& title) setBodyParameter("Title", title); } +std::string CreateAppRequest::getGroupName()const +{ + return groupName_; +} + +void CreateAppRequest::setGroupName(const std::string& groupName) +{ + groupName_ = groupName; + setBodyParameter("GroupName", groupName); +} + std::vector CreateAppRequest::getMiddleWareIdList()const { return middleWareIdList_; diff --git a/retailcloud/src/model/CreateEnvironmentRequest.cc b/retailcloud/src/model/CreateEnvironmentRequest.cc index d5d617f1a..b2ac0af74 100644 --- a/retailcloud/src/model/CreateEnvironmentRequest.cc +++ b/retailcloud/src/model/CreateEnvironmentRequest.cc @@ -82,6 +82,17 @@ void CreateEnvironmentRequest::setAppSchemaId(long appSchemaId) setParameter("AppSchemaId", std::to_string(appSchemaId)); } +std::string CreateEnvironmentRequest::getClusterId()const +{ + return clusterId_; +} + +void CreateEnvironmentRequest::setClusterId(const std::string& clusterId) +{ + clusterId_ = clusterId; + setParameter("ClusterId", clusterId); +} + std::string CreateEnvironmentRequest::getRegion()const { return region_; diff --git a/retailcloud/src/model/DeleteAppGroupRequest.cc b/retailcloud/src/model/DeleteAppGroupRequest.cc new file mode 100644 index 000000000..3d20001f0 --- /dev/null +++ b/retailcloud/src/model/DeleteAppGroupRequest.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::Retailcloud::Model::DeleteAppGroupRequest; + +DeleteAppGroupRequest::DeleteAppGroupRequest() : + RpcServiceRequest("retailcloud", "2018-03-13", "DeleteAppGroup") +{ + setMethod(HttpRequest::Method::Post); +} + +DeleteAppGroupRequest::~DeleteAppGroupRequest() +{} + +long DeleteAppGroupRequest::getGroupId()const +{ + return groupId_; +} + +void DeleteAppGroupRequest::setGroupId(long groupId) +{ + groupId_ = groupId; + setParameter("GroupId", std::to_string(groupId)); +} + +bool DeleteAppGroupRequest::getForce()const +{ + return force_; +} + +void DeleteAppGroupRequest::setForce(bool force) +{ + force_ = force; + setParameter("Force", force ? "true" : "false"); +} + diff --git a/retailcloud/src/model/DeleteAppGroupResult.cc b/retailcloud/src/model/DeleteAppGroupResult.cc new file mode 100644 index 000000000..6461e0578 --- /dev/null +++ b/retailcloud/src/model/DeleteAppGroupResult.cc @@ -0,0 +1,66 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Retailcloud; +using namespace AlibabaCloud::Retailcloud::Model; + +DeleteAppGroupResult::DeleteAppGroupResult() : + ServiceResult() +{} + +DeleteAppGroupResult::DeleteAppGroupResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DeleteAppGroupResult::~DeleteAppGroupResult() +{} + +void DeleteAppGroupResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto resultNode = value["Result"]; + if(!resultNode["Success"].isNull()) + result_.success = resultNode["Success"].asString() == "true"; + if(!value["Code"].isNull()) + code_ = std::stoi(value["Code"].asString()); + if(!value["ErrMsg"].isNull()) + errMsg_ = value["ErrMsg"].asString(); + +} + +std::string DeleteAppGroupResult::getErrMsg()const +{ + return errMsg_; +} + +int DeleteAppGroupResult::getCode()const +{ + return code_; +} + +DeleteAppGroupResult::Result DeleteAppGroupResult::getResult()const +{ + return result_; +} + diff --git a/retailcloud/src/model/DeployAppRequest.cc b/retailcloud/src/model/DeployAppRequest.cc index 043fa7c87..5c3228b7e 100644 --- a/retailcloud/src/model/DeployAppRequest.cc +++ b/retailcloud/src/model/DeployAppRequest.cc @@ -141,6 +141,17 @@ void DeployAppRequest::setInitContainerImageList(const std::vector& } } +std::string DeployAppRequest::getDefaultPacketOfAppGroup()const +{ + return defaultPacketOfAppGroup_; +} + +void DeployAppRequest::setDefaultPacketOfAppGroup(const std::string& defaultPacketOfAppGroup) +{ + defaultPacketOfAppGroup_ = defaultPacketOfAppGroup; + setParameter("DefaultPacketOfAppGroup", defaultPacketOfAppGroup); +} + bool DeployAppRequest::getArmsFlag()const { return armsFlag_; diff --git a/retailcloud/src/model/DescribeAppMonitorMetricRequest.cc b/retailcloud/src/model/DescribeAppMonitorMetricRequest.cc new file mode 100644 index 000000000..f8b2f9765 --- /dev/null +++ b/retailcloud/src/model/DescribeAppMonitorMetricRequest.cc @@ -0,0 +1,117 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Retailcloud::Model::DescribeAppMonitorMetricRequest; + +DescribeAppMonitorMetricRequest::DescribeAppMonitorMetricRequest() : + RpcServiceRequest("retailcloud", "2018-03-13", "DescribeAppMonitorMetric") +{ + setMethod(HttpRequest::Method::Post); +} + +DescribeAppMonitorMetricRequest::~DescribeAppMonitorMetricRequest() +{} + +std::string DescribeAppMonitorMetricRequest::getDeployOrderId()const +{ + return deployOrderId_; +} + +void DescribeAppMonitorMetricRequest::setDeployOrderId(const std::string& deployOrderId) +{ + deployOrderId_ = deployOrderId; + setParameter("DeployOrderId", deployOrderId); +} + +std::string DescribeAppMonitorMetricRequest::getMetric()const +{ + return metric_; +} + +void DescribeAppMonitorMetricRequest::setMetric(const std::string& metric) +{ + metric_ = metric; + setParameter("Metric", metric); +} + +long DescribeAppMonitorMetricRequest::getAppId()const +{ + return appId_; +} + +void DescribeAppMonitorMetricRequest::setAppId(long appId) +{ + appId_ = appId; + setParameter("AppId", std::to_string(appId)); +} + +std::string DescribeAppMonitorMetricRequest::getPodName()const +{ + return podName_; +} + +void DescribeAppMonitorMetricRequest::setPodName(const std::string& podName) +{ + podName_ = podName; + setParameter("PodName", podName); +} + +long DescribeAppMonitorMetricRequest::getEndTime()const +{ + return endTime_; +} + +void DescribeAppMonitorMetricRequest::setEndTime(long endTime) +{ + endTime_ = endTime; + setParameter("EndTime", std::to_string(endTime)); +} + +long DescribeAppMonitorMetricRequest::getEnvId()const +{ + return envId_; +} + +void DescribeAppMonitorMetricRequest::setEnvId(long envId) +{ + envId_ = envId; + setParameter("EnvId", std::to_string(envId)); +} + +long DescribeAppMonitorMetricRequest::getStartTime()const +{ + return startTime_; +} + +void DescribeAppMonitorMetricRequest::setStartTime(long startTime) +{ + startTime_ = startTime; + setParameter("StartTime", std::to_string(startTime)); +} + +std::string DescribeAppMonitorMetricRequest::getType()const +{ + return type_; +} + +void DescribeAppMonitorMetricRequest::setType(const std::string& type) +{ + type_ = type; + setParameter("Type", type); +} + diff --git a/retailcloud/src/model/DescribeAppMonitorMetricResult.cc b/retailcloud/src/model/DescribeAppMonitorMetricResult.cc new file mode 100644 index 000000000..a8b19f0b6 --- /dev/null +++ b/retailcloud/src/model/DescribeAppMonitorMetricResult.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 +#include + +using namespace AlibabaCloud::Retailcloud; +using namespace AlibabaCloud::Retailcloud::Model; + +DescribeAppMonitorMetricResult::DescribeAppMonitorMetricResult() : + ServiceResult() +{} + +DescribeAppMonitorMetricResult::DescribeAppMonitorMetricResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeAppMonitorMetricResult::~DescribeAppMonitorMetricResult() +{} + +void DescribeAppMonitorMetricResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allResultNode = value["Result"]["MetricItem"]; + for (auto valueResultMetricItem : allResultNode) + { + MetricItem resultObject; + if(!valueResultMetricItem["Name"].isNull()) + resultObject.name = valueResultMetricItem["Name"].asString(); + auto allData = value["Data"]["Double"]; + for (auto value : allData) + resultObject.data.push_back(value.asString()); + auto allCategories = value["Categories"]["String"]; + for (auto value : allCategories) + resultObject.categories.push_back(value.asString()); + result_.push_back(resultObject); + } + if(!value["Code"].isNull()) + code_ = std::stoi(value["Code"].asString()); + if(!value["ErrMsg"].isNull()) + errMsg_ = value["ErrMsg"].asString(); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + +} + +std::string DescribeAppMonitorMetricResult::getErrMsg()const +{ + return errMsg_; +} + +int DescribeAppMonitorMetricResult::getCode()const +{ + return code_; +} + +bool DescribeAppMonitorMetricResult::getSuccess()const +{ + return success_; +} + +std::vector DescribeAppMonitorMetricResult::getResult()const +{ + return result_; +} + diff --git a/retailcloud/src/model/DescribeEventMonitorListRequest.cc b/retailcloud/src/model/DescribeEventMonitorListRequest.cc new file mode 100644 index 000000000..c96dcac02 --- /dev/null +++ b/retailcloud/src/model/DescribeEventMonitorListRequest.cc @@ -0,0 +1,128 @@ +/* + * 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::Retailcloud::Model::DescribeEventMonitorListRequest; + +DescribeEventMonitorListRequest::DescribeEventMonitorListRequest() : + RpcServiceRequest("retailcloud", "2018-03-13", "DescribeEventMonitorList") +{ + setMethod(HttpRequest::Method::Post); +} + +DescribeEventMonitorListRequest::~DescribeEventMonitorListRequest() +{} + +std::string DescribeEventMonitorListRequest::getEventLevel()const +{ + return eventLevel_; +} + +void DescribeEventMonitorListRequest::setEventLevel(const std::string& eventLevel) +{ + eventLevel_ = eventLevel; + setParameter("EventLevel", eventLevel); +} + +long DescribeEventMonitorListRequest::getAppId()const +{ + return appId_; +} + +void DescribeEventMonitorListRequest::setAppId(long appId) +{ + appId_ = appId; + setParameter("AppId", std::to_string(appId)); +} + +int DescribeEventMonitorListRequest::getPageSize()const +{ + return pageSize_; +} + +void DescribeEventMonitorListRequest::setPageSize(int pageSize) +{ + pageSize_ = pageSize; + setParameter("PageSize", std::to_string(pageSize)); +} + +std::string DescribeEventMonitorListRequest::getPodName()const +{ + return podName_; +} + +void DescribeEventMonitorListRequest::setPodName(const std::string& podName) +{ + podName_ = podName; + setParameter("PodName", podName); +} + +long DescribeEventMonitorListRequest::getEndTime()const +{ + return endTime_; +} + +void DescribeEventMonitorListRequest::setEndTime(long endTime) +{ + endTime_ = endTime; + setParameter("EndTime", std::to_string(endTime)); +} + +std::string DescribeEventMonitorListRequest::getEventType()const +{ + return eventType_; +} + +void DescribeEventMonitorListRequest::setEventType(const std::string& eventType) +{ + eventType_ = eventType; + setParameter("EventType", eventType); +} + +long DescribeEventMonitorListRequest::getEnvId()const +{ + return envId_; +} + +void DescribeEventMonitorListRequest::setEnvId(long envId) +{ + envId_ = envId; + setParameter("EnvId", std::to_string(envId)); +} + +long DescribeEventMonitorListRequest::getStartTime()const +{ + return startTime_; +} + +void DescribeEventMonitorListRequest::setStartTime(long startTime) +{ + startTime_ = startTime; + setParameter("StartTime", std::to_string(startTime)); +} + +int DescribeEventMonitorListRequest::getPageNum()const +{ + return pageNum_; +} + +void DescribeEventMonitorListRequest::setPageNum(int pageNum) +{ + pageNum_ = pageNum; + setParameter("PageNum", std::to_string(pageNum)); +} + diff --git a/retailcloud/src/model/DescribeEventMonitorListResult.cc b/retailcloud/src/model/DescribeEventMonitorListResult.cc new file mode 100644 index 000000000..4357040be --- /dev/null +++ b/retailcloud/src/model/DescribeEventMonitorListResult.cc @@ -0,0 +1,108 @@ +/* + * 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::Retailcloud; +using namespace AlibabaCloud::Retailcloud::Model; + +DescribeEventMonitorListResult::DescribeEventMonitorListResult() : + ServiceResult() +{} + +DescribeEventMonitorListResult::DescribeEventMonitorListResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeEventMonitorListResult::~DescribeEventMonitorListResult() +{} + +void DescribeEventMonitorListResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allDataNode = value["Data"]["EventInfo"]; + for (auto valueDataEventInfo : allDataNode) + { + EventInfo dataObject; + if(!valueDataEventInfo["Count"].isNull()) + dataObject.count = std::stoi(valueDataEventInfo["Count"].asString()); + if(!valueDataEventInfo["EventTime"].isNull()) + dataObject.eventTime = valueDataEventInfo["EventTime"].asString(); + if(!valueDataEventInfo["HostName"].isNull()) + dataObject.hostName = valueDataEventInfo["HostName"].asString(); + if(!valueDataEventInfo["Kind"].isNull()) + dataObject.kind = valueDataEventInfo["Kind"].asString(); + if(!valueDataEventInfo["Level"].isNull()) + dataObject.level = valueDataEventInfo["Level"].asString(); + if(!valueDataEventInfo["Message"].isNull()) + dataObject.message = valueDataEventInfo["Message"].asString(); + if(!valueDataEventInfo["NameSpace"].isNull()) + dataObject._nameSpace = valueDataEventInfo["NameSpace"].asString(); + if(!valueDataEventInfo["PodName"].isNull()) + dataObject.podName = valueDataEventInfo["PodName"].asString(); + if(!valueDataEventInfo["Reason"].isNull()) + dataObject.reason = valueDataEventInfo["Reason"].asString(); + data_.push_back(dataObject); + } + if(!value["Code"].isNull()) + code_ = std::stoi(value["Code"].asString()); + if(!value["ErrorMsg"].isNull()) + errorMsg_ = value["ErrorMsg"].asString(); + if(!value["PageNumber"].isNull()) + pageNumber_ = std::stoi(value["PageNumber"].asString()); + if(!value["PageSize"].isNull()) + pageSize_ = std::stoi(value["PageSize"].asString()); + if(!value["TotalCount"].isNull()) + totalCount_ = std::stol(value["TotalCount"].asString()); + +} + +long DescribeEventMonitorListResult::getTotalCount()const +{ + return totalCount_; +} + +int DescribeEventMonitorListResult::getPageSize()const +{ + return pageSize_; +} + +int DescribeEventMonitorListResult::getPageNumber()const +{ + return pageNumber_; +} + +std::string DescribeEventMonitorListResult::getErrorMsg()const +{ + return errorMsg_; +} + +std::vector DescribeEventMonitorListResult::getData()const +{ + return data_; +} + +int DescribeEventMonitorListResult::getCode()const +{ + return code_; +} + diff --git a/retailcloud/src/model/DescribePodContainerLogListRequest.cc b/retailcloud/src/model/DescribePodContainerLogListRequest.cc new file mode 100644 index 000000000..ee5040d0d --- /dev/null +++ b/retailcloud/src/model/DescribePodContainerLogListRequest.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 + +using AlibabaCloud::Retailcloud::Model::DescribePodContainerLogListRequest; + +DescribePodContainerLogListRequest::DescribePodContainerLogListRequest() : + RpcServiceRequest("retailcloud", "2018-03-13", "DescribePodContainerLogList") +{ + setMethod(HttpRequest::Method::Post); +} + +DescribePodContainerLogListRequest::~DescribePodContainerLogListRequest() +{} + +int DescribePodContainerLogListRequest::getLine()const +{ + return line_; +} + +void DescribePodContainerLogListRequest::setLine(int line) +{ + line_ = line; + setParameter("Line", std::to_string(line)); +} + +long DescribePodContainerLogListRequest::getAppId()const +{ + return appId_; +} + +void DescribePodContainerLogListRequest::setAppId(long appId) +{ + appId_ = appId; + setParameter("AppId", std::to_string(appId)); +} + +std::string DescribePodContainerLogListRequest::getPodName()const +{ + return podName_; +} + +void DescribePodContainerLogListRequest::setPodName(const std::string& podName) +{ + podName_ = podName; + setParameter("PodName", podName); +} + +long DescribePodContainerLogListRequest::getEnvId()const +{ + return envId_; +} + +void DescribePodContainerLogListRequest::setEnvId(long envId) +{ + envId_ = envId; + setParameter("EnvId", std::to_string(envId)); +} + diff --git a/retailcloud/src/model/DescribePodContainerLogListResult.cc b/retailcloud/src/model/DescribePodContainerLogListResult.cc new file mode 100644 index 000000000..7ecc54bc8 --- /dev/null +++ b/retailcloud/src/model/DescribePodContainerLogListResult.cc @@ -0,0 +1,83 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Retailcloud; +using namespace AlibabaCloud::Retailcloud::Model; + +DescribePodContainerLogListResult::DescribePodContainerLogListResult() : + ServiceResult() +{} + +DescribePodContainerLogListResult::DescribePodContainerLogListResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribePodContainerLogListResult::~DescribePodContainerLogListResult() +{} + +void DescribePodContainerLogListResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto resultNode = value["Result"]; + auto allContainerLogListNode = resultNode["ContainerLogList"]["PodContainerLog"]; + for (auto resultNodeContainerLogListPodContainerLog : allContainerLogListNode) + { + Result::PodContainerLog podContainerLogObject; + if(!resultNodeContainerLogListPodContainerLog["ContainerName"].isNull()) + podContainerLogObject.containerName = resultNodeContainerLogListPodContainerLog["ContainerName"].asString(); + if(!resultNodeContainerLogListPodContainerLog["Content"].isNull()) + podContainerLogObject.content = resultNodeContainerLogListPodContainerLog["Content"].asString(); + if(!resultNodeContainerLogListPodContainerLog["PodName"].isNull()) + podContainerLogObject.podName = resultNodeContainerLogListPodContainerLog["PodName"].asString(); + result_.containerLogList.push_back(podContainerLogObject); + } + if(!value["Code"].isNull()) + code_ = std::stoi(value["Code"].asString()); + if(!value["ErrMsg"].isNull()) + errMsg_ = value["ErrMsg"].asString(); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + +} + +std::string DescribePodContainerLogListResult::getErrMsg()const +{ + return errMsg_; +} + +int DescribePodContainerLogListResult::getCode()const +{ + return code_; +} + +bool DescribePodContainerLogListResult::getSuccess()const +{ + return success_; +} + +DescribePodContainerLogListResult::Result DescribePodContainerLogListResult::getResult()const +{ + return result_; +} + diff --git a/retailcloud/src/model/ListAppGroupMappingRequest.cc b/retailcloud/src/model/ListAppGroupMappingRequest.cc new file mode 100644 index 000000000..87f30b481 --- /dev/null +++ b/retailcloud/src/model/ListAppGroupMappingRequest.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 + +using AlibabaCloud::Retailcloud::Model::ListAppGroupMappingRequest; + +ListAppGroupMappingRequest::ListAppGroupMappingRequest() : + RpcServiceRequest("retailcloud", "2018-03-13", "ListAppGroupMapping") +{ + setMethod(HttpRequest::Method::Post); +} + +ListAppGroupMappingRequest::~ListAppGroupMappingRequest() +{} + +std::string ListAppGroupMappingRequest::getBizCode()const +{ + return bizCode_; +} + +void ListAppGroupMappingRequest::setBizCode(const std::string& bizCode) +{ + bizCode_ = bizCode; + setParameter("BizCode", bizCode); +} + +std::string ListAppGroupMappingRequest::getName()const +{ + return name_; +} + +void ListAppGroupMappingRequest::setName(const std::string& name) +{ + name_ = name; + setParameter("Name", name); +} + +int ListAppGroupMappingRequest::getPageSize()const +{ + return pageSize_; +} + +void ListAppGroupMappingRequest::setPageSize(int pageSize) +{ + pageSize_ = pageSize; + setParameter("PageSize", std::to_string(pageSize)); +} + +int ListAppGroupMappingRequest::getPageNumber()const +{ + return pageNumber_; +} + +void ListAppGroupMappingRequest::setPageNumber(int pageNumber) +{ + pageNumber_ = pageNumber; + setParameter("PageNumber", std::to_string(pageNumber)); +} + diff --git a/retailcloud/src/model/ListAppGroupMappingResult.cc b/retailcloud/src/model/ListAppGroupMappingResult.cc new file mode 100644 index 000000000..64e934cd2 --- /dev/null +++ b/retailcloud/src/model/ListAppGroupMappingResult.cc @@ -0,0 +1,98 @@ +/* + * 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::Retailcloud; +using namespace AlibabaCloud::Retailcloud::Model; + +ListAppGroupMappingResult::ListAppGroupMappingResult() : + ServiceResult() +{} + +ListAppGroupMappingResult::ListAppGroupMappingResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ListAppGroupMappingResult::~ListAppGroupMappingResult() +{} + +void ListAppGroupMappingResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allDataNode = value["Data"]["AppGroupMappingDetail"]; + for (auto valueDataAppGroupMappingDetail : allDataNode) + { + AppGroupMappingDetail dataObject; + if(!valueDataAppGroupMappingDetail["Id"].isNull()) + dataObject.id = std::stol(valueDataAppGroupMappingDetail["Id"].asString()); + if(!valueDataAppGroupMappingDetail["Name"].isNull()) + dataObject.name = valueDataAppGroupMappingDetail["Name"].asString(); + if(!valueDataAppGroupMappingDetail["GroupId"].isNull()) + dataObject.groupId = std::stol(valueDataAppGroupMappingDetail["GroupId"].asString()); + if(!valueDataAppGroupMappingDetail["AppId"].isNull()) + dataObject.appId = std::stol(valueDataAppGroupMappingDetail["AppId"].asString()); + data_.push_back(dataObject); + } + if(!value["Code"].isNull()) + code_ = std::stoi(value["Code"].asString()); + if(!value["PageNumber"].isNull()) + pageNumber_ = std::stoi(value["PageNumber"].asString()); + if(!value["PageSize"].isNull()) + pageSize_ = std::stoi(value["PageSize"].asString()); + if(!value["TotalCount"].isNull()) + totalCount_ = std::stol(value["TotalCount"].asString()); + if(!value["ErrorMsg"].isNull()) + errorMsg_ = value["ErrorMsg"].asString(); + +} + +long ListAppGroupMappingResult::getTotalCount()const +{ + return totalCount_; +} + +int ListAppGroupMappingResult::getPageSize()const +{ + return pageSize_; +} + +int ListAppGroupMappingResult::getPageNumber()const +{ + return pageNumber_; +} + +std::string ListAppGroupMappingResult::getErrorMsg()const +{ + return errorMsg_; +} + +std::vector ListAppGroupMappingResult::getData()const +{ + return data_; +} + +int ListAppGroupMappingResult::getCode()const +{ + return code_; +} + diff --git a/retailcloud/src/model/ListAppGroupRequest.cc b/retailcloud/src/model/ListAppGroupRequest.cc new file mode 100644 index 000000000..ea2032e72 --- /dev/null +++ b/retailcloud/src/model/ListAppGroupRequest.cc @@ -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 + +using AlibabaCloud::Retailcloud::Model::ListAppGroupRequest; + +ListAppGroupRequest::ListAppGroupRequest() : + RpcServiceRequest("retailcloud", "2018-03-13", "ListAppGroup") +{ + setMethod(HttpRequest::Method::Post); +} + +ListAppGroupRequest::~ListAppGroupRequest() +{} + +std::string ListAppGroupRequest::getBizCode()const +{ + return bizCode_; +} + +void ListAppGroupRequest::setBizCode(const std::string& bizCode) +{ + bizCode_ = bizCode; + setParameter("BizCode", bizCode); +} + +int ListAppGroupRequest::getPageSize()const +{ + return pageSize_; +} + +void ListAppGroupRequest::setPageSize(int pageSize) +{ + pageSize_ = pageSize; + setParameter("PageSize", std::to_string(pageSize)); +} + +int ListAppGroupRequest::getPageNumber()const +{ + return pageNumber_; +} + +void ListAppGroupRequest::setPageNumber(int pageNumber) +{ + pageNumber_ = pageNumber; + setParameter("PageNumber", std::to_string(pageNumber)); +} + diff --git a/retailcloud/src/model/ListAppGroupResult.cc b/retailcloud/src/model/ListAppGroupResult.cc new file mode 100644 index 000000000..19777d738 --- /dev/null +++ b/retailcloud/src/model/ListAppGroupResult.cc @@ -0,0 +1,96 @@ +/* + * 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::Retailcloud; +using namespace AlibabaCloud::Retailcloud::Model; + +ListAppGroupResult::ListAppGroupResult() : + ServiceResult() +{} + +ListAppGroupResult::ListAppGroupResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ListAppGroupResult::~ListAppGroupResult() +{} + +void ListAppGroupResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allDataNode = value["Data"]["AppGroupDetail"]; + for (auto valueDataAppGroupDetail : allDataNode) + { + AppGroupDetail dataObject; + if(!valueDataAppGroupDetail["BizName"].isNull()) + dataObject.bizName = valueDataAppGroupDetail["BizName"].asString(); + if(!valueDataAppGroupDetail["Name"].isNull()) + dataObject.name = valueDataAppGroupDetail["Name"].asString(); + if(!valueDataAppGroupDetail["Id"].isNull()) + dataObject.id = std::stol(valueDataAppGroupDetail["Id"].asString()); + data_.push_back(dataObject); + } + if(!value["Code"].isNull()) + code_ = std::stoi(value["Code"].asString()); + if(!value["PageNumber"].isNull()) + pageNumber_ = std::stoi(value["PageNumber"].asString()); + if(!value["PageSize"].isNull()) + pageSize_ = std::stoi(value["PageSize"].asString()); + if(!value["TotalCount"].isNull()) + totalCount_ = std::stol(value["TotalCount"].asString()); + if(!value["ErrorMsg"].isNull()) + errorMsg_ = value["ErrorMsg"].asString(); + +} + +long ListAppGroupResult::getTotalCount()const +{ + return totalCount_; +} + +int ListAppGroupResult::getPageSize()const +{ + return pageSize_; +} + +int ListAppGroupResult::getPageNumber()const +{ + return pageNumber_; +} + +std::string ListAppGroupResult::getErrorMsg()const +{ + return errorMsg_; +} + +std::vector ListAppGroupResult::getData()const +{ + return data_; +} + +int ListAppGroupResult::getCode()const +{ + return code_; +} + diff --git a/retailcloud/src/model/ListAppInstanceResult.cc b/retailcloud/src/model/ListAppInstanceResult.cc index 844953eef..dddbe25af 100644 --- a/retailcloud/src/model/ListAppInstanceResult.cc +++ b/retailcloud/src/model/ListAppInstanceResult.cc @@ -61,6 +61,8 @@ void ListAppInstanceResult::parse(const std::string &payload) dataObject.requests = valueDataAppInstanceDetail["Requests"].asString(); if(!valueDataAppInstanceDetail["Limits"].isNull()) dataObject.limits = valueDataAppInstanceDetail["Limits"].asString(); + if(!valueDataAppInstanceDetail["Version"].isNull()) + dataObject.version = valueDataAppInstanceDetail["Version"].asString(); data_.push_back(dataObject); } if(!value["Code"].isNull()) diff --git a/retailcloud/src/model/UnbindGroupRequest.cc b/retailcloud/src/model/UnbindGroupRequest.cc new file mode 100644 index 000000000..7251ca059 --- /dev/null +++ b/retailcloud/src/model/UnbindGroupRequest.cc @@ -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 + +using AlibabaCloud::Retailcloud::Model::UnbindGroupRequest; + +UnbindGroupRequest::UnbindGroupRequest() : + RpcServiceRequest("retailcloud", "2018-03-13", "UnbindGroup") +{ + setMethod(HttpRequest::Method::Post); +} + +UnbindGroupRequest::~UnbindGroupRequest() +{} + +std::string UnbindGroupRequest::getBizCode()const +{ + return bizCode_; +} + +void UnbindGroupRequest::setBizCode(const std::string& bizCode) +{ + bizCode_ = bizCode; + setParameter("BizCode", bizCode); +} + +long UnbindGroupRequest::getAppId()const +{ + return appId_; +} + +void UnbindGroupRequest::setAppId(long appId) +{ + appId_ = appId; + setParameter("AppId", std::to_string(appId)); +} + +std::string UnbindGroupRequest::getName()const +{ + return name_; +} + +void UnbindGroupRequest::setName(const std::string& name) +{ + name_ = name; + setParameter("Name", name); +} + diff --git a/retailcloud/src/model/UnbindGroupResult.cc b/retailcloud/src/model/UnbindGroupResult.cc new file mode 100644 index 000000000..00abc94e4 --- /dev/null +++ b/retailcloud/src/model/UnbindGroupResult.cc @@ -0,0 +1,66 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Retailcloud; +using namespace AlibabaCloud::Retailcloud::Model; + +UnbindGroupResult::UnbindGroupResult() : + ServiceResult() +{} + +UnbindGroupResult::UnbindGroupResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +UnbindGroupResult::~UnbindGroupResult() +{} + +void UnbindGroupResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto resultNode = value["Result"]; + if(!resultNode["Success"].isNull()) + result_.success = resultNode["Success"].asString() == "true"; + if(!value["Code"].isNull()) + code_ = std::stoi(value["Code"].asString()); + if(!value["ErrMsg"].isNull()) + errMsg_ = value["ErrMsg"].asString(); + +} + +std::string UnbindGroupResult::getErrMsg()const +{ + return errMsg_; +} + +int UnbindGroupResult::getCode()const +{ + return code_; +} + +UnbindGroupResult::Result UnbindGroupResult::getResult()const +{ + return result_; +} + diff --git a/retailcloud/src/model/UpdateAppMonitorsRequest.cc b/retailcloud/src/model/UpdateAppMonitorsRequest.cc new file mode 100644 index 000000000..94db345c9 --- /dev/null +++ b/retailcloud/src/model/UpdateAppMonitorsRequest.cc @@ -0,0 +1,75 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Retailcloud::Model::UpdateAppMonitorsRequest; + +UpdateAppMonitorsRequest::UpdateAppMonitorsRequest() : + RpcServiceRequest("retailcloud", "2018-03-13", "UpdateAppMonitors") +{ + setMethod(HttpRequest::Method::Post); +} + +UpdateAppMonitorsRequest::~UpdateAppMonitorsRequest() +{} + +long UpdateAppMonitorsRequest::getMainUserId()const +{ + return mainUserId_; +} + +void UpdateAppMonitorsRequest::setMainUserId(long mainUserId) +{ + mainUserId_ = mainUserId; + setBodyParameter("MainUserId", std::to_string(mainUserId)); +} + +std::string UpdateAppMonitorsRequest::getSilenceTime()const +{ + return silenceTime_; +} + +void UpdateAppMonitorsRequest::setSilenceTime(const std::string& silenceTime) +{ + silenceTime_ = silenceTime; + setBodyParameter("SilenceTime", silenceTime); +} + +std::vector UpdateAppMonitorsRequest::getMonitorIds()const +{ + return monitorIds_; +} + +void UpdateAppMonitorsRequest::setMonitorIds(const std::vector& monitorIds) +{ + monitorIds_ = monitorIds; + for(int dep1 = 0; dep1!= monitorIds.size(); dep1++) { + setBodyParameter("MonitorIds."+ std::to_string(dep1), std::to_string(monitorIds.at(dep1))); + } +} + +long UpdateAppMonitorsRequest::getTemplateId()const +{ + return templateId_; +} + +void UpdateAppMonitorsRequest::setTemplateId(long templateId) +{ + templateId_ = templateId; + setBodyParameter("TemplateId", std::to_string(templateId)); +} + diff --git a/retailcloud/src/model/UpdateAppMonitorsResult.cc b/retailcloud/src/model/UpdateAppMonitorsResult.cc new file mode 100644 index 000000000..b3545b2a0 --- /dev/null +++ b/retailcloud/src/model/UpdateAppMonitorsResult.cc @@ -0,0 +1,65 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Retailcloud; +using namespace AlibabaCloud::Retailcloud::Model; + +UpdateAppMonitorsResult::UpdateAppMonitorsResult() : + ServiceResult() +{} + +UpdateAppMonitorsResult::UpdateAppMonitorsResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +UpdateAppMonitorsResult::~UpdateAppMonitorsResult() +{} + +void UpdateAppMonitorsResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["Msg"].isNull()) + msg_ = value["Msg"].asString(); + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + +} + +std::string UpdateAppMonitorsResult::getMsg()const +{ + return msg_; +} + +std::string UpdateAppMonitorsResult::getCode()const +{ + return code_; +} + +bool UpdateAppMonitorsResult::getSuccess()const +{ + return success_; +} +