From 5706cda196c2d64200c5770ba5e0c97e86151d0d Mon Sep 17 00:00:00 2001 From: sdk-team Date: Fri, 13 May 2022 12:53:12 +0000 Subject: [PATCH] Add ListDashboardUrl api. --- CHANGELOG | 3 + VERSION | 2 +- mse/CMakeLists.txt | 108 +- mse/include/alibabacloud/mse/MseClient.h | 216 +++- .../mse/model/AddGatewayRouteRequest.h | 3 + ...usterRequest.h => AddSeataServerRequest.h} | 51 +- ...ClusterResult.h => AddSeataServerResult.h} | 22 +- .../mse/model/AddSecurityGroupRuleRequest.h | 54 + .../mse/model/AddSecurityGroupRuleResult.h | 59 ++ .../mse/model/AddServiceSourceRequest.h | 8 + ...ontactGroupsRequest.h => AddTestRequest.h} | 27 +- .../alibabacloud/mse/model/AddTestResult.h | 117 +++ .../mse/model/CreateAlarmRuleRequest.h | 72 -- .../mse/model/CreateApplicationRequest.h | 6 + .../mse/model/CreateEngineNamespaceRequest.h | 3 + .../mse/model/CreateVGroupRequest.h | 54 + ...AlarmRuleResult.h => CreateVGroupResult.h} | 22 +- .../mse/model/DeleteGatewayDomainResult.h | 2 +- .../mse/model/DeleteGatewayServiceRequest.h | 51 + ...sResult.h => DeleteGatewayServiceResult.h} | 49 +- .../mse/model/DeleteSeataServerRequest.h | 45 + .../mse/model/DeleteSeataServerResult.h | 59 ++ .../model/DeleteSecurityGroupRuleRequest.h | 48 + .../mse/model/DeleteSecurityGroupRuleResult.h | 71 ++ ...rmItemsRequest.h => DeleteVGroupRequest.h} | 18 +- .../mse/model/DeleteVGroupResult.h | 59 ++ .../model/GetAppMessageQueueRouteRequest.h | 48 + .../mse/model/GetAppMessageQueueRouteResult.h | 66 ++ ...sRequest.h => GetApplicationListRequest.h} | 54 +- ...iesResult.h => GetApplicationListResult.h} | 57 +- ...RuleRequest.h => GetDashBoardUrlRequest.h} | 21 +- ...rmRuleResult.h => GetDashBoardUrlResult.h} | 21 +- .../mse/model/GetGatewayDomainDetailResult.h | 2 +- .../mse/model/GetGatewayOptionResult.h | 1 + .../mse/model/GetGatewayRouteDetailResult.h | 1 + .../mse/model/ListAlarmRulesResult.h | 73 -- ...st.h => ListClusterDetailFeatureRequest.h} | 27 +- ...ult.h => ListClusterDetailFeatureResult.h} | 34 +- .../mse/model/ListClustersResult.h | 1 + .../mse/model/ListGatewayDomainRequest.h | 3 + .../mse/model/ListGatewayDomainResult.h | 7 + .../mse/model/ListGatewayResult.h | 8 + .../mse/model/ListGatewayRouteRequest.h | 1 + .../mse/model/ListGatewayRouteResult.h | 7 + .../mse/model/ListGatewayServiceResult.h | 1 + .../mse/model/ListInstancesRequest.h | 48 + .../mse/model/ListInstancesResult.h | 93 ++ .../mse/model/ListListenersByConfigResult.h | 1 + .../mse/model/ListSecurityGroupRequest.h | 45 + .../mse/model/ListSecurityGroupResult.h | 66 ++ .../mse/model/ListSecurityGroupRuleRequest.h | 45 + .../mse/model/ListSecurityGroupRuleResult.h | 71 ++ .../mse/model/ListServiceSourceResult.h | 7 + .../mse/model/PullServicesRequest.h | 3 - .../mse/model/PullServicesResult.h | 1 + .../mse/model/QueryClusterDetailRequest.h | 3 + .../mse/model/QueryClusterDetailResult.h | 1 + .../mse/model/QueryUserVpcRequest.h | 48 + .../mse/model/QueryUserVpcResult.h | 71 ++ .../mse/model/QueryZnodeDetailRequest.h | 3 + .../mse/model/RestartSeataServerRequest.h | 45 + .../mse/model/RestartSeataServerResult.h | 59 ++ .../mse/model/UpdateGatewayOptionRequest.h | 1 + .../mse/model/UpdateGatewayOptionResult.h | 1 + .../mse/model/UpdateGatewayRouteRequest.h | 3 + .../UpdateGatewayRouteWafStatusRequest.h | 51 + .../model/UpdateGatewayRouteWafStatusResult.h | 181 ++++ ...UpdateGatewayServiceTrafficPolicyRequest.h | 78 ++ .../UpdateGatewayServiceTrafficPolicyResult.h | 99 ++ .../model/UpdateMessageQueueRouteRequest.h | 54 + .../mse/model/UpdateMessageQueueRouteResult.h | 59 ++ mse/src/MseClient.cc | 978 +++++++++++++----- mse/src/model/AddGatewayRouteRequest.cc | 9 + mse/src/model/AddSSLCertRequest.cc | 2 +- mse/src/model/AddSeataServerRequest.cc | 99 ++ mse/src/model/AddSeataServerResult.cc | 79 ++ mse/src/model/AddSecurityGroupRuleRequest.cc | 72 ++ mse/src/model/AddSecurityGroupRuleResult.cc | 79 ++ mse/src/model/AddServiceSourceRequest.cc | 11 + mse/src/model/AddTestRequest.cc | 72 ++ mse/src/model/AddTestResult.cc | 182 ++++ mse/src/model/ApplyGatewayRouteRequest.cc | 2 +- mse/src/model/CreateAlarmRuleRequest.cc | 126 --- mse/src/model/CreateApplicationRequest.cc | 18 + mse/src/model/CreateEngineNamespaceRequest.cc | 9 + mse/src/model/CreateVGroupRequest.cc | 72 ++ ...armRuleResult.cc => CreateVGroupResult.cc} | 36 +- mse/src/model/DeleteAlarmRuleRequest.cc | 54 - mse/src/model/DeleteAuthResourceRequest.cc | 2 +- mse/src/model/DeleteGatewayDomainRequest.cc | 2 +- mse/src/model/DeleteGatewayDomainResult.cc | 2 +- mse/src/model/DeleteGatewayRequest.cc | 2 +- mse/src/model/DeleteGatewayRouteRequest.cc | 2 +- mse/src/model/DeleteGatewayServiceRequest.cc | 63 ++ mse/src/model/DeleteGatewayServiceResult.cc | 105 ++ mse/src/model/DeleteGatewaySlbRequest.cc | 2 +- mse/src/model/DeleteSeataServerRequest.cc | 45 + mse/src/model/DeleteSeataServerResult.cc | 79 ++ .../model/DeleteSecurityGroupRuleRequest.cc | 54 + .../model/DeleteSecurityGroupRuleResult.cc | 96 ++ mse/src/model/DeleteServiceSourceRequest.cc | 2 +- ...ItemsRequest.cc => DeleteVGroupRequest.cc} | 26 +- ...ClusterResult.cc => DeleteVGroupResult.cc} | 36 +- .../model/GetAppMessageQueueRouteRequest.cc | 54 + .../model/GetAppMessageQueueRouteResult.cc | 87 ++ mse/src/model/GetApplicationListRequest.cc | 117 +++ mse/src/model/GetApplicationListResult.cc | 110 ++ mse/src/model/GetBlackWhiteListRequest.cc | 2 +- mse/src/model/GetDashBoardUrlRequest.cc | 63 ++ ...RuleResult.cc => GetDashBoardUrlResult.cc} | 36 +- .../model/GetGatewayDomainDetailRequest.cc | 2 +- mse/src/model/GetGatewayDomainDetailResult.cc | 2 +- mse/src/model/GetGatewayOptionResult.cc | 2 + mse/src/model/GetGatewayRequest.cc | 2 +- mse/src/model/GetGatewayRouteDetailRequest.cc | 2 +- mse/src/model/GetGatewayRouteDetailResult.cc | 2 + .../model/GetGatewayServiceDetailRequest.cc | 2 +- mse/src/model/GetKubernetesSourceRequest.cc | 2 +- .../model/ListAlarmContactGroupsRequest.cc | 63 -- mse/src/model/ListAlarmContactGroupsResult.cc | 108 -- mse/src/model/ListAlarmHistoriesRequest.cc | 99 -- mse/src/model/ListAlarmHistoriesResult.cc | 116 --- mse/src/model/ListAlarmItemsResult.cc | 110 -- mse/src/model/ListAlarmRulesRequest.cc | 72 -- mse/src/model/ListAlarmRulesResult.cc | 114 -- .../model/ListClusterDetailFeatureRequest.cc | 63 ++ .../model/ListClusterDetailFeatureResult.cc | 93 ++ mse/src/model/ListClustersResult.cc | 2 + mse/src/model/ListGatewayDomainRequest.cc | 11 +- mse/src/model/ListGatewayDomainResult.cc | 7 + mse/src/model/ListGatewayResult.cc | 9 + mse/src/model/ListGatewayRouteRequest.cc | 1 + mse/src/model/ListGatewayRouteResult.cc | 7 + mse/src/model/ListGatewayServiceResult.cc | 2 + mse/src/model/ListGatewaySlbRequest.cc | 2 +- mse/src/model/ListInstancesRequest.cc | 54 + mse/src/model/ListInstancesResult.cc | 145 +++ mse/src/model/ListListenersByConfigResult.cc | 2 + mse/src/model/ListSSLCertRequest.cc | 2 +- mse/src/model/ListSecurityGroupRequest.cc | 45 + mse/src/model/ListSecurityGroupResult.cc | 91 ++ mse/src/model/ListSecurityGroupRuleRequest.cc | 45 + mse/src/model/ListSecurityGroupRuleResult.cc | 101 ++ mse/src/model/ListServiceSourceRequest.cc | 2 +- mse/src/model/ListServiceSourceResult.cc | 7 + mse/src/model/OfflineGatewayRouteRequest.cc | 2 +- mse/src/model/PullServicesRequest.cc | 11 +- mse/src/model/PullServicesResult.cc | 2 + mse/src/model/QueryClusterDetailRequest.cc | 9 + mse/src/model/QueryClusterDetailResult.cc | 2 + mse/src/model/QueryGatewayRegionRequest.cc | 2 +- mse/src/model/QueryGatewayTypeRequest.cc | 2 +- mse/src/model/QueryUserVpcRequest.cc | 54 + mse/src/model/QueryUserVpcResult.cc | 99 ++ mse/src/model/QueryZnodeDetailRequest.cc | 9 + mse/src/model/RestartSeataServerRequest.cc | 45 + mse/src/model/RestartSeataServerResult.cc | 79 ++ mse/src/model/ScalingClusterRequest.cc | 90 -- mse/src/model/UpdateGatewayNameRequest.cc | 2 +- mse/src/model/UpdateGatewayOptionRequest.cc | 1 + mse/src/model/UpdateGatewayOptionResult.cc | 2 + mse/src/model/UpdateGatewayRouteRequest.cc | 9 + .../UpdateGatewayRouteWafStatusRequest.cc | 63 ++ .../UpdateGatewayRouteWafStatusResult.cc | 250 +++++ ...pdateGatewayServiceTrafficPolicyRequest.cc | 81 ++ ...UpdateGatewayServiceTrafficPolicyResult.cc | 117 +++ .../model/UpdateMessageQueueRouteRequest.cc | 74 ++ .../model/UpdateMessageQueueRouteResult.cc | 79 ++ mse/src/model/UpdateSSLCertRequest.cc | 2 +- 169 files changed, 6451 insertions(+), 1710 deletions(-) rename mse/include/alibabacloud/mse/model/{ScalingClusterRequest.h => AddSeataServerRequest.h} (51%) rename mse/include/alibabacloud/mse/model/{ScalingClusterResult.h => AddSeataServerResult.h} (67%) create mode 100644 mse/include/alibabacloud/mse/model/AddSecurityGroupRuleRequest.h create mode 100644 mse/include/alibabacloud/mse/model/AddSecurityGroupRuleResult.h rename mse/include/alibabacloud/mse/model/{ListAlarmContactGroupsRequest.h => AddTestRequest.h} (65%) create mode 100644 mse/include/alibabacloud/mse/model/AddTestResult.h delete mode 100644 mse/include/alibabacloud/mse/model/CreateAlarmRuleRequest.h create mode 100644 mse/include/alibabacloud/mse/model/CreateVGroupRequest.h rename mse/include/alibabacloud/mse/model/{CreateAlarmRuleResult.h => CreateVGroupResult.h} (67%) create mode 100644 mse/include/alibabacloud/mse/model/DeleteGatewayServiceRequest.h rename mse/include/alibabacloud/mse/model/{ListAlarmContactGroupsResult.h => DeleteGatewayServiceResult.h} (53%) create mode 100644 mse/include/alibabacloud/mse/model/DeleteSeataServerRequest.h create mode 100644 mse/include/alibabacloud/mse/model/DeleteSeataServerResult.h create mode 100644 mse/include/alibabacloud/mse/model/DeleteSecurityGroupRuleRequest.h create mode 100644 mse/include/alibabacloud/mse/model/DeleteSecurityGroupRuleResult.h rename mse/include/alibabacloud/mse/model/{ListAlarmItemsRequest.h => DeleteVGroupRequest.h} (69%) create mode 100644 mse/include/alibabacloud/mse/model/DeleteVGroupResult.h create mode 100644 mse/include/alibabacloud/mse/model/GetAppMessageQueueRouteRequest.h create mode 100644 mse/include/alibabacloud/mse/model/GetAppMessageQueueRouteResult.h rename mse/include/alibabacloud/mse/model/{ListAlarmHistoriesRequest.h => GetApplicationListRequest.h} (50%) rename mse/include/alibabacloud/mse/model/{ListAlarmHistoriesResult.h => GetApplicationListResult.h} (53%) rename mse/include/alibabacloud/mse/model/{DeleteAlarmRuleRequest.h => GetDashBoardUrlRequest.h} (68%) rename mse/include/alibabacloud/mse/model/{DeleteAlarmRuleResult.h => GetDashBoardUrlResult.h} (71%) delete mode 100644 mse/include/alibabacloud/mse/model/ListAlarmRulesResult.h rename mse/include/alibabacloud/mse/model/{ListAlarmRulesRequest.h => ListClusterDetailFeatureRequest.h} (65%) rename mse/include/alibabacloud/mse/model/{ListAlarmItemsResult.h => ListClusterDetailFeatureResult.h} (63%) create mode 100644 mse/include/alibabacloud/mse/model/ListInstancesRequest.h create mode 100644 mse/include/alibabacloud/mse/model/ListInstancesResult.h create mode 100644 mse/include/alibabacloud/mse/model/ListSecurityGroupRequest.h create mode 100644 mse/include/alibabacloud/mse/model/ListSecurityGroupResult.h create mode 100644 mse/include/alibabacloud/mse/model/ListSecurityGroupRuleRequest.h create mode 100644 mse/include/alibabacloud/mse/model/ListSecurityGroupRuleResult.h create mode 100644 mse/include/alibabacloud/mse/model/QueryUserVpcRequest.h create mode 100644 mse/include/alibabacloud/mse/model/QueryUserVpcResult.h create mode 100644 mse/include/alibabacloud/mse/model/RestartSeataServerRequest.h create mode 100644 mse/include/alibabacloud/mse/model/RestartSeataServerResult.h create mode 100644 mse/include/alibabacloud/mse/model/UpdateGatewayRouteWafStatusRequest.h create mode 100644 mse/include/alibabacloud/mse/model/UpdateGatewayRouteWafStatusResult.h create mode 100644 mse/include/alibabacloud/mse/model/UpdateGatewayServiceTrafficPolicyRequest.h create mode 100644 mse/include/alibabacloud/mse/model/UpdateGatewayServiceTrafficPolicyResult.h create mode 100644 mse/include/alibabacloud/mse/model/UpdateMessageQueueRouteRequest.h create mode 100644 mse/include/alibabacloud/mse/model/UpdateMessageQueueRouteResult.h create mode 100644 mse/src/model/AddSeataServerRequest.cc create mode 100644 mse/src/model/AddSeataServerResult.cc create mode 100644 mse/src/model/AddSecurityGroupRuleRequest.cc create mode 100644 mse/src/model/AddSecurityGroupRuleResult.cc create mode 100644 mse/src/model/AddTestRequest.cc create mode 100644 mse/src/model/AddTestResult.cc delete mode 100644 mse/src/model/CreateAlarmRuleRequest.cc create mode 100644 mse/src/model/CreateVGroupRequest.cc rename mse/src/model/{CreateAlarmRuleResult.cc => CreateVGroupResult.cc} (58%) delete mode 100644 mse/src/model/DeleteAlarmRuleRequest.cc create mode 100644 mse/src/model/DeleteGatewayServiceRequest.cc create mode 100644 mse/src/model/DeleteGatewayServiceResult.cc create mode 100644 mse/src/model/DeleteSeataServerRequest.cc create mode 100644 mse/src/model/DeleteSeataServerResult.cc create mode 100644 mse/src/model/DeleteSecurityGroupRuleRequest.cc create mode 100644 mse/src/model/DeleteSecurityGroupRuleResult.cc rename mse/src/model/{ListAlarmItemsRequest.cc => DeleteVGroupRequest.cc} (50%) rename mse/src/model/{ScalingClusterResult.cc => DeleteVGroupResult.cc} (58%) create mode 100644 mse/src/model/GetAppMessageQueueRouteRequest.cc create mode 100644 mse/src/model/GetAppMessageQueueRouteResult.cc create mode 100644 mse/src/model/GetApplicationListRequest.cc create mode 100644 mse/src/model/GetApplicationListResult.cc create mode 100644 mse/src/model/GetDashBoardUrlRequest.cc rename mse/src/model/{DeleteAlarmRuleResult.cc => GetDashBoardUrlResult.cc} (63%) delete mode 100644 mse/src/model/ListAlarmContactGroupsRequest.cc delete mode 100644 mse/src/model/ListAlarmContactGroupsResult.cc delete mode 100644 mse/src/model/ListAlarmHistoriesRequest.cc delete mode 100644 mse/src/model/ListAlarmHistoriesResult.cc delete mode 100644 mse/src/model/ListAlarmItemsResult.cc delete mode 100644 mse/src/model/ListAlarmRulesRequest.cc delete mode 100644 mse/src/model/ListAlarmRulesResult.cc create mode 100644 mse/src/model/ListClusterDetailFeatureRequest.cc create mode 100644 mse/src/model/ListClusterDetailFeatureResult.cc create mode 100644 mse/src/model/ListInstancesRequest.cc create mode 100644 mse/src/model/ListInstancesResult.cc create mode 100644 mse/src/model/ListSecurityGroupRequest.cc create mode 100644 mse/src/model/ListSecurityGroupResult.cc create mode 100644 mse/src/model/ListSecurityGroupRuleRequest.cc create mode 100644 mse/src/model/ListSecurityGroupRuleResult.cc create mode 100644 mse/src/model/QueryUserVpcRequest.cc create mode 100644 mse/src/model/QueryUserVpcResult.cc create mode 100644 mse/src/model/RestartSeataServerRequest.cc create mode 100644 mse/src/model/RestartSeataServerResult.cc delete mode 100644 mse/src/model/ScalingClusterRequest.cc create mode 100644 mse/src/model/UpdateGatewayRouteWafStatusRequest.cc create mode 100644 mse/src/model/UpdateGatewayRouteWafStatusResult.cc create mode 100644 mse/src/model/UpdateGatewayServiceTrafficPolicyRequest.cc create mode 100644 mse/src/model/UpdateGatewayServiceTrafficPolicyResult.cc create mode 100644 mse/src/model/UpdateMessageQueueRouteRequest.cc create mode 100644 mse/src/model/UpdateMessageQueueRouteResult.cc diff --git a/CHANGELOG b/CHANGELOG index ff42e979b..c7f5d54b1 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -1,3 +1,6 @@ +2022-05-13 Version: 1.36.1125 +- Add ListDashboardUrl api. + 2022-05-11 Version: 1.36.1124 - Update by sdk platform. diff --git a/VERSION b/VERSION index 16da68af7..126232339 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -1.36.1124 \ No newline at end of file +1.36.1125 \ No newline at end of file diff --git a/mse/CMakeLists.txt b/mse/CMakeLists.txt index 91a6cf341..a46210838 100644 --- a/mse/CMakeLists.txt +++ b/mse/CMakeLists.txt @@ -39,16 +39,20 @@ set(mse_public_header_model include/alibabacloud/mse/model/AddMockRuleResult.h include/alibabacloud/mse/model/AddSSLCertRequest.h include/alibabacloud/mse/model/AddSSLCertResult.h + include/alibabacloud/mse/model/AddSeataServerRequest.h + include/alibabacloud/mse/model/AddSeataServerResult.h + include/alibabacloud/mse/model/AddSecurityGroupRuleRequest.h + include/alibabacloud/mse/model/AddSecurityGroupRuleResult.h include/alibabacloud/mse/model/AddServiceSourceRequest.h include/alibabacloud/mse/model/AddServiceSourceResult.h + include/alibabacloud/mse/model/AddTestRequest.h + include/alibabacloud/mse/model/AddTestResult.h include/alibabacloud/mse/model/ApplyGatewayRouteRequest.h include/alibabacloud/mse/model/ApplyGatewayRouteResult.h include/alibabacloud/mse/model/ApplyTagPoliciesRequest.h include/alibabacloud/mse/model/ApplyTagPoliciesResult.h include/alibabacloud/mse/model/CloneNacosConfigRequest.h include/alibabacloud/mse/model/CloneNacosConfigResult.h - include/alibabacloud/mse/model/CreateAlarmRuleRequest.h - include/alibabacloud/mse/model/CreateAlarmRuleResult.h include/alibabacloud/mse/model/CreateApplicationRequest.h include/alibabacloud/mse/model/CreateApplicationResult.h include/alibabacloud/mse/model/CreateClusterRequest.h @@ -65,10 +69,10 @@ set(mse_public_header_model include/alibabacloud/mse/model/CreateOrUpdateSwimmingLaneResult.h include/alibabacloud/mse/model/CreateOrUpdateSwimmingLaneGroupRequest.h include/alibabacloud/mse/model/CreateOrUpdateSwimmingLaneGroupResult.h + include/alibabacloud/mse/model/CreateVGroupRequest.h + include/alibabacloud/mse/model/CreateVGroupResult.h include/alibabacloud/mse/model/CreateZnodeRequest.h include/alibabacloud/mse/model/CreateZnodeResult.h - include/alibabacloud/mse/model/DeleteAlarmRuleRequest.h - include/alibabacloud/mse/model/DeleteAlarmRuleResult.h include/alibabacloud/mse/model/DeleteAuthResourceRequest.h include/alibabacloud/mse/model/DeleteAuthResourceResult.h include/alibabacloud/mse/model/DeleteClusterRequest.h @@ -81,6 +85,8 @@ set(mse_public_header_model include/alibabacloud/mse/model/DeleteGatewayDomainResult.h include/alibabacloud/mse/model/DeleteGatewayRouteRequest.h include/alibabacloud/mse/model/DeleteGatewayRouteResult.h + include/alibabacloud/mse/model/DeleteGatewayServiceRequest.h + include/alibabacloud/mse/model/DeleteGatewayServiceResult.h include/alibabacloud/mse/model/DeleteGatewayServiceVersionRequest.h include/alibabacloud/mse/model/DeleteGatewayServiceVersionResult.h include/alibabacloud/mse/model/DeleteGatewaySlbRequest.h @@ -93,18 +99,30 @@ set(mse_public_header_model include/alibabacloud/mse/model/DeleteNacosInstanceResult.h include/alibabacloud/mse/model/DeleteNacosServiceRequest.h include/alibabacloud/mse/model/DeleteNacosServiceResult.h + include/alibabacloud/mse/model/DeleteSeataServerRequest.h + include/alibabacloud/mse/model/DeleteSeataServerResult.h + include/alibabacloud/mse/model/DeleteSecurityGroupRuleRequest.h + include/alibabacloud/mse/model/DeleteSecurityGroupRuleResult.h include/alibabacloud/mse/model/DeleteServiceSourceRequest.h include/alibabacloud/mse/model/DeleteServiceSourceResult.h include/alibabacloud/mse/model/DeleteSwimmingLaneRequest.h include/alibabacloud/mse/model/DeleteSwimmingLaneResult.h include/alibabacloud/mse/model/DeleteSwimmingLaneGroupRequest.h include/alibabacloud/mse/model/DeleteSwimmingLaneGroupResult.h + include/alibabacloud/mse/model/DeleteVGroupRequest.h + include/alibabacloud/mse/model/DeleteVGroupResult.h include/alibabacloud/mse/model/DeleteZnodeRequest.h include/alibabacloud/mse/model/DeleteZnodeResult.h include/alibabacloud/mse/model/ExportNacosConfigRequest.h include/alibabacloud/mse/model/ExportNacosConfigResult.h + include/alibabacloud/mse/model/GetAppMessageQueueRouteRequest.h + include/alibabacloud/mse/model/GetAppMessageQueueRouteResult.h + include/alibabacloud/mse/model/GetApplicationListRequest.h + include/alibabacloud/mse/model/GetApplicationListResult.h include/alibabacloud/mse/model/GetBlackWhiteListRequest.h include/alibabacloud/mse/model/GetBlackWhiteListResult.h + include/alibabacloud/mse/model/GetDashBoardUrlRequest.h + include/alibabacloud/mse/model/GetDashBoardUrlResult.h include/alibabacloud/mse/model/GetEngineNamepaceRequest.h include/alibabacloud/mse/model/GetEngineNamepaceResult.h include/alibabacloud/mse/model/GetGatewayRequest.h @@ -145,14 +163,6 @@ set(mse_public_header_model include/alibabacloud/mse/model/ImportNacosConfigResult.h include/alibabacloud/mse/model/ImportServicesRequest.h include/alibabacloud/mse/model/ImportServicesResult.h - include/alibabacloud/mse/model/ListAlarmContactGroupsRequest.h - include/alibabacloud/mse/model/ListAlarmContactGroupsResult.h - include/alibabacloud/mse/model/ListAlarmHistoriesRequest.h - include/alibabacloud/mse/model/ListAlarmHistoriesResult.h - include/alibabacloud/mse/model/ListAlarmItemsRequest.h - include/alibabacloud/mse/model/ListAlarmItemsResult.h - include/alibabacloud/mse/model/ListAlarmRulesRequest.h - include/alibabacloud/mse/model/ListAlarmRulesResult.h include/alibabacloud/mse/model/ListAnsInstancesRequest.h include/alibabacloud/mse/model/ListAnsInstancesResult.h include/alibabacloud/mse/model/ListAnsServiceClustersRequest.h @@ -165,6 +175,8 @@ set(mse_public_header_model include/alibabacloud/mse/model/ListApplicationsWithTagRulesResult.h include/alibabacloud/mse/model/ListClusterConnectionTypesRequest.h include/alibabacloud/mse/model/ListClusterConnectionTypesResult.h + include/alibabacloud/mse/model/ListClusterDetailFeatureRequest.h + include/alibabacloud/mse/model/ListClusterDetailFeatureResult.h include/alibabacloud/mse/model/ListClusterTypesRequest.h include/alibabacloud/mse/model/ListClusterTypesResult.h include/alibabacloud/mse/model/ListClusterVersionsRequest.h @@ -187,6 +199,8 @@ set(mse_public_header_model include/alibabacloud/mse/model/ListGatewayServiceResult.h include/alibabacloud/mse/model/ListGatewaySlbRequest.h include/alibabacloud/mse/model/ListGatewaySlbResult.h + include/alibabacloud/mse/model/ListInstancesRequest.h + include/alibabacloud/mse/model/ListInstancesResult.h include/alibabacloud/mse/model/ListListenersByConfigRequest.h include/alibabacloud/mse/model/ListListenersByConfigResult.h include/alibabacloud/mse/model/ListListenersByIpRequest.h @@ -197,6 +211,10 @@ set(mse_public_header_model include/alibabacloud/mse/model/ListNacosHistoryConfigsResult.h include/alibabacloud/mse/model/ListSSLCertRequest.h include/alibabacloud/mse/model/ListSSLCertResult.h + include/alibabacloud/mse/model/ListSecurityGroupRequest.h + include/alibabacloud/mse/model/ListSecurityGroupResult.h + include/alibabacloud/mse/model/ListSecurityGroupRuleRequest.h + include/alibabacloud/mse/model/ListSecurityGroupRuleResult.h include/alibabacloud/mse/model/ListServiceSourceRequest.h include/alibabacloud/mse/model/ListServiceSourceResult.h include/alibabacloud/mse/model/ListZnodeChildrenRequest.h @@ -233,14 +251,16 @@ set(mse_public_header_model include/alibabacloud/mse/model/QuerySlbSpecResult.h include/alibabacloud/mse/model/QuerySwimmingLaneByIdRequest.h include/alibabacloud/mse/model/QuerySwimmingLaneByIdResult.h + include/alibabacloud/mse/model/QueryUserVpcRequest.h + include/alibabacloud/mse/model/QueryUserVpcResult.h include/alibabacloud/mse/model/QueryZnodeDetailRequest.h include/alibabacloud/mse/model/QueryZnodeDetailResult.h include/alibabacloud/mse/model/RestartClusterRequest.h include/alibabacloud/mse/model/RestartClusterResult.h + include/alibabacloud/mse/model/RestartSeataServerRequest.h + include/alibabacloud/mse/model/RestartSeataServerResult.h include/alibabacloud/mse/model/RetryClusterRequest.h include/alibabacloud/mse/model/RetryClusterResult.h - include/alibabacloud/mse/model/ScalingClusterRequest.h - include/alibabacloud/mse/model/ScalingClusterResult.h include/alibabacloud/mse/model/SelectGatewaySlbRequest.h include/alibabacloud/mse/model/SelectGatewaySlbResult.h include/alibabacloud/mse/model/UpdateAclRequest.h @@ -271,10 +291,16 @@ set(mse_public_header_model include/alibabacloud/mse/model/UpdateGatewayRouteRetryResult.h include/alibabacloud/mse/model/UpdateGatewayRouteTimeoutRequest.h include/alibabacloud/mse/model/UpdateGatewayRouteTimeoutResult.h + include/alibabacloud/mse/model/UpdateGatewayRouteWafStatusRequest.h + include/alibabacloud/mse/model/UpdateGatewayRouteWafStatusResult.h + include/alibabacloud/mse/model/UpdateGatewayServiceTrafficPolicyRequest.h + include/alibabacloud/mse/model/UpdateGatewayServiceTrafficPolicyResult.h include/alibabacloud/mse/model/UpdateGatewayServiceVersionRequest.h include/alibabacloud/mse/model/UpdateGatewayServiceVersionResult.h include/alibabacloud/mse/model/UpdateImageRequest.h include/alibabacloud/mse/model/UpdateImageResult.h + include/alibabacloud/mse/model/UpdateMessageQueueRouteRequest.h + include/alibabacloud/mse/model/UpdateMessageQueueRouteResult.h include/alibabacloud/mse/model/UpdateNacosClusterRequest.h include/alibabacloud/mse/model/UpdateNacosClusterResult.h include/alibabacloud/mse/model/UpdateNacosConfigRequest.h @@ -310,16 +336,20 @@ set(mse_src src/model/AddMockRuleResult.cc src/model/AddSSLCertRequest.cc src/model/AddSSLCertResult.cc + src/model/AddSeataServerRequest.cc + src/model/AddSeataServerResult.cc + src/model/AddSecurityGroupRuleRequest.cc + src/model/AddSecurityGroupRuleResult.cc src/model/AddServiceSourceRequest.cc src/model/AddServiceSourceResult.cc + src/model/AddTestRequest.cc + src/model/AddTestResult.cc src/model/ApplyGatewayRouteRequest.cc src/model/ApplyGatewayRouteResult.cc src/model/ApplyTagPoliciesRequest.cc src/model/ApplyTagPoliciesResult.cc src/model/CloneNacosConfigRequest.cc src/model/CloneNacosConfigResult.cc - src/model/CreateAlarmRuleRequest.cc - src/model/CreateAlarmRuleResult.cc src/model/CreateApplicationRequest.cc src/model/CreateApplicationResult.cc src/model/CreateClusterRequest.cc @@ -336,10 +366,10 @@ set(mse_src src/model/CreateOrUpdateSwimmingLaneResult.cc src/model/CreateOrUpdateSwimmingLaneGroupRequest.cc src/model/CreateOrUpdateSwimmingLaneGroupResult.cc + src/model/CreateVGroupRequest.cc + src/model/CreateVGroupResult.cc src/model/CreateZnodeRequest.cc src/model/CreateZnodeResult.cc - src/model/DeleteAlarmRuleRequest.cc - src/model/DeleteAlarmRuleResult.cc src/model/DeleteAuthResourceRequest.cc src/model/DeleteAuthResourceResult.cc src/model/DeleteClusterRequest.cc @@ -352,6 +382,8 @@ set(mse_src src/model/DeleteGatewayDomainResult.cc src/model/DeleteGatewayRouteRequest.cc src/model/DeleteGatewayRouteResult.cc + src/model/DeleteGatewayServiceRequest.cc + src/model/DeleteGatewayServiceResult.cc src/model/DeleteGatewayServiceVersionRequest.cc src/model/DeleteGatewayServiceVersionResult.cc src/model/DeleteGatewaySlbRequest.cc @@ -364,18 +396,30 @@ set(mse_src src/model/DeleteNacosInstanceResult.cc src/model/DeleteNacosServiceRequest.cc src/model/DeleteNacosServiceResult.cc + src/model/DeleteSeataServerRequest.cc + src/model/DeleteSeataServerResult.cc + src/model/DeleteSecurityGroupRuleRequest.cc + src/model/DeleteSecurityGroupRuleResult.cc src/model/DeleteServiceSourceRequest.cc src/model/DeleteServiceSourceResult.cc src/model/DeleteSwimmingLaneRequest.cc src/model/DeleteSwimmingLaneResult.cc src/model/DeleteSwimmingLaneGroupRequest.cc src/model/DeleteSwimmingLaneGroupResult.cc + src/model/DeleteVGroupRequest.cc + src/model/DeleteVGroupResult.cc src/model/DeleteZnodeRequest.cc src/model/DeleteZnodeResult.cc src/model/ExportNacosConfigRequest.cc src/model/ExportNacosConfigResult.cc + src/model/GetAppMessageQueueRouteRequest.cc + src/model/GetAppMessageQueueRouteResult.cc + src/model/GetApplicationListRequest.cc + src/model/GetApplicationListResult.cc src/model/GetBlackWhiteListRequest.cc src/model/GetBlackWhiteListResult.cc + src/model/GetDashBoardUrlRequest.cc + src/model/GetDashBoardUrlResult.cc src/model/GetEngineNamepaceRequest.cc src/model/GetEngineNamepaceResult.cc src/model/GetGatewayRequest.cc @@ -416,14 +460,6 @@ set(mse_src src/model/ImportNacosConfigResult.cc src/model/ImportServicesRequest.cc src/model/ImportServicesResult.cc - src/model/ListAlarmContactGroupsRequest.cc - src/model/ListAlarmContactGroupsResult.cc - src/model/ListAlarmHistoriesRequest.cc - src/model/ListAlarmHistoriesResult.cc - src/model/ListAlarmItemsRequest.cc - src/model/ListAlarmItemsResult.cc - src/model/ListAlarmRulesRequest.cc - src/model/ListAlarmRulesResult.cc src/model/ListAnsInstancesRequest.cc src/model/ListAnsInstancesResult.cc src/model/ListAnsServiceClustersRequest.cc @@ -436,6 +472,8 @@ set(mse_src src/model/ListApplicationsWithTagRulesResult.cc src/model/ListClusterConnectionTypesRequest.cc src/model/ListClusterConnectionTypesResult.cc + src/model/ListClusterDetailFeatureRequest.cc + src/model/ListClusterDetailFeatureResult.cc src/model/ListClusterTypesRequest.cc src/model/ListClusterTypesResult.cc src/model/ListClusterVersionsRequest.cc @@ -458,6 +496,8 @@ set(mse_src src/model/ListGatewayServiceResult.cc src/model/ListGatewaySlbRequest.cc src/model/ListGatewaySlbResult.cc + src/model/ListInstancesRequest.cc + src/model/ListInstancesResult.cc src/model/ListListenersByConfigRequest.cc src/model/ListListenersByConfigResult.cc src/model/ListListenersByIpRequest.cc @@ -468,6 +508,10 @@ set(mse_src src/model/ListNacosHistoryConfigsResult.cc src/model/ListSSLCertRequest.cc src/model/ListSSLCertResult.cc + src/model/ListSecurityGroupRequest.cc + src/model/ListSecurityGroupResult.cc + src/model/ListSecurityGroupRuleRequest.cc + src/model/ListSecurityGroupRuleResult.cc src/model/ListServiceSourceRequest.cc src/model/ListServiceSourceResult.cc src/model/ListZnodeChildrenRequest.cc @@ -504,14 +548,16 @@ set(mse_src src/model/QuerySlbSpecResult.cc src/model/QuerySwimmingLaneByIdRequest.cc src/model/QuerySwimmingLaneByIdResult.cc + src/model/QueryUserVpcRequest.cc + src/model/QueryUserVpcResult.cc src/model/QueryZnodeDetailRequest.cc src/model/QueryZnodeDetailResult.cc src/model/RestartClusterRequest.cc src/model/RestartClusterResult.cc + src/model/RestartSeataServerRequest.cc + src/model/RestartSeataServerResult.cc src/model/RetryClusterRequest.cc src/model/RetryClusterResult.cc - src/model/ScalingClusterRequest.cc - src/model/ScalingClusterResult.cc src/model/SelectGatewaySlbRequest.cc src/model/SelectGatewaySlbResult.cc src/model/UpdateAclRequest.cc @@ -542,10 +588,16 @@ set(mse_src src/model/UpdateGatewayRouteRetryResult.cc src/model/UpdateGatewayRouteTimeoutRequest.cc src/model/UpdateGatewayRouteTimeoutResult.cc + src/model/UpdateGatewayRouteWafStatusRequest.cc + src/model/UpdateGatewayRouteWafStatusResult.cc + src/model/UpdateGatewayServiceTrafficPolicyRequest.cc + src/model/UpdateGatewayServiceTrafficPolicyResult.cc src/model/UpdateGatewayServiceVersionRequest.cc src/model/UpdateGatewayServiceVersionResult.cc src/model/UpdateImageRequest.cc src/model/UpdateImageResult.cc + src/model/UpdateMessageQueueRouteRequest.cc + src/model/UpdateMessageQueueRouteResult.cc src/model/UpdateNacosClusterRequest.cc src/model/UpdateNacosClusterResult.cc src/model/UpdateNacosConfigRequest.cc diff --git a/mse/include/alibabacloud/mse/MseClient.h b/mse/include/alibabacloud/mse/MseClient.h index 9542f29cc..cb3c71a64 100644 --- a/mse/include/alibabacloud/mse/MseClient.h +++ b/mse/include/alibabacloud/mse/MseClient.h @@ -40,16 +40,20 @@ #include "model/AddMockRuleResult.h" #include "model/AddSSLCertRequest.h" #include "model/AddSSLCertResult.h" +#include "model/AddSeataServerRequest.h" +#include "model/AddSeataServerResult.h" +#include "model/AddSecurityGroupRuleRequest.h" +#include "model/AddSecurityGroupRuleResult.h" #include "model/AddServiceSourceRequest.h" #include "model/AddServiceSourceResult.h" +#include "model/AddTestRequest.h" +#include "model/AddTestResult.h" #include "model/ApplyGatewayRouteRequest.h" #include "model/ApplyGatewayRouteResult.h" #include "model/ApplyTagPoliciesRequest.h" #include "model/ApplyTagPoliciesResult.h" #include "model/CloneNacosConfigRequest.h" #include "model/CloneNacosConfigResult.h" -#include "model/CreateAlarmRuleRequest.h" -#include "model/CreateAlarmRuleResult.h" #include "model/CreateApplicationRequest.h" #include "model/CreateApplicationResult.h" #include "model/CreateClusterRequest.h" @@ -66,10 +70,10 @@ #include "model/CreateOrUpdateSwimmingLaneResult.h" #include "model/CreateOrUpdateSwimmingLaneGroupRequest.h" #include "model/CreateOrUpdateSwimmingLaneGroupResult.h" +#include "model/CreateVGroupRequest.h" +#include "model/CreateVGroupResult.h" #include "model/CreateZnodeRequest.h" #include "model/CreateZnodeResult.h" -#include "model/DeleteAlarmRuleRequest.h" -#include "model/DeleteAlarmRuleResult.h" #include "model/DeleteAuthResourceRequest.h" #include "model/DeleteAuthResourceResult.h" #include "model/DeleteClusterRequest.h" @@ -82,6 +86,8 @@ #include "model/DeleteGatewayDomainResult.h" #include "model/DeleteGatewayRouteRequest.h" #include "model/DeleteGatewayRouteResult.h" +#include "model/DeleteGatewayServiceRequest.h" +#include "model/DeleteGatewayServiceResult.h" #include "model/DeleteGatewayServiceVersionRequest.h" #include "model/DeleteGatewayServiceVersionResult.h" #include "model/DeleteGatewaySlbRequest.h" @@ -94,18 +100,30 @@ #include "model/DeleteNacosInstanceResult.h" #include "model/DeleteNacosServiceRequest.h" #include "model/DeleteNacosServiceResult.h" +#include "model/DeleteSeataServerRequest.h" +#include "model/DeleteSeataServerResult.h" +#include "model/DeleteSecurityGroupRuleRequest.h" +#include "model/DeleteSecurityGroupRuleResult.h" #include "model/DeleteServiceSourceRequest.h" #include "model/DeleteServiceSourceResult.h" #include "model/DeleteSwimmingLaneRequest.h" #include "model/DeleteSwimmingLaneResult.h" #include "model/DeleteSwimmingLaneGroupRequest.h" #include "model/DeleteSwimmingLaneGroupResult.h" +#include "model/DeleteVGroupRequest.h" +#include "model/DeleteVGroupResult.h" #include "model/DeleteZnodeRequest.h" #include "model/DeleteZnodeResult.h" #include "model/ExportNacosConfigRequest.h" #include "model/ExportNacosConfigResult.h" +#include "model/GetAppMessageQueueRouteRequest.h" +#include "model/GetAppMessageQueueRouteResult.h" +#include "model/GetApplicationListRequest.h" +#include "model/GetApplicationListResult.h" #include "model/GetBlackWhiteListRequest.h" #include "model/GetBlackWhiteListResult.h" +#include "model/GetDashBoardUrlRequest.h" +#include "model/GetDashBoardUrlResult.h" #include "model/GetEngineNamepaceRequest.h" #include "model/GetEngineNamepaceResult.h" #include "model/GetGatewayRequest.h" @@ -146,14 +164,6 @@ #include "model/ImportNacosConfigResult.h" #include "model/ImportServicesRequest.h" #include "model/ImportServicesResult.h" -#include "model/ListAlarmContactGroupsRequest.h" -#include "model/ListAlarmContactGroupsResult.h" -#include "model/ListAlarmHistoriesRequest.h" -#include "model/ListAlarmHistoriesResult.h" -#include "model/ListAlarmItemsRequest.h" -#include "model/ListAlarmItemsResult.h" -#include "model/ListAlarmRulesRequest.h" -#include "model/ListAlarmRulesResult.h" #include "model/ListAnsInstancesRequest.h" #include "model/ListAnsInstancesResult.h" #include "model/ListAnsServiceClustersRequest.h" @@ -166,6 +176,8 @@ #include "model/ListApplicationsWithTagRulesResult.h" #include "model/ListClusterConnectionTypesRequest.h" #include "model/ListClusterConnectionTypesResult.h" +#include "model/ListClusterDetailFeatureRequest.h" +#include "model/ListClusterDetailFeatureResult.h" #include "model/ListClusterTypesRequest.h" #include "model/ListClusterTypesResult.h" #include "model/ListClusterVersionsRequest.h" @@ -188,6 +200,8 @@ #include "model/ListGatewayServiceResult.h" #include "model/ListGatewaySlbRequest.h" #include "model/ListGatewaySlbResult.h" +#include "model/ListInstancesRequest.h" +#include "model/ListInstancesResult.h" #include "model/ListListenersByConfigRequest.h" #include "model/ListListenersByConfigResult.h" #include "model/ListListenersByIpRequest.h" @@ -198,6 +212,10 @@ #include "model/ListNacosHistoryConfigsResult.h" #include "model/ListSSLCertRequest.h" #include "model/ListSSLCertResult.h" +#include "model/ListSecurityGroupRequest.h" +#include "model/ListSecurityGroupResult.h" +#include "model/ListSecurityGroupRuleRequest.h" +#include "model/ListSecurityGroupRuleResult.h" #include "model/ListServiceSourceRequest.h" #include "model/ListServiceSourceResult.h" #include "model/ListZnodeChildrenRequest.h" @@ -234,14 +252,16 @@ #include "model/QuerySlbSpecResult.h" #include "model/QuerySwimmingLaneByIdRequest.h" #include "model/QuerySwimmingLaneByIdResult.h" +#include "model/QueryUserVpcRequest.h" +#include "model/QueryUserVpcResult.h" #include "model/QueryZnodeDetailRequest.h" #include "model/QueryZnodeDetailResult.h" #include "model/RestartClusterRequest.h" #include "model/RestartClusterResult.h" +#include "model/RestartSeataServerRequest.h" +#include "model/RestartSeataServerResult.h" #include "model/RetryClusterRequest.h" #include "model/RetryClusterResult.h" -#include "model/ScalingClusterRequest.h" -#include "model/ScalingClusterResult.h" #include "model/SelectGatewaySlbRequest.h" #include "model/SelectGatewaySlbResult.h" #include "model/UpdateAclRequest.h" @@ -272,10 +292,16 @@ #include "model/UpdateGatewayRouteRetryResult.h" #include "model/UpdateGatewayRouteTimeoutRequest.h" #include "model/UpdateGatewayRouteTimeoutResult.h" +#include "model/UpdateGatewayRouteWafStatusRequest.h" +#include "model/UpdateGatewayRouteWafStatusResult.h" +#include "model/UpdateGatewayServiceTrafficPolicyRequest.h" +#include "model/UpdateGatewayServiceTrafficPolicyResult.h" #include "model/UpdateGatewayServiceVersionRequest.h" #include "model/UpdateGatewayServiceVersionResult.h" #include "model/UpdateImageRequest.h" #include "model/UpdateImageResult.h" +#include "model/UpdateMessageQueueRouteRequest.h" +#include "model/UpdateMessageQueueRouteResult.h" #include "model/UpdateNacosClusterRequest.h" #include "model/UpdateNacosClusterResult.h" #include "model/UpdateNacosConfigRequest.h" @@ -326,9 +352,18 @@ namespace AlibabaCloud typedef Outcome AddSSLCertOutcome; typedef std::future AddSSLCertOutcomeCallable; typedef std::function&)> AddSSLCertAsyncHandler; + typedef Outcome AddSeataServerOutcome; + typedef std::future AddSeataServerOutcomeCallable; + typedef std::function&)> AddSeataServerAsyncHandler; + typedef Outcome AddSecurityGroupRuleOutcome; + typedef std::future AddSecurityGroupRuleOutcomeCallable; + typedef std::function&)> AddSecurityGroupRuleAsyncHandler; typedef Outcome AddServiceSourceOutcome; typedef std::future AddServiceSourceOutcomeCallable; typedef std::function&)> AddServiceSourceAsyncHandler; + typedef Outcome AddTestOutcome; + typedef std::future AddTestOutcomeCallable; + typedef std::function&)> AddTestAsyncHandler; typedef Outcome ApplyGatewayRouteOutcome; typedef std::future ApplyGatewayRouteOutcomeCallable; typedef std::function&)> ApplyGatewayRouteAsyncHandler; @@ -338,9 +373,6 @@ namespace AlibabaCloud typedef Outcome CloneNacosConfigOutcome; typedef std::future CloneNacosConfigOutcomeCallable; typedef std::function&)> CloneNacosConfigAsyncHandler; - typedef Outcome CreateAlarmRuleOutcome; - typedef std::future CreateAlarmRuleOutcomeCallable; - typedef std::function&)> CreateAlarmRuleAsyncHandler; typedef Outcome CreateApplicationOutcome; typedef std::future CreateApplicationOutcomeCallable; typedef std::function&)> CreateApplicationAsyncHandler; @@ -365,12 +397,12 @@ namespace AlibabaCloud typedef Outcome CreateOrUpdateSwimmingLaneGroupOutcome; typedef std::future CreateOrUpdateSwimmingLaneGroupOutcomeCallable; typedef std::function&)> CreateOrUpdateSwimmingLaneGroupAsyncHandler; + typedef Outcome CreateVGroupOutcome; + typedef std::future CreateVGroupOutcomeCallable; + typedef std::function&)> CreateVGroupAsyncHandler; typedef Outcome CreateZnodeOutcome; typedef std::future CreateZnodeOutcomeCallable; typedef std::function&)> CreateZnodeAsyncHandler; - typedef Outcome DeleteAlarmRuleOutcome; - typedef std::future DeleteAlarmRuleOutcomeCallable; - typedef std::function&)> DeleteAlarmRuleAsyncHandler; typedef Outcome DeleteAuthResourceOutcome; typedef std::future DeleteAuthResourceOutcomeCallable; typedef std::function&)> DeleteAuthResourceAsyncHandler; @@ -389,6 +421,9 @@ namespace AlibabaCloud typedef Outcome DeleteGatewayRouteOutcome; typedef std::future DeleteGatewayRouteOutcomeCallable; typedef std::function&)> DeleteGatewayRouteAsyncHandler; + typedef Outcome DeleteGatewayServiceOutcome; + typedef std::future DeleteGatewayServiceOutcomeCallable; + typedef std::function&)> DeleteGatewayServiceAsyncHandler; typedef Outcome DeleteGatewayServiceVersionOutcome; typedef std::future DeleteGatewayServiceVersionOutcomeCallable; typedef std::function&)> DeleteGatewayServiceVersionAsyncHandler; @@ -407,6 +442,12 @@ namespace AlibabaCloud typedef Outcome DeleteNacosServiceOutcome; typedef std::future DeleteNacosServiceOutcomeCallable; typedef std::function&)> DeleteNacosServiceAsyncHandler; + typedef Outcome DeleteSeataServerOutcome; + typedef std::future DeleteSeataServerOutcomeCallable; + typedef std::function&)> DeleteSeataServerAsyncHandler; + typedef Outcome DeleteSecurityGroupRuleOutcome; + typedef std::future DeleteSecurityGroupRuleOutcomeCallable; + typedef std::function&)> DeleteSecurityGroupRuleAsyncHandler; typedef Outcome DeleteServiceSourceOutcome; typedef std::future DeleteServiceSourceOutcomeCallable; typedef std::function&)> DeleteServiceSourceAsyncHandler; @@ -416,15 +457,27 @@ namespace AlibabaCloud typedef Outcome DeleteSwimmingLaneGroupOutcome; typedef std::future DeleteSwimmingLaneGroupOutcomeCallable; typedef std::function&)> DeleteSwimmingLaneGroupAsyncHandler; + typedef Outcome DeleteVGroupOutcome; + typedef std::future DeleteVGroupOutcomeCallable; + typedef std::function&)> DeleteVGroupAsyncHandler; typedef Outcome DeleteZnodeOutcome; typedef std::future DeleteZnodeOutcomeCallable; typedef std::function&)> DeleteZnodeAsyncHandler; typedef Outcome ExportNacosConfigOutcome; typedef std::future ExportNacosConfigOutcomeCallable; typedef std::function&)> ExportNacosConfigAsyncHandler; + typedef Outcome GetAppMessageQueueRouteOutcome; + typedef std::future GetAppMessageQueueRouteOutcomeCallable; + typedef std::function&)> GetAppMessageQueueRouteAsyncHandler; + typedef Outcome GetApplicationListOutcome; + typedef std::future GetApplicationListOutcomeCallable; + typedef std::function&)> GetApplicationListAsyncHandler; typedef Outcome GetBlackWhiteListOutcome; typedef std::future GetBlackWhiteListOutcomeCallable; typedef std::function&)> GetBlackWhiteListAsyncHandler; + typedef Outcome GetDashBoardUrlOutcome; + typedef std::future GetDashBoardUrlOutcomeCallable; + typedef std::function&)> GetDashBoardUrlAsyncHandler; typedef Outcome GetEngineNamepaceOutcome; typedef std::future GetEngineNamepaceOutcomeCallable; typedef std::function&)> GetEngineNamepaceAsyncHandler; @@ -485,18 +538,6 @@ namespace AlibabaCloud typedef Outcome ImportServicesOutcome; typedef std::future ImportServicesOutcomeCallable; typedef std::function&)> ImportServicesAsyncHandler; - typedef Outcome ListAlarmContactGroupsOutcome; - typedef std::future ListAlarmContactGroupsOutcomeCallable; - typedef std::function&)> ListAlarmContactGroupsAsyncHandler; - typedef Outcome ListAlarmHistoriesOutcome; - typedef std::future ListAlarmHistoriesOutcomeCallable; - typedef std::function&)> ListAlarmHistoriesAsyncHandler; - typedef Outcome ListAlarmItemsOutcome; - typedef std::future ListAlarmItemsOutcomeCallable; - typedef std::function&)> ListAlarmItemsAsyncHandler; - typedef Outcome ListAlarmRulesOutcome; - typedef std::future ListAlarmRulesOutcomeCallable; - typedef std::function&)> ListAlarmRulesAsyncHandler; typedef Outcome ListAnsInstancesOutcome; typedef std::future ListAnsInstancesOutcomeCallable; typedef std::function&)> ListAnsInstancesAsyncHandler; @@ -515,6 +556,9 @@ namespace AlibabaCloud typedef Outcome ListClusterConnectionTypesOutcome; typedef std::future ListClusterConnectionTypesOutcomeCallable; typedef std::function&)> ListClusterConnectionTypesAsyncHandler; + typedef Outcome ListClusterDetailFeatureOutcome; + typedef std::future ListClusterDetailFeatureOutcomeCallable; + typedef std::function&)> ListClusterDetailFeatureAsyncHandler; typedef Outcome ListClusterTypesOutcome; typedef std::future ListClusterTypesOutcomeCallable; typedef std::function&)> ListClusterTypesAsyncHandler; @@ -548,6 +592,9 @@ namespace AlibabaCloud typedef Outcome ListGatewaySlbOutcome; typedef std::future ListGatewaySlbOutcomeCallable; typedef std::function&)> ListGatewaySlbAsyncHandler; + typedef Outcome ListInstancesOutcome; + typedef std::future ListInstancesOutcomeCallable; + typedef std::function&)> ListInstancesAsyncHandler; typedef Outcome ListListenersByConfigOutcome; typedef std::future ListListenersByConfigOutcomeCallable; typedef std::function&)> ListListenersByConfigAsyncHandler; @@ -563,6 +610,12 @@ namespace AlibabaCloud typedef Outcome ListSSLCertOutcome; typedef std::future ListSSLCertOutcomeCallable; typedef std::function&)> ListSSLCertAsyncHandler; + typedef Outcome ListSecurityGroupOutcome; + typedef std::future ListSecurityGroupOutcomeCallable; + typedef std::function&)> ListSecurityGroupAsyncHandler; + typedef Outcome ListSecurityGroupRuleOutcome; + typedef std::future ListSecurityGroupRuleOutcomeCallable; + typedef std::function&)> ListSecurityGroupRuleAsyncHandler; typedef Outcome ListServiceSourceOutcome; typedef std::future ListServiceSourceOutcomeCallable; typedef std::function&)> ListServiceSourceAsyncHandler; @@ -617,18 +670,21 @@ namespace AlibabaCloud typedef Outcome QuerySwimmingLaneByIdOutcome; typedef std::future QuerySwimmingLaneByIdOutcomeCallable; typedef std::function&)> QuerySwimmingLaneByIdAsyncHandler; + typedef Outcome QueryUserVpcOutcome; + typedef std::future QueryUserVpcOutcomeCallable; + typedef std::function&)> QueryUserVpcAsyncHandler; typedef Outcome QueryZnodeDetailOutcome; typedef std::future QueryZnodeDetailOutcomeCallable; typedef std::function&)> QueryZnodeDetailAsyncHandler; typedef Outcome RestartClusterOutcome; typedef std::future RestartClusterOutcomeCallable; typedef std::function&)> RestartClusterAsyncHandler; + typedef Outcome RestartSeataServerOutcome; + typedef std::future RestartSeataServerOutcomeCallable; + typedef std::function&)> RestartSeataServerAsyncHandler; typedef Outcome RetryClusterOutcome; typedef std::future RetryClusterOutcomeCallable; typedef std::function&)> RetryClusterAsyncHandler; - typedef Outcome ScalingClusterOutcome; - typedef std::future ScalingClusterOutcomeCallable; - typedef std::function&)> ScalingClusterAsyncHandler; typedef Outcome SelectGatewaySlbOutcome; typedef std::future SelectGatewaySlbOutcomeCallable; typedef std::function&)> SelectGatewaySlbAsyncHandler; @@ -674,12 +730,21 @@ namespace AlibabaCloud typedef Outcome UpdateGatewayRouteTimeoutOutcome; typedef std::future UpdateGatewayRouteTimeoutOutcomeCallable; typedef std::function&)> UpdateGatewayRouteTimeoutAsyncHandler; + typedef Outcome UpdateGatewayRouteWafStatusOutcome; + typedef std::future UpdateGatewayRouteWafStatusOutcomeCallable; + typedef std::function&)> UpdateGatewayRouteWafStatusAsyncHandler; + typedef Outcome UpdateGatewayServiceTrafficPolicyOutcome; + typedef std::future UpdateGatewayServiceTrafficPolicyOutcomeCallable; + typedef std::function&)> UpdateGatewayServiceTrafficPolicyAsyncHandler; typedef Outcome UpdateGatewayServiceVersionOutcome; typedef std::future UpdateGatewayServiceVersionOutcomeCallable; typedef std::function&)> UpdateGatewayServiceVersionAsyncHandler; typedef Outcome UpdateImageOutcome; typedef std::future UpdateImageOutcomeCallable; typedef std::function&)> UpdateImageAsyncHandler; + typedef Outcome UpdateMessageQueueRouteOutcome; + typedef std::future UpdateMessageQueueRouteOutcomeCallable; + typedef std::function&)> UpdateMessageQueueRouteAsyncHandler; typedef Outcome UpdateNacosClusterOutcome; typedef std::future UpdateNacosClusterOutcomeCallable; typedef std::function&)> UpdateNacosClusterAsyncHandler; @@ -733,9 +798,18 @@ namespace AlibabaCloud AddSSLCertOutcome addSSLCert(const Model::AddSSLCertRequest &request)const; void addSSLCertAsync(const Model::AddSSLCertRequest& request, const AddSSLCertAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; AddSSLCertOutcomeCallable addSSLCertCallable(const Model::AddSSLCertRequest& request) const; + AddSeataServerOutcome addSeataServer(const Model::AddSeataServerRequest &request)const; + void addSeataServerAsync(const Model::AddSeataServerRequest& request, const AddSeataServerAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + AddSeataServerOutcomeCallable addSeataServerCallable(const Model::AddSeataServerRequest& request) const; + AddSecurityGroupRuleOutcome addSecurityGroupRule(const Model::AddSecurityGroupRuleRequest &request)const; + void addSecurityGroupRuleAsync(const Model::AddSecurityGroupRuleRequest& request, const AddSecurityGroupRuleAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + AddSecurityGroupRuleOutcomeCallable addSecurityGroupRuleCallable(const Model::AddSecurityGroupRuleRequest& request) const; AddServiceSourceOutcome addServiceSource(const Model::AddServiceSourceRequest &request)const; void addServiceSourceAsync(const Model::AddServiceSourceRequest& request, const AddServiceSourceAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; AddServiceSourceOutcomeCallable addServiceSourceCallable(const Model::AddServiceSourceRequest& request) const; + AddTestOutcome addTest(const Model::AddTestRequest &request)const; + void addTestAsync(const Model::AddTestRequest& request, const AddTestAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + AddTestOutcomeCallable addTestCallable(const Model::AddTestRequest& request) const; ApplyGatewayRouteOutcome applyGatewayRoute(const Model::ApplyGatewayRouteRequest &request)const; void applyGatewayRouteAsync(const Model::ApplyGatewayRouteRequest& request, const ApplyGatewayRouteAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; ApplyGatewayRouteOutcomeCallable applyGatewayRouteCallable(const Model::ApplyGatewayRouteRequest& request) const; @@ -745,9 +819,6 @@ namespace AlibabaCloud CloneNacosConfigOutcome cloneNacosConfig(const Model::CloneNacosConfigRequest &request)const; void cloneNacosConfigAsync(const Model::CloneNacosConfigRequest& request, const CloneNacosConfigAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; CloneNacosConfigOutcomeCallable cloneNacosConfigCallable(const Model::CloneNacosConfigRequest& request) const; - CreateAlarmRuleOutcome createAlarmRule(const Model::CreateAlarmRuleRequest &request)const; - void createAlarmRuleAsync(const Model::CreateAlarmRuleRequest& request, const CreateAlarmRuleAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - CreateAlarmRuleOutcomeCallable createAlarmRuleCallable(const Model::CreateAlarmRuleRequest& request) const; CreateApplicationOutcome createApplication(const Model::CreateApplicationRequest &request)const; void createApplicationAsync(const Model::CreateApplicationRequest& request, const CreateApplicationAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; CreateApplicationOutcomeCallable createApplicationCallable(const Model::CreateApplicationRequest& request) const; @@ -772,12 +843,12 @@ namespace AlibabaCloud CreateOrUpdateSwimmingLaneGroupOutcome createOrUpdateSwimmingLaneGroup(const Model::CreateOrUpdateSwimmingLaneGroupRequest &request)const; void createOrUpdateSwimmingLaneGroupAsync(const Model::CreateOrUpdateSwimmingLaneGroupRequest& request, const CreateOrUpdateSwimmingLaneGroupAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; CreateOrUpdateSwimmingLaneGroupOutcomeCallable createOrUpdateSwimmingLaneGroupCallable(const Model::CreateOrUpdateSwimmingLaneGroupRequest& request) const; + CreateVGroupOutcome createVGroup(const Model::CreateVGroupRequest &request)const; + void createVGroupAsync(const Model::CreateVGroupRequest& request, const CreateVGroupAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CreateVGroupOutcomeCallable createVGroupCallable(const Model::CreateVGroupRequest& request) const; CreateZnodeOutcome createZnode(const Model::CreateZnodeRequest &request)const; void createZnodeAsync(const Model::CreateZnodeRequest& request, const CreateZnodeAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; CreateZnodeOutcomeCallable createZnodeCallable(const Model::CreateZnodeRequest& request) const; - DeleteAlarmRuleOutcome deleteAlarmRule(const Model::DeleteAlarmRuleRequest &request)const; - void deleteAlarmRuleAsync(const Model::DeleteAlarmRuleRequest& request, const DeleteAlarmRuleAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - DeleteAlarmRuleOutcomeCallable deleteAlarmRuleCallable(const Model::DeleteAlarmRuleRequest& request) const; DeleteAuthResourceOutcome deleteAuthResource(const Model::DeleteAuthResourceRequest &request)const; void deleteAuthResourceAsync(const Model::DeleteAuthResourceRequest& request, const DeleteAuthResourceAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DeleteAuthResourceOutcomeCallable deleteAuthResourceCallable(const Model::DeleteAuthResourceRequest& request) const; @@ -796,6 +867,9 @@ namespace AlibabaCloud DeleteGatewayRouteOutcome deleteGatewayRoute(const Model::DeleteGatewayRouteRequest &request)const; void deleteGatewayRouteAsync(const Model::DeleteGatewayRouteRequest& request, const DeleteGatewayRouteAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DeleteGatewayRouteOutcomeCallable deleteGatewayRouteCallable(const Model::DeleteGatewayRouteRequest& request) const; + DeleteGatewayServiceOutcome deleteGatewayService(const Model::DeleteGatewayServiceRequest &request)const; + void deleteGatewayServiceAsync(const Model::DeleteGatewayServiceRequest& request, const DeleteGatewayServiceAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DeleteGatewayServiceOutcomeCallable deleteGatewayServiceCallable(const Model::DeleteGatewayServiceRequest& request) const; DeleteGatewayServiceVersionOutcome deleteGatewayServiceVersion(const Model::DeleteGatewayServiceVersionRequest &request)const; void deleteGatewayServiceVersionAsync(const Model::DeleteGatewayServiceVersionRequest& request, const DeleteGatewayServiceVersionAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DeleteGatewayServiceVersionOutcomeCallable deleteGatewayServiceVersionCallable(const Model::DeleteGatewayServiceVersionRequest& request) const; @@ -814,6 +888,12 @@ namespace AlibabaCloud DeleteNacosServiceOutcome deleteNacosService(const Model::DeleteNacosServiceRequest &request)const; void deleteNacosServiceAsync(const Model::DeleteNacosServiceRequest& request, const DeleteNacosServiceAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DeleteNacosServiceOutcomeCallable deleteNacosServiceCallable(const Model::DeleteNacosServiceRequest& request) const; + DeleteSeataServerOutcome deleteSeataServer(const Model::DeleteSeataServerRequest &request)const; + void deleteSeataServerAsync(const Model::DeleteSeataServerRequest& request, const DeleteSeataServerAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DeleteSeataServerOutcomeCallable deleteSeataServerCallable(const Model::DeleteSeataServerRequest& request) const; + DeleteSecurityGroupRuleOutcome deleteSecurityGroupRule(const Model::DeleteSecurityGroupRuleRequest &request)const; + void deleteSecurityGroupRuleAsync(const Model::DeleteSecurityGroupRuleRequest& request, const DeleteSecurityGroupRuleAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DeleteSecurityGroupRuleOutcomeCallable deleteSecurityGroupRuleCallable(const Model::DeleteSecurityGroupRuleRequest& request) const; DeleteServiceSourceOutcome deleteServiceSource(const Model::DeleteServiceSourceRequest &request)const; void deleteServiceSourceAsync(const Model::DeleteServiceSourceRequest& request, const DeleteServiceSourceAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DeleteServiceSourceOutcomeCallable deleteServiceSourceCallable(const Model::DeleteServiceSourceRequest& request) const; @@ -823,15 +903,27 @@ namespace AlibabaCloud DeleteSwimmingLaneGroupOutcome deleteSwimmingLaneGroup(const Model::DeleteSwimmingLaneGroupRequest &request)const; void deleteSwimmingLaneGroupAsync(const Model::DeleteSwimmingLaneGroupRequest& request, const DeleteSwimmingLaneGroupAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DeleteSwimmingLaneGroupOutcomeCallable deleteSwimmingLaneGroupCallable(const Model::DeleteSwimmingLaneGroupRequest& request) const; + DeleteVGroupOutcome deleteVGroup(const Model::DeleteVGroupRequest &request)const; + void deleteVGroupAsync(const Model::DeleteVGroupRequest& request, const DeleteVGroupAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DeleteVGroupOutcomeCallable deleteVGroupCallable(const Model::DeleteVGroupRequest& request) const; DeleteZnodeOutcome deleteZnode(const Model::DeleteZnodeRequest &request)const; void deleteZnodeAsync(const Model::DeleteZnodeRequest& request, const DeleteZnodeAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DeleteZnodeOutcomeCallable deleteZnodeCallable(const Model::DeleteZnodeRequest& request) const; ExportNacosConfigOutcome exportNacosConfig(const Model::ExportNacosConfigRequest &request)const; void exportNacosConfigAsync(const Model::ExportNacosConfigRequest& request, const ExportNacosConfigAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; ExportNacosConfigOutcomeCallable exportNacosConfigCallable(const Model::ExportNacosConfigRequest& request) const; + GetAppMessageQueueRouteOutcome getAppMessageQueueRoute(const Model::GetAppMessageQueueRouteRequest &request)const; + void getAppMessageQueueRouteAsync(const Model::GetAppMessageQueueRouteRequest& request, const GetAppMessageQueueRouteAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + GetAppMessageQueueRouteOutcomeCallable getAppMessageQueueRouteCallable(const Model::GetAppMessageQueueRouteRequest& request) const; + GetApplicationListOutcome getApplicationList(const Model::GetApplicationListRequest &request)const; + void getApplicationListAsync(const Model::GetApplicationListRequest& request, const GetApplicationListAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + GetApplicationListOutcomeCallable getApplicationListCallable(const Model::GetApplicationListRequest& request) const; GetBlackWhiteListOutcome getBlackWhiteList(const Model::GetBlackWhiteListRequest &request)const; void getBlackWhiteListAsync(const Model::GetBlackWhiteListRequest& request, const GetBlackWhiteListAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; GetBlackWhiteListOutcomeCallable getBlackWhiteListCallable(const Model::GetBlackWhiteListRequest& request) const; + GetDashBoardUrlOutcome getDashBoardUrl(const Model::GetDashBoardUrlRequest &request)const; + void getDashBoardUrlAsync(const Model::GetDashBoardUrlRequest& request, const GetDashBoardUrlAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + GetDashBoardUrlOutcomeCallable getDashBoardUrlCallable(const Model::GetDashBoardUrlRequest& request) const; GetEngineNamepaceOutcome getEngineNamepace(const Model::GetEngineNamepaceRequest &request)const; void getEngineNamepaceAsync(const Model::GetEngineNamepaceRequest& request, const GetEngineNamepaceAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; GetEngineNamepaceOutcomeCallable getEngineNamepaceCallable(const Model::GetEngineNamepaceRequest& request) const; @@ -892,18 +984,6 @@ namespace AlibabaCloud ImportServicesOutcome importServices(const Model::ImportServicesRequest &request)const; void importServicesAsync(const Model::ImportServicesRequest& request, const ImportServicesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; ImportServicesOutcomeCallable importServicesCallable(const Model::ImportServicesRequest& request) const; - ListAlarmContactGroupsOutcome listAlarmContactGroups(const Model::ListAlarmContactGroupsRequest &request)const; - void listAlarmContactGroupsAsync(const Model::ListAlarmContactGroupsRequest& request, const ListAlarmContactGroupsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - ListAlarmContactGroupsOutcomeCallable listAlarmContactGroupsCallable(const Model::ListAlarmContactGroupsRequest& request) const; - ListAlarmHistoriesOutcome listAlarmHistories(const Model::ListAlarmHistoriesRequest &request)const; - void listAlarmHistoriesAsync(const Model::ListAlarmHistoriesRequest& request, const ListAlarmHistoriesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - ListAlarmHistoriesOutcomeCallable listAlarmHistoriesCallable(const Model::ListAlarmHistoriesRequest& request) const; - ListAlarmItemsOutcome listAlarmItems(const Model::ListAlarmItemsRequest &request)const; - void listAlarmItemsAsync(const Model::ListAlarmItemsRequest& request, const ListAlarmItemsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - ListAlarmItemsOutcomeCallable listAlarmItemsCallable(const Model::ListAlarmItemsRequest& request) const; - ListAlarmRulesOutcome listAlarmRules(const Model::ListAlarmRulesRequest &request)const; - void listAlarmRulesAsync(const Model::ListAlarmRulesRequest& request, const ListAlarmRulesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - ListAlarmRulesOutcomeCallable listAlarmRulesCallable(const Model::ListAlarmRulesRequest& request) const; ListAnsInstancesOutcome listAnsInstances(const Model::ListAnsInstancesRequest &request)const; void listAnsInstancesAsync(const Model::ListAnsInstancesRequest& request, const ListAnsInstancesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; ListAnsInstancesOutcomeCallable listAnsInstancesCallable(const Model::ListAnsInstancesRequest& request) const; @@ -922,6 +1002,9 @@ namespace AlibabaCloud ListClusterConnectionTypesOutcome listClusterConnectionTypes(const Model::ListClusterConnectionTypesRequest &request)const; void listClusterConnectionTypesAsync(const Model::ListClusterConnectionTypesRequest& request, const ListClusterConnectionTypesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; ListClusterConnectionTypesOutcomeCallable listClusterConnectionTypesCallable(const Model::ListClusterConnectionTypesRequest& request) const; + ListClusterDetailFeatureOutcome listClusterDetailFeature(const Model::ListClusterDetailFeatureRequest &request)const; + void listClusterDetailFeatureAsync(const Model::ListClusterDetailFeatureRequest& request, const ListClusterDetailFeatureAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListClusterDetailFeatureOutcomeCallable listClusterDetailFeatureCallable(const Model::ListClusterDetailFeatureRequest& request) const; ListClusterTypesOutcome listClusterTypes(const Model::ListClusterTypesRequest &request)const; void listClusterTypesAsync(const Model::ListClusterTypesRequest& request, const ListClusterTypesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; ListClusterTypesOutcomeCallable listClusterTypesCallable(const Model::ListClusterTypesRequest& request) const; @@ -955,6 +1038,9 @@ namespace AlibabaCloud ListGatewaySlbOutcome listGatewaySlb(const Model::ListGatewaySlbRequest &request)const; void listGatewaySlbAsync(const Model::ListGatewaySlbRequest& request, const ListGatewaySlbAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; ListGatewaySlbOutcomeCallable listGatewaySlbCallable(const Model::ListGatewaySlbRequest& request) const; + ListInstancesOutcome listInstances(const Model::ListInstancesRequest &request)const; + void listInstancesAsync(const Model::ListInstancesRequest& request, const ListInstancesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListInstancesOutcomeCallable listInstancesCallable(const Model::ListInstancesRequest& request) const; ListListenersByConfigOutcome listListenersByConfig(const Model::ListListenersByConfigRequest &request)const; void listListenersByConfigAsync(const Model::ListListenersByConfigRequest& request, const ListListenersByConfigAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; ListListenersByConfigOutcomeCallable listListenersByConfigCallable(const Model::ListListenersByConfigRequest& request) const; @@ -970,6 +1056,12 @@ namespace AlibabaCloud ListSSLCertOutcome listSSLCert(const Model::ListSSLCertRequest &request)const; void listSSLCertAsync(const Model::ListSSLCertRequest& request, const ListSSLCertAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; ListSSLCertOutcomeCallable listSSLCertCallable(const Model::ListSSLCertRequest& request) const; + ListSecurityGroupOutcome listSecurityGroup(const Model::ListSecurityGroupRequest &request)const; + void listSecurityGroupAsync(const Model::ListSecurityGroupRequest& request, const ListSecurityGroupAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListSecurityGroupOutcomeCallable listSecurityGroupCallable(const Model::ListSecurityGroupRequest& request) const; + ListSecurityGroupRuleOutcome listSecurityGroupRule(const Model::ListSecurityGroupRuleRequest &request)const; + void listSecurityGroupRuleAsync(const Model::ListSecurityGroupRuleRequest& request, const ListSecurityGroupRuleAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListSecurityGroupRuleOutcomeCallable listSecurityGroupRuleCallable(const Model::ListSecurityGroupRuleRequest& request) const; ListServiceSourceOutcome listServiceSource(const Model::ListServiceSourceRequest &request)const; void listServiceSourceAsync(const Model::ListServiceSourceRequest& request, const ListServiceSourceAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; ListServiceSourceOutcomeCallable listServiceSourceCallable(const Model::ListServiceSourceRequest& request) const; @@ -1024,18 +1116,21 @@ namespace AlibabaCloud QuerySwimmingLaneByIdOutcome querySwimmingLaneById(const Model::QuerySwimmingLaneByIdRequest &request)const; void querySwimmingLaneByIdAsync(const Model::QuerySwimmingLaneByIdRequest& request, const QuerySwimmingLaneByIdAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; QuerySwimmingLaneByIdOutcomeCallable querySwimmingLaneByIdCallable(const Model::QuerySwimmingLaneByIdRequest& request) const; + QueryUserVpcOutcome queryUserVpc(const Model::QueryUserVpcRequest &request)const; + void queryUserVpcAsync(const Model::QueryUserVpcRequest& request, const QueryUserVpcAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + QueryUserVpcOutcomeCallable queryUserVpcCallable(const Model::QueryUserVpcRequest& request) const; QueryZnodeDetailOutcome queryZnodeDetail(const Model::QueryZnodeDetailRequest &request)const; void queryZnodeDetailAsync(const Model::QueryZnodeDetailRequest& request, const QueryZnodeDetailAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; QueryZnodeDetailOutcomeCallable queryZnodeDetailCallable(const Model::QueryZnodeDetailRequest& request) const; RestartClusterOutcome restartCluster(const Model::RestartClusterRequest &request)const; void restartClusterAsync(const Model::RestartClusterRequest& request, const RestartClusterAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; RestartClusterOutcomeCallable restartClusterCallable(const Model::RestartClusterRequest& request) const; + RestartSeataServerOutcome restartSeataServer(const Model::RestartSeataServerRequest &request)const; + void restartSeataServerAsync(const Model::RestartSeataServerRequest& request, const RestartSeataServerAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + RestartSeataServerOutcomeCallable restartSeataServerCallable(const Model::RestartSeataServerRequest& request) const; RetryClusterOutcome retryCluster(const Model::RetryClusterRequest &request)const; void retryClusterAsync(const Model::RetryClusterRequest& request, const RetryClusterAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; RetryClusterOutcomeCallable retryClusterCallable(const Model::RetryClusterRequest& request) const; - ScalingClusterOutcome scalingCluster(const Model::ScalingClusterRequest &request)const; - void scalingClusterAsync(const Model::ScalingClusterRequest& request, const ScalingClusterAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - ScalingClusterOutcomeCallable scalingClusterCallable(const Model::ScalingClusterRequest& request) const; SelectGatewaySlbOutcome selectGatewaySlb(const Model::SelectGatewaySlbRequest &request)const; void selectGatewaySlbAsync(const Model::SelectGatewaySlbRequest& request, const SelectGatewaySlbAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; SelectGatewaySlbOutcomeCallable selectGatewaySlbCallable(const Model::SelectGatewaySlbRequest& request) const; @@ -1081,12 +1176,21 @@ namespace AlibabaCloud UpdateGatewayRouteTimeoutOutcome updateGatewayRouteTimeout(const Model::UpdateGatewayRouteTimeoutRequest &request)const; void updateGatewayRouteTimeoutAsync(const Model::UpdateGatewayRouteTimeoutRequest& request, const UpdateGatewayRouteTimeoutAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; UpdateGatewayRouteTimeoutOutcomeCallable updateGatewayRouteTimeoutCallable(const Model::UpdateGatewayRouteTimeoutRequest& request) const; + UpdateGatewayRouteWafStatusOutcome updateGatewayRouteWafStatus(const Model::UpdateGatewayRouteWafStatusRequest &request)const; + void updateGatewayRouteWafStatusAsync(const Model::UpdateGatewayRouteWafStatusRequest& request, const UpdateGatewayRouteWafStatusAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + UpdateGatewayRouteWafStatusOutcomeCallable updateGatewayRouteWafStatusCallable(const Model::UpdateGatewayRouteWafStatusRequest& request) const; + UpdateGatewayServiceTrafficPolicyOutcome updateGatewayServiceTrafficPolicy(const Model::UpdateGatewayServiceTrafficPolicyRequest &request)const; + void updateGatewayServiceTrafficPolicyAsync(const Model::UpdateGatewayServiceTrafficPolicyRequest& request, const UpdateGatewayServiceTrafficPolicyAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + UpdateGatewayServiceTrafficPolicyOutcomeCallable updateGatewayServiceTrafficPolicyCallable(const Model::UpdateGatewayServiceTrafficPolicyRequest& request) const; UpdateGatewayServiceVersionOutcome updateGatewayServiceVersion(const Model::UpdateGatewayServiceVersionRequest &request)const; void updateGatewayServiceVersionAsync(const Model::UpdateGatewayServiceVersionRequest& request, const UpdateGatewayServiceVersionAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; UpdateGatewayServiceVersionOutcomeCallable updateGatewayServiceVersionCallable(const Model::UpdateGatewayServiceVersionRequest& request) const; UpdateImageOutcome updateImage(const Model::UpdateImageRequest &request)const; void updateImageAsync(const Model::UpdateImageRequest& request, const UpdateImageAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; UpdateImageOutcomeCallable updateImageCallable(const Model::UpdateImageRequest& request) const; + UpdateMessageQueueRouteOutcome updateMessageQueueRoute(const Model::UpdateMessageQueueRouteRequest &request)const; + void updateMessageQueueRouteAsync(const Model::UpdateMessageQueueRouteRequest& request, const UpdateMessageQueueRouteAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + UpdateMessageQueueRouteOutcomeCallable updateMessageQueueRouteCallable(const Model::UpdateMessageQueueRouteRequest& request) const; UpdateNacosClusterOutcome updateNacosCluster(const Model::UpdateNacosClusterRequest &request)const; void updateNacosClusterAsync(const Model::UpdateNacosClusterRequest& request, const UpdateNacosClusterAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; UpdateNacosClusterOutcomeCallable updateNacosClusterCallable(const Model::UpdateNacosClusterRequest& request) const; diff --git a/mse/include/alibabacloud/mse/model/AddGatewayRouteRequest.h b/mse/include/alibabacloud/mse/model/AddGatewayRouteRequest.h index 2d7f89dc0..99314cd16 100644 --- a/mse/include/alibabacloud/mse/model/AddGatewayRouteRequest.h +++ b/mse/include/alibabacloud/mse/model/AddGatewayRouteRequest.h @@ -84,6 +84,8 @@ public: void setGatewayId(long gatewayId); int getRouteOrder() const; void setRouteOrder(int routeOrder); + bool getEnableWaf() const; + void setEnableWaf(bool enableWaf); std::vector getServices() const; void setServices(const std::vector &services); Predicates getPredicates() const; @@ -104,6 +106,7 @@ private: long domainId_; long gatewayId_; int routeOrder_; + bool enableWaf_; std::vector services_; Predicates predicates_; RedirectJSON redirectJSON_; diff --git a/mse/include/alibabacloud/mse/model/ScalingClusterRequest.h b/mse/include/alibabacloud/mse/model/AddSeataServerRequest.h similarity index 51% rename from mse/include/alibabacloud/mse/model/ScalingClusterRequest.h rename to mse/include/alibabacloud/mse/model/AddSeataServerRequest.h index 65b702643..e27e4e414 100644 --- a/mse/include/alibabacloud/mse/model/ScalingClusterRequest.h +++ b/mse/include/alibabacloud/mse/model/AddSeataServerRequest.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef ALIBABACLOUD_MSE_MODEL_SCALINGCLUSTERREQUEST_H_ -#define ALIBABACLOUD_MSE_MODEL_SCALINGCLUSTERREQUEST_H_ +#ifndef ALIBABACLOUD_MSE_MODEL_ADDSEATASERVERREQUEST_H_ +#define ALIBABACLOUD_MSE_MODEL_ADDSEATASERVERREQUEST_H_ #include #include @@ -26,35 +26,38 @@ namespace AlibabaCloud { namespace Mse { namespace Model { -class ALIBABACLOUD_MSE_EXPORT ScalingClusterRequest : public RpcServiceRequest { +class ALIBABACLOUD_MSE_EXPORT AddSeataServerRequest : public RpcServiceRequest { public: - ScalingClusterRequest(); - ~ScalingClusterRequest(); - std::string getClusterSpecification() const; - void setClusterSpecification(const std::string &clusterSpecification); - int getCpu() const; - void setCpu(int cpu); - std::string getClusterId() const; - void setClusterId(const std::string &clusterId); - std::string getInstanceId() const; - void setInstanceId(const std::string &instanceId); - long getMemoryCapacity() const; - void setMemoryCapacity(long memoryCapacity); - int getInstanceCount() const; - void setInstanceCount(int instanceCount); + AddSeataServerRequest(); + ~AddSeataServerRequest(); + int getReplica() const; + void setReplica(int replica); + std::string getPrimaryUser() const; + void setPrimaryUser(const std::string &primaryUser); + std::string getVpc() const; + void setVpc(const std::string &vpc); + std::string getVswitch() const; + void setVswitch(const std::string &vswitch); + std::string getName() const; + void setName(const std::string &name); std::string getAcceptLanguage() const; void setAcceptLanguage(const std::string &acceptLanguage); + std::string getZoneId() const; + void setZoneId(const std::string &zoneId); + std::string getRegion() const; + void setRegion(const std::string ®ion); private: - std::string clusterSpecification_; - int cpu_; - std::string clusterId_; - std::string instanceId_; - long memoryCapacity_; - int instanceCount_; + int replica_; + std::string primaryUser_; + std::string vpc_; + std::string vswitch_; + std::string name_; std::string acceptLanguage_; + std::string zoneId_; + std::string region_; }; } // namespace Model } // namespace Mse } // namespace AlibabaCloud -#endif // !ALIBABACLOUD_MSE_MODEL_SCALINGCLUSTERREQUEST_H_ +#endif // !ALIBABACLOUD_MSE_MODEL_ADDSEATASERVERREQUEST_H_ diff --git a/mse/include/alibabacloud/mse/model/ScalingClusterResult.h b/mse/include/alibabacloud/mse/model/AddSeataServerResult.h similarity index 67% rename from mse/include/alibabacloud/mse/model/ScalingClusterResult.h rename to mse/include/alibabacloud/mse/model/AddSeataServerResult.h index 9656591b6..0b34fa43f 100644 --- a/mse/include/alibabacloud/mse/model/ScalingClusterResult.h +++ b/mse/include/alibabacloud/mse/model/AddSeataServerResult.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef ALIBABACLOUD_MSE_MODEL_SCALINGCLUSTERRESULT_H_ -#define ALIBABACLOUD_MSE_MODEL_SCALINGCLUSTERRESULT_H_ +#ifndef ALIBABACLOUD_MSE_MODEL_ADDSEATASERVERRESULT_H_ +#define ALIBABACLOUD_MSE_MODEL_ADDSEATASERVERRESULT_H_ #include #include @@ -29,27 +29,31 @@ namespace AlibabaCloud { namespace Model { - class ALIBABACLOUD_MSE_EXPORT ScalingClusterResult : public ServiceResult + class ALIBABACLOUD_MSE_EXPORT AddSeataServerResult : public ServiceResult { public: - ScalingClusterResult(); - explicit ScalingClusterResult(const std::string &payload); - ~ScalingClusterResult(); + AddSeataServerResult(); + explicit AddSeataServerResult(const std::string &payload); + ~AddSeataServerResult(); std::string getMessage()const; - std::string getErrorCode()const; + int getHttpStatusCode()const; + std::string getData()const; + int getCode()const; bool getSuccess()const; protected: void parse(const std::string &payload); private: std::string message_; - std::string errorCode_; + int httpStatusCode_; + std::string data_; + int code_; bool success_; }; } } } -#endif // !ALIBABACLOUD_MSE_MODEL_SCALINGCLUSTERRESULT_H_ \ No newline at end of file +#endif // !ALIBABACLOUD_MSE_MODEL_ADDSEATASERVERRESULT_H_ \ No newline at end of file diff --git a/mse/include/alibabacloud/mse/model/AddSecurityGroupRuleRequest.h b/mse/include/alibabacloud/mse/model/AddSecurityGroupRuleRequest.h new file mode 100644 index 000000000..5a1971735 --- /dev/null +++ b/mse/include/alibabacloud/mse/model/AddSecurityGroupRuleRequest.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_MSE_MODEL_ADDSECURITYGROUPRULEREQUEST_H_ +#define ALIBABACLOUD_MSE_MODEL_ADDSECURITYGROUPRULEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Mse { +namespace Model { +class ALIBABACLOUD_MSE_EXPORT AddSecurityGroupRuleRequest : public RpcServiceRequest { +public: + AddSecurityGroupRuleRequest(); + ~AddSecurityGroupRuleRequest(); + std::string getPortRange() const; + void setPortRange(const std::string &portRange); + std::string getGatewayUniqueId() const; + void setGatewayUniqueId(const std::string &gatewayUniqueId); + std::string getSecurityGroupId() const; + void setSecurityGroupId(const std::string &securityGroupId); + std::string getDescription() const; + void setDescription(const std::string &description); + std::string getAcceptLanguage() const; + void setAcceptLanguage(const std::string &acceptLanguage); + +private: + std::string portRange_; + std::string gatewayUniqueId_; + std::string securityGroupId_; + std::string description_; + std::string acceptLanguage_; +}; +} // namespace Model +} // namespace Mse +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_MSE_MODEL_ADDSECURITYGROUPRULEREQUEST_H_ diff --git a/mse/include/alibabacloud/mse/model/AddSecurityGroupRuleResult.h b/mse/include/alibabacloud/mse/model/AddSecurityGroupRuleResult.h new file mode 100644 index 000000000..99b7c02a6 --- /dev/null +++ b/mse/include/alibabacloud/mse/model/AddSecurityGroupRuleResult.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_MSE_MODEL_ADDSECURITYGROUPRULERESULT_H_ +#define ALIBABACLOUD_MSE_MODEL_ADDSECURITYGROUPRULERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Mse + { + namespace Model + { + class ALIBABACLOUD_MSE_EXPORT AddSecurityGroupRuleResult : public ServiceResult + { + public: + + + AddSecurityGroupRuleResult(); + explicit AddSecurityGroupRuleResult(const std::string &payload); + ~AddSecurityGroupRuleResult(); + std::string getMessage()const; + int getHttpStatusCode()const; + std::string getData()const; + int getCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + int httpStatusCode_; + std::string data_; + int code_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_MSE_MODEL_ADDSECURITYGROUPRULERESULT_H_ \ No newline at end of file diff --git a/mse/include/alibabacloud/mse/model/AddServiceSourceRequest.h b/mse/include/alibabacloud/mse/model/AddServiceSourceRequest.h index 9bbafda2e..568fcb545 100644 --- a/mse/include/alibabacloud/mse/model/AddServiceSourceRequest.h +++ b/mse/include/alibabacloud/mse/model/AddServiceSourceRequest.h @@ -28,8 +28,15 @@ namespace Mse { namespace Model { class ALIBABACLOUD_MSE_EXPORT AddServiceSourceRequest : public RpcServiceRequest { public: + struct IngressOptionsRequest { + bool enableIngress; + std::string watchNamespace; + std::string ingressClass; + }; AddServiceSourceRequest(); ~AddServiceSourceRequest(); + IngressOptionsRequest getIngressOptionsRequest() const; + void setIngressOptionsRequest(const IngressOptionsRequest &ingressOptionsRequest); std::string getGatewayUniqueId() const; void setGatewayUniqueId(const std::string &gatewayUniqueId); std::string getSource() const; @@ -44,6 +51,7 @@ public: void setAcceptLanguage(const std::string &acceptLanguage); private: + IngressOptionsRequest ingressOptionsRequest_; std::string gatewayUniqueId_; std::string source_; std::string type_; diff --git a/mse/include/alibabacloud/mse/model/ListAlarmContactGroupsRequest.h b/mse/include/alibabacloud/mse/model/AddTestRequest.h similarity index 65% rename from mse/include/alibabacloud/mse/model/ListAlarmContactGroupsRequest.h rename to mse/include/alibabacloud/mse/model/AddTestRequest.h index 907a52947..d2cf933d5 100644 --- a/mse/include/alibabacloud/mse/model/ListAlarmContactGroupsRequest.h +++ b/mse/include/alibabacloud/mse/model/AddTestRequest.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef ALIBABACLOUD_MSE_MODEL_LISTALARMCONTACTGROUPSREQUEST_H_ -#define ALIBABACLOUD_MSE_MODEL_LISTALARMCONTACTGROUPSREQUEST_H_ +#ifndef ALIBABACLOUD_MSE_MODEL_ADDTESTREQUEST_H_ +#define ALIBABACLOUD_MSE_MODEL_ADDTESTREQUEST_H_ #include #include @@ -26,26 +26,29 @@ namespace AlibabaCloud { namespace Mse { namespace Model { -class ALIBABACLOUD_MSE_EXPORT ListAlarmContactGroupsRequest : public RpcServiceRequest { +class ALIBABACLOUD_MSE_EXPORT AddTestRequest : public RpcServiceRequest { public: - ListAlarmContactGroupsRequest(); - ~ListAlarmContactGroupsRequest(); - int getPageNum() const; - void setPageNum(int pageNum); - std::string getRequestPars() const; - void setRequestPars(const std::string &requestPars); + AddTestRequest(); + ~AddTestRequest(); + int getPageNumber() const; + void setPageNumber(int pageNumber); + std::string getOrderItem() const; + void setOrderItem(const std::string &orderItem); int getPageSize() const; void setPageSize(int pageSize); std::string getAcceptLanguage() const; void setAcceptLanguage(const std::string &acceptLanguage); + bool getDescSort() const; + void setDescSort(bool descSort); private: - int pageNum_; - std::string requestPars_; + int pageNumber_; + std::string orderItem_; int pageSize_; std::string acceptLanguage_; + bool descSort_; }; } // namespace Model } // namespace Mse } // namespace AlibabaCloud -#endif // !ALIBABACLOUD_MSE_MODEL_LISTALARMCONTACTGROUPSREQUEST_H_ +#endif // !ALIBABACLOUD_MSE_MODEL_ADDTESTREQUEST_H_ diff --git a/mse/include/alibabacloud/mse/model/AddTestResult.h b/mse/include/alibabacloud/mse/model/AddTestResult.h new file mode 100644 index 000000000..659ccc886 --- /dev/null +++ b/mse/include/alibabacloud/mse/model/AddTestResult.h @@ -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. + */ + +#ifndef ALIBABACLOUD_MSE_MODEL_ADDTESTRESULT_H_ +#define ALIBABACLOUD_MSE_MODEL_ADDTESTRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Mse + { + namespace Model + { + class ALIBABACLOUD_MSE_EXPORT AddTestResult : public ServiceResult + { + public: + struct Data + { + struct Gateways + { + struct SlbItem + { + std::string slbId; + std::string slbPort; + std::string statusDesc; + std::string type; + std::string gatewaySlbMode; + std::string slbIp; + std::string gatewaySlbStatus; + std::string slbSpec; + }; + struct InternetSlbItem + { + std::string slbId; + std::string slbPort; + std::string statusDesc; + std::string type; + std::string gatewaySlbMode; + std::string slbIp; + std::string gatewaySlbStatus; + std::string slbSpec; + std::string internetNetworkFlow; + }; + std::string currentVersion; + std::vector slb; + std::string gmtModified; + std::string vswitch2; + std::string gatewayType; + bool upgrade; + std::string name; + std::string statusDesc; + bool armsOn; + std::vector internetSlb; + int status; + bool mustUpgrade; + std::string instanceId; + bool ahasOn; + int replica; + std::string endDate; + std::string gatewayUniqueId; + std::string gmtCreate; + std::string latestVersion; + std::string chargeType; + std::string region; + std::string primaryUser; + long id; + std::string tag; + std::string spec; + }; + int pageSize; + int pageNumber; + long totalSize; + std::vector result; + }; + + + AddTestResult(); + explicit AddTestResult(const std::string &payload); + ~AddTestResult(); + std::string getMessage()const; + int getHttpStatusCode()const; + Data getData()const; + int getCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + int httpStatusCode_; + Data data_; + int code_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_MSE_MODEL_ADDTESTRESULT_H_ \ No newline at end of file diff --git a/mse/include/alibabacloud/mse/model/CreateAlarmRuleRequest.h b/mse/include/alibabacloud/mse/model/CreateAlarmRuleRequest.h deleted file mode 100644 index 64ebb300a..000000000 --- a/mse/include/alibabacloud/mse/model/CreateAlarmRuleRequest.h +++ /dev/null @@ -1,72 +0,0 @@ -/* - * 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_MSE_MODEL_CREATEALARMRULEREQUEST_H_ -#define ALIBABACLOUD_MSE_MODEL_CREATEALARMRULEREQUEST_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud { -namespace Mse { -namespace Model { -class ALIBABACLOUD_MSE_EXPORT CreateAlarmRuleRequest : public RpcServiceRequest { -public: - CreateAlarmRuleRequest(); - ~CreateAlarmRuleRequest(); - int getNValue() const; - void setNValue(int nValue); - std::string getAlarmItem() const; - void setAlarmItem(const std::string &alarmItem); - std::string getClusterId() const; - void setClusterId(const std::string &clusterId); - std::string get_Operator() const; - void set_Operator(const std::string &_operator); - std::string getAlarmAliasName() const; - void setAlarmAliasName(const std::string &alarmAliasName); - std::string getInstanceId() const; - void setInstanceId(const std::string &instanceId); - std::string getContactGroupIds() const; - void setContactGroupIds(const std::string &contactGroupIds); - std::string getAcceptLanguage() const; - void setAcceptLanguage(const std::string &acceptLanguage); - std::string getAlertWay() const; - void setAlertWay(const std::string &alertWay); - std::string getAggregates() const; - void setAggregates(const std::string &aggregates); - float getValue() const; - void setValue(float value); - -private: - int nValue_; - std::string alarmItem_; - std::string clusterId_; - std::string _operator_; - std::string alarmAliasName_; - std::string instanceId_; - std::string contactGroupIds_; - std::string acceptLanguage_; - std::string alertWay_; - std::string aggregates_; - float value_; -}; -} // namespace Model -} // namespace Mse -} // namespace AlibabaCloud -#endif // !ALIBABACLOUD_MSE_MODEL_CREATEALARMRULEREQUEST_H_ diff --git a/mse/include/alibabacloud/mse/model/CreateApplicationRequest.h b/mse/include/alibabacloud/mse/model/CreateApplicationRequest.h index c7c5f624c..67126e465 100644 --- a/mse/include/alibabacloud/mse/model/CreateApplicationRequest.h +++ b/mse/include/alibabacloud/mse/model/CreateApplicationRequest.h @@ -38,8 +38,12 @@ public: void setExtraInfo(const std::string &extraInfo); std::string getAppName() const; void setAppName(const std::string &appName); + std::string getSwitchEnable() const; + void setSwitchEnable(const std::string &switchEnable); std::string getAcceptLanguage() const; void setAcceptLanguage(const std::string &acceptLanguage); + std::string getSentinelEnable() const; + void setSentinelEnable(const std::string &sentinelEnable); std::string getRegion() const; void setRegion(const std::string ®ion); @@ -48,7 +52,9 @@ private: std::string source_; std::string extraInfo_; std::string appName_; + std::string switchEnable_; std::string acceptLanguage_; + std::string sentinelEnable_; std::string region_; }; } // namespace Model diff --git a/mse/include/alibabacloud/mse/model/CreateEngineNamespaceRequest.h b/mse/include/alibabacloud/mse/model/CreateEngineNamespaceRequest.h index fc0c6d7b8..c4d0cf73d 100644 --- a/mse/include/alibabacloud/mse/model/CreateEngineNamespaceRequest.h +++ b/mse/include/alibabacloud/mse/model/CreateEngineNamespaceRequest.h @@ -40,6 +40,8 @@ public: void setName(const std::string &name); std::string getAcceptLanguage() const; void setAcceptLanguage(const std::string &acceptLanguage); + std::string getId() const; + void setId(const std::string &id); std::string getDesc() const; void setDesc(const std::string &desc); @@ -49,6 +51,7 @@ private: int serviceCount_; std::string name_; std::string acceptLanguage_; + std::string id_; std::string desc_; }; } // namespace Model diff --git a/mse/include/alibabacloud/mse/model/CreateVGroupRequest.h b/mse/include/alibabacloud/mse/model/CreateVGroupRequest.h new file mode 100644 index 000000000..0a51c0bdb --- /dev/null +++ b/mse/include/alibabacloud/mse/model/CreateVGroupRequest.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_MSE_MODEL_CREATEVGROUPREQUEST_H_ +#define ALIBABACLOUD_MSE_MODEL_CREATEVGROUPREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Mse { +namespace Model { +class ALIBABACLOUD_MSE_EXPORT CreateVGroupRequest : public RpcServiceRequest { +public: + CreateVGroupRequest(); + ~CreateVGroupRequest(); + std::string getPrimaryUser() const; + void setPrimaryUser(const std::string &primaryUser); + std::string getName() const; + void setName(const std::string &name); + std::string getAcceptLanguage() const; + void setAcceptLanguage(const std::string &acceptLanguage); + std::string getSeataServerUniqueId() const; + void setSeataServerUniqueId(const std::string &seataServerUniqueId); + std::string getRegion() const; + void setRegion(const std::string ®ion); + +private: + std::string primaryUser_; + std::string name_; + std::string acceptLanguage_; + std::string seataServerUniqueId_; + std::string region_; +}; +} // namespace Model +} // namespace Mse +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_MSE_MODEL_CREATEVGROUPREQUEST_H_ diff --git a/mse/include/alibabacloud/mse/model/CreateAlarmRuleResult.h b/mse/include/alibabacloud/mse/model/CreateVGroupResult.h similarity index 67% rename from mse/include/alibabacloud/mse/model/CreateAlarmRuleResult.h rename to mse/include/alibabacloud/mse/model/CreateVGroupResult.h index 8d1b10d16..2794eef9d 100644 --- a/mse/include/alibabacloud/mse/model/CreateAlarmRuleResult.h +++ b/mse/include/alibabacloud/mse/model/CreateVGroupResult.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef ALIBABACLOUD_MSE_MODEL_CREATEALARMRULERESULT_H_ -#define ALIBABACLOUD_MSE_MODEL_CREATEALARMRULERESULT_H_ +#ifndef ALIBABACLOUD_MSE_MODEL_CREATEVGROUPRESULT_H_ +#define ALIBABACLOUD_MSE_MODEL_CREATEVGROUPRESULT_H_ #include #include @@ -29,27 +29,31 @@ namespace AlibabaCloud { namespace Model { - class ALIBABACLOUD_MSE_EXPORT CreateAlarmRuleResult : public ServiceResult + class ALIBABACLOUD_MSE_EXPORT CreateVGroupResult : public ServiceResult { public: - CreateAlarmRuleResult(); - explicit CreateAlarmRuleResult(const std::string &payload); - ~CreateAlarmRuleResult(); + CreateVGroupResult(); + explicit CreateVGroupResult(const std::string &payload); + ~CreateVGroupResult(); std::string getMessage()const; - std::string getErrorCode()const; + int getHttpStatusCode()const; + std::string getData()const; + int getCode()const; bool getSuccess()const; protected: void parse(const std::string &payload); private: std::string message_; - std::string errorCode_; + int httpStatusCode_; + std::string data_; + int code_; bool success_; }; } } } -#endif // !ALIBABACLOUD_MSE_MODEL_CREATEALARMRULERESULT_H_ \ No newline at end of file +#endif // !ALIBABACLOUD_MSE_MODEL_CREATEVGROUPRESULT_H_ \ No newline at end of file diff --git a/mse/include/alibabacloud/mse/model/DeleteGatewayDomainResult.h b/mse/include/alibabacloud/mse/model/DeleteGatewayDomainResult.h index 995ffb5c1..10bca501f 100644 --- a/mse/include/alibabacloud/mse/model/DeleteGatewayDomainResult.h +++ b/mse/include/alibabacloud/mse/model/DeleteGatewayDomainResult.h @@ -38,7 +38,7 @@ namespace AlibabaCloud std::string gmtCreate; bool mustHttps; std::string gmtModified; - int certIdentifier; + std::string certIdentifier; long id; long gatewayId; std::string protocol; diff --git a/mse/include/alibabacloud/mse/model/DeleteGatewayServiceRequest.h b/mse/include/alibabacloud/mse/model/DeleteGatewayServiceRequest.h new file mode 100644 index 000000000..632faeb13 --- /dev/null +++ b/mse/include/alibabacloud/mse/model/DeleteGatewayServiceRequest.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_MSE_MODEL_DELETEGATEWAYSERVICEREQUEST_H_ +#define ALIBABACLOUD_MSE_MODEL_DELETEGATEWAYSERVICEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Mse { +namespace Model { +class ALIBABACLOUD_MSE_EXPORT DeleteGatewayServiceRequest : public RpcServiceRequest { +public: + DeleteGatewayServiceRequest(); + ~DeleteGatewayServiceRequest(); + std::string getGatewayUniqueId() const; + void setGatewayUniqueId(const std::string &gatewayUniqueId); + std::string getAcceptLanguage() const; + void setAcceptLanguage(const std::string &acceptLanguage); + std::string getServiceId() const; + void setServiceId(const std::string &serviceId); + long getGatewayId() const; + void setGatewayId(long gatewayId); + +private: + std::string gatewayUniqueId_; + std::string acceptLanguage_; + std::string serviceId_; + long gatewayId_; +}; +} // namespace Model +} // namespace Mse +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_MSE_MODEL_DELETEGATEWAYSERVICEREQUEST_H_ diff --git a/mse/include/alibabacloud/mse/model/ListAlarmContactGroupsResult.h b/mse/include/alibabacloud/mse/model/DeleteGatewayServiceResult.h similarity index 53% rename from mse/include/alibabacloud/mse/model/ListAlarmContactGroupsResult.h rename to mse/include/alibabacloud/mse/model/DeleteGatewayServiceResult.h index 3f97ca601..e10e82334 100644 --- a/mse/include/alibabacloud/mse/model/ListAlarmContactGroupsResult.h +++ b/mse/include/alibabacloud/mse/model/DeleteGatewayServiceResult.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef ALIBABACLOUD_MSE_MODEL_LISTALARMCONTACTGROUPSRESULT_H_ -#define ALIBABACLOUD_MSE_MODEL_LISTALARMCONTACTGROUPSRESULT_H_ +#ifndef ALIBABACLOUD_MSE_MODEL_DELETEGATEWAYSERVICERESULT_H_ +#define ALIBABACLOUD_MSE_MODEL_DELETEGATEWAYSERVICERESULT_H_ #include #include @@ -29,42 +29,47 @@ namespace AlibabaCloud { namespace Model { - class ALIBABACLOUD_MSE_EXPORT ListAlarmContactGroupsResult : public ServiceResult + class ALIBABACLOUD_MSE_EXPORT DeleteGatewayServiceResult : public ServiceResult { public: - struct AlarmContactGroupModel + struct Data { - std::string contactGroupId; - std::string contactGroupName; + std::string groupName; + std::string sourceType; + long sourceId; + std::string metaInfo; + std::string gmtModified; + std::string _namespace; + long gatewayId; + std::vector ips; + std::string name; + std::string gatewayUniqueId; + std::string gmtCreate; + std::string serviceNameInRegistry; + long id; }; - ListAlarmContactGroupsResult(); - explicit ListAlarmContactGroupsResult(const std::string &payload); - ~ListAlarmContactGroupsResult(); - std::string getHttpCode()const; - int getTotalCount()const; + DeleteGatewayServiceResult(); + explicit DeleteGatewayServiceResult(const std::string &payload); + ~DeleteGatewayServiceResult(); std::string getMessage()const; - int getPageSize()const; - int getPageNumber()const; - std::vector getData()const; - std::string getErrorCode()const; + int getHttpStatusCode()const; + Data getData()const; + int getCode()const; bool getSuccess()const; protected: void parse(const std::string &payload); private: - std::string httpCode_; - int totalCount_; std::string message_; - int pageSize_; - int pageNumber_; - std::vector data_; - std::string errorCode_; + int httpStatusCode_; + Data data_; + int code_; bool success_; }; } } } -#endif // !ALIBABACLOUD_MSE_MODEL_LISTALARMCONTACTGROUPSRESULT_H_ \ No newline at end of file +#endif // !ALIBABACLOUD_MSE_MODEL_DELETEGATEWAYSERVICERESULT_H_ \ No newline at end of file diff --git a/mse/include/alibabacloud/mse/model/DeleteSeataServerRequest.h b/mse/include/alibabacloud/mse/model/DeleteSeataServerRequest.h new file mode 100644 index 000000000..a105b23b5 --- /dev/null +++ b/mse/include/alibabacloud/mse/model/DeleteSeataServerRequest.h @@ -0,0 +1,45 @@ +/* + * 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_MSE_MODEL_DELETESEATASERVERREQUEST_H_ +#define ALIBABACLOUD_MSE_MODEL_DELETESEATASERVERREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Mse { +namespace Model { +class ALIBABACLOUD_MSE_EXPORT DeleteSeataServerRequest : public RpcServiceRequest { +public: + DeleteSeataServerRequest(); + ~DeleteSeataServerRequest(); + std::string getAcceptLanguage() const; + void setAcceptLanguage(const std::string &acceptLanguage); + std::string getSeataServerUniqueId() const; + void setSeataServerUniqueId(const std::string &seataServerUniqueId); + +private: + std::string acceptLanguage_; + std::string seataServerUniqueId_; +}; +} // namespace Model +} // namespace Mse +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_MSE_MODEL_DELETESEATASERVERREQUEST_H_ diff --git a/mse/include/alibabacloud/mse/model/DeleteSeataServerResult.h b/mse/include/alibabacloud/mse/model/DeleteSeataServerResult.h new file mode 100644 index 000000000..1ad466662 --- /dev/null +++ b/mse/include/alibabacloud/mse/model/DeleteSeataServerResult.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_MSE_MODEL_DELETESEATASERVERRESULT_H_ +#define ALIBABACLOUD_MSE_MODEL_DELETESEATASERVERRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Mse + { + namespace Model + { + class ALIBABACLOUD_MSE_EXPORT DeleteSeataServerResult : public ServiceResult + { + public: + + + DeleteSeataServerResult(); + explicit DeleteSeataServerResult(const std::string &payload); + ~DeleteSeataServerResult(); + std::string getMessage()const; + int getHttpStatusCode()const; + std::string getData()const; + int getCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + int httpStatusCode_; + std::string data_; + int code_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_MSE_MODEL_DELETESEATASERVERRESULT_H_ \ No newline at end of file diff --git a/mse/include/alibabacloud/mse/model/DeleteSecurityGroupRuleRequest.h b/mse/include/alibabacloud/mse/model/DeleteSecurityGroupRuleRequest.h new file mode 100644 index 000000000..548275a38 --- /dev/null +++ b/mse/include/alibabacloud/mse/model/DeleteSecurityGroupRuleRequest.h @@ -0,0 +1,48 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_MSE_MODEL_DELETESECURITYGROUPRULEREQUEST_H_ +#define ALIBABACLOUD_MSE_MODEL_DELETESECURITYGROUPRULEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Mse { +namespace Model { +class ALIBABACLOUD_MSE_EXPORT DeleteSecurityGroupRuleRequest : public RpcServiceRequest { +public: + DeleteSecurityGroupRuleRequest(); + ~DeleteSecurityGroupRuleRequest(); + std::string getGatewayUniqueId() const; + void setGatewayUniqueId(const std::string &gatewayUniqueId); + std::string getAcceptLanguage() const; + void setAcceptLanguage(const std::string &acceptLanguage); + long getId() const; + void setId(long id); + +private: + std::string gatewayUniqueId_; + std::string acceptLanguage_; + long id_; +}; +} // namespace Model +} // namespace Mse +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_MSE_MODEL_DELETESECURITYGROUPRULEREQUEST_H_ diff --git a/mse/include/alibabacloud/mse/model/DeleteSecurityGroupRuleResult.h b/mse/include/alibabacloud/mse/model/DeleteSecurityGroupRuleResult.h new file mode 100644 index 000000000..ff5228dce --- /dev/null +++ b/mse/include/alibabacloud/mse/model/DeleteSecurityGroupRuleResult.h @@ -0,0 +1,71 @@ +/* + * 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_MSE_MODEL_DELETESECURITYGROUPRULERESULT_H_ +#define ALIBABACLOUD_MSE_MODEL_DELETESECURITYGROUPRULERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Mse + { + namespace Model + { + class ALIBABACLOUD_MSE_EXPORT DeleteSecurityGroupRuleResult : public ServiceResult + { + public: + struct Data + { + std::string gatewayUniqueId; + std::string portRange; + std::string gmtCreate; + std::string description; + std::string securityGroupId; + std::string gmtModified; + std::string ipProtocol; + long id; + long gatewayId; + }; + + + DeleteSecurityGroupRuleResult(); + explicit DeleteSecurityGroupRuleResult(const std::string &payload); + ~DeleteSecurityGroupRuleResult(); + std::string getMessage()const; + int getHttpStatusCode()const; + Data getData()const; + int getCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + int httpStatusCode_; + Data data_; + int code_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_MSE_MODEL_DELETESECURITYGROUPRULERESULT_H_ \ No newline at end of file diff --git a/mse/include/alibabacloud/mse/model/ListAlarmItemsRequest.h b/mse/include/alibabacloud/mse/model/DeleteVGroupRequest.h similarity index 69% rename from mse/include/alibabacloud/mse/model/ListAlarmItemsRequest.h rename to mse/include/alibabacloud/mse/model/DeleteVGroupRequest.h index 64dcc3a33..de2a62128 100644 --- a/mse/include/alibabacloud/mse/model/ListAlarmItemsRequest.h +++ b/mse/include/alibabacloud/mse/model/DeleteVGroupRequest.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef ALIBABACLOUD_MSE_MODEL_LISTALARMITEMSREQUEST_H_ -#define ALIBABACLOUD_MSE_MODEL_LISTALARMITEMSREQUEST_H_ +#ifndef ALIBABACLOUD_MSE_MODEL_DELETEVGROUPREQUEST_H_ +#define ALIBABACLOUD_MSE_MODEL_DELETEVGROUPREQUEST_H_ #include #include @@ -26,20 +26,20 @@ namespace AlibabaCloud { namespace Mse { namespace Model { -class ALIBABACLOUD_MSE_EXPORT ListAlarmItemsRequest : public RpcServiceRequest { +class ALIBABACLOUD_MSE_EXPORT DeleteVGroupRequest : public RpcServiceRequest { public: - ListAlarmItemsRequest(); - ~ListAlarmItemsRequest(); - std::string getRequestPars() const; - void setRequestPars(const std::string &requestPars); + DeleteVGroupRequest(); + ~DeleteVGroupRequest(); + std::string getName() const; + void setName(const std::string &name); std::string getAcceptLanguage() const; void setAcceptLanguage(const std::string &acceptLanguage); private: - std::string requestPars_; + std::string name_; std::string acceptLanguage_; }; } // namespace Model } // namespace Mse } // namespace AlibabaCloud -#endif // !ALIBABACLOUD_MSE_MODEL_LISTALARMITEMSREQUEST_H_ +#endif // !ALIBABACLOUD_MSE_MODEL_DELETEVGROUPREQUEST_H_ diff --git a/mse/include/alibabacloud/mse/model/DeleteVGroupResult.h b/mse/include/alibabacloud/mse/model/DeleteVGroupResult.h new file mode 100644 index 000000000..77b4c2233 --- /dev/null +++ b/mse/include/alibabacloud/mse/model/DeleteVGroupResult.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_MSE_MODEL_DELETEVGROUPRESULT_H_ +#define ALIBABACLOUD_MSE_MODEL_DELETEVGROUPRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Mse + { + namespace Model + { + class ALIBABACLOUD_MSE_EXPORT DeleteVGroupResult : public ServiceResult + { + public: + + + DeleteVGroupResult(); + explicit DeleteVGroupResult(const std::string &payload); + ~DeleteVGroupResult(); + std::string getMessage()const; + int getHttpStatusCode()const; + std::string getData()const; + int getCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + int httpStatusCode_; + std::string data_; + int code_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_MSE_MODEL_DELETEVGROUPRESULT_H_ \ No newline at end of file diff --git a/mse/include/alibabacloud/mse/model/GetAppMessageQueueRouteRequest.h b/mse/include/alibabacloud/mse/model/GetAppMessageQueueRouteRequest.h new file mode 100644 index 000000000..8b0735fea --- /dev/null +++ b/mse/include/alibabacloud/mse/model/GetAppMessageQueueRouteRequest.h @@ -0,0 +1,48 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_MSE_MODEL_GETAPPMESSAGEQUEUEROUTEREQUEST_H_ +#define ALIBABACLOUD_MSE_MODEL_GETAPPMESSAGEQUEUEROUTEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Mse { +namespace Model { +class ALIBABACLOUD_MSE_EXPORT GetAppMessageQueueRouteRequest : public RpcServiceRequest { +public: + GetAppMessageQueueRouteRequest(); + ~GetAppMessageQueueRouteRequest(); + std::string getAppId() const; + void setAppId(const std::string &appId); + std::string getAcceptLanguage() const; + void setAcceptLanguage(const std::string &acceptLanguage); + std::string getRegion() const; + void setRegion(const std::string ®ion); + +private: + std::string appId_; + std::string acceptLanguage_; + std::string region_; +}; +} // namespace Model +} // namespace Mse +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_MSE_MODEL_GETAPPMESSAGEQUEUEROUTEREQUEST_H_ diff --git a/mse/include/alibabacloud/mse/model/GetAppMessageQueueRouteResult.h b/mse/include/alibabacloud/mse/model/GetAppMessageQueueRouteResult.h new file mode 100644 index 000000000..b92ceb546 --- /dev/null +++ b/mse/include/alibabacloud/mse/model/GetAppMessageQueueRouteResult.h @@ -0,0 +1,66 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_MSE_MODEL_GETAPPMESSAGEQUEUEROUTERESULT_H_ +#define ALIBABACLOUD_MSE_MODEL_GETAPPMESSAGEQUEUEROUTERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Mse + { + namespace Model + { + class ALIBABACLOUD_MSE_EXPORT GetAppMessageQueueRouteResult : public ServiceResult + { + public: + struct Data + { + std::string appId; + std::string region; + bool enable; + std::vector tags; + }; + + + GetAppMessageQueueRouteResult(); + explicit GetAppMessageQueueRouteResult(const std::string &payload); + ~GetAppMessageQueueRouteResult(); + std::string getMessage()const; + int getHttpStatusCode()const; + Data getData()const; + int getCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + int httpStatusCode_; + Data data_; + int code_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_MSE_MODEL_GETAPPMESSAGEQUEUEROUTERESULT_H_ \ No newline at end of file diff --git a/mse/include/alibabacloud/mse/model/ListAlarmHistoriesRequest.h b/mse/include/alibabacloud/mse/model/GetApplicationListRequest.h similarity index 50% rename from mse/include/alibabacloud/mse/model/ListAlarmHistoriesRequest.h rename to mse/include/alibabacloud/mse/model/GetApplicationListRequest.h index e7fb08614..ae2b5fae6 100644 --- a/mse/include/alibabacloud/mse/model/ListAlarmHistoriesRequest.h +++ b/mse/include/alibabacloud/mse/model/GetApplicationListRequest.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef ALIBABACLOUD_MSE_MODEL_LISTALARMHISTORIESREQUEST_H_ -#define ALIBABACLOUD_MSE_MODEL_LISTALARMHISTORIESREQUEST_H_ +#ifndef ALIBABACLOUD_MSE_MODEL_GETAPPLICATIONLISTREQUEST_H_ +#define ALIBABACLOUD_MSE_MODEL_GETAPPLICATIONLISTREQUEST_H_ #include #include @@ -26,38 +26,44 @@ namespace AlibabaCloud { namespace Mse { namespace Model { -class ALIBABACLOUD_MSE_EXPORT ListAlarmHistoriesRequest : public RpcServiceRequest { +class ALIBABACLOUD_MSE_EXPORT GetApplicationListRequest : public RpcServiceRequest { public: - ListAlarmHistoriesRequest(); - ~ListAlarmHistoriesRequest(); - long getEndTime() const; - void setEndTime(long endTime); - std::string getAlarmMseType() const; - void setAlarmMseType(const std::string &alarmMseType); - long getStartTime() const; - void setStartTime(long startTime); - int getPageNum() const; - void setPageNum(int pageNum); - std::string getRequestPars() const; - void setRequestPars(const std::string &requestPars); + GetApplicationListRequest(); + ~GetApplicationListRequest(); + std::string getLanguage() const; + void setLanguage(const std::string &language); + std::string getSource() const; + void setSource(const std::string &source); + int getPageNumber() const; + void setPageNumber(int pageNumber); + std::string getAppName() const; + void setAppName(const std::string &appName); int getPageSize() const; void setPageSize(int pageSize); + bool getSwitchEnable() const; + void setSwitchEnable(bool switchEnable); + std::string getAppId() const; + void setAppId(const std::string &appId); std::string getAcceptLanguage() const; void setAcceptLanguage(const std::string &acceptLanguage); - std::string getAlarmName() const; - void setAlarmName(const std::string &alarmName); + bool getSentinelEnable() const; + void setSentinelEnable(bool sentinelEnable); + std::string getRegion() const; + void setRegion(const std::string ®ion); private: - long endTime_; - std::string alarmMseType_; - long startTime_; - int pageNum_; - std::string requestPars_; + std::string language_; + std::string source_; + int pageNumber_; + std::string appName_; int pageSize_; + bool switchEnable_; + std::string appId_; std::string acceptLanguage_; - std::string alarmName_; + bool sentinelEnable_; + std::string region_; }; } // namespace Model } // namespace Mse } // namespace AlibabaCloud -#endif // !ALIBABACLOUD_MSE_MODEL_LISTALARMHISTORIESREQUEST_H_ +#endif // !ALIBABACLOUD_MSE_MODEL_GETAPPLICATIONLISTREQUEST_H_ diff --git a/mse/include/alibabacloud/mse/model/ListAlarmHistoriesResult.h b/mse/include/alibabacloud/mse/model/GetApplicationListResult.h similarity index 53% rename from mse/include/alibabacloud/mse/model/ListAlarmHistoriesResult.h rename to mse/include/alibabacloud/mse/model/GetApplicationListResult.h index fa7912a15..8666a777b 100644 --- a/mse/include/alibabacloud/mse/model/ListAlarmHistoriesResult.h +++ b/mse/include/alibabacloud/mse/model/GetApplicationListResult.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef ALIBABACLOUD_MSE_MODEL_LISTALARMHISTORIESRESULT_H_ -#define ALIBABACLOUD_MSE_MODEL_LISTALARMHISTORIESRESULT_H_ +#ifndef ALIBABACLOUD_MSE_MODEL_GETAPPLICATIONLISTRESULT_H_ +#define ALIBABACLOUD_MSE_MODEL_GETAPPLICATIONLISTRESULT_H_ #include #include @@ -29,46 +29,51 @@ namespace AlibabaCloud { namespace Model { - class ALIBABACLOUD_MSE_EXPORT ListAlarmHistoriesResult : public ServiceResult + class ALIBABACLOUD_MSE_EXPORT GetApplicationListResult : public ServiceResult { public: - struct AlarmHistoryModel + struct Data { - std::string alarmName; - std::string alarmTime; - std::string alarmEmail; - std::string alarmDingDing; - std::string alarmPhone; - std::string alarmContent; + struct ApplicationList + { + long status; + int instancesNumber; + std::string appId; + std::string language; + std::string userId; + std::string extraInfo; + std::string regionId; + std::string source; + std::string appName; + std::string licenseKey; + }; + int pageSize; + int pageNumber; + int totalSize; + std::vector result; }; - ListAlarmHistoriesResult(); - explicit ListAlarmHistoriesResult(const std::string &payload); - ~ListAlarmHistoriesResult(); - std::string getHttpCode()const; - int getTotalCount()const; + GetApplicationListResult(); + explicit GetApplicationListResult(const std::string &payload); + ~GetApplicationListResult(); std::string getMessage()const; - int getPageSize()const; - int getPageNumber()const; - std::vector getData()const; - std::string getErrorCode()const; + int getHttpStatusCode()const; + Data getData()const; + int getCode()const; bool getSuccess()const; protected: void parse(const std::string &payload); private: - std::string httpCode_; - int totalCount_; std::string message_; - int pageSize_; - int pageNumber_; - std::vector data_; - std::string errorCode_; + int httpStatusCode_; + Data data_; + int code_; bool success_; }; } } } -#endif // !ALIBABACLOUD_MSE_MODEL_LISTALARMHISTORIESRESULT_H_ \ No newline at end of file +#endif // !ALIBABACLOUD_MSE_MODEL_GETAPPLICATIONLISTRESULT_H_ \ No newline at end of file diff --git a/mse/include/alibabacloud/mse/model/DeleteAlarmRuleRequest.h b/mse/include/alibabacloud/mse/model/GetDashBoardUrlRequest.h similarity index 68% rename from mse/include/alibabacloud/mse/model/DeleteAlarmRuleRequest.h rename to mse/include/alibabacloud/mse/model/GetDashBoardUrlRequest.h index 078a1b3b6..c692d2371 100644 --- a/mse/include/alibabacloud/mse/model/DeleteAlarmRuleRequest.h +++ b/mse/include/alibabacloud/mse/model/GetDashBoardUrlRequest.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef ALIBABACLOUD_MSE_MODEL_DELETEALARMRULEREQUEST_H_ -#define ALIBABACLOUD_MSE_MODEL_DELETEALARMRULEREQUEST_H_ +#ifndef ALIBABACLOUD_MSE_MODEL_GETDASHBOARDURLREQUEST_H_ +#define ALIBABACLOUD_MSE_MODEL_GETDASHBOARDURLREQUEST_H_ #include #include @@ -26,23 +26,26 @@ namespace AlibabaCloud { namespace Mse { namespace Model { -class ALIBABACLOUD_MSE_EXPORT DeleteAlarmRuleRequest : public RpcServiceRequest { +class ALIBABACLOUD_MSE_EXPORT GetDashBoardUrlRequest : public RpcServiceRequest { public: - DeleteAlarmRuleRequest(); - ~DeleteAlarmRuleRequest(); - std::string getAlarmRuleId() const; - void setAlarmRuleId(const std::string &alarmRuleId); + GetDashBoardUrlRequest(); + ~GetDashBoardUrlRequest(); + std::string getInstanceId() const; + void setInstanceId(const std::string &instanceId); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); std::string getRequestPars() const; void setRequestPars(const std::string &requestPars); std::string getAcceptLanguage() const; void setAcceptLanguage(const std::string &acceptLanguage); private: - std::string alarmRuleId_; + std::string instanceId_; + std::string regionId_; std::string requestPars_; std::string acceptLanguage_; }; } // namespace Model } // namespace Mse } // namespace AlibabaCloud -#endif // !ALIBABACLOUD_MSE_MODEL_DELETEALARMRULEREQUEST_H_ +#endif // !ALIBABACLOUD_MSE_MODEL_GETDASHBOARDURLREQUEST_H_ diff --git a/mse/include/alibabacloud/mse/model/DeleteAlarmRuleResult.h b/mse/include/alibabacloud/mse/model/GetDashBoardUrlResult.h similarity index 71% rename from mse/include/alibabacloud/mse/model/DeleteAlarmRuleResult.h rename to mse/include/alibabacloud/mse/model/GetDashBoardUrlResult.h index 02f206232..250097c18 100644 --- a/mse/include/alibabacloud/mse/model/DeleteAlarmRuleResult.h +++ b/mse/include/alibabacloud/mse/model/GetDashBoardUrlResult.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef ALIBABACLOUD_MSE_MODEL_DELETEALARMRULERESULT_H_ -#define ALIBABACLOUD_MSE_MODEL_DELETEALARMRULERESULT_H_ +#ifndef ALIBABACLOUD_MSE_MODEL_GETDASHBOARDURLRESULT_H_ +#define ALIBABACLOUD_MSE_MODEL_GETDASHBOARDURLRESULT_H_ #include #include @@ -29,16 +29,22 @@ namespace AlibabaCloud { namespace Model { - class ALIBABACLOUD_MSE_EXPORT DeleteAlarmRuleResult : public ServiceResult + class ALIBABACLOUD_MSE_EXPORT GetDashBoardUrlResult : public ServiceResult { public: + struct Data + { + std::string message; + std::string urlMap; + }; - DeleteAlarmRuleResult(); - explicit DeleteAlarmRuleResult(const std::string &payload); - ~DeleteAlarmRuleResult(); + GetDashBoardUrlResult(); + explicit GetDashBoardUrlResult(const std::string &payload); + ~GetDashBoardUrlResult(); std::string getHttpCode()const; std::string getMessage()const; + Data getData()const; std::string getErrorCode()const; bool getSuccess()const; @@ -47,6 +53,7 @@ namespace AlibabaCloud private: std::string httpCode_; std::string message_; + Data data_; std::string errorCode_; bool success_; @@ -54,4 +61,4 @@ namespace AlibabaCloud } } } -#endif // !ALIBABACLOUD_MSE_MODEL_DELETEALARMRULERESULT_H_ \ No newline at end of file +#endif // !ALIBABACLOUD_MSE_MODEL_GETDASHBOARDURLRESULT_H_ \ No newline at end of file diff --git a/mse/include/alibabacloud/mse/model/GetGatewayDomainDetailResult.h b/mse/include/alibabacloud/mse/model/GetGatewayDomainDetailResult.h index 7ad1a034c..fd3a85eb2 100644 --- a/mse/include/alibabacloud/mse/model/GetGatewayDomainDetailResult.h +++ b/mse/include/alibabacloud/mse/model/GetGatewayDomainDetailResult.h @@ -45,7 +45,7 @@ namespace AlibabaCloud std::string gatewayUniqueId; std::string gmtCreate; std::string sans; - int certIdentifier; + std::string certIdentifier; long id; std::string certName; std::string protocol; diff --git a/mse/include/alibabacloud/mse/model/GetGatewayOptionResult.h b/mse/include/alibabacloud/mse/model/GetGatewayOptionResult.h index e48984267..c6fd24a7e 100644 --- a/mse/include/alibabacloud/mse/model/GetGatewayOptionResult.h +++ b/mse/include/alibabacloud/mse/model/GetGatewayOptionResult.h @@ -45,6 +45,7 @@ namespace AlibabaCloud std::string projectName; bool logEnabled; }; + bool enableWaf; bool disableHttp2Alpn; TraceDetails traceDetails; LogConfigDetails logConfigDetails; diff --git a/mse/include/alibabacloud/mse/model/GetGatewayRouteDetailResult.h b/mse/include/alibabacloud/mse/model/GetGatewayRouteDetailResult.h index 49395b8b8..bafba9166 100644 --- a/mse/include/alibabacloud/mse/model/GetGatewayRouteDetailResult.h +++ b/mse/include/alibabacloud/mse/model/GetGatewayRouteDetailResult.h @@ -145,6 +145,7 @@ namespace AlibabaCloud std::string gatewayUniqueId; std::string services; std::string gmtCreate; + bool enableWaf; int routeOrder; long domainId; Retry retry; diff --git a/mse/include/alibabacloud/mse/model/ListAlarmRulesResult.h b/mse/include/alibabacloud/mse/model/ListAlarmRulesResult.h deleted file mode 100644 index f8558f34a..000000000 --- a/mse/include/alibabacloud/mse/model/ListAlarmRulesResult.h +++ /dev/null @@ -1,73 +0,0 @@ -/* - * 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_MSE_MODEL_LISTALARMRULESRESULT_H_ -#define ALIBABACLOUD_MSE_MODEL_LISTALARMRULESRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Mse - { - namespace Model - { - class ALIBABACLOUD_MSE_EXPORT ListAlarmRulesResult : public ServiceResult - { - public: - struct AlarmRuleModel - { - std::string alarmRuleId; - std::string alarmName; - std::string alarmRuleDetail; - std::string createTime; - std::string alarmStatus; - }; - - - ListAlarmRulesResult(); - explicit ListAlarmRulesResult(const std::string &payload); - ~ListAlarmRulesResult(); - std::string getHttpCode()const; - int getTotalCount()const; - std::string getMessage()const; - int getPageSize()const; - int getPageNumber()const; - std::vector getData()const; - std::string getErrorCode()const; - bool getSuccess()const; - - protected: - void parse(const std::string &payload); - private: - std::string httpCode_; - int totalCount_; - std::string message_; - int pageSize_; - int pageNumber_; - std::vector data_; - std::string errorCode_; - bool success_; - - }; - } - } -} -#endif // !ALIBABACLOUD_MSE_MODEL_LISTALARMRULESRESULT_H_ \ No newline at end of file diff --git a/mse/include/alibabacloud/mse/model/ListAlarmRulesRequest.h b/mse/include/alibabacloud/mse/model/ListClusterDetailFeatureRequest.h similarity index 65% rename from mse/include/alibabacloud/mse/model/ListAlarmRulesRequest.h rename to mse/include/alibabacloud/mse/model/ListClusterDetailFeatureRequest.h index 085e81e11..bd5d488aa 100644 --- a/mse/include/alibabacloud/mse/model/ListAlarmRulesRequest.h +++ b/mse/include/alibabacloud/mse/model/ListClusterDetailFeatureRequest.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef ALIBABACLOUD_MSE_MODEL_LISTALARMRULESREQUEST_H_ -#define ALIBABACLOUD_MSE_MODEL_LISTALARMRULESREQUEST_H_ +#ifndef ALIBABACLOUD_MSE_MODEL_LISTCLUSTERDETAILFEATUREREQUEST_H_ +#define ALIBABACLOUD_MSE_MODEL_LISTCLUSTERDETAILFEATUREREQUEST_H_ #include #include @@ -26,29 +26,26 @@ namespace AlibabaCloud { namespace Mse { namespace Model { -class ALIBABACLOUD_MSE_EXPORT ListAlarmRulesRequest : public RpcServiceRequest { +class ALIBABACLOUD_MSE_EXPORT ListClusterDetailFeatureRequest : public RpcServiceRequest { public: - ListAlarmRulesRequest(); - ~ListAlarmRulesRequest(); - std::string getAlarmMseType() const; - void setAlarmMseType(const std::string &alarmMseType); - int getPageNum() const; - void setPageNum(int pageNum); + ListClusterDetailFeatureRequest(); + ~ListClusterDetailFeatureRequest(); + std::string getInstanceId() const; + void setInstanceId(const std::string &instanceId); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); std::string getRequestPars() const; void setRequestPars(const std::string &requestPars); - int getPageSize() const; - void setPageSize(int pageSize); std::string getAcceptLanguage() const; void setAcceptLanguage(const std::string &acceptLanguage); private: - std::string alarmMseType_; - int pageNum_; + std::string instanceId_; + std::string regionId_; std::string requestPars_; - int pageSize_; std::string acceptLanguage_; }; } // namespace Model } // namespace Mse } // namespace AlibabaCloud -#endif // !ALIBABACLOUD_MSE_MODEL_LISTALARMRULESREQUEST_H_ +#endif // !ALIBABACLOUD_MSE_MODEL_LISTCLUSTERDETAILFEATUREREQUEST_H_ diff --git a/mse/include/alibabacloud/mse/model/ListAlarmItemsResult.h b/mse/include/alibabacloud/mse/model/ListClusterDetailFeatureResult.h similarity index 63% rename from mse/include/alibabacloud/mse/model/ListAlarmItemsResult.h rename to mse/include/alibabacloud/mse/model/ListClusterDetailFeatureResult.h index ed4d659a5..28261aa00 100644 --- a/mse/include/alibabacloud/mse/model/ListAlarmItemsResult.h +++ b/mse/include/alibabacloud/mse/model/ListClusterDetailFeatureResult.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef ALIBABACLOUD_MSE_MODEL_LISTALARMITEMSRESULT_H_ -#define ALIBABACLOUD_MSE_MODEL_LISTALARMITEMSRESULT_H_ +#ifndef ALIBABACLOUD_MSE_MODEL_LISTCLUSTERDETAILFEATURERESULT_H_ +#define ALIBABACLOUD_MSE_MODEL_LISTCLUSTERDETAILFEATURERESULT_H_ #include #include @@ -29,26 +29,25 @@ namespace AlibabaCloud { namespace Model { - class ALIBABACLOUD_MSE_EXPORT ListAlarmItemsResult : public ServiceResult + class ALIBABACLOUD_MSE_EXPORT ListClusterDetailFeatureResult : public ServiceResult { public: - struct AlarmItem + struct DataItem { - std::string alarmDesc; - std::string alarmCode; - std::string clusterType; + std::string featureId; + std::string status; + std::string message; + std::string orderNum; + std::string extend; }; - ListAlarmItemsResult(); - explicit ListAlarmItemsResult(const std::string &payload); - ~ListAlarmItemsResult(); + ListClusterDetailFeatureResult(); + explicit ListClusterDetailFeatureResult(const std::string &payload); + ~ListClusterDetailFeatureResult(); std::string getHttpCode()const; - int getTotalCount()const; std::string getMessage()const; - int getPageSize()const; - int getPageNumber()const; - std::vector getData()const; + std::vector getData()const; std::string getErrorCode()const; bool getSuccess()const; @@ -56,11 +55,8 @@ namespace AlibabaCloud void parse(const std::string &payload); private: std::string httpCode_; - int totalCount_; std::string message_; - int pageSize_; - int pageNumber_; - std::vector data_; + std::vector data_; std::string errorCode_; bool success_; @@ -68,4 +64,4 @@ namespace AlibabaCloud } } } -#endif // !ALIBABACLOUD_MSE_MODEL_LISTALARMITEMSRESULT_H_ \ No newline at end of file +#endif // !ALIBABACLOUD_MSE_MODEL_LISTCLUSTERDETAILFEATURERESULT_H_ \ No newline at end of file diff --git a/mse/include/alibabacloud/mse/model/ListClustersResult.h b/mse/include/alibabacloud/mse/model/ListClustersResult.h index a414a6227..d1488dcfc 100644 --- a/mse/include/alibabacloud/mse/model/ListClustersResult.h +++ b/mse/include/alibabacloud/mse/model/ListClustersResult.h @@ -34,6 +34,7 @@ namespace AlibabaCloud public: struct ClusterForListModel { + std::string mseVersion; std::string internetAddress; std::string instanceId; std::string clusterId; diff --git a/mse/include/alibabacloud/mse/model/ListGatewayDomainRequest.h b/mse/include/alibabacloud/mse/model/ListGatewayDomainRequest.h index f8d229145..9b4e3c7aa 100644 --- a/mse/include/alibabacloud/mse/model/ListGatewayDomainRequest.h +++ b/mse/include/alibabacloud/mse/model/ListGatewayDomainRequest.h @@ -32,11 +32,14 @@ public: ~ListGatewayDomainRequest(); std::string getGatewayUniqueId() const; void setGatewayUniqueId(const std::string &gatewayUniqueId); + std::string getType() const; + void setType(const std::string &type); std::string getAcceptLanguage() const; void setAcceptLanguage(const std::string &acceptLanguage); private: std::string gatewayUniqueId_; + std::string type_; std::string acceptLanguage_; }; } // namespace Model diff --git a/mse/include/alibabacloud/mse/model/ListGatewayDomainResult.h b/mse/include/alibabacloud/mse/model/ListGatewayDomainResult.h index b89e922cc..c48036ed9 100644 --- a/mse/include/alibabacloud/mse/model/ListGatewayDomainResult.h +++ b/mse/include/alibabacloud/mse/model/ListGatewayDomainResult.h @@ -34,7 +34,14 @@ namespace AlibabaCloud public: struct Domains { + struct Comment + { + std::string status; + }; + int status; + Comment comment; std::string gmtCreate; + std::string type; bool mustHttps; std::string gmtModified; std::string certIdentifier; diff --git a/mse/include/alibabacloud/mse/model/ListGatewayResult.h b/mse/include/alibabacloud/mse/model/ListGatewayResult.h index 6abb8fe93..bd22b5782 100644 --- a/mse/include/alibabacloud/mse/model/ListGatewayResult.h +++ b/mse/include/alibabacloud/mse/model/ListGatewayResult.h @@ -36,6 +36,11 @@ namespace AlibabaCloud { struct Gateways { + struct InitConfig + { + bool enableWaf; + bool supportWaf; + }; struct SlbItem { std::string slbId; @@ -66,10 +71,12 @@ namespace AlibabaCloud std::string gatewayType; bool upgrade; std::string name; + std::string appVersion; std::string statusDesc; bool armsOn; std::vector internetSlb; int status; + bool supportWasm; bool mustUpgrade; std::string instanceId; bool ahasOn; @@ -79,6 +86,7 @@ namespace AlibabaCloud std::string gmtCreate; std::string latestVersion; std::string chargeType; + InitConfig initConfig; std::string region; std::string primaryUser; long id; diff --git a/mse/include/alibabacloud/mse/model/ListGatewayRouteRequest.h b/mse/include/alibabacloud/mse/model/ListGatewayRouteRequest.h index f914e9799..bc99f66db 100644 --- a/mse/include/alibabacloud/mse/model/ListGatewayRouteRequest.h +++ b/mse/include/alibabacloud/mse/model/ListGatewayRouteRequest.h @@ -33,6 +33,7 @@ public: int routeOrder; std::string gatewayUniqueId; std::string name; + std::string domainName; long gatewayId; long domainId; int status; diff --git a/mse/include/alibabacloud/mse/model/ListGatewayRouteResult.h b/mse/include/alibabacloud/mse/model/ListGatewayRouteResult.h index eeae710f8..ee03fa6e2 100644 --- a/mse/include/alibabacloud/mse/model/ListGatewayRouteResult.h +++ b/mse/include/alibabacloud/mse/model/ListGatewayRouteResult.h @@ -72,6 +72,10 @@ namespace AlibabaCloud std::string host; int code; }; + struct Comment + { + std::string status; + }; struct RouteServicesItem { std::string groupName; @@ -85,6 +89,7 @@ namespace AlibabaCloud }; int status; std::string defaultServiceName; + Comment comment; std::string domainName; std::string gmtModified; long defaultServiceId; @@ -97,6 +102,8 @@ namespace AlibabaCloud std::string services; std::vector domainIdList; std::string gmtCreate; + std::string type; + std::string enableWaf; int routeOrder; long domainId; std::vector domainNameList; diff --git a/mse/include/alibabacloud/mse/model/ListGatewayServiceResult.h b/mse/include/alibabacloud/mse/model/ListGatewayServiceResult.h index 6387dfe29..b31751510 100644 --- a/mse/include/alibabacloud/mse/model/ListGatewayServiceResult.h +++ b/mse/include/alibabacloud/mse/model/ListGatewayServiceResult.h @@ -46,6 +46,7 @@ namespace AlibabaCloud long sourceId; std::string metaInfo; std::string gmtModified; + std::string healehStatus; std::string _namespace; long gatewayId; std::vector ips; diff --git a/mse/include/alibabacloud/mse/model/ListInstancesRequest.h b/mse/include/alibabacloud/mse/model/ListInstancesRequest.h new file mode 100644 index 000000000..0a864c18a --- /dev/null +++ b/mse/include/alibabacloud/mse/model/ListInstancesRequest.h @@ -0,0 +1,48 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_MSE_MODEL_LISTINSTANCESREQUEST_H_ +#define ALIBABACLOUD_MSE_MODEL_LISTINSTANCESREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Mse { +namespace Model { +class ALIBABACLOUD_MSE_EXPORT ListInstancesRequest : public RpcServiceRequest { +public: + ListInstancesRequest(); + ~ListInstancesRequest(); + std::string getUserId() const; + void setUserId(const std::string &userId); + std::string getAcceptLanguage() const; + void setAcceptLanguage(const std::string &acceptLanguage); + std::string getRegion() const; + void setRegion(const std::string ®ion); + +private: + std::string userId_; + std::string acceptLanguage_; + std::string region_; +}; +} // namespace Model +} // namespace Mse +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_MSE_MODEL_LISTINSTANCESREQUEST_H_ diff --git a/mse/include/alibabacloud/mse/model/ListInstancesResult.h b/mse/include/alibabacloud/mse/model/ListInstancesResult.h new file mode 100644 index 000000000..95757e43f --- /dev/null +++ b/mse/include/alibabacloud/mse/model/ListInstancesResult.h @@ -0,0 +1,93 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_MSE_MODEL_LISTINSTANCESRESULT_H_ +#define ALIBABACLOUD_MSE_MODEL_LISTINSTANCESRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Mse + { + namespace Model + { + class ALIBABACLOUD_MSE_EXPORT ListInstancesResult : public ServiceResult + { + public: + struct Instance + { + std::string dbPassword; + std::string podCidr; + std::string gmtModified; + std::string vpc; + std::string storeMode; + std::string appClusterId; + std::string name; + std::string appVersion; + bool isCreatedRedis; + std::string startDate; + std::string statusDesc; + long environmentId; + std::string vswitch; + std::string dbUrl; + std::string dbUserName; + long status; + std::string zoneId; + std::string instanceId; + std::string nameServer; + std::string orderId; + std::string securityGroup; + long endDate; + long replica; + std::string seataServerUniqueId; + std::string gmtCreate; + std::string imageVersion; + long k8sResourceId; + std::string primaryUser; + std::string region; + long id; + std::string spec; + }; + + + ListInstancesResult(); + explicit ListInstancesResult(const std::string &payload); + ~ListInstancesResult(); + std::string getMessage()const; + int getHttpStatusCode()const; + std::vector getData()const; + int getCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + int httpStatusCode_; + std::vector data_; + int code_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_MSE_MODEL_LISTINSTANCESRESULT_H_ \ No newline at end of file diff --git a/mse/include/alibabacloud/mse/model/ListListenersByConfigResult.h b/mse/include/alibabacloud/mse/model/ListListenersByConfigResult.h index c24a4dfe8..62e6932a1 100644 --- a/mse/include/alibabacloud/mse/model/ListListenersByConfigResult.h +++ b/mse/include/alibabacloud/mse/model/ListListenersByConfigResult.h @@ -34,6 +34,7 @@ namespace AlibabaCloud public: struct Listener { + std::string status; std::string ip; std::string md5; }; diff --git a/mse/include/alibabacloud/mse/model/ListSecurityGroupRequest.h b/mse/include/alibabacloud/mse/model/ListSecurityGroupRequest.h new file mode 100644 index 000000000..c5f506e99 --- /dev/null +++ b/mse/include/alibabacloud/mse/model/ListSecurityGroupRequest.h @@ -0,0 +1,45 @@ +/* + * 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_MSE_MODEL_LISTSECURITYGROUPREQUEST_H_ +#define ALIBABACLOUD_MSE_MODEL_LISTSECURITYGROUPREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Mse { +namespace Model { +class ALIBABACLOUD_MSE_EXPORT ListSecurityGroupRequest : public RpcServiceRequest { +public: + ListSecurityGroupRequest(); + ~ListSecurityGroupRequest(); + std::string getGatewayUniqueId() const; + void setGatewayUniqueId(const std::string &gatewayUniqueId); + std::string getAcceptLanguage() const; + void setAcceptLanguage(const std::string &acceptLanguage); + +private: + std::string gatewayUniqueId_; + std::string acceptLanguage_; +}; +} // namespace Model +} // namespace Mse +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_MSE_MODEL_LISTSECURITYGROUPREQUEST_H_ diff --git a/mse/include/alibabacloud/mse/model/ListSecurityGroupResult.h b/mse/include/alibabacloud/mse/model/ListSecurityGroupResult.h new file mode 100644 index 000000000..82f1d2c18 --- /dev/null +++ b/mse/include/alibabacloud/mse/model/ListSecurityGroupResult.h @@ -0,0 +1,66 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_MSE_MODEL_LISTSECURITYGROUPRESULT_H_ +#define ALIBABACLOUD_MSE_MODEL_LISTSECURITYGROUPRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Mse + { + namespace Model + { + class ALIBABACLOUD_MSE_EXPORT ListSecurityGroupResult : public ServiceResult + { + public: + struct Sgs + { + std::string securityGroupName; + std::string vpcId; + std::string securityGroupId; + std::string securityGroupType; + }; + + + ListSecurityGroupResult(); + explicit ListSecurityGroupResult(const std::string &payload); + ~ListSecurityGroupResult(); + std::string getMessage()const; + int getHttpStatusCode()const; + std::vector getData()const; + int getCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + int httpStatusCode_; + std::vector data_; + int code_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_MSE_MODEL_LISTSECURITYGROUPRESULT_H_ \ No newline at end of file diff --git a/mse/include/alibabacloud/mse/model/ListSecurityGroupRuleRequest.h b/mse/include/alibabacloud/mse/model/ListSecurityGroupRuleRequest.h new file mode 100644 index 000000000..4136ddbeb --- /dev/null +++ b/mse/include/alibabacloud/mse/model/ListSecurityGroupRuleRequest.h @@ -0,0 +1,45 @@ +/* + * 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_MSE_MODEL_LISTSECURITYGROUPRULEREQUEST_H_ +#define ALIBABACLOUD_MSE_MODEL_LISTSECURITYGROUPRULEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Mse { +namespace Model { +class ALIBABACLOUD_MSE_EXPORT ListSecurityGroupRuleRequest : public RpcServiceRequest { +public: + ListSecurityGroupRuleRequest(); + ~ListSecurityGroupRuleRequest(); + std::string getGatewayUniqueId() const; + void setGatewayUniqueId(const std::string &gatewayUniqueId); + std::string getAcceptLanguage() const; + void setAcceptLanguage(const std::string &acceptLanguage); + +private: + std::string gatewayUniqueId_; + std::string acceptLanguage_; +}; +} // namespace Model +} // namespace Mse +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_MSE_MODEL_LISTSECURITYGROUPRULEREQUEST_H_ diff --git a/mse/include/alibabacloud/mse/model/ListSecurityGroupRuleResult.h b/mse/include/alibabacloud/mse/model/ListSecurityGroupRuleResult.h new file mode 100644 index 000000000..8c74756d6 --- /dev/null +++ b/mse/include/alibabacloud/mse/model/ListSecurityGroupRuleResult.h @@ -0,0 +1,71 @@ +/* + * 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_MSE_MODEL_LISTSECURITYGROUPRULERESULT_H_ +#define ALIBABACLOUD_MSE_MODEL_LISTSECURITYGROUPRULERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Mse + { + namespace Model + { + class ALIBABACLOUD_MSE_EXPORT ListSecurityGroupRuleResult : public ServiceResult + { + public: + struct Rules + { + std::string gatewayUniqueId; + std::string portRange; + std::string gmtCreate; + std::string description; + std::string securityGroupId; + std::string gmtModified; + std::string ipProtocol; + std::string id; + long gatewayId; + }; + + + ListSecurityGroupRuleResult(); + explicit ListSecurityGroupRuleResult(const std::string &payload); + ~ListSecurityGroupRuleResult(); + std::string getMessage()const; + int getHttpStatusCode()const; + std::vector getData()const; + int getCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + int httpStatusCode_; + std::vector data_; + int code_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_MSE_MODEL_LISTSECURITYGROUPRULERESULT_H_ \ No newline at end of file diff --git a/mse/include/alibabacloud/mse/model/ListServiceSourceResult.h b/mse/include/alibabacloud/mse/model/ListServiceSourceResult.h index eeb76a7a8..5c64dafde 100644 --- a/mse/include/alibabacloud/mse/model/ListServiceSourceResult.h +++ b/mse/include/alibabacloud/mse/model/ListServiceSourceResult.h @@ -34,8 +34,15 @@ namespace AlibabaCloud public: struct Sources { + struct IngressOptions + { + std::string ingressClass; + std::string watchNamespace; + bool enableIngress; + }; std::string type; std::string gmtCreate; + IngressOptions ingressOptions; std::string sourceUniqueId; std::string address; std::string gmtModified; diff --git a/mse/include/alibabacloud/mse/model/PullServicesRequest.h b/mse/include/alibabacloud/mse/model/PullServicesRequest.h index 1d065034b..81ecad996 100644 --- a/mse/include/alibabacloud/mse/model/PullServicesRequest.h +++ b/mse/include/alibabacloud/mse/model/PullServicesRequest.h @@ -30,8 +30,6 @@ class ALIBABACLOUD_MSE_EXPORT PullServicesRequest : public RpcServiceRequest { public: PullServicesRequest(); ~PullServicesRequest(); - std::string getSourceId() const; - void setSourceId(const std::string &sourceId); std::string getGatewayUniqueId() const; void setGatewayUniqueId(const std::string &gatewayUniqueId); std::string getAcceptLanguage() const; @@ -40,7 +38,6 @@ public: void setSourceType(const std::string &sourceType); private: - std::string sourceId_; std::string gatewayUniqueId_; std::string acceptLanguage_; std::string sourceType_; diff --git a/mse/include/alibabacloud/mse/model/PullServicesResult.h b/mse/include/alibabacloud/mse/model/PullServicesResult.h index 79a5a9024..cb2548b1b 100644 --- a/mse/include/alibabacloud/mse/model/PullServicesResult.h +++ b/mse/include/alibabacloud/mse/model/PullServicesResult.h @@ -44,6 +44,7 @@ namespace AlibabaCloud }; std::string groupName; std::vector services; + std::string namespaceShowName; std::string _namespace; }; diff --git a/mse/include/alibabacloud/mse/model/QueryClusterDetailRequest.h b/mse/include/alibabacloud/mse/model/QueryClusterDetailRequest.h index ad8e13c6a..068c95617 100644 --- a/mse/include/alibabacloud/mse/model/QueryClusterDetailRequest.h +++ b/mse/include/alibabacloud/mse/model/QueryClusterDetailRequest.h @@ -30,6 +30,8 @@ class ALIBABACLOUD_MSE_EXPORT QueryClusterDetailRequest : public RpcServiceReque public: QueryClusterDetailRequest(); ~QueryClusterDetailRequest(); + bool getAclSwitch() const; + void setAclSwitch(bool aclSwitch); std::string getOrderId() const; void setOrderId(const std::string &orderId); std::string getClusterId() const; @@ -40,6 +42,7 @@ public: void setAcceptLanguage(const std::string &acceptLanguage); private: + bool aclSwitch_; std::string orderId_; std::string clusterId_; std::string instanceId_; diff --git a/mse/include/alibabacloud/mse/model/QueryClusterDetailResult.h b/mse/include/alibabacloud/mse/model/QueryClusterDetailResult.h index 41307582c..f3fac85b0 100644 --- a/mse/include/alibabacloud/mse/model/QueryClusterDetailResult.h +++ b/mse/include/alibabacloud/mse/model/QueryClusterDetailResult.h @@ -41,6 +41,7 @@ namespace AlibabaCloud std::string internetIp; std::string creationTimestamp; std::string singleTunnelVip; + std::string zone; std::string ip; std::string healthStatus; }; diff --git a/mse/include/alibabacloud/mse/model/QueryUserVpcRequest.h b/mse/include/alibabacloud/mse/model/QueryUserVpcRequest.h new file mode 100644 index 000000000..08747d5eb --- /dev/null +++ b/mse/include/alibabacloud/mse/model/QueryUserVpcRequest.h @@ -0,0 +1,48 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_MSE_MODEL_QUERYUSERVPCREQUEST_H_ +#define ALIBABACLOUD_MSE_MODEL_QUERYUSERVPCREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Mse { +namespace Model { +class ALIBABACLOUD_MSE_EXPORT QueryUserVpcRequest : public RpcServiceRequest { +public: + QueryUserVpcRequest(); + ~QueryUserVpcRequest(); + std::string getUserId() const; + void setUserId(const std::string &userId); + std::string getAcceptLanguage() const; + void setAcceptLanguage(const std::string &acceptLanguage); + std::string getRegion() const; + void setRegion(const std::string ®ion); + +private: + std::string userId_; + std::string acceptLanguage_; + std::string region_; +}; +} // namespace Model +} // namespace Mse +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_MSE_MODEL_QUERYUSERVPCREQUEST_H_ diff --git a/mse/include/alibabacloud/mse/model/QueryUserVpcResult.h b/mse/include/alibabacloud/mse/model/QueryUserVpcResult.h new file mode 100644 index 000000000..08eb10aee --- /dev/null +++ b/mse/include/alibabacloud/mse/model/QueryUserVpcResult.h @@ -0,0 +1,71 @@ +/* + * 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_MSE_MODEL_QUERYUSERVPCRESULT_H_ +#define ALIBABACLOUD_MSE_MODEL_QUERYUSERVPCRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Mse + { + namespace Model + { + class ALIBABACLOUD_MSE_EXPORT QueryUserVpcResult : public ServiceResult + { + public: + struct Vpcs + { + struct VSwitchListItem + { + std::string zoneId; + std::string vswitchName; + std::string vswitchId; + }; + std::string vpcId; + std::vector vSwitchList; + std::string vpcName; + }; + + + QueryUserVpcResult(); + explicit QueryUserVpcResult(const std::string &payload); + ~QueryUserVpcResult(); + std::string getMessage()const; + int getHttpStatusCode()const; + std::vector getData()const; + int getCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + int httpStatusCode_; + std::vector data_; + int code_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_MSE_MODEL_QUERYUSERVPCRESULT_H_ \ No newline at end of file diff --git a/mse/include/alibabacloud/mse/model/QueryZnodeDetailRequest.h b/mse/include/alibabacloud/mse/model/QueryZnodeDetailRequest.h index d643530ae..bed0631a0 100644 --- a/mse/include/alibabacloud/mse/model/QueryZnodeDetailRequest.h +++ b/mse/include/alibabacloud/mse/model/QueryZnodeDetailRequest.h @@ -34,6 +34,8 @@ public: void setClusterId(const std::string &clusterId); std::string getPath() const; void setPath(const std::string &path); + std::string getInstanceId() const; + void setInstanceId(const std::string &instanceId); std::string getRequestPars() const; void setRequestPars(const std::string &requestPars); std::string getAcceptLanguage() const; @@ -42,6 +44,7 @@ public: private: std::string clusterId_; std::string path_; + std::string instanceId_; std::string requestPars_; std::string acceptLanguage_; }; diff --git a/mse/include/alibabacloud/mse/model/RestartSeataServerRequest.h b/mse/include/alibabacloud/mse/model/RestartSeataServerRequest.h new file mode 100644 index 000000000..ba42014e4 --- /dev/null +++ b/mse/include/alibabacloud/mse/model/RestartSeataServerRequest.h @@ -0,0 +1,45 @@ +/* + * 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_MSE_MODEL_RESTARTSEATASERVERREQUEST_H_ +#define ALIBABACLOUD_MSE_MODEL_RESTARTSEATASERVERREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Mse { +namespace Model { +class ALIBABACLOUD_MSE_EXPORT RestartSeataServerRequest : public RpcServiceRequest { +public: + RestartSeataServerRequest(); + ~RestartSeataServerRequest(); + std::string getAcceptLanguage() const; + void setAcceptLanguage(const std::string &acceptLanguage); + std::string getSeataServerUniqueId() const; + void setSeataServerUniqueId(const std::string &seataServerUniqueId); + +private: + std::string acceptLanguage_; + std::string seataServerUniqueId_; +}; +} // namespace Model +} // namespace Mse +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_MSE_MODEL_RESTARTSEATASERVERREQUEST_H_ diff --git a/mse/include/alibabacloud/mse/model/RestartSeataServerResult.h b/mse/include/alibabacloud/mse/model/RestartSeataServerResult.h new file mode 100644 index 000000000..28e6eb51e --- /dev/null +++ b/mse/include/alibabacloud/mse/model/RestartSeataServerResult.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_MSE_MODEL_RESTARTSEATASERVERRESULT_H_ +#define ALIBABACLOUD_MSE_MODEL_RESTARTSEATASERVERRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Mse + { + namespace Model + { + class ALIBABACLOUD_MSE_EXPORT RestartSeataServerResult : public ServiceResult + { + public: + + + RestartSeataServerResult(); + explicit RestartSeataServerResult(const std::string &payload); + ~RestartSeataServerResult(); + std::string getMessage()const; + int getHttpStatusCode()const; + std::string getData()const; + int getCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + int httpStatusCode_; + std::string data_; + int code_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_MSE_MODEL_RESTARTSEATASERVERRESULT_H_ \ No newline at end of file diff --git a/mse/include/alibabacloud/mse/model/UpdateGatewayOptionRequest.h b/mse/include/alibabacloud/mse/model/UpdateGatewayOptionRequest.h index d9bf65a17..24218ae82 100644 --- a/mse/include/alibabacloud/mse/model/UpdateGatewayOptionRequest.h +++ b/mse/include/alibabacloud/mse/model/UpdateGatewayOptionRequest.h @@ -29,6 +29,7 @@ namespace Model { class ALIBABACLOUD_MSE_EXPORT UpdateGatewayOptionRequest : public RpcServiceRequest { public: struct GatewayOption { + bool enableWaf; bool enableHardwareAcceleration; bool disableHttp2Alpn; struct LogConfigDetails { diff --git a/mse/include/alibabacloud/mse/model/UpdateGatewayOptionResult.h b/mse/include/alibabacloud/mse/model/UpdateGatewayOptionResult.h index 716aa2dba..4560951e6 100644 --- a/mse/include/alibabacloud/mse/model/UpdateGatewayOptionResult.h +++ b/mse/include/alibabacloud/mse/model/UpdateGatewayOptionResult.h @@ -45,6 +45,7 @@ namespace AlibabaCloud std::string projectName; bool logEnabled; }; + bool enableWaf; bool disableHttp2Alpn; TraceDetails traceDetails; LogConfigDetails logConfigDetails; diff --git a/mse/include/alibabacloud/mse/model/UpdateGatewayRouteRequest.h b/mse/include/alibabacloud/mse/model/UpdateGatewayRouteRequest.h index be697c814..0278fa49f 100644 --- a/mse/include/alibabacloud/mse/model/UpdateGatewayRouteRequest.h +++ b/mse/include/alibabacloud/mse/model/UpdateGatewayRouteRequest.h @@ -84,6 +84,8 @@ public: void setGatewayId(long gatewayId); int getRouteOrder() const; void setRouteOrder(int routeOrder); + bool getEnableWaf() const; + void setEnableWaf(bool enableWaf); std::vector getServices() const; void setServices(const std::vector &services); Predicates getPredicates() const; @@ -104,6 +106,7 @@ private: long id_; long gatewayId_; int routeOrder_; + bool enableWaf_; std::vector services_; Predicates predicates_; RedirectJSON redirectJSON_; diff --git a/mse/include/alibabacloud/mse/model/UpdateGatewayRouteWafStatusRequest.h b/mse/include/alibabacloud/mse/model/UpdateGatewayRouteWafStatusRequest.h new file mode 100644 index 000000000..6e48c88ea --- /dev/null +++ b/mse/include/alibabacloud/mse/model/UpdateGatewayRouteWafStatusRequest.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_MSE_MODEL_UPDATEGATEWAYROUTEWAFSTATUSREQUEST_H_ +#define ALIBABACLOUD_MSE_MODEL_UPDATEGATEWAYROUTEWAFSTATUSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Mse { +namespace Model { +class ALIBABACLOUD_MSE_EXPORT UpdateGatewayRouteWafStatusRequest : public RpcServiceRequest { +public: + UpdateGatewayRouteWafStatusRequest(); + ~UpdateGatewayRouteWafStatusRequest(); + bool getEnableWaf() const; + void setEnableWaf(bool enableWaf); + std::string getGatewayUniqueId() const; + void setGatewayUniqueId(const std::string &gatewayUniqueId); + long getRouteId() const; + void setRouteId(long routeId); + std::string getAcceptLanguage() const; + void setAcceptLanguage(const std::string &acceptLanguage); + +private: + bool enableWaf_; + std::string gatewayUniqueId_; + long routeId_; + std::string acceptLanguage_; +}; +} // namespace Model +} // namespace Mse +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_MSE_MODEL_UPDATEGATEWAYROUTEWAFSTATUSREQUEST_H_ diff --git a/mse/include/alibabacloud/mse/model/UpdateGatewayRouteWafStatusResult.h b/mse/include/alibabacloud/mse/model/UpdateGatewayRouteWafStatusResult.h new file mode 100644 index 000000000..9042f55b7 --- /dev/null +++ b/mse/include/alibabacloud/mse/model/UpdateGatewayRouteWafStatusResult.h @@ -0,0 +1,181 @@ +/* + * 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_MSE_MODEL_UPDATEGATEWAYROUTEWAFSTATUSRESULT_H_ +#define ALIBABACLOUD_MSE_MODEL_UPDATEGATEWAYROUTEWAFSTATUSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Mse + { + namespace Model + { + class ALIBABACLOUD_MSE_EXPORT UpdateGatewayRouteWafStatusResult : public ServiceResult + { + public: + struct Data + { + struct RoutePredicates + { + struct PathPredicates + { + std::string path; + std::string type; + bool ignoreCase; + }; + struct HeaderPredicatesItem + { + std::string type; + std::string value; + std::string key; + }; + struct QueryPredicatesItem + { + std::string type; + std::string value; + std::string key; + }; + std::vector headerPredicates; + std::vector methodPredicates; + std::vector queryPredicates; + PathPredicates pathPredicates; + }; + struct HTTPRewrite + { + std::string status; + std::string path; + std::string pathType; + std::string pattern; + std::string substitution; + std::string host; + }; + struct HeaderOp + { + struct HeaderOpItemsItem + { + std::string directionType; + std::string value; + std::string opType; + std::string key; + }; + std::string status; + std::vector headerOpItems; + }; + struct DirectResponse + { + int code; + std::string body; + }; + struct Cors + { + std::string status; + std::string allowOrigins; + bool allowCredentials; + std::string exposeHeaders; + long unitNum; + std::string allowHeaders; + std::string timeUnit; + std::string allowMethods; + }; + struct Timeout + { + std::string status; + int unitNum; + std::string timeUnit; + }; + struct Retry + { + std::string status; + std::vector httpCodes; + int attempts; + std::vector retryOn; + }; + struct Redirect + { + std::string path; + std::string host; + int code; + }; + struct RouteServicesItem + { + std::string groupName; + std::string serviceName; + int percent; + std::string version; + std::string sourceType; + std::string _namespace; + long serviceId; + std::string name; + }; + std::string gmtModified; + std::string destinationType; + HeaderOp headerOp; + std::string name; + std::vector domainIdList; + std::vector domainNameList; + DirectResponse directResponse; + std::string defaultServiceName; + int status; + std::string domainName; + Timeout timeout; + long defaultServiceId; + RoutePredicates routePredicates; + Redirect redirect; + long gatewayId; + Cors cors; + std::string gatewayUniqueId; + std::string services; + std::string gmtCreate; + bool enableWaf; + int routeOrder; + long domainId; + Retry retry; + long id; + HTTPRewrite hTTPRewrite; + std::string predicates; + std::vector routeServices; + }; + + + UpdateGatewayRouteWafStatusResult(); + explicit UpdateGatewayRouteWafStatusResult(const std::string &payload); + ~UpdateGatewayRouteWafStatusResult(); + std::string getMessage()const; + int getHttpStatusCode()const; + Data getData()const; + int getCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + int httpStatusCode_; + Data data_; + int code_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_MSE_MODEL_UPDATEGATEWAYROUTEWAFSTATUSRESULT_H_ \ No newline at end of file diff --git a/mse/include/alibabacloud/mse/model/UpdateGatewayServiceTrafficPolicyRequest.h b/mse/include/alibabacloud/mse/model/UpdateGatewayServiceTrafficPolicyRequest.h new file mode 100644 index 000000000..90d0a732a --- /dev/null +++ b/mse/include/alibabacloud/mse/model/UpdateGatewayServiceTrafficPolicyRequest.h @@ -0,0 +1,78 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_MSE_MODEL_UPDATEGATEWAYSERVICETRAFFICPOLICYREQUEST_H_ +#define ALIBABACLOUD_MSE_MODEL_UPDATEGATEWAYSERVICETRAFFICPOLICYREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Mse { +namespace Model { +class ALIBABACLOUD_MSE_EXPORT UpdateGatewayServiceTrafficPolicyRequest : public RpcServiceRequest { +public: + struct GatewayTrafficPolicy { + struct TlsSetting { + std::string tlsMode; + std::string caCertContent; + std::string certId; + std::string sni; + }; + TlsSetting tlsSetting; + struct LoadBalancerSettings { + std::string loadbalancerType; + struct ConsistentHashLBConfig { + struct HttpCookie { + std::string path; + std::string name; + std::string tTL; + }; + HttpCookie httpCookie; + std::string parameterName; + std::string consistentHashLBType; + }; + ConsistentHashLBConfig consistentHashLBConfig; + }; + LoadBalancerSettings loadBalancerSettings; + }; + UpdateGatewayServiceTrafficPolicyRequest(); + ~UpdateGatewayServiceTrafficPolicyRequest(); + std::string getGatewayUniqueId() const; + void setGatewayUniqueId(const std::string &gatewayUniqueId); + GatewayTrafficPolicy getGatewayTrafficPolicy() const; + void setGatewayTrafficPolicy(const GatewayTrafficPolicy &gatewayTrafficPolicy); + std::string getAcceptLanguage() const; + void setAcceptLanguage(const std::string &acceptLanguage); + long getServiceId() const; + void setServiceId(long serviceId); + long getGatewayId() const; + void setGatewayId(long gatewayId); + +private: + std::string gatewayUniqueId_; + GatewayTrafficPolicy gatewayTrafficPolicy_; + std::string acceptLanguage_; + long serviceId_; + long gatewayId_; +}; +} // namespace Model +} // namespace Mse +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_MSE_MODEL_UPDATEGATEWAYSERVICETRAFFICPOLICYREQUEST_H_ diff --git a/mse/include/alibabacloud/mse/model/UpdateGatewayServiceTrafficPolicyResult.h b/mse/include/alibabacloud/mse/model/UpdateGatewayServiceTrafficPolicyResult.h new file mode 100644 index 000000000..4440b5281 --- /dev/null +++ b/mse/include/alibabacloud/mse/model/UpdateGatewayServiceTrafficPolicyResult.h @@ -0,0 +1,99 @@ +/* + * 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_MSE_MODEL_UPDATEGATEWAYSERVICETRAFFICPOLICYRESULT_H_ +#define ALIBABACLOUD_MSE_MODEL_UPDATEGATEWAYSERVICETRAFFICPOLICYRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Mse + { + namespace Model + { + class ALIBABACLOUD_MSE_EXPORT UpdateGatewayServiceTrafficPolicyResult : public ServiceResult + { + public: + struct Data + { + struct GatewayTrafficPolicy + { + struct TlsSetting + { + std::string certId; + std::string caCertContent; + std::string tlsMode; + std::string sni; + }; + struct LoadBalancerSettings + { + struct ConsistentHashLBConfig + { + struct HttpCookie + { + std::string path; + std::string tTL; + std::string name; + }; + std::string consistentHashLBType; + std::string parameterName; + HttpCookie httpCookie; + }; + ConsistentHashLBConfig consistentHashLBConfig; + std::string loadbalancerType; + }; + TlsSetting tlsSetting; + LoadBalancerSettings loadBalancerSettings; + }; + std::string groupName; + std::string gatewayUniqueId; + std::string sourceType; + std::string metaInfo; + std::string _namespace; + long id; + GatewayTrafficPolicy gatewayTrafficPolicy; + std::string name; + }; + + + UpdateGatewayServiceTrafficPolicyResult(); + explicit UpdateGatewayServiceTrafficPolicyResult(const std::string &payload); + ~UpdateGatewayServiceTrafficPolicyResult(); + std::string getMessage()const; + int getHttpStatusCode()const; + Data getData()const; + int getCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + int httpStatusCode_; + Data data_; + int code_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_MSE_MODEL_UPDATEGATEWAYSERVICETRAFFICPOLICYRESULT_H_ \ No newline at end of file diff --git a/mse/include/alibabacloud/mse/model/UpdateMessageQueueRouteRequest.h b/mse/include/alibabacloud/mse/model/UpdateMessageQueueRouteRequest.h new file mode 100644 index 000000000..d1f57b041 --- /dev/null +++ b/mse/include/alibabacloud/mse/model/UpdateMessageQueueRouteRequest.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_MSE_MODEL_UPDATEMESSAGEQUEUEROUTEREQUEST_H_ +#define ALIBABACLOUD_MSE_MODEL_UPDATEMESSAGEQUEUEROUTEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Mse { +namespace Model { +class ALIBABACLOUD_MSE_EXPORT UpdateMessageQueueRouteRequest : public RpcServiceRequest { +public: + UpdateMessageQueueRouteRequest(); + ~UpdateMessageQueueRouteRequest(); + std::vector getTags() const; + void setTags(const std::vector &tags); + bool getEnable() const; + void setEnable(bool enable); + std::string getAppId() const; + void setAppId(const std::string &appId); + std::string getAcceptLanguage() const; + void setAcceptLanguage(const std::string &acceptLanguage); + std::string getRegion() const; + void setRegion(const std::string ®ion); + +private: + std::vector tags_; + bool enable_; + std::string appId_; + std::string acceptLanguage_; + std::string region_; +}; +} // namespace Model +} // namespace Mse +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_MSE_MODEL_UPDATEMESSAGEQUEUEROUTEREQUEST_H_ diff --git a/mse/include/alibabacloud/mse/model/UpdateMessageQueueRouteResult.h b/mse/include/alibabacloud/mse/model/UpdateMessageQueueRouteResult.h new file mode 100644 index 000000000..fb690861d --- /dev/null +++ b/mse/include/alibabacloud/mse/model/UpdateMessageQueueRouteResult.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_MSE_MODEL_UPDATEMESSAGEQUEUEROUTERESULT_H_ +#define ALIBABACLOUD_MSE_MODEL_UPDATEMESSAGEQUEUEROUTERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Mse + { + namespace Model + { + class ALIBABACLOUD_MSE_EXPORT UpdateMessageQueueRouteResult : public ServiceResult + { + public: + + + UpdateMessageQueueRouteResult(); + explicit UpdateMessageQueueRouteResult(const std::string &payload); + ~UpdateMessageQueueRouteResult(); + std::string getMessage()const; + int getHttpStatusCode()const; + std::string getData()const; + int getCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + int httpStatusCode_; + std::string data_; + int code_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_MSE_MODEL_UPDATEMESSAGEQUEUEROUTERESULT_H_ \ No newline at end of file diff --git a/mse/src/MseClient.cc b/mse/src/MseClient.cc index 6afbea1a9..a685fdad9 100644 --- a/mse/src/MseClient.cc +++ b/mse/src/MseClient.cc @@ -31,21 +31,21 @@ MseClient::MseClient(const Credentials &credentials, const ClientConfiguration & RpcServiceClient(SERVICE_NAME, std::make_shared(credentials), configuration) { auto locationClient = std::make_shared(credentials, configuration); - endpointProvider_ = std::make_shared(locationClient, configuration.regionId(), SERVICE_NAME, ""); + endpointProvider_ = std::make_shared(locationClient, configuration.regionId(), SERVICE_NAME, "mse"); } MseClient::MseClient(const std::shared_ptr& credentialsProvider, const ClientConfiguration & configuration) : RpcServiceClient(SERVICE_NAME, credentialsProvider, configuration) { auto locationClient = std::make_shared(credentialsProvider, configuration); - endpointProvider_ = std::make_shared(locationClient, configuration.regionId(), SERVICE_NAME, ""); + endpointProvider_ = std::make_shared(locationClient, configuration.regionId(), SERVICE_NAME, "mse"); } MseClient::MseClient(const std::string & accessKeyId, const std::string & accessKeySecret, const ClientConfiguration & configuration) : RpcServiceClient(SERVICE_NAME, std::make_shared(accessKeyId, accessKeySecret), configuration) { auto locationClient = std::make_shared(accessKeyId, accessKeySecret, configuration); - endpointProvider_ = std::make_shared(locationClient, configuration.regionId(), SERVICE_NAME, ""); + endpointProvider_ = std::make_shared(locationClient, configuration.regionId(), SERVICE_NAME, "mse"); } MseClient::~MseClient() @@ -375,6 +375,78 @@ MseClient::AddSSLCertOutcomeCallable MseClient::addSSLCertCallable(const AddSSLC return task->get_future(); } +MseClient::AddSeataServerOutcome MseClient::addSeataServer(const AddSeataServerRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return AddSeataServerOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return AddSeataServerOutcome(AddSeataServerResult(outcome.result())); + else + return AddSeataServerOutcome(outcome.error()); +} + +void MseClient::addSeataServerAsync(const AddSeataServerRequest& request, const AddSeataServerAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, addSeataServer(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +MseClient::AddSeataServerOutcomeCallable MseClient::addSeataServerCallable(const AddSeataServerRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->addSeataServer(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +MseClient::AddSecurityGroupRuleOutcome MseClient::addSecurityGroupRule(const AddSecurityGroupRuleRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return AddSecurityGroupRuleOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return AddSecurityGroupRuleOutcome(AddSecurityGroupRuleResult(outcome.result())); + else + return AddSecurityGroupRuleOutcome(outcome.error()); +} + +void MseClient::addSecurityGroupRuleAsync(const AddSecurityGroupRuleRequest& request, const AddSecurityGroupRuleAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, addSecurityGroupRule(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +MseClient::AddSecurityGroupRuleOutcomeCallable MseClient::addSecurityGroupRuleCallable(const AddSecurityGroupRuleRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->addSecurityGroupRule(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + MseClient::AddServiceSourceOutcome MseClient::addServiceSource(const AddServiceSourceRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -411,6 +483,42 @@ MseClient::AddServiceSourceOutcomeCallable MseClient::addServiceSourceCallable(c return task->get_future(); } +MseClient::AddTestOutcome MseClient::addTest(const AddTestRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return AddTestOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return AddTestOutcome(AddTestResult(outcome.result())); + else + return AddTestOutcome(outcome.error()); +} + +void MseClient::addTestAsync(const AddTestRequest& request, const AddTestAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, addTest(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +MseClient::AddTestOutcomeCallable MseClient::addTestCallable(const AddTestRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->addTest(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + MseClient::ApplyGatewayRouteOutcome MseClient::applyGatewayRoute(const ApplyGatewayRouteRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -519,42 +627,6 @@ MseClient::CloneNacosConfigOutcomeCallable MseClient::cloneNacosConfigCallable(c return task->get_future(); } -MseClient::CreateAlarmRuleOutcome MseClient::createAlarmRule(const CreateAlarmRuleRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return CreateAlarmRuleOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return CreateAlarmRuleOutcome(CreateAlarmRuleResult(outcome.result())); - else - return CreateAlarmRuleOutcome(outcome.error()); -} - -void MseClient::createAlarmRuleAsync(const CreateAlarmRuleRequest& request, const CreateAlarmRuleAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, createAlarmRule(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -MseClient::CreateAlarmRuleOutcomeCallable MseClient::createAlarmRuleCallable(const CreateAlarmRuleRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->createAlarmRule(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - MseClient::CreateApplicationOutcome MseClient::createApplication(const CreateApplicationRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -843,6 +915,42 @@ MseClient::CreateOrUpdateSwimmingLaneGroupOutcomeCallable MseClient::createOrUpd return task->get_future(); } +MseClient::CreateVGroupOutcome MseClient::createVGroup(const CreateVGroupRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return CreateVGroupOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return CreateVGroupOutcome(CreateVGroupResult(outcome.result())); + else + return CreateVGroupOutcome(outcome.error()); +} + +void MseClient::createVGroupAsync(const CreateVGroupRequest& request, const CreateVGroupAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, createVGroup(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +MseClient::CreateVGroupOutcomeCallable MseClient::createVGroupCallable(const CreateVGroupRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->createVGroup(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + MseClient::CreateZnodeOutcome MseClient::createZnode(const CreateZnodeRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -879,42 +987,6 @@ MseClient::CreateZnodeOutcomeCallable MseClient::createZnodeCallable(const Creat return task->get_future(); } -MseClient::DeleteAlarmRuleOutcome MseClient::deleteAlarmRule(const DeleteAlarmRuleRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return DeleteAlarmRuleOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return DeleteAlarmRuleOutcome(DeleteAlarmRuleResult(outcome.result())); - else - return DeleteAlarmRuleOutcome(outcome.error()); -} - -void MseClient::deleteAlarmRuleAsync(const DeleteAlarmRuleRequest& request, const DeleteAlarmRuleAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, deleteAlarmRule(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -MseClient::DeleteAlarmRuleOutcomeCallable MseClient::deleteAlarmRuleCallable(const DeleteAlarmRuleRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->deleteAlarmRule(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - MseClient::DeleteAuthResourceOutcome MseClient::deleteAuthResource(const DeleteAuthResourceRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -1131,6 +1203,42 @@ MseClient::DeleteGatewayRouteOutcomeCallable MseClient::deleteGatewayRouteCallab return task->get_future(); } +MseClient::DeleteGatewayServiceOutcome MseClient::deleteGatewayService(const DeleteGatewayServiceRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DeleteGatewayServiceOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DeleteGatewayServiceOutcome(DeleteGatewayServiceResult(outcome.result())); + else + return DeleteGatewayServiceOutcome(outcome.error()); +} + +void MseClient::deleteGatewayServiceAsync(const DeleteGatewayServiceRequest& request, const DeleteGatewayServiceAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, deleteGatewayService(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +MseClient::DeleteGatewayServiceOutcomeCallable MseClient::deleteGatewayServiceCallable(const DeleteGatewayServiceRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->deleteGatewayService(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + MseClient::DeleteGatewayServiceVersionOutcome MseClient::deleteGatewayServiceVersion(const DeleteGatewayServiceVersionRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -1347,6 +1455,78 @@ MseClient::DeleteNacosServiceOutcomeCallable MseClient::deleteNacosServiceCallab return task->get_future(); } +MseClient::DeleteSeataServerOutcome MseClient::deleteSeataServer(const DeleteSeataServerRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DeleteSeataServerOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DeleteSeataServerOutcome(DeleteSeataServerResult(outcome.result())); + else + return DeleteSeataServerOutcome(outcome.error()); +} + +void MseClient::deleteSeataServerAsync(const DeleteSeataServerRequest& request, const DeleteSeataServerAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, deleteSeataServer(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +MseClient::DeleteSeataServerOutcomeCallable MseClient::deleteSeataServerCallable(const DeleteSeataServerRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->deleteSeataServer(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +MseClient::DeleteSecurityGroupRuleOutcome MseClient::deleteSecurityGroupRule(const DeleteSecurityGroupRuleRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DeleteSecurityGroupRuleOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DeleteSecurityGroupRuleOutcome(DeleteSecurityGroupRuleResult(outcome.result())); + else + return DeleteSecurityGroupRuleOutcome(outcome.error()); +} + +void MseClient::deleteSecurityGroupRuleAsync(const DeleteSecurityGroupRuleRequest& request, const DeleteSecurityGroupRuleAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, deleteSecurityGroupRule(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +MseClient::DeleteSecurityGroupRuleOutcomeCallable MseClient::deleteSecurityGroupRuleCallable(const DeleteSecurityGroupRuleRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->deleteSecurityGroupRule(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + MseClient::DeleteServiceSourceOutcome MseClient::deleteServiceSource(const DeleteServiceSourceRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -1455,6 +1635,42 @@ MseClient::DeleteSwimmingLaneGroupOutcomeCallable MseClient::deleteSwimmingLaneG return task->get_future(); } +MseClient::DeleteVGroupOutcome MseClient::deleteVGroup(const DeleteVGroupRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DeleteVGroupOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DeleteVGroupOutcome(DeleteVGroupResult(outcome.result())); + else + return DeleteVGroupOutcome(outcome.error()); +} + +void MseClient::deleteVGroupAsync(const DeleteVGroupRequest& request, const DeleteVGroupAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, deleteVGroup(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +MseClient::DeleteVGroupOutcomeCallable MseClient::deleteVGroupCallable(const DeleteVGroupRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->deleteVGroup(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + MseClient::DeleteZnodeOutcome MseClient::deleteZnode(const DeleteZnodeRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -1527,6 +1743,78 @@ MseClient::ExportNacosConfigOutcomeCallable MseClient::exportNacosConfigCallable return task->get_future(); } +MseClient::GetAppMessageQueueRouteOutcome MseClient::getAppMessageQueueRoute(const GetAppMessageQueueRouteRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return GetAppMessageQueueRouteOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return GetAppMessageQueueRouteOutcome(GetAppMessageQueueRouteResult(outcome.result())); + else + return GetAppMessageQueueRouteOutcome(outcome.error()); +} + +void MseClient::getAppMessageQueueRouteAsync(const GetAppMessageQueueRouteRequest& request, const GetAppMessageQueueRouteAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, getAppMessageQueueRoute(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +MseClient::GetAppMessageQueueRouteOutcomeCallable MseClient::getAppMessageQueueRouteCallable(const GetAppMessageQueueRouteRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->getAppMessageQueueRoute(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +MseClient::GetApplicationListOutcome MseClient::getApplicationList(const GetApplicationListRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return GetApplicationListOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return GetApplicationListOutcome(GetApplicationListResult(outcome.result())); + else + return GetApplicationListOutcome(outcome.error()); +} + +void MseClient::getApplicationListAsync(const GetApplicationListRequest& request, const GetApplicationListAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, getApplicationList(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +MseClient::GetApplicationListOutcomeCallable MseClient::getApplicationListCallable(const GetApplicationListRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->getApplicationList(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + MseClient::GetBlackWhiteListOutcome MseClient::getBlackWhiteList(const GetBlackWhiteListRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -1563,6 +1851,42 @@ MseClient::GetBlackWhiteListOutcomeCallable MseClient::getBlackWhiteListCallable return task->get_future(); } +MseClient::GetDashBoardUrlOutcome MseClient::getDashBoardUrl(const GetDashBoardUrlRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return GetDashBoardUrlOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return GetDashBoardUrlOutcome(GetDashBoardUrlResult(outcome.result())); + else + return GetDashBoardUrlOutcome(outcome.error()); +} + +void MseClient::getDashBoardUrlAsync(const GetDashBoardUrlRequest& request, const GetDashBoardUrlAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, getDashBoardUrl(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +MseClient::GetDashBoardUrlOutcomeCallable MseClient::getDashBoardUrlCallable(const GetDashBoardUrlRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->getDashBoardUrl(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + MseClient::GetEngineNamepaceOutcome MseClient::getEngineNamepace(const GetEngineNamepaceRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -2283,150 +2607,6 @@ MseClient::ImportServicesOutcomeCallable MseClient::importServicesCallable(const return task->get_future(); } -MseClient::ListAlarmContactGroupsOutcome MseClient::listAlarmContactGroups(const ListAlarmContactGroupsRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return ListAlarmContactGroupsOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return ListAlarmContactGroupsOutcome(ListAlarmContactGroupsResult(outcome.result())); - else - return ListAlarmContactGroupsOutcome(outcome.error()); -} - -void MseClient::listAlarmContactGroupsAsync(const ListAlarmContactGroupsRequest& request, const ListAlarmContactGroupsAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, listAlarmContactGroups(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -MseClient::ListAlarmContactGroupsOutcomeCallable MseClient::listAlarmContactGroupsCallable(const ListAlarmContactGroupsRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->listAlarmContactGroups(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -MseClient::ListAlarmHistoriesOutcome MseClient::listAlarmHistories(const ListAlarmHistoriesRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return ListAlarmHistoriesOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return ListAlarmHistoriesOutcome(ListAlarmHistoriesResult(outcome.result())); - else - return ListAlarmHistoriesOutcome(outcome.error()); -} - -void MseClient::listAlarmHistoriesAsync(const ListAlarmHistoriesRequest& request, const ListAlarmHistoriesAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, listAlarmHistories(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -MseClient::ListAlarmHistoriesOutcomeCallable MseClient::listAlarmHistoriesCallable(const ListAlarmHistoriesRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->listAlarmHistories(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -MseClient::ListAlarmItemsOutcome MseClient::listAlarmItems(const ListAlarmItemsRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return ListAlarmItemsOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return ListAlarmItemsOutcome(ListAlarmItemsResult(outcome.result())); - else - return ListAlarmItemsOutcome(outcome.error()); -} - -void MseClient::listAlarmItemsAsync(const ListAlarmItemsRequest& request, const ListAlarmItemsAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, listAlarmItems(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -MseClient::ListAlarmItemsOutcomeCallable MseClient::listAlarmItemsCallable(const ListAlarmItemsRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->listAlarmItems(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -MseClient::ListAlarmRulesOutcome MseClient::listAlarmRules(const ListAlarmRulesRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return ListAlarmRulesOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return ListAlarmRulesOutcome(ListAlarmRulesResult(outcome.result())); - else - return ListAlarmRulesOutcome(outcome.error()); -} - -void MseClient::listAlarmRulesAsync(const ListAlarmRulesRequest& request, const ListAlarmRulesAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, listAlarmRules(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -MseClient::ListAlarmRulesOutcomeCallable MseClient::listAlarmRulesCallable(const ListAlarmRulesRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->listAlarmRules(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - MseClient::ListAnsInstancesOutcome MseClient::listAnsInstances(const ListAnsInstancesRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -2643,6 +2823,42 @@ MseClient::ListClusterConnectionTypesOutcomeCallable MseClient::listClusterConne return task->get_future(); } +MseClient::ListClusterDetailFeatureOutcome MseClient::listClusterDetailFeature(const ListClusterDetailFeatureRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ListClusterDetailFeatureOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ListClusterDetailFeatureOutcome(ListClusterDetailFeatureResult(outcome.result())); + else + return ListClusterDetailFeatureOutcome(outcome.error()); +} + +void MseClient::listClusterDetailFeatureAsync(const ListClusterDetailFeatureRequest& request, const ListClusterDetailFeatureAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, listClusterDetailFeature(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +MseClient::ListClusterDetailFeatureOutcomeCallable MseClient::listClusterDetailFeatureCallable(const ListClusterDetailFeatureRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->listClusterDetailFeature(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + MseClient::ListClusterTypesOutcome MseClient::listClusterTypes(const ListClusterTypesRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -3039,6 +3255,42 @@ MseClient::ListGatewaySlbOutcomeCallable MseClient::listGatewaySlbCallable(const return task->get_future(); } +MseClient::ListInstancesOutcome MseClient::listInstances(const ListInstancesRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ListInstancesOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ListInstancesOutcome(ListInstancesResult(outcome.result())); + else + return ListInstancesOutcome(outcome.error()); +} + +void MseClient::listInstancesAsync(const ListInstancesRequest& request, const ListInstancesAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, listInstances(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +MseClient::ListInstancesOutcomeCallable MseClient::listInstancesCallable(const ListInstancesRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->listInstances(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + MseClient::ListListenersByConfigOutcome MseClient::listListenersByConfig(const ListListenersByConfigRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -3219,6 +3471,78 @@ MseClient::ListSSLCertOutcomeCallable MseClient::listSSLCertCallable(const ListS return task->get_future(); } +MseClient::ListSecurityGroupOutcome MseClient::listSecurityGroup(const ListSecurityGroupRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ListSecurityGroupOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ListSecurityGroupOutcome(ListSecurityGroupResult(outcome.result())); + else + return ListSecurityGroupOutcome(outcome.error()); +} + +void MseClient::listSecurityGroupAsync(const ListSecurityGroupRequest& request, const ListSecurityGroupAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, listSecurityGroup(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +MseClient::ListSecurityGroupOutcomeCallable MseClient::listSecurityGroupCallable(const ListSecurityGroupRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->listSecurityGroup(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +MseClient::ListSecurityGroupRuleOutcome MseClient::listSecurityGroupRule(const ListSecurityGroupRuleRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ListSecurityGroupRuleOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ListSecurityGroupRuleOutcome(ListSecurityGroupRuleResult(outcome.result())); + else + return ListSecurityGroupRuleOutcome(outcome.error()); +} + +void MseClient::listSecurityGroupRuleAsync(const ListSecurityGroupRuleRequest& request, const ListSecurityGroupRuleAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, listSecurityGroupRule(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +MseClient::ListSecurityGroupRuleOutcomeCallable MseClient::listSecurityGroupRuleCallable(const ListSecurityGroupRuleRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->listSecurityGroupRule(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + MseClient::ListServiceSourceOutcome MseClient::listServiceSource(const ListServiceSourceRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -3867,6 +4191,42 @@ MseClient::QuerySwimmingLaneByIdOutcomeCallable MseClient::querySwimmingLaneById return task->get_future(); } +MseClient::QueryUserVpcOutcome MseClient::queryUserVpc(const QueryUserVpcRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return QueryUserVpcOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return QueryUserVpcOutcome(QueryUserVpcResult(outcome.result())); + else + return QueryUserVpcOutcome(outcome.error()); +} + +void MseClient::queryUserVpcAsync(const QueryUserVpcRequest& request, const QueryUserVpcAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, queryUserVpc(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +MseClient::QueryUserVpcOutcomeCallable MseClient::queryUserVpcCallable(const QueryUserVpcRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->queryUserVpc(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + MseClient::QueryZnodeDetailOutcome MseClient::queryZnodeDetail(const QueryZnodeDetailRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -3939,6 +4299,42 @@ MseClient::RestartClusterOutcomeCallable MseClient::restartClusterCallable(const return task->get_future(); } +MseClient::RestartSeataServerOutcome MseClient::restartSeataServer(const RestartSeataServerRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return RestartSeataServerOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return RestartSeataServerOutcome(RestartSeataServerResult(outcome.result())); + else + return RestartSeataServerOutcome(outcome.error()); +} + +void MseClient::restartSeataServerAsync(const RestartSeataServerRequest& request, const RestartSeataServerAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, restartSeataServer(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +MseClient::RestartSeataServerOutcomeCallable MseClient::restartSeataServerCallable(const RestartSeataServerRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->restartSeataServer(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + MseClient::RetryClusterOutcome MseClient::retryCluster(const RetryClusterRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -3975,42 +4371,6 @@ MseClient::RetryClusterOutcomeCallable MseClient::retryClusterCallable(const Ret return task->get_future(); } -MseClient::ScalingClusterOutcome MseClient::scalingCluster(const ScalingClusterRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return ScalingClusterOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return ScalingClusterOutcome(ScalingClusterResult(outcome.result())); - else - return ScalingClusterOutcome(outcome.error()); -} - -void MseClient::scalingClusterAsync(const ScalingClusterRequest& request, const ScalingClusterAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, scalingCluster(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -MseClient::ScalingClusterOutcomeCallable MseClient::scalingClusterCallable(const ScalingClusterRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->scalingCluster(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - MseClient::SelectGatewaySlbOutcome MseClient::selectGatewaySlb(const SelectGatewaySlbRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -4551,6 +4911,78 @@ MseClient::UpdateGatewayRouteTimeoutOutcomeCallable MseClient::updateGatewayRout return task->get_future(); } +MseClient::UpdateGatewayRouteWafStatusOutcome MseClient::updateGatewayRouteWafStatus(const UpdateGatewayRouteWafStatusRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return UpdateGatewayRouteWafStatusOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return UpdateGatewayRouteWafStatusOutcome(UpdateGatewayRouteWafStatusResult(outcome.result())); + else + return UpdateGatewayRouteWafStatusOutcome(outcome.error()); +} + +void MseClient::updateGatewayRouteWafStatusAsync(const UpdateGatewayRouteWafStatusRequest& request, const UpdateGatewayRouteWafStatusAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, updateGatewayRouteWafStatus(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +MseClient::UpdateGatewayRouteWafStatusOutcomeCallable MseClient::updateGatewayRouteWafStatusCallable(const UpdateGatewayRouteWafStatusRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->updateGatewayRouteWafStatus(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +MseClient::UpdateGatewayServiceTrafficPolicyOutcome MseClient::updateGatewayServiceTrafficPolicy(const UpdateGatewayServiceTrafficPolicyRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return UpdateGatewayServiceTrafficPolicyOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return UpdateGatewayServiceTrafficPolicyOutcome(UpdateGatewayServiceTrafficPolicyResult(outcome.result())); + else + return UpdateGatewayServiceTrafficPolicyOutcome(outcome.error()); +} + +void MseClient::updateGatewayServiceTrafficPolicyAsync(const UpdateGatewayServiceTrafficPolicyRequest& request, const UpdateGatewayServiceTrafficPolicyAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, updateGatewayServiceTrafficPolicy(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +MseClient::UpdateGatewayServiceTrafficPolicyOutcomeCallable MseClient::updateGatewayServiceTrafficPolicyCallable(const UpdateGatewayServiceTrafficPolicyRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->updateGatewayServiceTrafficPolicy(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + MseClient::UpdateGatewayServiceVersionOutcome MseClient::updateGatewayServiceVersion(const UpdateGatewayServiceVersionRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -4623,6 +5055,42 @@ MseClient::UpdateImageOutcomeCallable MseClient::updateImageCallable(const Updat return task->get_future(); } +MseClient::UpdateMessageQueueRouteOutcome MseClient::updateMessageQueueRoute(const UpdateMessageQueueRouteRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return UpdateMessageQueueRouteOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return UpdateMessageQueueRouteOutcome(UpdateMessageQueueRouteResult(outcome.result())); + else + return UpdateMessageQueueRouteOutcome(outcome.error()); +} + +void MseClient::updateMessageQueueRouteAsync(const UpdateMessageQueueRouteRequest& request, const UpdateMessageQueueRouteAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, updateMessageQueueRoute(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +MseClient::UpdateMessageQueueRouteOutcomeCallable MseClient::updateMessageQueueRouteCallable(const UpdateMessageQueueRouteRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->updateMessageQueueRoute(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + MseClient::UpdateNacosClusterOutcome MseClient::updateNacosCluster(const UpdateNacosClusterRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); diff --git a/mse/src/model/AddGatewayRouteRequest.cc b/mse/src/model/AddGatewayRouteRequest.cc index c7ee4b5ca..95c947aab 100644 --- a/mse/src/model/AddGatewayRouteRequest.cc +++ b/mse/src/model/AddGatewayRouteRequest.cc @@ -79,6 +79,15 @@ void AddGatewayRouteRequest::setRouteOrder(int routeOrder) { setParameter(std::string("RouteOrder"), std::to_string(routeOrder)); } +bool AddGatewayRouteRequest::getEnableWaf() const { + return enableWaf_; +} + +void AddGatewayRouteRequest::setEnableWaf(bool enableWaf) { + enableWaf_ = enableWaf; + setParameter(std::string("EnableWaf"), enableWaf ? "true" : "false"); +} + std::vector AddGatewayRouteRequest::getServices() const { return services_; } diff --git a/mse/src/model/AddSSLCertRequest.cc b/mse/src/model/AddSSLCertRequest.cc index 9f7c72cf0..7cc438580 100644 --- a/mse/src/model/AddSSLCertRequest.cc +++ b/mse/src/model/AddSSLCertRequest.cc @@ -20,7 +20,7 @@ using AlibabaCloud::Mse::Model::AddSSLCertRequest; AddSSLCertRequest::AddSSLCertRequest() : RpcServiceRequest("mse", "2019-05-31", "AddSSLCert") { - setMethod(HttpRequest::Method::Get); + setMethod(HttpRequest::Method::Post); } AddSSLCertRequest::~AddSSLCertRequest() {} diff --git a/mse/src/model/AddSeataServerRequest.cc b/mse/src/model/AddSeataServerRequest.cc new file mode 100644 index 000000000..853c49c43 --- /dev/null +++ b/mse/src/model/AddSeataServerRequest.cc @@ -0,0 +1,99 @@ +/* + * 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::Mse::Model::AddSeataServerRequest; + +AddSeataServerRequest::AddSeataServerRequest() + : RpcServiceRequest("mse", "2019-05-31", "AddSeataServer") { + setMethod(HttpRequest::Method::Post); +} + +AddSeataServerRequest::~AddSeataServerRequest() {} + +int AddSeataServerRequest::getReplica() const { + return replica_; +} + +void AddSeataServerRequest::setReplica(int replica) { + replica_ = replica; + setParameter(std::string("Replica"), std::to_string(replica)); +} + +std::string AddSeataServerRequest::getPrimaryUser() const { + return primaryUser_; +} + +void AddSeataServerRequest::setPrimaryUser(const std::string &primaryUser) { + primaryUser_ = primaryUser; + setParameter(std::string("PrimaryUser"), primaryUser); +} + +std::string AddSeataServerRequest::getVpc() const { + return vpc_; +} + +void AddSeataServerRequest::setVpc(const std::string &vpc) { + vpc_ = vpc; + setParameter(std::string("Vpc"), vpc); +} + +std::string AddSeataServerRequest::getVswitch() const { + return vswitch_; +} + +void AddSeataServerRequest::setVswitch(const std::string &vswitch) { + vswitch_ = vswitch; + setParameter(std::string("Vswitch"), vswitch); +} + +std::string AddSeataServerRequest::getName() const { + return name_; +} + +void AddSeataServerRequest::setName(const std::string &name) { + name_ = name; + setParameter(std::string("Name"), name); +} + +std::string AddSeataServerRequest::getAcceptLanguage() const { + return acceptLanguage_; +} + +void AddSeataServerRequest::setAcceptLanguage(const std::string &acceptLanguage) { + acceptLanguage_ = acceptLanguage; + setParameter(std::string("AcceptLanguage"), acceptLanguage); +} + +std::string AddSeataServerRequest::getZoneId() const { + return zoneId_; +} + +void AddSeataServerRequest::setZoneId(const std::string &zoneId) { + zoneId_ = zoneId; + setParameter(std::string("ZoneId"), zoneId); +} + +std::string AddSeataServerRequest::getRegion() const { + return region_; +} + +void AddSeataServerRequest::setRegion(const std::string ®ion) { + region_ = region; + setParameter(std::string("Region"), region); +} + diff --git a/mse/src/model/AddSeataServerResult.cc b/mse/src/model/AddSeataServerResult.cc new file mode 100644 index 000000000..9c9f3b2a6 --- /dev/null +++ b/mse/src/model/AddSeataServerResult.cc @@ -0,0 +1,79 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Mse; +using namespace AlibabaCloud::Mse::Model; + +AddSeataServerResult::AddSeataServerResult() : + ServiceResult() +{} + +AddSeataServerResult::AddSeataServerResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +AddSeataServerResult::~AddSeataServerResult() +{} + +void AddSeataServerResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["HttpStatusCode"].isNull()) + httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString()); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["Code"].isNull()) + code_ = std::stoi(value["Code"].asString()); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["Data"].isNull()) + data_ = value["Data"].asString(); + +} + +std::string AddSeataServerResult::getMessage()const +{ + return message_; +} + +int AddSeataServerResult::getHttpStatusCode()const +{ + return httpStatusCode_; +} + +std::string AddSeataServerResult::getData()const +{ + return data_; +} + +int AddSeataServerResult::getCode()const +{ + return code_; +} + +bool AddSeataServerResult::getSuccess()const +{ + return success_; +} + diff --git a/mse/src/model/AddSecurityGroupRuleRequest.cc b/mse/src/model/AddSecurityGroupRuleRequest.cc new file mode 100644 index 000000000..808b32ccf --- /dev/null +++ b/mse/src/model/AddSecurityGroupRuleRequest.cc @@ -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. + */ + +#include + +using AlibabaCloud::Mse::Model::AddSecurityGroupRuleRequest; + +AddSecurityGroupRuleRequest::AddSecurityGroupRuleRequest() + : RpcServiceRequest("mse", "2019-05-31", "AddSecurityGroupRule") { + setMethod(HttpRequest::Method::Post); +} + +AddSecurityGroupRuleRequest::~AddSecurityGroupRuleRequest() {} + +std::string AddSecurityGroupRuleRequest::getPortRange() const { + return portRange_; +} + +void AddSecurityGroupRuleRequest::setPortRange(const std::string &portRange) { + portRange_ = portRange; + setParameter(std::string("PortRange"), portRange); +} + +std::string AddSecurityGroupRuleRequest::getGatewayUniqueId() const { + return gatewayUniqueId_; +} + +void AddSecurityGroupRuleRequest::setGatewayUniqueId(const std::string &gatewayUniqueId) { + gatewayUniqueId_ = gatewayUniqueId; + setParameter(std::string("GatewayUniqueId"), gatewayUniqueId); +} + +std::string AddSecurityGroupRuleRequest::getSecurityGroupId() const { + return securityGroupId_; +} + +void AddSecurityGroupRuleRequest::setSecurityGroupId(const std::string &securityGroupId) { + securityGroupId_ = securityGroupId; + setParameter(std::string("SecurityGroupId"), securityGroupId); +} + +std::string AddSecurityGroupRuleRequest::getDescription() const { + return description_; +} + +void AddSecurityGroupRuleRequest::setDescription(const std::string &description) { + description_ = description; + setParameter(std::string("Description"), description); +} + +std::string AddSecurityGroupRuleRequest::getAcceptLanguage() const { + return acceptLanguage_; +} + +void AddSecurityGroupRuleRequest::setAcceptLanguage(const std::string &acceptLanguage) { + acceptLanguage_ = acceptLanguage; + setParameter(std::string("AcceptLanguage"), acceptLanguage); +} + diff --git a/mse/src/model/AddSecurityGroupRuleResult.cc b/mse/src/model/AddSecurityGroupRuleResult.cc new file mode 100644 index 000000000..e37e5f99e --- /dev/null +++ b/mse/src/model/AddSecurityGroupRuleResult.cc @@ -0,0 +1,79 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Mse; +using namespace AlibabaCloud::Mse::Model; + +AddSecurityGroupRuleResult::AddSecurityGroupRuleResult() : + ServiceResult() +{} + +AddSecurityGroupRuleResult::AddSecurityGroupRuleResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +AddSecurityGroupRuleResult::~AddSecurityGroupRuleResult() +{} + +void AddSecurityGroupRuleResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["HttpStatusCode"].isNull()) + httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString()); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["Code"].isNull()) + code_ = std::stoi(value["Code"].asString()); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["Data"].isNull()) + data_ = value["Data"].asString(); + +} + +std::string AddSecurityGroupRuleResult::getMessage()const +{ + return message_; +} + +int AddSecurityGroupRuleResult::getHttpStatusCode()const +{ + return httpStatusCode_; +} + +std::string AddSecurityGroupRuleResult::getData()const +{ + return data_; +} + +int AddSecurityGroupRuleResult::getCode()const +{ + return code_; +} + +bool AddSecurityGroupRuleResult::getSuccess()const +{ + return success_; +} + diff --git a/mse/src/model/AddServiceSourceRequest.cc b/mse/src/model/AddServiceSourceRequest.cc index cd64c6bd6..6973ffac5 100644 --- a/mse/src/model/AddServiceSourceRequest.cc +++ b/mse/src/model/AddServiceSourceRequest.cc @@ -25,6 +25,17 @@ AddServiceSourceRequest::AddServiceSourceRequest() AddServiceSourceRequest::~AddServiceSourceRequest() {} +AddServiceSourceRequest::IngressOptionsRequest AddServiceSourceRequest::getIngressOptionsRequest() const { + return ingressOptionsRequest_; +} + +void AddServiceSourceRequest::setIngressOptionsRequest(const AddServiceSourceRequest::IngressOptionsRequest &ingressOptionsRequest) { + ingressOptionsRequest_ = ingressOptionsRequest; + setParameter(std::string("IngressOptionsRequest") + ".EnableIngress", ingressOptionsRequest.enableIngress ? "true" : "false"); + setParameter(std::string("IngressOptionsRequest") + ".WatchNamespace", ingressOptionsRequest.watchNamespace); + setParameter(std::string("IngressOptionsRequest") + ".IngressClass", ingressOptionsRequest.ingressClass); +} + std::string AddServiceSourceRequest::getGatewayUniqueId() const { return gatewayUniqueId_; } diff --git a/mse/src/model/AddTestRequest.cc b/mse/src/model/AddTestRequest.cc new file mode 100644 index 000000000..9466a67d6 --- /dev/null +++ b/mse/src/model/AddTestRequest.cc @@ -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. + */ + +#include + +using AlibabaCloud::Mse::Model::AddTestRequest; + +AddTestRequest::AddTestRequest() + : RpcServiceRequest("mse", "2019-05-31", "AddTest") { + setMethod(HttpRequest::Method::Post); +} + +AddTestRequest::~AddTestRequest() {} + +int AddTestRequest::getPageNumber() const { + return pageNumber_; +} + +void AddTestRequest::setPageNumber(int pageNumber) { + pageNumber_ = pageNumber; + setParameter(std::string("PageNumber"), std::to_string(pageNumber)); +} + +std::string AddTestRequest::getOrderItem() const { + return orderItem_; +} + +void AddTestRequest::setOrderItem(const std::string &orderItem) { + orderItem_ = orderItem; + setParameter(std::string("OrderItem"), orderItem); +} + +int AddTestRequest::getPageSize() const { + return pageSize_; +} + +void AddTestRequest::setPageSize(int pageSize) { + pageSize_ = pageSize; + setParameter(std::string("PageSize"), std::to_string(pageSize)); +} + +std::string AddTestRequest::getAcceptLanguage() const { + return acceptLanguage_; +} + +void AddTestRequest::setAcceptLanguage(const std::string &acceptLanguage) { + acceptLanguage_ = acceptLanguage; + setParameter(std::string("AcceptLanguage"), acceptLanguage); +} + +bool AddTestRequest::getDescSort() const { + return descSort_; +} + +void AddTestRequest::setDescSort(bool descSort) { + descSort_ = descSort; + setParameter(std::string("DescSort"), descSort ? "true" : "false"); +} + diff --git a/mse/src/model/AddTestResult.cc b/mse/src/model/AddTestResult.cc new file mode 100644 index 000000000..8a8bb4685 --- /dev/null +++ b/mse/src/model/AddTestResult.cc @@ -0,0 +1,182 @@ +/* + * 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::Mse; +using namespace AlibabaCloud::Mse::Model; + +AddTestResult::AddTestResult() : + ServiceResult() +{} + +AddTestResult::AddTestResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +AddTestResult::~AddTestResult() +{} + +void AddTestResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto dataNode = value["Data"]; + if(!dataNode["TotalSize"].isNull()) + data_.totalSize = std::stol(dataNode["TotalSize"].asString()); + if(!dataNode["PageNumber"].isNull()) + data_.pageNumber = std::stoi(dataNode["PageNumber"].asString()); + if(!dataNode["PageSize"].isNull()) + data_.pageSize = std::stoi(dataNode["PageSize"].asString()); + auto allResultNode = dataNode["Result"]["Gateways"]; + for (auto dataNodeResultGateways : allResultNode) + { + Data::Gateways gatewaysObject; + if(!dataNodeResultGateways["Id"].isNull()) + gatewaysObject.id = std::stol(dataNodeResultGateways["Id"].asString()); + if(!dataNodeResultGateways["Name"].isNull()) + gatewaysObject.name = dataNodeResultGateways["Name"].asString(); + if(!dataNodeResultGateways["GatewayUniqueId"].isNull()) + gatewaysObject.gatewayUniqueId = dataNodeResultGateways["GatewayUniqueId"].asString(); + if(!dataNodeResultGateways["GatewayType"].isNull()) + gatewaysObject.gatewayType = dataNodeResultGateways["GatewayType"].asString(); + if(!dataNodeResultGateways["Region"].isNull()) + gatewaysObject.region = dataNodeResultGateways["Region"].asString(); + if(!dataNodeResultGateways["PrimaryUser"].isNull()) + gatewaysObject.primaryUser = dataNodeResultGateways["PrimaryUser"].asString(); + if(!dataNodeResultGateways["Status"].isNull()) + gatewaysObject.status = std::stoi(dataNodeResultGateways["Status"].asString()); + if(!dataNodeResultGateways["AhasOn"].isNull()) + gatewaysObject.ahasOn = dataNodeResultGateways["AhasOn"].asString() == "true"; + if(!dataNodeResultGateways["ArmsOn"].isNull()) + gatewaysObject.armsOn = dataNodeResultGateways["ArmsOn"].asString() == "true"; + if(!dataNodeResultGateways["Spec"].isNull()) + gatewaysObject.spec = dataNodeResultGateways["Spec"].asString(); + if(!dataNodeResultGateways["Replica"].isNull()) + gatewaysObject.replica = std::stoi(dataNodeResultGateways["Replica"].asString()); + if(!dataNodeResultGateways["GmtCreate"].isNull()) + gatewaysObject.gmtCreate = dataNodeResultGateways["GmtCreate"].asString(); + if(!dataNodeResultGateways["GmtModified"].isNull()) + gatewaysObject.gmtModified = dataNodeResultGateways["GmtModified"].asString(); + if(!dataNodeResultGateways["StatusDesc"].isNull()) + gatewaysObject.statusDesc = dataNodeResultGateways["StatusDesc"].asString(); + if(!dataNodeResultGateways["Upgrade"].isNull()) + gatewaysObject.upgrade = dataNodeResultGateways["Upgrade"].asString() == "true"; + if(!dataNodeResultGateways["MustUpgrade"].isNull()) + gatewaysObject.mustUpgrade = dataNodeResultGateways["MustUpgrade"].asString() == "true"; + if(!dataNodeResultGateways["CurrentVersion"].isNull()) + gatewaysObject.currentVersion = dataNodeResultGateways["CurrentVersion"].asString(); + if(!dataNodeResultGateways["LatestVersion"].isNull()) + gatewaysObject.latestVersion = dataNodeResultGateways["LatestVersion"].asString(); + if(!dataNodeResultGateways["Vswitch2"].isNull()) + gatewaysObject.vswitch2 = dataNodeResultGateways["Vswitch2"].asString(); + if(!dataNodeResultGateways["InstanceId"].isNull()) + gatewaysObject.instanceId = dataNodeResultGateways["InstanceId"].asString(); + if(!dataNodeResultGateways["ChargeType"].isNull()) + gatewaysObject.chargeType = dataNodeResultGateways["ChargeType"].asString(); + if(!dataNodeResultGateways["EndDate"].isNull()) + gatewaysObject.endDate = dataNodeResultGateways["EndDate"].asString(); + if(!dataNodeResultGateways["Tag"].isNull()) + gatewaysObject.tag = dataNodeResultGateways["Tag"].asString(); + auto allSlbNode = dataNodeResultGateways["Slb"]["slbItem"]; + for (auto dataNodeResultGatewaysSlbslbItem : allSlbNode) + { + Data::Gateways::SlbItem slbObject; + if(!dataNodeResultGatewaysSlbslbItem["SlbIp"].isNull()) + slbObject.slbIp = dataNodeResultGatewaysSlbslbItem["SlbIp"].asString(); + if(!dataNodeResultGatewaysSlbslbItem["SlbPort"].isNull()) + slbObject.slbPort = dataNodeResultGatewaysSlbslbItem["SlbPort"].asString(); + if(!dataNodeResultGatewaysSlbslbItem["SlbSpec"].isNull()) + slbObject.slbSpec = dataNodeResultGatewaysSlbslbItem["SlbSpec"].asString(); + if(!dataNodeResultGatewaysSlbslbItem["Type"].isNull()) + slbObject.type = dataNodeResultGatewaysSlbslbItem["Type"].asString(); + if(!dataNodeResultGatewaysSlbslbItem["GatewaySlbStatus"].isNull()) + slbObject.gatewaySlbStatus = dataNodeResultGatewaysSlbslbItem["GatewaySlbStatus"].asString(); + if(!dataNodeResultGatewaysSlbslbItem["StatusDesc"].isNull()) + slbObject.statusDesc = dataNodeResultGatewaysSlbslbItem["StatusDesc"].asString(); + if(!dataNodeResultGatewaysSlbslbItem["GatewaySlbMode"].isNull()) + slbObject.gatewaySlbMode = dataNodeResultGatewaysSlbslbItem["GatewaySlbMode"].asString(); + if(!dataNodeResultGatewaysSlbslbItem["SlbId"].isNull()) + slbObject.slbId = dataNodeResultGatewaysSlbslbItem["SlbId"].asString(); + gatewaysObject.slb.push_back(slbObject); + } + auto allInternetSlbNode = dataNodeResultGateways["InternetSlb"]["internetSlbItem"]; + for (auto dataNodeResultGatewaysInternetSlbinternetSlbItem : allInternetSlbNode) + { + Data::Gateways::InternetSlbItem internetSlbObject; + if(!dataNodeResultGatewaysInternetSlbinternetSlbItem["SlbIp"].isNull()) + internetSlbObject.slbIp = dataNodeResultGatewaysInternetSlbinternetSlbItem["SlbIp"].asString(); + if(!dataNodeResultGatewaysInternetSlbinternetSlbItem["SlbPort"].isNull()) + internetSlbObject.slbPort = dataNodeResultGatewaysInternetSlbinternetSlbItem["SlbPort"].asString(); + if(!dataNodeResultGatewaysInternetSlbinternetSlbItem["SlbSpec"].isNull()) + internetSlbObject.slbSpec = dataNodeResultGatewaysInternetSlbinternetSlbItem["SlbSpec"].asString(); + if(!dataNodeResultGatewaysInternetSlbinternetSlbItem["Type"].isNull()) + internetSlbObject.type = dataNodeResultGatewaysInternetSlbinternetSlbItem["Type"].asString(); + if(!dataNodeResultGatewaysInternetSlbinternetSlbItem["InternetNetworkFlow"].isNull()) + internetSlbObject.internetNetworkFlow = dataNodeResultGatewaysInternetSlbinternetSlbItem["InternetNetworkFlow"].asString(); + if(!dataNodeResultGatewaysInternetSlbinternetSlbItem["GatewaySlbStatus"].isNull()) + internetSlbObject.gatewaySlbStatus = dataNodeResultGatewaysInternetSlbinternetSlbItem["GatewaySlbStatus"].asString(); + if(!dataNodeResultGatewaysInternetSlbinternetSlbItem["StatusDesc"].isNull()) + internetSlbObject.statusDesc = dataNodeResultGatewaysInternetSlbinternetSlbItem["StatusDesc"].asString(); + if(!dataNodeResultGatewaysInternetSlbinternetSlbItem["GatewaySlbMode"].isNull()) + internetSlbObject.gatewaySlbMode = dataNodeResultGatewaysInternetSlbinternetSlbItem["GatewaySlbMode"].asString(); + if(!dataNodeResultGatewaysInternetSlbinternetSlbItem["SlbId"].isNull()) + internetSlbObject.slbId = dataNodeResultGatewaysInternetSlbinternetSlbItem["SlbId"].asString(); + gatewaysObject.internetSlb.push_back(internetSlbObject); + } + data_.result.push_back(gatewaysObject); + } + if(!value["HttpStatusCode"].isNull()) + httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString()); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["Code"].isNull()) + code_ = std::stoi(value["Code"].asString()); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + +} + +std::string AddTestResult::getMessage()const +{ + return message_; +} + +int AddTestResult::getHttpStatusCode()const +{ + return httpStatusCode_; +} + +AddTestResult::Data AddTestResult::getData()const +{ + return data_; +} + +int AddTestResult::getCode()const +{ + return code_; +} + +bool AddTestResult::getSuccess()const +{ + return success_; +} + diff --git a/mse/src/model/ApplyGatewayRouteRequest.cc b/mse/src/model/ApplyGatewayRouteRequest.cc index 51265dbc5..3ef557917 100644 --- a/mse/src/model/ApplyGatewayRouteRequest.cc +++ b/mse/src/model/ApplyGatewayRouteRequest.cc @@ -20,7 +20,7 @@ using AlibabaCloud::Mse::Model::ApplyGatewayRouteRequest; ApplyGatewayRouteRequest::ApplyGatewayRouteRequest() : RpcServiceRequest("mse", "2019-05-31", "ApplyGatewayRoute") { - setMethod(HttpRequest::Method::Get); + setMethod(HttpRequest::Method::Post); } ApplyGatewayRouteRequest::~ApplyGatewayRouteRequest() {} diff --git a/mse/src/model/CreateAlarmRuleRequest.cc b/mse/src/model/CreateAlarmRuleRequest.cc deleted file mode 100644 index f238ea097..000000000 --- a/mse/src/model/CreateAlarmRuleRequest.cc +++ /dev/null @@ -1,126 +0,0 @@ -/* - * 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::Mse::Model::CreateAlarmRuleRequest; - -CreateAlarmRuleRequest::CreateAlarmRuleRequest() - : RpcServiceRequest("mse", "2019-05-31", "CreateAlarmRule") { - setMethod(HttpRequest::Method::Post); -} - -CreateAlarmRuleRequest::~CreateAlarmRuleRequest() {} - -int CreateAlarmRuleRequest::getNValue() const { - return nValue_; -} - -void CreateAlarmRuleRequest::setNValue(int nValue) { - nValue_ = nValue; - setParameter(std::string("NValue"), std::to_string(nValue)); -} - -std::string CreateAlarmRuleRequest::getAlarmItem() const { - return alarmItem_; -} - -void CreateAlarmRuleRequest::setAlarmItem(const std::string &alarmItem) { - alarmItem_ = alarmItem; - setParameter(std::string("AlarmItem"), alarmItem); -} - -std::string CreateAlarmRuleRequest::getClusterId() const { - return clusterId_; -} - -void CreateAlarmRuleRequest::setClusterId(const std::string &clusterId) { - clusterId_ = clusterId; - setParameter(std::string("ClusterId"), clusterId); -} - -std::string CreateAlarmRuleRequest::get_Operator() const { - return _operator_; -} - -void CreateAlarmRuleRequest::set_Operator(const std::string &_operator) { - _operator_ = _operator; - setParameter(std::string("Operator"), _operator); -} - -std::string CreateAlarmRuleRequest::getAlarmAliasName() const { - return alarmAliasName_; -} - -void CreateAlarmRuleRequest::setAlarmAliasName(const std::string &alarmAliasName) { - alarmAliasName_ = alarmAliasName; - setParameter(std::string("AlarmAliasName"), alarmAliasName); -} - -std::string CreateAlarmRuleRequest::getInstanceId() const { - return instanceId_; -} - -void CreateAlarmRuleRequest::setInstanceId(const std::string &instanceId) { - instanceId_ = instanceId; - setParameter(std::string("InstanceId"), instanceId); -} - -std::string CreateAlarmRuleRequest::getContactGroupIds() const { - return contactGroupIds_; -} - -void CreateAlarmRuleRequest::setContactGroupIds(const std::string &contactGroupIds) { - contactGroupIds_ = contactGroupIds; - setParameter(std::string("ContactGroupIds"), contactGroupIds); -} - -std::string CreateAlarmRuleRequest::getAcceptLanguage() const { - return acceptLanguage_; -} - -void CreateAlarmRuleRequest::setAcceptLanguage(const std::string &acceptLanguage) { - acceptLanguage_ = acceptLanguage; - setParameter(std::string("AcceptLanguage"), acceptLanguage); -} - -std::string CreateAlarmRuleRequest::getAlertWay() const { - return alertWay_; -} - -void CreateAlarmRuleRequest::setAlertWay(const std::string &alertWay) { - alertWay_ = alertWay; - setParameter(std::string("AlertWay"), alertWay); -} - -std::string CreateAlarmRuleRequest::getAggregates() const { - return aggregates_; -} - -void CreateAlarmRuleRequest::setAggregates(const std::string &aggregates) { - aggregates_ = aggregates; - setParameter(std::string("Aggregates"), aggregates); -} - -float CreateAlarmRuleRequest::getValue() const { - return value_; -} - -void CreateAlarmRuleRequest::setValue(float value) { - value_ = value; - setParameter(std::string("Value"), std::to_string(value)); -} - diff --git a/mse/src/model/CreateApplicationRequest.cc b/mse/src/model/CreateApplicationRequest.cc index 8607246d2..b9796fe19 100644 --- a/mse/src/model/CreateApplicationRequest.cc +++ b/mse/src/model/CreateApplicationRequest.cc @@ -61,6 +61,15 @@ void CreateApplicationRequest::setAppName(const std::string &appName) { setParameter(std::string("AppName"), appName); } +std::string CreateApplicationRequest::getSwitchEnable() const { + return switchEnable_; +} + +void CreateApplicationRequest::setSwitchEnable(const std::string &switchEnable) { + switchEnable_ = switchEnable; + setParameter(std::string("SwitchEnable"), switchEnable); +} + std::string CreateApplicationRequest::getAcceptLanguage() const { return acceptLanguage_; } @@ -70,6 +79,15 @@ void CreateApplicationRequest::setAcceptLanguage(const std::string &acceptLangua setParameter(std::string("AcceptLanguage"), acceptLanguage); } +std::string CreateApplicationRequest::getSentinelEnable() const { + return sentinelEnable_; +} + +void CreateApplicationRequest::setSentinelEnable(const std::string &sentinelEnable) { + sentinelEnable_ = sentinelEnable; + setParameter(std::string("SentinelEnable"), sentinelEnable); +} + std::string CreateApplicationRequest::getRegion() const { return region_; } diff --git a/mse/src/model/CreateEngineNamespaceRequest.cc b/mse/src/model/CreateEngineNamespaceRequest.cc index 9316df081..65c51b273 100644 --- a/mse/src/model/CreateEngineNamespaceRequest.cc +++ b/mse/src/model/CreateEngineNamespaceRequest.cc @@ -70,6 +70,15 @@ void CreateEngineNamespaceRequest::setAcceptLanguage(const std::string &acceptLa setParameter(std::string("AcceptLanguage"), acceptLanguage); } +std::string CreateEngineNamespaceRequest::getId() const { + return id_; +} + +void CreateEngineNamespaceRequest::setId(const std::string &id) { + id_ = id; + setParameter(std::string("Id"), id); +} + std::string CreateEngineNamespaceRequest::getDesc() const { return desc_; } diff --git a/mse/src/model/CreateVGroupRequest.cc b/mse/src/model/CreateVGroupRequest.cc new file mode 100644 index 000000000..f056570ed --- /dev/null +++ b/mse/src/model/CreateVGroupRequest.cc @@ -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. + */ + +#include + +using AlibabaCloud::Mse::Model::CreateVGroupRequest; + +CreateVGroupRequest::CreateVGroupRequest() + : RpcServiceRequest("mse", "2019-05-31", "CreateVGroup") { + setMethod(HttpRequest::Method::Post); +} + +CreateVGroupRequest::~CreateVGroupRequest() {} + +std::string CreateVGroupRequest::getPrimaryUser() const { + return primaryUser_; +} + +void CreateVGroupRequest::setPrimaryUser(const std::string &primaryUser) { + primaryUser_ = primaryUser; + setParameter(std::string("PrimaryUser"), primaryUser); +} + +std::string CreateVGroupRequest::getName() const { + return name_; +} + +void CreateVGroupRequest::setName(const std::string &name) { + name_ = name; + setParameter(std::string("Name"), name); +} + +std::string CreateVGroupRequest::getAcceptLanguage() const { + return acceptLanguage_; +} + +void CreateVGroupRequest::setAcceptLanguage(const std::string &acceptLanguage) { + acceptLanguage_ = acceptLanguage; + setParameter(std::string("AcceptLanguage"), acceptLanguage); +} + +std::string CreateVGroupRequest::getSeataServerUniqueId() const { + return seataServerUniqueId_; +} + +void CreateVGroupRequest::setSeataServerUniqueId(const std::string &seataServerUniqueId) { + seataServerUniqueId_ = seataServerUniqueId; + setParameter(std::string("SeataServerUniqueId"), seataServerUniqueId); +} + +std::string CreateVGroupRequest::getRegion() const { + return region_; +} + +void CreateVGroupRequest::setRegion(const std::string ®ion) { + region_ = region; + setParameter(std::string("Region"), region); +} + diff --git a/mse/src/model/CreateAlarmRuleResult.cc b/mse/src/model/CreateVGroupResult.cc similarity index 58% rename from mse/src/model/CreateAlarmRuleResult.cc rename to mse/src/model/CreateVGroupResult.cc index e86a2033d..2b9b351a1 100644 --- a/mse/src/model/CreateAlarmRuleResult.cc +++ b/mse/src/model/CreateVGroupResult.cc @@ -14,51 +14,65 @@ * limitations under the License. */ -#include +#include #include using namespace AlibabaCloud::Mse; using namespace AlibabaCloud::Mse::Model; -CreateAlarmRuleResult::CreateAlarmRuleResult() : +CreateVGroupResult::CreateVGroupResult() : ServiceResult() {} -CreateAlarmRuleResult::CreateAlarmRuleResult(const std::string &payload) : +CreateVGroupResult::CreateVGroupResult(const std::string &payload) : ServiceResult() { parse(payload); } -CreateAlarmRuleResult::~CreateAlarmRuleResult() +CreateVGroupResult::~CreateVGroupResult() {} -void CreateAlarmRuleResult::parse(const std::string &payload) +void CreateVGroupResult::parse(const std::string &payload) { Json::Reader reader; Json::Value value; reader.parse(payload, value); setRequestId(value["RequestId"].asString()); + if(!value["HttpStatusCode"].isNull()) + httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString()); if(!value["Message"].isNull()) message_ = value["Message"].asString(); - if(!value["ErrorCode"].isNull()) - errorCode_ = value["ErrorCode"].asString(); + if(!value["Code"].isNull()) + code_ = std::stoi(value["Code"].asString()); if(!value["Success"].isNull()) success_ = value["Success"].asString() == "true"; + if(!value["Data"].isNull()) + data_ = value["Data"].asString(); } -std::string CreateAlarmRuleResult::getMessage()const +std::string CreateVGroupResult::getMessage()const { return message_; } -std::string CreateAlarmRuleResult::getErrorCode()const +int CreateVGroupResult::getHttpStatusCode()const { - return errorCode_; + return httpStatusCode_; } -bool CreateAlarmRuleResult::getSuccess()const +std::string CreateVGroupResult::getData()const +{ + return data_; +} + +int CreateVGroupResult::getCode()const +{ + return code_; +} + +bool CreateVGroupResult::getSuccess()const { return success_; } diff --git a/mse/src/model/DeleteAlarmRuleRequest.cc b/mse/src/model/DeleteAlarmRuleRequest.cc deleted file mode 100644 index 5d22f00b4..000000000 --- a/mse/src/model/DeleteAlarmRuleRequest.cc +++ /dev/null @@ -1,54 +0,0 @@ -/* - * 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::Mse::Model::DeleteAlarmRuleRequest; - -DeleteAlarmRuleRequest::DeleteAlarmRuleRequest() - : RpcServiceRequest("mse", "2019-05-31", "DeleteAlarmRule") { - setMethod(HttpRequest::Method::Post); -} - -DeleteAlarmRuleRequest::~DeleteAlarmRuleRequest() {} - -std::string DeleteAlarmRuleRequest::getAlarmRuleId() const { - return alarmRuleId_; -} - -void DeleteAlarmRuleRequest::setAlarmRuleId(const std::string &alarmRuleId) { - alarmRuleId_ = alarmRuleId; - setParameter(std::string("AlarmRuleId"), alarmRuleId); -} - -std::string DeleteAlarmRuleRequest::getRequestPars() const { - return requestPars_; -} - -void DeleteAlarmRuleRequest::setRequestPars(const std::string &requestPars) { - requestPars_ = requestPars; - setParameter(std::string("RequestPars"), requestPars); -} - -std::string DeleteAlarmRuleRequest::getAcceptLanguage() const { - return acceptLanguage_; -} - -void DeleteAlarmRuleRequest::setAcceptLanguage(const std::string &acceptLanguage) { - acceptLanguage_ = acceptLanguage; - setParameter(std::string("AcceptLanguage"), acceptLanguage); -} - diff --git a/mse/src/model/DeleteAuthResourceRequest.cc b/mse/src/model/DeleteAuthResourceRequest.cc index dbef1fc6a..932f23b90 100644 --- a/mse/src/model/DeleteAuthResourceRequest.cc +++ b/mse/src/model/DeleteAuthResourceRequest.cc @@ -20,7 +20,7 @@ using AlibabaCloud::Mse::Model::DeleteAuthResourceRequest; DeleteAuthResourceRequest::DeleteAuthResourceRequest() : RpcServiceRequest("mse", "2019-05-31", "DeleteAuthResource") { - setMethod(HttpRequest::Method::Get); + setMethod(HttpRequest::Method::Post); } DeleteAuthResourceRequest::~DeleteAuthResourceRequest() {} diff --git a/mse/src/model/DeleteGatewayDomainRequest.cc b/mse/src/model/DeleteGatewayDomainRequest.cc index dee68e39b..a07151298 100644 --- a/mse/src/model/DeleteGatewayDomainRequest.cc +++ b/mse/src/model/DeleteGatewayDomainRequest.cc @@ -20,7 +20,7 @@ using AlibabaCloud::Mse::Model::DeleteGatewayDomainRequest; DeleteGatewayDomainRequest::DeleteGatewayDomainRequest() : RpcServiceRequest("mse", "2019-05-31", "DeleteGatewayDomain") { - setMethod(HttpRequest::Method::Get); + setMethod(HttpRequest::Method::Post); } DeleteGatewayDomainRequest::~DeleteGatewayDomainRequest() {} diff --git a/mse/src/model/DeleteGatewayDomainResult.cc b/mse/src/model/DeleteGatewayDomainResult.cc index db5103873..7a0d3ffa6 100644 --- a/mse/src/model/DeleteGatewayDomainResult.cc +++ b/mse/src/model/DeleteGatewayDomainResult.cc @@ -53,7 +53,7 @@ void DeleteGatewayDomainResult::parse(const std::string &payload) if(!dataNode["MustHttps"].isNull()) data_.mustHttps = dataNode["MustHttps"].asString() == "true"; if(!dataNode["CertIdentifier"].isNull()) - data_.certIdentifier = std::stoi(dataNode["CertIdentifier"].asString()); + data_.certIdentifier = dataNode["CertIdentifier"].asString(); if(!dataNode["GmtCreate"].isNull()) data_.gmtCreate = dataNode["GmtCreate"].asString(); if(!dataNode["GmtModified"].isNull()) diff --git a/mse/src/model/DeleteGatewayRequest.cc b/mse/src/model/DeleteGatewayRequest.cc index b8da0e643..f4e6b1c2b 100644 --- a/mse/src/model/DeleteGatewayRequest.cc +++ b/mse/src/model/DeleteGatewayRequest.cc @@ -20,7 +20,7 @@ using AlibabaCloud::Mse::Model::DeleteGatewayRequest; DeleteGatewayRequest::DeleteGatewayRequest() : RpcServiceRequest("mse", "2019-05-31", "DeleteGateway") { - setMethod(HttpRequest::Method::Get); + setMethod(HttpRequest::Method::Post); } DeleteGatewayRequest::~DeleteGatewayRequest() {} diff --git a/mse/src/model/DeleteGatewayRouteRequest.cc b/mse/src/model/DeleteGatewayRouteRequest.cc index 2ca5d2bd5..74c959fbd 100644 --- a/mse/src/model/DeleteGatewayRouteRequest.cc +++ b/mse/src/model/DeleteGatewayRouteRequest.cc @@ -20,7 +20,7 @@ using AlibabaCloud::Mse::Model::DeleteGatewayRouteRequest; DeleteGatewayRouteRequest::DeleteGatewayRouteRequest() : RpcServiceRequest("mse", "2019-05-31", "DeleteGatewayRoute") { - setMethod(HttpRequest::Method::Get); + setMethod(HttpRequest::Method::Post); } DeleteGatewayRouteRequest::~DeleteGatewayRouteRequest() {} diff --git a/mse/src/model/DeleteGatewayServiceRequest.cc b/mse/src/model/DeleteGatewayServiceRequest.cc new file mode 100644 index 000000000..baee41cec --- /dev/null +++ b/mse/src/model/DeleteGatewayServiceRequest.cc @@ -0,0 +1,63 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Mse::Model::DeleteGatewayServiceRequest; + +DeleteGatewayServiceRequest::DeleteGatewayServiceRequest() + : RpcServiceRequest("mse", "2019-05-31", "DeleteGatewayService") { + setMethod(HttpRequest::Method::Post); +} + +DeleteGatewayServiceRequest::~DeleteGatewayServiceRequest() {} + +std::string DeleteGatewayServiceRequest::getGatewayUniqueId() const { + return gatewayUniqueId_; +} + +void DeleteGatewayServiceRequest::setGatewayUniqueId(const std::string &gatewayUniqueId) { + gatewayUniqueId_ = gatewayUniqueId; + setParameter(std::string("GatewayUniqueId"), gatewayUniqueId); +} + +std::string DeleteGatewayServiceRequest::getAcceptLanguage() const { + return acceptLanguage_; +} + +void DeleteGatewayServiceRequest::setAcceptLanguage(const std::string &acceptLanguage) { + acceptLanguage_ = acceptLanguage; + setParameter(std::string("AcceptLanguage"), acceptLanguage); +} + +std::string DeleteGatewayServiceRequest::getServiceId() const { + return serviceId_; +} + +void DeleteGatewayServiceRequest::setServiceId(const std::string &serviceId) { + serviceId_ = serviceId; + setParameter(std::string("ServiceId"), serviceId); +} + +long DeleteGatewayServiceRequest::getGatewayId() const { + return gatewayId_; +} + +void DeleteGatewayServiceRequest::setGatewayId(long gatewayId) { + gatewayId_ = gatewayId; + setParameter(std::string("GatewayId"), std::to_string(gatewayId)); +} + diff --git a/mse/src/model/DeleteGatewayServiceResult.cc b/mse/src/model/DeleteGatewayServiceResult.cc new file mode 100644 index 000000000..a061f118b --- /dev/null +++ b/mse/src/model/DeleteGatewayServiceResult.cc @@ -0,0 +1,105 @@ +/* + * 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::Mse; +using namespace AlibabaCloud::Mse::Model; + +DeleteGatewayServiceResult::DeleteGatewayServiceResult() : + ServiceResult() +{} + +DeleteGatewayServiceResult::DeleteGatewayServiceResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DeleteGatewayServiceResult::~DeleteGatewayServiceResult() +{} + +void DeleteGatewayServiceResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto dataNode = value["Data"]; + if(!dataNode["Id"].isNull()) + data_.id = std::stol(dataNode["Id"].asString()); + if(!dataNode["Name"].isNull()) + data_.name = dataNode["Name"].asString(); + if(!dataNode["GatewayUniqueId"].isNull()) + data_.gatewayUniqueId = dataNode["GatewayUniqueId"].asString(); + if(!dataNode["GatewayId"].isNull()) + data_.gatewayId = std::stol(dataNode["GatewayId"].asString()); + if(!dataNode["SourceType"].isNull()) + data_.sourceType = dataNode["SourceType"].asString(); + if(!dataNode["Namespace"].isNull()) + data_._namespace = dataNode["Namespace"].asString(); + if(!dataNode["GroupName"].isNull()) + data_.groupName = dataNode["GroupName"].asString(); + if(!dataNode["SourceId"].isNull()) + data_.sourceId = std::stol(dataNode["SourceId"].asString()); + if(!dataNode["ServiceNameInRegistry"].isNull()) + data_.serviceNameInRegistry = dataNode["ServiceNameInRegistry"].asString(); + if(!dataNode["MetaInfo"].isNull()) + data_.metaInfo = dataNode["MetaInfo"].asString(); + if(!dataNode["GmtCreate"].isNull()) + data_.gmtCreate = dataNode["GmtCreate"].asString(); + if(!dataNode["GmtModified"].isNull()) + data_.gmtModified = dataNode["GmtModified"].asString(); + auto allIps = dataNode["Ips"]["Ips"]; + for (auto value : allIps) + data_.ips.push_back(value.asString()); + if(!value["HttpStatusCode"].isNull()) + httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString()); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["Code"].isNull()) + code_ = std::stoi(value["Code"].asString()); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + +} + +std::string DeleteGatewayServiceResult::getMessage()const +{ + return message_; +} + +int DeleteGatewayServiceResult::getHttpStatusCode()const +{ + return httpStatusCode_; +} + +DeleteGatewayServiceResult::Data DeleteGatewayServiceResult::getData()const +{ + return data_; +} + +int DeleteGatewayServiceResult::getCode()const +{ + return code_; +} + +bool DeleteGatewayServiceResult::getSuccess()const +{ + return success_; +} + diff --git a/mse/src/model/DeleteGatewaySlbRequest.cc b/mse/src/model/DeleteGatewaySlbRequest.cc index 22d5cce14..3725b0a48 100644 --- a/mse/src/model/DeleteGatewaySlbRequest.cc +++ b/mse/src/model/DeleteGatewaySlbRequest.cc @@ -20,7 +20,7 @@ using AlibabaCloud::Mse::Model::DeleteGatewaySlbRequest; DeleteGatewaySlbRequest::DeleteGatewaySlbRequest() : RpcServiceRequest("mse", "2019-05-31", "DeleteGatewaySlb") { - setMethod(HttpRequest::Method::Get); + setMethod(HttpRequest::Method::Post); } DeleteGatewaySlbRequest::~DeleteGatewaySlbRequest() {} diff --git a/mse/src/model/DeleteSeataServerRequest.cc b/mse/src/model/DeleteSeataServerRequest.cc new file mode 100644 index 000000000..eb18d6da1 --- /dev/null +++ b/mse/src/model/DeleteSeataServerRequest.cc @@ -0,0 +1,45 @@ +/* + * 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::Mse::Model::DeleteSeataServerRequest; + +DeleteSeataServerRequest::DeleteSeataServerRequest() + : RpcServiceRequest("mse", "2019-05-31", "DeleteSeataServer") { + setMethod(HttpRequest::Method::Post); +} + +DeleteSeataServerRequest::~DeleteSeataServerRequest() {} + +std::string DeleteSeataServerRequest::getAcceptLanguage() const { + return acceptLanguage_; +} + +void DeleteSeataServerRequest::setAcceptLanguage(const std::string &acceptLanguage) { + acceptLanguage_ = acceptLanguage; + setParameter(std::string("AcceptLanguage"), acceptLanguage); +} + +std::string DeleteSeataServerRequest::getSeataServerUniqueId() const { + return seataServerUniqueId_; +} + +void DeleteSeataServerRequest::setSeataServerUniqueId(const std::string &seataServerUniqueId) { + seataServerUniqueId_ = seataServerUniqueId; + setParameter(std::string("SeataServerUniqueId"), seataServerUniqueId); +} + diff --git a/mse/src/model/DeleteSeataServerResult.cc b/mse/src/model/DeleteSeataServerResult.cc new file mode 100644 index 000000000..77dff01ec --- /dev/null +++ b/mse/src/model/DeleteSeataServerResult.cc @@ -0,0 +1,79 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Mse; +using namespace AlibabaCloud::Mse::Model; + +DeleteSeataServerResult::DeleteSeataServerResult() : + ServiceResult() +{} + +DeleteSeataServerResult::DeleteSeataServerResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DeleteSeataServerResult::~DeleteSeataServerResult() +{} + +void DeleteSeataServerResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["HttpStatusCode"].isNull()) + httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString()); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["Code"].isNull()) + code_ = std::stoi(value["Code"].asString()); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["Data"].isNull()) + data_ = value["Data"].asString(); + +} + +std::string DeleteSeataServerResult::getMessage()const +{ + return message_; +} + +int DeleteSeataServerResult::getHttpStatusCode()const +{ + return httpStatusCode_; +} + +std::string DeleteSeataServerResult::getData()const +{ + return data_; +} + +int DeleteSeataServerResult::getCode()const +{ + return code_; +} + +bool DeleteSeataServerResult::getSuccess()const +{ + return success_; +} + diff --git a/mse/src/model/DeleteSecurityGroupRuleRequest.cc b/mse/src/model/DeleteSecurityGroupRuleRequest.cc new file mode 100644 index 000000000..850e5b324 --- /dev/null +++ b/mse/src/model/DeleteSecurityGroupRuleRequest.cc @@ -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. + */ + +#include + +using AlibabaCloud::Mse::Model::DeleteSecurityGroupRuleRequest; + +DeleteSecurityGroupRuleRequest::DeleteSecurityGroupRuleRequest() + : RpcServiceRequest("mse", "2019-05-31", "DeleteSecurityGroupRule") { + setMethod(HttpRequest::Method::Post); +} + +DeleteSecurityGroupRuleRequest::~DeleteSecurityGroupRuleRequest() {} + +std::string DeleteSecurityGroupRuleRequest::getGatewayUniqueId() const { + return gatewayUniqueId_; +} + +void DeleteSecurityGroupRuleRequest::setGatewayUniqueId(const std::string &gatewayUniqueId) { + gatewayUniqueId_ = gatewayUniqueId; + setParameter(std::string("GatewayUniqueId"), gatewayUniqueId); +} + +std::string DeleteSecurityGroupRuleRequest::getAcceptLanguage() const { + return acceptLanguage_; +} + +void DeleteSecurityGroupRuleRequest::setAcceptLanguage(const std::string &acceptLanguage) { + acceptLanguage_ = acceptLanguage; + setParameter(std::string("AcceptLanguage"), acceptLanguage); +} + +long DeleteSecurityGroupRuleRequest::getId() const { + return id_; +} + +void DeleteSecurityGroupRuleRequest::setId(long id) { + id_ = id; + setParameter(std::string("Id"), std::to_string(id)); +} + diff --git a/mse/src/model/DeleteSecurityGroupRuleResult.cc b/mse/src/model/DeleteSecurityGroupRuleResult.cc new file mode 100644 index 000000000..dae2c7c0d --- /dev/null +++ b/mse/src/model/DeleteSecurityGroupRuleResult.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::Mse; +using namespace AlibabaCloud::Mse::Model; + +DeleteSecurityGroupRuleResult::DeleteSecurityGroupRuleResult() : + ServiceResult() +{} + +DeleteSecurityGroupRuleResult::DeleteSecurityGroupRuleResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DeleteSecurityGroupRuleResult::~DeleteSecurityGroupRuleResult() +{} + +void DeleteSecurityGroupRuleResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto dataNode = value["Data"]; + if(!dataNode["Id"].isNull()) + data_.id = std::stol(dataNode["Id"].asString()); + if(!dataNode["SecurityGroupId"].isNull()) + data_.securityGroupId = dataNode["SecurityGroupId"].asString(); + if(!dataNode["GatewayUniqueId"].isNull()) + data_.gatewayUniqueId = dataNode["GatewayUniqueId"].asString(); + if(!dataNode["PortRange"].isNull()) + data_.portRange = dataNode["PortRange"].asString(); + if(!dataNode["IpProtocol"].isNull()) + data_.ipProtocol = dataNode["IpProtocol"].asString(); + if(!dataNode["GatewayId"].isNull()) + data_.gatewayId = std::stol(dataNode["GatewayId"].asString()); + if(!dataNode["GmtCreate"].isNull()) + data_.gmtCreate = dataNode["GmtCreate"].asString(); + if(!dataNode["GmtModified"].isNull()) + data_.gmtModified = dataNode["GmtModified"].asString(); + if(!dataNode["Description"].isNull()) + data_.description = dataNode["Description"].asString(); + if(!value["HttpStatusCode"].isNull()) + httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString()); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["Code"].isNull()) + code_ = std::stoi(value["Code"].asString()); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + +} + +std::string DeleteSecurityGroupRuleResult::getMessage()const +{ + return message_; +} + +int DeleteSecurityGroupRuleResult::getHttpStatusCode()const +{ + return httpStatusCode_; +} + +DeleteSecurityGroupRuleResult::Data DeleteSecurityGroupRuleResult::getData()const +{ + return data_; +} + +int DeleteSecurityGroupRuleResult::getCode()const +{ + return code_; +} + +bool DeleteSecurityGroupRuleResult::getSuccess()const +{ + return success_; +} + diff --git a/mse/src/model/DeleteServiceSourceRequest.cc b/mse/src/model/DeleteServiceSourceRequest.cc index 036fa5666..2571652dd 100644 --- a/mse/src/model/DeleteServiceSourceRequest.cc +++ b/mse/src/model/DeleteServiceSourceRequest.cc @@ -20,7 +20,7 @@ using AlibabaCloud::Mse::Model::DeleteServiceSourceRequest; DeleteServiceSourceRequest::DeleteServiceSourceRequest() : RpcServiceRequest("mse", "2019-05-31", "DeleteServiceSource") { - setMethod(HttpRequest::Method::Get); + setMethod(HttpRequest::Method::Post); } DeleteServiceSourceRequest::~DeleteServiceSourceRequest() {} diff --git a/mse/src/model/ListAlarmItemsRequest.cc b/mse/src/model/DeleteVGroupRequest.cc similarity index 50% rename from mse/src/model/ListAlarmItemsRequest.cc rename to mse/src/model/DeleteVGroupRequest.cc index 335a865be..13b9065ea 100644 --- a/mse/src/model/ListAlarmItemsRequest.cc +++ b/mse/src/model/DeleteVGroupRequest.cc @@ -14,31 +14,31 @@ * limitations under the License. */ -#include +#include -using AlibabaCloud::Mse::Model::ListAlarmItemsRequest; +using AlibabaCloud::Mse::Model::DeleteVGroupRequest; -ListAlarmItemsRequest::ListAlarmItemsRequest() - : RpcServiceRequest("mse", "2019-05-31", "ListAlarmItems") { - setMethod(HttpRequest::Method::Get); +DeleteVGroupRequest::DeleteVGroupRequest() + : RpcServiceRequest("mse", "2019-05-31", "DeleteVGroup") { + setMethod(HttpRequest::Method::Post); } -ListAlarmItemsRequest::~ListAlarmItemsRequest() {} +DeleteVGroupRequest::~DeleteVGroupRequest() {} -std::string ListAlarmItemsRequest::getRequestPars() const { - return requestPars_; +std::string DeleteVGroupRequest::getName() const { + return name_; } -void ListAlarmItemsRequest::setRequestPars(const std::string &requestPars) { - requestPars_ = requestPars; - setParameter(std::string("RequestPars"), requestPars); +void DeleteVGroupRequest::setName(const std::string &name) { + name_ = name; + setParameter(std::string("Name"), name); } -std::string ListAlarmItemsRequest::getAcceptLanguage() const { +std::string DeleteVGroupRequest::getAcceptLanguage() const { return acceptLanguage_; } -void ListAlarmItemsRequest::setAcceptLanguage(const std::string &acceptLanguage) { +void DeleteVGroupRequest::setAcceptLanguage(const std::string &acceptLanguage) { acceptLanguage_ = acceptLanguage; setParameter(std::string("AcceptLanguage"), acceptLanguage); } diff --git a/mse/src/model/ScalingClusterResult.cc b/mse/src/model/DeleteVGroupResult.cc similarity index 58% rename from mse/src/model/ScalingClusterResult.cc rename to mse/src/model/DeleteVGroupResult.cc index 9bef5ac56..b43e189a2 100644 --- a/mse/src/model/ScalingClusterResult.cc +++ b/mse/src/model/DeleteVGroupResult.cc @@ -14,51 +14,65 @@ * limitations under the License. */ -#include +#include #include using namespace AlibabaCloud::Mse; using namespace AlibabaCloud::Mse::Model; -ScalingClusterResult::ScalingClusterResult() : +DeleteVGroupResult::DeleteVGroupResult() : ServiceResult() {} -ScalingClusterResult::ScalingClusterResult(const std::string &payload) : +DeleteVGroupResult::DeleteVGroupResult(const std::string &payload) : ServiceResult() { parse(payload); } -ScalingClusterResult::~ScalingClusterResult() +DeleteVGroupResult::~DeleteVGroupResult() {} -void ScalingClusterResult::parse(const std::string &payload) +void DeleteVGroupResult::parse(const std::string &payload) { Json::Reader reader; Json::Value value; reader.parse(payload, value); setRequestId(value["RequestId"].asString()); + if(!value["HttpStatusCode"].isNull()) + httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString()); if(!value["Message"].isNull()) message_ = value["Message"].asString(); - if(!value["ErrorCode"].isNull()) - errorCode_ = value["ErrorCode"].asString(); + if(!value["Code"].isNull()) + code_ = std::stoi(value["Code"].asString()); if(!value["Success"].isNull()) success_ = value["Success"].asString() == "true"; + if(!value["Data"].isNull()) + data_ = value["Data"].asString(); } -std::string ScalingClusterResult::getMessage()const +std::string DeleteVGroupResult::getMessage()const { return message_; } -std::string ScalingClusterResult::getErrorCode()const +int DeleteVGroupResult::getHttpStatusCode()const { - return errorCode_; + return httpStatusCode_; } -bool ScalingClusterResult::getSuccess()const +std::string DeleteVGroupResult::getData()const +{ + return data_; +} + +int DeleteVGroupResult::getCode()const +{ + return code_; +} + +bool DeleteVGroupResult::getSuccess()const { return success_; } diff --git a/mse/src/model/GetAppMessageQueueRouteRequest.cc b/mse/src/model/GetAppMessageQueueRouteRequest.cc new file mode 100644 index 000000000..634ba8c47 --- /dev/null +++ b/mse/src/model/GetAppMessageQueueRouteRequest.cc @@ -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. + */ + +#include + +using AlibabaCloud::Mse::Model::GetAppMessageQueueRouteRequest; + +GetAppMessageQueueRouteRequest::GetAppMessageQueueRouteRequest() + : RpcServiceRequest("mse", "2019-05-31", "GetAppMessageQueueRoute") { + setMethod(HttpRequest::Method::Post); +} + +GetAppMessageQueueRouteRequest::~GetAppMessageQueueRouteRequest() {} + +std::string GetAppMessageQueueRouteRequest::getAppId() const { + return appId_; +} + +void GetAppMessageQueueRouteRequest::setAppId(const std::string &appId) { + appId_ = appId; + setParameter(std::string("AppId"), appId); +} + +std::string GetAppMessageQueueRouteRequest::getAcceptLanguage() const { + return acceptLanguage_; +} + +void GetAppMessageQueueRouteRequest::setAcceptLanguage(const std::string &acceptLanguage) { + acceptLanguage_ = acceptLanguage; + setParameter(std::string("AcceptLanguage"), acceptLanguage); +} + +std::string GetAppMessageQueueRouteRequest::getRegion() const { + return region_; +} + +void GetAppMessageQueueRouteRequest::setRegion(const std::string ®ion) { + region_ = region; + setParameter(std::string("Region"), region); +} + diff --git a/mse/src/model/GetAppMessageQueueRouteResult.cc b/mse/src/model/GetAppMessageQueueRouteResult.cc new file mode 100644 index 000000000..f67d1cbec --- /dev/null +++ b/mse/src/model/GetAppMessageQueueRouteResult.cc @@ -0,0 +1,87 @@ +/* + * 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::Mse; +using namespace AlibabaCloud::Mse::Model; + +GetAppMessageQueueRouteResult::GetAppMessageQueueRouteResult() : + ServiceResult() +{} + +GetAppMessageQueueRouteResult::GetAppMessageQueueRouteResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +GetAppMessageQueueRouteResult::~GetAppMessageQueueRouteResult() +{} + +void GetAppMessageQueueRouteResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto dataNode = value["Data"]; + if(!dataNode["AppId"].isNull()) + data_.appId = dataNode["AppId"].asString(); + if(!dataNode["Region"].isNull()) + data_.region = dataNode["Region"].asString(); + if(!dataNode["Enable"].isNull()) + data_.enable = dataNode["Enable"].asString() == "true"; + auto allTags = dataNode["Tags"]["tag"]; + for (auto value : allTags) + data_.tags.push_back(value.asString()); + if(!value["HttpStatusCode"].isNull()) + httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString()); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["Code"].isNull()) + code_ = std::stoi(value["Code"].asString()); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + +} + +std::string GetAppMessageQueueRouteResult::getMessage()const +{ + return message_; +} + +int GetAppMessageQueueRouteResult::getHttpStatusCode()const +{ + return httpStatusCode_; +} + +GetAppMessageQueueRouteResult::Data GetAppMessageQueueRouteResult::getData()const +{ + return data_; +} + +int GetAppMessageQueueRouteResult::getCode()const +{ + return code_; +} + +bool GetAppMessageQueueRouteResult::getSuccess()const +{ + return success_; +} + diff --git a/mse/src/model/GetApplicationListRequest.cc b/mse/src/model/GetApplicationListRequest.cc new file mode 100644 index 000000000..56f3edb60 --- /dev/null +++ b/mse/src/model/GetApplicationListRequest.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::Mse::Model::GetApplicationListRequest; + +GetApplicationListRequest::GetApplicationListRequest() + : RpcServiceRequest("mse", "2019-05-31", "GetApplicationList") { + setMethod(HttpRequest::Method::Post); +} + +GetApplicationListRequest::~GetApplicationListRequest() {} + +std::string GetApplicationListRequest::getLanguage() const { + return language_; +} + +void GetApplicationListRequest::setLanguage(const std::string &language) { + language_ = language; + setParameter(std::string("Language"), language); +} + +std::string GetApplicationListRequest::getSource() const { + return source_; +} + +void GetApplicationListRequest::setSource(const std::string &source) { + source_ = source; + setParameter(std::string("Source"), source); +} + +int GetApplicationListRequest::getPageNumber() const { + return pageNumber_; +} + +void GetApplicationListRequest::setPageNumber(int pageNumber) { + pageNumber_ = pageNumber; + setParameter(std::string("PageNumber"), std::to_string(pageNumber)); +} + +std::string GetApplicationListRequest::getAppName() const { + return appName_; +} + +void GetApplicationListRequest::setAppName(const std::string &appName) { + appName_ = appName; + setParameter(std::string("AppName"), appName); +} + +int GetApplicationListRequest::getPageSize() const { + return pageSize_; +} + +void GetApplicationListRequest::setPageSize(int pageSize) { + pageSize_ = pageSize; + setParameter(std::string("PageSize"), std::to_string(pageSize)); +} + +bool GetApplicationListRequest::getSwitchEnable() const { + return switchEnable_; +} + +void GetApplicationListRequest::setSwitchEnable(bool switchEnable) { + switchEnable_ = switchEnable; + setParameter(std::string("SwitchEnable"), switchEnable ? "true" : "false"); +} + +std::string GetApplicationListRequest::getAppId() const { + return appId_; +} + +void GetApplicationListRequest::setAppId(const std::string &appId) { + appId_ = appId; + setParameter(std::string("AppId"), appId); +} + +std::string GetApplicationListRequest::getAcceptLanguage() const { + return acceptLanguage_; +} + +void GetApplicationListRequest::setAcceptLanguage(const std::string &acceptLanguage) { + acceptLanguage_ = acceptLanguage; + setParameter(std::string("AcceptLanguage"), acceptLanguage); +} + +bool GetApplicationListRequest::getSentinelEnable() const { + return sentinelEnable_; +} + +void GetApplicationListRequest::setSentinelEnable(bool sentinelEnable) { + sentinelEnable_ = sentinelEnable; + setParameter(std::string("SentinelEnable"), sentinelEnable ? "true" : "false"); +} + +std::string GetApplicationListRequest::getRegion() const { + return region_; +} + +void GetApplicationListRequest::setRegion(const std::string ®ion) { + region_ = region; + setParameter(std::string("Region"), region); +} + diff --git a/mse/src/model/GetApplicationListResult.cc b/mse/src/model/GetApplicationListResult.cc new file mode 100644 index 000000000..6935da82e --- /dev/null +++ b/mse/src/model/GetApplicationListResult.cc @@ -0,0 +1,110 @@ +/* + * 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::Mse; +using namespace AlibabaCloud::Mse::Model; + +GetApplicationListResult::GetApplicationListResult() : + ServiceResult() +{} + +GetApplicationListResult::GetApplicationListResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +GetApplicationListResult::~GetApplicationListResult() +{} + +void GetApplicationListResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto dataNode = value["Data"]; + if(!dataNode["TotalSize"].isNull()) + data_.totalSize = std::stoi(dataNode["TotalSize"].asString()); + if(!dataNode["PageNumber"].isNull()) + data_.pageNumber = std::stoi(dataNode["PageNumber"].asString()); + if(!dataNode["PageSize"].isNull()) + data_.pageSize = std::stoi(dataNode["PageSize"].asString()); + auto allResultNode = dataNode["Result"]["ApplicationList"]; + for (auto dataNodeResultApplicationList : allResultNode) + { + Data::ApplicationList applicationListObject; + if(!dataNodeResultApplicationList["Status"].isNull()) + applicationListObject.status = std::stol(dataNodeResultApplicationList["Status"].asString()); + if(!dataNodeResultApplicationList["ExtraInfo"].isNull()) + applicationListObject.extraInfo = dataNodeResultApplicationList["ExtraInfo"].asString(); + if(!dataNodeResultApplicationList["AppName"].isNull()) + applicationListObject.appName = dataNodeResultApplicationList["AppName"].asString(); + if(!dataNodeResultApplicationList["LicenseKey"].isNull()) + applicationListObject.licenseKey = dataNodeResultApplicationList["LicenseKey"].asString(); + if(!dataNodeResultApplicationList["AppId"].isNull()) + applicationListObject.appId = dataNodeResultApplicationList["AppId"].asString(); + if(!dataNodeResultApplicationList["UserId"].isNull()) + applicationListObject.userId = dataNodeResultApplicationList["UserId"].asString(); + if(!dataNodeResultApplicationList["InstancesNumber"].isNull()) + applicationListObject.instancesNumber = std::stoi(dataNodeResultApplicationList["InstancesNumber"].asString()); + if(!dataNodeResultApplicationList["Source"].isNull()) + applicationListObject.source = dataNodeResultApplicationList["Source"].asString(); + if(!dataNodeResultApplicationList["Language"].isNull()) + applicationListObject.language = dataNodeResultApplicationList["Language"].asString(); + if(!dataNodeResultApplicationList["RegionId"].isNull()) + applicationListObject.regionId = dataNodeResultApplicationList["RegionId"].asString(); + data_.result.push_back(applicationListObject); + } + if(!value["HttpStatusCode"].isNull()) + httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString()); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["Code"].isNull()) + code_ = std::stoi(value["Code"].asString()); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + +} + +std::string GetApplicationListResult::getMessage()const +{ + return message_; +} + +int GetApplicationListResult::getHttpStatusCode()const +{ + return httpStatusCode_; +} + +GetApplicationListResult::Data GetApplicationListResult::getData()const +{ + return data_; +} + +int GetApplicationListResult::getCode()const +{ + return code_; +} + +bool GetApplicationListResult::getSuccess()const +{ + return success_; +} + diff --git a/mse/src/model/GetBlackWhiteListRequest.cc b/mse/src/model/GetBlackWhiteListRequest.cc index a38ab748a..0a27a6ac3 100644 --- a/mse/src/model/GetBlackWhiteListRequest.cc +++ b/mse/src/model/GetBlackWhiteListRequest.cc @@ -20,7 +20,7 @@ using AlibabaCloud::Mse::Model::GetBlackWhiteListRequest; GetBlackWhiteListRequest::GetBlackWhiteListRequest() : RpcServiceRequest("mse", "2019-05-31", "GetBlackWhiteList") { - setMethod(HttpRequest::Method::Get); + setMethod(HttpRequest::Method::Post); } GetBlackWhiteListRequest::~GetBlackWhiteListRequest() {} diff --git a/mse/src/model/GetDashBoardUrlRequest.cc b/mse/src/model/GetDashBoardUrlRequest.cc new file mode 100644 index 000000000..5db5aee72 --- /dev/null +++ b/mse/src/model/GetDashBoardUrlRequest.cc @@ -0,0 +1,63 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Mse::Model::GetDashBoardUrlRequest; + +GetDashBoardUrlRequest::GetDashBoardUrlRequest() + : RpcServiceRequest("mse", "2019-05-31", "GetDashBoardUrl") { + setMethod(HttpRequest::Method::Post); +} + +GetDashBoardUrlRequest::~GetDashBoardUrlRequest() {} + +std::string GetDashBoardUrlRequest::getInstanceId() const { + return instanceId_; +} + +void GetDashBoardUrlRequest::setInstanceId(const std::string &instanceId) { + instanceId_ = instanceId; + setParameter(std::string("InstanceId"), instanceId); +} + +std::string GetDashBoardUrlRequest::getRegionId() const { + return regionId_; +} + +void GetDashBoardUrlRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); +} + +std::string GetDashBoardUrlRequest::getRequestPars() const { + return requestPars_; +} + +void GetDashBoardUrlRequest::setRequestPars(const std::string &requestPars) { + requestPars_ = requestPars; + setParameter(std::string("RequestPars"), requestPars); +} + +std::string GetDashBoardUrlRequest::getAcceptLanguage() const { + return acceptLanguage_; +} + +void GetDashBoardUrlRequest::setAcceptLanguage(const std::string &acceptLanguage) { + acceptLanguage_ = acceptLanguage; + setParameter(std::string("AcceptLanguage"), acceptLanguage); +} + diff --git a/mse/src/model/DeleteAlarmRuleResult.cc b/mse/src/model/GetDashBoardUrlResult.cc similarity index 63% rename from mse/src/model/DeleteAlarmRuleResult.cc rename to mse/src/model/GetDashBoardUrlResult.cc index e85e8822d..0c4b3d537 100644 --- a/mse/src/model/DeleteAlarmRuleResult.cc +++ b/mse/src/model/GetDashBoardUrlResult.cc @@ -14,58 +14,68 @@ * limitations under the License. */ -#include +#include #include using namespace AlibabaCloud::Mse; using namespace AlibabaCloud::Mse::Model; -DeleteAlarmRuleResult::DeleteAlarmRuleResult() : +GetDashBoardUrlResult::GetDashBoardUrlResult() : ServiceResult() {} -DeleteAlarmRuleResult::DeleteAlarmRuleResult(const std::string &payload) : +GetDashBoardUrlResult::GetDashBoardUrlResult(const std::string &payload) : ServiceResult() { parse(payload); } -DeleteAlarmRuleResult::~DeleteAlarmRuleResult() +GetDashBoardUrlResult::~GetDashBoardUrlResult() {} -void DeleteAlarmRuleResult::parse(const std::string &payload) +void GetDashBoardUrlResult::parse(const std::string &payload) { Json::Reader reader; Json::Value value; reader.parse(payload, value); setRequestId(value["RequestId"].asString()); - if(!value["HttpCode"].isNull()) - httpCode_ = value["HttpCode"].asString(); + auto dataNode = value["Data"]; + if(!dataNode["UrlMap"].isNull()) + data_.urlMap = dataNode["UrlMap"].asString(); + if(!dataNode["Message"].isNull()) + data_.message = dataNode["Message"].asString(); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; if(!value["Message"].isNull()) message_ = value["Message"].asString(); if(!value["ErrorCode"].isNull()) errorCode_ = value["ErrorCode"].asString(); - if(!value["Success"].isNull()) - success_ = value["Success"].asString() == "true"; + if(!value["HttpCode"].isNull()) + httpCode_ = value["HttpCode"].asString(); } -std::string DeleteAlarmRuleResult::getHttpCode()const +std::string GetDashBoardUrlResult::getHttpCode()const { return httpCode_; } -std::string DeleteAlarmRuleResult::getMessage()const +std::string GetDashBoardUrlResult::getMessage()const { return message_; } -std::string DeleteAlarmRuleResult::getErrorCode()const +GetDashBoardUrlResult::Data GetDashBoardUrlResult::getData()const +{ + return data_; +} + +std::string GetDashBoardUrlResult::getErrorCode()const { return errorCode_; } -bool DeleteAlarmRuleResult::getSuccess()const +bool GetDashBoardUrlResult::getSuccess()const { return success_; } diff --git a/mse/src/model/GetGatewayDomainDetailRequest.cc b/mse/src/model/GetGatewayDomainDetailRequest.cc index 86c350fb5..c797fbaf7 100644 --- a/mse/src/model/GetGatewayDomainDetailRequest.cc +++ b/mse/src/model/GetGatewayDomainDetailRequest.cc @@ -20,7 +20,7 @@ using AlibabaCloud::Mse::Model::GetGatewayDomainDetailRequest; GetGatewayDomainDetailRequest::GetGatewayDomainDetailRequest() : RpcServiceRequest("mse", "2019-05-31", "GetGatewayDomainDetail") { - setMethod(HttpRequest::Method::Get); + setMethod(HttpRequest::Method::Post); } GetGatewayDomainDetailRequest::~GetGatewayDomainDetailRequest() {} diff --git a/mse/src/model/GetGatewayDomainDetailResult.cc b/mse/src/model/GetGatewayDomainDetailResult.cc index 676e90c7b..30d201bb4 100644 --- a/mse/src/model/GetGatewayDomainDetailResult.cc +++ b/mse/src/model/GetGatewayDomainDetailResult.cc @@ -53,7 +53,7 @@ void GetGatewayDomainDetailResult::parse(const std::string &payload) if(!dataNode["MustHttps"].isNull()) data_.mustHttps = dataNode["MustHttps"].asString() == "true"; if(!dataNode["CertIdentifier"].isNull()) - data_.certIdentifier = std::stoi(dataNode["CertIdentifier"].asString()); + data_.certIdentifier = dataNode["CertIdentifier"].asString(); if(!dataNode["GmtCreate"].isNull()) data_.gmtCreate = dataNode["GmtCreate"].asString(); if(!dataNode["GmtModified"].isNull()) diff --git a/mse/src/model/GetGatewayOptionResult.cc b/mse/src/model/GetGatewayOptionResult.cc index 361b19b0c..50577705e 100644 --- a/mse/src/model/GetGatewayOptionResult.cc +++ b/mse/src/model/GetGatewayOptionResult.cc @@ -44,6 +44,8 @@ void GetGatewayOptionResult::parse(const std::string &payload) data_.enableHardwareAcceleration = dataNode["EnableHardwareAcceleration"].asString() == "true"; if(!dataNode["DisableHttp2Alpn"].isNull()) data_.disableHttp2Alpn = dataNode["DisableHttp2Alpn"].asString() == "true"; + if(!dataNode["EnableWaf"].isNull()) + data_.enableWaf = dataNode["EnableWaf"].asString() == "true"; auto traceDetailsNode = dataNode["TraceDetails"]; if(!traceDetailsNode["TraceEnabled"].isNull()) data_.traceDetails.traceEnabled = traceDetailsNode["TraceEnabled"].asString() == "true"; diff --git a/mse/src/model/GetGatewayRequest.cc b/mse/src/model/GetGatewayRequest.cc index 9883d2a0e..7ce6777fe 100644 --- a/mse/src/model/GetGatewayRequest.cc +++ b/mse/src/model/GetGatewayRequest.cc @@ -20,7 +20,7 @@ using AlibabaCloud::Mse::Model::GetGatewayRequest; GetGatewayRequest::GetGatewayRequest() : RpcServiceRequest("mse", "2019-05-31", "GetGateway") { - setMethod(HttpRequest::Method::Get); + setMethod(HttpRequest::Method::Post); } GetGatewayRequest::~GetGatewayRequest() {} diff --git a/mse/src/model/GetGatewayRouteDetailRequest.cc b/mse/src/model/GetGatewayRouteDetailRequest.cc index 4fff514bc..c55abfb2c 100644 --- a/mse/src/model/GetGatewayRouteDetailRequest.cc +++ b/mse/src/model/GetGatewayRouteDetailRequest.cc @@ -20,7 +20,7 @@ using AlibabaCloud::Mse::Model::GetGatewayRouteDetailRequest; GetGatewayRouteDetailRequest::GetGatewayRouteDetailRequest() : RpcServiceRequest("mse", "2019-05-31", "GetGatewayRouteDetail") { - setMethod(HttpRequest::Method::Get); + setMethod(HttpRequest::Method::Post); } GetGatewayRouteDetailRequest::~GetGatewayRouteDetailRequest() {} diff --git a/mse/src/model/GetGatewayRouteDetailResult.cc b/mse/src/model/GetGatewayRouteDetailResult.cc index e6953552b..1050def58 100644 --- a/mse/src/model/GetGatewayRouteDetailResult.cc +++ b/mse/src/model/GetGatewayRouteDetailResult.cc @@ -70,6 +70,8 @@ void GetGatewayRouteDetailResult::parse(const std::string &payload) data_.services = dataNode["Services"].asString(); if(!dataNode["DestinationType"].isNull()) data_.destinationType = dataNode["DestinationType"].asString(); + if(!dataNode["EnableWaf"].isNull()) + data_.enableWaf = dataNode["EnableWaf"].asString() == "true"; auto allRouteServicesNode = dataNode["RouteServices"]["RouteServicesItem"]; for (auto dataNodeRouteServicesRouteServicesItem : allRouteServicesNode) { diff --git a/mse/src/model/GetGatewayServiceDetailRequest.cc b/mse/src/model/GetGatewayServiceDetailRequest.cc index a922490c6..c264d6564 100644 --- a/mse/src/model/GetGatewayServiceDetailRequest.cc +++ b/mse/src/model/GetGatewayServiceDetailRequest.cc @@ -20,7 +20,7 @@ using AlibabaCloud::Mse::Model::GetGatewayServiceDetailRequest; GetGatewayServiceDetailRequest::GetGatewayServiceDetailRequest() : RpcServiceRequest("mse", "2019-05-31", "GetGatewayServiceDetail") { - setMethod(HttpRequest::Method::Get); + setMethod(HttpRequest::Method::Post); } GetGatewayServiceDetailRequest::~GetGatewayServiceDetailRequest() {} diff --git a/mse/src/model/GetKubernetesSourceRequest.cc b/mse/src/model/GetKubernetesSourceRequest.cc index 2222f5c27..6740cea60 100644 --- a/mse/src/model/GetKubernetesSourceRequest.cc +++ b/mse/src/model/GetKubernetesSourceRequest.cc @@ -20,7 +20,7 @@ using AlibabaCloud::Mse::Model::GetKubernetesSourceRequest; GetKubernetesSourceRequest::GetKubernetesSourceRequest() : RpcServiceRequest("mse", "2019-05-31", "GetKubernetesSource") { - setMethod(HttpRequest::Method::Get); + setMethod(HttpRequest::Method::Post); } GetKubernetesSourceRequest::~GetKubernetesSourceRequest() {} diff --git a/mse/src/model/ListAlarmContactGroupsRequest.cc b/mse/src/model/ListAlarmContactGroupsRequest.cc deleted file mode 100644 index ab30a9f18..000000000 --- a/mse/src/model/ListAlarmContactGroupsRequest.cc +++ /dev/null @@ -1,63 +0,0 @@ -/* - * 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::Mse::Model::ListAlarmContactGroupsRequest; - -ListAlarmContactGroupsRequest::ListAlarmContactGroupsRequest() - : RpcServiceRequest("mse", "2019-05-31", "ListAlarmContactGroups") { - setMethod(HttpRequest::Method::Get); -} - -ListAlarmContactGroupsRequest::~ListAlarmContactGroupsRequest() {} - -int ListAlarmContactGroupsRequest::getPageNum() const { - return pageNum_; -} - -void ListAlarmContactGroupsRequest::setPageNum(int pageNum) { - pageNum_ = pageNum; - setParameter(std::string("PageNum"), std::to_string(pageNum)); -} - -std::string ListAlarmContactGroupsRequest::getRequestPars() const { - return requestPars_; -} - -void ListAlarmContactGroupsRequest::setRequestPars(const std::string &requestPars) { - requestPars_ = requestPars; - setParameter(std::string("RequestPars"), requestPars); -} - -int ListAlarmContactGroupsRequest::getPageSize() const { - return pageSize_; -} - -void ListAlarmContactGroupsRequest::setPageSize(int pageSize) { - pageSize_ = pageSize; - setParameter(std::string("PageSize"), std::to_string(pageSize)); -} - -std::string ListAlarmContactGroupsRequest::getAcceptLanguage() const { - return acceptLanguage_; -} - -void ListAlarmContactGroupsRequest::setAcceptLanguage(const std::string &acceptLanguage) { - acceptLanguage_ = acceptLanguage; - setParameter(std::string("AcceptLanguage"), acceptLanguage); -} - diff --git a/mse/src/model/ListAlarmContactGroupsResult.cc b/mse/src/model/ListAlarmContactGroupsResult.cc deleted file mode 100644 index e93a0ee6a..000000000 --- a/mse/src/model/ListAlarmContactGroupsResult.cc +++ /dev/null @@ -1,108 +0,0 @@ -/* - * 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::Mse; -using namespace AlibabaCloud::Mse::Model; - -ListAlarmContactGroupsResult::ListAlarmContactGroupsResult() : - ServiceResult() -{} - -ListAlarmContactGroupsResult::ListAlarmContactGroupsResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -ListAlarmContactGroupsResult::~ListAlarmContactGroupsResult() -{} - -void ListAlarmContactGroupsResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - setRequestId(value["RequestId"].asString()); - auto allDataNode = value["Data"]["AlarmContactGroupModel"]; - for (auto valueDataAlarmContactGroupModel : allDataNode) - { - AlarmContactGroupModel dataObject; - if(!valueDataAlarmContactGroupModel["ContactGroupName"].isNull()) - dataObject.contactGroupName = valueDataAlarmContactGroupModel["ContactGroupName"].asString(); - if(!valueDataAlarmContactGroupModel["ContactGroupId"].isNull()) - dataObject.contactGroupId = valueDataAlarmContactGroupModel["ContactGroupId"].asString(); - data_.push_back(dataObject); - } - if(!value["HttpCode"].isNull()) - httpCode_ = value["HttpCode"].asString(); - if(!value["TotalCount"].isNull()) - totalCount_ = std::stoi(value["TotalCount"].asString()); - if(!value["Message"].isNull()) - message_ = value["Message"].asString(); - if(!value["PageSize"].isNull()) - pageSize_ = std::stoi(value["PageSize"].asString()); - if(!value["PageNumber"].isNull()) - pageNumber_ = std::stoi(value["PageNumber"].asString()); - if(!value["ErrorCode"].isNull()) - errorCode_ = value["ErrorCode"].asString(); - if(!value["Success"].isNull()) - success_ = value["Success"].asString() == "true"; - -} - -std::string ListAlarmContactGroupsResult::getHttpCode()const -{ - return httpCode_; -} - -int ListAlarmContactGroupsResult::getTotalCount()const -{ - return totalCount_; -} - -std::string ListAlarmContactGroupsResult::getMessage()const -{ - return message_; -} - -int ListAlarmContactGroupsResult::getPageSize()const -{ - return pageSize_; -} - -int ListAlarmContactGroupsResult::getPageNumber()const -{ - return pageNumber_; -} - -std::vector ListAlarmContactGroupsResult::getData()const -{ - return data_; -} - -std::string ListAlarmContactGroupsResult::getErrorCode()const -{ - return errorCode_; -} - -bool ListAlarmContactGroupsResult::getSuccess()const -{ - return success_; -} - diff --git a/mse/src/model/ListAlarmHistoriesRequest.cc b/mse/src/model/ListAlarmHistoriesRequest.cc deleted file mode 100644 index 3021d3389..000000000 --- a/mse/src/model/ListAlarmHistoriesRequest.cc +++ /dev/null @@ -1,99 +0,0 @@ -/* - * 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::Mse::Model::ListAlarmHistoriesRequest; - -ListAlarmHistoriesRequest::ListAlarmHistoriesRequest() - : RpcServiceRequest("mse", "2019-05-31", "ListAlarmHistories") { - setMethod(HttpRequest::Method::Get); -} - -ListAlarmHistoriesRequest::~ListAlarmHistoriesRequest() {} - -long ListAlarmHistoriesRequest::getEndTime() const { - return endTime_; -} - -void ListAlarmHistoriesRequest::setEndTime(long endTime) { - endTime_ = endTime; - setParameter(std::string("EndTime"), std::to_string(endTime)); -} - -std::string ListAlarmHistoriesRequest::getAlarmMseType() const { - return alarmMseType_; -} - -void ListAlarmHistoriesRequest::setAlarmMseType(const std::string &alarmMseType) { - alarmMseType_ = alarmMseType; - setParameter(std::string("AlarmMseType"), alarmMseType); -} - -long ListAlarmHistoriesRequest::getStartTime() const { - return startTime_; -} - -void ListAlarmHistoriesRequest::setStartTime(long startTime) { - startTime_ = startTime; - setParameter(std::string("StartTime"), std::to_string(startTime)); -} - -int ListAlarmHistoriesRequest::getPageNum() const { - return pageNum_; -} - -void ListAlarmHistoriesRequest::setPageNum(int pageNum) { - pageNum_ = pageNum; - setParameter(std::string("PageNum"), std::to_string(pageNum)); -} - -std::string ListAlarmHistoriesRequest::getRequestPars() const { - return requestPars_; -} - -void ListAlarmHistoriesRequest::setRequestPars(const std::string &requestPars) { - requestPars_ = requestPars; - setParameter(std::string("RequestPars"), requestPars); -} - -int ListAlarmHistoriesRequest::getPageSize() const { - return pageSize_; -} - -void ListAlarmHistoriesRequest::setPageSize(int pageSize) { - pageSize_ = pageSize; - setParameter(std::string("PageSize"), std::to_string(pageSize)); -} - -std::string ListAlarmHistoriesRequest::getAcceptLanguage() const { - return acceptLanguage_; -} - -void ListAlarmHistoriesRequest::setAcceptLanguage(const std::string &acceptLanguage) { - acceptLanguage_ = acceptLanguage; - setParameter(std::string("AcceptLanguage"), acceptLanguage); -} - -std::string ListAlarmHistoriesRequest::getAlarmName() const { - return alarmName_; -} - -void ListAlarmHistoriesRequest::setAlarmName(const std::string &alarmName) { - alarmName_ = alarmName; - setParameter(std::string("AlarmName"), alarmName); -} - diff --git a/mse/src/model/ListAlarmHistoriesResult.cc b/mse/src/model/ListAlarmHistoriesResult.cc deleted file mode 100644 index cdfd3f3b1..000000000 --- a/mse/src/model/ListAlarmHistoriesResult.cc +++ /dev/null @@ -1,116 +0,0 @@ -/* - * 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::Mse; -using namespace AlibabaCloud::Mse::Model; - -ListAlarmHistoriesResult::ListAlarmHistoriesResult() : - ServiceResult() -{} - -ListAlarmHistoriesResult::ListAlarmHistoriesResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -ListAlarmHistoriesResult::~ListAlarmHistoriesResult() -{} - -void ListAlarmHistoriesResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - setRequestId(value["RequestId"].asString()); - auto allDataNode = value["Data"]["AlarmHistoryModel"]; - for (auto valueDataAlarmHistoryModel : allDataNode) - { - AlarmHistoryModel dataObject; - if(!valueDataAlarmHistoryModel["AlarmTime"].isNull()) - dataObject.alarmTime = valueDataAlarmHistoryModel["AlarmTime"].asString(); - if(!valueDataAlarmHistoryModel["AlarmEmail"].isNull()) - dataObject.alarmEmail = valueDataAlarmHistoryModel["AlarmEmail"].asString(); - if(!valueDataAlarmHistoryModel["AlarmDingDing"].isNull()) - dataObject.alarmDingDing = valueDataAlarmHistoryModel["AlarmDingDing"].asString(); - if(!valueDataAlarmHistoryModel["AlarmPhone"].isNull()) - dataObject.alarmPhone = valueDataAlarmHistoryModel["AlarmPhone"].asString(); - if(!valueDataAlarmHistoryModel["AlarmName"].isNull()) - dataObject.alarmName = valueDataAlarmHistoryModel["AlarmName"].asString(); - if(!valueDataAlarmHistoryModel["AlarmContent"].isNull()) - dataObject.alarmContent = valueDataAlarmHistoryModel["AlarmContent"].asString(); - data_.push_back(dataObject); - } - if(!value["HttpCode"].isNull()) - httpCode_ = value["HttpCode"].asString(); - if(!value["TotalCount"].isNull()) - totalCount_ = std::stoi(value["TotalCount"].asString()); - if(!value["Message"].isNull()) - message_ = value["Message"].asString(); - if(!value["PageSize"].isNull()) - pageSize_ = std::stoi(value["PageSize"].asString()); - if(!value["PageNumber"].isNull()) - pageNumber_ = std::stoi(value["PageNumber"].asString()); - if(!value["ErrorCode"].isNull()) - errorCode_ = value["ErrorCode"].asString(); - if(!value["Success"].isNull()) - success_ = value["Success"].asString() == "true"; - -} - -std::string ListAlarmHistoriesResult::getHttpCode()const -{ - return httpCode_; -} - -int ListAlarmHistoriesResult::getTotalCount()const -{ - return totalCount_; -} - -std::string ListAlarmHistoriesResult::getMessage()const -{ - return message_; -} - -int ListAlarmHistoriesResult::getPageSize()const -{ - return pageSize_; -} - -int ListAlarmHistoriesResult::getPageNumber()const -{ - return pageNumber_; -} - -std::vector ListAlarmHistoriesResult::getData()const -{ - return data_; -} - -std::string ListAlarmHistoriesResult::getErrorCode()const -{ - return errorCode_; -} - -bool ListAlarmHistoriesResult::getSuccess()const -{ - return success_; -} - diff --git a/mse/src/model/ListAlarmItemsResult.cc b/mse/src/model/ListAlarmItemsResult.cc deleted file mode 100644 index 344683533..000000000 --- a/mse/src/model/ListAlarmItemsResult.cc +++ /dev/null @@ -1,110 +0,0 @@ -/* - * 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::Mse; -using namespace AlibabaCloud::Mse::Model; - -ListAlarmItemsResult::ListAlarmItemsResult() : - ServiceResult() -{} - -ListAlarmItemsResult::ListAlarmItemsResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -ListAlarmItemsResult::~ListAlarmItemsResult() -{} - -void ListAlarmItemsResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - setRequestId(value["RequestId"].asString()); - auto allDataNode = value["Data"]["AlarmItem"]; - for (auto valueDataAlarmItem : allDataNode) - { - AlarmItem dataObject; - if(!valueDataAlarmItem["AlarmDesc"].isNull()) - dataObject.alarmDesc = valueDataAlarmItem["AlarmDesc"].asString(); - if(!valueDataAlarmItem["ClusterType"].isNull()) - dataObject.clusterType = valueDataAlarmItem["ClusterType"].asString(); - if(!valueDataAlarmItem["AlarmCode"].isNull()) - dataObject.alarmCode = valueDataAlarmItem["AlarmCode"].asString(); - data_.push_back(dataObject); - } - if(!value["HttpCode"].isNull()) - httpCode_ = value["HttpCode"].asString(); - if(!value["TotalCount"].isNull()) - totalCount_ = std::stoi(value["TotalCount"].asString()); - if(!value["Message"].isNull()) - message_ = value["Message"].asString(); - if(!value["PageSize"].isNull()) - pageSize_ = std::stoi(value["PageSize"].asString()); - if(!value["PageNumber"].isNull()) - pageNumber_ = std::stoi(value["PageNumber"].asString()); - if(!value["ErrorCode"].isNull()) - errorCode_ = value["ErrorCode"].asString(); - if(!value["Success"].isNull()) - success_ = value["Success"].asString() == "true"; - -} - -std::string ListAlarmItemsResult::getHttpCode()const -{ - return httpCode_; -} - -int ListAlarmItemsResult::getTotalCount()const -{ - return totalCount_; -} - -std::string ListAlarmItemsResult::getMessage()const -{ - return message_; -} - -int ListAlarmItemsResult::getPageSize()const -{ - return pageSize_; -} - -int ListAlarmItemsResult::getPageNumber()const -{ - return pageNumber_; -} - -std::vector ListAlarmItemsResult::getData()const -{ - return data_; -} - -std::string ListAlarmItemsResult::getErrorCode()const -{ - return errorCode_; -} - -bool ListAlarmItemsResult::getSuccess()const -{ - return success_; -} - diff --git a/mse/src/model/ListAlarmRulesRequest.cc b/mse/src/model/ListAlarmRulesRequest.cc deleted file mode 100644 index a42051dc1..000000000 --- a/mse/src/model/ListAlarmRulesRequest.cc +++ /dev/null @@ -1,72 +0,0 @@ -/* - * 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::Mse::Model::ListAlarmRulesRequest; - -ListAlarmRulesRequest::ListAlarmRulesRequest() - : RpcServiceRequest("mse", "2019-05-31", "ListAlarmRules") { - setMethod(HttpRequest::Method::Get); -} - -ListAlarmRulesRequest::~ListAlarmRulesRequest() {} - -std::string ListAlarmRulesRequest::getAlarmMseType() const { - return alarmMseType_; -} - -void ListAlarmRulesRequest::setAlarmMseType(const std::string &alarmMseType) { - alarmMseType_ = alarmMseType; - setParameter(std::string("AlarmMseType"), alarmMseType); -} - -int ListAlarmRulesRequest::getPageNum() const { - return pageNum_; -} - -void ListAlarmRulesRequest::setPageNum(int pageNum) { - pageNum_ = pageNum; - setParameter(std::string("PageNum"), std::to_string(pageNum)); -} - -std::string ListAlarmRulesRequest::getRequestPars() const { - return requestPars_; -} - -void ListAlarmRulesRequest::setRequestPars(const std::string &requestPars) { - requestPars_ = requestPars; - setParameter(std::string("RequestPars"), requestPars); -} - -int ListAlarmRulesRequest::getPageSize() const { - return pageSize_; -} - -void ListAlarmRulesRequest::setPageSize(int pageSize) { - pageSize_ = pageSize; - setParameter(std::string("PageSize"), std::to_string(pageSize)); -} - -std::string ListAlarmRulesRequest::getAcceptLanguage() const { - return acceptLanguage_; -} - -void ListAlarmRulesRequest::setAcceptLanguage(const std::string &acceptLanguage) { - acceptLanguage_ = acceptLanguage; - setParameter(std::string("AcceptLanguage"), acceptLanguage); -} - diff --git a/mse/src/model/ListAlarmRulesResult.cc b/mse/src/model/ListAlarmRulesResult.cc deleted file mode 100644 index a712c30aa..000000000 --- a/mse/src/model/ListAlarmRulesResult.cc +++ /dev/null @@ -1,114 +0,0 @@ -/* - * 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::Mse; -using namespace AlibabaCloud::Mse::Model; - -ListAlarmRulesResult::ListAlarmRulesResult() : - ServiceResult() -{} - -ListAlarmRulesResult::ListAlarmRulesResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -ListAlarmRulesResult::~ListAlarmRulesResult() -{} - -void ListAlarmRulesResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - setRequestId(value["RequestId"].asString()); - auto allDataNode = value["Data"]["AlarmRuleModel"]; - for (auto valueDataAlarmRuleModel : allDataNode) - { - AlarmRuleModel dataObject; - if(!valueDataAlarmRuleModel["AlarmStatus"].isNull()) - dataObject.alarmStatus = valueDataAlarmRuleModel["AlarmStatus"].asString(); - if(!valueDataAlarmRuleModel["AlarmRuleId"].isNull()) - dataObject.alarmRuleId = valueDataAlarmRuleModel["AlarmRuleId"].asString(); - if(!valueDataAlarmRuleModel["CreateTime"].isNull()) - dataObject.createTime = valueDataAlarmRuleModel["CreateTime"].asString(); - if(!valueDataAlarmRuleModel["AlarmRuleDetail"].isNull()) - dataObject.alarmRuleDetail = valueDataAlarmRuleModel["AlarmRuleDetail"].asString(); - if(!valueDataAlarmRuleModel["AlarmName"].isNull()) - dataObject.alarmName = valueDataAlarmRuleModel["AlarmName"].asString(); - data_.push_back(dataObject); - } - if(!value["HttpCode"].isNull()) - httpCode_ = value["HttpCode"].asString(); - if(!value["TotalCount"].isNull()) - totalCount_ = std::stoi(value["TotalCount"].asString()); - if(!value["Message"].isNull()) - message_ = value["Message"].asString(); - if(!value["PageSize"].isNull()) - pageSize_ = std::stoi(value["PageSize"].asString()); - if(!value["PageNumber"].isNull()) - pageNumber_ = std::stoi(value["PageNumber"].asString()); - if(!value["ErrorCode"].isNull()) - errorCode_ = value["ErrorCode"].asString(); - if(!value["Success"].isNull()) - success_ = value["Success"].asString() == "true"; - -} - -std::string ListAlarmRulesResult::getHttpCode()const -{ - return httpCode_; -} - -int ListAlarmRulesResult::getTotalCount()const -{ - return totalCount_; -} - -std::string ListAlarmRulesResult::getMessage()const -{ - return message_; -} - -int ListAlarmRulesResult::getPageSize()const -{ - return pageSize_; -} - -int ListAlarmRulesResult::getPageNumber()const -{ - return pageNumber_; -} - -std::vector ListAlarmRulesResult::getData()const -{ - return data_; -} - -std::string ListAlarmRulesResult::getErrorCode()const -{ - return errorCode_; -} - -bool ListAlarmRulesResult::getSuccess()const -{ - return success_; -} - diff --git a/mse/src/model/ListClusterDetailFeatureRequest.cc b/mse/src/model/ListClusterDetailFeatureRequest.cc new file mode 100644 index 000000000..161441b7d --- /dev/null +++ b/mse/src/model/ListClusterDetailFeatureRequest.cc @@ -0,0 +1,63 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Mse::Model::ListClusterDetailFeatureRequest; + +ListClusterDetailFeatureRequest::ListClusterDetailFeatureRequest() + : RpcServiceRequest("mse", "2019-05-31", "ListClusterDetailFeature") { + setMethod(HttpRequest::Method::Post); +} + +ListClusterDetailFeatureRequest::~ListClusterDetailFeatureRequest() {} + +std::string ListClusterDetailFeatureRequest::getInstanceId() const { + return instanceId_; +} + +void ListClusterDetailFeatureRequest::setInstanceId(const std::string &instanceId) { + instanceId_ = instanceId; + setParameter(std::string("InstanceId"), instanceId); +} + +std::string ListClusterDetailFeatureRequest::getRegionId() const { + return regionId_; +} + +void ListClusterDetailFeatureRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); +} + +std::string ListClusterDetailFeatureRequest::getRequestPars() const { + return requestPars_; +} + +void ListClusterDetailFeatureRequest::setRequestPars(const std::string &requestPars) { + requestPars_ = requestPars; + setParameter(std::string("RequestPars"), requestPars); +} + +std::string ListClusterDetailFeatureRequest::getAcceptLanguage() const { + return acceptLanguage_; +} + +void ListClusterDetailFeatureRequest::setAcceptLanguage(const std::string &acceptLanguage) { + acceptLanguage_ = acceptLanguage; + setParameter(std::string("AcceptLanguage"), acceptLanguage); +} + diff --git a/mse/src/model/ListClusterDetailFeatureResult.cc b/mse/src/model/ListClusterDetailFeatureResult.cc new file mode 100644 index 000000000..224f39b15 --- /dev/null +++ b/mse/src/model/ListClusterDetailFeatureResult.cc @@ -0,0 +1,93 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Mse; +using namespace AlibabaCloud::Mse::Model; + +ListClusterDetailFeatureResult::ListClusterDetailFeatureResult() : + ServiceResult() +{} + +ListClusterDetailFeatureResult::ListClusterDetailFeatureResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ListClusterDetailFeatureResult::~ListClusterDetailFeatureResult() +{} + +void ListClusterDetailFeatureResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allDataNode = value["Data"]["dataItem"]; + for (auto valueDatadataItem : allDataNode) + { + DataItem dataObject; + if(!valueDatadataItem["FeatureId"].isNull()) + dataObject.featureId = valueDatadataItem["FeatureId"].asString(); + if(!valueDatadataItem["Status"].isNull()) + dataObject.status = valueDatadataItem["Status"].asString(); + if(!valueDatadataItem["Message"].isNull()) + dataObject.message = valueDatadataItem["Message"].asString(); + if(!valueDatadataItem["Extend"].isNull()) + dataObject.extend = valueDatadataItem["Extend"].asString(); + if(!valueDatadataItem["OrderNum"].isNull()) + dataObject.orderNum = valueDatadataItem["OrderNum"].asString(); + data_.push_back(dataObject); + } + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["ErrorCode"].isNull()) + errorCode_ = value["ErrorCode"].asString(); + if(!value["HttpCode"].isNull()) + httpCode_ = value["HttpCode"].asString(); + +} + +std::string ListClusterDetailFeatureResult::getHttpCode()const +{ + return httpCode_; +} + +std::string ListClusterDetailFeatureResult::getMessage()const +{ + return message_; +} + +std::vector ListClusterDetailFeatureResult::getData()const +{ + return data_; +} + +std::string ListClusterDetailFeatureResult::getErrorCode()const +{ + return errorCode_; +} + +bool ListClusterDetailFeatureResult::getSuccess()const +{ + return success_; +} + diff --git a/mse/src/model/ListClustersResult.cc b/mse/src/model/ListClustersResult.cc index 5e6ef8b54..93c20677a 100644 --- a/mse/src/model/ListClustersResult.cc +++ b/mse/src/model/ListClustersResult.cc @@ -77,6 +77,8 @@ void ListClustersResult::parse(const std::string &payload) dataObject.instanceCount = std::stol(valueDataClusterForListModel["InstanceCount"].asString()); if(!valueDataClusterForListModel["ClusterName"].isNull()) dataObject.clusterName = valueDataClusterForListModel["ClusterName"].asString(); + if(!valueDataClusterForListModel["MseVersion"].isNull()) + dataObject.mseVersion = valueDataClusterForListModel["MseVersion"].asString(); data_.push_back(dataObject); } if(!value["HttpCode"].isNull()) diff --git a/mse/src/model/ListGatewayDomainRequest.cc b/mse/src/model/ListGatewayDomainRequest.cc index 3a4513a75..d2442fa64 100644 --- a/mse/src/model/ListGatewayDomainRequest.cc +++ b/mse/src/model/ListGatewayDomainRequest.cc @@ -20,7 +20,7 @@ using AlibabaCloud::Mse::Model::ListGatewayDomainRequest; ListGatewayDomainRequest::ListGatewayDomainRequest() : RpcServiceRequest("mse", "2019-05-31", "ListGatewayDomain") { - setMethod(HttpRequest::Method::Get); + setMethod(HttpRequest::Method::Post); } ListGatewayDomainRequest::~ListGatewayDomainRequest() {} @@ -34,6 +34,15 @@ void ListGatewayDomainRequest::setGatewayUniqueId(const std::string &gatewayUniq setParameter(std::string("GatewayUniqueId"), gatewayUniqueId); } +std::string ListGatewayDomainRequest::getType() const { + return type_; +} + +void ListGatewayDomainRequest::setType(const std::string &type) { + type_ = type; + setParameter(std::string("Type"), type); +} + std::string ListGatewayDomainRequest::getAcceptLanguage() const { return acceptLanguage_; } diff --git a/mse/src/model/ListGatewayDomainResult.cc b/mse/src/model/ListGatewayDomainResult.cc index 590c374ae..1d8d3dfdd 100644 --- a/mse/src/model/ListGatewayDomainResult.cc +++ b/mse/src/model/ListGatewayDomainResult.cc @@ -61,6 +61,13 @@ void ListGatewayDomainResult::parse(const std::string &payload) dataObject.gmtCreate = valueDataDomains["GmtCreate"].asString(); if(!valueDataDomains["GmtModified"].isNull()) dataObject.gmtModified = valueDataDomains["GmtModified"].asString(); + if(!valueDataDomains["Status"].isNull()) + dataObject.status = std::stoi(valueDataDomains["Status"].asString()); + if(!valueDataDomains["Type"].isNull()) + dataObject.type = valueDataDomains["Type"].asString(); + auto commentNode = value["Comment"]; + if(!commentNode["Status"].isNull()) + dataObject.comment.status = commentNode["Status"].asString(); data_.push_back(dataObject); } if(!value["HttpStatusCode"].isNull()) diff --git a/mse/src/model/ListGatewayResult.cc b/mse/src/model/ListGatewayResult.cc index d39f7daee..8f45f06e9 100644 --- a/mse/src/model/ListGatewayResult.cc +++ b/mse/src/model/ListGatewayResult.cc @@ -82,8 +82,12 @@ void ListGatewayResult::parse(const std::string &payload) gatewaysObject.upgrade = dataNodeResultGateways["Upgrade"].asString() == "true"; if(!dataNodeResultGateways["MustUpgrade"].isNull()) gatewaysObject.mustUpgrade = dataNodeResultGateways["MustUpgrade"].asString() == "true"; + if(!dataNodeResultGateways["SupportWasm"].isNull()) + gatewaysObject.supportWasm = dataNodeResultGateways["SupportWasm"].asString() == "true"; if(!dataNodeResultGateways["CurrentVersion"].isNull()) gatewaysObject.currentVersion = dataNodeResultGateways["CurrentVersion"].asString(); + if(!dataNodeResultGateways["AppVersion"].isNull()) + gatewaysObject.appVersion = dataNodeResultGateways["AppVersion"].asString(); if(!dataNodeResultGateways["LatestVersion"].isNull()) gatewaysObject.latestVersion = dataNodeResultGateways["LatestVersion"].asString(); if(!dataNodeResultGateways["Vswitch2"].isNull()) @@ -142,6 +146,11 @@ void ListGatewayResult::parse(const std::string &payload) internetSlbObject.slbId = dataNodeResultGatewaysInternetSlbinternetSlbItem["SlbId"].asString(); gatewaysObject.internetSlb.push_back(internetSlbObject); } + auto initConfigNode = value["InitConfig"]; + if(!initConfigNode["EnableWaf"].isNull()) + gatewaysObject.initConfig.enableWaf = initConfigNode["EnableWaf"].asString() == "true"; + if(!initConfigNode["SupportWaf"].isNull()) + gatewaysObject.initConfig.supportWaf = initConfigNode["SupportWaf"].asString() == "true"; data_.result.push_back(gatewaysObject); } if(!value["HttpStatusCode"].isNull()) diff --git a/mse/src/model/ListGatewayRouteRequest.cc b/mse/src/model/ListGatewayRouteRequest.cc index b9696ee15..1c9fbd244 100644 --- a/mse/src/model/ListGatewayRouteRequest.cc +++ b/mse/src/model/ListGatewayRouteRequest.cc @@ -71,6 +71,7 @@ void ListGatewayRouteRequest::setFilterParams(const ListGatewayRouteRequest::Fil setParameter(std::string("FilterParams") + ".RouteOrder", std::to_string(filterParams.routeOrder)); setParameter(std::string("FilterParams") + ".GatewayUniqueId", filterParams.gatewayUniqueId); setParameter(std::string("FilterParams") + ".Name", filterParams.name); + setParameter(std::string("FilterParams") + ".DomainName", filterParams.domainName); setParameter(std::string("FilterParams") + ".GatewayId", std::to_string(filterParams.gatewayId)); setParameter(std::string("FilterParams") + ".DomainId", std::to_string(filterParams.domainId)); setParameter(std::string("FilterParams") + ".Status", std::to_string(filterParams.status)); diff --git a/mse/src/model/ListGatewayRouteResult.cc b/mse/src/model/ListGatewayRouteResult.cc index d1d2d42d4..92a3e4046 100644 --- a/mse/src/model/ListGatewayRouteResult.cc +++ b/mse/src/model/ListGatewayRouteResult.cc @@ -80,6 +80,10 @@ void ListGatewayRouteResult::parse(const std::string &payload) routesObject.domainName = dataNodeResultRoutes["DomainName"].asString(); if(!dataNodeResultRoutes["DestinationType"].isNull()) routesObject.destinationType = dataNodeResultRoutes["DestinationType"].asString(); + if(!dataNodeResultRoutes["Type"].isNull()) + routesObject.type = dataNodeResultRoutes["Type"].asString(); + if(!dataNodeResultRoutes["EnableWaf"].isNull()) + routesObject.enableWaf = dataNodeResultRoutes["EnableWaf"].asString(); auto allRouteServicesNode = dataNodeResultRoutes["RouteServices"]["RouteServicesItem"]; for (auto dataNodeResultRoutesRouteServicesRouteServicesItem : allRouteServicesNode) { @@ -149,6 +153,9 @@ void ListGatewayRouteResult::parse(const std::string &payload) routesObject.redirect.host = redirectNode["Host"].asString(); if(!redirectNode["Path"].isNull()) routesObject.redirect.path = redirectNode["Path"].asString(); + auto commentNode = value["Comment"]; + if(!commentNode["Status"].isNull()) + routesObject.comment.status = commentNode["Status"].asString(); auto allDomainIdList = value["DomainIdList"]["DomainIdList"]; for (auto value : allDomainIdList) routesObject.domainIdList.push_back(value.asString()); diff --git a/mse/src/model/ListGatewayServiceResult.cc b/mse/src/model/ListGatewayServiceResult.cc index 6903c8e73..6983e673a 100644 --- a/mse/src/model/ListGatewayServiceResult.cc +++ b/mse/src/model/ListGatewayServiceResult.cc @@ -78,6 +78,8 @@ void ListGatewayServiceResult::parse(const std::string &payload) servicesObject.serviceProtocol = dataNodeResultServices["ServiceProtocol"].asString(); if(!dataNodeResultServices["ServicePort"].isNull()) servicesObject.servicePort = std::stol(dataNodeResultServices["ServicePort"].asString()); + if(!dataNodeResultServices["HealehStatus"].isNull()) + servicesObject.healehStatus = dataNodeResultServices["HealehStatus"].asString(); auto allVersionsNode = dataNodeResultServices["Versions"]["VersionsItem"]; for (auto dataNodeResultServicesVersionsVersionsItem : allVersionsNode) { diff --git a/mse/src/model/ListGatewaySlbRequest.cc b/mse/src/model/ListGatewaySlbRequest.cc index 5693314cc..2042b629a 100644 --- a/mse/src/model/ListGatewaySlbRequest.cc +++ b/mse/src/model/ListGatewaySlbRequest.cc @@ -20,7 +20,7 @@ using AlibabaCloud::Mse::Model::ListGatewaySlbRequest; ListGatewaySlbRequest::ListGatewaySlbRequest() : RpcServiceRequest("mse", "2019-05-31", "ListGatewaySlb") { - setMethod(HttpRequest::Method::Get); + setMethod(HttpRequest::Method::Post); } ListGatewaySlbRequest::~ListGatewaySlbRequest() {} diff --git a/mse/src/model/ListInstancesRequest.cc b/mse/src/model/ListInstancesRequest.cc new file mode 100644 index 000000000..480b79192 --- /dev/null +++ b/mse/src/model/ListInstancesRequest.cc @@ -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. + */ + +#include + +using AlibabaCloud::Mse::Model::ListInstancesRequest; + +ListInstancesRequest::ListInstancesRequest() + : RpcServiceRequest("mse", "2019-05-31", "ListInstances") { + setMethod(HttpRequest::Method::Get); +} + +ListInstancesRequest::~ListInstancesRequest() {} + +std::string ListInstancesRequest::getUserId() const { + return userId_; +} + +void ListInstancesRequest::setUserId(const std::string &userId) { + userId_ = userId; + setParameter(std::string("UserId"), userId); +} + +std::string ListInstancesRequest::getAcceptLanguage() const { + return acceptLanguage_; +} + +void ListInstancesRequest::setAcceptLanguage(const std::string &acceptLanguage) { + acceptLanguage_ = acceptLanguage; + setParameter(std::string("AcceptLanguage"), acceptLanguage); +} + +std::string ListInstancesRequest::getRegion() const { + return region_; +} + +void ListInstancesRequest::setRegion(const std::string ®ion) { + region_ = region; + setParameter(std::string("Region"), region); +} + diff --git a/mse/src/model/ListInstancesResult.cc b/mse/src/model/ListInstancesResult.cc new file mode 100644 index 000000000..3fefcd6db --- /dev/null +++ b/mse/src/model/ListInstancesResult.cc @@ -0,0 +1,145 @@ +/* + * 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::Mse; +using namespace AlibabaCloud::Mse::Model; + +ListInstancesResult::ListInstancesResult() : + ServiceResult() +{} + +ListInstancesResult::ListInstancesResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ListInstancesResult::~ListInstancesResult() +{} + +void ListInstancesResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allDataNode = value["Data"]["instance"]; + for (auto valueDatainstance : allDataNode) + { + Instance dataObject; + if(!valueDatainstance["AppClusterId"].isNull()) + dataObject.appClusterId = valueDatainstance["AppClusterId"].asString(); + if(!valueDatainstance["AppVersion"].isNull()) + dataObject.appVersion = valueDatainstance["AppVersion"].asString(); + if(!valueDatainstance["DbPassword"].isNull()) + dataObject.dbPassword = valueDatainstance["DbPassword"].asString(); + if(!valueDatainstance["DbUrl"].isNull()) + dataObject.dbUrl = valueDatainstance["DbUrl"].asString(); + if(!valueDatainstance["DbUserName"].isNull()) + dataObject.dbUserName = valueDatainstance["DbUserName"].asString(); + if(!valueDatainstance["EndDate"].isNull()) + dataObject.endDate = std::stol(valueDatainstance["EndDate"].asString()); + if(!valueDatainstance["EnvironmentId"].isNull()) + dataObject.environmentId = std::stol(valueDatainstance["EnvironmentId"].asString()); + if(!valueDatainstance["GmtCreate"].isNull()) + dataObject.gmtCreate = valueDatainstance["GmtCreate"].asString(); + if(!valueDatainstance["GmtModified"].isNull()) + dataObject.gmtModified = valueDatainstance["GmtModified"].asString(); + if(!valueDatainstance["Id"].isNull()) + dataObject.id = std::stol(valueDatainstance["Id"].asString()); + if(!valueDatainstance["ImageVersion"].isNull()) + dataObject.imageVersion = valueDatainstance["ImageVersion"].asString(); + if(!valueDatainstance["InstanceId"].isNull()) + dataObject.instanceId = valueDatainstance["InstanceId"].asString(); + if(!valueDatainstance["IsCreatedRedis"].isNull()) + dataObject.isCreatedRedis = valueDatainstance["IsCreatedRedis"].asString() == "true"; + if(!valueDatainstance["K8sResourceId"].isNull()) + dataObject.k8sResourceId = std::stol(valueDatainstance["K8sResourceId"].asString()); + if(!valueDatainstance["Name"].isNull()) + dataObject.name = valueDatainstance["Name"].asString(); + if(!valueDatainstance["NameServer"].isNull()) + dataObject.nameServer = valueDatainstance["NameServer"].asString(); + if(!valueDatainstance["OrderId"].isNull()) + dataObject.orderId = valueDatainstance["OrderId"].asString(); + if(!valueDatainstance["PodCidr"].isNull()) + dataObject.podCidr = valueDatainstance["PodCidr"].asString(); + if(!valueDatainstance["PrimaryUser"].isNull()) + dataObject.primaryUser = valueDatainstance["PrimaryUser"].asString(); + if(!valueDatainstance["Region"].isNull()) + dataObject.region = valueDatainstance["Region"].asString(); + if(!valueDatainstance["Replica"].isNull()) + dataObject.replica = std::stol(valueDatainstance["Replica"].asString()); + if(!valueDatainstance["SeataServerUniqueId"].isNull()) + dataObject.seataServerUniqueId = valueDatainstance["SeataServerUniqueId"].asString(); + if(!valueDatainstance["SecurityGroup"].isNull()) + dataObject.securityGroup = valueDatainstance["SecurityGroup"].asString(); + if(!valueDatainstance["Spec"].isNull()) + dataObject.spec = valueDatainstance["Spec"].asString(); + if(!valueDatainstance["StartDate"].isNull()) + dataObject.startDate = valueDatainstance["StartDate"].asString(); + if(!valueDatainstance["Status"].isNull()) + dataObject.status = std::stol(valueDatainstance["Status"].asString()); + if(!valueDatainstance["StatusDesc"].isNull()) + dataObject.statusDesc = valueDatainstance["StatusDesc"].asString(); + if(!valueDatainstance["StoreMode"].isNull()) + dataObject.storeMode = valueDatainstance["StoreMode"].asString(); + if(!valueDatainstance["Vpc"].isNull()) + dataObject.vpc = valueDatainstance["Vpc"].asString(); + if(!valueDatainstance["Vswitch"].isNull()) + dataObject.vswitch = valueDatainstance["Vswitch"].asString(); + if(!valueDatainstance["ZoneId"].isNull()) + dataObject.zoneId = valueDatainstance["ZoneId"].asString(); + data_.push_back(dataObject); + } + if(!value["HttpStatusCode"].isNull()) + httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString()); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["Code"].isNull()) + code_ = std::stoi(value["Code"].asString()); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + +} + +std::string ListInstancesResult::getMessage()const +{ + return message_; +} + +int ListInstancesResult::getHttpStatusCode()const +{ + return httpStatusCode_; +} + +std::vector ListInstancesResult::getData()const +{ + return data_; +} + +int ListInstancesResult::getCode()const +{ + return code_; +} + +bool ListInstancesResult::getSuccess()const +{ + return success_; +} + diff --git a/mse/src/model/ListListenersByConfigResult.cc b/mse/src/model/ListListenersByConfigResult.cc index 72c78f4e6..0a1416c84 100644 --- a/mse/src/model/ListListenersByConfigResult.cc +++ b/mse/src/model/ListListenersByConfigResult.cc @@ -47,6 +47,8 @@ void ListListenersByConfigResult::parse(const std::string &payload) listenersObject.ip = valueListenersListener["Ip"].asString(); if(!valueListenersListener["Md5"].isNull()) listenersObject.md5 = valueListenersListener["Md5"].asString(); + if(!valueListenersListener["Status"].isNull()) + listenersObject.status = valueListenersListener["Status"].asString(); listeners_.push_back(listenersObject); } if(!value["HttpCode"].isNull()) diff --git a/mse/src/model/ListSSLCertRequest.cc b/mse/src/model/ListSSLCertRequest.cc index 4aece0347..74382a5b2 100644 --- a/mse/src/model/ListSSLCertRequest.cc +++ b/mse/src/model/ListSSLCertRequest.cc @@ -20,7 +20,7 @@ using AlibabaCloud::Mse::Model::ListSSLCertRequest; ListSSLCertRequest::ListSSLCertRequest() : RpcServiceRequest("mse", "2019-05-31", "ListSSLCert") { - setMethod(HttpRequest::Method::Get); + setMethod(HttpRequest::Method::Post); } ListSSLCertRequest::~ListSSLCertRequest() {} diff --git a/mse/src/model/ListSecurityGroupRequest.cc b/mse/src/model/ListSecurityGroupRequest.cc new file mode 100644 index 000000000..53a342658 --- /dev/null +++ b/mse/src/model/ListSecurityGroupRequest.cc @@ -0,0 +1,45 @@ +/* + * 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::Mse::Model::ListSecurityGroupRequest; + +ListSecurityGroupRequest::ListSecurityGroupRequest() + : RpcServiceRequest("mse", "2019-05-31", "ListSecurityGroup") { + setMethod(HttpRequest::Method::Post); +} + +ListSecurityGroupRequest::~ListSecurityGroupRequest() {} + +std::string ListSecurityGroupRequest::getGatewayUniqueId() const { + return gatewayUniqueId_; +} + +void ListSecurityGroupRequest::setGatewayUniqueId(const std::string &gatewayUniqueId) { + gatewayUniqueId_ = gatewayUniqueId; + setParameter(std::string("GatewayUniqueId"), gatewayUniqueId); +} + +std::string ListSecurityGroupRequest::getAcceptLanguage() const { + return acceptLanguage_; +} + +void ListSecurityGroupRequest::setAcceptLanguage(const std::string &acceptLanguage) { + acceptLanguage_ = acceptLanguage; + setParameter(std::string("AcceptLanguage"), acceptLanguage); +} + diff --git a/mse/src/model/ListSecurityGroupResult.cc b/mse/src/model/ListSecurityGroupResult.cc new file mode 100644 index 000000000..857b779f1 --- /dev/null +++ b/mse/src/model/ListSecurityGroupResult.cc @@ -0,0 +1,91 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Mse; +using namespace AlibabaCloud::Mse::Model; + +ListSecurityGroupResult::ListSecurityGroupResult() : + ServiceResult() +{} + +ListSecurityGroupResult::ListSecurityGroupResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ListSecurityGroupResult::~ListSecurityGroupResult() +{} + +void ListSecurityGroupResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allDataNode = value["Data"]["Sgs"]; + for (auto valueDataSgs : allDataNode) + { + Sgs dataObject; + if(!valueDataSgs["SecurityGroupId"].isNull()) + dataObject.securityGroupId = valueDataSgs["SecurityGroupId"].asString(); + if(!valueDataSgs["SecurityGroupName"].isNull()) + dataObject.securityGroupName = valueDataSgs["SecurityGroupName"].asString(); + if(!valueDataSgs["VpcId"].isNull()) + dataObject.vpcId = valueDataSgs["VpcId"].asString(); + if(!valueDataSgs["SecurityGroupType"].isNull()) + dataObject.securityGroupType = valueDataSgs["SecurityGroupType"].asString(); + data_.push_back(dataObject); + } + if(!value["HttpStatusCode"].isNull()) + httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString()); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["Code"].isNull()) + code_ = std::stoi(value["Code"].asString()); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + +} + +std::string ListSecurityGroupResult::getMessage()const +{ + return message_; +} + +int ListSecurityGroupResult::getHttpStatusCode()const +{ + return httpStatusCode_; +} + +std::vector ListSecurityGroupResult::getData()const +{ + return data_; +} + +int ListSecurityGroupResult::getCode()const +{ + return code_; +} + +bool ListSecurityGroupResult::getSuccess()const +{ + return success_; +} + diff --git a/mse/src/model/ListSecurityGroupRuleRequest.cc b/mse/src/model/ListSecurityGroupRuleRequest.cc new file mode 100644 index 000000000..89da716d6 --- /dev/null +++ b/mse/src/model/ListSecurityGroupRuleRequest.cc @@ -0,0 +1,45 @@ +/* + * 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::Mse::Model::ListSecurityGroupRuleRequest; + +ListSecurityGroupRuleRequest::ListSecurityGroupRuleRequest() + : RpcServiceRequest("mse", "2019-05-31", "ListSecurityGroupRule") { + setMethod(HttpRequest::Method::Get); +} + +ListSecurityGroupRuleRequest::~ListSecurityGroupRuleRequest() {} + +std::string ListSecurityGroupRuleRequest::getGatewayUniqueId() const { + return gatewayUniqueId_; +} + +void ListSecurityGroupRuleRequest::setGatewayUniqueId(const std::string &gatewayUniqueId) { + gatewayUniqueId_ = gatewayUniqueId; + setParameter(std::string("GatewayUniqueId"), gatewayUniqueId); +} + +std::string ListSecurityGroupRuleRequest::getAcceptLanguage() const { + return acceptLanguage_; +} + +void ListSecurityGroupRuleRequest::setAcceptLanguage(const std::string &acceptLanguage) { + acceptLanguage_ = acceptLanguage; + setParameter(std::string("AcceptLanguage"), acceptLanguage); +} + diff --git a/mse/src/model/ListSecurityGroupRuleResult.cc b/mse/src/model/ListSecurityGroupRuleResult.cc new file mode 100644 index 000000000..8f4e51fbe --- /dev/null +++ b/mse/src/model/ListSecurityGroupRuleResult.cc @@ -0,0 +1,101 @@ +/* + * 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::Mse; +using namespace AlibabaCloud::Mse::Model; + +ListSecurityGroupRuleResult::ListSecurityGroupRuleResult() : + ServiceResult() +{} + +ListSecurityGroupRuleResult::ListSecurityGroupRuleResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ListSecurityGroupRuleResult::~ListSecurityGroupRuleResult() +{} + +void ListSecurityGroupRuleResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allDataNode = value["Data"]["Rules"]; + for (auto valueDataRules : allDataNode) + { + Rules dataObject; + if(!valueDataRules["Id"].isNull()) + dataObject.id = valueDataRules["Id"].asString(); + if(!valueDataRules["SecurityGroupId"].isNull()) + dataObject.securityGroupId = valueDataRules["SecurityGroupId"].asString(); + if(!valueDataRules["PortRange"].isNull()) + dataObject.portRange = valueDataRules["PortRange"].asString(); + if(!valueDataRules["IpProtocol"].isNull()) + dataObject.ipProtocol = valueDataRules["IpProtocol"].asString(); + if(!valueDataRules["GatewayId"].isNull()) + dataObject.gatewayId = std::stol(valueDataRules["GatewayId"].asString()); + if(!valueDataRules["GatewayUniqueId"].isNull()) + dataObject.gatewayUniqueId = valueDataRules["GatewayUniqueId"].asString(); + if(!valueDataRules["GmtCreate"].isNull()) + dataObject.gmtCreate = valueDataRules["GmtCreate"].asString(); + if(!valueDataRules["GmtModified"].isNull()) + dataObject.gmtModified = valueDataRules["GmtModified"].asString(); + if(!valueDataRules["Description"].isNull()) + dataObject.description = valueDataRules["Description"].asString(); + data_.push_back(dataObject); + } + if(!value["HttpStatusCode"].isNull()) + httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString()); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["Code"].isNull()) + code_ = std::stoi(value["Code"].asString()); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + +} + +std::string ListSecurityGroupRuleResult::getMessage()const +{ + return message_; +} + +int ListSecurityGroupRuleResult::getHttpStatusCode()const +{ + return httpStatusCode_; +} + +std::vector ListSecurityGroupRuleResult::getData()const +{ + return data_; +} + +int ListSecurityGroupRuleResult::getCode()const +{ + return code_; +} + +bool ListSecurityGroupRuleResult::getSuccess()const +{ + return success_; +} + diff --git a/mse/src/model/ListServiceSourceRequest.cc b/mse/src/model/ListServiceSourceRequest.cc index ca2d3d7c7..09a186db4 100644 --- a/mse/src/model/ListServiceSourceRequest.cc +++ b/mse/src/model/ListServiceSourceRequest.cc @@ -20,7 +20,7 @@ using AlibabaCloud::Mse::Model::ListServiceSourceRequest; ListServiceSourceRequest::ListServiceSourceRequest() : RpcServiceRequest("mse", "2019-05-31", "ListServiceSource") { - setMethod(HttpRequest::Method::Get); + setMethod(HttpRequest::Method::Post); } ListServiceSourceRequest::~ListServiceSourceRequest() {} diff --git a/mse/src/model/ListServiceSourceResult.cc b/mse/src/model/ListServiceSourceResult.cc index 3deee4b95..f754df3cf 100644 --- a/mse/src/model/ListServiceSourceResult.cc +++ b/mse/src/model/ListServiceSourceResult.cc @@ -63,6 +63,13 @@ void ListServiceSourceResult::parse(const std::string &payload) dataObject.gmtModified = valueDataSources["GmtModified"].asString(); if(!valueDataSources["SourceUniqueId"].isNull()) dataObject.sourceUniqueId = valueDataSources["SourceUniqueId"].asString(); + auto ingressOptionsNode = value["IngressOptions"]; + if(!ingressOptionsNode["EnableIngress"].isNull()) + dataObject.ingressOptions.enableIngress = ingressOptionsNode["EnableIngress"].asString() == "true"; + if(!ingressOptionsNode["IngressClass"].isNull()) + dataObject.ingressOptions.ingressClass = ingressOptionsNode["IngressClass"].asString(); + if(!ingressOptionsNode["WatchNamespace"].isNull()) + dataObject.ingressOptions.watchNamespace = ingressOptionsNode["WatchNamespace"].asString(); data_.push_back(dataObject); } if(!value["HttpStatusCode"].isNull()) diff --git a/mse/src/model/OfflineGatewayRouteRequest.cc b/mse/src/model/OfflineGatewayRouteRequest.cc index 1f8db89d3..26e65c166 100644 --- a/mse/src/model/OfflineGatewayRouteRequest.cc +++ b/mse/src/model/OfflineGatewayRouteRequest.cc @@ -20,7 +20,7 @@ using AlibabaCloud::Mse::Model::OfflineGatewayRouteRequest; OfflineGatewayRouteRequest::OfflineGatewayRouteRequest() : RpcServiceRequest("mse", "2019-05-31", "OfflineGatewayRoute") { - setMethod(HttpRequest::Method::Get); + setMethod(HttpRequest::Method::Post); } OfflineGatewayRouteRequest::~OfflineGatewayRouteRequest() {} diff --git a/mse/src/model/PullServicesRequest.cc b/mse/src/model/PullServicesRequest.cc index db90bbb7a..7fabcf8a8 100644 --- a/mse/src/model/PullServicesRequest.cc +++ b/mse/src/model/PullServicesRequest.cc @@ -20,20 +20,11 @@ using AlibabaCloud::Mse::Model::PullServicesRequest; PullServicesRequest::PullServicesRequest() : RpcServiceRequest("mse", "2019-05-31", "PullServices") { - setMethod(HttpRequest::Method::Get); + setMethod(HttpRequest::Method::Post); } PullServicesRequest::~PullServicesRequest() {} -std::string PullServicesRequest::getSourceId() const { - return sourceId_; -} - -void PullServicesRequest::setSourceId(const std::string &sourceId) { - sourceId_ = sourceId; - setParameter(std::string("SourceId"), sourceId); -} - std::string PullServicesRequest::getGatewayUniqueId() const { return gatewayUniqueId_; } diff --git a/mse/src/model/PullServicesResult.cc b/mse/src/model/PullServicesResult.cc index f6cfc7252..c36f34e3b 100644 --- a/mse/src/model/PullServicesResult.cc +++ b/mse/src/model/PullServicesResult.cc @@ -47,6 +47,8 @@ void PullServicesResult::parse(const std::string &payload) dataObject._namespace = valueDataPullServices["Namespace"].asString(); if(!valueDataPullServices["GroupName"].isNull()) dataObject.groupName = valueDataPullServices["GroupName"].asString(); + if(!valueDataPullServices["NamespaceShowName"].isNull()) + dataObject.namespaceShowName = valueDataPullServices["NamespaceShowName"].asString(); auto allServicesNode = valueDataPullServices["Services"]["ServicesItem"]; for (auto valueDataPullServicesServicesServicesItem : allServicesNode) { diff --git a/mse/src/model/QueryClusterDetailRequest.cc b/mse/src/model/QueryClusterDetailRequest.cc index edd7b3594..53cfb29f1 100644 --- a/mse/src/model/QueryClusterDetailRequest.cc +++ b/mse/src/model/QueryClusterDetailRequest.cc @@ -25,6 +25,15 @@ QueryClusterDetailRequest::QueryClusterDetailRequest() QueryClusterDetailRequest::~QueryClusterDetailRequest() {} +bool QueryClusterDetailRequest::getAclSwitch() const { + return aclSwitch_; +} + +void QueryClusterDetailRequest::setAclSwitch(bool aclSwitch) { + aclSwitch_ = aclSwitch; + setParameter(std::string("AclSwitch"), aclSwitch ? "true" : "false"); +} + std::string QueryClusterDetailRequest::getOrderId() const { return orderId_; } diff --git a/mse/src/model/QueryClusterDetailResult.cc b/mse/src/model/QueryClusterDetailResult.cc index 668829e72..054a1835f 100644 --- a/mse/src/model/QueryClusterDetailResult.cc +++ b/mse/src/model/QueryClusterDetailResult.cc @@ -126,6 +126,8 @@ void QueryClusterDetailResult::parse(const std::string &payload) instanceModelObject.healthStatus = dataNodeInstanceModelsInstanceModel["HealthStatus"].asString(); if(!dataNodeInstanceModelsInstanceModel["CreationTimestamp"].isNull()) instanceModelObject.creationTimestamp = dataNodeInstanceModelsInstanceModel["CreationTimestamp"].asString(); + if(!dataNodeInstanceModelsInstanceModel["Zone"].isNull()) + instanceModelObject.zone = dataNodeInstanceModelsInstanceModel["Zone"].asString(); data_.instanceModels.push_back(instanceModelObject); } if(!value["Message"].isNull()) diff --git a/mse/src/model/QueryGatewayRegionRequest.cc b/mse/src/model/QueryGatewayRegionRequest.cc index 6ba86a467..1dbd79b8f 100644 --- a/mse/src/model/QueryGatewayRegionRequest.cc +++ b/mse/src/model/QueryGatewayRegionRequest.cc @@ -20,7 +20,7 @@ using AlibabaCloud::Mse::Model::QueryGatewayRegionRequest; QueryGatewayRegionRequest::QueryGatewayRegionRequest() : RpcServiceRequest("mse", "2019-05-31", "QueryGatewayRegion") { - setMethod(HttpRequest::Method::Get); + setMethod(HttpRequest::Method::Post); } QueryGatewayRegionRequest::~QueryGatewayRegionRequest() {} diff --git a/mse/src/model/QueryGatewayTypeRequest.cc b/mse/src/model/QueryGatewayTypeRequest.cc index ef655b70c..45e047d80 100644 --- a/mse/src/model/QueryGatewayTypeRequest.cc +++ b/mse/src/model/QueryGatewayTypeRequest.cc @@ -20,7 +20,7 @@ using AlibabaCloud::Mse::Model::QueryGatewayTypeRequest; QueryGatewayTypeRequest::QueryGatewayTypeRequest() : RpcServiceRequest("mse", "2019-05-31", "QueryGatewayType") { - setMethod(HttpRequest::Method::Get); + setMethod(HttpRequest::Method::Post); } QueryGatewayTypeRequest::~QueryGatewayTypeRequest() {} diff --git a/mse/src/model/QueryUserVpcRequest.cc b/mse/src/model/QueryUserVpcRequest.cc new file mode 100644 index 000000000..61434ebbf --- /dev/null +++ b/mse/src/model/QueryUserVpcRequest.cc @@ -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. + */ + +#include + +using AlibabaCloud::Mse::Model::QueryUserVpcRequest; + +QueryUserVpcRequest::QueryUserVpcRequest() + : RpcServiceRequest("mse", "2019-05-31", "QueryUserVpc") { + setMethod(HttpRequest::Method::Get); +} + +QueryUserVpcRequest::~QueryUserVpcRequest() {} + +std::string QueryUserVpcRequest::getUserId() const { + return userId_; +} + +void QueryUserVpcRequest::setUserId(const std::string &userId) { + userId_ = userId; + setParameter(std::string("UserId"), userId); +} + +std::string QueryUserVpcRequest::getAcceptLanguage() const { + return acceptLanguage_; +} + +void QueryUserVpcRequest::setAcceptLanguage(const std::string &acceptLanguage) { + acceptLanguage_ = acceptLanguage; + setParameter(std::string("AcceptLanguage"), acceptLanguage); +} + +std::string QueryUserVpcRequest::getRegion() const { + return region_; +} + +void QueryUserVpcRequest::setRegion(const std::string ®ion) { + region_ = region; + setParameter(std::string("Region"), region); +} + diff --git a/mse/src/model/QueryUserVpcResult.cc b/mse/src/model/QueryUserVpcResult.cc new file mode 100644 index 000000000..2351acf60 --- /dev/null +++ b/mse/src/model/QueryUserVpcResult.cc @@ -0,0 +1,99 @@ +/* + * 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::Mse; +using namespace AlibabaCloud::Mse::Model; + +QueryUserVpcResult::QueryUserVpcResult() : + ServiceResult() +{} + +QueryUserVpcResult::QueryUserVpcResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +QueryUserVpcResult::~QueryUserVpcResult() +{} + +void QueryUserVpcResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allDataNode = value["Data"]["Vpcs"]; + for (auto valueDataVpcs : allDataNode) + { + Vpcs dataObject; + if(!valueDataVpcs["VpcId"].isNull()) + dataObject.vpcId = valueDataVpcs["VpcId"].asString(); + if(!valueDataVpcs["VpcName"].isNull()) + dataObject.vpcName = valueDataVpcs["VpcName"].asString(); + auto allVSwitchListNode = valueDataVpcs["VSwitchList"]["VSwitchListItem"]; + for (auto valueDataVpcsVSwitchListVSwitchListItem : allVSwitchListNode) + { + Vpcs::VSwitchListItem vSwitchListObject; + if(!valueDataVpcsVSwitchListVSwitchListItem["VswitchId"].isNull()) + vSwitchListObject.vswitchId = valueDataVpcsVSwitchListVSwitchListItem["VswitchId"].asString(); + if(!valueDataVpcsVSwitchListVSwitchListItem["VswitchName"].isNull()) + vSwitchListObject.vswitchName = valueDataVpcsVSwitchListVSwitchListItem["VswitchName"].asString(); + if(!valueDataVpcsVSwitchListVSwitchListItem["ZoneId"].isNull()) + vSwitchListObject.zoneId = valueDataVpcsVSwitchListVSwitchListItem["ZoneId"].asString(); + dataObject.vSwitchList.push_back(vSwitchListObject); + } + data_.push_back(dataObject); + } + if(!value["HttpStatusCode"].isNull()) + httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString()); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["Code"].isNull()) + code_ = std::stoi(value["Code"].asString()); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + +} + +std::string QueryUserVpcResult::getMessage()const +{ + return message_; +} + +int QueryUserVpcResult::getHttpStatusCode()const +{ + return httpStatusCode_; +} + +std::vector QueryUserVpcResult::getData()const +{ + return data_; +} + +int QueryUserVpcResult::getCode()const +{ + return code_; +} + +bool QueryUserVpcResult::getSuccess()const +{ + return success_; +} + diff --git a/mse/src/model/QueryZnodeDetailRequest.cc b/mse/src/model/QueryZnodeDetailRequest.cc index c57ccfb26..35e0c06ee 100644 --- a/mse/src/model/QueryZnodeDetailRequest.cc +++ b/mse/src/model/QueryZnodeDetailRequest.cc @@ -43,6 +43,15 @@ void QueryZnodeDetailRequest::setPath(const std::string &path) { setParameter(std::string("Path"), path); } +std::string QueryZnodeDetailRequest::getInstanceId() const { + return instanceId_; +} + +void QueryZnodeDetailRequest::setInstanceId(const std::string &instanceId) { + instanceId_ = instanceId; + setParameter(std::string("InstanceId"), instanceId); +} + std::string QueryZnodeDetailRequest::getRequestPars() const { return requestPars_; } diff --git a/mse/src/model/RestartSeataServerRequest.cc b/mse/src/model/RestartSeataServerRequest.cc new file mode 100644 index 000000000..1a26aa390 --- /dev/null +++ b/mse/src/model/RestartSeataServerRequest.cc @@ -0,0 +1,45 @@ +/* + * 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::Mse::Model::RestartSeataServerRequest; + +RestartSeataServerRequest::RestartSeataServerRequest() + : RpcServiceRequest("mse", "2019-05-31", "RestartSeataServer") { + setMethod(HttpRequest::Method::Post); +} + +RestartSeataServerRequest::~RestartSeataServerRequest() {} + +std::string RestartSeataServerRequest::getAcceptLanguage() const { + return acceptLanguage_; +} + +void RestartSeataServerRequest::setAcceptLanguage(const std::string &acceptLanguage) { + acceptLanguage_ = acceptLanguage; + setParameter(std::string("AcceptLanguage"), acceptLanguage); +} + +std::string RestartSeataServerRequest::getSeataServerUniqueId() const { + return seataServerUniqueId_; +} + +void RestartSeataServerRequest::setSeataServerUniqueId(const std::string &seataServerUniqueId) { + seataServerUniqueId_ = seataServerUniqueId; + setParameter(std::string("SeataServerUniqueId"), seataServerUniqueId); +} + diff --git a/mse/src/model/RestartSeataServerResult.cc b/mse/src/model/RestartSeataServerResult.cc new file mode 100644 index 000000000..bd5a89218 --- /dev/null +++ b/mse/src/model/RestartSeataServerResult.cc @@ -0,0 +1,79 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Mse; +using namespace AlibabaCloud::Mse::Model; + +RestartSeataServerResult::RestartSeataServerResult() : + ServiceResult() +{} + +RestartSeataServerResult::RestartSeataServerResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +RestartSeataServerResult::~RestartSeataServerResult() +{} + +void RestartSeataServerResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["HttpStatusCode"].isNull()) + httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString()); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["Code"].isNull()) + code_ = std::stoi(value["Code"].asString()); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["Data"].isNull()) + data_ = value["Data"].asString(); + +} + +std::string RestartSeataServerResult::getMessage()const +{ + return message_; +} + +int RestartSeataServerResult::getHttpStatusCode()const +{ + return httpStatusCode_; +} + +std::string RestartSeataServerResult::getData()const +{ + return data_; +} + +int RestartSeataServerResult::getCode()const +{ + return code_; +} + +bool RestartSeataServerResult::getSuccess()const +{ + return success_; +} + diff --git a/mse/src/model/ScalingClusterRequest.cc b/mse/src/model/ScalingClusterRequest.cc deleted file mode 100644 index 371ef667c..000000000 --- a/mse/src/model/ScalingClusterRequest.cc +++ /dev/null @@ -1,90 +0,0 @@ -/* - * 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::Mse::Model::ScalingClusterRequest; - -ScalingClusterRequest::ScalingClusterRequest() - : RpcServiceRequest("mse", "2019-05-31", "ScalingCluster") { - setMethod(HttpRequest::Method::Post); -} - -ScalingClusterRequest::~ScalingClusterRequest() {} - -std::string ScalingClusterRequest::getClusterSpecification() const { - return clusterSpecification_; -} - -void ScalingClusterRequest::setClusterSpecification(const std::string &clusterSpecification) { - clusterSpecification_ = clusterSpecification; - setParameter(std::string("ClusterSpecification"), clusterSpecification); -} - -int ScalingClusterRequest::getCpu() const { - return cpu_; -} - -void ScalingClusterRequest::setCpu(int cpu) { - cpu_ = cpu; - setParameter(std::string("Cpu"), std::to_string(cpu)); -} - -std::string ScalingClusterRequest::getClusterId() const { - return clusterId_; -} - -void ScalingClusterRequest::setClusterId(const std::string &clusterId) { - clusterId_ = clusterId; - setParameter(std::string("ClusterId"), clusterId); -} - -std::string ScalingClusterRequest::getInstanceId() const { - return instanceId_; -} - -void ScalingClusterRequest::setInstanceId(const std::string &instanceId) { - instanceId_ = instanceId; - setParameter(std::string("InstanceId"), instanceId); -} - -long ScalingClusterRequest::getMemoryCapacity() const { - return memoryCapacity_; -} - -void ScalingClusterRequest::setMemoryCapacity(long memoryCapacity) { - memoryCapacity_ = memoryCapacity; - setParameter(std::string("MemoryCapacity"), std::to_string(memoryCapacity)); -} - -int ScalingClusterRequest::getInstanceCount() const { - return instanceCount_; -} - -void ScalingClusterRequest::setInstanceCount(int instanceCount) { - instanceCount_ = instanceCount; - setParameter(std::string("InstanceCount"), std::to_string(instanceCount)); -} - -std::string ScalingClusterRequest::getAcceptLanguage() const { - return acceptLanguage_; -} - -void ScalingClusterRequest::setAcceptLanguage(const std::string &acceptLanguage) { - acceptLanguage_ = acceptLanguage; - setParameter(std::string("AcceptLanguage"), acceptLanguage); -} - diff --git a/mse/src/model/UpdateGatewayNameRequest.cc b/mse/src/model/UpdateGatewayNameRequest.cc index 134061642..d5e2c5df2 100644 --- a/mse/src/model/UpdateGatewayNameRequest.cc +++ b/mse/src/model/UpdateGatewayNameRequest.cc @@ -20,7 +20,7 @@ using AlibabaCloud::Mse::Model::UpdateGatewayNameRequest; UpdateGatewayNameRequest::UpdateGatewayNameRequest() : RpcServiceRequest("mse", "2019-05-31", "UpdateGatewayName") { - setMethod(HttpRequest::Method::Get); + setMethod(HttpRequest::Method::Post); } UpdateGatewayNameRequest::~UpdateGatewayNameRequest() {} diff --git a/mse/src/model/UpdateGatewayOptionRequest.cc b/mse/src/model/UpdateGatewayOptionRequest.cc index 746620441..64ffcc982 100644 --- a/mse/src/model/UpdateGatewayOptionRequest.cc +++ b/mse/src/model/UpdateGatewayOptionRequest.cc @@ -40,6 +40,7 @@ UpdateGatewayOptionRequest::GatewayOption UpdateGatewayOptionRequest::getGateway void UpdateGatewayOptionRequest::setGatewayOption(const UpdateGatewayOptionRequest::GatewayOption &gatewayOption) { gatewayOption_ = gatewayOption; + setParameter(std::string("GatewayOption") + ".EnableWaf", gatewayOption.enableWaf ? "true" : "false"); setParameter(std::string("GatewayOption") + ".EnableHardwareAcceleration", gatewayOption.enableHardwareAcceleration ? "true" : "false"); setParameter(std::string("GatewayOption") + ".DisableHttp2Alpn", gatewayOption.disableHttp2Alpn ? "true" : "false"); setParameter(std::string("GatewayOption") + ".LogConfigDetails.ProjectName", gatewayOption.logConfigDetails.projectName); diff --git a/mse/src/model/UpdateGatewayOptionResult.cc b/mse/src/model/UpdateGatewayOptionResult.cc index 8a4bdb808..0d3cb80c3 100644 --- a/mse/src/model/UpdateGatewayOptionResult.cc +++ b/mse/src/model/UpdateGatewayOptionResult.cc @@ -44,6 +44,8 @@ void UpdateGatewayOptionResult::parse(const std::string &payload) data_.enableHardwareAcceleration = dataNode["EnableHardwareAcceleration"].asString() == "true"; if(!dataNode["DisableHttp2Alpn"].isNull()) data_.disableHttp2Alpn = dataNode["DisableHttp2Alpn"].asString() == "true"; + if(!dataNode["EnableWaf"].isNull()) + data_.enableWaf = dataNode["EnableWaf"].asString() == "true"; auto traceDetailsNode = dataNode["TraceDetails"]; if(!traceDetailsNode["TraceEnabled"].isNull()) data_.traceDetails.traceEnabled = traceDetailsNode["TraceEnabled"].asString() == "true"; diff --git a/mse/src/model/UpdateGatewayRouteRequest.cc b/mse/src/model/UpdateGatewayRouteRequest.cc index dfa3e9fb5..f9070009a 100644 --- a/mse/src/model/UpdateGatewayRouteRequest.cc +++ b/mse/src/model/UpdateGatewayRouteRequest.cc @@ -79,6 +79,15 @@ void UpdateGatewayRouteRequest::setRouteOrder(int routeOrder) { setParameter(std::string("RouteOrder"), std::to_string(routeOrder)); } +bool UpdateGatewayRouteRequest::getEnableWaf() const { + return enableWaf_; +} + +void UpdateGatewayRouteRequest::setEnableWaf(bool enableWaf) { + enableWaf_ = enableWaf; + setParameter(std::string("EnableWaf"), enableWaf ? "true" : "false"); +} + std::vector UpdateGatewayRouteRequest::getServices() const { return services_; } diff --git a/mse/src/model/UpdateGatewayRouteWafStatusRequest.cc b/mse/src/model/UpdateGatewayRouteWafStatusRequest.cc new file mode 100644 index 000000000..f8509fe1d --- /dev/null +++ b/mse/src/model/UpdateGatewayRouteWafStatusRequest.cc @@ -0,0 +1,63 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Mse::Model::UpdateGatewayRouteWafStatusRequest; + +UpdateGatewayRouteWafStatusRequest::UpdateGatewayRouteWafStatusRequest() + : RpcServiceRequest("mse", "2019-05-31", "UpdateGatewayRouteWafStatus") { + setMethod(HttpRequest::Method::Post); +} + +UpdateGatewayRouteWafStatusRequest::~UpdateGatewayRouteWafStatusRequest() {} + +bool UpdateGatewayRouteWafStatusRequest::getEnableWaf() const { + return enableWaf_; +} + +void UpdateGatewayRouteWafStatusRequest::setEnableWaf(bool enableWaf) { + enableWaf_ = enableWaf; + setParameter(std::string("EnableWaf"), enableWaf ? "true" : "false"); +} + +std::string UpdateGatewayRouteWafStatusRequest::getGatewayUniqueId() const { + return gatewayUniqueId_; +} + +void UpdateGatewayRouteWafStatusRequest::setGatewayUniqueId(const std::string &gatewayUniqueId) { + gatewayUniqueId_ = gatewayUniqueId; + setParameter(std::string("GatewayUniqueId"), gatewayUniqueId); +} + +long UpdateGatewayRouteWafStatusRequest::getRouteId() const { + return routeId_; +} + +void UpdateGatewayRouteWafStatusRequest::setRouteId(long routeId) { + routeId_ = routeId; + setParameter(std::string("RouteId"), std::to_string(routeId)); +} + +std::string UpdateGatewayRouteWafStatusRequest::getAcceptLanguage() const { + return acceptLanguage_; +} + +void UpdateGatewayRouteWafStatusRequest::setAcceptLanguage(const std::string &acceptLanguage) { + acceptLanguage_ = acceptLanguage; + setParameter(std::string("AcceptLanguage"), acceptLanguage); +} + diff --git a/mse/src/model/UpdateGatewayRouteWafStatusResult.cc b/mse/src/model/UpdateGatewayRouteWafStatusResult.cc new file mode 100644 index 000000000..b87b355f1 --- /dev/null +++ b/mse/src/model/UpdateGatewayRouteWafStatusResult.cc @@ -0,0 +1,250 @@ +/* + * 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::Mse; +using namespace AlibabaCloud::Mse::Model; + +UpdateGatewayRouteWafStatusResult::UpdateGatewayRouteWafStatusResult() : + ServiceResult() +{} + +UpdateGatewayRouteWafStatusResult::UpdateGatewayRouteWafStatusResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +UpdateGatewayRouteWafStatusResult::~UpdateGatewayRouteWafStatusResult() +{} + +void UpdateGatewayRouteWafStatusResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto dataNode = value["Data"]; + if(!dataNode["Id"].isNull()) + data_.id = std::stol(dataNode["Id"].asString()); + if(!dataNode["Name"].isNull()) + data_.name = dataNode["Name"].asString(); + if(!dataNode["GatewayUniqueId"].isNull()) + data_.gatewayUniqueId = dataNode["GatewayUniqueId"].asString(); + if(!dataNode["GatewayId"].isNull()) + data_.gatewayId = std::stol(dataNode["GatewayId"].asString()); + if(!dataNode["DefaultServiceId"].isNull()) + data_.defaultServiceId = std::stol(dataNode["DefaultServiceId"].asString()); + if(!dataNode["DefaultServiceName"].isNull()) + data_.defaultServiceName = dataNode["DefaultServiceName"].asString(); + if(!dataNode["Status"].isNull()) + data_.status = std::stoi(dataNode["Status"].asString()); + if(!dataNode["GmtCreate"].isNull()) + data_.gmtCreate = dataNode["GmtCreate"].asString(); + if(!dataNode["GmtModified"].isNull()) + data_.gmtModified = dataNode["GmtModified"].asString(); + if(!dataNode["RouteOrder"].isNull()) + data_.routeOrder = std::stoi(dataNode["RouteOrder"].asString()); + if(!dataNode["Predicates"].isNull()) + data_.predicates = dataNode["Predicates"].asString(); + if(!dataNode["DomainId"].isNull()) + data_.domainId = std::stol(dataNode["DomainId"].asString()); + if(!dataNode["DomainName"].isNull()) + data_.domainName = dataNode["DomainName"].asString(); + if(!dataNode["Services"].isNull()) + data_.services = dataNode["Services"].asString(); + if(!dataNode["DestinationType"].isNull()) + data_.destinationType = dataNode["DestinationType"].asString(); + if(!dataNode["EnableWaf"].isNull()) + data_.enableWaf = dataNode["EnableWaf"].asString() == "true"; + auto allRouteServicesNode = dataNode["RouteServices"]["RouteServicesItem"]; + for (auto dataNodeRouteServicesRouteServicesItem : allRouteServicesNode) + { + Data::RouteServicesItem routeServicesItemObject; + if(!dataNodeRouteServicesRouteServicesItem["ServiceId"].isNull()) + routeServicesItemObject.serviceId = std::stol(dataNodeRouteServicesRouteServicesItem["ServiceId"].asString()); + if(!dataNodeRouteServicesRouteServicesItem["ServiceName"].isNull()) + routeServicesItemObject.serviceName = dataNodeRouteServicesRouteServicesItem["ServiceName"].asString(); + if(!dataNodeRouteServicesRouteServicesItem["Percent"].isNull()) + routeServicesItemObject.percent = std::stoi(dataNodeRouteServicesRouteServicesItem["Percent"].asString()); + if(!dataNodeRouteServicesRouteServicesItem["Version"].isNull()) + routeServicesItemObject.version = dataNodeRouteServicesRouteServicesItem["Version"].asString(); + if(!dataNodeRouteServicesRouteServicesItem["Name"].isNull()) + routeServicesItemObject.name = dataNodeRouteServicesRouteServicesItem["Name"].asString(); + if(!dataNodeRouteServicesRouteServicesItem["SourceType"].isNull()) + routeServicesItemObject.sourceType = dataNodeRouteServicesRouteServicesItem["SourceType"].asString(); + if(!dataNodeRouteServicesRouteServicesItem["Namespace"].isNull()) + routeServicesItemObject._namespace = dataNodeRouteServicesRouteServicesItem["Namespace"].asString(); + if(!dataNodeRouteServicesRouteServicesItem["GroupName"].isNull()) + routeServicesItemObject.groupName = dataNodeRouteServicesRouteServicesItem["GroupName"].asString(); + data_.routeServices.push_back(routeServicesItemObject); + } + auto routePredicatesNode = dataNode["RoutePredicates"]; + auto allHeaderPredicatesNode = routePredicatesNode["HeaderPredicates"]["HeaderPredicatesItem"]; + for (auto routePredicatesNodeHeaderPredicatesHeaderPredicatesItem : allHeaderPredicatesNode) + { + Data::RoutePredicates::HeaderPredicatesItem headerPredicatesItemObject; + if(!routePredicatesNodeHeaderPredicatesHeaderPredicatesItem["Key"].isNull()) + headerPredicatesItemObject.key = routePredicatesNodeHeaderPredicatesHeaderPredicatesItem["Key"].asString(); + if(!routePredicatesNodeHeaderPredicatesHeaderPredicatesItem["Value"].isNull()) + headerPredicatesItemObject.value = routePredicatesNodeHeaderPredicatesHeaderPredicatesItem["Value"].asString(); + if(!routePredicatesNodeHeaderPredicatesHeaderPredicatesItem["Type"].isNull()) + headerPredicatesItemObject.type = routePredicatesNodeHeaderPredicatesHeaderPredicatesItem["Type"].asString(); + data_.routePredicates.headerPredicates.push_back(headerPredicatesItemObject); + } + auto allQueryPredicatesNode = routePredicatesNode["QueryPredicates"]["QueryPredicatesItem"]; + for (auto routePredicatesNodeQueryPredicatesQueryPredicatesItem : allQueryPredicatesNode) + { + Data::RoutePredicates::QueryPredicatesItem queryPredicatesItemObject; + if(!routePredicatesNodeQueryPredicatesQueryPredicatesItem["Key"].isNull()) + queryPredicatesItemObject.key = routePredicatesNodeQueryPredicatesQueryPredicatesItem["Key"].asString(); + if(!routePredicatesNodeQueryPredicatesQueryPredicatesItem["Value"].isNull()) + queryPredicatesItemObject.value = routePredicatesNodeQueryPredicatesQueryPredicatesItem["Value"].asString(); + if(!routePredicatesNodeQueryPredicatesQueryPredicatesItem["Type"].isNull()) + queryPredicatesItemObject.type = routePredicatesNodeQueryPredicatesQueryPredicatesItem["Type"].asString(); + data_.routePredicates.queryPredicates.push_back(queryPredicatesItemObject); + } + auto pathPredicatesNode = routePredicatesNode["PathPredicates"]; + if(!pathPredicatesNode["Path"].isNull()) + data_.routePredicates.pathPredicates.path = pathPredicatesNode["Path"].asString(); + if(!pathPredicatesNode["Type"].isNull()) + data_.routePredicates.pathPredicates.type = pathPredicatesNode["Type"].asString(); + if(!pathPredicatesNode["IgnoreCase"].isNull()) + data_.routePredicates.pathPredicates.ignoreCase = pathPredicatesNode["IgnoreCase"].asString() == "true"; + auto allMethodPredicates = routePredicatesNode["MethodPredicates"]["MethodPredicates"]; + for (auto value : allMethodPredicates) + data_.routePredicates.methodPredicates.push_back(value.asString()); + auto hTTPRewriteNode = dataNode["HTTPRewrite"]; + if(!hTTPRewriteNode["Status"].isNull()) + data_.hTTPRewrite.status = hTTPRewriteNode["Status"].asString(); + if(!hTTPRewriteNode["Path"].isNull()) + data_.hTTPRewrite.path = hTTPRewriteNode["Path"].asString(); + if(!hTTPRewriteNode["Host"].isNull()) + data_.hTTPRewrite.host = hTTPRewriteNode["Host"].asString(); + if(!hTTPRewriteNode["PathType"].isNull()) + data_.hTTPRewrite.pathType = hTTPRewriteNode["PathType"].asString(); + if(!hTTPRewriteNode["Pattern"].isNull()) + data_.hTTPRewrite.pattern = hTTPRewriteNode["Pattern"].asString(); + if(!hTTPRewriteNode["Substitution"].isNull()) + data_.hTTPRewrite.substitution = hTTPRewriteNode["Substitution"].asString(); + auto headerOpNode = dataNode["HeaderOp"]; + if(!headerOpNode["Status"].isNull()) + data_.headerOp.status = headerOpNode["Status"].asString(); + auto allHeaderOpItemsNode = headerOpNode["HeaderOpItems"]["HeaderOpItemsItem"]; + for (auto headerOpNodeHeaderOpItemsHeaderOpItemsItem : allHeaderOpItemsNode) + { + Data::HeaderOp::HeaderOpItemsItem headerOpItemsItemObject; + if(!headerOpNodeHeaderOpItemsHeaderOpItemsItem["DirectionType"].isNull()) + headerOpItemsItemObject.directionType = headerOpNodeHeaderOpItemsHeaderOpItemsItem["DirectionType"].asString(); + if(!headerOpNodeHeaderOpItemsHeaderOpItemsItem["OpType"].isNull()) + headerOpItemsItemObject.opType = headerOpNodeHeaderOpItemsHeaderOpItemsItem["OpType"].asString(); + if(!headerOpNodeHeaderOpItemsHeaderOpItemsItem["Key"].isNull()) + headerOpItemsItemObject.key = headerOpNodeHeaderOpItemsHeaderOpItemsItem["Key"].asString(); + if(!headerOpNodeHeaderOpItemsHeaderOpItemsItem["Value"].isNull()) + headerOpItemsItemObject.value = headerOpNodeHeaderOpItemsHeaderOpItemsItem["Value"].asString(); + data_.headerOp.headerOpItems.push_back(headerOpItemsItemObject); + } + auto directResponseNode = dataNode["DirectResponse"]; + if(!directResponseNode["Code"].isNull()) + data_.directResponse.code = std::stoi(directResponseNode["Code"].asString()); + if(!directResponseNode["Body"].isNull()) + data_.directResponse.body = directResponseNode["Body"].asString(); + auto corsNode = dataNode["Cors"]; + if(!corsNode["Status"].isNull()) + data_.cors.status = corsNode["Status"].asString(); + if(!corsNode["AllowOrigins"].isNull()) + data_.cors.allowOrigins = corsNode["AllowOrigins"].asString(); + if(!corsNode["AllowMethods"].isNull()) + data_.cors.allowMethods = corsNode["AllowMethods"].asString(); + if(!corsNode["AllowHeaders"].isNull()) + data_.cors.allowHeaders = corsNode["AllowHeaders"].asString(); + if(!corsNode["ExposeHeaders"].isNull()) + data_.cors.exposeHeaders = corsNode["ExposeHeaders"].asString(); + if(!corsNode["TimeUnit"].isNull()) + data_.cors.timeUnit = corsNode["TimeUnit"].asString(); + if(!corsNode["UnitNum"].isNull()) + data_.cors.unitNum = std::stol(corsNode["UnitNum"].asString()); + if(!corsNode["AllowCredentials"].isNull()) + data_.cors.allowCredentials = corsNode["AllowCredentials"].asString() == "true"; + auto timeoutNode = dataNode["Timeout"]; + if(!timeoutNode["UnitNum"].isNull()) + data_.timeout.unitNum = std::stoi(timeoutNode["UnitNum"].asString()); + if(!timeoutNode["TimeUnit"].isNull()) + data_.timeout.timeUnit = timeoutNode["TimeUnit"].asString(); + if(!timeoutNode["Status"].isNull()) + data_.timeout.status = timeoutNode["Status"].asString(); + auto retryNode = dataNode["Retry"]; + if(!retryNode["Attempts"].isNull()) + data_.retry.attempts = std::stoi(retryNode["Attempts"].asString()); + if(!retryNode["Status"].isNull()) + data_.retry.status = retryNode["Status"].asString(); + auto allRetryOn = retryNode["RetryOn"]["retryOn"]; + for (auto value : allRetryOn) + data_.retry.retryOn.push_back(value.asString()); + auto allHttpCodes = retryNode["HttpCodes"]["httpCodes"]; + for (auto value : allHttpCodes) + data_.retry.httpCodes.push_back(value.asString()); + auto redirectNode = dataNode["Redirect"]; + if(!redirectNode["Code"].isNull()) + data_.redirect.code = std::stoi(redirectNode["Code"].asString()); + if(!redirectNode["Host"].isNull()) + data_.redirect.host = redirectNode["Host"].asString(); + if(!redirectNode["Path"].isNull()) + data_.redirect.path = redirectNode["Path"].asString(); + auto allDomainIdList = dataNode["DomainIdList"]["DomainIdList"]; + for (auto value : allDomainIdList) + data_.domainIdList.push_back(value.asString()); + auto allDomainNameList = dataNode["DomainNameList"]["DomainNameList"]; + for (auto value : allDomainNameList) + data_.domainNameList.push_back(value.asString()); + if(!value["HttpStatusCode"].isNull()) + httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString()); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["Code"].isNull()) + code_ = std::stoi(value["Code"].asString()); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + +} + +std::string UpdateGatewayRouteWafStatusResult::getMessage()const +{ + return message_; +} + +int UpdateGatewayRouteWafStatusResult::getHttpStatusCode()const +{ + return httpStatusCode_; +} + +UpdateGatewayRouteWafStatusResult::Data UpdateGatewayRouteWafStatusResult::getData()const +{ + return data_; +} + +int UpdateGatewayRouteWafStatusResult::getCode()const +{ + return code_; +} + +bool UpdateGatewayRouteWafStatusResult::getSuccess()const +{ + return success_; +} + diff --git a/mse/src/model/UpdateGatewayServiceTrafficPolicyRequest.cc b/mse/src/model/UpdateGatewayServiceTrafficPolicyRequest.cc new file mode 100644 index 000000000..9cfef02a1 --- /dev/null +++ b/mse/src/model/UpdateGatewayServiceTrafficPolicyRequest.cc @@ -0,0 +1,81 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Mse::Model::UpdateGatewayServiceTrafficPolicyRequest; + +UpdateGatewayServiceTrafficPolicyRequest::UpdateGatewayServiceTrafficPolicyRequest() + : RpcServiceRequest("mse", "2019-05-31", "UpdateGatewayServiceTrafficPolicy") { + setMethod(HttpRequest::Method::Post); +} + +UpdateGatewayServiceTrafficPolicyRequest::~UpdateGatewayServiceTrafficPolicyRequest() {} + +std::string UpdateGatewayServiceTrafficPolicyRequest::getGatewayUniqueId() const { + return gatewayUniqueId_; +} + +void UpdateGatewayServiceTrafficPolicyRequest::setGatewayUniqueId(const std::string &gatewayUniqueId) { + gatewayUniqueId_ = gatewayUniqueId; + setParameter(std::string("GatewayUniqueId"), gatewayUniqueId); +} + +UpdateGatewayServiceTrafficPolicyRequest::GatewayTrafficPolicy UpdateGatewayServiceTrafficPolicyRequest::getGatewayTrafficPolicy() const { + return gatewayTrafficPolicy_; +} + +void UpdateGatewayServiceTrafficPolicyRequest::setGatewayTrafficPolicy(const UpdateGatewayServiceTrafficPolicyRequest::GatewayTrafficPolicy &gatewayTrafficPolicy) { + gatewayTrafficPolicy_ = gatewayTrafficPolicy; + setParameter(std::string("GatewayTrafficPolicy") + ".TlsSetting.TlsMode", gatewayTrafficPolicy.tlsSetting.tlsMode); + setParameter(std::string("GatewayTrafficPolicy") + ".TlsSetting.CaCertContent", gatewayTrafficPolicy.tlsSetting.caCertContent); + setParameter(std::string("GatewayTrafficPolicy") + ".TlsSetting.CertId", gatewayTrafficPolicy.tlsSetting.certId); + setParameter(std::string("GatewayTrafficPolicy") + ".TlsSetting.Sni", gatewayTrafficPolicy.tlsSetting.sni); + setParameter(std::string("GatewayTrafficPolicy") + ".LoadBalancerSettings.LoadbalancerType", gatewayTrafficPolicy.loadBalancerSettings.loadbalancerType); + setParameter(std::string("GatewayTrafficPolicy") + ".LoadBalancerSettings.ConsistentHashLBConfig.HttpCookie.Path", gatewayTrafficPolicy.loadBalancerSettings.consistentHashLBConfig.httpCookie.path); + setParameter(std::string("GatewayTrafficPolicy") + ".LoadBalancerSettings.ConsistentHashLBConfig.HttpCookie.Name", gatewayTrafficPolicy.loadBalancerSettings.consistentHashLBConfig.httpCookie.name); + setParameter(std::string("GatewayTrafficPolicy") + ".LoadBalancerSettings.ConsistentHashLBConfig.HttpCookie.TTL", gatewayTrafficPolicy.loadBalancerSettings.consistentHashLBConfig.httpCookie.tTL); + setParameter(std::string("GatewayTrafficPolicy") + ".LoadBalancerSettings.ConsistentHashLBConfig.ParameterName", gatewayTrafficPolicy.loadBalancerSettings.consistentHashLBConfig.parameterName); + setParameter(std::string("GatewayTrafficPolicy") + ".LoadBalancerSettings.ConsistentHashLBConfig.ConsistentHashLBType", gatewayTrafficPolicy.loadBalancerSettings.consistentHashLBConfig.consistentHashLBType); +} + +std::string UpdateGatewayServiceTrafficPolicyRequest::getAcceptLanguage() const { + return acceptLanguage_; +} + +void UpdateGatewayServiceTrafficPolicyRequest::setAcceptLanguage(const std::string &acceptLanguage) { + acceptLanguage_ = acceptLanguage; + setParameter(std::string("AcceptLanguage"), acceptLanguage); +} + +long UpdateGatewayServiceTrafficPolicyRequest::getServiceId() const { + return serviceId_; +} + +void UpdateGatewayServiceTrafficPolicyRequest::setServiceId(long serviceId) { + serviceId_ = serviceId; + setParameter(std::string("ServiceId"), std::to_string(serviceId)); +} + +long UpdateGatewayServiceTrafficPolicyRequest::getGatewayId() const { + return gatewayId_; +} + +void UpdateGatewayServiceTrafficPolicyRequest::setGatewayId(long gatewayId) { + gatewayId_ = gatewayId; + setParameter(std::string("GatewayId"), std::to_string(gatewayId)); +} + diff --git a/mse/src/model/UpdateGatewayServiceTrafficPolicyResult.cc b/mse/src/model/UpdateGatewayServiceTrafficPolicyResult.cc new file mode 100644 index 000000000..d5bdb67bb --- /dev/null +++ b/mse/src/model/UpdateGatewayServiceTrafficPolicyResult.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 +#include + +using namespace AlibabaCloud::Mse; +using namespace AlibabaCloud::Mse::Model; + +UpdateGatewayServiceTrafficPolicyResult::UpdateGatewayServiceTrafficPolicyResult() : + ServiceResult() +{} + +UpdateGatewayServiceTrafficPolicyResult::UpdateGatewayServiceTrafficPolicyResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +UpdateGatewayServiceTrafficPolicyResult::~UpdateGatewayServiceTrafficPolicyResult() +{} + +void UpdateGatewayServiceTrafficPolicyResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto dataNode = value["Data"]; + if(!dataNode["Id"].isNull()) + data_.id = std::stol(dataNode["Id"].asString()); + if(!dataNode["Name"].isNull()) + data_.name = dataNode["Name"].asString(); + if(!dataNode["SourceType"].isNull()) + data_.sourceType = dataNode["SourceType"].asString(); + if(!dataNode["GatewayUniqueId"].isNull()) + data_.gatewayUniqueId = dataNode["GatewayUniqueId"].asString(); + if(!dataNode["MetaInfo"].isNull()) + data_.metaInfo = dataNode["MetaInfo"].asString(); + if(!dataNode["Namespace"].isNull()) + data_._namespace = dataNode["Namespace"].asString(); + if(!dataNode["GroupName"].isNull()) + data_.groupName = dataNode["GroupName"].asString(); + auto gatewayTrafficPolicyNode = dataNode["GatewayTrafficPolicy"]; + auto tlsSettingNode = gatewayTrafficPolicyNode["TlsSetting"]; + if(!tlsSettingNode["TlsMode"].isNull()) + data_.gatewayTrafficPolicy.tlsSetting.tlsMode = tlsSettingNode["TlsMode"].asString(); + if(!tlsSettingNode["CertId"].isNull()) + data_.gatewayTrafficPolicy.tlsSetting.certId = tlsSettingNode["CertId"].asString(); + if(!tlsSettingNode["CaCertContent"].isNull()) + data_.gatewayTrafficPolicy.tlsSetting.caCertContent = tlsSettingNode["CaCertContent"].asString(); + if(!tlsSettingNode["Sni"].isNull()) + data_.gatewayTrafficPolicy.tlsSetting.sni = tlsSettingNode["Sni"].asString(); + auto loadBalancerSettingsNode = gatewayTrafficPolicyNode["LoadBalancerSettings"]; + if(!loadBalancerSettingsNode["LoadbalancerType"].isNull()) + data_.gatewayTrafficPolicy.loadBalancerSettings.loadbalancerType = loadBalancerSettingsNode["LoadbalancerType"].asString(); + auto consistentHashLBConfigNode = loadBalancerSettingsNode["ConsistentHashLBConfig"]; + if(!consistentHashLBConfigNode["ParameterName"].isNull()) + data_.gatewayTrafficPolicy.loadBalancerSettings.consistentHashLBConfig.parameterName = consistentHashLBConfigNode["ParameterName"].asString(); + if(!consistentHashLBConfigNode["ConsistentHashLBType"].isNull()) + data_.gatewayTrafficPolicy.loadBalancerSettings.consistentHashLBConfig.consistentHashLBType = consistentHashLBConfigNode["ConsistentHashLBType"].asString(); + auto httpCookieNode = consistentHashLBConfigNode["HttpCookie"]; + if(!httpCookieNode["Name"].isNull()) + data_.gatewayTrafficPolicy.loadBalancerSettings.consistentHashLBConfig.httpCookie.name = httpCookieNode["Name"].asString(); + if(!httpCookieNode["Path"].isNull()) + data_.gatewayTrafficPolicy.loadBalancerSettings.consistentHashLBConfig.httpCookie.path = httpCookieNode["Path"].asString(); + if(!httpCookieNode["TTL"].isNull()) + data_.gatewayTrafficPolicy.loadBalancerSettings.consistentHashLBConfig.httpCookie.tTL = httpCookieNode["TTL"].asString(); + if(!value["HttpStatusCode"].isNull()) + httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString()); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["Code"].isNull()) + code_ = std::stoi(value["Code"].asString()); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + +} + +std::string UpdateGatewayServiceTrafficPolicyResult::getMessage()const +{ + return message_; +} + +int UpdateGatewayServiceTrafficPolicyResult::getHttpStatusCode()const +{ + return httpStatusCode_; +} + +UpdateGatewayServiceTrafficPolicyResult::Data UpdateGatewayServiceTrafficPolicyResult::getData()const +{ + return data_; +} + +int UpdateGatewayServiceTrafficPolicyResult::getCode()const +{ + return code_; +} + +bool UpdateGatewayServiceTrafficPolicyResult::getSuccess()const +{ + return success_; +} + diff --git a/mse/src/model/UpdateMessageQueueRouteRequest.cc b/mse/src/model/UpdateMessageQueueRouteRequest.cc new file mode 100644 index 000000000..ce2f74bee --- /dev/null +++ b/mse/src/model/UpdateMessageQueueRouteRequest.cc @@ -0,0 +1,74 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Mse::Model::UpdateMessageQueueRouteRequest; + +UpdateMessageQueueRouteRequest::UpdateMessageQueueRouteRequest() + : RpcServiceRequest("mse", "2019-05-31", "UpdateMessageQueueRoute") { + setMethod(HttpRequest::Method::Post); +} + +UpdateMessageQueueRouteRequest::~UpdateMessageQueueRouteRequest() {} + +std::vector UpdateMessageQueueRouteRequest::getTags() const { + return tags_; +} + +void UpdateMessageQueueRouteRequest::setTags(const std::vector &tags) { + tags_ = tags; + for(int dep1 = 0; dep1 != tags.size(); dep1++) { + setParameter(std::string("Tags") + "." + std::to_string(dep1 + 1), tags[dep1]); + } +} + +bool UpdateMessageQueueRouteRequest::getEnable() const { + return enable_; +} + +void UpdateMessageQueueRouteRequest::setEnable(bool enable) { + enable_ = enable; + setParameter(std::string("Enable"), enable ? "true" : "false"); +} + +std::string UpdateMessageQueueRouteRequest::getAppId() const { + return appId_; +} + +void UpdateMessageQueueRouteRequest::setAppId(const std::string &appId) { + appId_ = appId; + setParameter(std::string("AppId"), appId); +} + +std::string UpdateMessageQueueRouteRequest::getAcceptLanguage() const { + return acceptLanguage_; +} + +void UpdateMessageQueueRouteRequest::setAcceptLanguage(const std::string &acceptLanguage) { + acceptLanguage_ = acceptLanguage; + setParameter(std::string("AcceptLanguage"), acceptLanguage); +} + +std::string UpdateMessageQueueRouteRequest::getRegion() const { + return region_; +} + +void UpdateMessageQueueRouteRequest::setRegion(const std::string ®ion) { + region_ = region; + setParameter(std::string("Region"), region); +} + diff --git a/mse/src/model/UpdateMessageQueueRouteResult.cc b/mse/src/model/UpdateMessageQueueRouteResult.cc new file mode 100644 index 000000000..12d56d6a7 --- /dev/null +++ b/mse/src/model/UpdateMessageQueueRouteResult.cc @@ -0,0 +1,79 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Mse; +using namespace AlibabaCloud::Mse::Model; + +UpdateMessageQueueRouteResult::UpdateMessageQueueRouteResult() : + ServiceResult() +{} + +UpdateMessageQueueRouteResult::UpdateMessageQueueRouteResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +UpdateMessageQueueRouteResult::~UpdateMessageQueueRouteResult() +{} + +void UpdateMessageQueueRouteResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["HttpStatusCode"].isNull()) + httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString()); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["Data"].isNull()) + data_ = value["Data"].asString(); + if(!value["Code"].isNull()) + code_ = std::stoi(value["Code"].asString()); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + +} + +std::string UpdateMessageQueueRouteResult::getMessage()const +{ + return message_; +} + +int UpdateMessageQueueRouteResult::getHttpStatusCode()const +{ + return httpStatusCode_; +} + +std::string UpdateMessageQueueRouteResult::getData()const +{ + return data_; +} + +int UpdateMessageQueueRouteResult::getCode()const +{ + return code_; +} + +bool UpdateMessageQueueRouteResult::getSuccess()const +{ + return success_; +} + diff --git a/mse/src/model/UpdateSSLCertRequest.cc b/mse/src/model/UpdateSSLCertRequest.cc index 897a1bf4b..8f6784dd8 100644 --- a/mse/src/model/UpdateSSLCertRequest.cc +++ b/mse/src/model/UpdateSSLCertRequest.cc @@ -20,7 +20,7 @@ using AlibabaCloud::Mse::Model::UpdateSSLCertRequest; UpdateSSLCertRequest::UpdateSSLCertRequest() : RpcServiceRequest("mse", "2019-05-31", "UpdateSSLCert") { - setMethod(HttpRequest::Method::Get); + setMethod(HttpRequest::Method::Post); } UpdateSSLCertRequest::~UpdateSSLCertRequest() {}